@crowdin/n8n-nodes-crowdin 0.20.0 → 0.22.0

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 (93) hide show
  1. package/dist/nodes/Crowdin/methods/common/index.js +8 -0
  2. package/dist/nodes/Crowdin/methods/common/index.js.map +1 -1
  3. package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js +558 -2
  4. package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js.map +1 -1
  5. package/dist/nodes/Crowdin/properties/crowdin/fileBased/applications.js +1250 -220
  6. package/dist/nodes/Crowdin/properties/crowdin/fileBased/applications.js.map +1 -1
  7. package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js +187 -1
  8. package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js.map +1 -1
  9. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js +2 -2
  10. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js.map +1 -1
  11. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js +71 -0
  12. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js.map +1 -1
  13. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js +585 -0
  14. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js.map +1 -1
  15. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceStrings.js +261 -0
  16. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceStrings.js.map +1 -1
  17. package/dist/nodes/Crowdin/properties/crowdin/fileBased/stringAssetTranslations.js +243 -1
  18. package/dist/nodes/Crowdin/properties/crowdin/fileBased/stringAssetTranslations.js.map +1 -1
  19. package/dist/nodes/Crowdin/properties/crowdin/fileBased/styleGuides.js +2 -2
  20. package/dist/nodes/Crowdin/properties/crowdin/fileBased/styleGuides.js.map +1 -1
  21. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationMemory.js +240 -1
  22. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationMemory.js.map +1 -1
  23. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js +97 -36
  24. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js.map +1 -1
  25. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js +558 -2
  26. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js.map +1 -1
  27. package/dist/nodes/Crowdin/properties/crowdin/stringBased/applications.js +1250 -220
  28. package/dist/nodes/Crowdin/properties/crowdin/stringBased/applications.js.map +1 -1
  29. package/dist/nodes/Crowdin/properties/crowdin/stringBased/branches.js +175 -0
  30. package/dist/nodes/Crowdin/properties/crowdin/stringBased/branches.js.map +1 -1
  31. package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js +187 -1
  32. package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js.map +1 -1
  33. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js +2 -2
  34. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js.map +1 -1
  35. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js +57 -0
  36. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js.map +1 -1
  37. package/dist/nodes/Crowdin/properties/crowdin/stringBased/sourceStrings.js +261 -0
  38. package/dist/nodes/Crowdin/properties/crowdin/stringBased/sourceStrings.js.map +1 -1
  39. package/dist/nodes/Crowdin/properties/crowdin/stringBased/stringTranslations.js +243 -1
  40. package/dist/nodes/Crowdin/properties/crowdin/stringBased/stringTranslations.js.map +1 -1
  41. package/dist/nodes/Crowdin/properties/crowdin/stringBased/styleGuides.js +2 -2
  42. package/dist/nodes/Crowdin/properties/crowdin/stringBased/styleGuides.js.map +1 -1
  43. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationMemory.js +240 -1
  44. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationMemory.js.map +1 -1
  45. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js +34 -34
  46. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js.map +1 -1
  47. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js +537 -2
  48. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js.map +1 -1
  49. package/dist/nodes/Crowdin/properties/enterprise/fileBased/applications.js +822 -297
  50. package/dist/nodes/Crowdin/properties/enterprise/fileBased/applications.js.map +1 -1
  51. package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js +159 -1
  52. package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js.map +1 -1
  53. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js +3 -3
  54. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js.map +1 -1
  55. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js +100 -4
  56. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js.map +1 -1
  57. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js +501 -0
  58. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js.map +1 -1
  59. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceStrings.js +233 -0
  60. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceStrings.js.map +1 -1
  61. package/dist/nodes/Crowdin/properties/enterprise/fileBased/stringAssetTranslations.js +215 -1
  62. package/dist/nodes/Crowdin/properties/enterprise/fileBased/stringAssetTranslations.js.map +1 -1
  63. package/dist/nodes/Crowdin/properties/enterprise/fileBased/styleGuides.js +2 -2
  64. package/dist/nodes/Crowdin/properties/enterprise/fileBased/styleGuides.js.map +1 -1
  65. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationMemory.js +212 -1
  66. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationMemory.js.map +1 -1
  67. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js +98 -36
  68. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js.map +1 -1
  69. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js +537 -2
  70. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js.map +1 -1
  71. package/dist/nodes/Crowdin/properties/enterprise/stringBased/applications.js +822 -297
  72. package/dist/nodes/Crowdin/properties/enterprise/stringBased/applications.js.map +1 -1
  73. package/dist/nodes/Crowdin/properties/enterprise/stringBased/branches.js +147 -0
  74. package/dist/nodes/Crowdin/properties/enterprise/stringBased/branches.js.map +1 -1
  75. package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js +159 -1
  76. package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js.map +1 -1
  77. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js +3 -3
  78. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js.map +1 -1
  79. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js +86 -4
  80. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js.map +1 -1
  81. package/dist/nodes/Crowdin/properties/enterprise/stringBased/sourceStrings.js +233 -0
  82. package/dist/nodes/Crowdin/properties/enterprise/stringBased/sourceStrings.js.map +1 -1
  83. package/dist/nodes/Crowdin/properties/enterprise/stringBased/stringTranslations.js +215 -1
  84. package/dist/nodes/Crowdin/properties/enterprise/stringBased/stringTranslations.js.map +1 -1
  85. package/dist/nodes/Crowdin/properties/enterprise/stringBased/styleGuides.js +2 -2
  86. package/dist/nodes/Crowdin/properties/enterprise/stringBased/styleGuides.js.map +1 -1
  87. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationMemory.js +212 -1
  88. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationMemory.js.map +1 -1
  89. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js +35 -35
  90. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js.map +1 -1
  91. package/dist/package.json +1 -1
  92. package/dist/tsconfig.tsbuildinfo +1 -1
  93. package/package.json +1 -1
