@leav/ui 0.4.0-c10dd58e → 0.4.0-c3ee29dd

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 (208) hide show
  1. package/dist/__mocks__/common/form.d.ts +0 -632
  2. package/dist/__mocks__/common/form.js +22 -27
  3. package/dist/__mocks__/common/form.js.map +1 -1
  4. package/dist/_gqlTypes/index.d.ts +1636 -1778
  5. package/dist/_gqlTypes/index.js +1303 -1378
  6. package/dist/_gqlTypes/index.js.map +1 -1
  7. package/dist/_queries/records/getRecordFormQuery.js +5 -1
  8. package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
  9. package/dist/_utils/attributeType.d.ts +2 -1
  10. package/dist/_utils/attributeType.js +2 -1
  11. package/dist/_utils/attributeType.js.map +1 -1
  12. package/dist/components/Explorer/Explorer.d.ts +1 -0
  13. package/dist/components/Explorer/Explorer.js +11 -3
  14. package/dist/components/Explorer/Explorer.js.map +1 -1
  15. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +1 -1
  16. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +82 -31
  17. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -1
  18. package/dist/components/Explorer/_queries/useExplorerData.js +32 -27
  19. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  20. package/dist/components/Explorer/_types.d.ts +32 -2
  21. package/dist/components/Explorer/_types.js +1 -0
  22. package/dist/components/Explorer/_types.js.map +1 -1
  23. package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +2 -1
  24. package/dist/components/Explorer/actions-item/useReplaceItemAction.js +2 -2
  25. package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
  26. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
  27. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +9 -19
  28. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  29. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +6 -3
  30. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +5 -19
  31. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
  32. package/dist/components/Explorer/link-item/LinkModal.d.ts +3 -0
  33. package/dist/components/Explorer/link-item/LinkModal.js +44 -4
  34. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
  35. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +1 -1
  36. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
  37. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +22 -2
  38. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -1
  39. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +10 -7
  40. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  41. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +5 -1
  42. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
  43. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.d.ts +3 -0
  44. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js +69 -0
  45. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
  46. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +6 -1
  47. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +2 -0
  48. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +31 -4
  49. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  50. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +19 -8
  51. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  52. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +1 -1
  53. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  54. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +2 -2
  55. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +38 -12
  56. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  57. package/dist/components/Explorer/useLoadView.d.ts +1 -1
  58. package/dist/components/Explorer/useLoadView.js +32 -38
  59. package/dist/components/Explorer/useLoadView.js.map +1 -1
  60. package/dist/components/Explorer/useSearchInput.js +2 -0
  61. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  62. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +2 -1
  63. package/dist/components/RecordEdition/EditRecord/EditRecord.js +72 -224
  64. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  65. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +2 -2
  66. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +29 -68
  67. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  68. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +9 -18
  69. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  70. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +0 -6
  71. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -7
  72. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  73. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +2 -15
  74. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +24 -47
  75. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  76. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.d.ts +5 -0
  77. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +28 -0
  78. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +1 -0
  79. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.d.ts +3 -0
  80. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js +7 -0
  81. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js.map +1 -0
  82. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +0 -1
  83. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +0 -4
  84. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +1 -1
  85. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +2 -2
  86. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +5 -3
  87. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  88. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
  89. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +5 -25
  90. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
  91. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.d.ts +1 -1
  92. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +3 -1
  93. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
  94. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +7 -34
  95. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  96. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.d.ts +3 -0
  97. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js +9 -0
  98. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js.map +1 -0
  99. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/{link-record-in-edition/useLinkRecords.d.ts → link-record/useExplorerLinkRecords.d.ts} +2 -2
  100. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/{link-record-in-edition/useLinkRecords.js → link-record/useExplorerLinkRecords.js} +3 -3
  101. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -0
  102. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/{link-record-in-edition/useLinkRecordsInEdition.d.ts → link-record/useLinkRecords.d.ts} +5 -9
  103. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +76 -0
  104. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -0
  105. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.js +1 -0
  106. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.js.map +1 -1
  107. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +2 -0
  108. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +85 -72
  109. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  110. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +1 -2
  111. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  112. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +1 -2
  113. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +1 -2
  114. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  115. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +0 -1
  116. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
  117. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -14
  118. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  119. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +2 -1
  120. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +5 -9
  121. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  122. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +4 -4
  123. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
  124. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +2 -4
  125. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +6 -10
  126. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
  127. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +22 -4
  128. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  129. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +23 -5
  130. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  131. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +1 -6
  132. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +1 -5
  133. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  134. package/dist/components/RecordEdition/index.d.ts +1 -1
  135. package/dist/components/RecordEdition/index.js +1 -1
  136. package/dist/components/RecordEdition/index.js.map +1 -1
  137. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.d.ts +2 -0
  138. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +6 -4
  139. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  140. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +2 -0
  141. package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -2
  142. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  143. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +2 -0
  144. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +58 -39
  145. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  146. package/dist/components/SelectTreeNode/_types.d.ts +1 -0
  147. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  148. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -2
  149. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +13 -2
  150. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  151. package/dist/hooks/useIFrameMessenger/types.d.ts +2 -0
  152. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +3 -3
  153. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +5 -1
  154. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  155. package/dist/locales/en/shared.json +2 -1
  156. package/dist/locales/fr/shared.json +1 -0
  157. package/package.json +3 -3
  158. package/dist/components/LinkSelect/LinkSelect.d.ts +0 -15
  159. package/dist/components/LinkSelect/LinkSelect.js +0 -88
  160. package/dist/components/LinkSelect/LinkSelect.js.map +0 -1
  161. package/dist/components/LinkSelect/index.d.ts +0 -2
  162. package/dist/components/LinkSelect/index.js +0 -6
  163. package/dist/components/LinkSelect/index.js.map +0 -1
  164. package/dist/components/RecordEdition/EditRecord/creationErrorContext.d.ts +0 -6
  165. package/dist/components/RecordEdition/EditRecord/creationErrorContext.js +0 -7
  166. package/dist/components/RecordEdition/EditRecord/creationErrorContext.js.map +0 -1
  167. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +0 -5
  168. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +0 -28
  169. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +0 -1
  170. package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.d.ts +0 -13
  171. package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.js +0 -119
  172. package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.js.map +0 -1
  173. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.d.ts +0 -121
  174. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js +0 -31
  175. package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js.map +0 -1
  176. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useEditRecord.d.ts +0 -5
  177. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useEditRecord.js +0 -39
  178. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useEditRecord.js.map +0 -1
  179. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useUnselectRecord.d.ts +0 -8
  180. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useUnselectRecord.js +0 -23
  181. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useUnselectRecord.js.map +0 -1
  182. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-mass/useUnselectAllRecords.d.ts +0 -9
  183. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-mass/useUnselectAllRecords.js +0 -23
  184. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-mass/useUnselectAllRecords.js.map +0 -1
  185. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useCreateRecord.d.ts +0 -8
  186. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useCreateRecord.js +0 -26
  187. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useCreateRecord.js.map +0 -1
  188. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useRecordSelector.d.ts +0 -12
  189. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useRecordSelector.js +0 -24
  190. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useRecordSelector.js.map +0 -1
  191. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecords.d.ts +0 -19
  192. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecords.js +0 -103
  193. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecords.js.map +0 -1
  194. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.d.ts +0 -22
  195. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js +0 -104
  196. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js.map +0 -1
  197. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecords.js.map +0 -1
  198. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js +0 -311
  199. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js.map +0 -1
  200. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/LinkActionsButtons.d.ts +0 -9
  201. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/LinkActionsButtons.js +0 -15
  202. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/LinkActionsButtons.js.map +0 -1
  203. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.d.ts +0 -16
  204. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js +0 -35
  205. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js.map +0 -1
  206. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/index.d.ts +0 -2
  207. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/index.js +0 -6
  208. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/index.js.map +0 -1
@@ -190,6 +190,7 @@ export var PermissionsActions;
190
190
  PermissionsActions["admin_access_applications"] = "admin_access_applications";
191
191
  PermissionsActions["admin_access_attributes"] = "admin_access_attributes";
192
192
  PermissionsActions["admin_access_libraries"] = "admin_access_libraries";
193
+ PermissionsActions["admin_access_logs"] = "admin_access_logs";
193
194
  PermissionsActions["admin_access_permissions"] = "admin_access_permissions";
194
195
  PermissionsActions["admin_access_tasks"] = "admin_access_tasks";
195
196
  PermissionsActions["admin_access_trees"] = "admin_access_trees";
@@ -217,6 +218,7 @@ export var PermissionsActions;
217
218
  PermissionsActions["admin_edit_permission"] = "admin_edit_permission";
218
219
  PermissionsActions["admin_edit_tree"] = "admin_edit_tree";
219
220
  PermissionsActions["admin_edit_version_profile"] = "admin_edit_version_profile";
221
+ PermissionsActions["admin_import_config_clear_database"] = "admin_import_config_clear_database";
220
222
  PermissionsActions["admin_library"] = "admin_library";
221
223
  PermissionsActions["admin_manage_global_preferences"] = "admin_manage_global_preferences";
222
224
  PermissionsActions["create_record"] = "create_record";
@@ -341,711 +343,730 @@ export var ViewTypes;
341
343
  })(ViewTypes || (ViewTypes = {}));
342
344
  export const RecordIdentityFragmentDoc = gql `
343
345
  fragment RecordIdentity on Record {
344
- id
345
- whoAmI {
346
- id
347
- label
348
- subLabel
349
- color
350
- library {
351
- id
352
- label
353
- }
354
- preview
355
- }
356
- }
357
- `;
346
+ id
347
+ whoAmI {
348
+ id
349
+ label
350
+ subLabel
351
+ color
352
+ library {
353
+ id
354
+ label
355
+ }
356
+ preview
357
+ }
358
+ }
359
+ `;
358
360
  export const DetailsApplicationFragmentDoc = gql `
359
361
  fragment DetailsApplication on Application {
360
- id
361
- label
362
- type
363
- description
364
- endpoint
365
- url
366
- color
367
- icon {
368
- ...RecordIdentity
369
- }
370
- module
371
- permissions {
372
- access_application
373
- admin_application
374
- }
375
- settings
376
- }
377
- ${RecordIdentityFragmentDoc}`;
362
+ id
363
+ label
364
+ type
365
+ description
366
+ endpoint
367
+ url
368
+ color
369
+ icon {
370
+ ...RecordIdentity
371
+ }
372
+ module
373
+ permissions {
374
+ access_application
375
+ admin_application
376
+ }
377
+ settings
378
+ }
379
+ ${RecordIdentityFragmentDoc}`;
378
380
  export const AttributeDetailsFragmentDoc = gql `
379
381
  fragment AttributeDetails on Attribute {
382
+ id
383
+ type
384
+ format
385
+ system
386
+ readonly
387
+ label
388
+ description
389
+ multiple_values
390
+ multi_link_display_option
391
+ metadata_fields {
392
+ id
393
+ label
394
+ type
395
+ format
396
+ }
397
+ versions_conf {
398
+ versionable
399
+ mode
400
+ profile {
401
+ id
402
+ label
403
+ trees {
380
404
  id
381
- type
382
- format
383
- system
384
- readonly
385
405
  label
386
- description
387
- multiple_values
388
- multi_link_display_option
389
- metadata_fields {
390
- id
391
- label
392
- type
393
- format
394
- }
395
- versions_conf {
396
- versionable
397
- mode
398
- profile {
399
- id
400
- label
401
- trees {
402
- id
403
- label
404
- }
405
- }
406
- }
407
- libraries {
408
- id
409
- label
410
- }
411
- ... on StandardAttribute {
412
- unique
413
- }
414
- ... on LinkAttribute {
415
- linked_library {
416
- id
417
- label
418
- }
419
- reverse_link
420
- }
421
- ... on TreeAttribute {
422
- linked_tree {
423
- id
424
- label
425
- }
426
- }
427
- }
428
- `;
406
+ }
407
+ }
408
+ }
409
+ libraries {
410
+ id
411
+ label
412
+ }
413
+ ... on StandardAttribute {
414
+ unique
415
+ }
416
+ ... on LinkAttribute {
417
+ linked_library {
418
+ id
419
+ label
420
+ }
421
+ reverse_link
422
+ }
423
+ ... on TreeAttribute {
424
+ linked_tree {
425
+ id
426
+ label
427
+ }
428
+ }
429
+ }
430
+ `;
429
431
  export const AttributesByLibLinkAttributeFragmentDoc = gql `
