@leav/ui 0.4.0-72d37f7 → 0.4.0-7a3b9e94

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 (154) hide show
  1. package/README.md +1 -0
  2. package/dist/__mocks__/common/form.d.ts +632 -0
  3. package/dist/__mocks__/common/form.js +27 -22
  4. package/dist/__mocks__/common/form.js.map +1 -1
  5. package/dist/_gqlTypes/index.d.ts +3181 -2089
  6. package/dist/_gqlTypes/index.js +1529 -1246
  7. package/dist/_gqlTypes/index.js.map +1 -1
  8. package/dist/_queries/records/getRecordFormQuery.js +10 -5
  9. package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
  10. package/dist/_queries/trees/treeNodeChildrenQuery.js +12 -2
  11. package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
  12. package/dist/components/Explorer/DataView.js +4 -4
  13. package/dist/components/Explorer/DataView.js.map +1 -1
  14. package/dist/components/Explorer/Explorer.d.ts +4 -1
  15. package/dist/components/Explorer/Explorer.js +3 -2
  16. package/dist/components/Explorer/Explorer.js.map +1 -1
  17. package/dist/components/Explorer/ExplorerToolbar.d.ts +2 -1
  18. package/dist/components/Explorer/ExplorerToolbar.js +5 -4
  19. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  20. package/dist/components/Explorer/_queries/useExplorerData.js +2 -2
  21. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  22. package/dist/components/Explorer/_types.d.ts +4 -1
  23. package/dist/components/Explorer/_types.js.map +1 -1
  24. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
  25. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +13 -6
  26. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  27. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +4 -0
  28. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -1
  29. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  30. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  31. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +59 -27
  32. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  33. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +14 -8
  34. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  35. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +6 -0
  36. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +7 -1
  37. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  38. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +15 -2
  39. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +47 -24
  40. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  41. package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.d.ts +13 -0
  42. package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.js +119 -0
  43. package/dist/components/RecordEdition/EditRecordContent/hooks/useFetchVisibleFormValue.js.map +1 -0
  44. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +12 -0
  45. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +39 -0
  46. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +1 -0
  47. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +2 -2
  48. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +3 -5
  49. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  50. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +25 -5
  51. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
  52. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.d.ts +1 -1
  53. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +1 -3
  54. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
  55. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +9 -8
  56. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  57. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js +2 -2
  58. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js.map +1 -1
  59. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.d.ts +3 -2
  60. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js +109 -13
  61. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js.map +1 -1
  62. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +0 -2
  63. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +63 -72
  64. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  65. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +2 -1
  66. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  67. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -1
  68. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +2 -1
  69. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  70. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +1 -0
  71. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.d.ts +1 -1
  72. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +24 -19
  73. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  74. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.d.ts +2 -1
  75. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +2 -2
  76. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -1
  77. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/{useDisplayTreeNode.d.ts → TreeNodeList.d.ts} +4 -4
  78. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +5 -0
  79. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -0
  80. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.d.ts +16 -4
  81. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +12 -13
  82. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
  83. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +3 -2
  84. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +46 -55
  85. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  86. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js +4 -4
  87. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
  88. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +3 -3
  89. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +8 -8
  90. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
  91. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +6 -1
  92. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +5 -1
  93. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  94. package/dist/components/RecordEdition/index.d.ts +1 -0
  95. package/dist/components/RecordEdition/index.js +1 -0
  96. package/dist/components/RecordEdition/index.js.map +1 -1
  97. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.d.ts +2 -1
  98. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +2 -2
  99. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  100. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +5 -3
  101. package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -3
  102. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  103. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +3 -1
  104. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +18 -23
  105. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  106. package/dist/components/SelectTreeNode/_types.d.ts +17 -0
  107. package/dist/components/SelectTreeNode/_types.js +2 -0
  108. package/dist/components/SelectTreeNode/_types.js.map +1 -0
  109. package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.d.ts → SelectTreeNodeModalOld/SelectTreeNodeModalOld.d.ts} +1 -1
  110. package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.js → SelectTreeNodeModalOld/SelectTreeNodeModalOld.js} +4 -2
  111. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -0
  112. package/dist/components/SelectTreeNodeModalOld/index.d.ts +1 -0
  113. package/dist/components/{SelectTreeNodeModal → SelectTreeNodeModalOld}/index.js +1 -1
  114. package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -0
  115. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  116. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  117. package/dist/components/index.d.ts +1 -1
  118. package/dist/components/index.js +1 -1
  119. package/dist/components/index.js.map +1 -1
  120. package/dist/hooks/index.d.ts +2 -0
  121. package/dist/hooks/index.js +2 -0
  122. package/dist/hooks/index.js.map +1 -1
  123. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +2 -1
  124. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +2 -13
  125. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  126. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +2 -1
  127. package/dist/hooks/useIFrameMessenger/messageHandlers.js +3 -0
  128. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
  129. package/dist/hooks/useIFrameMessenger/schema.d.ts +21 -0
  130. package/dist/hooks/useIFrameMessenger/schema.js +76 -0
  131. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -0
  132. package/dist/hooks/useIFrameMessenger/types.d.ts +31 -5
  133. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  134. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +9 -1
  135. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +51 -20
  136. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  137. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.d.ts +7 -0
  138. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +13 -0
  139. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -0
  140. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +13 -0
  141. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js +6 -0
  142. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -0
  143. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +13 -0
  144. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +13 -0
  145. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -0
  146. package/package.json +22 -6
  147. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.d.ts +0 -3
  148. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js +0 -7
  149. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js.map +0 -1
  150. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/useDisplayTreeNode.js +0 -8
  151. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/useDisplayTreeNode.js.map +0 -1
  152. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +0 -1
  153. package/dist/components/SelectTreeNodeModal/index.d.ts +0 -1
  154. package/dist/components/SelectTreeNodeModal/index.js.map +0 -1
@@ -141,7 +141,6 @@ export var LogAction;
141
141
  LogAction["PERMISSION_SAVE"] = "PERMISSION_SAVE";
142
142
  LogAction["RECORD_DELETE"] = "RECORD_DELETE";
143
143
  LogAction["RECORD_SAVE"] = "RECORD_SAVE";
144
- LogAction["SDO_LOG_EXPORT_RECORD"] = "SDO_LOG_EXPORT_RECORD";
145
144
  LogAction["TASKS_DELETE"] = "TASKS_DELETE";
146
145
  LogAction["TREE_ADD_ELEMENT"] = "TREE_ADD_ELEMENT";
147
146
  LogAction["TREE_DELETE"] = "TREE_DELETE";
@@ -269,6 +268,13 @@ export var RecordFilterOperator;
269
268
  RecordFilterOperator["OPEN_BRACKET"] = "OPEN_BRACKET";
270
269
  RecordFilterOperator["OR"] = "OR";
271
270
  })(RecordFilterOperator || (RecordFilterOperator = {}));
271
+ export var RecordPermissionsActions;
272
+ (function (RecordPermissionsActions) {
273
+ RecordPermissionsActions["access_record"] = "access_record";
274
+ RecordPermissionsActions["create_record"] = "create_record";
275
+ RecordPermissionsActions["delete_record"] = "delete_record";
276
+ RecordPermissionsActions["edit_record"] = "edit_record";
277
+ })(RecordPermissionsActions || (RecordPermissionsActions = {}));
272
278
  export var SortOrder;
273
279
  (function (SortOrder) {
274
280
  SortOrder["asc"] = "asc";
@@ -335,696 +341,711 @@ export var ViewTypes;
335
341
  })(ViewTypes || (ViewTypes = {}));
336
342
  export const RecordIdentityFragmentDoc = gql `
337
343
  fragment RecordIdentity on Record {
338
- id
339
- whoAmI {
340
- id
341
- label
342
- subLabel
343
- color
344
- library {
345
- id
346
- label
347
- }
348
- preview
349
- }
350
- }
351
- `;
344
+ id
345
+ whoAmI {
346
+ id
347
+ label
348
+ subLabel
349
+ color
350
+ library {
351
+ id
352
+ label
353
+ }
354
+ preview
355
+ }
356
+ }
357
+ `;
352
358
  export const DetailsApplicationFragmentDoc = gql `
353
359
  fragment DetailsApplication on Application {
354
- id
355
- label
356
- type
357
- description
358
- endpoint
359
- url
360
- color
361
- icon {
362
- ...RecordIdentity
363
- }
364
- module
365
- permissions {
366
- access_application
367
- admin_application
368
- }
369
- settings
370
- }
371
- ${RecordIdentityFragmentDoc}`;
360
+ id
361
+ label
362
+ type
363
+ description
364
+ endpoint
365
+ url
366
+ color
367
+ icon {
368
+ ...RecordIdentity
369
+ }
370
+ module
371
+ permissions {
372
+ access_application
373
+ admin_application
374
+ }
375
+ settings
376
+ }
377
+ ${RecordIdentityFragmentDoc}`;
372
378
  export const AttributeDetailsFragmentDoc = gql `
373
379
  fragment AttributeDetails on Attribute {
374
- id
375
- type
376
- format
377
- system
378
- readonly
379
- label
380
- description
381
- multiple_values
382
- multi_link_display_option
383
- metadata_fields {
384
- id
385
- label
386
- type
387
- format
388
- }
389
- versions_conf {
390
- versionable
391
- mode
392
- profile {
393
- id
394
- label
395
- trees {
396
380
  id
381
+ type
382
+ format
383
+ system
384
+ readonly
397
385
  label
398
- }
399
- }
400
- }
401
- libraries {
402
- id
403
- label
404
- }
405
- ... on StandardAttribute {
406
- unique
407
- }
408
- ... on LinkAttribute {
409
- linked_library {
410
- id
411
- label
412
- }
413
- reverse_link
414
- }
415
- ... on TreeAttribute {
416
- linked_tree {
417
- id
418
- label
419
- }
420
- }
421
- }
422
- `;
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
+ `;
423
429
  export const AttributesByLibLinkAttributeFragmentDoc = gql `
424
430
  fragment AttributesByLibLinkAttribute on LinkAttribute {
425
- linked_library {
426
- id
427
- }
428
- }
429
- `;
431
+ linked_library {
432
+ id
433
+ }
434
+ }
435
+ `;
430
436
  export const AttributesByLibAttributeFragmentDoc = gql `
431
437
  fragment AttributesByLibAttribute on Attribute {
432
- id
433
- type
434
- format
435
- label
436
- multiple_values
437
- system
438
- readonly
439
- ...AttributesByLibLinkAttribute
440
- ... on TreeAttribute {
441
- linked_tree {
442
- id
443
- label
444
- libraries {
445
- library {
446
- id
447
- label
448
- }
449
- }
450
- }
451
- }
452
- ... on StandardAttribute {
453
- embedded_fields {
454
- id
455
- format
456
- label
457
- }
458
- }
459
- }
460
- ${AttributesByLibLinkAttributeFragmentDoc}`;
438
+ id
439
+ type
440
+ format
441
+ label
442
+ multiple_values
443
+ system
444
+ readonly
445
+ ...AttributesByLibLinkAttribute
446
+ ... on TreeAttribute {
447
+ linked_tree {
448
+ id
449
+ label
450
+ libraries {
451
+ library {
452
+ id
453
+ label
454
+ }
455
+ }
456
+ }
457
+ }
458
+ ... on StandardAttribute {
459
+ embedded_fields {
460
+ id
461
+ format
462
+ label
463
+ }
464
+ }
465
+ }
466
+ ${AttributesByLibLinkAttributeFragmentDoc}`;
467
+ export const ValuesVersionDetailsFragmentDoc = gql `
468
+ fragment ValuesVersionDetails on ValueVersion {
469
+ treeId
470
+ treeNode {
471
+ id
472
+ record {
473
+ id
474
+ whoAmI {
475
+ id
476
+ label
477
+ library {
478
+ id
479
+ }
480
+ }
481
+ }
482
+ }
483
+ }
484
+ `;
485
+ export const ValueDetailsFragmentDoc = gql `
486
+ fragment ValueDetails on GenericValue {
487
+ id_value
488
+ isInherited
489
+ isCalculated
490
+ modified_at
491
+ modified_by {
492
+ ...RecordIdentity
493
+ }
494
+ created_at
495
+ created_by {
496
+ ...RecordIdentity
497
+ }
498
+ version {
499
+ ...ValuesVersionDetails
500
+ }
501
+ attribute {
502
+ id
503
+ format
504
+ type
505
+ system
506
+ }
507
+ metadata {
508
+ name
509
+ value {
510
+ id_value
511
+ modified_at
512
+ modified_by {
513
+ ...RecordIdentity
514
+ }
515
+ created_at
516
+ created_by {
517
+ ...RecordIdentity
518
+ }
519
+ version {
520
+ ...ValuesVersionDetails
521
+ }
522
+ payload
523
+ raw_payload
524
+ }
525
+ }
526
+ ... on Value {
527
+ payload
528
+ raw_payload
529
+ value
530
+ raw_value
531
+ }
532
+ ... on LinkValue {
533
+ linkValue: payload {
534
+ ...RecordIdentity
535
+ }
536
+ }
537
+ ... on TreeValue {
538
+ treeValue: payload {
539
+ id
540
+ record {
541
+ ...RecordIdentity
542
+ }
543
+ ancestors {
544
+ record {
545
+ ...RecordIdentity
546
+ }
547
+ }
548
+ }
549
+ }
550
+ }
551
+ ${RecordIdentityFragmentDoc}
552
+ ${ValuesVersionDetailsFragmentDoc}`;
553
+ export const RecordFormElementValuesFragmentDoc = gql `
554
+ fragment RecordFormElementValues on FormElementValues {
555
+ id
556
+ valueError
557
+ values {
558
+ ...ValueDetails
559
+ }
560
+ }
561
+ ${ValueDetailsFragmentDoc}`;
461
562
  export const LibraryLightFragmentDoc = gql `
462
563
  fragment LibraryLight on Library {
463
- id
464
- label
465
- icon {
466
- id
467
- whoAmI {
468
- id
469
- library {
470
564
  id
471
- }
472
- preview
565
+ label
566
+ icon {
567
+ id
568
+ whoAmI {
569
+ id
570
+ library {
571
+ id
572
+ }
573
+ preview
574
+ }
575
+ }
473
576
  }
474
- }
475
- }
476
- `;
577
+ `;
477
578
  export const LibraryLinkAttributeDetailsFragmentDoc = gql `
478
579
  fragment LibraryLinkAttributeDetails on LinkAttribute {
479
- linked_library {
480
- id
481
- behavior
482
- }
483
- }
484
- `;
580
+ linked_library {
581
+ id
582
+ behavior
583
+ }
584
+ }
585
+ `;
485
586
  export const LibraryAttributesFragmentDoc = gql `
