@leav/ui 1.12.0 → 1.13.0

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 (131) 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 +361 -116
  5. package/dist/_gqlTypes/index.js +261 -51
  6. package/dist/_gqlTypes/index.js.map +1 -1
  7. package/dist/_queries/attributes/attributeDetailsFragment.js +3 -0
  8. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  9. package/dist/components/Explorer/DataView.js +31 -14
  10. package/dist/components/Explorer/DataView.js.map +1 -1
  11. package/dist/components/Explorer/_constants.d.ts +0 -1
  12. package/dist/components/Explorer/_constants.js +0 -1
  13. package/dist/components/Explorer/_constants.js.map +1 -1
  14. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +5 -9
  15. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  16. package/dist/components/Explorer/actions-mass/ResultsCount.js +2 -2
  17. package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -1
  18. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.d.ts +4 -9
  19. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +3 -11
  20. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
  21. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.d.ts +8 -8
  22. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js +26 -13
  23. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js.map +1 -1
  24. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.d.ts +7 -0
  25. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js +30 -0
  26. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js.map +1 -0
  27. package/dist/components/Explorer/actions-mass/edit-attribute/_types.d.ts +23 -0
  28. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js +2 -0
  29. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js.map +1 -0
  30. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.d.ts +4 -0
  31. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js +46 -0
  32. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js.map +1 -0
  33. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.d.ts +12 -0
  34. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js +24 -0
  35. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodeRemapping.js.map +1 -0
  36. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.d.ts +13 -0
  37. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js +28 -0
  38. package/dist/components/Explorer/actions-mass/edit-attribute/useValuesDistribution.js.map +1 -0
  39. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +6 -10
  40. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  41. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +5 -8
  42. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  43. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.d.ts +8 -2
  44. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +104 -72
  45. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -1
  46. package/dist/components/Explorer/actions-mass/useMassActions.js +30 -19
  47. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  48. package/dist/components/Explorer/conditionsHelper.d.ts +2 -1
  49. package/dist/components/Explorer/conditionsHelper.js.map +1 -1
  50. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +6 -4
  51. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  52. package/dist/components/Filters/_types.d.ts +3 -0
  53. package/dist/components/Filters/_types.js.map +1 -1
  54. package/dist/components/Filters/conditionsHelper.d.ts +2 -1
  55. package/dist/components/Filters/conditionsHelper.js.map +1 -1
  56. package/dist/components/Filters/context/filtersReducer.js +14 -1
  57. package/dist/components/Filters/context/filtersReducer.js.map +1 -1
  58. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
  59. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  60. package/dist/components/Filters/useFilters.d.ts +198 -0
  61. package/dist/components/Filters/useTransformFilters.js +4 -2
  62. package/dist/components/Filters/useTransformFilters.js.map +1 -1
  63. package/dist/components/RecordEdition/EditRecord/EditRecord.js +8 -1
  64. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  65. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.d.ts +1 -4
  66. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js +5 -9
  67. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js.map +1 -1
  68. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +4 -8
  69. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  70. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +1 -1
  71. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  72. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +4 -8
  73. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
  74. package/dist/constants.d.ts +1 -0
  75. package/dist/constants.js +1 -0
  76. package/dist/constants.js.map +1 -1
  77. package/dist/hooks/index.d.ts +4 -0
  78. package/dist/hooks/index.js +4 -0
  79. package/dist/hooks/index.js.map +1 -1
  80. package/dist/hooks/useConfirmModal/__mocks__/index.d.ts +1 -0
  81. package/dist/hooks/useConfirmModal/__mocks__/index.js +5 -0
  82. package/dist/hooks/useConfirmModal/__mocks__/index.js.map +1 -0
  83. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.d.ts +3 -0
  84. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js +7 -0
  85. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js.map +1 -0
  86. package/dist/hooks/useConfirmModal/index.d.ts +1 -0
  87. package/dist/hooks/useConfirmModal/index.js +5 -0
  88. package/dist/hooks/useConfirmModal/index.js.map +1 -0
  89. package/dist/hooks/useConfirmModal/useConfirmModal.d.ts +7 -0
  90. package/dist/hooks/useConfirmModal/useConfirmModal.js +25 -0
  91. package/dist/hooks/useConfirmModal/useConfirmModal.js.map +1 -0
  92. package/dist/hooks/useGetRecordIdCard/index.d.ts +1 -0
  93. package/dist/hooks/useGetRecordIdCard/index.js +5 -0
  94. package/dist/hooks/useGetRecordIdCard/index.js.map +1 -0
  95. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.d.ts +18 -0
  96. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js +20 -0
  97. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js.map +1 -0
  98. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +6 -0
  99. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js +8 -0
  100. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -0
  101. package/dist/hooks/useIFrameMessenger/types.d.ts +10 -3
  102. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  103. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +11 -2
  104. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +31 -10
  105. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  106. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.d.ts +13 -0
  107. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +59 -0
  108. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -0
  109. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.d.ts +13 -0
  110. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js +29 -0
  111. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js.map +1 -0
  112. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +3 -0
  113. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -1
  114. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +1 -0
  115. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +1 -0
  116. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
  117. package/dist/locales/en/shared.json +6 -4
  118. package/dist/locales/fr/shared.json +8 -6
  119. package/package.json +17 -17
  120. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.d.ts +0 -8
  121. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js +0 -40
  122. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValueLine.js.map +0 -1
  123. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +0 -17
  124. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +0 -42
  125. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +0 -1
  126. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.d.ts +0 -5
  127. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js +0 -20
  128. package/dist/components/Explorer/actions-mass/edit-attribute/useListEditableAttributeHook.js.map +0 -1
  129. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.d.ts +0 -12
  130. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.js +0 -30
  131. package/dist/components/Explorer/actions-mass/edit-attribute/useListTreeAttributeValuesHook.js.map +0 -1
