n8n-nodes-netsendo 1.0.1 → 1.2.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.
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NetSendoTrigger = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ class NetSendoTrigger {
6
+ constructor() {
7
+ this.description = {
8
+ displayName: 'NetSendo Trigger',
9
+ name: 'netSendoTrigger',
10
+ icon: 'file:../../icons/netsendo.svg',
11
+ group: ['trigger'],
12
+ version: 1,
13
+ description: 'Starts the workflow when NetSendo events occur',
14
+ defaults: {
15
+ name: 'NetSendo Trigger',
16
+ },
17
+ usableAsTool: true,
18
+ inputs: [],
19
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
20
+ credentials: [
21
+ {
22
+ name: 'netSendoApi',
23
+ required: true,
24
+ },
25
+ ],
26
+ webhooks: [
27
+ {
28
+ name: 'default',
29
+ httpMethod: 'POST',
30
+ responseMode: 'onReceived',
31
+ path: 'webhook',
32
+ },
33
+ ],
34
+ properties: [
35
+ {
36
+ displayName: 'Events',
37
+ name: 'events',
38
+ type: 'multiOptions',
39
+ options: [
40
+ { name: 'SMS Failed', value: 'sms.failed' },
41
+ { name: 'SMS Queued', value: 'sms.queued' },
42
+ { name: 'SMS Sent', value: 'sms.sent' },
43
+ { name: 'Subscriber Bounced', value: 'subscriber.bounced' },
44
+ { name: 'Subscriber Created', value: 'subscriber.created' },
45
+ { name: 'Subscriber Deleted', value: 'subscriber.deleted' },
46
+ { name: 'Subscriber Subscribed', value: 'subscriber.subscribed' },
47
+ { name: 'Subscriber Unsubscribed', value: 'subscriber.unsubscribed' },
48
+ { name: 'Subscriber Updated', value: 'subscriber.updated' },
49
+ { name: 'Tag Added', value: 'subscriber.tag_added' },
50
+ { name: 'Tag Removed', value: 'subscriber.tag_removed' },
51
+ ],
52
+ default: ['subscriber.created'],
53
+ required: true,
54
+ description: 'Events to listen for',
55
+ },
56
+ ],
57
+ };
58
+ this.webhookMethods = {
59
+ default: {
60
+ async checkExists() {
61
+ const webhookData = this.getWorkflowStaticData('node');
62
+ return webhookData.webhookId !== undefined;
63
+ },
64
+ async create() {
65
+ const webhookUrl = this.getNodeWebhookUrl('default');
66
+ const events = this.getNodeParameter('events');
67
+ const credentials = await this.getCredentials('netSendoApi');
68
+ const baseUrl = credentials.baseUrl.replace(/\/$/, '');
69
+ const body = {
70
+ name: `n8n Workflow: ${this.getWorkflow().name}`,
71
+ url: webhookUrl,
72
+ events: events,
73
+ };
74
+ const response = await this.helpers.httpRequest({
75
+ method: 'POST',
76
+ url: `${baseUrl}/api/v1/webhooks`,
77
+ headers: {
78
+ Authorization: `Bearer ${credentials.apiKey}`,
79
+ 'Content-Type': 'application/json',
80
+ },
81
+ body: body,
82
+ json: true,
83
+ });
84
+ const webhookData = this.getWorkflowStaticData('node');
85
+ webhookData.webhookId = response.data.id;
86
+ webhookData.webhookSecret = response.data.secret;
87
+ return true;
88
+ },
89
+ async delete() {
90
+ const webhookData = this.getWorkflowStaticData('node');
91
+ const credentials = await this.getCredentials('netSendoApi');
92
+ const baseUrl = credentials.baseUrl.replace(/\/$/, '');
93
+ if (webhookData.webhookId) {
94
+ try {
95
+ await this.helpers.httpRequest({
96
+ method: 'DELETE',
97
+ url: `${baseUrl}/api/v1/webhooks/${webhookData.webhookId}`,
98
+ headers: {
99
+ Authorization: `Bearer ${credentials.apiKey}`,
100
+ },
101
+ });
102
+ }
103
+ catch {
104
+ }
105
+ }
106
+ delete webhookData.webhookId;
107
+ delete webhookData.webhookSecret;
108
+ return true;
109
+ },
110
+ },
111
+ };
112
+ }
113
+ async webhook() {
114
+ const req = this.getRequestObject();
115
+ const body = this.getBodyData();
116
+ const webhookData = this.getWorkflowStaticData('node');
117
+ const signature = req.headers['x-netsendo-signature'];
118
+ if (webhookData.webhookSecret && signature) {
119
+ const crypto = require('crypto');
120
+ const expectedSignature = crypto
121
+ .createHmac('sha256', webhookData.webhookSecret)
122
+ .update(JSON.stringify(body))
123
+ .digest('hex');
124
+ if (signature !== expectedSignature) {
125
+ return {
126
+ webhookResponse: 'Invalid signature',
127
+ };
128
+ }
129
+ }
130
+ return {
131
+ workflowData: [this.helpers.returnJsonArray(body)],
132
+ };
133
+ }
134
+ }
135
+ exports.NetSendoTrigger = NetSendoTrigger;
136
+ //# sourceMappingURL=NetSendoTrigger.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NetSendoTrigger.node.js","sourceRoot":"","sources":["../../../nodes/NetSendo/NetSendoTrigger.node.ts"],"names":[],"mappings":";;;AAQA,+CAAmD;AAEnD,MAAa,eAAe;IAA5B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,+BAA+B;YACrC,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE;gBACT,IAAI,EAAE,kBAAkB;aACxB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,aAAa;oBACnB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,QAAQ,EAAE;gBACT;oBACC,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,MAAM;oBAClB,YAAY,EAAE,YAAY;oBAC1B,IAAI,EAAE,SAAS;iBACf;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,QAAQ;oBACrB,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,cAAc;oBACpB,OAAO,EAAE;wBACR,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;wBAC3C,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EA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
7
+ "primaryDocumentation": [
8
+ {
9
+ "url": "https://github.com/NetSendo/NetSendo"
10
+ }
11
+ ]
12
+ },
13
+ "alias": ["email", "newsletter", "marketing", "subscribers", "webhook", "trigger"]
14
+ }
@@ -100,6 +100,37 @@ exports.listDescription = [
100
100
  },
