@leav/ui 0.3.6-7be4667 → 0.3.6-89067e7

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.
@@ -327,587 +327,578 @@ export var ViewTypes;
327
327
  })(ViewTypes || (ViewTypes = {}));
328
328
  export const RecordIdentityFragmentDoc = gql `
329
329
  fragment RecordIdentity on Record {
330
- id
331
- whoAmI {
332
- id
333
- label
334
- subLabel
335
- color
336
- library {
337
- id
338
- label
339
- }
340
- preview
341
- }
342
- }
343
- `;
330
+ id
331
+ whoAmI {
332
+ id
333
+ label
334
+ subLabel
335
+ color
336
+ library {
337
+ id
338
+ label
339
+ }
340
+ preview
341
+ }
342
+ }
343
+ `;
344
344
  export const DetailsApplicationFragmentDoc = gql `
345
345
  fragment DetailsApplication on Application {
346
- id
347
- label
348
- type
349
- description
350
- endpoint
351
- url
352
- color
353
- icon {
354
- ...RecordIdentity
355
- }
356
- module
357
- permissions {
358
- access_application
359
- admin_application
360
- }
361
- settings
362
- }
363
- ${RecordIdentityFragmentDoc}
364
- `;
346
+ id
347
+ label
348
+ type
349
+ description
350
+ endpoint
351
+ url
352
+ color
353
+ icon {
354
+ ...RecordIdentity
355
+ }
356
+ module
357
+ permissions {
358
+ access_application
359
+ admin_application
360
+ }
361
+ settings
362
+ }
363
+ ${RecordIdentityFragmentDoc}`;
365
364
  export const AttributeDetailsFragmentDoc = gql `
366
365
  fragment AttributeDetails on Attribute {
366
+ id
367
+ type
368
+ format
369
+ system
370
+ readonly
371
+ label
372
+ description
373
+ multiple_values
374
+ metadata_fields {
375
+ id
376
+ label
377
+ type
378
+ format
379
+ }
380
+ versions_conf {
381
+ versionable
382
+ mode
383
+ profile {
384
+ id
385
+ label
386
+ trees {
367
387
  id
368
- type
369
- format
370
- system
371
- readonly
372
388
  label
373
- description
374
- multiple_values
375
- metadata_fields {
376
- id
377
- label
378
- type
379
- format
380
- }
381
- versions_conf {
382
- versionable
383
- mode
384
- profile {
385
- id
386
- label
387
- trees {
388
- id
389
- label
390
- }
391
- }
392
- }
393
- libraries {
394
- id
395
- label
396
- }
397
- ... on StandardAttribute {
398
- unique
399
- maxLength
400
- }
401
- ... on LinkAttribute {
402
- linked_library {
403
- id
404
- label
405
- }
406
- reverse_link
407
- }
408
- ... on TreeAttribute {
409
- linked_tree {
410
- id
411
- label
412
- }
413
- }
414
- }
415
- `;
389
+ }
390
+ }
391
+ }
392
+ libraries {
393
+ id
394
+ label
395
+ }
396
+ ... on StandardAttribute {
397
+ unique
398
+ maxLength
399
+ }
400
+ ... on LinkAttribute {
401
+ linked_library {
402
+ id
403
+ label
404
+ }
405
+ reverse_link
406
+ }
407
+ ... on TreeAttribute {
408
+ linked_tree {
409
+ id
410
+ label
411
+ }
412
+ }
413
+ }
414
+ `;
416
415
  export const AttributesByLibAttributeFragmentDoc = gql `
417
416
  fragment AttributesByLibAttribute on Attribute {
418
- id
419
- type
420
- format
421
- label
422
- multiple_values
423
- system
424
- readonly
425
- ... on LinkAttribute {
426
- linked_library {
427
- id
428
- }
429
- }
430
- ... on TreeAttribute {
431
- linked_tree {
432
- id
433
- label
434
- libraries {
435
- library {
436
- id
437
- label
438
- }
439
- }
440
- }
441
- }
442
- ... on StandardAttribute {
443
- embedded_fields {
444
- id
445
- format
446
- label
447
- }
448
- }
449
- }
450
- `;
417
+ id
418
+ type
419
+ format
420
+ label
421
+ multiple_values
422
+ system
423
+ readonly
424
+ ... on LinkAttribute {
425
+ linked_library {
426
+ id
427
+ }
428
+ }
429
+ ... on TreeAttribute {
430
+ linked_tree {
431
+ id
432
+ label
433
+ libraries {
434
+ library {
435
+ id
436
+ label
437
+ }
438
+ }
439
+ }
440
+ }
441
+ ... on StandardAttribute {
442
+ embedded_fields {
443
+ id
444
+ format
445
+ label
446
+ }
447
+ }
448
+ }
449
+ `;
451
450
  export const LibraryLightFragmentDoc = gql `
452
451
  fragment LibraryLight on Library {
452
+ id
453
+ label
454
+ icon {
455
+ id
456
+ whoAmI {
457
+ id
458
+ library {
453
459
  id
454
- label
455
- icon {
456
- id
457
- whoAmI {
458
- id
459
- library {
460
- id
461
- }
462
- preview
463
- }
464
- }
460
+ }
461
+ preview
465
462
  }
466
- `;
463
+ }
464
+ }
465
+ `;
467
466
  export const LibraryLinkAttributeDetailsFragmentDoc = gql `
468
467
  fragment LibraryLinkAttributeDetails on LinkAttribute {
469
- linked_library {
470
- id
471
- behavior
472
- }
473
- }
474
- `;
468
+ linked_library {
469
+ id
470
+ behavior
471
+ }
472
+ }
473
+ `;
475
474
  export const LibraryAttributesFragmentDoc = gql `
476
475
  fragment LibraryAttributes on Attribute {
477
- id
478
- label
479
- system
480
- type
481
- format
482
- ...LibraryLinkAttributeDetails
483
- }
484
- ${LibraryLinkAttributeDetailsFragmentDoc}
485
- `;
476
+ id
477
+ label
478
+ system
479
+ type
480
+ format
481
+ ...LibraryLinkAttributeDetails
482
+ }
483
+ ${LibraryLinkAttributeDetailsFragmentDoc}`;
486
484
  export const LibraryPreviewsSettingsFragmentDoc = gql `
487
485
  fragment LibraryPreviewsSettings on LibraryPreviewsSettings {
488
- label
489
- description
490
- system
491
- versions {
492
- background
493
- density
494
- sizes {
495
- name
496
- size
497
- }
498
- }
499
- }
500
- `;
486
+ label
487
+ description
488
+ system
489
+ versions {
490
+ background
491
+ density
492
+ sizes {
493
+ name
494
+ size
495
+ }
496
+ }
497
+ }
498
+ `;
501
499
  export const LibraryDetailsFragmentDoc = gql `
502
500
  fragment LibraryDetails on Library {
503
- id
504
- label
505
- behavior
506
- system
507
- label
508
- fullTextAttributes {
509
- id
510
- label
511
- }
512
- attributes {
513
- ...LibraryAttributes
514
- }
515
- permissions_conf {
516
- permissionTreeAttributes {
517
- id
518
- ... on TreeAttribute {
519
- linked_tree {
520
- id
521
- }
522
- }
523
- label
524
- }
525
- relation
526
- }
527
- recordIdentityConf {
528
- label
529
- subLabel
530
- color
531
- preview
532
- treeColorPreview
533
- }
534
- permissions {
535
- admin_library
536
- access_library
537
- access_record
538
- create_record
539
- edit_record
540
- delete_record
541
- }
542
- icon {
543
- ...RecordIdentity
544
- }
545
- previewsSettings {
546
- ...LibraryPreviewsSettings
547
- }
548
- }
501
+ id
502
+ label
503
+ behavior
504
+ system
505
+ label
506
+ fullTextAttributes {
507
+ id
508
+ label
509
+ }
510
+ attributes {
511
+ ...LibraryAttributes
512
+ }
513
+ permissions_conf {
514
+ permissionTreeAttributes {
515
+ id
516
+ ... on TreeAttribute {
517
+ linked_tree {
518
+ id
519
+ }
520
+ }
521
+ label
522
+ }
523
+ relation
524
+ }
525
+ recordIdentityConf {
526
+ label
527
+ subLabel
528
+ color
529
+ preview
530
+ treeColorPreview
531
+ }
532
+ permissions {
533
+ admin_library
534
+ access_library
535
+ access_record
536
+ create_record
537
+ edit_record
538
+ delete_record
539
+ }
540
+ icon {
541
+ ...RecordIdentity
542
+ }
543
+ previewsSettings {
544
+ ...LibraryPreviewsSettings
545
+ }
546
+ }
549
547
  ${LibraryAttributesFragmentDoc}
550
- ${RecordIdentityFragmentDoc}
551
- ${LibraryPreviewsSettingsFragmentDoc}
552
- `;
548
+ ${RecordIdentityFragmentDoc}
549
+ ${LibraryPreviewsSettingsFragmentDoc}`;
553
550
  export const ValuesVersionDetailsFragmentDoc = gql `
