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