n8n-nodes-netsendo 1.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.
Files changed (36) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +88 -0
  3. package/dist/credentials/NetSendoApi.credentials.d.ts +10 -0
  4. package/dist/credentials/NetSendoApi.credentials.js +49 -0
  5. package/dist/credentials/NetSendoApi.credentials.js.map +1 -0
  6. package/dist/icons/github.dark.svg +3 -0
  7. package/dist/icons/github.svg +3 -0
  8. package/dist/icons/netsendo.svg +19 -0
  9. package/dist/nodes/Example/Example.node.d.ts +5 -0
  10. package/dist/nodes/Example/Example.node.js +61 -0
  11. package/dist/nodes/Example/Example.node.js.map +1 -0
  12. package/dist/nodes/Example/Example.node.json +18 -0
  13. package/dist/nodes/Example/example.dark.svg +13 -0
  14. package/dist/nodes/Example/example.svg +13 -0
  15. package/dist/nodes/NetSendo/NetSendo.node.d.ts +10 -0
  16. package/dist/nodes/NetSendo/NetSendo.node.js +76 -0
  17. package/dist/nodes/NetSendo/NetSendo.node.js.map +1 -0
  18. package/dist/nodes/NetSendo/NetSendo.node.json +14 -0
  19. package/dist/nodes/NetSendo/listSearch/getLists.d.ts +2 -0
  20. package/dist/nodes/NetSendo/listSearch/getLists.js +13 -0
  21. package/dist/nodes/NetSendo/listSearch/getLists.js.map +1 -0
  22. package/dist/nodes/NetSendo/resources/list/index.d.ts +2 -0
  23. package/dist/nodes/NetSendo/resources/list/index.js +243 -0
  24. package/dist/nodes/NetSendo/resources/list/index.js.map +1 -0
  25. package/dist/nodes/NetSendo/resources/subscriber/index.d.ts +2 -0
  26. package/dist/nodes/NetSendo/resources/subscriber/index.js +494 -0
  27. package/dist/nodes/NetSendo/resources/subscriber/index.js.map +1 -0
  28. package/dist/nodes/NetSendo/resources/tag/index.d.ts +2 -0
  29. package/dist/nodes/NetSendo/resources/tag/index.js +139 -0
  30. package/dist/nodes/NetSendo/resources/tag/index.js.map +1 -0
  31. package/dist/nodes/NetSendo/shared/transport.d.ts +2 -0
  32. package/dist/nodes/NetSendo/shared/transport.js +23 -0
  33. package/dist/nodes/NetSendo/shared/transport.js.map +1 -0
  34. package/dist/package.json +54 -0
  35. package/dist/tsconfig.tsbuildinfo +1 -0
  36. package/package.json +54 -0