@@ -16,6 +16,18 @@ exports.applicationsProperties = [
16
16
  }
17
17
  },
18
18
  options: [
19
+ {
20
+ name: 'Upload Application Bundle',
21
+ value: 'api.applications.installations.bundles.post',
22
+ action: 'Upload Application Bundle',
23
+ description: '**Required scopes:** `application` (Read and Write).\n\nUpload a bundle archive for a serverless app installed from manifest content. The bundle must be a ZIP archive that contains a non-empty `app.js` entry point at its root.',
24
+ routing: {
25
+ request: {
26
+ method: 'POST',
27
+ url: '=/applications/installations/{{$parameter["identifier"]}}/bundles'
28
+ }
29
+ }
30
+ },
19
31
  {
20
32
  name: 'List Application Installations',
21
33
  value: 'api.applications.installations.getMany',
@@ -46,7 +58,7 @@ exports.applicationsProperties = [
46
58
  name: 'Install Application',
47
59
  value: 'api.applications.installations.post',
48
60
  action: 'Install Application',
49
- description: '**Required scopes:** `application` (Read and Write).',
61
+ description: '**Required scopes:** `application` (Read and Write).\n\nInstall an application either from a hosted manifest URL or from its manifest content.<br><br>**Note:** Any application - with or without a backend, and regardless of whether it is published to the Crowdin Store - can be installed from a manifest URL (the manifest only needs to be reachable at that URL). Installing from manifest content is supported only for serverless apps - apps that run entirely in the browser with no backend (no `baseUrl`).',
50
62
  routing: {
51
63
  request: {
52
64
  method: 'POST',
@@ -89,19 +101,14 @@ exports.applicationsProperties = [
89
101
  }
90
102
  },
91
103
  {
92
- name: 'Update Application Permissions',
104
+ name: 'Edit Application Installation',
93
105
  value: 'api.applications.installations.patch',
94
- action: 'Update Application Permissions',
106
+ action: 'Edit Application Installation',
95
107
  description: '**Required scopes:** `application` (Read and Write).',
96
108
  routing: {
97
109
  request: {
98
110
  method: 'PATCH',
99
111
  url: '=/applications/installations/{{$parameter["identifier"]}}'
100
- },
101
- send: {
102
- preSend: [
103
- preSend_1.transformToJsonPatch
104
- ]
105
112
  }
106
113
  }
107
114
  },
@@ -215,7 +222,26 @@ exports.applicationsProperties = [
215
222
  }
216
223
  }
217
224
  ],
218
- default: 'api.applications.installations.getMany'
225
+ default: 'api.applications.installations.bundles.post'
226
+ },
227
+ {
228
+ displayName: 'POST /applications/installations/{identifier}/bundles',
229
+ name: 'operation',
230
+ type: 'notice',
231
+ typeOptions: {
232
+ theme: 'info'
233
+ },
234
+ default: '',
235
+ displayOptions: {
236
+ show: {
237
+ resource: [
238
+ 'applications'
239
+ ],
240
+ operation: [
241
+ 'api.applications.installations.bundles.post'
242
+ ]
243
+ }
244
+ }
219
245
  },
220
246
  {
221
247
  displayName: 'GET /applications/installations',
@@ -445,6 +471,56 @@ exports.applicationsProperties = [
445
471
  }
446
472
  }
447
473
  },
