@joshuanode/n8n-nodes-cipp 0.0.13 → 0.0.16

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 (49) hide show
  1. package/README.md +1 -1
  2. package/dist/nodes/Cipp/Cipp.node.d.ts.map +1 -1
  3. package/dist/nodes/Cipp/Cipp.node.js +1551 -50
  4. package/dist/nodes/Cipp/Cipp.node.js.map +1 -1
  5. package/dist/nodes/Cipp/descriptions/ConditionalAccessDescription.d.ts +4 -0
  6. package/dist/nodes/Cipp/descriptions/ConditionalAccessDescription.d.ts.map +1 -0
  7. package/dist/nodes/Cipp/descriptions/ConditionalAccessDescription.js +413 -0
  8. package/dist/nodes/Cipp/descriptions/ConditionalAccessDescription.js.map +1 -0
  9. package/dist/nodes/Cipp/descriptions/DeviceDescription.d.ts.map +1 -1
  10. package/dist/nodes/Cipp/descriptions/DeviceDescription.js +6 -0
  11. package/dist/nodes/Cipp/descriptions/DeviceDescription.js.map +1 -1
  12. package/dist/nodes/Cipp/descriptions/EmailSecurityDescription.d.ts +4 -0
  13. package/dist/nodes/Cipp/descriptions/EmailSecurityDescription.d.ts.map +1 -0
  14. package/dist/nodes/Cipp/descriptions/EmailSecurityDescription.js +347 -0
  15. package/dist/nodes/Cipp/descriptions/EmailSecurityDescription.js.map +1 -0
  16. package/dist/nodes/Cipp/descriptions/ExchangeResourceDescription.d.ts +4 -0
  17. package/dist/nodes/Cipp/descriptions/ExchangeResourceDescription.d.ts.map +1 -0
  18. package/dist/nodes/Cipp/descriptions/ExchangeResourceDescription.js +249 -0
  19. package/dist/nodes/Cipp/descriptions/ExchangeResourceDescription.js.map +1 -0
  20. package/dist/nodes/Cipp/descriptions/IntuneDescription.d.ts +4 -0
  21. package/dist/nodes/Cipp/descriptions/IntuneDescription.d.ts.map +1 -0
  22. package/dist/nodes/Cipp/descriptions/IntuneDescription.js +250 -0
  23. package/dist/nodes/Cipp/descriptions/IntuneDescription.js.map +1 -0
  24. package/dist/nodes/Cipp/descriptions/MailboxDescription.d.ts.map +1 -1
  25. package/dist/nodes/Cipp/descriptions/MailboxDescription.js +1094 -6
  26. package/dist/nodes/Cipp/descriptions/MailboxDescription.js.map +1 -1
  27. package/dist/nodes/Cipp/descriptions/SafeLinksDescription.d.ts +4 -0
  28. package/dist/nodes/Cipp/descriptions/SafeLinksDescription.d.ts.map +1 -0
  29. package/dist/nodes/Cipp/descriptions/SafeLinksDescription.js +201 -0
  30. package/dist/nodes/Cipp/descriptions/SafeLinksDescription.js.map +1 -0
  31. package/dist/nodes/Cipp/descriptions/SharePointDescription.d.ts +4 -0
  32. package/dist/nodes/Cipp/descriptions/SharePointDescription.d.ts.map +1 -0
  33. package/dist/nodes/Cipp/descriptions/SharePointDescription.js +129 -0
  34. package/dist/nodes/Cipp/descriptions/SharePointDescription.js.map +1 -0
  35. package/dist/nodes/Cipp/descriptions/StandardsDescription.d.ts +4 -0
  36. package/dist/nodes/Cipp/descriptions/StandardsDescription.d.ts.map +1 -0
  37. package/dist/nodes/Cipp/descriptions/StandardsDescription.js +288 -0
  38. package/dist/nodes/Cipp/descriptions/StandardsDescription.js.map +1 -0
  39. package/dist/nodes/Cipp/descriptions/TestingDescription.d.ts +4 -0
  40. package/dist/nodes/Cipp/descriptions/TestingDescription.d.ts.map +1 -0
  41. package/dist/nodes/Cipp/descriptions/TestingDescription.js +170 -0
  42. package/dist/nodes/Cipp/descriptions/TestingDescription.js.map +1 -0
  43. package/dist/nodes/Cipp/descriptions/UserDescription.d.ts.map +1 -1
  44. package/dist/nodes/Cipp/descriptions/UserDescription.js +135 -2
  45. package/dist/nodes/Cipp/descriptions/UserDescription.js.map +1 -1
  46. package/dist/nodes/Cipp/descriptions/index.d.ts.map +1 -1
  47. package/dist/nodes/Cipp/descriptions/index.js +24 -0
  48. package/dist/nodes/Cipp/descriptions/index.js.map +1 -1
  49. package/package.json +1 -1