@@ -64,11 +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 = {}));
102
+ export var AutomationRuleSortableFields;
103
+ (function (AutomationRuleSortableFields) {
104
+ AutomationRuleSortableFields["id"] = "id";
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 = {}));
67
117
  export var AvailableLanguage;
68
118
  (function (AvailableLanguage) {
69
119
  AvailableLanguage["en"] = "en";
70
120
  AvailableLanguage["fr"] = "fr";
71
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 = {}));
72
156
  export var FileType;
73
157
  (function (FileType) {
74
158
  FileType["audio"] = "audio";
@@ -128,6 +212,8 @@ export var LogAction;
128
212
  LogAction["APP_SAVE"] = "APP_SAVE";
129
213
  LogAction["ATTRIBUTE_DELETE"] = "ATTRIBUTE_DELETE";
130
214
  LogAction["ATTRIBUTE_SAVE"] = "ATTRIBUTE_SAVE";
215
+ LogAction["AUTOMATION_RULE_CREATE"] = "AUTOMATION_RULE_CREATE";
216
+ LogAction["AUTOMATION_RULE_UPDATE"] = "AUTOMATION_RULE_UPDATE";
131
217
  LogAction["CONFIG_IMPORT_END"] = "CONFIG_IMPORT_END";
132
218
  LogAction["CONFIG_IMPORT_START"] = "CONFIG_IMPORT_START";
133
219
  LogAction["DATA_IMPORT_END"] = "DATA_IMPORT_END";
@@ -230,6 +316,7 @@ export var PermissionsActions;
230
316
  PermissionsActions["admin_import_config_clear_database"] = "admin_import_config_clear_database";
231
317
  PermissionsActions["admin_library"] = "admin_library";
232
318
  PermissionsActions["admin_list_plugins"] = "admin_list_plugins";
319
+ PermissionsActions["admin_manage_automation"] = "admin_manage_automation";
233
320
  PermissionsActions["admin_manage_global_preferences"] = "admin_manage_global_preferences";
234
321
  PermissionsActions["create_record"] = "create_record";
235
322
  PermissionsActions["delete_record"] = "delete_record";
@@ -307,12 +394,10 @@ export var TaskStatus;
307
394
  export var TaskType;
308
395
  (function (TaskType) {
309
396
  TaskType["EXPORT"] = "EXPORT";
310
- TaskType["FRAMING_REPORT"] = "FRAMING_REPORT";
311
397
  TaskType["IMPORT_CONFIG"] = "IMPORT_CONFIG";
312
398
  TaskType["IMPORT_DATA"] = "IMPORT_DATA";
313
399
  TaskType["INDEXATION"] = "INDEXATION";
314
400
  TaskType["PURGE_MULTIPLE_VALUES"] = "PURGE_MULTIPLE_VALUES";
315
- TaskType["RENEW_CAMPAIGNS"] = "RENEW_CAMPAIGNS";
316
401
  TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
317
402
  })(TaskType || (TaskType = {}));
318
403
  export var TreeBehavior;
@@ -439,6 +524,9 @@ export const AttributeDetailsFragmentDoc = gql `
439
524
  reverse_link
440
525
  smart_filter {
441
526
  enable
527
+ through {
528
+ id
529
+ }
442
530
  }
443
531
  }
444
532
  ... on TreeAttribute {
@@ -980,6 +1068,9 @@ export const AttributesByLibLinkAttributeWithPermissionsFragmentDoc = gql `
980
1068
  }
981
1069
  smart_filter {
982
1070
  enable
1071
+ through {
1072
+ id
1073
+ }
983
1074
  }
984
1075
  }
