diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..57dd7ab94 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +/libs/ui/src/_gqlTypes \ No newline at end of file diff --git a/apps/admin/src/_gqlTypes/globalTypes.ts b/apps/admin/src/_gqlTypes/globalTypes.ts index 1d8d4db2c..3e610d8f9 100644 --- a/apps/admin/src/_gqlTypes/globalTypes.ts +++ b/apps/admin/src/_gqlTypes/globalTypes.ts @@ -267,6 +267,7 @@ export interface AttributeInput { values_list?: ValuesListConfInput | null; reverse_link?: string | null; unique?: boolean | null; + maxLength?: number | null; } export interface DeleteTaskInput { diff --git a/apps/core/src/app/core/attributeApp/attributeApp.ts b/apps/core/src/app/core/attributeApp/attributeApp.ts index d5bd9004c..ac5d3891d 100644 --- a/apps/core/src/app/core/attributeApp/attributeApp.ts +++ b/apps/core/src/app/core/attributeApp/attributeApp.ts @@ -48,7 +48,7 @@ interface IDeps { 'core.utils'?: IUtils; } -export default function (deps: IDeps = {}): ICoreAttributeApp { +export default function(deps: IDeps = {}): ICoreAttributeApp { const { 'core.domain.attribute': attributeDomain = null, 'core.domain.record': recordDomain = null, @@ -185,7 +185,8 @@ export default function (deps: IDeps = {}): ICoreAttributeApp { ${attributesInterfaceSchema} embedded_fields: [EmbeddedAttribute], values_list: StandardValuesListConf, - unique: Boolean + unique: Boolean, + maxLength: Int } type LinkAttribute implements Attribute{ @@ -218,7 +219,8 @@ export default function (deps: IDeps = {}): ICoreAttributeApp { metadata_fields: [String!], values_list: ValuesListConfInput, reverse_link: String, - unique: Boolean + unique: Boolean, + maxLength: Int } type EmbeddedAttribute { @@ -393,21 +395,23 @@ export default function (deps: IDeps = {}): ICoreAttributeApp { // TODO: this could be optimized if find() would allow searching for multiple IDs at once return { ...attributeData.values_list, - values: (attributeData.values_list.values as string[]) || [] - .map(async recId => { - const record = await recordDomain.find({ - params: { - library: attributeData.linked_library, - filters: [ - {field: 'id', condition: AttributeCondition.EQUAL, value: recId} - ] - }, - ctx - }); - - return record.list.length ? record.list[0] : null; - }) - .filter(r => r !== null) // Remove invalid values (unknown records) + values: + (attributeData.values_list.values as string[]) || + [] + .map(async recId => { + const record = await recordDomain.find({ + params: { + library: attributeData.linked_library, + filters: [ + {field: 'id', condition: AttributeCondition.EQUAL, value: recId} + ] + }, + ctx + }); + + return record.list.length ? record.list[0] : null; + }) + .filter(r => r !== null) // Remove invalid values (unknown records) }; } }, diff --git a/libs/ui/package.json b/libs/ui/package.json index 899df919a..47ba1f8c5 100644 --- a/libs/ui/package.json +++ b/libs/ui/package.json @@ -1,6 +1,6 @@ { "name": "@leav/ui", - "version": "0.0.3", + "version": "0.0.5", "description": "Shared React components and hooks", "scripts": { "prepublishOnly": "yarn build", diff --git a/libs/ui/src/__mocks__/common/attribute.ts b/libs/ui/src/__mocks__/common/attribute.ts index efdbe91cc..b25a91f49 100644 --- a/libs/ui/src/__mocks__/common/attribute.ts +++ b/libs/ui/src/__mocks__/common/attribute.ts @@ -47,6 +47,7 @@ export const mockAttributeWithDetails: AttributeDetailsFragment = { fr: 'Ma description', en: 'My description' }, + maxLength: null, unique: false, readonly: false, multiple_values: false diff --git a/libs/ui/src/_gqlTypes/index.ts b/libs/ui/src/_gqlTypes/index.ts index d437a2bda..66e4bc379 100644 --- a/libs/ui/src/_gqlTypes/index.ts +++ b/libs/ui/src/_gqlTypes/index.ts @@ -1,5115 +1,1868 @@ -// Copyright LEAV Solutions 2017 -// This file is released under LGPL V3 -// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt -import {IPreviewScalar} from '@leav/utils'; -import {gql} from '@apollo/client'; +import {IPreviewScalar} from '@leav/utils' +import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; export type Maybe = T | null; export type InputMaybe = Maybe; -export type Exact = {[K in keyof T]: T[K]}; -export type MakeOptional = Omit & {[SubKey in K]?: Maybe}; -export type MakeMaybe = Omit & {[SubKey in K]: Maybe}; +export type Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - Any: any; - DateTime: any; - FullTreeContent: any; - JSON: any; - JSONObject: any; - Preview: IPreviewScalar; - SystemTranslation: any; - SystemTranslationOptional: any; - TaskPriority: any; - Upload: any; + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + Any: any; + DateTime: any; + FullTreeContent: any; + JSON: any; + JSONObject: any; + Preview: IPreviewScalar; + SystemTranslation: any; + SystemTranslationOptional: any; + TaskPriority: any; + Upload: any; }; export type ActionConfigurationInput = { - error_message?: InputMaybe; - id: Scalars['ID']; - params?: InputMaybe>; + error_message?: InputMaybe; + id: Scalars['ID']; + params?: InputMaybe>; }; export type ActionConfigurationParamInput = { - name: Scalars['String']; - value: Scalars['String']; + name: Scalars['String']; + value: Scalars['String']; }; export enum ActionIoTypes { - boolean = 'boolean', - number = 'number', - object = 'object', - string = 'string' + boolean = 'boolean', + number = 'number', + object = 'object', + string = 'string' } export type ActionsListConfigurationInput = { - deleteValue?: InputMaybe>; - getValue?: InputMaybe>; - saveValue?: InputMaybe>; + deleteValue?: InputMaybe>; + getValue?: InputMaybe>; + saveValue?: InputMaybe>; }; export type ApiKeyInput = { - expiresAt?: InputMaybe; - id?: InputMaybe; - label: Scalars['String']; - userId: Scalars['String']; + expiresAt?: InputMaybe; + id?: InputMaybe; + label: Scalars['String']; + userId: Scalars['String']; }; export type ApiKeysFiltersInput = { - createdBy?: InputMaybe; - label?: InputMaybe; - modifiedBy?: InputMaybe; - user_id?: InputMaybe; + createdBy?: InputMaybe; + label?: InputMaybe; + modifiedBy?: InputMaybe; + user_id?: InputMaybe; }; export enum ApiKeysSortableFields { - createdAt = 'createdAt', - createdBy = 'createdBy', - expiresAt = 'expiresAt', - label = 'label', - modifiedAt = 'modifiedAt', - modifiedBy = 'modifiedBy' + createdAt = 'createdAt', + createdBy = 'createdBy', + expiresAt = 'expiresAt', + label = 'label', + modifiedAt = 'modifiedAt', + modifiedBy = 'modifiedBy' } export type ApplicationEventFiltersInput = { - applicationId?: InputMaybe; - events?: InputMaybe>; - ignoreOwnEvents?: InputMaybe; + applicationId?: InputMaybe; + events?: InputMaybe>; + ignoreOwnEvents?: InputMaybe; }; export enum ApplicationEventTypes { - DELETE = 'DELETE', - SAVE = 'SAVE' + DELETE = 'DELETE', + SAVE = 'SAVE' } export type ApplicationIconInput = { - libraryId: Scalars['String']; - recordId: Scalars['String']; + libraryId: Scalars['String']; + recordId: Scalars['String']; }; export type ApplicationInput = { - color?: InputMaybe; - description?: InputMaybe; - endpoint?: InputMaybe; - icon?: InputMaybe; - id: Scalars['ID']; - label?: InputMaybe; - module?: InputMaybe; - settings?: InputMaybe; - type?: InputMaybe; + color?: InputMaybe; + description?: InputMaybe; + endpoint?: InputMaybe; + icon?: InputMaybe; + id: Scalars['ID']; + label?: InputMaybe; + module?: InputMaybe; + settings?: InputMaybe; + type?: InputMaybe; }; export enum ApplicationSortableFields { - endpoint = 'endpoint', - id = 'id', - module = 'module', - system = 'system', - type = 'type' + endpoint = 'endpoint', + id = 'id', + module = 'module', + system = 'system', + type = 'type' } export enum ApplicationType { - external = 'external', - internal = 'internal' + external = 'external', + internal = 'internal' } export type ApplicationsFiltersInput = { - endpoint?: InputMaybe; - id?: InputMaybe; - label?: InputMaybe; - module?: InputMaybe; - system?: InputMaybe; - type?: InputMaybe>>; + endpoint?: InputMaybe; + id?: InputMaybe; + label?: InputMaybe; + module?: InputMaybe; + system?: InputMaybe; + type?: InputMaybe>>; }; export enum AttributeFormat { - boolean = 'boolean', - color = 'color', - date = 'date', - date_range = 'date_range', - encrypted = 'encrypted', - extended = 'extended', - numeric = 'numeric', - rich_text = 'rich_text', - text = 'text' + boolean = 'boolean', + color = 'color', + date = 'date', + date_range = 'date_range', + encrypted = 'encrypted', + extended = 'extended', + numeric = 'numeric', + rich_text = 'rich_text', + text = 'text' } export type AttributeInput = { - actions_list?: InputMaybe; - description?: InputMaybe; - embedded_fields?: InputMaybe>>; - format?: InputMaybe; - id: Scalars['ID']; - label?: InputMaybe; - linked_library?: InputMaybe; - linked_tree?: InputMaybe; - metadata_fields?: InputMaybe>; - multiple_values?: InputMaybe; - permissions_conf?: InputMaybe; - readonly?: InputMaybe; - reverse_link?: InputMaybe; - type?: InputMaybe; - unique?: InputMaybe; - values_list?: InputMaybe; - versions_conf?: InputMaybe; + actions_list?: InputMaybe; + description?: InputMaybe; + embedded_fields?: InputMaybe>>; + format?: InputMaybe; + id: Scalars['ID']; + label?: InputMaybe; + linked_library?: InputMaybe; + linked_tree?: InputMaybe; + maxLength?: InputMaybe; + metadata_fields?: InputMaybe>; + multiple_values?: InputMaybe; + permissions_conf?: InputMaybe; + readonly?: InputMaybe; + reverse_link?: InputMaybe; + type?: InputMaybe; + unique?: InputMaybe; + values_list?: InputMaybe; + versions_conf?: InputMaybe; }; export type AttributePermissionsRecord = { - id?: InputMaybe; - library: Scalars['String']; + id?: InputMaybe; + library: Scalars['String']; }; export enum AttributeType { - advanced = 'advanced', - advanced_link = 'advanced_link', - simple = 'simple', - simple_link = 'simple_link', - tree = 'tree' + advanced = 'advanced', + advanced_link = 'advanced_link', + simple = 'simple', + simple_link = 'simple_link', + tree = 'tree' } export type AttributesFiltersInput = { - format?: InputMaybe>>; - id?: InputMaybe; - label?: InputMaybe; - libraries?: InputMaybe>>; - librariesExcluded?: InputMaybe>>; - multiple_values?: InputMaybe; - system?: InputMaybe; - type?: InputMaybe>>; - versionable?: InputMaybe; + format?: InputMaybe>>; + id?: InputMaybe; + label?: InputMaybe; + libraries?: InputMaybe>>; + librariesExcluded?: InputMaybe>>; + multiple_values?: InputMaybe; + system?: InputMaybe; + type?: InputMaybe>>; + versionable?: InputMaybe; }; export enum AttributesSortableFields { - format = 'format', - id = 'id', - linked_library = 'linked_library', - linked_tree = 'linked_tree', - multiple_values = 'multiple_values', - type = 'type' + format = 'format', + id = 'id', + linked_library = 'linked_library', + linked_tree = 'linked_tree', + multiple_values = 'multiple_values', + type = 'type' } export enum AvailableLanguage { - en = 'en', - fr = 'fr' + en = 'en', + fr = 'fr' } export type CreateRecordDataInput = { - values?: InputMaybe>; - version?: InputMaybe>; + values?: InputMaybe>; + version?: InputMaybe>; }; export type DeleteTaskInput = { - archive: Scalars['Boolean']; - id: Scalars['ID']; + archive: Scalars['Boolean']; + id: Scalars['ID']; }; export type EmbeddedAttributeInput = { - description?: InputMaybe; - embedded_fields?: InputMaybe>>; - format?: InputMaybe; - id: Scalars['ID']; - label?: InputMaybe; - validation_regex?: InputMaybe; + description?: InputMaybe; + embedded_fields?: InputMaybe>>; + format?: InputMaybe; + id: Scalars['ID']; + label?: InputMaybe; + validation_regex?: InputMaybe; }; export type FileInput = { - data: Scalars['Upload']; - replace?: InputMaybe; - size?: InputMaybe; - uid: Scalars['String']; + data: Scalars['Upload']; + replace?: InputMaybe; + size?: InputMaybe; + uid: Scalars['String']; }; export enum FileType { - audio = 'audio', - document = 'document', - image = 'image', - other = 'other', - video = 'video' + audio = 'audio', + document = 'document', + image = 'image', + other = 'other', + video = 'video' } export type FormDependencyValueInput = { - attribute: Scalars['ID']; - value: Scalars['ID']; + attribute: Scalars['ID']; + value: Scalars['ID']; }; export type FormElementInput = { - containerId: Scalars['ID']; - id: Scalars['ID']; - order: Scalars['Int']; - settings: Array; - type: FormElementTypes; - uiElementType: Scalars['String']; + containerId: Scalars['ID']; + id: Scalars['ID']; + order: Scalars['Int']; + settings: Array; + type: FormElementTypes; + uiElementType: Scalars['String']; }; export type FormElementSettingsInput = { - key: Scalars['String']; - value: Scalars['Any']; + key: Scalars['String']; + value: Scalars['Any']; }; export enum FormElementTypes { - field = 'field', - layout = 'layout' + field = 'field', + layout = 'layout' } export type FormElementsByDepsInput = { - dependencyValue?: InputMaybe; - elements: Array; + dependencyValue?: InputMaybe; + elements: Array; }; export type FormFiltersInput = { - id?: InputMaybe; - label?: InputMaybe; - library: Scalars['ID']; - system?: InputMaybe; + id?: InputMaybe; + label?: InputMaybe; + library: Scalars['ID']; + system?: InputMaybe; }; export type FormInput = { - dependencyAttributes?: InputMaybe>; - elements?: InputMaybe>; - id: Scalars['ID']; - label?: InputMaybe; - library: Scalars['ID']; + dependencyAttributes?: InputMaybe>; + elements?: InputMaybe>; + id: Scalars['ID']; + label?: InputMaybe; + library: Scalars['ID']; }; export enum FormsSortableFields { - id = 'id', - library = 'library', - system = 'system' + id = 'id', + library = 'library', + system = 'system' } export type GlobalSettingsIconInput = { - library: Scalars['String']; - recordId: Scalars['String']; + library: Scalars['String']; + recordId: Scalars['String']; }; export type GlobalSettingsInput = { - icon?: InputMaybe; - name?: InputMaybe; + icon?: InputMaybe; + name?: InputMaybe; }; export enum IoTypes { - boolean = 'boolean', - number = 'number', - object = 'object', - string = 'string' + boolean = 'boolean', + number = 'number', + object = 'object', + string = 'string' } export enum ImportMode { - insert = 'insert', - update = 'update', - upsert = 'upsert' + insert = 'insert', + update = 'update', + upsert = 'upsert' } export enum ImportType { - IGNORE = 'IGNORE', - LINK = 'LINK', - STANDARD = 'STANDARD' + IGNORE = 'IGNORE', + LINK = 'LINK', + STANDARD = 'STANDARD' } export type LibrariesFiltersInput = { - behavior?: InputMaybe>; - id?: InputMaybe>; - label?: InputMaybe>; - system?: InputMaybe; + behavior?: InputMaybe>; + id?: InputMaybe>; + label?: InputMaybe>; + system?: InputMaybe; }; export enum LibrariesSortableFields { - behavior = 'behavior', - id = 'id', - system = 'system' + behavior = 'behavior', + id = 'id', + system = 'system' } export enum LibraryBehavior { - directories = 'directories', - files = 'files', - standard = 'standard' + directories = 'directories', + files = 'files', + standard = 'standard' } export type LibraryIconInput = { - libraryId: Scalars['String']; - recordId: Scalars['String']; + libraryId: Scalars['String']; + recordId: Scalars['String']; }; export type LibraryInput = { - attributes?: InputMaybe>; - behavior?: InputMaybe; - defaultView?: InputMaybe; - fullTextAttributes?: InputMaybe>; - icon?: InputMaybe; - id: Scalars['ID']; - label?: InputMaybe; - permissions_conf?: InputMaybe; - previewsSettings?: InputMaybe>; - recordIdentityConf?: InputMaybe; + attributes?: InputMaybe>; + behavior?: InputMaybe; + defaultView?: InputMaybe; + fullTextAttributes?: InputMaybe>; + icon?: InputMaybe; + id: Scalars['ID']; + label?: InputMaybe; + permissions_conf?: InputMaybe; + previewsSettings?: InputMaybe>; + recordIdentityConf?: InputMaybe; }; export type LibraryPreviewsSettingsInput = { - description?: InputMaybe; - label: Scalars['SystemTranslation']; - versions: PreviewVersionInput; + description?: InputMaybe; + label: Scalars['SystemTranslation']; + versions: PreviewVersionInput; }; export enum LogAction { - API_KEY_DELETE = 'API_KEY_DELETE', - API_KEY_SAVE = 'API_KEY_SAVE', - APP_DELETE = 'APP_DELETE', - APP_SAVE = 'APP_SAVE', - ATTRIBUTE_DELETE = 'ATTRIBUTE_DELETE', - ATTRIBUTE_SAVE = 'ATTRIBUTE_SAVE', - CONFIG_IMPORT_END = 'CONFIG_IMPORT_END', - CONFIG_IMPORT_START = 'CONFIG_IMPORT_START', - DATA_IMPORT_END = 'DATA_IMPORT_END', - DATA_IMPORT_START = 'DATA_IMPORT_START', - EXPORT_END = 'EXPORT_END', - EXPORT_START = 'EXPORT_START', - GLOBAL_SETTINGS_SAVE = 'GLOBAL_SETTINGS_SAVE', - LIBRARY_DELETE = 'LIBRARY_DELETE', - LIBRARY_PURGE = 'LIBRARY_PURGE', - LIBRARY_SAVE = 'LIBRARY_SAVE', - PERMISSION_SAVE = 'PERMISSION_SAVE', - RECORD_DELETE = 'RECORD_DELETE', - RECORD_SAVE = 'RECORD_SAVE', - TASKS_DELETE = 'TASKS_DELETE', - TREE_ADD_ELEMENT = 'TREE_ADD_ELEMENT', - TREE_DELETE = 'TREE_DELETE', - TREE_DELETE_ELEMENT = 'TREE_DELETE_ELEMENT', - TREE_MOVE_ELEMENT = 'TREE_MOVE_ELEMENT', - TREE_SAVE = 'TREE_SAVE', - VALUE_DELETE = 'VALUE_DELETE', - VALUE_SAVE = 'VALUE_SAVE', - VERSION_PROFILE_DELETE = 'VERSION_PROFILE_DELETE', - VERSION_PROFILE_SAVE = 'VERSION_PROFILE_SAVE' + API_KEY_DELETE = 'API_KEY_DELETE', + API_KEY_SAVE = 'API_KEY_SAVE', + APP_DELETE = 'APP_DELETE', + APP_SAVE = 'APP_SAVE', + ATTRIBUTE_DELETE = 'ATTRIBUTE_DELETE', + ATTRIBUTE_SAVE = 'ATTRIBUTE_SAVE', + CONFIG_IMPORT_END = 'CONFIG_IMPORT_END', + CONFIG_IMPORT_START = 'CONFIG_IMPORT_START', + DATA_IMPORT_END = 'DATA_IMPORT_END', + DATA_IMPORT_START = 'DATA_IMPORT_START', + EXPORT_END = 'EXPORT_END', + EXPORT_START = 'EXPORT_START', + GLOBAL_SETTINGS_SAVE = 'GLOBAL_SETTINGS_SAVE', + LIBRARY_DELETE = 'LIBRARY_DELETE', + LIBRARY_PURGE = 'LIBRARY_PURGE', + LIBRARY_SAVE = 'LIBRARY_SAVE', + PERMISSION_SAVE = 'PERMISSION_SAVE', + RECORD_DELETE = 'RECORD_DELETE', + RECORD_SAVE = 'RECORD_SAVE', + TASKS_DELETE = 'TASKS_DELETE', + TREE_ADD_ELEMENT = 'TREE_ADD_ELEMENT', + TREE_DELETE = 'TREE_DELETE', + TREE_DELETE_ELEMENT = 'TREE_DELETE_ELEMENT', + TREE_MOVE_ELEMENT = 'TREE_MOVE_ELEMENT', + TREE_SAVE = 'TREE_SAVE', + VALUE_DELETE = 'VALUE_DELETE', + VALUE_SAVE = 'VALUE_SAVE', + VERSION_PROFILE_DELETE = 'VERSION_PROFILE_DELETE', + VERSION_PROFILE_SAVE = 'VERSION_PROFILE_SAVE' } export type LogFilterInput = { - actions?: InputMaybe>; - instanceId?: InputMaybe; - queryId?: InputMaybe; - time?: InputMaybe; - topic?: InputMaybe; - trigger?: InputMaybe; - userId?: InputMaybe; + actions?: InputMaybe>; + instanceId?: InputMaybe; + queryId?: InputMaybe; + time?: InputMaybe; + topic?: InputMaybe; + trigger?: InputMaybe; + userId?: InputMaybe; }; export type LogFilterTimeInput = { - from?: InputMaybe; - to?: InputMaybe; + from?: InputMaybe; + to?: InputMaybe; }; export type LogSortInput = { - field: LogSortableField; - order: SortOrder; + field: LogSortableField; + order: SortOrder; }; export enum LogSortableField { - action = 'action', - instanceId = 'instanceId', - queryId = 'queryId', - time = 'time', - trigger = 'trigger', - userId = 'userId' + action = 'action', + instanceId = 'instanceId', + queryId = 'queryId', + time = 'time', + trigger = 'trigger', + userId = 'userId' } export type LogTopicFilterInput = { - apiKey?: InputMaybe; - attribute?: InputMaybe; - filename?: InputMaybe; - library?: InputMaybe; - permission?: InputMaybe; - profile?: InputMaybe; - record?: InputMaybe; - tree?: InputMaybe; + apiKey?: InputMaybe; + attribute?: InputMaybe; + filename?: InputMaybe; + library?: InputMaybe; + permission?: InputMaybe; + profile?: InputMaybe; + record?: InputMaybe; + tree?: InputMaybe; }; export type LogTopicPermissionFilterInput = { - applyTo?: InputMaybe; - type?: InputMaybe; + applyTo?: InputMaybe; + type?: InputMaybe; }; export type LogTopicRecordFilterInput = { - id?: InputMaybe; - libraryId?: InputMaybe; + id?: InputMaybe; + libraryId?: InputMaybe; }; export type Pagination = { - limit: Scalars['Int']; - offset: Scalars['Int']; + limit: Scalars['Int']; + offset: Scalars['Int']; }; export type PermissionActionInput = { - allowed?: InputMaybe; - name: PermissionsActions; + allowed?: InputMaybe; + name: PermissionsActions; }; export type PermissionInput = { - actions: Array; - applyTo?: InputMaybe; - permissionTreeTarget?: InputMaybe; - type: PermissionTypes; - usersGroup?: InputMaybe; + actions: Array; + applyTo?: InputMaybe; + permissionTreeTarget?: InputMaybe; + type: PermissionTypes; + usersGroup?: InputMaybe; }; export type PermissionTarget = { - attributeId?: InputMaybe; - libraryId?: InputMaybe; - nodeId?: InputMaybe; - recordId?: InputMaybe; + attributeId?: InputMaybe; + libraryId?: InputMaybe; + nodeId?: InputMaybe; + recordId?: InputMaybe; }; export enum PermissionTypes { - admin = 'admin', - application = 'application', - attribute = 'attribute', - library = 'library', - record = 'record', - record_attribute = 'record_attribute', - tree = 'tree', - tree_library = 'tree_library', - tree_node = 'tree_node' + admin = 'admin', + application = 'application', + attribute = 'attribute', + library = 'library', + record = 'record', + record_attribute = 'record_attribute', + tree = 'tree', + tree_library = 'tree_library', + tree_node = 'tree_node' } export enum PermissionsActions { - access_application = 'access_application', - access_attribute = 'access_attribute', - access_library = 'access_library', - access_record = 'access_record', - access_tree = 'access_tree', - admin_access_api_keys = 'admin_access_api_keys', - admin_access_applications = 'admin_access_applications', - admin_access_attributes = 'admin_access_attributes', - admin_access_libraries = 'admin_access_libraries', - admin_access_permissions = 'admin_access_permissions', - admin_access_tasks = 'admin_access_tasks', - admin_access_trees = 'admin_access_trees', - admin_access_version_profiles = 'admin_access_version_profiles', - admin_application = 'admin_application', - admin_cancel_task = 'admin_cancel_task', - admin_create_api_key = 'admin_create_api_key', - admin_create_application = 'admin_create_application', - admin_create_attribute = 'admin_create_attribute', - admin_create_library = 'admin_create_library', - admin_create_tree = 'admin_create_tree', - admin_create_version_profile = 'admin_create_version_profile', - admin_delete_api_key = 'admin_delete_api_key', - admin_delete_application = 'admin_delete_application', - admin_delete_attribute = 'admin_delete_attribute', - admin_delete_library = 'admin_delete_library', - admin_delete_task = 'admin_delete_task', - admin_delete_tree = 'admin_delete_tree', - admin_delete_version_profile = 'admin_delete_version_profile', - admin_edit_api_key = 'admin_edit_api_key', - admin_edit_application = 'admin_edit_application', - admin_edit_attribute = 'admin_edit_attribute', - admin_edit_global_settings = 'admin_edit_global_settings', - admin_edit_library = 'admin_edit_library', - admin_edit_permission = 'admin_edit_permission', - admin_edit_tree = 'admin_edit_tree', - admin_edit_version_profile = 'admin_edit_version_profile', - admin_library = 'admin_library', - admin_manage_global_preferences = 'admin_manage_global_preferences', - create_record = 'create_record', - delete_record = 'delete_record', - detach = 'detach', - edit_children = 'edit_children', - edit_record = 'edit_record', - edit_value = 'edit_value' + access_application = 'access_application', + access_attribute = 'access_attribute', + access_library = 'access_library', + access_record = 'access_record', + access_tree = 'access_tree', + admin_access_api_keys = 'admin_access_api_keys', + admin_access_applications = 'admin_access_applications', + admin_access_attributes = 'admin_access_attributes', + admin_access_libraries = 'admin_access_libraries', + admin_access_permissions = 'admin_access_permissions', + admin_access_tasks = 'admin_access_tasks', + admin_access_trees = 'admin_access_trees', + admin_access_version_profiles = 'admin_access_version_profiles', + admin_application = 'admin_application', + admin_cancel_task = 'admin_cancel_task', + admin_create_api_key = 'admin_create_api_key', + admin_create_application = 'admin_create_application', + admin_create_attribute = 'admin_create_attribute', + admin_create_library = 'admin_create_library', + admin_create_tree = 'admin_create_tree', + admin_create_version_profile = 'admin_create_version_profile', + admin_delete_api_key = 'admin_delete_api_key', + admin_delete_application = 'admin_delete_application', + admin_delete_attribute = 'admin_delete_attribute', + admin_delete_library = 'admin_delete_library', + admin_delete_task = 'admin_delete_task', + admin_delete_tree = 'admin_delete_tree', + admin_delete_version_profile = 'admin_delete_version_profile', + admin_edit_api_key = 'admin_edit_api_key', + admin_edit_application = 'admin_edit_application', + admin_edit_attribute = 'admin_edit_attribute', + admin_edit_global_settings = 'admin_edit_global_settings', + admin_edit_library = 'admin_edit_library', + admin_edit_permission = 'admin_edit_permission', + admin_edit_tree = 'admin_edit_tree', + admin_edit_version_profile = 'admin_edit_version_profile', + admin_library = 'admin_library', + admin_manage_global_preferences = 'admin_manage_global_preferences', + create_record = 'create_record', + delete_record = 'delete_record', + detach = 'detach', + edit_children = 'edit_children', + edit_record = 'edit_record', + edit_value = 'edit_value' } export enum PermissionsRelation { - and = 'and', - or = 'or' + and = 'and', + or = 'or' } export type PermissionsTreeTargetInput = { - nodeId?: InputMaybe; - tree: Scalars['ID']; + nodeId?: InputMaybe; + tree: Scalars['ID']; }; export type PreviewVersionInput = { - background: Scalars['String']; - density: Scalars['Int']; - sizes: Array; + background: Scalars['String']; + density: Scalars['Int']; + sizes: Array; }; export type PreviewVersionSizeInput = { - name: Scalars['String']; - size: Scalars['Int']; + name: Scalars['String']; + size: Scalars['Int']; }; export enum RecordFilterCondition { - BEGIN_WITH = 'BEGIN_WITH', - BETWEEN = 'BETWEEN', - CLASSIFIED_IN = 'CLASSIFIED_IN', - CONTAINS = 'CONTAINS', - END_AFTER = 'END_AFTER', - END_BEFORE = 'END_BEFORE', - END_ON = 'END_ON', - END_WITH = 'END_WITH', - EQUAL = 'EQUAL', - GREATER_THAN = 'GREATER_THAN', - IS_EMPTY = 'IS_EMPTY', - IS_NOT_EMPTY = 'IS_NOT_EMPTY', - LAST_MONTH = 'LAST_MONTH', - LESS_THAN = 'LESS_THAN', - NEXT_MONTH = 'NEXT_MONTH', - NOT_CLASSIFIED_IN = 'NOT_CLASSIFIED_IN', - NOT_CONTAINS = 'NOT_CONTAINS', - NOT_EQUAL = 'NOT_EQUAL', - START_AFTER = 'START_AFTER', - START_BEFORE = 'START_BEFORE', - START_ON = 'START_ON', - TODAY = 'TODAY', - TOMORROW = 'TOMORROW', - VALUES_COUNT_EQUAL = 'VALUES_COUNT_EQUAL', - VALUES_COUNT_GREATER_THAN = 'VALUES_COUNT_GREATER_THAN', - VALUES_COUNT_LOWER_THAN = 'VALUES_COUNT_LOWER_THAN', - YESTERDAY = 'YESTERDAY' + BEGIN_WITH = 'BEGIN_WITH', + BETWEEN = 'BETWEEN', + CLASSIFIED_IN = 'CLASSIFIED_IN', + CONTAINS = 'CONTAINS', + END_AFTER = 'END_AFTER', + END_BEFORE = 'END_BEFORE', + END_ON = 'END_ON', + END_WITH = 'END_WITH', + EQUAL = 'EQUAL', + GREATER_THAN = 'GREATER_THAN', + IS_EMPTY = 'IS_EMPTY', + IS_NOT_EMPTY = 'IS_NOT_EMPTY', + LAST_MONTH = 'LAST_MONTH', + LESS_THAN = 'LESS_THAN', + NEXT_MONTH = 'NEXT_MONTH', + NOT_CLASSIFIED_IN = 'NOT_CLASSIFIED_IN', + NOT_CONTAINS = 'NOT_CONTAINS', + NOT_EQUAL = 'NOT_EQUAL', + START_AFTER = 'START_AFTER', + START_BEFORE = 'START_BEFORE', + START_ON = 'START_ON', + TODAY = 'TODAY', + TOMORROW = 'TOMORROW', + VALUES_COUNT_EQUAL = 'VALUES_COUNT_EQUAL', + VALUES_COUNT_GREATER_THAN = 'VALUES_COUNT_GREATER_THAN', + VALUES_COUNT_LOWER_THAN = 'VALUES_COUNT_LOWER_THAN', + YESTERDAY = 'YESTERDAY' } export type RecordFilterInput = { - condition?: InputMaybe; - field?: InputMaybe; - operator?: InputMaybe; - treeId?: InputMaybe; - value?: InputMaybe; + condition?: InputMaybe; + field?: InputMaybe; + operator?: InputMaybe; + treeId?: InputMaybe; + value?: InputMaybe; }; export enum RecordFilterOperator { - AND = 'AND', - CLOSE_BRACKET = 'CLOSE_BRACKET', - OPEN_BRACKET = 'OPEN_BRACKET', - OR = 'OR' + AND = 'AND', + CLOSE_BRACKET = 'CLOSE_BRACKET', + OPEN_BRACKET = 'OPEN_BRACKET', + OR = 'OR' } export type RecordIdentityConfInput = { - color?: InputMaybe; - label?: InputMaybe; - preview?: InputMaybe; - subLabel?: InputMaybe; - treeColorPreview?: InputMaybe; + color?: InputMaybe; + label?: InputMaybe; + preview?: InputMaybe; + subLabel?: InputMaybe; + treeColorPreview?: InputMaybe; }; export type RecordInput = { - id: Scalars['ID']; - library: Scalars['String']; + id: Scalars['ID']; + library: Scalars['String']; }; export type RecordSortInput = { - field: Scalars['String']; - order: SortOrder; + field: Scalars['String']; + order: SortOrder; }; export type RecordUpdateFilterInput = { - ignoreOwnEvents?: InputMaybe; - libraries?: InputMaybe>; - records?: InputMaybe>; + ignoreOwnEvents?: InputMaybe; + libraries?: InputMaybe>; + records?: InputMaybe>; }; export type RecordsPagination = { - cursor?: InputMaybe; - limit: Scalars['Int']; - offset?: InputMaybe; + cursor?: InputMaybe; + limit: Scalars['Int']; + offset?: InputMaybe; }; export type SheetInput = { - keyIndex?: InputMaybe; - keyToIndex?: InputMaybe; - library: Scalars['String']; - linkAttribute?: InputMaybe; - mapping?: InputMaybe>>; - mode: ImportMode; - treeLinkLibrary?: InputMaybe; - type: ImportType; + keyIndex?: InputMaybe; + keyToIndex?: InputMaybe; + library: Scalars['String']; + linkAttribute?: InputMaybe; + mapping?: InputMaybe>>; + mode: ImportMode; + treeLinkLibrary?: InputMaybe; + type: ImportType; }; export type SortApiKeysInput = { - field: ApiKeysSortableFields; - order?: InputMaybe; + field: ApiKeysSortableFields; + order?: InputMaybe; }; export type SortApplications = { - field: ApplicationSortableFields; - order?: InputMaybe; + field: ApplicationSortableFields; + order?: InputMaybe; }; export type SortAttributes = { - field: AttributesSortableFields; - order?: InputMaybe; + field: AttributesSortableFields; + order?: InputMaybe; }; export type SortForms = { - field: FormsSortableFields; - order?: InputMaybe; + field: FormsSortableFields; + order?: InputMaybe; }; export type SortLibraries = { - field: LibrariesSortableFields; - order?: InputMaybe; + field: LibrariesSortableFields; + order?: InputMaybe; }; export enum SortOrder { - asc = 'asc', - desc = 'desc' + asc = 'asc', + desc = 'desc' } export type SortTrees = { - field: TreesSortableFields; - order?: InputMaybe; + field: TreesSortableFields; + order?: InputMaybe; }; export type SortVersionProfilesInput = { - field: VersionProfilesSortableFields; - order?: InputMaybe; + field: VersionProfilesSortableFields; + order?: InputMaybe; }; export type TaskFiltersInput = { - archive?: InputMaybe; - created_by?: InputMaybe; - id?: InputMaybe; - status?: InputMaybe; - type?: InputMaybe; + archive?: InputMaybe; + created_by?: InputMaybe; + id?: InputMaybe; + status?: InputMaybe; + type?: InputMaybe; }; export enum TaskStatus { - CANCELED = 'CANCELED', - CREATED = 'CREATED', - DONE = 'DONE', - FAILED = 'FAILED', - PENDING = 'PENDING', - PENDING_CANCEL = 'PENDING_CANCEL', - RUNNING = 'RUNNING' + CANCELED = 'CANCELED', + CREATED = 'CREATED', + DONE = 'DONE', + FAILED = 'FAILED', + PENDING = 'PENDING', + PENDING_CANCEL = 'PENDING_CANCEL', + RUNNING = 'RUNNING' } export enum TaskType { - EXPORT = 'EXPORT', - IMPORT_CONFIG = 'IMPORT_CONFIG', - IMPORT_DATA = 'IMPORT_DATA', - INDEXATION = 'INDEXATION' + EXPORT = 'EXPORT', + IMPORT_CONFIG = 'IMPORT_CONFIG', + IMPORT_DATA = 'IMPORT_DATA', + INDEXATION = 'INDEXATION' } export enum TreeBehavior { - files = 'files', - standard = 'standard' + files = 'files', + standard = 'standard' } export type TreeElementInput = { - id: Scalars['ID']; - library: Scalars['String']; + id: Scalars['ID']; + library: Scalars['String']; }; export type TreeEventFiltersInput = { - events?: InputMaybe>; - ignoreOwnEvents?: InputMaybe; - nodes?: InputMaybe>>; - treeId: Scalars['ID']; + events?: InputMaybe>; + ignoreOwnEvents?: InputMaybe; + nodes?: InputMaybe>>; + treeId: Scalars['ID']; }; export enum TreeEventTypes { - add = 'add', - move = 'move', - remove = 'remove' + add = 'add', + move = 'move', + remove = 'remove' } export type TreeInput = { - behavior?: InputMaybe; - id: Scalars['ID']; - label?: InputMaybe; - libraries?: InputMaybe>; - permissions_conf?: InputMaybe>; + behavior?: InputMaybe; + id: Scalars['ID']; + label?: InputMaybe; + libraries?: InputMaybe>; + permissions_conf?: InputMaybe>; }; export type TreeLibraryInput = { - library: Scalars['ID']; - settings: TreeLibrarySettingsInput; + library: Scalars['ID']; + settings: TreeLibrarySettingsInput; }; export type TreeLibrarySettingsInput = { - allowMultiplePositions: Scalars['Boolean']; - allowedAtRoot: Scalars['Boolean']; - allowedChildren: Array; + allowMultiplePositions: Scalars['Boolean']; + allowedAtRoot: Scalars['Boolean']; + allowedChildren: Array; }; export type TreeNodePermissionsConfInput = { - libraryId: Scalars['ID']; - permissionsConf: TreepermissionsConfInput; + libraryId: Scalars['ID']; + permissionsConf: TreepermissionsConfInput; }; export type TreepermissionsConfInput = { - permissionTreeAttributes: Array; - relation: PermissionsRelation; + permissionTreeAttributes: Array; + relation: PermissionsRelation; }; export type TreesFiltersInput = { - behavior?: InputMaybe; - id?: InputMaybe>; - label?: InputMaybe>; - library?: InputMaybe; - system?: InputMaybe; + behavior?: InputMaybe; + id?: InputMaybe>; + label?: InputMaybe>; + library?: InputMaybe; + system?: InputMaybe; }; export enum TreesSortableFields { - behavior = 'behavior', - id = 'id', - system = 'system' + behavior = 'behavior', + id = 'id', + system = 'system' } export type UploadFiltersInput = { - uid?: InputMaybe; - userId?: InputMaybe; + uid?: InputMaybe; + userId?: InputMaybe; }; export enum UserCoreDataKeys { - applications_consultation = 'applications_consultation' + applications_consultation = 'applications_consultation' } export type ValueBatchInput = { - attribute?: InputMaybe; - id_value?: InputMaybe; - metadata?: InputMaybe>>; - value?: InputMaybe; + attribute?: InputMaybe; + id_value?: InputMaybe; + metadata?: InputMaybe>>; + value?: InputMaybe; }; export type ValueInput = { - id_value?: InputMaybe; - metadata?: InputMaybe>>; - value?: InputMaybe; - version?: InputMaybe>>; + id_value?: InputMaybe; + metadata?: InputMaybe>>; + value?: InputMaybe; + version?: InputMaybe>>; }; export type ValueMetadataInput = { - name: Scalars['String']; - value?: InputMaybe; + name: Scalars['String']; + value?: InputMaybe; }; export type ValueVersionInput = { - treeId: Scalars['String']; - treeNodeId: Scalars['String']; + treeId: Scalars['String']; + treeNodeId: Scalars['String']; }; export enum ValueVersionMode { - simple = 'simple', - smart = 'smart' + simple = 'simple', + smart = 'smart' } export type ValuesListConfInput = { - allowFreeEntry?: InputMaybe; - enable: Scalars['Boolean']; - values?: InputMaybe>; + allowFreeEntry?: InputMaybe; + enable: Scalars['Boolean']; + values?: InputMaybe>; }; export type ValuesVersionsConfInput = { - mode?: InputMaybe; - profile?: InputMaybe; - versionable: Scalars['Boolean']; + mode?: InputMaybe; + profile?: InputMaybe; + versionable: Scalars['Boolean']; }; export type VersionProfileInput = { - description?: InputMaybe; - id: Scalars['String']; - label?: InputMaybe; - trees?: InputMaybe>; + description?: InputMaybe; + id: Scalars['String']; + label?: InputMaybe; + trees?: InputMaybe>; }; export type VersionProfilesFiltersInput = { - id?: InputMaybe; - label?: InputMaybe; - trees?: InputMaybe; + id?: InputMaybe; + label?: InputMaybe; + trees?: InputMaybe; }; export enum VersionProfilesSortableFields { - id = 'id' + id = 'id' } export type ViewDisplayInput = { - size: ViewSizes; - type: ViewTypes; + size: ViewSizes; + type: ViewTypes; }; export type ViewInput = { - color?: InputMaybe; - description?: InputMaybe; - display: ViewDisplayInput; - filters?: InputMaybe>; - id?: InputMaybe; - label?: InputMaybe; - library: Scalars['String']; - settings?: InputMaybe>; - shared: Scalars['Boolean']; - sort?: InputMaybe; - valuesVersions?: InputMaybe>; + color?: InputMaybe; + description?: InputMaybe; + display: ViewDisplayInput; + filters?: InputMaybe>; + id?: InputMaybe; + label?: InputMaybe; + library: Scalars['String']; + settings?: InputMaybe>; + shared: Scalars['Boolean']; + sort?: InputMaybe; + valuesVersions?: InputMaybe>; }; export type ViewSettingsInput = { - name: Scalars['String']; - value?: InputMaybe; + name: Scalars['String']; + value?: InputMaybe; }; export enum ViewSizes { - BIG = 'BIG', - MEDIUM = 'MEDIUM', - SMALL = 'SMALL' + BIG = 'BIG', + MEDIUM = 'MEDIUM', + SMALL = 'SMALL' } export enum ViewTypes { - cards = 'cards', - list = 'list', - timeline = 'timeline' + cards = 'cards', + list = 'list', + timeline = 'timeline' } export type ViewValuesVersionInput = { - treeId: Scalars['String']; - treeNode: Scalars['String']; + treeId: Scalars['String']; + treeNode: Scalars['String']; }; -export type DetailsApplicationFragment = { - id: string; - label: any; - type: ApplicationType; - description?: any | null; - endpoint?: string | null; - url?: string | null; - color?: string | null; - module?: string | null; - settings?: any | null; - icon?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - permissions: {access_application: boolean; admin_application: boolean}; -}; +export type DetailsApplicationFragment = { id: string, label: any, type: ApplicationType, description?: any | null, endpoint?: string | null, url?: string | null, color?: string | null, module?: string | null, settings?: any | null, icon?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, permissions: { access_application: boolean, admin_application: boolean } }; -export type RecordIdentityFragment = { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; -}; +export type RecordIdentityFragment = { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }; -export type AttributeDetailsLinkAttributeFragment = { - reverse_link?: string | null; - id: string; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - label?: any | null; - description?: any | null; - multiple_values: boolean; - linked_library?: {id: string; label?: any | null} | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - }> | null; - versions_conf?: { - versionable: boolean; - mode?: ValueVersionMode | null; - profile?: {id: string; label: any; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - libraries?: Array<{id: string; label?: any | null}> | null; -}; +export type AttributeDetailsLinkAttributeFragment = { reverse_link?: string | null, id: string, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, label?: any | null, description?: any | null, multiple_values: boolean, linked_library?: { id: string, label?: any | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, type: AttributeType, format?: AttributeFormat | null }> | null, versions_conf?: { versionable: boolean, mode?: ValueVersionMode | null, profile?: { id: string, label: any, trees: Array<{ id: string, label?: any | null }> } | null } | null, libraries?: Array<{ id: string, label?: any | null }> | null }; -export type AttributeDetailsStandardAttributeFragment = { - unique?: boolean | null; - id: string; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - label?: any | null; - description?: any | null; - multiple_values: boolean; - metadata_fields?: Array<{ - id: string; - label?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - }> | null; - versions_conf?: { - versionable: boolean; - mode?: ValueVersionMode | null; - profile?: {id: string; label: any; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - libraries?: Array<{id: string; label?: any | null}> | null; -}; +export type AttributeDetailsStandardAttributeFragment = { unique?: boolean | null, maxLength?: number | null, id: string, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, label?: any | null, description?: any | null, multiple_values: boolean, metadata_fields?: Array<{ id: string, label?: any | null, type: AttributeType, format?: AttributeFormat | null }> | null, versions_conf?: { versionable: boolean, mode?: ValueVersionMode | null, profile?: { id: string, label: any, trees: Array<{ id: string, label?: any | null }> } | null } | null, libraries?: Array<{ id: string, label?: any | null }> | null }; -export type AttributeDetailsTreeAttributeFragment = { - id: string; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - label?: any | null; - description?: any | null; - multiple_values: boolean; - linked_tree?: {id: string; label?: any | null} | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - }> | null; - versions_conf?: { - versionable: boolean; - mode?: ValueVersionMode | null; - profile?: {id: string; label: any; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - libraries?: Array<{id: string; label?: any | null}> | null; -}; +export type AttributeDetailsTreeAttributeFragment = { id: string, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, label?: any | null, description?: any | null, multiple_values: boolean, linked_tree?: { id: string, label?: any | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, type: AttributeType, format?: AttributeFormat | null }> | null, versions_conf?: { versionable: boolean, mode?: ValueVersionMode | null, profile?: { id: string, label: any, trees: Array<{ id: string, label?: any | null }> } | null } | null, libraries?: Array<{ id: string, label?: any | null }> | null }; -export type AttributeDetailsFragment = - | AttributeDetailsLinkAttributeFragment - | AttributeDetailsStandardAttributeFragment - | AttributeDetailsTreeAttributeFragment; - -export type AttributesByLibAttributeLinkAttributeFragment = { - id: string; - type: AttributeType; - format?: AttributeFormat | null; - label?: any | null; - multiple_values: boolean; - system: boolean; - readonly: boolean; - linked_library?: {id: string} | null; -}; +export type AttributeDetailsFragment = AttributeDetailsLinkAttributeFragment | AttributeDetailsStandardAttributeFragment | AttributeDetailsTreeAttributeFragment; -export type AttributesByLibAttributeStandardAttributeFragment = { - id: string; - type: AttributeType; - format?: AttributeFormat | null; - label?: any | null; - multiple_values: boolean; - system: boolean; - readonly: boolean; - embedded_fields?: Array<{id: string; format?: AttributeFormat | null; label?: any | null} | null> | null; -}; +export type AttributesByLibAttributeLinkAttributeFragment = { id: string, type: AttributeType, format?: AttributeFormat | null, label?: any | null, multiple_values: boolean, system: boolean, readonly: boolean, linked_library?: { id: string } | null }; -export type AttributesByLibAttributeTreeAttributeFragment = { - id: string; - type: AttributeType; - format?: AttributeFormat | null; - label?: any | null; - multiple_values: boolean; - system: boolean; - readonly: boolean; - linked_tree?: { - id: string; - label?: any | null; - libraries: Array<{library: {id: string; label?: any | null}}>; - } | null; -}; +export type AttributesByLibAttributeStandardAttributeFragment = { id: string, type: AttributeType, format?: AttributeFormat | null, label?: any | null, multiple_values: boolean, system: boolean, readonly: boolean, embedded_fields?: Array<{ id: string, format?: AttributeFormat | null, label?: any | null } | null> | null }; -export type AttributesByLibAttributeFragment = - | AttributesByLibAttributeLinkAttributeFragment - | AttributesByLibAttributeStandardAttributeFragment - | AttributesByLibAttributeTreeAttributeFragment; +export type AttributesByLibAttributeTreeAttributeFragment = { id: string, type: AttributeType, format?: AttributeFormat | null, label?: any | null, multiple_values: boolean, system: boolean, readonly: boolean, linked_tree?: { id: string, label?: any | null, libraries: Array<{ library: { id: string, label?: any | null } }> } | null }; -export type LibraryLightFragment = { - id: string; - label?: any | null; - icon?: {id: string; whoAmI: {id: string; preview?: IPreviewScalar | null; library: {id: string}}} | null; -}; +export type AttributesByLibAttributeFragment = AttributesByLibAttributeLinkAttributeFragment | AttributesByLibAttributeStandardAttributeFragment | AttributesByLibAttributeTreeAttributeFragment; -export type LibraryDetailsFragment = { - id: string; - label?: any | null; - behavior: LibraryBehavior; - system?: boolean | null; - fullTextAttributes?: Array<{id: string; label?: any | null}> | null; - attributes?: Array< - | { - id: string; - label?: any | null; - system: boolean; - type: AttributeType; - format?: AttributeFormat | null; - linked_library?: {id: string; behavior: LibraryBehavior} | null; - } - | {id: string; label?: any | null; system: boolean; type: AttributeType; format?: AttributeFormat | null} - > | null; - permissions_conf?: { - relation: PermissionsRelation; - permissionTreeAttributes: Array< - {id: string; label?: any | null} | {id: string; label?: any | null; linked_tree?: {id: string} | null} - >; - } | null; - recordIdentityConf?: { - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: string | null; - treeColorPreview?: string | null; - } | null; - permissions?: { - admin_library: boolean; - access_library: boolean; - access_record: boolean; - create_record: boolean; - edit_record: boolean; - delete_record: boolean; - } | null; - icon?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - previewsSettings?: Array<{ - label: any; - description?: any | null; - system: boolean; - versions: {background: string; density: number; sizes: Array<{name: string; size: number}>}; - }> | null; -}; +export type LibraryLightFragment = { id: string, label?: any | null, icon?: { id: string, whoAmI: { id: string, preview?: IPreviewScalar | null, library: { id: string } } } | null }; -export type LibraryAttributesLinkAttributeFragment = { - id: string; - label?: any | null; - system: boolean; - type: AttributeType; - format?: AttributeFormat | null; - linked_library?: {id: string; behavior: LibraryBehavior} | null; -}; +export type LibraryDetailsFragment = { id: string, label?: any | null, behavior: LibraryBehavior, system?: boolean | null, fullTextAttributes?: Array<{ id: string, label?: any | null }> | null, attributes?: Array<{ id: string, label?: any | null, system: boolean, type: AttributeType, format?: AttributeFormat | null, linked_library?: { id: string, behavior: LibraryBehavior } | null } | { id: string, label?: any | null, system: boolean, type: AttributeType, format?: AttributeFormat | null }> | null, permissions_conf?: { relation: PermissionsRelation, permissionTreeAttributes: Array<{ id: string, label?: any | null } | { id: string, label?: any | null, linked_tree?: { id: string } | null }> } | null, recordIdentityConf?: { label?: string | null, subLabel?: string | null, color?: string | null, preview?: string | null, treeColorPreview?: string | null } | null, permissions?: { admin_library: boolean, access_library: boolean, access_record: boolean, create_record: boolean, edit_record: boolean, delete_record: boolean } | null, icon?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, previewsSettings?: Array<{ label: any, description?: any | null, system: boolean, versions: { background: string, density: number, sizes: Array<{ name: string, size: number }> } }> | null }; -export type LibraryAttributesStandardAttributeTreeAttributeFragment = { - id: string; - label?: any | null; - system: boolean; - type: AttributeType; - format?: AttributeFormat | null; -}; +export type LibraryAttributesLinkAttributeFragment = { id: string, label?: any | null, system: boolean, type: AttributeType, format?: AttributeFormat | null, linked_library?: { id: string, behavior: LibraryBehavior } | null }; -export type LibraryAttributesFragment = - | LibraryAttributesLinkAttributeFragment - | LibraryAttributesStandardAttributeTreeAttributeFragment; +export type LibraryAttributesStandardAttributeTreeAttributeFragment = { id: string, label?: any | null, system: boolean, type: AttributeType, format?: AttributeFormat | null }; -export type LibraryLinkAttributeDetailsFragment = {linked_library?: {id: string; behavior: LibraryBehavior} | null}; +export type LibraryAttributesFragment = LibraryAttributesLinkAttributeFragment | LibraryAttributesStandardAttributeTreeAttributeFragment; -export type LibraryPreviewsSettingsFragment = { - label: any; - description?: any | null; - system: boolean; - versions: {background: string; density: number; sizes: Array<{name: string; size: number}>}; -}; +export type LibraryLinkAttributeDetailsFragment = { linked_library?: { id: string, behavior: LibraryBehavior } | null }; -export type RecordFormElementFragment = { - id: string; - containerId: string; - uiElementType: string; - type: FormElementTypes; - valueError?: string | null; - values?: Array< - | { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - linkValue?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: {id: string; format?: AttributeFormat | null; type: AttributeType; system: boolean} | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - | { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - treeValue?: { - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - ancestors?: Array<{ - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }> | null; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: {id: string; format?: AttributeFormat | null; type: AttributeType; system: boolean} | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - | { - value?: any | null; - raw_value?: any | null; - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: {id: string; format?: AttributeFormat | null; type: AttributeType; system: boolean} | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - > | null; - attribute?: - | { - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - linked_library?: { - id: string; - label?: any | null; - behavior: LibraryBehavior; - permissions?: {create_record: boolean} | null; - } | null; - linkValuesList?: { - enable: boolean; - allowFreeEntry?: boolean | null; - values?: Array<{ - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }> | null; - } | null; - permissions: {access_attribute: boolean; edit_value: boolean}; - versions_conf?: { - versionable: boolean; - profile?: {id: string; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - permissions: {access_attribute: boolean; edit_value: boolean}; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - metadata_fields?: Array<{id: string}> | null; - }> | null; - } - | { - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - permissions: {access_attribute: boolean; edit_value: boolean}; - versions_conf?: { - versionable: boolean; - profile?: {id: string; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - permissions: {access_attribute: boolean; edit_value: boolean}; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - metadata_fields?: Array<{id: string}> | null; - }> | null; - } - | { - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - linked_tree?: {id: string; label?: any | null} | null; - treeValuesList?: { - enable: boolean; - allowFreeEntry?: boolean | null; - values?: Array<{ - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - ancestors?: Array<{ - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }> | null; - }> | null; - } | null; - permissions: {access_attribute: boolean; edit_value: boolean}; - versions_conf?: { - versionable: boolean; - profile?: {id: string; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - permissions: {access_attribute: boolean; edit_value: boolean}; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - metadata_fields?: Array<{id: string}> | null; - }> | null; - } - | null; - settings: Array<{key: string; value: any}>; -}; +export type LibraryPreviewsSettingsFragment = { label: any, description?: any | null, system: boolean, versions: { background: string, density: number, sizes: Array<{ name: string, size: number }> } }; -export type ValueDetailsLinkValueFragment = { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - linkValue?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: {id: string; format?: AttributeFormat | null; type: AttributeType; system: boolean} | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - } | null; - } | null> | null; -}; +export type RecordFormElementFragment = { id: string, containerId: string, uiElementType: string, type: FormElementTypes, valueError?: string | null, values?: Array<{ id_value?: string | null, modified_at?: number | null, created_at?: number | null, linkValue?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } | { id_value?: string | null, modified_at?: number | null, created_at?: number | null, treeValue?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }, ancestors?: Array<{ record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> | null } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } | { value?: any | null, raw_value?: any | null, id_value?: string | null, modified_at?: number | null, created_at?: number | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null }> | null, attribute?: { id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, linked_library?: { id: string, label?: any | null, behavior: LibraryBehavior, permissions?: { create_record: boolean } | null } | null, linkValuesList?: { enable: boolean, allowFreeEntry?: boolean | null, values?: Array<{ id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }> | null } | null, permissions: { access_attribute: boolean, edit_value: boolean }, versions_conf?: { versionable: boolean, profile?: { id: string, trees: Array<{ id: string, label?: any | null }> } | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, permissions: { access_attribute: boolean, edit_value: boolean }, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, metadata_fields?: Array<{ id: string }> | null }> | null } | { id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, permissions: { access_attribute: boolean, edit_value: boolean }, versions_conf?: { versionable: boolean, profile?: { id: string, trees: Array<{ id: string, label?: any | null }> } | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, permissions: { access_attribute: boolean, edit_value: boolean }, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, metadata_fields?: Array<{ id: string }> | null }> | null } | { id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, linked_tree?: { id: string, label?: any | null } | null, treeValuesList?: { enable: boolean, allowFreeEntry?: boolean | null, values?: Array<{ id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }, ancestors?: Array<{ record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> | null }> | null } | null, permissions: { access_attribute: boolean, edit_value: boolean }, versions_conf?: { versionable: boolean, profile?: { id: string, trees: Array<{ id: string, label?: any | null }> } | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, permissions: { access_attribute: boolean, edit_value: boolean }, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, metadata_fields?: Array<{ id: string }> | null }> | null } | null, settings: Array<{ key: string, value: any }> }; -export type ValueDetailsTreeValueFragment = { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - treeValue?: { - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - ancestors?: Array<{ - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }> | null; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: {id: string; format?: AttributeFormat | null; type: AttributeType; system: boolean} | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - } | null; - } | null> | null; -}; +export type ValueDetailsLinkValueFragment = { id_value?: string | null, modified_at?: number | null, created_at?: number | null, linkValue?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null }; -export type ValueDetailsValueFragment = { - value?: any | null; - raw_value?: any | null; - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: {id: string; format?: AttributeFormat | null; type: AttributeType; system: boolean} | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - } | null; - } | null> | null; -}; +export type ValueDetailsTreeValueFragment = { id_value?: string | null, modified_at?: number | null, created_at?: number | null, treeValue?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }, ancestors?: Array<{ record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> | null } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null }; -export type ValueDetailsFragment = - | ValueDetailsLinkValueFragment - | ValueDetailsTreeValueFragment - | ValueDetailsValueFragment; - -export type ValuesVersionDetailsFragment = { - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; -}; +export type ValueDetailsValueFragment = { value?: any | null, raw_value?: any | null, id_value?: string | null, modified_at?: number | null, created_at?: number | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null }; -export type RecordFormAttributeLinkAttributeFragment = { - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - linked_library?: { - id: string; - label?: any | null; - behavior: LibraryBehavior; - permissions?: {create_record: boolean} | null; - } | null; - linkValuesList?: { - enable: boolean; - allowFreeEntry?: boolean | null; - values?: Array<{ - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }> | null; - } | null; - permissions: {access_attribute: boolean; edit_value: boolean}; - versions_conf?: { - versionable: boolean; - profile?: {id: string; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - permissions: {access_attribute: boolean; edit_value: boolean}; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - metadata_fields?: Array<{id: string}> | null; - }> | null; -}; +export type ValueDetailsFragment = ValueDetailsLinkValueFragment | ValueDetailsTreeValueFragment | ValueDetailsValueFragment; -export type RecordFormAttributeStandardAttributeFragment = { - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - permissions: {access_attribute: boolean; edit_value: boolean}; - versions_conf?: { - versionable: boolean; - profile?: {id: string; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - permissions: {access_attribute: boolean; edit_value: boolean}; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - metadata_fields?: Array<{id: string}> | null; - }> | null; -}; +export type ValuesVersionDetailsFragment = { treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null }; -export type RecordFormAttributeTreeAttributeFragment = { - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - linked_tree?: {id: string; label?: any | null} | null; - treeValuesList?: { - enable: boolean; - allowFreeEntry?: boolean | null; - values?: Array<{ - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - ancestors?: Array<{ - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }> | null; - }> | null; - } | null; - permissions: {access_attribute: boolean; edit_value: boolean}; - versions_conf?: { - versionable: boolean; - profile?: {id: string; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - permissions: {access_attribute: boolean; edit_value: boolean}; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - metadata_fields?: Array<{id: string}> | null; - }> | null; -}; +export type RecordFormAttributeLinkAttributeFragment = { id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, linked_library?: { id: string, label?: any | null, behavior: LibraryBehavior, permissions?: { create_record: boolean } | null } | null, linkValuesList?: { enable: boolean, allowFreeEntry?: boolean | null, values?: Array<{ id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }> | null } | null, permissions: { access_attribute: boolean, edit_value: boolean }, versions_conf?: { versionable: boolean, profile?: { id: string, trees: Array<{ id: string, label?: any | null }> } | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, permissions: { access_attribute: boolean, edit_value: boolean }, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, metadata_fields?: Array<{ id: string }> | null }> | null }; -export type RecordFormAttributeFragment = - | RecordFormAttributeLinkAttributeFragment - | RecordFormAttributeStandardAttributeFragment - | RecordFormAttributeTreeAttributeFragment; +export type RecordFormAttributeStandardAttributeFragment = { id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, permissions: { access_attribute: boolean, edit_value: boolean }, versions_conf?: { versionable: boolean, profile?: { id: string, trees: Array<{ id: string, label?: any | null }> } | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, permissions: { access_attribute: boolean, edit_value: boolean }, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, metadata_fields?: Array<{ id: string }> | null }> | null }; -export type StandardValuesListFragmentStandardDateRangeValuesListConfFragment = { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; -}; +export type RecordFormAttributeTreeAttributeFragment = { id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, linked_tree?: { id: string, label?: any | null } | null, treeValuesList?: { enable: boolean, allowFreeEntry?: boolean | null, values?: Array<{ id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }, ancestors?: Array<{ record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> | null }> | null } | null, permissions: { access_attribute: boolean, edit_value: boolean }, versions_conf?: { versionable: boolean, profile?: { id: string, trees: Array<{ id: string, label?: any | null }> } | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, permissions: { access_attribute: boolean, edit_value: boolean }, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, metadata_fields?: Array<{ id: string }> | null }> | null }; -export type StandardValuesListFragmentStandardStringValuesListConfFragment = { - enable: boolean; - allowFreeEntry?: boolean | null; - values?: Array | null; -}; +export type RecordFormAttributeFragment = RecordFormAttributeLinkAttributeFragment | RecordFormAttributeStandardAttributeFragment | RecordFormAttributeTreeAttributeFragment; -export type StandardValuesListFragmentFragment = - | StandardValuesListFragmentStandardDateRangeValuesListConfFragment - | StandardValuesListFragmentStandardStringValuesListConfFragment; - -export type TreeDetailsFragment = { - id: string; - label?: any | null; - behavior: TreeBehavior; - system: boolean; - libraries: Array<{ - library: {id: string; label?: any | null}; - settings: {allowMultiplePositions: boolean; allowedAtRoot: boolean; allowedChildren: Array}; - }>; -}; +export type StandardValuesListFragmentStandardDateRangeValuesListConfFragment = { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null }; -export type TreeLightFragment = {id: string; label?: any | null}; - -export type TreeNodeChildFragment = { - id: string; - order?: number | null; - childrenCount?: number | null; - record: { - id: string; - active?: Array<{value?: any | null}> | null; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - ancestors?: Array<{ - id: string; - record: { - id: string; - library: {id: string; label?: any | null}; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }> | null; - permissions: {access_tree: boolean; detach: boolean; edit_children: boolean}; -}; +export type StandardValuesListFragmentStandardStringValuesListConfFragment = { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null }; -export type ViewDetailsFragment = { - id: string; - shared: boolean; - label: any; - description?: any | null; - color?: string | null; - display: {size: ViewSizes; type: ViewTypes}; - created_by: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - filters?: Array<{ - field?: string | null; - value?: string | null; - condition?: RecordFilterCondition | null; - operator?: RecordFilterOperator | null; - tree?: {id: string; label?: any | null} | null; - }> | null; - sort?: {field: string; order: SortOrder} | null; - valuesVersions?: Array<{ - treeId: string; - treeNode: { - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }; - }> | null; - settings?: Array<{name: string; value?: any | null}> | null; -}; +export type StandardValuesListFragmentFragment = StandardValuesListFragmentStandardDateRangeValuesListConfFragment | StandardValuesListFragmentStandardStringValuesListConfFragment; + +export type TreeDetailsFragment = { id: string, label?: any | null, behavior: TreeBehavior, system: boolean, libraries: Array<{ library: { id: string, label?: any | null }, settings: { allowMultiplePositions: boolean, allowedAtRoot: boolean, allowedChildren: Array } }> }; + +export type TreeLightFragment = { id: string, label?: any | null }; + +export type TreeNodeChildFragment = { id: string, order?: number | null, childrenCount?: number | null, record: { id: string, active?: Array<{ value?: any | null }> | null, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }, ancestors?: Array<{ id: string, record: { id: string, library: { id: string, label?: any | null }, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> | null, permissions: { access_tree: boolean, detach: boolean, edit_children: boolean } }; + +export type ViewDetailsFragment = { id: string, shared: boolean, label: any, description?: any | null, color?: string | null, display: { size: ViewSizes, type: ViewTypes }, created_by: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } }, filters?: Array<{ field?: string | null, value?: string | null, condition?: RecordFilterCondition | null, operator?: RecordFilterOperator | null, tree?: { id: string, label?: any | null } | null }> | null, sort?: { field: string, order: SortOrder } | null, valuesVersions?: Array<{ treeId: string, treeNode: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } } }> | null, settings?: Array<{ name: string, value?: any | null }> | null }; export type CheckApplicationExistenceQueryVariables = Exact<{ - id?: InputMaybe; - endpoint?: InputMaybe; + id?: InputMaybe; + endpoint?: InputMaybe; }>; -export type CheckApplicationExistenceQuery = {applications?: {totalCount: number} | null}; + +export type CheckApplicationExistenceQuery = { applications?: { totalCount: number } | null }; export type GetApplicationByIdQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetApplicationByIdQuery = { - applications?: { - list: Array<{ - id: string; - label: any; - type: ApplicationType; - description?: any | null; - endpoint?: string | null; - url?: string | null; - color?: string | null; - module?: string | null; - settings?: any | null; - icon?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - permissions: {access_application: boolean; admin_application: boolean}; - }>; - } | null; -}; -export type GetApplicationModulesQueryVariables = Exact<{[key: string]: never}>; +export type GetApplicationByIdQuery = { applications?: { list: Array<{ id: string, label: any, type: ApplicationType, description?: any | null, endpoint?: string | null, url?: string | null, color?: string | null, module?: string | null, settings?: any | null, icon?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, permissions: { access_application: boolean, admin_application: boolean } }> } | null }; -export type GetApplicationModulesQuery = { - applicationsModules: Array<{id: string; description?: string | null; version?: string | null}>; -}; +export type GetApplicationModulesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetApplicationModulesQuery = { applicationsModules: Array<{ id: string, description?: string | null, version?: string | null }> }; export type SaveApplicationMutationVariables = Exact<{ - application: ApplicationInput; + application: ApplicationInput; }>; -export type SaveApplicationMutation = { - saveApplication: { - id: string; - label: any; - type: ApplicationType; - description?: any | null; - endpoint?: string | null; - url?: string | null; - color?: string | null; - module?: string | null; - settings?: any | null; - icon?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - permissions: {access_application: boolean; admin_application: boolean}; - }; -}; + +export type SaveApplicationMutation = { saveApplication: { id: string, label: any, type: ApplicationType, description?: any | null, endpoint?: string | null, url?: string | null, color?: string | null, module?: string | null, settings?: any | null, icon?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, permissions: { access_application: boolean, admin_application: boolean } } }; export type CheckAttributeExistenceQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type CheckAttributeExistenceQuery = {attributes?: {totalCount: number} | null}; + +export type CheckAttributeExistenceQuery = { attributes?: { totalCount: number } | null }; export type DeleteAttributeMutationVariables = Exact<{ - id?: InputMaybe; + id?: InputMaybe; }>; -export type DeleteAttributeMutation = {deleteAttribute: {id: string}}; + +export type DeleteAttributeMutation = { deleteAttribute: { id: string } }; export type GetAttributeByIdQueryVariables = Exact<{ - id?: InputMaybe; + id?: InputMaybe; }>; -export type GetAttributeByIdQuery = { - attributes?: { - list: Array< - | { - reverse_link?: string | null; - id: string; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - label?: any | null; - description?: any | null; - multiple_values: boolean; - linked_library?: {id: string; label?: any | null} | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - }> | null; - versions_conf?: { - versionable: boolean; - mode?: ValueVersionMode | null; - profile?: {id: string; label: any; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - libraries?: Array<{id: string; label?: any | null}> | null; - } - | { - unique?: boolean | null; - id: string; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - label?: any | null; - description?: any | null; - multiple_values: boolean; - metadata_fields?: Array<{ - id: string; - label?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - }> | null; - versions_conf?: { - versionable: boolean; - mode?: ValueVersionMode | null; - profile?: {id: string; label: any; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - libraries?: Array<{id: string; label?: any | null}> | null; - } - | { - id: string; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - label?: any | null; - description?: any | null; - multiple_values: boolean; - linked_tree?: {id: string; label?: any | null} | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - }> | null; - versions_conf?: { - versionable: boolean; - mode?: ValueVersionMode | null; - profile?: {id: string; label: any; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - libraries?: Array<{id: string; label?: any | null}> | null; - } - >; - } | null; -}; + +export type GetAttributeByIdQuery = { attributes?: { list: Array<{ reverse_link?: string | null, id: string, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, label?: any | null, description?: any | null, multiple_values: boolean, linked_library?: { id: string, label?: any | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, type: AttributeType, format?: AttributeFormat | null }> | null, versions_conf?: { versionable: boolean, mode?: ValueVersionMode | null, profile?: { id: string, label: any, trees: Array<{ id: string, label?: any | null }> } | null } | null, libraries?: Array<{ id: string, label?: any | null }> | null } | { unique?: boolean | null, maxLength?: number | null, id: string, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, label?: any | null, description?: any | null, multiple_values: boolean, metadata_fields?: Array<{ id: string, label?: any | null, type: AttributeType, format?: AttributeFormat | null }> | null, versions_conf?: { versionable: boolean, mode?: ValueVersionMode | null, profile?: { id: string, label: any, trees: Array<{ id: string, label?: any | null }> } | null } | null, libraries?: Array<{ id: string, label?: any | null }> | null } | { id: string, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, label?: any | null, description?: any | null, multiple_values: boolean, linked_tree?: { id: string, label?: any | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, type: AttributeType, format?: AttributeFormat | null }> | null, versions_conf?: { versionable: boolean, mode?: ValueVersionMode | null, profile?: { id: string, label: any, trees: Array<{ id: string, label?: any | null }> } | null } | null, libraries?: Array<{ id: string, label?: any | null }> | null }> } | null }; export type GetAttributesByLibQueryVariables = Exact<{ - library: Scalars['String']; + library: Scalars['String']; }>; -export type GetAttributesByLibQuery = { - attributes?: { - list: Array< - | { - id: string; - type: AttributeType; - format?: AttributeFormat | null; - label?: any | null; - multiple_values: boolean; - system: boolean; - readonly: boolean; - linked_library?: {id: string} | null; - } - | { - id: string; - type: AttributeType; - format?: AttributeFormat | null; - label?: any | null; - multiple_values: boolean; - system: boolean; - readonly: boolean; - embedded_fields?: Array<{ - id: string; - format?: AttributeFormat | null; - label?: any | null; - } | null> | null; - } - | { - id: string; - type: AttributeType; - format?: AttributeFormat | null; - label?: any | null; - multiple_values: boolean; - system: boolean; - readonly: boolean; - linked_tree?: { - id: string; - label?: any | null; - libraries: Array<{library: {id: string; label?: any | null}}>; - } | null; - } - >; - } | null; -}; + +export type GetAttributesByLibQuery = { attributes?: { list: Array<{ id: string, type: AttributeType, format?: AttributeFormat | null, label?: any | null, multiple_values: boolean, system: boolean, readonly: boolean, linked_library?: { id: string } | null } | { id: string, type: AttributeType, format?: AttributeFormat | null, label?: any | null, multiple_values: boolean, system: boolean, readonly: boolean, embedded_fields?: Array<{ id: string, format?: AttributeFormat | null, label?: any | null } | null> | null } | { id: string, type: AttributeType, format?: AttributeFormat | null, label?: any | null, multiple_values: boolean, system: boolean, readonly: boolean, linked_tree?: { id: string, label?: any | null, libraries: Array<{ library: { id: string, label?: any | null } }> } | null }> } | null }; export type GetAttributesQueryVariables = Exact<{ - pagination?: InputMaybe; - sort?: InputMaybe; - filters?: InputMaybe; + pagination?: InputMaybe; + sort?: InputMaybe; + filters?: InputMaybe; }>; -export type GetAttributesQuery = { - attributes?: { - totalCount: number; - list: Array<{ - id: string; - label?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - }>; - } | null; -}; + +export type GetAttributesQuery = { attributes?: { totalCount: number, list: Array<{ id: string, label?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean }> } | null }; export type GetVersionProfilesQueryVariables = Exact<{ - filters?: InputMaybe; - sort?: InputMaybe; + filters?: InputMaybe; + sort?: InputMaybe; }>; -export type GetVersionProfilesQuery = {versionProfiles: {list: Array<{id: string; label: any}>}}; + +export type GetVersionProfilesQuery = { versionProfiles: { list: Array<{ id: string, label: any }> } }; export type GetVersionableAttributesByLibraryQueryVariables = Exact<{ - libraryId: Scalars['String']; + libraryId: Scalars['String']; }>; -export type GetVersionableAttributesByLibraryQuery = { - attributes?: { - list: Array<{ - id: string; - versions_conf?: { - versionable: boolean; - profile?: {id: string; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - }>; - } | null; -}; + +export type GetVersionableAttributesByLibraryQuery = { attributes?: { list: Array<{ id: string, versions_conf?: { versionable: boolean, profile?: { id: string, trees: Array<{ id: string, label?: any | null }> } | null } | null }> } | null }; export type SaveAttributeMutationVariables = Exact<{ - attribute: AttributeInput; + attribute: AttributeInput; }>; -export type SaveAttributeMutation = { - saveAttribute: - | { - reverse_link?: string | null; - id: string; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - label?: any | null; - description?: any | null; - multiple_values: boolean; - linked_library?: {id: string; label?: any | null} | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - }> | null; - versions_conf?: { - versionable: boolean; - mode?: ValueVersionMode | null; - profile?: {id: string; label: any; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - libraries?: Array<{id: string; label?: any | null}> | null; - } - | { - unique?: boolean | null; - id: string; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - label?: any | null; - description?: any | null; - multiple_values: boolean; - metadata_fields?: Array<{ - id: string; - label?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - }> | null; - versions_conf?: { - versionable: boolean; - mode?: ValueVersionMode | null; - profile?: {id: string; label: any; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - libraries?: Array<{id: string; label?: any | null}> | null; - } - | { - id: string; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - label?: any | null; - description?: any | null; - multiple_values: boolean; - linked_tree?: {id: string; label?: any | null} | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - }> | null; - versions_conf?: { - versionable: boolean; - mode?: ValueVersionMode | null; - profile?: {id: string; label: any; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - libraries?: Array<{id: string; label?: any | null}> | null; - }; -}; + +export type SaveAttributeMutation = { saveAttribute: { reverse_link?: string | null, id: string, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, label?: any | null, description?: any | null, multiple_values: boolean, linked_library?: { id: string, label?: any | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, type: AttributeType, format?: AttributeFormat | null }> | null, versions_conf?: { versionable: boolean, mode?: ValueVersionMode | null, profile?: { id: string, label: any, trees: Array<{ id: string, label?: any | null }> } | null } | null, libraries?: Array<{ id: string, label?: any | null }> | null } | { unique?: boolean | null, maxLength?: number | null, id: string, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, label?: any | null, description?: any | null, multiple_values: boolean, metadata_fields?: Array<{ id: string, label?: any | null, type: AttributeType, format?: AttributeFormat | null }> | null, versions_conf?: { versionable: boolean, mode?: ValueVersionMode | null, profile?: { id: string, label: any, trees: Array<{ id: string, label?: any | null }> } | null } | null, libraries?: Array<{ id: string, label?: any | null }> | null } | { id: string, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, label?: any | null, description?: any | null, multiple_values: boolean, linked_tree?: { id: string, label?: any | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, type: AttributeType, format?: AttributeFormat | null }> | null, versions_conf?: { versionable: boolean, mode?: ValueVersionMode | null, profile?: { id: string, label: any, trees: Array<{ id: string, label?: any | null }> } | null } | null, libraries?: Array<{ id: string, label?: any | null }> | null } }; export type ExportQueryVariables = Exact<{ - library: Scalars['ID']; - attributes?: InputMaybe | Scalars['ID']>; - filters?: InputMaybe | RecordFilterInput>; + library: Scalars['ID']; + attributes?: InputMaybe | Scalars['ID']>; + filters?: InputMaybe | RecordFilterInput>; }>; -export type ExportQuery = {export: string}; + +export type ExportQuery = { export: string }; export type CreateDirectoryMutationVariables = Exact<{ - library: Scalars['String']; - nodeId: Scalars['String']; - name: Scalars['String']; + library: Scalars['String']; + nodeId: Scalars['String']; + name: Scalars['String']; }>; -export type CreateDirectoryMutation = { - createDirectory: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; -}; + +export type CreateDirectoryMutation = { createDirectory: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }; export type ForcePreviewsGenerationMutationVariables = Exact<{ - libraryId: Scalars['ID']; - filters?: InputMaybe | RecordFilterInput>; - recordIds?: InputMaybe | Scalars['ID']>; - failedOnly?: InputMaybe; - previewVersionSizeNames?: InputMaybe | Scalars['String']>; + libraryId: Scalars['ID']; + filters?: InputMaybe | RecordFilterInput>; + recordIds?: InputMaybe | Scalars['ID']>; + failedOnly?: InputMaybe; + previewVersionSizeNames?: InputMaybe | Scalars['String']>; }>; -export type ForcePreviewsGenerationMutation = {forcePreviewsGeneration: boolean}; + +export type ForcePreviewsGenerationMutation = { forcePreviewsGeneration: boolean }; export type GetDirectoryDataQueryVariables = Exact<{ - library: Scalars['ID']; - directoryId: Scalars['String']; + library: Scalars['ID']; + directoryId: Scalars['String']; }>; -export type GetDirectoryDataQuery = { - records: { - list: Array<{ - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - created_at?: Array<{value?: any | null}> | null; - created_by?: Array<{ - value?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - }> | null; - modified_at?: Array<{value?: any | null}> | null; - modified_by?: Array<{ - value?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - }> | null; - file_name?: Array<{value?: any | null}> | null; - file_path?: Array<{value?: any | null}> | null; - library: {behavior: LibraryBehavior}; - }>; - }; -}; + +export type GetDirectoryDataQuery = { records: { list: Array<{ id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } }, created_at?: Array<{ value?: any | null }> | null, created_by?: Array<{ value?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null }> | null, modified_at?: Array<{ value?: any | null }> | null, modified_by?: Array<{ value?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null }> | null, file_name?: Array<{ value?: any | null }> | null, file_path?: Array<{ value?: any | null }> | null, library: { behavior: LibraryBehavior } }> } }; export type UploadUpdateSubscriptionVariables = Exact<{ - filters?: InputMaybe; + filters?: InputMaybe; }>; -export type UploadUpdateSubscription = { - upload: { - userId: string; - uid: string; - progress: { - length?: number | null; - transferred?: number | null; - speed?: number | null; - runtime?: number | null; - remaining?: number | null; - percentage?: number | null; - eta?: number | null; - delta?: number | null; - }; - }; -}; + +export type UploadUpdateSubscription = { upload: { userId: string, uid: string, progress: { length?: number | null, transferred?: number | null, speed?: number | null, runtime?: number | null, remaining?: number | null, percentage?: number | null, eta?: number | null, delta?: number | null } } }; export type UploadMutationVariables = Exact<{ - library: Scalars['String']; - nodeId: Scalars['String']; - files: Array | FileInput; + library: Scalars['String']; + nodeId: Scalars['String']; + files: Array | FileInput; }>; -export type UploadMutation = { - upload: Array<{ - uid: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }>; -}; + +export type UploadMutation = { upload: Array<{ uid: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> }; export type ImportExcelMutationVariables = Exact<{ - file: Scalars['Upload']; - sheets?: InputMaybe> | InputMaybe>; - startAt?: InputMaybe; + file: Scalars['Upload']; + sheets?: InputMaybe> | InputMaybe>; + startAt?: InputMaybe; }>; -export type ImportExcelMutation = {importExcel: string}; + +export type ImportExcelMutation = { importExcel: string }; export type CheckLibraryExistenceQueryVariables = Exact<{ - id?: InputMaybe | Scalars['ID']>; + id?: InputMaybe | Scalars['ID']>; }>; -export type CheckLibraryExistenceQuery = {libraries?: {totalCount: number} | null}; + +export type CheckLibraryExistenceQuery = { libraries?: { totalCount: number } | null }; export type DeleteLibraryMutationVariables = Exact<{ - id?: InputMaybe; + id?: InputMaybe; }>; -export type DeleteLibraryMutation = {deleteLibrary: {id: string}}; -export type GetLibrariesQueryVariables = Exact<{[key: string]: never}>; +export type DeleteLibraryMutation = { deleteLibrary: { id: string } }; + +export type GetLibrariesQueryVariables = Exact<{ [key: string]: never; }>; -export type GetLibrariesQuery = { - libraries?: { - list: Array<{ - id: string; - label?: any | null; - icon?: {id: string; whoAmI: {id: string; preview?: IPreviewScalar | null; library: {id: string}}} | null; - }>; - } | null; -}; + +export type GetLibrariesQuery = { libraries?: { list: Array<{ id: string, label?: any | null, icon?: { id: string, whoAmI: { id: string, preview?: IPreviewScalar | null, library: { id: string } } } | null }> } | null }; export type GetLibraryByIdQueryVariables = Exact<{ - id?: InputMaybe | Scalars['ID']>; + id?: InputMaybe | Scalars['ID']>; }>; -export type GetLibraryByIdQuery = { - libraries?: { - list: Array<{ - id: string; - label?: any | null; - behavior: LibraryBehavior; - system?: boolean | null; - fullTextAttributes?: Array<{id: string; label?: any | null}> | null; - attributes?: Array< - | { - id: string; - label?: any | null; - system: boolean; - type: AttributeType; - format?: AttributeFormat | null; - linked_library?: {id: string; behavior: LibraryBehavior} | null; - } - | { - id: string; - label?: any | null; - system: boolean; - type: AttributeType; - format?: AttributeFormat | null; - } - > | null; - permissions_conf?: { - relation: PermissionsRelation; - permissionTreeAttributes: Array< - | {id: string; label?: any | null} - | {id: string; label?: any | null; linked_tree?: {id: string} | null} - >; - } | null; - recordIdentityConf?: { - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: string | null; - treeColorPreview?: string | null; - } | null; - permissions?: { - admin_library: boolean; - access_library: boolean; - access_record: boolean; - create_record: boolean; - edit_record: boolean; - delete_record: boolean; - } | null; - icon?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - previewsSettings?: Array<{ - label: any; - description?: any | null; - system: boolean; - versions: {background: string; density: number; sizes: Array<{name: string; size: number}>}; - }> | null; - }>; - } | null; -}; + +export type GetLibraryByIdQuery = { libraries?: { list: Array<{ id: string, label?: any | null, behavior: LibraryBehavior, system?: boolean | null, fullTextAttributes?: Array<{ id: string, label?: any | null }> | null, attributes?: Array<{ id: string, label?: any | null, system: boolean, type: AttributeType, format?: AttributeFormat | null, linked_library?: { id: string, behavior: LibraryBehavior } | null } | { id: string, label?: any | null, system: boolean, type: AttributeType, format?: AttributeFormat | null }> | null, permissions_conf?: { relation: PermissionsRelation, permissionTreeAttributes: Array<{ id: string, label?: any | null } | { id: string, label?: any | null, linked_tree?: { id: string } | null }> } | null, recordIdentityConf?: { label?: string | null, subLabel?: string | null, color?: string | null, preview?: string | null, treeColorPreview?: string | null } | null, permissions?: { admin_library: boolean, access_library: boolean, access_record: boolean, create_record: boolean, edit_record: boolean, delete_record: boolean } | null, icon?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, previewsSettings?: Array<{ label: any, description?: any | null, system: boolean, versions: { background: string, density: number, sizes: Array<{ name: string, size: number }> } }> | null }> } | null }; export type GetLibraryPermissionsQueryVariables = Exact<{ - libraryId?: InputMaybe | Scalars['ID']>; + libraryId?: InputMaybe | Scalars['ID']>; }>; -export type GetLibraryPermissionsQuery = { - libraries?: { - list: Array<{ - permissions?: { - access_library: boolean; - access_record: boolean; - create_record: boolean; - edit_record: boolean; - delete_record: boolean; - } | null; - }>; - } | null; -}; + +export type GetLibraryPermissionsQuery = { libraries?: { list: Array<{ permissions?: { access_library: boolean, access_record: boolean, create_record: boolean, edit_record: boolean, delete_record: boolean } | null }> } | null }; export type GetLibraryPreviewsSettingsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetLibraryPreviewsSettingsQuery = { - libraries?: { - list: Array<{ - id: string; - label?: any | null; - behavior: LibraryBehavior; - previewsSettings?: Array<{ - description?: any | null; - label: any; - system: boolean; - versions: {background: string; density: number; sizes: Array<{name: string; size: number}>}; - }> | null; - }>; - } | null; -}; + +export type GetLibraryPreviewsSettingsQuery = { libraries?: { list: Array<{ id: string, label?: any | null, behavior: LibraryBehavior, previewsSettings?: Array<{ description?: any | null, label: any, system: boolean, versions: { background: string, density: number, sizes: Array<{ name: string, size: number }> } }> | null }> } | null }; export type SaveLibraryMutationVariables = Exact<{ - library: LibraryInput; + library: LibraryInput; }>; -export type SaveLibraryMutation = { - saveLibrary: { - id: string; - label?: any | null; - behavior: LibraryBehavior; - system?: boolean | null; - fullTextAttributes?: Array<{id: string; label?: any | null}> | null; - attributes?: Array< - | { - id: string; - label?: any | null; - system: boolean; - type: AttributeType; - format?: AttributeFormat | null; - linked_library?: {id: string; behavior: LibraryBehavior} | null; - } - | {id: string; label?: any | null; system: boolean; type: AttributeType; format?: AttributeFormat | null} - > | null; - permissions_conf?: { - relation: PermissionsRelation; - permissionTreeAttributes: Array< - {id: string; label?: any | null} | {id: string; label?: any | null; linked_tree?: {id: string} | null} - >; - } | null; - recordIdentityConf?: { - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: string | null; - treeColorPreview?: string | null; - } | null; - permissions?: { - admin_library: boolean; - access_library: boolean; - access_record: boolean; - create_record: boolean; - edit_record: boolean; - delete_record: boolean; - } | null; - icon?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - previewsSettings?: Array<{ - label: any; - description?: any | null; - system: boolean; - versions: {background: string; density: number; sizes: Array<{name: string; size: number}>}; - }> | null; - }; -}; + +export type SaveLibraryMutation = { saveLibrary: { id: string, label?: any | null, behavior: LibraryBehavior, system?: boolean | null, fullTextAttributes?: Array<{ id: string, label?: any | null }> | null, attributes?: Array<{ id: string, label?: any | null, system: boolean, type: AttributeType, format?: AttributeFormat | null, linked_library?: { id: string, behavior: LibraryBehavior } | null } | { id: string, label?: any | null, system: boolean, type: AttributeType, format?: AttributeFormat | null }> | null, permissions_conf?: { relation: PermissionsRelation, permissionTreeAttributes: Array<{ id: string, label?: any | null } | { id: string, label?: any | null, linked_tree?: { id: string } | null }> } | null, recordIdentityConf?: { label?: string | null, subLabel?: string | null, color?: string | null, preview?: string | null, treeColorPreview?: string | null } | null, permissions?: { admin_library: boolean, access_library: boolean, access_record: boolean, create_record: boolean, edit_record: boolean, delete_record: boolean } | null, icon?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, previewsSettings?: Array<{ label: any, description?: any | null, system: boolean, versions: { background: string, density: number, sizes: Array<{ name: string, size: number }> } }> | null } }; export type IsAllowedQueryVariables = Exact<{ - type: PermissionTypes; - actions: Array | PermissionsActions; - applyTo?: InputMaybe; - target?: InputMaybe; + type: PermissionTypes; + actions: Array | PermissionsActions; + applyTo?: InputMaybe; + target?: InputMaybe; }>; -export type IsAllowedQuery = {isAllowed?: Array<{name: PermissionsActions; allowed?: boolean | null}> | null}; + +export type IsAllowedQuery = { isAllowed?: Array<{ name: PermissionsActions, allowed?: boolean | null }> | null }; export type CreateRecordMutationVariables = Exact<{ - library: Scalars['ID']; - data?: InputMaybe; + library: Scalars['ID']; + data?: InputMaybe; }>; -export type CreateRecordMutation = { - createRecord: { - record?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - valuesErrors?: Array<{ - attributeId: string; - id_value?: string | null; - input?: string | null; - message?: string | null; - type: string; - }> | null; - }; -}; + +export type CreateRecordMutation = { createRecord: { record?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, valuesErrors?: Array<{ attributeId: string, id_value?: string | null, input?: string | null, message?: string | null, type: string }> | null } }; export type DeactivateRecordsMutationVariables = Exact<{ - libraryId: Scalars['String']; - recordsIds?: InputMaybe | Scalars['String']>; - filters?: InputMaybe | RecordFilterInput>; + libraryId: Scalars['String']; + recordsIds?: InputMaybe | Scalars['String']>; + filters?: InputMaybe | RecordFilterInput>; }>; -export type DeactivateRecordsMutation = { - deactivateRecords: Array<{ - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }>; -}; + +export type DeactivateRecordsMutation = { deactivateRecords: Array<{ id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }> }; export type DoesFileExistAsChildQueryVariables = Exact<{ - parentNode?: InputMaybe; - treeId: Scalars['ID']; - filename: Scalars['String']; + parentNode?: InputMaybe; + treeId: Scalars['ID']; + filename: Scalars['String']; }>; -export type DoesFileExistAsChildQuery = {doesFileExistAsChild?: boolean | null}; + +export type DoesFileExistAsChildQuery = { doesFileExistAsChild?: boolean | null }; export type GetFileDataQueryVariables = Exact<{ - library: Scalars['ID']; - fileId: Scalars['String']; - previewsStatusAttribute: Scalars['ID']; + library: Scalars['ID']; + fileId: Scalars['String']; + previewsStatusAttribute: Scalars['ID']; }>; -export type GetFileDataQuery = { - records: { - list: Array<{ - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - created_at?: Array<{value?: any | null}> | null; - created_by?: Array<{ - value?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - }> | null; - modified_at?: Array<{value?: any | null}> | null; - modified_by?: Array<{ - value?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - }> | null; - file_name?: Array<{value?: any | null}> | null; - file_path?: Array<{value?: any | null}> | null; - previews_status?: Array<{value?: any | null}> | null; - library: {behavior: LibraryBehavior}; - }>; - }; -}; + +export type GetFileDataQuery = { records: { list: Array<{ id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } }, created_at?: Array<{ value?: any | null }> | null, created_by?: Array<{ value?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null }> | null, modified_at?: Array<{ value?: any | null }> | null, modified_by?: Array<{ value?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null }> | null, file_name?: Array<{ value?: any | null }> | null, file_path?: Array<{ value?: any | null }> | null, previews_status?: Array<{ value?: any | null }> | null, library: { behavior: LibraryBehavior } }> } }; export type RecordFormQueryVariables = Exact<{ - libraryId: Scalars['String']; - formId: Scalars['String']; - recordId?: InputMaybe; - version?: InputMaybe | ValueVersionInput>; + libraryId: Scalars['String']; + formId: Scalars['String']; + recordId?: InputMaybe; + version?: InputMaybe | ValueVersionInput>; }>; -export type RecordFormQuery = { - recordForm?: { - id: string; - recordId?: string | null; - library: {id: string}; - dependencyAttributes?: Array<{id: string}> | null; - elements: Array<{ - id: string; - containerId: string; - uiElementType: string; - type: FormElementTypes; - valueError?: string | null; - values?: Array< - | { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - linkValue?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: { - id: string; - format?: AttributeFormat | null; - type: AttributeType; - system: boolean; - } | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: { - id: string; - whoAmI: {id: string; label?: string | null; library: {id: string}}; - }; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - | { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - treeValue?: { - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - ancestors?: Array<{ - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }> | null; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: { - id: string; - format?: AttributeFormat | null; - type: AttributeType; - system: boolean; - } | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: { - id: string; - whoAmI: {id: string; label?: string | null; library: {id: string}}; - }; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - | { - value?: any | null; - raw_value?: any | null; - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: { - id: string; - format?: AttributeFormat | null; - type: AttributeType; - system: boolean; - } | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: { - id: string; - whoAmI: {id: string; label?: string | null; library: {id: string}}; - }; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - > | null; - attribute?: - | { - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - linked_library?: { - id: string; - label?: any | null; - behavior: LibraryBehavior; - permissions?: {create_record: boolean} | null; - } | null; - linkValuesList?: { - enable: boolean; - allowFreeEntry?: boolean | null; - values?: Array<{ - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }> | null; - } | null; - permissions: {access_attribute: boolean; edit_value: boolean}; - versions_conf?: { - versionable: boolean; - profile?: {id: string; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - permissions: {access_attribute: boolean; edit_value: boolean}; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - metadata_fields?: Array<{id: string}> | null; - }> | null; - } - | { - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - permissions: {access_attribute: boolean; edit_value: boolean}; - versions_conf?: { - versionable: boolean; - profile?: {id: string; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - permissions: {access_attribute: boolean; edit_value: boolean}; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - metadata_fields?: Array<{id: string}> | null; - }> | null; - } - | { - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - linked_tree?: {id: string; label?: any | null} | null; - treeValuesList?: { - enable: boolean; - allowFreeEntry?: boolean | null; - values?: Array<{ - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - ancestors?: Array<{ - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }> | null; - }> | null; - } | null; - permissions: {access_attribute: boolean; edit_value: boolean}; - versions_conf?: { - versionable: boolean; - profile?: {id: string; trees: Array<{id: string; label?: any | null}>} | null; - } | null; - metadata_fields?: Array<{ - id: string; - label?: any | null; - description?: any | null; - type: AttributeType; - format?: AttributeFormat | null; - system: boolean; - readonly: boolean; - multiple_values: boolean; - permissions: {access_attribute: boolean; edit_value: boolean}; - values_list?: - | { - enable: boolean; - allowFreeEntry?: boolean | null; - dateRangeValues?: Array<{from?: string | null; to?: string | null}> | null; - } - | {enable: boolean; allowFreeEntry?: boolean | null; values?: Array | null} - | null; - metadata_fields?: Array<{id: string}> | null; - }> | null; - } - | null; - settings: Array<{key: string; value: any}>; - }>; - } | null; -}; + +export type RecordFormQuery = { recordForm?: { id: string, recordId?: string | null, library: { id: string }, dependencyAttributes?: Array<{ id: string }> | null, elements: Array<{ id: string, containerId: string, uiElementType: string, type: FormElementTypes, valueError?: string | null, values?: Array<{ id_value?: string | null, modified_at?: number | null, created_at?: number | null, linkValue?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } | { id_value?: string | null, modified_at?: number | null, created_at?: number | null, treeValue?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }, ancestors?: Array<{ record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> | null } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } | { value?: any | null, raw_value?: any | null, id_value?: string | null, modified_at?: number | null, created_at?: number | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null }> | null, attribute?: { id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, linked_library?: { id: string, label?: any | null, behavior: LibraryBehavior, permissions?: { create_record: boolean } | null } | null, linkValuesList?: { enable: boolean, allowFreeEntry?: boolean | null, values?: Array<{ id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }> | null } | null, permissions: { access_attribute: boolean, edit_value: boolean }, versions_conf?: { versionable: boolean, profile?: { id: string, trees: Array<{ id: string, label?: any | null }> } | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, permissions: { access_attribute: boolean, edit_value: boolean }, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, metadata_fields?: Array<{ id: string }> | null }> | null } | { id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, permissions: { access_attribute: boolean, edit_value: boolean }, versions_conf?: { versionable: boolean, profile?: { id: string, trees: Array<{ id: string, label?: any | null }> } | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, permissions: { access_attribute: boolean, edit_value: boolean }, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, metadata_fields?: Array<{ id: string }> | null }> | null } | { id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, linked_tree?: { id: string, label?: any | null } | null, treeValuesList?: { enable: boolean, allowFreeEntry?: boolean | null, values?: Array<{ id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }, ancestors?: Array<{ record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> | null }> | null } | null, permissions: { access_attribute: boolean, edit_value: boolean }, versions_conf?: { versionable: boolean, profile?: { id: string, trees: Array<{ id: string, label?: any | null }> } | null } | null, metadata_fields?: Array<{ id: string, label?: any | null, description?: any | null, type: AttributeType, format?: AttributeFormat | null, system: boolean, readonly: boolean, multiple_values: boolean, permissions: { access_attribute: boolean, edit_value: boolean }, values_list?: { enable: boolean, allowFreeEntry?: boolean | null, dateRangeValues?: Array<{ from?: string | null, to?: string | null }> | null } | { enable: boolean, allowFreeEntry?: boolean | null, values?: Array | null } | null, metadata_fields?: Array<{ id: string }> | null }> | null } | null, settings: Array<{ key: string, value: any }> }> } | null }; export type RecordUpdateSubscriptionVariables = Exact<{ - filters?: InputMaybe; + filters?: InputMaybe; }>; -export type RecordUpdateSubscription = { - recordUpdate: { - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - modified_by?: Array<{ - value?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - }> | null; - }; - updatedValues: Array<{ - attribute: string; - value: - | { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - linkValue?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: { - id: string; - format?: AttributeFormat | null; - type: AttributeType; - system: boolean; - } | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: { - id: string; - whoAmI: {id: string; label?: string | null; library: {id: string}}; - }; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - | { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - treeValue?: { - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - ancestors?: Array<{ - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }> | null; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: { - id: string; - format?: AttributeFormat | null; - type: AttributeType; - system: boolean; - } | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: { - id: string; - whoAmI: {id: string; label?: string | null; library: {id: string}}; - }; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - | { - value?: any | null; - raw_value?: any | null; - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: { - id: string; - format?: AttributeFormat | null; - type: AttributeType; - system: boolean; - } | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: { - id: string; - whoAmI: {id: string; label?: string | null; library: {id: string}}; - }; - } | null; - } | null> | null; - } | null; - } | null> | null; - }; - }>; - }; -}; + +export type RecordUpdateSubscription = { recordUpdate: { record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } }, modified_by?: Array<{ value?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null }> | null }, updatedValues: Array<{ attribute: string, value: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, linkValue?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } | { id_value?: string | null, modified_at?: number | null, created_at?: number | null, treeValue?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }, ancestors?: Array<{ record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> | null } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } | { value?: any | null, raw_value?: any | null, id_value?: string | null, modified_at?: number | null, created_at?: number | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } }> } }; export type IndexRecordsMutationVariables = Exact<{ - libraryId: Scalars['String']; - records?: InputMaybe | Scalars['String']>; + libraryId: Scalars['String']; + records?: InputMaybe | Scalars['String']>; }>; -export type IndexRecordsMutation = {indexRecords: boolean}; + +export type IndexRecordsMutation = { indexRecords: boolean }; export type CancelTaskMutationVariables = Exact<{ - taskId: Scalars['ID']; + taskId: Scalars['ID']; }>; -export type CancelTaskMutation = {cancelTask: boolean}; + +export type CancelTaskMutation = { cancelTask: boolean }; export type CheckTreeExistenceQueryVariables = Exact<{ - id?: InputMaybe | Scalars['ID']>; + id?: InputMaybe | Scalars['ID']>; }>; -export type CheckTreeExistenceQuery = {trees?: {totalCount: number} | null}; + +export type CheckTreeExistenceQuery = { trees?: { totalCount: number } | null }; export type DeleteTreeMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteTreeMutation = {deleteTree: {id: string}}; + +export type DeleteTreeMutation = { deleteTree: { id: string } }; export type GetTreeByIdQueryVariables = Exact<{ - id?: InputMaybe | Scalars['ID']>; + id?: InputMaybe | Scalars['ID']>; }>; -export type GetTreeByIdQuery = { - trees?: { - list: Array<{ - id: string; - label?: any | null; - behavior: TreeBehavior; - system: boolean; - libraries: Array<{ - library: {id: string; label?: any | null}; - settings: {allowMultiplePositions: boolean; allowedAtRoot: boolean; allowedChildren: Array}; - }>; - }>; - } | null; -}; + +export type GetTreeByIdQuery = { trees?: { list: Array<{ id: string, label?: any | null, behavior: TreeBehavior, system: boolean, libraries: Array<{ library: { id: string, label?: any | null }, settings: { allowMultiplePositions: boolean, allowedAtRoot: boolean, allowedChildren: Array } }> }> } | null }; export type GetTreeLibrariesQueryVariables = Exact<{ - treeId?: InputMaybe | Scalars['ID']>; - library?: InputMaybe; + treeId?: InputMaybe | Scalars['ID']>; + library?: InputMaybe; }>; -export type GetTreeLibrariesQuery = { - trees?: { - totalCount: number; - list: Array<{ - id: string; - behavior: TreeBehavior; - system: boolean; - libraries: Array<{ - library: {id: string; label?: any | null; behavior: LibraryBehavior; system?: boolean | null}; - settings: {allowMultiplePositions: boolean; allowedChildren: Array; allowedAtRoot: boolean}; - }>; - }>; - } | null; -}; -export type GetTreesQueryVariables = Exact<{[key: string]: never}>; +export type GetTreeLibrariesQuery = { trees?: { totalCount: number, list: Array<{ id: string, behavior: TreeBehavior, system: boolean, libraries: Array<{ library: { id: string, label?: any | null, behavior: LibraryBehavior, system?: boolean | null }, settings: { allowMultiplePositions: boolean, allowedChildren: Array, allowedAtRoot: boolean } }> }> } | null }; + +export type GetTreesQueryVariables = Exact<{ [key: string]: never; }>; -export type GetTreesQuery = {trees?: {list: Array<{id: string; label?: any | null}>} | null}; + +export type GetTreesQuery = { trees?: { list: Array<{ id: string, label?: any | null }> } | null }; export type SaveTreeMutationVariables = Exact<{ - tree: TreeInput; + tree: TreeInput; }>; -export type SaveTreeMutation = { - saveTree: { - id: string; - label?: any | null; - behavior: TreeBehavior; - system: boolean; - libraries: Array<{ - library: {id: string; label?: any | null}; - settings: {allowMultiplePositions: boolean; allowedAtRoot: boolean; allowedChildren: Array}; - }>; - }; -}; + +export type SaveTreeMutation = { saveTree: { id: string, label?: any | null, behavior: TreeBehavior, system: boolean, libraries: Array<{ library: { id: string, label?: any | null }, settings: { allowMultiplePositions: boolean, allowedAtRoot: boolean, allowedChildren: Array } }> } }; export type TreeNodeChildrenQueryVariables = Exact<{ - treeId: Scalars['ID']; - node?: InputMaybe; - pagination?: InputMaybe; + treeId: Scalars['ID']; + node?: InputMaybe; + pagination?: InputMaybe; }>; -export type TreeNodeChildrenQuery = { - treeNodeChildren: { - totalCount?: number | null; - list: Array<{ - id: string; - order?: number | null; - childrenCount?: number | null; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - active?: Array<{value?: any | null}> | null; - }; - ancestors?: Array<{ - id: string; - record: { - id: string; - library: {id: string; label?: any | null}; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }> | null; - permissions: {access_tree: boolean; detach: boolean; edit_children: boolean}; - }>; - }; -}; + +export type TreeNodeChildrenQuery = { treeNodeChildren: { totalCount?: number | null, list: Array<{ id: string, order?: number | null, childrenCount?: number | null, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } }, active?: Array<{ value?: any | null }> | null }, ancestors?: Array<{ id: string, record: { id: string, library: { id: string, label?: any | null }, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> | null, permissions: { access_tree: boolean, detach: boolean, edit_children: boolean } }> } }; export type GetUserDataQueryVariables = Exact<{ - keys: Array | Scalars['String']; - global?: InputMaybe; + keys: Array | Scalars['String']; + global?: InputMaybe; }>; -export type GetUserDataQuery = {userData: {global: boolean; data?: any | null}}; + +export type GetUserDataQuery = { userData: { global: boolean, data?: any | null } }; export type SaveUserDataMutationVariables = Exact<{ - key: Scalars['String']; - value?: InputMaybe; - global: Scalars['Boolean']; + key: Scalars['String']; + value?: InputMaybe; + global: Scalars['Boolean']; }>; -export type SaveUserDataMutation = {saveUserData: {global: boolean; data?: any | null}}; + +export type SaveUserDataMutation = { saveUserData: { global: boolean, data?: any | null } }; export type DeleteValueMutationVariables = Exact<{ - library: Scalars['ID']; - recordId: Scalars['ID']; - attribute: Scalars['ID']; - value?: InputMaybe; + library: Scalars['ID']; + recordId: Scalars['ID']; + attribute: Scalars['ID']; + value?: InputMaybe; }>; -export type DeleteValueMutation = { - deleteValue: - | { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - linkValue?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: {id: string; format?: AttributeFormat | null; type: AttributeType; system: boolean} | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - | { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - treeValue?: { - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - ancestors?: Array<{ - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }> | null; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: {id: string; format?: AttributeFormat | null; type: AttributeType; system: boolean} | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - | { - value?: any | null; - raw_value?: any | null; - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: {id: string; format?: AttributeFormat | null; type: AttributeType; system: boolean} | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - } | null; - } | null> | null; - }; -}; + +export type DeleteValueMutation = { deleteValue: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, linkValue?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } | { id_value?: string | null, modified_at?: number | null, created_at?: number | null, treeValue?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }, ancestors?: Array<{ record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> | null } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } | { value?: any | null, raw_value?: any | null, id_value?: string | null, modified_at?: number | null, created_at?: number | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } }; export type SaveValueBatchMutationVariables = Exact<{ - library: Scalars['ID']; - recordId: Scalars['ID']; - version?: InputMaybe | ValueVersionInput>; - values: Array | ValueBatchInput; - deleteEmpty?: InputMaybe; + library: Scalars['ID']; + recordId: Scalars['ID']; + version?: InputMaybe | ValueVersionInput>; + values: Array | ValueBatchInput; + deleteEmpty?: InputMaybe; }>; -export type SaveValueBatchMutation = { - saveValueBatch: { - values?: Array< - | { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - linkValue?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: { - id: string; - format?: AttributeFormat | null; - type: AttributeType; - system: boolean; - } | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: { - id: string; - whoAmI: {id: string; label?: string | null; library: {id: string}}; - }; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - | { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - treeValue?: { - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - ancestors?: Array<{ - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }> | null; - } | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: { - id: string; - format?: AttributeFormat | null; - type: AttributeType; - system: boolean; - } | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: { - id: string; - whoAmI: {id: string; label?: string | null; library: {id: string}}; - }; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - | { - value?: any | null; - raw_value?: any | null; - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - } | null; - } | null> | null; - attribute?: { - id: string; - format?: AttributeFormat | null; - type: AttributeType; - system: boolean; - } | null; - metadata?: Array<{ - name: string; - value?: { - id_value?: string | null; - modified_at?: number | null; - created_at?: number | null; - value?: any | null; - raw_value?: any | null; - modified_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - created_by?: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - } | null; - version?: Array<{ - treeId: string; - treeNode?: { - id: string; - record: { - id: string; - whoAmI: {id: string; label?: string | null; library: {id: string}}; - }; - } | null; - } | null> | null; - } | null; - } | null> | null; - } - > | null; - errors?: Array<{type: string; attribute: string; input?: string | null; message: string}> | null; - }; -}; + +export type SaveValueBatchMutation = { saveValueBatch: { values?: Array<{ id_value?: string | null, modified_at?: number | null, created_at?: number | null, linkValue?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } | { id_value?: string | null, modified_at?: number | null, created_at?: number | null, treeValue?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } }, ancestors?: Array<{ record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } }> | null } | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null } | { value?: any | null, raw_value?: any | null, id_value?: string | null, modified_at?: number | null, created_at?: number | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null, attribute?: { id: string, format?: AttributeFormat | null, type: AttributeType, system: boolean } | null, metadata?: Array<{ name: string, value?: { id_value?: string | null, modified_at?: number | null, created_at?: number | null, value?: any | null, raw_value?: any | null, modified_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, created_by?: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } | null, version?: Array<{ treeId: string, treeNode?: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } } } | null } | null> | null } | null } | null> | null }> | null, errors?: Array<{ type: string, attribute: string, input?: string | null, message: string }> | null } }; export type DeleteViewMutationVariables = Exact<{ - viewId: Scalars['String']; + viewId: Scalars['String']; }>; -export type DeleteViewMutation = {deleteView: {id: string; library: string}}; + +export type DeleteViewMutation = { deleteView: { id: string, library: string } }; export type GetViewQueryVariables = Exact<{ - viewId: Scalars['String']; + viewId: Scalars['String']; }>; -export type GetViewQuery = { - view: { - id: string; - shared: boolean; - label: any; - description?: any | null; - color?: string | null; - display: {size: ViewSizes; type: ViewTypes}; - created_by: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - filters?: Array<{ - field?: string | null; - value?: string | null; - condition?: RecordFilterCondition | null; - operator?: RecordFilterOperator | null; - tree?: {id: string; label?: any | null} | null; - }> | null; - sort?: {field: string; order: SortOrder} | null; - valuesVersions?: Array<{ - treeId: string; - treeNode: { - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }; - }> | null; - settings?: Array<{name: string; value?: any | null}> | null; - }; -}; + +export type GetViewQuery = { view: { id: string, shared: boolean, label: any, description?: any | null, color?: string | null, display: { size: ViewSizes, type: ViewTypes }, created_by: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } }, filters?: Array<{ field?: string | null, value?: string | null, condition?: RecordFilterCondition | null, operator?: RecordFilterOperator | null, tree?: { id: string, label?: any | null } | null }> | null, sort?: { field: string, order: SortOrder } | null, valuesVersions?: Array<{ treeId: string, treeNode: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } } }> | null, settings?: Array<{ name: string, value?: any | null }> | null } }; export type GetViewsListQueryVariables = Exact<{ - libraryId: Scalars['String']; + libraryId: Scalars['String']; }>; -export type GetViewsListQuery = { - views: { - totalCount: number; - list: Array<{ - id: string; - shared: boolean; - label: any; - description?: any | null; - color?: string | null; - display: {size: ViewSizes; type: ViewTypes}; - created_by: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - filters?: Array<{ - field?: string | null; - value?: string | null; - condition?: RecordFilterCondition | null; - operator?: RecordFilterOperator | null; - tree?: {id: string; label?: any | null} | null; - }> | null; - sort?: {field: string; order: SortOrder} | null; - valuesVersions?: Array<{ - treeId: string; - treeNode: { - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }; - }> | null; - settings?: Array<{name: string; value?: any | null}> | null; - }>; - }; -}; + +export type GetViewsListQuery = { views: { totalCount: number, list: Array<{ id: string, shared: boolean, label: any, description?: any | null, color?: string | null, display: { size: ViewSizes, type: ViewTypes }, created_by: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } }, filters?: Array<{ field?: string | null, value?: string | null, condition?: RecordFilterCondition | null, operator?: RecordFilterOperator | null, tree?: { id: string, label?: any | null } | null }> | null, sort?: { field: string, order: SortOrder } | null, valuesVersions?: Array<{ treeId: string, treeNode: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } } }> | null, settings?: Array<{ name: string, value?: any | null }> | null }> } }; export type AddViewMutationVariables = Exact<{ - view: ViewInput; + view: ViewInput; }>; -export type AddViewMutation = { - saveView: { - id: string; - shared: boolean; - label: any; - description?: any | null; - color?: string | null; - display: {size: ViewSizes; type: ViewTypes}; - created_by: {id: string; whoAmI: {id: string; label?: string | null; library: {id: string}}}; - filters?: Array<{ - field?: string | null; - value?: string | null; - condition?: RecordFilterCondition | null; - operator?: RecordFilterOperator | null; - tree?: {id: string; label?: any | null} | null; - }> | null; - sort?: {field: string; order: SortOrder} | null; - valuesVersions?: Array<{ - treeId: string; - treeNode: { - id: string; - record: { - id: string; - whoAmI: { - id: string; - label?: string | null; - subLabel?: string | null; - color?: string | null; - preview?: IPreviewScalar | null; - library: {id: string; label?: any | null}; - }; - }; - }; - }> | null; - settings?: Array<{name: string; value?: any | null}> | null; - }; -}; + +export type AddViewMutation = { saveView: { id: string, shared: boolean, label: any, description?: any | null, color?: string | null, display: { size: ViewSizes, type: ViewTypes }, created_by: { id: string, whoAmI: { id: string, label?: string | null, library: { id: string } } }, filters?: Array<{ field?: string | null, value?: string | null, condition?: RecordFilterCondition | null, operator?: RecordFilterOperator | null, tree?: { id: string, label?: any | null } | null }> | null, sort?: { field: string, order: SortOrder } | null, valuesVersions?: Array<{ treeId: string, treeNode: { id: string, record: { id: string, whoAmI: { id: string, label?: string | null, subLabel?: string | null, color?: string | null, preview?: IPreviewScalar | null, library: { id: string, label?: any | null } } } } }> | null, settings?: Array<{ name: string, value?: any | null }> | null } }; export const RecordIdentityFragmentDoc = gql` fragment RecordIdentity on Record { - id - whoAmI { - id - label - subLabel - color - library { - id - label - } - preview - } - } -`; + id + whoAmI { + id + label + subLabel + color + library { + id + label + } + preview + } +} + `; export const DetailsApplicationFragmentDoc = gql` fragment DetailsApplication on Application { - id - label - type - description - endpoint - url - color - icon { - ...RecordIdentity - } - module - permissions { - access_application - admin_application - } - settings - } - ${RecordIdentityFragmentDoc} -`; + id + label + type + description + endpoint + url + color + icon { + ...RecordIdentity + } + module + permissions { + access_application + admin_application + } + settings +} + ${RecordIdentityFragmentDoc}`; export const AttributeDetailsFragmentDoc = gql` fragment AttributeDetails on Attribute { + id + type + format + system + readonly + label + description + multiple_values + metadata_fields { + id + label + type + format + } + versions_conf { + versionable + mode + profile { + id + label + trees { id - type - format - system - readonly label - description - multiple_values - metadata_fields { - id - label - type - format - } - versions_conf { - versionable - mode - profile { - id - label - trees { - id - label - } - } - } - libraries { - id - label - } - ... on StandardAttribute { - unique - } - ... on LinkAttribute { - linked_library { - id - label - } - reverse_link - } - ... on TreeAttribute { - linked_tree { - id - label - } - } - } -`; + } + } + } + libraries { + id + label + } + ... on StandardAttribute { + unique + maxLength + } + ... on LinkAttribute { + linked_library { + id + label + } + reverse_link + } + ... on TreeAttribute { + linked_tree { + id + label + } + } +} + `; export const AttributesByLibAttributeFragmentDoc = gql` fragment AttributesByLibAttribute on Attribute { - id - type - format - label - multiple_values - system - readonly - ... on LinkAttribute { - linked_library { - id - } - } - ... on TreeAttribute { - linked_tree { - id - label - libraries { - library { - id - label - } - } - } - } - ... on StandardAttribute { - embedded_fields { - id - format - label - } - } - } -`; + id + type + format + label + multiple_values + system + readonly + ... on LinkAttribute { + linked_library { + id + } + } + ... on TreeAttribute { + linked_tree { + id + label + libraries { + library { + id + label + } + } + } + } + ... on StandardAttribute { + embedded_fields { + id + format + label + } + } +} + `; export const LibraryLightFragmentDoc = gql` fragment LibraryLight on Library { + id + label + icon { + id + whoAmI { + id + library { id - label - icon { - id - whoAmI { - id - library { - id - } - preview - } - } + } + preview } -`; + } +} + `; export const LibraryLinkAttributeDetailsFragmentDoc = gql` fragment LibraryLinkAttributeDetails on LinkAttribute { - linked_library { - id - behavior - } - } -`; + linked_library { + id + behavior + } +} + `; export const LibraryAttributesFragmentDoc = gql` fragment LibraryAttributes on Attribute { - id - label - system - type - format - ...LibraryLinkAttributeDetails - } - ${LibraryLinkAttributeDetailsFragmentDoc} -`; + id + label + system + type + format + ...LibraryLinkAttributeDetails +} + ${LibraryLinkAttributeDetailsFragmentDoc}`; export const LibraryPreviewsSettingsFragmentDoc = gql` fragment LibraryPreviewsSettings on LibraryPreviewsSettings { - label - description - system - versions { - background - density - sizes { - name - size - } - } - } -`; + label + description + system + versions { + background + density + sizes { + name + size + } + } +} + `; export const LibraryDetailsFragmentDoc = gql` fragment LibraryDetails on Library { - id - label - behavior - system - label - fullTextAttributes { - id - label - } - attributes { - ...LibraryAttributes - } - permissions_conf { - permissionTreeAttributes { - id - ... on TreeAttribute { - linked_tree { - id - } - } - label - } - relation - } - recordIdentityConf { - label - subLabel - color - preview - treeColorPreview - } - permissions { - admin_library - access_library - access_record - create_record - edit_record - delete_record - } - icon { - ...RecordIdentity - } - previewsSettings { - ...LibraryPreviewsSettings - } - } + id + label + behavior + system + label + fullTextAttributes { + id + label + } + attributes { + ...LibraryAttributes + } + permissions_conf { + permissionTreeAttributes { + id + ... on TreeAttribute { + linked_tree { + id + } + } + label + } + relation + } + recordIdentityConf { + label + subLabel + color + preview + treeColorPreview + } + permissions { + admin_library + access_library + access_record + create_record + edit_record + delete_record + } + icon { + ...RecordIdentity + } + previewsSettings { + ...LibraryPreviewsSettings + } +} ${LibraryAttributesFragmentDoc} - ${RecordIdentityFragmentDoc} - ${LibraryPreviewsSettingsFragmentDoc} -`; +${RecordIdentityFragmentDoc} +${LibraryPreviewsSettingsFragmentDoc}`; export const ValuesVersionDetailsFragmentDoc = gql` fragment ValuesVersionDetails on ValueVersion { - treeId - treeNode { - id - record { - id - whoAmI { - id - label - library { - id - } - } - } + treeId + treeNode { + id + record { + id + whoAmI { + id + label + library { + id } + } } -`; + } +} + `; export const ValueDetailsFragmentDoc = gql` fragment ValueDetails on GenericValue { - id_value - modified_at - modified_by { - ...RecordIdentity - } - created_at - created_by { - ...RecordIdentity - } - version { - ...ValuesVersionDetails - } - attribute { - id - format - type - system - } - metadata { - name - value { - id_value - modified_at - modified_by { - ...RecordIdentity - } - created_at - created_by { - ...RecordIdentity - } - version { - ...ValuesVersionDetails - } - value - raw_value - } - } - ... on Value { - value - raw_value - } - ... on LinkValue { - linkValue: value { - ...RecordIdentity - } - } - ... on TreeValue { - treeValue: value { - id - record { - ...RecordIdentity - } - ancestors { - record { - ...RecordIdentity - } - } - } + id_value + modified_at + modified_by { + ...RecordIdentity + } + created_at + created_by { + ...RecordIdentity + } + version { + ...ValuesVersionDetails + } + attribute { + id + format + type + system + } + metadata { + name + value { + id_value + modified_at + modified_by { + ...RecordIdentity + } + created_at + created_by { + ...RecordIdentity + } + version { + ...ValuesVersionDetails + } + value + raw_value + } + } + ... on Value { + value + raw_value + } + ... on LinkValue { + linkValue: value { + ...RecordIdentity + } + } + ... on TreeValue { + treeValue: value { + id + record { + ...RecordIdentity + } + ancestors { + record { + ...RecordIdentity } + } } + } +} ${RecordIdentityFragmentDoc} - ${ValuesVersionDetailsFragmentDoc} -`; +${ValuesVersionDetailsFragmentDoc}`; export const StandardValuesListFragmentFragmentDoc = gql` fragment StandardValuesListFragment on StandardValuesListConf { - ... on StandardStringValuesListConf { - enable - allowFreeEntry - values - } - ... on StandardDateRangeValuesListConf { - enable - allowFreeEntry - dateRangeValues: values { - from - to - } - } - } -`; + ... on StandardStringValuesListConf { + enable + allowFreeEntry + values + } + ... on StandardDateRangeValuesListConf { + enable + allowFreeEntry + dateRangeValues: values { + from + to + } + } +} + `; export const RecordFormAttributeFragmentDoc = gql` fragment RecordFormAttribute on Attribute { + id + label + description + type + format + system + readonly + multiple_values + permissions(record: {id: $recordId, library: $libraryId}) { + access_attribute + edit_value + } + versions_conf { + versionable + profile { + id + trees { id label - description - type - format - system - readonly - multiple_values - permissions(record: {id: $recordId, library: $libraryId}) { - access_attribute - edit_value - } - versions_conf { - versionable - profile { - id - trees { - id - label - } - } - } - metadata_fields { - id - label - description - type - format - system - readonly - multiple_values - permissions(record: {id: $recordId, library: $libraryId}) { - access_attribute - edit_value - } - values_list { - ...StandardValuesListFragment - } - metadata_fields { - id - } - } - ... on StandardAttribute { - values_list { - ...StandardValuesListFragment - } - } - ... on LinkAttribute { - linked_library { - id - label - behavior - permissions { - create_record - } - } - linkValuesList: values_list { - enable - allowFreeEntry - values { - ...RecordIdentity - } - } + } + } + } + metadata_fields { + id + label + description + type + format + system + readonly + multiple_values + permissions(record: {id: $recordId, library: $libraryId}) { + access_attribute + edit_value + } + values_list { + ...StandardValuesListFragment + } + metadata_fields { + id + } + } + ... on StandardAttribute { + values_list { + ...StandardValuesListFragment + } + } + ... on LinkAttribute { + linked_library { + id + label + behavior + permissions { + create_record + } + } + linkValuesList: values_list { + enable + allowFreeEntry + values { + ...RecordIdentity + } + } + } + ... on TreeAttribute { + linked_tree { + id + label + } + treeValuesList: values_list { + enable + allowFreeEntry + values { + id + record { + ...RecordIdentity } - ... on TreeAttribute { - linked_tree { - id - label - } - treeValuesList: values_list { - enable - allowFreeEntry - values { - id - record { - ...RecordIdentity - } - ancestors { - record { - ...RecordIdentity - } - } - } - } + ancestors { + record { + ...RecordIdentity + } } + } } + } +} ${StandardValuesListFragmentFragmentDoc} - ${RecordIdentityFragmentDoc} -`; +${RecordIdentityFragmentDoc}`; export const RecordFormElementFragmentDoc = gql` fragment RecordFormElement on FormElementWithValues { - id - containerId - uiElementType - type - valueError - values { - ...ValueDetails - } - attribute { - ...RecordFormAttribute - } - settings { - key - value - } - } + id + containerId + uiElementType + type + valueError + values { + ...ValueDetails + } + attribute { + ...RecordFormAttribute + } + settings { + key + value + } +} ${ValueDetailsFragmentDoc} - ${RecordFormAttributeFragmentDoc} -`; +${RecordFormAttributeFragmentDoc}`; export const TreeLightFragmentDoc = gql` fragment TreeLight on Tree { - id - label - } -`; + id + label +} + `; export const TreeDetailsFragmentDoc = gql` fragment TreeDetails on Tree { - id - label - behavior - system - libraries { - library { - id - label - } - settings { - allowMultiplePositions - allowedAtRoot - allowedChildren - } - } - } -`; + id + label + behavior + system + libraries { + library { + id + label + } + settings { + allowMultiplePositions + allowedAtRoot + allowedChildren + } + } +} + `; export const TreeNodeChildFragmentDoc = gql` fragment TreeNodeChild on TreeNodeLight { + id + order + childrenCount + record { + ...RecordIdentity + active: property(attribute: "active") { + ... on Value { + value + } + } + } + ancestors { + id + record { + id + library { id - order - childrenCount - record { - ...RecordIdentity - active: property(attribute: "active") { - ... on Value { - value - } - } - } - ancestors { - id - record { - id - library { - id - label - } - ...RecordIdentity - } - } - permissions { - access_tree - detach - edit_children - } + label + } + ...RecordIdentity } - ${RecordIdentityFragmentDoc} -`; + } + permissions { + access_tree + detach + edit_children + } +} + ${RecordIdentityFragmentDoc}`; export const ViewDetailsFragmentDoc = gql` fragment ViewDetails on View { + id + display { + size + type + } + shared + created_by { + id + whoAmI { + id + label + library { id - display { - size - type - } - shared - created_by { - id - whoAmI { - id - label - library { - id - } - } - } - label - description - color - filters { - field - value - tree { - id - label - } - condition - operator - } - sort { - field - order - } - valuesVersions { - treeId - treeNode { - id - record { - ...RecordIdentity - } - } - } - settings { - name - value - } - } - ${RecordIdentityFragmentDoc} -`; + } + } + } + label + description + color + filters { + field + value + tree { + id + label + } + condition + operator + } + sort { + field + order + } + valuesVersions { + treeId + treeNode { + id + record { + ...RecordIdentity + } + } + } + settings { + name + value + } +} + ${RecordIdentityFragmentDoc}`; export const CheckApplicationExistenceDocument = gql` query CHECK_APPLICATION_EXISTENCE($id: ID, $endpoint: String) { - applications(filters: {id: $id, endpoint: $endpoint}) { - totalCount - } - } -`; + applications(filters: {id: $id, endpoint: $endpoint}) { + totalCount + } +} + `; /** * __useCheckApplicationExistenceQuery__ @@ -5128,40 +1881,26 @@ export const CheckApplicationExistenceDocument = gql` * }, * }); */ -export function useCheckApplicationExistenceQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - CheckApplicationExistenceDocument, - options - ); -} -export function useCheckApplicationExistenceLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - CheckApplicationExistenceDocument, - options - ); -} +export function useCheckApplicationExistenceQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(CheckApplicationExistenceDocument, options); + } +export function useCheckApplicationExistenceLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(CheckApplicationExistenceDocument, options); + } export type CheckApplicationExistenceQueryHookResult = ReturnType; export type CheckApplicationExistenceLazyQueryHookResult = ReturnType; -export type CheckApplicationExistenceQueryResult = Apollo.QueryResult< - CheckApplicationExistenceQuery, - CheckApplicationExistenceQueryVariables ->; +export type CheckApplicationExistenceQueryResult = Apollo.QueryResult; export const GetApplicationByIdDocument = gql` query GET_APPLICATION_BY_ID($id: ID!) { - applications(filters: {id: $id}) { - list { - ...DetailsApplication - } - } + applications(filters: {id: $id}) { + list { + ...DetailsApplication } - ${DetailsApplicationFragmentDoc} -`; + } +} + ${DetailsApplicationFragmentDoc}`; /** * __useGetApplicationByIdQuery__ @@ -5179,39 +1918,26 @@ export const GetApplicationByIdDocument = gql` * }, * }); */ -export function useGetApplicationByIdQuery( - baseOptions: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - GetApplicationByIdDocument, - options - ); -} -export function useGetApplicationByIdLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - GetApplicationByIdDocument, - options - ); -} +export function useGetApplicationByIdQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetApplicationByIdDocument, options); + } +export function useGetApplicationByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetApplicationByIdDocument, options); + } export type GetApplicationByIdQueryHookResult = ReturnType; export type GetApplicationByIdLazyQueryHookResult = ReturnType; -export type GetApplicationByIdQueryResult = Apollo.QueryResult< - GetApplicationByIdQuery, - GetApplicationByIdQueryVariables ->; +export type GetApplicationByIdQueryResult = Apollo.QueryResult; export const GetApplicationModulesDocument = gql` query GET_APPLICATION_MODULES { - applicationsModules { - id - description - version - } - } -`; + applicationsModules { + id + description + version + } +} + `; /** * __useGetApplicationModulesQuery__ @@ -5228,42 +1954,25 @@ export const GetApplicationModulesDocument = gql` * }, * }); */ -export function useGetApplicationModulesQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - GetApplicationModulesDocument, - options - ); -} -export function useGetApplicationModulesLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - GetApplicationModulesDocument, - options - ); -} +export function useGetApplicationModulesQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetApplicationModulesDocument, options); + } +export function useGetApplicationModulesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetApplicationModulesDocument, options); + } export type GetApplicationModulesQueryHookResult = ReturnType; export type GetApplicationModulesLazyQueryHookResult = ReturnType; -export type GetApplicationModulesQueryResult = Apollo.QueryResult< - GetApplicationModulesQuery, - GetApplicationModulesQueryVariables ->; +export type GetApplicationModulesQueryResult = Apollo.QueryResult; export const SaveApplicationDocument = gql` mutation SAVE_APPLICATION($application: ApplicationInput!) { - saveApplication(application: $application) { - ...DetailsApplication - } - } - ${DetailsApplicationFragmentDoc} -`; -export type SaveApplicationMutationFn = Apollo.MutationFunction< - SaveApplicationMutation, - SaveApplicationMutationVariables ->; + saveApplication(application: $application) { + ...DetailsApplication + } +} + ${DetailsApplicationFragmentDoc}`; +export type SaveApplicationMutationFn = Apollo.MutationFunction; /** * __useSaveApplicationMutation__ @@ -5282,28 +1991,20 @@ export type SaveApplicationMutationFn = Apollo.MutationFunction< * }, * }); */ -export function useSaveApplicationMutation( - baseOptions?: Apollo.MutationHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation( - SaveApplicationDocument, - options - ); -} +export function useSaveApplicationMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SaveApplicationDocument, options); + } export type SaveApplicationMutationHookResult = ReturnType; export type SaveApplicationMutationResult = Apollo.MutationResult; -export type SaveApplicationMutationOptions = Apollo.BaseMutationOptions< - SaveApplicationMutation, - SaveApplicationMutationVariables ->; +export type SaveApplicationMutationOptions = Apollo.BaseMutationOptions; export const CheckAttributeExistenceDocument = gql` query CHECK_ATTRIBUTE_EXISTENCE($id: ID!) { - attributes(filters: {id: $id}) { - totalCount - } - } -`; + attributes(filters: {id: $id}) { + totalCount + } +} + `; /** * __useCheckAttributeExistenceQuery__ @@ -5321,41 +2022,25 @@ export const CheckAttributeExistenceDocument = gql` * }, * }); */ -export function useCheckAttributeExistenceQuery( - baseOptions: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - CheckAttributeExistenceDocument, - options - ); -} -export function useCheckAttributeExistenceLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - CheckAttributeExistenceDocument, - options - ); -} +export function useCheckAttributeExistenceQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(CheckAttributeExistenceDocument, options); + } +export function useCheckAttributeExistenceLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(CheckAttributeExistenceDocument, options); + } export type CheckAttributeExistenceQueryHookResult = ReturnType; export type CheckAttributeExistenceLazyQueryHookResult = ReturnType; -export type CheckAttributeExistenceQueryResult = Apollo.QueryResult< - CheckAttributeExistenceQuery, - CheckAttributeExistenceQueryVariables ->; +export type CheckAttributeExistenceQueryResult = Apollo.QueryResult; export const DeleteAttributeDocument = gql` mutation DELETE_ATTRIBUTE($id: ID) { - deleteAttribute(id: $id) { - id - } - } -`; -export type DeleteAttributeMutationFn = Apollo.MutationFunction< - DeleteAttributeMutation, - DeleteAttributeMutationVariables ->; + deleteAttribute(id: $id) { + id + } +} + `; +export type DeleteAttributeMutationFn = Apollo.MutationFunction; /** * __useDeleteAttributeMutation__ @@ -5374,31 +2059,22 @@ export type DeleteAttributeMutationFn = Apollo.MutationFunction< * }, * }); */ -export function useDeleteAttributeMutation( - baseOptions?: Apollo.MutationHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation( - DeleteAttributeDocument, - options - ); -} +export function useDeleteAttributeMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteAttributeDocument, options); + } export type DeleteAttributeMutationHookResult = ReturnType; export type DeleteAttributeMutationResult = Apollo.MutationResult; -export type DeleteAttributeMutationOptions = Apollo.BaseMutationOptions< - DeleteAttributeMutation, - DeleteAttributeMutationVariables ->; +export type DeleteAttributeMutationOptions = Apollo.BaseMutationOptions; export const GetAttributeByIdDocument = gql` query GET_ATTRIBUTE_BY_ID($id: ID) { - attributes(filters: {id: $id}) { - list { - ...AttributeDetails - } - } + attributes(filters: {id: $id}) { + list { + ...AttributeDetails } - ${AttributeDetailsFragmentDoc} -`; + } +} + ${AttributeDetailsFragmentDoc}`; /** * __useGetAttributeByIdQuery__ @@ -5416,34 +2092,26 @@ export const GetAttributeByIdDocument = gql` * }, * }); */ -export function useGetAttributeByIdQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetAttributeByIdDocument, options); -} -export function useGetAttributeByIdLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - GetAttributeByIdDocument, - options - ); -} +export function useGetAttributeByIdQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetAttributeByIdDocument, options); + } +export function useGetAttributeByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetAttributeByIdDocument, options); + } export type GetAttributeByIdQueryHookResult = ReturnType; export type GetAttributeByIdLazyQueryHookResult = ReturnType; export type GetAttributeByIdQueryResult = Apollo.QueryResult; export const GetAttributesByLibDocument = gql` query GET_ATTRIBUTES_BY_LIB($library: String!) { - attributes(filters: {libraries: [$library]}) { - list { - ...AttributesByLibAttribute - } - } + attributes(filters: {libraries: [$library]}) { + list { + ...AttributesByLibAttribute } - ${AttributesByLibAttributeFragmentDoc} -`; + } +} + ${AttributesByLibAttributeFragmentDoc}`; /** * __useGetAttributesByLibQuery__ @@ -5461,44 +2129,31 @@ export const GetAttributesByLibDocument = gql` * }, * }); */ -export function useGetAttributesByLibQuery( - baseOptions: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - GetAttributesByLibDocument, - options - ); -} -export function useGetAttributesByLibLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - GetAttributesByLibDocument, - options - ); -} +export function useGetAttributesByLibQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetAttributesByLibDocument, options); + } +export function useGetAttributesByLibLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetAttributesByLibDocument, options); + } export type GetAttributesByLibQueryHookResult = ReturnType; export type GetAttributesByLibLazyQueryHookResult = ReturnType; -export type GetAttributesByLibQueryResult = Apollo.QueryResult< - GetAttributesByLibQuery, - GetAttributesByLibQueryVariables ->; +export type GetAttributesByLibQueryResult = Apollo.QueryResult; export const GetAttributesDocument = gql` query GET_ATTRIBUTES($pagination: Pagination, $sort: SortAttributes, $filters: AttributesFiltersInput) { - attributes(pagination: $pagination, sort: $sort, filters: $filters) { - totalCount - list { - id - label - type - format - system - } - } + attributes(pagination: $pagination, sort: $sort, filters: $filters) { + totalCount + list { + id + label + type + format + system } -`; + } +} + `; /** * __useGetAttributesQuery__ @@ -5518,31 +2173,27 @@ export const GetAttributesDocument = gql` * }, * }); */ -export function useGetAttributesQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetAttributesDocument, options); -} -export function useGetAttributesLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(GetAttributesDocument, options); -} +export function useGetAttributesQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetAttributesDocument, options); + } +export function useGetAttributesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetAttributesDocument, options); + } export type GetAttributesQueryHookResult = ReturnType; export type GetAttributesLazyQueryHookResult = ReturnType; export type GetAttributesQueryResult = Apollo.QueryResult; export const GetVersionProfilesDocument = gql` query GET_VERSION_PROFILES($filters: VersionProfilesFiltersInput, $sort: SortVersionProfilesInput) { - versionProfiles(filters: $filters, sort: $sort) { - list { - id - label - } - } + versionProfiles(filters: $filters, sort: $sort) { + list { + id + label } -`; + } +} + `; /** * __useGetVersionProfilesQuery__ @@ -5561,49 +2212,36 @@ export const GetVersionProfilesDocument = gql` * }, * }); */ -export function useGetVersionProfilesQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - GetVersionProfilesDocument, - options - ); -} -export function useGetVersionProfilesLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - GetVersionProfilesDocument, - options - ); -} +export function useGetVersionProfilesQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetVersionProfilesDocument, options); + } +export function useGetVersionProfilesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetVersionProfilesDocument, options); + } export type GetVersionProfilesQueryHookResult = ReturnType; export type GetVersionProfilesLazyQueryHookResult = ReturnType; -export type GetVersionProfilesQueryResult = Apollo.QueryResult< - GetVersionProfilesQuery, - GetVersionProfilesQueryVariables ->; +export type GetVersionProfilesQueryResult = Apollo.QueryResult; export const GetVersionableAttributesByLibraryDocument = gql` query GET_VERSIONABLE_ATTRIBUTES_BY_LIBRARY($libraryId: String!) { - attributes(filters: {libraries: [$libraryId], versionable: true}) { - list { - id - versions_conf { - versionable - profile { - id - trees { - id - label - } - } - } - } + attributes(filters: {libraries: [$libraryId], versionable: true}) { + list { + id + versions_conf { + versionable + profile { + id + trees { + id + label + } } + } } -`; + } +} + `; /** * __useGetVersionableAttributesByLibraryQuery__ @@ -5621,48 +2259,24 @@ export const GetVersionableAttributesByLibraryDocument = gql` * }, * }); */ -export function useGetVersionableAttributesByLibraryQuery( - baseOptions: Apollo.QueryHookOptions< - GetVersionableAttributesByLibraryQuery, - GetVersionableAttributesByLibraryQueryVariables - > -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - GetVersionableAttributesByLibraryDocument, - options - ); -} -export function useGetVersionableAttributesByLibraryLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions< - GetVersionableAttributesByLibraryQuery, - GetVersionableAttributesByLibraryQueryVariables - > -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - GetVersionableAttributesByLibraryDocument, - options - ); -} -export type GetVersionableAttributesByLibraryQueryHookResult = ReturnType< - typeof useGetVersionableAttributesByLibraryQuery ->; -export type GetVersionableAttributesByLibraryLazyQueryHookResult = ReturnType< - typeof useGetVersionableAttributesByLibraryLazyQuery ->; -export type GetVersionableAttributesByLibraryQueryResult = Apollo.QueryResult< - GetVersionableAttributesByLibraryQuery, - GetVersionableAttributesByLibraryQueryVariables ->; +export function useGetVersionableAttributesByLibraryQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetVersionableAttributesByLibraryDocument, options); + } +export function useGetVersionableAttributesByLibraryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetVersionableAttributesByLibraryDocument, options); + } +export type GetVersionableAttributesByLibraryQueryHookResult = ReturnType; +export type GetVersionableAttributesByLibraryLazyQueryHookResult = ReturnType; +export type GetVersionableAttributesByLibraryQueryResult = Apollo.QueryResult; export const SaveAttributeDocument = gql` mutation SAVE_ATTRIBUTE($attribute: AttributeInput!) { - saveAttribute(attribute: $attribute) { - ...AttributeDetails - } - } - ${AttributeDetailsFragmentDoc} -`; + saveAttribute(attribute: $attribute) { + ...AttributeDetails + } +} + ${AttributeDetailsFragmentDoc}`; export type SaveAttributeMutationFn = Apollo.MutationFunction; /** @@ -5682,23 +2296,18 @@ export type SaveAttributeMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(SaveAttributeDocument, options); -} +export function useSaveAttributeMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SaveAttributeDocument, options); + } export type SaveAttributeMutationHookResult = ReturnType; export type SaveAttributeMutationResult = Apollo.MutationResult; -export type SaveAttributeMutationOptions = Apollo.BaseMutationOptions< - SaveAttributeMutation, - SaveAttributeMutationVariables ->; +export type SaveAttributeMutationOptions = Apollo.BaseMutationOptions; export const ExportDocument = gql` query EXPORT($library: ID!, $attributes: [ID!], $filters: [RecordFilterInput!]) { - export(library: $library, attributes: $attributes, filters: $filters) - } -`; + export(library: $library, attributes: $attributes, filters: $filters) +} + `; /** * __useExportQuery__ @@ -5719,28 +2328,24 @@ export const ExportDocument = gql` * }); */ export function useExportQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(ExportDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(ExportDocument, options); + } export function useExportLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(ExportDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(ExportDocument, options); + } export type ExportQueryHookResult = ReturnType; export type ExportLazyQueryHookResult = ReturnType; export type ExportQueryResult = Apollo.QueryResult; export const CreateDirectoryDocument = gql` mutation CREATE_DIRECTORY($library: String!, $nodeId: String!, $name: String!) { - createDirectory(library: $library, nodeId: $nodeId, name: $name) { - ...RecordIdentity - } - } - ${RecordIdentityFragmentDoc} -`; -export type CreateDirectoryMutationFn = Apollo.MutationFunction< - CreateDirectoryMutation, - CreateDirectoryMutationVariables ->; + createDirectory(library: $library, nodeId: $nodeId, name: $name) { + ...RecordIdentity + } +} + ${RecordIdentityFragmentDoc}`; +export type CreateDirectoryMutationFn = Apollo.MutationFunction; /** * __useCreateDirectoryMutation__ @@ -5761,42 +2366,25 @@ export type CreateDirectoryMutationFn = Apollo.MutationFunction< * }, * }); */ -export function useCreateDirectoryMutation( - baseOptions?: Apollo.MutationHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation( - CreateDirectoryDocument, - options - ); -} +export function useCreateDirectoryMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateDirectoryDocument, options); + } export type CreateDirectoryMutationHookResult = ReturnType; export type CreateDirectoryMutationResult = Apollo.MutationResult; -export type CreateDirectoryMutationOptions = Apollo.BaseMutationOptions< - CreateDirectoryMutation, - CreateDirectoryMutationVariables ->; +export type CreateDirectoryMutationOptions = Apollo.BaseMutationOptions; export const ForcePreviewsGenerationDocument = gql` - mutation FORCE_PREVIEWS_GENERATION( - $libraryId: ID! - $filters: [RecordFilterInput!] - $recordIds: [ID!] - $failedOnly: Boolean - $previewVersionSizeNames: [String!] - ) { - forcePreviewsGeneration( - libraryId: $libraryId - filters: $filters - recordIds: $recordIds - failedOnly: $failedOnly - previewVersionSizeNames: $previewVersionSizeNames - ) - } -`; -export type ForcePreviewsGenerationMutationFn = Apollo.MutationFunction< - ForcePreviewsGenerationMutation, - ForcePreviewsGenerationMutationVariables ->; + mutation FORCE_PREVIEWS_GENERATION($libraryId: ID!, $filters: [RecordFilterInput!], $recordIds: [ID!], $failedOnly: Boolean, $previewVersionSizeNames: [String!]) { + forcePreviewsGeneration( + libraryId: $libraryId + filters: $filters + recordIds: $recordIds + failedOnly: $failedOnly + previewVersionSizeNames: $previewVersionSizeNames + ) +} + `; +export type ForcePreviewsGenerationMutationFn = Apollo.MutationFunction; /** * __useForcePreviewsGenerationMutation__ @@ -5819,68 +2407,62 @@ export type ForcePreviewsGenerationMutationFn = Apollo.MutationFunction< * }, * }); */ -export function useForcePreviewsGenerationMutation( - baseOptions?: Apollo.MutationHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation( - ForcePreviewsGenerationDocument, - options - ); -} +export function useForcePreviewsGenerationMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(ForcePreviewsGenerationDocument, options); + } export type ForcePreviewsGenerationMutationHookResult = ReturnType; export type ForcePreviewsGenerationMutationResult = Apollo.MutationResult; -export type ForcePreviewsGenerationMutationOptions = Apollo.BaseMutationOptions< - ForcePreviewsGenerationMutation, - ForcePreviewsGenerationMutationVariables ->; +export type ForcePreviewsGenerationMutationOptions = Apollo.BaseMutationOptions; export const GetDirectoryDataDocument = gql` query GET_DIRECTORY_DATA($library: ID!, $directoryId: String!) { - records(library: $library, filters: [{field: "id", value: $directoryId, condition: EQUAL}]) { - list { - ...RecordIdentity - created_at: property(attribute: "created_at") { - ... on Value { - value - } - } - created_by: property(attribute: "created_by") { - ... on LinkValue { - value { - ...RecordIdentity - } - } - } - modified_at: property(attribute: "modified_at") { - ... on Value { - value - } - } - modified_by: property(attribute: "modified_by") { - ... on LinkValue { - value { - ...RecordIdentity - } - } - } - file_name: property(attribute: "file_name") { - ... on Value { - value - } - } - file_path: property(attribute: "file_path") { - ... on Value { - value - } - } - library { - behavior - } - } + records( + library: $library + filters: [{field: "id", value: $directoryId, condition: EQUAL}] + ) { + list { + ...RecordIdentity + created_at: property(attribute: "created_at") { + ... on Value { + value + } + } + created_by: property(attribute: "created_by") { + ... on LinkValue { + value { + ...RecordIdentity + } } + } + modified_at: property(attribute: "modified_at") { + ... on Value { + value + } + } + modified_by: property(attribute: "modified_by") { + ... on LinkValue { + value { + ...RecordIdentity + } + } + } + file_name: property(attribute: "file_name") { + ... on Value { + value + } + } + file_path: property(attribute: "file_path") { + ... on Value { + value + } + } + library { + behavior + } } - ${RecordIdentityFragmentDoc} -`; + } +} + ${RecordIdentityFragmentDoc}`; /** * __useGetDirectoryDataQuery__ @@ -5899,42 +2481,35 @@ export const GetDirectoryDataDocument = gql` * }, * }); */ -export function useGetDirectoryDataQuery( - baseOptions: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetDirectoryDataDocument, options); -} -export function useGetDirectoryDataLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - GetDirectoryDataDocument, - options - ); -} +export function useGetDirectoryDataQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetDirectoryDataDocument, options); + } +export function useGetDirectoryDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetDirectoryDataDocument, options); + } export type GetDirectoryDataQueryHookResult = ReturnType; export type GetDirectoryDataLazyQueryHookResult = ReturnType; export type GetDirectoryDataQueryResult = Apollo.QueryResult; export const UploadUpdateDocument = gql` subscription UPLOAD_UPDATE($filters: UploadFiltersInput) { - upload(filters: $filters) { - userId - progress { - length - transferred - speed - runtime - remaining - percentage - eta - delta - } - uid - } - } -`; + upload(filters: $filters) { + userId + progress { + length + transferred + speed + runtime + remaining + percentage + eta + delta + } + uid + } +} + `; /** * __useUploadUpdateSubscription__ @@ -5952,28 +2527,22 @@ export const UploadUpdateDocument = gql` * }, * }); */ -export function useUploadUpdateSubscription( - baseOptions?: Apollo.SubscriptionHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useSubscription( - UploadUpdateDocument, - options - ); -} +export function useUploadUpdateSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSubscription(UploadUpdateDocument, options); + } export type UploadUpdateSubscriptionHookResult = ReturnType; export type UploadUpdateSubscriptionResult = Apollo.SubscriptionResult; export const UploadDocument = gql` mutation UPLOAD($library: String!, $nodeId: String!, $files: [FileInput!]!) { - upload(library: $library, nodeId: $nodeId, files: $files) { - uid - record { - ...RecordIdentity - } - } + upload(library: $library, nodeId: $nodeId, files: $files) { + uid + record { + ...RecordIdentity } - ${RecordIdentityFragmentDoc} -`; + } +} + ${RecordIdentityFragmentDoc}`; export type UploadMutationFn = Apollo.MutationFunction; /** @@ -5996,17 +2565,17 @@ export type UploadMutationFn = Apollo.MutationFunction) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(UploadDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UploadDocument, options); + } export type UploadMutationHookResult = ReturnType; export type UploadMutationResult = Apollo.MutationResult; export type UploadMutationOptions = Apollo.BaseMutationOptions; export const ImportExcelDocument = gql` mutation IMPORT_EXCEL($file: Upload!, $sheets: [SheetInput], $startAt: Int) { - importExcel(file: $file, sheets: $sheets, startAt: $startAt) - } -`; + importExcel(file: $file, sheets: $sheets, startAt: $startAt) +} + `; export type ImportExcelMutationFn = Apollo.MutationFunction; /** @@ -6028,22 +2597,20 @@ export type ImportExcelMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(ImportExcelDocument, options); -} +export function useImportExcelMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(ImportExcelDocument, options); + } export type ImportExcelMutationHookResult = ReturnType; export type ImportExcelMutationResult = Apollo.MutationResult; export type ImportExcelMutationOptions = Apollo.BaseMutationOptions; export const CheckLibraryExistenceDocument = gql` query CHECK_LIBRARY_EXISTENCE($id: [ID!]) { - libraries(filters: {id: $id}) { - totalCount - } - } -`; + libraries(filters: {id: $id}) { + totalCount + } +} + `; /** * __useCheckLibraryExistenceQuery__ @@ -6061,37 +2628,24 @@ export const CheckLibraryExistenceDocument = gql` * }, * }); */ -export function useCheckLibraryExistenceQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - CheckLibraryExistenceDocument, - options - ); -} -export function useCheckLibraryExistenceLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - CheckLibraryExistenceDocument, - options - ); -} +export function useCheckLibraryExistenceQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(CheckLibraryExistenceDocument, options); + } +export function useCheckLibraryExistenceLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(CheckLibraryExistenceDocument, options); + } export type CheckLibraryExistenceQueryHookResult = ReturnType; export type CheckLibraryExistenceLazyQueryHookResult = ReturnType; -export type CheckLibraryExistenceQueryResult = Apollo.QueryResult< - CheckLibraryExistenceQuery, - CheckLibraryExistenceQueryVariables ->; +export type CheckLibraryExistenceQueryResult = Apollo.QueryResult; export const DeleteLibraryDocument = gql` mutation DELETE_LIBRARY($id: ID) { - deleteLibrary(id: $id) { - id - } - } -`; + deleteLibrary(id: $id) { + id + } +} + `; export type DeleteLibraryMutationFn = Apollo.MutationFunction; /** @@ -6111,28 +2665,22 @@ export type DeleteLibraryMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(DeleteLibraryDocument, options); -} +export function useDeleteLibraryMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteLibraryDocument, options); + } export type DeleteLibraryMutationHookResult = ReturnType; export type DeleteLibraryMutationResult = Apollo.MutationResult; -export type DeleteLibraryMutationOptions = Apollo.BaseMutationOptions< - DeleteLibraryMutation, - DeleteLibraryMutationVariables ->; +export type DeleteLibraryMutationOptions = Apollo.BaseMutationOptions; export const GetLibrariesDocument = gql` query GET_LIBRARIES { - libraries { - list { - ...LibraryLight - } - } + libraries { + list { + ...LibraryLight } - ${LibraryLightFragmentDoc} -`; + } +} + ${LibraryLightFragmentDoc}`; /** * __useGetLibrariesQuery__ @@ -6149,31 +2697,26 @@ export const GetLibrariesDocument = gql` * }, * }); */ -export function useGetLibrariesQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetLibrariesDocument, options); -} -export function useGetLibrariesLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(GetLibrariesDocument, options); -} +export function useGetLibrariesQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetLibrariesDocument, options); + } +export function useGetLibrariesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetLibrariesDocument, options); + } export type GetLibrariesQueryHookResult = ReturnType; export type GetLibrariesLazyQueryHookResult = ReturnType; export type GetLibrariesQueryResult = Apollo.QueryResult; export const GetLibraryByIdDocument = gql` query GET_LIBRARY_BY_ID($id: [ID!]) { - libraries(filters: {id: $id}) { - list { - ...LibraryDetails - } - } + libraries(filters: {id: $id}) { + list { + ...LibraryDetails } - ${LibraryDetailsFragmentDoc} -`; + } +} + ${LibraryDetailsFragmentDoc}`; /** * __useGetLibraryByIdQuery__ @@ -6191,36 +2734,32 @@ export const GetLibraryByIdDocument = gql` * }, * }); */ -export function useGetLibraryByIdQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetLibraryByIdDocument, options); -} -export function useGetLibraryByIdLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(GetLibraryByIdDocument, options); -} +export function useGetLibraryByIdQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetLibraryByIdDocument, options); + } +export function useGetLibraryByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetLibraryByIdDocument, options); + } export type GetLibraryByIdQueryHookResult = ReturnType; export type GetLibraryByIdLazyQueryHookResult = ReturnType; export type GetLibraryByIdQueryResult = Apollo.QueryResult; export const GetLibraryPermissionsDocument = gql` query GET_LIBRARY_PERMISSIONS($libraryId: [ID!]) { - libraries(filters: {id: $libraryId}) { - list { - permissions { - access_library - access_record - create_record - edit_record - delete_record - } - } - } + libraries(filters: {id: $libraryId}) { + list { + permissions { + access_library + access_record + create_record + edit_record + delete_record + } } -`; + } +} + `; /** * __useGetLibraryPermissionsQuery__ @@ -6238,54 +2777,41 @@ export const GetLibraryPermissionsDocument = gql` * }, * }); */ -export function useGetLibraryPermissionsQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - GetLibraryPermissionsDocument, - options - ); -} -export function useGetLibraryPermissionsLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - GetLibraryPermissionsDocument, - options - ); -} +export function useGetLibraryPermissionsQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetLibraryPermissionsDocument, options); + } +export function useGetLibraryPermissionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetLibraryPermissionsDocument, options); + } export type GetLibraryPermissionsQueryHookResult = ReturnType; export type GetLibraryPermissionsLazyQueryHookResult = ReturnType; -export type GetLibraryPermissionsQueryResult = Apollo.QueryResult< - GetLibraryPermissionsQuery, - GetLibraryPermissionsQueryVariables ->; +export type GetLibraryPermissionsQueryResult = Apollo.QueryResult; export const GetLibraryPreviewsSettingsDocument = gql` query GET_LIBRARY_PREVIEWS_SETTINGS($id: ID!) { - libraries(filters: {id: [$id]}) { - list { - id - label - behavior - previewsSettings { - description - label - system - versions { - background - density - sizes { - name - size - } - } - } - } + libraries(filters: {id: [$id]}) { + list { + id + label + behavior + previewsSettings { + description + label + system + versions { + background + density + sizes { + name + size + } } + } } -`; + } +} + `; /** * __useGetLibraryPreviewsSettingsQuery__ @@ -6303,38 +2829,24 @@ export const GetLibraryPreviewsSettingsDocument = gql` * }, * }); */ -export function useGetLibraryPreviewsSettingsQuery( - baseOptions: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - GetLibraryPreviewsSettingsDocument, - options - ); -} -export function useGetLibraryPreviewsSettingsLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - GetLibraryPreviewsSettingsDocument, - options - ); -} +export function useGetLibraryPreviewsSettingsQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetLibraryPreviewsSettingsDocument, options); + } +export function useGetLibraryPreviewsSettingsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetLibraryPreviewsSettingsDocument, options); + } export type GetLibraryPreviewsSettingsQueryHookResult = ReturnType; export type GetLibraryPreviewsSettingsLazyQueryHookResult = ReturnType; -export type GetLibraryPreviewsSettingsQueryResult = Apollo.QueryResult< - GetLibraryPreviewsSettingsQuery, - GetLibraryPreviewsSettingsQueryVariables ->; +export type GetLibraryPreviewsSettingsQueryResult = Apollo.QueryResult; export const SaveLibraryDocument = gql` mutation saveLibrary($library: LibraryInput!) { - saveLibrary(library: $library) { - ...LibraryDetails - } - } - ${LibraryDetailsFragmentDoc} -`; + saveLibrary(library: $library) { + ...LibraryDetails + } +} + ${LibraryDetailsFragmentDoc}`; export type SaveLibraryMutationFn = Apollo.MutationFunction; /** @@ -6354,28 +2866,21 @@ export type SaveLibraryMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(SaveLibraryDocument, options); -} +export function useSaveLibraryMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SaveLibraryDocument, options); + } export type SaveLibraryMutationHookResult = ReturnType; export type SaveLibraryMutationResult = Apollo.MutationResult; export type SaveLibraryMutationOptions = Apollo.BaseMutationOptions; export const IsAllowedDocument = gql` - query IS_ALLOWED( - $type: PermissionTypes! - $actions: [PermissionsActions!]! - $applyTo: ID - $target: PermissionTarget - ) { - isAllowed(type: $type, actions: $actions, applyTo: $applyTo, target: $target) { - name - allowed - } - } -`; + query IS_ALLOWED($type: PermissionTypes!, $actions: [PermissionsActions!]!, $applyTo: ID, $target: PermissionTarget) { + isAllowed(type: $type, actions: $actions, applyTo: $applyTo, target: $target) { + name + allowed + } +} + `; /** * __useIsAllowedQuery__ @@ -6397,35 +2902,32 @@ export const IsAllowedDocument = gql` * }); */ export function useIsAllowedQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(IsAllowedDocument, options); -} -export function useIsAllowedLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(IsAllowedDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(IsAllowedDocument, options); + } +export function useIsAllowedLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(IsAllowedDocument, options); + } export type IsAllowedQueryHookResult = ReturnType; export type IsAllowedLazyQueryHookResult = ReturnType; export type IsAllowedQueryResult = Apollo.QueryResult; export const CreateRecordDocument = gql` mutation CREATE_RECORD($library: ID!, $data: CreateRecordDataInput) { - createRecord(library: $library, data: $data) { - record { - ...RecordIdentity - } - valuesErrors { - attributeId - id_value - input - message - type - } - } + createRecord(library: $library, data: $data) { + record { + ...RecordIdentity } - ${RecordIdentityFragmentDoc} -`; + valuesErrors { + attributeId + id_value + input + message + type + } + } +} + ${RecordIdentityFragmentDoc}`; export type CreateRecordMutationFn = Apollo.MutationFunction; /** @@ -6446,31 +2948,26 @@ export type CreateRecordMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(CreateRecordDocument, options); -} +export function useCreateRecordMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateRecordDocument, options); + } export type CreateRecordMutationHookResult = ReturnType; export type CreateRecordMutationResult = Apollo.MutationResult; -export type CreateRecordMutationOptions = Apollo.BaseMutationOptions< - CreateRecordMutation, - CreateRecordMutationVariables ->; +export type CreateRecordMutationOptions = Apollo.BaseMutationOptions; export const DeactivateRecordsDocument = gql` mutation DEACTIVATE_RECORDS($libraryId: String!, $recordsIds: [String!], $filters: [RecordFilterInput!]) { - deactivateRecords(recordsIds: $recordsIds, filters: $filters, libraryId: $libraryId) { - id - ...RecordIdentity - } - } - ${RecordIdentityFragmentDoc} -`; -export type DeactivateRecordsMutationFn = Apollo.MutationFunction< - DeactivateRecordsMutation, - DeactivateRecordsMutationVariables ->; + deactivateRecords( + recordsIds: $recordsIds + filters: $filters + libraryId: $libraryId + ) { + id + ...RecordIdentity + } +} + ${RecordIdentityFragmentDoc}`; +export type DeactivateRecordsMutationFn = Apollo.MutationFunction; /** * __useDeactivateRecordsMutation__ @@ -6491,26 +2988,22 @@ export type DeactivateRecordsMutationFn = Apollo.MutationFunction< * }, * }); */ -export function useDeactivateRecordsMutation( - baseOptions?: Apollo.MutationHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation( - DeactivateRecordsDocument, - options - ); -} +export function useDeactivateRecordsMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeactivateRecordsDocument, options); + } export type DeactivateRecordsMutationHookResult = ReturnType; export type DeactivateRecordsMutationResult = Apollo.MutationResult; -export type DeactivateRecordsMutationOptions = Apollo.BaseMutationOptions< - DeactivateRecordsMutation, - DeactivateRecordsMutationVariables ->; +export type DeactivateRecordsMutationOptions = Apollo.BaseMutationOptions; export const DoesFileExistAsChildDocument = gql` query DOES_FILE_EXIST_AS_CHILD($parentNode: ID, $treeId: ID!, $filename: String!) { - doesFileExistAsChild(parentNode: $parentNode, treeId: $treeId, filename: $filename) - } -`; + doesFileExistAsChild( + parentNode: $parentNode + treeId: $treeId + filename: $filename + ) +} + `; /** * __useDoesFileExistAsChildQuery__ @@ -6530,82 +3023,71 @@ export const DoesFileExistAsChildDocument = gql` * }, * }); */ -export function useDoesFileExistAsChildQuery( - baseOptions: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - DoesFileExistAsChildDocument, - options - ); -} -export function useDoesFileExistAsChildLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - DoesFileExistAsChildDocument, - options - ); -} +export function useDoesFileExistAsChildQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(DoesFileExistAsChildDocument, options); + } +export function useDoesFileExistAsChildLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(DoesFileExistAsChildDocument, options); + } export type DoesFileExistAsChildQueryHookResult = ReturnType; export type DoesFileExistAsChildLazyQueryHookResult = ReturnType; -export type DoesFileExistAsChildQueryResult = Apollo.QueryResult< - DoesFileExistAsChildQuery, - DoesFileExistAsChildQueryVariables ->; +export type DoesFileExistAsChildQueryResult = Apollo.QueryResult; export const GetFileDataDocument = gql` query GET_FILE_DATA($library: ID!, $fileId: String!, $previewsStatusAttribute: ID!) { - records(library: $library, filters: [{field: "id", value: $fileId, condition: EQUAL}]) { - list { - ...RecordIdentity - created_at: property(attribute: "created_at") { - ... on Value { - value - } - } - created_by: property(attribute: "created_by") { - ... on LinkValue { - value { - ...RecordIdentity - } - } - } - modified_at: property(attribute: "modified_at") { - ... on Value { - value - } - } - modified_by: property(attribute: "modified_by") { - ... on LinkValue { - value { - ...RecordIdentity - } - } - } - file_name: property(attribute: "file_name") { - ... on Value { - value - } - } - file_path: property(attribute: "file_path") { - ... on Value { - value - } - } - previews_status: property(attribute: $previewsStatusAttribute) { - ... on Value { - value - } - } - library { - behavior - } - } + records( + library: $library + filters: [{field: "id", value: $fileId, condition: EQUAL}] + ) { + list { + ...RecordIdentity + created_at: property(attribute: "created_at") { + ... on Value { + value + } + } + created_by: property(attribute: "created_by") { + ... on LinkValue { + value { + ...RecordIdentity + } + } + } + modified_at: property(attribute: "modified_at") { + ... on Value { + value + } + } + modified_by: property(attribute: "modified_by") { + ... on LinkValue { + value { + ...RecordIdentity + } + } + } + file_name: property(attribute: "file_name") { + ... on Value { + value + } + } + file_path: property(attribute: "file_path") { + ... on Value { + value + } + } + previews_status: property(attribute: $previewsStatusAttribute) { + ... on Value { + value } + } + library { + behavior + } } - ${RecordIdentityFragmentDoc} -`; + } +} + ${RecordIdentityFragmentDoc}`; /** * __useGetFileDataQuery__ @@ -6626,36 +3108,38 @@ export const GetFileDataDocument = gql` * }); */ export function useGetFileDataQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetFileDataDocument, options); -} -export function useGetFileDataLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(GetFileDataDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetFileDataDocument, options); + } +export function useGetFileDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetFileDataDocument, options); + } export type GetFileDataQueryHookResult = ReturnType; export type GetFileDataLazyQueryHookResult = ReturnType; export type GetFileDataQueryResult = Apollo.QueryResult; export const RecordFormDocument = gql` query RECORD_FORM($libraryId: String!, $formId: String!, $recordId: String, $version: [ValueVersionInput!]) { - recordForm(recordId: $recordId, libraryId: $libraryId, formId: $formId, version: $version) { - id - recordId - library { - id - } - dependencyAttributes { - id - } - elements { - ...RecordFormElement - } - } + recordForm( + recordId: $recordId + libraryId: $libraryId + formId: $formId + version: $version + ) { + id + recordId + library { + id + } + dependencyAttributes { + id } - ${RecordFormElementFragmentDoc} -`; + elements { + ...RecordFormElement + } + } +} + ${RecordFormElementFragmentDoc}`; /** * __useRecordFormQuery__ @@ -6677,42 +3161,39 @@ export const RecordFormDocument = gql` * }); */ export function useRecordFormQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(RecordFormDocument, options); -} -export function useRecordFormLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(RecordFormDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(RecordFormDocument, options); + } +export function useRecordFormLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(RecordFormDocument, options); + } export type RecordFormQueryHookResult = ReturnType; export type RecordFormLazyQueryHookResult = ReturnType; export type RecordFormQueryResult = Apollo.QueryResult; export const RecordUpdateDocument = gql` subscription RECORD_UPDATE($filters: RecordUpdateFilterInput) { - recordUpdate(filters: $filters) { - record { - ...RecordIdentity - modified_by: property(attribute: "modified_by") { - ... on LinkValue { - value { - ...RecordIdentity - } - } - } - } - updatedValues { - attribute - value { - ...ValueDetails - } - } + recordUpdate(filters: $filters) { + record { + ...RecordIdentity + modified_by: property(attribute: "modified_by") { + ... on LinkValue { + value { + ...RecordIdentity + } } + } } + updatedValues { + attribute + value { + ...ValueDetails + } + } + } +} ${RecordIdentityFragmentDoc} - ${ValueDetailsFragmentDoc} -`; +${ValueDetailsFragmentDoc}`; /** * __useRecordUpdateSubscription__ @@ -6730,22 +3211,17 @@ export const RecordUpdateDocument = gql` * }, * }); */ -export function useRecordUpdateSubscription( - baseOptions?: Apollo.SubscriptionHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useSubscription( - RecordUpdateDocument, - options - ); -} +export function useRecordUpdateSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSubscription(RecordUpdateDocument, options); + } export type RecordUpdateSubscriptionHookResult = ReturnType; export type RecordUpdateSubscriptionResult = Apollo.SubscriptionResult; export const IndexRecordsDocument = gql` mutation INDEX_RECORDS($libraryId: String!, $records: [String!]) { - indexRecords(libraryId: $libraryId, records: $records) - } -`; + indexRecords(libraryId: $libraryId, records: $records) +} + `; export type IndexRecordsMutationFn = Apollo.MutationFunction; /** @@ -6766,23 +3242,18 @@ export type IndexRecordsMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(IndexRecordsDocument, options); -} +export function useIndexRecordsMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(IndexRecordsDocument, options); + } export type IndexRecordsMutationHookResult = ReturnType; export type IndexRecordsMutationResult = Apollo.MutationResult; -export type IndexRecordsMutationOptions = Apollo.BaseMutationOptions< - IndexRecordsMutation, - IndexRecordsMutationVariables ->; +export type IndexRecordsMutationOptions = Apollo.BaseMutationOptions; export const CancelTaskDocument = gql` mutation CANCEL_TASK($taskId: ID!) { - cancelTask(taskId: $taskId) - } -`; + cancelTask(taskId: $taskId) +} + `; export type CancelTaskMutationFn = Apollo.MutationFunction; /** @@ -6802,22 +3273,20 @@ export type CancelTaskMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(CancelTaskDocument, options); -} +export function useCancelTaskMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CancelTaskDocument, options); + } export type CancelTaskMutationHookResult = ReturnType; export type CancelTaskMutationResult = Apollo.MutationResult; export type CancelTaskMutationOptions = Apollo.BaseMutationOptions; export const CheckTreeExistenceDocument = gql` query CHECK_TREE_EXISTENCE($id: [ID!]) { - trees(filters: {id: $id}) { - totalCount - } - } -`; + trees(filters: {id: $id}) { + totalCount + } +} + `; /** * __useCheckTreeExistenceQuery__ @@ -6835,37 +3304,24 @@ export const CheckTreeExistenceDocument = gql` * }, * }); */ -export function useCheckTreeExistenceQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery( - CheckTreeExistenceDocument, - options - ); -} -export function useCheckTreeExistenceLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - CheckTreeExistenceDocument, - options - ); -} +export function useCheckTreeExistenceQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(CheckTreeExistenceDocument, options); + } +export function useCheckTreeExistenceLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(CheckTreeExistenceDocument, options); + } export type CheckTreeExistenceQueryHookResult = ReturnType; export type CheckTreeExistenceLazyQueryHookResult = ReturnType; -export type CheckTreeExistenceQueryResult = Apollo.QueryResult< - CheckTreeExistenceQuery, - CheckTreeExistenceQueryVariables ->; +export type CheckTreeExistenceQueryResult = Apollo.QueryResult; export const DeleteTreeDocument = gql` mutation DELETE_TREE($id: ID!) { - deleteTree(id: $id) { - id - } - } -`; + deleteTree(id: $id) { + id + } +} + `; export type DeleteTreeMutationFn = Apollo.MutationFunction; /** @@ -6885,25 +3341,22 @@ export type DeleteTreeMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(DeleteTreeDocument, options); -} +export function useDeleteTreeMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteTreeDocument, options); + } export type DeleteTreeMutationHookResult = ReturnType; export type DeleteTreeMutationResult = Apollo.MutationResult; export type DeleteTreeMutationOptions = Apollo.BaseMutationOptions; export const GetTreeByIdDocument = gql` query GET_TREE_BY_ID($id: [ID!]) { - trees(filters: {id: $id}) { - list { - ...TreeDetails - } - } + trees(filters: {id: $id}) { + list { + ...TreeDetails } - ${TreeDetailsFragmentDoc} -`; + } +} + ${TreeDetailsFragmentDoc}`; /** * __useGetTreeByIdQuery__ @@ -6921,46 +3374,42 @@ export const GetTreeByIdDocument = gql` * }, * }); */ -export function useGetTreeByIdQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetTreeByIdDocument, options); -} -export function useGetTreeByIdLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(GetTreeByIdDocument, options); -} +export function useGetTreeByIdQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetTreeByIdDocument, options); + } +export function useGetTreeByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetTreeByIdDocument, options); + } export type GetTreeByIdQueryHookResult = ReturnType; export type GetTreeByIdLazyQueryHookResult = ReturnType; export type GetTreeByIdQueryResult = Apollo.QueryResult; export const GetTreeLibrariesDocument = gql` query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) { - trees(filters: {id: $treeId, library: $library}) { - totalCount - list { - id - behavior - system - libraries { - library { - id - label - behavior - system - } - settings { - allowMultiplePositions - allowedChildren - allowedAtRoot - } - } - } + trees(filters: {id: $treeId, library: $library}) { + totalCount + list { + id + behavior + system + libraries { + library { + id + label + behavior + system + } + settings { + allowMultiplePositions + allowedChildren + allowedAtRoot } + } } -`; + } +} + `; /** * __useGetTreeLibrariesQuery__ @@ -6979,34 +3428,26 @@ export const GetTreeLibrariesDocument = gql` * }, * }); */ -export function useGetTreeLibrariesQuery( - baseOptions?: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetTreeLibrariesDocument, options); -} -export function useGetTreeLibrariesLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - GetTreeLibrariesDocument, - options - ); -} +export function useGetTreeLibrariesQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetTreeLibrariesDocument, options); + } +export function useGetTreeLibrariesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetTreeLibrariesDocument, options); + } export type GetTreeLibrariesQueryHookResult = ReturnType; export type GetTreeLibrariesLazyQueryHookResult = ReturnType; export type GetTreeLibrariesQueryResult = Apollo.QueryResult; export const GetTreesDocument = gql` query GET_TREES { - trees { - list { - ...TreeLight - } - } + trees { + list { + ...TreeLight } - ${TreeLightFragmentDoc} -`; + } +} + ${TreeLightFragmentDoc}`; /** * __useGetTreesQuery__ @@ -7024,24 +3465,23 @@ export const GetTreesDocument = gql` * }); */ export function useGetTreesQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetTreesDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetTreesDocument, options); + } export function useGetTreesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(GetTreesDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetTreesDocument, options); + } export type GetTreesQueryHookResult = ReturnType; export type GetTreesLazyQueryHookResult = ReturnType; export type GetTreesQueryResult = Apollo.QueryResult; export const SaveTreeDocument = gql` mutation SAVE_TREE($tree: TreeInput!) { - saveTree(tree: $tree) { - ...TreeDetails - } - } - ${TreeDetailsFragmentDoc} -`; + saveTree(tree: $tree) { + ...TreeDetails + } +} + ${TreeDetailsFragmentDoc}`; export type SaveTreeMutationFn = Apollo.MutationFunction; /** @@ -7061,26 +3501,23 @@ export type SaveTreeMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(SaveTreeDocument, options); -} +export function useSaveTreeMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SaveTreeDocument, options); + } export type SaveTreeMutationHookResult = ReturnType; export type SaveTreeMutationResult = Apollo.MutationResult; export type SaveTreeMutationOptions = Apollo.BaseMutationOptions; export const TreeNodeChildrenDocument = gql` query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination) { - treeNodeChildren(treeId: $treeId, node: $node, pagination: $pagination) { - totalCount - list { - ...TreeNodeChild - } - } + treeNodeChildren(treeId: $treeId, node: $node, pagination: $pagination) { + totalCount + list { + ...TreeNodeChild } - ${TreeNodeChildFragmentDoc} -`; + } +} + ${TreeNodeChildFragmentDoc}`; /** * __useTreeNodeChildrenQuery__ @@ -7100,32 +3537,25 @@ export const TreeNodeChildrenDocument = gql` * }, * }); */ -export function useTreeNodeChildrenQuery( - baseOptions: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(TreeNodeChildrenDocument, options); -} -export function useTreeNodeChildrenLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery( - TreeNodeChildrenDocument, - options - ); -} +export function useTreeNodeChildrenQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(TreeNodeChildrenDocument, options); + } +export function useTreeNodeChildrenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(TreeNodeChildrenDocument, options); + } export type TreeNodeChildrenQueryHookResult = ReturnType; export type TreeNodeChildrenLazyQueryHookResult = ReturnType; export type TreeNodeChildrenQueryResult = Apollo.QueryResult; export const GetUserDataDocument = gql` query GET_USER_DATA($keys: [String!]!, $global: Boolean) { - userData(keys: $keys, global: $global) { - global - data - } - } -`; + userData(keys: $keys, global: $global) { + global + data + } +} + `; /** * __useGetUserDataQuery__ @@ -7145,26 +3575,24 @@ export const GetUserDataDocument = gql` * }); */ export function useGetUserDataQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetUserDataDocument, options); -} -export function useGetUserDataLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(GetUserDataDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetUserDataDocument, options); + } +export function useGetUserDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetUserDataDocument, options); + } export type GetUserDataQueryHookResult = ReturnType; export type GetUserDataLazyQueryHookResult = ReturnType; export type GetUserDataQueryResult = Apollo.QueryResult; export const SaveUserDataDocument = gql` mutation SAVE_USER_DATA($key: String!, $value: Any, $global: Boolean!) { - saveUserData(key: $key, value: $value, global: $global) { - global - data - } - } -`; + saveUserData(key: $key, value: $value, global: $global) { + global + data + } +} + `; export type SaveUserDataMutationFn = Apollo.MutationFunction; /** @@ -7186,26 +3614,25 @@ export type SaveUserDataMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(SaveUserDataDocument, options); -} +export function useSaveUserDataMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SaveUserDataDocument, options); + } export type SaveUserDataMutationHookResult = ReturnType; export type SaveUserDataMutationResult = Apollo.MutationResult; -export type SaveUserDataMutationOptions = Apollo.BaseMutationOptions< - SaveUserDataMutation, - SaveUserDataMutationVariables ->; +export type SaveUserDataMutationOptions = Apollo.BaseMutationOptions; export const DeleteValueDocument = gql` mutation DELETE_VALUE($library: ID!, $recordId: ID!, $attribute: ID!, $value: ValueInput) { - deleteValue(library: $library, recordId: $recordId, attribute: $attribute, value: $value) { - ...ValueDetails - } - } - ${ValueDetailsFragmentDoc} -`; + deleteValue( + library: $library + recordId: $recordId + attribute: $attribute + value: $value + ) { + ...ValueDetails + } +} + ${ValueDetailsFragmentDoc}`; export type DeleteValueMutationFn = Apollo.MutationFunction; /** @@ -7228,43 +3655,34 @@ export type DeleteValueMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(DeleteValueDocument, options); -} +export function useDeleteValueMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteValueDocument, options); + } export type DeleteValueMutationHookResult = ReturnType; export type DeleteValueMutationResult = Apollo.MutationResult; export type DeleteValueMutationOptions = Apollo.BaseMutationOptions; export const SaveValueBatchDocument = gql` - mutation SAVE_VALUE_BATCH( - $library: ID! - $recordId: ID! - $version: [ValueVersionInput!] - $values: [ValueBatchInput!]! - $deleteEmpty: Boolean - ) { - saveValueBatch( - library: $library - recordId: $recordId - version: $version - values: $values - deleteEmpty: $deleteEmpty - ) { - values { - ...ValueDetails - } - errors { - type - attribute - input - message - } - } - } - ${ValueDetailsFragmentDoc} -`; + mutation SAVE_VALUE_BATCH($library: ID!, $recordId: ID!, $version: [ValueVersionInput!], $values: [ValueBatchInput!]!, $deleteEmpty: Boolean) { + saveValueBatch( + library: $library + recordId: $recordId + version: $version + values: $values + deleteEmpty: $deleteEmpty + ) { + values { + ...ValueDetails + } + errors { + type + attribute + input + message + } + } +} + ${ValueDetailsFragmentDoc}`; export type SaveValueBatchMutationFn = Apollo.MutationFunction; /** @@ -7288,26 +3706,21 @@ export type SaveValueBatchMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(SaveValueBatchDocument, options); -} +export function useSaveValueBatchMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SaveValueBatchDocument, options); + } export type SaveValueBatchMutationHookResult = ReturnType; export type SaveValueBatchMutationResult = Apollo.MutationResult; -export type SaveValueBatchMutationOptions = Apollo.BaseMutationOptions< - SaveValueBatchMutation, - SaveValueBatchMutationVariables ->; +export type SaveValueBatchMutationOptions = Apollo.BaseMutationOptions; export const DeleteViewDocument = gql` mutation DELETE_VIEW($viewId: String!) { - deleteView(viewId: $viewId) { - id - library - } - } -`; + deleteView(viewId: $viewId) { + id + library + } +} + `; export type DeleteViewMutationFn = Apollo.MutationFunction; /** @@ -7327,23 +3740,20 @@ export type DeleteViewMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(DeleteViewDocument, options); -} +export function useDeleteViewMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteViewDocument, options); + } export type DeleteViewMutationHookResult = ReturnType; export type DeleteViewMutationResult = Apollo.MutationResult; export type DeleteViewMutationOptions = Apollo.BaseMutationOptions; export const GetViewDocument = gql` query GET_VIEW($viewId: String!) { - view(viewId: $viewId) { - ...ViewDetails - } - } - ${ViewDetailsFragmentDoc} -`; + view(viewId: $viewId) { + ...ViewDetails + } +} + ${ViewDetailsFragmentDoc}`; /** * __useGetViewQuery__ @@ -7362,27 +3772,26 @@ export const GetViewDocument = gql` * }); */ export function useGetViewQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetViewDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetViewDocument, options); + } export function useGetViewLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(GetViewDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetViewDocument, options); + } export type GetViewQueryHookResult = ReturnType; export type GetViewLazyQueryHookResult = ReturnType; export type GetViewQueryResult = Apollo.QueryResult; export const GetViewsListDocument = gql` query GET_VIEWS_LIST($libraryId: String!) { - views(library: $libraryId) { - totalCount - list { - ...ViewDetails - } - } + views(library: $libraryId) { + totalCount + list { + ...ViewDetails } - ${ViewDetailsFragmentDoc} -`; + } +} + ${ViewDetailsFragmentDoc}`; /** * __useGetViewsListQuery__ @@ -7400,29 +3809,24 @@ export const GetViewsListDocument = gql` * }, * }); */ -export function useGetViewsListQuery( - baseOptions: Apollo.QueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useQuery(GetViewsListDocument, options); -} -export function useGetViewsListLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useLazyQuery(GetViewsListDocument, options); -} +export function useGetViewsListQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetViewsListDocument, options); + } +export function useGetViewsListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetViewsListDocument, options); + } export type GetViewsListQueryHookResult = ReturnType; export type GetViewsListLazyQueryHookResult = ReturnType; export type GetViewsListQueryResult = Apollo.QueryResult; export const AddViewDocument = gql` mutation ADD_VIEW($view: ViewInput!) { - saveView(view: $view) { - ...ViewDetails - } - } - ${ViewDetailsFragmentDoc} -`; + saveView(view: $view) { + ...ViewDetails + } +} + ${ViewDetailsFragmentDoc}`; export type AddViewMutationFn = Apollo.MutationFunction; /** @@ -7442,12 +3846,10 @@ export type AddViewMutationFn = Apollo.MutationFunction -) { - const options = {...defaultOptions, ...baseOptions}; - return Apollo.useMutation(AddViewDocument, options); -} +export function useAddViewMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(AddViewDocument, options); + } export type AddViewMutationHookResult = ReturnType; export type AddViewMutationResult = Apollo.MutationResult; -export type AddViewMutationOptions = Apollo.BaseMutationOptions; +export type AddViewMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file diff --git a/libs/ui/src/_queries/attributes/attributeDetailsFragment.ts b/libs/ui/src/_queries/attributes/attributeDetailsFragment.ts index d0cb8b145..013ee0a1f 100644 --- a/libs/ui/src/_queries/attributes/attributeDetailsFragment.ts +++ b/libs/ui/src/_queries/attributes/attributeDetailsFragment.ts @@ -38,6 +38,7 @@ export const attributeDetailsFragment = gql` ... on StandardAttribute { unique + maxLength } ... on LinkAttribute { diff --git a/libs/ui/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.tsx b/libs/ui/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.tsx index 7415a5bae..bf099394c 100644 --- a/libs/ui/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.tsx +++ b/libs/ui/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.tsx @@ -65,6 +65,7 @@ function EditAttributeInfo({attribute, onSetSubmitFunction, readOnly}: IEditAttr format: isStandardType ? values.format : null, readonly: values.readonly, unique: values.type === AttributeType.simple ? values.unique : false, + maxLength: values.maxLength ?? null, multiple_values: isTypeNotSimple ? values.multiple_values : false, versions_conf: isTypeNotSimple ? { diff --git a/libs/ui/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.tsx b/libs/ui/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.tsx index 5aa81ee55..172bf061d 100644 --- a/libs/ui/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.tsx +++ b/libs/ui/src/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.tsx @@ -2,7 +2,7 @@ // This file is released under LGPL V3 // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt import {idFormatRegex, Override, slugifyString} from '@leav/utils'; -import {Form, FormInstance, Input, Select, Switch} from 'antd'; +import {Form, FormInstance, Input, InputNumber, Select, Switch} from 'antd'; import React, {useState} from 'react'; import styled from 'styled-components'; import {useLang} from '../../../../../hooks'; @@ -97,6 +97,10 @@ function EditAttributeInfoForm({ } }; + const _handleNumberChange = (field: string) => (value: number) => { + form.setFieldsValue({[field]: value}); + }; + const _handleIdChange = () => { setHasIdBeenEdited(true); }; @@ -183,6 +187,7 @@ function EditAttributeInfoForm({ type: AttributeType.simple, format: AttributeFormat.text, readonly: false, + maxLength: null, unique: false, ...attributeSettings, ...label, @@ -355,6 +360,22 @@ function EditAttributeInfoForm({ )} + {[AttributeType.simple, AttributeType.advanced].includes(form.getFieldValue('type')) && ( + + { + _handleFieldSubmit('maxLength', form.getFieldValue('maxLength')); + }} + /> + + )} {isTypeNotSimple && ( { await user.type(screen.getByRole('textbox', {name: 'label_fr'}), 'label fr'); await user.type(screen.getByRole('textbox', {name: 'label_en'}), 'label_en'); + await user.type(screen.getByRole('spinbutton', {name: 'global.max_length'}), '5'); + await waitFor(() => { expect(idField).toHaveValue('label_fr'); }); @@ -119,6 +121,7 @@ describe('EditAttributeModal', () => { readonly: false, linked_library: null, linked_tree: null, + maxLength: 5, multiple_values: false, versions_conf: null } @@ -245,6 +248,43 @@ describe('EditAttributeModal', () => { } }); }); + + test('Submit maxLength field on change', async () => { + const user = userEvent.setup(); + jest.spyOn(gqlTypes, 'useGetAttributeByIdQuery').mockReturnValue(mockResultGetAttributeById as QueryResult); + const mockSaveAttributeMutation = jest.fn().mockReturnValue({ + data: { + saveAttribute: { + ...mockAttributeWithDetails + } + } + }); + jest.spyOn(gqlTypes, 'useSaveAttributeMutation').mockReturnValue([ + mockSaveAttributeMutation, + {loading: false, called: false, client: null, reset: null, error: null} + ]); + + render(); + + const maxLengthField = screen.getByRole('spinbutton', {name: /max_length/i}); + expect(maxLengthField).not.toBeDisabled(); + + const maxLength = 5; + + await user.type(maxLengthField, maxLength.toString()); + + // move the focus away + await userEvent.click(document.body); + + expect(mockSaveAttributeMutation).toBeCalledWith({ + variables: { + attribute: { + id: mockAttributeWithDetails.id, + maxLength + } + } + }); + }); }); describe('Delete attribute', () => { diff --git a/libs/ui/src/locales/en/shared.json b/libs/ui/src/locales/en/shared.json index 9025c33cd..65a4f1f70 100644 --- a/libs/ui/src/locales/en/shared.json +++ b/libs/ui/src/locales/en/shared.json @@ -27,7 +27,9 @@ "document_title": "LEAV Engine - {{appLabel}}", "yes": "Yes", "no": "No", - "create": "Create" + "create": "Create", + "ok": "Ok", + "max_length": "Max length" }, "errors": { "default_language_required": "The default language is required", @@ -39,7 +41,6 @@ "invalid_url_format": "Invalid URL" }, "applications": { - "new_app": "New application", "id": "Identifier", "label": "Label", "description": "Description", @@ -151,6 +152,8 @@ "behavior_files": "Files", "linked_libraries": "Linked libraries", "allowed_multiple_positions": "Allowed multiple positions", + "allowed_at_root": "Allowed at root", + "allowed_children": "Allowed children", "add_libraries": "Add libraries", "no_linked_libraries": "No linked libraries", "no_children_allowed": "No children allowed", @@ -387,7 +390,8 @@ }, "floating_menu": { "more_actions": "More" - },"record_edition": { + }, + "record_edition": { "no_form_error": "No form available", "invalid_format": "Invalid format", "missing_attribute": "Missing attribute", @@ -563,7 +567,6 @@ }, "files": { "generate_previews": "Generate previews", - "previews_generation_confirm": "Do you really want to generate previews?", "previews_generation_failed_only": "Only if previous generation failed", "previews_generation_success": "Previews generation started", "previews_generation_nothing_to_do": "No preview to generate", diff --git a/libs/ui/src/locales/fr/shared.json b/libs/ui/src/locales/fr/shared.json index b51fb5234..2dde2f3b6 100644 --- a/libs/ui/src/locales/fr/shared.json +++ b/libs/ui/src/locales/fr/shared.json @@ -28,7 +28,8 @@ "yes": "Oui", "no": "Non", "create": "Créer", - "ok": "Ok" + "ok": "Ok", + "max_length": "Longueur maximale" }, "errors": { "default_language_required": "La langue par défaut est requise",