@leav/ui 1.12.0-c87727ff → 1.12.0-ce39d7e4

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.
Files changed (91) hide show
  1. package/dist/__mocks__/utils.d.ts +3 -0
  2. package/dist/__mocks__/utils.js +2 -0
  3. package/dist/__mocks__/utils.js.map +1 -0
  4. package/dist/_gqlTypes/index.d.ts +243 -94
  5. package/dist/_gqlTypes/index.js +190 -48
  6. package/dist/_gqlTypes/index.js.map +1 -1
  7. package/dist/components/Explorer/_constants.d.ts +0 -1
  8. package/dist/components/Explorer/_constants.js +0 -1
  9. package/dist/components/Explorer/_constants.js.map +1 -1
  10. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +5 -9
  11. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  12. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.d.ts +4 -9
  13. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +3 -11
  14. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
  15. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.d.ts +8 -8
  16. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js +26 -13
  17. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js.map +1 -1
  18. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.d.ts +7 -0
  19. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js +30 -0
  20. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js.map +1 -0
  21. package/dist/components/Explorer/actions-mass/edit-attribute/_types.d.ts +23 -0
  22. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js +2 -0
  23. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js.map +1 -0
  24. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.d.ts +4 -0
  25. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js +46 -0
  26. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js.map +1 -0
  27. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.d.ts +12 -0
  28. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js +24 -0
  29. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js.map +1 -0
  30. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.d.ts +13 -0
  31. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js +28 -0
  32. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js.map +1 -0
  33. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +6 -10
  34. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  35. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +5 -8
  36. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  37. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.d.ts +8 -2
  38. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +104 -80
  39. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -1
  40. package/dist/components/Explorer/actions-mass/useMassActions.js +30 -19
  41. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  42. package/dist/components/Explorer/conditionsHelper.d.ts +2 -1
  43. package/dist/components/Explorer/conditionsHelper.js.map +1 -1
  44. package/dist/components/Filters/conditionsHelper.d.ts +2 -1
  45. package/dist/components/Filters/conditionsHelper.js.map +1 -1
  46. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
  47. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  48. package/dist/components/Filters/useTransformFilters.js.map +1 -1
  49. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.d.ts +1 -4
  50. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js +5 -9
  51. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js.map +1 -1
  52. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +4 -8
  53. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  54. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +1 -1
  55. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  56. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +4 -8
  57. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
  58. package/dist/constants.d.ts +1 -0
  59. package/dist/constants.js +1 -0
  60. package/dist/constants.js.map +1 -1
  61. package/dist/hooks/index.d.ts +1 -0
  62. package/dist/hooks/index.js +1 -0
  63. package/dist/hooks/index.js.map +1 -1
  64. package/dist/hooks/useConfirmModal/__mocks__/index.d.ts +1 -0
  65. package/dist/hooks/useConfirmModal/__mocks__/index.js +5 -0
  66. package/dist/hooks/useConfirmModal/__mocks__/index.js.map +1 -0
  67. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.d.ts +3 -0
  68. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js +7 -0
  69. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js.map +1 -0
  70. package/dist/hooks/useConfirmModal/index.d.ts +1 -0
  71. package/dist/hooks/useConfirmModal/index.js +5 -0
  72. package/dist/hooks/useConfirmModal/index.js.map +1 -0
  73. package/dist/hooks/useConfirmModal/useConfirmModal.d.ts +7 -0
  74. package/dist/hooks/useConfirmModal/useConfirmModal.js +25 -0
  75. package/dist/hooks/useConfirmModal/useConfirmModal.js.map +1 -0
  76. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
  77. package/dist/locales/en/shared.json +6 -4
  78. package/dist/locales/fr/shared.json +8 -6
  79. package/package.json +6 -6
  80. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.d.ts +0 -8
  81. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js +0 -40
  82. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js.map +0 -1
  83. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +0 -17
  84. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +0 -42
  85. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +0 -1
  86. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.d.ts +0 -5
  87. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js +0 -20
  88. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js.map +0 -1
  89. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.d.ts +0 -12
  90. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.js +0 -30
  91. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.js.map +0 -1
@@ -64,15 +64,95 @@ export var AttributesSortableFields;
64
64
  AttributesSortableFields["multiple_values"] = "multiple_values";
