@leav/ui 0.4.0-58529dc → 0.4.0-5a0192c5

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 (166) hide show
  1. package/README.md +1 -0
  2. package/dist/__mocks__/common/form.d.ts +632 -0
  3. package/dist/__mocks__/common/form.js +27 -22
  4. package/dist/__mocks__/common/form.js.map +1 -1
  5. package/dist/_gqlTypes/index.d.ts +3212 -2076
  6. package/dist/_gqlTypes/index.js +1548 -1242
  7. package/dist/_gqlTypes/index.js.map +1 -1
  8. package/dist/_queries/records/getRecordFormQuery.js +10 -5
  9. package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
  10. package/dist/_queries/trees/treeNodeChildrenQuery.js +12 -2
  11. package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
  12. package/dist/components/Explorer/DataView.js +4 -4
  13. package/dist/components/Explorer/DataView.js.map +1 -1
  14. package/dist/components/Explorer/Explorer.d.ts +5 -4
  15. package/dist/components/Explorer/Explorer.js +3 -2
  16. package/dist/components/Explorer/Explorer.js.map +1 -1
  17. package/dist/components/Explorer/ExplorerToolbar.d.ts +2 -1
  18. package/dist/components/Explorer/ExplorerToolbar.js +5 -4
  19. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  20. package/dist/components/Explorer/_queries/useExplorerData.js +2 -2
  21. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  22. package/dist/components/Explorer/_types.d.ts +4 -1
  23. package/dist/components/Explorer/_types.js.map +1 -1
  24. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
  25. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +14 -6
  26. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  27. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +4 -0
  28. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -1
  29. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +2 -2
  30. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
  31. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +2 -1
  32. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  33. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +1 -0
  34. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  35. package/dist/components/Explorer/useViewSettingsReducer.js +6 -2
  36. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  37. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  38. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  39. package/dist/components/LinkSelect/LinkSelect.d.ts +7 -4
  40. package/dist/components/LinkSelect/LinkSelect.js +60 -16
  41. package/dist/components/LinkSelect/LinkSelect.js.map +1 -1
  42. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +59 -27
  43. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  44. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +14 -8
  45. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  46. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +6 -0
  47. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +7 -1
  48. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  49. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +15 -2
  50. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +47 -24
  51. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  52. package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.d.ts +13 -0
  53. package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.js +117 -0
  54. package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.js.map +1 -0
  55. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +12 -0
  56. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +39 -0
  57. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +1 -0
  58. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +2 -2
  59. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +3 -5
  60. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  61. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +25 -5
  62. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
  63. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.d.ts +1 -1
  64. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +1 -3
  65. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
  66. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +11 -10
  67. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  68. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js +2 -2
  69. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js.map +1 -1
  70. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.d.ts +3 -3
  71. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js +234 -48
  72. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js.map +1 -1
  73. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +0 -2
  74. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +63 -72
  75. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  76. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +2 -1
  77. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  78. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -1
  79. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +2 -1
  80. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  81. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +1 -0
  82. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.d.ts +1 -1
  83. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +24 -19
  84. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  85. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.d.ts +2 -1
  86. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +2 -2
  87. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -1
  88. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/{useDisplayTreeNode.d.ts → TreeNodeList.d.ts} +4 -4
  89. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +5 -0
  90. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -0
  91. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.d.ts +16 -4
  92. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +12 -13
  93. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
  94. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +3 -2
  95. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +56 -58
  96. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  97. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +4 -4
  98. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
  99. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +3 -3
  100. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +8 -8
  101. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
  102. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +6 -1
  103. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +5 -1
  104. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  105. package/dist/components/RecordEdition/index.d.ts +1 -0
  106. package/dist/components/RecordEdition/index.js +1 -0
  107. package/dist/components/RecordEdition/index.js.map +1 -1
  108. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.d.ts +2 -1
  109. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +2 -2
  110. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  111. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +5 -3
  112. package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -3
  113. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  114. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +3 -1
  115. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +18 -23
  116. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  117. package/dist/components/SelectTreeNode/_types.d.ts +17 -0
  118. package/dist/components/SelectTreeNode/_types.js +2 -0
  119. package/dist/components/SelectTreeNode/_types.js.map +1 -0
  120. package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.d.ts → SelectTreeNodeModalOld/SelectTreeNodeModalOld.d.ts} +1 -1
  121. package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.js → SelectTreeNodeModalOld/SelectTreeNodeModalOld.js} +4 -2
  122. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -0
  123. package/dist/components/SelectTreeNodeModalOld/index.d.ts +1 -0
  124. package/dist/components/{SelectTreeNodeModal → SelectTreeNodeModalOld}/index.js +1 -1
  125. package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -0
  126. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  127. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  128. package/dist/components/index.d.ts +1 -2
  129. package/dist/components/index.js +1 -2
  130. package/dist/components/index.js.map +1 -1
  131. package/dist/hooks/index.d.ts +2 -0
  132. package/dist/hooks/index.js +2 -0
  133. package/dist/hooks/index.js.map +1 -1
  134. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +2 -1
  135. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +3 -14
  136. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  137. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +3 -1
  138. package/dist/hooks/useIFrameMessenger/messageHandlers.js +13 -2
  139. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
  140. package/dist/hooks/useIFrameMessenger/schema.d.ts +21 -0
  141. package/dist/hooks/useIFrameMessenger/schema.js +76 -0
  142. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -0
  143. package/dist/hooks/useIFrameMessenger/types.d.ts +41 -6
  144. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  145. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +10 -1
  146. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +55 -20
  147. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  148. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.d.ts +7 -0
  149. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +13 -0
  150. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -0
  151. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +13 -0
  152. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js +6 -0
  153. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -0
  154. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +13 -0
  155. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +13 -0
  156. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -0
  157. package/dist/types/attributes.d.ts +2 -1
  158. package/package.json +22 -6
  159. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.d.ts +0 -3
  160. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js +0 -7
  161. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js.map +0 -1
  162. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/useDisplayTreeNode.js +0 -8
  163. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/useDisplayTreeNode.js.map +0 -1
  164. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +0 -1
  165. package/dist/components/SelectTreeNodeModal/index.d.ts +0 -1
  166. package/dist/components/SelectTreeNodeModal/index.js.map +0 -1
@@ -88,17 +88,6 @@ export var FormsSortableFields;
88
88
  FormsSortableFields["library"] = "library";
89
89
  FormsSortableFields["system"] = "system";
90
90
  })(FormsSortableFields || (FormsSortableFields = {}));
91
- export var GenerationStatus;
92
- (function (GenerationStatus) {
93
- GenerationStatus["DONE"] = "DONE";
94
- GenerationStatus["GENERATION_FAILED"] = "GENERATION_FAILED";
95
- GenerationStatus["GENERATION_IN_PROGRESS"] = "GENERATION_IN_PROGRESS";
96
- GenerationStatus["GENERATION_IN_PROGRESS_WITH_FAILURE"] = "GENERATION_IN_PROGRESS_WITH_FAILURE";
97
- GenerationStatus["PREPARATION_FAILED"] = "PREPARATION_FAILED";
98
- GenerationStatus["PREPARATION_IN_PROGRESS"] = "PREPARATION_IN_PROGRESS";
99
- GenerationStatus["TRANSMISSION_FAILED"] = "TRANSMISSION_FAILED";
100
- GenerationStatus["TRANSMISSION_IN_PROGRESS"] = "TRANSMISSION_IN_PROGRESS";
101
- })(GenerationStatus || (GenerationStatus = {}));
102
91
  export var IoTypes;
103
92
  (function (IoTypes) {
104
93
  IoTypes["boolean"] = "boolean";
@@ -152,9 +141,6 @@ export var LogAction;
152
141
  LogAction["PERMISSION_SAVE"] = "PERMISSION_SAVE";
153
142
  LogAction["RECORD_DELETE"] = "RECORD_DELETE";
154
143
  LogAction["RECORD_SAVE"] = "RECORD_SAVE";
155
- LogAction["SDO_LOG_ERROR"] = "SDO_LOG_ERROR";
156
- LogAction["SDO_LOG_EXPORT_RECORD"] = "SDO_LOG_EXPORT_RECORD";
157
- LogAction["SDO_LOG_IMPORT_RECORD"] = "SDO_LOG_IMPORT_RECORD";
158
144
  LogAction["TASKS_DELETE"] = "TASKS_DELETE";
159
145
  LogAction["TREE_ADD_ELEMENT"] = "TREE_ADD_ELEMENT";
160
146
  LogAction["TREE_DELETE"] = "TREE_DELETE";
@@ -282,6 +268,13 @@ export var RecordFilterOperator;
282
268
  RecordFilterOperator["OPEN_BRACKET"] = "OPEN_BRACKET";
283
269
  RecordFilterOperator["OR"] = "OR";
284
270
  })(RecordFilterOperator || (RecordFilterOperator = {}));
271
+ export var RecordPermissionsActions;
272
+ (function (RecordPermissionsActions) {
273
+ RecordPermissionsActions["access_record"] = "access_record";
274
+ RecordPermissionsActions["create_record"] = "create_record";
275
+ RecordPermissionsActions["delete_record"] = "delete_record";
276
+ RecordPermissionsActions["edit_record"] = "edit_record";
277
+ })(RecordPermissionsActions || (RecordPermissionsActions = {}));
285
278
  export var SortOrder;
286
279
  (function (SortOrder) {
287
280
  SortOrder["asc"] = "asc";
@@ -348,696 +341,711 @@ export var ViewTypes;
348
341
  })(ViewTypes || (ViewTypes = {}));
349
342
  export const RecordIdentityFragmentDoc = gql `
350
343
  fragment RecordIdentity on Record {
351
- id
352
- whoAmI {
353
- id
354
- label
355
- subLabel
356
- color
357
- library {
358
- id
359
- label
360
- }
361
- preview
362
- }
363
- }
364
- `;
344
+ id
345
+ whoAmI {
346
+ id
347
+ label
348
+ subLabel
349
+ color
350
+ library {
351
+ id
352
+ label
353
+ }
354
+ preview
355
+ }
356
+ }
357
+ `;
365
358
  export const DetailsApplicationFragmentDoc = gql `
366
359
  fragment DetailsApplication on Application {
367
- id
368
- label
369
- type
370
- description
371
- endpoint
372
- url
373
- color
374
- icon {
375
- ...RecordIdentity
376
- }
377
- module
378
- permissions {
379
- access_application
380
- admin_application
381
- }
382
- settings
383
- }
384
- ${RecordIdentityFragmentDoc}`;
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}`;
385
378
  export const AttributeDetailsFragmentDoc = gql `
386
379
  fragment AttributeDetails on Attribute {
387
- id
388
- type
389
- format
390
- system
391
- readonly
392
- label
393
- description
394
- multiple_values
395
- multi_link_display_option
396
- metadata_fields {
397
- id
398
- label
399
- type
400
- format
401
- }
402
- versions_conf {
403
- versionable
404
- mode
405
- profile {
406
- id
407
- label
408
- trees {
409
380
  id
381
+ type
382
+ format
383
+ system
384
+ readonly
410
385
  label
411
- }
412
- }
413
- }
414
- libraries {
415
- id
416
- label
417
- }
418
- ... on StandardAttribute {
419
- unique
420
- }
421
- ... on LinkAttribute {
422
- linked_library {
423
- id
424
- label
425
- }
426
- reverse_link
427
- }
428
- ... on TreeAttribute {
429
- linked_tree {
430
- id
431
- label
432
- }
433
- }
434
- }
435
- `;
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
+ `;
436
429
  export const AttributesByLibLinkAttributeFragmentDoc = gql `
437
430
  fragment AttributesByLibLinkAttribute on LinkAttribute {
438
- linked_library {
439
- id
440
- }
441
- }
442
- `;
431
+ linked_library {
432
+ id
433
+ }
434
+ }
435
+ `;
443
436
  export const AttributesByLibAttributeFragmentDoc = gql `
444
437
  fragment AttributesByLibAttribute on Attribute {
445
- id
446
- type
447
- format
448
- label
449
- multiple_values
450
- system
451
- readonly
452
- ...AttributesByLibLinkAttribute
453
- ... on TreeAttribute {
454
- linked_tree {
455
- id
456
- label
457
- libraries {
458
- library {
459
- id
460
- label
461
- }
462
- }
463
- }
464
- }
465
- ... on StandardAttribute {
466
- embedded_fields {
467
- id
468
- format
469
- label
470
- }
471
- }
472
- }
473
- ${AttributesByLibLinkAttributeFragmentDoc}`;
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}`;
474
562
  export const LibraryLightFragmentDoc = gql `