486
587
  fragment LibraryAttributes on Attribute {
487
- id
488
- label
489
- system
490
- type
491
- format
492
- ...LibraryLinkAttributeDetails
493
- }
494
- ${LibraryLinkAttributeDetailsFragmentDoc}`;
588
+ id
589
+ label
590
+ system
591
+ type
592
+ format
593
+ ...LibraryLinkAttributeDetails
594
+ }
595
+ ${LibraryLinkAttributeDetailsFragmentDoc}`;
495
596
  export const LibraryPreviewsSettingsFragmentDoc = gql `
496
597
  fragment LibraryPreviewsSettings on LibraryPreviewsSettings {
497
- label
498
- description
499
- system
500
- versions {
501
- background
502
- density
503
- sizes {
504
- name
505
- size
506
- }
507
- }
508
- }
509
- `;
598
+ label
599
+ description
600
+ system
601
+ versions {
602
+ background
603
+ density
604
+ sizes {
605
+ name
606
+ size
607
+ }
608
+ }
609
+ }
610
+ `;
510
611
  export const LibraryDetailsFragmentDoc = gql `
511
612
  fragment LibraryDetails on Library {
512
- id
513
- label
514
- behavior
515
- system
516
- label
517
- fullTextAttributes {
518
- id
519
- label
520
- }
521
- attributes {
522
- ...LibraryAttributes
523
- }
524
- permissions_conf {
525
- permissionTreeAttributes {
526
- id
527
- ... on TreeAttribute {
528
- linked_tree {
529
- id
530
- }
531
- }
532
- label
533
- }
534
- relation
535
- }
536
- recordIdentityConf {
537
- label
538
- subLabel
539
- color
540
- preview
541
- treeColorPreview
542
- }
543
- permissions {
544
- admin_library
545
- access_library
546
- access_record
547
- create_record
548
- edit_record
549
- delete_record
550
- }
551
- icon {
552
- ...RecordIdentity
553
- }
554
- previewsSettings {
555
- ...LibraryPreviewsSettings
556
- }
557
- }
558
- ${LibraryAttributesFragmentDoc}
559
- ${RecordIdentityFragmentDoc}
560
- ${LibraryPreviewsSettingsFragmentDoc}`;
561
- export const ValuesVersionDetailsFragmentDoc = gql `
562
- fragment ValuesVersionDetails on ValueVersion {
563
- treeId
564
- treeNode {
565
- id
566
- record {
567
- id
568
- whoAmI {
569
613
  id
570
614
  label
571
- library {
572
- id
615
+ behavior
616
+ system
617
+ label
618
+ fullTextAttributes {
619
+ id
620
+ label
573
621
  }
574
- }
575
- }
576
- }
577
- }
578
- `;
579
- export const ValueDetailsFragmentDoc = gql `
580
- fragment ValueDetails on GenericValue {
581
- id_value
582
- isInherited
583
- isCalculated
584
- modified_at
585
- modified_by {
586
- ...RecordIdentity
587
- }
588
- created_at
589
- created_by {
590
- ...RecordIdentity
591
- }
592
- version {
593
- ...ValuesVersionDetails
594
- }
595
- attribute {
596
- id
597
- format
598
- type
599
- system
600
- }
601
- metadata {
602
- name
603
- value {
604
- id_value
605
- modified_at
606
- modified_by {
607
- ...RecordIdentity
608
- }
609
- created_at
610
- created_by {
611
- ...RecordIdentity
612
- }
613
- version {
614
- ...ValuesVersionDetails
615
- }
616
- payload
617
- raw_payload
618
- }
619
- }
620
- ... on Value {
621
- payload
622
- raw_payload
623
- value
624
- raw_value
625
- }
626
- ... on LinkValue {
627
- linkValue: payload {
628
- ...RecordIdentity
629
- }
630
- }
631
- ... on TreeValue {
632
- treeValue: payload {
633
- id
634
- record {
635
- ...RecordIdentity
636
- }
637
- ancestors {
638
- record {
639
- ...RecordIdentity
622
+ attributes {
623
+ ...LibraryAttributes
624
+ }
625
+ permissions_conf {
626
+ permissionTreeAttributes {
627
+ id
628
+ ... on TreeAttribute {
629
+ linked_tree {
630
+ id
631
+ }
632
+ }
633
+ label
634
+ }
635
+ relation
636
+ }
637
+ recordIdentityConf {
638
+ label
639
+ subLabel
640
+ color
641
+ preview
642
+ treeColorPreview
643
+ }
644
+ permissions {
645
+ admin_library
646
+ access_library
647
+ access_record
648
+ create_record
649
+ edit_record
650
+ delete_record
651
+ }
652
+ icon {
653
+ ...RecordIdentity
654
+ }
655
+ previewsSettings {
656
+ ...LibraryPreviewsSettings
640
657
  }
641
- }
642
658
  }
643
- }
644
- }
659
+ ${LibraryAttributesFragmentDoc}
645
660
  ${RecordIdentityFragmentDoc}
646
- ${ValuesVersionDetailsFragmentDoc}`;
661
+ ${LibraryPreviewsSettingsFragmentDoc}`;
647
662
  export const StandardValuesListFragmentFragmentDoc = gql `
648
663
  fragment StandardValuesListFragment on StandardValuesListConf {
649
- ... on StandardStringValuesListConf {
650
- enable
651
- allowFreeEntry
652
- allowListUpdate
653
- values
654
- }
655
- ... on StandardDateRangeValuesListConf {
656
- enable
657
- allowFreeEntry
658
- allowListUpdate
659
- dateRangeValues: values {
660
- from
661
- to
662
- }
663
- }
664
- }
665
- `;
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
+ `;
666
681
  export const RecordFormAttributeFragmentDoc = gql `
667
682
  fragment RecordFormAttribute on Attribute {
668
- id
669
- label
670
- description
671
- type
672
- format
673
- system
674
- readonly
675
- required
676
- multiple_values
677
- compute
678
- permissions(record: {id: $recordId, library: $libraryId}) {
679
- access_attribute
680
- edit_value
681
- }
682
- versions_conf {
683
- versionable
684
- profile {
685
- id
686
- trees {
687
683
  id
688
684
  label
689
- }
690
- }
691
- }
692
- metadata_fields {
693
- id
694
- label
695
- description
696
- type
697
- format
698
- system
699
- readonly
700
- multiple_values
701
- permissions(record: {id: $recordId, library: $libraryId}) {
702
- access_attribute
703
- edit_value
704
- }
705
- values_list {
706
- ...StandardValuesListFragment
707
- }
708
- metadata_fields {
709
- id
710
- }
711
- }
712
- ... on StandardAttribute {
713
- values_list {
714
- ...StandardValuesListFragment
715
- }
716
- character_limit
717
- }
718
- ... on LinkAttribute {
719
- linked_library {
720
- id
721
- label
722
- behavior
723
- permissions {
724
- create_record
725
- }
726
- }
727
- linkValuesList: values_list {
728
- enable
729
- allowFreeEntry
730
- allowListUpdate
731
- values {
732
- ...RecordIdentity
733
- }
734
- }
735
- }
736
- ... on TreeAttribute {
737
- linked_tree {
738
- id
739
- label
740
- }
741
- treeValuesList: values_list {
742
- enable
743
- allowFreeEntry
744
- allowListUpdate
745
- values {
746
- id
747
- record {
748
- ...RecordIdentity
685
+ description
686
+ type
687
+ format
688
+ system
689
+ readonly
690
+ required
691
+ multiple_values
692
+ compute
693
+ permissions(record: {id: $recordId, library: $libraryId}) {
694
+ access_attribute
695
+ edit_value
749
696
  }
750
- ancestors {
751
- record {
752
- ...RecordIdentity
753
- }
697
+ versions_conf {
698
+ versionable
699
+ profile {
700
+ id
701
+ trees {
702
+ id
703
+ label
704
+ }
705
+ }
706
+ }
707
+ metadata_fields {
708
+ id
709
+ label
710
+ description
711
+ type
712
+ format
713
+ system
714
+ readonly
715
+ multiple_values
716
+ permissions(record: {id: $recordId, library: $libraryId}) {
717
+ access_attribute
718
+ edit_value
719
+ }
720
+ values_list {
721
+ ...StandardValuesListFragment
722
+ }
723
+ metadata_fields {
724
+ id
725
+ }
726
+ }
727
+ ... on StandardAttribute {
728
+ values_list {
729
+ ...StandardValuesListFragment
730
+ }
731
+ character_limit
732
+ }
733
+ ... on LinkAttribute {
734
+ linked_library {
735
+ id
736
+ label
737
+ behavior
738
+ permissions {
739
+ create_record
740
+ }
741
+ }
742
+ linkValuesList: values_list {
743
+ enable
744
+ allowFreeEntry
745
+ allowListUpdate
746
+ values {
747
+ ...RecordIdentity
748
+ }
749
+ }
750
+ }
751
+ ... on TreeAttribute {
752
+ linked_tree {
753
+ id
754
+ label
755
+ }
756
+ treeValuesList: values_list {
757
+ enable
758
+ allowFreeEntry
759
+ allowListUpdate
760
+ values {
761
+ id
762
+ record {
763
+ ...RecordIdentity
764
+ }
765
+ ancestors {
766
+ record {
767
+ ...RecordIdentity
768
+ }
769
+ }
770
+ }
771
+ }
754
772
  }
755
- }
756
773
  }
757
- }
758
- }
759
774
  ${StandardValuesListFragmentFragmentDoc}
760
775
  ${RecordIdentityFragmentDoc}`;
761
- export const RecordFormElementFragmentDoc = gql `
762
- fragment RecordFormElement on FormElementWithValues {
763
- id
764
- containerId
765
- uiElementType
766
- type
767
- valueError
768
- values {
769
- ...ValueDetails
770
- }
771
- attribute {
772
- ...RecordFormAttribute
773
- }
774
- settings {
775
- key
776
- value
777
- }
778
- }
779
- ${ValueDetailsFragmentDoc}
776
+ export const JoinLibraryContextFragmentDoc = gql `
777
+ fragment JoinLibraryContext on FormElementJoinLibraryContext {
778
+ mandatoryAttribute {
779
+ ...RecordFormAttribute
780
+ }
781
+ }
780
782
  ${RecordFormAttributeFragmentDoc}`;
783
+ export const RecordFormElementFragmentDoc = gql `
784
+ fragment RecordFormElement on FormElement {
785
+ id
786
+ containerId
787
+ uiElementType
788
+ type
789
+ attribute {
790
+ ...RecordFormAttribute
791
+ }
792
+ settings {
793
+ key
794
+ value
795
+ }
796
+ joinLibraryContext {
797
+ ...JoinLibraryContext
798
+ }
799
+ }
800
+ ${RecordFormAttributeFragmentDoc}
801
+ ${JoinLibraryContextFragmentDoc}`;
781
802
  export const TreeLightFragmentDoc = gql `
782
803
  fragment TreeLight on Tree {
783
- id
784
- label
785
- }
786
- `;
804
+ id
805
+ label
806
+ }
807
+ `;
787
808
  export const TreeDetailsFragmentDoc = gql `
788
809
  fragment TreeDetails on Tree {
789
- id
790
- label
791
- behavior
792
- system
793
- libraries {
794
- library {
795
- id
796
- label
797
- }
798
- settings {
799
- allowMultiplePositions
800
- allowedAtRoot
801
- allowedChildren
802
- }
803
- }
804
- }
805
- `;
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
+ `;
806
827
  export const TreeNodeChildFragmentDoc = gql `
807
828
  fragment TreeNodeChild on TreeNodeLight {
808
- id
809
- order
810
- childrenCount
811
- record {
812
- ...RecordIdentity
813
- active: property(attribute: "active") {
814
- ... on Value {
815
- value
816
- }
817
- }
818
- }
819
- ancestors {
820
- id
821
- record {
822
- id
823
- library {
824
829
  id
825
- label
826
- }
827
- ...RecordIdentity
830
+ order
831
+ childrenCount
832
+ record {
833
+ ...RecordIdentity
834
+ active: property(attribute: "active") {
835
+ ... on Value {
836
+ value
837
+ }
838
+ }
839
+ }
840
+ ancestors {
841
+ id
842
+ record {
843
+ id
844
+ library {
845
+ id
846
+ label
847
+ }
848
+ ...RecordIdentity
849
+ }
850
+ }
851
+ permissions {
852
+ access_tree
853
+ detach
854
+ edit_children
855
+ }
828
856
  }
829
- }
830
- permissions {
831
- access_tree
832
- detach
833
- edit_children
834
- }
835
- }
836
- ${RecordIdentityFragmentDoc}`;
857
+ ${RecordIdentityFragmentDoc}`;
837
858
  export const ViewDetailsFilterFragmentDoc = gql `
838
859
  fragment ViewDetailsFilter on RecordFilter {
839
- field
840
- value
841
- tree {
842
- id
843
- label
844
- }
845
- condition
846
- operator
847
- }
848
- `;
860
+ field
861
+ value
862
+ tree {
863
+ id
864
+ label
865
+ }
866
+ condition
867
+ operator
868
+ }
869
+ `;
849
870
  export const ViewDetailsFragmentDoc = gql `
850
871
  fragment ViewDetails on View {
851
- id
852
- display {
853
- size
854
- type
855
- }
856
- shared
857
- created_by {
858
- id
859
- whoAmI {
860
- id
861
- label
862
- library {
863
872
  id
864
- }
865
- }
866
- }
867
- label
868
- description
869
- color
870
- filters {
871
- ...ViewDetailsFilter
872
- }
873
- sort {
874
- field
875
- order
876
- }
877
- valuesVersions {
878
- treeId
879
- treeNode {
880
- id
881
- record {
882
- ...RecordIdentity
883
- }
884
- }
885
- }
886
- attributes {
887
- id
888
- }
889
- }
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
+ }
890
911
  ${ViewDetailsFilterFragmentDoc}
891
912
  ${RecordIdentityFragmentDoc}`;
892
913
  export const AttributesByLibLinkAttributeWithPermissionsFragmentDoc = gql `
893
914
  fragment AttributesByLibLinkAttributeWithPermissions on LinkAttribute {
894
- linked_library {
895
- id
896
- }
897
- }
898
- `;
915
+ linked_library {
916
+ id
917
+ }
918
+ }
919
+ `;
899
920
  export const AttributesByLibAttributeWithPermissionsFragmentDoc = gql `
900
921
  fragment AttributesByLibAttributeWithPermissions on Attribute {
901
- id
902
- type
903
- format
904
- label
905
- multiple_values
906
- system
907
- readonly
908
- permissions {
909
- access_attribute
910
- }
911
- ...AttributesByLibLinkAttributeWithPermissions
912
- ... on TreeAttribute {
913
- linked_tree {
914
- id
915
- label
916
- libraries {
917
- library {
918
- id
919
- label
920
- }
921
- }
922
- }
923
- }
924
- ... on StandardAttribute {
925
- embedded_fields {
926
- id
927
- format
928
- label
929
- }
930
- }
931
- }
932
- ${AttributesByLibLinkAttributeWithPermissionsFragmentDoc}`;
922
+ id
923
+ type
924
+ format
925
+ label
926
+ multiple_values
927
+ system
928
+ readonly
929
+ permissions {
930
+ access_attribute
931
+ }
932
+ ...AttributesByLibLinkAttributeWithPermissions
933
+ ... on TreeAttribute {
934
+ linked_tree {
935
+ id
936
+ label
937
+ libraries {
938
+ library {
939
+ id
940
+ label
941
+ }
942
+ }
943
+ }
944
+ }
945
+ ... on StandardAttribute {
946
+ embedded_fields {
947
+ id
948
+ format
949
+ label
950
+ }
951
+ }
952
+ }
953
+ ${AttributesByLibLinkAttributeWithPermissionsFragmentDoc}`;
933
954
  export const LinkAttributeDetailsFragmentDoc = gql `
934
955
  fragment LinkAttributeDetails on LinkAttribute {
935
- label
936
- linked_library {
937
- id
938
- label
939
- }
940
- }
941
- `;
956
+ label
957
+ linked_library {
958
+ id
959
+ label
960
+ }
961
+ }
962
+ `;
942
963
  export const AttributePropertiesFragmentDoc = gql `
943
964
  fragment AttributeProperties on Attribute {
944
- id
945
- label
946
- type
947
- format
948
- multiple_values
949
- multi_link_display_option
950
- }
951
- `;
965
+ id
966
+ label
967
+ type
968
+ format
969
+ multiple_values
970
+ multi_link_display_option
971
+ }
972
+ `;
952
973
  export const PropertyValueFragmentDoc = gql `
953
974
  fragment PropertyValue on GenericValue {
954
- ... on Value {
955
- valuePayload: payload
956
- valueRawPayload: raw_payload
957
- }
958
- ... on LinkValue {
959
- linkPayload: payload {
960
- ...RecordIdentity
961
- }
962
- }
963
- ... on TreeValue {
964
- treePayload: payload {
965
- record {
966
- ...RecordIdentity
967
- }
968
- }
969
- }
970
- }
971
- ${RecordIdentityFragmentDoc}`;
975
+ ... on Value {
976
+ valuePayload: payload
977
+ valueRawPayload: raw_payload
978
+ }
979
+ ... on LinkValue {
980
+ linkPayload: payload {
981
+ ...RecordIdentity
982
+ }
983
+ }
984
+ ... on TreeValue {
985
+ treePayload: payload {
986
+ record {
987
+ ...RecordIdentity
988
+ }
989
+ }
990
+ }
991
+ }
992
+ ${RecordIdentityFragmentDoc}`;
972
993
  export const LinkPropertyFragmentDoc = gql `