101
101
  description: 'Select a contact list. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
102
102
  },
103
+ {
104
+ displayName: 'Return All',
105
+ name: 'returnAll',
106
+ type: 'boolean',
107
+ default: false,
108
+ displayOptions: {
109
+ show: {
110
+ resource: ['list'],
111
+ operation: ['getSubscribers'],
112
+ },
113
+ },
114
+ description: 'Whether to return all results or only up to a given limit',
115
+ },
116
+ {
117
+ displayName: 'Limit',
118
+ name: 'limit',
119
+ type: 'number',
120
+ default: 50,
121
+ typeOptions: {
122
+ minValue: 1,
123
+ maxValue: 5000,
124
+ },
125
+ displayOptions: {
126
+ show: {
127
+ resource: ['list'],
128
+ operation: ['getSubscribers'],
129
+ returnAll: [false],
130
+ },
131
+ },
132
+ description: 'Max number of results to return',
133
+ },
103
134
  {
104
135
  displayName: 'Options',
105
136
  name: 'options',
@@ -173,19 +204,6 @@ exports.listDescription = [
173
204
  },
174
205
  },
175
206
  options: [
176
- {
177
- displayName: 'Per Page',
178
- name: 'per_page',
179
- type: 'number',
180
- default: 25,
181
- description: 'Number of results per page',
182
- routing: {
183
- send: {
184
- type: 'query',
185
- property: 'per_page',
186
- },
187
- },
188
- },
189
207
  {
190
208
  displayName: 'Status',
191
209
  name: 'status',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/NetSendo/resources/list/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,eAAe,GAAG;IACvB,QAAQ,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC;AAEW,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SA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I,EAAE,OAAO;wBACb,QAAQ,EAAE,QAAQ;qBAClB;iBACD;aACD;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC3C,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;iBACjC;gBACD,OAAO,EAAE,YAAY;gBACrB,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,SAAS;qBACnB;iBACD;aACD;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE;oBACnC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE;iBACrC;gBACD,OAAO,EAAE,MAAM;gBACf,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,YAAY;qBACtB;iBACD;aACD;SACD;KACD;CACD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/NetSendo/resources/list/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,eAAe,GAAG;IACvB,QAAQ,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC;AAEW,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,eAAe;SACrB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,SAAS;gBAChB,MAAM,EAAE,wBAAwB;gBAChC,WAA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AAK,EAAE,cAAc,EAAE;oBAC/C,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACrC;gBACD,OAAO,EAAE,QAAQ;gBACjB,WAAW,EAAE,6BAA6B;gBAC1C,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,QAAQ;qBAClB;iBACD;aACD;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC3C,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;iBACjC;gBACD,OAAO,EAAE,YAAY;gBACrB,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,SAAS;qBACnB;iBACD;aACD;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE;oBACnC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE;iBACrC;gBACD,OAAO,EAAE,MAAM;gBACf,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,YAAY;qBACtB;iBACD;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const smsDescription: INodeProperties[];
@@ -0,0 +1,343 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.smsDescription = void 0;
4
+ const showOnlyForSms = {
5
+ resource: ['sms'],
6
+ };
7
+ exports.smsDescription = [
8
+ {
9
+ displayName: 'Operation',
10
+ name: 'operation',
11
+ type: 'options',
12
+ noDataExpression: true,
13
+ displayOptions: {
14
+ show: showOnlyForSms,
15
+ },
16
+ options: [
17
+ {
18
+ name: 'Get Status',
19
+ value: 'getStatus',
20
+ action: 'Get SMS status',
21
+ description: 'Get the status of a sent SMS message',
22
+ routing: {
23
+ request: {
24
+ method: 'GET',
25
+ url: '=/sms/status/{{$parameter.smsId}}',
26
+ },
27
+ output: {
28
+ postReceive: [
29
+ {
30
+ type: 'rootProperty',
31
+ properties: {
32
+ property: 'data',
33
+ },
34
+ },
35
+ ],
36
+ },
37
+ },
38
+ },
39
+ {
40
+ name: 'List Providers',
41
+ value: 'listProviders',
42
+ action: 'List SMS providers',
43
+ description: 'Get a list of available SMS providers',
44
+ routing: {
45
+ request: {
46
+ method: 'GET',
47
+ url: '/sms/providers',
48
+ },
49
+ output: {
50
+ postReceive: [
51
+ {
52
+ type: 'rootProperty',
53
+ properties: {
54
+ property: 'data',
55
+ },
56
+ },
57
+ ],
58
+ },
59
+ },
60
+ },
61
+ {
62
+ name: 'Send',
63
+ value: 'send',
64
+ action: 'Send an SMS',
65
+ description: 'Send a single SMS message',
66
+ routing: {
67
+ request: {
68
+ method: 'POST',
69
+ url: '/sms/send',
70
+ },
71
+ output: {
72
+ postReceive: [
73
+ {
74
+ type: 'rootProperty',
75
+ properties: {
76
+ property: 'data',
77
+ },
78
+ },
79
+ ],
80
+ },
81
+ },
82
+ },
83
+ {
84
+ name: 'Send Batch',
85
+ value: 'sendBatch',
86
+ action: 'Send batch SMS',
87
+ description: 'Send SMS messages to a list or tag group',
88
+ routing: {
89
+ request: {
90
+ method: 'POST',
91
+ url: '/sms/batch',
92
+ },
93
+ output: {
94
+ postReceive: [
95
+ {
96
+ type: 'rootProperty',
97
+ properties: {
98
+ property: 'data',
99
+ },
100
+ },
101
+ ],
102
+ },
103
+ },
104
+ },
105
+ ],
106
+ default: 'send',
107
+ },
108
+ {
109
+ displayName: 'Phone Number',
110
+ name: 'phoneNumber',
111
+ type: 'string',
112
+ placeholder: '+48123456789',
113
+ default: '',
114
+ required: true,
115
+ displayOptions: {
116
+ show: {
117
+ resource: ['sms'],
118
+ operation: ['send'],
119
+ },
120
+ },
121
+ description: 'Phone number to send SMS to (E.164 format recommended)',
122
+ routing: {
123
+ send: {
124
+ type: 'body',
125
+ property: 'phone_number',
126
+ },
127
+ },
128
+ },
129
+ {
130
+ displayName: 'Message',
131
+ name: 'message',
132
+ type: 'string',
133
+ typeOptions: {
134
+ rows: 4,
135
+ },
136
+ default: '',
137
+ required: true,
138
+ displayOptions: {
139
+ show: {
140
+ resource: ['sms'],
141
+ operation: ['send'],
142
+ },
143
+ },
144
+ description: 'SMS message content (max 160 characters for single SMS)',
145
+ routing: {
146
+ send: {
147
+ type: 'body',
148
+ property: 'message',
149
+ },
150
+ },
151
+ },
152
+ {
153
+ displayName: 'Additional Fields',
154
+ name: 'additionalFields',
155
+ type: 'collection',
156
+ placeholder: 'Add Field',
157
+ default: {},
158
+ displayOptions: {
159
+ show: {
160
+ resource: ['sms'],
161
+ operation: ['send'],
162
+ },
163
+ },
164
+ options: [
165
+ {
166
+ displayName: 'Provider ID',
167
+ name: 'provider_id',
168
+ type: 'number',
169
+ default: 0,
170
+ description: 'ID of the SMS provider to use. Leave empty for default provider.',
171
+ routing: {
172
+ send: {
173
+ type: 'body',
174
+ property: 'provider_id',
175
+ },
176
+ },
177
+ },
178
+ {
179
+ displayName: 'Sender ID',
180
+ name: 'sender_id',
181
+ type: 'string',
182
+ default: '',
183
+ description: 'Custom sender ID (if supported by provider)',
184
+ routing: {
185
+ send: {
186
+ type: 'body',
187
+ property: 'sender_id',
188
+ },
189
+ },
190
+ },
191
+ ],
192
+ },
193
+ {
194
+ displayName: 'Message',
195
+ name: 'message',
196
+ type: 'string',
197
+ typeOptions: {
198
+ rows: 4,
199
+ },
200
+ default: '',
201
+ required: true,
202
+ displayOptions: {
203
+ show: {
204
+ resource: ['sms'],
205
+ operation: ['sendBatch'],
206
+ },
207
+ },
208
+ description: 'SMS message content to send to all recipients',
209
+ routing: {
210
+ send: {
211
+ type: 'body',
212
+ property: 'message',
213
+ },
214
+ },
215
+ },
216
+ {
217
+ displayName: 'Target Type',
218
+ name: 'targetType',
219
+ type: 'options',
220
+ options: [
221
+ {
222
+ name: 'Contact List',
223
+ value: 'list',
224
+ description: 'Send to all subscribers in a contact list',
225
+ },
226
+ {
227
+ name: 'Tags',
228
+ value: 'tags',
229
+ description: 'Send to subscribers with specific tags',
230
+ },
231
+ ],
232
+ default: 'list',
233
+ required: true,
234
+ displayOptions: {
235
+ show: {
236
+ resource: ['sms'],
237
+ operation: ['sendBatch'],
238
+ },
239
+ },
240
+ description: 'Choose how to target recipients',
241
+ },
242
+ {
243
+ displayName: 'Contact List Name or ID',
244
+ name: 'contactListId',
245
+ type: 'options',
246
+ typeOptions: {
247
+ loadOptionsMethod: 'getLists',
248
+ },
249
+ default: '',
250
+ required: true,
251
+ displayOptions: {
252
+ show: {
253
+ resource: ['sms'],
254
+ operation: ['sendBatch'],
255
+ targetType: ['list'],
256
+ },
257
+ },
258
+ description: 'Contact list to send SMS to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
259
+ routing: {
260
+ send: {
261
+ type: 'body',
262
+ property: 'contact_list_id',
263
+ },
264
+ },
265
+ },
266
+ {
267
+ displayName: 'Tags',
268
+ name: 'tags',
269
+ type: 'string',
270
+ default: '',
271
+ required: true,
272
+ displayOptions: {
273
+ show: {
274
+ resource: ['sms'],
275
+ operation: ['sendBatch'],
276
+ targetType: ['tags'],
277
+ },
278
+ },
279
+ description: 'Comma-separated list of tag IDs to target',
280
+ routing: {
281
+ send: {
282
+ type: 'body',
283
+ property: 'tags',
284
+ },
285
+ },
286
+ },
287
+ {
288
+ displayName: 'Additional Fields',
289
+ name: 'additionalFields',
290
+ type: 'collection',
291
+ placeholder: 'Add Field',
292
+ default: {},
293
+ displayOptions: {
294
+ show: {
295
+ resource: ['sms'],
296
+ operation: ['sendBatch'],
297
+ },
298
+ },
299
+ options: [
300
+ {
301
+ displayName: 'Provider ID',
302
+ name: 'provider_id',
303
+ type: 'number',
304
+ default: 0,
305
+ description: 'ID of the SMS provider to use. Leave empty for default provider.',
306
+ routing: {
307
+ send: {
308
+ type: 'body',
309
+ property: 'provider_id',
310
+ },
311
+ },
312
+ },
313
+ {
314
+ displayName: 'Sender ID',
315
+ name: 'sender_id',
316
+ type: 'string',
317
+ default: '',
318
+ description: 'Custom sender ID (if supported by provider)',
319
+ routing: {
320
+ send: {
321
+ type: 'body',
322
+ property: 'sender_id',
323
+ },
324
+ },
325
+ },
326
+ ],
327
+ },
328
+ {
329
+ displayName: 'SMS ID',
330
+ name: 'smsId',
331
+ type: 'string',
332
+ default: '',
333
+ required: true,
334
+ displayOptions: {
335
+ show: {
336
+ resource: ['sms'],
337
+ operation: ['getStatus'],
338
+ },
339
+ },
340
+ description: 'ID of the SMS message to get status for',
341
+ },
342
+ ];
343
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/NetSendo/resources/sms/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,cAAc,GAAG;IACtB,QAAQ,EAAE,CAAC,KAAK,CAAC;CACjB,CAAC;AAEW,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,cAAc;SACpB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,WAAW;gBAClB,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,sCAAsC;gBACnD,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,mCAAmC;qBACxC;oBACD,MAAM,EAAE;wBACP,WAAW,E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AO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,aAAa;qBACvB;iBACD;aACD;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,6CAA6C;gBAC1D,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,WAAW;qBACrB;iBACD;aACD;SACD;KACD;IAGD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,KAAK,CAAC;gBACjB,SAAS,EAAE,CAAC,WAAW,CAAC;aACxB;SACD;QACD,WAAW,EAAE,yCAAyC;KACtD;CACD,CAAC"}
@@ -162,6 +162,37 @@ exports.subscriberDescription = [
162
162
  },
163
163
  },
164
164
  },