@@ -0,0 +1,243 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listDescription = void 0;
4
+ const showOnlyForList = {
5
+ resource: ['list'],
6
+ };
7
+ exports.listDescription = [
8
+ {
9
+ displayName: 'Operation',
10
+ name: 'operation',
11
+ type: 'options',
12
+ noDataExpression: true,
13
+ displayOptions: {
14
+ show: showOnlyForList,
15
+ },
16
+ options: [
17
+ {
18
+ name: 'Get Many',
19
+ value: 'getMany',
20
+ action: 'Get many contact lists',
21
+ description: 'Get all contact lists',
22
+ routing: {
23
+ request: {
24
+ method: 'GET',
25
+ url: '/lists',
26
+ },
27
+ output: {
28
+ postReceive: [
29
+ {
30
+ type: 'rootProperty',
31
+ properties: {
32
+ property: 'data',
33
+ },
34
+ },
35
+ ],
36
+ },
37
+ },
38
+ },
39
+ {
40
+ name: 'Get',
41
+ value: 'get',
42
+ action: 'Get a contact list',
43
+ description: 'Get a single contact list by ID',
44
+ routing: {
45
+ request: {
46
+ method: 'GET',
47
+ url: '=/lists/{{$parameter.listId}}',
48
+ },
49
+ output: {
50
+ postReceive: [
51
+ {
52
+ type: 'rootProperty',
53
+ properties: {
54
+ property: 'data',
55
+ },
56
+ },
57
+ ],
58
+ },
59
+ },
60
+ },
61
+ {
62
+ name: 'Get Subscribers',
63
+ value: 'getSubscribers',
64
+ action: 'Get subscribers from a list',
65
+ description: 'Get all subscribers belonging to a specific contact list',
66
+ routing: {
67
+ request: {
68
+ method: 'GET',
69
+ url: '=/lists/{{$parameter.listId}}/subscribers',
70
+ },
71
+ output: {
72
+ postReceive: [
73
+ {
74
+ type: 'rootProperty',
75
+ properties: {
76
+ property: 'data',
77
+ },
78
+ },
79
+ ],
80
+ },
81
+ },
82
+ },
83
+ ],
84
+ default: 'getMany',
85
+ },
86
+ {
87
+ displayName: 'Contact List Name or ID',
88
+ name: 'listId',
89
+ type: 'options',
90
+ typeOptions: {
91
+ loadOptionsMethod: 'getLists',
92
+ },
93
+ default: '',
94
+ required: true,
95
+ displayOptions: {
96
+ show: {
97
+ resource: ['list'],
98
+ operation: ['get', 'getSubscribers'],
99
+ },
100
+ },
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
+ },
103
+ {
104
+ displayName: 'Options',
105
+ name: 'options',
106
+ type: 'collection',
107
+ placeholder: 'Add Option',
108
+ default: {},
109
+ displayOptions: {
110
+ show: {
111
+ resource: ['list'],
112
+ operation: ['getMany'],
113
+ },
114
+ },
115
+ options: [
116
+ {
117
+ displayName: 'Per Page',
118
+ name: 'per_page',
119
+ type: 'number',
120
+ default: 25,
121
+ description: 'Number of results per page',
122
+ routing: {
123
+ send: {
124
+ type: 'query',
125
+ property: 'per_page',
126
+ },
127
+ },
128
+ },
129
+ {
130
+ displayName: 'Sort By',
131
+ name: 'sort_by',
132
+ type: 'options',
133
+ options: [
134
+ { name: 'Created At', value: 'created_at' },
135
+ { name: 'Name', value: 'name' },
136
+ ],
137
+ default: 'created_at',
138
+ routing: {
139
+ send: {
140
+ type: 'query',
141
+ property: 'sort_by',
142
+ },
143
+ },
144
+ },
145
+ {
146
+ displayName: 'Sort Order',
147
+ name: 'sort_order',
148
+ type: 'options',
149
+ options: [
150
+ { name: 'Ascending', value: 'asc' },
151
+ { name: 'Descending', value: 'desc' },
152
+ ],
153
+ default: 'desc',
154
+ routing: {
155
+ send: {
156
+ type: 'query',
157
+ property: 'sort_order',
158
+ },
159
+ },
160
+ },
161
+ ],
162
+ },
163
+ {
164
+ displayName: 'Options',
165
+ name: 'options',
166
+ type: 'collection',
167
+ placeholder: 'Add Option',
168
+ default: {},
169
+ displayOptions: {
170
+ show: {
171
+ resource: ['list'],
172
+ operation: ['getSubscribers'],
173
+ },
174
+ },
175
+ 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
+ {
190
+ displayName: 'Status',
191
+ name: 'status',
192
+ type: 'options',
193
+ options: [
194
+ { name: 'Active', value: 'active' },
195
+ { name: 'Inactive', value: 'inactive' },
196
+ { name: 'Unsubscribed', value: 'unsubscribed' },
197
+ { name: 'Bounced', value: 'bounced' },
198
+ ],
199
+ default: 'active',
200
+ description: 'Filter by subscriber status',
201
+ routing: {
202
+ send: {
203
+ type: 'query',
204
+ property: 'status',
205
+ },
206
+ },
207
+ },
208
+ {
209
+ displayName: 'Sort By',
210
+ name: 'sort_by',
211
+ type: 'options',
212
+ options: [
213
+ { name: 'Created At', value: 'created_at' },
214
+ { name: 'Email', value: 'email' },
215
+ ],
216
+ default: 'created_at',
217
+ routing: {
218
+ send: {
219
+ type: 'query',
220
+ property: 'sort_by',
221
+ },
222
+ },
223
+ },
224
+ {
225
+ displayName: 'Sort Order',
226
+ name: 'sort_order',
227
+ type: 'options',
228
+ options: [
229
+ { name: 'Ascending', value: 'asc' },
230
+ { name: 'Descending', value: 'desc' },
231
+ ],
232
+ default: 'desc',
233
+ routing: {
234
+ send: {
235
+ type: 'query',
236
+ property: 'sort_order',
237
+ },
238
+ },
239
+ },
240
+ ],
241
+ },
242
+ ];
243
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,E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AE;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 subscriberDescription: INodeProperties[];