430
432
  fragment AttributesByLibLinkAttribute on LinkAttribute {
431
- linked_library {
432
- id
433
- }
434
- }
435
- `;
433
+ linked_library {
434
+ id
435
+ }
436
+ }
437
+ `;
436
438
  export const AttributesByLibAttributeFragmentDoc = gql `
437
439
  fragment AttributesByLibAttribute on Attribute {
438
- id
439
- type
440
- format
441
- label
442
- multiple_values
443
- system
444
- readonly
445
- ...AttributesByLibLinkAttribute
446
- ... on TreeAttribute {
447
- linked_tree {
448
- id
449
- label
450
- libraries {
451
- library {
452
- id
453
- label
454
- }
455
- }
456
- }
457
- }
458
- ... on StandardAttribute {
459
- embedded_fields {
460
- id
461
- format
462
- label
463
- }
464
- }
465
- }
466
- ${AttributesByLibLinkAttributeFragmentDoc}`;
467
- export const ValuesVersionDetailsFragmentDoc = gql `
468
- fragment ValuesVersionDetails on ValueVersion {
469
- treeId
470
- treeNode {
471
- id
472
- record {
473
- id
474
- whoAmI {
475
- id
476
- label
477
- library {
478
- id
479
- }
480
- }
481
- }
482
- }
483
- }
484
- `;
485
- export const ValueDetailsFragmentDoc = gql `
486
- fragment ValueDetails on GenericValue {
487
- id_value
488
- isInherited
489
- isCalculated
490
- modified_at
491
- modified_by {
492
- ...RecordIdentity
493
- }
494
- created_at
495
- created_by {
496
- ...RecordIdentity
497
- }
498
- version {
499
- ...ValuesVersionDetails
500
- }
501
- attribute {
502
- id
503
- format
504
- type
505
- system
506
- }
507
- metadata {
508
- name
509
- value {
510
- id_value
511
- modified_at
512
- modified_by {
513
- ...RecordIdentity
514
- }
515
- created_at
516
- created_by {
517
- ...RecordIdentity
518
- }
519
- version {
520
- ...ValuesVersionDetails
521
- }
522
- payload
523
- raw_payload
524
- }
525
- }
526
- ... on Value {
527
- payload
528
- raw_payload
529
- value
530
- raw_value
531
- }
532
- ... on LinkValue {
533
- linkValue: payload {
534
- ...RecordIdentity
535
- }
536
- }
537
- ... on TreeValue {
538
- treeValue: payload {
539
- id
540
- record {
541
- ...RecordIdentity
542
- }
543
- ancestors {
544
- record {
545
- ...RecordIdentity
546
- }
547
- }
548
- }
549
- }
550
- }
551
- ${RecordIdentityFragmentDoc}
552
- ${ValuesVersionDetailsFragmentDoc}`;
553
- export const RecordFormElementValuesFragmentDoc = gql `
554
- fragment RecordFormElementValues on FormElementValues {
555
- id
556
- valueError
557
- values {
558
- ...ValueDetails
559
- }
560
- }
561
- ${ValueDetailsFragmentDoc}`;
440
+ id
441
+ type
442
+ format
443
+ label
444
+ multiple_values
445
+ system
446
+ readonly
447
+ ...AttributesByLibLinkAttribute
448
+ ... on TreeAttribute {
449
+ linked_tree {
450
+ id
451
+ label
452
+ libraries {
453
+ library {
454
+ id
455
+ label
456
+ }
457
+ }
458
+ }
459
+ }
460
+ ... on StandardAttribute {
461
+ embedded_fields {
462
+ id
463
+ format
464
+ label
465
+ }
466
+ }
467
+ }
468
+ ${AttributesByLibLinkAttributeFragmentDoc}`;
562
469
  export const LibraryLightFragmentDoc = gql `
563
470
  fragment LibraryLight on Library {
471
+ id
472
+ label
473
+ icon {
474
+ id
475
+ whoAmI {
476
+ id
477
+ library {
564
478
  id
565
- label
566
- icon {
567
- id
568
- whoAmI {
569
- id
570
- library {
571
- id
572
- }
573
- preview
574
- }
575
- }
479
+ }
480
+ preview
576
481
  }
577
- `;
482
+ }
483
+ }
484
+ `;
578
485
  export const LibraryLinkAttributeDetailsFragmentDoc = gql `
579
486
  fragment LibraryLinkAttributeDetails on LinkAttribute {
580
- linked_library {
581
- id
582
- behavior
583
- }
584
- }
585
- `;
487
+ linked_library {
488
+ id
489
+ behavior
490
+ }
491
+ }
492
+ `;
586
493
  export const LibraryAttributesFragmentDoc = gql `
587
494
  fragment LibraryAttributes on Attribute {
588
- id
589
- label
590
- system
591
- type
592
- format
593
- ...LibraryLinkAttributeDetails
594
- }
595
- ${LibraryLinkAttributeDetailsFragmentDoc}`;
495
+ id
496
+ label
497
+ system
498
+ type
499
+ format
500
+ ...LibraryLinkAttributeDetails
501
+ }
502
+ ${LibraryLinkAttributeDetailsFragmentDoc}`;
596
503
  export const LibraryPreviewsSettingsFragmentDoc = gql `
597
504
  fragment LibraryPreviewsSettings on LibraryPreviewsSettings {
598
- label
599
- description
600
- system
601
- versions {
602
- background
603
- density
604
- sizes {
605
- name
606
- size
607
- }
608
- }
609
- }
610
- `;
505
+ label
506
+ description
507
+ system
508
+ versions {
509
+ background
510
+ density
511
+ sizes {
512
+ name
513
+ size
514
+ }
515
+ }
516
+ }
517
+ `;
611
518
  export const LibraryDetailsFragmentDoc = gql `
612
519
  fragment LibraryDetails on Library {
520
+ id
521
+ label
522
+ behavior
523
+ system
524
+ label
525
+ fullTextAttributes {
526
+ id
527
+ label
528
+ }
529
+ attributes {
530
+ ...LibraryAttributes
531
+ }
532
+ permissions_conf {
533
+ permissionTreeAttributes {
534
+ id
535
+ ... on TreeAttribute {
536
+ linked_tree {
537
+ id
538
+ }
539
+ }
540
+ label
541
+ }
542
+ relation
543
+ }
544
+ recordIdentityConf {
545
+ label
546
+ subLabel
547
+ color
548
+ preview
549
+ treeColorPreview
550
+ }
551
+ permissions {
552
+ admin_library
553
+ access_library
554
+ access_record
555
+ create_record
556
+ edit_record
557
+ delete_record
558
+ }
559
+ icon {
560
+ ...RecordIdentity
561
+ }
562
+ previewsSettings {
563
+ ...LibraryPreviewsSettings
564
+ }
565
+ }
566
+ ${LibraryAttributesFragmentDoc}
567
+ ${RecordIdentityFragmentDoc}
568
+ ${LibraryPreviewsSettingsFragmentDoc}`;
569
+ export const ValuesVersionDetailsFragmentDoc = gql `
570
+ fragment ValuesVersionDetails on ValueVersion {
571
+ treeId
572
+ treeNode {
573
+ id
574
+ record {
575
+ id
576
+ whoAmI {
613
577
  id
614
578
  label
615
- behavior
616
- system
617
- label
618
- fullTextAttributes {
619
- id
620
- label
621
- }
622
- attributes {
623
- ...LibraryAttributes
624
- }
625
- permissions_conf {
626
- permissionTreeAttributes {
627
- id
628
- ... on TreeAttribute {
629
- linked_tree {
630
- id
631
- }
632
- }
633
- label
634
- }
635
- relation
636
- }
637
- recordIdentityConf {
638
- label
639
- subLabel
640
- color
641
- preview
642
- treeColorPreview
643
- }
644
- permissions {
645
- admin_library
646
- access_library
647
- access_record
648
- create_record
649
- edit_record
650
- delete_record
651
- }
652
- icon {
653
- ...RecordIdentity
579
+ library {
580
+ id
654
581
  }
655
- previewsSettings {
656
- ...LibraryPreviewsSettings
582
+ }
583
+ }
584
+ }
585
+ }
586
+ `;
587
+ export const ValueDetailsFragmentDoc = gql `
588
+ fragment ValueDetails on GenericValue {
589
+ id_value
590
+ isInherited
591
+ isCalculated
592
+ modified_at
593
+ modified_by {
594
+ ...RecordIdentity
595
+ }
596
+ created_at
597
+ created_by {
598
+ ...RecordIdentity
599
+ }
600
+ version {
601
+ ...ValuesVersionDetails
602
+ }
603
+ attribute {
604
+ id
605
+ format
606
+ type
607
+ system
608
+ }
609
+ metadata {
610
+ name
611
+ value {
612
+ id_value
613
+ modified_at
614
+ modified_by {
615
+ ...RecordIdentity
616
+ }
617
+ created_at
618
+ created_by {
619
+ ...RecordIdentity
620
+ }
621
+ version {
622
+ ...ValuesVersionDetails
623
+ }
624
+ payload
625
+ raw_payload
626
+ }
627
+ }
628
+ ... on Value {
629
+ payload
630
+ raw_payload
631
+ value
632
+ raw_value
633
+ }
634
+ ... on LinkValue {
635
+ linkValue: payload {
636
+ ...RecordIdentity
637
+ }
638
+ }
639
+ ... on TreeValue {
640
+ treeValue: payload {
641
+ id
642
+ record {
643
+ ...RecordIdentity
644
+ }
645
+ ancestors {
646
+ record {
647
+ ...RecordIdentity
657
648
  }
649
+ }
658
650
  }
659
- ${LibraryAttributesFragmentDoc}
651
+ }
652
+ }
660
653
  ${RecordIdentityFragmentDoc}
661
- ${LibraryPreviewsSettingsFragmentDoc}`;
654
+ ${ValuesVersionDetailsFragmentDoc}`;
662
655
  export const StandardValuesListFragmentFragmentDoc = gql `
663
656
  fragment StandardValuesListFragment on StandardValuesListConf {
664
- ... on StandardStringValuesListConf {
665
- enable
666
- allowFreeEntry
667
- allowListUpdate
668
- values
669
- }
670
- ... on StandardDateRangeValuesListConf {
671
- enable
672
- allowFreeEntry
673
- allowListUpdate
674
- dateRangeValues: values {
675
- from
676
- to
677
- }
678
- }
679
- }
680
- `;
657
+ ... on StandardStringValuesListConf {
658
+ enable
659
+ allowFreeEntry
660
+ allowListUpdate
661
+ values
662
+ }
663
+ ... on StandardDateRangeValuesListConf {
664
+ enable
665
+ allowFreeEntry
666
+ allowListUpdate
667
+ dateRangeValues: values {
668
+ from
669
+ to
670
+ }
671
+ }
672
+ }
673
+ `;
681
674
  export const RecordFormAttributeFragmentDoc = gql `
682
675
  fragment RecordFormAttribute on Attribute {
676
+ id
677
+ label
678
+ description
679
+ type
680
+ format
681
+ system
682
+ readonly
683
+ required
684
+ multiple_values
685
+ compute
686
+ permissions(record: {id: $recordId, library: $libraryId}) {
687
+ access_attribute
688
+ edit_value
689
+ }
690
+ versions_conf {
691
+ versionable
692
+ profile {
693
+ id
694
+ trees {
683
695
  id
684
696
  label
685
- description
686
- type
687
- format
688
- system
689
- readonly
690
- required
691
- multiple_values
692
- compute
693
- permissions(record: {id: $recordId, library: $libraryId}) {
694
- access_attribute
695
- edit_value
696
- }
697
- versions_conf {
698
- versionable
699
- profile {
700
- id
701
- trees {
702
- id
703
- label
704
- }
705
- }
706
- }
707
- metadata_fields {
708
- id
709
- label
710
- description
711
- type
712
- format
713
- system
714
- readonly
715
- multiple_values
716
- permissions(record: {id: $recordId, library: $libraryId}) {
717
- access_attribute
718
- edit_value
719
- }
720
- values_list {
721
- ...StandardValuesListFragment
722
- }
723
- metadata_fields {
724
- id
725
- }
726
- }
727
- ... on StandardAttribute {
728
- values_list {
729
- ...StandardValuesListFragment
730
- }
731
- character_limit
732
- }
733
- ... on LinkAttribute {
734
- linked_library {
735
- id
736
- label
737
- behavior
738
- permissions {
739
- create_record
740
- }
741
- }
742
- linkValuesList: values_list {
743
- enable
744
- allowFreeEntry
745
- allowListUpdate
746
- values {
747
- ...RecordIdentity
748
- }
749
- }
697
+ }
698
+ }
699
+ }
700
+ metadata_fields {
701
+ id
702
+ label
703
+ description
704
+ type
705
+ format
706
+ system
707
+ readonly
708
+ multiple_values
709
+ permissions(record: {id: $recordId, library: $libraryId}) {
710
+ access_attribute
711
+ edit_value
712
+ }
713
+ values_list {
714
+ ...StandardValuesListFragment
715
+ }
716
+ metadata_fields {
717
+ id
718
+ }
719
+ }
720
+ ... on StandardAttribute {
721
+ values_list {
722
+ ...StandardValuesListFragment
723
+ }
724
+ character_limit
725
+ }
726
+ ... on LinkAttribute {
727
+ linked_library {
728
+ id
729
+ label
730
+ behavior
731
+ permissions {
732
+ create_record
733
+ }
734
+ }
735
+ linkValuesList: values_list {
736
+ enable
737
+ allowFreeEntry
738
+ allowListUpdate
739
+ values {
740
+ ...RecordIdentity
741
+ }
742
+ }
743
+ }
744
+ ... on TreeAttribute {
745
+ linked_tree {
746
+ id
747
+ label
748
+ }
749
+ treeValuesList: values_list {
750
+ enable
751
+ allowFreeEntry
752
+ allowListUpdate
753
+ values {
754
+ id
755
+ record {
756
+ ...RecordIdentity
750
757
  }
751
- ... on TreeAttribute {
752
- linked_tree {
753
- id
754
- label
755
- }
756
- treeValuesList: values_list {
757
- enable
758
- allowFreeEntry
759
- allowListUpdate
760
- values {
761
- id
762
- record {
763
- ...RecordIdentity
764
- }
765
- ancestors {
766
- record {
767
- ...RecordIdentity
768
- }
769
- }
770
- }
771
- }
758
+ ancestors {
759
+ record {
760
+ ...RecordIdentity
761
+ }
772
762
  }
763
+ }
773
764
  }
765
+ }
766
+ }
774
767
  ${StandardValuesListFragmentFragmentDoc}
775
768
  ${RecordIdentityFragmentDoc}`;
776
769
  export const JoinLibraryContextFragmentDoc = gql `
777
770
  fragment JoinLibraryContext on FormElementJoinLibraryContext {
778
- mandatoryAttribute {
779
- ...RecordFormAttribute
780
- }
781
- }
782
- ${RecordFormAttributeFragmentDoc}`;
771
+ mandatoryAttribute {
772
+ ...RecordFormAttribute
773
+ }
774
+ }
775
+ ${RecordFormAttributeFragmentDoc}`;
783
776
  export const RecordFormElementFragmentDoc = gql `
784
- fragment RecordFormElement on FormElement {
785
- id
786
- containerId
787
- uiElementType
788
- type
789
- attribute {
790
- ...RecordFormAttribute
791
- }
792
- settings {
793
- key
794
- value
795
- }
796
- joinLibraryContext {
797
- ...JoinLibraryContext
798
- }
799
- }
800
- ${RecordFormAttributeFragmentDoc}
777
+ fragment RecordFormElement on FormElementWithValues {
778
+ id
779
+ containerId
780
+ uiElementType
781
+ type
782
+ valueError
783
+ values {
784
+ ...ValueDetails
785
+ }
786
+ attribute {
787
+ ...RecordFormAttribute
788
+ }
789
+ settings {
790
+ key
791
+ value
792
+ }
793
+ joinLibraryContext {
794
+ ...JoinLibraryContext
795
+ }
796
+ }
797
+ ${ValueDetailsFragmentDoc}
798
+ ${RecordFormAttributeFragmentDoc}
801
799
  ${JoinLibraryContextFragmentDoc}`;
802
800
  export const TreeLightFragmentDoc = gql `
803
801
  fragment TreeLight on Tree {
804
- id
805
- label
806
- }
807
- `;
802
+ id
803
+ label
804
+ }
805
+ `;
808
806
  export const TreeDetailsFragmentDoc = gql `
809
807
  fragment TreeDetails on Tree {
810
- id
811
- label
812
- behavior
813
- system
814
- libraries {
815
- library {
816
- id
817
- label
818
- }
819
- settings {
820
- allowMultiplePositions
821
- allowedAtRoot
822
- allowedChildren
823
- }
824
- }
825
- }
826
- `;
808
+ id
809
+ label
810
+ behavior
811
+ system
812
+ libraries {
813
+ library {
814
+ id
815
+ label
816
+ }
817
+ settings {
818
+ allowMultiplePositions
819
+ allowedAtRoot
820
+ allowedChildren
821
+ }
822
+ }
823
+ }
824
+ `;
827
825
  export const TreeNodeChildFragmentDoc = gql `
828
826
  fragment TreeNodeChild on TreeNodeLight {
827
+ id
828
+ order
829
+ childrenCount
830
+ record {
831
+ ...RecordIdentity
832
+ active: property(attribute: "active") {
833
+ ... on Value {
834
+ value
835
+ }
836
+ }
837
+ }
838
+ ancestors {
839
+ id
840
+ record {
841
+ id
842
+ library {
829
843
  id
830
- order
831
- childrenCount
832
- record {
833
- ...RecordIdentity
834
- active: property(attribute: "active") {
835
- ... on Value {
836
- value
837
- }
838
- }
839
- }
840
- ancestors {
841
- id
842
- record {
843
- id
844
- library {
845
- id
846
- label
847
- }
848
- ...RecordIdentity
849
- }
850
- }
851
- permissions {
852
- access_tree
853
- detach
854
- edit_children
855
- }
844
+ label
845
+ }
846
+ ...RecordIdentity
856
847
  }
857
- ${RecordIdentityFragmentDoc}`;
848
+ }
849
+ permissions {
850
+ access_tree
851
+ detach
852
+ edit_children
853
+ }
854
+ }
855
+ ${RecordIdentityFragmentDoc}`;
858
856
  export const ViewDetailsFilterFragmentDoc = gql `