65
65
  AttributesSortableFields["type"] = "type";
66
66
  })(AttributesSortableFields || (AttributesSortableFields = {}));
67
+ export var AutomationRuleEventAction;
68
+ (function (AutomationRuleEventAction) {
69
+ AutomationRuleEventAction["API_KEY_DELETE"] = "API_KEY_DELETE";
70
+ AutomationRuleEventAction["API_KEY_SAVE"] = "API_KEY_SAVE";
71
+ AutomationRuleEventAction["APP_DELETE"] = "APP_DELETE";
72
+ AutomationRuleEventAction["APP_SAVE"] = "APP_SAVE";
73
+ AutomationRuleEventAction["ATTRIBUTE_DELETE"] = "ATTRIBUTE_DELETE";
74
+ AutomationRuleEventAction["ATTRIBUTE_SAVE"] = "ATTRIBUTE_SAVE";
75
+ AutomationRuleEventAction["AUTOMATION_RULE_CREATE"] = "AUTOMATION_RULE_CREATE";
76
+ AutomationRuleEventAction["AUTOMATION_RULE_UPDATE"] = "AUTOMATION_RULE_UPDATE";
77
+ AutomationRuleEventAction["CONFIG_IMPORT_END"] = "CONFIG_IMPORT_END";
78
+ AutomationRuleEventAction["CONFIG_IMPORT_START"] = "CONFIG_IMPORT_START";
79
+ AutomationRuleEventAction["DATA_IMPORT_END"] = "DATA_IMPORT_END";
80
+ AutomationRuleEventAction["DATA_IMPORT_START"] = "DATA_IMPORT_START";
81
+ AutomationRuleEventAction["EXPORT_END"] = "EXPORT_END";
82
+ AutomationRuleEventAction["EXPORT_START"] = "EXPORT_START";
83
+ AutomationRuleEventAction["GLOBAL_SETTINGS_SAVE"] = "GLOBAL_SETTINGS_SAVE";
84
+ AutomationRuleEventAction["LIBRARY_DELETE"] = "LIBRARY_DELETE";
85
+ AutomationRuleEventAction["LIBRARY_PURGE"] = "LIBRARY_PURGE";
86
+ AutomationRuleEventAction["LIBRARY_SAVE"] = "LIBRARY_SAVE";
87
+ AutomationRuleEventAction["PERMISSION_SAVE"] = "PERMISSION_SAVE";
88
+ AutomationRuleEventAction["RECORD_DELETE"] = "RECORD_DELETE";
89
+ AutomationRuleEventAction["RECORD_INIT"] = "RECORD_INIT";
90
+ AutomationRuleEventAction["RECORD_SAVE"] = "RECORD_SAVE";
91
+ AutomationRuleEventAction["TASKS_DELETE"] = "TASKS_DELETE";
92
+ AutomationRuleEventAction["TREE_ADD_ELEMENT"] = "TREE_ADD_ELEMENT";
93
+ AutomationRuleEventAction["TREE_DELETE"] = "TREE_DELETE";
94
+ AutomationRuleEventAction["TREE_DELETE_ELEMENT"] = "TREE_DELETE_ELEMENT";
95
+ AutomationRuleEventAction["TREE_MOVE_ELEMENT"] = "TREE_MOVE_ELEMENT";
96
+ AutomationRuleEventAction["TREE_SAVE"] = "TREE_SAVE";
97
+ AutomationRuleEventAction["VALUE_DELETE"] = "VALUE_DELETE";
98
+ AutomationRuleEventAction["VALUE_SAVE"] = "VALUE_SAVE";
99
+ AutomationRuleEventAction["VERSION_PROFILE_DELETE"] = "VERSION_PROFILE_DELETE";
100
+ AutomationRuleEventAction["VERSION_PROFILE_SAVE"] = "VERSION_PROFILE_SAVE";
101
+ })(AutomationRuleEventAction || (AutomationRuleEventAction = {}));
67
102
  export var AutomationRuleSortableFields;
68
103
  (function (AutomationRuleSortableFields) {
69
104
  AutomationRuleSortableFields["id"] = "id";
70
105
  })(AutomationRuleSortableFields || (AutomationRuleSortableFields = {}));
