n8n-nodes-ms-dataverse 0.6.4 → 0.7.3

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.webResourceOperationFields = exports.webResourceOperationDescription = exports.pluginOperationFields = exports.pluginOperationDescription = exports.sqlQueryFields = exports.sqlOperationDescription = exports.webhookOperationFields = exports.webhookOperationDescription = exports.getManyOperationFields = exports.updateOperationFields = exports.upsertOperationFields = exports.getOperationFields = exports.createOperationFields = exports.fieldSchemaSelector = exports.tableDescription = exports.optionsDescription = exports.operationDescription = exports.resourceDescription = void 0;
3
+ exports.globalChoiceOperationFields = exports.webResourceOperationFields = exports.webResourceOperationDescription = exports.pluginOperationFields = exports.pluginOperationDescription = exports.sqlQueryFields = exports.sqlOperationDescription = exports.webhookOperationFields = exports.webhookOperationDescription = exports.getManyOperationFields = exports.updateOperationFields = exports.assignOperationFields = exports.revokeAccessOperationFields = exports.shareOperationFields = exports.upsertOperationFields = exports.getOperationFields = exports.createOperationFields = exports.choiceOptionsViewer = exports.choiceFieldSelector = exports.fieldSchemaSelector = exports.tableDescription = exports.optionsDescription = exports.globalChoiceOperationDescription = exports.operationDescription = exports.resourceDescription = void 0;
4
4
  exports.resourceDescription = {
5
5
  displayName: 'Resource',
6
6
  name: 'resource',
@@ -8,25 +8,29 @@ exports.resourceDescription = {
8
8
  noDataExpression: true,
9
9
  options: [
10
10
  {
11
- name: 'Record',
12
- value: 'record',
11
+ name: 'Global Choice',
12
+ value: 'globalChoice',
13
13
  },
14
14
  {
15
- name: 'SQL Query via TDS (Read-Only)',
16
- value: 'sql',
15
+ name: 'Plugin',
16
+ value: 'plugin',
17
17
  },
18
18
  {
19
- name: 'Webhook',
20
- value: 'webhook',
19
+ name: 'Record',
20
+ value: 'record',
21
21
  },
22
22
  {
23
- name: 'Plugin',
24
- value: 'plugin',
23
+ name: 'SQL Query via TDS (Read-Only)',
24
+ value: 'sql',
25
25
  },
26
26
  {
27
27
  name: 'Web Resource',
28
28
  value: 'webresource',
29
29
  },
30
+ {
31
+ name: 'Webhook',
32
+ value: 'webhook',
33
+ },
30
34
  ],
31
35
  default: 'record',
32
36
  };
@@ -41,12 +45,24 @@ exports.operationDescription = {
41
45
  },
42
46
  },