475
563
  fragment LibraryLight on Library {
476
- id
477
- label
478
- icon {
479
- id
480
- whoAmI {
481
- id
482
- library {
483
564
  id
484
- }
485
- preview
565
+ label
566
+ icon {
567
+ id
568
+ whoAmI {
569
+ id
570
+ library {
571
+ id
572
+ }
573
+ preview
574
+ }
575
+ }
486
576
  }
487
- }
488
- }
489
- `;
577
+ `;
490
578
  export const LibraryLinkAttributeDetailsFragmentDoc = gql `
491
579
  fragment LibraryLinkAttributeDetails on LinkAttribute {
492
- linked_library {
493
- id
494
- behavior
495
- }
496
- }
497
- `;
580
+ linked_library {
581
+ id
582
+ behavior
583
+ }
584
+ }
585
+ `;
498
586
  export const LibraryAttributesFragmentDoc = gql `
499
587
  fragment LibraryAttributes on Attribute {
500
- id
501
- label
502
- system
503
- type
504
- format
505
- ...LibraryLinkAttributeDetails
506
- }
507
- ${LibraryLinkAttributeDetailsFragmentDoc}`;
588
+ id
589
+ label
590
+ system
591
+ type
592
+ format
593
+ ...LibraryLinkAttributeDetails
594
+ }
595
+ ${LibraryLinkAttributeDetailsFragmentDoc}`;
508
596
  export const LibraryPreviewsSettingsFragmentDoc = gql `
509
597
  fragment LibraryPreviewsSettings on LibraryPreviewsSettings {
510
- label
511
- description
512
- system
513
- versions {
514
- background
515
- density
516
- sizes {
517
- name
518
- size
519
- }
520
- }
521
- }
522
- `;
598
+ label
599
+ description
600
+ system
601
+ versions {
602
+ background
603
+ density
604
+ sizes {
605
+ name
606
+ size
607
+ }
608
+ }
609
+ }
610
+ `;
523
611
  export const LibraryDetailsFragmentDoc = gql `
524
612
  fragment LibraryDetails on Library {
525
- id
526
- label
527
- behavior
528
- system
529
- label
530
- fullTextAttributes {
531
- id
532
- label
533
- }
534
- attributes {
535
- ...LibraryAttributes
536
- }
537
- permissions_conf {
538
- permissionTreeAttributes {
539
- id
540
- ... on TreeAttribute {
541
- linked_tree {
542
- id
543
- }
544
- }
545
- label
546
- }
547
- relation
548
- }
549
- recordIdentityConf {
550
- label
551
- subLabel
552
- color
553
- preview
554
- treeColorPreview
555
- }
556
- permissions {
557
- admin_library
558
- access_library
559
- access_record
560
- create_record
561
- edit_record
562
- delete_record
563
- }
564
- icon {
565
- ...RecordIdentity
566
- }
567
- previewsSettings {
568
- ...LibraryPreviewsSettings
569
- }
570
- }
571
- ${LibraryAttributesFragmentDoc}
572
- ${RecordIdentityFragmentDoc}
573
- ${LibraryPreviewsSettingsFragmentDoc}`;
574
- export const ValuesVersionDetailsFragmentDoc = gql `
575
- fragment ValuesVersionDetails on ValueVersion {
576
- treeId
577
- treeNode {
578
- id
579
- record {
580
- id
581
- whoAmI {
582
613
  id
583
614
  label
584
- library {
585
- id
615
+ behavior
616
+ system
617
+ label
618
+ fullTextAttributes {
619
+ id
620
+ label
586
621
  }
587
- }
588
- }
589
- }
590
- }
591
- `;
592
- export const ValueDetailsFragmentDoc = gql `
593
- fragment ValueDetails on GenericValue {
594
- id_value
595
- isInherited
596
- isCalculated
597
- modified_at
598
- modified_by {
599
- ...RecordIdentity
600
- }
601
- created_at
602
- created_by {
603
- ...RecordIdentity
604
- }
605
- version {
606
- ...ValuesVersionDetails
607
- }
608
- attribute {
609
- id
610
- format
611
- type
612
- system
613
- }
614
- metadata {
615
- name
616
- value {
617
- id_value
618
- modified_at
619
- modified_by {
620
- ...RecordIdentity
621
- }
622
- created_at
623
- created_by {
624
- ...RecordIdentity
625
- }
626
- version {
627
- ...ValuesVersionDetails
628
- }
629
- payload
630
- raw_payload
631
- }
632
- }
633
- ... on Value {
634
- payload
635
- raw_payload
636
- value
637
- raw_value
638
- }
639
- ... on LinkValue {
640
- linkValue: payload {
641
- ...RecordIdentity
642
- }
643
- }
644
- ... on TreeValue {
645
- treeValue: payload {
646
- id
647
- record {
648
- ...RecordIdentity
649
- }
650
- ancestors {
651
- record {
652
- ...RecordIdentity
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
654
+ }
655
+ previewsSettings {
656
+ ...LibraryPreviewsSettings
653
657
  }
654
- }
655
658
  }
656
- }
657
- }
659
+ ${LibraryAttributesFragmentDoc}
658
660
  ${RecordIdentityFragmentDoc}
659
- ${ValuesVersionDetailsFragmentDoc}`;
661
+ ${LibraryPreviewsSettingsFragmentDoc}`;
660
662
  export const StandardValuesListFragmentFragmentDoc = gql `
661
663
  fragment StandardValuesListFragment on StandardValuesListConf {
662
- ... on StandardStringValuesListConf {
663
- enable
664
- allowFreeEntry
665
- allowListUpdate
666
- values
667
- }
668
- ... on StandardDateRangeValuesListConf {
669
- enable
670
- allowFreeEntry
671
- allowListUpdate
672
- dateRangeValues: values {
673
- from
674
- to
675
- }
676
- }
677
- }
678
- `;
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
+ `;
679
681
  export const RecordFormAttributeFragmentDoc = gql `
680
682
  fragment RecordFormAttribute on Attribute {
681
- id
682
- label
683
- description
684
- type
685
- format
686
- system
687
- readonly
688
- required
689
- multiple_values
690
- compute
691
- permissions(record: {id: $recordId, library: $libraryId}) {
692
- access_attribute
693
- edit_value
694
- }
695
- versions_conf {
696
- versionable
697
- profile {
698
- id
699
- trees {
700
683
  id
701
684
  label
702
- }
703
- }
704
- }
705
- metadata_fields {
706
- id
707
- label
708
- description
709
- type
710
- format
711
- system
712
- readonly
713
- multiple_values
714
- permissions(record: {id: $recordId, library: $libraryId}) {
715
- access_attribute
716
- edit_value
717
- }
718
- values_list {
719
- ...StandardValuesListFragment
720
- }
721
- metadata_fields {
722
- id
723
- }
724
- }
725
- ... on StandardAttribute {
726
- values_list {
727
- ...StandardValuesListFragment
728
- }
729
- character_limit
730
- }
731
- ... on LinkAttribute {
732
- linked_library {
733
- id
734
- label
735
- behavior
736
- permissions {
737
- create_record
738
- }
739
- }
740
- linkValuesList: values_list {
741
- enable
742
- allowFreeEntry
743
- allowListUpdate
744
- values {
745
- ...RecordIdentity
746
- }
747
- }
748
- }
749
- ... on TreeAttribute {
750
- linked_tree {
751
- id
752
- label
753
- }
754
- treeValuesList: values_list {
755
- enable
756
- allowFreeEntry
757
- allowListUpdate
758
- values {
759
- id
760
- record {
761
- ...RecordIdentity
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
762
696
  }
763
- ancestors {
764
- record {
765
- ...RecordIdentity
766
- }
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
+ }
750
+ }
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
+ }
767
772
  }
768
- }
769
773
  }
770
- }
771
- }
772
774
  ${StandardValuesListFragmentFragmentDoc}
773
775
  ${RecordIdentityFragmentDoc}`;
774
- export const RecordFormElementFragmentDoc = gql `
775
- fragment RecordFormElement on FormElementWithValues {
776
- id
777
- containerId
778
- uiElementType
779
- type
780
- valueError
781
- values {
782
- ...ValueDetails
783
- }
784
- attribute {
785
- ...RecordFormAttribute
786
- }
787
- settings {
788
- key
789
- value
790
- }
791
- }
792
- ${ValueDetailsFragmentDoc}
776
+ export const JoinLibraryContextFragmentDoc = gql `
777
+ fragment JoinLibraryContext on FormElementJoinLibraryContext {
778
+ mandatoryAttribute {
779
+ ...RecordFormAttribute
780
+ }
781
+ }
793
782
  ${RecordFormAttributeFragmentDoc}`;
783
+ 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}
801
+ ${JoinLibraryContextFragmentDoc}`;
794
802
  export const TreeLightFragmentDoc = gql `
795
803
  fragment TreeLight on Tree {
796
- id
797
- label
798
- }
799
- `;
804
+ id
805
+ label
806
+ }
807
+ `;
800
808
  export const TreeDetailsFragmentDoc = gql `
801
809
  fragment TreeDetails on Tree {
802
- id
803
- label
804
- behavior
805
- system
806
- libraries {
807
- library {
808
- id
809
- label
810
- }
811
- settings {
812
- allowMultiplePositions
813
- allowedAtRoot
814
- allowedChildren
815
- }
816
- }
817
- }
818
- `;
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
+ `;
819
827
  export const TreeNodeChildFragmentDoc = gql `
820
828
  fragment TreeNodeChild on TreeNodeLight {
821
- id
822
- order
823
- childrenCount
824
- record {
825
- ...RecordIdentity
826
- active: property(attribute: "active") {
827
- ... on Value {
828
- value
829
- }
830
- }
831
- }
832
- ancestors {
833
- id
834
- record {
835
- id
836
- library {
837
829
  id
838
- label
839
- }
840
- ...RecordIdentity
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
+ }
841
856
  }
842
- }
843
- permissions {
844
- access_tree
845
- detach
846
- edit_children
847
- }
848
- }
849
- ${RecordIdentityFragmentDoc}`;
857
+ ${RecordIdentityFragmentDoc}`;
850
858
  export const ViewDetailsFilterFragmentDoc = gql `
851
859
  fragment ViewDetailsFilter on RecordFilter {
852
- field
853
- value
854
- tree {
855
- id
856
- label
857
- }
858
- condition
859
- operator
860
- }
861
- `;
860
+ field
861
+ value
862
+ tree {
863
+ id
864
+ label
865
+ }
866
+ condition
867
+ operator
868
+ }
869
+ `;
862
870
  export const ViewDetailsFragmentDoc = gql `
863
871
  fragment ViewDetails on View {
864
- id
865
- display {
866
- size
867
- type
868
- }
869
- shared
870
- created_by {
871
- id
872
- whoAmI {
873
- id
874
- label
875
- library {
876
872
  id
877
- }
878
- }
879
- }
880
- label
881
- description
882
- color
883
- filters {
884
- ...ViewDetailsFilter
885
- }
886
- sort {
887
- field
888
- order
889
- }
890
- valuesVersions {
891
- treeId
892
- treeNode {
893
- id
894
- record {
895
- ...RecordIdentity
896
- }
897
- }
898
- }
899
- attributes {
900
- id
901
- }
902
- }
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
+ }
903
911
  ${ViewDetailsFilterFragmentDoc}
904
912
  ${RecordIdentityFragmentDoc}`;
905
913
  export const AttributesByLibLinkAttributeWithPermissionsFragmentDoc = gql `
906
914
  fragment AttributesByLibLinkAttributeWithPermissions on LinkAttribute {
907
- linked_library {
908
- id
909
- }
910
- }
911
- `;
915
+ linked_library {
916
+ id
917
+ }
918
+ }
919
+ `;
912
920
  export const AttributesByLibAttributeWithPermissionsFragmentDoc = gql `
913
921
  fragment AttributesByLibAttributeWithPermissions on Attribute {
914
- id
915
- type
916
- format
917
- label
918
- multiple_values
919
- system
920
- readonly
921
- permissions {
922
- access_attribute
923
- }
924
- ...AttributesByLibLinkAttributeWithPermissions
925
- ... on TreeAttribute {
926
- linked_tree {
927
- id
928
- label
929
- libraries {
930
- library {
931
- id
932
- label
933
- }
934
- }
935
- }
936
- }
937
- ... on StandardAttribute {
938
- embedded_fields {
939
- id
940
- format
941
- label
942
- }
943
- }
944
- }
945
- ${AttributesByLibLinkAttributeWithPermissionsFragmentDoc}`;
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}`;
946
954
  export const LinkAttributeDetailsFragmentDoc = gql `
