@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
package/resources/mappings.d.mts
CHANGED
|
@@ -43,6 +43,24 @@ export declare class Mappings extends APIResource {
|
|
|
43
43
|
* mapping:delete
|
|
44
44
|
*/
|
|
45
45
|
delete(id: string, options?: RequestOptions): APIPromise<MappingDeleteResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Preview a destination-specific event rename before setting or clearing it. Check
|
|
48
|
+
* `supportsRenamedEvents` in `GET /rest/v1/destinations/types` first. If
|
|
49
|
+
* `willCascade` is true, review all `affectedEventNames` before calling
|
|
50
|
+
* `PUT /rest/v1/mappings/rename` with `confirmCascade: true`. Requires API-key
|
|
51
|
+
* scope or current OAuth user permission: mapping:find
|
|
52
|
+
*/
|
|
53
|
+
renamePreview(query: MappingRenamePreviewParams, options?: RequestOptions): APIPromise<MappingRenamePreviewResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Set or clear a destination-specific allowed-event rename. Send
|
|
56
|
+
* `renamedEventName: null` to clear it; clearing an existing mapper also requires
|
|
57
|
+
* the `mapping:delete` scope. Preview first with
|
|
58
|
+
* `GET /rest/v1/mappings/rename-preview`; a shared mapper requires
|
|
59
|
+
* `confirmCascade: true`, and all affected events will change. Publish a new
|
|
60
|
+
* version to activate the change. Requires API-key scope or current OAuth user
|
|
61
|
+
* permission: mapping:update
|
|
62
|
+
*/
|
|
63
|
+
rename(body: MappingRenameParams, options?: RequestOptions): APIPromise<MappingRenameResponse | null>;
|
|
46
64
|
/**
|
|
47
65
|
* Reassign `priority` for a set of mappings. Pass `{ uuids: [...] }` with the
|
|
48
66
|
* mapping ids in their new order — index 0 becomes the highest-priority mapping.
|
|
@@ -104,7 +122,7 @@ export interface MappingListResponse {
|
|
|
104
122
|
*
|
|
105
123
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
106
124
|
*/
|
|
107
|
-
logic?:
|
|
125
|
+
logic?: MappingListResponse.Logic | null;
|
|
108
126
|
name?: string | null;
|
|
109
127
|
priority?: number | null;
|
|
110
128
|
sourceId?: string | null;
|
|
@@ -130,6 +148,74 @@ export declare namespace MappingListResponse {
|
|
|
130
148
|
property: string;
|
|
131
149
|
modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
|
|
132
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
153
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
154
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
155
|
+
*
|
|
156
|
+
* Example leaf:
|
|
157
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
158
|
+
*
|
|
159
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
160
|
+
*/
|
|
161
|
+
interface Logic {
|
|
162
|
+
/**
|
|
163
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
164
|
+
* or combinator).
|
|
165
|
+
*/
|
|
166
|
+
AND?: Array<{
|
|
167
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
168
|
+
[key: string]: unknown;
|
|
169
|
+
};
|
|
170
|
+
}> | null;
|
|
171
|
+
condition?: Logic.Condition | null;
|
|
172
|
+
/**
|
|
173
|
+
* Negates a single child logic node.
|
|
174
|
+
*/
|
|
175
|
+
NOT?: {
|
|
176
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
177
|
+
[key: string]: unknown;
|
|
178
|
+
};
|
|
179
|
+
} | null;
|
|
180
|
+
/**
|
|
181
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
182
|
+
* or combinator).
|
|
183
|
+
*/
|
|
184
|
+
OR?: Array<{
|
|
185
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
186
|
+
[key: string]: unknown;
|
|
187
|
+
};
|
|
188
|
+
}> | null;
|
|
189
|
+
}
|
|
190
|
+
namespace Logic {
|
|
191
|
+
interface Condition {
|
|
192
|
+
/**
|
|
193
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
194
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
195
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
196
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
197
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
198
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
199
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
200
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
201
|
+
*/
|
|
202
|
+
operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
|
|
203
|
+
/**
|
|
204
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
205
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
206
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
207
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
208
|
+
* and would be compared as a literal string.
|
|
209
|
+
*/
|
|
210
|
+
property: string;
|
|
211
|
+
/**
|
|
212
|
+
* String compared against the resolved property. Operators that take no value
|
|
213
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
214
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
215
|
+
*/
|
|
216
|
+
value: string;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
133
219
|
}
|
|
134
220
|
export interface MappingCreateResponse {
|
|
135
221
|
id: string;
|
|
@@ -147,7 +233,7 @@ export interface MappingCreateResponse {
|
|
|
147
233
|
*
|
|
148
234
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
149
235
|
*/
|
|
150
|
-
logic?:
|
|
236
|
+
logic?: MappingCreateResponse.Logic | null;
|
|
151
237
|
name?: string | null;
|
|
152
238
|
priority?: number | null;
|
|
153
239
|
sourceId?: string | null;
|
|
@@ -173,6 +259,74 @@ export declare namespace MappingCreateResponse {
|
|
|
173
259
|
property: string;
|
|
174
260
|
modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
|
|
175
261
|
}
|
|
262
|
+
/**
|
|
263
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
264
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
265
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
266
|
+
*
|
|
267
|
+
* Example leaf:
|
|
268
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
269
|
+
*
|
|
270
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
271
|
+
*/
|
|
272
|
+
interface Logic {
|
|
273
|
+
/**
|
|
274
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
275
|
+
* or combinator).
|
|
276
|
+
*/
|
|
277
|
+
AND?: Array<{
|
|
278
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
279
|
+
[key: string]: unknown;
|
|
280
|
+
};
|
|
281
|
+
}> | null;
|
|
282
|
+
condition?: Logic.Condition | null;
|
|
283
|
+
/**
|
|
284
|
+
* Negates a single child logic node.
|
|
285
|
+
*/
|
|
286
|
+
NOT?: {
|
|
287
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
288
|
+
[key: string]: unknown;
|
|
289
|
+
};
|
|
290
|
+
} | null;
|
|
291
|
+
/**
|
|
292
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
293
|
+
* or combinator).
|
|
294
|
+
*/
|
|
295
|
+
OR?: Array<{
|
|
296
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
297
|
+
[key: string]: unknown;
|
|
298
|
+
};
|
|
299
|
+
}> | null;
|
|
300
|
+
}
|
|
301
|
+
namespace Logic {
|
|
302
|
+
interface Condition {
|
|
303
|
+
/**
|
|
304
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
305
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
306
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
307
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
308
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
309
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
310
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
311
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
312
|
+
*/
|
|
313
|
+
operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
|
|
314
|
+
/**
|
|
315
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
316
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
317
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
318
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
319
|
+
* and would be compared as a literal string.
|
|
320
|
+
*/
|
|
321
|
+
property: string;
|
|
322
|
+
/**
|
|
323
|
+
* String compared against the resolved property. Operators that take no value
|
|
324
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
325
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
326
|
+
*/
|
|
327
|
+
value: string;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
176
330
|
}
|
|
177
331
|
export interface MappingRetrieveResponse {
|
|
178
332
|
id: string;
|
|
@@ -190,7 +344,7 @@ export interface MappingRetrieveResponse {
|
|
|
190
344
|
*
|
|
191
345
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
192
346
|
*/
|
|
193
|
-
logic?:
|
|
347
|
+
logic?: MappingRetrieveResponse.Logic | null;
|
|
194
348
|
name?: string | null;
|
|
195
349
|
priority?: number | null;
|
|
196
350
|
sourceId?: string | null;
|
|
@@ -216,6 +370,74 @@ export declare namespace MappingRetrieveResponse {
|
|
|
216
370
|
property: string;
|
|
217
371
|
modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
|
|
218
372
|
}
|
|
373
|
+
/**
|
|
374
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
375
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
376
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
377
|
+
*
|
|
378
|
+
* Example leaf:
|
|
379
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
380
|
+
*
|
|
381
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
382
|
+
*/
|
|
383
|
+
interface Logic {
|
|
384
|
+
/**
|
|
385
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
386
|
+
* or combinator).
|
|
387
|
+
*/
|
|
388
|
+
AND?: Array<{
|
|
389
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
390
|
+
[key: string]: unknown;
|
|
391
|
+
};
|
|
392
|
+
}> | null;
|
|
393
|
+
condition?: Logic.Condition | null;
|
|
394
|
+
/**
|
|
395
|
+
* Negates a single child logic node.
|
|
396
|
+
*/
|
|
397
|
+
NOT?: {
|
|
398
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
399
|
+
[key: string]: unknown;
|
|
400
|
+
};
|
|
401
|
+
} | null;
|
|
402
|
+
/**
|
|
403
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
404
|
+
* or combinator).
|
|
405
|
+
*/
|
|
406
|
+
OR?: Array<{
|
|
407
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
408
|
+
[key: string]: unknown;
|
|
409
|
+
};
|
|
410
|
+
}> | null;
|
|
411
|
+
}
|
|
412
|
+
namespace Logic {
|
|
413
|
+
interface Condition {
|
|
414
|
+
/**
|
|
415
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
416
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
417
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
418
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
419
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
420
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
421
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
422
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
423
|
+
*/
|
|
424
|
+
operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
|
|
425
|
+
/**
|
|
426
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
427
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
428
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
429
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
430
|
+
* and would be compared as a literal string.
|
|
431
|
+
*/
|
|
432
|
+
property: string;
|
|
433
|
+
/**
|
|
434
|
+
* String compared against the resolved property. Operators that take no value
|
|
435
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
436
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
437
|
+
*/
|
|
438
|
+
value: string;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
219
441
|
}
|
|
220
442
|
export interface MappingUpdateResponse {
|
|
221
443
|
id: string;
|
|
@@ -233,7 +455,7 @@ export interface MappingUpdateResponse {
|
|
|
233
455
|
*
|
|
234
456
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
235
457
|
*/
|
|
236
|
-
logic?:
|
|
458
|
+
logic?: MappingUpdateResponse.Logic | null;
|
|
237
459
|
name?: string | null;
|
|
238
460
|
priority?: number | null;
|
|
239
461
|
sourceId?: string | null;
|
|
@@ -259,8 +481,192 @@ export declare namespace MappingUpdateResponse {
|
|
|
259
481
|
property: string;
|
|
260
482
|
modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
|
|
261
483
|
}
|
|
484
|
+
/**
|
|
485
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
486
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
487
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
488
|
+
*
|
|
489
|
+
* Example leaf:
|
|
490
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
491
|
+
*
|
|
492
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
493
|
+
*/
|
|
494
|
+
interface Logic {
|
|
495
|
+
/**
|
|
496
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
497
|
+
* or combinator).
|
|
498
|
+
*/
|
|
499
|
+
AND?: Array<{
|
|
500
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
501
|
+
[key: string]: unknown;
|
|
502
|
+
};
|
|
503
|
+
}> | null;
|
|
504
|
+
condition?: Logic.Condition | null;
|
|
505
|
+
/**
|
|
506
|
+
* Negates a single child logic node.
|
|
507
|
+
*/
|
|
508
|
+
NOT?: {
|
|
509
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
510
|
+
[key: string]: unknown;
|
|
511
|
+
};
|
|
512
|
+
} | null;
|
|
513
|
+
/**
|
|
514
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
515
|
+
* or combinator).
|
|
516
|
+
*/
|
|
517
|
+
OR?: Array<{
|
|
518
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
519
|
+
[key: string]: unknown;
|
|
520
|
+
};
|
|
521
|
+
}> | null;
|
|
522
|
+
}
|
|
523
|
+
namespace Logic {
|
|
524
|
+
interface Condition {
|
|
525
|
+
/**
|
|
526
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
527
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
528
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
529
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
530
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
531
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
532
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
533
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
534
|
+
*/
|
|
535
|
+
operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
|
|
536
|
+
/**
|
|
537
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
538
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
539
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
540
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
541
|
+
* and would be compared as a literal string.
|
|
542
|
+
*/
|
|
543
|
+
property: string;
|
|
544
|
+
/**
|
|
545
|
+
* String compared against the resolved property. Operators that take no value
|
|
546
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
547
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
548
|
+
*/
|
|
549
|
+
value: string;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
262
552
|
}
|
|
263
553
|
export type MappingDeleteResponse = boolean;
|
|
554
|
+
export interface MappingRenamePreviewResponse {
|
|
555
|
+
affectedEventNames: Array<string>;
|
|
556
|
+
willCascade: boolean;
|
|
557
|
+
mapperName?: string | null;
|
|
558
|
+
}
|
|
559
|
+
export interface MappingRenameResponse {
|
|
560
|
+
id: string;
|
|
561
|
+
isEnabled: boolean;
|
|
562
|
+
mappings: Array<MappingRenameResponse.Mapping>;
|
|
563
|
+
destinationId?: string | null;
|
|
564
|
+
isDefaultMapping?: boolean | null;
|
|
565
|
+
/**
|
|
566
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
567
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
568
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
569
|
+
*
|
|
570
|
+
* Example leaf:
|
|
571
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
572
|
+
*
|
|
573
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
574
|
+
*/
|
|
575
|
+
logic?: MappingRenameResponse.Logic | null;
|
|
576
|
+
name?: string | null;
|
|
577
|
+
priority?: number | null;
|
|
578
|
+
sourceId?: string | null;
|
|
579
|
+
templateId?: string | null;
|
|
580
|
+
templateName?: string | null;
|
|
581
|
+
updatedAt?: string | null;
|
|
582
|
+
}
|
|
583
|
+
export declare namespace MappingRenameResponse {
|
|
584
|
+
interface Mapping {
|
|
585
|
+
/**
|
|
586
|
+
* Source expression sent to the destination for this `property`. Use `{{...}}`
|
|
587
|
+
* template syntax to substitute values from the event/visitor record:
|
|
588
|
+
* `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
|
|
589
|
+
* strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
|
|
590
|
+
* HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
|
|
591
|
+
* like `$event.event_properties.value`.
|
|
592
|
+
*/
|
|
593
|
+
map: string;
|
|
594
|
+
/**
|
|
595
|
+
* Destination-side field name. Comes from the destination template — discover the
|
|
596
|
+
* valid set via `GET /rest/v1/mapping-templates?entityId=...`.
|
|
597
|
+
*/
|
|
598
|
+
property: string;
|
|
599
|
+
modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
603
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
604
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
605
|
+
*
|
|
606
|
+
* Example leaf:
|
|
607
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
608
|
+
*
|
|
609
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
610
|
+
*/
|
|
611
|
+
interface Logic {
|
|
612
|
+
/**
|
|
613
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
614
|
+
* or combinator).
|
|
615
|
+
*/
|
|
616
|
+
AND?: Array<{
|
|
617
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
618
|
+
[key: string]: unknown;
|
|
619
|
+
};
|
|
620
|
+
}> | null;
|
|
621
|
+
condition?: Logic.Condition | null;
|
|
622
|
+
/**
|
|
623
|
+
* Negates a single child logic node.
|
|
624
|
+
*/
|
|
625
|
+
NOT?: {
|
|
626
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
627
|
+
[key: string]: unknown;
|
|
628
|
+
};
|
|
629
|
+
} | null;
|
|
630
|
+
/**
|
|
631
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
632
|
+
* or combinator).
|
|
633
|
+
*/
|
|
634
|
+
OR?: Array<{
|
|
635
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
636
|
+
[key: string]: unknown;
|
|
637
|
+
};
|
|
638
|
+
}> | null;
|
|
639
|
+
}
|
|
640
|
+
namespace Logic {
|
|
641
|
+
interface Condition {
|
|
642
|
+
/**
|
|
643
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
644
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
645
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
646
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
647
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
648
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
649
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
650
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
651
|
+
*/
|
|
652
|
+
operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
|
|
653
|
+
/**
|
|
654
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
655
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
656
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
657
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
658
|
+
* and would be compared as a literal string.
|
|
659
|
+
*/
|
|
660
|
+
property: string;
|
|
661
|
+
/**
|
|
662
|
+
* String compared against the resolved property. Operators that take no value
|
|
663
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
664
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
665
|
+
*/
|
|
666
|
+
value: string;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
264
670
|
export interface MappingReorderResponse {
|
|
265
671
|
entities: Array<MappingReorderResponse.Entity>;
|
|
266
672
|
}
|
|
@@ -281,7 +687,7 @@ export declare namespace MappingReorderResponse {
|
|
|
281
687
|
*
|
|
282
688
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
283
689
|
*/
|
|
284
|
-
logic?:
|
|
690
|
+
logic?: Entity.Logic | null;
|
|
285
691
|
name?: string | null;
|
|
286
692
|
priority?: number | null;
|
|
287
693
|
sourceId?: string | null;
|
|
@@ -307,6 +713,74 @@ export declare namespace MappingReorderResponse {
|
|
|
307
713
|
property: string;
|
|
308
714
|
modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
|
|
309
715
|
}
|
|
716
|
+
/**
|
|
717
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
718
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
719
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
720
|
+
*
|
|
721
|
+
* Example leaf:
|
|
722
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
723
|
+
*
|
|
724
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
725
|
+
*/
|
|
726
|
+
interface Logic {
|
|
727
|
+
/**
|
|
728
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
729
|
+
* or combinator).
|
|
730
|
+
*/
|
|
731
|
+
AND?: Array<{
|
|
732
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
733
|
+
[key: string]: unknown;
|
|
734
|
+
};
|
|
735
|
+
}> | null;
|
|
736
|
+
condition?: Logic.Condition | null;
|
|
737
|
+
/**
|
|
738
|
+
* Negates a single child logic node.
|
|
739
|
+
*/
|
|
740
|
+
NOT?: {
|
|
741
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
742
|
+
[key: string]: unknown;
|
|
743
|
+
};
|
|
744
|
+
} | null;
|
|
745
|
+
/**
|
|
746
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
747
|
+
* or combinator).
|
|
748
|
+
*/
|
|
749
|
+
OR?: Array<{
|
|
750
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
751
|
+
[key: string]: unknown;
|
|
752
|
+
};
|
|
753
|
+
}> | null;
|
|
754
|
+
}
|
|
755
|
+
namespace Logic {
|
|
756
|
+
interface Condition {
|
|
757
|
+
/**
|
|
758
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
759
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
760
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
761
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
762
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
763
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
764
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
765
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
766
|
+
*/
|
|
767
|
+
operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
|
|
768
|
+
/**
|
|
769
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
770
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
771
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
772
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
773
|
+
* and would be compared as a literal string.
|
|
774
|
+
*/
|
|
775
|
+
property: string;
|
|
776
|
+
/**
|
|
777
|
+
* String compared against the resolved property. Operators that take no value
|
|
778
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
779
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
780
|
+
*/
|
|
781
|
+
value: string;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
310
784
|
}
|
|
311
785
|
}
|
|
312
786
|
export interface MappingTemplatesResponse {
|
|
@@ -533,17 +1007,29 @@ export declare namespace MappingCreateParams {
|
|
|
533
1007
|
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
534
1008
|
* or combinator).
|
|
535
1009
|
*/
|
|
536
|
-
AND?: Array<
|
|
1010
|
+
AND?: Array<{
|
|
1011
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1012
|
+
[key: string]: unknown;
|
|
1013
|
+
};
|
|
1014
|
+
}> | null;
|
|
537
1015
|
condition?: Logic.Condition | null;
|
|
538
1016
|
/**
|
|
539
1017
|
* Negates a single child logic node.
|
|
540
1018
|
*/
|
|
541
|
-
NOT?:
|
|
1019
|
+
NOT?: {
|
|
1020
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1021
|
+
[key: string]: unknown;
|
|
1022
|
+
};
|
|
1023
|
+
} | null;
|
|
542
1024
|
/**
|
|
543
1025
|
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
544
1026
|
* or combinator).
|
|
545
1027
|
*/
|
|
546
|
-
OR?: Array<
|
|
1028
|
+
OR?: Array<{
|
|
1029
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1030
|
+
[key: string]: unknown;
|
|
1031
|
+
};
|
|
1032
|
+
}> | null;
|
|
547
1033
|
}
|
|
548
1034
|
namespace Logic {
|
|
549
1035
|
interface Condition {
|
|
@@ -628,17 +1114,29 @@ export declare namespace MappingUpdateParams {
|
|
|
628
1114
|
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
629
1115
|
* or combinator).
|
|
630
1116
|
*/
|
|
631
|
-
AND?: Array<
|
|
1117
|
+
AND?: Array<{
|
|
1118
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1119
|
+
[key: string]: unknown;
|
|
1120
|
+
};
|
|
1121
|
+
}> | null;
|
|
632
1122
|
condition?: Logic.Condition | null;
|
|
633
1123
|
/**
|
|
634
1124
|
* Negates a single child logic node.
|
|
635
1125
|
*/
|
|
636
|
-
NOT?:
|
|
1126
|
+
NOT?: {
|
|
1127
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1128
|
+
[key: string]: unknown;
|
|
1129
|
+
};
|
|
1130
|
+
} | null;
|
|
637
1131
|
/**
|
|
638
1132
|
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
639
1133
|
* or combinator).
|
|
640
1134
|
*/
|
|
641
|
-
OR?: Array<
|
|
1135
|
+
OR?: Array<{
|
|
1136
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1137
|
+
[key: string]: unknown;
|
|
1138
|
+
};
|
|
1139
|
+
}> | null;
|
|
642
1140
|
}
|
|
643
1141
|
namespace Logic {
|
|
644
1142
|
interface Condition {
|
|
@@ -687,6 +1185,36 @@ export declare namespace MappingUpdateParams {
|
|
|
687
1185
|
modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
|
|
688
1186
|
}
|
|
689
1187
|
}
|
|
1188
|
+
export interface MappingRenamePreviewParams {
|
|
1189
|
+
/**
|
|
1190
|
+
* Allowed event id to preview for this destination.
|
|
1191
|
+
*/
|
|
1192
|
+
allowedEventId: string;
|
|
1193
|
+
/**
|
|
1194
|
+
* Destination id. Discover renaming support through
|
|
1195
|
+
* `GET /rest/v1/destinations/types`.
|
|
1196
|
+
*/
|
|
1197
|
+
destinationId: string;
|
|
1198
|
+
}
|
|
1199
|
+
export interface MappingRenameParams {
|
|
1200
|
+
/**
|
|
1201
|
+
* Allowed event id to rename for this destination.
|
|
1202
|
+
*/
|
|
1203
|
+
allowedEventId: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* Destination id for the rename.
|
|
1206
|
+
*/
|
|
1207
|
+
destinationId: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* Name sent to the destination. Send `null` to clear the rename.
|
|
1210
|
+
*/
|
|
1211
|
+
renamedEventName: string | null;
|
|
1212
|
+
/**
|
|
1213
|
+
* Set to `true` only after preview confirms which allowed events a shared mapper
|
|
1214
|
+
* will change. Defaults to `false`.
|
|
1215
|
+
*/
|
|
1216
|
+
confirmCascade?: boolean;
|
|
1217
|
+
}
|
|
690
1218
|
export interface MappingReorderParams {
|
|
691
1219
|
/**
|
|
692
1220
|
* Mapping ids in their new priority order, low priority index first. All ids must
|
|
@@ -701,6 +1229,6 @@ export interface MappingTemplatesParams {
|
|
|
701
1229
|
entityId: string;
|
|
702
1230
|
}
|
|
703
1231
|
export declare namespace Mappings {
|
|
704
|
-
export { type MappingListResponse as MappingListResponse, type MappingCreateResponse as MappingCreateResponse, type MappingRetrieveResponse as MappingRetrieveResponse, type MappingUpdateResponse as MappingUpdateResponse, type MappingDeleteResponse as MappingDeleteResponse, type MappingReorderResponse as MappingReorderResponse, type MappingTemplatesResponse as MappingTemplatesResponse, type MappingDefaultVariablesResponse as MappingDefaultVariablesResponse, type MappingCustomVariablesResponse as MappingCustomVariablesResponse, type MappingModificationsResponse as MappingModificationsResponse, type MappingListResponsesCursor as MappingListResponsesCursor, type MappingListParams as MappingListParams, type MappingCreateParams as MappingCreateParams, type MappingUpdateParams as MappingUpdateParams, type MappingReorderParams as MappingReorderParams, type MappingTemplatesParams as MappingTemplatesParams, };
|
|
1232
|
+
export { type MappingListResponse as MappingListResponse, type MappingCreateResponse as MappingCreateResponse, type MappingRetrieveResponse as MappingRetrieveResponse, type MappingUpdateResponse as MappingUpdateResponse, type MappingDeleteResponse as MappingDeleteResponse, type MappingRenamePreviewResponse as MappingRenamePreviewResponse, type MappingRenameResponse as MappingRenameResponse, type MappingReorderResponse as MappingReorderResponse, type MappingTemplatesResponse as MappingTemplatesResponse, type MappingDefaultVariablesResponse as MappingDefaultVariablesResponse, type MappingCustomVariablesResponse as MappingCustomVariablesResponse, type MappingModificationsResponse as MappingModificationsResponse, type MappingListResponsesCursor as MappingListResponsesCursor, type MappingListParams as MappingListParams, type MappingCreateParams as MappingCreateParams, type MappingUpdateParams as MappingUpdateParams, type MappingRenamePreviewParams as MappingRenamePreviewParams, type MappingRenameParams as MappingRenameParams, type MappingReorderParams as MappingReorderParams, type MappingTemplatesParams as MappingTemplatesParams, };
|
|
705
1233
|
}
|
|
706
1234
|
//# sourceMappingURL=mappings.d.mts.map
|