@oursprivacy/platform-sdk 1.53.0 → 1.54.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/CHANGELOG.md +7 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/consent-settings.d.mts +5930 -442
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +5930 -442
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/custom-domains.d.mts +301 -0
- package/resources/custom-domains.d.mts.map +1 -0
- package/resources/custom-domains.d.ts +301 -0
- package/resources/custom-domains.d.ts.map +1 -0
- package/resources/custom-domains.js +55 -0
- package/resources/custom-domains.js.map +1 -0
- package/resources/custom-domains.mjs +51 -0
- package/resources/custom-domains.mjs.map +1 -0
- package/resources/data-governance.d.mts +75 -15
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +75 -15
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/default-mappings.d.mts +207 -3
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +207 -3
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/destinations.d.mts +33 -13
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +33 -13
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiment-variants.d.mts +117 -14
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +117 -14
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiments.d.mts +3979 -253
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +3979 -253
- package/resources/experiments.d.ts.map +1 -1
- package/resources/funnels.d.mts +648 -7
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +648 -7
- package/resources/funnels.d.ts.map +1 -1
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +580 -16
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +580 -16
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/locations.d.mts +25 -5
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +25 -5
- package/resources/locations.d.ts.map +1 -1
- package/resources/mappings.d.mts +540 -12
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +540 -12
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +22 -0
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +22 -0
- package/resources/mappings.mjs.map +1 -1
- package/resources/me.d.mts +29 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +29 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +17 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +13 -0
- package/resources/me.mjs.map +1 -0
- package/resources/replay-settings.d.mts +117 -3
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +117 -3
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/session-replays.d.mts +5 -0
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +5 -0
- package/resources/session-replays.d.ts.map +1 -1
- package/resources/short-links.d.mts +722 -10
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +722 -10
- package/resources/short-links.d.ts.map +1 -1
- package/resources/sources.d.mts +86 -11
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +86 -11
- package/resources/sources.d.ts.map +1 -1
- package/resources/tag-manager-tags.d.mts +3 -1
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +3 -1
- package/resources/tag-manager-tags.d.ts.map +1 -1
- package/resources/tag-manager-triggers.d.mts +3 -1
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +3 -1
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-variables.d.mts +39 -13
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +39 -13
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-managers.d.mts +14 -1
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +14 -1
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +8 -0
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +8 -0
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +67 -11
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +67 -11
- package/resources/test-events.d.ts.map +1 -1
- package/resources/versions.d.mts +82 -37
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +82 -37
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +5 -5
- package/resources/versions.mjs +5 -5
- package/resources/video-channels.d.mts +32 -4
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +32 -4
- package/resources/video-channels.d.ts.map +1 -1
- package/src/client.ts +36 -0
- package/src/resources/consent-settings.ts +7287 -374
- package/src/resources/custom-domains.ts +450 -0
- package/src/resources/data-governance.ts +45 -15
- package/src/resources/default-mappings.ts +303 -3
- package/src/resources/destinations.ts +23 -8
- package/src/resources/experiment-variants.ts +131 -14
- package/src/resources/experiments.ts +8021 -443
- package/src/resources/funnels.ts +1355 -7
- package/src/resources/index.ts +15 -0
- package/src/resources/journey-flows.ts +1224 -16
- package/src/resources/locations.ts +35 -5
- package/src/resources/mappings.ts +794 -19
- package/src/resources/me.ts +37 -0
- package/src/resources/replay-settings.ts +138 -3
- package/src/resources/session-replays.ts +6 -0
- package/src/resources/short-links.ts +872 -10
- package/src/resources/sources.ts +96 -11
- package/src/resources/tag-manager-tags.ts +7 -1
- package/src/resources/tag-manager-triggers.ts +7 -1
- package/src/resources/tag-manager-variables.ts +91 -13
- package/src/resources/tag-managers.ts +25 -0
- package/src/resources/test-events.ts +47 -11
- package/src/resources/versions.ts +83 -37
- package/src/resources/video-channels.ts +44 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -65,6 +65,33 @@ export class Mappings extends APIResource {
|
|
|
65
65
|
return this._client.delete(path`/rest/v1/mappings/${id}`, options);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Preview a destination-specific event rename before setting or clearing it. Check
|
|
70
|
+
* `supportsRenamedEvents` in `GET /rest/v1/destinations/types` first. If
|
|
71
|
+
* `willCascade` is true, review all `affectedEventNames` before calling
|
|
72
|
+
* `PUT /rest/v1/mappings/rename` with `confirmCascade: true`. Requires API-key
|
|
73
|
+
* scope or current OAuth user permission: mapping:find
|
|
74
|
+
*/
|
|
75
|
+
renamePreview(
|
|
76
|
+
query: MappingRenamePreviewParams,
|
|
77
|
+
options?: RequestOptions,
|
|
78
|
+
): APIPromise<MappingRenamePreviewResponse> {
|
|
79
|
+
return this._client.get('/rest/v1/mappings/rename-preview', { query, ...options });
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Set or clear a destination-specific allowed-event rename. Send
|
|
84
|
+
* `renamedEventName: null` to clear it; clearing an existing mapper also requires
|
|
85
|
+
* the `mapping:delete` scope. Preview first with
|
|
86
|
+
* `GET /rest/v1/mappings/rename-preview`; a shared mapper requires
|
|
87
|
+
* `confirmCascade: true`, and all affected events will change. Publish a new
|
|
88
|
+
* version to activate the change. Requires API-key scope or current OAuth user
|
|
89
|
+
* permission: mapping:update
|
|
90
|
+
*/
|
|
91
|
+
rename(body: MappingRenameParams, options?: RequestOptions): APIPromise<MappingRenameResponse | null> {
|
|
92
|
+
return this._client.put('/rest/v1/mappings/rename', { body, ...options });
|
|
93
|
+
}
|
|
94
|
+
|
|
68
95
|
/**
|
|
69
96
|
* Reassign `priority` for a set of mappings. Pass `{ uuids: [...] }` with the
|
|
70
97
|
* mapping ids in their new order — index 0 becomes the highest-priority mapping.
|
|
@@ -147,7 +174,7 @@ export interface MappingListResponse {
|
|
|
147
174
|
*
|
|
148
175
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
149
176
|
*/
|
|
150
|
-
logic?:
|
|
177
|
+
logic?: MappingListResponse.Logic | null;
|
|
151
178
|
|
|
152
179
|
name?: string | null;
|
|
153
180
|
|
|
@@ -212,6 +239,106 @@ export namespace MappingListResponse {
|
|
|
212
239
|
| 'UpperCase'
|
|
213
240
|
| null;
|
|
214
241
|
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
245
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
246
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
247
|
+
*
|
|
248
|
+
* Example leaf:
|
|
249
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
250
|
+
*
|
|
251
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
252
|
+
*/
|
|
253
|
+
export interface Logic {
|
|
254
|
+
/**
|
|
255
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
256
|
+
* or combinator).
|
|
257
|
+
*/
|
|
258
|
+
AND?: Array<{
|
|
259
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
260
|
+
}> | null;
|
|
261
|
+
|
|
262
|
+
condition?: Logic.Condition | null;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Negates a single child logic node.
|
|
266
|
+
*/
|
|
267
|
+
NOT?: {
|
|
268
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
269
|
+
} | null;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
273
|
+
* or combinator).
|
|
274
|
+
*/
|
|
275
|
+
OR?: Array<{
|
|
276
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
277
|
+
}> | null;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export namespace Logic {
|
|
281
|
+
export interface Condition {
|
|
282
|
+
/**
|
|
283
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
284
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
285
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
286
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
287
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
288
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
289
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
290
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
291
|
+
*/
|
|
292
|
+
operator:
|
|
293
|
+
| 'Is'
|
|
294
|
+
| 'IsNot'
|
|
295
|
+
| 'Contains'
|
|
296
|
+
| 'DoesNotContain'
|
|
297
|
+
| 'StartsWith'
|
|
298
|
+
| 'EndsWith'
|
|
299
|
+
| 'IsFalsy'
|
|
300
|
+
| 'IsTruthy'
|
|
301
|
+
| 'IsNull'
|
|
302
|
+
| 'IsNotNull'
|
|
303
|
+
| 'IsUndefined'
|
|
304
|
+
| 'IsNotUndefined'
|
|
305
|
+
| 'IsGreaterThan'
|
|
306
|
+
| 'IsGreaterThanOrEqual'
|
|
307
|
+
| 'IsLessThan'
|
|
308
|
+
| 'IsLessThanOrEqual'
|
|
309
|
+
| 'IsIn'
|
|
310
|
+
| 'IsNotIn'
|
|
311
|
+
| 'IsFoundIn'
|
|
312
|
+
| 'IsNotFoundIn'
|
|
313
|
+
| 'IsTrue'
|
|
314
|
+
| 'IsFalse'
|
|
315
|
+
| 'IsBefore'
|
|
316
|
+
| 'IsAfter'
|
|
317
|
+
| 'IsBetween'
|
|
318
|
+
| 'IsOnOrBefore'
|
|
319
|
+
| 'IsOnOrAfter'
|
|
320
|
+
| 'MatchesRegex'
|
|
321
|
+
| 'MatchesRegexIgnoreCase'
|
|
322
|
+
| 'DoesNotMatchRegex'
|
|
323
|
+
| 'DoesNotMatchRegexIgnoreCase';
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
327
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
328
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
329
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
330
|
+
* and would be compared as a literal string.
|
|
331
|
+
*/
|
|
332
|
+
property: string;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* String compared against the resolved property. Operators that take no value
|
|
336
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
337
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
338
|
+
*/
|
|
339
|
+
value: string;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
215
342
|
}
|
|
216
343
|
|
|
217
344
|
export interface MappingCreateResponse {
|
|
@@ -235,7 +362,7 @@ export interface MappingCreateResponse {
|
|
|
235
362
|
*
|
|
236
363
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
237
364
|
*/
|
|
238
|
-
logic?:
|
|
365
|
+
logic?: MappingCreateResponse.Logic | null;
|
|
239
366
|
|
|
240
367
|
name?: string | null;
|
|
241
368
|
|
|
@@ -300,14 +427,302 @@ export namespace MappingCreateResponse {
|
|
|
300
427
|
| 'UpperCase'
|
|
301
428
|
| null;
|
|
302
429
|
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
433
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
434
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
435
|
+
*
|
|
436
|
+
* Example leaf:
|
|
437
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
438
|
+
*
|
|
439
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
440
|
+
*/
|
|
441
|
+
export interface Logic {
|
|
442
|
+
/**
|
|
443
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
444
|
+
* or combinator).
|
|
445
|
+
*/
|
|
446
|
+
AND?: Array<{
|
|
447
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
448
|
+
}> | null;
|
|
449
|
+
|
|
450
|
+
condition?: Logic.Condition | null;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Negates a single child logic node.
|
|
454
|
+
*/
|
|
455
|
+
NOT?: {
|
|
456
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
457
|
+
} | null;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
461
|
+
* or combinator).
|
|
462
|
+
*/
|
|
463
|
+
OR?: Array<{
|
|
464
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
465
|
+
}> | null;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export namespace Logic {
|
|
469
|
+
export interface Condition {
|
|
470
|
+
/**
|
|
471
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
472
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
473
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
474
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
475
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
476
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
477
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
478
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
479
|
+
*/
|
|
480
|
+
operator:
|
|
481
|
+
| 'Is'
|
|
482
|
+
| 'IsNot'
|
|
483
|
+
| 'Contains'
|
|
484
|
+
| 'DoesNotContain'
|
|
485
|
+
| 'StartsWith'
|
|
486
|
+
| 'EndsWith'
|
|
487
|
+
| 'IsFalsy'
|
|
488
|
+
| 'IsTruthy'
|
|
489
|
+
| 'IsNull'
|
|
490
|
+
| 'IsNotNull'
|
|
491
|
+
| 'IsUndefined'
|
|
492
|
+
| 'IsNotUndefined'
|
|
493
|
+
| 'IsGreaterThan'
|
|
494
|
+
| 'IsGreaterThanOrEqual'
|
|
495
|
+
| 'IsLessThan'
|
|
496
|
+
| 'IsLessThanOrEqual'
|
|
497
|
+
| 'IsIn'
|
|
498
|
+
| 'IsNotIn'
|
|
499
|
+
| 'IsFoundIn'
|
|
500
|
+
| 'IsNotFoundIn'
|
|
501
|
+
| 'IsTrue'
|
|
502
|
+
| 'IsFalse'
|
|
503
|
+
| 'IsBefore'
|
|
504
|
+
| 'IsAfter'
|
|
505
|
+
| 'IsBetween'
|
|
506
|
+
| 'IsOnOrBefore'
|
|
507
|
+
| 'IsOnOrAfter'
|
|
508
|
+
| 'MatchesRegex'
|
|
509
|
+
| 'MatchesRegexIgnoreCase'
|
|
510
|
+
| 'DoesNotMatchRegex'
|
|
511
|
+
| 'DoesNotMatchRegexIgnoreCase';
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
515
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
516
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
517
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
518
|
+
* and would be compared as a literal string.
|
|
519
|
+
*/
|
|
520
|
+
property: string;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* String compared against the resolved property. Operators that take no value
|
|
524
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
525
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
526
|
+
*/
|
|
527
|
+
value: string;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export interface MappingRetrieveResponse {
|
|
533
|
+
id: string;
|
|
534
|
+
|
|
535
|
+
isEnabled: boolean;
|
|
536
|
+
|
|
537
|
+
mappings: Array<MappingRetrieveResponse.Mapping>;
|
|
538
|
+
|
|
539
|
+
destinationId?: string | null;
|
|
540
|
+
|
|
541
|
+
isDefaultMapping?: boolean | null;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
545
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
546
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
547
|
+
*
|
|
548
|
+
* Example leaf:
|
|
549
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
550
|
+
*
|
|
551
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
552
|
+
*/
|
|
553
|
+
logic?: MappingRetrieveResponse.Logic | null;
|
|
554
|
+
|
|
555
|
+
name?: string | null;
|
|
556
|
+
|
|
557
|
+
priority?: number | null;
|
|
558
|
+
|
|
559
|
+
sourceId?: string | null;
|
|
560
|
+
|
|
561
|
+
templateId?: string | null;
|
|
562
|
+
|
|
563
|
+
templateName?: string | null;
|
|
564
|
+
|
|
565
|
+
updatedAt?: string | null;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export namespace MappingRetrieveResponse {
|
|
569
|
+
export interface Mapping {
|
|
570
|
+
/**
|
|
571
|
+
* Source expression sent to the destination for this `property`. Use `{{...}}`
|
|
572
|
+
* template syntax to substitute values from the event/visitor record:
|
|
573
|
+
* `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
|
|
574
|
+
* strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
|
|
575
|
+
* HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
|
|
576
|
+
* like `$event.event_properties.value`.
|
|
577
|
+
*/
|
|
578
|
+
map: string;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Destination-side field name. Comes from the destination template — discover the
|
|
582
|
+
* valid set via `GET /rest/v1/mapping-templates?entityId=...`.
|
|
583
|
+
*/
|
|
584
|
+
property: string;
|
|
585
|
+
|
|
586
|
+
modification?:
|
|
587
|
+
| 'CamelCase'
|
|
588
|
+
| 'DmaIP'
|
|
589
|
+
| 'DomainOnly'
|
|
590
|
+
| 'DomainPathOnly'
|
|
591
|
+
| 'DomainPathUTMs'
|
|
592
|
+
| 'DomainUTMs'
|
|
593
|
+
| 'FakeDomain'
|
|
594
|
+
| 'FakeDomainRealPath'
|
|
595
|
+
| 'FakeIP'
|
|
596
|
+
| 'FullUrl'
|
|
597
|
+
| 'Hash'
|
|
598
|
+
| 'HashMD5'
|
|
599
|
+
| 'HashedCountry'
|
|
600
|
+
| 'HashedDateOfBirth'
|
|
601
|
+
| 'HashedGender'
|
|
602
|
+
| 'HashedNormalized'
|
|
603
|
+
| 'HashedNormalizedNoSpecialChars'
|
|
604
|
+
| 'HashedPhone'
|
|
605
|
+
| 'HashedState'
|
|
606
|
+
| 'HashedZip'
|
|
607
|
+
| 'KebabCase'
|
|
608
|
+
| 'LowerCase'
|
|
609
|
+
| 'None'
|
|
610
|
+
| 'Null'
|
|
611
|
+
| 'Redacted'
|
|
612
|
+
| 'RegionalIP'
|
|
613
|
+
| 'SnakeCase'
|
|
614
|
+
| 'StartCase'
|
|
615
|
+
| 'UpperCase'
|
|
616
|
+
| null;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
621
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
622
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
623
|
+
*
|
|
624
|
+
* Example leaf:
|
|
625
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
626
|
+
*
|
|
627
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
628
|
+
*/
|
|
629
|
+
export interface Logic {
|
|
630
|
+
/**
|
|
631
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
632
|
+
* or combinator).
|
|
633
|
+
*/
|
|
634
|
+
AND?: Array<{
|
|
635
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
636
|
+
}> | null;
|
|
637
|
+
|
|
638
|
+
condition?: Logic.Condition | null;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Negates a single child logic node.
|
|
642
|
+
*/
|
|
643
|
+
NOT?: {
|
|
644
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
645
|
+
} | null;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
649
|
+
* or combinator).
|
|
650
|
+
*/
|
|
651
|
+
OR?: Array<{
|
|
652
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
653
|
+
}> | null;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
export namespace Logic {
|
|
657
|
+
export interface Condition {
|
|
658
|
+
/**
|
|
659
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
660
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
661
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
662
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
663
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
664
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
665
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
666
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
667
|
+
*/
|
|
668
|
+
operator:
|
|
669
|
+
| 'Is'
|
|
670
|
+
| 'IsNot'
|
|
671
|
+
| 'Contains'
|
|
672
|
+
| 'DoesNotContain'
|
|
673
|
+
| 'StartsWith'
|
|
674
|
+
| 'EndsWith'
|
|
675
|
+
| 'IsFalsy'
|
|
676
|
+
| 'IsTruthy'
|
|
677
|
+
| 'IsNull'
|
|
678
|
+
| 'IsNotNull'
|
|
679
|
+
| 'IsUndefined'
|
|
680
|
+
| 'IsNotUndefined'
|
|
681
|
+
| 'IsGreaterThan'
|
|
682
|
+
| 'IsGreaterThanOrEqual'
|
|
683
|
+
| 'IsLessThan'
|
|
684
|
+
| 'IsLessThanOrEqual'
|
|
685
|
+
| 'IsIn'
|
|
686
|
+
| 'IsNotIn'
|
|
687
|
+
| 'IsFoundIn'
|
|
688
|
+
| 'IsNotFoundIn'
|
|
689
|
+
| 'IsTrue'
|
|
690
|
+
| 'IsFalse'
|
|
691
|
+
| 'IsBefore'
|
|
692
|
+
| 'IsAfter'
|
|
693
|
+
| 'IsBetween'
|
|
694
|
+
| 'IsOnOrBefore'
|
|
695
|
+
| 'IsOnOrAfter'
|
|
696
|
+
| 'MatchesRegex'
|
|
697
|
+
| 'MatchesRegexIgnoreCase'
|
|
698
|
+
| 'DoesNotMatchRegex'
|
|
699
|
+
| 'DoesNotMatchRegexIgnoreCase';
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
703
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
704
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
705
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
706
|
+
* and would be compared as a literal string.
|
|
707
|
+
*/
|
|
708
|
+
property: string;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* String compared against the resolved property. Operators that take no value
|
|
712
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
713
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
714
|
+
*/
|
|
715
|
+
value: string;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
303
718
|
}
|
|
304
719
|
|
|
305
|
-
export interface
|
|
720
|
+
export interface MappingUpdateResponse {
|
|
306
721
|
id: string;
|
|
307
722
|
|
|
308
723
|
isEnabled: boolean;
|
|
309
724
|
|
|
310
|
-
mappings: Array<
|
|
725
|
+
mappings: Array<MappingUpdateResponse.Mapping>;
|
|
311
726
|
|
|
312
727
|
destinationId?: string | null;
|
|
313
728
|
|
|
@@ -323,7 +738,7 @@ export interface MappingRetrieveResponse {
|
|
|
323
738
|
*
|
|
324
739
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
325
740
|
*/
|
|
326
|
-
logic?:
|
|
741
|
+
logic?: MappingUpdateResponse.Logic | null;
|
|
327
742
|
|
|
328
743
|
name?: string | null;
|
|
329
744
|
|
|
@@ -338,7 +753,7 @@ export interface MappingRetrieveResponse {
|
|
|
338
753
|
updatedAt?: string | null;
|
|
339
754
|
}
|
|
340
755
|
|
|
341
|
-
export namespace
|
|
756
|
+
export namespace MappingUpdateResponse {
|
|
342
757
|
export interface Mapping {
|
|
343
758
|
/**
|
|
344
759
|
* Source expression sent to the destination for this `property`. Use `{{...}}`
|
|
@@ -388,14 +803,124 @@ export namespace MappingRetrieveResponse {
|
|
|
388
803
|
| 'UpperCase'
|
|
389
804
|
| null;
|
|
390
805
|
}
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
809
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
810
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
811
|
+
*
|
|
812
|
+
* Example leaf:
|
|
813
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
814
|
+
*
|
|
815
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
816
|
+
*/
|
|
817
|
+
export interface Logic {
|
|
818
|
+
/**
|
|
819
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
820
|
+
* or combinator).
|
|
821
|
+
*/
|
|
822
|
+
AND?: Array<{
|
|
823
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
824
|
+
}> | null;
|
|
825
|
+
|
|
826
|
+
condition?: Logic.Condition | null;
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Negates a single child logic node.
|
|
830
|
+
*/
|
|
831
|
+
NOT?: {
|
|
832
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
833
|
+
} | null;
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
837
|
+
* or combinator).
|
|
838
|
+
*/
|
|
839
|
+
OR?: Array<{
|
|
840
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
841
|
+
}> | null;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
export namespace Logic {
|
|
845
|
+
export interface Condition {
|
|
846
|
+
/**
|
|
847
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
848
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
849
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
850
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
851
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
852
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
853
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
854
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
855
|
+
*/
|
|
856
|
+
operator:
|
|
857
|
+
| 'Is'
|
|
858
|
+
| 'IsNot'
|
|
859
|
+
| 'Contains'
|
|
860
|
+
| 'DoesNotContain'
|
|
861
|
+
| 'StartsWith'
|
|
862
|
+
| 'EndsWith'
|
|
863
|
+
| 'IsFalsy'
|
|
864
|
+
| 'IsTruthy'
|
|
865
|
+
| 'IsNull'
|
|
866
|
+
| 'IsNotNull'
|
|
867
|
+
| 'IsUndefined'
|
|
868
|
+
| 'IsNotUndefined'
|
|
869
|
+
| 'IsGreaterThan'
|
|
870
|
+
| 'IsGreaterThanOrEqual'
|
|
871
|
+
| 'IsLessThan'
|
|
872
|
+
| 'IsLessThanOrEqual'
|
|
873
|
+
| 'IsIn'
|
|
874
|
+
| 'IsNotIn'
|
|
875
|
+
| 'IsFoundIn'
|
|
876
|
+
| 'IsNotFoundIn'
|
|
877
|
+
| 'IsTrue'
|
|
878
|
+
| 'IsFalse'
|
|
879
|
+
| 'IsBefore'
|
|
880
|
+
| 'IsAfter'
|
|
881
|
+
| 'IsBetween'
|
|
882
|
+
| 'IsOnOrBefore'
|
|
883
|
+
| 'IsOnOrAfter'
|
|
884
|
+
| 'MatchesRegex'
|
|
885
|
+
| 'MatchesRegexIgnoreCase'
|
|
886
|
+
| 'DoesNotMatchRegex'
|
|
887
|
+
| 'DoesNotMatchRegexIgnoreCase';
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
891
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
892
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
893
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
894
|
+
* and would be compared as a literal string.
|
|
895
|
+
*/
|
|
896
|
+
property: string;
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* String compared against the resolved property. Operators that take no value
|
|
900
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
901
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
902
|
+
*/
|
|
903
|
+
value: string;
|
|
904
|
+
}
|
|
905
|
+
}
|
|
391
906
|
}
|
|
392
907
|
|
|
393
|
-
export
|
|
908
|
+
export type MappingDeleteResponse = boolean;
|
|
909
|
+
|
|
910
|
+
export interface MappingRenamePreviewResponse {
|
|
911
|
+
affectedEventNames: Array<string>;
|
|
912
|
+
|
|
913
|
+
willCascade: boolean;
|
|
914
|
+
|
|
915
|
+
mapperName?: string | null;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export interface MappingRenameResponse {
|
|
394
919
|
id: string;
|
|
395
920
|
|
|
396
921
|
isEnabled: boolean;
|
|
397
922
|
|
|
398
|
-
mappings: Array<
|
|
923
|
+
mappings: Array<MappingRenameResponse.Mapping>;
|
|
399
924
|
|
|
400
925
|
destinationId?: string | null;
|
|
401
926
|
|
|
@@ -411,7 +936,7 @@ export interface MappingUpdateResponse {
|
|
|
411
936
|
*
|
|
412
937
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
413
938
|
*/
|
|
414
|
-
logic?:
|
|
939
|
+
logic?: MappingRenameResponse.Logic | null;
|
|
415
940
|
|
|
416
941
|
name?: string | null;
|
|
417
942
|
|
|
@@ -426,7 +951,7 @@ export interface MappingUpdateResponse {
|
|
|
426
951
|
updatedAt?: string | null;
|
|
427
952
|
}
|
|
428
953
|
|
|
429
|
-
export namespace
|
|
954
|
+
export namespace MappingRenameResponse {
|
|
430
955
|
export interface Mapping {
|
|
431
956
|
/**
|
|
432
957
|
* Source expression sent to the destination for this `property`. Use `{{...}}`
|
|
@@ -476,9 +1001,107 @@ export namespace MappingUpdateResponse {
|
|
|
476
1001
|
| 'UpperCase'
|
|
477
1002
|
| null;
|
|
478
1003
|
}
|
|
479
|
-
}
|
|
480
1004
|
|
|
481
|
-
|
|
1005
|
+
/**
|
|
1006
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
1007
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
1008
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
1009
|
+
*
|
|
1010
|
+
* Example leaf:
|
|
1011
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
1012
|
+
*
|
|
1013
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
1014
|
+
*/
|
|
1015
|
+
export interface Logic {
|
|
1016
|
+
/**
|
|
1017
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
1018
|
+
* or combinator).
|
|
1019
|
+
*/
|
|
1020
|
+
AND?: Array<{
|
|
1021
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1022
|
+
}> | null;
|
|
1023
|
+
|
|
1024
|
+
condition?: Logic.Condition | null;
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* Negates a single child logic node.
|
|
1028
|
+
*/
|
|
1029
|
+
NOT?: {
|
|
1030
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1031
|
+
} | null;
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
1035
|
+
* or combinator).
|
|
1036
|
+
*/
|
|
1037
|
+
OR?: Array<{
|
|
1038
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1039
|
+
}> | null;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
export namespace Logic {
|
|
1043
|
+
export interface Condition {
|
|
1044
|
+
/**
|
|
1045
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
1046
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
1047
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
1048
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
1049
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
1050
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
1051
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
1052
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
1053
|
+
*/
|
|
1054
|
+
operator:
|
|
1055
|
+
| 'Is'
|
|
1056
|
+
| 'IsNot'
|
|
1057
|
+
| 'Contains'
|
|
1058
|
+
| 'DoesNotContain'
|
|
1059
|
+
| 'StartsWith'
|
|
1060
|
+
| 'EndsWith'
|
|
1061
|
+
| 'IsFalsy'
|
|
1062
|
+
| 'IsTruthy'
|
|
1063
|
+
| 'IsNull'
|
|
1064
|
+
| 'IsNotNull'
|
|
1065
|
+
| 'IsUndefined'
|
|
1066
|
+
| 'IsNotUndefined'
|
|
1067
|
+
| 'IsGreaterThan'
|
|
1068
|
+
| 'IsGreaterThanOrEqual'
|
|
1069
|
+
| 'IsLessThan'
|
|
1070
|
+
| 'IsLessThanOrEqual'
|
|
1071
|
+
| 'IsIn'
|
|
1072
|
+
| 'IsNotIn'
|
|
1073
|
+
| 'IsFoundIn'
|
|
1074
|
+
| 'IsNotFoundIn'
|
|
1075
|
+
| 'IsTrue'
|
|
1076
|
+
| 'IsFalse'
|
|
1077
|
+
| 'IsBefore'
|
|
1078
|
+
| 'IsAfter'
|
|
1079
|
+
| 'IsBetween'
|
|
1080
|
+
| 'IsOnOrBefore'
|
|
1081
|
+
| 'IsOnOrAfter'
|
|
1082
|
+
| 'MatchesRegex'
|
|
1083
|
+
| 'MatchesRegexIgnoreCase'
|
|
1084
|
+
| 'DoesNotMatchRegex'
|
|
1085
|
+
| 'DoesNotMatchRegexIgnoreCase';
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
1089
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
1090
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
1091
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
1092
|
+
* and would be compared as a literal string.
|
|
1093
|
+
*/
|
|
1094
|
+
property: string;
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* String compared against the resolved property. Operators that take no value
|
|
1098
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
1099
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
1100
|
+
*/
|
|
1101
|
+
value: string;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
482
1105
|
|
|
483
1106
|
export interface MappingReorderResponse {
|
|
484
1107
|
entities: Array<MappingReorderResponse.Entity>;
|
|
@@ -506,7 +1129,7 @@ export namespace MappingReorderResponse {
|
|
|
506
1129
|
*
|
|
507
1130
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
508
1131
|
*/
|
|
509
|
-
logic?:
|
|
1132
|
+
logic?: Entity.Logic | null;
|
|
510
1133
|
|
|
511
1134
|
name?: string | null;
|
|
512
1135
|
|
|
@@ -571,6 +1194,106 @@ export namespace MappingReorderResponse {
|
|
|
571
1194
|
| 'UpperCase'
|
|
572
1195
|
| null;
|
|
573
1196
|
}
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
1200
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
1201
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
1202
|
+
*
|
|
1203
|
+
* Example leaf:
|
|
1204
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
1205
|
+
*
|
|
1206
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
1207
|
+
*/
|
|
1208
|
+
export interface Logic {
|
|
1209
|
+
/**
|
|
1210
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
1211
|
+
* or combinator).
|
|
1212
|
+
*/
|
|
1213
|
+
AND?: Array<{
|
|
1214
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1215
|
+
}> | null;
|
|
1216
|
+
|
|
1217
|
+
condition?: Logic.Condition | null;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Negates a single child logic node.
|
|
1221
|
+
*/
|
|
1222
|
+
NOT?: {
|
|
1223
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1224
|
+
} | null;
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
1228
|
+
* or combinator).
|
|
1229
|
+
*/
|
|
1230
|
+
OR?: Array<{
|
|
1231
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1232
|
+
}> | null;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
export namespace Logic {
|
|
1236
|
+
export interface Condition {
|
|
1237
|
+
/**
|
|
1238
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
1239
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
1240
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
1241
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
1242
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
1243
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
1244
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
1245
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
1246
|
+
*/
|
|
1247
|
+
operator:
|
|
1248
|
+
| 'Is'
|
|
1249
|
+
| 'IsNot'
|
|
1250
|
+
| 'Contains'
|
|
1251
|
+
| 'DoesNotContain'
|
|
1252
|
+
| 'StartsWith'
|
|
1253
|
+
| 'EndsWith'
|
|
1254
|
+
| 'IsFalsy'
|
|
1255
|
+
| 'IsTruthy'
|
|
1256
|
+
| 'IsNull'
|
|
1257
|
+
| 'IsNotNull'
|
|
1258
|
+
| 'IsUndefined'
|
|
1259
|
+
| 'IsNotUndefined'
|
|
1260
|
+
| 'IsGreaterThan'
|
|
1261
|
+
| 'IsGreaterThanOrEqual'
|
|
1262
|
+
| 'IsLessThan'
|
|
1263
|
+
| 'IsLessThanOrEqual'
|
|
1264
|
+
| 'IsIn'
|
|
1265
|
+
| 'IsNotIn'
|
|
1266
|
+
| 'IsFoundIn'
|
|
1267
|
+
| 'IsNotFoundIn'
|
|
1268
|
+
| 'IsTrue'
|
|
1269
|
+
| 'IsFalse'
|
|
1270
|
+
| 'IsBefore'
|
|
1271
|
+
| 'IsAfter'
|
|
1272
|
+
| 'IsBetween'
|
|
1273
|
+
| 'IsOnOrBefore'
|
|
1274
|
+
| 'IsOnOrAfter'
|
|
1275
|
+
| 'MatchesRegex'
|
|
1276
|
+
| 'MatchesRegexIgnoreCase'
|
|
1277
|
+
| 'DoesNotMatchRegex'
|
|
1278
|
+
| 'DoesNotMatchRegexIgnoreCase';
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
1282
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
1283
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
1284
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
1285
|
+
* and would be compared as a literal string.
|
|
1286
|
+
*/
|
|
1287
|
+
property: string;
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* String compared against the resolved property. Operators that take no value
|
|
1291
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
1292
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
1293
|
+
*/
|
|
1294
|
+
value: string;
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
574
1297
|
}
|
|
575
1298
|
}
|
|
576
1299
|
|
|
@@ -946,20 +1669,26 @@ export namespace MappingCreateParams {
|
|
|
946
1669
|
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
947
1670
|
* or combinator).
|
|
948
1671
|
*/
|
|
949
|
-
AND?: Array<
|
|
1672
|
+
AND?: Array<{
|
|
1673
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1674
|
+
}> | null;
|
|
950
1675
|
|
|
951
1676
|
condition?: Logic.Condition | null;
|
|
952
1677
|
|
|
953
1678
|
/**
|
|
954
1679
|
* Negates a single child logic node.
|
|
955
1680
|
*/
|
|
956
|
-
NOT?:
|
|
1681
|
+
NOT?: {
|
|
1682
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1683
|
+
} | null;
|
|
957
1684
|
|
|
958
1685
|
/**
|
|
959
1686
|
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
960
1687
|
* or combinator).
|
|
961
1688
|
*/
|
|
962
|
-
OR?: Array<
|
|
1689
|
+
OR?: Array<{
|
|
1690
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1691
|
+
}> | null;
|
|
963
1692
|
}
|
|
964
1693
|
|
|
965
1694
|
export namespace Logic {
|
|
@@ -1116,20 +1845,26 @@ export namespace MappingUpdateParams {
|
|
|
1116
1845
|
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
1117
1846
|
* or combinator).
|
|
1118
1847
|
*/
|
|
1119
|
-
AND?: Array<
|
|
1848
|
+
AND?: Array<{
|
|
1849
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1850
|
+
}> | null;
|
|
1120
1851
|
|
|
1121
1852
|
condition?: Logic.Condition | null;
|
|
1122
1853
|
|
|
1123
1854
|
/**
|
|
1124
1855
|
* Negates a single child logic node.
|
|
1125
1856
|
*/
|
|
1126
|
-
NOT?:
|
|
1857
|
+
NOT?: {
|
|
1858
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1859
|
+
} | null;
|
|
1127
1860
|
|
|
1128
1861
|
/**
|
|
1129
1862
|
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
1130
1863
|
* or combinator).
|
|
1131
1864
|
*/
|
|
1132
|
-
OR?: Array<
|
|
1865
|
+
OR?: Array<{
|
|
1866
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1867
|
+
}> | null;
|
|
1133
1868
|
}
|
|
1134
1869
|
|
|
1135
1870
|
export namespace Logic {
|
|
@@ -1246,6 +1981,42 @@ export namespace MappingUpdateParams {
|
|
|
1246
1981
|
}
|
|
1247
1982
|
}
|
|
1248
1983
|
|
|
1984
|
+
export interface MappingRenamePreviewParams {
|
|
1985
|
+
/**
|
|
1986
|
+
* Allowed event id to preview for this destination.
|
|
1987
|
+
*/
|
|
1988
|
+
allowedEventId: string;
|
|
1989
|
+
|
|
1990
|
+
/**
|
|
1991
|
+
* Destination id. Discover renaming support through
|
|
1992
|
+
* `GET /rest/v1/destinations/types`.
|
|
1993
|
+
*/
|
|
1994
|
+
destinationId: string;
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
export interface MappingRenameParams {
|
|
1998
|
+
/**
|
|
1999
|
+
* Allowed event id to rename for this destination.
|
|
2000
|
+
*/
|
|
2001
|
+
allowedEventId: string;
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* Destination id for the rename.
|
|
2005
|
+
*/
|
|
2006
|
+
destinationId: string;
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* Name sent to the destination. Send `null` to clear the rename.
|
|
2010
|
+
*/
|
|
2011
|
+
renamedEventName: string | null;
|
|
2012
|
+
|
|
2013
|
+
/**
|
|
2014
|
+
* Set to `true` only after preview confirms which allowed events a shared mapper
|
|
2015
|
+
* will change. Defaults to `false`.
|
|
2016
|
+
*/
|
|
2017
|
+
confirmCascade?: boolean;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
1249
2020
|
export interface MappingReorderParams {
|
|
1250
2021
|
/**
|
|
1251
2022
|
* Mapping ids in their new priority order, low priority index first. All ids must
|
|
@@ -1268,6 +2039,8 @@ export declare namespace Mappings {
|
|
|
1268
2039
|
type MappingRetrieveResponse as MappingRetrieveResponse,
|
|
1269
2040
|
type MappingUpdateResponse as MappingUpdateResponse,
|
|
1270
2041
|
type MappingDeleteResponse as MappingDeleteResponse,
|
|
2042
|
+
type MappingRenamePreviewResponse as MappingRenamePreviewResponse,
|
|
2043
|
+
type MappingRenameResponse as MappingRenameResponse,
|
|
1271
2044
|
type MappingReorderResponse as MappingReorderResponse,
|
|
1272
2045
|
type MappingTemplatesResponse as MappingTemplatesResponse,
|
|
1273
2046
|
type MappingDefaultVariablesResponse as MappingDefaultVariablesResponse,
|
|
@@ -1277,6 +2050,8 @@ export declare namespace Mappings {
|
|
|
1277
2050
|
type MappingListParams as MappingListParams,
|
|
1278
2051
|
type MappingCreateParams as MappingCreateParams,
|
|
1279
2052
|
type MappingUpdateParams as MappingUpdateParams,
|
|
2053
|
+
type MappingRenamePreviewParams as MappingRenamePreviewParams,
|
|
2054
|
+
type MappingRenameParams as MappingRenameParams,
|
|
1280
2055
|
type MappingReorderParams as MappingReorderParams,
|
|
1281
2056
|
type MappingTemplatesParams as MappingTemplatesParams,
|
|
1282
2057
|
};
|