947
955
  fragment LinkAttributeDetails on LinkAttribute {
948
- label
949
- linked_library {
950
- id
951
- label
952
- }
953
- }
954
- `;
956
+ label
957
+ linked_library {
958
+ id
959
+ label
960
+ }
961
+ }
962
+ `;
955
963
  export const AttributePropertiesFragmentDoc = gql `
956
964
  fragment AttributeProperties on Attribute {
957
- id
958
- label
959
- type
960
- format
961
- multiple_values
962
- multi_link_display_option
963
- }
964
- `;
965
+ id
966
+ label
967
+ type
968
+ format
969
+ multiple_values
970
+ multi_link_display_option
971
+ }
972
+ `;
965
973
  export const PropertyValueFragmentDoc = gql `
966
974
  fragment PropertyValue on GenericValue {
967
- ... on Value {
968
- valuePayload: payload
969
- valueRawPayload: raw_payload
970
- }
971
- ... on LinkValue {
972
- linkPayload: payload {
973
- ...RecordIdentity
974
- }
975
- }
976
- ... on TreeValue {
977
- treePayload: payload {
978
- record {
979
- ...RecordIdentity
980
- }
981
- }
982
- }
983
- }
984
- ${RecordIdentityFragmentDoc}`;
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}`;
985
993
  export const LinkPropertyFragmentDoc = gql `
986
994
  fragment LinkProperty on GenericValue {
987
- id_value
988
- ... on LinkValue {
989
- payload {
990
- ...RecordIdentity
991
- properties(attributeIds: $attributeIds) {
992
- attributeId
993
- attributeProperties {
994
- ...AttributeProperties
995
- }
996
- values {
997
- ...PropertyValue
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
+ }
998
1009
  }
999
- }
1000
1010
  }
1001
- }
1002
- }
1003
1011
  ${RecordIdentityFragmentDoc}
1004
- ${AttributePropertiesFragmentDoc}
1012
+ ${AttributePropertiesFragmentDoc}
1005
1013
  ${PropertyValueFragmentDoc}`;
1006
1014
  export const LibraryAttributeLinkFragmentDoc = gql `
1007
1015
  fragment LibraryAttributeLink on LinkAttribute {
1008
- linked_library {
1009
- id
1010
- label
1011
- attributes {
1012
- id
1013
- type
1014
- format
1015
- label
1016
- }
1017
- }
1018
- }
1019
- `;
1016
+ linked_library {
1017
+ id
1018
+ label
1019
+ attributes {
1020
+ id
1021
+ type
1022
+ format
1023
+ label
1024
+ }
1025
+ }
1026
+ }
1027
+ `;
1020
1028
  export const LibraryAttributeFragmentDoc = gql `
1021
1029
  fragment LibraryAttribute on Attribute {
1022
- id
1023
- type
1024
- label
1025
- permissions {
1026
- access_attribute
1027
- }
1028
- ... on StandardAttribute {
1029
- format
1030
- }
1031
- ...LibraryAttributeLink
1032
- }
1033
- ${LibraryAttributeLinkFragmentDoc}`;
1030
+ id
1031
+ type
1032
+ label
1033
+ permissions {
1034
+ access_attribute
1035
+ }
1036
+ ... on StandardAttribute {
1037
+ format
1038
+ }
1039
+ ...LibraryAttributeLink
1040
+ }
1041
+ ${LibraryAttributeLinkFragmentDoc}`;
1034
1042
  export const CheckApplicationExistenceDocument = gql `
1035
1043
  query CHECK_APPLICATION_EXISTENCE($id: ID, $endpoint: String) {
1036
- applications(filters: {id: $id, endpoint: $endpoint}) {
1037
- totalCount
1038
- }
1039
- }
1040
- `;
1044
+ applications(filters: {id: $id, endpoint: $endpoint}) {
1045
+ totalCount
1046
+ }
1047
+ }
1048
+ `;
1041
1049
  /**
1042
1050
  * __useCheckApplicationExistenceQuery__
1043
1051
  *
@@ -1063,15 +1071,19 @@ export function useCheckApplicationExistenceLazyQuery(baseOptions) {
1063
1071
  const options = { ...defaultOptions, ...baseOptions };
1064
1072
  return Apollo.useLazyQuery(CheckApplicationExistenceDocument, options);
1065
1073
  }
1074
+ export function useCheckApplicationExistenceSuspenseQuery(baseOptions) {
1075
+ const options = { ...defaultOptions, ...baseOptions };
1076
+ return Apollo.useSuspenseQuery(CheckApplicationExistenceDocument, options);
1077
+ }
1066
1078
  export const GetApplicationByIdDocument = gql `