985
1076
  ${RecordIdentityFragmentDoc}`;
@@ -1065,6 +1156,9 @@ export const LinkAttributeDetailsFragmentDoc = gql `
1065
1156
  }
1066
1157
  smart_filter {
1067
1158
  enable
1159
+ through {
1160
+ id
1161
+ }
1068
1162
  }
1069
1163
  }
1070
1164
  `;
@@ -2753,6 +2847,58 @@ export function usePurgeRecordMutation(baseOptions) {
2753
2847
  const options = { ...defaultOptions, ...baseOptions };
2754
2848
  return Apollo.useMutation(PurgeRecordDocument, options);
2755
2849
  }
2850
+ export const GetRecordIdCardDocument = gql `
2851
+ query GetRecordIdCard($id: String, $libraryId: ID!) {
2852
+ records(
2853
+ library: $libraryId
2854
+ filters: [{field: "id", condition: EQUAL, value: $id}]
2855
+ ) {
2856
+ list {
2857
+ id
2858
+ whoAmI {
2859
+ id
2860
+ color
2861
+ label
2862
+ subLabel
2863
+ preview
2864
+ parentContext {
2865
+ id
2866
+ label
2867
+ }
2868
+ }
2869
+ }
2870
+ }
2871
+ }
2872
+ `;
2873
+ /**
2874
+ * __useGetRecordIdCardQuery__
2875
+ *
2876
+ * To run a query within a React component, call `useGetRecordIdCardQuery` and pass it any options that fit your needs.
2877
+ * When your component renders, `useGetRecordIdCardQuery` returns an object from Apollo Client that contains loading, error, and data properties
2878
+ * you can use to render your UI.
2879
+ *
2880
+ * @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;
2881
+ *
2882
+ * @example
2883
+ * const { data, loading, error } = useGetRecordIdCardQuery({
2884
+ * variables: {
2885
+ * id: // value for 'id'
2886
+ * libraryId: // value for 'libraryId'
2887
+ * },
2888
+ * });
2889
+ */
2890
+ export function useGetRecordIdCardQuery(baseOptions) {
2891
+ const options = { ...defaultOptions, ...baseOptions };
2892
+ return Apollo.useQuery(GetRecordIdCardDocument, options);
2893
+ }
2894
+ export function useGetRecordIdCardLazyQuery(baseOptions) {
2895
+ const options = { ...defaultOptions, ...baseOptions };
2896
+ return Apollo.useLazyQuery(GetRecordIdCardDocument, options);
2897
+ }
2898
+ export function useGetRecordIdCardSuspenseQuery(baseOptions) {
2899
+ const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
2900
+ return Apollo.useSuspenseQuery(GetRecordIdCardDocument, options);
2901
+ }
2756
2902
  export const CancelTaskDocument = gql `