859
857
  fragment ViewDetailsFilter on RecordFilter {
860
- field
861
- value
862
- tree {
863
- id
864
- label
865
- }
866
- condition
867
- operator
868
- }
869
- `;
858
+ field
859
+ value
860
+ tree {
861
+ id
862
+ label
863
+ }
864
+ condition
865
+ operator
866
+ }
867
+ `;
870
868
  export const ViewDetailsFragmentDoc = gql `
871
869
  fragment ViewDetails on View {
870
+ id
871
+ display {
872
+ size
873
+ type
874
+ }
875
+ shared
876
+ created_by {
877
+ id
878
+ whoAmI {
879
+ id
880
+ label
881
+ library {
872
882
  id
873
- display {
874
- size
875
- type
876
- }
877
- shared
878
- created_by {
879
- id
880
- whoAmI {
881
- id
882
- label
883
- library {
884
- id
885
- }
886
- }
887
- }
888
- label
889
- description
890
- color
891
- filters {
892
- ...ViewDetailsFilter
893
- }
894
- sort {
895
- field
896
- order
897
- }
898
- valuesVersions {
899
- treeId
900
- treeNode {
901
- id
902
- record {
903
- ...RecordIdentity
904
- }
905
- }
906
- }
907
- attributes {
908
- id
909
- }
910
- }
883
+ }
884
+ }
885
+ }
886
+ label
887
+ description
888
+ color
889
+ filters {
890
+ ...ViewDetailsFilter
891
+ }
892
+ sort {
893
+ field
894
+ order
895
+ }
896
+ valuesVersions {
897
+ treeId
898
+ treeNode {
899
+ id
900
+ record {
901
+ ...RecordIdentity
902
+ }
903
+ }
904
+ }
905
+ attributes {
906
+ id
907
+ }
908
+ }
911
909
  ${ViewDetailsFilterFragmentDoc}
912
910
  ${RecordIdentityFragmentDoc}`;
913
911
  export const AttributesByLibLinkAttributeWithPermissionsFragmentDoc = gql `
914
912
  fragment AttributesByLibLinkAttributeWithPermissions on LinkAttribute {
915
- linked_library {
916
- id
917
- }
918
- }
919
- `;
913
+ linked_library {
914
+ id
915
+ }
916
+ }
917
+ `;
920
918
  export const AttributesByLibAttributeWithPermissionsFragmentDoc = gql `
921
919
  fragment AttributesByLibAttributeWithPermissions on Attribute {
922
- id
923
- type
924
- format
925
- label
926
- multiple_values
927
- system
928
- readonly
929
- permissions {
930
- access_attribute
931
- }
932
- ...AttributesByLibLinkAttributeWithPermissions
933
- ... on TreeAttribute {
934
- linked_tree {
935
- id
936
- label
937
- libraries {
938
- library {
939
- id
940
- label
941
- }
942
- }
943
- }
944
- }
945
- ... on StandardAttribute {
946
- embedded_fields {
947
- id
948
- format
949
- label
950
- }
951
- }
952
- }
953
- ${AttributesByLibLinkAttributeWithPermissionsFragmentDoc}`;
920
+ id
921
+ type
922
+ format
923
+ label
924
+ multiple_values
925
+ system
926
+ readonly
927
+ permissions {
928
+ access_attribute
929
+ }
930
+ ...AttributesByLibLinkAttributeWithPermissions
931
+ ... on TreeAttribute {
932
+ linked_tree {
933
+ id
934
+ label
935
+ libraries {
936
+ library {
937
+ id
938
+ label
939
+ }
940
+ }
941
+ }
942
+ }
943
+ ... on StandardAttribute {
944
+ embedded_fields {
945
+ id
946
+ format
947
+ label
948
+ }
949
+ }
950
+ }
951
+ ${AttributesByLibLinkAttributeWithPermissionsFragmentDoc}`;
954
952
  export const LinkAttributeDetailsFragmentDoc = gql `
955
953
  fragment LinkAttributeDetails on LinkAttribute {
956
- label
957
- linked_library {
958
- id
959
- label
954
+ label
955
+ linked_library {
956
+ id
957
+ label
958
+ }
959
+ values_list {
960
+ allowFreeEntry
961
+ enable
962
+ values {
963
+ id
964
+ whoAmI {
965
+ id
966
+ library {
967
+ id
960
968
  }
969
+ }
961
970
  }
962
- `;
971
+ }
972
+ }
973
+ `;
974
+ export const TreeAttributeDetailsFragmentDoc = gql `
975
+ fragment TreeAttributeDetails on TreeAttribute {
976
+ id
977
+ label
978
+ linked_tree {
979
+ id
980
+ label
981
+ }
982
+ }
983
+ `;
963
984
  export const AttributePropertiesFragmentDoc = gql `
964
985
  fragment AttributeProperties on Attribute {
965
- id
966
- label
967
- type
968
- format
969
- multiple_values
970
- multi_link_display_option
971
- }
972
- `;
986
+ id
987
+ label
988
+ type
989
+ format
990
+ multiple_values
991
+ multi_link_display_option
992
+ }
993
+ `;
973
994
  export const PropertyValueFragmentDoc = gql `
974
995
  fragment PropertyValue on GenericValue {
975
- ... on Value {
976
- valuePayload: payload
977
- valueRawPayload: raw_payload
978
- }
979
- ... on LinkValue {
980
- linkPayload: payload {
981
- ...RecordIdentity
982
- }
983
- }
984
- ... on TreeValue {
985
- treePayload: payload {
986
- record {
987
- ...RecordIdentity
988
- }
989
- }
990
- }
991
- }
992
- ${RecordIdentityFragmentDoc}`;
996
+ ... on Value {
997
+ valuePayload: payload
998
+ valueRawPayload: raw_payload
999
+ }
1000
+ ... on LinkValue {
1001
+ linkPayload: payload {
1002
+ ...RecordIdentity
1003
+ }
1004
+ }
1005
+ ... on TreeValue {
1006
+ treePayload: payload {
1007
+ record {
1008
+ ...RecordIdentity
1009
+ }
1010
+ }
1011
+ }
1012
+ }
1013
+ ${RecordIdentityFragmentDoc}`;
993
1014
  export const LinkPropertyFragmentDoc = gql `
994
1015
  fragment LinkProperty on GenericValue {
995
- id_value
996
- ... on LinkValue {
997
- payload {
998
- ...RecordIdentity
999
- properties(attributeIds: $attributeIds) {
1000
- attributeId
1001
- attributeProperties {
1002
- ...AttributeProperties
1003
- }
1004
- values {
1005
- ...PropertyValue
1006
- }
1007
- }
1008
- }
1016
+ id_value
1017
+ ... on LinkValue {
1018
+ payload {
1019
+ ...RecordIdentity
1020
+ properties(attributeIds: $attributeIds) {
1021
+ attributeId
1022
+ attributeProperties {
1023
+ ...AttributeProperties
1024
+ }
1025
+ values {
1026
+ ...PropertyValue
1009
1027
  }
1028
+ }
1010
1029
  }
1030
+ }
1031
+ }
1011
1032
  ${RecordIdentityFragmentDoc}
1012
- ${AttributePropertiesFragmentDoc}
1033
+ ${AttributePropertiesFragmentDoc}
1013
1034
  ${PropertyValueFragmentDoc}`;
1014
1035
  export const LibraryAttributeLinkFragmentDoc = gql `
1015
1036
  fragment LibraryAttributeLink on LinkAttribute {
1016
- linked_library {
1017
- id
1018
- label
1019
- attributes {
1020
- id
1021
- type
1022
- format
1023
- label
1024
- }
1025
- }
1026
- }
1027
- `;
1037
+ linked_library {
1038
+ id
1039
+ label
1040
+ attributes {
1041
+ id
1042
+ type
1043
+ format
1044
+ label
1045
+ }
1046
+ }
1047
+ }
1048
+ `;
1028
1049
  export const LibraryAttributeFragmentDoc = gql `
1029
1050
  fragment LibraryAttribute on Attribute {
1030
- id
1031
- type
1032
- label
1033
- permissions {
1034
- access_attribute
1035
- }
1036
- ... on StandardAttribute {
1037
- format
1038
- }
1039
- ...LibraryAttributeLink
1040
- }
1041
- ${LibraryAttributeLinkFragmentDoc}`;
1051
+ id
1052
+ type
1053
+ label
1054
+ permissions {
1055
+ access_attribute
1056
+ }
1057
+ ... on StandardAttribute {
1058
+ format
1059
+ }
1060
+ ...LibraryAttributeLink
1061
+ }
1062
+ ${LibraryAttributeLinkFragmentDoc}`;
1042
1063
  export const CheckApplicationExistenceDocument = gql `