165
+ {
166
+ displayName: 'Return All',
167
+ name: 'returnAll',
168
+ type: 'boolean',
169
+ default: false,
170
+ displayOptions: {
171
+ show: {
172
+ resource: ['subscriber'],
173
+ operation: ['getMany'],
174
+ },
175
+ },
176
+ description: 'Whether to return all results or only up to a given limit',
177
+ },
178
+ {
179
+ displayName: 'Limit',
180
+ name: 'limit',
181
+ type: 'number',
182
+ default: 50,
183
+ typeOptions: {
184
+ minValue: 1,
185
+ maxValue: 5000,
186
+ },
187
+ displayOptions: {
188
+ show: {
189
+ resource: ['subscriber'],
190
+ operation: ['getMany'],
191
+ returnAll: [false],
192
+ },
193
+ },
194
+ description: 'Max number of results to return',
195
+ },
165
196
  {
166
197
  displayName: 'Subscriber ID',
167
198
  name: 'subscriberId',
@@ -424,19 +455,6 @@ exports.subscriberDescription = [
424
455
  },
425
456
  },
426
457
  options: [
427
- {
428
- displayName: 'Per Page',
429
- name: 'per_page',
430
- type: 'number',
431
- default: 25,
432
- description: 'Number of results per page',
433
- routing: {
434
- send: {
435
- type: 'query',
436
- property: 'per_page',
437
- },
438
- },
439
- },
440
458
  {
441
459
  displayName: 'Status',
442
460
  name: 'status',