43
47
  options: [
48
+ {
49
+ name: 'Assign',
50
+ value: 'assign',
51
+ description: 'Assign a record to a user or team',
52
+ action: 'Assign a record',
53
+ },
44
54
  {
45
55
  name: 'Create',
46
56
  value: 'create',
47
57
  description: 'Create a new record',
48
58
  action: 'Create a record',
49
59
  },
60
+ {
61
+ name: 'Create or Update',
62
+ value: 'upsert',
63
+ description: 'Create a new record, or update the current one if it already exists (upsert)',
64
+ action: 'Upsert a record',
65
+ },
50
66
  {
51
67
  name: 'Delete',
52
68
  value: 'delete',
@@ -65,20 +81,88 @@ exports.operationDescription = {
65
81
  description: 'Get multiple records',
66
82
  action: 'Get many records',
67
83
  },
84
+ {
85
+ name: 'Share Access Add',
86
+ value: 'shareAccessAdd',
87
+ description: 'Share a record with a user or team',
88
+ action: 'Share access add',
89
+ },
90
+ {
91
+ name: 'Share Access List',
92
+ value: 'shareAccessList',
93
+ description: 'List users and teams who have access to a record',
94
+ action: 'Share access list',
95
+ },
96
+ {
97
+ name: 'Share Access Revoke',
98
+ value: 'shareAccessRevoke',
99
+ description: 'Revoke access to a record from a user or team',
100
+ action: 'Share access revoke',
101
+ },
68
102
  {
69
103
  name: 'Update',
70
104
  value: 'update',
71
105
  description: 'Update a record',
72
106
  action: 'Update a record',
73
107
  },
108
+ ],
109
+ default: 'get',
110
+ };
111
+ exports.globalChoiceOperationDescription = {
112
+ displayName: 'Operation',
113
+ name: 'operation',
114
+ type: 'options',
115
+ noDataExpression: true,
116
+ displayOptions: {
117
+ show: {
118
+ resource: ['globalChoice'],
119
+ },
120
+ },
121
+ options: [
122
+ {
123
+ name: 'Add Option',
124
+ value: 'addOption',
125
+ description: 'Add an option to an existing global choice',
126
+ action: 'Add option to global choice',
127
+ },
74
128
  {
75
- name: 'Upsert',
76
- value: 'upsert',
77
- description: 'Create a new record or update if it exists (based on alternate key)',
78
- action: 'Upsert a record',
129
+ name: 'Create',
130
+ value: 'create',
131
+ description: 'Create a new global choice',
132
+ action: 'Create a global choice',
133
+ },
134
+ {
135
+ name: 'Delete',
136
+ value: 'delete',
137
+ description: 'Delete a global choice',
138
+ action: 'Delete a global choice',
139
+ },
140
+ {
141
+ name: 'Delete Option',
142
+ value: 'deleteOption',
143
+ description: 'Delete an option from a global choice',
144
+ action: 'Delete option from global choice',
145
+ },
146
+ {
147
+ name: 'Get',
148
+ value: 'get',
149
+ description: 'Get a specific global choice',
150
+ action: 'Get a global choice',
151
+ },
152
+ {
153
+ name: 'List',
154
+ value: 'list',
155
+ description: 'List all global choices',
156
+ action: 'List global choices',
157
+ },
158
+ {
159
+ name: 'Update Option',
160
+ value: 'updateOption',
161
+ description: 'Update an option label in a global choice',
162
+ action: 'Update option in global choice',
79
163
  },
80
164
  ],
81
- default: 'get',
165
+ default: 'list',
82
166
  };
83
167
  exports.optionsDescription = {
84
168
  displayName: 'Options',
@@ -258,13 +342,47 @@ exports.fieldSchemaSelector = {
258
342
  },
259
343
  displayOptions: {
260
344
  show: {
261
- resource: ['record', 'sql', 'webhook'],
345
+ resource: ['sql'],
262
346
  },
263
347
  },
264
348
  default: '',
265
349
  description: 'Reference only: Select a table first, then use this to view available fields with their logical names, types, and permissions. This field is not used in the operation. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
266
350
  placeholder: 'Select a table first...',
267
351
  };
