@leav/ui 1.5.0 → 1.5.1-170d77cc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__mocks__/common/attribute.js +1 -0
- package/dist/__mocks__/common/attribute.js.map +1 -1
- package/dist/__mocks__/common/library.d.ts +9 -0
- package/dist/_gqlTypes/index.d.ts +222 -27
- package/dist/_gqlTypes/index.js +150 -12
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js +1 -0
- package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
- package/dist/_queries/libraries/libraryDetailsFragment.js +7 -0
- package/dist/_queries/libraries/libraryDetailsFragment.js.map +1 -1
- package/dist/components/Explorer/DataView.js +4 -3
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +1 -1
- package/dist/components/Explorer/Explorer.js +17 -4
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerFiltersAndSorts.d.ts +1 -0
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js +2 -2
- package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.d.ts +1 -0
- package/dist/components/Explorer/ExplorerToolbar.js +2 -2
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/IdCard.js +2 -2
- package/dist/components/Explorer/IdCard.js.map +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.d.ts +13 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +20 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.d.ts +10 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js +38 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.d.ts +8 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js +16 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +10 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +28 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.d.ts +5 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js +12 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.d.ts +5 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.js +20 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.d.ts +11 -0
- package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +106 -0
- package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useExportMassAction.js +5 -6
- package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -1
- package/dist/components/Explorer/useLoadView.js +0 -2
- package/dist/components/Explorer/useLoadView.js.map +1 -1
- package/dist/components/Filters/_types.d.ts +4 -0
- package/dist/components/Filters/_types.js.map +1 -1
- package/dist/components/Filters/context/filtersReducer.js +20 -11
- package/dist/components/Filters/context/filtersReducer.js.map +1 -1
- package/dist/components/Filters/context/useFiltersReducer.d.ts +2 -1
- package/dist/components/Filters/context/useFiltersReducer.js +9 -5
- package/dist/components/Filters/context/useFiltersReducer.js.map +1 -1
- package/dist/components/Filters/context/useGetTreeFilters.d.ts +15 -0
- package/dist/components/Filters/context/useGetTreeFilters.js +63 -0
- package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js +24 -7
- package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js +15 -17
- package/dist/components/Filters/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/index.js.map +1 -1
- package/dist/components/Filters/prepareFiltersForRequest.js +14 -5
- package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -1
- package/dist/components/Filters/useFilters.d.ts +4 -0
- package/dist/components/Filters/useTransformFilters.d.ts +5 -1
- package/dist/components/Filters/useTransformFilters.js +26 -3
- package/dist/components/Filters/useTransformFilters.js.map +1 -1
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +1 -1
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistory.js +11 -6
- package/dist/components/RecordHistory/RecordHistory.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js +13 -7
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
- package/dist/components/SearchModal/SearchModal.js +1 -1
- package/dist/components/SearchModal/SearchModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +4 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/TreePicker/TreesList/TreesList.js +1 -1
- package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +3 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.js +12 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.d.ts +38 -4
- package/dist/hooks/useIFrameMessenger/schema.js +10 -5
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/types.d.ts +20 -2
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +2 -0
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +2 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +2 -0
- package/dist/locales/en/shared.json +14 -2
- package/dist/locales/fr/shared.json +14 -2
- package/package.json +6 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute.js","sourceRoot":"","sources":["../../../src/__mocks__/common/attribute.ts"],"names":[],"mappings":"AAIA,OAAO,EAEH,eAAe,EACf,aAAa,GAKhB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,oBAAoB,GAA8B;IAC3D,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,aAAa,CAAC,MAAM;IAC1B,MAAM,EAAE,eAAe,CAAC,IAAI;IAC5B,KAAK,EAAE;QACH,EAAE,EAAE,cAAc;QAClB,EAAE,EAAE,cAAc;KACrB;IACD,MAAM,EAAE,KAAK;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAgD;IAC5E,EAAE,EAAE,cAAc;IAClB,KAAK,EAAE;QACH,EAAE,EAAE,cAAc;QAClB,EAAE,EAAE,cAAc;KACrB;IACD,IAAI,EAAE,aAAa,CAAC,MAAM;IA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C,MAAM,sBAAsB,GAAuB;IACtD,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,aAAa,CAAC,MAAM;IAC1B,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,EAAC,EAAE,EAAE,cAAc,EAAC;IAC3B,eAAe,EAAE,KAAK;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACtD,GAAG,sBAAsB;IACzB,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACtD,GAAG,sBAAsB;IACzB,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,GAAG;CACZ,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type ISelectedAttribute} from '_ui/types/attributes';\nimport {\n type AttributeDetailsFragment,\n AttributeFormat,\n AttributeType,\n type GetAttributesQuery,\n type LibraryAttributesFragment,\n type RecordFormAttributeFragment,\n type RecordFormAttributeTreeAttributeFragment,\n} from '_ui/_gqlTypes';\n\nexport const mockLibraryAttribute: LibraryAttributesFragment = {\n id: 'my_attribute',\n type: AttributeType.simple,\n format: AttributeFormat.text,\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n system: false,\n};\n\nexport const mockAttributeSimple: GetAttributesQuery['attributes']['list'][0] = {\n id: 'my_attribute',\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n type: AttributeType.simple,\n format: AttributeFormat.text,\n system: false,\n};\n\nexport const mockAttributeWithDetails: AttributeDetailsFragment = {\n id: 'my_attribute',\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n format: AttributeFormat.text,\n type: AttributeType.simple,\n system: false,\n description: {\n fr: 'Ma description',\n en: 'My description',\n },\n unique: false,\n readonly: false,\n multiple_values: false,\n};\n\nexport const mockAttributeLink: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n type: AttributeType.advanced_link,\n linked_library: {\n id: 'my_linked_library',\n label: {\n fr: 'Ma biblio',\n en: 'My library',\n },\n },\n};\n\nexport const mockAttributeTree: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n type: AttributeType.tree,\n linked_tree: {\n id: 'my_linked_tree',\n label: {\n fr: 'Mon arbre',\n en: 'My tree',\n },\n },\n};\n\nexport const mockAttributeVersionable: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n versions_conf: {\n versionable: true,\n profile: {\n id: 'my_profile',\n label: {\n fr: 'Mon profil',\n en: 'My profile',\n },\n trees: [\n {\n id: 'my_tree',\n label: {\n fr: 'Mon arbre',\n en: 'My tree',\n },\n },\n ],\n },\n },\n};\n\nexport const mockFormAttribute: RecordFormAttributeFragment = {\n id: 'test_attribute',\n type: AttributeType.simple,\n format: AttributeFormat.extended,\n label: {\n fr: 'test',\n en: 'test',\n },\n description: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n system: false,\n readonly: false,\n required: false,\n multiple_values: false,\n values_list: {\n enable: false,\n allowFreeEntry: false,\n allowListUpdate: false,\n values: [],\n },\n permissions: {\n access_attribute: true,\n edit_value: true,\n },\n metadata_fields: [\n {\n ...mockAttributeWithDetails,\n permissions: {\n access_attribute: true,\n edit_value: true,\n },\n },\n ],\n versions_conf: null,\n compute: false,\n};\n\nexport const mockFormAttributeCompute: RecordFormAttributeFragment = {\n ...mockFormAttribute,\n id: 'test_compute_attribute',\n format: AttributeFormat.text,\n compute: true,\n};\n\nexport const mockFormAttributeTree: RecordFormAttributeTreeAttributeFragment = {\n ...mockFormAttribute,\n ...mockAttributeTree,\n metadata_fields: null,\n treeValuesList: {enable: false, allowFreeEntry: false, allowListUpdate: false, values: []},\n};\n\nexport const mockSelectedAttributeA: ISelectedAttribute = {\n id: 'A',\n type: AttributeType.simple,\n path: 'A',\n library: 'test_lib',\n label: {fr: 'My attribute'},\n multiple_values: false,\n};\n\nexport const mockSelectedAttributeB: ISelectedAttribute = {\n ...mockSelectedAttributeA,\n id: 'B',\n path: 'B',\n};\n\nexport const mockSelectedAttributeC: ISelectedAttribute = {\n ...mockSelectedAttributeA,\n id: 'C',\n path: 'C',\n};\n"]}
|
|
1
|
+
{"version":3,"file":"attribute.js","sourceRoot":"","sources":["../../../src/__mocks__/common/attribute.ts"],"names":[],"mappings":"AAIA,OAAO,EAEH,eAAe,EACf,aAAa,GAKhB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,oBAAoB,GAA8B;IAC3D,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,aAAa,CAAC,MAAM;IAC1B,MAAM,EAAE,eAAe,CAAC,IAAI;IAC5B,KAAK,EAAE;QACH,EAAE,EAAE,cAAc;QAClB,EAAE,EAAE,cAAc;KACrB;IACD,MAAM,EAAE,KAAK;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAgD;IAC5E,EAAE,EAAE,cAAc;IAClB,KAAK,EAAE;QACH,EAAE,EAAE,cAAc;QAClB,EAAE,EAAE,cAAc;KACrB;IACD,IAAI,EAAE,aAAa,CAAC,MAAM;IAC1B,MAAM,EAAE,eAAe,CAAC,IAAI;IAC5B,MAAM,EAAE,KAAK;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAA6B;IAC9D,EAAE,EAAE,cAAc;IAClB,KAAK,EAAE;QACH,EAAE,EAAE,cAAc;QAClB,EAAE,EAAE,cAAc;KACrB;IACD,MAAM,EAAE,eAAe,CAAC,IAAI;IAC5B,IAAI,EAAE,aAAa,CAAC,MAAM;IAC1B,MAAM,EAAE,KAAK;IACb,WAAW,EAAE;QACT,EAAE,EAAE,gBAAgB;QACpB,EAAE,EAAE,gBAAgB;KACvB;IACD,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;CACzB,CAA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Content":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type ISelectedAttribute} from '_ui/types/attributes';\nimport {\n type AttributeDetailsFragment,\n AttributeFormat,\n AttributeType,\n type GetAttributesQuery,\n type LibraryAttributesFragment,\n type RecordFormAttributeFragment,\n type RecordFormAttributeTreeAttributeFragment,\n} from '_ui/_gqlTypes';\n\nexport const mockLibraryAttribute: LibraryAttributesFragment = {\n id: 'my_attribute',\n type: AttributeType.simple,\n format: AttributeFormat.text,\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n system: false,\n};\n\nexport const mockAttributeSimple: GetAttributesQuery['attributes']['list'][0] = {\n id: 'my_attribute',\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n type: AttributeType.simple,\n format: AttributeFormat.text,\n system: false,\n};\n\nexport const mockAttributeWithDetails: AttributeDetailsFragment = {\n id: 'my_attribute',\n label: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n format: AttributeFormat.text,\n type: AttributeType.simple,\n system: false,\n description: {\n fr: 'Ma description',\n en: 'My description',\n },\n unique: false,\n readonly: false,\n required: false,\n multiple_values: false,\n};\n\nexport const mockAttributeLink: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n type: AttributeType.advanced_link,\n linked_library: {\n id: 'my_linked_library',\n label: {\n fr: 'Ma biblio',\n en: 'My library',\n },\n },\n};\n\nexport const mockAttributeTree: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n type: AttributeType.tree,\n linked_tree: {\n id: 'my_linked_tree',\n label: {\n fr: 'Mon arbre',\n en: 'My tree',\n },\n },\n};\n\nexport const mockAttributeVersionable: AttributeDetailsFragment = {\n ...mockAttributeWithDetails,\n versions_conf: {\n versionable: true,\n profile: {\n id: 'my_profile',\n label: {\n fr: 'Mon profil',\n en: 'My profile',\n },\n trees: [\n {\n id: 'my_tree',\n label: {\n fr: 'Mon arbre',\n en: 'My tree',\n },\n },\n ],\n },\n },\n};\n\nexport const mockFormAttribute: RecordFormAttributeFragment = {\n id: 'test_attribute',\n type: AttributeType.simple,\n format: AttributeFormat.extended,\n label: {\n fr: 'test',\n en: 'test',\n },\n description: {\n fr: 'Mon attribut',\n en: 'My attribute',\n },\n system: false,\n readonly: false,\n required: false,\n multiple_values: false,\n values_list: {\n enable: false,\n allowFreeEntry: false,\n allowListUpdate: false,\n values: [],\n },\n permissions: {\n access_attribute: true,\n edit_value: true,\n },\n metadata_fields: [\n {\n ...mockAttributeWithDetails,\n permissions: {\n access_attribute: true,\n edit_value: true,\n },\n },\n ],\n versions_conf: null,\n compute: false,\n};\n\nexport const mockFormAttributeCompute: RecordFormAttributeFragment = {\n ...mockFormAttribute,\n id: 'test_compute_attribute',\n format: AttributeFormat.text,\n compute: true,\n};\n\nexport const mockFormAttributeTree: RecordFormAttributeTreeAttributeFragment = {\n ...mockFormAttribute,\n ...mockAttributeTree,\n metadata_fields: null,\n treeValuesList: {enable: false, allowFreeEntry: false, allowListUpdate: false, values: []},\n};\n\nexport const mockSelectedAttributeA: ISelectedAttribute = {\n id: 'A',\n type: AttributeType.simple,\n path: 'A',\n library: 'test_lib',\n label: {fr: 'My attribute'},\n multiple_values: false,\n};\n\nexport const mockSelectedAttributeB: ISelectedAttribute = {\n ...mockSelectedAttributeA,\n id: 'B',\n path: 'B',\n};\n\nexport const mockSelectedAttributeC: ISelectedAttribute = {\n ...mockSelectedAttributeA,\n id: 'C',\n path: 'C',\n};\n"]}
|
|
@@ -63,6 +63,15 @@ export declare const mockLibraryWithPreviewsSettings: {
|
|
|
63
63
|
system: boolean;
|
|
64
64
|
type: AttributeType;
|
|
65
65
|
format?: AttributeFormat | null;
|
|
66
|
+
} | {
|
|
67
|
+
id: string;
|
|
68
|
+
label?: any | null;
|
|
69
|
+
system: boolean;
|
|
70
|
+
type: AttributeType;
|
|
71
|
+
format?: AttributeFormat | null;
|
|
72
|
+
linked_tree?: {
|
|
73
|
+
id: string;
|
|
74
|
+
} | null;
|
|
66
75
|
}> | null;
|
|
67
76
|
permissions_conf?: {
|
|
68
77
|
relation: import("../../_gqlTypes").PermissionsRelation;
|
|
@@ -31,6 +31,10 @@ export type Scalars = {
|
|
|
31
31
|
TaskPriority: any;
|
|
32
32
|
Upload: any;
|
|
33
33
|
};
|
|
34
|
+
export type AccessRecordByDefaultPermissionInput = {
|
|
35
|
+
attributeId: Scalars['ID'];
|
|
36
|
+
libraryId: Scalars['ID'];
|
|
37
|
+
};
|
|
34
38
|
export type ActionConfigurationInput = {
|
|
35
39
|
error_message?: InputMaybe<Scalars['SystemTranslationOptional']>;
|
|
36
40
|
id: Scalars['ID'];
|
|
@@ -184,20 +188,6 @@ export declare enum AvailableLanguage {
|
|
|
184
188
|
en = "en",
|
|
185
189
|
fr = "fr"
|
|
186
190
|
}
|
|
187
|
-
export type CampaignToRenew = {
|
|
188
|
-
category?: InputMaybe<Scalars['String']>;
|
|
189
|
-
endDate: Scalars['String'];
|
|
190
|
-
id: Scalars['String'];
|
|
191
|
-
label: Scalars['String'];
|
|
192
|
-
startDate: Scalars['String'];
|
|
193
|
-
thematics?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
|
|
194
|
-
type?: InputMaybe<Scalars['String']>;
|
|
195
|
-
};
|
|
196
|
-
export type CampaignToUpdateDates = {
|
|
197
|
-
endDate: Scalars['String'];
|
|
198
|
-
id: Scalars['String'];
|
|
199
|
-
startDate: Scalars['String'];
|
|
200
|
-
};
|
|
201
191
|
export type ChildrenAsRecordValuePermissionFilterInput = {
|
|
202
192
|
action: RecordPermissionsActions;
|
|
203
193
|
attributeId: Scalars['ID'];
|
|
@@ -279,16 +269,6 @@ export declare enum FormsSortableFields {
|
|
|
279
269
|
library = "library",
|
|
280
270
|
system = "system"
|
|
281
271
|
}
|
|
282
|
-
export declare enum GenerationStatus {
|
|
283
|
-
DONE = "DONE",
|
|
284
|
-
GENERATION_FAILED = "GENERATION_FAILED",
|
|
285
|
-
GENERATION_IN_PROGRESS = "GENERATION_IN_PROGRESS",
|
|
286
|
-
GENERATION_IN_PROGRESS_WITH_FAILURE = "GENERATION_IN_PROGRESS_WITH_FAILURE",
|
|
287
|
-
PREPARATION_FAILED = "PREPARATION_FAILED",
|
|
288
|
-
PREPARATION_IN_PROGRESS = "PREPARATION_IN_PROGRESS",
|
|
289
|
-
TRANSMISSION_FAILED = "TRANSMISSION_FAILED",
|
|
290
|
-
TRANSMISSION_IN_PROGRESS = "TRANSMISSION_IN_PROGRESS"
|
|
291
|
-
}
|
|
292
272
|
export type GlobalSettingsFileInput = {
|
|
293
273
|
library: Scalars['String'];
|
|
294
274
|
recordId: Scalars['String'];
|
|
@@ -430,13 +410,19 @@ export type LogTopicRecordFilterInput = {
|
|
|
430
410
|
id?: InputMaybe<Scalars['String']>;
|
|
431
411
|
libraryId?: InputMaybe<Scalars['String']>;
|
|
432
412
|
};
|
|
413
|
+
export type MapValueInput = {
|
|
414
|
+
after?: InputMaybe<Scalars['ID']>;
|
|
415
|
+
before?: InputMaybe<Scalars['ID']>;
|
|
416
|
+
};
|
|
433
417
|
export declare enum MultiDisplayOption {
|
|
434
418
|
avatar = "avatar",
|
|
435
419
|
badge_qty = "badge_qty",
|
|
436
420
|
tag = "tag"
|
|
437
421
|
}
|
|
438
422
|
export declare enum NotificationLevel {
|
|
423
|
+
error = "error",
|
|
439
424
|
info = "info",
|
|
425
|
+
success = "success",
|
|
440
426
|
warning = "warning"
|
|
441
427
|
}
|
|
442
428
|
export type Pagination = {
|
|
@@ -673,7 +659,8 @@ export declare enum TaskType {
|
|
|
673
659
|
EXPORT = "EXPORT",
|
|
674
660
|
IMPORT_CONFIG = "IMPORT_CONFIG",
|
|
675
661
|
IMPORT_DATA = "IMPORT_DATA",
|
|
676
|
-
INDEXATION = "INDEXATION"
|
|
662
|
+
INDEXATION = "INDEXATION",
|
|
663
|
+
SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
|
|
677
664
|
}
|
|
678
665
|
export declare enum TreeBehavior {
|
|
679
666
|
files = "files",
|
|
@@ -885,6 +872,7 @@ export type AttributeDetailsLinkAttributeFragment = {
|
|
|
885
872
|
readonly: boolean;
|
|
886
873
|
label?: any | null;
|
|
887
874
|
description?: any | null;
|
|
875
|
+
required: boolean;
|
|
888
876
|
multiple_values: boolean;
|
|
889
877
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
890
878
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -924,6 +912,7 @@ export type AttributeDetailsStandardAttributeFragment = {
|
|
|
924
912
|
readonly: boolean;
|
|
925
913
|
label?: any | null;
|
|
926
914
|
description?: any | null;
|
|
915
|
+
required: boolean;
|
|
927
916
|
multiple_values: boolean;
|
|
928
917
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
929
918
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -958,6 +947,7 @@ export type AttributeDetailsTreeAttributeFragment = {
|
|
|
958
947
|
readonly: boolean;
|
|
959
948
|
label?: any | null;
|
|
960
949
|
description?: any | null;
|
|
950
|
+
required: boolean;
|
|
961
951
|
multiple_values: boolean;
|
|
962
952
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
963
953
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -1079,6 +1069,15 @@ export type LibraryDetailsFragment = {
|
|
|
1079
1069
|
system: boolean;
|
|
1080
1070
|
type: AttributeType;
|
|
1081
1071
|
format?: AttributeFormat | null;
|
|
1072
|
+
} | {
|
|
1073
|
+
id: string;
|
|
1074
|
+
label?: any | null;
|
|
1075
|
+
system: boolean;
|
|
1076
|
+
type: AttributeType;
|
|
1077
|
+
format?: AttributeFormat | null;
|
|
1078
|
+
linked_tree?: {
|
|
1079
|
+
id: string;
|
|
1080
|
+
} | null;
|
|
1082
1081
|
}> | null;
|
|
1083
1082
|
permissions_conf?: {
|
|
1084
1083
|
relation: PermissionsRelation;
|
|
@@ -1147,20 +1146,35 @@ export type LibraryAttributesLinkAttributeFragment = {
|
|
|
1147
1146
|
behavior: LibraryBehavior;
|
|
1148
1147
|
} | null;
|
|
1149
1148
|
};
|
|
1150
|
-
export type
|
|
1149
|
+
export type LibraryAttributesStandardAttributeFragment = {
|
|
1151
1150
|
id: string;
|
|
1152
1151
|
label?: any | null;
|
|
1153
1152
|
system: boolean;
|
|
1154
1153
|
type: AttributeType;
|
|
1155
1154
|
format?: AttributeFormat | null;
|
|
1156
1155
|
};
|
|
1157
|
-
export type
|
|
1156
|
+
export type LibraryAttributesTreeAttributeFragment = {
|
|
1157
|
+
id: string;
|
|
1158
|
+
label?: any | null;
|
|
1159
|
+
system: boolean;
|
|
1160
|
+
type: AttributeType;
|
|
1161
|
+
format?: AttributeFormat | null;
|
|
1162
|
+
linked_tree?: {
|
|
1163
|
+
id: string;
|
|
1164
|
+
} | null;
|
|
1165
|
+
};
|
|
1166
|
+
export type LibraryAttributesFragment = LibraryAttributesLinkAttributeFragment | LibraryAttributesStandardAttributeFragment | LibraryAttributesTreeAttributeFragment;
|
|
1158
1167
|
export type LibraryLinkAttributeDetailsFragment = {
|
|
1159
1168
|
linked_library?: {
|
|
1160
1169
|
id: string;
|
|
1161
1170
|
behavior: LibraryBehavior;
|
|
1162
1171
|
} | null;
|
|
1163
1172
|
};
|
|
1173
|
+
export type LibraryTreeAttributeDetailsFragment = {
|
|
1174
|
+
linked_tree?: {
|
|
1175
|
+
id: string;
|
|
1176
|
+
} | null;
|
|
1177
|
+
};
|
|
1164
1178
|
export type LibraryPreviewsSettingsFragment = {
|
|
1165
1179
|
label: any;
|
|
1166
1180
|
description?: any | null;
|
|
@@ -3147,6 +3161,7 @@ export type AttributesByLibAttributeWithPermissionsLinkAttributeFragment = {
|
|
|
3147
3161
|
label?: any | null;
|
|
3148
3162
|
multiple_values: boolean;
|
|
3149
3163
|
system: boolean;
|
|
3164
|
+
required: boolean;
|
|
3150
3165
|
readonly: boolean;
|
|
3151
3166
|
compute: boolean;
|
|
3152
3167
|
permissions: {
|
|
@@ -3181,6 +3196,7 @@ export type AttributesByLibAttributeWithPermissionsStandardAttributeFragment = {
|
|
|
3181
3196
|
label?: any | null;
|
|
3182
3197
|
multiple_values: boolean;
|
|
3183
3198
|
system: boolean;
|
|
3199
|
+
required: boolean;
|
|
3184
3200
|
readonly: boolean;
|
|
3185
3201
|
compute: boolean;
|
|
3186
3202
|
embedded_fields?: Array<{
|
|
@@ -3213,6 +3229,7 @@ export type AttributesByLibAttributeWithPermissionsTreeAttributeFragment = {
|
|
|
3213
3229
|
label?: any | null;
|
|
3214
3230
|
multiple_values: boolean;
|
|
3215
3231
|
system: boolean;
|
|
3232
|
+
required: boolean;
|
|
3216
3233
|
readonly: boolean;
|
|
3217
3234
|
compute: boolean;
|
|
3218
3235
|
linked_tree?: {
|
|
@@ -3623,6 +3640,7 @@ export type GetAttributeByIdQuery = {
|
|
|
3623
3640
|
readonly: boolean;
|
|
3624
3641
|
label?: any | null;
|
|
3625
3642
|
description?: any | null;
|
|
3643
|
+
required: boolean;
|
|
3626
3644
|
multiple_values: boolean;
|
|
3627
3645
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3628
3646
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -3661,6 +3679,7 @@ export type GetAttributeByIdQuery = {
|
|
|
3661
3679
|
readonly: boolean;
|
|
3662
3680
|
label?: any | null;
|
|
3663
3681
|
description?: any | null;
|
|
3682
|
+
required: boolean;
|
|
3664
3683
|
multiple_values: boolean;
|
|
3665
3684
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3666
3685
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -3694,6 +3713,7 @@ export type GetAttributeByIdQuery = {
|
|
|
3694
3713
|
readonly: boolean;
|
|
3695
3714
|
label?: any | null;
|
|
3696
3715
|
description?: any | null;
|
|
3716
|
+
required: boolean;
|
|
3697
3717
|
multiple_values: boolean;
|
|
3698
3718
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3699
3719
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -3838,6 +3858,7 @@ export type SaveAttributeMutation = {
|
|
|
3838
3858
|
readonly: boolean;
|
|
3839
3859
|
label?: any | null;
|
|
3840
3860
|
description?: any | null;
|
|
3861
|
+
required: boolean;
|
|
3841
3862
|
multiple_values: boolean;
|
|
3842
3863
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3843
3864
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -3876,6 +3897,7 @@ export type SaveAttributeMutation = {
|
|
|
3876
3897
|
readonly: boolean;
|
|
3877
3898
|
label?: any | null;
|
|
3878
3899
|
description?: any | null;
|
|
3900
|
+
required: boolean;
|
|
3879
3901
|
multiple_values: boolean;
|
|
3880
3902
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3881
3903
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -3909,6 +3931,7 @@ export type SaveAttributeMutation = {
|
|
|
3909
3931
|
readonly: boolean;
|
|
3910
3932
|
label?: any | null;
|
|
3911
3933
|
description?: any | null;
|
|
3934
|
+
required: boolean;
|
|
3912
3935
|
multiple_values: boolean;
|
|
3913
3936
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3914
3937
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -4166,6 +4189,15 @@ export type GetLibraryByIdQuery = {
|
|
|
4166
4189
|
system: boolean;
|
|
4167
4190
|
type: AttributeType;
|
|
4168
4191
|
format?: AttributeFormat | null;
|
|
4192
|
+
} | {
|
|
4193
|
+
id: string;
|
|
4194
|
+
label?: any | null;
|
|
4195
|
+
system: boolean;
|
|
4196
|
+
type: AttributeType;
|
|
4197
|
+
format?: AttributeFormat | null;
|
|
4198
|
+
linked_tree?: {
|
|
4199
|
+
id: string;
|
|
4200
|
+
} | null;
|
|
4169
4201
|
}> | null;
|
|
4170
4202
|
permissions_conf?: {
|
|
4171
4203
|
relation: PermissionsRelation;
|
|
@@ -4295,6 +4327,15 @@ export type SaveLibraryMutation = {
|
|
|
4295
4327
|
system: boolean;
|
|
4296
4328
|
type: AttributeType;
|
|
4297
4329
|
format?: AttributeFormat | null;
|
|
4330
|
+
} | {
|
|
4331
|
+
id: string;
|
|
4332
|
+
label?: any | null;
|
|
4333
|
+
system: boolean;
|
|
4334
|
+
type: AttributeType;
|
|
4335
|
+
format?: AttributeFormat | null;
|
|
4336
|
+
linked_tree?: {
|
|
4337
|
+
id: string;
|
|
4338
|
+
} | null;
|
|
4298
4339
|
}> | null;
|
|
4299
4340
|
permissions_conf?: {
|
|
4300
4341
|
relation: PermissionsRelation;
|
|
@@ -6937,6 +6978,15 @@ export type SaveValueBatchMutation = {
|
|
|
6937
6978
|
}> | null;
|
|
6938
6979
|
};
|
|
6939
6980
|
};
|
|
6981
|
+
export type SaveValueBulkMutationVariables = Exact<{
|
|
6982
|
+
libraryId: Scalars['ID'];
|
|
6983
|
+
recordsFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
|
|
6984
|
+
attributeId: Scalars['ID'];
|
|
6985
|
+
mapValues: Array<MapValueInput> | MapValueInput;
|
|
6986
|
+
}>;
|
|
6987
|
+
export type SaveValueBulkMutation = {
|
|
6988
|
+
saveValueBulk: string;
|
|
6989
|
+
};
|
|
6940
6990
|
export type DeleteViewMutationVariables = Exact<{
|
|
6941
6991
|
viewId: Scalars['String'];
|
|
6942
6992
|
}>;
|
|
@@ -7138,6 +7188,28 @@ export type SaveViewMutation = {
|
|
|
7138
7188
|
}> | null;
|
|
7139
7189
|
};
|
|
7140
7190
|
};
|
|
7191
|
+
export type TreeFilterByDefaultValuesQueryVariables = Exact<{
|
|
7192
|
+
treeId: Scalars['ID'];
|
|
7193
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
7194
|
+
}>;
|
|
7195
|
+
export type TreeFilterByDefaultValuesQuery = {
|
|
7196
|
+
treeNodeChildren: {
|
|
7197
|
+
list: Array<{
|
|
7198
|
+
accessRecordByDefaultPermission?: boolean | null;
|
|
7199
|
+
id: string;
|
|
7200
|
+
record: {
|
|
7201
|
+
id: string;
|
|
7202
|
+
whoAmI: {
|
|
7203
|
+
label?: string | null;
|
|
7204
|
+
id: string;
|
|
7205
|
+
library: {
|
|
7206
|
+
id: string;
|
|
7207
|
+
};
|
|
7208
|
+
};
|
|
7209
|
+
};
|
|
7210
|
+
}>;
|
|
7211
|
+
};
|
|
7212
|
+
};
|
|
7141
7213
|
export type GetAttributesByLibWithPermissionsQueryVariables = Exact<{
|
|
7142
7214
|
library: Scalars['String'];
|
|
7143
7215
|
}>;
|
|
@@ -7150,6 +7222,7 @@ export type GetAttributesByLibWithPermissionsQuery = {
|
|
|
7150
7222
|
label?: any | null;
|
|
7151
7223
|
multiple_values: boolean;
|
|
7152
7224
|
system: boolean;
|
|
7225
|
+
required: boolean;
|
|
7153
7226
|
readonly: boolean;
|
|
7154
7227
|
compute: boolean;
|
|
7155
7228
|
valuesList?: {
|
|
@@ -7183,6 +7256,7 @@ export type GetAttributesByLibWithPermissionsQuery = {
|
|
|
7183
7256
|
label?: any | null;
|
|
7184
7257
|
multiple_values: boolean;
|
|
7185
7258
|
system: boolean;
|
|
7259
|
+
required: boolean;
|
|
7186
7260
|
readonly: boolean;
|
|
7187
7261
|
compute: boolean;
|
|
7188
7262
|
embedded_fields?: Array<{
|
|
@@ -7214,6 +7288,7 @@ export type GetAttributesByLibWithPermissionsQuery = {
|
|
|
7214
7288
|
label?: any | null;
|
|
7215
7289
|
multiple_values: boolean;
|
|
7216
7290
|
system: boolean;
|
|
7291
|
+
required: boolean;
|
|
7217
7292
|
readonly: boolean;
|
|
7218
7293
|
compute: boolean;
|
|
7219
7294
|
linked_tree?: {
|
|
@@ -7351,6 +7426,22 @@ export type ExplorerLinkAttributeQuery = {
|
|
|
7351
7426
|
}>;
|
|
7352
7427
|
} | null;
|
|
7353
7428
|
};
|
|
7429
|
+
export type CountValuesOccurrencesQueryVariables = Exact<{
|
|
7430
|
+
library: Scalars['ID'];
|
|
7431
|
+
attribute: Scalars['ID'];
|
|
7432
|
+
recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
|
|
7433
|
+
}>;
|
|
7434
|
+
export type CountValuesOccurrencesQuery = {
|
|
7435
|
+
countValuesOccurrences?: {
|
|
7436
|
+
noValueCount: number;
|
|
7437
|
+
occurrences: Array<{
|
|
7438
|
+
count: number;
|
|
7439
|
+
value: {
|
|
7440
|
+
id: string;
|
|
7441
|
+
};
|
|
7442
|
+
}>;
|
|
7443
|
+
} | null;
|
|
7444
|
+
};
|
|
7354
7445
|
export type ExplorerLibraryDataQueryVariables = Exact<{
|
|
7355
7446
|
libraryId: Scalars['ID'];
|
|
7356
7447
|
attributeIds: Array<Scalars['ID']> | Scalars['ID'];
|
|
@@ -7745,6 +7836,7 @@ export declare const AttributesByLibLinkAttributeFragmentDoc: Apollo.DocumentNod
|
|
|
7745
7836
|
export declare const AttributesByLibAttributeFragmentDoc: Apollo.DocumentNode;
|
|
7746
7837
|
export declare const LibraryLightFragmentDoc: Apollo.DocumentNode;
|
|
7747
7838
|
export declare const LibraryLinkAttributeDetailsFragmentDoc: Apollo.DocumentNode;
|
|
7839
|
+
export declare const LibraryTreeAttributeDetailsFragmentDoc: Apollo.DocumentNode;
|
|
7748
7840
|
export declare const LibraryAttributesFragmentDoc: Apollo.DocumentNode;
|
|
7749
7841
|
export declare const LibraryPreviewsSettingsFragmentDoc: Apollo.DocumentNode;
|
|
7750
7842
|
export declare const LibraryDetailsFragmentDoc: Apollo.DocumentNode;
|
|
@@ -9324,6 +9416,37 @@ export declare function useSaveValueBatchMutation(baseOptions?: Apollo.MutationH
|
|
|
9324
9416
|
export type SaveValueBatchMutationHookResult = ReturnType<typeof useSaveValueBatchMutation>;
|
|
9325
9417
|
export type SaveValueBatchMutationResult = Apollo.MutationResult<SaveValueBatchMutation>;
|
|
9326
9418
|
export type SaveValueBatchMutationOptions = Apollo.BaseMutationOptions<SaveValueBatchMutation, SaveValueBatchMutationVariables>;
|
|
9419
|
+
export declare const SaveValueBulkDocument: Apollo.DocumentNode;
|
|
9420
|
+
export type SaveValueBulkMutationFn = Apollo.MutationFunction<SaveValueBulkMutation, SaveValueBulkMutationVariables>;
|
|
9421
|
+
/**
|
|
9422
|
+
* __useSaveValueBulkMutation__
|
|
9423
|
+
*
|
|
9424
|
+
* To run a mutation, you first call `useSaveValueBulkMutation` within a React component and pass it any options that fit your needs.
|
|
9425
|
+
* When your component renders, `useSaveValueBulkMutation` returns a tuple that includes:
|
|
9426
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
9427
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
9428
|
+
*
|
|
9429
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
9430
|
+
*
|
|
9431
|
+
* @example
|
|
9432
|
+
* const [saveValueBulkMutation, { data, loading, error }] = useSaveValueBulkMutation({
|
|
9433
|
+
* variables: {
|
|
9434
|
+
* libraryId: // value for 'libraryId'
|
|
9435
|
+
* recordsFilters: // value for 'recordsFilters'
|
|
9436
|
+
* attributeId: // value for 'attributeId'
|
|
9437
|
+
* mapValues: // value for 'mapValues'
|
|
9438
|
+
* },
|
|
9439
|
+
* });
|
|
9440
|
+
*/
|
|
9441
|
+
export declare function useSaveValueBulkMutation(baseOptions?: Apollo.MutationHookOptions<SaveValueBulkMutation, SaveValueBulkMutationVariables>): Apollo.MutationTuple<SaveValueBulkMutation, Exact<{
|
|
9442
|
+
libraryId: Scalars["ID"];
|
|
9443
|
+
recordsFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
|
|
9444
|
+
attributeId: Scalars["ID"];
|
|
9445
|
+
mapValues: Array<MapValueInput> | MapValueInput;
|
|
9446
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
9447
|
+
export type SaveValueBulkMutationHookResult = ReturnType<typeof useSaveValueBulkMutation>;
|
|
9448
|
+
export type SaveValueBulkMutationResult = Apollo.MutationResult<SaveValueBulkMutation>;
|
|
9449
|
+
export type SaveValueBulkMutationOptions = Apollo.BaseMutationOptions<SaveValueBulkMutation, SaveValueBulkMutationVariables>;
|
|
9327
9450
|
export declare const DeleteViewDocument: Apollo.DocumentNode;
|
|
9328
9451
|
export type DeleteViewMutationFn = Apollo.MutationFunction<DeleteViewMutation, DeleteViewMutationVariables>;
|
|
9329
9452
|
/**
|
|
@@ -9434,6 +9557,40 @@ export declare function useSaveViewMutation(baseOptions?: Apollo.MutationHookOpt
|
|
|
9434
9557
|
export type SaveViewMutationHookResult = ReturnType<typeof useSaveViewMutation>;
|
|
9435
9558
|
export type SaveViewMutationResult = Apollo.MutationResult<SaveViewMutation>;
|
|
9436
9559
|
export type SaveViewMutationOptions = Apollo.BaseMutationOptions<SaveViewMutation, SaveViewMutationVariables>;
|
|
9560
|
+
export declare const TreeFilterByDefaultValuesDocument: Apollo.DocumentNode;
|
|
9561
|
+
/**
|
|
9562
|
+
* __useTreeFilterByDefaultValuesQuery__
|
|
9563
|
+
*
|
|
9564
|
+
* To run a query within a React component, call `useTreeFilterByDefaultValuesQuery` and pass it any options that fit your needs.
|
|
9565
|
+
* When your component renders, `useTreeFilterByDefaultValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9566
|
+
* you can use to render your UI.
|
|
9567
|
+
*
|
|
9568
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
9569
|
+
*
|
|
9570
|
+
* @example
|
|
9571
|
+
* const { data, loading, error } = useTreeFilterByDefaultValuesQuery({
|
|
9572
|
+
* variables: {
|
|
9573
|
+
* treeId: // value for 'treeId'
|
|
9574
|
+
* accessRecordByDefaultPermission: // value for 'accessRecordByDefaultPermission'
|
|
9575
|
+
* },
|
|
9576
|
+
* });
|
|
9577
|
+
*/
|
|
9578
|
+
export declare function useTreeFilterByDefaultValuesQuery(baseOptions: Apollo.QueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.QueryResult<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9579
|
+
treeId: Scalars["ID"];
|
|
9580
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9581
|
+
}>>;
|
|
9582
|
+
export declare function useTreeFilterByDefaultValuesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.LazyQueryResultTuple<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9583
|
+
treeId: Scalars["ID"];
|
|
9584
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9585
|
+
}>>;
|
|
9586
|
+
export declare function useTreeFilterByDefaultValuesSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>): Apollo.UseSuspenseQueryResult<TreeFilterByDefaultValuesQuery, Exact<{
|
|
9587
|
+
treeId: Scalars["ID"];
|
|
9588
|
+
accessRecordByDefaultPermission?: InputMaybe<AccessRecordByDefaultPermissionInput>;
|
|
9589
|
+
}>>;
|
|
9590
|
+
export type TreeFilterByDefaultValuesQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesQuery>;
|
|
9591
|
+
export type TreeFilterByDefaultValuesLazyQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesLazyQuery>;
|
|
9592
|
+
export type TreeFilterByDefaultValuesSuspenseQueryHookResult = ReturnType<typeof useTreeFilterByDefaultValuesSuspenseQuery>;
|
|
9593
|
+
export type TreeFilterByDefaultValuesQueryResult = Apollo.QueryResult<TreeFilterByDefaultValuesQuery, TreeFilterByDefaultValuesQueryVariables>;
|
|
9437
9594
|
export declare const GetAttributesByLibWithPermissionsDocument: Apollo.DocumentNode;
|
|
9438
9595
|
/**
|
|
9439
9596
|
* __useGetAttributesByLibWithPermissionsQuery__
|
|
@@ -9524,6 +9681,44 @@ export type ExplorerLinkAttributeQueryHookResult = ReturnType<typeof useExplorer
|
|
|
9524
9681
|
export type ExplorerLinkAttributeLazyQueryHookResult = ReturnType<typeof useExplorerLinkAttributeLazyQuery>;
|
|
9525
9682
|
export type ExplorerLinkAttributeSuspenseQueryHookResult = ReturnType<typeof useExplorerLinkAttributeSuspenseQuery>;
|
|
9526
9683
|
export type ExplorerLinkAttributeQueryResult = Apollo.QueryResult<ExplorerLinkAttributeQuery, ExplorerLinkAttributeQueryVariables>;
|
|
9684
|
+
export declare const CountValuesOccurrencesDocument: Apollo.DocumentNode;
|
|
9685
|
+
/**
|
|
9686
|
+
* __useCountValuesOccurrencesQuery__
|
|
9687
|
+
*
|
|
9688
|
+
* To run a query within a React component, call `useCountValuesOccurrencesQuery` and pass it any options that fit your needs.
|
|
9689
|
+
* When your component renders, `useCountValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
9690
|
+
* you can use to render your UI.
|
|
9691
|
+
*
|
|
9692
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
9693
|
+
*
|
|
9694
|
+
* @example
|
|
9695
|
+
* const { data, loading, error } = useCountValuesOccurrencesQuery({
|
|
9696
|
+
* variables: {
|
|
9697
|
+
* library: // value for 'library'
|
|
9698
|
+
* attribute: // value for 'attribute'
|
|
9699
|
+
* recordFilters: // value for 'recordFilters'
|
|
9700
|
+
* },
|
|
9701
|
+
* });
|
|
9702
|
+
*/
|
|
9703
|
+
export declare function useCountValuesOccurrencesQuery(baseOptions: Apollo.QueryHookOptions<CountValuesOccurrencesQuery, CountValuesOccurrencesQueryVariables>): Apollo.QueryResult<CountValuesOccurrencesQuery, Exact<{
|
|
9704
|
+
library: Scalars["ID"];
|
|
9705
|
+
attribute: Scalars["ID"];
|
|
9706
|
+
recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
|
|
9707
|
+
}>>;
|
|
9708
|
+
export declare function useCountValuesOccurrencesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CountValuesOccurrencesQuery, CountValuesOccurrencesQueryVariables>): Apollo.LazyQueryResultTuple<CountValuesOccurrencesQuery, Exact<{
|
|
9709
|
+
library: Scalars["ID"];
|
|
9710
|
+
attribute: Scalars["ID"];
|
|
9711
|
+
recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
|
|
9712
|
+
}>>;
|
|
9713
|
+
export declare function useCountValuesOccurrencesSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<CountValuesOccurrencesQuery, CountValuesOccurrencesQueryVariables>): Apollo.UseSuspenseQueryResult<CountValuesOccurrencesQuery, Exact<{
|
|
9714
|
+
library: Scalars["ID"];
|
|
9715
|
+
attribute: Scalars["ID"];
|
|
9716
|
+
recordFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>>;
|
|
9717
|
+
}>>;
|
|
9718
|
+
export type CountValuesOccurrencesQueryHookResult = ReturnType<typeof useCountValuesOccurrencesQuery>;
|
|
9719
|
+
export type CountValuesOccurrencesLazyQueryHookResult = ReturnType<typeof useCountValuesOccurrencesLazyQuery>;
|
|
9720
|
+
export type CountValuesOccurrencesSuspenseQueryHookResult = ReturnType<typeof useCountValuesOccurrencesSuspenseQuery>;
|
|
9721
|
+
export type CountValuesOccurrencesQueryResult = Apollo.QueryResult<CountValuesOccurrencesQuery, CountValuesOccurrencesQueryVariables>;
|
|
9527
9722
|
export declare const ExplorerLibraryDataDocument: Apollo.DocumentNode;
|
|
9528
9723
|
/**
|
|
9529
9724
|
* __useExplorerLibraryDataQuery__
|