1067
1079
  query GET_APPLICATION_BY_ID($id: ID!) {
1068
- applications(filters: {id: $id}) {
1069
- list {
1070
- ...DetailsApplication
1080
+ applications(filters: {id: $id}) {
1081
+ list {
1082
+ ...DetailsApplication
1083
+ }
1084
+ }
1071
1085
  }
1072
- }
1073
- }
1074
- ${DetailsApplicationFragmentDoc}`;
1086
+ ${DetailsApplicationFragmentDoc}`;
1075
1087
  /**
1076
1088
  * __useGetApplicationByIdQuery__
1077
1089
  *
@@ -1096,15 +1108,19 @@ export function useGetApplicationByIdLazyQuery(baseOptions) {
1096
1108
  const options = { ...defaultOptions, ...baseOptions };
1097
1109
  return Apollo.useLazyQuery(GetApplicationByIdDocument, options);
1098
1110
  }
1111
+ export function useGetApplicationByIdSuspenseQuery(baseOptions) {
1112
+ const options = { ...defaultOptions, ...baseOptions };
1113
+ return Apollo.useSuspenseQuery(GetApplicationByIdDocument, options);
1114
+ }
1099
1115
  export const GetApplicationModulesDocument = gql `
1100
1116
  query GET_APPLICATION_MODULES {
1101
- applicationsModules {
1102
- id
1103
- description
1104
- version
1105
- }
1106
- }
1107
- `;
1117
+ applicationsModules {
1118
+ id
1119
+ description
1120
+ version
1121
+ }
1122
+ }
1123
+ `;
1108
1124
  /**
1109
1125
  * __useGetApplicationModulesQuery__
1110
1126
  *
@@ -1128,13 +1144,17 @@ export function useGetApplicationModulesLazyQuery(baseOptions) {
1128
1144
  const options = { ...defaultOptions, ...baseOptions };
1129
1145
  return Apollo.useLazyQuery(GetApplicationModulesDocument, options);
1130
1146
  }
1147
+ export function useGetApplicationModulesSuspenseQuery(baseOptions) {
1148
+ const options = { ...defaultOptions, ...baseOptions };
1149
+ return Apollo.useSuspenseQuery(GetApplicationModulesDocument, options);
1150
+ }
1131
1151
  export const SaveApplicationDocument = gql `
1132
1152
  mutation SAVE_APPLICATION($application: ApplicationInput!) {
1133
- saveApplication(application: $application) {
1134
- ...DetailsApplication
1135
- }
1136
- }
1137
- ${DetailsApplicationFragmentDoc}`;
1153
+ saveApplication(application: $application) {
1154
+ ...DetailsApplication
1155
+ }
1156
+ }
1157
+ ${DetailsApplicationFragmentDoc}`;
1138
1158
  /**
1139
1159
  * __useSaveApplicationMutation__
1140
1160
  *
@@ -1158,11 +1178,11 @@ export function useSaveApplicationMutation(baseOptions) {
1158
1178
  }
1159
1179
  export const CheckAttributeExistenceDocument = gql `
1160
1180
  query CHECK_ATTRIBUTE_EXISTENCE($id: ID!) {
1161
- attributes(filters: {id: $id}) {
1162
- totalCount
1163
- }
1164
- }
1165
- `;
1181
+ attributes(filters: {id: $id}) {
1182
+ totalCount
1183
+ }
1184
+ }
1185
+ `;
1166
1186
  /**
1167
1187
  * __useCheckAttributeExistenceQuery__
1168
1188
  *
@@ -1187,13 +1207,17 @@ export function useCheckAttributeExistenceLazyQuery(baseOptions) {
1187
1207
  const options = { ...defaultOptions, ...baseOptions };
1188
1208
  return Apollo.useLazyQuery(CheckAttributeExistenceDocument, options);
1189
1209
  }
1210
+ export function useCheckAttributeExistenceSuspenseQuery(baseOptions) {
1211
+ const options = { ...defaultOptions, ...baseOptions };
1212
+ return Apollo.useSuspenseQuery(CheckAttributeExistenceDocument, options);
1213
+ }
1190
1214
  export const DeleteAttributeDocument = gql `
1191
1215
  mutation DELETE_ATTRIBUTE($id: ID) {
1192
- deleteAttribute(id: $id) {
1193
- id
1194
- }
1195
- }
1196
- `;
1216
+ deleteAttribute(id: $id) {
1217
+ id
1218
+ }
1219
+ }
1220
+ `;
1197
1221
  /**
1198
1222
  * __useDeleteAttributeMutation__
1199
1223
  *
@@ -1217,13 +1241,13 @@ export function useDeleteAttributeMutation(baseOptions) {
1217
1241
  }
1218
1242
  export const GetAttributeByIdDocument = gql `
1219
1243
  query GET_ATTRIBUTE_BY_ID($id: ID) {
1220
- attributes(filters: {id: $id}) {
1221
- list {
1222
- ...AttributeDetails
1244
+ attributes(filters: {id: $id}) {
1245
+ list {
1246
+ ...AttributeDetails
1247
+ }
1248
+ }
1223
1249
  }
1224
- }
1225
- }
1226
- ${AttributeDetailsFragmentDoc}`;
1250
+ ${AttributeDetailsFragmentDoc}`;
1227
1251
  /**
1228
1252
  * __useGetAttributeByIdQuery__
1229
1253
  *
@@ -1248,15 +1272,19 @@ export function useGetAttributeByIdLazyQuery(baseOptions) {
1248
1272
  const options = { ...defaultOptions, ...baseOptions };
1249
1273
  return Apollo.useLazyQuery(GetAttributeByIdDocument, options);
1250
1274
  }
1275
+ export function useGetAttributeByIdSuspenseQuery(baseOptions) {
1276
+ const options = { ...defaultOptions, ...baseOptions };
1277
+ return Apollo.useSuspenseQuery(GetAttributeByIdDocument, options);
1278
+ }
1251
1279
  export const GetAttributesByLibDocument = gql `
1252
1280
  query GET_ATTRIBUTES_BY_LIB($library: String!) {
1253
- attributes(filters: {libraries: [$library]}) {
1254
- list {
1255
- ...AttributesByLibAttribute
1281
+ attributes(filters: {libraries: [$library]}) {
1282
+ list {
1283
+ ...AttributesByLibAttribute
1284
+ }
1285
+ }
1256
1286
  }
1257
- }
1258
- }
1259
- ${AttributesByLibAttributeFragmentDoc}`;
1287
+ ${AttributesByLibAttributeFragmentDoc}`;
1260
1288
  /**
1261
1289
  * __useGetAttributesByLibQuery__
1262
1290
  *
@@ -1281,20 +1309,24 @@ export function useGetAttributesByLibLazyQuery(baseOptions) {
1281
1309
  const options = { ...defaultOptions, ...baseOptions };
1282
1310
  return Apollo.useLazyQuery(GetAttributesByLibDocument, options);
1283
1311
  }
1312
+ export function useGetAttributesByLibSuspenseQuery(baseOptions) {
1313
+ const options = { ...defaultOptions, ...baseOptions };
1314
+ return Apollo.useSuspenseQuery(GetAttributesByLibDocument, options);
1315
+ }
1284
1316
  export const GetAttributesDocument = gql `
1285
1317
  query GET_ATTRIBUTES($pagination: Pagination, $sort: SortAttributes, $filters: AttributesFiltersInput) {
1286
- attributes(pagination: $pagination, sort: $sort, filters: $filters) {
1287
- totalCount
1288
- list {
1289
- id
1290
- label
1291
- type
1292
- format
1293
- system
1318
+ attributes(pagination: $pagination, sort: $sort, filters: $filters) {
1319
+ totalCount
1320
+ list {
1321
+ id
1322
+ label
1323
+ type
1324
+ format
1325
+ system
1326
+ }
1327
+ }
1294
1328
  }
1295
- }
1296
- }
1297
- `;
1329
+ `;
1298
1330
  /**
1299
1331
  * __useGetAttributesQuery__
1300
1332
  *
@@ -1321,16 +1353,20 @@ export function useGetAttributesLazyQuery(baseOptions) {
1321
1353
  const options = { ...defaultOptions, ...baseOptions };
1322
1354
  return Apollo.useLazyQuery(GetAttributesDocument, options);
1323
1355
  }
1356
+ export function useGetAttributesSuspenseQuery(baseOptions) {
1357
+ const options = { ...defaultOptions, ...baseOptions };
1358
+ return Apollo.useSuspenseQuery(GetAttributesDocument, options);
1359
+ }
1324
1360
  export const GetVersionProfilesDocument = gql `
1325
1361
  query GET_VERSION_PROFILES($filters: VersionProfilesFiltersInput, $sort: SortVersionProfilesInput) {
1326
- versionProfiles(filters: $filters, sort: $sort) {
1327
- list {
1328
- id
1329
- label
1362
+ versionProfiles(filters: $filters, sort: $sort) {
1363
+ list {
1364
+ id
1365
+ label
1366
+ }
1367
+ }
1330
1368
  }
1331
- }
1332
- }
1333
- `;
1369
+ `;
1334
1370
  /**
1335
1371
  * __useGetVersionProfilesQuery__
1336
1372
  *
@@ -1356,25 +1392,29 @@ export function useGetVersionProfilesLazyQuery(baseOptions) {
1356
1392
  const options = { ...defaultOptions, ...baseOptions };
1357
1393
  return Apollo.useLazyQuery(GetVersionProfilesDocument, options);
1358
1394
  }
1395
+ export function useGetVersionProfilesSuspenseQuery(baseOptions) {
1396
+ const options = { ...defaultOptions, ...baseOptions };
1397
+ return Apollo.useSuspenseQuery(GetVersionProfilesDocument, options);
1398
+ }
1359
1399
  export const GetVersionableAttributesByLibraryDocument = gql `
1360
1400
  query GET_VERSIONABLE_ATTRIBUTES_BY_LIBRARY($libraryId: String!) {
1361
- attributes(filters: {libraries: [$libraryId], versionable: true}) {
1362
- list {
1363
- id
1364
- versions_conf {
1365
- versionable
1366
- profile {
1367
- id
1368
- trees {
1369
- id
1370
- label
1371
- }
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
+ }
1372
1415
  }
1373
- }
1374
1416
  }
1375
- }
1376
- }
1377
- `;
1417
+ `;
1378
1418
  /**
1379
1419
  * __useGetVersionableAttributesByLibraryQuery__
1380
1420
  *
@@ -1399,13 +1439,17 @@ export function useGetVersionableAttributesByLibraryLazyQuery(baseOptions) {
1399
1439
  const options = { ...defaultOptions, ...baseOptions };
1400
1440
  return Apollo.useLazyQuery(GetVersionableAttributesByLibraryDocument, options);
1401
1441
  }
1442
+ export function useGetVersionableAttributesByLibrarySuspenseQuery(baseOptions) {
1443
+ const options = { ...defaultOptions, ...baseOptions };
1444
+ return Apollo.useSuspenseQuery(GetVersionableAttributesByLibraryDocument, options);
1445
+ }
1402
1446
  export const SaveAttributeDocument = gql `
1403
1447
  mutation SAVE_ATTRIBUTE($attribute: AttributeInput!) {
1404
- saveAttribute(attribute: $attribute) {
1405
- ...AttributeDetails
1406
- }
1407
- }
1408
- ${AttributeDetailsFragmentDoc}`;
1448
+ saveAttribute(attribute: $attribute) {
1449
+ ...AttributeDetails
1450
+ }
1451
+ }
1452
+ ${AttributeDetailsFragmentDoc}`;
1409
1453
  /**
1410
1454
  * __useSaveAttributeMutation__
1411
1455
  *
@@ -1429,9 +1473,9 @@ export function useSaveAttributeMutation(baseOptions) {
1429
1473
  }
1430
1474
  export const ExportDocument = gql `
1431
1475
  query EXPORT($library: ID!, $attributes: [ID!], $filters: [RecordFilterInput!]) {
1432
- export(library: $library, attributes: $attributes, filters: $filters)
1433
- }
1434
- `;
1476
+ export(library: $library, attributes: $attributes, filters: $filters)
1477
+ }
1478
+ `;
1435
1479
  /**
1436
1480
  * __useExportQuery__
1437
1481
  *
@@ -1458,13 +1502,17 @@ export function useExportLazyQuery(baseOptions) {
1458
1502
  const options = { ...defaultOptions, ...baseOptions };
1459
1503
  return Apollo.useLazyQuery(ExportDocument, options);
1460
1504
  }
1505
+ export function useExportSuspenseQuery(baseOptions) {
1506
+ const options = { ...defaultOptions, ...baseOptions };
1507
+ return Apollo.useSuspenseQuery(ExportDocument, options);
1508
+ }
1461
1509
  export const CreateDirectoryDocument = gql `
1462
1510
  mutation CREATE_DIRECTORY($library: String!, $nodeId: String!, $name: String!) {
1463
- createDirectory(library: $library, nodeId: $nodeId, name: $name) {
1464
- ...RecordIdentity
1465
- }
1466
- }
1467
- ${RecordIdentityFragmentDoc}`;
1511
+ createDirectory(library: $library, nodeId: $nodeId, name: $name) {
1512
+ ...RecordIdentity
1513
+ }
1514
+ }
1515
+ ${RecordIdentityFragmentDoc}`;
1468
1516
  /**
1469
1517
  * __useCreateDirectoryMutation__
1470
1518
  *
@@ -1490,15 +1538,15 @@ export function useCreateDirectoryMutation(baseOptions) {
1490
1538
  }
1491
1539
  export const ForcePreviewsGenerationDocument = gql `
1492
1540
  mutation FORCE_PREVIEWS_GENERATION($libraryId: ID!, $filters: [RecordFilterInput!], $recordIds: [ID!], $failedOnly: Boolean, $previewVersionSizeNames: [String!]) {
1493
- forcePreviewsGeneration(
1494
- libraryId: $libraryId
1495
- filters: $filters
1496
- recordIds: $recordIds
1497
- failedOnly: $failedOnly
1498
- previewVersionSizeNames: $previewVersionSizeNames
1499
- )
1500
- }
1501
- `;
1541
+ forcePreviewsGeneration(
1542
+ libraryId: $libraryId
1543
+ filters: $filters
1544
+ recordIds: $recordIds
1545
+ failedOnly: $failedOnly
1546
+ previewVersionSizeNames: $previewVersionSizeNames
1547
+ )
1548
+ }
1549
+ `;
1502
1550
  /**
1503
1551
  * __useForcePreviewsGenerationMutation__
1504
1552
  *
@@ -1526,53 +1574,53 @@ export function useForcePreviewsGenerationMutation(baseOptions) {
1526
1574
  }
1527
1575
  export const GetDirectoryDataDocument = gql `
1528
1576
  query GET_DIRECTORY_DATA($library: ID!, $directoryId: String!) {
1529
- records(
1530
- library: $library
1531
- filters: [{field: "id", value: $directoryId, condition: EQUAL}]
1532
- ) {
1533
- list {
1534
- ...RecordIdentity
1535
- created_at: property(attribute: "created_at") {
1536
- ... on Value {
1537
- value
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
+ }
1538
1621
  }
1539
- }
1540
- created_by: property(attribute: "created_by") {
1541
- ... on LinkValue {
1542
- value {
1543
- ...RecordIdentity
1544
- }
1545
- }
1546
- }
1547
- modified_at: property(attribute: "modified_at") {
1548
- ... on Value {
1549
- value
1550
- }
1551
- }
1552
- modified_by: property(attribute: "modified_by") {
1553
- ... on LinkValue {
1554
- value {
1555
- ...RecordIdentity
1556
- }
1557
- }
1558
- }
1559
- file_name: property(attribute: "file_name") {
1560
- ... on Value {
1561
- value
1562
- }
1563
- }
1564
- file_path: property(attribute: "file_path") {
1565
- ... on Value {
1566
- value
1567
- }
1568
- }
1569
- library {
1570
- behavior
1571
- }
1572
1622
  }
1573
- }
1574
- }
1575
- ${RecordIdentityFragmentDoc}`;
1623
+ ${RecordIdentityFragmentDoc}`;
1576
1624
  /**
1577
1625
  * __useGetDirectoryDataQuery__
1578
1626
  *
@@ -1598,24 +1646,28 @@ export function useGetDirectoryDataLazyQuery(baseOptions) {
1598
1646
  const options = { ...defaultOptions, ...baseOptions };
1599
1647
  return Apollo.useLazyQuery(GetDirectoryDataDocument, options);
1600
1648
  }
1649
+ export function useGetDirectoryDataSuspenseQuery(baseOptions) {
1650
+ const options = { ...defaultOptions, ...baseOptions };
1651
+ return Apollo.useSuspenseQuery(GetDirectoryDataDocument, options);
1652
+ }
1601
1653
  export const UploadUpdateDocument = gql `
1602
1654
  subscription UPLOAD_UPDATE($filters: UploadFiltersInput) {
1603
- upload(filters: $filters) {
1604
- userId
1605
- progress {
1606
- length
1607
- transferred
1608
- speed
1609
- runtime
1610
- remaining
1611
- percentage
1612
- eta
1613
- delta
1614
- }
1615
- uid
1616
- }
1617
- }
1618
- `;
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
+ `;
1619
1671
  /**
1620
1672
  * __useUploadUpdateSubscription__
1621
1673
  *
@@ -1638,14 +1690,14 @@ export function useUploadUpdateSubscription(baseOptions) {
1638
1690
  }
1639
1691
  export const UploadDocument = gql `
1640
1692
  mutation UPLOAD($library: String!, $nodeId: String!, $files: [FileInput!]!) {
1641
- upload(library: $library, nodeId: $nodeId, files: $files) {
1642
- uid
1643
- record {
1644
- ...RecordIdentity
1693
+ upload(library: $library, nodeId: $nodeId, files: $files) {
1694
+ uid
1695
+ record {
1696
+ ...RecordIdentity
1697
+ }
1698
+ }
1645
1699
  }
1646
- }
1647
- }
1648
- ${RecordIdentityFragmentDoc}`;
1700
+ ${RecordIdentityFragmentDoc}`;
1649
1701
  /**
1650
1702
  * __useUploadMutation__
1651
1703
  *
@@ -1667,13 +1719,58 @@ export const UploadDocument = gql `
1667
1719
  */
1668
1720
  export function useUploadMutation(baseOptions) {
1669
1721
  const options = { ...defaultOptions, ...baseOptions };
1670
- return Apollo.useMutation(UploadDocument, options);
1722
+ return Apollo.useMutation(UploadDocument, options);
1723
+ }
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);
1671
1768
  }
1672
1769
  export const ImportExcelDocument = gql `
1673
1770
  mutation IMPORT_EXCEL($file: Upload!, $sheets: [SheetInput], $startAt: Int) {
1674
- importExcel(file: $file, sheets: $sheets, startAt: $startAt)
1675
- }
1676
- `;
1771
+ importExcel(file: $file, sheets: $sheets, startAt: $startAt)
1772
+ }
1773
+ `;
1677
1774
  /**
1678
1775
  * __useImportExcelMutation__
1679
1776
  *
@@ -1699,11 +1796,11 @@ export function useImportExcelMutation(baseOptions) {
1699
1796
  }
1700
1797
  export const CheckLibraryExistenceDocument = gql `