474
+ {
475
+ displayName: 'Identifier',
476
+ name: 'identifier',
477
+ required: true,
478
+ description: 'Application Identifier. Get via [List Applications](#operation/api.applications.getMany)',
479
+ default: '',
480
+ type: 'options',
481
+ displayOptions: {
482
+ show: {
483
+ resource: [
484
+ 'applications'
485
+ ],
486
+ operation: [
487
+ 'api.applications.installations.bundles.post'
488
+ ]
489
+ }
490
+ },
491
+ typeOptions: {
492
+ loadOptionsMethod: 'getApplicationInstallations'
493
+ }
494
+ },
495
+ {
496
+ displayName: 'Storage Id',
497
+ required: true,
498
+ name: 'storageId',
499
+ type: 'options',
500
+ default: '',
501
+ description: 'Storage Identifier. Get via [List Storages](#operation/api.storages.getMany).<br><br>Storage file must be a ZIP archive containing the application bundle',
502
+ routing: {
503
+ send: {
504
+ property: 'storageId',
505
+ propertyInDotNotation: false,
506
+ type: 'body',
507
+ value: '={{ $value }}'
508
+ }
509
+ },
510
+ displayOptions: {
511
+ show: {
512
+ resource: [
513
+ 'applications'
514
+ ],
515
+ operation: [
516
+ 'api.applications.installations.bundles.post'
517
+ ]
518
+ }
519
+ },
520
+ typeOptions: {
521
+ loadOptionsMethod: 'getStorages'
522
+ }
523
+ },
448
524
  {
449
525
  displayName: 'Limit',
450
526
  name: 'limit',
@@ -531,151 +607,11 @@ exports.applicationsProperties = [
531
607
  placeholder: 'createdAt desc'
532
608
  },
533
609
  {
534
- displayName: 'Url',
535
- required: true,
536
- name: 'url',
537
- type: 'string',
538
- default: '',
539
- description: 'Manifest URL',
540
- routing: {
541
- send: {
542
- property: 'url',
543
- propertyInDotNotation: false,
544
- type: 'body',
545
- value: '={{ $value || undefined }}'
546
- }
547
- },
548
- displayOptions: {
549
- show: {
550
- resource: [
551
- 'applications'
552
- ],
553
- operation: [
554
- 'api.applications.installations.post'
555
- ]
556
- }
557
- },
558
- placeholder: 'https://localhost.dev/crowdin.json'
559
- },
560
- {
561
- displayName: 'Permissions',
562
- name: 'permissions',
563
- type: 'fixedCollection',
610
+ displayName: 'Body',
611
+ name: '_body',
612
+ description: 'Select configuration type',
564
613
  default: {},
565
- description: undefined,
566
- routing: {
567
- send: {
568
- property: 'permissions',
569
- propertyInDotNotation: false,
570
- type: 'body',
571
- value: '={{ $value.fields || undefined }}',
572
- preSend: [
573
- preSend_1.normalizeFieldBody
574
- ]
575
- }
576
- },
577
- displayOptions: {
578
- show: {
579
- resource: [
580
- 'applications'
581
- ],
582
- operation: [
583
- 'api.applications.installations.post'
584
- ]
585
- }
586
- },
587
- placeholder: 'Add Field',
588
- options: [
589
- {
590
- displayName: 'Fields',
591
- name: 'fields',
592
- values: [
593
- {
594
- displayName: 'Project',
595
- name: 'project',
596
- type: 'fixedCollection',
597
- default: {},
598
- description: undefined,
599
- placeholder: 'Add Field',
600
- options: [
601
- {
602
- displayName: 'Fields',
603
- name: 'fields',
604
- values: [
605
- {
606
- displayName: 'Value',
607
- name: 'value',
608
- type: 'options',
609
- default: '',
610
- description: undefined,
611
- options: [
612
- {
613
- name: '-',
614
- value: ''
615
- },
616
- {
617
- name: 'own',
618
- value: 'own'
619
- },
620
- {
621
- name: 'restricted',
622
- value: 'restricted'
623
- }
624
- ],
625
- placeholder: 'restricted'
626
- },
627
- {
628
- displayName: 'Ids',
629
- name: 'ids',
630
- type: 'fixedCollection',
631
- typeOptions: {
632
- multipleValues: true
633
- },
634
- default: {},
635
- description: undefined,
636
- placeholder: 'Add Item',
637
- options: [
638
- {
639
- displayName: 'Items',
640
- name: 'items',
641
- values: [
642
- {
643
- displayName: 'Value',
644
- name: '_value',
645
- type: 'number',
646
- default: 0,
647
- description: undefined,
648
- placeholder: '0'
649
- }
650
- ]
651
- }
652
- ]
653
- }
654
- ]
655
- }
656
- ]
657
- }
658
- ]
659
- }
660
- ]
661
- },
662
- {
663
- displayName: 'Modules',
664
- name: 'modules',
665
614
  type: 'fixedCollection',
666
- default: {},
667
- description: undefined,
668
- routing: {
669
- send: {
670
- property: 'modules',
671
- propertyInDotNotation: false,
672
- type: 'body',
673
- value: '={{ $value }}',
674
- preSend: [
675
- preSend_1.normalizeFieldBody
676
- ]
677
- }
678
- },
679
615
  displayOptions: {
680
616
  show: {
681
617
  resource: [
@@ -686,22 +622,19 @@ exports.applicationsProperties = [
686
622
  ]
687
623
  }
688
624
  },
689
- typeOptions: {
690
- multipleValues: true
691
- },
692
- placeholder: 'Add Item',
693
625
  options: [
694
626
  {
695
- displayName: 'Item',
696
- name: 'items',
627
+ displayName: 'Install an application from a manifest URL',
628
+ name: '_installAnApplicationFromAManifestUrl',
697
629
  values: [
698
630
  {
699
- displayName: 'Key',
700
- name: 'key',
631
+ displayName: 'Url',
632
+ name: 'url',
701
633
  type: 'string',
702
634
  default: '',
703
- description: undefined,
704
- placeholder: 'some-module-key'
635
+ description: 'Manifest URL',
636
+ required: true,
637
+ placeholder: 'https://localhost.dev/crowdin.json'
705
638
  },
706
639
  {
707
640
  displayName: 'Permissions',
@@ -720,7 +653,7 @@ exports.applicationsProperties = [
720
653
  name: 'user',
721
654
  type: 'fixedCollection',
722
655
  default: {},
723
- description: undefined,
656
+ description: 'Use modules permissions instead',
724
657
  placeholder: 'Add Field',
725
658
  options: [
726
659
  {
@@ -732,7 +665,7 @@ exports.applicationsProperties = [
732
665
  name: 'value',
733
666
  type: 'options',
734
667
  default: '',
735
- description: '\n\n __Note__: For exporters, the `all` value will be set',
668
+ description: undefined,
736
669
  options: [
737
670
  {
738
671
  name: '-',
@@ -769,7 +702,72 @@ exports.applicationsProperties = [
769
702
  multipleValues: true
770
703
  },
771
704
  default: {},
772
- description: 'Ids is only available for restricted value',
705
+ description: 'Ids is available only for restricted value',
706
+ placeholder: 'Add Item',
707
+ options: [
708
+ {
709
+ displayName: 'Items',
710
+ name: 'items',
711
+ values: [
712
+ {
713
+ displayName: 'Value',
714
+ name: '_value',
715
+ type: 'number',
716
+ default: 0,
717
+ description: undefined,
718
+ placeholder: '0'
719
+ }
720
+ ]
721
+ }
722
+ ]
723
+ }
724
+ ]
725
+ }
726
+ ]
727
+ },
728
+ {
729
+ displayName: 'Project',
730
+ name: 'project',
731
+ type: 'fixedCollection',
732
+ default: {},
733
+ description: undefined,
734
+ placeholder: 'Add Field',
735
+ options: [
736
+ {
737
+ displayName: 'Fields',
738
+ name: 'fields',
739
+ values: [
740
+ {
741
+ displayName: 'Value',
742
+ name: 'value',
743
+ type: 'options',
744
+ default: '',
745
+ description: undefined,
746
+ options: [
747
+ {
748
+ name: '-',
749
+ value: ''
750
+ },
751
+ {
752
+ name: 'own',
753
+ value: 'own'
754
+ },
755
+ {
756
+ name: 'restricted',
757
+ value: 'restricted'
758
+ }
759
+ ],
760
+ placeholder: 'restricted'
761
+ },
762
+ {
763
+ displayName: 'Ids',
764
+ name: 'ids',
765
+ type: 'fixedCollection',
766
+ typeOptions: {
767
+ multipleValues: true
768
+ },
769
+ default: {},
770
+ description: undefined,
773
771
  placeholder: 'Add Item',
774
772
  options: [
775
773
  {
@@ -795,34 +793,645 @@ exports.applicationsProperties = [
795
793
  ]
796
794
  }
797
795
  ]
798
- }
799
- ]
800
- }
801
- ]
802
- },
803
- {
804
- displayName: 'Assign Agent',
805
- name: 'assignAgent',
806
- type: 'boolean',
807
- default: false,
808
- description: 'Assign Agent as a manager to all existing projects',
809
- routing: {
810
- send: {
811
- property: 'assignAgent',
812
- propertyInDotNotation: false,
813
- type: 'body',
814
- value: '={{ $value }}'
815
- }
816
- },
817
- displayOptions: {
818
- show: {
819
- resource: [
820
- 'applications'
821
- ],
822
- operation: [
823
- 'api.applications.installations.post'
796
+ },
797
+ {
798
+ displayName: 'Modules',
799
+ name: 'modules',
800
+ type: 'fixedCollection',
801
+ typeOptions: {
802
+ multipleValues: true
803
+ },
804
+ default: {},
805
+ description: undefined,
806
+ placeholder: 'Add Item',
807
+ options: [
808
+ {
809
+ displayName: 'Item',
810
+ name: 'items',
811
+ values: [
812
+ {
813
+ displayName: 'Key',
814
+ name: 'key',
815
+ type: 'string',
816
+ default: '',
817
+ description: undefined,
818
+ placeholder: 'some-module-key'
819
+ },
820
+ {
821
+ displayName: 'Permissions',
822
+ name: 'permissions',
823
+ type: 'fixedCollection',
824
+ default: {},
825
+ description: undefined,
826
+ placeholder: 'Add Field',
827
+ options: [
828
+ {
829
+ displayName: 'Fields',
830
+ name: 'fields',
831
+ values: [
832
+ {
833
+ displayName: 'User',
834
+ name: 'user',
835
+ type: 'fixedCollection',
836
+ default: {},
837
+ description: undefined,
838
+ placeholder: 'Add Field',
839
+ options: [
840
+ {
841
+ displayName: 'Fields',
842
+ name: 'fields',
843
+ values: [
844
+ {
845
+ displayName: 'Value',
846
+ name: 'value',
847
+ type: 'options',
848
+ default: '',
849
+ description: '\n\n __Note__: For exporters, the `all` value will be set',
850
+ options: [
851
+ {
852
+ name: '-',
853
+ value: ''
854
+ },
855
+ {
856
+ name: 'owner',
857
+ value: 'owner'
858
+ },
859
+ {
860
+ name: 'managers',
861
+ value: 'managers'
862
+ },
863
+ {
864
+ name: 'all',
865
+ value: 'all'
866
+ },
867
+ {
868
+ name: 'guests',
869
+ value: 'guests'
870
+ },
871
+ {
872
+ name: 'restricted',
873
+ value: 'restricted'
874
+ }
875
+ ],
876
+ placeholder: 'restricted'
877
+ },
878
+ {
879
+ displayName: 'Ids',
880
+ name: 'ids',
881
+ type: 'fixedCollection',
882
+ typeOptions: {
883
+ multipleValues: true
884
+ },
885
+ default: {},
886
+ description: 'Ids is only available for restricted value',
887
+ placeholder: 'Add Item',
888
+ options: [
889
+ {
890
+ displayName: 'Items',
891
+ name: 'items',
892
+ values: [
893
+ {
894
+ displayName: 'Value',
895
+ name: '_value',
896
+ type: 'number',
897
+ default: 0,
898
+ description: undefined,
899
+ placeholder: '0'
900
+ }
901
+ ]
902
+ }
903
+ ]
904
+ }
905
+ ]
906
+ }
907
+ ]
908
+ }
909
+ ]
910
+ }
911
+ ]
912
+ }
913
+ ]
914
+ }
915
+ ]
916
+ },
917
+ {
918
+ displayName: 'Assign Agent',
919
+ name: 'assignAgent',
920
+ type: 'boolean',
921
+ default: false,
922
+ description: 'Assign Agent as a manager to all existing projects'
923
+ }
924
+ ]
925
+ },
926
+ {
927
+ displayName: 'Install an application from manifest content',
928
+ name: '_installAnApplicationFromManifestContent',
929
+ values: [
930
+ {
931
+ displayName: 'Application manifest content',
932
+ name: 'manifest',
933
+ type: 'fixedCollection',
934
+ default: {},
935
+ description: 'The inline manifest that declares the app - the same document install-from-URL fetches from `URL`. Supported only for serverless apps - apps that run entirely in the browser with no backend (no `baseUrl`).',
936
+ placeholder: 'Add Field',
937
+ options: [
938
+ {
939
+ displayName: 'Fields',
940
+ name: 'fields',
941
+ values: [
942
+ {
943
+ displayName: 'Name',
944
+ name: 'name',
945
+ type: 'string',
946
+ default: '',
947
+ description: 'Display name of the application',
948
+ placeholder: 'My App'
949
+ },
950
+ {
951
+ displayName: 'Description',
952
+ name: 'description',
953
+ type: 'string',
954
+ default: '',
955
+ description: 'Short description of what the application does'
956
+ },
957
+ {
958
+ displayName: 'Logo',
959
+ name: 'logo',
960
+ type: 'string',
961
+ default: '',
962
+ description: 'Relative URL (within the application bundle) of the application logo'
963
+ },
964
+ {
965
+ displayName: 'Scopes',
966
+ name: 'scopes',
967
+ type: 'fixedCollection',
968
+ typeOptions: {
969
+ multipleValues: true
970
+ },
971
+ default: {},
972
+ description: 'OAuth scopes granted to the app for host-proxied Crowdin API calls.<br><br>Available scopes: `*`, `language`, `user`, `team`, `notification`, `custom_language`, `group`, `tm`, `glossary`, `style-guide`, `mt`, `ai`, `ai.provider`, `ai.prompt`, `ai.proxy`, `ai.translate`, `automation`, `automation.rule`, `automation.rule.execution`, `webhook`, `project`, `project.settings`, `project.member`, `project.status`, `project.status.issue`, `project.status.progress`, `project.status.qa-check`, `project.source`, `project.source.file`, `project.source.string`, `project.translation`, `project.screenshot`, `project.webhook`, `project.task`, `project.dictionary`, `project.report`, `project.advisor`, `client`, `vendor`, `field`, `security-log`, `application`, `organization`, `custom-spellchecker`, `external-qa-check`.<br><br>Each scope supports `:read` and `:write` modifiers (e.g. `project:read`, `project:write`); without a modifier the scope grants both.',
973
+ placeholder: 'Add Item',
974
+ options: [
975
+ {
976
+ displayName: 'Items',
977
+ name: 'items',
978
+ values: [
979
+ {
980
+ displayName: 'Value',
981
+ name: '_value',
982
+ type: 'string',
983
+ default: '',
984
+ description: undefined
985
+ }
986
+ ]
987
+ }
988
+ ]
989
+ },
990
+ {
991
+ displayName: 'String Based Available',
992
+ name: 'stringBasedAvailable',
993
+ type: 'boolean',
994
+ default: false,
995
+ description: 'Whether the app is offered in string-based projects (in addition to file-based projects).'
996
+ },
997
+ {
998
+ displayName: 'Modules',
999
+ name: 'json:modules',
1000
+ type: 'json',
1001
+ default: '{}',
1002
+ description: 'UI module definitions: an object whose keys are UI module types and whose values are arrays of module definitions.<br><br>`URL` is not allowed (these apps have no `baseUrl`).<br><br>Allowed module types: `editor-right-panel`, `editor-translations-panel`, `editor-asset-panel`, `editor-background-worker`, `project-tools`, `project-menu`, `project-menu-crowdsource`, `project-reports`, `project-integrations`, `profile-resources-menu`, `profile-settings-menu`, `organization-menu`, `organization-settings-menu`, `organization-menu-crowdsource`, `modal`, `chat`, `context-menu`, `navbar-extension`.<br><br>For `context-menu` modules only the `modal` and `redirect` option types are supported (`new_tab` needs a page outside the app bundle, which serverless apps cannot serve).'
1003
+ },
1004
+ {
1005
+ displayName: 'Application default permissions',
1006
+ name: 'default_permissions',
1007
+ type: 'fixedCollection',
1008
+ default: {},
1009
+ description: undefined,
1010
+ placeholder: 'Add Field',
1011
+ options: [
1012
+ {
1013
+ displayName: 'Fields',
1014
+ name: 'fields',
1015
+ values: [
1016
+ {
1017
+ displayName: 'User',
1018
+ name: 'user',
1019
+ type: 'options',
1020
+ default: '',
1021
+ description: 'Which users the app is available to by default',
1022
+ options: [
1023
+ {
1024
+ name: '-',
1025
+ value: ''
1026
+ },
1027
+ {
1028
+ name: 'owner',
1029
+ value: 'owner'
1030
+ },
1031
+ {
1032
+ name: 'managers',
1033
+ value: 'managers'
1034
+ },
1035
+ {
1036
+ name: 'all',
1037
+ value: 'all'
1038
+ },
1039
+ {
1040
+ name: 'guests',
1041
+ value: 'guests'
1042
+ }
1043
+ ],
1044
+ placeholder: 'owner'
1045
+ },
1046
+ {
1047
+ displayName: 'Project',
1048
+ name: 'project',
1049
+ type: 'options',
1050
+ default: '',
1051
+ description: 'Which projects the app is available in by default',
1052
+ options: [
1053
+ {
1054
+ name: '-',
1055
+ value: ''
1056
+ },
1057
+ {
1058
+ name: 'own',
1059
+ value: 'own'
1060
+ },
1061
+ {
1062
+ name: 'restricted',
1063
+ value: 'restricted'
1064
+ }
1065
+ ],
1066
+ placeholder: 'own'
1067
+ }
1068
+ ]
1069
+ }
1070
+ ]
1071
+ },
1072
+ {
1073
+ displayName: 'Application bundle',
1074
+ name: 'bundle',
1075
+ type: 'fixedCollection',
1076
+ default: {},
1077
+ description: 'Where the app is loaded from. Either Crowdin hosts the app in its own storage (`internal`) or the app is served from an external URL such as a local dev server (`external`).',
1078
+ options: [
1079
+ {
1080
+ displayName: 'Internal application bundle',
1081
+ name: '_applicationBundleInternal',
1082
+ values: [
1083
+ {
1084
+ displayName: 'Mode',
1085
+ name: 'mode',
1086
+ type: 'options',
1087
+ default: '',
1088
+ description: 'The app is hosted by Crowdin in its own storage (no external URL).',
1089
+ options: [
1090
+ {
1091
+ name: '-',
1092
+ value: ''
1093
+ },
1094
+ {
1095
+ name: 'internal',
1096
+ value: 'internal'
1097
+ }
1098
+ ],
1099
+ placeholder: 'internal',
1100
+ required: true
1101
+ }
1102
+ ]
1103
+ },
1104
+ {
1105
+ displayName: 'External application bundle',
1106
+ name: '_applicationBundleExternal',
1107
+ values: [
1108
+ {
1109
+ displayName: 'Mode',
1110
+ name: 'mode',
1111
+ type: 'options',
1112
+ default: '',
1113
+ description: 'The app is served from an external URL (e.g. a local dev server).',
1114
+ options: [
1115
+ {
1116
+ name: '-',
1117
+ value: ''
1118
+ },
1119
+ {
1120
+ name: 'external',
1121
+ value: 'external'
1122
+ }
1123
+ ],
1124
+ placeholder: 'external',
1125
+ required: true
1126
+ },
1127
+ {
1128
+ displayName: 'Url',
1129
+ name: 'url',
1130
+ type: 'string',
1131
+ default: '',
1132
+ description: 'URL the app is served from; for local development this is your dev server, e.g. `http://localhost:8080/`.',
1133
+ required: true
1134
+ }
1135
+ ]
1136
+ }
1137
+ ]
1138
+ }
1139
+ ]
1140
+ }
1141
+ ],
1142
+ required: true
1143
+ },
1144
+ {
1145
+ displayName: 'Permissions',
1146
+ name: 'permissions',
1147
+ type: 'fixedCollection',
1148
+ default: {},
1149
+ description: undefined,
1150
+ placeholder: 'Add Field',
1151
+ options: [
1152
+ {
1153
+ displayName: 'Fields',
1154
+ name: 'fields',
1155
+ values: [
1156
+ {
1157
+ displayName: 'User',
1158
+ name: 'user',
1159
+ type: 'fixedCollection',
1160
+ default: {},
1161
+ description: 'Use modules permissions instead',
1162
+ placeholder: 'Add Field',
1163
+ options: [
1164
+ {
1165
+ displayName: 'Fields',
1166
+ name: 'fields',
1167
+ values: [
1168
+ {
1169
+ displayName: 'Value',
1170
+ name: 'value',
1171
+ type: 'options',
1172
+ default: '',
1173
+ description: undefined,
1174
+ options: [
1175
+ {
1176
+ name: '-',
1177
+ value: ''
1178
+ },
1179
+ {
1180
+ name: 'owner',
1181
+ value: 'owner'
1182
+ },
1183
+ {
1184
+ name: 'managers',
1185
+ value: 'managers'
1186
+ },
1187
+ {
1188
+ name: 'all',
1189
+ value: 'all'
1190
+ },
1191
+ {
1192
+ name: 'guests',
1193
+ value: 'guests'
1194
+ },
1195
+ {
1196
+ name: 'restricted',
1197
+ value: 'restricted'
1198
+ }
1199
+ ],
1200
+ placeholder: 'restricted'
1201
+ },
1202
+ {
1203
+ displayName: 'Ids',
1204
+ name: 'ids',
1205
+ type: 'fixedCollection',
1206
+ typeOptions: {
1207
+ multipleValues: true
1208
+ },
1209
+ default: {},
1210
+ description: 'Ids is available only for restricted value',
1211
+ placeholder: 'Add Item',
1212
+ options: [
1213
+ {
1214
+ displayName: 'Items',
1215
+ name: 'items',
1216
+ values: [
1217
+ {
1218
+ displayName: 'Value',
1219
+ name: '_value',
1220
+ type: 'number',
1221
+ default: 0,
1222
+ description: undefined,
1223
+ placeholder: '0'
1224
+ }
1225
+ ]
1226
+ }
1227
+ ]
1228
+ }
1229
+ ]
1230
+ }
1231
+ ]
1232
+ },
1233
+ {
1234
+ displayName: 'Project',
1235
+ name: 'project',
1236
+ type: 'fixedCollection',
1237
+ default: {},
1238
+ description: undefined,
1239
+ placeholder: 'Add Field',
1240
+ options: [
1241
+ {
1242
+ displayName: 'Fields',
1243
+ name: 'fields',
1244
+ values: [
1245
+ {
1246
+ displayName: 'Value',
1247
+ name: 'value',
1248
+ type: 'options',
1249
+ default: '',
1250
+ description: undefined,
1251
+ options: [
1252
+ {
1253
+ name: '-',
1254
+ value: ''
1255
+ },
1256
+ {
1257
+ name: 'own',
1258
+ value: 'own'
1259
+ },
1260
+ {
1261
+ name: 'restricted',
1262
+ value: 'restricted'
1263
+ }
1264
+ ],
1265
+ placeholder: 'restricted'
1266
+ },
1267
+ {
1268
+ displayName: 'Ids',
1269
+ name: 'ids',
1270
+ type: 'fixedCollection',
1271
+ typeOptions: {
1272
+ multipleValues: true
1273
+ },
1274
+ default: {},
1275
+ description: undefined,
1276
+ placeholder: 'Add Item',
1277
+ options: [
1278
+ {
1279
+ displayName: 'Items',
1280
+ name: 'items',
1281
+ values: [
1282
+ {
1283
+ displayName: 'Value',
1284
+ name: '_value',
1285
+ type: 'number',
1286
+ default: 0,
1287
+ description: undefined,
1288
+ placeholder: '0'
1289
+ }
1290
+ ]
1291
+ }
1292
+ ]
1293
+ }
1294
+ ]
1295
+ }
1296
+ ]
1297
+ }
1298
+ ]
1299
+ }
1300
+ ]
1301
+ },
1302
+ {
1303
+ displayName: 'Modules',
1304
+ name: 'modules',
1305
+ type: 'fixedCollection',
1306
+ typeOptions: {
1307
+ multipleValues: true
1308
+ },
1309
+ default: {},
1310
+ description: undefined,
1311
+ placeholder: 'Add Item',
1312
+ options: [
1313
+ {
1314
+ displayName: 'Item',
1315
+ name: 'items',
1316
+ values: [
1317
+ {
1318
+ displayName: 'Key',
1319
+ name: 'key',
1320
+ type: 'string',
1321
+ default: '',
1322
+ description: undefined,
1323
+ placeholder: 'some-module-key'
1324
+ },
1325
+ {
1326
+ displayName: 'Permissions',
1327
+ name: 'permissions',
1328
+ type: 'fixedCollection',
1329
+ default: {},
1330
+ description: undefined,
1331
+ placeholder: 'Add Field',
1332
+ options: [
1333
+ {
1334
+ displayName: 'Fields',
1335
+ name: 'fields',
1336
+ values: [
1337
+ {
1338
+ displayName: 'User',
1339
+ name: 'user',
1340
+ type: 'fixedCollection',
1341
+ default: {},
1342
+ description: undefined,
1343
+ placeholder: 'Add Field',
1344
+ options: [
1345
+ {
1346
+ displayName: 'Fields',
1347
+ name: 'fields',
1348
+ values: [
1349
+ {
1350
+ displayName: 'Value',
1351
+ name: 'value',
1352
+ type: 'options',
1353
+ default: '',
1354
+ description: '\n\n __Note__: For exporters, the `all` value will be set',
1355
+ options: [
1356
+ {
1357
+ name: '-',
1358
+ value: ''
1359
+ },
1360
+ {
1361
+ name: 'owner',
1362
+ value: 'owner'
1363
+ },
1364
+ {
1365
+ name: 'managers',
1366
+ value: 'managers'
1367
+ },
1368
+ {
1369
+ name: 'all',
1370
+ value: 'all'
1371
+ },
1372
+ {
1373
+ name: 'guests',
1374
+ value: 'guests'
1375
+ },
1376
+ {
1377
+ name: 'restricted',
1378
+ value: 'restricted'
1379
+ }
1380
+ ],
1381
+ placeholder: 'restricted'
1382
+ },
1383
+ {
1384
+ displayName: 'Ids',
1385
+ name: 'ids',
1386
+ type: 'fixedCollection',
1387
+ typeOptions: {
1388
+ multipleValues: true
1389
+ },
1390
+ default: {},
1391
+ description: 'Ids is only available for restricted value',
1392
+ placeholder: 'Add Item',
1393
+ options: [
1394
+ {
1395
+ displayName: 'Items',
1396
+ name: 'items',
1397
+ values: [
1398
+ {
1399
+ displayName: 'Value',
1400
+ name: '_value',
1401
+ type: 'number',
1402
+ default: 0,
1403
+ description: undefined,
1404
+ placeholder: '0'
1405
+ }
1406
+ ]
1407
+ }
1408
+ ]
1409
+ }
1410
+ ]
1411
+ }
1412
+ ]
1413
+ }
1414
+ ]
1415
+ }
1416
+ ]
1417
+ }
1418
+ ]
1419
+ }
1420
+ ]
1421
+ }
824
1422
  ]
825
1423
  }
1424
+ ],
1425
+ routing: {
1426
+ send: {
1427
+ preSend: [
1428
+ preSend_1.normalizeRootBody
1429
+ ],
1430
+ property: '_body',
1431
+ propertyInDotNotation: false,
1432
+ type: 'body',
1433
+ value: '={{ $value }}'
1434
+ }
826
1435
  }
827
1436
  },
828
1437
  {
@@ -913,6 +1522,28 @@ exports.applicationsProperties = [
913
1522
  loadOptionsMethod: 'getApplicationInstallations'
914
1523
  }
915
1524
  },
1525
+ {
1526
+ displayName: 'Body',
1527
+ name: 'body',
1528
+ type: 'json',
1529
+ default: '{}',
1530
+ description: 'A JSON Patch operation as defined by [RFC 6902](https://tools.ietf.org/html/rfc6902#section-4)',
1531
+ routing: {
1532
+ request: {
1533
+ body: '={{ JSON.parse($value) }}'
1534
+ }
1535
+ },
1536
+ displayOptions: {
1537
+ show: {
1538
+ resource: [
1539
+ 'applications'
1540
+ ],
1541
+ operation: [
1542
+ 'api.applications.installations.patch'
1543
+ ]
1544
+ }
1545
+ }
1546
+ },
916
1547
  {
917
1548
  displayName: 'Identifier',
918
1549
  name: 'identifier',
@@ -1177,112 +1808,6 @@ exports.applicationsProperties = [
1177
1808
  }
1178
1809
  }
1179
1810
  },
1180
- {
1181
- displayName: 'Update Fields',
1182
- name: 'updateFields',
1183
- type: 'collection',
1184
- placeholder: 'Add Field',
1185
- default: {},
1186
- displayOptions: {
1187
- show: {
1188
- resource: [
1189
- 'applications'
1190
- ],
1191
- operation: [
1192
- 'api.applications.installations.patch'
1193
- ]
1194
- }
1195
- },
1196
- options: [
1197
- {
1198
- displayName: 'Permissions',
1199
- name: 'permissions',
1200
- type: 'fixedCollection',
1201
- default: {},
1202
- description: 'Value for /permissions',
1203
- placeholder: 'Add Field',
1204
- options: [
1205
- {
1206
- name: 'fields',
1207
- displayName: 'Fields',
1208
- values: [
1209
- {
1210
- displayName: 'Project',
1211
- name: 'project',
1212
- type: 'fixedCollection',
1213
- default: {},
1214
- description: undefined,
1215
- placeholder: 'Add Field',
1216
- options: [
1217
- {
1218
- name: 'fields',
1219
- displayName: 'Fields',
1220
- values: [
1221
- {
1222
- displayName: 'Value',
1223
- name: 'value',
1224
- type: 'options',
1225
- default: '',
1226
- description: undefined,
1227
- options: [
1228
- {
1229
- name: '-',
1230
- value: ''
1231
- },
1232
- {
1233
- name: 'own',
1234
- value: 'own'
1235
- },
1236
- {
1237
- name: 'restricted',
1238
- value: 'restricted'
1239
- }
1240
- ],
1241
- placeholder: 'restricted'
1242
- },
1243
- {
1244
- displayName: 'Ids',
1245
- name: 'ids',
1246
- type: 'fixedCollection',
1247
- typeOptions: {
1248
- multipleValues: true
1249
- },
1250
- default: {},
1251
- description: undefined,
1252
- placeholder: 'Add Item',
1253
- options: [
1254
- {
1255
- name: 'items',
1256
- displayName: 'Items',
1257
- values: [
1258
- {
1259
- displayName: 'Value',
1260
- name: '_value',
1261
- type: 'number',
1262
- default: 0,
1263
- description: undefined,
1264
- placeholder: '0'
1265
- }
1266
- ]
1267
- }
1268
- ]
1269
- }
1270
- ]
1271
- }
1272
- ]
1273
- }
1274
- ]
1275
- }
1276
- ]
1277
- }
1278
- ],
1279
- routing: {
1280
- send: {
1281
- type: 'body',
1282
- value: '={{ $value }}'
1283
- }
1284
- }
1285
- },
1286
1811
  {
1287
1812
  displayName: 'Request Body (JSON)',
1288
1813
  name: 'body',