973
994
  fragment LinkProperty on GenericValue {
974
- id_value
975
- ... on LinkValue {
976
- payload {
977
- ...RecordIdentity
978
- properties(attributeIds: $attributeIds) {
979
- attributeId
980
- attributeProperties {
981
- ...AttributeProperties
982
- }
983
- values {
984
- ...PropertyValue
995
+ id_value
996
+ ... on LinkValue {
997
+ payload {
998
+ ...RecordIdentity
999
+ properties(attributeIds: $attributeIds) {
1000
+ attributeId
1001
+ attributeProperties {
1002
+ ...AttributeProperties
1003
+ }
1004
+ values {
1005
+ ...PropertyValue
1006
+ }
1007
+ }
1008
+ }
985
1009
  }
986
- }
987
1010
  }
988
- }
989
- }
990
1011
  ${RecordIdentityFragmentDoc}
991
- ${AttributePropertiesFragmentDoc}
1012
+ ${AttributePropertiesFragmentDoc}
992
1013
  ${PropertyValueFragmentDoc}`;
993
1014
  export const LibraryAttributeLinkFragmentDoc = gql `
994
1015
  fragment LibraryAttributeLink on LinkAttribute {
995
- linked_library {
996
- id
997
- label
998
- attributes {
999
- id
1000
- type
1001
- format
1002
- label
1003
- }
1004
- }
1005
- }
1006
- `;
1016
+ linked_library {
1017
+ id
1018
+ label
1019
+ attributes {
1020
+ id
1021
+ type
1022
+ format
1023
+ label
1024
+ }
1025
+ }
1026
+ }
1027
+ `;
1007
1028
  export const LibraryAttributeFragmentDoc = gql `
1008
1029
  fragment LibraryAttribute on Attribute {
1009
- id
1010
- type
1011
- label
1012
- permissions {
1013
- access_attribute
1014
- }
1015
- ... on StandardAttribute {
1016
- format
1017
- }
1018
- ...LibraryAttributeLink
1019
- }
1020
- ${LibraryAttributeLinkFragmentDoc}`;
1030
+ id
1031
+ type
1032
+ label
1033
+ permissions {
1034
+ access_attribute
1035
+ }
1036
+ ... on StandardAttribute {
1037
+ format
1038
+ }
1039
+ ...LibraryAttributeLink
1040
+ }
1041
+ ${LibraryAttributeLinkFragmentDoc}`;
1021
1042
  export const CheckApplicationExistenceDocument = gql `