1701
1798
  query CHECK_LIBRARY_EXISTENCE($id: [ID!]) {
1702
- libraries(filters: {id: $id}) {
1703
- totalCount
1704
- }
1705
- }
1706
- `;
1799
+ libraries(filters: {id: $id}) {
1800
+ totalCount
1801
+ }
1802
+ }
1803
+ `;
1707
1804
  /**
1708
1805
  * __useCheckLibraryExistenceQuery__
1709
1806
  *
@@ -1728,13 +1825,17 @@ export function useCheckLibraryExistenceLazyQuery(baseOptions) {
1728
1825
  const options = { ...defaultOptions, ...baseOptions };
1729
1826
  return Apollo.useLazyQuery(CheckLibraryExistenceDocument, options);
1730
1827
  }
1828
+ export function useCheckLibraryExistenceSuspenseQuery(baseOptions) {
1829
+ const options = { ...defaultOptions, ...baseOptions };
1830
+ return Apollo.useSuspenseQuery(CheckLibraryExistenceDocument, options);
1831
+ }
1731
1832
  export const DeleteLibraryDocument = gql `
1732
1833
  mutation DELETE_LIBRARY($id: ID) {
1733
- deleteLibrary(id: $id) {
1734
- id
1735
- }
1736
- }
1737
- `;
1834
+ deleteLibrary(id: $id) {
1835
+ id
1836
+ }
1837
+ }
1838
+ `;
1738
1839
  /**
1739
1840
  * __useDeleteLibraryMutation__
1740
1841
  *
@@ -1758,13 +1859,13 @@ export function useDeleteLibraryMutation(baseOptions) {
1758
1859
  }
1759
1860
  export const GetLibrariesDocument = gql `
1760
1861
  query GET_LIBRARIES {
1761
- libraries {
1762
- list {
1763
- ...LibraryLight
1862
+ libraries {
1863
+ list {
1864
+ ...LibraryLight
1865
+ }
1866
+ }
1764
1867
  }
1765
- }
1766
- }
1767
- ${LibraryLightFragmentDoc}`;
1868
+ ${LibraryLightFragmentDoc}`;
1768
1869
  /**
1769
1870
  * __useGetLibrariesQuery__
1770
1871
  *
@@ -1788,15 +1889,19 @@ export function useGetLibrariesLazyQuery(baseOptions) {
1788
1889
  const options = { ...defaultOptions, ...baseOptions };
1789
1890
  return Apollo.useLazyQuery(GetLibrariesDocument, options);
1790
1891
  }
1892
+ export function useGetLibrariesSuspenseQuery(baseOptions) {
1893
+ const options = { ...defaultOptions, ...baseOptions };
1894
+ return Apollo.useSuspenseQuery(GetLibrariesDocument, options);
1895
+ }
1791
1896
  export const GetLibraryByIdDocument = gql `
1792
1897
  query GET_LIBRARY_BY_ID($id: [ID!]) {
1793
- libraries(filters: {id: $id}) {
1794
- list {
1795
- ...LibraryDetails
1898
+ libraries(filters: {id: $id}) {
1899
+ list {
1900
+ ...LibraryDetails
1901
+ }
1902
+ }
1796
1903
  }
1797
- }
1798
- }
1799
- ${LibraryDetailsFragmentDoc}`;
1904
+ ${LibraryDetailsFragmentDoc}`;
1800
1905
  /**
1801
1906
  * __useGetLibraryByIdQuery__
1802
1907
  *
@@ -1821,21 +1926,25 @@ export function useGetLibraryByIdLazyQuery(baseOptions) {
1821
1926
  const options = { ...defaultOptions, ...baseOptions };
1822
1927
  return Apollo.useLazyQuery(GetLibraryByIdDocument, options);
1823
1928
  }
1929
+ export function useGetLibraryByIdSuspenseQuery(baseOptions) {
1930
+ const options = { ...defaultOptions, ...baseOptions };
1931
+ return Apollo.useSuspenseQuery(GetLibraryByIdDocument, options);
1932
+ }
1824
1933
  export const GetLibraryPermissionsDocument = gql `
1825
1934
  query GET_LIBRARY_PERMISSIONS($libraryId: [ID!]) {
1826
- libraries(filters: {id: $libraryId}) {
1827
- list {
1828
- permissions {
1829
- access_library
1830
- access_record
1831
- create_record
1832
- edit_record
1833
- delete_record
1834
- }
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
+ }
1835
1946
  }
1836
- }
1837
- }
1838
- `;
1947
+ `;
1839
1948
  /**
1840
1949
  * __useGetLibraryPermissionsQuery__
1841
1950
  *
@@ -1860,30 +1969,34 @@ export function useGetLibraryPermissionsLazyQuery(baseOptions) {
1860
1969
  const options = { ...defaultOptions, ...baseOptions };
1861
1970
  return Apollo.useLazyQuery(GetLibraryPermissionsDocument, options);
1862
1971
  }
1972
+ export function useGetLibraryPermissionsSuspenseQuery(baseOptions) {
1973
+ const options = { ...defaultOptions, ...baseOptions };
1974
+ return Apollo.useSuspenseQuery(GetLibraryPermissionsDocument, options);
1975
+ }
1863
1976
  export const GetLibraryPreviewsSettingsDocument = gql `
1864
1977
  query GET_LIBRARY_PREVIEWS_SETTINGS($id: ID!) {
1865
- libraries(filters: {id: [$id]}) {
1866
- list {
1867
- id
1868
- label
1869
- behavior
1870
- previewsSettings {
1871
- description
1872
- label
1873
- system
1874
- versions {
1875
- background
1876
- density
1877
- sizes {
1878
- name
1879
- size
1880
- }
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
+ }
1881
1997
  }
1882
- }
1883
1998
  }
1884
- }
1885
- }
1886
- `;
1999
+ `;
1887
2000
  /**
1888
2001
  * __useGetLibraryPreviewsSettingsQuery__
1889
2002
  *
@@ -1908,13 +2021,17 @@ export function useGetLibraryPreviewsSettingsLazyQuery(baseOptions) {
1908
2021
  const options = { ...defaultOptions, ...baseOptions };
1909
2022
  return Apollo.useLazyQuery(GetLibraryPreviewsSettingsDocument, options);
1910
2023
  }
2024
+ export function useGetLibraryPreviewsSettingsSuspenseQuery(baseOptions) {
2025
+ const options = { ...defaultOptions, ...baseOptions };
2026
+ return Apollo.useSuspenseQuery(GetLibraryPreviewsSettingsDocument, options);
2027
+ }
1911
2028
  export const SaveLibraryDocument = gql `
1912
2029
  mutation saveLibrary($library: LibraryInput!) {
1913
- saveLibrary(library: $library) {
1914
- ...LibraryDetails
1915
- }
1916
- }
1917
- ${LibraryDetailsFragmentDoc}`;
2030
+ saveLibrary(library: $library) {
2031
+ ...LibraryDetails
2032
+ }
2033
+ }
2034
+ ${LibraryDetailsFragmentDoc}`;
1918
2035
  /**
1919
2036
  * __useSaveLibraryMutation__
1920
2037
  *
@@ -1938,12 +2055,12 @@ export function useSaveLibraryMutation(baseOptions) {
1938
2055
  }
1939
2056
  export const IsAllowedDocument = gql `
1940
2057
  query IS_ALLOWED($type: PermissionTypes!, $actions: [PermissionsActions!]!, $applyTo: ID, $target: PermissionTarget) {
1941
- isAllowed(type: $type, actions: $actions, applyTo: $applyTo, target: $target) {
1942
- name
1943
- allowed
1944
- }
1945
- }
1946
- `;
2058
+ isAllowed(type: $type, actions: $actions, applyTo: $applyTo, target: $target) {
2059
+ name
2060
+ allowed
2061
+ }
2062
+ }
2063
+ `;
1947
2064
  /**
1948
2065
  * __useIsAllowedQuery__
1949
2066
  *
@@ -1971,18 +2088,22 @@ export function useIsAllowedLazyQuery(baseOptions) {
1971
2088
  const options = { ...defaultOptions, ...baseOptions };
1972
2089
  return Apollo.useLazyQuery(IsAllowedDocument, options);
1973
2090
  }
2091
+ export function useIsAllowedSuspenseQuery(baseOptions) {
2092
+ const options = { ...defaultOptions, ...baseOptions };
2093
+ return Apollo.useSuspenseQuery(IsAllowedDocument, options);
2094
+ }
1974
2095
  export const ActivateRecordsDocument = gql `
1975
2096
  mutation ACTIVATE_RECORDS($libraryId: String!, $recordsIds: [String!], $filters: [RecordFilterInput!]) {
1976
- activateRecords(
1977
- recordsIds: $recordsIds
1978
- filters: $filters
1979
- libraryId: $libraryId
1980
- ) {
1981
- id
1982
- ...RecordIdentity
1983
- }
1984
- }
1985
- ${RecordIdentityFragmentDoc}`;
2097
+ activateRecords(
2098
+ recordsIds: $recordsIds
2099
+ filters: $filters
2100
+ libraryId: $libraryId
2101
+ ) {
2102
+ id
2103
+ ...RecordIdentity
2104
+ }
2105
+ }
2106
+ ${RecordIdentityFragmentDoc}`;
1986
2107
  /**
1987
2108
  * __useActivateRecordsMutation__
1988
2109
  *
@@ -2008,19 +2129,19 @@ export function useActivateRecordsMutation(baseOptions) {
2008
2129
  }
2009
2130
  export const CreateRecordDocument = gql `
2010
2131
  mutation CREATE_RECORD($library: ID!, $data: CreateRecordDataInput) {
2011
- createRecord(library: $library, data: $data) {
2012
- record {
2013
- ...RecordIdentity
2014
- }
2015
- valuesErrors {
2016
- type
2017
- attribute
2018
- input
2019
- message
2132
+ createRecord(library: $library, data: $data) {
2133
+ record {
2134
+ ...RecordIdentity
2135
+ }
2136
+ valuesErrors {
2137
+ type
2138
+ attribute
2139
+ input
2140
+ message
2141
+ }
2142
+ }
2020
2143
  }
2021
- }
2022
- }
2023
- ${RecordIdentityFragmentDoc}`;
2144
+ ${RecordIdentityFragmentDoc}`;
2024
2145
  /**
2025
2146
  * __useCreateRecordMutation__
2026
2147
  *
@@ -2045,16 +2166,16 @@ export function useCreateRecordMutation(baseOptions) {
2045
2166
  }
2046
2167
  export const DeactivateRecordsDocument = gql `
2047
2168
  mutation DEACTIVATE_RECORDS($libraryId: String!, $recordsIds: [String!], $filters: [RecordFilterInput!]) {
2048
- deactivateRecords(
2049
- recordsIds: $recordsIds
2050
- filters: $filters
2051
- libraryId: $libraryId
2052
- ) {
2053
- id
2054
- ...RecordIdentity
2055
- }
2056
- }
2057
- ${RecordIdentityFragmentDoc}`;
2169
+ deactivateRecords(
2170
+ recordsIds: $recordsIds
2171
+ filters: $filters
2172
+ libraryId: $libraryId
2173
+ ) {
2174
+ id
2175
+ ...RecordIdentity
2176
+ }
2177
+ }
2178
+ ${RecordIdentityFragmentDoc}`;
2058
2179
  /**
2059
2180
  * __useDeactivateRecordsMutation__
2060
2181
  *
@@ -2080,13 +2201,13 @@ export function useDeactivateRecordsMutation(baseOptions) {
2080
2201
  }
2081
2202
  export const DoesFileExistAsChildDocument = gql `
2082
2203
  query DOES_FILE_EXIST_AS_CHILD($parentNode: ID, $treeId: ID!, $filename: String!) {
2083
- doesFileExistAsChild(
2084
- parentNode: $parentNode
2085
- treeId: $treeId
2086
- filename: $filename
2087
- )
2088
- }
2089
- `;
2204
+ doesFileExistAsChild(
2205
+ parentNode: $parentNode
2206
+ treeId: $treeId
2207
+ filename: $filename
2208
+ )
2209
+ }
2210
+ `;
2090
2211
  /**
2091
2212
  * __useDoesFileExistAsChildQuery__
2092
2213
  *
@@ -2113,60 +2234,64 @@ export function useDoesFileExistAsChildLazyQuery(baseOptions) {
2113
2234
  const options = { ...defaultOptions, ...baseOptions };
2114
2235
  return Apollo.useLazyQuery(DoesFileExistAsChildDocument, options);
2115
2236
  }
2237
+ export function useDoesFileExistAsChildSuspenseQuery(baseOptions) {
2238
+ const options = { ...defaultOptions, ...baseOptions };
2239
+ return Apollo.useSuspenseQuery(DoesFileExistAsChildDocument, options);
2240
+ }
2116
2241
  export const GetFileDataDocument = gql `
2117
2242
  query GET_FILE_DATA($library: ID!, $fileId: String!, $previewsStatusAttribute: ID!) {
2118
- records(
2119
- library: $library
2120
- filters: [{field: "id", value: $fileId, condition: EQUAL}]
2121
- ) {
2122
- list {
2123
- ...RecordIdentity
2124
- created_at: property(attribute: "created_at") {
2125
- ... on Value {
2126
- value
2127
- }
2128
- }
2129
- created_by: property(attribute: "created_by") {
2130
- ... on LinkValue {
2131
- value {
2132
- ...RecordIdentity
2133
- }
2134
- }
2135
- }
2136
- modified_at: property(attribute: "modified_at") {
2137
- ... on Value {
2138
- value
2139
- }
2140
- }
2141
- modified_by: property(attribute: "modified_by") {
2142
- ... on LinkValue {
2143
- value {
2144
- ...RecordIdentity
2145
- }
2146
- }
2147
- }
2148
- file_name: property(attribute: "file_name") {
2149
- ... on Value {
2150
- value
2151
- }
2152
- }
2153
- file_path: property(attribute: "file_path") {
2154
- ... on Value {
2155
- value
2156
- }
2157
- }
2158
- previews_status: property(attribute: $previewsStatusAttribute) {
2159
- ... on Value {
2160
- value
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
+ }
2161
2292
  }
2162
- }
2163
- library {
2164
- behavior
2165
- }
2166
2293
  }
2167
- }
2168
- }
2169
- ${RecordIdentityFragmentDoc}`;
2294
+ ${RecordIdentityFragmentDoc}`;
2170
2295
  /**
2171
2296
  * __useGetFileDataQuery__
2172
2297
  *
@@ -2193,32 +2318,36 @@ export function useGetFileDataLazyQuery(baseOptions) {
2193
2318
  const options = { ...defaultOptions, ...baseOptions };
2194
2319
  return Apollo.useLazyQuery(GetFileDataDocument, options);
2195
2320
  }
2321
+ export function useGetFileDataSuspenseQuery(baseOptions) {
2322
+ const options = { ...defaultOptions, ...baseOptions };
2323
+ return Apollo.useSuspenseQuery(GetFileDataDocument, options);
2324
+ }
2196
2325
  export const RecordFormDocument = gql `
2197
2326
  query RECORD_FORM($libraryId: String!, $formId: String!, $recordId: String, $version: [ValueVersionInput!]) {
2198
- recordForm(
2199
- recordId: $recordId
2200
- libraryId: $libraryId
2201
- formId: $formId
2202
- version: $version
2203
- ) {
2204
- id
2205
- recordId
2206
- library {
2207
- id
2208
- }
2209
- dependencyAttributes {
2210
- id
2211
- }
2212
- elements {
2213
- ...RecordFormElement
2214
- }
2215
- sidePanel {
2216
- enable
2217
- isOpenByDefault
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
+ }
2218
2349
  }
2219
- }
2220
- }
2221
- ${RecordFormElementFragmentDoc}`;
2350
+ ${RecordFormElementFragmentDoc}`;
2222
2351
  /**
2223
2352
  * __useRecordFormQuery__
2224
2353
  *
@@ -2246,27 +2375,31 @@ export function useRecordFormLazyQuery(baseOptions) {
2246
2375
  const options = { ...defaultOptions, ...baseOptions };
2247
2376
  return Apollo.useLazyQuery(RecordFormDocument, options);
2248
2377
  }
2378
+ export function useRecordFormSuspenseQuery(baseOptions) {
2379
+ const options = { ...defaultOptions, ...baseOptions };
2380
+ return Apollo.useSuspenseQuery(RecordFormDocument, options);
2381
+ }
2249
2382
  export const RecordUpdateDocument = gql `
2250
2383
  subscription RECORD_UPDATE($filters: RecordUpdateFilterInput) {
2251
- recordUpdate(filters: $filters) {
2252
- record {
2253
- ...RecordIdentity
2254
- modified_by: property(attribute: "modified_by") {
2255
- ... on LinkValue {
2256
- value {
2257
- ...RecordIdentity
2258
- }
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
+ }
2259
2401
  }
2260
- }
2261
- }
2262
- updatedValues {
2263
- attribute
2264
- value {
2265
- ...ValueDetails
2266
- }
2267
2402
  }
2268
- }
2269
- }
2270
2403
  ${RecordIdentityFragmentDoc}
2271
2404
  ${ValueDetailsFragmentDoc}`;
2272
2405
  /**
@@ -2289,11 +2422,51 @@ export function useRecordUpdateSubscription(baseOptions) {
2289
2422
  const options = { ...defaultOptions, ...baseOptions };
2290
2423
  return Apollo.useSubscription(RecordUpdateDocument, options);
2291
2424
  }
2425
+ export const GetRecordsFromLibraryDocument = gql `
2426
+ query getRecordsFromLibrary($libraryId: ID!, $pagination: RecordsPagination, $filters: [RecordFilterInput]) {
2427
+ records(library: $libraryId, filters: $filters, pagination: $pagination) {
2428
+ totalCount
2429
+ list {
2430
+ ...RecordIdentity
2431
+ }
2432
+ }
2433
+ }
2434
+ ${RecordIdentityFragmentDoc}`;
2435
+ /**
2436
+ * __useGetRecordsFromLibraryQuery__
2437
+ *
2438
+ * To run a query within a React component, call `useGetRecordsFromLibraryQuery` and pass it any options that fit your needs.
2439
+ * When your component renders, `useGetRecordsFromLibraryQuery` returns an object from Apollo Client that contains loading, error, and data properties
2440
+ * you can use to render your UI.
2441
+ *
2442
+ * @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;
2443
+ *
2444
+ * @example
2445
+ * const { data, loading, error } = useGetRecordsFromLibraryQuery({
2446
+ * variables: {
2447
+ * libraryId: // value for 'libraryId'
2448
+ * pagination: // value for 'pagination'
2449
+ * filters: // value for 'filters'
2450
+ * },
2451
+ * });
2452
+ */
2453
+ export function useGetRecordsFromLibraryQuery(baseOptions) {
2454
+ const options = { ...defaultOptions, ...baseOptions };
2455
+ return Apollo.useQuery(GetRecordsFromLibraryDocument, options);
2456
+ }
2457
+ export function useGetRecordsFromLibraryLazyQuery(baseOptions) {
2458
+ const options = { ...defaultOptions, ...baseOptions };
2459
+ return Apollo.useLazyQuery(GetRecordsFromLibraryDocument, options);
2460
+ }
2461
+ export function useGetRecordsFromLibrarySuspenseQuery(baseOptions) {
2462
+ const options = { ...defaultOptions, ...baseOptions };
2463
+ return Apollo.useSuspenseQuery(GetRecordsFromLibraryDocument, options);
2464
+ }
2292
2465
  export const IndexRecordsDocument = gql `
2293
2466
  mutation INDEX_RECORDS($libraryId: String!, $records: [String!]) {
2294
- indexRecords(libraryId: $libraryId, records: $records)
2295
- }
2296
- `;
2467
+ indexRecords(libraryId: $libraryId, records: $records)
2468
+ }
2469
+ `;
2297
2470
  /**
2298
2471
  * __useIndexRecordsMutation__
2299
2472
  *
@@ -2318,9 +2491,9 @@ export function useIndexRecordsMutation(baseOptions) {
2318
2491
  }
2319
2492
  export const CancelTaskDocument = gql `