@@ -0,0 +1,250 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.intuneFields = exports.intuneOperations = void 0;
4
+ // ────────────────── Shared helpers ──────────────────
5
+ const tenantSelector = {
6
+ displayName: 'Tenant',
7
+ name: 'tenantFilter',
8
+ type: 'resourceLocator',
9
+ default: { mode: 'list', value: '' },
10
+ required: true,
11
+ description: 'The tenant to perform the operation on',
12
+ displayOptions: {
13
+ show: {
14
+ resource: ['intune'],
15
+ },
16
+ },
17
+ modes: [
18
+ {
19
+ displayName: 'From List',
20
+ name: 'list',
21
+ type: 'list',
22
+ typeOptions: {
23
+ searchListMethod: 'tenantSearch',
24
+ searchable: true,
25
+ },
26
+ },
27
+ {
28
+ displayName: 'By Domain',
29
+ name: 'domain',
30
+ type: 'string',
31
+ placeholder: 'e.g. contoso.onmicrosoft.com',
32
+ },
33
+ ],
34
+ };
35
+ // ────────────────── Operations ──────────────────
36
+ exports.intuneOperations = [
37
+ {
38
+ displayName: 'Operation',
39
+ name: 'operation',
40
+ type: 'options',
41
+ noDataExpression: true,
42
+ displayOptions: {
43
+ show: {
44
+ resource: ['intune'],
45
+ },
46
+ },
47
+ options: [
48
+ {
49
+ name: 'Add Assignment Filter',
50
+ value: 'addAssignmentFilter',
51
+ description: 'Create an Intune assignment filter',
52
+ action: 'Add assignment filter',
53
+ },
54
+ {
55
+ name: 'Add Intune Reusable Setting',
56
+ value: 'addIntuneReusableSetting',
57
+ description: 'Create a reusable Intune setting',
58
+ action: 'Add Intune reusable setting',
59
+ },
60
+ {
61
+ name: 'Add Win32 Script App',
62
+ value: 'addWin32ScriptApp',
63
+ description: 'Add a Win32 script application',
64
+ action: 'Add Win32 script app',
65
+ },
66
+ {
67
+ name: 'Edit Intune Script',
68
+ value: 'editIntuneScript',
69
+ description: 'Edit an existing Intune script',
70
+ action: 'Edit Intune script',
71
+ },
72
+ {
73
+ name: 'List App Protection Policies',
74
+ value: 'listAppProtectionPolicies',
75
+ description: 'List all app protection policies',
76
+ action: 'List app protection policies',
77
+ },
78
+ {
79
+ name: 'List Assignment Filters',
80
+ value: 'listAssignmentFilters',
81
+ description: 'List Intune assignment filters',
82
+ action: 'List assignment filters',
83
+ },
84
+ {
85
+ name: 'List Compliance Policies',
86
+ value: 'listCompliancePolicies',
87
+ description: 'List Intune compliance policies',
88
+ action: 'List compliance policies',
89
+ },
90
+ {
91
+ name: 'List Intune Reusable Settings',
92
+ value: 'listIntuneReusableSettings',
93
+ description: 'List reusable Intune settings',
94
+ action: 'List Intune reusable settings',
95
+ },
96
+ {
97
+ name: 'List Intune Scripts',
98
+ value: 'listIntuneScripts',
99
+ description: 'List all Intune scripts',
100
+ action: 'List Intune scripts',
101
+ },
102
+ {
103
+ name: 'List Intune Templates',
104
+ value: 'listIntuneTemplates',
105
+ description: 'List available Intune templates',
106
+ action: 'List Intune templates',
107
+ },
108
+ {
109
+ name: 'Remove Intune Reusable Setting',
110
+ value: 'removeIntuneReusableSetting',
111
+ description: 'Remove a reusable Intune setting',
112
+ action: 'Remove Intune reusable setting',
113
+ },
114
+ {
115
+ name: 'Remove Intune Script',
116
+ value: 'removeIntuneScript',
117
+ description: 'Remove an Intune script',
118
+ action: 'Remove Intune script',
119
+ },
120
+ ],
121
+ default: 'listIntuneScripts',
122
+ },
123
+ ];
124
+ // ────────────────── Fields ──────────────────
125
+ exports.intuneFields = [
126
+ // Shared: Tenant
127
+ tenantSelector,
128
+ // Return All / Limit for list operations
129
+ {
130
+ displayName: 'Return All',
131
+ name: 'returnAll',
132
+ type: 'boolean',
133
+ displayOptions: {
134
+ show: {
135
+ resource: ['intune'],
136
+ operation: [
137
+ 'listIntuneScripts',
138
+ 'listCompliancePolicies',
139
+ 'listAppProtectionPolicies',
140
+ 'listAssignmentFilters',
141
+ 'listIntuneReusableSettings',
142
+ 'listIntuneTemplates',
143
+ ],
144
+ },
145
+ },
146
+ default: false,
147
+ description: 'Whether to return all results or only up to a given limit',
148
+ },
149
+ {
150
+ displayName: 'Limit',
151
+ name: 'limit',
152
+ type: 'number',
153
+ displayOptions: {
154
+ show: {
155
+ resource: ['intune'],
156
+ operation: [
157
+ 'listIntuneScripts',
158
+ 'listCompliancePolicies',
159
+ 'listAppProtectionPolicies',
160
+ 'listAssignmentFilters',
161
+ 'listIntuneReusableSettings',
162
+ 'listIntuneTemplates',
163
+ ],
164
+ returnAll: [false],
165
+ },
166
+ },
167
+ typeOptions: {
168
+ minValue: 1,
169
+ maxValue: 500,
170
+ },
171
+ default: 50,
172
+ description: 'Max number of results to return',
173
+ },
174
+ // ID field for remove operations
175
+ {
176
+ displayName: 'ID',
177
+ name: 'intuneId',
178
+ type: 'string',
179
+ required: true,
180
+ displayOptions: {
181
+ show: {
182
+ resource: ['intune'],
183
+ operation: ['removeIntuneScript', 'removeIntuneReusableSetting'],
184
+ },
185
+ },
186
+ default: '',
187
+ description: 'The ID of the resource to remove',
188
+ },
189
+ // Script JSON for editIntuneScript
190
+ {
191
+ displayName: 'Script JSON',
192
+ name: 'intuneScriptJson',
193
+ type: 'json',
194
+ required: true,
195
+ displayOptions: {
196
+ show: {
197
+ resource: ['intune'],
198
+ operation: ['editIntuneScript'],
199
+ },
200
+ },
201
+ default: '{}',
202
+ description: 'JSON object containing the Intune script properties to update',
203
+ },
204
+ // Filter JSON for addAssignmentFilter
205
+ {
206
+ displayName: 'Filter JSON',
207
+ name: 'intuneFilterJson',
208
+ type: 'json',
209
+ required: true,
210
+ displayOptions: {
211
+ show: {
212
+ resource: ['intune'],
213
+ operation: ['addAssignmentFilter'],
214
+ },
215
+ },
216
+ default: '{}',
217
+ description: 'JSON object containing the assignment filter properties',
218
+ },
219
+ // Setting JSON for addIntuneReusableSetting
220
+ {
221
+ displayName: 'Setting JSON',
222
+ name: 'intuneSettingJson',
223
+ type: 'json',
224
+ required: true,
225
+ displayOptions: {
226
+ show: {
227
+ resource: ['intune'],
228
+ operation: ['addIntuneReusableSetting'],
229
+ },
230
+ },
231
+ default: '{}',
232
+ description: 'JSON object containing the reusable setting properties',
233
+ },
234
+ // App JSON for addWin32ScriptApp
235
+ {
236
+ displayName: 'App JSON',
237
+ name: 'intuneAppJson',
238
+ type: 'json',
239
+ required: true,
240
+ displayOptions: {
241
+ show: {
242
+ resource: ['intune'],
243
+ operation: ['addWin32ScriptApp'],
244
+ },
245
+ },
246
+ default: '{}',
247
+ description: 'JSON object containing the Win32 script app properties',
248
+ },
249
+ ];
250
+ //# sourceMappingURL=IntuneDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntuneDescription.js","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/IntuneDescription.ts"],"names":[],"mappings":";;;AAEA,uDAAuD;AAEvD,MAAM,cAAc,GAAoB;IACvC,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IACpC,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,wCAAwC;IACrD,cAAc,EAAE;QACf,IAAI,EAAE;YACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACpB;KACD;IACD,KAAK,EAAE;QACN;YACC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE;gBACZ,gBAAgB,EAAE,cAAc;gBAChC,UAAU,EAAE,IAAI;aAChB;SACD;QACD;YACC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;SAC3C;KACD;CACD,CAAC;AAEF,mDAAmD;AAEtC,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,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AAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aAChC;SACD;QACD,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,wDAAwD;KACrE;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MailboxDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/MailboxDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,iBAAiB,EAAE,eAAe,EAuC9C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,EAsI1C,CAAC"}
1
+ {"version":3,"file":"MailboxDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/MailboxDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAoDpD,eAAO,MAAM,iBAAiB,EAAE,eAAe,EA+P9C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,EAo9B1C,CAAC"}