1043
1064
  query CHECK_APPLICATION_EXISTENCE($id: ID, $endpoint: String) {
1044
- applications(filters: {id: $id, endpoint: $endpoint}) {
1045
- totalCount
1046
- }
1047
- }
1048
- `;
1065
+ applications(filters: {id: $id, endpoint: $endpoint}) {
1066
+ totalCount
1067
+ }
1068
+ }
1069
+ `;
1049
1070
  /**
1050
1071
  * __useCheckApplicationExistenceQuery__
1051
1072
  *
@@ -1077,13 +1098,13 @@ export function useCheckApplicationExistenceSuspenseQuery(baseOptions) {
1077
1098
  }
1078
1099
  export const GetApplicationByIdDocument = gql `
1079
1100
  query GET_APPLICATION_BY_ID($id: ID!) {
1080
- applications(filters: {id: $id}) {
1081
- list {
1082
- ...DetailsApplication
1083
- }
1084
- }
1101
+ applications(filters: {id: $id}) {
1102
+ list {
1103
+ ...DetailsApplication
1085
1104
  }
1086
- ${DetailsApplicationFragmentDoc}`;
1105
+ }
1106
+ }
1107
+ ${DetailsApplicationFragmentDoc}`;
1087
1108
  /**
1088
1109
  * __useGetApplicationByIdQuery__
1089
1110
  *
@@ -1114,13 +1135,13 @@ export function useGetApplicationByIdSuspenseQuery(baseOptions) {
1114
1135
  }
1115
1136
  export const GetApplicationModulesDocument = gql `
1116
1137
  query GET_APPLICATION_MODULES {
1117
- applicationsModules {
1118
- id
1119
- description
1120
- version
1121
- }
1122
- }
1123
- `;
1138
+ applicationsModules {
1139
+ id
1140
+ description
1141
+ version
1142
+ }
1143
+ }
1144
+ `;
1124
1145
  /**
1125
1146
  * __useGetApplicationModulesQuery__
1126
1147
  *
@@ -1150,11 +1171,11 @@ export function useGetApplicationModulesSuspenseQuery(baseOptions) {
1150
1171
  }
1151
1172
  export const SaveApplicationDocument = gql `
1152
1173
  mutation SAVE_APPLICATION($application: ApplicationInput!) {
1153
- saveApplication(application: $application) {
1154
- ...DetailsApplication
1155
- }
1156
- }
1157
- ${DetailsApplicationFragmentDoc}`;
1174
+ saveApplication(application: $application) {
1175
+ ...DetailsApplication
1176
+ }
1177
+ }
1178
+ ${DetailsApplicationFragmentDoc}`;
1158
1179
  /**
1159
1180
  * __useSaveApplicationMutation__
1160
1181
  *
@@ -1178,11 +1199,11 @@ export function useSaveApplicationMutation(baseOptions) {
1178
1199
  }
1179
1200
  export const CheckAttributeExistenceDocument = gql `
1180
1201
  query CHECK_ATTRIBUTE_EXISTENCE($id: ID!) {
1181
- attributes(filters: {id: $id}) {
1182
- totalCount
1183
- }
1184
- }
1185
- `;
1202
+ attributes(filters: {id: $id}) {
1203
+ totalCount
1204
+ }
1205
+ }
1206
+ `;
1186
1207
  /**
1187
1208
  * __useCheckAttributeExistenceQuery__
1188
1209
  *
@@ -1213,11 +1234,11 @@ export function useCheckAttributeExistenceSuspenseQuery(baseOptions) {
1213
1234
  }
1214
1235
  export const DeleteAttributeDocument = gql `
1215
1236
  mutation DELETE_ATTRIBUTE($id: ID) {
1216
- deleteAttribute(id: $id) {
1217
- id
1218
- }
1219
- }
1220
- `;
1237
+ deleteAttribute(id: $id) {
1238
+ id
1239
+ }
1240
+ }
1241
+ `;
1221
1242
  /**
1222
1243
  * __useDeleteAttributeMutation__
1223
1244
  *
@@ -1241,13 +1262,13 @@ export function useDeleteAttributeMutation(baseOptions) {
1241
1262
  }
1242
1263
  export const GetAttributeByIdDocument = gql `
1243
1264
  query GET_ATTRIBUTE_BY_ID($id: ID) {
1244
- attributes(filters: {id: $id}) {
1245
- list {
1246
- ...AttributeDetails
1247
- }
1248
- }
1265
+ attributes(filters: {id: $id}) {
1266
+ list {
1267
+ ...AttributeDetails
1249
1268
  }
1250
- ${AttributeDetailsFragmentDoc}`;
1269
+ }
1270
+ }
1271
+ ${AttributeDetailsFragmentDoc}`;
1251
1272
  /**
1252
1273
  * __useGetAttributeByIdQuery__
1253
1274
  *
@@ -1278,13 +1299,13 @@ export function useGetAttributeByIdSuspenseQuery(baseOptions) {
1278
1299
  }
1279
1300
  export const GetAttributesByLibDocument = gql `
1280
1301
  query GET_ATTRIBUTES_BY_LIB($library: String!) {
1281
- attributes(filters: {libraries: [$library]}) {
1282
- list {
1283
- ...AttributesByLibAttribute
1284
- }
1285
- }
1302
+ attributes(filters: {libraries: [$library]}) {
1303
+ list {
1304
+ ...AttributesByLibAttribute
1286
1305
  }
1287
- ${AttributesByLibAttributeFragmentDoc}`;
1306
+ }
1307
+ }
1308
+ ${AttributesByLibAttributeFragmentDoc}`;
1288
1309
  /**
1289
1310
  * __useGetAttributesByLibQuery__
1290
1311
  *
@@ -1315,18 +1336,18 @@ export function useGetAttributesByLibSuspenseQuery(baseOptions) {
1315
1336
  }
1316
1337
  export const GetAttributesDocument = gql `
1317
1338
  query GET_ATTRIBUTES($pagination: Pagination, $sort: SortAttributes, $filters: AttributesFiltersInput) {
1318
- attributes(pagination: $pagination, sort: $sort, filters: $filters) {
1319
- totalCount
1320
- list {
1321
- id
1322
- label
1323
- type
1324
- format
1325
- system
1326
- }
1327
- }
1339
+ attributes(pagination: $pagination, sort: $sort, filters: $filters) {
1340
+ totalCount
1341
+ list {
1342
+ id
1343
+ label
1344
+ type
1345
+ format
1346
+ system
1328
1347
  }
1329
- `;
1348
+ }
1349
+ }
1350
+ `;
1330
1351
  /**
1331
1352
  * __useGetAttributesQuery__
1332
1353
  *
@@ -1359,14 +1380,14 @@ export function useGetAttributesSuspenseQuery(baseOptions) {
1359
1380
  }
1360
1381
  export const GetVersionProfilesDocument = gql `
1361
1382
  query GET_VERSION_PROFILES($filters: VersionProfilesFiltersInput, $sort: SortVersionProfilesInput) {
1362
- versionProfiles(filters: $filters, sort: $sort) {
1363
- list {
1364
- id
1365
- label
1366
- }
1367
- }
1383
+ versionProfiles(filters: $filters, sort: $sort) {
1384
+ list {
1385
+ id
1386
+ label
1368
1387
  }
1369
- `;
1388
+ }
1389
+ }
1390
+ `;
1370
1391
  /**
1371
1392
  * __useGetVersionProfilesQuery__
1372
1393
  *
@@ -1398,23 +1419,23 @@ export function useGetVersionProfilesSuspenseQuery(baseOptions) {
1398
1419
  }
1399
1420
  export const GetVersionableAttributesByLibraryDocument = gql `
1400
1421
  query GET_VERSIONABLE_ATTRIBUTES_BY_LIBRARY($libraryId: String!) {
1401
- attributes(filters: {libraries: [$libraryId], versionable: true}) {
1402
- list {
1403
- id
1404
- versions_conf {
1405
- versionable
1406
- profile {
1407
- id
1408
- trees {
1409
- id
1410
- label
1411
- }
1412
- }
1413
- }
1414
- }
1422
+ attributes(filters: {libraries: [$libraryId], versionable: true}) {
1423
+ list {
1424
+ id
1425
+ versions_conf {
1426
+ versionable
1427
+ profile {
1428
+ id
1429
+ trees {
1430
+ id
1431
+ label
1432
+ }
1415
1433
  }
1434
+ }
1416
1435
  }
1417
- `;
1436
+ }
1437
+ }
1438
+ `;
1418
1439
  /**
1419
1440
  * __useGetVersionableAttributesByLibraryQuery__
1420
1441
  *
@@ -1445,11 +1466,11 @@ export function useGetVersionableAttributesByLibrarySuspenseQuery(baseOptions) {
1445
1466
  }
1446
1467
  export const SaveAttributeDocument = gql `
1447
1468
  mutation SAVE_ATTRIBUTE($attribute: AttributeInput!) {
1448
- saveAttribute(attribute: $attribute) {
1449
- ...AttributeDetails
1450
- }
1451
- }
1452
- ${AttributeDetailsFragmentDoc}`;
1469
+ saveAttribute(attribute: $attribute) {
1470
+ ...AttributeDetails
1471
+ }
1472
+ }
1473
+ ${AttributeDetailsFragmentDoc}`;
1453
1474
  /**
1454
1475
  * __useSaveAttributeMutation__
1455
1476
  *
@@ -1473,9 +1494,9 @@ export function useSaveAttributeMutation(baseOptions) {
1473
1494
  }
1474
1495
  export const ExportDocument = gql `
1475
1496
  query EXPORT($library: ID!, $attributes: [ID!], $filters: [RecordFilterInput!]) {
1476
- export(library: $library, attributes: $attributes, filters: $filters)
1477
- }
1478
- `;
1497
+ export(library: $library, attributes: $attributes, filters: $filters)
1498
+ }
1499
+ `;
1479
1500
  /**
1480
1501
  * __useExportQuery__
1481
1502
  *
@@ -1508,11 +1529,11 @@ export function useExportSuspenseQuery(baseOptions) {
1508
1529
  }
1509
1530
  export const CreateDirectoryDocument = gql `
1510
1531
  mutation CREATE_DIRECTORY($library: String!, $nodeId: String!, $name: String!) {
1511
- createDirectory(library: $library, nodeId: $nodeId, name: $name) {
1512
- ...RecordIdentity
1513
- }
1514
- }
1515
- ${RecordIdentityFragmentDoc}`;
1532
+ createDirectory(library: $library, nodeId: $nodeId, name: $name) {
1533
+ ...RecordIdentity
1534
+ }
1535
+ }
1536
+ ${RecordIdentityFragmentDoc}`;
1516
1537
  /**
1517
1538
  * __useCreateDirectoryMutation__
1518
1539
  *
@@ -1538,15 +1559,15 @@ export function useCreateDirectoryMutation(baseOptions) {
1538
1559
  }
1539
1560
  export const ForcePreviewsGenerationDocument = gql `
1540
1561
  mutation FORCE_PREVIEWS_GENERATION($libraryId: ID!, $filters: [RecordFilterInput!], $recordIds: [ID!], $failedOnly: Boolean, $previewVersionSizeNames: [String!]) {
1541
- forcePreviewsGeneration(
1542
- libraryId: $libraryId
1543
- filters: $filters
1544
- recordIds: $recordIds
1545
- failedOnly: $failedOnly
1546
- previewVersionSizeNames: $previewVersionSizeNames
1547
- )
1548
- }
1549
- `;
1562
+ forcePreviewsGeneration(
1563
+ libraryId: $libraryId
1564
+ filters: $filters
1565
+ recordIds: $recordIds
1566
+ failedOnly: $failedOnly
1567
+ previewVersionSizeNames: $previewVersionSizeNames
1568
+ )
1569
+ }
1570
+ `;
1550
1571
  /**
1551
1572
  * __useForcePreviewsGenerationMutation__
1552
1573
  *
@@ -1574,53 +1595,53 @@ export function useForcePreviewsGenerationMutation(baseOptions) {
1574
1595
  }
1575
1596
  export const GetDirectoryDataDocument = gql `
1576
1597
  query GET_DIRECTORY_DATA($library: ID!, $directoryId: String!) {
1577
- records(
1578
- library: $library
1579
- filters: [{field: "id", value: $directoryId, condition: EQUAL}]
1580
- ) {
1581
- list {
1582
- ...RecordIdentity
1583
- created_at: property(attribute: "created_at") {
1584
- ... on Value {
1585
- value
1586
- }
1587
- }
1588
- created_by: property(attribute: "created_by") {
1589
- ... on LinkValue {
1590
- value {
1591
- ...RecordIdentity
1592
- }
1593
- }
1594
- }
1595
- modified_at: property(attribute: "modified_at") {
1596
- ... on Value {
1597
- value
1598
- }
1599
- }
1600
- modified_by: property(attribute: "modified_by") {
1601
- ... on LinkValue {
1602
- value {
1603
- ...RecordIdentity
1604
- }
1605
- }
1606
- }
1607
- file_name: property(attribute: "file_name") {
1608
- ... on Value {
1609
- value
1610
- }
1611
- }
1612
- file_path: property(attribute: "file_path") {
1613
- ... on Value {
1614
- value
1615
- }
1616
- }
1617
- library {
1618
- behavior
1619
- }
1620
- }
1598
+ records(
1599
+ library: $library
1600
+ filters: [{field: "id", value: $directoryId, condition: EQUAL}]
1601
+ ) {
1602
+ list {
1603
+ ...RecordIdentity
1604
+ created_at: property(attribute: "created_at") {
1605
+ ... on Value {
1606
+ value
1621
1607
  }
1608
+ }
1609
+ created_by: property(attribute: "created_by") {
1610
+ ... on LinkValue {
1611
+ value {
1612
+ ...RecordIdentity
1613
+ }
1614
+ }
1615
+ }
1616
+ modified_at: property(attribute: "modified_at") {
1617
+ ... on Value {
1618
+ value
1619
+ }
1620
+ }
1621
+ modified_by: property(attribute: "modified_by") {
1622
+ ... on LinkValue {
1623
+ value {
1624
+ ...RecordIdentity
1625
+ }
1626
+ }
1627
+ }
1628
+ file_name: property(attribute: "file_name") {
1629
+ ... on Value {
1630
+ value
1631
+ }
1632
+ }
1633
+ file_path: property(attribute: "file_path") {
1634
+ ... on Value {
1635
+ value
1636
+ }
1637
+ }
1638
+ library {
1639
+ behavior
1640
+ }
1622
1641
  }
1623
- ${RecordIdentityFragmentDoc}`;
1642
+ }
1643
+ }
1644
+ ${RecordIdentityFragmentDoc}`;
1624
1645
  /**
1625
1646
  * __useGetDirectoryDataQuery__
1626
1647
  *
@@ -1652,22 +1673,22 @@ export function useGetDirectoryDataSuspenseQuery(baseOptions) {
1652
1673
  }
1653
1674
  export const UploadUpdateDocument = gql `
1654
1675
  subscription UPLOAD_UPDATE($filters: UploadFiltersInput) {
1655
- upload(filters: $filters) {
1656
- userId
1657
- progress {
1658
- length
1659
- transferred
1660
- speed
1661
- runtime
1662
- remaining
1663
- percentage
1664
- eta
1665
- delta
1666
- }
1667
- uid
1668
- }
1669
- }
1670
- `;
1676
+ upload(filters: $filters) {
1677
+ userId
1678
+ progress {
1679
+ length
1680
+ transferred
1681
+ speed
1682
+ runtime
1683
+ remaining
1684
+ percentage
1685
+ eta
1686
+ delta
1687
+ }
1688
+ uid
1689
+ }
1690
+ }
1691
+ `;
1671
1692
  /**
1672
1693
  * __useUploadUpdateSubscription__
1673
1694
  *
@@ -1690,14 +1711,14 @@ export function useUploadUpdateSubscription(baseOptions) {
1690
1711
  }
1691
1712
  export const UploadDocument = gql `
1692
1713
  mutation UPLOAD($library: String!, $nodeId: String!, $files: [FileInput!]!) {
1693
- upload(library: $library, nodeId: $nodeId, files: $files) {
1694
- uid
1695
- record {
1696
- ...RecordIdentity
1697
- }
1698
- }
1714
+ upload(library: $library, nodeId: $nodeId, files: $files) {
1715
+ uid
1716
+ record {
1717
+ ...RecordIdentity
1699
1718
  }
1700
- ${RecordIdentityFragmentDoc}`;
1719
+ }
1720
+ }
1721
+ ${RecordIdentityFragmentDoc}`;
1701
1722
  /**
1702
1723
  * __useUploadMutation__
1703
1724
  *
@@ -1721,56 +1742,11 @@ export function useUploadMutation(baseOptions) {
1721
1742
  const options = { ...defaultOptions, ...baseOptions };
1722
1743
  return Apollo.useMutation(UploadDocument, options);
1723
1744
  }
1724
- export const GetRecordFormElementsValuesDocument = gql `
1725
- query GET_RECORD_FORM_ELEMENTS_VALUES($recordId: String, $libraryId: String!, $formId: String!, $version: [ValueVersionInput!], $elementIds: [ID!]) {
1726
- getRecordFormElementsValues(
1727
- recordId: $recordId
1728
- libraryId: $libraryId
1729
- formId: $formId
1730
- version: $version
1731
- elementIds: $elementIds
1732
- ) {
1733
- ...RecordFormElementValues
1734
- }
1735
- }
1736
- ${RecordFormElementValuesFragmentDoc}`;
1737
- /**
1738
- * __useGetRecordFormElementsValuesQuery__
1739
- *
1740
- * To run a query within a React component, call `useGetRecordFormElementsValuesQuery` and pass it any options that fit your needs.
1741
- * When your component renders, `useGetRecordFormElementsValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
1742
- * you can use to render your UI.
1743
- *
1744
- * @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;
1745
- *
1746
- * @example
1747
- * const { data, loading, error } = useGetRecordFormElementsValuesQuery({
1748
- * variables: {
1749
- * recordId: // value for 'recordId'
1750
- * libraryId: // value for 'libraryId'
1751
- * formId: // value for 'formId'
1752
- * version: // value for 'version'
1753
- * elementIds: // value for 'elementIds'
1754
- * },
1755
- * });
1756
- */
1757
- export function useGetRecordFormElementsValuesQuery(baseOptions) {
1758
- const options = { ...defaultOptions, ...baseOptions };
1759
- return Apollo.useQuery(GetRecordFormElementsValuesDocument, options);
1760
- }
1761
- export function useGetRecordFormElementsValuesLazyQuery(baseOptions) {
1762
- const options = { ...defaultOptions, ...baseOptions };
1763
- return Apollo.useLazyQuery(GetRecordFormElementsValuesDocument, options);
1764
- }
1765
- export function useGetRecordFormElementsValuesSuspenseQuery(baseOptions) {
1766
- const options = { ...defaultOptions, ...baseOptions };
1767
- return Apollo.useSuspenseQuery(GetRecordFormElementsValuesDocument, options);
1768
- }
1769
1745
  export const ImportExcelDocument = gql `
1770
1746
  mutation IMPORT_EXCEL($file: Upload!, $sheets: [SheetInput], $startAt: Int) {
1771
- importExcel(file: $file, sheets: $sheets, startAt: $startAt)
1772
- }
1773
- `;
1747
+ importExcel(file: $file, sheets: $sheets, startAt: $startAt)
1748
+ }
1749
+ `;
1774
1750
  /**
1775
1751
  * __useImportExcelMutation__
1776
1752
  *
@@ -1796,11 +1772,11 @@ export function useImportExcelMutation(baseOptions) {
1796
1772
  }
1797
1773
  export const CheckLibraryExistenceDocument = gql `
