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.
- package/LICENSE +46 -0
- package/README.md +419 -0
- package/dist/credentials/SegmentApi.credentials.d.ts +10 -0
- package/dist/credentials/SegmentApi.credentials.d.ts.map +1 -0
- package/dist/credentials/SegmentApi.credentials.js +88 -0
- package/dist/credentials/SegmentApi.credentials.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/Segment/Segment.node.d.ts +6 -0
- package/dist/nodes/Segment/Segment.node.d.ts.map +1 -0
- package/dist/nodes/Segment/Segment.node.js +283 -0
- package/dist/nodes/Segment/Segment.node.js.map +1 -0
- package/dist/nodes/Segment/SegmentTrigger.node.d.ts +6 -0
- package/dist/nodes/Segment/SegmentTrigger.node.d.ts.map +1 -0
- package/dist/nodes/Segment/SegmentTrigger.node.js +257 -0
- package/dist/nodes/Segment/SegmentTrigger.node.js.map +1 -0
- package/dist/nodes/Segment/actions/audiences/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/audiences/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/audiences/index.js +304 -0
- package/dist/nodes/Segment/actions/audiences/index.js.map +1 -0
- package/dist/nodes/Segment/actions/auditTrail/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/auditTrail/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/auditTrail/index.js +192 -0
- package/dist/nodes/Segment/actions/auditTrail/index.js.map +1 -0
- package/dist/nodes/Segment/actions/catalog/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/catalog/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/catalog/index.js +144 -0
- package/dist/nodes/Segment/actions/catalog/index.js.map +1 -0
- package/dist/nodes/Segment/actions/computedTraits/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/computedTraits/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/computedTraits/index.js +257 -0
- package/dist/nodes/Segment/actions/computedTraits/index.js.map +1 -0
- package/dist/nodes/Segment/actions/destinations/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/destinations/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/destinations/index.js +297 -0
- package/dist/nodes/Segment/actions/destinations/index.js.map +1 -0
- package/dist/nodes/Segment/actions/functions/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/functions/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/functions/index.js +389 -0
- package/dist/nodes/Segment/actions/functions/index.js.map +1 -0
- package/dist/nodes/Segment/actions/labels/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/labels/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/labels/index.js +221 -0
- package/dist/nodes/Segment/actions/labels/index.js.map +1 -0
- package/dist/nodes/Segment/actions/regulations/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/regulations/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/regulations/index.js +322 -0
- package/dist/nodes/Segment/actions/regulations/index.js.map +1 -0
- package/dist/nodes/Segment/actions/sources/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/sources/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/sources/index.js +371 -0
- package/dist/nodes/Segment/actions/sources/index.js.map +1 -0
- package/dist/nodes/Segment/actions/spaces/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/spaces/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/spaces/index.js +328 -0
- package/dist/nodes/Segment/actions/spaces/index.js.map +1 -0
- package/dist/nodes/Segment/actions/track/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/track/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/track/index.js +499 -0
- package/dist/nodes/Segment/actions/track/index.js.map +1 -0
- package/dist/nodes/Segment/actions/trackingPlans/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/trackingPlans/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/trackingPlans/index.js +340 -0
- package/dist/nodes/Segment/actions/trackingPlans/index.js.map +1 -0
- package/dist/nodes/Segment/actions/transformations/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/transformations/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/transformations/index.js +280 -0
- package/dist/nodes/Segment/actions/transformations/index.js.map +1 -0
- package/dist/nodes/Segment/actions/users/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/users/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/users/index.js +233 -0
- package/dist/nodes/Segment/actions/users/index.js.map +1 -0
- package/dist/nodes/Segment/actions/warehouses/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/warehouses/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/warehouses/index.js +313 -0
- package/dist/nodes/Segment/actions/warehouses/index.js.map +1 -0
- package/dist/nodes/Segment/actions/workspace/index.d.ts +5 -0
- package/dist/nodes/Segment/actions/workspace/index.d.ts.map +1 -0
- package/dist/nodes/Segment/actions/workspace/index.js +100 -0
- package/dist/nodes/Segment/actions/workspace/index.js.map +1 -0
- package/dist/nodes/Segment/constants/index.d.ts +23 -0
- package/dist/nodes/Segment/constants/index.d.ts.map +1 -0
- package/dist/nodes/Segment/constants/index.js +720 -0
- package/dist/nodes/Segment/constants/index.js.map +1 -0
- package/dist/nodes/Segment/segment.svg +6 -0
- package/dist/nodes/Segment/transport/index.d.ts +35 -0
- package/dist/nodes/Segment/transport/index.d.ts.map +1 -0
- package/dist/nodes/Segment/transport/index.js +127 -0
- package/dist/nodes/Segment/transport/index.js.map +1 -0
- package/dist/nodes/Segment/utils/index.d.ts +67 -0
- package/dist/nodes/Segment/utils/index.d.ts.map +1 -0
- package/dist/nodes/Segment/utils/index.js +216 -0
- package/dist/nodes/Segment/utils/index.js.map +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,328 @@
|
|
|
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.spacesFields = exports.spacesOperations = void 0;
|
|
10
|
+
exports.executeSpaces = executeSpaces;
|
|
11
|
+
const transport_1 = require("../../transport");
|
|
12
|
+
const utils_1 = require("../../utils");
|
|
13
|
+
exports.spacesOperations = [
|
|
14
|
+
{
|
|
15
|
+
displayName: 'Operation',
|
|
16
|
+
name: 'operation',
|
|
17
|
+
type: 'options',
|
|
18
|
+
noDataExpression: true,
|
|
19
|
+
displayOptions: {
|
|
20
|
+
show: {
|
|
21
|
+
resource: ['spaces'],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
options: [
|
|
25
|
+
{
|
|
26
|
+
name: 'Create Audience',
|
|
27
|
+
value: 'createAudience',
|
|
28
|
+
description: 'Create an audience in a space',
|
|
29
|
+
action: 'Create audience in space',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Delete Audience',
|
|
33
|
+
value: 'deleteAudience',
|
|
34
|
+
description: 'Delete an audience from a space',
|
|
35
|
+
action: 'Delete audience from space',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Get',
|
|
39
|
+
value: 'get',
|
|
40
|
+
description: 'Get a space by ID',
|
|
41
|
+
action: 'Get a space',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'Get Audiences',
|
|
45
|
+
value: 'getAudiences',
|
|
46
|
+
description: 'Get audiences in a space',
|
|
47
|
+
action: 'Get space audiences',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'Get Many',
|
|
51
|
+
value: 'getAll',
|
|
52
|
+
description: 'List all Personas spaces',
|
|
53
|
+
action: 'List all spaces',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'Get Traits',
|
|
57
|
+
value: 'getTraits',
|
|
58
|
+
description: 'Get computed traits in a space',
|
|
59
|
+
action: 'Get space traits',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'Update Audience',
|
|
63
|
+
value: 'updateAudience',
|
|
64
|
+
description: 'Update an audience in a space',
|
|
65
|
+
action: 'Update audience in space',
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
default: 'getAll',
|
|
69
|
+
},
|
|
70
|
+
];
|
|
71
|
+
exports.spacesFields = [
|
|
72
|
+
// Space ID field
|
|
73
|
+
{
|
|
74
|
+
displayName: 'Space ID',
|
|
75
|
+
name: 'spaceId',
|
|
76
|
+
type: 'string',
|
|
77
|
+
required: true,
|
|
78
|
+
default: '',
|
|
79
|
+
description: 'The unique identifier of the Personas space',
|
|
80
|
+
displayOptions: {
|
|
81
|
+
show: {
|
|
82
|
+
resource: ['spaces'],
|
|
83
|
+
operation: ['get', 'getTraits', 'getAudiences', 'createAudience', 'updateAudience', 'deleteAudience'],
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
// Audience ID for update/delete
|
|
88
|
+
{
|
|
89
|
+
displayName: 'Audience ID',
|
|
90
|
+
name: 'audienceId',
|
|
91
|
+
type: 'string',
|
|
92
|
+
required: true,
|
|
93
|
+
default: '',
|
|
94
|
+
description: 'The unique identifier of the audience',
|
|
95
|
+
displayOptions: {
|
|
96
|
+
show: {
|
|
97
|
+
resource: ['spaces'],
|
|
98
|
+
operation: ['updateAudience', 'deleteAudience'],
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
// Create audience fields
|
|
103
|
+
{
|
|
104
|
+
displayName: 'Audience Name',
|
|
105
|
+
name: 'audienceName',
|
|
106
|
+
type: 'string',
|
|
107
|
+
required: true,
|
|
108
|
+
default: '',
|
|
109
|
+
description: 'Name of the audience',
|
|
110
|
+
displayOptions: {
|
|
111
|
+
show: {
|
|
112
|
+
resource: ['spaces'],
|
|
113
|
+
operation: ['createAudience'],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
displayName: 'Definition (JSON)',
|
|
119
|
+
name: 'definition',
|
|
120
|
+
type: 'json',
|
|
121
|
+
required: true,
|
|
122
|
+
default: '{}',
|
|
123
|
+
description: 'Audience definition as JSON object',
|
|
124
|
+
displayOptions: {
|
|
125
|
+
show: {
|
|
126
|
+
resource: ['spaces'],
|
|
127
|
+
operation: ['createAudience'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'Description',
|
|
133
|
+
name: 'audienceDescription',
|
|
134
|
+
type: 'string',
|
|
135
|
+
default: '',
|
|
136
|
+
description: 'Description of the audience',
|
|
137
|
+
displayOptions: {
|
|
138
|
+
show: {
|
|
139
|
+
resource: ['spaces'],
|
|
140
|
+
operation: ['createAudience'],
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
displayName: 'Enabled',
|
|
146
|
+
name: 'enabled',
|
|
147
|
+
type: 'boolean',
|
|
148
|
+
default: true,
|
|
149
|
+
description: 'Whether the audience is enabled',
|
|
150
|
+
displayOptions: {
|
|
151
|
+
show: {
|
|
152
|
+
resource: ['spaces'],
|
|
153
|
+
operation: ['createAudience'],
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
// Update audience fields
|
|
158
|
+
{
|
|
159
|
+
displayName: 'Update Fields',
|
|
160
|
+
name: 'updateFields',
|
|
161
|
+
type: 'collection',
|
|
162
|
+
placeholder: 'Add Field',
|
|
163
|
+
default: {},
|
|
164
|
+
displayOptions: {
|
|
165
|
+
show: {
|
|
166
|
+
resource: ['spaces'],
|
|
167
|
+
operation: ['updateAudience'],
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
options: [
|
|
171
|
+
{
|
|
172
|
+
displayName: 'Definition (JSON)',
|
|
173
|
+
name: 'definition',
|
|
174
|
+
type: 'json',
|
|
175
|
+
default: '{}',
|
|
176
|
+
description: 'Audience definition as JSON object',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
displayName: 'Description',
|
|
180
|
+
name: 'description',
|
|
181
|
+
type: 'string',
|
|
182
|
+
default: '',
|
|
183
|
+
description: 'Description of the audience',
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
displayName: 'Enabled',
|
|
187
|
+
name: 'enabled',
|
|
188
|
+
type: 'boolean',
|
|
189
|
+
default: true,
|
|
190
|
+
description: 'Whether the audience is enabled',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Name',
|
|
194
|
+
name: 'name',
|
|
195
|
+
type: 'string',
|
|
196
|
+
default: '',
|
|
197
|
+
description: 'Name of the audience',
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
// Pagination
|
|
202
|
+
{
|
|
203
|
+
displayName: 'Return All',
|
|
204
|
+
name: 'returnAll',
|
|
205
|
+
type: 'boolean',
|
|
206
|
+
default: false,
|
|
207
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
208
|
+
displayOptions: {
|
|
209
|
+
show: {
|
|
210
|
+
resource: ['spaces'],
|
|
211
|
+
operation: ['getAll', 'getTraits', 'getAudiences'],
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
displayName: 'Limit',
|
|
217
|
+
name: 'limit',
|
|
218
|
+
type: 'number',
|
|
219
|
+
default: 50,
|
|
220
|
+
description: 'Max number of results to return',
|
|
221
|
+
typeOptions: {
|
|
222
|
+
minValue: 1,
|
|
223
|
+
maxValue: 200,
|
|
224
|
+
},
|
|
225
|
+
displayOptions: {
|
|
226
|
+
show: {
|
|
227
|
+
resource: ['spaces'],
|
|
228
|
+
operation: ['getAll', 'getTraits', 'getAudiences'],
|
|
229
|
+
returnAll: [false],
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
];
|
|
234
|
+
async function executeSpaces(index) {
|
|
235
|
+
const operation = this.getNodeParameter('operation', index);
|
|
236
|
+
let response;
|
|
237
|
+
if (operation === 'getAll') {
|
|
238
|
+
const returnAll = this.getNodeParameter('returnAll', index);
|
|
239
|
+
if (returnAll) {
|
|
240
|
+
response = await transport_1.publicApiRequestAllItems.call(this, 'GET', '/spaces', 'spaces');
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
const limit = this.getNodeParameter('limit', index);
|
|
244
|
+
const result = await transport_1.publicApiRequest.call(this, 'GET', '/spaces', {}, { count: limit });
|
|
245
|
+
response = result.spaces;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
else if (operation === 'get') {
|
|
249
|
+
const spaceId = this.getNodeParameter('spaceId', index);
|
|
250
|
+
const result = await transport_1.publicApiRequest.call(this, 'GET', `/spaces/${spaceId}`);
|
|
251
|
+
response = result.space;
|
|
252
|
+
}
|
|
253
|
+
else if (operation === 'getTraits') {
|
|
254
|
+
const spaceId = this.getNodeParameter('spaceId', index);
|
|
255
|
+
const returnAll = this.getNodeParameter('returnAll', index);
|
|
256
|
+
if (returnAll) {
|
|
257
|
+
response = await transport_1.publicApiRequestAllItems.call(this, 'GET', `/spaces/${spaceId}/computed-traits`, 'computedTraits');
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
const limit = this.getNodeParameter('limit', index);
|
|
261
|
+
const result = await transport_1.publicApiRequest.call(this, 'GET', `/spaces/${spaceId}/computed-traits`, {}, { count: limit });
|
|
262
|
+
response = result.computedTraits;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
else if (operation === 'getAudiences') {
|
|
266
|
+
const spaceId = this.getNodeParameter('spaceId', index);
|
|
267
|
+
const returnAll = this.getNodeParameter('returnAll', index);
|
|
268
|
+
if (returnAll) {
|
|
269
|
+
response = await transport_1.publicApiRequestAllItems.call(this, 'GET', `/spaces/${spaceId}/audiences`, 'audiences');
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
const limit = this.getNodeParameter('limit', index);
|
|
273
|
+
const result = await transport_1.publicApiRequest.call(this, 'GET', `/spaces/${spaceId}/audiences`, {}, { count: limit });
|
|
274
|
+
response = result.audiences;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
else if (operation === 'createAudience') {
|
|
278
|
+
const spaceId = this.getNodeParameter('spaceId', index);
|
|
279
|
+
const audienceName = this.getNodeParameter('audienceName', index);
|
|
280
|
+
const definition = (0, utils_1.parseJson)(this.getNodeParameter('definition', index, '{}'));
|
|
281
|
+
const audienceDescription = this.getNodeParameter('audienceDescription', index, '');
|
|
282
|
+
const enabled = this.getNodeParameter('enabled', index);
|
|
283
|
+
const body = {
|
|
284
|
+
name: audienceName,
|
|
285
|
+
definition,
|
|
286
|
+
enabled,
|
|
287
|
+
};
|
|
288
|
+
if (audienceDescription) {
|
|
289
|
+
body.description = audienceDescription;
|
|
290
|
+
}
|
|
291
|
+
const result = await transport_1.publicApiRequest.call(this, 'POST', `/spaces/${spaceId}/audiences`, body);
|
|
292
|
+
response = result.audience;
|
|
293
|
+
}
|
|
294
|
+
else if (operation === 'updateAudience') {
|
|
295
|
+
const spaceId = this.getNodeParameter('spaceId', index);
|
|
296
|
+
const audienceId = this.getNodeParameter('audienceId', index);
|
|
297
|
+
const updateFields = this.getNodeParameter('updateFields', index);
|
|
298
|
+
const body = {};
|
|
299
|
+
if (updateFields.name !== undefined) {
|
|
300
|
+
body.name = updateFields.name;
|
|
301
|
+
}
|
|
302
|
+
if (updateFields.description !== undefined) {
|
|
303
|
+
body.description = updateFields.description;
|
|
304
|
+
}
|
|
305
|
+
if (updateFields.enabled !== undefined) {
|
|
306
|
+
body.enabled = updateFields.enabled;
|
|
307
|
+
}
|
|
308
|
+
if (updateFields.definition) {
|
|
309
|
+
body.definition = (0, utils_1.parseJson)(updateFields.definition);
|
|
310
|
+
}
|
|
311
|
+
const result = await transport_1.publicApiRequest.call(this, 'PATCH', `/spaces/${spaceId}/audiences/${audienceId}`, body);
|
|
312
|
+
response = result.audience;
|
|
313
|
+
}
|
|
314
|
+
else if (operation === 'deleteAudience') {
|
|
315
|
+
const spaceId = this.getNodeParameter('spaceId', index);
|
|
316
|
+
const audienceId = this.getNodeParameter('audienceId', index);
|
|
317
|
+
await transport_1.publicApiRequest.call(this, 'DELETE', `/spaces/${spaceId}/audiences/${audienceId}`);
|
|
318
|
+
response = { success: true, spaceId, audienceId };
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
throw new Error(`Unknown operation: ${operation}`);
|
|
322
|
+
}
|
|
323
|
+
const executionData = Array.isArray(response)
|
|
324
|
+
? response.map((item) => ({ json: item }))
|
|
325
|
+
: [{ json: response }];
|
|
326
|
+
return executionData;
|
|
327
|
+
}
|
|
328
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Segment/actions/spaces/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAqOH,sCA4IC;AA9WD,+CAA6E;AAC7E,uCAAwC;AAE3B,QAAA,gBAAgB,GAAsB;IAClD;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,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,+BAA+B;gBAC5C,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,iCAAiC;gBAC9C,MAAM,EAAE,4BAA4B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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 trackOperations: INodeProperties[];
|
|
3
|
+
export declare const trackFields: INodeProperties[];
|
|
4
|
+
export declare function executeTrack(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/track/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIxG,eAAO,MAAM,eAAe,EAAE,eAAe,EAyD5C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,EA4OxC,CAAC;AAEF,wBAAsB,YAAY,CACjC,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAkN/B"}
|