@leav/ui 0.4.0-c10dd58e → 0.4.0-c689c2a2

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