554
551
  fragment ValuesVersionDetails on ValueVersion {
555
- treeId
556
- treeNode {
557
- id
558
- record {
559
- id
560
- whoAmI {
561
- id
562
- label
563
- library {
564
- id
565
- }
566
- }
567
- }
552
+ treeId
553
+ treeNode {
554
+ id
555
+ record {
556
+ id
557
+ whoAmI {
558
+ id
559
+ label
560
+ library {
561
+ id
568
562
  }
563
+ }
569
564
  }
570
- `;
565
+ }
566
+ }
567
+ `;
571
568
  export const ValueDetailsFragmentDoc = gql `
572
569
  fragment ValueDetails on GenericValue {
573
- id_value
574
- isInherited
575
- isCalculated
576
- modified_at
577
- modified_by {
578
- ...RecordIdentity
579
- }
580
- created_at
581
- created_by {
582
- ...RecordIdentity
583
- }
584
- version {
585
- ...ValuesVersionDetails
586
- }
587
- attribute {
588
- id
589
- format
590
- type
591
- system
592
- }
593
- metadata {
594
- name
595
- value {
596
- id_value
597
- modified_at
598
- modified_by {
599
- ...RecordIdentity
600
- }
601
- created_at
602
- created_by {
603
- ...RecordIdentity
604
- }
605
- version {
606
- ...ValuesVersionDetails
607
- }
608
- payload
609
- raw_payload
610
- }
611
- }
612
- ... on Value {
613
- payload
614
- raw_payload
615
- value
616
- raw_value
617
- }
618
- ... on LinkValue {
619
- linkValue: payload {
620
- ...RecordIdentity
621
- }
622
- }
623
- ... on TreeValue {
624
- treeValue: payload {
625
- id
626
- record {
627
- ...RecordIdentity
628
- }
629
- ancestors {
630
- record {
631
- ...RecordIdentity
632
- }
633
- }
634
- }
570
+ id_value
571
+ isInherited
572
+ isCalculated
573
+ modified_at
574
+ modified_by {
575
+ ...RecordIdentity
576
+ }
577
+ created_at
578
+ created_by {
579
+ ...RecordIdentity
580
+ }
581
+ version {
582
+ ...ValuesVersionDetails
583
+ }
584
+ attribute {
585
+ id
586
+ format
587
+ type
588
+ system
589
+ }
590
+ metadata {
591
+ name
592
+ value {
593
+ id_value
594
+ modified_at
595
+ modified_by {
596
+ ...RecordIdentity
597
+ }
598
+ created_at
599
+ created_by {
600
+ ...RecordIdentity
601
+ }
602
+ version {
603
+ ...ValuesVersionDetails
604
+ }
605
+ payload
606
+ raw_payload
607
+ }
608
+ }
609
+ ... on Value {
610
+ payload
611
+ raw_payload
612
+ value
613
+ raw_value
614
+ }
615
+ ... on LinkValue {
616
+ linkValue: payload {
617
+ ...RecordIdentity
618
+ }
619
+ }
620
+ ... on TreeValue {
621
+ treeValue: payload {
622
+ id
623
+ record {
624
+ ...RecordIdentity
625
+ }
626
+ ancestors {
627
+ record {
628
+ ...RecordIdentity
635
629
  }
630
+ }
636
631
  }
632
+ }
633
+ }
637
634
  ${RecordIdentityFragmentDoc}
638
- ${ValuesVersionDetailsFragmentDoc}
639
- `;
635
+ ${ValuesVersionDetailsFragmentDoc}`;
640
636
  export const StandardValuesListFragmentFragmentDoc = gql `
641
637
  fragment StandardValuesListFragment on StandardValuesListConf {
642
- ... on StandardStringValuesListConf {
643
- enable
644
- allowFreeEntry
645
- allowListUpdate
646
- values
647
- }
648
- ... on StandardDateRangeValuesListConf {
649
- enable
650
- allowFreeEntry
651
- allowListUpdate
652
- dateRangeValues: values {
653
- from
654
- to
655
- }
656
- }
657
- }
658
- `;
638
+ ... on StandardStringValuesListConf {
639
+ enable
640
+ allowFreeEntry
641
+ allowListUpdate
642
+ values
643
+ }
644
+ ... on StandardDateRangeValuesListConf {
645
+ enable
646
+ allowFreeEntry
647
+ allowListUpdate
648
+ dateRangeValues: values {
649
+ from
650
+ to
651
+ }
652
+ }
653
+ }
654
+ `;
659
655
  export const RecordFormAttributeFragmentDoc = gql `
660
656
  fragment RecordFormAttribute on Attribute {
657
+ id
658
+ label
659
+ description
660
+ type
661
+ format
662
+ system
663
+ readonly
664
+ multiple_values
665
+ permissions(record: {id: $recordId, library: $libraryId}) {
666
+ access_attribute
667
+ edit_value
668
+ }
669
+ versions_conf {
670
+ versionable
671
+ profile {
672
+ id
673
+ trees {
661
674
  id
662
675
  label
663
- description
664
- type
665
- format
666
- system
667
- readonly
668
- multiple_values
669
- permissions(record: {id: $recordId, library: $libraryId}) {
670
- access_attribute
671
- edit_value
672
- }
673
- versions_conf {
674
- versionable
675
- profile {
676
- id
677
- trees {
678
- id
679
- label
680
- }
681
- }
682
- }
683
- metadata_fields {
684
- id
685
- label
686
- description
687
- type
688
- format
689
- system
690
- readonly
691
- multiple_values
692
- permissions(record: {id: $recordId, library: $libraryId}) {
693
- access_attribute
694
- edit_value
695
- }
696
- values_list {
697
- ...StandardValuesListFragment
698
- }
699
- metadata_fields {
700
- id
701
- }
702
- }
703
- ... on StandardAttribute {
704
- values_list {
705
- ...StandardValuesListFragment
706
- }
707
- }
708
- ... on LinkAttribute {
709
- linked_library {
710
- id
711
- label
712
- behavior
713
- permissions {
714
- create_record
715
- }
716
- }
717
- linkValuesList: values_list {
718
- enable
719
- allowFreeEntry
720
- allowListUpdate
721
- values {
722
- ...RecordIdentity
723
- }
724
- }
676
+ }
677
+ }
678
+ }
679
+ metadata_fields {
680
+ id
681
+ label
682
+ description
683
+ type
684
+ format
685
+ system
686
+ readonly
687
+ multiple_values
688
+ permissions(record: {id: $recordId, library: $libraryId}) {
689
+ access_attribute
690
+ edit_value
691
+ }
692
+ values_list {
693
+ ...StandardValuesListFragment
694
+ }
695
+ metadata_fields {
696
+ id
697
+ }
698
+ }
699
+ ... on StandardAttribute {
700
+ values_list {
701
+ ...StandardValuesListFragment
702
+ }
703
+ }
704
+ ... on LinkAttribute {
705
+ linked_library {
706
+ id
707
+ label
708
+ behavior
709
+ permissions {
710
+ create_record
711
+ }
712
+ }
713
+ linkValuesList: values_list {
714
+ enable
715
+ allowFreeEntry
716
+ allowListUpdate
717
+ values {
718
+ ...RecordIdentity
719
+ }
720
+ }
721
+ }
722
+ ... on TreeAttribute {
723
+ linked_tree {
724
+ id
725
+ label
726
+ }
727
+ treeValuesList: values_list {
728
+ enable
729
+ allowFreeEntry
730
+ allowListUpdate
731
+ values {
732
+ id
733
+ record {
734
+ ...RecordIdentity
725
735
  }
726
- ... on TreeAttribute {
727
- linked_tree {
728
- id
729
- label
730
- }
731
- treeValuesList: values_list {
732
- enable
733
- allowFreeEntry
734
- allowListUpdate
735
- values {
736
- id
737
- record {
738
- ...RecordIdentity
739
- }
740
- ancestors {
741
- record {
742
- ...RecordIdentity
743
- }
744
- }
745
- }
746
- }
736
+ ancestors {
737
+ record {
738
+ ...RecordIdentity
739
+ }
747
740
  }
741
+ }
748
742
  }
743
+ }
744
+ }
749
745
  ${StandardValuesListFragmentFragmentDoc}
750
- ${RecordIdentityFragmentDoc}
751
- `;
746
+ ${RecordIdentityFragmentDoc}`;
752
747
  export const RecordFormElementFragmentDoc = gql `
753
748
  fragment RecordFormElement on FormElementWithValues {
754
- id
755
- containerId
756
- uiElementType
757
- type
758
- valueError
759
- values {
760
- ...ValueDetails
761
- }
762
- attribute {
763
- ...RecordFormAttribute
764
- }
765
- settings {
766
- key
767
- value
768
- }
769
- }
749
+ id
750
+ containerId
751
+ uiElementType
752
+ type
753
+ valueError
754
+ values {
755
+ ...ValueDetails
756
+ }
757
+ attribute {
758
+ ...RecordFormAttribute
759
+ }
760
+ settings {
761
+ key
762
+ value
763
+ }
764
+ }
770
765
  ${ValueDetailsFragmentDoc}
771
- ${RecordFormAttributeFragmentDoc}
772
- `;
766
+ ${RecordFormAttributeFragmentDoc}`;
773
767
  export const TreeLightFragmentDoc = gql `
774
768
  fragment TreeLight on Tree {
775
- id
776
- label
777
- }
778
- `;
769
+ id
770
+ label
771
+ }
772
+ `;
779
773
  export const TreeDetailsFragmentDoc = gql `
780
774
  fragment TreeDetails on Tree {
781
- id
782
- label
783
- behavior
784
- system
785
- libraries {
786
- library {
787
- id
788
- label
789
- }
790
- settings {
791
- allowMultiplePositions
792
- allowedAtRoot
793
- allowedChildren
794
- }
795
- }
796
- }
797
- `;
775
+ id
776
+ label
777
+ behavior
778
+ system
779
+ libraries {
780
+ library {
781
+ id
782
+ label
783
+ }
784
+ settings {
785
+ allowMultiplePositions
786
+ allowedAtRoot
787
+ allowedChildren
788
+ }
789
+ }
790
+ }
791
+ `;
798
792
  export const TreeNodeChildFragmentDoc = gql `
799
793
  fragment TreeNodeChild on TreeNodeLight {
794
+ id
795
+ order
796
+ childrenCount
797
+ record {
798
+ ...RecordIdentity
799
+ active: property(attribute: "active") {
800
+ ... on Value {
801
+ value
802
+ }
803
+ }
804
+ }
805
+ ancestors {
806
+ id
807
+ record {
808
+ id
809
+ library {
800
810
  id
801
- order
802
- childrenCount
803
- record {
804
- ...RecordIdentity
805
- active: property(attribute: "active") {
806
- ... on Value {
807
- value
808
- }
809
- }
810
- }
811
- ancestors {
812
- id
813
- record {
814
- id
815
- library {
816
- id
817
- label
818
- }
819
- ...RecordIdentity
820
- }
821
- }
822
- permissions {
823
- access_tree
824
- detach
825
- edit_children
826
- }
811
+ label
812
+ }
813
+ ...RecordIdentity
827
814
  }
828
- ${RecordIdentityFragmentDoc}
829
- `;
815
+ }
816
+ permissions {
817
+ access_tree
818
+ detach
819
+ edit_children
820
+ }
821
+ }
822
+ ${RecordIdentityFragmentDoc}`;
830
823
  export const ViewDetailsFragmentDoc = gql `