1022
1043
  query CHECK_APPLICATION_EXISTENCE($id: ID, $endpoint: String) {
1023
- applications(filters: {id: $id, endpoint: $endpoint}) {
1024
- totalCount
1025
- }
1026
- }
1027
- `;
1044
+ applications(filters: {id: $id, endpoint: $endpoint}) {
1045
+ totalCount
1046
+ }
1047
+ }
1048
+ `;
1028
1049
  /**
1029
1050
  * __useCheckApplicationExistenceQuery__
1030
1051
  *
@@ -1050,15 +1071,19 @@ export function useCheckApplicationExistenceLazyQuery(baseOptions) {
1050
1071
  const options = { ...defaultOptions, ...baseOptions };
1051
1072
  return Apollo.useLazyQuery(CheckApplicationExistenceDocument, options);
1052
1073
  }
1074
+ export function useCheckApplicationExistenceSuspenseQuery(baseOptions) {
1075
+ const options = { ...defaultOptions, ...baseOptions };
1076
+ return Apollo.useSuspenseQuery(CheckApplicationExistenceDocument, options);
1077
+ }
1053
1078
  export const GetApplicationByIdDocument = gql `
1054
1079
  query GET_APPLICATION_BY_ID($id: ID!) {
1055
- applications(filters: {id: $id}) {
1056
- list {
1057
- ...DetailsApplication
1080
+ applications(filters: {id: $id}) {
1081
+ list {
1082
+ ...DetailsApplication
1083
+ }
1084
+ }
1058
1085
  }
1059
- }
1060
- }
1061
- ${DetailsApplicationFragmentDoc}`;
1086
+ ${DetailsApplicationFragmentDoc}`;
1062
1087
  /**
1063
1088
  * __useGetApplicationByIdQuery__
1064
1089
  *
@@ -1083,15 +1108,19 @@ export function useGetApplicationByIdLazyQuery(baseOptions) {
1083
1108
  const options = { ...defaultOptions, ...baseOptions };
1084
1109
  return Apollo.useLazyQuery(GetApplicationByIdDocument, options);
1085
1110
  }
1111
+ export function useGetApplicationByIdSuspenseQuery(baseOptions) {
1112
+ const options = { ...defaultOptions, ...baseOptions };
1113
+ return Apollo.useSuspenseQuery(GetApplicationByIdDocument, options);
1114
+ }
1086
1115
  export const GetApplicationModulesDocument = gql `
1087
1116
  query GET_APPLICATION_MODULES {
1088
- applicationsModules {
1089
- id
1090
- description
1091
- version
1092
- }
1093
- }
1094
- `;
1117
+ applicationsModules {
1118
+ id
1119
+ description
1120
+ version
1121
+ }
1122
+ }
1123
+ `;
1095
1124
  /**
1096
1125
  * __useGetApplicationModulesQuery__
1097
1126
  *
@@ -1115,13 +1144,17 @@ export function useGetApplicationModulesLazyQuery(baseOptions) {
1115
1144
  const options = { ...defaultOptions, ...baseOptions };
1116
1145
  return Apollo.useLazyQuery(GetApplicationModulesDocument, options);
1117
1146
  }
1147
+ export function useGetApplicationModulesSuspenseQuery(baseOptions) {
1148
+ const options = { ...defaultOptions, ...baseOptions };
1149
+ return Apollo.useSuspenseQuery(GetApplicationModulesDocument, options);
1150
+ }
1118
1151
  export const SaveApplicationDocument = gql `
1119
1152
  mutation SAVE_APPLICATION($application: ApplicationInput!) {
1120
- saveApplication(application: $application) {
1121
- ...DetailsApplication
1122
- }
1123
- }
1124
- ${DetailsApplicationFragmentDoc}`;
1153
+ saveApplication(application: $application) {
1154
+ ...DetailsApplication
1155
+ }
1156
+ }
1157
+ ${DetailsApplicationFragmentDoc}`;
1125
1158
  /**
1126
1159
  * __useSaveApplicationMutation__
1127
1160
  *
@@ -1145,11 +1178,11 @@ export function useSaveApplicationMutation(baseOptions) {
1145
1178
  }
1146
1179
  export const CheckAttributeExistenceDocument = gql `
1147
1180
  query CHECK_ATTRIBUTE_EXISTENCE($id: ID!) {
1148
- attributes(filters: {id: $id}) {
1149
- totalCount
1150
- }
1151
- }
1152
- `;
1181
+ attributes(filters: {id: $id}) {
1182
+ totalCount
1183
+ }
1184
+ }
1185
+ `;
1153
1186
  /**
1154
1187
  * __useCheckAttributeExistenceQuery__
1155
1188
  *
@@ -1174,13 +1207,17 @@ export function useCheckAttributeExistenceLazyQuery(baseOptions) {
1174
1207
  const options = { ...defaultOptions, ...baseOptions };
1175
1208
  return Apollo.useLazyQuery(CheckAttributeExistenceDocument, options);
1176
1209
  }
1210
+ export function useCheckAttributeExistenceSuspenseQuery(baseOptions) {
1211
+ const options = { ...defaultOptions, ...baseOptions };
1212
+ return Apollo.useSuspenseQuery(CheckAttributeExistenceDocument, options);
1213
+ }
1177
1214
  export const DeleteAttributeDocument = gql `
1178
1215
  mutation DELETE_ATTRIBUTE($id: ID) {
1179
- deleteAttribute(id: $id) {
1180
- id
1181
- }
1182
- }
1183
- `;
1216
+ deleteAttribute(id: $id) {
1217
+ id
1218
+ }
1219
+ }
1220
+ `;
1184
1221
  /**
1185
1222
  * __useDeleteAttributeMutation__
1186
1223
  *
@@ -1204,13 +1241,13 @@ export function useDeleteAttributeMutation(baseOptions) {
1204
1241
  }
1205
1242
  export const GetAttributeByIdDocument = gql `
1206
1243
  query GET_ATTRIBUTE_BY_ID($id: ID) {
1207
- attributes(filters: {id: $id}) {
1208
- list {
1209
- ...AttributeDetails
1244
+ attributes(filters: {id: $id}) {
1245
+ list {
1246
+ ...AttributeDetails
1247
+ }
1248
+ }
1210
1249
  }
1211
- }
1212
- }
1213
- ${AttributeDetailsFragmentDoc}`;
1250
+ ${AttributeDetailsFragmentDoc}`;
1214
1251
  /**
1215
1252
  * __useGetAttributeByIdQuery__
1216
1253
  *
@@ -1235,15 +1272,19 @@ export function useGetAttributeByIdLazyQuery(baseOptions) {
1235
1272
  const options = { ...defaultOptions, ...baseOptions };
1236
1273
  return Apollo.useLazyQuery(GetAttributeByIdDocument, options);
1237
1274
  }
1275
+ export function useGetAttributeByIdSuspenseQuery(baseOptions) {
1276
+ const options = { ...defaultOptions, ...baseOptions };
1277
+ return Apollo.useSuspenseQuery(GetAttributeByIdDocument, options);
1278
+ }
1238
1279
  export const GetAttributesByLibDocument = gql `
1239
1280
  query GET_ATTRIBUTES_BY_LIB($library: String!) {
1240
- attributes(filters: {libraries: [$library]}) {
1241
- list {
1242
- ...AttributesByLibAttribute
1281
+ attributes(filters: {libraries: [$library]}) {
1282
+ list {
1283
+ ...AttributesByLibAttribute
1284
+ }
1285
+ }
1243
1286
  }
1244
- }
1245
- }
1246
- ${AttributesByLibAttributeFragmentDoc}`;
1287
+ ${AttributesByLibAttributeFragmentDoc}`;
1247
1288
  /**
1248
1289
  * __useGetAttributesByLibQuery__
1249
1290
  *
@@ -1268,20 +1309,24 @@ export function useGetAttributesByLibLazyQuery(baseOptions) {
1268
1309
  const options = { ...defaultOptions, ...baseOptions };
1269
1310
  return Apollo.useLazyQuery(GetAttributesByLibDocument, options);
1270
1311
  }
1312
+ export function useGetAttributesByLibSuspenseQuery(baseOptions) {
1313
+ const options = { ...defaultOptions, ...baseOptions };
1314
+ return Apollo.useSuspenseQuery(GetAttributesByLibDocument, options);
1315
+ }
1271
1316
  export const GetAttributesDocument = gql `
1272
1317
  query GET_ATTRIBUTES($pagination: Pagination, $sort: SortAttributes, $filters: AttributesFiltersInput) {
1273
- attributes(pagination: $pagination, sort: $sort, filters: $filters) {
1274
- totalCount
1275
- list {
1276
- id
1277
- label
1278
- type
1279
- format
1280
- system
1318
+ attributes(pagination: $pagination, sort: $sort, filters: $filters) {
1319
+ totalCount
1320
+ list {
1321
+ id
1322
+ label
1323
+ type
1324
+ format
1325
+ system
1326
+ }
1327
+ }
1281
1328
  }
1282
- }
1283
- }
1284
- `;
1329
+ `;
1285
1330
  /**
1286
1331
  * __useGetAttributesQuery__
1287
1332
  *
@@ -1308,16 +1353,20 @@ export function useGetAttributesLazyQuery(baseOptions) {
1308
1353
  const options = { ...defaultOptions, ...baseOptions };
1309
1354
  return Apollo.useLazyQuery(GetAttributesDocument, options);
1310
1355
  }
1356
+ export function useGetAttributesSuspenseQuery(baseOptions) {
1357
+ const options = { ...defaultOptions, ...baseOptions };
1358
+ return Apollo.useSuspenseQuery(GetAttributesDocument, options);
1359
+ }
1311
1360
  export const GetVersionProfilesDocument = gql `
1312
1361
  query GET_VERSION_PROFILES($filters: VersionProfilesFiltersInput, $sort: SortVersionProfilesInput) {
1313
- versionProfiles(filters: $filters, sort: $sort) {
1314
- list {
1315
- id
1316
- label
1362
+ versionProfiles(filters: $filters, sort: $sort) {
1363
+ list {
1364
+ id
1365
+ label
1366
+ }
1367
+ }
1317
1368
  }
1318
- }
1319
- }
1320
- `;
1369
+ `;
1321
1370
  /**
1322
1371
  * __useGetVersionProfilesQuery__
1323
1372
  *
@@ -1343,25 +1392,29 @@ export function useGetVersionProfilesLazyQuery(baseOptions) {
1343
1392
  const options = { ...defaultOptions, ...baseOptions };
1344
1393
  return Apollo.useLazyQuery(GetVersionProfilesDocument, options);
1345
1394
  }
1395
+ export function useGetVersionProfilesSuspenseQuery(baseOptions) {
1396
+ const options = { ...defaultOptions, ...baseOptions };
1397
+ return Apollo.useSuspenseQuery(GetVersionProfilesDocument, options);
1398
+ }
1346
1399
  export const GetVersionableAttributesByLibraryDocument = gql `
1347
1400
  query GET_VERSIONABLE_ATTRIBUTES_BY_LIBRARY($libraryId: String!) {
1348
- attributes(filters: {libraries: [$libraryId], versionable: true}) {
1349
- list {
1350
- id
1351
- versions_conf {
1352
- versionable
1353
- profile {
1354
- id
1355
- trees {
1356
- id
1357
- label
1358
- }
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
+ }
1359
1415
  }
1360
- }
1361
1416
  }
1362
- }
1363
- }
1364
- `;
1417
+ `;
1365
1418
  /**
1366
1419
  * __useGetVersionableAttributesByLibraryQuery__
1367
1420
  *
@@ -1386,13 +1439,17 @@ export function useGetVersionableAttributesByLibraryLazyQuery(baseOptions) {
1386
1439
  const options = { ...defaultOptions, ...baseOptions };
1387
1440
  return Apollo.useLazyQuery(GetVersionableAttributesByLibraryDocument, options);
1388
1441
  }
1442
+ export function useGetVersionableAttributesByLibrarySuspenseQuery(baseOptions) {
1443
+ const options = { ...defaultOptions, ...baseOptions };
1444
+ return Apollo.useSuspenseQuery(GetVersionableAttributesByLibraryDocument, options);
1445
+ }
1389
1446
  export const SaveAttributeDocument = gql `
1390
1447
  mutation SAVE_ATTRIBUTE($attribute: AttributeInput!) {
1391
- saveAttribute(attribute: $attribute) {
1392
- ...AttributeDetails
1393
- }
1394
- }
1395
- ${AttributeDetailsFragmentDoc}`;
1448
+ saveAttribute(attribute: $attribute) {
1449
+ ...AttributeDetails
1450
+ }
1451
+ }
1452
+ ${AttributeDetailsFragmentDoc}`;
1396
1453
  /**
1397
1454
  * __useSaveAttributeMutation__
1398
1455
  *
@@ -1416,9 +1473,9 @@ export function useSaveAttributeMutation(baseOptions) {
1416
1473
  }
1417
1474
  export const ExportDocument = gql `
1418
1475
  query EXPORT($library: ID!, $attributes: [ID!], $filters: [RecordFilterInput!]) {
1419
- export(library: $library, attributes: $attributes, filters: $filters)
1420
- }
1421
- `;
1476
+ export(library: $library, attributes: $attributes, filters: $filters)
1477
+ }
1478
+ `;
1422
1479
  /**
1423
1480
  * __useExportQuery__
1424
1481
  *
@@ -1445,13 +1502,17 @@ export function useExportLazyQuery(baseOptions) {
1445
1502
  const options = { ...defaultOptions, ...baseOptions };
1446
1503
  return Apollo.useLazyQuery(ExportDocument, options);
1447
1504
  }
1505
+ export function useExportSuspenseQuery(baseOptions) {
1506
+ const options = { ...defaultOptions, ...baseOptions };
1507
+ return Apollo.useSuspenseQuery(ExportDocument, options);
1508
+ }
1448
1509
  export const CreateDirectoryDocument = gql `
1449
1510
  mutation CREATE_DIRECTORY($library: String!, $nodeId: String!, $name: String!) {
1450
- createDirectory(library: $library, nodeId: $nodeId, name: $name) {
1451
- ...RecordIdentity
1452
- }
1453
- }
1454
- ${RecordIdentityFragmentDoc}`;
1511
+ createDirectory(library: $library, nodeId: $nodeId, name: $name) {
1512
+ ...RecordIdentity
1513
+ }
1514
+ }
1515
+ ${RecordIdentityFragmentDoc}`;
1455
1516
  /**
1456
1517
  * __useCreateDirectoryMutation__
1457
1518
  *
@@ -1477,15 +1538,15 @@ export function useCreateDirectoryMutation(baseOptions) {
1477
1538
  }
1478
1539
  export const ForcePreviewsGenerationDocument = gql `
1479
1540
  mutation FORCE_PREVIEWS_GENERATION($libraryId: ID!, $filters: [RecordFilterInput!], $recordIds: [ID!], $failedOnly: Boolean, $previewVersionSizeNames: [String!]) {
1480
- forcePreviewsGeneration(
1481
- libraryId: $libraryId
1482
- filters: $filters
1483
- recordIds: $recordIds
1484
- failedOnly: $failedOnly
1485
- previewVersionSizeNames: $previewVersionSizeNames
1486
- )
1487
- }
1488
- `;
1541
+ forcePreviewsGeneration(
1542
+ libraryId: $libraryId
1543
+ filters: $filters
1544
+ recordIds: $recordIds
1545
+ failedOnly: $failedOnly
1546
+ previewVersionSizeNames: $previewVersionSizeNames
1547
+ )
1548
+ }
1549
+ `;
1489
1550
  /**
1490
1551
  * __useForcePreviewsGenerationMutation__
1491
1552
  *
@@ -1513,53 +1574,53 @@ export function useForcePreviewsGenerationMutation(baseOptions) {
1513
1574
  }
1514
1575
  export const GetDirectoryDataDocument = gql `
1515
1576
  query GET_DIRECTORY_DATA($library: ID!, $directoryId: String!) {
1516
- records(
1517
- library: $library
1518
- filters: [{field: "id", value: $directoryId, condition: EQUAL}]
1519
- ) {
1520
- list {
1521
- ...RecordIdentity
1522
- created_at: property(attribute: "created_at") {
1523
- ... on Value {
1524
- value
1525
- }
1526
- }
1527
- created_by: property(attribute: "created_by") {
1528
- ... on LinkValue {
1529
- value {
1530
- ...RecordIdentity
1531
- }
1532
- }
1533
- }
1534
- modified_at: property(attribute: "modified_at") {
1535
- ... on Value {
1536
- value
1577
+ records(
1578
+ library: $library
1579
+ filters: [{field: "id", value: $directoryId, condition: EQUAL}]
1580
+ ) {
1581
+ list {
1582
+ ...RecordIdentity
1583
+ created_at: property(attribute: "created_at") {
1584
+ ... on Value {
1585
+ value
1586
+ }
1587
+ }
1588
+ created_by: property(attribute: "created_by") {
1589
+ ... on LinkValue {
1590
+ value {
1591
+ ...RecordIdentity
1592
+ }
1593
+ }
1594
+ }
1595
+ modified_at: property(attribute: "modified_at") {
1596
+ ... on Value {
1597
+ value
1598
+ }
1599
+ }
1600
+ modified_by: property(attribute: "modified_by") {
1601
+ ... on LinkValue {
1602
+ value {
1603
+ ...RecordIdentity
1604
+ }
1605
+ }
1606
+ }
1607
+ file_name: property(attribute: "file_name") {
1608
+ ... on Value {
1609
+ value
1610
+ }
1611
+ }
1612
+ file_path: property(attribute: "file_path") {
1613
+ ... on Value {
1614
+ value
1615
+ }
1616
+ }
1617
+ library {
1618
+ behavior
1619
+ }
1620
+ }
1537
1621
  }
1538
- }
1539
- modified_by: property(attribute: "modified_by") {
1540
- ... on LinkValue {
1541
- value {
1542
- ...RecordIdentity
1543
- }
1544
- }
1545
- }
1546
- file_name: property(attribute: "file_name") {
1547
- ... on Value {
1548
- value
1549
- }
1550
- }
1551
- file_path: property(attribute: "file_path") {
1552
- ... on Value {
1553
- value
1554
- }
1555
- }
1556
- library {
1557
- behavior
1558
- }
1559
1622
  }
1560
- }
1561
- }
1562
- ${RecordIdentityFragmentDoc}`;
1623
+ ${RecordIdentityFragmentDoc}`;
1563
1624
  /**
1564
1625
  * __useGetDirectoryDataQuery__
1565
1626
  *
@@ -1585,24 +1646,28 @@ export function useGetDirectoryDataLazyQuery(baseOptions) {
1585
1646
  const options = { ...defaultOptions, ...baseOptions };
1586
1647
  return Apollo.useLazyQuery(GetDirectoryDataDocument, options);
1587
1648
  }
1649
+ export function useGetDirectoryDataSuspenseQuery(baseOptions) {
1650
+ const options = { ...defaultOptions, ...baseOptions };
1651
+ return Apollo.useSuspenseQuery(GetDirectoryDataDocument, options);
1652
+ }
1588
1653
  export const UploadUpdateDocument = gql `
1589
1654
  subscription UPLOAD_UPDATE($filters: UploadFiltersInput) {
1590
- upload(filters: $filters) {
1591
- userId
1592
- progress {
1593
- length
1594
- transferred
1595
- speed
1596
- runtime
1597
- remaining
1598
- percentage
1599
- eta
1600
- delta
1601
- }
1602
- uid
1603
- }
1604
- }
1605
- `;
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
+ `;
1606
1671
  /**
1607
1672
  * __useUploadUpdateSubscription__
1608
1673
  *
@@ -1625,42 +1690,87 @@ export function useUploadUpdateSubscription(baseOptions) {
1625
1690
  }
1626
1691
  export const UploadDocument = gql `
1627
1692
  mutation UPLOAD($library: String!, $nodeId: String!, $files: [FileInput!]!) {
1628
- upload(library: $library, nodeId: $nodeId, files: $files) {
1629
- uid
1630
- record {
1631
- ...RecordIdentity
1693
+ upload(library: $library, nodeId: $nodeId, files: $files) {
1694
+ uid
1695
+ record {
1696
+ ...RecordIdentity
1697
+ }
1698
+ }
1632
1699
  }
1633
- }
1700
+ ${RecordIdentityFragmentDoc}`;
1701
+ /**
1702
+ * __useUploadMutation__
1703
+ *
1704
+ * To run a mutation, you first call `useUploadMutation` within a React component and pass it any options that fit your needs.
1705
+ * When your component renders, `useUploadMutation` returns a tuple that includes:
1706
+ * - A mutate function that you can call at any time to execute the mutation
1707
+ * - An object with fields that represent the current status of the mutation's execution
1708
+ *
1709
+ * @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;
1710
+ *
1711
+ * @example
1712
+ * const [uploadMutation, { data, loading, error }] = useUploadMutation({
1713
+ * variables: {
1714
+ * library: // value for 'library'
1715
+ * nodeId: // value for 'nodeId'
1716
+ * files: // value for 'files'
1717
+ * },
1718
+ * });
1719
+ */
1720
+ export function useUploadMutation(baseOptions) {
1721
+ const options = { ...defaultOptions, ...baseOptions };
1722
+ return Apollo.useMutation(UploadDocument, options);
1634
1723
  }
1635
- ${RecordIdentityFragmentDoc}`;
1724
+ export const GetRecordFormElementsValuesDocument = gql `
1725
+ query GET_RECORD_FORM_ELEMENTS_VALUES($recordId: String, $libraryId: String!, $formId: String!, $version: [ValueVersionInput!], $elementIds: [ID!]) {
1726
+ getRecordFormElementsValues(
1727
+ recordId: $recordId
1728
+ libraryId: $libraryId
1729
+ formId: $formId
1730
+ version: $version
1731
+ elementIds: $elementIds
1732
+ ) {
1733
+ ...RecordFormElementValues
1734
+ }
1735
+ }
1736
+ ${RecordFormElementValuesFragmentDoc}`;
1636
1737
  /**
1637
- * __useUploadMutation__
1738
+ * __useGetRecordFormElementsValuesQuery__
1638
1739
  *
1639
- * To run a mutation, you first call `useUploadMutation` within a React component and pass it any options that fit your needs.
1640
- * When your component renders, `useUploadMutation` returns a tuple that includes:
1641
- * - A mutate function that you can call at any time to execute the mutation
1642
- * - An object with fields that represent the current status of the mutation's execution
1740
+ * To run a query within a React component, call `useGetRecordFormElementsValuesQuery` and pass it any options that fit your needs.
1741
+ * When your component renders, `useGetRecordFormElementsValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
1742
+ * you can use to render your UI.
1643
1743
  *
1644
- * @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;
1744
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1645
1745
  *
1646
1746
  * @example