1798
1774
  query CHECK_LIBRARY_EXISTENCE($id: [ID!]) {
1799
- libraries(filters: {id: $id}) {
1800
- totalCount
1801
- }
1802
- }
1803
- `;
1775
+ libraries(filters: {id: $id}) {
1776
+ totalCount
1777
+ }
1778
+ }
1779
+ `;
1804
1780
  /**
1805
1781
  * __useCheckLibraryExistenceQuery__
1806
1782
  *
@@ -1831,11 +1807,11 @@ export function useCheckLibraryExistenceSuspenseQuery(baseOptions) {
1831
1807
  }
1832
1808
  export const DeleteLibraryDocument = gql `
1833
1809
  mutation DELETE_LIBRARY($id: ID) {
1834
- deleteLibrary(id: $id) {
1835
- id
1836
- }
1837
- }
1838
- `;
1810
+ deleteLibrary(id: $id) {
1811
+ id
1812
+ }
1813
+ }
1814
+ `;
1839
1815
  /**
1840
1816
  * __useDeleteLibraryMutation__
1841
1817
  *
@@ -1859,13 +1835,13 @@ export function useDeleteLibraryMutation(baseOptions) {
1859
1835
  }
1860
1836
  export const GetLibrariesDocument = gql `
1861
1837
  query GET_LIBRARIES {
1862
- libraries {
1863
- list {
1864
- ...LibraryLight
1865
- }
1866
- }
1838
+ libraries {
1839
+ list {
1840
+ ...LibraryLight
1867
1841
  }
1868
- ${LibraryLightFragmentDoc}`;
1842
+ }
1843
+ }
1844
+ ${LibraryLightFragmentDoc}`;
1869
1845
  /**
1870
1846
  * __useGetLibrariesQuery__
1871
1847
  *
@@ -1895,13 +1871,13 @@ export function useGetLibrariesSuspenseQuery(baseOptions) {
1895
1871
  }
1896
1872
  export const GetLibraryByIdDocument = gql `
1897
1873
  query GET_LIBRARY_BY_ID($id: [ID!]) {
1898
- libraries(filters: {id: $id}) {
1899
- list {
1900
- ...LibraryDetails
1901
- }
1902
- }
1874
+ libraries(filters: {id: $id}) {
1875
+ list {
1876
+ ...LibraryDetails
1903
1877
  }
1904
- ${LibraryDetailsFragmentDoc}`;
1878
+ }
1879
+ }
1880
+ ${LibraryDetailsFragmentDoc}`;
1905
1881
  /**
1906
1882
  * __useGetLibraryByIdQuery__
1907
1883
  *
@@ -1932,19 +1908,19 @@ export function useGetLibraryByIdSuspenseQuery(baseOptions) {
1932
1908
  }
1933
1909
  export const GetLibraryPermissionsDocument = gql `
1934
1910
  query GET_LIBRARY_PERMISSIONS($libraryId: [ID!]) {
1935
- libraries(filters: {id: $libraryId}) {
1936
- list {
1937
- permissions {
1938
- access_library
1939
- access_record
1940
- create_record
1941
- edit_record
1942
- delete_record
1943
- }
1944
- }
1945
- }
1911
+ libraries(filters: {id: $libraryId}) {
1912
+ list {
1913
+ permissions {
1914
+ access_library
1915
+ access_record
1916
+ create_record
1917
+ edit_record
1918
+ delete_record
1919
+ }
1946
1920
  }
1947
- `;
1921
+ }
1922
+ }
1923
+ `;
1948
1924
  /**
1949
1925
  * __useGetLibraryPermissionsQuery__
1950
1926
  *
@@ -1975,28 +1951,28 @@ export function useGetLibraryPermissionsSuspenseQuery(baseOptions) {
1975
1951
  }
1976
1952
  export const GetLibraryPreviewsSettingsDocument = gql `
1977
1953
  query GET_LIBRARY_PREVIEWS_SETTINGS($id: ID!) {
1978
- libraries(filters: {id: [$id]}) {
1979
- list {
1980
- id
1981
- label
1982
- behavior
1983
- previewsSettings {
1984
- description
1985
- label
1986
- system
1987
- versions {
1988
- background
1989
- density
1990
- sizes {
1991
- name
1992
- size
1993
- }
1994
- }
1995
- }
1996
- }
1954
+ libraries(filters: {id: [$id]}) {
1955
+ list {
1956
+ id
1957
+ label
1958
+ behavior
1959
+ previewsSettings {
1960
+ description
1961
+ label
1962
+ system
1963
+ versions {
1964
+ background
1965
+ density
1966
+ sizes {
1967
+ name
1968
+ size
1969
+ }
1997
1970
  }
1971
+ }
1998
1972
  }
1999
- `;
1973
+ }
1974
+ }
1975
+ `;
2000
1976
  /**
2001
1977
  * __useGetLibraryPreviewsSettingsQuery__
2002
1978
  *
@@ -2027,11 +2003,11 @@ export function useGetLibraryPreviewsSettingsSuspenseQuery(baseOptions) {
2027
2003
  }
2028
2004
  export const SaveLibraryDocument = gql `
2029
2005
  mutation saveLibrary($library: LibraryInput!) {
2030
- saveLibrary(library: $library) {
2031
- ...LibraryDetails
2032
- }
2033
- }
2034
- ${LibraryDetailsFragmentDoc}`;
2006
+ saveLibrary(library: $library) {
2007
+ ...LibraryDetails
2008
+ }
2009
+ }
2010
+ ${LibraryDetailsFragmentDoc}`;
2035
2011
  /**
2036
2012
  * __useSaveLibraryMutation__
2037
2013
  *
@@ -2055,12 +2031,12 @@ export function useSaveLibraryMutation(baseOptions) {
2055
2031
  }
2056
2032
  export const IsAllowedDocument = gql `
2057
2033
  query IS_ALLOWED($type: PermissionTypes!, $actions: [PermissionsActions!]!, $applyTo: ID, $target: PermissionTarget) {
2058
- isAllowed(type: $type, actions: $actions, applyTo: $applyTo, target: $target) {
2059
- name
2060
- allowed
2061
- }
2062
- }
2063
- `;
2034
+ isAllowed(type: $type, actions: $actions, applyTo: $applyTo, target: $target) {
2035
+ name
2036
+ allowed
2037
+ }
2038
+ }
2039
+ `;
2064
2040
  /**
2065
2041
  * __useIsAllowedQuery__
2066
2042
  *
@@ -2094,16 +2070,16 @@ export function useIsAllowedSuspenseQuery(baseOptions) {
2094
2070
  }
2095
2071
  export const ActivateRecordsDocument = gql `
2096
2072
  mutation ACTIVATE_RECORDS($libraryId: String!, $recordsIds: [String!], $filters: [RecordFilterInput!]) {
2097
- activateRecords(
2098
- recordsIds: $recordsIds
2099
- filters: $filters
2100
- libraryId: $libraryId
2101
- ) {
2102
- id
2103
- ...RecordIdentity
2104
- }
2105
- }
2106
- ${RecordIdentityFragmentDoc}`;
2073
+ activateRecords(
2074
+ recordsIds: $recordsIds
2075
+ filters: $filters
2076
+ libraryId: $libraryId
2077
+ ) {
2078
+ id
2079
+ ...RecordIdentity
2080
+ }
2081
+ }
2082
+ ${RecordIdentityFragmentDoc}`;
2107
2083
  /**
2108
2084
  * __useActivateRecordsMutation__
2109
2085
  *
@@ -2127,21 +2103,57 @@ export function useActivateRecordsMutation(baseOptions) {
2127
2103
  const options = { ...defaultOptions, ...baseOptions };
2128
2104
  return Apollo.useMutation(ActivateRecordsDocument, options);
2129
2105
  }
2106
+ export const CreateEmptyRecordDocument = gql `
2107
+ mutation createEmptyRecord($library: ID!) {
2108
+ createEmptyRecord(library: $library) {
2109
+ record {
2110
+ ...RecordIdentity
2111
+ }
2112
+ valuesErrors {
2113
+ type
2114
+ attribute
2115
+ input
2116
+ message
2117
+ }
2118
+ }
2119
+ }
2120
+ ${RecordIdentityFragmentDoc}`;
2121
+ /**
2122
+ * __useCreateEmptyRecordMutation__
2123
+ *
2124
+ * To run a mutation, you first call `useCreateEmptyRecordMutation` within a React component and pass it any options that fit your needs.
2125
+ * When your component renders, `useCreateEmptyRecordMutation` returns a tuple that includes:
2126
+ * - A mutate function that you can call at any time to execute the mutation
2127
+ * - An object with fields that represent the current status of the mutation's execution
2128
+ *
2129
+ * @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;
2130
+ *
2131
+ * @example
2132
+ * const [createEmptyRecordMutation, { data, loading, error }] = useCreateEmptyRecordMutation({
2133
+ * variables: {
2134
+ * library: // value for 'library'
2135
+ * },
2136
+ * });
2137
+ */
2138
+ export function useCreateEmptyRecordMutation(baseOptions) {
2139
+ const options = { ...defaultOptions, ...baseOptions };
2140
+ return Apollo.useMutation(CreateEmptyRecordDocument, options);
2141
+ }
2130
2142
  export const CreateRecordDocument = gql `
2131
2143
  mutation CREATE_RECORD($library: ID!, $data: CreateRecordDataInput) {
2132
- createRecord(library: $library, data: $data) {
2133
- record {
2134
- ...RecordIdentity
2135
- }
2136
- valuesErrors {
2137
- type
2138
- attribute
2139
- input
2140
- message
2141
- }
2142
- }
2144
+ createRecord(library: $library, data: $data) {
2145
+ record {
2146
+ ...RecordIdentity
2143
2147
  }
2144
- ${RecordIdentityFragmentDoc}`;
2148
+ valuesErrors {
2149
+ type
2150
+ attribute
2151
+ input
2152
+ message
2153
+ }
2154
+ }
2155
+ }
2156
+ ${RecordIdentityFragmentDoc}`;
2145
2157
  /**
2146
2158
  * __useCreateRecordMutation__
2147
2159
  *
@@ -2166,16 +2178,16 @@ export function useCreateRecordMutation(baseOptions) {
2166
2178
  }
2167
2179
  export const DeactivateRecordsDocument = gql `