2320
2493
  mutation CANCEL_TASK($taskId: ID!) {
2321
- cancelTask(taskId: $taskId)
2322
- }
2323
- `;
2494
+ cancelTask(taskId: $taskId)
2495
+ }
2496
+ `;
2324
2497
  /**
2325
2498
  * __useCancelTaskMutation__
2326
2499
  *
@@ -2344,11 +2517,11 @@ export function useCancelTaskMutation(baseOptions) {
2344
2517
  }
2345
2518
  export const CheckTreeExistenceDocument = gql `
2346
2519
  query CHECK_TREE_EXISTENCE($id: [ID!]) {
2347
- trees(filters: {id: $id}) {
2348
- totalCount
2349
- }
2350
- }
2351
- `;
2520
+ trees(filters: {id: $id}) {
2521
+ totalCount
2522
+ }
2523
+ }
2524
+ `;
2352
2525
  /**
2353
2526
  * __useCheckTreeExistenceQuery__
2354
2527
  *
@@ -2373,13 +2546,17 @@ export function useCheckTreeExistenceLazyQuery(baseOptions) {
2373
2546
  const options = { ...defaultOptions, ...baseOptions };
2374
2547
  return Apollo.useLazyQuery(CheckTreeExistenceDocument, options);
2375
2548
  }
2549
+ export function useCheckTreeExistenceSuspenseQuery(baseOptions) {
2550
+ const options = { ...defaultOptions, ...baseOptions };
2551
+ return Apollo.useSuspenseQuery(CheckTreeExistenceDocument, options);
2552
+ }
2376
2553
  export const DeleteTreeDocument = gql `
2377
2554
  mutation DELETE_TREE($id: ID!) {
2378
- deleteTree(id: $id) {
2379
- id
2380
- }
2381
- }
2382
- `;
2555
+ deleteTree(id: $id) {
2556
+ id
2557
+ }
2558
+ }
2559
+ `;
2383
2560
  /**
2384
2561
  * __useDeleteTreeMutation__
2385
2562
  *
@@ -2403,13 +2580,13 @@ export function useDeleteTreeMutation(baseOptions) {
2403
2580
  }
2404
2581
  export const GetTreeByIdDocument = gql `
2405
2582
  query GET_TREE_BY_ID($id: [ID!]) {
2406
- trees(filters: {id: $id}) {
2407
- list {
2408
- ...TreeDetails
2583
+ trees(filters: {id: $id}) {
2584
+ list {
2585
+ ...TreeDetails
2586
+ }
2587
+ }
2409
2588
  }
2410
- }
2411
- }
2412
- ${TreeDetailsFragmentDoc}`;
2589
+ ${TreeDetailsFragmentDoc}`;
2413
2590
  /**
2414
2591
  * __useGetTreeByIdQuery__
2415
2592
  *
@@ -2434,31 +2611,35 @@ export function useGetTreeByIdLazyQuery(baseOptions) {
2434
2611
  const options = { ...defaultOptions, ...baseOptions };
2435
2612
  return Apollo.useLazyQuery(GetTreeByIdDocument, options);
2436
2613
  }
2614
+ export function useGetTreeByIdSuspenseQuery(baseOptions) {
2615
+ const options = { ...defaultOptions, ...baseOptions };
2616
+ return Apollo.useSuspenseQuery(GetTreeByIdDocument, options);
2617
+ }
2437
2618
  export const GetTreeLibrariesDocument = gql `
2438
2619
  query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) {
2439
- trees(filters: {id: $treeId, library: $library}) {
2440
- totalCount
2441
- list {
2442
- id
2443
- behavior
2444
- system
2445
- libraries {
2446
- library {
2447
- id
2448
- label
2449
- behavior
2450
- system
2451
- }
2452
- settings {
2453
- allowMultiplePositions
2454
- allowedChildren
2455
- allowedAtRoot
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
+ }
2456
2640
  }
2457
- }
2458
2641
  }
2459
- }
2460
- }
2461
- `;
2642
+ `;
2462
2643
  /**
2463
2644
  * __useGetTreeLibrariesQuery__
2464
2645
  *
@@ -2484,15 +2665,19 @@ export function useGetTreeLibrariesLazyQuery(baseOptions) {
2484
2665
  const options = { ...defaultOptions, ...baseOptions };
2485
2666
  return Apollo.useLazyQuery(GetTreeLibrariesDocument, options);
2486
2667
  }
2668
+ export function useGetTreeLibrariesSuspenseQuery(baseOptions) {
2669
+ const options = { ...defaultOptions, ...baseOptions };
2670
+ return Apollo.useSuspenseQuery(GetTreeLibrariesDocument, options);
2671
+ }
2487
2672
  export const GetTreesDocument = gql `
2488
2673
  query GET_TREES {
2489
- trees {
2490
- list {
2491
- ...TreeLight
2674
+ trees {
2675
+ list {
2676
+ ...TreeLight
2677
+ }
2678
+ }
2492
2679
  }
2493
- }
2494
- }
2495
- ${TreeLightFragmentDoc}`;
2680
+ ${TreeLightFragmentDoc}`;
2496
2681
  /**
2497
2682
  * __useGetTreesQuery__
2498
2683
  *
@@ -2516,13 +2701,17 @@ export function useGetTreesLazyQuery(baseOptions) {
2516
2701
  const options = { ...defaultOptions, ...baseOptions };
2517
2702
  return Apollo.useLazyQuery(GetTreesDocument, options);
2518
2703
  }
2704
+ export function useGetTreesSuspenseQuery(baseOptions) {
2705
+ const options = { ...defaultOptions, ...baseOptions };
2706
+ return Apollo.useSuspenseQuery(GetTreesDocument, options);
2707
+ }
2519
2708
  export const SaveTreeDocument = gql `
2520
2709
  mutation SAVE_TREE($tree: TreeInput!) {
2521
- saveTree(tree: $tree) {
2522
- ...TreeDetails
2523
- }
2524
- }
2525
- ${TreeDetailsFragmentDoc}`;
2710
+ saveTree(tree: $tree) {
2711
+ ...TreeDetails
2712
+ }
2713
+ }
2714
+ ${TreeDetailsFragmentDoc}`;
2526
2715
  /**
2527
2716
  * __useSaveTreeMutation__
2528
2717
  *
@@ -2545,15 +2734,20 @@ export function useSaveTreeMutation(baseOptions) {
2545
2734
  return Apollo.useMutation(SaveTreeDocument, options);
2546
2735
  }
2547
2736
  export const TreeNodeChildrenDocument = gql `
2548
- query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination) {
2549
- treeNodeChildren(treeId: $treeId, node: $node, pagination: $pagination) {
2550
- totalCount
2551
- list {
2552
- ...TreeNodeChild
2737
+ 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
+ }
2553
2749
  }
2554
- }
2555
- }
2556
- ${TreeNodeChildFragmentDoc}`;
2750
+ ${TreeNodeChildFragmentDoc}`;
2557
2751
  /**
2558
2752
  * __useTreeNodeChildrenQuery__
2559
2753
  *
@@ -2569,6 +2763,7 @@ export const TreeNodeChildrenDocument = gql `
2569
2763
  * treeId: // value for 'treeId'
2570
2764
  * node: // value for 'node'
2571
2765
  * pagination: // value for 'pagination'
2766
+ * childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
2572
2767
  * },
2573
2768
  * });
2574
2769
  */