1647
- * const [uploadMutation, { data, loading, error }] = useUploadMutation({
1747
+ * const { data, loading, error } = useGetRecordFormElementsValuesQuery({
1648
1748
  * variables: {
1649
- * library: // value for 'library'
1650
- * nodeId: // value for 'nodeId'
1651
- * files: // value for 'files'
1749
+ * recordId: // value for 'recordId'
1750
+ * libraryId: // value for 'libraryId'
1751
+ * formId: // value for 'formId'
1752
+ * version: // value for 'version'
1753
+ * elementIds: // value for 'elementIds'
1652
1754
  * },
1653
1755
  * });
1654
1756
  */
1655
- export function useUploadMutation(baseOptions) {
1757
+ export function useGetRecordFormElementsValuesQuery(baseOptions) {
1656
1758
  const options = { ...defaultOptions, ...baseOptions };
1657
- return Apollo.useMutation(UploadDocument, options);
1759
+ return Apollo.useQuery(GetRecordFormElementsValuesDocument, options);
1760
+ }
1761
+ export function useGetRecordFormElementsValuesLazyQuery(baseOptions) {
1762
+ const options = { ...defaultOptions, ...baseOptions };
1763
+ return Apollo.useLazyQuery(GetRecordFormElementsValuesDocument, options);
1764
+ }
1765
+ export function useGetRecordFormElementsValuesSuspenseQuery(baseOptions) {
1766
+ const options = { ...defaultOptions, ...baseOptions };
1767
+ return Apollo.useSuspenseQuery(GetRecordFormElementsValuesDocument, options);
1658
1768
  }
1659
1769
  export const ImportExcelDocument = gql `
1660
1770
  mutation IMPORT_EXCEL($file: Upload!, $sheets: [SheetInput], $startAt: Int) {
1661
- importExcel(file: $file, sheets: $sheets, startAt: $startAt)
1662
- }
1663
- `;
1771
+ importExcel(file: $file, sheets: $sheets, startAt: $startAt)
1772
+ }
1773
+ `;
1664
1774
  /**
1665
1775
  * __useImportExcelMutation__
1666
1776
  *
@@ -1686,11 +1796,11 @@ export function useImportExcelMutation(baseOptions) {
1686
1796
  }
1687
1797
  export const CheckLibraryExistenceDocument = gql `
1688
1798
  query CHECK_LIBRARY_EXISTENCE($id: [ID!]) {
1689
- libraries(filters: {id: $id}) {
1690
- totalCount
1691
- }
1692
- }
1693
- `;
1799
+ libraries(filters: {id: $id}) {
1800
+ totalCount
1801
+ }
1802
+ }
1803
+ `;
1694
1804
  /**
1695
1805
  * __useCheckLibraryExistenceQuery__
1696
1806
  *
@@ -1715,13 +1825,17 @@ export function useCheckLibraryExistenceLazyQuery(baseOptions) {
1715
1825
  const options = { ...defaultOptions, ...baseOptions };
1716
1826
  return Apollo.useLazyQuery(CheckLibraryExistenceDocument, options);
1717
1827
  }
1828
+ export function useCheckLibraryExistenceSuspenseQuery(baseOptions) {
1829
+ const options = { ...defaultOptions, ...baseOptions };
1830
+ return Apollo.useSuspenseQuery(CheckLibraryExistenceDocument, options);
1831
+ }
1718
1832
  export const DeleteLibraryDocument = gql `
1719
1833
  mutation DELETE_LIBRARY($id: ID) {
1720
- deleteLibrary(id: $id) {
1721
- id
1722
- }
1723
- }
1724
- `;
1834
+ deleteLibrary(id: $id) {
1835
+ id
1836
+ }
1837
+ }
1838
+ `;
1725
1839
  /**
1726
1840
  * __useDeleteLibraryMutation__
1727
1841
  *
@@ -1745,13 +1859,13 @@ export function useDeleteLibraryMutation(baseOptions) {
1745
1859
  }
1746
1860
  export const GetLibrariesDocument = gql `
1747
1861
  query GET_LIBRARIES {
1748
- libraries {
1749
- list {
1750
- ...LibraryLight
1862
+ libraries {
1863
+ list {
1864
+ ...LibraryLight
1865
+ }
1866
+ }
1751
1867
  }
1752
- }
1753
- }
1754
- ${LibraryLightFragmentDoc}`;
1868
+ ${LibraryLightFragmentDoc}`;
1755
1869
  /**
1756
1870
  * __useGetLibrariesQuery__
1757
1871
  *
@@ -1775,15 +1889,19 @@ export function useGetLibrariesLazyQuery(baseOptions) {
1775
1889
  const options = { ...defaultOptions, ...baseOptions };
1776
1890
  return Apollo.useLazyQuery(GetLibrariesDocument, options);
1777
1891
  }
1892
+ export function useGetLibrariesSuspenseQuery(baseOptions) {
1893
+ const options = { ...defaultOptions, ...baseOptions };
1894
+ return Apollo.useSuspenseQuery(GetLibrariesDocument, options);
1895
+ }
1778
1896
  export const GetLibraryByIdDocument = gql `
1779
1897
  query GET_LIBRARY_BY_ID($id: [ID!]) {
1780
- libraries(filters: {id: $id}) {
1781
- list {
1782
- ...LibraryDetails
1898
+ libraries(filters: {id: $id}) {
1899
+ list {
1900
+ ...LibraryDetails
1901
+ }
1902
+ }
1783
1903
  }
1784
- }
1785
- }
1786
- ${LibraryDetailsFragmentDoc}`;
1904
+ ${LibraryDetailsFragmentDoc}`;
1787
1905
  /**
1788
1906
  * __useGetLibraryByIdQuery__
1789
1907
  *
@@ -1808,21 +1926,25 @@ export function useGetLibraryByIdLazyQuery(baseOptions) {
1808
1926
  const options = { ...defaultOptions, ...baseOptions };
1809
1927
  return Apollo.useLazyQuery(GetLibraryByIdDocument, options);
1810
1928
  }
1929
+ export function useGetLibraryByIdSuspenseQuery(baseOptions) {
1930
+ const options = { ...defaultOptions, ...baseOptions };
1931
+ return Apollo.useSuspenseQuery(GetLibraryByIdDocument, options);
1932
+ }
1811
1933
  export const GetLibraryPermissionsDocument = gql `
1812
1934
  query GET_LIBRARY_PERMISSIONS($libraryId: [ID!]) {
1813
- libraries(filters: {id: $libraryId}) {
1814
- list {
1815
- permissions {
1816
- access_library
1817
- access_record
1818
- create_record
1819
- edit_record
1820
- delete_record
1821
- }
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
+ }
1822
1946
  }
1823
- }
1824
- }
1825
- `;
1947
+ `;
1826
1948
  /**
1827
1949
  * __useGetLibraryPermissionsQuery__
1828
1950
  *
@@ -1847,30 +1969,34 @@ export function useGetLibraryPermissionsLazyQuery(baseOptions) {
1847
1969
  const options = { ...defaultOptions, ...baseOptions };
1848
1970
  return Apollo.useLazyQuery(GetLibraryPermissionsDocument, options);
1849
1971
  }
1972
+ export function useGetLibraryPermissionsSuspenseQuery(baseOptions) {
1973
+ const options = { ...defaultOptions, ...baseOptions };
1974
+ return Apollo.useSuspenseQuery(GetLibraryPermissionsDocument, options);
1975
+ }
1850
1976
  export const GetLibraryPreviewsSettingsDocument = gql `
1851
1977
  query GET_LIBRARY_PREVIEWS_SETTINGS($id: ID!) {
1852
- libraries(filters: {id: [$id]}) {
1853
- list {
1854
- id
1855
- label
1856
- behavior
1857
- previewsSettings {
1858
- description
1859
- label
1860
- system
1861
- versions {
1862
- background
1863
- density
1864
- sizes {
1865
- name
1866
- size
1867
- }
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
+ }
1868
1997
  }
1869
- }
1870
1998
  }
1871
- }
1872
- }
1873
- `;
1999
+ `;
1874
2000
  /**
1875
2001
  * __useGetLibraryPreviewsSettingsQuery__
1876
2002
  *
@@ -1895,13 +2021,17 @@ export function useGetLibraryPreviewsSettingsLazyQuery(baseOptions) {
1895
2021
  const options = { ...defaultOptions, ...baseOptions };
1896
2022
  return Apollo.useLazyQuery(GetLibraryPreviewsSettingsDocument, options);
1897
2023
  }
2024
+ export function useGetLibraryPreviewsSettingsSuspenseQuery(baseOptions) {
2025
+ const options = { ...defaultOptions, ...baseOptions };
2026
+ return Apollo.useSuspenseQuery(GetLibraryPreviewsSettingsDocument, options);
2027
+ }
1898
2028
  export const SaveLibraryDocument = gql `
1899
2029
  mutation saveLibrary($library: LibraryInput!) {
1900
- saveLibrary(library: $library) {
1901
- ...LibraryDetails
1902
- }
1903
- }
1904
- ${LibraryDetailsFragmentDoc}`;
2030
+ saveLibrary(library: $library) {
2031
+ ...LibraryDetails
2032
+ }
2033
+ }
2034
+ ${LibraryDetailsFragmentDoc}`;
1905
2035
  /**
1906
2036
  * __useSaveLibraryMutation__
1907
2037
  *
@@ -1925,12 +2055,12 @@ export function useSaveLibraryMutation(baseOptions) {
1925
2055
  }
1926
2056
  export const IsAllowedDocument = gql `
1927
2057
  query IS_ALLOWED($type: PermissionTypes!, $actions: [PermissionsActions!]!, $applyTo: ID, $target: PermissionTarget) {
1928
- isAllowed(type: $type, actions: $actions, applyTo: $applyTo, target: $target) {
1929
- name
1930
- allowed
1931
- }
1932
- }
1933
- `;
2058
+ isAllowed(type: $type, actions: $actions, applyTo: $applyTo, target: $target) {
2059
+ name
2060
+ allowed
2061
+ }
2062
+ }
2063
+ `;
1934
2064
  /**
1935
2065
  * __useIsAllowedQuery__
1936
2066
  *
@@ -1958,18 +2088,22 @@ export function useIsAllowedLazyQuery(baseOptions) {
1958
2088
  const options = { ...defaultOptions, ...baseOptions };
1959
2089
  return Apollo.useLazyQuery(IsAllowedDocument, options);
1960
2090
  }
2091
+ export function useIsAllowedSuspenseQuery(baseOptions) {
2092
+ const options = { ...defaultOptions, ...baseOptions };
2093
+ return Apollo.useSuspenseQuery(IsAllowedDocument, options);
2094
+ }
1961
2095
  export const ActivateRecordsDocument = gql `
1962
2096
  mutation ACTIVATE_RECORDS($libraryId: String!, $recordsIds: [String!], $filters: [RecordFilterInput!]) {
1963
- activateRecords(
1964
- recordsIds: $recordsIds
1965
- filters: $filters
1966
- libraryId: $libraryId
1967
- ) {
1968
- id
1969
- ...RecordIdentity
1970
- }
1971
- }
1972
- ${RecordIdentityFragmentDoc}`;
2097
+ activateRecords(
2098
+ recordsIds: $recordsIds
2099
+ filters: $filters
2100
+ libraryId: $libraryId
2101
+ ) {
2102
+ id
2103
+ ...RecordIdentity
2104
+ }
2105
+ }
2106
+ ${RecordIdentityFragmentDoc}`;
1973
2107
  /**
1974
2108
  * __useActivateRecordsMutation__
1975
2109
  *
@@ -1995,19 +2129,19 @@ export function useActivateRecordsMutation(baseOptions) {
1995
2129
  }
1996
2130
  export const CreateRecordDocument = gql `
1997
2131
  mutation CREATE_RECORD($library: ID!, $data: CreateRecordDataInput) {
1998
- createRecord(library: $library, data: $data) {
1999
- record {
2000
- ...RecordIdentity
2001
- }
2002
- valuesErrors {
2003
- type
2004
- attribute
2005
- input
2006
- message
2132
+ createRecord(library: $library, data: $data) {
2133
+ record {
2134
+ ...RecordIdentity
2135
+ }
2136
+ valuesErrors {
2137
+ type
2138
+ attribute
2139
+ input
2140
+ message
2141
+ }
2142
+ }
2007
2143
  }
2008
- }
2009
- }
2010
- ${RecordIdentityFragmentDoc}`;
2144
+ ${RecordIdentityFragmentDoc}`;
2011
2145
  /**
2012
2146
  * __useCreateRecordMutation__
2013
2147
  *
@@ -2032,16 +2166,16 @@ export function useCreateRecordMutation(baseOptions) {
2032
2166
  }
2033
2167
  export const DeactivateRecordsDocument = gql `
2034
2168
  mutation DEACTIVATE_RECORDS($libraryId: String!, $recordsIds: [String!], $filters: [RecordFilterInput!]) {
2035
- deactivateRecords(
2036
- recordsIds: $recordsIds
2037
- filters: $filters
2038
- libraryId: $libraryId
2039
- ) {
2040
- id
2041
- ...RecordIdentity
2042
- }
2043
- }
2044
- ${RecordIdentityFragmentDoc}`;
2169
+ deactivateRecords(
2170
+ recordsIds: $recordsIds
2171
+ filters: $filters
2172
+ libraryId: $libraryId
2173
+ ) {
2174
+ id
2175
+ ...RecordIdentity
2176
+ }
2177
+ }
2178
+ ${RecordIdentityFragmentDoc}`;
2045
2179
  /**
2046
2180
  * __useDeactivateRecordsMutation__
2047
2181
  *
@@ -2067,13 +2201,13 @@ export function useDeactivateRecordsMutation(baseOptions) {
2067
2201
  }
2068
2202
  export const DoesFileExistAsChildDocument = gql `
2069
2203
  query DOES_FILE_EXIST_AS_CHILD($parentNode: ID, $treeId: ID!, $filename: String!) {
2070
- doesFileExistAsChild(
2071
- parentNode: $parentNode
2072
- treeId: $treeId
2073
- filename: $filename
2074
- )
2075
- }
2076
- `;
2204
+ doesFileExistAsChild(
2205
+ parentNode: $parentNode
2206
+ treeId: $treeId
2207
+ filename: $filename
2208
+ )
2209
+ }
2210
+ `;
2077
2211
  /**
2078
2212
  * __useDoesFileExistAsChildQuery__
2079
2213
  *
@@ -2100,60 +2234,64 @@ export function useDoesFileExistAsChildLazyQuery(baseOptions) {
2100
2234
  const options = { ...defaultOptions, ...baseOptions };
2101
2235
  return Apollo.useLazyQuery(DoesFileExistAsChildDocument, options);
2102
2236
  }
2237
+ export function useDoesFileExistAsChildSuspenseQuery(baseOptions) {
2238
+ const options = { ...defaultOptions, ...baseOptions };
2239
+ return Apollo.useSuspenseQuery(DoesFileExistAsChildDocument, options);
2240
+ }
2103
2241
  export const GetFileDataDocument = gql `
2104
2242
  query GET_FILE_DATA($library: ID!, $fileId: String!, $previewsStatusAttribute: ID!) {
2105
- records(
2106
- library: $library
2107
- filters: [{field: "id", value: $fileId, condition: EQUAL}]
2108
- ) {
2109
- list {
2110
- ...RecordIdentity
2111
- created_at: property(attribute: "created_at") {
2112
- ... on Value {
2113
- value
2114
- }
2115
- }
2116
- created_by: property(attribute: "created_by") {
2117
- ... on LinkValue {
2118
- value {
2119
- ...RecordIdentity
2120
- }
2121
- }
2122
- }
2123
- modified_at: property(attribute: "modified_at") {
2124
- ... on Value {
2125
- value
2126
- }
2127
- }
2128
- modified_by: property(attribute: "modified_by") {
2129
- ... on LinkValue {
2130
- value {
2131
- ...RecordIdentity
2132
- }
2133
- }
2134
- }
2135
- file_name: property(attribute: "file_name") {
2136
- ... on Value {
2137
- value
2138
- }
2139
- }
2140
- file_path: property(attribute: "file_path") {
2141
- ... on Value {
2142
- value
2243
+ records(
2244
+ library: $library
2245
+ filters: [{field: "id", value: $fileId, condition: EQUAL}]
2246
+ ) {
2247
+ list {
2248
+ ...RecordIdentity
2249
+ created_at: property(attribute: "created_at") {
2250
+ ... on Value {
2251
+ value
2252
+ }
2253
+ }
2254
+ created_by: property(attribute: "created_by") {
2255
+ ... on LinkValue {
2256
+ value {
2257
+ ...RecordIdentity
2258
+ }
2259
+ }
2260
+ }
2261
+ modified_at: property(attribute: "modified_at") {
2262
+ ... on Value {
2263
+ value
2264
+ }
2265
+ }
2266
+ modified_by: property(attribute: "modified_by") {
2267
+ ... on LinkValue {
2268
+ value {
2269
+ ...RecordIdentity
2270
+ }
2271
+ }
2272
+ }
2273
+ file_name: property(attribute: "file_name") {
2274
+ ... on Value {
2275
+ value
2276
+ }
2277
+ }
2278
+ file_path: property(attribute: "file_path") {
2279
+ ... on Value {
2280
+ value
2281
+ }
2282
+ }
2283
+ previews_status: property(attribute: $previewsStatusAttribute) {
2284
+ ... on Value {
2285
+ value
2286
+ }
2287
+ }
2288
+ library {
2289
+ behavior
2290
+ }
2291
+ }
2143
2292
  }
2144
- }
2145
- previews_status: property(attribute: $previewsStatusAttribute) {
2146
- ... on Value {
2147
- value
2148
- }
2149
- }
2150
- library {
2151
- behavior
2152
- }
2153
2293
  }
2154
- }
2155
- }
2156
- ${RecordIdentityFragmentDoc}`;
2294
+ ${RecordIdentityFragmentDoc}`;
2157
2295
  /**
2158
2296
  * __useGetFileDataQuery__
2159
2297
  *
@@ -2180,32 +2318,36 @@ export function useGetFileDataLazyQuery(baseOptions) {
2180
2318
  const options = { ...defaultOptions, ...baseOptions };
2181
2319
  return Apollo.useLazyQuery(GetFileDataDocument, options);
2182
2320
  }
2321
+ export function useGetFileDataSuspenseQuery(baseOptions) {
2322
+ const options = { ...defaultOptions, ...baseOptions };
2323
+ return Apollo.useSuspenseQuery(GetFileDataDocument, options);
2324
+ }
2183
2325
  export const RecordFormDocument = gql `
2184
2326
  query RECORD_FORM($libraryId: String!, $formId: String!, $recordId: String, $version: [ValueVersionInput!]) {
2185
- recordForm(
2186
- recordId: $recordId
2187
- libraryId: $libraryId
2188
- formId: $formId
2189
- version: $version
2190
- ) {
2191
- id
2192
- recordId
2193
- library {
2194
- id
2195
- }
2196
- dependencyAttributes {
2197
- id
2198
- }
2199
- elements {
2200
- ...RecordFormElement
2201
- }
2202
- sidePanel {
2203
- enable
2204
- isOpenByDefault
2327
+ recordForm(
2328
+ recordId: $recordId
2329
+ libraryId: $libraryId
2330
+ formId: $formId
2331
+ version: $version
2332
+ ) {
2333
+ id
2334
+ recordId
2335
+ library {
2336
+ id
2337
+ }
2338
+ dependencyAttributes {
2339
+ id
2340
+ }
2341
+ elements {
2342
+ ...RecordFormElement
2343
+ }
2344
+ sidePanel {
2345
+ enable
2346
+ isOpenByDefault
2347
+ }
2348
+ }
2205
2349
  }
2206
- }
2207
- }
2208
- ${RecordFormElementFragmentDoc}`;
2350
+ ${RecordFormElementFragmentDoc}`;
2209
2351
  /**
2210
2352
  * __useRecordFormQuery__
2211
2353
  *
@@ -2233,27 +2375,31 @@ export function useRecordFormLazyQuery(baseOptions) {
2233
2375
  const options = { ...defaultOptions, ...baseOptions };
2234
2376
  return Apollo.useLazyQuery(RecordFormDocument, options);
2235
2377
  }
2378
+ export function useRecordFormSuspenseQuery(baseOptions) {
2379
+ const options = { ...defaultOptions, ...baseOptions };
2380
+ return Apollo.useSuspenseQuery(RecordFormDocument, options);
2381
+ }
2236
2382
  export const RecordUpdateDocument = gql `
2237
2383
  subscription RECORD_UPDATE($filters: RecordUpdateFilterInput) {
2238
- recordUpdate(filters: $filters) {
2239
- record {
2240
- ...RecordIdentity
2241
- modified_by: property(attribute: "modified_by") {
2242
- ... on LinkValue {
2243
- value {
2244
- ...RecordIdentity
2245
- }
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
+ }
2246
2401
  }
2247
- }
2248
- }
2249
- updatedValues {
2250
- attribute
2251
- value {
2252
- ...ValueDetails
2253
- }
2254
2402
  }
2255
- }
2256
- }
2257
2403
  ${RecordIdentityFragmentDoc}
2258
2404
  ${ValueDetailsFragmentDoc}`;
2259
2405
  /**
@@ -2278,14 +2424,14 @@ export function useRecordUpdateSubscription(baseOptions) {
2278
2424
  }
2279
2425
  export const GetRecordsFromLibraryDocument = gql `
2280
2426
  query getRecordsFromLibrary($libraryId: ID!, $pagination: RecordsPagination, $filters: [RecordFilterInput]) {
2281
- records(library: $libraryId, filters: $filters, pagination: $pagination) {
2282
- totalCount
2283
- list {
2284
- ...RecordIdentity
2427
+ records(library: $libraryId, filters: $filters, pagination: $pagination) {
2428
+ totalCount
2429
+ list {
2430
+ ...RecordIdentity
2431
+ }
2432
+ }
2285
2433
  }
2286
- }
2287
- }
2288
- ${RecordIdentityFragmentDoc}`;
2434
+ ${RecordIdentityFragmentDoc}`;
2289
2435
  /**
2290
2436
  * __useGetRecordsFromLibraryQuery__
2291
2437
  *
@@ -2312,11 +2458,15 @@ export function useGetRecordsFromLibraryLazyQuery(baseOptions) {
2312
2458
  const options = { ...defaultOptions, ...baseOptions };
2313
2459
  return Apollo.useLazyQuery(GetRecordsFromLibraryDocument, options);
2314
2460
  }
2461
+ export function useGetRecordsFromLibrarySuspenseQuery(baseOptions) {
2462
+ const options = { ...defaultOptions, ...baseOptions };
2463
+ return Apollo.useSuspenseQuery(GetRecordsFromLibraryDocument, options);
2464
+ }
2315
2465
  export const IndexRecordsDocument = gql `
2316
2466
  mutation INDEX_RECORDS($libraryId: String!, $records: [String!]) {
2317
- indexRecords(libraryId: $libraryId, records: $records)
2318
- }
2319
- `;
2467
+ indexRecords(libraryId: $libraryId, records: $records)
2468
+ }
2469
+ `;
2320
2470
  /**
2321
2471
  * __useIndexRecordsMutation__
2322
2472
  *
@@ -2341,9 +2491,9 @@ export function useIndexRecordsMutation(baseOptions) {
2341
2491
  }
2342
2492
  export const CancelTaskDocument = gql `
2343
2493
  mutation CANCEL_TASK($taskId: ID!) {
2344
- cancelTask(taskId: $taskId)
2345
- }
2346
- `;
2494
+ cancelTask(taskId: $taskId)
2495
+ }
2496
+ `;
2347
2497
  /**
2348
2498
  * __useCancelTaskMutation__
2349
2499
  *
@@ -2367,11 +2517,11 @@ export function useCancelTaskMutation(baseOptions) {
2367
2517
  }
2368
2518
  export const CheckTreeExistenceDocument = gql `
2369
2519
  query CHECK_TREE_EXISTENCE($id: [ID!]) {
2370
- trees(filters: {id: $id}) {
2371
- totalCount
2372
- }
2373
- }
2374
- `;
2520
+ trees(filters: {id: $id}) {
2521
+ totalCount
2522
+ }
2523
+ }
2524
+ `;
2375
2525
  /**
2376
2526
  * __useCheckTreeExistenceQuery__
2377
2527
  *
@@ -2396,13 +2546,17 @@ export function useCheckTreeExistenceLazyQuery(baseOptions) {
2396
2546
  const options = { ...defaultOptions, ...baseOptions };
2397
2547
  return Apollo.useLazyQuery(CheckTreeExistenceDocument, options);
2398
2548
  }
2549
+ export function useCheckTreeExistenceSuspenseQuery(baseOptions) {
2550
+ const options = { ...defaultOptions, ...baseOptions };
2551
+ return Apollo.useSuspenseQuery(CheckTreeExistenceDocument, options);
2552
+ }
2399
2553
  export const DeleteTreeDocument = gql `
2400
2554
  mutation DELETE_TREE($id: ID!) {
2401
- deleteTree(id: $id) {
2402
- id
2403
- }
2404
- }
2405
- `;
2555
+ deleteTree(id: $id) {
2556
+ id
2557
+ }
2558
+ }
2559
+ `;
2406
2560
  /**
2407
2561
  * __useDeleteTreeMutation__
2408
2562
  *
@@ -2426,13 +2580,13 @@ export function useDeleteTreeMutation(baseOptions) {
2426
2580
  }
2427
2581
  export const GetTreeByIdDocument = gql `
2428
2582
  query GET_TREE_BY_ID($id: [ID!]) {
2429
- trees(filters: {id: $id}) {
2430
- list {
2431
- ...TreeDetails
2583
+ trees(filters: {id: $id}) {
2584
+ list {
2585
+ ...TreeDetails
2586
+ }
2587
+ }
2432
2588
  }
2433
- }
2434
- }
2435
- ${TreeDetailsFragmentDoc}`;
2589
+ ${TreeDetailsFragmentDoc}`;
2436
2590
  /**
2437
2591
  * __useGetTreeByIdQuery__
2438
2592
  *
@@ -2457,31 +2611,35 @@ export function useGetTreeByIdLazyQuery(baseOptions) {
2457
2611
  const options = { ...defaultOptions, ...baseOptions };
2458
2612
  return Apollo.useLazyQuery(GetTreeByIdDocument, options);
2459
2613
  }
2614
+ export function useGetTreeByIdSuspenseQuery(baseOptions) {
2615
+ const options = { ...defaultOptions, ...baseOptions };
2616
+ return Apollo.useSuspenseQuery(GetTreeByIdDocument, options);
2617
+ }
2460
2618
  export const GetTreeLibrariesDocument = gql `
2461
2619
  query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) {
2462
- trees(filters: {id: $treeId, library: $library}) {
2463
- totalCount
2464
- list {
2465
- id
2466
- behavior
2467
- system
2468
- libraries {
2469
- library {
2470
- id
2471
- label
2472
- behavior
2473
- system
2474
- }
2475
- settings {
2476
- allowMultiplePositions
2477
- allowedChildren
2478
- allowedAtRoot
2620
+ trees(filters: {id: $treeId, library: $library}) {
2621
+ totalCount
2622
+ list {
2623
+ id
2624
+ behavior
2625
+ system
2626
+ libraries {
2627
+ library {
2628
+ id
2629
+ label
2630
+ behavior
2631
+ system
2632
+ }
2633
+ settings {
2634
+ allowMultiplePositions
2635
+ allowedChildren
2636
+ allowedAtRoot
2637
+ }
2638
+ }
2639
+ }
2479
2640
  }
2480
- }
2481
2641
  }
2482
- }
2483
- }
2484
- `;
2642
+ `;
2485
2643
  /**
2486
2644
  * __useGetTreeLibrariesQuery__
2487
2645
  *
@@ -2507,15 +2665,19 @@ export function useGetTreeLibrariesLazyQuery(baseOptions) {
2507
2665
  const options = { ...defaultOptions, ...baseOptions };
2508
2666
  return Apollo.useLazyQuery(GetTreeLibrariesDocument, options);
2509
2667
  }
2668
+ export function useGetTreeLibrariesSuspenseQuery(baseOptions) {
2669
+ const options = { ...defaultOptions, ...baseOptions };
2670
+ return Apollo.useSuspenseQuery(GetTreeLibrariesDocument, options);
2671
+ }
2510
2672
  export const GetTreesDocument = gql `
2511
2673
  query GET_TREES {
2512
- trees {
2513
- list {
2514
- ...TreeLight
2674
+ trees {
2675
+ list {
2676
+ ...TreeLight
2677
+ }
2678
+ }
2515
2679
  }
2516
- }
2517
- }
2518
- ${TreeLightFragmentDoc}`;
2680
+ ${TreeLightFragmentDoc}`;
2519
2681
  /**
2520
2682
  * __useGetTreesQuery__
2521
2683
  *
@@ -2539,13 +2701,17 @@ export function useGetTreesLazyQuery(baseOptions) {
2539
2701
  const options = { ...defaultOptions, ...baseOptions };
2540
2702
  return Apollo.useLazyQuery(GetTreesDocument, options);
2541
2703
  }
2704
+ export function useGetTreesSuspenseQuery(baseOptions) {
2705
+ const options = { ...defaultOptions, ...baseOptions };
2706
+ return Apollo.useSuspenseQuery(GetTreesDocument, options);
2707
+ }
2542
2708
  export const SaveTreeDocument = gql `
2543
2709
  mutation SAVE_TREE($tree: TreeInput!) {
2544
- saveTree(tree: $tree) {
2545
- ...TreeDetails
2546
- }
2547
- }
2548
- ${TreeDetailsFragmentDoc}`;
2710
+ saveTree(tree: $tree) {
2711
+ ...TreeDetails
2712
+ }
2713
+ }
2714
+ ${TreeDetailsFragmentDoc}`;
2549
2715
  /**
2550
2716
  * __useSaveTreeMutation__
2551
2717
  *
@@ -2568,15 +2734,20 @@ export function useSaveTreeMutation(baseOptions) {
2568
2734
  return Apollo.useMutation(SaveTreeDocument, options);
2569
2735
  }
2570
2736
  export const TreeNodeChildrenDocument = gql `
2571
- query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination) {
2572
- treeNodeChildren(treeId: $treeId, node: $node, pagination: $pagination) {
2573
- totalCount
2574
- list {
2575
- ...TreeNodeChild
2737
+ query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination, $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput) {
2738
+ treeNodeChildren(
2739
+ treeId: $treeId
2740
+ node: $node
2741
+ pagination: $pagination
2742
+ childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
2743
+ ) {
2744
+ totalCount
2745
+ list {
2746
+ ...TreeNodeChild
2747
+ }
2748
+ }
2576
2749
  }
2577
- }
2578
- }
2579
- ${TreeNodeChildFragmentDoc}`;
2750
+ ${TreeNodeChildFragmentDoc}`;
2580
2751
  /**
2581
2752
  * __useTreeNodeChildrenQuery__
2582
2753
  *
@@ -2592,6 +2763,7 @@ export const TreeNodeChildrenDocument = gql `
2592
2763
  * treeId: // value for 'treeId'
2593
2764
  * node: // value for 'node'
2594
2765
  * pagination: // value for 'pagination'
2766
+ * childrenAsRecordValuePermissionFilter: // value for 'childrenAsRecordValuePermissionFilter'
2595
2767
  * },
2596
2768
  * });
2597
2769
  */
@@ -2603,14 +2775,18 @@ export function useTreeNodeChildrenLazyQuery(baseOptions) {
2603
2775
  const options = { ...defaultOptions, ...baseOptions };
2604
2776
  return Apollo.useLazyQuery(TreeNodeChildrenDocument, options);
2605
2777
  }
2778
+ export function useTreeNodeChildrenSuspenseQuery(baseOptions) {
2779
+ const options = { ...defaultOptions, ...baseOptions };
2780
+ return Apollo.useSuspenseQuery(TreeNodeChildrenDocument, options);
2781
+ }
2606
2782
  export const GetUserDataDocument = gql `
2607
2783
  query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
2608
- userData(keys: $keys, global: $global) {
2609
- global
2610
- data
2611
- }
2612
- }
2613
- `;
2784
+ userData(keys: $keys, global: $global) {
2785
+ global
2786
+ data
2787
+ }
2788
+ }
2789
+ `;
2614
2790
  /**
2615
2791
  * __useGetUserDataQuery__
2616
2792
  *
@@ -2636,14 +2812,18 @@ export function useGetUserDataLazyQuery(baseOptions) {
2636
2812
  const options = { ...defaultOptions, ...baseOptions };
2637
2813
  return Apollo.useLazyQuery(GetUserDataDocument, options);
2638
2814
  }
2815
+ export function useGetUserDataSuspenseQuery(baseOptions) {
2816
+ const options = { ...defaultOptions, ...baseOptions };
2817
+ return Apollo.useSuspenseQuery(GetUserDataDocument, options);
2818
+ }
2639
2819
  export const SaveUserDataDocument = gql `
2640
2820
  mutation SAVE_USER_DATA($key: String!, $value: Any, $global: Boolean!) {
2641
- saveUserData(key: $key, value: $value, global: $global) {
2642
- global
2643
- data
2644
- }
2645
- }
2646
- `;
2821
+ saveUserData(key: $key, value: $value, global: $global) {
2822
+ global
2823
+ data
2824
+ }
2825
+ }
2826
+ `;
2647
2827
  /**
2648
2828
  * __useSaveUserDataMutation__
2649
2829
  *
@@ -2669,16 +2849,16 @@ export function useSaveUserDataMutation(baseOptions) {
2669
2849
  }
2670
2850
  export const DeleteValueDocument = gql `
2671
2851
  mutation DELETE_VALUE($library: ID!, $recordId: ID!, $attribute: ID!, $value: ValueInput) {
2672
- deleteValue(
2673
- library: $library
2674
- recordId: $recordId
2675
- attribute: $attribute
2676
- value: $value
2677
- ) {
2678
- ...ValueDetails
2679
- }
2680
- }
2681
- ${ValueDetailsFragmentDoc}`;
2852
+ deleteValue(
2853
+ library: $library
2854
+ recordId: $recordId
2855
+ attribute: $attribute
2856
+ value: $value
2857
+ ) {
2858
+ ...ValueDetails
2859
+ }
2860
+ }
2861
+ ${ValueDetailsFragmentDoc}`;
2682
2862
  /**
2683
2863
  * __useDeleteValueMutation__
2684
2864
  *
@@ -2705,15 +2885,15 @@ export function useDeleteValueMutation(baseOptions) {
2705
2885
  }
2706
2886
  export const RunActionsListAndFormatOnValueDocument = gql `
2707
2887
  query RUN_ACTIONS_LIST_AND_FORMAT_ON_VALUE($library: ID!, $value: ValueBatchInput, $version: [ValueVersionInput]) {
2708
- runActionsListAndFormatOnValue(
2709
- library: $library
2710
- value: $value
2711
- version: $version
2712
- ) {
2713
- ...ValueDetails
2714
- }
2715
- }
2716
- ${ValueDetailsFragmentDoc}`;
2888
+ runActionsListAndFormatOnValue(
2889
+ library: $library
2890
+ value: $value
2891
+ version: $version
2892
+ ) {
2893
+ ...ValueDetails
2894
+ }
2895
+ }
2896
+ ${ValueDetailsFragmentDoc}`;
2717
2897
  /**
2718
2898
  * __useRunActionsListAndFormatOnValueQuery__
2719
2899
  *
@@ -2740,27 +2920,31 @@ export function useRunActionsListAndFormatOnValueLazyQuery(baseOptions) {
2740
2920
  const options = { ...defaultOptions, ...baseOptions };
2741
2921
  return Apollo.useLazyQuery(RunActionsListAndFormatOnValueDocument, options);
2742
2922
  }
2923
+ export function useRunActionsListAndFormatOnValueSuspenseQuery(baseOptions) {
2924
+ const options = { ...defaultOptions, ...baseOptions };
2925
+ return Apollo.useSuspenseQuery(RunActionsListAndFormatOnValueDocument, options);
2926
+ }
2743
2927
  export const SaveValueBatchDocument = gql `
2744
2928
  mutation SAVE_VALUE_BATCH($library: ID!, $recordId: ID!, $version: [ValueVersionInput!], $values: [ValueBatchInput!]!, $deleteEmpty: Boolean) {
2745
- saveValueBatch(
2746
- library: $library
2747
- recordId: $recordId
2748
- version: $version
2749
- values: $values
2750
- deleteEmpty: $deleteEmpty
2751
- ) {
2752
- values {
2753
- ...ValueDetails
2754
- }
2755
- errors {
2756
- type
2757
- attribute
2758
- input
2759
- message
2760
- }
2761
- }
2762
- }
2763
- ${ValueDetailsFragmentDoc}`;
2929
+ saveValueBatch(
2930
+ library: $library
2931
+ recordId: $recordId
2932
+ version: $version
2933
+ values: $values
2934
+ deleteEmpty: $deleteEmpty
2935
+ ) {
2936
+ values {
2937
+ ...ValueDetails
2938
+ }
2939
+ errors {
2940
+ type
2941
+ attribute
2942
+ input
2943
+ message
2944
+ }
2945
+ }
2946
+ }
2947
+ ${ValueDetailsFragmentDoc}`;
2764
2948
  /**
2765
2949
  * __useSaveValueBatchMutation__
2766
2950
  *
@@ -2788,12 +2972,12 @@ export function useSaveValueBatchMutation(baseOptions) {
2788
2972
  }
2789
2973
  export const DeleteViewDocument = gql `
2790
2974
  mutation DELETE_VIEW($viewId: String!) {
2791
- deleteView(viewId: $viewId) {
2792
- id
2793
- library
2794
- }
2795
- }
2796
- `;
2975
+ deleteView(viewId: $viewId) {
2976
+ id
2977
+ library
2978
+ }
2979
+ }
2980
+ `;
2797
2981
  /**
2798
2982
  * __useDeleteViewMutation__
2799
2983
  *
@@ -2817,11 +3001,11 @@ export function useDeleteViewMutation(baseOptions) {
2817
3001
  }
2818
3002
  export const GetViewDocument = gql `
2819
3003
  query GET_VIEW($viewId: String!) {
2820
- view(viewId: $viewId) {
2821
- ...ViewDetails
2822
- }
2823
- }
2824
- ${ViewDetailsFragmentDoc}`;
3004
+ view(viewId: $viewId) {
3005
+ ...ViewDetails
3006
+ }
3007
+ }
3008
+ ${ViewDetailsFragmentDoc}`;
2825
3009
  /**
2826
3010
  * __useGetViewQuery__
2827
3011
  *
@@ -2846,16 +3030,20 @@ export function useGetViewLazyQuery(baseOptions) {
2846
3030
  const options = { ...defaultOptions, ...baseOptions };
2847
3031
  return Apollo.useLazyQuery(GetViewDocument, options);
2848
3032
  }
3033
+ export function useGetViewSuspenseQuery(baseOptions) {
3034
+ const options = { ...defaultOptions, ...baseOptions };
3035
+ return Apollo.useSuspenseQuery(GetViewDocument, options);
3036
+ }
2849
3037
  export const GetViewsListDocument = gql `
2850
3038
  query GET_VIEWS_LIST($libraryId: String!) {
2851
- views(library: $libraryId) {
2852
- totalCount
2853
- list {
2854
- ...ViewDetails
3039
+ views(library: $libraryId) {
3040
+ totalCount
3041
+ list {
3042
+ ...ViewDetails
3043
+ }
3044
+ }
2855
3045
  }
2856
- }
2857
- }
2858
- ${ViewDetailsFragmentDoc}`;
3046
+ ${ViewDetailsFragmentDoc}`;
2859
3047
  /**
2860
3048
  * __useGetViewsListQuery__
2861
3049
  *
@@ -2880,13 +3068,17 @@ export function useGetViewsListLazyQuery(baseOptions) {
2880
3068
  const options = { ...defaultOptions, ...baseOptions };
2881
3069
  return Apollo.useLazyQuery(GetViewsListDocument, options);
2882
3070
  }
3071
+ export function useGetViewsListSuspenseQuery(baseOptions) {
3072
+ const options = { ...defaultOptions, ...baseOptions };
3073
+ return Apollo.useSuspenseQuery(GetViewsListDocument, options);
3074
+ }
2883
3075
  export const SaveViewDocument = gql `
2884
3076
  mutation SAVE_VIEW($view: ViewInput!) {
2885
- saveView(view: $view) {
2886
- ...ViewDetails
2887
- }
2888
- }
2889
- ${ViewDetailsFragmentDoc}`;
3077
+ saveView(view: $view) {
3078
+ ...ViewDetails
3079
+ }
3080
+ }
3081
+ ${ViewDetailsFragmentDoc}`;
2890
3082
  /**
2891
3083
  * __useSaveViewMutation__
2892
3084
  *
@@ -2910,13 +3102,13 @@ export function useSaveViewMutation(baseOptions) {
2910
3102
  }
2911
3103
  export const GetAttributesByLibWithPermissionsDocument = gql `
2912
3104
  query getAttributesByLibWithPermissions($library: String!) {
2913
- attributes(filters: {libraries: [$library]}) {
2914
- list {
2915
- ...AttributesByLibAttributeWithPermissions
3105
+ attributes(filters: {libraries: [$library]}) {
3106
+ list {
3107
+ ...AttributesByLibAttributeWithPermissions
3108
+ }
3109
+ }
2916
3110
  }
2917
- }
2918
- }
2919
- ${AttributesByLibAttributeWithPermissionsFragmentDoc}`;
3111
+ ${AttributesByLibAttributeWithPermissionsFragmentDoc}`;
2920
3112
  /**
2921
3113
  * __useGetAttributesByLibWithPermissionsQuery__
2922
3114
  *
@@ -2941,22 +3133,26 @@ export function useGetAttributesByLibWithPermissionsLazyQuery(baseOptions) {
2941
3133
  const options = { ...defaultOptions, ...baseOptions };
2942
3134
  return Apollo.useLazyQuery(GetAttributesByLibWithPermissionsDocument, options);
2943
3135
  }
3136
+ export function useGetAttributesByLibWithPermissionsSuspenseQuery(baseOptions) {
3137
+ const options = { ...defaultOptions, ...baseOptions };
3138
+ return Apollo.useSuspenseQuery(GetAttributesByLibWithPermissionsDocument, options);
3139
+ }
2944
3140
  export const ExplorerAttributesDocument = gql `
2945
3141
  query ExplorerAttributes($ids: [ID!]) {
2946
- attributes(filters: {ids: $ids}) {
2947
- list {
2948
- id
2949
- type
2950
- format
2951
- label
2952
- permissions {
2953
- access_attribute
2954
- }
2955
- ...LinkAttributeDetails
3142
+ attributes(filters: {ids: $ids}) {
3143
+ list {
3144
+ id
3145
+ type
3146
+ format
3147
+ label
3148
+ permissions {
3149
+ access_attribute
3150
+ }
3151
+ ...LinkAttributeDetails
3152
+ }
3153
+ }
2956
3154
  }
2957
- }
2958
- }
2959
- ${LinkAttributeDetailsFragmentDoc}`;
3155
+ ${LinkAttributeDetailsFragmentDoc}`;
2960
3156
  /**
2961
3157
  * __useExplorerAttributesQuery__
2962
3158
  *
@@ -2981,21 +3177,25 @@ export function useExplorerAttributesLazyQuery(baseOptions) {
2981
3177
  const options = { ...defaultOptions, ...baseOptions };
2982
3178
  return Apollo.useLazyQuery(ExplorerAttributesDocument, options);
2983
3179
  }
3180
+ export function useExplorerAttributesSuspenseQuery(baseOptions) {
3181
+ const options = { ...defaultOptions, ...baseOptions };
3182
+ return Apollo.useSuspenseQuery(ExplorerAttributesDocument, options);
3183
+ }
2984
3184
  export const ExplorerLinkAttributeDocument = gql `
2985
3185
  query ExplorerLinkAttribute($id: ID!) {
2986
- attributes(filters: {ids: [$id]}) {
2987
- list {
2988
- id
2989
- multiple_values
2990
- permissions {
2991
- access_attribute
2992
- edit_value
2993
- }
2994
- ...LinkAttributeDetails
3186
+ attributes(filters: {ids: [$id]}) {
3187
+ list {
3188
+ id
3189
+ multiple_values
3190
+ permissions {
3191
+ access_attribute
3192
+ edit_value
3193
+ }
3194
+ ...LinkAttributeDetails
3195
+ }
3196
+ }
2995
3197
  }
2996
- }
2997
- }
2998
- ${LinkAttributeDetailsFragmentDoc}`;
3198
+ ${LinkAttributeDetailsFragmentDoc}`;
2999
3199
  /**
3000
3200
  * __useExplorerLinkAttributeQuery__
3001
3201
  *
@@ -3020,37 +3220,41 @@ export function useExplorerLinkAttributeLazyQuery(baseOptions) {
3020
3220
  const options = { ...defaultOptions, ...baseOptions };
3021
3221
  return Apollo.useLazyQuery(ExplorerLinkAttributeDocument, options);
3022
3222
  }
3223
+ export function useExplorerLinkAttributeSuspenseQuery(baseOptions) {
3224
+ const options = { ...defaultOptions, ...baseOptions };
3225
+ return Apollo.useSuspenseQuery(ExplorerLinkAttributeDocument, options);
3226
+ }
3023
3227
  export const ExplorerLibraryDataDocument = gql `
3024
3228
  query ExplorerLibraryData($libraryId: ID!, $attributeIds: [ID!]!, $pagination: RecordsPagination, $filters: [RecordFilterInput], $multipleSort: [RecordSortInput!], $searchQuery: String) {
3025
- records(
3026
- library: $libraryId
3027
- filters: $filters
3028
- pagination: $pagination
3029
- multipleSort: $multipleSort
3030
- searchQuery: $searchQuery
3031
- ) {
3032
- totalCount
3033
- list {
3034
- ...RecordIdentity
3035
- active
3036
- permissions {
3037
- create_record
3038
- delete_record
3039
- }
3040
- properties(attributeIds: $attributeIds) {
3041
- attributeId
3042
- attributeProperties {
3043
- ...AttributeProperties
3044
- }
3045
- values {
3046
- ...PropertyValue
3229
+ records(
3230
+ library: $libraryId
3231
+ filters: $filters
3232
+ pagination: $pagination
3233
+ multipleSort: $multipleSort
3234
+ searchQuery: $searchQuery
3235
+ ) {
3236
+ totalCount
3237
+ list {
3238
+ ...RecordIdentity
3239
+ active
3240
+ permissions {
3241
+ create_record
3242
+ delete_record
3243
+ }
3244
+ properties(attributeIds: $attributeIds) {
3245
+ attributeId
3246
+ attributeProperties {
3247
+ ...AttributeProperties
3248
+ }
3249
+ values {
3250
+ ...PropertyValue
3251
+ }
3252
+ }
3253
+ }
3047
3254
  }
3048
- }
3049
3255
  }
3050
- }
3051
- }
3052
3256
  ${RecordIdentityFragmentDoc}
3053
- ${AttributePropertiesFragmentDoc}
3257
+ ${AttributePropertiesFragmentDoc}
3054
3258
  ${PropertyValueFragmentDoc}`;
3055
3259
  /**
3056
3260
  * __useExplorerLibraryDataQuery__
@@ -3081,27 +3285,31 @@ export function useExplorerLibraryDataLazyQuery(baseOptions) {
3081
3285
  const options = { ...defaultOptions, ...baseOptions };
3082
3286
  return Apollo.useLazyQuery(ExplorerLibraryDataDocument, options);
3083
3287
  }
3288
+ export function useExplorerLibraryDataSuspenseQuery(baseOptions) {
3289
+ const options = { ...defaultOptions, ...baseOptions };
3290
+ return Apollo.useSuspenseQuery(ExplorerLibraryDataDocument, options);
3291
+ }
3084
3292
  export const ExplorerLinkDataDocument = gql `
3085
3293
  query ExplorerLinkData($attributeIds: [ID!]!, $parentLibraryId: ID!, $parentRecordId: String, $linkAttributeId: ID!) {
3086
- records(
3087
- library: $parentLibraryId
3088
- filters: [{field: "id", condition: EQUAL, value: $parentRecordId}]
3089
- ) {
3090
- list {
3091
- id
3092
- whoAmI {
3093
- id
3094
- library {
3095
- 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
+ }
3096
3310
  }
3097
- }
3098
- property(attribute: $linkAttributeId) {
3099
- ...LinkProperty
3100
- }
3101
3311
  }
3102
- }
3103
- }
3104
- ${LinkPropertyFragmentDoc}`;
3312
+ ${LinkPropertyFragmentDoc}`;
3105
3313
  /**
3106
3314
  * __useExplorerLinkDataQuery__
3107
3315
  *
@@ -3129,18 +3337,22 @@ export function useExplorerLinkDataLazyQuery(baseOptions) {
3129
3337
  const options = { ...defaultOptions, ...baseOptions };
3130
3338
  return Apollo.useLazyQuery(ExplorerLinkDataDocument, options);
3131
3339
  }
3340
+ export function useExplorerLinkDataSuspenseQuery(baseOptions) {
3341
+ const options = { ...defaultOptions, ...baseOptions };
3342
+ return Apollo.useSuspenseQuery(ExplorerLinkDataDocument, options);
3343
+ }
3132
3344
  export const GetLibraryAttributesDocument = gql `
3133
3345
  query GetLibraryAttributes($libraryId: ID!) {
3134
- libraries(filters: {id: [$libraryId]}) {
3135
- list {
3136
- id
3137
- attributes {
3138
- ...LibraryAttribute
3139
- }
3346
+ libraries(filters: {id: [$libraryId]}) {
3347
+ list {
3348
+ id
3349
+ attributes {
3350
+ ...LibraryAttribute
3351
+ }
3352
+ }
3353
+ }
3140
3354
  }
3141
- }
3142
- }
3143
- ${LibraryAttributeFragmentDoc}`;
3355
+ ${LibraryAttributeFragmentDoc}`;
3144
3356
  /**
3145
3357
  * __useGetLibraryAttributesQuery__
3146
3358
  *
@@ -3165,17 +3377,21 @@ export function useGetLibraryAttributesLazyQuery(baseOptions) {
3165
3377
  const options = { ...defaultOptions, ...baseOptions };
3166
3378
  return Apollo.useLazyQuery(GetLibraryAttributesDocument, options);
3167
3379
  }
3380
+ export function useGetLibraryAttributesSuspenseQuery(baseOptions) {
3381
+ const options = { ...defaultOptions, ...baseOptions };
3382
+ return Apollo.useSuspenseQuery(GetLibraryAttributesDocument, options);
3383
+ }
3168
3384
  export const ExplorerLibraryDetailsDocument = gql `
3169
3385
  query ExplorerLibraryDetails($libraryId: ID!) {
3170
- libraries(filters: {id: [$libraryId]}) {
3171
- list {
3172
- id
3173
- label
3174
- behavior
3386
+ libraries(filters: {id: [$libraryId]}) {
3387
+ list {
3388
+ id
3389
+ label
3390
+ behavior
3391
+ }
3392
+ }
3175
3393
  }
3176
- }
3177
- }
3178
- `;
3394
+ `;
3179
3395
  /**
3180
3396
  * __useExplorerLibraryDetailsQuery__
3181
3397
  *
@@ -3200,15 +3416,19 @@ export function useExplorerLibraryDetailsLazyQuery(baseOptions) {
3200
3416
  const options = { ...defaultOptions, ...baseOptions };
3201
3417
  return Apollo.useLazyQuery(ExplorerLibraryDetailsDocument, options);
3202
3418
  }
3419
+ export function useExplorerLibraryDetailsSuspenseQuery(baseOptions) {
3420
+ const options = { ...defaultOptions, ...baseOptions };
3421
+ return Apollo.useSuspenseQuery(ExplorerLibraryDetailsDocument, options);
3422
+ }
3203
3423
  export const ExplorerSelectionIdsDocument = gql `
3204
3424
  query ExplorerSelectionIds($libraryId: ID!, $filters: [RecordFilterInput]) {
3205
- records(library: $libraryId, filters: $filters) {
3206
- list {
3207
- id
3425
+ records(library: $libraryId, filters: $filters) {
3426
+ list {
3427
+ id
3428
+ }
3429
+ }
3208
3430
  }
3209
- }
3210
- }
3211
- `;
3431
+ `;
3212
3432
  /**
3213
3433
  * __useExplorerSelectionIdsQuery__
3214
3434
  *
@@ -3234,19 +3454,23 @@ export function useExplorerSelectionIdsLazyQuery(baseOptions) {
3234
3454
  const options = { ...defaultOptions, ...baseOptions };
3235
3455
  return Apollo.useLazyQuery(ExplorerSelectionIdsDocument, options);
3236
3456
  }
3457
+ export function useExplorerSelectionIdsSuspenseQuery(baseOptions) {
3458
+ const options = { ...defaultOptions, ...baseOptions };
3459
+ return Apollo.useSuspenseQuery(ExplorerSelectionIdsDocument, options);
3460
+ }
3237
3461
  export const MeDocument = gql `
3238
3462
  query Me {
3239
- me {
3240
- id
3241
- whoAmI {
3242
- id
3243
- library {
3244
- id
3245
- }
3463
+ me {
3464
+ id
3465
+ whoAmI {
3466
+ id
3467
+ library {
3468
+ id
3469
+ }
3470
+ }
3471
+ }
3246
3472
  }
3247
- }
3248
- }
3249
- `;
3473
+ `;
3250
3474
  /**
3251
3475
  * __useMeQuery__
3252
3476
  *
@@ -3270,13 +3494,17 @@ export function useMeLazyQuery(baseOptions) {
3270
3494
  const options = { ...defaultOptions, ...baseOptions };
3271
3495
  return Apollo.useLazyQuery(MeDocument, options);
3272
3496
  }
3497
+ export function useMeSuspenseQuery(baseOptions) {
3498
+ const options = { ...defaultOptions, ...baseOptions };
3499
+ return Apollo.useSuspenseQuery(MeDocument, options);
3500
+ }
3273
3501
  export const UpdateViewDocument = gql `
3274
3502
  mutation UpdateView($view: ViewInputPartial!) {
3275
- updateView(view: $view) {
3276
- ...ViewDetails
3277
- }
3278
- }
3279
- ${ViewDetailsFragmentDoc}`;
3503
+ updateView(view: $view) {
3504
+ ...ViewDetails
3505
+ }
3506
+ }
3507
+ ${ViewDetailsFragmentDoc}`;
3280
3508
  /**
3281
3509
  * __useUpdateViewMutation__
3282
3510
  *
@@ -3298,16 +3526,67 @@ export function useUpdateViewMutation(baseOptions) {
3298
3526
  const options = { ...defaultOptions, ...baseOptions };
3299
3527
  return Apollo.useMutation(UpdateViewDocument, options);
3300
3528
  }
3529
+ export const GetJoinLibraryMandatoryAttributeValuesDocument = gql `
3530
+ query getJoinLibraryMandatoryAttributeValues($joinLibraryId: ID!, $filters: [RecordFilterInput], $mandatoryAttributeId: ID!) {
3531
+ records(library: $joinLibraryId, filters: $filters) {
3532
+ list {
3533
+ id
3534
+ property(attribute: $mandatoryAttributeId) {
3535
+ ... on LinkValue {
3536
+ payload {
3537
+ id
3538
+ }
3539
+ }
3540
+ ... on TreeValue {
3541
+ payload {
3542
+ id
3543
+ }
3544
+ }
3545
+ }
3546
+ }
3547
+ }
3548
+ }
3549
+ `;
3550
+ /**
3551
+ * __useGetJoinLibraryMandatoryAttributeValuesQuery__
3552
+ *
3553
+ * To run a query within a React component, call `useGetJoinLibraryMandatoryAttributeValuesQuery` and pass it any options that fit your needs.
3554
+ * When your component renders, `useGetJoinLibraryMandatoryAttributeValuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
3555
+ * you can use to render your UI.
3556
+ *
3557
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
3558
+ *
3559
+ * @example
3560
+ * const { data, loading, error } = useGetJoinLibraryMandatoryAttributeValuesQuery({
3561
+ * variables: {
3562
+ * joinLibraryId: // value for 'joinLibraryId'
3563
+ * filters: // value for 'filters'
3564
+ * mandatoryAttributeId: // value for 'mandatoryAttributeId'
3565
+ * },
3566
+ * });
3567
+ */
3568
+ export function useGetJoinLibraryMandatoryAttributeValuesQuery(baseOptions) {
3569
+ const options = { ...defaultOptions, ...baseOptions };
3570
+ return Apollo.useQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
3571
+ }
3572
+ export function useGetJoinLibraryMandatoryAttributeValuesLazyQuery(baseOptions) {
3573
+ const options = { ...defaultOptions, ...baseOptions };
3574
+ return Apollo.useLazyQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
3575
+ }
3576
+ export function useGetJoinLibraryMandatoryAttributeValuesSuspenseQuery(baseOptions) {
3577
+ const options = { ...defaultOptions, ...baseOptions };
3578
+ return Apollo.useSuspenseQuery(GetJoinLibraryMandatoryAttributeValuesDocument, options);
3579
+ }
3301
3580
  export const TreeDataQueryDocument = gql `
3302
3581
  query TreeDataQuery($treeId: ID!) {
3303
- trees(filters: {id: [$treeId]}) {
3304
- list {
3305
- id
3306
- label
3582
+ trees(filters: {id: [$treeId]}) {
3583
+ list {
3584
+ id
3585
+ label
3586
+ }
3587
+ }
3307
3588
  }
3308
- }
3309
- }
3310
- `;
3589
+ `;
3311
3590
  /**
3312
3591
  * __useTreeDataQueryQuery__
3313
3592
  *
@@ -3332,4 +3611,8 @@ export function useTreeDataQueryLazyQuery(baseOptions) {
3332
3611
  const options = { ...defaultOptions, ...baseOptions };
3333
3612
  return Apollo.useLazyQuery(TreeDataQueryDocument, options);
3334
3613
  }
3614
+ export function useTreeDataQuerySuspenseQuery(baseOptions) {
3615
+ const options = { ...defaultOptions, ...baseOptions };
3616
+ return Apollo.useSuspenseQuery(TreeDataQueryDocument, options);
3617
+ }
3335
3618
  //# sourceMappingURL=index.js.map