2757
2903
  mutation CANCEL_TASK($taskId: ID!) {
2758
2904
  cancelTask(taskId: $taskId)
@@ -3196,12 +3342,12 @@ export function useSaveValueBatchMutation(baseOptions) {
3196
3342
  return Apollo.useMutation(SaveValueBatchDocument, options);
3197
3343
  }
3198
3344
  export const SaveValueBulkDocument = gql `
3199
- mutation SAVE_VALUE_BULK($libraryId: ID!, $recordsFilters: [RecordFilterInput]!, $attributeId: ID!, $mapValues: [MapValueInput!]!) {
3345
+ mutation SAVE_VALUE_BULK($libraryId: ID!, $recordsFilters: [RecordFilterInput]!, $attributeId: ID!, $mapping: [SaveValueBulkMappingInput!]!) {
3200
3346
  saveValueBulk(
3201
3347
  libraryId: $libraryId
3202
3348
  recordsFilters: $recordsFilters
3203
3349
  attributeId: $attributeId
3204
- mapValues: $mapValues
3350
+ mapping: $mapping
3205
3351
  )
3206
3352
  }
3207
3353
  `;
@@ -3221,7 +3367,7 @@ export const SaveValueBulkDocument = gql `
3221
3367
  * libraryId: // value for 'libraryId'
3222
3368
  * recordsFilters: // value for 'recordsFilters'
3223
3369
  * attributeId: // value for 'attributeId'
3224
- * mapValues: // value for 'mapValues'
3370
+ * mapping: // value for 'mapping'
3225
3371
  * },
3226
3372
  * });
3227
3373
  */
@@ -3526,52 +3672,6 @@ export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
3526
3672
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3527
3673
  return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
3528
3674
  }
3529
- export const CountValuesOccurrencesDocument = gql `
3530
- query CountValuesOccurrences($library: ID!, $attribute: ID!, $recordFilters: [RecordFilterInput]) {
3531
- listDistinctValues(
3532
- library: $library
3533
- attribute: $attribute
3534
- recordFilters: $recordFilters
3535
- ) {
3536
- count
3537
- ... on TreeDistinctValues {
3538
- treeNode: value {
3539
- id
3540
- }
3541
- }
3542
- }
3543
- }
3544
- `;
3545
- /**
3546
- * __useCountValuesOccurrencesQuery__
3547
- *
3548
- * To run a query within a React component, call `useCountValuesOccurrencesQuery` and pass it any options that fit your needs.
3549
- * When your component renders, `useCountValuesOccurrencesQuery` returns an object from Apollo Client that contains loading, error, and data properties
3550
- * you can use to render your UI.
3551
- *
3552
- * @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;
3553
- *
3554
- * @example
3555
- * const { data, loading, error } = useCountValuesOccurrencesQuery({
3556
- * variables: {
3557
- * library: // value for 'library'
3558
- * attribute: // value for 'attribute'
3559
- * recordFilters: // value for 'recordFilters'
3560
- * },
3561
- * });
3562
- */
3563
- export function useCountValuesOccurrencesQuery(baseOptions) {
3564
- const options = { ...defaultOptions, ...baseOptions };
3565
- return Apollo.useQuery(CountValuesOccurrencesDocument, options);
3566
- }
3567
- export function useCountValuesOccurrencesLazyQuery(baseOptions) {
3568
- const options = { ...defaultOptions, ...baseOptions };
3569
- return Apollo.useLazyQuery(CountValuesOccurrencesDocument, options);
3570
- }
3571
- export function useCountValuesOccurrencesSuspenseQuery(baseOptions) {
3572
- const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3573
- return Apollo.useSuspenseQuery(CountValuesOccurrencesDocument, options);
3574
- }
3575
3675
  export const ExplorerLibraryCountDataDocument = gql `
3576
3676
  query ExplorerLibraryCountData($libraryId: ID!, $filters: [RecordFilterInput]) {
3577
3677
  records(library: $libraryId, filters: $filters) {
@@ -3858,6 +3958,70 @@ export function useLibraryExportProfilesSuspenseQuery(baseOptions) {
3858
3958
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
3859
3959
  return Apollo.useSuspenseQuery(LibraryExportProfilesDocument, options);
3860
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
+ }
3861
4025
  export const ExplorerSelectionIdsDocument = gql `
3862
4026
  query ExplorerSelectionIds($libraryId: ID!, $filters: [RecordFilterInput]) {
3863
4027
  records(library: $libraryId, filters: $filters) {
@@ -3964,6 +4128,52 @@ export function useUpdateViewMutation(baseOptions) {
3964
4128
  const options = { ...defaultOptions, ...baseOptions };
3965
4129
  return Apollo.useMutation(UpdateViewDocument, options);
3966
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
+ }
3967
4177
  export const TreeFiltersDataQueryDocument = gql `
3968
4178
  query TreeFiltersDataQuery($treeId: ID!, $startAt: ID, $accessRecordByDefaultPermission: AccessRecordByDefaultPermissionInput) {
3969
4179
  treeContent(