@@ -2580,14 +2775,18 @@ export function useTreeNodeChildrenLazyQuery(baseOptions) {
2580
2775
  const options = { ...defaultOptions, ...baseOptions };
2581
2776
  return Apollo.useLazyQuery(TreeNodeChildrenDocument, options);
2582
2777
  }
2778
+ export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
2779
+ const options = { ...defaultOptions, ...baseOptions };
2780
+ return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
2781
+ }
2583
2782
  export const GetUserDataDocument = gql `
2584
2783
  query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
2585
- userData(keys: $keys, global: $global) {
2586
- global
2587
- data
2588
- }
2589
- }
2590
- `;
2784
+ userData(keys: $keys, global: $global) {
2785
+ global
2786
+ data
2787
+ }
2788
+ }
2789
+ `;
2591
2790
  /**
2592
2791
  * __useGetUserDataQuery__
2593
2792
  *
@@ -2613,14 +2812,18 @@ export function useGetUserDataLazyQuery(baseOptions) {
2613
2812
  const options = { ...defaultOptions, ...baseOptions };
2614
2813
  return Apollo.useLazyQuery(GetUserDataDocument, options);
2615
2814
  }
2815
+ export function useGetUserDataSuspenseQuery(baseOptions) {
2816
+ const options = { ...defaultOptions, ...baseOptions };
2817
+ return Apollo.useSuspenseQuery(GetUserDataDocument, options);
2818
+ }
2616
2819
  export const SaveUserDataDocument = gql `