106
+ export var AutomationTriggerDefSynchronicity;
107
+ (function (AutomationTriggerDefSynchronicity) {
108
+ AutomationTriggerDefSynchronicity["ASYNC"] = "ASYNC";
109
+ AutomationTriggerDefSynchronicity["BOTH"] = "BOTH";
110
+ AutomationTriggerDefSynchronicity["SYNC"] = "SYNC";
111
+ })(AutomationTriggerDefSynchronicity || (AutomationTriggerDefSynchronicity = {}));
112
+ export var AutomationTriggerDefTopics;
113
+ (function (AutomationTriggerDefTopics) {
114
+ AutomationTriggerDefTopics["ATTRIBUTE"] = "ATTRIBUTE";
115
+ AutomationTriggerDefTopics["LIBRARY"] = "LIBRARY";
116
+ })(AutomationTriggerDefTopics || (AutomationTriggerDefTopics = {}));
71
117
  export var AvailableLanguage;
72
118
  (function (AvailableLanguage) {
73
119
  AvailableLanguage["en"] = "en";
74
120
  AvailableLanguage["fr"] = "fr";
75
121
  })(AvailableLanguage || (AvailableLanguage = {}));
122
+ export var EventAction;
123
+ (function (EventAction) {
124
+ EventAction["API_KEY_DELETE"] = "API_KEY_DELETE";
125
+ EventAction["API_KEY_SAVE"] = "API_KEY_SAVE";
126
+ EventAction["APP_DELETE"] = "APP_DELETE";
127
+ EventAction["APP_SAVE"] = "APP_SAVE";
128
+ EventAction["ATTRIBUTE_DELETE"] = "ATTRIBUTE_DELETE";
129
+ EventAction["ATTRIBUTE_SAVE"] = "ATTRIBUTE_SAVE";
130
+ EventAction["AUTOMATION_RULE_CREATE"] = "AUTOMATION_RULE_CREATE";
131
+ EventAction["AUTOMATION_RULE_UPDATE"] = "AUTOMATION_RULE_UPDATE";
132
+ EventAction["CONFIG_IMPORT_END"] = "CONFIG_IMPORT_END";
133
+ EventAction["CONFIG_IMPORT_START"] = "CONFIG_IMPORT_START";
134
+ EventAction["DATA_IMPORT_END"] = "DATA_IMPORT_END";
135
+ EventAction["DATA_IMPORT_START"] = "DATA_IMPORT_START";
136
+ EventAction["EXPORT_END"] = "EXPORT_END";
137
+ EventAction["EXPORT_START"] = "EXPORT_START";
138
+ EventAction["GLOBAL_SETTINGS_SAVE"] = "GLOBAL_SETTINGS_SAVE";
139
+ EventAction["LIBRARY_DELETE"] = "LIBRARY_DELETE";
140
+ EventAction["LIBRARY_PURGE"] = "LIBRARY_PURGE";
141
+ EventAction["LIBRARY_SAVE"] = "LIBRARY_SAVE";
142
+ EventAction["PERMISSION_SAVE"] = "PERMISSION_SAVE";
143
+ EventAction["RECORD_DELETE"] = "RECORD_DELETE";
144
+ EventAction["RECORD_SAVE"] = "RECORD_SAVE";
145
+ EventAction["TASKS_DELETE"] = "TASKS_DELETE";
146
+ EventAction["TREE_ADD_ELEMENT"] = "TREE_ADD_ELEMENT";
147
+ EventAction["TREE_DELETE"] = "TREE_DELETE";
148
+ EventAction["TREE_DELETE_ELEMENT"] = "TREE_DELETE_ELEMENT";
149
+ EventAction["TREE_MOVE_ELEMENT"] = "TREE_MOVE_ELEMENT";
150
+ EventAction["TREE_SAVE"] = "TREE_SAVE";
151
+ EventAction["VALUE_DELETE"] = "VALUE_DELETE";
152
+ EventAction["VALUE_SAVE"] = "VALUE_SAVE";
153
+ EventAction["VERSION_PROFILE_DELETE"] = "VERSION_PROFILE_DELETE";
154
+ EventAction["VERSION_PROFILE_SAVE"] = "VERSION_PROFILE_SAVE";
155
+ })(EventAction || (EventAction = {}));
76
156
  export var FileType;
