n8n-nodes-segment 1.0.0

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 (96) hide show
  1. package/LICENSE +46 -0
  2. package/README.md +419 -0
  3. package/dist/credentials/SegmentApi.credentials.d.ts +10 -0
  4. package/dist/credentials/SegmentApi.credentials.d.ts.map +1 -0
  5. package/dist/credentials/SegmentApi.credentials.js +88 -0
  6. package/dist/credentials/SegmentApi.credentials.js.map +1 -0
  7. package/dist/index.d.ts +4 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +26 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/nodes/Segment/Segment.node.d.ts +6 -0
  12. package/dist/nodes/Segment/Segment.node.d.ts.map +1 -0
  13. package/dist/nodes/Segment/Segment.node.js +283 -0
  14. package/dist/nodes/Segment/Segment.node.js.map +1 -0
  15. package/dist/nodes/Segment/SegmentTrigger.node.d.ts +6 -0
  16. package/dist/nodes/Segment/SegmentTrigger.node.d.ts.map +1 -0
  17. package/dist/nodes/Segment/SegmentTrigger.node.js +257 -0
  18. package/dist/nodes/Segment/SegmentTrigger.node.js.map +1 -0
  19. package/dist/nodes/Segment/actions/audiences/index.d.ts +5 -0
  20. package/dist/nodes/Segment/actions/audiences/index.d.ts.map +1 -0
  21. package/dist/nodes/Segment/actions/audiences/index.js +304 -0
  22. package/dist/nodes/Segment/actions/audiences/index.js.map +1 -0
  23. package/dist/nodes/Segment/actions/auditTrail/index.d.ts +5 -0
  24. package/dist/nodes/Segment/actions/auditTrail/index.d.ts.map +1 -0
  25. package/dist/nodes/Segment/actions/auditTrail/index.js +192 -0
  26. package/dist/nodes/Segment/actions/auditTrail/index.js.map +1 -0
  27. package/dist/nodes/Segment/actions/catalog/index.d.ts +5 -0
  28. package/dist/nodes/Segment/actions/catalog/index.d.ts.map +1 -0
  29. package/dist/nodes/Segment/actions/catalog/index.js +144 -0
  30. package/dist/nodes/Segment/actions/catalog/index.js.map +1 -0
  31. package/dist/nodes/Segment/actions/computedTraits/index.d.ts +5 -0
  32. package/dist/nodes/Segment/actions/computedTraits/index.d.ts.map +1 -0
  33. package/dist/nodes/Segment/actions/computedTraits/index.js +257 -0
  34. package/dist/nodes/Segment/actions/computedTraits/index.js.map +1 -0
  35. package/dist/nodes/Segment/actions/destinations/index.d.ts +5 -0
  36. package/dist/nodes/Segment/actions/destinations/index.d.ts.map +1 -0
  37. package/dist/nodes/Segment/actions/destinations/index.js +297 -0
  38. package/dist/nodes/Segment/actions/destinations/index.js.map +1 -0
  39. package/dist/nodes/Segment/actions/functions/index.d.ts +5 -0
  40. package/dist/nodes/Segment/actions/functions/index.d.ts.map +1 -0
  41. package/dist/nodes/Segment/actions/functions/index.js +389 -0
  42. package/dist/nodes/Segment/actions/functions/index.js.map +1 -0
  43. package/dist/nodes/Segment/actions/labels/index.d.ts +5 -0
  44. package/dist/nodes/Segment/actions/labels/index.d.ts.map +1 -0
  45. package/dist/nodes/Segment/actions/labels/index.js +221 -0
  46. package/dist/nodes/Segment/actions/labels/index.js.map +1 -0
  47. package/dist/nodes/Segment/actions/regulations/index.d.ts +5 -0
  48. package/dist/nodes/Segment/actions/regulations/index.d.ts.map +1 -0
  49. package/dist/nodes/Segment/actions/regulations/index.js +322 -0
  50. package/dist/nodes/Segment/actions/regulations/index.js.map +1 -0
  51. package/dist/nodes/Segment/actions/sources/index.d.ts +5 -0
  52. package/dist/nodes/Segment/actions/sources/index.d.ts.map +1 -0
  53. package/dist/nodes/Segment/actions/sources/index.js +371 -0
  54. package/dist/nodes/Segment/actions/sources/index.js.map +1 -0
  55. package/dist/nodes/Segment/actions/spaces/index.d.ts +5 -0
  56. package/dist/nodes/Segment/actions/spaces/index.d.ts.map +1 -0
  57. package/dist/nodes/Segment/actions/spaces/index.js +328 -0
  58. package/dist/nodes/Segment/actions/spaces/index.js.map +1 -0
  59. package/dist/nodes/Segment/actions/track/index.d.ts +5 -0
  60. package/dist/nodes/Segment/actions/track/index.d.ts.map +1 -0
  61. package/dist/nodes/Segment/actions/track/index.js +499 -0
  62. package/dist/nodes/Segment/actions/track/index.js.map +1 -0
  63. package/dist/nodes/Segment/actions/trackingPlans/index.d.ts +5 -0
  64. package/dist/nodes/Segment/actions/trackingPlans/index.d.ts.map +1 -0
  65. package/dist/nodes/Segment/actions/trackingPlans/index.js +340 -0
  66. package/dist/nodes/Segment/actions/trackingPlans/index.js.map +1 -0
  67. package/dist/nodes/Segment/actions/transformations/index.d.ts +5 -0
  68. package/dist/nodes/Segment/actions/transformations/index.d.ts.map +1 -0
  69. package/dist/nodes/Segment/actions/transformations/index.js +280 -0
  70. package/dist/nodes/Segment/actions/transformations/index.js.map +1 -0
  71. package/dist/nodes/Segment/actions/users/index.d.ts +5 -0
  72. package/dist/nodes/Segment/actions/users/index.d.ts.map +1 -0
  73. package/dist/nodes/Segment/actions/users/index.js +233 -0
  74. package/dist/nodes/Segment/actions/users/index.js.map +1 -0
  75. package/dist/nodes/Segment/actions/warehouses/index.d.ts +5 -0
  76. package/dist/nodes/Segment/actions/warehouses/index.d.ts.map +1 -0
  77. package/dist/nodes/Segment/actions/warehouses/index.js +313 -0
  78. package/dist/nodes/Segment/actions/warehouses/index.js.map +1 -0
  79. package/dist/nodes/Segment/actions/workspace/index.d.ts +5 -0
  80. package/dist/nodes/Segment/actions/workspace/index.d.ts.map +1 -0
  81. package/dist/nodes/Segment/actions/workspace/index.js +100 -0
  82. package/dist/nodes/Segment/actions/workspace/index.js.map +1 -0
  83. package/dist/nodes/Segment/constants/index.d.ts +23 -0
  84. package/dist/nodes/Segment/constants/index.d.ts.map +1 -0
  85. package/dist/nodes/Segment/constants/index.js +720 -0
  86. package/dist/nodes/Segment/constants/index.js.map +1 -0
  87. package/dist/nodes/Segment/segment.svg +6 -0
  88. package/dist/nodes/Segment/transport/index.d.ts +35 -0
  89. package/dist/nodes/Segment/transport/index.d.ts.map +1 -0
  90. package/dist/nodes/Segment/transport/index.js +127 -0
  91. package/dist/nodes/Segment/transport/index.js.map +1 -0
  92. package/dist/nodes/Segment/utils/index.d.ts +67 -0
  93. package/dist/nodes/Segment/utils/index.d.ts.map +1 -0
  94. package/dist/nodes/Segment/utils/index.js +216 -0
  95. package/dist/nodes/Segment/utils/index.js.map +1 -0
  96. package/package.json +73 -0