831
824
  fragment ViewDetails on View {
825
+ id
826
+ display {
827
+ size
828
+ type
829
+ }
830
+ shared
831
+ created_by {
832
+ id
833
+ whoAmI {
834
+ id
835
+ label
836
+ library {
832
837
  id
833
- display {
834
- size
835
- type
836
- }
837
- shared
838
- created_by {
839
- id
840
- whoAmI {
841
- id
842
- label
843
- library {
844
- id
845
- }
846
- }
847
- }
848
- label
849
- description
850
- color
851
- filters {
852
- field
853
- value
854
- tree {
855
- id
856
- label
857
- }
858
- condition
859
- operator
860
- }
861
- sort {
862
- field
863
- order
864
- }
865
- valuesVersions {
866
- treeId
867
- treeNode {
868
- id
869
- record {
870
- ...RecordIdentity
871
- }
872
- }
873
- }
874
- settings {
875
- name
876
- value
877
- }
878
- }
879
- ${RecordIdentityFragmentDoc}
880
- `;
838
+ }
839
+ }
840
+ }
841
+ label
842
+ description
843
+ color
844
+ filters {
845
+ field
846
+ value
847
+ tree {
848
+ id
849
+ label
850
+ }
851
+ condition
852
+ operator
853
+ }
854
+ sort {
855
+ field
856
+ order
857
+ }
858
+ valuesVersions {
859
+ treeId
860
+ treeNode {
861
+ id
862
+ record {
863
+ ...RecordIdentity
864
+ }
865
+ }
866
+ }
867
+ settings {
868
+ name
869
+ value
870
+ }
871
+ }
872
+ ${RecordIdentityFragmentDoc}`;
881
873
  export const PropertyValueFragmentDoc = gql `
882
874
  fragment PropertyValue on GenericValue {
883
- attribute {
884
- type
885
- }
886
- ... on Value {
887
- valuePayload: payload
888
- }
889
- ... on LinkValue {
890
- linkPayload: payload {
891
- ...RecordIdentity
892
- }
893
- }
894
- ... on TreeValue {
895
- treePayload: payload {
896
- record {
897
- ...RecordIdentity
898
- }
899
- }
900
- }
901
- }
902
- ${RecordIdentityFragmentDoc}
903
- `;
875
+ attribute {
876
+ type
877
+ }
878
+ ... on Value {
879
+ valuePayload: payload
880
+ }
881
+ ... on LinkValue {
882
+ linkPayload: payload {
883
+ ...RecordIdentity
884
+ }
885
+ }
886
+ ... on TreeValue {
887
+ treePayload: payload {
888
+ record {
889
+ ...RecordIdentity
890
+ }
891
+ }
892
+ }
893
+ }
894
+ ${RecordIdentityFragmentDoc}`;
904
895
  export const CheckApplicationExistenceDocument = gql `
905
896
  query CHECK_APPLICATION_EXISTENCE($id: ID, $endpoint: String) {
906
- applications(filters: {id: $id, endpoint: $endpoint}) {
907
- totalCount
908
- }
909
- }
910
- `;
897
+ applications(filters: {id: $id, endpoint: $endpoint}) {
898
+ totalCount
899
+ }
900
+ }
901
+ `;
911
902
  /**
912
903
  * __useCheckApplicationExistenceQuery__
913
904
  *
@@ -935,14 +926,13 @@ export function useCheckApplicationExistenceLazyQuery(baseOptions) {
935
926
  }
936
927
  export const GetApplicationByIdDocument = gql `
937
928
  query GET_APPLICATION_BY_ID($id: ID!) {
938
- applications(filters: {id: $id}) {
939
- list {
940
- ...DetailsApplication
941
- }
942
- }
929
+ applications(filters: {id: $id}) {
930
+ list {
931
+ ...DetailsApplication
943
932
  }
944
- ${DetailsApplicationFragmentDoc}
945
- `;
933
+ }
934
+ }
935
+ ${DetailsApplicationFragmentDoc}`;
946
936
  /**
947
937
  * __useGetApplicationByIdQuery__
948
938
  *
@@ -969,13 +959,13 @@ export function useGetApplicationByIdLazyQuery(baseOptions) {
969
959
  }
970
960
  export const GetApplicationModulesDocument = gql `
971
961
  query GET_APPLICATION_MODULES {
972
- applicationsModules {
973
- id
974
- description
975
- version
976
- }
977
- }
978
- `;
962
+ applicationsModules {
963
+ id
964
+ description
965
+ version
966
+ }
967
+ }
968
+ `;
979
969
  /**
980
970
  * __useGetApplicationModulesQuery__
981
971
  *
@@ -1001,12 +991,11 @@ export function useGetApplicationModulesLazyQuery(baseOptions) {
1001
991
  }
1002
992
  export const SaveApplicationDocument = gql `
1003
993
  mutation SAVE_APPLICATION($application: ApplicationInput!) {
1004
- saveApplication(application: $application) {
1005
- ...DetailsApplication
1006
- }
1007
- }
1008
- ${DetailsApplicationFragmentDoc}
1009
- `;
994
+ saveApplication(application: $application) {
995
+ ...DetailsApplication
996
+ }
997
+ }
998
+ ${DetailsApplicationFragmentDoc}`;
1010
999
  /**
1011
1000
  * __useSaveApplicationMutation__
1012
1001
  *
@@ -1030,11 +1019,11 @@ export function useSaveApplicationMutation(baseOptions) {
1030
1019
  }
1031
1020
  export const CheckAttributeExistenceDocument = gql `
1032
1021
  query CHECK_ATTRIBUTE_EXISTENCE($id: ID!) {
1033
- attributes(filters: {id: $id}) {
1034
- totalCount
1035
- }
1036
- }
1037
- `;
1022
+ attributes(filters: {id: $id}) {
1023
+ totalCount
1024
+ }
1025
+ }
1026
+ `;
1038
1027
  /**
1039
1028
  * __useCheckAttributeExistenceQuery__
1040
1029
  *
@@ -1061,11 +1050,11 @@ export function useCheckAttributeExistenceLazyQuery(baseOptions) {
1061
1050
  }
1062
1051
  export const DeleteAttributeDocument = gql `
1063
1052
  mutation DELETE_ATTRIBUTE($id: ID) {
1064
- deleteAttribute(id: $id) {
1065
- id
1066
- }
1067
- }
1068
- `;
1053
+ deleteAttribute(id: $id) {
1054
+ id
1055
+ }
1056
+ }
1057
+ `;
1069
1058
  /**
1070
1059
  * __useDeleteAttributeMutation__
1071
1060
  *
@@ -1089,14 +1078,13 @@ export function useDeleteAttributeMutation(baseOptions) {
1089
1078
  }
1090
1079
  export const GetAttributeByIdDocument = gql `
1091
1080
  query GET_ATTRIBUTE_BY_ID($id: ID) {
1092
- attributes(filters: {id: $id}) {
1093
- list {
1094
- ...AttributeDetails
1095
- }
1096
- }
1081
+ attributes(filters: {id: $id}) {
1082
+ list {
1083
+ ...AttributeDetails
1097
1084
  }
1098
- ${AttributeDetailsFragmentDoc}
1099
- `;
1085
+ }
1086
+ }
1087
+ ${AttributeDetailsFragmentDoc}`;
1100
1088
  /**
1101
1089
  * __useGetAttributeByIdQuery__
1102
1090
  *
@@ -1123,14 +1111,13 @@ export function useGetAttributeByIdLazyQuery(baseOptions) {
1123
1111
  }
1124
1112
  export const GetAttributesByLibDocument = gql `
1125
1113
  query GET_ATTRIBUTES_BY_LIB($library: String!) {
1126
- attributes(filters: {libraries: [$library]}) {
1127
- list {
1128
- ...AttributesByLibAttribute
1129
- }
1130
- }
1114
+ attributes(filters: {libraries: [$library]}) {
1115
+ list {
1116
+ ...AttributesByLibAttribute
1131
1117
  }
1132
- ${AttributesByLibAttributeFragmentDoc}
1133
- `;
1118
+ }
1119
+ }
1120
+ ${AttributesByLibAttributeFragmentDoc}`;
1134
1121
  /**
1135
1122
  * __useGetAttributesByLibQuery__
1136
1123
  *
@@ -1157,18 +1144,18 @@ export function useGetAttributesByLibLazyQuery(baseOptions) {
1157
1144
  }
1158
1145
  export const GetAttributesDocument = gql `
1159
1146
  query GET_ATTRIBUTES($pagination: Pagination, $sort: SortAttributes, $filters: AttributesFiltersInput) {
1160
- attributes(pagination: $pagination, sort: $sort, filters: $filters) {
1161
- totalCount
1162
- list {
1163
- id
1164
- label
1165
- type
1166
- format
1167
- system
1168
- }
1169
- }
1170
- }
1171
- `;
1147
+ attributes(pagination: $pagination, sort: $sort, filters: $filters) {
1148
+ totalCount
1149
+ list {
1150
+ id
1151
+ label
1152
+ type
1153
+ format
1154
+ system
1155
+ }
1156
+ }
1157
+ }
1158
+ `;
1172
1159
  /**
1173
1160
  * __useGetAttributesQuery__
1174
1161
  *
@@ -1197,14 +1184,14 @@ export function useGetAttributesLazyQuery(baseOptions) {
1197
1184
  }
1198
1185
  export const GetVersionProfilesDocument = gql `
1199
1186
  query GET_VERSION_PROFILES($filters: VersionProfilesFiltersInput, $sort: SortVersionProfilesInput) {
1200
- versionProfiles(filters: $filters, sort: $sort) {
1201
- list {
1202
- id
1203
- label
1204
- }
1205
- }
1187
+ versionProfiles(filters: $filters, sort: $sort) {
1188
+ list {
1189
+ id
1190
+ label
1206
1191
  }
1207
- `;
1192
+ }
1193
+ }
1194
+ `;
1208
1195
  /**
1209
1196
  * __useGetVersionProfilesQuery__
1210
1197
  *
@@ -1232,23 +1219,23 @@ export function useGetVersionProfilesLazyQuery(baseOptions) {
1232
1219
  }
1233
1220
  export const GetVersionableAttributesByLibraryDocument = gql `
1234
1221
  query GET_VERSIONABLE_ATTRIBUTES_BY_LIBRARY($libraryId: String!) {
1235
- attributes(filters: {libraries: [$libraryId], versionable: true}) {
1236
- list {
1237
- id
1238
- versions_conf {
1239
- versionable
1240
- profile {
1241
- id
1242
- trees {
1243
- id
1244
- label
1245
- }
1246
- }
1247
- }
1248
- }
1222
+ attributes(filters: {libraries: [$libraryId], versionable: true}) {
1223
+ list {
1224
+ id
1225
+ versions_conf {
1226
+ versionable
1227
+ profile {
1228
+ id
1229
+ trees {
1230
+ id
1231
+ label
1232
+ }
1249
1233
  }
1234
+ }
1250
1235
  }
1251
- `;
1236
+ }
1237
+ }
1238
+ `;
1252
1239
  /**
1253
1240
  * __useGetVersionableAttributesByLibraryQuery__
1254
1241
  *
@@ -1275,12 +1262,11 @@ export function useGetVersionableAttributesByLibraryLazyQuery(baseOptions) {
1275
1262
  }
1276
1263
  export const SaveAttributeDocument = gql `
1277
1264
  mutation SAVE_ATTRIBUTE($attribute: AttributeInput!) {
1278
- saveAttribute(attribute: $attribute) {
1279
- ...AttributeDetails
1280
- }
1281
- }
1282
- ${AttributeDetailsFragmentDoc}
1283
- `;
1265
+ saveAttribute(attribute: $attribute) {
1266
+ ...AttributeDetails
1267
+ }
1268
+ }
1269
+ ${AttributeDetailsFragmentDoc}`;
1284
1270
  /**
1285
1271
  * __useSaveAttributeMutation__
1286
1272
  *
@@ -1304,9 +1290,9 @@ export function useSaveAttributeMutation(baseOptions) {
1304
1290
  }
1305
1291
  export const ExportDocument = gql `
1306
1292
  query EXPORT($library: ID!, $attributes: [ID!], $filters: [RecordFilterInput!]) {
1307
- export(library: $library, attributes: $attributes, filters: $filters)
1308
- }
1309
- `;
1293
+ export(library: $library, attributes: $attributes, filters: $filters)
1294
+ }
1295
+ `;
1310
1296
  /**
1311
1297
  * __useExportQuery__
1312
1298
  *
@@ -1335,12 +1321,11 @@ export function useExportLazyQuery(baseOptions) {
1335
1321
  }
1336
1322
  export const CreateDirectoryDocument = gql `
1337
1323
  mutation CREATE_DIRECTORY($library: String!, $nodeId: String!, $name: String!) {
1338
- createDirectory(library: $library, nodeId: $nodeId, name: $name) {
1339
- ...RecordIdentity
1340
- }
1341
- }
1342
- ${RecordIdentityFragmentDoc}
1343
- `;
1324
+ createDirectory(library: $library, nodeId: $nodeId, name: $name) {
1325
+ ...RecordIdentity
1326
+ }
1327
+ }
1328
+ ${RecordIdentityFragmentDoc}`;
1344
1329
  /**
1345
1330
  * __useCreateDirectoryMutation__
1346
1331
  *
@@ -1365,22 +1350,16 @@ export function useCreateDirectoryMutation(baseOptions) {
1365
1350
  return Apollo.useMutation(CreateDirectoryDocument, options);
1366
1351
  }
1367
1352
  export const ForcePreviewsGenerationDocument = gql `
1368
- mutation FORCE_PREVIEWS_GENERATION(
1369
- $libraryId: ID!
1370
- $filters: [RecordFilterInput!]
1371
- $recordIds: [ID!]
1372
- $failedOnly: Boolean
1373
- $previewVersionSizeNames: [String!]
1374
- ) {
1375
- forcePreviewsGeneration(
1376
- libraryId: $libraryId
1377
- filters: $filters
1378
- recordIds: $recordIds
1379
- failedOnly: $failedOnly
1380
- previewVersionSizeNames: $previewVersionSizeNames
1381
- )
1382
- }
1383
- `;
1353
+ mutation FORCE_PREVIEWS_GENERATION($libraryId: ID!, $filters: [RecordFilterInput!], $recordIds: [ID!], $failedOnly: Boolean, $previewVersionSizeNames: [String!]) {
1354
+ forcePreviewsGeneration(
1355
+ libraryId: $libraryId
1356
+ filters: $filters
1357
+ recordIds: $recordIds
1358
+ failedOnly: $failedOnly
1359
+ previewVersionSizeNames: $previewVersionSizeNames
1360
+ )
1361
+ }
1362
+ `;
1384
1363
  /**
1385
1364
  * __useForcePreviewsGenerationMutation__
1386
1365
  *
@@ -1408,51 +1387,53 @@ export function useForcePreviewsGenerationMutation(baseOptions) {
1408
1387
  }
1409
1388
  export const GetDirectoryDataDocument = gql `
1410
1389
  query GET_DIRECTORY_DATA($library: ID!, $directoryId: String!) {
1411
- records(library: $library, filters: [{field: "id", value: $directoryId, condition: EQUAL}]) {
1412
- list {
1413
- ...RecordIdentity
1414
- created_at: property(attribute: "created_at") {
1415
- ... on Value {
1416
- value
1417
- }
1418
- }
1419
- created_by: property(attribute: "created_by") {
1420
- ... on LinkValue {
1421
- value {
1422
- ...RecordIdentity
1423
- }
1424
- }
1425
- }
1426
- modified_at: property(attribute: "modified_at") {
1427
- ... on Value {
1428
- value
1429
- }
1430
- }
1431
- modified_by: property(attribute: "modified_by") {
1432
- ... on LinkValue {
1433
- value {
1434
- ...RecordIdentity
1435
- }
1436
- }
1437
- }
1438
- file_name: property(attribute: "file_name") {
1439
- ... on Value {
1440
- value
1441
- }
1442
- }
1443
- file_path: property(attribute: "file_path") {
1444
- ... on Value {
1445
- value
1446
- }
1447
- }
1448
- library {
1449
- behavior
1450
- }
1451
- }
1390
+ records(
1391
+ library: $library
1392
+ filters: [{field: "id", value: $directoryId, condition: EQUAL}]
1393
+ ) {
1394
+ list {
1395
+ ...RecordIdentity
1396
+ created_at: property(attribute: "created_at") {
1397
+ ... on Value {
1398
+ value
1452
1399
  }
1400
+ }
1401
+ created_by: property(attribute: "created_by") {
1402
+ ... on LinkValue {
1403
+ value {
1404
+ ...RecordIdentity
1405
+ }
1406
+ }
1407
+ }
1408
+ modified_at: property(attribute: "modified_at") {
1409
+ ... on Value {
1410
+ value
1411
+ }
1412
+ }
1413
+ modified_by: property(attribute: "modified_by") {
1414
+ ... on LinkValue {
1415
+ value {
1416
+ ...RecordIdentity
1417
+ }
1418
+ }
1419
+ }
1420
+ file_name: property(attribute: "file_name") {
1421
+ ... on Value {
1422
+ value
1423
+ }
1424
+ }
1425
+ file_path: property(attribute: "file_path") {
1426
+ ... on Value {
1427
+ value
1428
+ }
1429
+ }
1430
+ library {
1431
+ behavior
1432
+ }
1453
1433
  }
1454
- ${RecordIdentityFragmentDoc}
1455
- `;
1434
+ }
1435
+ }
1436
+ ${RecordIdentityFragmentDoc}`;
1456
1437
  /**
1457
1438
  * __useGetDirectoryDataQuery__
1458
1439
  *
@@ -1480,22 +1461,22 @@ export function useGetDirectoryDataLazyQuery(baseOptions) {
1480
1461
  }
1481
1462
  export const UploadUpdateDocument = gql `
1482
1463
  subscription UPLOAD_UPDATE($filters: UploadFiltersInput) {
1483
- upload(filters: $filters) {
1484
- userId
1485
- progress {
1486
- length
1487
- transferred
1488
- speed
1489
- runtime
1490
- remaining
1491
- percentage
1492
- eta
1493
- delta
1494
- }
1495
- uid
1496
- }
1497
- }
1498
- `;
1464
+ upload(filters: $filters) {
1465
+ userId
1466
+ progress {
1467
+ length
1468
+ transferred
1469
+ speed
1470
+ runtime
1471
+ remaining
1472
+ percentage
1473
+ eta
1474
+ delta
1475
+ }
1476
+ uid
1477
+ }
1478
+ }
1479
+ `;
1499
1480
  /**
1500
1481
  * __useUploadUpdateSubscription__
1501
1482
  *
@@ -1518,15 +1499,14 @@ export function useUploadUpdateSubscription(baseOptions) {
1518
1499
  }
1519
1500
  export const UploadDocument = gql `
1520
1501
  mutation UPLOAD($library: String!, $nodeId: String!, $files: [FileInput!]!) {
1521
- upload(library: $library, nodeId: $nodeId, files: $files) {
1522
- uid
1523
- record {
1524
- ...RecordIdentity
1525
- }
1526
- }
1502
+ upload(library: $library, nodeId: $nodeId, files: $files) {
1503
+ uid
1504
+ record {
1505
+ ...RecordIdentity
1527
1506
  }
1528
- ${RecordIdentityFragmentDoc}
1529
- `;
1507
+ }
1508
+ }
1509
+ ${RecordIdentityFragmentDoc}`;
1530
1510
  /**
1531
1511
  * __useUploadMutation__
1532
1512
  *
@@ -1552,9 +1532,9 @@ export function useUploadMutation(baseOptions) {
1552
1532
  }
1553
1533
  export const ImportExcelDocument = gql `
1554
1534
  mutation IMPORT_EXCEL($file: Upload!, $sheets: [SheetInput], $startAt: Int) {
1555
- importExcel(file: $file, sheets: $sheets, startAt: $startAt)
1556
- }
1557
- `;
1535
+ importExcel(file: $file, sheets: $sheets, startAt: $startAt)
1536
+ }
1537
+ `;
1558
1538
  /**
1559
1539
  * __useImportExcelMutation__
1560
1540
  *
@@ -1580,11 +1560,11 @@ export function useImportExcelMutation(baseOptions) {
1580
1560
  }
1581
1561
  export const CheckLibraryExistenceDocument = gql `
1582
1562
  query CHECK_LIBRARY_EXISTENCE($id: [ID!]) {
1583
- libraries(filters: {id: $id}) {
1584
- totalCount
1585
- }
1586
- }
1587
- `;
1563
+ libraries(filters: {id: $id}) {
1564
+ totalCount
1565
+ }
1566
+ }
1567
+ `;
1588
1568
  /**
1589
1569
  * __useCheckLibraryExistenceQuery__
1590
1570
  *
@@ -1611,11 +1591,11 @@ export function useCheckLibraryExistenceLazyQuery(baseOptions) {
1611
1591
  }
1612
1592
  export const DeleteLibraryDocument = gql `
1613
1593
  mutation DELETE_LIBRARY($id: ID) {
1614
- deleteLibrary(id: $id) {
1615
- id
1616
- }
1617
- }
1618
- `;
1594
+ deleteLibrary(id: $id) {
1595
+ id
1596
+ }
1597
+ }
1598
+ `;
1619
1599
  /**
1620
1600
  * __useDeleteLibraryMutation__
1621
1601
  *
@@ -1639,14 +1619,13 @@ export function useDeleteLibraryMutation(baseOptions) {
1639
1619
  }
1640
1620
  export const GetLibrariesDocument = gql `
1641
1621
  query GET_LIBRARIES {
1642
- libraries {
1643
- list {
1644
- ...LibraryLight
1645
- }
1646
- }
1622
+ libraries {
1623
+ list {
1624
+ ...LibraryLight
1647
1625
  }
1648
- ${LibraryLightFragmentDoc}
1649
- `;
1626
+ }
1627
+ }
1628
+ ${LibraryLightFragmentDoc}`;
1650
1629
  /**
1651
1630
  * __useGetLibrariesQuery__
1652
1631
  *
@@ -1672,14 +1651,13 @@ export function useGetLibrariesLazyQuery(baseOptions) {
1672
1651
  }
1673
1652
  export const GetLibraryByIdDocument = gql `
1674
1653
  query GET_LIBRARY_BY_ID($id: [ID!]) {
1675
- libraries(filters: {id: $id}) {
1676
- list {
1677
- ...LibraryDetails
1678
- }
1679
- }
1654
+ libraries(filters: {id: $id}) {
1655
+ list {
1656
+ ...LibraryDetails
1680
1657
  }
1681
- ${LibraryDetailsFragmentDoc}
1682
- `;
1658
+ }
1659
+ }
1660
+ ${LibraryDetailsFragmentDoc}`;
1683
1661
  /**
1684
1662
  * __useGetLibraryByIdQuery__
1685
1663
  *
@@ -1706,19 +1684,19 @@ export function useGetLibraryByIdLazyQuery(baseOptions) {
1706
1684
  }
1707
1685
  export const GetLibraryPermissionsDocument = gql `
1708
1686
  query GET_LIBRARY_PERMISSIONS($libraryId: [ID!]) {
1709
- libraries(filters: {id: $libraryId}) {
1710
- list {
1711
- permissions {
1712
- access_library
1713
- access_record
1714
- create_record
1715
- edit_record
1716
- delete_record
1717
- }
1718
- }
1719
- }
1720
- }
1721
- `;
1687
+ libraries(filters: {id: $libraryId}) {
1688
+ list {
1689
+ permissions {
1690
+ access_library
1691
+ access_record
1692
+ create_record
1693
+ edit_record
1694
+ delete_record
1695
+ }
1696
+ }
1697
+ }
1698
+ }
1699
+ `;
1722
1700
  /**
1723
1701
  * __useGetLibraryPermissionsQuery__
1724
1702
  *
@@ -1745,28 +1723,28 @@ export function useGetLibraryPermissionsLazyQuery(baseOptions) {
1745
1723
  }
1746
1724
  export const GetLibraryPreviewsSettingsDocument = gql `
1747
1725
  query GET_LIBRARY_PREVIEWS_SETTINGS($id: ID!) {
1748
- libraries(filters: {id: [$id]}) {
1749
- list {
1750
- id
1751
- label
1752
- behavior
1753
- previewsSettings {
1754
- description
1755
- label
1756
- system
1757
- versions {
1758
- background
1759
- density
1760
- sizes {
1761
- name
1762
- size
1763
- }
1764
- }
1765
- }
1766
- }
1726
+ libraries(filters: {id: [$id]}) {
1727
+ list {
1728
+ id
1729
+ label
1730
+ behavior
1731
+ previewsSettings {
1732
+ description
1733
+ label
1734
+ system
1735
+ versions {
1736
+ background
1737
+ density
1738
+ sizes {
1739
+ name
1740
+ size
1741
+ }
1767
1742
  }
1743
+ }
1768
1744
  }
1769
- `;
1745
+ }
1746
+ }
1747
+ `;
1770
1748
  /**
1771
1749
  * __useGetLibraryPreviewsSettingsQuery__
1772
1750
  *
@@ -1793,12 +1771,11 @@ export function useGetLibraryPreviewsSettingsLazyQuery(baseOptions) {
1793
1771
  }
1794
1772
  export const SaveLibraryDocument = gql `
1795
1773
  mutation saveLibrary($library: LibraryInput!) {
1796
- saveLibrary(library: $library) {
1797
- ...LibraryDetails
1798
- }
1799
- }
1800
- ${LibraryDetailsFragmentDoc}
1801
- `;
1774
+ saveLibrary(library: $library) {
1775
+ ...LibraryDetails
1776
+ }
1777
+ }
1778
+ ${LibraryDetailsFragmentDoc}`;
1802
1779
  /**
1803
1780
  * __useSaveLibraryMutation__
1804
1781
  *
@@ -1821,18 +1798,13 @@ export function useSaveLibraryMutation(baseOptions) {
1821
1798
  return Apollo.useMutation(SaveLibraryDocument, options);
1822
1799
  }
1823
1800
  export const IsAllowedDocument = gql `
1824
- query IS_ALLOWED(
1825
- $type: PermissionTypes!
1826
- $actions: [PermissionsActions!]!
1827
- $applyTo: ID
1828
- $target: PermissionTarget
1829
- ) {
1830
- isAllowed(type: $type, actions: $actions, applyTo: $applyTo, target: $target) {
1831
- name
1832
- allowed
1833
- }
1834
- }
1835
- `;
1801
+ query IS_ALLOWED($type: PermissionTypes!, $actions: [PermissionsActions!]!, $applyTo: ID, $target: PermissionTarget) {
1802
+ isAllowed(type: $type, actions: $actions, applyTo: $applyTo, target: $target) {
1803
+ name
1804
+ allowed
1805
+ }
1806
+ }
1807
+ `;
1836
1808
  /**
1837
1809
  * __useIsAllowedQuery__
1838
1810
  *
@@ -1862,21 +1834,20 @@ export function useIsAllowedLazyQuery(baseOptions) {
1862
1834
  }
1863
1835
  export const CreateRecordDocument = gql `
1864
1836
  mutation CREATE_RECORD($library: ID!, $data: CreateRecordDataInput) {
1865
- createRecord(library: $library, data: $data) {
1866
- record {
1867
- ...RecordIdentity
1868
- }
1869
- valuesErrors {
1870
- attributeId
1871
- id_value
1872
- input
1873
- message
1874
- type
1875
- }
1876
- }
1837
+ createRecord(library: $library, data: $data) {
1838
+ record {
1839
+ ...RecordIdentity
1877
1840
  }
1878
- ${RecordIdentityFragmentDoc}
1879
- `;
1841
+ valuesErrors {
1842
+ attributeId
1843
+ id_value
1844
+ input
1845
+ message
1846
+ type
1847
+ }
1848
+ }
1849
+ }
1850
+ ${RecordIdentityFragmentDoc}`;
1880
1851
  /**
1881
1852
  * __useCreateRecordMutation__
1882
1853
  *
@@ -1901,13 +1872,16 @@ export function useCreateRecordMutation(baseOptions) {
1901
1872
  }
1902
1873
  export const DeactivateRecordsDocument = gql `
1903
1874
  mutation DEACTIVATE_RECORDS($libraryId: String!, $recordsIds: [String!], $filters: [RecordFilterInput!]) {
1904
- deactivateRecords(recordsIds: $recordsIds, filters: $filters, libraryId: $libraryId) {
1905
- id
1906
- ...RecordIdentity
1907
- }
1908
- }
1909
- ${RecordIdentityFragmentDoc}
1910
- `;
1875
+ deactivateRecords(
1876
+ recordsIds: $recordsIds
1877
+ filters: $filters
1878
+ libraryId: $libraryId
1879
+ ) {
1880
+ id
1881
+ ...RecordIdentity
1882
+ }
1883
+ }
1884
+ ${RecordIdentityFragmentDoc}`;
1911
1885
  /**
1912
1886
  * __useDeactivateRecordsMutation__
1913
1887
  *
@@ -1933,9 +1907,13 @@ export function useDeactivateRecordsMutation(baseOptions) {
1933
1907
  }
1934
1908
  export const DoesFileExistAsChildDocument = gql `
1935
1909
  query DOES_FILE_EXIST_AS_CHILD($parentNode: ID, $treeId: ID!, $filename: String!) {
1936
- doesFileExistAsChild(parentNode: $parentNode, treeId: $treeId, filename: $filename)
1937
- }
1938
- `;
1910
+ doesFileExistAsChild(
1911
+ parentNode: $parentNode
1912
+ treeId: $treeId
1913
+ filename: $filename
1914
+ )
1915
+ }
1916
+ `;
1939
1917
  /**
1940
1918
  * __useDoesFileExistAsChildQuery__
1941
1919
  *
@@ -1964,56 +1942,58 @@ export function useDoesFileExistAsChildLazyQuery(baseOptions) {
1964
1942
  }
1965
1943
  export const GetFileDataDocument = gql `
1966
1944
  query GET_FILE_DATA($library: ID!, $fileId: String!, $previewsStatusAttribute: ID!) {
1967
- records(library: $library, filters: [{field: "id", value: $fileId, condition: EQUAL}]) {
1968
- list {
1969
- ...RecordIdentity
1970
- created_at: property(attribute: "created_at") {
1971
- ... on Value {
1972
- value
1973
- }
1974
- }
1975
- created_by: property(attribute: "created_by") {
1976
- ... on LinkValue {
1977
- value {
1978
- ...RecordIdentity
1979
- }
1980
- }
1981
- }
1982
- modified_at: property(attribute: "modified_at") {
1983
- ... on Value {
1984
- value
1985
- }
1986
- }
1987
- modified_by: property(attribute: "modified_by") {
1988
- ... on LinkValue {
1989
- value {
1990
- ...RecordIdentity
1991
- }
1992
- }
1993
- }
1994
- file_name: property(attribute: "file_name") {
1995
- ... on Value {
1996
- value
1997
- }
1998
- }
1999
- file_path: property(attribute: "file_path") {
2000
- ... on Value {
2001
- value
2002
- }
2003
- }
2004
- previews_status: property(attribute: $previewsStatusAttribute) {
2005
- ... on Value {
2006
- value
2007
- }
2008
- }
2009
- library {
2010
- behavior
2011
- }
2012
- }
1945
+ records(
1946
+ library: $library
1947
+ filters: [{field: "id", value: $fileId, condition: EQUAL}]
1948
+ ) {
1949
+ list {
1950
+ ...RecordIdentity
1951
+ created_at: property(attribute: "created_at") {
1952
+ ... on Value {
1953
+ value
2013
1954
  }
1955
+ }
1956
+ created_by: property(attribute: "created_by") {
1957
+ ... on LinkValue {
1958
+ value {
1959
+ ...RecordIdentity
1960
+ }
1961
+ }
1962
+ }
1963
+ modified_at: property(attribute: "modified_at") {
1964
+ ... on Value {
1965
+ value
1966
+ }
1967
+ }
1968
+ modified_by: property(attribute: "modified_by") {
1969
+ ... on LinkValue {
1970
+ value {
1971
+ ...RecordIdentity
1972
+ }
1973
+ }
1974
+ }
1975
+ file_name: property(attribute: "file_name") {
1976
+ ... on Value {
1977
+ value
1978
+ }
1979
+ }
1980
+ file_path: property(attribute: "file_path") {
1981
+ ... on Value {
1982
+ value
1983
+ }
1984
+ }
1985
+ previews_status: property(attribute: $previewsStatusAttribute) {
1986
+ ... on Value {
1987
+ value
1988
+ }
1989
+ }
1990
+ library {
1991
+ behavior
1992
+ }
2014
1993
  }
2015
- ${RecordIdentityFragmentDoc}
2016
- `;
1994
+ }
1995
+ }
1996
+ ${RecordIdentityFragmentDoc}`;
2017
1997
  /**
2018
1998
  * __useGetFileDataQuery__
2019
1999
  *
@@ -2042,22 +2022,26 @@ export function useGetFileDataLazyQuery(baseOptions) {
2042
2022
  }
2043
2023
  export const RecordFormDocument = gql `
2044
2024
  query RECORD_FORM($libraryId: String!, $formId: String!, $recordId: String, $version: [ValueVersionInput!]) {
2045
- recordForm(recordId: $recordId, libraryId: $libraryId, formId: $formId, version: $version) {
2046
- id
2047
- recordId
2048
- library {
2049
- id
2050
- }
2051
- dependencyAttributes {
2052
- id
2053
- }
2054
- elements {
2055
- ...RecordFormElement
2056
- }
2057
- }
2058
- }
2059
- ${RecordFormElementFragmentDoc}
2060
- `;
2025
+ recordForm(
2026
+ recordId: $recordId
2027
+ libraryId: $libraryId
2028
+ formId: $formId
2029
+ version: $version
2030
+ ) {
2031
+ id
2032
+ recordId
2033
+ library {
2034
+ id
2035
+ }
2036
+ dependencyAttributes {
2037
+ id
2038
+ }
2039
+ elements {
2040
+ ...RecordFormElement
2041
+ }
2042
+ }
2043
+ }
2044
+ ${RecordFormElementFragmentDoc}`;
2061
2045
  /**
2062
2046
  * __useRecordFormQuery__
2063
2047
  *
@@ -2087,28 +2071,27 @@ export function useRecordFormLazyQuery(baseOptions) {
2087
2071
  }
2088
2072
  export const RecordUpdateDocument = gql `
2089
2073
  subscription RECORD_UPDATE($filters: RecordUpdateFilterInput) {
2090
- recordUpdate(filters: $filters) {
2091
- record {
2092
- ...RecordIdentity
2093
- modified_by: property(attribute: "modified_by") {
2094
- ... on LinkValue {
2095
- value {
2096
- ...RecordIdentity
2097
- }
2098
- }
2099
- }
2100
- }
2101
- updatedValues {
2102
- attribute
2103
- value {
2104
- ...ValueDetails
2105
- }
2106
- }
2074
+ recordUpdate(filters: $filters) {
2075
+ record {
2076
+ ...RecordIdentity
2077
+ modified_by: property(attribute: "modified_by") {
2078
+ ... on LinkValue {
2079
+ value {
2080
+ ...RecordIdentity
2081
+ }
2107
2082
  }
2083
+ }
2084
+ }
2085
+ updatedValues {
2086
+ attribute
2087
+ value {
2088
+ ...ValueDetails
2089
+ }
2108
2090
  }
2091
+ }
2092
+ }
2109
2093
  ${RecordIdentityFragmentDoc}
2110
- ${ValueDetailsFragmentDoc}
2111
- `;
2094
+ ${ValueDetailsFragmentDoc}`;
2112
2095
  /**
2113
2096
  * __useRecordUpdateSubscription__
2114
2097
  *
@@ -2131,9 +2114,9 @@ export function useRecordUpdateSubscription(baseOptions) {
2131
2114
  }
2132
2115
  export const IndexRecordsDocument = gql `
2133
2116
  mutation INDEX_RECORDS($libraryId: String!, $records: [String!]) {
2134
- indexRecords(libraryId: $libraryId, records: $records)
2135
- }
2136
- `;
2117
+ indexRecords(libraryId: $libraryId, records: $records)
2118
+ }
2119
+ `;
2137
2120
  /**
2138
2121
  * __useIndexRecordsMutation__
2139
2122
  *
@@ -2158,9 +2141,9 @@ export function useIndexRecordsMutation(baseOptions) {
2158
2141
  }
2159
2142
  export const CancelTaskDocument = gql `
2160
2143
  mutation CANCEL_TASK($taskId: ID!) {
2161
- cancelTask(taskId: $taskId)
2162
- }
2163
- `;
2144
+ cancelTask(taskId: $taskId)
2145
+ }
2146
+ `;
2164
2147
  /**
2165
2148
  * __useCancelTaskMutation__
2166
2149
  *
@@ -2184,11 +2167,11 @@ export function useCancelTaskMutation(baseOptions) {
2184
2167
  }
2185
2168
  export const CheckTreeExistenceDocument = gql `
2186
2169
  query CHECK_TREE_EXISTENCE($id: [ID!]) {
2187
- trees(filters: {id: $id}) {
2188
- totalCount
2189
- }
2190
- }
2191
- `;
2170
+ trees(filters: {id: $id}) {
2171
+ totalCount
2172
+ }
2173
+ }
2174
+ `;
2192
2175
  /**
2193
2176
  * __useCheckTreeExistenceQuery__
2194
2177
  *
@@ -2215,11 +2198,11 @@ export function useCheckTreeExistenceLazyQuery(baseOptions) {
2215
2198
  }
2216
2199
  export const DeleteTreeDocument = gql `
2217
2200
  mutation DELETE_TREE($id: ID!) {
2218
- deleteTree(id: $id) {
2219
- id
2220
- }
2221
- }
2222
- `;
2201
+ deleteTree(id: $id) {
2202
+ id
2203
+ }
2204
+ }
2205
+ `;
2223
2206
  /**
2224
2207
  * __useDeleteTreeMutation__
2225
2208
  *
@@ -2243,14 +2226,13 @@ export function useDeleteTreeMutation(baseOptions) {
2243
2226
  }
2244
2227
  export const GetTreeByIdDocument = gql `
2245
2228
  query GET_TREE_BY_ID($id: [ID!]) {
2246
- trees(filters: {id: $id}) {
2247
- list {
2248
- ...TreeDetails
2249
- }
2250
- }
2229
+ trees(filters: {id: $id}) {
2230
+ list {
2231
+ ...TreeDetails
2251
2232
  }
2252
- ${TreeDetailsFragmentDoc}
2253
- `;
2233
+ }
2234
+ }
2235
+ ${TreeDetailsFragmentDoc}`;
2254
2236
  /**
2255
2237
  * __useGetTreeByIdQuery__
2256
2238
  *
@@ -2277,29 +2259,29 @@ export function useGetTreeByIdLazyQuery(baseOptions) {
2277
2259
  }
2278
2260
  export const GetTreeLibrariesDocument = gql `
2279
2261
  query GET_TREE_LIBRARIES($treeId: [ID!], $library: String) {
2280
- trees(filters: {id: $treeId, library: $library}) {
2281
- totalCount
2282
- list {
2283
- id
2284
- behavior
2285
- system
2286
- libraries {
2287
- library {
2288
- id
2289
- label
2290
- behavior
2291
- system
2292
- }
2293
- settings {
2294
- allowMultiplePositions
2295
- allowedChildren
2296
- allowedAtRoot
2297
- }
2298
- }
2299
- }
2262
+ trees(filters: {id: $treeId, library: $library}) {
2263
+ totalCount
2264
+ list {
2265
+ id
2266
+ behavior
2267
+ system
2268
+ libraries {
2269
+ library {
2270
+ id
2271
+ label
2272
+ behavior
2273
+ system
2274
+ }
2275
+ settings {
2276
+ allowMultiplePositions
2277
+ allowedChildren
2278
+ allowedAtRoot
2300
2279
  }
2280
+ }
2301
2281
  }
2302
- `;
2282
+ }
2283
+ }
2284
+ `;
2303
2285
  /**
2304
2286
  * __useGetTreeLibrariesQuery__
2305
2287
  *
@@ -2327,14 +2309,13 @@ export function useGetTreeLibrariesLazyQuery(baseOptions) {
2327
2309
  }
2328
2310
  export const GetTreesDocument = gql `
2329
2311
  query GET_TREES {
2330
- trees {
2331
- list {
2332
- ...TreeLight
2333
- }
2334
- }
2312
+ trees {
2313
+ list {
2314
+ ...TreeLight
2335
2315
  }
2336
- ${TreeLightFragmentDoc}
2337
- `;
2316
+ }
2317
+ }
2318
+ ${TreeLightFragmentDoc}`;
2338
2319
  /**
2339
2320
  * __useGetTreesQuery__
2340
2321
  *
@@ -2360,12 +2341,11 @@ export function useGetTreesLazyQuery(baseOptions) {
2360
2341
  }
2361
2342
  export const SaveTreeDocument = gql `
2362
2343
  mutation SAVE_TREE($tree: TreeInput!) {
2363
- saveTree(tree: $tree) {
2364
- ...TreeDetails
2365
- }
2366
- }
2367
- ${TreeDetailsFragmentDoc}
2368
- `;
2344
+ saveTree(tree: $tree) {
2345
+ ...TreeDetails
2346
+ }
2347
+ }
2348
+ ${TreeDetailsFragmentDoc}`;
2369
2349
  /**
2370
2350
  * __useSaveTreeMutation__
2371
2351
  *
@@ -2389,15 +2369,14 @@ export function useSaveTreeMutation(baseOptions) {
2389
2369
  }
2390
2370
  export const TreeNodeChildrenDocument = gql `
2391
2371
  query TREE_NODE_CHILDREN($treeId: ID!, $node: ID, $pagination: Pagination) {
2392
- treeNodeChildren(treeId: $treeId, node: $node, pagination: $pagination) {
2393
- totalCount
2394
- list {
2395
- ...TreeNodeChild
2396
- }
2397
- }
2372
+ treeNodeChildren(treeId: $treeId, node: $node, pagination: $pagination) {
2373
+ totalCount
2374
+ list {
2375
+ ...TreeNodeChild
2398
2376
  }
2399
- ${TreeNodeChildFragmentDoc}
2400
- `;
2377
+ }
2378
+ }
2379
+ ${TreeNodeChildFragmentDoc}`;
2401
2380
  /**
2402
2381
  * __useTreeNodeChildrenQuery__
2403
2382
  *
@@ -2426,12 +2405,12 @@ export function useTreeNodeChildrenLazyQuery(baseOptions) {
2426
2405
  }
2427
2406
  export const GetUserDataDocument = gql `
2428
2407
  query GET_USER_DATA($keys: [String!]!, $global: Boolean) {
2429
- userData(keys: $keys, global: $global) {
2430
- global
2431
- data
2432
- }
2433
- }
2434
- `;
2408
+ userData(keys: $keys, global: $global) {
2409
+ global
2410
+ data
2411
+ }
2412
+ }
2413
+ `;
2435
2414
  /**
2436
2415
  * __useGetUserDataQuery__
2437
2416
  *
@@ -2459,12 +2438,12 @@ export function useGetUserDataLazyQuery(baseOptions) {
2459
2438
  }
2460
2439
  export const SaveUserDataDocument = gql `
2461
2440
  mutation SAVE_USER_DATA($key: String!, $value: Any, $global: Boolean!) {
2462
- saveUserData(key: $key, value: $value, global: $global) {
2463
- global
2464
- data
2465
- }
2466
- }
2467
- `;
2441
+ saveUserData(key: $key, value: $value, global: $global) {
2442
+ global
2443
+ data
2444
+ }
2445
+ }
2446
+ `;
2468
2447
  /**
2469
2448
  * __useSaveUserDataMutation__
2470
2449
  *
@@ -2490,12 +2469,16 @@ export function useSaveUserDataMutation(baseOptions) {
2490
2469
  }
2491
2470
  export const DeleteValueDocument = gql `
2492
2471
  mutation DELETE_VALUE($library: ID!, $recordId: ID!, $attribute: ID!, $value: ValueInput) {
2493
- deleteValue(library: $library, recordId: $recordId, attribute: $attribute, value: $value) {
2494
- ...ValueDetails
2495
- }
2496
- }
2497
- ${ValueDetailsFragmentDoc}
2498
- `;
2472
+ deleteValue(
2473
+ library: $library
2474
+ recordId: $recordId
2475
+ attribute: $attribute
2476
+ value: $value
2477
+ ) {
2478
+ ...ValueDetails
2479
+ }
2480
+ }
2481
+ ${ValueDetailsFragmentDoc}`;
2499
2482
  /**
2500
2483
  * __useDeleteValueMutation__
2501
2484
  *
@@ -2522,12 +2505,15 @@ export function useDeleteValueMutation(baseOptions) {
2522
2505
  }
2523
2506
  export const RunActionsListAndFormatOnValueDocument = gql `
2524
2507
  query RUN_ACTIONS_LIST_AND_FORMAT_ON_VALUE($library: ID!, $value: ValueBatchInput, $version: [ValueVersionInput]) {
2525
- runActionsListAndFormatOnValue(library: $library, value: $value, version: $version) {
2526
- ...ValueDetails
2527
- }
2528
- }
2529
- ${ValueDetailsFragmentDoc}
2530
- `;
2508
+ runActionsListAndFormatOnValue(
2509
+ library: $library
2510
+ value: $value
2511
+ version: $version
2512
+ ) {
2513
+ ...ValueDetails
2514
+ }
2515
+ }
2516
+ ${ValueDetailsFragmentDoc}`;
2531
2517
  /**
2532
2518
  * __useRunActionsListAndFormatOnValueQuery__
2533
2519
  *
@@ -2555,33 +2541,26 @@ export function useRunActionsListAndFormatOnValueLazyQuery(baseOptions) {
2555
2541
  return Apollo.useLazyQuery(RunActionsListAndFormatOnValueDocument, options);
2556
2542
  }
2557
2543
  export const SaveValueBatchDocument = gql `
2558
- mutation SAVE_VALUE_BATCH(
2559
- $library: ID!
2560
- $recordId: ID!
2561
- $version: [ValueVersionInput!]
2562
- $values: [ValueBatchInput!]!
2563
- $deleteEmpty: Boolean
2564
- ) {
2565
- saveValueBatch(
2566
- library: $library
2567
- recordId: $recordId
2568
- version: $version
2569
- values: $values
2570
- deleteEmpty: $deleteEmpty
2571
- ) {
2572
- values {
2573
- ...ValueDetails
2574
- }
2575
- errors {
2576
- type
2577
- attribute
2578
- input
2579
- message
2580
- }
2581
- }
2582
- }
2583
- ${ValueDetailsFragmentDoc}
2584
- `;
2544
+ mutation SAVE_VALUE_BATCH($library: ID!, $recordId: ID!, $version: [ValueVersionInput!], $values: [ValueBatchInput!]!, $deleteEmpty: Boolean) {
2545
+ saveValueBatch(
2546
+ library: $library
2547
+ recordId: $recordId
2548
+ version: $version
2549
+ values: $values
2550
+ deleteEmpty: $deleteEmpty
2551
+ ) {
2552
+ values {
2553
+ ...ValueDetails
2554
+ }
2555
+ errors {
2556
+ type
2557
+ attribute
2558
+ input
2559
+ message
2560
+ }
2561
+ }
2562
+ }
2563
+ ${ValueDetailsFragmentDoc}`;
2585
2564
  /**
2586
2565
  * __useSaveValueBatchMutation__
2587
2566
  *
@@ -2609,12 +2588,12 @@ export function useSaveValueBatchMutation(baseOptions) {
2609
2588
  }
2610
2589
  export const DeleteViewDocument = gql `
2611
2590
  mutation DELETE_VIEW($viewId: String!) {
2612
- deleteView(viewId: $viewId) {
2613
- id
2614
- library
2615
- }
2616
- }
2617
- `;
2591
+ deleteView(viewId: $viewId) {
2592
+ id
2593
+ library
2594
+ }
2595
+ }
2596
+ `;
2618
2597
  /**
2619
2598
  * __useDeleteViewMutation__
2620
2599
  *
@@ -2638,12 +2617,11 @@ export function useDeleteViewMutation(baseOptions) {
2638
2617
  }
2639
2618
  export const GetViewDocument = gql `
2640
2619
  query GET_VIEW($viewId: String!) {
2641
- view(viewId: $viewId) {
2642
- ...ViewDetails
2643
- }
2644
- }
2645
- ${ViewDetailsFragmentDoc}
2646
- `;
2620
+ view(viewId: $viewId) {
2621
+ ...ViewDetails
2622
+ }
2623
+ }
2624
+ ${ViewDetailsFragmentDoc}`;
2647
2625
  /**
2648
2626
  * __useGetViewQuery__
2649
2627
  *
@@ -2670,15 +2648,14 @@ export function useGetViewLazyQuery(baseOptions) {
2670
2648
  }
2671
2649
  export const GetViewsListDocument = gql `
2672
2650
  query GET_VIEWS_LIST($libraryId: String!) {
2673
- views(library: $libraryId) {
2674
- totalCount
2675
- list {
2676
- ...ViewDetails
2677
- }
2678
- }
2651
+ views(library: $libraryId) {
2652
+ totalCount
2653
+ list {
2654
+ ...ViewDetails
2679
2655
  }
2680
- ${ViewDetailsFragmentDoc}
2681
- `;
2656
+ }
2657
+ }
2658
+ ${ViewDetailsFragmentDoc}`;
2682
2659
  /**
2683
2660
  * __useGetViewsListQuery__
2684
2661
  *
@@ -2705,12 +2682,11 @@ export function useGetViewsListLazyQuery(baseOptions) {
2705
2682
  }
2706
2683
  export const AddViewDocument = gql `
2707
2684
  mutation ADD_VIEW($view: ViewInput!) {
2708
- saveView(view: $view) {
2709
- ...ViewDetails
2710
- }
2711
- }
2712
- ${ViewDetailsFragmentDoc}
2713
- `;
2685
+ saveView(view: $view) {
2686
+ ...ViewDetails
2687
+ }
2688
+ }
2689
+ ${ViewDetailsFragmentDoc}`;
2714
2690
  /**
2715
2691
  * __useAddViewMutation__
2716
2692
  *
@@ -2734,21 +2710,20 @@ export function useAddViewMutation(baseOptions) {
2734
2710
  }
2735
2711
  export const ExplorerDocument = gql `
2736
2712
  query Explorer($libraryId: ID!, $attributeIds: [ID!]!, $filters: [RecordFilterInput]) {
2737
- records(library: $libraryId, filters: $filters) {
2738
- list {
2739
- ...RecordIdentity
2740
- properties(attributeIds: $attributeIds) {
2741
- attributeId
2742
- values {
2743
- ...PropertyValue
2744
- }
2745
- }
2746
- }
2713
+ records(library: $libraryId, filters: $filters) {
2714
+ list {
2715
+ ...RecordIdentity
2716
+ properties(attributeIds: $attributeIds) {
2717
+ attributeId
2718
+ values {
2719
+ ...PropertyValue
2747
2720
  }
2721
+ }
2748
2722
  }
2723
+ }
2724
+ }
2749
2725
  ${RecordIdentityFragmentDoc}
2750
- ${PropertyValueFragmentDoc}
2751
- `;
2726
+ ${PropertyValueFragmentDoc}`;
2752
2727
  /**
2753
2728
  * __useExplorerQuery__
2754
2729
  *
@@ -2775,4 +2750,38 @@ export function useExplorerLazyQuery(baseOptions) {
2775
2750
  const options = { ...defaultOptions, ...baseOptions };
2776
2751
  return Apollo.useLazyQuery(ExplorerDocument, options);
2777
2752
  }
2753
+ export const ExplorerLibraryDataDocument = gql `
2754
+ query ExplorerLibraryData($libraryId: ID!) {
2755
+ libraries(filters: {id: [$libraryId]}) {
2756
+ list {
2757
+ id
2758
+ label
2759
+ }
2760
+ }
2761
+ }
2762
+ `;
2763
+ /**
2764
+ * __useExplorerLibraryDataQuery__
2765
+ *
2766
+ * To run a query within a React component, call `useExplorerLibraryDataQuery` and pass it any options that fit your needs.
2767
+ * When your component renders, `useExplorerLibraryDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
2768
+ * you can use to render your UI.
2769
+ *
2770
+ * @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;
2771
+ *
2772
+ * @example
2773
+ * const { data, loading, error } = useExplorerLibraryDataQuery({
2774
+ * variables: {
2775
+ * libraryId: // value for 'libraryId'
2776
+ * },
2777
+ * });
2778
+ */
2779
+ export function useExplorerLibraryDataQuery(baseOptions) {
2780
+ const options = { ...defaultOptions, ...baseOptions };
2781
+ return Apollo.useQuery(ExplorerLibraryDataDocument, options);
2782
+ }
2783
+ export function useExplorerLibraryDataLazyQuery(baseOptions) {
2784
+ const options = { ...defaultOptions, ...baseOptions };
2785
+ return Apollo.useLazyQuery(ExplorerLibraryDataDocument, options);
2786
+ }
2778
2787
  //# sourceMappingURL=index.js.map