@leav/ui 1.5.1 → 1.5.2-427ed078
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/_gqlTypes/index.d.ts +117 -18
- package/dist/_gqlTypes/index.js +88 -0
- 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/components/Explorer/Explorer.d.ts +1 -1
- package/dist/components/Explorer/Explorer.js +15 -3
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.js +13 -2
- package/dist/components/Explorer/_queries/useExplorerData.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/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 +9 -12
- package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -1
- package/dist/components/Filters/context/filtersReducer.js +0 -1
- package/dist/components/Filters/context/filtersReducer.js.map +1 -1
- 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/prepareFiltersForRequest.js +1 -1
- package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +12 -3
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +4 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +6 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +6 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +9 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +8 -7
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +6 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +6 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +12 -11
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +16 -7
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +6 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +10 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.d.ts +24 -24
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +34 -35
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +15 -10
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +4 -3
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +3 -0
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.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/schema.d.ts +43 -4
- package/dist/hooks/useIFrameMessenger/schema.js +11 -5
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/types.d.ts +2 -1
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/locales/en/shared.json +20 -7
- package/dist/locales/fr/shared.json +20 -7
- package/package.json +4 -4
|
@@ -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;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,eAAe,EAAE,KAAK;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GA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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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E,IAAI;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAA6C;IAC3E,GAAG,iBAAiB;IACpB,GAAG,iBAAiB;IACpB,eAAe,EAAE,IAAI;IACrB,cAAc,EAAE,EAAC,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAC;CAC7F,CAAC;AAEF,MAAM,CAAC,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 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"]}
|
|
@@ -188,23 +188,6 @@ export declare enum AvailableLanguage {
|
|
|
188
188
|
en = "en",
|
|
189
189
|
fr = "fr"
|
|
190
190
|
}
|
|
191
|
-
export type CampaignToRenew = {
|
|
192
|
-
category?: InputMaybe<Scalars['String']>;
|
|
193
|
-
circuitTypes?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
|
|
194
|
-
endDate: Scalars['String'];
|
|
195
|
-
id: Scalars['String'];
|
|
196
|
-
label: Scalars['String'];
|
|
197
|
-
mixed: Scalars['Boolean'];
|
|
198
|
-
opTrade?: InputMaybe<Scalars['String']>;
|
|
199
|
-
startDate: Scalars['String'];
|
|
200
|
-
thematics?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
|
|
201
|
-
type?: InputMaybe<Scalars['String']>;
|
|
202
|
-
};
|
|
203
|
-
export type CampaignToUpdateDates = {
|
|
204
|
-
endDate: Scalars['String'];
|
|
205
|
-
id: Scalars['String'];
|
|
206
|
-
startDate: Scalars['String'];
|
|
207
|
-
};
|
|
208
191
|
export type ChildrenAsRecordValuePermissionFilterInput = {
|
|
209
192
|
action: RecordPermissionsActions;
|
|
210
193
|
attributeId: Scalars['ID'];
|
|
@@ -427,13 +410,19 @@ export type LogTopicRecordFilterInput = {
|
|
|
427
410
|
id?: InputMaybe<Scalars['String']>;
|
|
428
411
|
libraryId?: InputMaybe<Scalars['String']>;
|
|
429
412
|
};
|
|
413
|
+
export type MapValueInput = {
|
|
414
|
+
after?: InputMaybe<Scalars['ID']>;
|
|
415
|
+
before?: InputMaybe<Scalars['ID']>;
|
|
416
|
+
};
|
|
430
417
|
export declare enum MultiDisplayOption {
|
|
431
418
|
avatar = "avatar",
|
|
432
419
|
badge_qty = "badge_qty",
|
|
433
420
|
tag = "tag"
|
|
434
421
|
}
|
|
435
422
|
export declare enum NotificationLevel {
|
|
423
|
+
error = "error",
|
|
436
424
|
info = "info",
|
|
425
|
+
success = "success",
|
|
437
426
|
warning = "warning"
|
|
438
427
|
}
|
|
439
428
|
export type Pagination = {
|
|
@@ -670,7 +659,8 @@ export declare enum TaskType {
|
|
|
670
659
|
EXPORT = "EXPORT",
|
|
671
660
|
IMPORT_CONFIG = "IMPORT_CONFIG",
|
|
672
661
|
IMPORT_DATA = "IMPORT_DATA",
|
|
673
|
-
INDEXATION = "INDEXATION"
|
|
662
|
+
INDEXATION = "INDEXATION",
|
|
663
|
+
SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
|
|
674
664
|
}
|
|
675
665
|
export declare enum TreeBehavior {
|
|
676
666
|
files = "files",
|
|
@@ -882,6 +872,7 @@ export type AttributeDetailsLinkAttributeFragment = {
|
|
|
882
872
|
readonly: boolean;
|
|
883
873
|
label?: any | null;
|
|
884
874
|
description?: any | null;
|
|
875
|
+
required: boolean;
|
|
885
876
|
multiple_values: boolean;
|
|
886
877
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
887
878
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -921,6 +912,7 @@ export type AttributeDetailsStandardAttributeFragment = {
|
|
|
921
912
|
readonly: boolean;
|
|
922
913
|
label?: any | null;
|
|
923
914
|
description?: any | null;
|
|
915
|
+
required: boolean;
|
|
924
916
|
multiple_values: boolean;
|
|
925
917
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
926
918
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -955,6 +947,7 @@ export type AttributeDetailsTreeAttributeFragment = {
|
|
|
955
947
|
readonly: boolean;
|
|
956
948
|
label?: any | null;
|
|
957
949
|
description?: any | null;
|
|
950
|
+
required: boolean;
|
|
958
951
|
multiple_values: boolean;
|
|
959
952
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
960
953
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -3168,6 +3161,7 @@ export type AttributesByLibAttributeWithPermissionsLinkAttributeFragment = {
|
|
|
3168
3161
|
label?: any | null;
|
|
3169
3162
|
multiple_values: boolean;
|
|
3170
3163
|
system: boolean;
|
|
3164
|
+
required: boolean;
|
|
3171
3165
|
readonly: boolean;
|
|
3172
3166
|
compute: boolean;
|
|
3173
3167
|
permissions: {
|
|
@@ -3202,6 +3196,7 @@ export type AttributesByLibAttributeWithPermissionsStandardAttributeFragment = {
|
|
|
3202
3196
|
label?: any | null;
|
|
3203
3197
|
multiple_values: boolean;
|
|
3204
3198
|
system: boolean;
|
|
3199
|
+
required: boolean;
|
|
3205
3200
|
readonly: boolean;
|
|
3206
3201
|
compute: boolean;
|
|
3207
3202
|
embedded_fields?: Array<{
|
|
@@ -3234,6 +3229,7 @@ export type AttributesByLibAttributeWithPermissionsTreeAttributeFragment = {
|
|
|
3234
3229
|
label?: any | null;
|
|
3235
3230
|
multiple_values: boolean;
|
|
3236
3231
|
system: boolean;
|
|
3232
|
+
required: boolean;
|
|
3237
3233
|
readonly: boolean;
|
|
3238
3234
|
compute: boolean;
|
|
3239
3235
|
linked_tree?: {
|
|
@@ -3644,6 +3640,7 @@ export type GetAttributeByIdQuery = {
|
|
|
3644
3640
|
readonly: boolean;
|
|
3645
3641
|
label?: any | null;
|
|
3646
3642
|
description?: any | null;
|
|
3643
|
+
required: boolean;
|
|
3647
3644
|
multiple_values: boolean;
|
|
3648
3645
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3649
3646
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -3682,6 +3679,7 @@ export type GetAttributeByIdQuery = {
|
|
|
3682
3679
|
readonly: boolean;
|
|
3683
3680
|
label?: any | null;
|
|
3684
3681
|
description?: any | null;
|
|
3682
|
+
required: boolean;
|
|
3685
3683
|
multiple_values: boolean;
|
|
3686
3684
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3687
3685
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -3715,6 +3713,7 @@ export type GetAttributeByIdQuery = {
|
|
|
3715
3713
|
readonly: boolean;
|
|
3716
3714
|
label?: any | null;
|
|
3717
3715
|
description?: any | null;
|
|
3716
|
+
required: boolean;
|
|
3718
3717
|
multiple_values: boolean;
|
|
3719
3718
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3720
3719
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -3859,6 +3858,7 @@ export type SaveAttributeMutation = {
|
|
|
3859
3858
|
readonly: boolean;
|
|
3860
3859
|
label?: any | null;
|
|
3861
3860
|
description?: any | null;
|
|
3861
|
+
required: boolean;
|
|
3862
3862
|
multiple_values: boolean;
|
|
3863
3863
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3864
3864
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -3897,6 +3897,7 @@ export type SaveAttributeMutation = {
|
|
|
3897
3897
|
readonly: boolean;
|
|
3898
3898
|
label?: any | null;
|
|
3899
3899
|
description?: any | null;
|
|
3900
|
+
required: boolean;
|
|
3900
3901
|
multiple_values: boolean;
|
|
3901
3902
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3902
3903
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -3930,6 +3931,7 @@ export type SaveAttributeMutation = {
|
|
|
3930
3931
|
readonly: boolean;
|
|
3931
3932
|
label?: any | null;
|
|
3932
3933
|
description?: any | null;
|
|
3934
|
+
required: boolean;
|
|
3933
3935
|
multiple_values: boolean;
|
|
3934
3936
|
multi_link_display_option?: MultiDisplayOption | null;
|
|
3935
3937
|
multi_tree_display_option?: MultiDisplayOption | null;
|
|
@@ -6976,6 +6978,15 @@ export type SaveValueBatchMutation = {
|
|
|
6976
6978
|
}> | null;
|
|
6977
6979
|
};
|
|
6978
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
|
+
};
|
|
6979
6990
|
export type DeleteViewMutationVariables = Exact<{
|
|
6980
6991
|
viewId: Scalars['String'];
|
|
6981
6992
|
}>;
|
|
@@ -7211,6 +7222,7 @@ export type GetAttributesByLibWithPermissionsQuery = {
|
|
|
7211
7222
|
label?: any | null;
|
|
7212
7223
|
multiple_values: boolean;
|
|
7213
7224
|
system: boolean;
|
|
7225
|
+
required: boolean;
|
|
7214
7226
|
readonly: boolean;
|
|
7215
7227
|
compute: boolean;
|
|
7216
7228
|
valuesList?: {
|
|
@@ -7244,6 +7256,7 @@ export type GetAttributesByLibWithPermissionsQuery = {
|
|
|
7244
7256
|
label?: any | null;
|
|
7245
7257
|
multiple_values: boolean;
|
|
7246
7258
|
system: boolean;
|
|
7259
|
+
required: boolean;
|
|
7247
7260
|
readonly: boolean;
|
|
7248
7261
|
compute: boolean;
|
|
7249
7262
|
embedded_fields?: Array<{
|
|
@@ -7275,6 +7288,7 @@ export type GetAttributesByLibWithPermissionsQuery = {
|
|
|
7275
7288
|
label?: any | null;
|
|
7276
7289
|
multiple_values: boolean;
|
|
7277
7290
|
system: boolean;
|
|
7291
|
+
required: boolean;
|
|
7278
7292
|
readonly: boolean;
|
|
7279
7293
|
compute: boolean;
|
|
7280
7294
|
linked_tree?: {
|
|
@@ -7412,6 +7426,22 @@ export type ExplorerLinkAttributeQuery = {
|
|
|
7412
7426
|
}>;
|
|
7413
7427
|
} | null;
|
|
7414
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
|
+
};
|
|
7415
7445
|
export type ExplorerLibraryDataQueryVariables = Exact<{
|
|
7416
7446
|
libraryId: Scalars['ID'];
|
|
7417
7447
|
attributeIds: Array<Scalars['ID']> | Scalars['ID'];
|
|
@@ -9386,6 +9416,37 @@ export declare function useSaveValueBatchMutation(baseOptions?: Apollo.MutationH
|
|
|
9386
9416
|
export type SaveValueBatchMutationHookResult = ReturnType<typeof useSaveValueBatchMutation>;
|
|
9387
9417
|
export type SaveValueBatchMutationResult = Apollo.MutationResult<SaveValueBatchMutation>;
|
|
9388
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>;
|
|
9389
9450
|
export declare const DeleteViewDocument: Apollo.DocumentNode;
|
|
9390
9451
|
export type DeleteViewMutationFn = Apollo.MutationFunction<DeleteViewMutation, DeleteViewMutationVariables>;
|
|
9391
9452
|
/**
|
|
@@ -9620,6 +9681,44 @@ export type ExplorerLinkAttributeQueryHookResult = ReturnType<typeof useExplorer
|
|
|
9620
9681
|
export type ExplorerLinkAttributeLazyQueryHookResult = ReturnType<typeof useExplorerLinkAttributeLazyQuery>;
|
|
9621
9682
|
export type ExplorerLinkAttributeSuspenseQueryHookResult = ReturnType<typeof useExplorerLinkAttributeSuspenseQuery>;
|
|
9622
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>;
|
|
9623
9722
|
export declare const ExplorerLibraryDataDocument: Apollo.DocumentNode;
|
|
9624
9723
|
/**
|
|
9625
9724
|
* __useExplorerLibraryDataQuery__
|
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -169,7 +169,9 @@ export var MultiDisplayOption;
|
|
|
169
169
|
})(MultiDisplayOption || (MultiDisplayOption = {}));
|
|
170
170
|
export var NotificationLevel;
|
|
171
171
|
(function (NotificationLevel) {
|
|
172
|
+
NotificationLevel["error"] = "error";
|
|
172
173
|
NotificationLevel["info"] = "info";
|
|
174
|
+
NotificationLevel["success"] = "success";
|
|
173
175
|
NotificationLevel["warning"] = "warning";
|
|
174
176
|
})(NotificationLevel || (NotificationLevel = {}));
|
|
175
177
|
export var PermissionTypes;
|
|
@@ -305,6 +307,7 @@ export var TaskType;
|
|
|
305
307
|
TaskType["IMPORT_CONFIG"] = "IMPORT_CONFIG";
|
|
306
308
|
TaskType["IMPORT_DATA"] = "IMPORT_DATA";
|
|
307
309
|
TaskType["INDEXATION"] = "INDEXATION";
|
|
310
|
+
TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
|
|
308
311
|
})(TaskType || (TaskType = {}));
|
|
309
312
|
export var TreeBehavior;
|
|
310
313
|
(function (TreeBehavior) {
|
|
@@ -393,6 +396,7 @@ export const AttributeDetailsFragmentDoc = gql `
|
|
|
393
396
|
readonly
|
|
394
397
|
label
|
|
395
398
|
description
|
|
399
|
+
required
|
|
396
400
|
multiple_values
|
|
397
401
|
multi_link_display_option
|
|
398
402
|
multi_tree_display_option
|
|
@@ -947,6 +951,7 @@ export const AttributesByLibAttributeWithPermissionsFragmentDoc = gql `
|
|
|
947
951
|
label
|
|
948
952
|
multiple_values
|
|
949
953
|
system
|
|
954
|
+
required
|
|
950
955
|
readonly
|
|
951
956
|
compute
|
|
952
957
|
permissions {
|
|
@@ -3109,6 +3114,40 @@ export function useSaveValueBatchMutation(baseOptions) {
|
|
|
3109
3114
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3110
3115
|
return Apollo.useMutation(SaveValueBatchDocument, options);
|
|
3111
3116
|
}
|
|
3117
|
+
export const SaveValueBulkDocument = gql `
|
|
3118
|
+
mutation SAVE_VALUE_BULK($libraryId: ID!, $recordsFilters: [RecordFilterInput]!, $attributeId: ID!, $mapValues: [MapValueInput!]!) {
|
|
3119
|
+
saveValueBulk(
|
|
3120
|
+
libraryId: $libraryId
|
|
3121
|
+
recordsFilters: $recordsFilters
|
|
3122
|
+
attributeId: $attributeId
|
|
3123
|
+
mapValues: $mapValues
|
|
3124
|
+
)
|
|
3125
|
+
}
|
|
3126
|
+
`;
|
|
3127
|
+
/**
|
|
3128
|
+
* __useSaveValueBulkMutation__
|
|
3129
|
+
*
|
|
3130
|
+
* To run a mutation, you first call `useSaveValueBulkMutation` within a React component and pass it any options that fit your needs.
|
|
3131
|
+
* When your component renders, `useSaveValueBulkMutation` returns a tuple that includes:
|
|
3132
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
3133
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
3134
|
+
*
|
|
3135
|
+
* @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;
|
|
3136
|
+
*
|
|
3137
|
+
* @example
|
|
3138
|
+
* const [saveValueBulkMutation, { data, loading, error }] = useSaveValueBulkMutation({
|
|
3139
|
+
* variables: {
|
|
3140
|
+
* libraryId: // value for 'libraryId'
|
|
3141
|
+
* recordsFilters: // value for 'recordsFilters'
|
|
3142
|
+
* attributeId: // value for 'attributeId'
|
|
3143
|
+
* mapValues: // value for 'mapValues'
|
|
3144
|
+
* },
|
|
3145
|
+
* });
|
|
3146
|
+
*/
|
|
3147
|
+
export function useSaveValueBulkMutation(baseOptions) {
|
|
3148
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3149
|
+
return Apollo.useMutation(SaveValueBulkDocument, options);
|
|
3150
|
+
}
|
|
3112
3151
|
export const DeleteViewDocument = gql `
|
|
3113
3152
|
mutation DELETE_VIEW($viewId: String!) {
|
|
3114
3153
|
deleteView(viewId: $viewId) {
|
|
@@ -3421,6 +3460,55 @@ export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
|
|
|
3421
3460
|
const options = { ...defaultOptions, ...baseOptions };
|
|
3422
3461
|
return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
|
|
3423
3462
|
}
|
|
3463
|
+
export const CountValuesOccurrencesDocument = gql `
|
|
3464
|
+
query CountValuesOccurrences($library: ID!, $attribute: ID!, $recordFilters: [RecordFilterInput]) {
|
|
3465
|
+
countValuesOccurrences(
|
|
3466
|
+
library: $library
|
|
3467
|
+
attribute: $attribute
|
|
3468
|
+
recordFilters: $recordFilters
|
|
3469
|
+
) {
|
|
3470
|
+
noValueCount
|
|
3471
|
+
occurrences {
|
|
3472
|
+
... on TreeValueOccurrences {
|
|
3473
|
+
value {
|
|
3474
|
+
id
|
|
3475
|
+
}
|
|
3476
|
+
}
|
|
3477
|
+
count
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
}
|
|
3481
|
+
`;
|
|
3482
|
+
/**
|
|
3483
|
+
* __useCountValuesOccurrencesQuery__
|
|
3484
|
+
*
|
|
3485
|
+
* To run a query within a React component, call `useCountValuesOccurrencesQuery` and pass it any options that fit your needs.
|
|
3486
|
+
* When your component renders, `useCountValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3487
|
+
* you can use to render your UI.
|
|
3488
|
+
*
|
|
3489
|
+
* @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;
|
|
3490
|
+
*
|
|
3491
|
+
* @example
|
|
3492
|
+
* const { data, loading, error } = useCountValuesOccurrencesQuery({
|
|
3493
|
+
* variables: {
|
|
3494
|
+
* library: // value for 'library'
|
|
3495
|
+
* attribute: // value for 'attribute'
|
|
3496
|
+
* recordFilters: // value for 'recordFilters'
|
|
3497
|
+
* },
|
|
3498
|
+
* });
|
|
3499
|
+
*/
|
|
3500
|
+
export function useCountValuesOccurrencesQuery(baseOptions) {
|
|
3501
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3502
|
+
return Apollo.useQuery(CountValuesOccurrencesDocument, options);
|
|
3503
|
+
}
|
|
3504
|
+
export function useCountValuesOccurrencesLazyQuery(baseOptions) {
|
|
3505
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3506
|
+
return Apollo.useLazyQuery(CountValuesOccurrencesDocument, options);
|
|
3507
|
+
}
|
|
3508
|
+
export function useCountValuesOccurrencesSuspenseQuery(baseOptions) {
|
|
3509
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
3510
|
+
return Apollo.useSuspenseQuery(CountValuesOccurrencesDocument, options);
|
|
3511
|
+
}
|
|
3424
3512
|
export const ExplorerLibraryDataDocument = gql `
|
|
3425
3513
|
query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
|
|
3426
3514
|
records(
|