@joshuanode/n8n-nodes-cipp 0.0.1
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.
- package/README.md +142 -0
- package/dist/credentials/CippApi.credentials.d.ts +10 -0
- package/dist/credentials/CippApi.credentials.d.ts.map +1 -0
- package/dist/credentials/CippApi.credentials.js +58 -0
- package/dist/credentials/CippApi.credentials.js.map +1 -0
- package/dist/credentials/cipp.svg +4 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/Cipp/Cipp.node.d.ts +11 -0
- package/dist/nodes/Cipp/Cipp.node.d.ts.map +1 -0
- package/dist/nodes/Cipp/Cipp.node.js +949 -0
- package/dist/nodes/Cipp/Cipp.node.js.map +1 -0
- package/dist/nodes/Cipp/GenericFunctions.d.ts +23 -0
- package/dist/nodes/Cipp/GenericFunctions.d.ts.map +1 -0
- package/dist/nodes/Cipp/GenericFunctions.js +181 -0
- package/dist/nodes/Cipp/GenericFunctions.js.map +1 -0
- package/dist/nodes/Cipp/cipp.svg +4 -0
- package/dist/nodes/Cipp/descriptions/AlertDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/AlertDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/AlertDescription.js +251 -0
- package/dist/nodes/Cipp/descriptions/AlertDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/ApplicationDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/ApplicationDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/ApplicationDescription.js +458 -0
- package/dist/nodes/Cipp/descriptions/ApplicationDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/CippDescription.d.ts +8 -0
- package/dist/nodes/Cipp/descriptions/CippDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/CippDescription.js +534 -0
- package/dist/nodes/Cipp/descriptions/CippDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/DeviceDescription.d.ts +6 -0
- package/dist/nodes/Cipp/descriptions/DeviceDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/DeviceDescription.js +374 -0
- package/dist/nodes/Cipp/descriptions/DeviceDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/GroupDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/GroupDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/GroupDescription.js +315 -0
- package/dist/nodes/Cipp/descriptions/GroupDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/MailboxDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/MailboxDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/MailboxDescription.js +175 -0
- package/dist/nodes/Cipp/descriptions/MailboxDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/TeamDescription.d.ts +6 -0
- package/dist/nodes/Cipp/descriptions/TeamDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/TeamDescription.js +509 -0
- package/dist/nodes/Cipp/descriptions/TeamDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/TenantDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/TenantDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/TenantDescription.js +102 -0
- package/dist/nodes/Cipp/descriptions/TenantDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/UserDescription.d.ts +4 -0
- package/dist/nodes/Cipp/descriptions/UserDescription.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/UserDescription.js +374 -0
- package/dist/nodes/Cipp/descriptions/UserDescription.js.map +1 -0
- package/dist/nodes/Cipp/descriptions/index.d.ts +3 -0
- package/dist/nodes/Cipp/descriptions/index.d.ts.map +1 -0
- package/dist/nodes/Cipp/descriptions/index.js +43 -0
- package/dist/nodes/Cipp/descriptions/index.js.map +1 -0
- package/dist/nodes/Cipp/types.d.ts +142 -0
- package/dist/nodes/Cipp/types.d.ts.map +1 -0
- package/dist/nodes/Cipp/types.js +3 -0
- package/dist/nodes/Cipp/types.js.map +1 -0
- package/package.json +68 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.groupFields = exports.groupOperations = void 0;
|
|
4
|
+
exports.groupOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['group'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Add',
|
|
18
|
+
value: 'add',
|
|
19
|
+
description: 'Create a new group',
|
|
20
|
+
action: 'Add a group',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete',
|
|
24
|
+
value: 'delete',
|
|
25
|
+
description: 'Delete a group',
|
|
26
|
+
action: 'Delete a group',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Edit Members',
|
|
30
|
+
value: 'edit',
|
|
31
|
+
description: 'Add or remove members/owners from a group',
|
|
32
|
+
action: 'Edit group members',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Many',
|
|
36
|
+
value: 'getAll',
|
|
37
|
+
description: 'Get a list of groups',
|
|
38
|
+
action: 'Get many groups',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Hide From GAL',
|
|
42
|
+
value: 'hideFromGal',
|
|
43
|
+
description: 'Hide or unhide a group from the Global Address List',
|
|
44
|
+
action: 'Hide group from GAL',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Set Delivery Management',
|
|
48
|
+
value: 'deliveryManagement',
|
|
49
|
+
description: 'Manage group delivery settings',
|
|
50
|
+
action: 'Set delivery management',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
default: 'getAll',
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
exports.groupFields = [
|
|
57
|
+
// Tenant selector for all group operations
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Tenant',
|
|
60
|
+
name: 'tenantFilter',
|
|
61
|
+
type: 'resourceLocator',
|
|
62
|
+
default: { mode: 'list', value: '' },
|
|
63
|
+
required: true,
|
|
64
|
+
description: 'The tenant to perform the operation on',
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: {
|
|
67
|
+
resource: ['group'],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
modes: [
|
|
71
|
+
{
|
|
72
|
+
displayName: 'From List',
|
|
73
|
+
name: 'list',
|
|
74
|
+
type: 'list',
|
|
75
|
+
typeOptions: {
|
|
76
|
+
searchListMethod: 'tenantSearch',
|
|
77
|
+
searchable: true,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'By Domain',
|
|
82
|
+
name: 'id',
|
|
83
|
+
type: 'string',
|
|
84
|
+
placeholder: 'e.g. contoso.onmicrosoft.com',
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
// Get Many fields
|
|
89
|
+
{
|
|
90
|
+
displayName: 'Return All',
|
|
91
|
+
name: 'returnAll',
|
|
92
|
+
type: 'boolean',
|
|
93
|
+
displayOptions: {
|
|
94
|
+
show: {
|
|
95
|
+
resource: ['group'],
|
|
96
|
+
operation: ['getAll'],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
default: false,
|
|
100
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
displayName: 'Limit',
|
|
104
|
+
name: 'limit',
|
|
105
|
+
type: 'number',
|
|
106
|
+
displayOptions: {
|
|
107
|
+
show: {
|
|
108
|
+
resource: ['group'],
|
|
109
|
+
operation: ['getAll'],
|
|
110
|
+
returnAll: [false],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
typeOptions: {
|
|
114
|
+
minValue: 1,
|
|
115
|
+
maxValue: 999,
|
|
116
|
+
},
|
|
117
|
+
default: 50,
|
|
118
|
+
description: 'Max number of results to return',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
displayName: 'Options',
|
|
122
|
+
name: 'options',
|
|
123
|
+
type: 'collection',
|
|
124
|
+
placeholder: 'Add Option',
|
|
125
|
+
default: {},
|
|
126
|
+
displayOptions: {
|
|
127
|
+
show: {
|
|
128
|
+
resource: ['group'],
|
|
129
|
+
operation: ['getAll'],
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
options: [
|
|
133
|
+
{
|
|
134
|
+
displayName: 'Group ID',
|
|
135
|
+
name: 'groupId',
|
|
136
|
+
type: 'string',
|
|
137
|
+
default: '',
|
|
138
|
+
description: 'Get details for a specific group by ID',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Include Members',
|
|
142
|
+
name: 'members',
|
|
143
|
+
type: 'boolean',
|
|
144
|
+
default: false,
|
|
145
|
+
description: 'Whether to include group members in the response',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
displayName: 'Include Owners',
|
|
149
|
+
name: 'owners',
|
|
150
|
+
type: 'boolean',
|
|
151
|
+
default: false,
|
|
152
|
+
description: 'Whether to include group owners in the response',
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
// Add Group fields
|
|
157
|
+
{
|
|
158
|
+
displayName: 'Group Name',
|
|
159
|
+
name: 'groupName',
|
|
160
|
+
type: 'string',
|
|
161
|
+
required: true,
|
|
162
|
+
displayOptions: {
|
|
163
|
+
show: {
|
|
164
|
+
resource: ['group'],
|
|
165
|
+
operation: ['add'],
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
default: '',
|
|
169
|
+
description: 'The display name of the group',
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
displayName: 'Group Type',
|
|
173
|
+
name: 'groupType',
|
|
174
|
+
type: 'options',
|
|
175
|
+
required: true,
|
|
176
|
+
displayOptions: {
|
|
177
|
+
show: {
|
|
178
|
+
resource: ['group'],
|
|
179
|
+
operation: ['add'],
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
options: [
|
|
183
|
+
{ name: 'Microsoft 365', value: 'Microsoft 365' },
|
|
184
|
+
{ name: 'Security', value: 'Security' },
|
|
185
|
+
{ name: 'Distribution', value: 'Distribution' },
|
|
186
|
+
{ name: 'Mail-Enabled Security', value: 'Mail-Enabled Security' },
|
|
187
|
+
],
|
|
188
|
+
default: 'Microsoft 365',
|
|
189
|
+
description: 'The type of group to create',
|
|
190
|
+
},
|
|
191
|
+
// Edit Group fields
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Group ID',
|
|
194
|
+
name: 'groupId',
|
|
195
|
+
type: 'string',
|
|
196
|
+
required: true,
|
|
197
|
+
displayOptions: {
|
|
198
|
+
show: {
|
|
199
|
+
resource: ['group'],
|
|
200
|
+
operation: ['edit', 'delete', 'hideFromGal', 'deliveryManagement'],
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
default: '',
|
|
204
|
+
description: 'The ID of the group to modify',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
displayName: 'Edit Options',
|
|
208
|
+
name: 'editOptions',
|
|
209
|
+
type: 'collection',
|
|
210
|
+
placeholder: 'Add Edit Option',
|
|
211
|
+
default: {},
|
|
212
|
+
displayOptions: {
|
|
213
|
+
show: {
|
|
214
|
+
resource: ['group'],
|
|
215
|
+
operation: ['edit'],
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
options: [
|
|
219
|
+
{
|
|
220
|
+
displayName: 'Add Members',
|
|
221
|
+
name: 'addMembers',
|
|
222
|
+
type: 'string',
|
|
223
|
+
default: '',
|
|
224
|
+
placeholder: 'user1@domain.com,user2@domain.com',
|
|
225
|
+
description: 'Comma-separated list of users to add as members',
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
displayName: 'Add Owners',
|
|
229
|
+
name: 'addOwners',
|
|
230
|
+
type: 'string',
|
|
231
|
+
default: '',
|
|
232
|
+
placeholder: 'owner@domain.com',
|
|
233
|
+
description: 'Comma-separated list of users to add as owners',
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
displayName: 'Remove Members',
|
|
237
|
+
name: 'removeMembers',
|
|
238
|
+
type: 'string',
|
|
239
|
+
default: '',
|
|
240
|
+
placeholder: 'user1@domain.com,user2@domain.com',
|
|
241
|
+
description: 'Comma-separated list of members to remove',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
displayName: 'Remove Owners',
|
|
245
|
+
name: 'removeOwners',
|
|
246
|
+
type: 'string',
|
|
247
|
+
default: '',
|
|
248
|
+
placeholder: 'owner@domain.com',
|
|
249
|
+
description: 'Comma-separated list of owners to remove',
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
// Delete Group fields
|
|
254
|
+
{
|
|
255
|
+
displayName: 'Group Type',
|
|
256
|
+
name: 'groupTypeForDelete',
|
|
257
|
+
type: 'options',
|
|
258
|
+
displayOptions: {
|
|
259
|
+
show: {
|
|
260
|
+
resource: ['group'],
|
|
261
|
+
operation: ['delete', 'hideFromGal', 'deliveryManagement'],
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
options: [
|
|
265
|
+
{ name: 'Microsoft 365', value: 'Microsoft 365' },
|
|
266
|
+
{ name: 'Security', value: 'Security' },
|
|
267
|
+
{ name: 'Distribution', value: 'Distribution' },
|
|
268
|
+
{ name: 'Mail-Enabled Security', value: 'Mail-Enabled Security' },
|
|
269
|
+
],
|
|
270
|
+
default: 'Microsoft 365',
|
|
271
|
+
description: 'The type of the group',
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
displayName: 'Group Email',
|
|
275
|
+
name: 'groupEmail',
|
|
276
|
+
type: 'string',
|
|
277
|
+
displayOptions: {
|
|
278
|
+
show: {
|
|
279
|
+
resource: ['group'],
|
|
280
|
+
operation: ['hideFromGal', 'deliveryManagement'],
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
default: '',
|
|
284
|
+
description: 'The email address of the group',
|
|
285
|
+
},
|
|
286
|
+
// Hide from GAL option
|
|
287
|
+
{
|
|
288
|
+
displayName: 'Hide From GAL',
|
|
289
|
+
name: 'hideFromGal',
|
|
290
|
+
type: 'boolean',
|
|
291
|
+
displayOptions: {
|
|
292
|
+
show: {
|
|
293
|
+
resource: ['group'],
|
|
294
|
+
operation: ['hideFromGal'],
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
default: true,
|
|
298
|
+
description: 'Whether to hide the group from the Global Address List',
|
|
299
|
+
},
|
|
300
|
+
// Delivery Management option
|
|
301
|
+
{
|
|
302
|
+
displayName: 'Only Allow Internal Messages',
|
|
303
|
+
name: 'onlyInternal',
|
|
304
|
+
type: 'boolean',
|
|
305
|
+
displayOptions: {
|
|
306
|
+
show: {
|
|
307
|
+
resource: ['group'],
|
|
308
|
+
operation: ['deliveryManagement'],
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
default: false,
|
|
312
|
+
description: 'Whether to only allow messages from internal senders',
|
|
313
|
+
},
|
|
314
|
+
];
|
|
315
|
+
//# sourceMappingURL=GroupDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupDescription.js","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/GroupDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IACjD;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,CA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AO,EAAE,KAAK;QACd,WAAW,EAAE,sDAAsD;KACnE;CACD,CAAC"}
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mailboxFields = exports.mailboxOperations = void 0;
|
|
4
|
+
exports.mailboxOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['mailbox'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Convert',
|
|
18
|
+
value: 'convert',
|
|
19
|
+
description: 'Convert mailbox between shared and regular types',
|
|
20
|
+
action: 'Convert mailbox',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Enable Archive',
|
|
24
|
+
value: 'enableArchive',
|
|
25
|
+
description: 'Enable online archive for a user',
|
|
26
|
+
action: 'Enable archive',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Set Email Forwarding',
|
|
30
|
+
value: 'setForwarding',
|
|
31
|
+
description: 'Manage email forwarding settings',
|
|
32
|
+
action: 'Set email forwarding',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Set Out of Office',
|
|
36
|
+
value: 'setOutOfOffice',
|
|
37
|
+
description: 'Set or disable out of office message',
|
|
38
|
+
action: 'Set out of office',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
default: 'convert',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
exports.mailboxFields = [
|
|
45
|
+
// Tenant selector
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Tenant',
|
|
48
|
+
name: 'tenantFilter',
|
|
49
|
+
type: 'resourceLocator',
|
|
50
|
+
default: { mode: 'list', value: '' },
|
|
51
|
+
required: true,
|
|
52
|
+
description: 'The tenant to perform the operation on',
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
resource: ['mailbox'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
modes: [
|
|
59
|
+
{
|
|
60
|
+
displayName: 'From List',
|
|
61
|
+
name: 'list',
|
|
62
|
+
type: 'list',
|
|
63
|
+
typeOptions: {
|
|
64
|
+
searchListMethod: 'tenantSearch',
|
|
65
|
+
searchable: true,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'By Domain',
|
|
70
|
+
name: 'id',
|
|
71
|
+
type: 'string',
|
|
72
|
+
placeholder: 'e.g. contoso.onmicrosoft.com',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
// User ID for all mailbox operations
|
|
77
|
+
{
|
|
78
|
+
displayName: 'User ID',
|
|
79
|
+
name: 'userId',
|
|
80
|
+
type: 'string',
|
|
81
|
+
required: true,
|
|
82
|
+
displayOptions: {
|
|
83
|
+
show: {
|
|
84
|
+
resource: ['mailbox'],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
default: '',
|
|
88
|
+
placeholder: 'user@domain.com',
|
|
89
|
+
description: 'The User Principal Name (UPN) of the mailbox owner',
|
|
90
|
+
},
|
|
91
|
+
// Convert Mailbox
|
|
92
|
+
{
|
|
93
|
+
displayName: 'Mailbox Type',
|
|
94
|
+
name: 'mailboxType',
|
|
95
|
+
type: 'options',
|
|
96
|
+
required: true,
|
|
97
|
+
displayOptions: {
|
|
98
|
+
show: {
|
|
99
|
+
resource: ['mailbox'],
|
|
100
|
+
operation: ['convert'],
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
options: [
|
|
104
|
+
{ name: 'Shared', value: 'Shared' },
|
|
105
|
+
{ name: 'Regular', value: 'Regular' },
|
|
106
|
+
],
|
|
107
|
+
default: 'Shared',
|
|
108
|
+
description: 'The type to convert the mailbox to',
|
|
109
|
+
},
|
|
110
|
+
// Out of Office
|
|
111
|
+
{
|
|
112
|
+
displayName: 'Auto-Reply State',
|
|
113
|
+
name: 'autoReplyState',
|
|
114
|
+
type: 'options',
|
|
115
|
+
required: true,
|
|
116
|
+
displayOptions: {
|
|
117
|
+
show: {
|
|
118
|
+
resource: ['mailbox'],
|
|
119
|
+
operation: ['setOutOfOffice'],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
options: [
|
|
123
|
+
{ name: 'Enabled', value: 'Enabled' },
|
|
124
|
+
{ name: 'Disabled', value: 'Disabled' },
|
|
125
|
+
],
|
|
126
|
+
default: 'Enabled',
|
|
127
|
+
description: 'Whether to enable or disable the auto-reply',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
displayName: 'Auto-Reply Message',
|
|
131
|
+
name: 'autoReplyMessage',
|
|
132
|
+
type: 'string',
|
|
133
|
+
typeOptions: {
|
|
134
|
+
rows: 4,
|
|
135
|
+
},
|
|
136
|
+
displayOptions: {
|
|
137
|
+
show: {
|
|
138
|
+
resource: ['mailbox'],
|
|
139
|
+
operation: ['setOutOfOffice'],
|
|
140
|
+
autoReplyState: ['Enabled'],
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
default: '',
|
|
144
|
+
description: 'The out of office message to set',
|
|
145
|
+
},
|
|
146
|
+
// Email Forwarding
|
|
147
|
+
{
|
|
148
|
+
displayName: 'Forward To',
|
|
149
|
+
name: 'forwardTo',
|
|
150
|
+
type: 'string',
|
|
151
|
+
displayOptions: {
|
|
152
|
+
show: {
|
|
153
|
+
resource: ['mailbox'],
|
|
154
|
+
operation: ['setForwarding'],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
default: '',
|
|
158
|
+
placeholder: 'forward@domain.com',
|
|
159
|
+
description: 'The email address to forward to (leave empty to disable)',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
displayName: 'Keep Copy',
|
|
163
|
+
name: 'keepCopy',
|
|
164
|
+
type: 'boolean',
|
|
165
|
+
displayOptions: {
|
|
166
|
+
show: {
|
|
167
|
+
resource: ['mailbox'],
|
|
168
|
+
operation: ['setForwarding'],
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
default: true,
|
|
172
|
+
description: 'Whether to keep a copy of forwarded messages in the mailbox',
|
|
173
|
+
},
|
|
174
|
+
];
|
|
175
|
+
//# sourceMappingURL=MailboxDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MailboxDescription.js","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/MailboxDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;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,SAAS,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,kDAAkD;gBAC/D,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,gBAAgB;aACxB;YACD;gBACC,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,eAAe;gBACtB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ACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,eAAe,CAAC;aAC5B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,WAAW,EAAE,0DAA0D;KACvE;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,eAAe,CAAC;aAC5B;SACD;QACD,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,6DAA6D;KAC1E;CACD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const teamOperations: INodeProperties[];
|
|
3
|
+
export declare const teamFields: INodeProperties[];
|
|
4
|
+
export declare const voiceOperations: INodeProperties[];
|
|
5
|
+
export declare const voiceFields: INodeProperties[];
|
|
6
|
+
//# sourceMappingURL=TeamDescription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/TeamDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,cAAc,EAAE,eAAe,EAyD3C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,EAgSvC,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,eAAe,EAuC5C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,EA2HxC,CAAC"}
|