@@ -0,0 +1,297 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Velocity BPA, LLC
4
+ * Licensed under the Business Source License 1.1
5
+ * Commercial use requires a separate commercial license.
6
+ * See LICENSE file for details.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.destinationsFields = exports.destinationsOperations = void 0;
10
+ exports.executeDestinations = executeDestinations;
11
+ const transport_1 = require("../../transport");
12
+ const utils_1 = require("../../utils");
13
+ exports.destinationsOperations = [
14
+ {
15
+ displayName: 'Operation',
16
+ name: 'operation',
17
+ type: 'options',
18
+ noDataExpression: true,
19
+ displayOptions: {
20
+ show: {
21
+ resource: ['destinations'],
22
+ },
23
+ },
24
+ options: [
25
+ {
26
+ name: 'Create',
27
+ value: 'create',
28
+ description: 'Create a new destination',
29
+ action: 'Create a destination',
30
+ },
31
+ {
32
+ name: 'Delete',
33
+ value: 'delete',
34
+ description: 'Delete a destination',
35
+ action: 'Delete a destination',
36
+ },
37
+ {
38
+ name: 'Get',
39
+ value: 'get',
40
+ description: 'Get a destination by ID',
41
+ action: 'Get a destination',
42
+ },
43
+ {
44
+ name: 'Get Many',
45
+ value: 'getAll',
46
+ description: 'List all destinations',
47
+ action: 'List all destinations',
48
+ },
49
+ {
50
+ name: 'Get Subscriptions',
51
+ value: 'getSubscriptions',
52
+ description: 'Get event subscriptions for a destination',
53
+ action: 'Get destination subscriptions',
54
+ },
55
+ {
56
+ name: 'Update',
57
+ value: 'update',
58
+ description: 'Update destination settings',
59
+ action: 'Update a destination',
60
+ },
61
+ ],
62
+ default: 'getAll',
63
+ },
64
+ ];
65
+ exports.destinationsFields = [
66
+ // Destination ID field
67
+ {
68
+ displayName: 'Destination ID',
69
+ name: 'destinationId',
70
+ type: 'string',
71
+ required: true,
72
+ default: '',
73
+ description: 'The unique identifier of the destination',
74
+ displayOptions: {
75
+ show: {
76
+ resource: ['destinations'],
77
+ operation: ['get', 'update', 'delete', 'getSubscriptions'],
78
+ },
79
+ },
80
+ },
81
+ // Create fields
82
+ {
83
+ displayName: 'Source ID',
84
+ name: 'sourceId',
85
+ type: 'string',
86
+ required: true,
87
+ default: '',
88
+ description: 'The source ID to connect this destination to',
89
+ displayOptions: {
90
+ show: {
91
+ resource: ['destinations'],
92
+ operation: ['create'],
93
+ },
94
+ },
95
+ },
96
+ {
97
+ displayName: 'Metadata ID',
98
+ name: 'metadataId',
99
+ type: 'string',
100
+ required: true,
101
+ default: '',
102
+ description: 'The catalog metadata ID for the destination type (e.g., Google Analytics ID)',
103
+ displayOptions: {
104
+ show: {
105
+ resource: ['destinations'],
106
+ operation: ['create'],
107
+ },
108
+ },
109
+ },
110
+ {
111
+ displayName: 'Destination Name',
112
+ name: 'name',
113
+ type: 'string',
114
+ default: '',
115
+ description: 'Display name for the destination',
116
+ displayOptions: {
117
+ show: {
118
+ resource: ['destinations'],
119
+ operation: ['create'],
120
+ },
121
+ },
122
+ },
123
+ {
124
+ displayName: 'Enabled',
125
+ name: 'enabled',
126
+ type: 'boolean',
127
+ default: true,
128
+ description: 'Whether the destination is enabled',
129
+ displayOptions: {
130
+ show: {
131
+ resource: ['destinations'],
132
+ operation: ['create', 'update'],
133
+ },
134
+ },
135
+ },
136
+ {
137
+ displayName: 'Settings (JSON)',
138
+ name: 'settings',
139
+ type: 'json',
140
+ default: '{}',
141
+ description: 'Destination-specific settings as JSON',
142
+ displayOptions: {
143
+ show: {
144
+ resource: ['destinations'],
145
+ operation: ['create'],
146
+ },
147
+ },
148
+ },
149
+ // Update fields
150
+ {
151
+ displayName: 'Update Fields',
152
+ name: 'updateFields',
153
+ type: 'collection',
154
+ placeholder: 'Add Field',
155
+ default: {},
156
+ displayOptions: {
157
+ show: {
158
+ resource: ['destinations'],
159
+ operation: ['update'],
160
+ },
161
+ },
162
+ options: [
163
+ {
164
+ displayName: 'Name',
165
+ name: 'name',
166
+ type: 'string',
167
+ default: '',
168
+ description: 'Display name for the destination',
169
+ },
170
+ {
171
+ displayName: 'Enabled',
172
+ name: 'enabled',
173
+ type: 'boolean',
174
+ default: true,
175
+ description: 'Whether the destination is enabled',
176
+ },
177
+ {
178
+ displayName: 'Settings (JSON)',
179
+ name: 'settings',
180
+ type: 'json',
181
+ default: '{}',
182
+ description: 'Destination-specific settings as JSON',
183
+ },
184
+ ],
185
+ },
186
+ // Pagination
187
+ {
188
+ displayName: 'Return All',
189
+ name: 'returnAll',
190
+ type: 'boolean',
191
+ default: false,
192
+ description: 'Whether to return all results or only up to a given limit',
193
+ displayOptions: {
194
+ show: {
195
+ resource: ['destinations'],
196
+ operation: ['getAll', 'getSubscriptions'],
197
+ },
198
+ },
199
+ },
200
+ {
201
+ displayName: 'Limit',
202
+ name: 'limit',
203
+ type: 'number',
204
+ default: 50,
205
+ description: 'Max number of results to return',
206
+ typeOptions: {
207
+ minValue: 1,
208
+ maxValue: 200,
209
+ },
210
+ displayOptions: {
211
+ show: {
212
+ resource: ['destinations'],
213
+ operation: ['getAll', 'getSubscriptions'],
214
+ returnAll: [false],
215
+ },
216
+ },
217
+ },
218
+ ];
219
+ async function executeDestinations(index) {
220
+ const operation = this.getNodeParameter('operation', index);
221
+ let response;
222
+ if (operation === 'getAll') {
223
+ const returnAll = this.getNodeParameter('returnAll', index);
224
+ if (returnAll) {
225
+ response = await transport_1.publicApiRequestAllItems.call(this, 'GET', '/destinations', 'destinations');
226
+ }
227
+ else {
228
+ const limit = this.getNodeParameter('limit', index);
229
+ const result = await transport_1.publicApiRequest.call(this, 'GET', '/destinations', {}, { count: limit });
230
+ response = result.destinations;
231
+ }
232
+ }
233
+ else if (operation === 'get') {
234
+ const destinationId = this.getNodeParameter('destinationId', index);
235
+ const result = await transport_1.publicApiRequest.call(this, 'GET', `/destinations/${destinationId}`);
236
+ response = result.destination;
237
+ }
238
+ else if (operation === 'create') {
239
+ const sourceId = this.getNodeParameter('sourceId', index);
240
+ const metadataId = this.getNodeParameter('metadataId', index);
241
+ const name = this.getNodeParameter('name', index, '');
242
+ const enabled = this.getNodeParameter('enabled', index);
243
+ const settings = (0, utils_1.parseJson)(this.getNodeParameter('settings', index, '{}'));
244
+ const body = {
245
+ sourceId,
246
+ metadataId,
247
+ enabled,
248
+ settings,
249
+ };
250
+ if (name) {
251
+ body.name = name;
252
+ }
253
+ const result = await transport_1.publicApiRequest.call(this, 'POST', '/destinations', body);
254
+ response = result.destination;
255
+ }
256
+ else if (operation === 'update') {
257
+ const destinationId = this.getNodeParameter('destinationId', index);
258
+ const updateFields = this.getNodeParameter('updateFields', index);
259
+ const body = {};
260
+ if (updateFields.name !== undefined) {
261
+ body.name = updateFields.name;
262
+ }
263
+ if (updateFields.enabled !== undefined) {
264
+ body.enabled = updateFields.enabled;
265
+ }
266
+ if (updateFields.settings) {
267
+ body.settings = (0, utils_1.parseJson)(updateFields.settings);
268
+ }
269
+ const result = await transport_1.publicApiRequest.call(this, 'PATCH', `/destinations/${destinationId}`, body);
270
+ response = result.destination;
271
+ }
272
+ else if (operation === 'delete') {
273
+ const destinationId = this.getNodeParameter('destinationId', index);
274
+ await transport_1.publicApiRequest.call(this, 'DELETE', `/destinations/${destinationId}`);
275
+ response = { success: true, destinationId };
276
+ }
277
+ else if (operation === 'getSubscriptions') {
278
+ const destinationId = this.getNodeParameter('destinationId', index);
279
+ const returnAll = this.getNodeParameter('returnAll', index);
280
+ if (returnAll) {
281
+ response = await transport_1.publicApiRequestAllItems.call(this, 'GET', `/destinations/${destinationId}/subscriptions`, 'subscriptions');
282
+ }
283
+ else {
284
+ const limit = this.getNodeParameter('limit', index);
285
+ const result = await transport_1.publicApiRequest.call(this, 'GET', `/destinations/${destinationId}/subscriptions`, {}, { count: limit });
286
+ response = result.subscriptions;
287
+ }
288
+ }
289
+ else {
290
+ throw new Error(`Unknown operation: ${operation}`);
291
+ }
292
+ const executionData = Array.isArray(response)
293
+ ? response.map((item) => ({ json: item }))
294
+ : [{ json: response }];
295
+ return executionData;
296
+ }
297
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Segment/actions/destinations/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAsNH,kDA0GC;AA7TD,+CAA6E;AAC7E,uCAAwC;AAE3B,QAAA,sBAAsB,GAAsB;IACxD;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,cAAc,CAAC;aAC1B;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,0BAA0B;gBACvC,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,sBAAsB;gBACnC,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,uBAAuB;gBACpC,MAAM,EAAE,uBAAuB;aAC/B;YACD;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,2CAA2C;gBACxD,MAAM,EAAE,+BAA+B;aACvC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,6BAA6B;gBAC1C,MAAM,EA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AM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,KAAK,CAAW,CAAC;QAC9E,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAY,CAAC;QAEvE,IAAI,SAAS,EAAE,CAAC;YACf,QAAQ,GAAG,MAAM,oCAAwB,CAAC,IAAI,CAC7C,IAAI,EACJ,KAAK,EACL,iBAAiB,aAAa,gBAAgB,EAC9C,eAAe,CACf,CAAC;QACH,CAAC;aAAM,CAAC;YACP,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;YAC9D,MAAM,MAAM,GAAG,MAAM,4BAAgB,CAAC,IAAI,CACzC,IAAI,EACJ,KAAK,EACL,iBAAiB,aAAa,gBAAgB,EAC9C,EAAE,EACF,EAAE,KAAK,EAAE,KAAK,EAAE,CAChB,CAAC;YACF,QAAQ,GAAG,MAAM,CAAC,aAA8B,CAAC;QAClD,CAAC;IACF,CAAC;SAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,sBAAsB,SAAS,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC;QAC5C,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IAExB,OAAO,aAAa,CAAC;AACtB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
2
+ export declare const functionsOperations: INodeProperties[];
3
+ export declare const functionsFields: INodeProperties[];
4
+ export declare function executeFunctions(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../nodes/Segment/actions/functions/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIxG,eAAO,MAAM,mBAAmB,EAAE,eAAe,EAyDhD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAAe,EA4N5C,CAAC;AAEF,wBAAsB,gBAAgB,CACrC,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAgI/B"}