2168
2180
  mutation DEACTIVATE_RECORDS($libraryId: String!, $recordsIds: [String!], $filters: [RecordFilterInput!]) {
2169
- deactivateRecords(
2170
- recordsIds: $recordsIds
2171
- filters: $filters
2172
- libraryId: $libraryId
2173
- ) {
2174
- id
2175
- ...RecordIdentity
2176
- }
2177
- }
2178
- ${RecordIdentityFragmentDoc}`;
2181
+ deactivateRecords(
2182
+ recordsIds: $recordsIds
2183
+ filters: $filters
2184
+ libraryId: $libraryId
2185
+ ) {
2186
+ id
2187
+ ...RecordIdentity
2188
+ }
2189
+ }
2190
+ ${RecordIdentityFragmentDoc}`;
2179
2191
  /**
2180
2192
  * __useDeactivateRecordsMutation__
2181
2193
  *
@@ -2201,13 +2213,13 @@ export function useDeactivateRecordsMutation(baseOptions) {
2201
2213
  }
2202
2214
  export const DoesFileExistAsChildDocument = gql `
2203
2215
  query DOES_FILE_EXIST_AS_CHILD($parentNode: ID, $treeId: ID!, $filename: String!) {
2204
- doesFileExistAsChild(
2205
- parentNode: $parentNode
2206
- treeId: $treeId
2207
- filename: $filename
2208
- )
2209
- }
2210
- `;
2216
+ doesFileExistAsChild(
2217
+ parentNode: $parentNode
2218
+ treeId: $treeId
2219
+ filename: $filename
2220
+ )
2221
+ }
2222
+ `;
2211
2223
  /**
2212
2224
  * __useDoesFileExistAsChildQuery__
2213
2225
  *
@@ -2240,58 +2252,58 @@ export function useDoesFileExistAsChildSuspenseQuery(baseOptions) {
2240
2252
  }
2241
2253
  export const GetFileDataDocument = gql `
2242
2254
  query GET_FILE_DATA($library: ID!, $fileId: String!, $previewsStatusAttribute: ID!) {
2243
- records(
2244
- library: $library
2245
- filters: [{field: "id", value: $fileId, condition: EQUAL}]
2246
- ) {
2247
- list {
2248
- ...RecordIdentity
2249
- created_at: property(attribute: "created_at") {
2250
- ... on Value {
2251
- value
2252
- }
2253
- }
2254
- created_by: property(attribute: "created_by") {
2255
- ... on LinkValue {
2256
- value {
2257
- ...RecordIdentity
2258
- }
2259
- }
2260
- }
2261
- modified_at: property(attribute: "modified_at") {
2262
- ... on Value {
2263
- value
2264
- }
2265
- }
2266
- modified_by: property(attribute: "modified_by") {
2267
- ... on LinkValue {
2268
- value {
2269
- ...RecordIdentity
2270
- }
2271
- }
2272
- }
2273
- file_name: property(attribute: "file_name") {
2274
- ... on Value {
2275
- value
2276
- }
2277
- }
2278
- file_path: property(attribute: "file_path") {
2279
- ... on Value {
2280
- value
2281
- }
2282
- }
2283
- previews_status: property(attribute: $previewsStatusAttribute) {
2284
- ... on Value {
2285
- value
2286
- }
2287
- }
2288
- library {
2289
- behavior
2290
- }
2291
- }
2255
+ records(
2256
+ library: $library
2257
+ filters: [{field: "id", value: $fileId, condition: EQUAL}]
2258
+ ) {
2259
+ list {
2260
+ ...RecordIdentity
2261
+ created_at: property(attribute: "created_at") {
2262
+ ... on Value {
2263
+ value
2264
+ }
2265
+ }
2266
+ created_by: property(attribute: "created_by") {
2267
+ ... on LinkValue {
2268
+ value {
2269
+ ...RecordIdentity
2270
+ }
2292
2271
  }
2272
+ }
2273
+ modified_at: property(attribute: "modified_at") {
2274
+ ... on Value {
2275
+ value
2276
+ }
2277
+ }
2278
+ modified_by: property(attribute: "modified_by") {
2279
+ ... on LinkValue {
2280
+ value {
2281
+ ...RecordIdentity
2282
+ }
2283
+ }
2284
+ }
2285
+ file_name: property(attribute: "file_name") {
2286
+ ... on Value {
2287
+ value
2288
+ }
2289
+ }
2290
+ file_path: property(attribute: "file_path") {
2291
+ ... on Value {
2292
+ value
2293
+ }
2294
+ }
2295
+ previews_status: property(attribute: $previewsStatusAttribute) {
2296
+ ... on Value {
2297
+ value
2298
+ }
2299
+ }
2300
+ library {
2301
+ behavior
2302
+ }
2293
2303
  }
2294
- ${RecordIdentityFragmentDoc}`;
2304
+ }
2305
+ }
2306
+ ${RecordIdentityFragmentDoc}`;
2295
2307
  /**
2296
2308
  * __useGetFileDataQuery__
2297
2309
  *
@@ -2324,30 +2336,30 @@ export function useGetFileDataSuspenseQuery(baseOptions) {
2324
2336
  }
2325
2337
  export const RecordFormDocument = gql `
2326
2338
  query RECORD_FORM($libraryId: String!, $formId: String!, $recordId: String, $version: [ValueVersionInput!]) {
2327
- recordForm(
2328
- recordId: $recordId
2329
- libraryId: $libraryId
2330
- formId: $formId
2331
- version: $version
2332
- ) {
2333
- id
2334
- recordId
2335
- library {
2336
- id
2337
- }
2338
- dependencyAttributes {
2339
- id
2340
- }
2341
- elements {
2342
- ...RecordFormElement
2343
- }
2344
- sidePanel {
2345
- enable
2346
- isOpenByDefault
2347
- }
2348
- }
2339
+ recordForm(
2340
+ recordId: $recordId
2341
+ libraryId: $libraryId
2342
+ formId: $formId
2343
+ version: $version
2344
+ ) {
2345
+ id
2346
+ recordId
2347
+ library {
2348
+ id
2349
2349
  }
2350
- ${RecordFormElementFragmentDoc}`;
2350
+ dependencyAttributes {
2351
+ id
2352
+ }
2353
+ elements {
2354
+ ...RecordFormElement
2355
+ }
2356
+ sidePanel {
2357
+ enable
2358
+ isOpenByDefault
2359
+ }
2360
+ }
2361
+ }
2362
+ ${RecordFormElementFragmentDoc}`;
2351
2363
  /**
2352
2364
  * __useRecordFormQuery__
2353
2365
  *
@@ -2381,25 +2393,25 @@ export function useRecordFormSuspenseQuery(baseOptions) {
2381
2393
  }
2382
2394
  export const RecordUpdateDocument = gql `
2383
2395
  subscription RECORD_UPDATE($filters: RecordUpdateFilterInput) {
2384
- recordUpdate(filters: $filters) {
2385
- record {
2386
- ...RecordIdentity
2387
- modified_by: property(attribute: "modified_by") {
2388
- ... on LinkValue {
2389
- value {
2390
- ...RecordIdentity
2391
- }
2392
- }
2393
- }
2394
- }
2395
- updatedValues {
2396
- attribute
2397
- value {
2398
- ...ValueDetails
2399
- }
2400
- }
2396
+ recordUpdate(filters: $filters) {
2397
+ record {
2398
+ ...RecordIdentity
2399
+ modified_by: property(attribute: "modified_by") {
2400
+ ... on LinkValue {
2401
+ value {
2402
+ ...RecordIdentity
2403
+ }
2401
2404
  }
2405
+ }
2402
2406
  }
2407
+ updatedValues {
2408
+ attribute
2409
+ value {
2410
+ ...ValueDetails
2411
+ }
2412
+ }
2413
+ }
2414
+ }
2403
2415
  ${RecordIdentityFragmentDoc}
2404
2416
  ${ValueDetailsFragmentDoc}`;
2405
2417
  /**
@@ -2424,14 +2436,14 @@ export function useRecordUpdateSubscription(baseOptions) {
2424
2436
  }
2425
2437
  export const GetRecordsFromLibraryDocument = gql `
2426
2438
  query getRecordsFromLibrary($libraryId: ID!, $pagination: RecordsPagination, $filters: [RecordFilterInput]) {
2427
- records(library: $libraryId, filters: $filters, pagination: $pagination) {
2428
- totalCount
2429
- list {
2430
- ...RecordIdentity
2431
- }
2432
- }
2439
+ records(library: $libraryId, filters: $filters, pagination: $pagination) {
2440
+ totalCount
2441
+ list {
2442
+ ...RecordIdentity
2433
2443
  }
2434
- ${RecordIdentityFragmentDoc}`;
2444
+ }
2445
+ }
2446
+ ${RecordIdentityFragmentDoc}`;
2435
2447
  /**
2436
2448
  * __useGetRecordsFromLibraryQuery__
2437
2449
  *
@@ -2464,9 +2476,9 @@ export function useGetRecordsFromLibrarySuspenseQuery(baseOptions) {
2464
2476
  }
2465
2477
  export const IndexRecordsDocument = gql `
2466
2478
  mutation INDEX_RECORDS($libraryId: String!, $records: [String!]) {
2467
- indexRecords(libraryId: $libraryId, records: $records)
2468
- }
2469
- `;
2479
+ indexRecords(libraryId: $libraryId, records: $records)
2480
+ }
2481
+ `;
2470
2482
  /**
2471
2483
  * __useIndexRecordsMutation__
2472
2484
  *
@@ -2491,9 +2503,9 @@ export function useIndexRecordsMutation(baseOptions) {
2491
2503
  }
2492
2504
  export const CancelTaskDocument = gql `
2493
2505
  mutation CANCEL_TASK($taskId: ID!) {
2494
- cancelTask(taskId: $taskId)
2495
- }
2496
- `;
2506
+ cancelTask(taskId: $taskId)
2507
+ }
2508
+ `;
2497
2509
  /**
2498
2510
  * __useCancelTaskMutation__
2499
2511
  *
@@ -2517,11 +2529,11 @@ export function useCancelTaskMutation(baseOptions) {
2517
2529
  }
2518
2530
  export const CheckTreeExistenceDocument = gql `
2519
2531
  query CHECK_TREE_EXISTENCE($id: [ID!]) {
2520
- trees(filters: {id: $id}) {
2521
- totalCount
2522
- }
2523
- }
2524
- `;
2532
+ trees(filters: {id: $id}) {
2533
+ totalCount
2534
+ }
2535
+ }
2536
+ `;
2525
2537
  /**
2526
2538
  * __useCheckTreeExistenceQuery__
2527
2539
  *
@@ -2552,11 +2564,11 @@ export function useCheckTreeExistenceSuspenseQuery(baseOptions) {
2552
2564
  }
2553
2565
  export const DeleteTreeDocument = gql `
2554
2566
  mutation DELETE_TREE($id: ID!) {
2555
- deleteTree(id: $id) {
2556
- id
2557
- }
2558
- }
2559
- `;
2567
+ deleteTree(id: $id) {
2568
+ id
2569
+ }
2570
+ }
2571
+ `;
2560
2572
  /**
2561
2573
  * __useDeleteTreeMutation__
2562
2574
  *
@@ -2580,13 +2592,13 @@ export function useDeleteTreeMutation(baseOptions) {
2580
2592
  }
2581
2593
  export const GetTreeByIdDocument = gql `
2582
2594
  query GET_TREE_BY_ID($id: [ID!]) {
2583
- trees(filters: {id: $id}) {
2584
- list {
2585
- ...TreeDetails
2586
- }
2587
- }
2595
+ trees(filters: {id: $id}) {
2596
+ list {
2597
+ ...TreeDetails
2588
2598
  }
2589
- ${TreeDetailsFragmentDoc}`;
2599
+ }
2600
+ }
2601
+ ${TreeDetailsFragmentDoc}`;
2590
2602
  /**
2591
2603
  * __useGetTreeByIdQuery__
2592
2604
  *
@@ -2617,29 +2629,29 @@ export function useGetTreeByIdSuspenseQuery(baseOptions) {
2617
2629
  }
2618
2630
  export const GetTreeLibrariesDocument = gql `
2619
2631
  query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) {
2620
- trees(filters: {id: $treeId, library: $library}) {
2621
- totalCount
2622
- list {
2623
- id
2624
- behavior
2625
- system
2626
- libraries {
2627
- library {
2628
- id
2629
- label
2630
- behavior
2631
- system
2632
- }
2633
- settings {
2634
- allowMultiplePositions
2635
- allowedChildren
2636
- allowedAtRoot
2637
- }
2638
- }
2639
- }
2632
+ trees(filters: {id: $treeId, library: $library}) {
2633
+ totalCount
2634
+ list {
2635
+ id
2636
+ behavior
2637
+ system
2638
+ libraries {
2639
+ library {
2640
+ id
2641
+ label
2642
+ behavior
2643
+ system
2640
2644
  }
2645
+ settings {
2646
+ allowMultiplePositions
2647
+ allowedChildren
2648
+ allowedAtRoot
2649
+ }
2650
+ }
2641
2651
  }
2642
- `;
2652
+ }
2653
+ }
2654
+ `;
2643
2655
  /**
2644
2656
  * __useGetTreeLibrariesQuery__
2645
2657
  *
@@ -2671,13 +2683,13 @@ export function useGetTreeLibrariesSuspenseQuery(baseOptions) {
2671
2683
  }
2672
2684
  export const GetTreesDocument = gql `
2673
2685
  query GET_TREES {
2674
- trees {
2675
- list {
2676
- ...TreeLight
2677
- }
2678
- }
2686
+ trees {
2687
+ list {
2688
+ ...TreeLight
2679
2689
  }
2680
- ${TreeLightFragmentDoc}`;
2690
+ }
2691
+ }
2692
+ ${TreeLightFragmentDoc}`;
2681
2693
  /**
2682
2694
  * __useGetTreesQuery__
2683
2695
  *
@@ -2707,11 +2719,11 @@ export function useGetTreesSuspenseQuery(baseOptions) {
2707
2719
  }
2708
2720
  export const SaveTreeDocument = gql `
2709
2721
  mutation SAVE_TREE($tree: TreeInput!) {
2710
- saveTree(tree: $tree) {
2711
- ...TreeDetails
2712
- }
2713
- }
2714
- ${TreeDetailsFragmentDoc}`;
2722
+ saveTree(tree: $tree) {
2723
+ ...TreeDetails
2724
+ }
2725
+ }
2726
+ ${TreeDetailsFragmentDoc}`;
2715
2727
  /**
2716
2728
  * __useSaveTreeMutation__
2717
2729
  *
@@ -2735,19 +2747,19 @@ export function useSaveTreeMutation(baseOptions) {
2735
2747
  }
2736
2748
  export const TreeNodeChildrenDocument = gql `
2737
2749
  query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination, $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput) {
2738
- treeNodeChildren(
2739
- treeId: $treeId
2740
- node: $node
2741
- pagination: $pagination
2742
- childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
2743
- ) {
2744
- totalCount
2745
- list {
2746
- ...TreeNodeChild
2747
- }
2748
- }
2750
+ treeNodeChildren(
2751
+ treeId: $treeId
2752
+ node: $node
2753
+ pagination: $pagination
2754
+ childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
2755
+ ) {
2756
+ totalCount
2757
+ list {
2758
+ ...TreeNodeChild
2749
2759
  }
2750
- ${TreeNodeChildFragmentDoc}`;
2760
+ }
2761
+ }
2762
+ ${TreeNodeChildFragmentDoc}`;
2751
2763
  /**
2752
2764
  * __useTreeNodeChildrenQuery__
2753
2765
  *
@@ -2781,12 +2793,12 @@ export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
2781
2793
  }
2782
2794
  export const GetUserDataDocument = gql `
2783
2795
  query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
2784
- userData(keys: $keys, global: $global) {
2785
- global
2786
- data
2787
- }
2788
- }
2789
- `;
2796
+ userData(keys: $keys, global: $global) {
2797
+ global
2798
+ data
2799
+ }
2800
+ }
2801
+ `;
2790
2802
  /**
2791
2803
  * __useGetUserDataQuery__
2792
2804
  *
@@ -2818,12 +2830,12 @@ export function useGetUserDataSuspenseQuery(baseOptions) {
2818
2830
  }
2819
2831
  export const SaveUserDataDocument = gql `
2820
2832
  mutation SAVE_USER_DATA($key: String!, $value: Any, $global: Boolean!) {
2821
- saveUserData(key: $key, value: $value, global: $global) {
2822
- global
2823
- data
2824
- }
2825
- }
2826
- `;
2833
+ saveUserData(key: $key, value: $value, global: $global) {
2834
+ global
2835
+ data
2836
+ }
2837
+ }
2838
+ `;
2827
2839
  /**
2828
2840
  * __useSaveUserDataMutation__
2829
2841
  *
@@ -2849,16 +2861,16 @@ export function useSaveUserDataMutation(baseOptions) {
2849
2861
  }
2850
2862
  export const DeleteValueDocument = gql `
2851
2863
  mutation DELETE_VALUE($library: ID!, $recordId: ID!, $attribute: ID!, $value: ValueInput) {
2852
- deleteValue(
2853
- library: $library
2854
- recordId: $recordId
2855
- attribute: $attribute
2856
- value: $value
2857
- ) {
2858
- ...ValueDetails
2859
- }
2860
- }
2861
- ${ValueDetailsFragmentDoc}`;
2864
+ deleteValue(
2865
+ library: $library
2866
+ recordId: $recordId
2867
+ attribute: $attribute
2868
+ value: $value
2869
+ ) {
2870
+ ...ValueDetails
2871
+ }
2872
+ }
2873
+ ${ValueDetailsFragmentDoc}`;
2862
2874
  /**
2863
2875
  * __useDeleteValueMutation__
2864
2876
  *
@@ -2883,68 +2895,27 @@ export function useDeleteValueMutation(baseOptions) {
2883
2895
  const options = { ...defaultOptions, ...baseOptions };
2884
2896
  return Apollo.useMutation(DeleteValueDocument, options);
2885
2897
  }
2886
- export const RunActionsListAndFormatOnValueDocument = gql `
2887
- query RUN_ACTIONS_LIST_AND_FORMAT_ON_VALUE($library: ID!, $value: ValueBatchInput, $version: [ValueVersionInput]) {
2888
- runActionsListAndFormatOnValue(
2889
- library: $library
2890
- value: $value
2891
- version: $version
2892
- ) {
2893
- ...ValueDetails
2894
- }
2895
- }
2896
- ${ValueDetailsFragmentDoc}`;
2897
- /**
2898
- * __useRunActionsListAndFormatOnValueQuery__
2899
- *
2900
- * To run a query within a React component, call `useRunActionsListAndFormatOnValueQuery` and pass it any options that fit your needs.
2901
- * When your component renders, `useRunActionsListAndFormatOnValueQuery` returns an object from Apollo Client that contains loading, error, and data properties
2902
- * you can use to render your UI.
2903
- *
2904
- * @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;
2905
- *
2906
- * @example
2907
- * const { data, loading, error } = useRunActionsListAndFormatOnValueQuery({
2908
- * variables: {
2909
- * library: // value for 'library'
2910
- * value: // value for 'value'
2911
- * version: // value for 'version'
2912
- * },
2913
- * });
2914
- */
2915
- export function useRunActionsListAndFormatOnValueQuery(baseOptions) {
2916
- const options = { ...defaultOptions, ...baseOptions };
2917
- return Apollo.useQuery(RunActionsListAndFormatOnValueDocument, options);
2918
- }
2919
- export function useRunActionsListAndFormatOnValueLazyQuery(baseOptions) {
2920
- const options = { ...defaultOptions, ...baseOptions };
2921
- return Apollo.useLazyQuery(RunActionsListAndFormatOnValueDocument, options);
2922
- }
2923
- export function useRunActionsListAndFormatOnValueSuspenseQuery(baseOptions) {
2924
- const options = { ...defaultOptions, ...baseOptions };
2925
- return Apollo.useSuspenseQuery(RunActionsListAndFormatOnValueDocument, options);
2926
- }
2927
2898
  export const SaveValueBatchDocument = gql `
2928
2899
  mutation SAVE_VALUE_BATCH($library: ID!, $recordId: ID!, $version: [ValueVersionInput!], $values: [ValueBatchInput!]!, $deleteEmpty: Boolean) {
2929
- saveValueBatch(
2930
- library: $library
2931
- recordId: $recordId
2932
- version: $version
2933
- values: $values
2934
- deleteEmpty: $deleteEmpty
2935
- ) {
2936
- values {
2937
- ...ValueDetails
2938
- }
2939
- errors {
2940
- type
2941
- attribute
2942
- input
2943
- message
2944
- }
2945
- }
2946
- }
2947
- ${ValueDetailsFragmentDoc}`;
2900
+ saveValueBatch(
2901
+ library: $library
2902
+ recordId: $recordId
2903
+ version: $version
2904
+ values: $values
2905
+ deleteEmpty: $deleteEmpty
2906
+ ) {
2907
+ values {
2908
+ ...ValueDetails
2909
+ }
2910
+ errors {
2911
+ type
2912
+ attribute
2913
+ input
2914
+ message
2915
+ }
2916
+ }
2917
+ }
2918
+ ${ValueDetailsFragmentDoc}`;
2948
2919
  /**
2949
2920
  * __useSaveValueBatchMutation__
2950
2921
  *
@@ -2972,12 +2943,12 @@ export function useSaveValueBatchMutation(baseOptions) {
2972
2943
  }
2973
2944
  export const DeleteViewDocument = gql `
