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,304 @@
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.audiencesFields = exports.audiencesOperations = void 0;
10
+ exports.executeAudiences = executeAudiences;
11
+ const transport_1 = require("../../transport");
12
+ exports.audiencesOperations = [
13
+ {
14
+ displayName: 'Operation',
15
+ name: 'operation',
16
+ type: 'options',
17
+ noDataExpression: true,
18
+ displayOptions: {
19
+ show: {
20
+ resource: ['audiences'],
21
+ },
22
+ },
23
+ options: [
24
+ {
25
+ name: 'Create',
26
+ value: 'create',
27
+ description: 'Create an audience',
28
+ action: 'Create an audience',
29
+ },
30
+ {
31
+ name: 'Delete',
32
+ value: 'delete',
33
+ description: 'Delete an audience',
34
+ action: 'Delete an audience',
35
+ },
36
+ {
37
+ name: 'Get',
38
+ value: 'get',
39
+ description: 'Get an audience by ID',
40
+ action: 'Get an audience',
41
+ },
42
+ {
43
+ name: 'Get Many',
44
+ value: 'getAll',
45
+ description: 'List all audiences',
46
+ action: 'List all audiences',
47
+ },
48
+ {
49
+ name: 'Get Preview',
50
+ value: 'getPreview',
51
+ description: 'Preview audience members',
52
+ action: 'Preview audience members',
53
+ },
54
+ {
55
+ name: 'Update',
56
+ value: 'update',
57
+ description: 'Update an audience',
58
+ action: 'Update an audience',
59
+ },
60
+ ],
61
+ default: 'getAll',
62
+ },
63
+ ];
64
+ exports.audiencesFields = [
65
+ // Space ID
66
+ {
67
+ displayName: 'Space ID',
68
+ name: 'spaceId',
69
+ type: 'string',
70
+ required: true,
71
+ default: '',
72
+ description: 'The ID of the Personas space',
73
+ displayOptions: {
74
+ show: {
75
+ resource: ['audiences'],
76
+ },
77
+ },
78
+ },
79
+ // Audience ID
80
+ {
81
+ displayName: 'Audience ID',
82
+ name: 'audienceId',
83
+ type: 'string',
84
+ required: true,
85
+ default: '',
86
+ description: 'The unique identifier of the audience',
87
+ displayOptions: {
88
+ show: {
89
+ resource: ['audiences'],
90
+ operation: ['get', 'update', 'delete', 'getPreview'],
91
+ },
92
+ },
93
+ },
94
+ // Create fields
95
+ {
96
+ displayName: 'Name',
97
+ name: 'name',
98
+ type: 'string',
99
+ required: true,
100
+ default: '',
101
+ description: 'Name of the audience',
102
+ displayOptions: {
103
+ show: {
104
+ resource: ['audiences'],
105
+ operation: ['create'],
106
+ },
107
+ },
108
+ },
109
+ {
110
+ displayName: 'Enabled',
111
+ name: 'enabled',
112
+ type: 'boolean',
113
+ default: true,
114
+ description: 'Whether the audience is enabled',
115
+ displayOptions: {
116
+ show: {
117
+ resource: ['audiences'],
118
+ operation: ['create'],
119
+ },
120
+ },
121
+ },
122
+ {
123
+ displayName: 'Definition (JSON)',
124
+ name: 'definition',
125
+ type: 'json',
126
+ default: '{\n "query": {\n "type": "AND",\n "children": []\n }\n}',
127
+ description: 'The audience definition in JSON format',
128
+ displayOptions: {
129
+ show: {
130
+ resource: ['audiences'],
131
+ operation: ['create'],
132
+ },
133
+ },
134
+ },
135
+ // Additional options for create
136
+ {
137
+ displayName: 'Additional Options',
138
+ name: 'additionalOptions',
139
+ type: 'collection',
140
+ placeholder: 'Add Option',
141
+ default: {},
142
+ displayOptions: {
143
+ show: {
144
+ resource: ['audiences'],
145
+ operation: ['create'],
146
+ },
147
+ },
148
+ options: [
149
+ {
150
+ displayName: 'Description',
151
+ name: 'description',
152
+ type: 'string',
153
+ default: '',
154
+ description: 'Description of the audience',
155
+ },
156
+ {
157
+ displayName: 'Destinations',
158
+ name: 'destinations',
159
+ type: 'string',
160
+ default: '',
161
+ description: 'Comma-separated list of destination IDs to sync this audience to',
162
+ },
163
+ ],
164
+ },
165
+ // Update fields
166
+ {
167
+ displayName: 'Update Fields',
168
+ name: 'updateFields',
169
+ type: 'collection',
170
+ placeholder: 'Add Field',
171
+ default: {},
172
+ displayOptions: {
173
+ show: {
174
+ resource: ['audiences'],
175
+ operation: ['update'],
176
+ },
177
+ },
178
+ options: [
179
+ {
180
+ displayName: 'Name',
181
+ name: 'name',
182
+ type: 'string',
183
+ default: '',
184
+ description: 'Updated name for the audience',
185
+ },
186
+ {
187
+ displayName: 'Enabled',
188
+ name: 'enabled',
189
+ type: 'boolean',
190
+ default: true,
191
+ description: 'Whether the audience is enabled',
192
+ },
193
+ {
194
+ displayName: 'Description',
195
+ name: 'description',
196
+ type: 'string',
197
+ default: '',
198
+ description: 'Description of the audience',
199
+ },
200
+ ],
201
+ },
202
+ // Pagination
203
+ {
204
+ displayName: 'Return All',
205
+ name: 'returnAll',
206
+ type: 'boolean',
207
+ default: false,
208
+ description: 'Whether to return all results or only up to a given limit',
209
+ displayOptions: {
210
+ show: {
211
+ resource: ['audiences'],
212
+ operation: ['getAll'],
213
+ },
214
+ },
215
+ },
216
+ {
217
+ displayName: 'Limit',
218
+ name: 'limit',
219
+ type: 'number',
220
+ default: 50,
221
+ description: 'Max number of results to return',
222
+ typeOptions: {
223
+ minValue: 1,
224
+ maxValue: 200,
225
+ },
226
+ displayOptions: {
227
+ show: {
228
+ resource: ['audiences'],
229
+ operation: ['getAll'],
230
+ returnAll: [false],
231
+ },
232
+ },
233
+ },
234
+ ];
235
+ async function executeAudiences(index) {
236
+ const operation = this.getNodeParameter('operation', index);
237
+ const spaceId = this.getNodeParameter('spaceId', index);
238
+ let response;
239
+ if (operation === 'getAll') {
240
+ const returnAll = this.getNodeParameter('returnAll', index);
241
+ if (returnAll) {
242
+ response = await transport_1.publicApiRequestAllItems.call(this, 'GET', `/spaces/${spaceId}/audiences`, 'audiences');
243
+ }
244
+ else {
245
+ const limit = this.getNodeParameter('limit', index);
246
+ const result = await transport_1.publicApiRequest.call(this, 'GET', `/spaces/${spaceId}/audiences`, {}, { count: limit });
247
+ response = result.audiences;
248
+ }
249
+ }
250
+ else if (operation === 'get') {
251
+ const audienceId = this.getNodeParameter('audienceId', index);
252
+ const result = await transport_1.publicApiRequest.call(this, 'GET', `/spaces/${spaceId}/audiences/${audienceId}`);
253
+ response = result.audience;
254
+ }
255
+ else if (operation === 'create') {
256
+ const name = this.getNodeParameter('name', index);
257
+ const enabled = this.getNodeParameter('enabled', index);
258
+ const definition = this.getNodeParameter('definition', index);
259
+ const additionalOptions = this.getNodeParameter('additionalOptions', index);
260
+ const body = {
261
+ name,
262
+ enabled,
263
+ definition: typeof definition === 'string' ? JSON.parse(definition) : definition,
264
+ };
265
+ if (additionalOptions.description) {
266
+ body.description = additionalOptions.description;
267
+ }
268
+ if (additionalOptions.destinations) {
269
+ body.destinations = additionalOptions.destinations.split(',').map(d => d.trim());
270
+ }
271
+ const result = await transport_1.publicApiRequest.call(this, 'POST', `/spaces/${spaceId}/audiences`, body);
272
+ response = result.audience;
273
+ }
274
+ else if (operation === 'update') {
275
+ const audienceId = this.getNodeParameter('audienceId', index);
276
+ const updateFields = this.getNodeParameter('updateFields', index);
277
+ const body = {};
278
+ if (updateFields.name)
279
+ body.name = updateFields.name;
280
+ if (updateFields.enabled !== undefined)
281
+ body.enabled = updateFields.enabled;
282
+ if (updateFields.description)
283
+ body.description = updateFields.description;
284
+ const result = await transport_1.publicApiRequest.call(this, 'PATCH', `/spaces/${spaceId}/audiences/${audienceId}`, body);
285
+ response = result.audience;
286
+ }
287
+ else if (operation === 'delete') {
288
+ const audienceId = this.getNodeParameter('audienceId', index);
289
+ await transport_1.publicApiRequest.call(this, 'DELETE', `/spaces/${spaceId}/audiences/${audienceId}`);
290
+ response = { success: true, audienceId };
291
+ }
292
+ else if (operation === 'getPreview') {
293
+ const audienceId = this.getNodeParameter('audienceId', index);
294
+ response = await transport_1.publicApiRequest.call(this, 'GET', `/spaces/${spaceId}/audiences/${audienceId}/preview`);
295
+ }
296
+ else {
297
+ throw new Error(`Unknown operation: ${operation}`);
298
+ }
299
+ const executionData = Array.isArray(response)
300
+ ? response.map((item) => ({ json: item }))
301
+ : [{ json: response }];
302
+ return executionData;
303
+ }
304
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Segment/actions/audiences/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAsOH,4CA6GC;AAhVD,+CAA6E;AAEhE,QAAA,mBAAmB,GAAsB;IACrD;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,WAAW,CAAC;aACvB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,oBAAoB;gBACjC,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,oBAAoB;gBACjC,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,uBAAuB;gBACpC,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,oBAAoB;gBACjC,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,0BAA0B;gBACvC,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,o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,OAAO,EACP,WAAW,OAAO,cAAc,UAAU,EAAE,EAC5C,IAAI,CACJ,CAAC;QACF,QAAQ,GAAG,MAAM,CAAC,QAAuB,CAAC;IAE3C,CAAC;SAAM,IAAI,SAAS,KAAK,QAAQ,EAAE,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,KAAK,CAAW,CAAC;QACxE,MAAM,4BAAgB,CAAC,IAAI,CAC1B,IAAI,EACJ,QAAQ,EACR,WAAW,OAAO,cAAc,UAAU,EAAE,CAC5C,CAAC;QACF,QAAQ,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAE1C,CAAC;SAAM,IAAI,SAAS,KAAK,YAAY,EAAE,CAAC;QACvC,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,KAAK,CAAW,CAAC;QACxE,QAAQ,GAAG,MAAM,4BAAgB,CAAC,IAAI,CACrC,IAAI,EACJ,KAAK,EACL,WAAW,OAAO,cAAc,UAAU,UAAU,CACpD,CAAC;IAEH,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 auditTrailOperations: INodeProperties[];
3
+ export declare const auditTrailFields: INodeProperties[];
4
+ export declare function executeAuditTrail(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/auditTrail/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGxG,eAAO,MAAM,oBAAoB,EAAE,eAAe,EA2BjD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,eAAe,EA+G7C,CAAC;AAEF,wBAAsB,iBAAiB,CACtC,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA6C/B"}
@@ -0,0 +1,192 @@
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.auditTrailFields = exports.auditTrailOperations = void 0;
10
+ exports.executeAuditTrail = executeAuditTrail;
11
+ const transport_1 = require("../../transport");
12
+ exports.auditTrailOperations = [
13
+ {
14
+ displayName: 'Operation',
15
+ name: 'operation',
16
+ type: 'options',
17
+ noDataExpression: true,
18
+ displayOptions: {
19
+ show: {
20
+ resource: ['auditTrail'],
21
+ },
22
+ },
23
+ options: [
24
+ {
25
+ name: 'Get',
26
+ value: 'get',
27
+ description: 'Get an audit event by ID',
28
+ action: 'Get an audit event',
29
+ },
30
+ {
31
+ name: 'Get Many',
32
+ value: 'getAll',
33
+ description: 'List audit events',
34
+ action: 'List audit events',
35
+ },
36
+ ],
37
+ default: 'getAll',
38
+ },
39
+ ];
40
+ exports.auditTrailFields = [
41
+ // Event ID
42
+ {
43
+ displayName: 'Event ID',
44
+ name: 'eventId',
45
+ type: 'string',
46
+ required: true,
47
+ default: '',
48
+ description: 'The unique identifier of the audit event',
49
+ displayOptions: {
50
+ show: {
51
+ resource: ['auditTrail'],
52
+ operation: ['get'],
53
+ },
54
+ },
55
+ },
56
+ // Filters
57
+ {
58
+ displayName: 'Filters',
59
+ name: 'filters',
60
+ type: 'collection',
61
+ placeholder: 'Add Filter',
62
+ default: {},
63
+ displayOptions: {
64
+ show: {
65
+ resource: ['auditTrail'],
66
+ operation: ['getAll'],
67
+ },
68
+ },
69
+ options: [
70
+ {
71
+ displayName: 'Start Date',
72
+ name: 'startDate',
73
+ type: 'dateTime',
74
+ default: '',
75
+ description: 'Filter events from this date',
76
+ },
77
+ {
78
+ displayName: 'End Date',
79
+ name: 'endDate',
80
+ type: 'dateTime',
81
+ default: '',
82
+ description: 'Filter events until this date',
83
+ },
84
+ {
85
+ displayName: 'Resource ID',
86
+ name: 'resourceId',
87
+ type: 'string',
88
+ default: '',
89
+ description: 'Filter by specific resource ID',
90
+ },
91
+ {
92
+ displayName: 'Resource Type',
93
+ name: 'resourceType',
94
+ type: 'options',
95
+ options: [
96
+ { name: 'Audience', value: 'audience' },
97
+ { name: 'Computed Trait', value: 'computed_trait' },
98
+ { name: 'Destination', value: 'destination' },
99
+ { name: 'Function', value: 'function' },
100
+ { name: 'Source', value: 'source' },
101
+ { name: 'Tracking Plan', value: 'tracking_plan' },
102
+ { name: 'Transformation', value: 'transformation' },
103
+ { name: 'User', value: 'user' },
104
+ { name: 'Warehouse', value: 'warehouse' },
105
+ { name: 'Workspace', value: 'workspace' },
106
+ ],
107
+ default: '',
108
+ description: 'Filter by resource type',
109
+ },
110
+ {
111
+ displayName: 'Actor Email',
112
+ name: 'actorEmail',
113
+ type: 'string',
114
+ default: '',
115
+ description: 'Filter by actor email address',
116
+ },
117
+ ],
118
+ },
119
+ // Pagination
120
+ {
121
+ displayName: 'Return All',
122
+ name: 'returnAll',
123
+ type: 'boolean',
124
+ default: false,
125
+ description: 'Whether to return all results or only up to a given limit',
126
+ displayOptions: {
127
+ show: {
128
+ resource: ['auditTrail'],
129
+ operation: ['getAll'],
130
+ },
131
+ },
132
+ },
133
+ {
134
+ displayName: 'Limit',
135
+ name: 'limit',
136
+ type: 'number',
137
+ default: 50,
138
+ description: 'Max number of results to return',
139
+ typeOptions: {
140
+ minValue: 1,
141
+ maxValue: 200,
142
+ },
143
+ displayOptions: {
144
+ show: {
145
+ resource: ['auditTrail'],
146
+ operation: ['getAll'],
147
+ returnAll: [false],
148
+ },
149
+ },
150
+ },
151
+ ];
152
+ async function executeAuditTrail(index) {
153
+ const operation = this.getNodeParameter('operation', index);
154
+ let response;
155
+ if (operation === 'getAll') {
156
+ const returnAll = this.getNodeParameter('returnAll', index);
157
+ const filters = this.getNodeParameter('filters', index);
158
+ const qs = {};
159
+ if (filters.startDate)
160
+ qs.startDate = filters.startDate;
161
+ if (filters.endDate)
162
+ qs.endDate = filters.endDate;
163
+ if (filters.resourceId)
164
+ qs.resourceId = filters.resourceId;
165
+ if (filters.resourceType)
166
+ qs.resourceType = filters.resourceType;
167
+ if (filters.actorEmail)
168
+ qs.actorEmail = filters.actorEmail;
169
+ if (returnAll) {
170
+ response = await transport_1.publicApiRequestAllItems.call(this, 'GET', '/audit-events', 'auditEvents', {}, qs);
171
+ }
172
+ else {
173
+ const limit = this.getNodeParameter('limit', index);
174
+ qs.count = limit;
175
+ const result = await transport_1.publicApiRequest.call(this, 'GET', '/audit-events', {}, qs);
176
+ response = result.auditEvents;
177
+ }
178
+ }
179
+ else if (operation === 'get') {
180
+ const eventId = this.getNodeParameter('eventId', index);
181
+ const result = await transport_1.publicApiRequest.call(this, 'GET', `/audit-events/${eventId}`);
182
+ response = result.auditEvent;
183
+ }
184
+ else {
185
+ throw new Error(`Unknown operation: ${operation}`);
186
+ }
187
+ const executionData = Array.isArray(response)
188
+ ? response.map((item) => ({ json: item }))
189
+ : [{ json: response }];
190
+ return executionData;
191
+ }
192
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../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AC,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 catalogOperations: INodeProperties[];
3
+ export declare const catalogFields: INodeProperties[];
4
+ export declare function executeCatalog(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/catalog/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGxG,eAAO,MAAM,iBAAiB,EAAE,eAAe,EAuC9C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,EAgD1C,CAAC;AAEF,wBAAsB,cAAc,CACnC,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAsD/B"}