352
+ exports.choiceFieldSelector = {
353
+ displayName: 'View Choice Field Name or ID',
354
+ name: 'viewChoiceField',
355
+ type: 'options',
356
+ typeOptions: {
357
+ loadOptionsMethod: 'getTableFieldNames',
358
+ },
359
+ displayOptions: {
360
+ show: {
361
+ resource: ['record'],
362
+ operation: ['create', 'update', 'upsert'],
363
+ },
364
+ },
365
+ default: '',
366
+ description: 'Select a choice field to view its available options with values. This helps you find the correct integer value to use when setting choice fields. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
367
+ placeholder: 'Select a field...',
368
+ };
369
+ exports.choiceOptionsViewer = {
370
+ displayName: 'Choice Options (Reference Only) Name or ID',
371
+ name: 'viewChoiceOptions',
372
+ type: 'options',
373
+ typeOptions: {
374
+ loadOptionsMethod: 'getChoiceFieldOptions',
375
+ },
376
+ displayOptions: {
377
+ show: {
378
+ resource: ['record'],
379
+ operation: ['create', 'update', 'upsert'],
380
+ },
381
+ },
382
+ default: '',
383
+ description: 'Reference only: Shows available options for the selected choice field in "Label (Value)" format. Copy the value (number) to use in your field values. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
384
+ placeholder: 'Select a choice field first...',
385
+ };
268
386
  exports.createOperationFields = [
269
387
  {
270
388
  displayName: 'Fields Input Mode',
@@ -312,7 +430,7 @@ exports.createOperationFields = [
312
430
  name: 'field',
313
431
  values: [
314
432
  {
315
- displayName: 'Field Name',
433
+ displayName: 'Field Name or ID',
316
434
  name: 'name',
317
435
  type: 'options',
318
436
  typeOptions: {
@@ -356,7 +474,7 @@ exports.getOperationFields = [
356
474
  displayOptions: {
357
475
  show: {
358
476
  resource: ['record'],
359
- operation: ['get', 'update', 'delete'],
477
+ operation: ['assign', 'get', 'update', 'delete', 'shareAccessAdd', 'shareAccessList', 'shareAccessRevoke'],
360
478
  },
361
479
  },
362
480
  options: [
@@ -381,7 +499,7 @@ exports.getOperationFields = [
381
499
  displayOptions: {
382
500
  show: {
383
501
  resource: ['record'],
384
- operation: ['get', 'delete', 'update'],
502
+ operation: ['assign', 'get', 'delete', 'update', 'shareAccessAdd', 'shareAccessList', 'shareAccessRevoke'],
385
503
  recordIdType: ['id'],
386
504
  },
387
505
  },
@@ -402,7 +520,7 @@ exports.getOperationFields = [
402
520
  displayOptions: {
403
521
  show: {
404
522
  resource: ['record'],
405
- operation: ['get', 'update', 'delete'],
523
+ operation: ['assign', 'get', 'update', 'delete', 'shareAccessAdd', 'shareAccessList', 'shareAccessRevoke'],
406
524
  recordIdType: ['alternateKey'],
407
525
  },
408
526
  },
@@ -412,7 +530,7 @@ exports.getOperationFields = [
412
530
  name: 'key',
413
531
  values: [
414
532
  {
415
- displayName: 'Key Name',
533
+ displayName: 'Key Name or ID',
416
534
  name: 'name',
417
535
  type: 'options',
418
536
  typeOptions: {
@@ -470,7 +588,7 @@ exports.upsertOperationFields = [
470
588
  name: 'key',
471
589
  values: [
472
590
  {
473
- displayName: 'Key Name',
591
+ displayName: 'Key Name or ID',
474
592
  name: 'name',
475
593
  type: 'options',
476
594
  typeOptions: {
@@ -537,7 +655,7 @@ exports.upsertOperationFields = [
537
655
  name: 'field',
538
656
  values: [
539
657
  {
540
- displayName: 'Field Name',
658
+ displayName: 'Field Name or ID',
541
659
  name: 'name',
542
660
  type: 'options',
543
661
  typeOptions: {
@@ -573,6 +691,361 @@ exports.upsertOperationFields = [
573
691
  },
574
692
  },
575
693
  ];
694
+ exports.shareOperationFields = [
695
+ {
696
+ displayName: 'Principal Type',
697
+ name: 'principalType',
698
+ type: 'options',
699
+ options: [
700
+ {
701
+ name: 'User',
702
+ value: 'systemuser',
703
+ description: 'Share with a user',
704
+ },
705
+ {
706
+ name: 'Team',
707
+ value: 'team',
708
+ description: 'Share with a team',
709
+ },
710
+ ],
711
+ default: 'systemuser',
712
+ required: true,
713
+ displayOptions: {
714
+ show: {
715
+ resource: ['record'],
716
+ operation: ['shareAccessAdd'],
717
+ },
718
+ },
719
+ description: 'Type of principal to share with',
720
+ },
721
+ {
722
+ displayName: 'Principal ID Type',
723
+ name: 'principalIdType',
724
+ type: 'options',
725
+ options: [
726
+ {
727
+ name: 'GUID',
728
+ value: 'guid',
729
+ description: 'Use the principal ID (GUID)',
730
+ },
731
+ {
732
+ name: 'UPN (User Principal Name)',
733
+ value: 'upn',
734
+ description: 'Use email/UPN (will lookup the GUID)',
735
+ },
736
+ ],
737
+ default: 'upn',
738
+ required: true,
739
+ displayOptions: {
740
+ show: {
741
+ resource: ['record'],
742
+ operation: ['shareAccessAdd'],
743
+ principalType: ['systemuser'],
744
+ },
745
+ },
746
+ description: 'How to identify the user',
747
+ },
748
+ {
749
+ displayName: 'Principal ID (GUID)',
750
+ name: 'principalId',
751
+ type: 'string',
752
+ required: true,
753
+ default: '',
754
+ displayOptions: {
755
+ show: {
756
+ resource: ['record'],
757
+ operation: ['shareAccessAdd'],
758
+ principalIdType: ['guid'],
759
+ },
760
+ },
761
+ description: 'GUID of the user or team',
762
+ placeholder: 'e.g. 00000000-0000-0000-0000-000000000000',
763
+ },
764
+ {
765
+ displayName: 'User Principal Name (Email)',
766
+ name: 'principalUpn',
767
+ type: 'string',
768
+ required: true,
769
+ default: '',
770
+ displayOptions: {
771
+ show: {
772
+ resource: ['record'],
773
+ operation: ['shareAccessAdd'],
774
+ principalIdType: ['upn'],
775
+ },
776
+ },
777
+ description: 'Email address or User Principal Name of the user',
778
+ placeholder: 'e.g. user@example.com',
779
+ },
780
+ {
781
+ displayName: 'Team Name',
782
+ name: 'teamName',
783
+ type: 'string',
784
+ required: true,
785
+ default: '',
786
+ displayOptions: {
787
+ show: {
788
+ resource: ['record'],
789
+ operation: ['shareAccessAdd'],
790
+ principalType: ['team'],
791
+ },
792
+ },
793
+ description: 'Name of the team (will lookup the GUID)',
794
+ placeholder: 'e.g. Sales Team',
795
+ },
796
+ {
797
+ displayName: 'Access Rights',
798
+ name: 'accessRights',
799
+ type: 'multiOptions',
800
+ options: [
801
+ {
802
+ name: 'Append',
803
+ value: 'AppendAccess',
804
+ description: 'Append access to the record',
805
+ },
806
+ {
807
+ name: 'Append To',
808
+ value: 'AppendToAccess',
809
+ description: 'Append to access to the record',
810
+ },
811
+ {
812
+ name: 'Assign',
813
+ value: 'AssignAccess',
814
+ description: 'Assign access to the record',
815
+ },
816
+ {
817
+ name: 'Delete',
818
+ value: 'DeleteAccess',
819
+ description: 'Delete access to the record',
820
+ },
821
+ {
822
+ name: 'Read',
823
+ value: 'ReadAccess',
824
+ description: 'Read access to the record',
825
+ },
826
+ {
827
+ name: 'Share',
828
+ value: 'ShareAccess',
829
+ description: 'Share access to the record',
830
+ },
831
+ ],
832
+ default: ['ReadAccess', 'WriteAccess'],
833
+ required: true,
834
+ displayOptions: {
835
+ show: {
836
+ resource: ['record'],
837
+ operation: ['shareAccessAdd'],
838
+ },
839
+ },
840
+ description: 'Access rights to grant',
841
+ },
842
+ ];
843
+ exports.revokeAccessOperationFields = [
844
+ {
845
+ displayName: 'Principal Type',
846
+ name: 'principalType',
847
+ type: 'options',
848
+ options: [
849
+ {
850
+ name: 'User',
851
+ value: 'systemuser',
852
+ description: 'Revoke access from a user',
853
+ },
854
+ {
855
+ name: 'Team',
856
+ value: 'team',
857
+ description: 'Revoke access from a team',
858
+ },
859
+ ],
860
+ default: 'systemuser',
861
+ required: true,
862
+ displayOptions: {
863
+ show: {
864
+ resource: ['record'],
865
+ operation: ['shareAccessRevoke'],
866
+ },
867
+ },
868
+ description: 'Type of principal to revoke access from',
869
+ },
870
+ {
871
+ displayName: 'Principal ID Type',
872
+ name: 'principalIdType',
873
+ type: 'options',
874
+ options: [
875
+ {
876
+ name: 'GUID',
877
+ value: 'guid',
878
+ description: 'Use the principal ID (GUID)',
879
+ },
880
+ {
881
+ name: 'UPN (User Principal Name)',
882
+ value: 'upn',
883
+ description: 'Use email/UPN (will lookup the GUID)',
884
+ },
885
+ ],
886
+ default: 'upn',
887
+ required: true,
888
+ displayOptions: {
889
+ show: {
890
+ resource: ['record'],
891
+ operation: ['shareAccessRevoke'],
892
+ principalType: ['systemuser'],
893
+ },
894
+ },
895
+ description: 'How to identify the user',
896
+ },
897
+ {
898
+ displayName: 'Principal ID (GUID)',
899
+ name: 'principalId',
900
+ type: 'string',
901
+ required: true,
902
+ default: '',
903
+ displayOptions: {
904
+ show: {
905
+ resource: ['record'],
906
+ operation: ['shareAccessRevoke'],
907
+ principalIdType: ['guid'],
908
+ },
909
+ },
910
+ description: 'GUID of the user or team',
911
+ placeholder: 'e.g. 00000000-0000-0000-0000-000000000000',
912
+ },
913
+ {
914
+ displayName: 'User Principal Name (Email)',
915
+ name: 'principalUpn',
916
+ type: 'string',
917
+ required: true,
918
+ default: '',
919
+ displayOptions: {
920
+ show: {
921
+ resource: ['record'],
922
+ operation: ['shareAccessRevoke'],
923
+ principalIdType: ['upn'],
924
+ },
925
+ },
926
+ description: 'Email address or User Principal Name of the user',
927
+ placeholder: 'e.g. user@example.com',
928
+ },
929
+ {
930
+ displayName: 'Team Name',
931
+ name: 'teamName',
932
+ type: 'string',
933
+ required: true,
934
+ default: '',
935
+ displayOptions: {
936
+ show: {
937
+ resource: ['record'],
938
+ operation: ['shareAccessRevoke'],
939
+ principalType: ['team'],
940
+ },
941
+ },
942
+ description: 'Name of the team (will lookup the GUID)',
943
+ placeholder: 'e.g. Sales Team',
944
+ },
945
+ ];
946
+ exports.assignOperationFields = [
947
+ {
948
+ displayName: 'Assignee Type',
949
+ name: 'assigneeType',
950
+ type: 'options',
951
+ options: [
952
+ {
953
+ name: 'User',
954
+ value: 'systemuser',
955
+ description: 'Assign to a user',
956
+ },
957
+ {
958
+ name: 'Team',
959
+ value: 'team',
960
+ description: 'Assign to a team',
961
+ },
962
+ ],
963
+ default: 'systemuser',
964
+ required: true,
965
+ displayOptions: {
966
+ show: {
967
+ resource: ['record'],
968
+ operation: ['assign'],
969
+ },
970
+ },
971
+ description: 'Type of assignee (user or team)',
972
+ },
973
+ {
974
+ displayName: 'Assignee ID Type',
975
+ name: 'assigneeIdType',
976
+ type: 'options',
977
+ options: [
978
+ {
979
+ name: 'GUID',
980
+ value: 'guid',
981
+ description: 'Use the assignee ID (GUID)',
982
+ },
983
+ {
984
+ name: 'UPN (User Principal Name)',
985
+ value: 'upn',
986
+ description: 'Use email/UPN (will lookup the GUID)',
987
+ },
988
+ ],
989
+ default: 'upn',
990
+ required: true,
991
+ displayOptions: {
992
+ show: {
993
+ resource: ['record'],
994
+ operation: ['assign'],
995
+ assigneeType: ['systemuser'],
996
+ },
997
+ },
998
+ description: 'How to identify the user',
999
+ },
1000
+ {
1001
+ displayName: 'Assignee ID (GUID)',
1002
+ name: 'assigneeId',
1003
+ type: 'string',
1004
+ required: true,
1005
+ default: '',
1006
+ displayOptions: {
1007
+ show: {
1008
+ resource: ['record'],
1009
+ operation: ['assign'],
1010
+ assigneeIdType: ['guid'],
1011
+ },
1012
+ },
1013
+ description: 'GUID of the user or team to assign to',
1014
+ placeholder: 'e.g. 00000000-0000-0000-0000-000000000000',
1015
+ },
1016
+ {
1017
+ displayName: 'User Principal Name (Email)',
1018
+ name: 'assigneeUpn',
1019
+ type: 'string',
1020
+ required: true,
1021
+ default: '',
1022
+ displayOptions: {
1023
+ show: {
1024
+ resource: ['record'],
1025
+ operation: ['assign'],
1026
+ assigneeIdType: ['upn'],
1027
+ },
1028
+ },
1029
+ description: 'Email address or User Principal Name of the user to assign to',
1030
+ placeholder: 'e.g. user@example.com',
1031
+ },
1032
+ {
1033
+ displayName: 'Team Name',
1034
+ name: 'assigneeTeamName',
1035
+ type: 'string',
1036
+ required: true,
1037
+ default: '',
1038
+ displayOptions: {
1039
+ show: {
1040
+ resource: ['record'],
1041
+ operation: ['assign'],
1042
+ assigneeType: ['team'],
1043
+ },
1044
+ },
1045
+ description: 'Name of the team to assign to (will lookup the GUID)',
1046
+ placeholder: 'e.g. Sales Team',
1047
+ },
1048
+ ];
576
1049
  exports.updateOperationFields = [
577
1050
  {
578
1051
  displayName: 'Fields Input Mode',
@@ -620,7 +1093,7 @@ exports.updateOperationFields = [
620
1093
  name: 'field',
621
1094
  values: [
622
1095
  {
623
- displayName: 'Field Name',
1096
+ displayName: 'Field Name or ID',
624
1097
  name: 'name',
625
1098
  type: 'options',
626
1099
  typeOptions: {
@@ -765,30 +1238,6 @@ exports.webhookOperationDescription = {
765
1238
  },
766
1239
  },
767
1240
  options: [
768
- {
769
- name: 'Register Endpoint',
770
- value: 'registerEndpoint',
771
- description: 'Create a new webhook endpoint (ServiceEndpoint) that can be reused',
772
- action: 'Register a webhook endpoint',
773
- },
774
- {
775
- name: 'Register Step',
776
- value: 'registerWebhookStep',
777
- description: 'Register a step to link endpoint with a table/message',
778
- action: 'Register a webhook step',
779
- },
780
- {
781
- name: 'List Endpoints',
782
- value: 'listEndpoints',
783
- description: 'List all webhook endpoints',
784
- action: 'List webhook endpoints',
785
- },
786
- {
787
- name: 'List Endpoint Steps',
788
- value: 'listEndpointSteps',
789
- description: 'List SDK message processing steps for an endpoint',
790
- action: 'List endpoint steps',
791
- },
792
1241
  {
793
1242
  name: 'Delete Endpoint',
794
1243
  value: 'deleteEndpoint',
@@ -801,12 +1250,36 @@ exports.webhookOperationDescription = {
801
1250
  description: 'Delete a specific SDK message processing step',
802
1251
  action: 'Delete a step',
803
1252
  },
1253
+ {
1254
+ name: 'List Endpoint Steps',
1255
+ value: 'listEndpointSteps',
1256
+ description: 'List SDK message processing steps for an endpoint',
1257
+ action: 'List endpoint steps',
1258
+ },
1259
+ {
1260
+ name: 'List Endpoints',
1261
+ value: 'listEndpoints',
1262
+ description: 'List all webhook endpoints',
1263
+ action: 'List webhook endpoints',
1264
+ },
804
1265
  {
805
1266
  name: 'List SDK Message Filters',
806
1267
  value: 'listSdkMessageFilters',
807
1268
  description: 'List SDK message filters for a table',
808
1269
  action: 'List SDK message filters',
809
1270
  },
1271
+ {
1272
+ name: 'Register Endpoint',
1273
+ value: 'registerEndpoint',
1274
+ description: 'Create a new webhook endpoint (ServiceEndpoint) that can be reused',
1275
+ action: 'Register a webhook endpoint',
1276
+ },
1277
+ {
1278
+ name: 'Register Step',
1279
+ value: 'registerWebhookStep',
1280
+ description: 'Register a step to link endpoint with a table/message',
1281
+ action: 'Register a webhook step',
1282
+ },
810
1283
  ],
811
1284
  default: 'registerEndpoint',
812
1285
  };
@@ -895,11 +1368,11 @@ exports.webhookOperationFields = [
895
1368
  },
896
1369
  },
897
1370
  options: [
1371
+ { name: 'Assign', value: 'Assign' },
898
1372
  { name: 'Create', value: 'Create' },
899
- { name: 'Update', value: 'Update' },
900
1373
  { name: 'Delete', value: 'Delete' },
901
- { name: 'Assign', value: 'Assign' },
902
1374
  { name: 'SetState', value: 'SetState' },
1375
+ { name: 'Update', value: 'Update' },
903
1376
  ],
904
1377
  default: 'Create',
905
1378
  description: 'Dataverse operation to trigger the webhook',
@@ -1086,7 +1559,7 @@ exports.pluginOperationFields = [
1086
1559
  },
1087
1560
  default: '',
1088
1561
  required: true,
1089
- description: 'Base64-encoded DLL content. Use an expression like {{ $binary.file.data }} if reading from a file node, or paste the base64 string directly',
1562
+ description: 'Base64-encoded DLL content. Use an expression like {{ $binary.file.data }} if reading from a file node, or paste the base64 string directly.',
1090
1563
  placeholder: 'e.g. {{ $binary.file.data }}',
1091
1564
  },
1092
1565
  {
@@ -1484,4 +1957,165 @@ exports.webResourceOperationFields = [
1484
1957
  description: 'Filter web resources by type',
1485
1958
  },
1486
1959
  ];
1960
+ exports.globalChoiceOperationFields = [
1961
+ {
1962
+ displayName: 'Choice Name',
1963
+ name: 'choiceName',
1964
+ type: 'string',
1965
+ displayOptions: {
1966
+ show: {
1967
+ resource: ['globalChoice'],
1968
+ operation: ['get', 'addOption', 'updateOption', 'deleteOption', 'delete'],
1969
+ },
1970
+ },
1971
+ default: '',
1972
+ required: true,
1973
+ description: 'Logical name of the global choice',
1974
+ placeholder: 'e.g. new_colors',
1975
+ },
1976
+ {
1977
+ displayName: 'Choice Name',
1978
+ name: 'newChoiceName',
1979
+ type: 'string',
1980
+ displayOptions: {
1981
+ show: {
1982
+ resource: ['globalChoice'],
1983
+ operation: ['create'],
1984
+ },
1985
+ },
1986
+ default: '',
1987
+ required: true,
1988
+ description: 'Logical name for the new global choice (must be unique)',
1989
+ placeholder: 'e.g. new_colors',
1990
+ },
1991
+ {
1992
+ displayName: 'Display Name',
1993
+ name: 'displayName',
1994
+ type: 'string',
1995
+ displayOptions: {
1996
+ show: {
1997
+ resource: ['globalChoice'],
1998
+ operation: ['create'],
1999
+ },
2000
+ },
2001
+ default: '',
2002
+ required: true,
2003
+ description: 'User-friendly display name for the global choice',
2004
+ placeholder: 'e.g. Colors',
2005
+ },
2006
+ {
2007
+ displayName: 'Description',
2008
+ name: 'description',
2009
+ type: 'string',
2010
+ displayOptions: {
2011
+ show: {
2012
+ resource: ['globalChoice'],
2013
+ operation: ['create'],
2014
+ },
2015
+ },
2016
+ default: '',
2017
+ description: 'Description of the global choice',
2018
+ },
2019
+ {
2020
+ displayName: 'Options',
2021
+ name: 'options',
2022
+ type: 'fixedCollection',
2023
+ typeOptions: {
2024
+ multipleValues: true,
2025
+ },
2026
+ placeholder: 'Add Option',
2027
+ displayOptions: {
2028
+ show: {
2029
+ resource: ['globalChoice'],
2030
+ operation: ['create'],
2031
+ },
2032
+ },
2033
+ default: {},
2034
+ options: [
2035
+ {
2036
+ displayName: 'Option',
2037
+ name: 'option',
2038
+ values: [
2039
+ {
2040
+ displayName: 'Label',
2041
+ name: 'label',
2042
+ type: 'string',
2043
+ default: '',
2044
+ required: true,
2045
+ description: 'Display label for the option',
2046
+ placeholder: 'e.g. Red',
2047
+ },
2048
+ {
2049
+ displayName: 'Value',
2050
+ name: 'value',
2051
+ type: 'number',
2052
+ default: 1,
2053
+ required: true,
2054
+ description: 'Integer value for the option',
2055
+ placeholder: 'e.g. 1',
2056
+ },
2057
+ ],
2058
+ },
2059
+ ],
2060
+ },
2061
+ {
2062
+ displayName: 'Option Label',
2063
+ name: 'optionLabel',
2064
+ type: 'string',
2065
+ displayOptions: {
2066
+ show: {
2067
+ resource: ['globalChoice'],
2068
+ operation: ['addOption'],
2069
+ },
2070
+ },
2071
+ default: '',
2072
+ required: true,
2073
+ description: 'Display label for the new option',
2074
+ placeholder: 'e.g. Blue',
2075
+ },
2076
+ {
2077
+ displayName: 'Option Value',
2078
+ name: 'optionValue',
2079
+ type: 'number',
2080
+ displayOptions: {
2081
+ show: {
2082
+ resource: ['globalChoice'],
2083
+ operation: ['addOption'],
2084
+ },
2085
+ },
2086
+ default: undefined,
2087
+ description: 'Integer value for the option (leave empty to auto-generate)',
2088
+ placeholder: 'e.g. 3',
2089
+ },
2090
+ {
2091
+ displayName: 'Option Value',
2092
+ name: 'optionValue',
2093
+ type: 'number',
2094
+ displayOptions: {
2095
+ show: {
2096
+ resource: ['globalChoice'],
2097
+ operation: ['updateOption', 'deleteOption'],
2098
+ },
2099
+ },
2100
+ default: 1,
2101
+ required: true,
2102
+ description: 'Integer value of the option to update/delete',
2103
+ placeholder: 'e.g. 1',
2104
+ },
2105
+ {
2106
+ displayName: 'New Label',
2107
+ name: 'newLabel',
2108
+ type: 'string',
2109
+ displayOptions: {
2110
+ show: {
2111
+ resource: ['globalChoice'],
2112
+ operation: ['updateOption'],
2113
+ },
2114
+ },
2115
+ default: '',
2116
+ required: true,
2117
+ description: 'New display label for the option',
2118
+ placeholder: 'e.g. Dark Red',
2119
+ },
2120
+ ];
1487
2121
  //# sourceMappingURL=descriptions.js.map