123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415 |
- import gql from 'graphql-tag';
- import * as VueApolloComposable from '@vue/apollo-composable';
- import * as VueCompositionApi from 'vue';
- export type Maybe<T> = T | null;
- export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
- export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
- export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
- export type ReactiveFunction<TParam> = () => TParam;
- /** All built-in and custom scalars, mapped to their actual values */
- export type Scalars = {
- ID: string;
- String: string;
- Boolean: boolean;
- Int: number;
- Float: number;
- /** An ISO 8601-encoded date */
- ISO8601Date: any;
- /** An ISO 8601-encoded datetime */
- ISO8601DateTime: any;
- /** Represents untyped JSON */
- JSON: any;
- };
- /** Key/value type with complex values. */
- export type KeyComplexValue = {
- __typename?: 'KeyComplexValue';
- key: Scalars['String'];
- value?: Maybe<Scalars['JSON']>;
- };
- /** Autogenerated return type of Login */
- export type LoginPayload = {
- __typename?: 'LoginPayload';
- /** The current session */
- sessionId: Scalars['String'];
- };
- /** Autogenerated return type of Logout */
- export type LogoutPayload = {
- __typename?: 'LogoutPayload';
- /** Was the logout successful? */
- success: Scalars['Boolean'];
- };
- /** All available mutations. */
- export type Mutations = {
- __typename?: 'Mutations';
- /** Performs a user login to create a session */
- login?: Maybe<LoginPayload>;
- /** End the current session */
- logout?: Maybe<LogoutPayload>;
- };
- /** All available mutations. */
- export type MutationsLoginArgs = {
- fingerprint: Scalars['String'];
- login: Scalars['String'];
- password: Scalars['String'];
- };
- /** An object with an ID. */
- export type Node = {
- /** ID of the object. */
- id: Scalars['ID'];
- };
- /** Data of one object attribute value of another object */
- export type ObjectAttributeValue = {
- __typename?: 'ObjectAttributeValue';
- /** The object attribute record */
- attribute: ObjectManagerAttribute;
- /** The value of the current object's object attribute */
- value?: Maybe<Scalars['String']>;
- };
- /** Custom object fields (only editable & active) */
- export type ObjectAttributeValueInterface = {
- objectAttributeValues: Array<ObjectAttributeValue>;
- };
- /** An object manager attribute record */
- export type ObjectManagerAttribute = Node & {
- __typename?: 'ObjectManagerAttribute';
- active: Scalars['Boolean'];
- /** Create date/time of the record */
- createdAt: Scalars['ISO8601DateTime'];
- /** User that created this record */
- createdBy: User;
- dataOption?: Maybe<Scalars['JSON']>;
- dataType: Scalars['String'];
- display: Scalars['String'];
- editable: Scalars['Boolean'];
- id: Scalars['ID'];
- name: Scalars['String'];
- position: Scalars['Int'];
- screens?: Maybe<Scalars['JSON']>;
- /** Last update date/time of the record */
- updatedAt: Scalars['ISO8601DateTime'];
- /** Last user that updated this record */
- updatedBy: User;
- };
- /** Organizations that users can belong to */
- export type Organization = Node & ObjectAttributeValueInterface & {
- __typename?: 'Organization';
- active: Scalars['Boolean'];
- /** Create date/time of the record */
- createdAt: Scalars['ISO8601DateTime'];
- /** User that created this record */
- createdBy: User;
- domain?: Maybe<Scalars['String']>;
- domainAssignment: Scalars['Boolean'];
- id: Scalars['ID'];
- members: UserConnection;
- name: Scalars['String'];
- note?: Maybe<Scalars['String']>;
- objectAttributeValues: Array<ObjectAttributeValue>;
- shared: Scalars['Boolean'];
- /** Last update date/time of the record */
- updatedAt: Scalars['ISO8601DateTime'];
- /** Last user that updated this record */
- updatedBy: User;
- };
- /** Organizations that users can belong to */
- export type OrganizationMembersArgs = {
- after?: Maybe<Scalars['String']>;
- before?: Maybe<Scalars['String']>;
- first?: Maybe<Scalars['Int']>;
- last?: Maybe<Scalars['Int']>;
- };
- /** Information about pagination in a connection. */
- export type PageInfo = {
- __typename?: 'PageInfo';
- /** When paginating forwards, the cursor to continue. */
- endCursor?: Maybe<Scalars['String']>;
- /** When paginating forwards, are there more items? */
- hasNextPage: Scalars['Boolean'];
- /** When paginating backwards, are there more items? */
- hasPreviousPage: Scalars['Boolean'];
- /** When paginating backwards, the cursor to continue. */
- startCursor?: Maybe<Scalars['String']>;
- };
- /** All available queries */
- export type Queries = {
- __typename?: 'Queries';
- /** Configuration required for front end operation (more results returned for authenticated users) */
- applicationConfig: Array<KeyComplexValue>;
- /** Information about the authenticated user */
- currentUser: User;
- /** Fetches an object given its ID. */
- node?: Maybe<Node>;
- /** Fetches a list of objects given a list of IDs. */
- nodes: Array<Maybe<Node>>;
- /** Information about the current session */
- sessionId: Scalars['String'];
- };
- /** All available queries */
- export type QueriesNodeArgs = {
- id: Scalars['ID'];
- };
- /** All available queries */
- export type QueriesNodesArgs = {
- ids: Array<Scalars['ID']>;
- };
- /** Users (admins, agents and customers) */
- export type User = Node & ObjectAttributeValueInterface & {
- __typename?: 'User';
- active: Scalars['Boolean'];
- /** Create date/time of the record */
- createdAt: Scalars['ISO8601DateTime'];
- /** User that created this record */
- createdById: Scalars['Int'];
- email?: Maybe<Scalars['String']>;
- fax?: Maybe<Scalars['String']>;
- firstname?: Maybe<Scalars['String']>;
- id: Scalars['ID'];
- image?: Maybe<Scalars['String']>;
- imageSource?: Maybe<Scalars['String']>;
- lastLogin?: Maybe<Scalars['ISO8601DateTime']>;
- lastname?: Maybe<Scalars['String']>;
- login: Scalars['String'];
- loginFailed: Scalars['Int'];
- mobile?: Maybe<Scalars['String']>;
- note?: Maybe<Scalars['String']>;
- objectAttributeValues: Array<ObjectAttributeValue>;
- organization?: Maybe<Organization>;
- outOfOffice: Scalars['Boolean'];
- outOfOfficeEndAt?: Maybe<Scalars['ISO8601Date']>;
- outOfOfficeReplacementId?: Maybe<Scalars['Int']>;
- outOfOfficeStartAt?: Maybe<Scalars['ISO8601Date']>;
- password?: Maybe<Scalars['String']>;
- phone?: Maybe<Scalars['String']>;
- preferences?: Maybe<Scalars['JSON']>;
- source?: Maybe<Scalars['String']>;
- /** Last update date/time of the record */
- updatedAt: Scalars['ISO8601DateTime'];
- /** Last user that updated this record */
- updatedById: Scalars['Int'];
- verified: Scalars['Boolean'];
- vip?: Maybe<Scalars['Boolean']>;
- web?: Maybe<Scalars['String']>;
- };
- /** The connection type for User. */
- export type UserConnection = {
- __typename?: 'UserConnection';
- /** A list of edges. */
- edges?: Maybe<Array<Maybe<UserEdge>>>;
- /** A list of nodes. */
- nodes?: Maybe<Array<Maybe<User>>>;
- /** Information to aid in pagination. */
- pageInfo: PageInfo;
- };
- /** An edge in a connection. */
- export type UserEdge = {
- __typename?: 'UserEdge';
- /** A cursor for use in pagination. */
- cursor: Scalars['String'];
- /** The item at the end of the edge. */
- node?: Maybe<User>;
- };
- export type ObjectAttributeValuesFragment = { __typename?: 'ObjectAttributeValue', value?: string | null | undefined, attribute: { __typename?: 'ObjectManagerAttribute', name: string, display: string, dataType: string, dataOption?: any | null | undefined, screens?: any | null | undefined, editable: boolean, active: boolean } };
- export type LoginMutationVariables = Exact<{
- login: Scalars['String'];
- password: Scalars['String'];
- fingerprint: Scalars['String'];
- }>;
- export type LoginMutation = { __typename?: 'Mutations', login?: { __typename?: 'LoginPayload', sessionId: string } | null | undefined };
- export type LogoutMutationVariables = Exact<{ [key: string]: never; }>;
- export type LogoutMutation = { __typename?: 'Mutations', logout?: { __typename?: 'LogoutPayload', success: boolean } | null | undefined };
- export type ApplicationConfigQueryVariables = Exact<{ [key: string]: never; }>;
- export type ApplicationConfigQuery = { __typename?: 'Queries', applicationConfig: Array<{ __typename?: 'KeyComplexValue', key: string, value?: any | null | undefined }> };
- export type CurrentUserQueryVariables = Exact<{ [key: string]: never; }>;
- export type CurrentUserQuery = { __typename?: 'Queries', currentUser: { __typename?: 'User', firstname?: string | null | undefined, lastname?: string | null | undefined, objectAttributeValues: Array<{ __typename?: 'ObjectAttributeValue', value?: string | null | undefined, attribute: { __typename?: 'ObjectManagerAttribute', name: string, display: string, dataType: string, dataOption?: any | null | undefined, screens?: any | null | undefined, editable: boolean, active: boolean } }>, organization?: { __typename?: 'Organization', name: string, objectAttributeValues: Array<{ __typename?: 'ObjectAttributeValue', value?: string | null | undefined, attribute: { __typename?: 'ObjectManagerAttribute', name: string, display: string, dataType: string, dataOption?: any | null | undefined, screens?: any | null | undefined, editable: boolean, active: boolean } }> } | null | undefined } };
- export type SessionIdQueryVariables = Exact<{ [key: string]: never; }>;
- export type SessionIdQuery = { __typename?: 'Queries', sessionId: string };
- export const ObjectAttributeValuesFragmentDoc = gql`
- fragment objectAttributeValues on ObjectAttributeValue {
- attribute {
- name
- display
- dataType
- dataOption
- screens
- editable
- active
- }
- value
- }
- `;
- export const LoginDocument = gql`
- mutation login($login: String!, $password: String!, $fingerprint: String!) {
- login(login: $login, password: $password, fingerprint: $fingerprint) {
- sessionId
- }
- }
- `;
- /**
- * __useLoginMutation__
- *
- * To run a mutation, you first call `useLoginMutation` within a Vue component and pass it any options that fit your needs.
- * When your component renders, `useLoginMutation` returns an object that includes:
- * - A mutate function that you can call at any time to execute the mutation
- * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return
- *
- * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options;
- *
- * @example
- * const { mutate, loading, error, onDone } = useLoginMutation({
- * variables: {
- * login: // value for 'login'
- * password: // value for 'password'
- * fingerprint: // value for 'fingerprint'
- * },
- * });
- */
- export function useLoginMutation(options: VueApolloComposable.UseMutationOptions<LoginMutation, LoginMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<LoginMutation, LoginMutationVariables>>) {
- return VueApolloComposable.useMutation<LoginMutation, LoginMutationVariables>(LoginDocument, options);
- }
- export type LoginMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<LoginMutation, LoginMutationVariables>;
- export const LogoutDocument = gql`
- mutation logout {
- logout {
- success
- }
- }
- `;
- /**
- * __useLogoutMutation__
- *
- * To run a mutation, you first call `useLogoutMutation` within a Vue component and pass it any options that fit your needs.
- * When your component renders, `useLogoutMutation` returns an object that includes:
- * - A mutate function that you can call at any time to execute the mutation
- * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return
- *
- * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options;
- *
- * @example
- * const { mutate, loading, error, onDone } = useLogoutMutation();
- */
- export function useLogoutMutation(options: VueApolloComposable.UseMutationOptions<LogoutMutation, LogoutMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<LogoutMutation, LogoutMutationVariables>> = {}) {
- return VueApolloComposable.useMutation<LogoutMutation, LogoutMutationVariables>(LogoutDocument, options);
- }
- export type LogoutMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<LogoutMutation, LogoutMutationVariables>;
- export const ApplicationConfigDocument = gql`
- query applicationConfig {
- applicationConfig {
- key
- value
- }
- }
- `;
- /**
- * __useApplicationConfigQuery__
- *
- * To run a query within a Vue component, call `useApplicationConfigQuery` and pass it any options that fit your needs.
- * When your component renders, `useApplicationConfigQuery` returns an object from Apollo Client that contains result, loading and error properties
- * you can use to render your UI.
- *
- * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
- *
- * @example
- * const { result, loading, error } = useApplicationConfigQuery();
- */
- export function useApplicationConfigQuery(options: VueApolloComposable.UseQueryOptions<ApplicationConfigQuery, ApplicationConfigQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<ApplicationConfigQuery, ApplicationConfigQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<ApplicationConfigQuery, ApplicationConfigQueryVariables>> = {}) {
- return VueApolloComposable.useQuery<ApplicationConfigQuery, ApplicationConfigQueryVariables>(ApplicationConfigDocument, {}, options);
- }
- export type ApplicationConfigQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<ApplicationConfigQuery, ApplicationConfigQueryVariables>;
- export const CurrentUserDocument = gql`
- query currentUser {
- currentUser {
- firstname
- lastname
- objectAttributeValues {
- ...objectAttributeValues
- }
- organization {
- name
- objectAttributeValues {
- ...objectAttributeValues
- }
- }
- }
- }
- ${ObjectAttributeValuesFragmentDoc}`;
- /**
- * __useCurrentUserQuery__
- *
- * To run a query within a Vue component, call `useCurrentUserQuery` and pass it any options that fit your needs.
- * When your component renders, `useCurrentUserQuery` returns an object from Apollo Client that contains result, loading and error properties
- * you can use to render your UI.
- *
- * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
- *
- * @example
- * const { result, loading, error } = useCurrentUserQuery();
- */
- export function useCurrentUserQuery(options: VueApolloComposable.UseQueryOptions<CurrentUserQuery, CurrentUserQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<CurrentUserQuery, CurrentUserQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<CurrentUserQuery, CurrentUserQueryVariables>> = {}) {
- return VueApolloComposable.useQuery<CurrentUserQuery, CurrentUserQueryVariables>(CurrentUserDocument, {}, options);
- }
- export type CurrentUserQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<CurrentUserQuery, CurrentUserQueryVariables>;
- export const SessionIdDocument = gql`
- query sessionId {
- sessionId
- }
- `;
- /**
- * __useSessionIdQuery__
- *
- * To run a query within a Vue component, call `useSessionIdQuery` and pass it any options that fit your needs.
- * When your component renders, `useSessionIdQuery` returns an object from Apollo Client that contains result, loading and error properties
- * you can use to render your UI.
- *
- * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
- *
- * @example
- * const { result, loading, error } = useSessionIdQuery();
- */
- export function useSessionIdQuery(options: VueApolloComposable.UseQueryOptions<SessionIdQuery, SessionIdQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<SessionIdQuery, SessionIdQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<SessionIdQuery, SessionIdQueryVariables>> = {}) {
- return VueApolloComposable.useQuery<SessionIdQuery, SessionIdQueryVariables>(SessionIdDocument, {}, options);
- }
- export type SessionIdQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<SessionIdQuery, SessionIdQueryVariables>;
|