77
157
  (function (FileType) {
78
158
  FileType["audio"] = "audio";
@@ -314,12 +394,10 @@ export var TaskStatus;
314
394
  export var TaskType;
315
395
  (function (TaskType) {
316
396
  TaskType["EXPORT"] = "EXPORT";
317
- TaskType["FRAMING_REPORT"] = "FRAMING_REPORT";
318
397
  TaskType["IMPORT_CONFIG"] = "IMPORT_CONFIG";
319
398
  TaskType["IMPORT_DATA"] = "IMPORT_DATA";
320
399
  TaskType["INDEXATION"] = "INDEXATION";
321
400
  TaskType["PURGE_MULTIPLE_VALUES"] = "PURGE_MULTIPLE_VALUES";
322
- TaskType["RENEW_CAMPAIGNS"] = "RENEW_CAMPAIGNS";
323
401
  TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
324
402
  })(TaskType || (TaskType = {}));
325
403
  export var TreeBehavior;
@@ -3594,52 +3672,6 @@ export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
3594
3672
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3595
3673
  return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
3596
3674
  }
3597
- export const CountValuesOccurrencesDocument = gql `
3598
- query CountValuesOccurrences($library: ID!, $attribute: ID!, $recordFilters: [RecordFilterInput]) {
3599
- listDistinctValues(
3600
- library: $library
3601
- attribute: $attribute
3602
- recordFilters: $recordFilters
3603
- ) {
3604
- count
3605
- ... on TreeDistinctValues {
3606
- treeNode: value {
3607
- id
3608
- }
3609
- }
3610
- }
3611
- }
3612
- `;
3613
- /**
3614
- * __useCountValuesOccurrencesQuery__
3615
- *
3616
- * To run a query within a React component, call `useCountValuesOccurrencesQuery` and pass it any options that fit your needs.
3617
- * When your component renders, `useCountValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
3618
- * you can use to render your UI.
3619
- *
3620
- * @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;
3621
- *
3622
- * @example
3623
- * const { data, loading, error } = useCountValuesOccurrencesQuery({
3624
- * variables: {
3625
- * library: // value for 'library'
3626
- * attribute: // value for 'attribute'
3627
- * recordFilters: // value for 'recordFilters'
3628
- * },
3629
- * });
3630
- */
3631
- export function useCountValuesOccurrencesQuery(baseOptions) {
3632
- const options = { ...defaultOptions, ...baseOptions };
3633
- return Apollo.useQuery(CountValuesOccurrencesDocument, options);
3634
- }
3635
- export function useCountValuesOccurrencesLazyQuery(baseOptions) {
3636
- const options = { ...defaultOptions, ...baseOptions };
3637
- return Apollo.useLazyQuery(CountValuesOccurrencesDocument, options);
3638
- }
3639
- export function useCountValuesOccurrencesSuspenseQuery(baseOptions) {
3640
- const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3641
- return Apollo.useSuspenseQuery(CountValuesOccurrencesDocument, options);
3642
- }
3643
3675
  export const ExplorerLibraryCountDataDocument = gql `
3644
3676
  query ExplorerLibraryCountData($libraryId: ID!, $filters: [RecordFilterInput]) {
3645
3677
  records(library: $libraryId, filters: $filters) {
@@ -3926,6 +3958,70 @@ export function useLibraryExportProfilesSuspenseQuery(baseOptions) {
3926
3958
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3927
3959
  return Apollo.useSuspenseQuery(LibraryExportProfilesDocument, options);
3928
3960
  }
3961
+ export const MassEditableAttributesDocument = gql `
3962
+ query MassEditableAttributes($libraryId: String!) {
3963
+ attributes(
3964
+ filters: {multiple_values: false, type: tree, libraries: [$libraryId]}
3965
+ ) {
3966
+ list {
3967
+ id
3968
+ label
3969
+ ... on TreeAttribute {
3970
+ id
3971
+ tree_values {
3972
+ node {
3973
+ id
3974
+ record {
3975
+ id
3976
+ whoAmI {
3977
+ label
3978
+ color
3979
+ }
3980
+ }
3981
+ }
3982
+ allowedDependentValues {
3983
+ nodeId
3984
+ }
3985
+ }
3986
+ permissions_conf_dependent_values {
3987
+ dependenciesTreeAttributes {
3988
+ id
3989
+ label
3990
+ }
3991
+ }
3992
+ }
3993
+ }
3994
+ }
3995
+ }
3996
+ `;
3997
+ /**
3998
+ * __useMassEditableAttributesQuery__
3999
+ *
4000
+ * To run a query within a React component, call `useMassEditableAttributesQuery` and pass it any options that fit your needs.
4001
+ * When your component renders, `useMassEditableAttributesQuery` returns an object from Apollo Client that contains loading, error, and data properties
4002
+ * you can use to render your UI.
4003
+ *
4004
+ * @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;
4005
+ *
4006
+ * @example
4007
+ * const { data, loading, error } = useMassEditableAttributesQuery({
4008
+ * variables: {
4009
+ * libraryId: // value for 'libraryId'
4010
+ * },
4011
+ * });
4012
+ */
4013
+ export function useMassEditableAttributesQuery(baseOptions) {
4014
+ const options = { ...defaultOptions, ...baseOptions };
4015
+ return Apollo.useQuery(MassEditableAttributesDocument, options);
4016
+ }
4017
+ export function useMassEditableAttributesLazyQuery(baseOptions) {
4018
+ const options = { ...defaultOptions, ...baseOptions };
4019
+ return Apollo.useLazyQuery(MassEditableAttributesDocument, options);
4020
+ }
4021
+ export function useMassEditableAttributesSuspenseQuery(baseOptions) {
4022
+ const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
4023
+ return Apollo.useSuspenseQuery(MassEditableAttributesDocument, options);
4024
+ }
3929
4025
  export const ExplorerSelectionIdsDocument = gql `
3930
4026
  query ExplorerSelectionIds($libraryId: ID!, $filters: [RecordFilterInput]) {
3931
4027
  records(library: $libraryId, filters: $filters) {
@@ -4032,6 +4128,52 @@ export function useUpdateViewMutation(baseOptions) {
4032
4128
  const options = { ...defaultOptions, ...baseOptions };
4033
4129
  return Apollo.useMutation(UpdateViewDocument, options);
4034
4130
  }
4131
+ export const ValuesOccurrencesDocument = gql `
4132
+ query ValuesOccurrences($libraryId: ID!, $attributeId: ID!, $recordFilters: [RecordFilterInput]!) {
4133
+ listDistinctValues(
4134
+ library: $libraryId
4135
+ attribute: $attributeId
4136
+ recordFilters: $recordFilters
4137
+ ) {
4138
+ count
4139
+ ... on TreeDistinctValues {
4140
+ treeNode: value {
4141
+ id
4142
+ }
4143
+ }
4144
+ }
4145
+ }
4146
+ `;
4147
+ /**
4148
+ * __useValuesOccurrencesQuery__
4149
+ *
4150
+ * To run a query within a React component, call `useValuesOccurrencesQuery` and pass it any options that fit your needs.
4151
+ * When your component renders, `useValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
4152
+ * you can use to render your UI.
4153
+ *
4154
+ * @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;
4155
+ *
4156
+ * @example
4157
+ * const { data, loading, error } = useValuesOccurrencesQuery({
4158
+ * variables: {
4159
+ * libraryId: // value for 'libraryId'
4160
+ * attributeId: // value for 'attributeId'
4161
+ * recordFilters: // value for 'recordFilters'
4162
+ * },
4163
+ * });
4164
+ */
4165
+ export function useValuesOccurrencesQuery(baseOptions) {
4166
+ const options = { ...defaultOptions, ...baseOptions };
4167
+ return Apollo.useQuery(ValuesOccurrencesDocument, options);
4168
+ }
4169
+ export function useValuesOccurrencesLazyQuery(baseOptions) {
4170
+ const options = { ...defaultOptions, ...baseOptions };
4171
+ return Apollo.useLazyQuery(ValuesOccurrencesDocument, options);
4172
+ }
4173
+ export function useValuesOccurrencesSuspenseQuery(baseOptions) {
4174
+ const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
4175
+ return Apollo.useSuspenseQuery(ValuesOccurrencesDocument, options);
4176
+ }
4035
4177
  export const TreeFiltersDataQueryDocument = gql `
4036
4178
  query TreeFiltersDataQuery($treeId: ID!, $startAt: ID, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
4037
4179
  treeContent(