2617
2820
  mutation SAVE_USER_DATA($key: String!, $value: Any, $global: Boolean!) {
2618
- saveUserData(key: $key, value: $value, global: $global) {
2619
- global
2620
- data
2621
- }
2622
- }
2623
- `;
2821
+ saveUserData(key: $key, value: $value, global: $global) {
2822
+ global
2823
+ data
2824
+ }
2825
+ }
2826
+ `;
2624
2827
  /**
2625
2828
  * __useSaveUserDataMutation__
2626
2829
  *
@@ -2646,16 +2849,16 @@ export function useSaveUserDataMutation(baseOptions) {
2646
2849
  }
2647
2850
  export const DeleteValueDocument = gql `
2648
2851
  mutation DELETE_VALUE($library: ID!, $recordId: ID!, $attribute: ID!, $value: ValueInput) {
2649
- deleteValue(
2650
- library: $library
2651
- recordId: $recordId
2652
- attribute: $attribute
2653
- value: $value
2654
- ) {
2655
- ...ValueDetails
2656
- }
2657
- }
2658
- ${ValueDetailsFragmentDoc}`;
2852
+ deleteValue(
2853
+ library: $library
2854
+ recordId: $recordId
2855
+ attribute: $attribute
2856
+ value: $value
2857
+ ) {
2858
+ ...ValueDetails
2859
+ }
2860
+ }
2861
+ ${ValueDetailsFragmentDoc}`;
2659
2862
  /**
2660
2863
  * __useDeleteValueMutation__
2661
2864
  *
@@ -2682,15 +2885,15 @@ export function useDeleteValueMutation(baseOptions) {
2682
2885
  }
2683
2886
  export const RunActionsListAndFormatOnValueDocument = gql `
2684
2887
  query RUN_ACTIONS_LIST_AND_FORMAT_ON_VALUE($library: ID!, $value: ValueBatchInput, $version: [ValueVersionInput]) {
2685
- runActionsListAndFormatOnValue(
2686
- library: $library
2687
- value: $value
2688
- version: $version
2689
- ) {
2690
- ...ValueDetails
2691
- }
2692
- }
2693
- ${ValueDetailsFragmentDoc}`;
2888
+ runActionsListAndFormatOnValue(
2889
+ library: $library
2890
+ value: $value
2891
+ version: $version
2892
+ ) {
2893
+ ...ValueDetails
2894
+ }
2895
+ }
2896
+ ${ValueDetailsFragmentDoc}`;
2694
2897
  /**
2695
2898
  * __useRunActionsListAndFormatOnValueQuery__
2696
2899
  *
@@ -2717,27 +2920,31 @@ export function useRunActionsListAndFormatOnValueLazyQuery(baseOptions) {
2717
2920
  const options = { ...defaultOptions, ...baseOptions };
2718
2921
  return Apollo.useLazyQuery(RunActionsListAndFormatOnValueDocument, options);
2719
2922
  }
2923
+ export function useRunActionsListAndFormatOnValueSuspenseQuery(baseOptions) {
2924
+ const options = { ...defaultOptions, ...baseOptions };
2925
+ return Apollo.useSuspenseQuery(RunActionsListAndFormatOnValueDocument, options);
2926
+ }
2720
2927
  export const SaveValueBatchDocument = gql `
2721
2928
  mutation SAVE_VALUE_BATCH($library: ID!, $recordId: ID!, $version: [ValueVersionInput!], $values: [ValueBatchInput!]!, $deleteEmpty: Boolean) {
2722
- saveValueBatch(
2723
- library: $library
2724
- recordId: $recordId
2725
- version: $version
2726
- values: $values
2727
- deleteEmpty: $deleteEmpty
2728
- ) {
2729
- values {
2730
- ...ValueDetails
2731
- }
2732
- errors {
2733
- type
2734
- attribute
2735
- input
2736
- message
2737
- }
2738
- }
2739
- }
2740
- ${ValueDetailsFragmentDoc}`;
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}`;
2741
2948
  /**
2742
2949
  * __useSaveValueBatchMutation__
2743
2950
  *
@@ -2765,12 +2972,12 @@ export function useSaveValueBatchMutation(baseOptions) {
2765
2972
  }
2766
2973
  export const DeleteViewDocument = gql `
2767
2974
  mutation DELETE_VIEW($viewId: String!) {
2768
- deleteView(viewId: $viewId) {
2769
- id
2770
- library
2771
- }
2772
- }
2773
- `;
2975
+ deleteView(viewId: $viewId) {
2976
+ id
2977
+ library
2978
+ }
2979
+ }
2980
+ `;
2774
2981
  /**
2775
2982
  * __useDeleteViewMutation__
2776
2983
  *
@@ -2794,11 +3001,11 @@ export function useDeleteViewMutation(baseOptions) {
2794
3001
  }
2795
3002
  export const GetViewDocument = gql `
2796
3003
  query GET_VIEW($viewId: String!) {
2797
- view(viewId: $viewId) {
2798
- ...ViewDetails
2799
- }
2800
- }
2801
- ${ViewDetailsFragmentDoc}`;
3004
+ view(viewId: $viewId) {
3005
+ ...ViewDetails
3006
+ }
3007
+ }
3008
+ ${ViewDetailsFragmentDoc}`;
2802
3009
  /**
2803
3010
  * __useGetViewQuery__
2804
3011
  *
@@ -2823,16 +3030,20 @@ export function useGetViewLazyQuery(baseOptions) {
2823
3030
  const options = { ...defaultOptions, ...baseOptions };
2824
3031
  return Apollo.useLazyQuery(GetViewDocument, options);
2825
3032
  }
3033
+ export function useGetViewSuspenseQuery(baseOptions) {
3034
+ const options = { ...defaultOptions, ...baseOptions };
3035
+ return Apollo.useSuspenseQuery(GetViewDocument, options);
3036
+ }
2826
3037
  export const GetViewsListDocument = gql `
2827
3038
  query GET_VIEWS_LIST($libraryId: String!) {
2828
- views(library: $libraryId) {
2829
- totalCount
2830
- list {
2831
- ...ViewDetails
3039
+ views(library: $libraryId) {
3040
+ totalCount
3041
+ list {
3042
+ ...ViewDetails
3043
+ }
3044
+ }
2832
3045
  }
2833
- }
2834
- }
2835
- ${ViewDetailsFragmentDoc}`;
3046
+ ${ViewDetailsFragmentDoc}`;
2836
3047
  /**
2837
3048
  * __useGetViewsListQuery__
2838
3049
  *
@@ -2857,13 +3068,17 @@ export function useGetViewsListLazyQuery(baseOptions) {
2857
3068
  const options = { ...defaultOptions, ...baseOptions };
2858
3069
  return Apollo.useLazyQuery(GetViewsListDocument, options);
2859
3070
  }
3071
+ export function useGetViewsListSuspenseQuery(baseOptions) {
3072
+ const options = { ...defaultOptions, ...baseOptions };
3073
+ return Apollo.useSuspenseQuery(GetViewsListDocument, options);
3074
+ }
2860
3075
  export const SaveViewDocument = gql `
2861
3076
  mutation SAVE_VIEW($view: ViewInput!) {
2862
- saveView(view: $view) {
2863
- ...ViewDetails
2864
- }
2865
- }
2866
- ${ViewDetailsFragmentDoc}`;
3077
+ saveView(view: $view) {
3078
+ ...ViewDetails
3079
+ }
3080
+ }
3081
+ ${ViewDetailsFragmentDoc}`;
2867
3082
  /**
2868
3083
  * __useSaveViewMutation__
2869
3084
  *
@@ -2887,13 +3102,13 @@ export function useSaveViewMutation(baseOptions) {
2887
3102
  }
2888
3103
  export const GetAttributesByLibWithPermissionsDocument = gql `
2889
3104
  query getAttributesByLibWithPermissions($library: String!) {
2890
- attributes(filters: {libraries: [$library]}) {
2891
- list {
2892
- ...AttributesByLibAttributeWithPermissions
3105
+ attributes(filters: {libraries: [$library]}) {
3106
+ list {
3107
+ ...AttributesByLibAttributeWithPermissions
3108
+ }
3109
+ }
2893
3110
  }
2894
- }
2895
- }
2896
- ${AttributesByLibAttributeWithPermissionsFragmentDoc}`;
3111
+ ${AttributesByLibAttributeWithPermissionsFragmentDoc}`;
2897
3112
  /**
2898
3113
  * __useGetAttributesByLibWithPermissionsQuery__
2899
3114
  *
@@ -2918,22 +3133,26 @@ export function useGetAttributesByLibWithPermissionsLazyQuery(baseOptions) {
2918
3133
  const options = { ...defaultOptions, ...baseOptions };
2919
3134
  return Apollo.useLazyQuery(GetAttributesByLibWithPermissionsDocument, options);
2920
3135
  }
3136
+ export function useGetAttributesByLibWithPermissionsSuspenseQuery(baseOptions) {
3137
+ const options = { ...defaultOptions, ...baseOptions };
3138
+ return Apollo.useSuspenseQuery(GetAttributesByLibWithPermissionsDocument, options);
3139
+ }
2921
3140
  export const ExplorerAttributesDocument = gql `
2922
3141
  query ExplorerAttributes($ids: [ID!]) {
2923
- attributes(filters: {ids: $ids}) {
2924
- list {
2925
- id
2926
- type
2927
- format
2928
- label
2929
- permissions {
2930
- access_attribute
2931
- }
2932
- ...LinkAttributeDetails
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
+ }
2933
3154
  }
2934
- }
2935
- }
2936
- ${LinkAttributeDetailsFragmentDoc}`;
3155
+ ${LinkAttributeDetailsFragmentDoc}`;
2937
3156
  /**
2938
3157
  * __useExplorerAttributesQuery__
2939
3158
  *
@@ -2958,21 +3177,25 @@ export function useExplorerAttributesLazyQuery(baseOptions) {
2958
3177
  const options = { ...defaultOptions, ...baseOptions };
2959
3178
  return Apollo.useLazyQuery(ExplorerAttributesDocument, options);
2960
3179
  }
3180
+ export function useExplorerAttributesSuspenseQuery(baseOptions) {
3181
+ const options = { ...defaultOptions, ...baseOptions };
3182
+ return Apollo.useSuspenseQuery(ExplorerAttributesDocument, options);
3183
+ }
2961
3184
  export const ExplorerLinkAttributeDocument = gql `
2962
3185
  query ExplorerLinkAttribute($id: ID!) {
2963
- attributes(filters: {ids: [$id]}) {
2964
- list {
2965
- id
2966
- multiple_values
2967
- permissions {
2968
- access_attribute
2969
- edit_value
2970
- }
2971
- ...LinkAttributeDetails
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
+ }
2972
3197
  }
2973
- }
2974
- }
2975
- ${LinkAttributeDetailsFragmentDoc}`;
3198
+ ${LinkAttributeDetailsFragmentDoc}`;
2976
3199
  /**
2977
3200
  * __useExplorerLinkAttributeQuery__
2978
3201
  *
@@ -2997,37 +3220,41 @@ export function useExplorerLinkAttributeLazyQuery(baseOptions) {
2997
3220
  const options = { ...defaultOptions, ...baseOptions };
2998
3221
  return Apollo.useLazyQuery(ExplorerLinkAttributeDocument, options);
2999
3222
  }
3223
+ export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
3224
+ const options = { ...defaultOptions, ...baseOptions };
3225
+ return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
3226
+ }
3000
3227
  export const ExplorerLibraryDataDocument = gql `
3001
3228
  query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
3002
- records(
3003
- library: $libraryId
3004
- filters: $filters
3005
- pagination: $pagination
3006
- multipleSort: $multipleSort
3007
- searchQuery: $searchQuery
3008
- ) {
3009
- totalCount
3010
- list {
3011
- ...RecordIdentity
3012
- active
3013
- permissions {
3014
- create_record
3015
- delete_record
3016
- }
3017
- properties(attributeIds: $attributeIds) {
3018
- attributeId
3019
- attributeProperties {
3020
- ...AttributeProperties
3021
- }
3022
- values {
3023
- ...PropertyValue
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
+ }
3024
3254
  }
3025
- }
3026
3255
  }
3027
- }
3028
- }
3029
3256
  ${RecordIdentityFragmentDoc}
3030
- ${AttributePropertiesFragmentDoc}
3257
+ ${AttributePropertiesFragmentDoc}
3031
3258
  ${PropertyValueFragmentDoc}`;
3032
3259
  /**
3033
3260
  * __useExplorerLibraryDataQuery__
@@ -3058,27 +3285,31 @@ export function useExplorerLibraryDataLazyQuery(baseOptions) {
3058
3285
  const options = { ...defaultOptions, ...baseOptions };
3059
3286
  return Apollo.useLazyQuery(ExplorerLibraryDataDocument, options);
3060
3287
  }
3288
+ export function useExplorerLibraryDataSuspenseQuery(baseOptions) {
3289
+ const options = { ...defaultOptions, ...baseOptions };
3290
+ return Apollo.useSuspenseQuery(ExplorerLibraryDataDocument, options);
3291
+ }
3061
3292
  export const ExplorerLinkDataDocument = gql `
3062
3293
  query ExplorerLinkData($attributeIds: [ID!]!, $parentLibraryId: ID!, $parentRecordId: String, $linkAttributeId: ID!) {
3063
- records(
3064
- library: $parentLibraryId
3065
- filters: [{field: "id", condition: EQUAL, value: $parentRecordId}]
3066
- ) {
3067
- list {
3068
- id
3069
- whoAmI {
3070
- id
3071
- library {
3072
- 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
+ }
3073
3310
  }
3074
- }
3075
- property(attribute: $linkAttributeId) {
3076
- ...LinkProperty
3077
- }
3078
3311
  }
3079
- }
3080
- }
3081
- ${LinkPropertyFragmentDoc}`;
3312
+ ${LinkPropertyFragmentDoc}`;
3082
3313
  /**
3083
3314
  * __useExplorerLinkDataQuery__
3084
3315
  *
@@ -3106,18 +3337,22 @@ export function useExplorerLinkDataLazyQuery(baseOptions) {
3106
3337
  const options = { ...defaultOptions, ...baseOptions };
3107
3338
  return Apollo.useLazyQuery(ExplorerLinkDataDocument, options);
3108
3339
  }
3340
+ export function useExplorerLinkDataSuspenseQuery(baseOptions) {
3341
+ const options = { ...defaultOptions, ...baseOptions };
3342
+ return Apollo.useSuspenseQuery(ExplorerLinkDataDocument, options);
3343
+ }
3109
3344
  export const GetLibraryAttributesDocument = gql `
3110
3345
  query GetLibraryAttributes($libraryId: ID!) {
3111
- libraries(filters: {id: [$libraryId]}) {
3112
- list {
3113
- id
3114
- attributes {
3115
- ...LibraryAttribute
3116
- }
3346
+ libraries(filters: {id: [$libraryId]}) {
3347
+ list {
3348
+ id
3349
+ attributes {
3350
+ ...LibraryAttribute
3351
+ }
3352
+ }
3353
+ }
3117
3354
  }
3118
- }
3119
- }
3120
- ${LibraryAttributeFragmentDoc}`;
3355
+ ${LibraryAttributeFragmentDoc}`;
3121
3356
  /**
3122
3357
  * __useGetLibraryAttributesQuery__
3123
3358
  *
@@ -3142,17 +3377,21 @@ export function useGetLibraryAttributesLazyQuery(baseOptions) {
3142
3377
  const options = { ...defaultOptions, ...baseOptions };
3143
3378
  return Apollo.useLazyQuery(GetLibraryAttributesDocument, options);
3144
3379
  }
3380
+ export function useGetLibraryAttributesSuspenseQuery(baseOptions) {
3381
+ const options = { ...defaultOptions, ...baseOptions };
3382
+ return Apollo.useSuspenseQuery(GetLibraryAttributesDocument, options);
3383
+ }
3145
3384
  export const ExplorerLibraryDetailsDocument = gql `
3146
3385
  query ExplorerLibraryDetails($libraryId: ID!) {
3147
- libraries(filters: {id: [$libraryId]}) {
3148
- list {
3149
- id
3150
- label
3151
- behavior
3386
+ libraries(filters: {id: [$libraryId]}) {
3387
+ list {
3388
+ id
3389
+ label
3390
+ behavior
3391
+ }
3392
+ }
3152
3393
  }
3153
- }
3154
- }
3155
- `;
3394
+ `;
3156
3395
  /**
3157
3396
  * __useExplorerLibraryDetailsQuery__
3158
3397
  *
@@ -3177,15 +3416,19 @@ export function useExplorerLibraryDetailsLazyQuery(baseOptions) {
3177
3416
  const options = { ...defaultOptions, ...baseOptions };
3178
3417
  return Apollo.useLazyQuery(ExplorerLibraryDetailsDocument, options);
3179
3418
  }
3419
+ export function useExplorerLibraryDetailsSuspenseQuery(baseOptions) {
3420
+ const options = { ...defaultOptions, ...baseOptions };
3421
+ return Apollo.useSuspenseQuery(ExplorerLibraryDetailsDocument, options);
3422
+ }
3180
3423
  export const ExplorerSelectionIdsDocument = gql `
3181
3424
  query ExplorerSelectionIds($libraryId: ID!, $filters: [RecordFilterInput]) {
3182
- records(library: $libraryId, filters: $filters) {
3183
- list {
3184
- id
3425
+ records(library: $libraryId, filters: $filters) {
3426
+ list {
3427
+ id
3428
+ }
3429
+ }
3185
3430
  }
3186
- }
3187
- }
3188
- `;
3431
+ `;
3189
3432
  /**
3190
3433
  * __useExplorerSelectionIdsQuery__
3191
3434
  *
@@ -3211,19 +3454,23 @@ export function useExplorerSelectionIdsLazyQuery(baseOptions) {
3211
3454
  const options = { ...defaultOptions, ...baseOptions };
3212
3455
  return Apollo.useLazyQuery(ExplorerSelectionIdsDocument, options);
3213
3456
  }
3457
+ export function useExplorerSelectionIdsSuspenseQuery(baseOptions) {
3458
+ const options = { ...defaultOptions, ...baseOptions };
3459
+ return Apollo.useSuspenseQuery(ExplorerSelectionIdsDocument, options);
3460
+ }
3214
3461
  export const MeDocument = gql `
3215
3462
  query Me {
3216
- me {
3217
- id
3218
- whoAmI {
3219
- id
3220
- library {
3221
- id
3222
- }
3463
+ me {
3464
+ id
3465
+ whoAmI {
3466
+ id
3467
+ library {
3468
+ id
3469
+ }
3470
+ }
3471
+ }
3223
3472
  }
3224
- }
3225
- }
3226
- `;
3473
+ `;
3227
3474
  /**
3228
3475
  * __useMeQuery__
3229
3476
  *
@@ -3247,13 +3494,17 @@ export function useMeLazyQuery(baseOptions) {
3247
3494
  const options = { ...defaultOptions, ...baseOptions };
3248
3495
  return Apollo.useLazyQuery(MeDocument, options);
3249
3496
  }
3497
+ export function useMeSuspenseQuery(baseOptions) {
3498
+ const options = { ...defaultOptions, ...baseOptions };
3499
+ return Apollo.useSuspenseQuery(MeDocument, options);
3500
+ }
3250
3501
  export const UpdateViewDocument = gql `
3251
3502
  mutation UpdateView($view: ViewInputPartial!) {
3252
- updateView(view: $view) {
3253
- ...ViewDetails
3254
- }
3255
- }
3256
- ${ViewDetailsFragmentDoc}`;
3503
+ updateView(view: $view) {
3504
+ ...ViewDetails
3505
+ }
3506
+ }
3507
+ ${ViewDetailsFragmentDoc}`;
3257
3508
  /**
3258
3509
  * __useUpdateViewMutation__
3259
3510
  *
@@ -3275,16 +3526,67 @@ export function useUpdateViewMutation(baseOptions) {
3275
3526
  const options = { ...defaultOptions, ...baseOptions };
3276
3527
  return Apollo.useMutation(UpdateViewDocument, options);
3277
3528
  }
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
+ }
3278
3580
  export const TreeDataQueryDocument = gql `
3279
3581
  query TreeDataQuery($treeId: ID!) {
3280
- trees(filters: {id: [$treeId]}) {
3281
- list {
3282
- id
3283
- label
3582
+ trees(filters: {id: [$treeId]}) {
3583
+ list {
3584
+ id
3585
+ label
3586
+ }
3587
+ }
3284
3588
  }
3285
- }
3286
- }
3287
- `;
3589
+ `;
3288
3590
  /**
3289
3591
  * __useTreeDataQueryQuery__
3290
3592
  *
@@ -3309,4 +3611,8 @@ export function useTreeDataQueryLazyQuery(baseOptions) {
3309
3611
  const options = { ...defaultOptions, ...baseOptions };
3310
3612
  return Apollo.useLazyQuery(TreeDataQueryDocument, options);
3311
3613
  }
3614
+ export function useTreeDataQuerySuspenseQuery(baseOptions) {
3615
+ const options = { ...defaultOptions, ...baseOptions };
3616
+ return Apollo.useSuspenseQuery(TreeDataQueryDocument, options);
3617
+ }
3312
3618
  //# sourceMappingURL=index.js.map