2974
2945
  mutation DELETE_VIEW($viewId: String!) {
2975
- deleteView(viewId: $viewId) {
2976
- id
2977
- library
2978
- }
2979
- }
2980
- `;
2946
+ deleteView(viewId: $viewId) {
2947
+ id
2948
+ library
2949
+ }
2950
+ }
2951
+ `;
2981
2952
  /**
2982
2953
  * __useDeleteViewMutation__
2983
2954
  *
@@ -3001,11 +2972,11 @@ export function useDeleteViewMutation(baseOptions) {
3001
2972
  }
3002
2973
  export const GetViewDocument = gql `
3003
2974
  query GET_VIEW($viewId: String!) {
3004
- view(viewId: $viewId) {
3005
- ...ViewDetails
3006
- }
3007
- }
3008
- ${ViewDetailsFragmentDoc}`;
2975
+ view(viewId: $viewId) {
2976
+ ...ViewDetails
2977
+ }
2978
+ }
2979
+ ${ViewDetailsFragmentDoc}`;
3009
2980
  /**
3010
2981
  * __useGetViewQuery__
3011
2982
  *
@@ -3036,14 +3007,14 @@ export function useGetViewSuspenseQuery(baseOptions) {
3036
3007
  }
3037
3008
  export const GetViewsListDocument = gql `
3038
3009
  query GET_VIEWS_LIST($libraryId: String!) {
3039
- views(library: $libraryId) {
3040
- totalCount
3041
- list {
3042
- ...ViewDetails
3043
- }
3044
- }
3010
+ views(library: $libraryId) {
3011
+ totalCount
3012
+ list {
3013
+ ...ViewDetails
3045
3014
  }
3046
- ${ViewDetailsFragmentDoc}`;
3015
+ }
3016
+ }
3017
+ ${ViewDetailsFragmentDoc}`;
3047
3018
  /**
3048
3019
  * __useGetViewsListQuery__
3049
3020
  *
@@ -3074,11 +3045,11 @@ export function useGetViewsListSuspenseQuery(baseOptions) {
3074
3045
  }
3075
3046
  export const SaveViewDocument = gql `
3076
3047
  mutation SAVE_VIEW($view: ViewInput!) {
3077
- saveView(view: $view) {
3078
- ...ViewDetails
3079
- }
3080
- }
3081
- ${ViewDetailsFragmentDoc}`;
3048
+ saveView(view: $view) {
3049
+ ...ViewDetails
3050
+ }
3051
+ }
3052
+ ${ViewDetailsFragmentDoc}`;
3082
3053
  /**
3083
3054
  * __useSaveViewMutation__
3084
3055
  *
@@ -3102,13 +3073,13 @@ export function useSaveViewMutation(baseOptions) {
3102
3073
  }
3103
3074
  export const GetAttributesByLibWithPermissionsDocument = gql `
3104
3075
  query getAttributesByLibWithPermissions($library: String!) {
3105
- attributes(filters: {libraries: [$library]}) {
3106
- list {
3107
- ...AttributesByLibAttributeWithPermissions
3108
- }
3109
- }
3076
+ attributes(filters: {libraries: [$library]}) {
3077
+ list {
3078
+ ...AttributesByLibAttributeWithPermissions
3110
3079
  }
3111
- ${AttributesByLibAttributeWithPermissionsFragmentDoc}`;
3080
+ }
3081
+ }
3082
+ ${AttributesByLibAttributeWithPermissionsFragmentDoc}`;
3112
3083
  /**
3113
3084
  * __useGetAttributesByLibWithPermissionsQuery__
3114
3085
  *
@@ -3139,20 +3110,22 @@ export function useGetAttributesByLibWithPermissionsSuspenseQuery(baseOptions) {
3139
3110
  }
3140
3111
  export const ExplorerAttributesDocument = gql `
3141
3112
  query ExplorerAttributes($ids: [ID!]) {
3142
- attributes(filters: {ids: $ids}) {
3143
- list {
3144
- id
3145
- type
3146
- format
3147
- label
3148
- permissions {
3149
- access_attribute
3150
- }
3151
- ...LinkAttributeDetails
3152
- }
3153
- }
3154
- }
3155
- ${LinkAttributeDetailsFragmentDoc}`;
3113
+ attributes(filters: {ids: $ids}) {
3114
+ list {
3115
+ id
3116
+ type
3117
+ format
3118
+ label
3119
+ permissions {
3120
+ access_attribute
3121
+ }
3122
+ ...LinkAttributeDetails
3123
+ ...TreeAttributeDetails
3124
+ }
3125
+ }
3126
+ }
3127
+ ${LinkAttributeDetailsFragmentDoc}
3128
+ ${TreeAttributeDetailsFragmentDoc}`;
3156
3129
  /**
3157
3130
  * __useExplorerAttributesQuery__
3158
3131
  *
@@ -3183,19 +3156,21 @@ export function useExplorerAttributesSuspenseQuery(baseOptions) {
3183
3156
  }
3184
3157
  export const ExplorerLinkAttributeDocument = gql `
3185
3158
  query ExplorerLinkAttribute($id: ID!) {
3186
- attributes(filters: {ids: [$id]}) {
3187
- list {
3188
- id
3189
- multiple_values
3190
- permissions {
3191
- access_attribute
3192
- edit_value
3193
- }
3194
- ...LinkAttributeDetails
3195
- }
3196
- }
3197
- }
3198
- ${LinkAttributeDetailsFragmentDoc}`;
3159
+ attributes(filters: {ids: [$id]}) {
3160
+ list {
3161
+ id
3162
+ multiple_values
3163
+ permissions {
3164
+ access_attribute
3165
+ edit_value
3166
+ }
3167
+ ...LinkAttributeDetails
3168
+ ...TreeAttributeDetails
3169
+ }
3170
+ }
3171
+ }
3172
+ ${LinkAttributeDetailsFragmentDoc}
3173
+ ${TreeAttributeDetailsFragmentDoc}`;
3199
3174
  /**
3200
3175
  * __useExplorerLinkAttributeQuery__
3201
3176
  *
@@ -3226,35 +3201,35 @@ export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
3226
3201
  }
3227
3202
  export const ExplorerLibraryDataDocument = gql `
3228
3203
  query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
3229
- records(
3230
- library: $libraryId
3231
- filters: $filters
3232
- pagination: $pagination
3233
- multipleSort: $multipleSort
3234
- searchQuery: $searchQuery
3235
- ) {
3236
- totalCount
3237
- list {
3238
- ...RecordIdentity
3239
- active
3240
- permissions {
3241
- create_record
3242
- delete_record
3243
- }
3244
- properties(attributeIds: $attributeIds) {
3245
- attributeId
3246
- attributeProperties {
3247
- ...AttributeProperties
3248
- }
3249
- values {
3250
- ...PropertyValue
3251
- }
3252
- }
3253
- }
3204
+ records(
3205
+ library: $libraryId
3206
+ filters: $filters
3207
+ pagination: $pagination
3208
+ multipleSort: $multipleSort
3209
+ searchQuery: $searchQuery
3210
+ ) {
3211
+ totalCount
3212
+ list {
3213
+ ...RecordIdentity
3214
+ active
3215
+ permissions {
3216
+ create_record
3217
+ delete_record
3218
+ }
3219
+ properties(attributeIds: $attributeIds) {
3220
+ attributeId
3221
+ attributeProperties {
3222
+ ...AttributeProperties
3254
3223
  }
3224
+ values {
3225
+ ...PropertyValue
3226
+ }
3227
+ }
3255
3228
  }
3229
+ }
3230
+ }
3256
3231
  ${RecordIdentityFragmentDoc}
3257
- ${AttributePropertiesFragmentDoc}
3232
+ ${AttributePropertiesFragmentDoc}
3258
3233
  ${PropertyValueFragmentDoc}`;
3259
3234
  /**
3260
3235
  * __useExplorerLibraryDataQuery__
@@ -3291,25 +3266,26 @@ export function useExplorerLibraryDataSuspenseQuery(baseOptions) {
3291
3266
  }
3292
3267
  export const ExplorerLinkDataDocument = gql `
3293
3268
  query ExplorerLinkData($attributeIds: [ID!]!, $parentLibraryId: ID!, $parentRecordId: String, $linkAttributeId: ID!) {
3294
- records(
3295
- library: $parentLibraryId
3296
- filters: [{field: "id", condition: EQUAL, value: $parentRecordId}]
3297
- ) {
3298
- list {
3299
- id
3300
- whoAmI {
3301
- id
3302
- library {
3303
- id
3304
- }
3305
- }
3306
- property(attribute: $linkAttributeId) {
3307
- ...LinkProperty
3308
- }
3309
- }
3269
+ records(
3270
+ library: $parentLibraryId
3271
+ filters: [{field: "id", condition: EQUAL, value: $parentRecordId}]
3272
+ retrieveInactive: true
3273
+ ) {
3274
+ list {
3275
+ id
3276
+ whoAmI {
3277
+ id
3278
+ library {
3279
+ id
3310
3280
  }
3281
+ }
3282
+ property(attribute: $linkAttributeId) {
3283
+ ...LinkProperty
3284
+ }
3311
3285
  }
3312
- ${LinkPropertyFragmentDoc}`;
3286
+ }
3287
+ }
3288
+ ${LinkPropertyFragmentDoc}`;
3313
3289
  /**
3314
3290
  * __useExplorerLinkDataQuery__
3315
3291
  *
@@ -3343,16 +3319,16 @@ export function useExplorerLinkDataSuspenseQuery(baseOptions) {
3343
3319
  }
3344
3320
  export const GetLibraryAttributesDocument = gql `
3345
3321
  query GetLibraryAttributes($libraryId: ID!) {
3346
- libraries(filters: {id: [$libraryId]}) {
3347
- list {
3348
- id
3349
- attributes {
3350
- ...LibraryAttribute
3351
- }
3352
- }
3353
- }
3322
+ libraries(filters: {id: [$libraryId]}) {
3323
+ list {
3324
+ id
3325
+ attributes {
3326
+ ...LibraryAttribute
3327
+ }
3354
3328
  }
3355
- ${LibraryAttributeFragmentDoc}`;
3329
+ }
3330
+ }
3331
+ ${LibraryAttributeFragmentDoc}`;
3356
3332
  /**
3357
3333
  * __useGetLibraryAttributesQuery__
3358
3334
  *
@@ -3383,15 +3359,15 @@ export function useGetLibraryAttributesSuspenseQuery(baseOptions) {
3383
3359
  }
3384
3360
  export const ExplorerLibraryDetailsDocument = gql `
3385
3361
  query ExplorerLibraryDetails($libraryId: ID!) {
3386
- libraries(filters: {id: [$libraryId]}) {
3387
- list {
3388
- id
3389
- label
3390
- behavior
3391
- }
3392
- }
3362
+ libraries(filters: {id: [$libraryId]}) {
3363
+ list {
3364
+ id
3365
+ label
3366
+ behavior
3393
3367
  }
3394
- `;
3368
+ }
3369
+ }
3370
+ `;
3395
3371
  /**
3396
3372
  * __useExplorerLibraryDetailsQuery__
3397
3373
  *
@@ -3422,13 +3398,13 @@ export function useExplorerLibraryDetailsSuspenseQuery(baseOptions) {
3422
3398
  }
3423
3399
  export const ExplorerSelectionIdsDocument = gql `
3424
3400
  query ExplorerSelectionIds($libraryId: ID!, $filters: [RecordFilterInput]) {
3425
- records(library: $libraryId, filters: $filters) {
3426
- list {
3427
- id
3428
- }
3429
- }
3401
+ records(library: $libraryId, filters: $filters) {
3402
+ list {
3403
+ id
3430
3404
  }
3431
- `;
3405
+ }
3406
+ }
3407
+ `;
3432
3408
  /**
3433
3409
  * __useExplorerSelectionIdsQuery__
3434
3410
  *
@@ -3460,17 +3436,17 @@ export function useExplorerSelectionIdsSuspenseQuery(baseOptions) {
3460
3436
  }
3461
3437
  export const MeDocument = gql `
3462
3438
  query Me {
3463
- me {
3464
- id
3465
- whoAmI {
3466
- id
3467
- library {
3468
- id
3469
- }
3470
- }
3471
- }
3439
+ me {
3440
+ id
3441
+ whoAmI {
3442
+ id
3443
+ library {
3444
+ id
3445
+ }
3472
3446
  }
3473
- `;
3447
+ }
3448
+ }
3449
+ `;
3474
3450
  /**
3475
3451
  * __useMeQuery__
3476
3452
  *
@@ -3500,11 +3476,11 @@ export function useMeSuspenseQuery(baseOptions) {
3500
3476
  }
3501
3477
  export const UpdateViewDocument = gql `
3502
3478
  mutation UpdateView($view: ViewInputPartial!) {
3503
- updateView(view: $view) {
3504
- ...ViewDetails
3505
- }
3506
- }
3507
- ${ViewDetailsFragmentDoc}`;
3479
+ updateView(view: $view) {
3480
+ ...ViewDetails
3481
+ }
3482
+ }
3483
+ ${ViewDetailsFragmentDoc}`;
3508
3484
  /**
3509
3485
  * __useUpdateViewMutation__
3510
3486
  *
@@ -3526,67 +3502,16 @@ export function useUpdateViewMutation(baseOptions) {
3526
3502
  const options = { ...defaultOptions, ...baseOptions };
3527
3503
  return Apollo.useMutation(UpdateViewDocument, options);
3528
3504
  }
3529
- export const GetJoinLibraryMandatoryAttributeValuesDocument = gql `
3530
- query getJoinLibraryMandatoryAttributeValues($joinLibraryId: ID!, $filters: [RecordFilterInput], $mandatoryAttributeId: ID!) {
3531
- records(library: $joinLibraryId, filters: $filters) {
3532
- list {
3533
- id
3534
- property(attribute: $mandatoryAttributeId) {
3535
- ... on LinkValue {
3536
- payload {
3537
- id
3538
- }
3539
- }
3540
- ... on TreeValue {
3541
- payload {
3542
- id
3543
- }
3544
- }
3545
- }
3546
- }
3547
- }
3548
- }
3549
- `;
3550
- /**
3551
- * __useGetJoinLibraryMandatoryAttributeValuesQuery__
3552
- *
3553
- * To run a query within a React component, call `useGetJoinLibraryMandatoryAttributeValuesQuery` and pass it any options that fit your needs.
3554
- * When your component renders, `useGetJoinLibraryMandatoryAttributeValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
3555
- * you can use to render your UI.
3556
- *
3557
- * @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;
3558
- *
3559
- * @example
3560
- * const { data, loading, error } = useGetJoinLibraryMandatoryAttributeValuesQuery({
3561
- * variables: {
3562
- * joinLibraryId: // value for 'joinLibraryId'
3563
- * filters: // value for 'filters'
3564
- * mandatoryAttributeId: // value for 'mandatoryAttributeId'
3565
- * },
3566
- * });
3567
- */
3568
- export function useGetJoinLibraryMandatoryAttributeValuesQuery(baseOptions) {
3569
- const options = { ...defaultOptions, ...baseOptions };
3570
- return Apollo.useQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
3571
- }
3572
- export function useGetJoinLibraryMandatoryAttributeValuesLazyQuery(baseOptions) {
3573
- const options = { ...defaultOptions, ...baseOptions };
3574
- return Apollo.useLazyQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
3575
- }
3576
- export function useGetJoinLibraryMandatoryAttributeValuesSuspenseQuery(baseOptions) {
3577
- const options = { ...defaultOptions, ...baseOptions };
3578
- return Apollo.useSuspenseQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
3579
- }
3580
3505
  export const TreeDataQueryDocument = gql `
3581
3506
  query TreeDataQuery($treeId: ID!) {
3582
- trees(filters: {id: [$treeId]}) {
3583
- list {
3584
- id
3585
- label
3586
- }
3587
- }
3507
+ trees(filters: {id: [$treeId]}) {
3508
+ list {
3509
+ id
3510
+ label
3588
3511
  }
3589
- `;
3512
+ }
3513
+ }
3514
+ `;
3590
3515
  /**
3591
3516
  * __useTreeDataQueryQuery__
3592
3517
  *