@oursprivacy/platform-sdk 1.52.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 +14 -0
- package/client.d.mts +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- 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/allowed-events.d.mts +9 -7
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +9 -7
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/allowed-events.js +9 -7
- package/resources/allowed-events.js.map +1 -1
- package/resources/allowed-events.mjs +9 -7
- package/resources/allowed-events.mjs.map +1 -1
- package/resources/analytics.d.mts +4 -2
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +4 -2
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.js +4 -2
- package/resources/analytics.js.map +1 -1
- package/resources/analytics.mjs +4 -2
- package/resources/analytics.mjs.map +1 -1
- package/resources/attribution.d.mts +8 -5
- package/resources/attribution.d.mts.map +1 -1
- package/resources/attribution.d.ts +8 -5
- package/resources/attribution.d.ts.map +1 -1
- package/resources/attribution.js +8 -5
- package/resources/attribution.js.map +1 -1
- package/resources/attribution.mjs +8 -5
- package/resources/attribution.mjs.map +1 -1
- package/resources/audience-conversion-reports.d.mts +11 -9
- package/resources/audience-conversion-reports.d.mts.map +1 -1
- package/resources/audience-conversion-reports.d.ts +11 -9
- package/resources/audience-conversion-reports.d.ts.map +1 -1
- package/resources/audience-conversion-reports.js +11 -9
- package/resources/audience-conversion-reports.js.map +1 -1
- package/resources/audience-conversion-reports.mjs +11 -9
- package/resources/audience-conversion-reports.mjs.map +1 -1
- package/resources/consent-analytics.d.mts +2 -1
- package/resources/consent-analytics.d.mts.map +1 -1
- package/resources/consent-analytics.d.ts +2 -1
- package/resources/consent-analytics.d.ts.map +1 -1
- package/resources/consent-analytics.js +2 -1
- package/resources/consent-analytics.js.map +1 -1
- package/resources/consent-analytics.mjs +2 -1
- package/resources/consent-analytics.mjs.map +1 -1
- package/resources/consent-settings.d.mts +6238 -650
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +6238 -650
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +72 -34
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +72 -34
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/conversion-journey-summaries.d.mts +10 -5
- package/resources/conversion-journey-summaries.d.mts.map +1 -1
- package/resources/conversion-journey-summaries.d.ts +10 -5
- package/resources/conversion-journey-summaries.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.js +10 -5
- package/resources/conversion-journey-summaries.js.map +1 -1
- package/resources/conversion-journey-summaries.mjs +10 -5
- package/resources/conversion-journey-summaries.mjs.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 +83 -21
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +83 -21
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/data-governance.js +8 -6
- package/resources/data-governance.js.map +1 -1
- package/resources/data-governance.mjs +8 -6
- package/resources/data-governance.mjs.map +1 -1
- package/resources/default-mappings.d.mts +213 -8
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +213 -8
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/default-mappings.js +6 -5
- package/resources/default-mappings.js.map +1 -1
- package/resources/default-mappings.mjs +6 -5
- package/resources/default-mappings.mjs.map +1 -1
- package/resources/destinations.d.mts +45 -20
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +45 -20
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +12 -7
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +12 -7
- package/resources/destinations.mjs.map +1 -1
- package/resources/experiment-settings.d.mts +9 -6
- package/resources/experiment-settings.d.mts.map +1 -1
- package/resources/experiment-settings.d.ts +9 -6
- package/resources/experiment-settings.d.ts.map +1 -1
- package/resources/experiment-settings.js +9 -6
- package/resources/experiment-settings.js.map +1 -1
- package/resources/experiment-settings.mjs +9 -6
- package/resources/experiment-settings.mjs.map +1 -1
- package/resources/experiment-variants.d.mts +126 -19
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +126 -19
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiment-variants.js +9 -5
- package/resources/experiment-variants.js.map +1 -1
- package/resources/experiment-variants.mjs +9 -5
- package/resources/experiment-variants.mjs.map +1 -1
- package/resources/experiments.d.mts +4009 -272
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +4009 -272
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +30 -19
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +30 -19
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +659 -17
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +659 -17
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +11 -10
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +11 -10
- package/resources/funnels.mjs.map +1 -1
- package/resources/heatmap-pages.d.mts +3 -2
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +3 -2
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +3 -2
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +3 -2
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- 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 +597 -28
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +597 -28
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +17 -12
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +17 -12
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/locations.d.mts +31 -10
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +31 -10
- package/resources/locations.d.ts.map +1 -1
- package/resources/locations.js +6 -5
- package/resources/locations.js.map +1 -1
- package/resources/locations.mjs +6 -5
- package/resources/locations.mjs.map +1 -1
- package/resources/mappings.d.mts +558 -24
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +558 -24
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +40 -12
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +40 -12
- 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/personalization-properties.d.mts +10 -7
- package/resources/personalization-properties.d.mts.map +1 -1
- package/resources/personalization-properties.d.ts +10 -7
- package/resources/personalization-properties.d.ts.map +1 -1
- package/resources/personalization-properties.js +10 -7
- package/resources/personalization-properties.js.map +1 -1
- package/resources/personalization-properties.mjs +10 -7
- package/resources/personalization-properties.mjs.map +1 -1
- package/resources/replay-settings.d.mts +126 -9
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +126 -9
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +9 -6
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +9 -6
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/session-replays.d.mts +9 -2
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +9 -2
- package/resources/session-replays.d.ts.map +1 -1
- package/resources/session-replays.js +4 -2
- package/resources/session-replays.js.map +1 -1
- package/resources/session-replays.mjs +4 -2
- package/resources/session-replays.mjs.map +1 -1
- package/resources/short-links.d.mts +733 -17
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +733 -17
- package/resources/short-links.d.ts.map +1 -1
- package/resources/short-links.js +11 -7
- package/resources/short-links.js.map +1 -1
- package/resources/short-links.mjs +11 -7
- package/resources/short-links.mjs.map +1 -1
- package/resources/sources.d.mts +98 -17
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +98 -17
- package/resources/sources.d.ts.map +1 -1
- package/resources/sources.js +12 -6
- package/resources/sources.js.map +1 -1
- package/resources/sources.mjs +12 -6
- package/resources/sources.mjs.map +1 -1
- package/resources/tag-manager-asset-folders.d.mts +2 -1
- package/resources/tag-manager-asset-folders.d.mts.map +1 -1
- package/resources/tag-manager-asset-folders.d.ts +2 -1
- package/resources/tag-manager-asset-folders.d.ts.map +1 -1
- package/resources/tag-manager-asset-folders.js +2 -1
- package/resources/tag-manager-asset-folders.js.map +1 -1
- package/resources/tag-manager-asset-folders.mjs +2 -1
- package/resources/tag-manager-asset-folders.mjs.map +1 -1
- package/resources/tag-manager-folders.d.mts +9 -7
- package/resources/tag-manager-folders.d.mts.map +1 -1
- package/resources/tag-manager-folders.d.ts +9 -7
- package/resources/tag-manager-folders.d.ts.map +1 -1
- package/resources/tag-manager-folders.js +9 -7
- package/resources/tag-manager-folders.js.map +1 -1
- package/resources/tag-manager-folders.mjs +9 -7
- package/resources/tag-manager-folders.mjs.map +1 -1
- package/resources/tag-manager-tags.d.mts +13 -7
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +13 -7
- package/resources/tag-manager-tags.d.ts.map +1 -1
- package/resources/tag-manager-tags.js +10 -6
- package/resources/tag-manager-tags.js.map +1 -1
- package/resources/tag-manager-tags.mjs +10 -6
- package/resources/tag-manager-tags.mjs.map +1 -1
- package/resources/tag-manager-triggers.d.mts +14 -7
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +14 -7
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-triggers.js +11 -6
- package/resources/tag-manager-triggers.js.map +1 -1
- package/resources/tag-manager-triggers.mjs +11 -6
- package/resources/tag-manager-triggers.mjs.map +1 -1
- package/resources/tag-manager-variables.d.mts +53 -23
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +53 -23
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-manager-variables.js +10 -6
- package/resources/tag-manager-variables.js.map +1 -1
- package/resources/tag-manager-variables.mjs +10 -6
- package/resources/tag-manager-variables.mjs.map +1 -1
- package/resources/tag-managers.d.mts +24 -6
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +24 -6
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +18 -5
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +18 -5
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +73 -15
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +73 -15
- package/resources/test-events.d.ts.map +1 -1
- package/resources/test-events.js +6 -4
- package/resources/test-events.js.map +1 -1
- package/resources/test-events.mjs +6 -4
- package/resources/test-events.mjs.map +1 -1
- package/resources/translation-widgets.d.mts +7 -6
- package/resources/translation-widgets.d.mts.map +1 -1
- package/resources/translation-widgets.d.ts +7 -6
- package/resources/translation-widgets.d.ts.map +1 -1
- package/resources/translation-widgets.js +7 -6
- package/resources/translation-widgets.js.map +1 -1
- package/resources/translation-widgets.mjs +7 -6
- package/resources/translation-widgets.mjs.map +1 -1
- package/resources/versions.d.mts +102 -47
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +102 -47
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +20 -15
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +20 -15
- package/resources/versions.mjs.map +1 -1
- package/resources/video-channels.d.mts +47 -13
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +47 -13
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/video-channels.js +15 -9
- package/resources/video-channels.js.map +1 -1
- package/resources/video-channels.mjs +15 -9
- package/resources/video-channels.mjs.map +1 -1
- package/resources/videos.d.mts +21 -14
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +21 -14
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +21 -14
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +21 -14
- package/resources/videos.mjs.map +1 -1
- package/resources/web-analytics.d.mts +14 -9
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +14 -9
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +14 -9
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +14 -9
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanner-rules.d.mts +10 -6
- package/resources/web-scanner-rules.d.mts.map +1 -1
- package/resources/web-scanner-rules.d.ts +10 -6
- package/resources/web-scanner-rules.d.ts.map +1 -1
- package/resources/web-scanner-rules.js +10 -6
- package/resources/web-scanner-rules.js.map +1 -1
- package/resources/web-scanner-rules.mjs +10 -6
- package/resources/web-scanner-rules.mjs.map +1 -1
- package/resources/web-scanners.d.mts +26 -19
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +26 -19
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +25 -18
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +25 -18
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +44 -0
- package/src/resources/allowed-events.ts +9 -7
- package/src/resources/analytics.ts +4 -2
- package/src/resources/attribution.ts +8 -5
- package/src/resources/audience-conversion-reports.ts +11 -9
- package/src/resources/consent-analytics.ts +2 -1
- package/src/resources/consent-settings.ts +7576 -519
- package/src/resources/conversion-journey-summaries.ts +10 -5
- package/src/resources/custom-domains.ts +450 -0
- package/src/resources/data-governance.ts +53 -21
- package/src/resources/default-mappings.ts +309 -8
- package/src/resources/destinations.ts +40 -15
- package/src/resources/experiment-settings.ts +9 -6
- package/src/resources/experiment-variants.ts +140 -19
- package/src/resources/experiments.ts +8051 -462
- package/src/resources/funnels.ts +1366 -17
- package/src/resources/heatmap-pages.ts +3 -2
- package/src/resources/index.ts +19 -0
- package/src/resources/journey-flows.ts +1241 -28
- package/src/resources/locations.ts +41 -10
- package/src/resources/mappings.ts +812 -31
- package/src/resources/me.ts +37 -0
- package/src/resources/personalization-properties.ts +10 -7
- package/src/resources/replay-settings.ts +147 -9
- package/src/resources/session-replays.ts +10 -2
- package/src/resources/short-links.ts +883 -17
- package/src/resources/sources.ts +108 -17
- package/src/resources/tag-manager-asset-folders.ts +2 -1
- package/src/resources/tag-manager-folders.ts +9 -7
- package/src/resources/tag-manager-tags.ts +17 -7
- package/src/resources/tag-manager-triggers.ts +18 -7
- package/src/resources/tag-manager-variables.ts +101 -19
- package/src/resources/tag-managers.ts +35 -5
- package/src/resources/test-events.ts +53 -15
- package/src/resources/translation-widgets.ts +7 -6
- package/src/resources/versions.ts +104 -47
- package/src/resources/video-channels.ts +59 -13
- package/src/resources/videos.ts +21 -14
- package/src/resources/web-analytics.ts +14 -9
- package/src/resources/web-scanner-rules.ts +10 -6
- package/src/resources/web-scanners.ts +26 -19
- 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
|
@@ -10,8 +10,8 @@ export class Mappings extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* List mappings for an entity (a source or destination). Requires the `entityId`
|
|
12
12
|
* query parameter. Supports cursor pagination via `limit` and `cursor`. Sorted by
|
|
13
|
-
* `priority` ascending, then by `id` for deterministic pagination. Requires
|
|
14
|
-
* mapping:list
|
|
13
|
+
* `priority` ascending, then by `id` for deterministic pagination. Requires
|
|
14
|
+
* API-key scope or current OAuth user permission: mapping:list
|
|
15
15
|
*/
|
|
16
16
|
list(
|
|
17
17
|
query: MappingListParams,
|
|
@@ -32,15 +32,16 @@ export class Mappings extends APIResource {
|
|
|
32
32
|
* `GET /rest/v1/mapping-templates?entityId=...` to discover the valid
|
|
33
33
|
* `templateId` and `mappings[].property` values.
|
|
34
34
|
*
|
|
35
|
-
* Sending both `allowedEventId` and `templateId` returns 400. Requires
|
|
36
|
-
* mapping:create
|
|
35
|
+
* Sending both `allowedEventId` and `templateId` returns 400. Requires API-key
|
|
36
|
+
* scope or current OAuth user permission: mapping:create
|
|
37
37
|
*/
|
|
38
38
|
create(body: MappingCreateParams, options?: RequestOptions): APIPromise<MappingCreateResponse> {
|
|
39
39
|
return this._client.post('/rest/v1/mappings', { body, ...options });
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Find a single mapping by ID. Requires scope
|
|
43
|
+
* Find a single mapping by ID. Requires API-key scope or current OAuth user
|
|
44
|
+
* permission: mapping:find
|
|
44
45
|
*/
|
|
45
46
|
retrieve(id: string, options?: RequestOptions): APIPromise<MappingRetrieveResponse> {
|
|
46
47
|
return this._client.get(path`/rest/v1/mappings/${id}`, options);
|
|
@@ -50,24 +51,53 @@ export class Mappings extends APIResource {
|
|
|
50
51
|
* Partially update a mapping. Only the fields you send are changed. Send
|
|
51
52
|
* `isEnabled: false` to pause the mapping without changing other fields (mirrors
|
|
52
53
|
* `status` on destinations). `mappings[]` is replaced wholesale when sent.
|
|
53
|
-
* Requires scope: mapping:update
|
|
54
|
+
* Requires API-key scope or current OAuth user permission: mapping:update
|
|
54
55
|
*/
|
|
55
56
|
update(id: string, body: MappingUpdateParams, options?: RequestOptions): APIPromise<MappingUpdateResponse> {
|
|
56
57
|
return this._client.patch(path`/rest/v1/mappings/${id}`, { body, ...options });
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
/**
|
|
60
|
-
* Delete a mapping. Requires scope
|
|
61
|
+
* Delete a mapping. Requires API-key scope or current OAuth user permission:
|
|
62
|
+
* mapping:delete
|
|
61
63
|
*/
|
|
62
64
|
delete(id: string, options?: RequestOptions): APIPromise<MappingDeleteResponse> {
|
|
63
65
|
return this._client.delete(path`/rest/v1/mappings/${id}`, options);
|
|
64
66
|
}
|
|
65
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
|
+
|
|
66
95
|
/**
|
|
67
96
|
* Reassign `priority` for a set of mappings. Pass `{ uuids: [...] }` with the
|
|
68
97
|
* mapping ids in their new order — index 0 becomes the highest-priority mapping.
|
|
69
98
|
* All ids must belong to the same parent entity (source or destination); mixing
|
|
70
|
-
* entities returns 400. Requires scope
|
|
99
|
+
* entities returns 400. Requires API-key scope or current OAuth user permission:
|
|
100
|
+
* mapping:update
|
|
71
101
|
*/
|
|
72
102
|
reorder(body: MappingReorderParams, options?: RequestOptions): APIPromise<MappingReorderResponse> {
|
|
73
103
|
return this._client.post('/rest/v1/mappings/reorder', { body, ...options });
|
|
@@ -80,7 +110,8 @@ export class Mappings extends APIResource {
|
|
|
80
110
|
* `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
|
|
81
111
|
* any enforced `options`. The `isDefault: true` entry is the destination's
|
|
82
112
|
* built-in default template, configured via
|
|
83
|
-
* `PUT /rest/v1/default-mappings/{destinationId}`. Requires scope
|
|
113
|
+
* `PUT /rest/v1/default-mappings/{destinationId}`. Requires API-key scope or
|
|
114
|
+
* current OAuth user permission: mapping:find
|
|
84
115
|
*/
|
|
85
116
|
templates(query: MappingTemplatesParams, options?: RequestOptions): APIPromise<MappingTemplatesResponse> {
|
|
86
117
|
return this._client.get('/rest/v1/mappings/templates', { query, ...options });
|
|
@@ -90,7 +121,7 @@ export class Mappings extends APIResource {
|
|
|
90
121
|
* Lists the platform-provided variables that any mapping `value` can reference
|
|
91
122
|
* (e.g. `event.email`, `event.request_context.ip`, `visitor.id`). Account-agnostic
|
|
92
123
|
* discovery — use these paths as the right-hand side of a mapping field. Requires
|
|
93
|
-
* scope: variables:find-default
|
|
124
|
+
* API-key scope or current OAuth user permission: variables:find-default
|
|
94
125
|
*/
|
|
95
126
|
defaultVariables(options?: RequestOptions): APIPromise<MappingDefaultVariablesResponse> {
|
|
96
127
|
return this._client.get('/rest/v1/mappings/default-variables', options);
|
|
@@ -101,7 +132,8 @@ export class Mappings extends APIResource {
|
|
|
101
132
|
* 14 days). These are dot-paths under `event.event_properties.*` that callers can
|
|
102
133
|
* target in mapping `value` fields. Newly seen properties may take a few minutes
|
|
103
134
|
* to appear; an empty list means no custom properties have been observed yet for
|
|
104
|
-
* this account. Requires scope
|
|
135
|
+
* this account. Requires API-key scope or current OAuth user permission:
|
|
136
|
+
* variables:find-custom
|
|
105
137
|
*/
|
|
106
138
|
customVariables(options?: RequestOptions): APIPromise<MappingCustomVariablesResponse> {
|
|
107
139
|
return this._client.get('/rest/v1/mappings/custom-variables', options);
|
|
@@ -111,7 +143,8 @@ export class Mappings extends APIResource {
|
|
|
111
143
|
* Lists every value accepted on a mapping field’s `modification` property, with a
|
|
112
144
|
* human-readable label and one-sentence description. Account-agnostic. Use this
|
|
113
145
|
* alongside `GET /rest/v1/mapping-templates` to render a labelled modification
|
|
114
|
-
* picker without hardcoding the enum. Requires scope
|
|
146
|
+
* picker without hardcoding the enum. Requires API-key scope or current OAuth user
|
|
147
|
+
* permission: variables:find-default
|
|
115
148
|
*/
|
|
116
149
|
modifications(options?: RequestOptions): APIPromise<MappingModificationsResponse> {
|
|
117
150
|
return this._client.get('/rest/v1/mappings/modifications', options);
|
|
@@ -141,7 +174,7 @@ export interface MappingListResponse {
|
|
|
141
174
|
*
|
|
142
175
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
143
176
|
*/
|
|
144
|
-
logic?:
|
|
177
|
+
logic?: MappingListResponse.Logic | null;
|
|
145
178
|
|
|
146
179
|
name?: string | null;
|
|
147
180
|
|
|
@@ -206,6 +239,106 @@ export namespace MappingListResponse {
|
|
|
206
239
|
| 'UpperCase'
|
|
207
240
|
| null;
|
|
208
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
|
+
}
|
|
209
342
|
}
|
|
210
343
|
|
|
211
344
|
export interface MappingCreateResponse {
|
|
@@ -229,7 +362,7 @@ export interface MappingCreateResponse {
|
|
|
229
362
|
*
|
|
230
363
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
231
364
|
*/
|
|
232
|
-
logic?:
|
|
365
|
+
logic?: MappingCreateResponse.Logic | null;
|
|
233
366
|
|
|
234
367
|
name?: string | null;
|
|
235
368
|
|
|
@@ -294,14 +427,302 @@ export namespace MappingCreateResponse {
|
|
|
294
427
|
| 'UpperCase'
|
|
295
428
|
| null;
|
|
296
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
|
+
}
|
|
297
718
|
}
|
|
298
719
|
|
|
299
|
-
export interface
|
|
720
|
+
export interface MappingUpdateResponse {
|
|
300
721
|
id: string;
|
|
301
722
|
|
|
302
723
|
isEnabled: boolean;
|
|
303
724
|
|
|
304
|
-
mappings: Array<
|
|
725
|
+
mappings: Array<MappingUpdateResponse.Mapping>;
|
|
305
726
|
|
|
306
727
|
destinationId?: string | null;
|
|
307
728
|
|
|
@@ -317,7 +738,7 @@ export interface MappingRetrieveResponse {
|
|
|
317
738
|
*
|
|
318
739
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
319
740
|
*/
|
|
320
|
-
logic?:
|
|
741
|
+
logic?: MappingUpdateResponse.Logic | null;
|
|
321
742
|
|
|
322
743
|
name?: string | null;
|
|
323
744
|
|
|
@@ -332,7 +753,7 @@ export interface MappingRetrieveResponse {
|
|
|
332
753
|
updatedAt?: string | null;
|
|
333
754
|
}
|
|
334
755
|
|
|
335
|
-
export namespace
|
|
756
|
+
export namespace MappingUpdateResponse {
|
|
336
757
|
export interface Mapping {
|
|
337
758
|
/**
|
|
338
759
|
* Source expression sent to the destination for this `property`. Use `{{...}}`
|
|
@@ -382,14 +803,124 @@ export namespace MappingRetrieveResponse {
|
|
|
382
803
|
| 'UpperCase'
|
|
383
804
|
| null;
|
|
384
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
|
+
}
|
|
385
906
|
}
|
|
386
907
|
|
|
387
|
-
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 {
|
|
388
919
|
id: string;
|
|
389
920
|
|
|
390
921
|
isEnabled: boolean;
|
|
391
922
|
|
|
392
|
-
mappings: Array<
|
|
923
|
+
mappings: Array<MappingRenameResponse.Mapping>;
|
|
393
924
|
|
|
394
925
|
destinationId?: string | null;
|
|
395
926
|
|
|
@@ -405,7 +936,7 @@ export interface MappingUpdateResponse {
|
|
|
405
936
|
*
|
|
406
937
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
407
938
|
*/
|
|
408
|
-
logic?:
|
|
939
|
+
logic?: MappingRenameResponse.Logic | null;
|
|
409
940
|
|
|
410
941
|
name?: string | null;
|
|
411
942
|
|
|
@@ -420,7 +951,7 @@ export interface MappingUpdateResponse {
|
|
|
420
951
|
updatedAt?: string | null;
|
|
421
952
|
}
|
|
422
953
|
|
|
423
|
-
export namespace
|
|
954
|
+
export namespace MappingRenameResponse {
|
|
424
955
|
export interface Mapping {
|
|
425
956
|
/**
|
|
426
957
|
* Source expression sent to the destination for this `property`. Use `{{...}}`
|
|
@@ -470,9 +1001,107 @@ export namespace MappingUpdateResponse {
|
|
|
470
1001
|
| 'UpperCase'
|
|
471
1002
|
| null;
|
|
472
1003
|
}
|
|
473
|
-
}
|
|
474
1004
|
|
|
475
|
-
|
|
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
|
+
}
|
|
476
1105
|
|
|
477
1106
|
export interface MappingReorderResponse {
|
|
478
1107
|
entities: Array<MappingReorderResponse.Entity>;
|
|
@@ -500,7 +1129,7 @@ export namespace MappingReorderResponse {
|
|
|
500
1129
|
*
|
|
501
1130
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
502
1131
|
*/
|
|
503
|
-
logic?:
|
|
1132
|
+
logic?: Entity.Logic | null;
|
|
504
1133
|
|
|
505
1134
|
name?: string | null;
|
|
506
1135
|
|
|
@@ -565,6 +1194,106 @@ export namespace MappingReorderResponse {
|
|
|
565
1194
|
| 'UpperCase'
|
|
566
1195
|
| null;
|
|
567
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
|
+
}
|
|
568
1297
|
}
|
|
569
1298
|
}
|
|
570
1299
|
|
|
@@ -940,20 +1669,26 @@ export namespace MappingCreateParams {
|
|
|
940
1669
|
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
941
1670
|
* or combinator).
|
|
942
1671
|
*/
|
|
943
|
-
AND?: Array<
|
|
1672
|
+
AND?: Array<{
|
|
1673
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1674
|
+
}> | null;
|
|
944
1675
|
|
|
945
1676
|
condition?: Logic.Condition | null;
|
|
946
1677
|
|
|
947
1678
|
/**
|
|
948
1679
|
* Negates a single child logic node.
|
|
949
1680
|
*/
|
|
950
|
-
NOT?:
|
|
1681
|
+
NOT?: {
|
|
1682
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1683
|
+
} | null;
|
|
951
1684
|
|
|
952
1685
|
/**
|
|
953
1686
|
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
954
1687
|
* or combinator).
|
|
955
1688
|
*/
|
|
956
|
-
OR?: Array<
|
|
1689
|
+
OR?: Array<{
|
|
1690
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1691
|
+
}> | null;
|
|
957
1692
|
}
|
|
958
1693
|
|
|
959
1694
|
export namespace Logic {
|
|
@@ -1110,20 +1845,26 @@ export namespace MappingUpdateParams {
|
|
|
1110
1845
|
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
1111
1846
|
* or combinator).
|
|
1112
1847
|
*/
|
|
1113
|
-
AND?: Array<
|
|
1848
|
+
AND?: Array<{
|
|
1849
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1850
|
+
}> | null;
|
|
1114
1851
|
|
|
1115
1852
|
condition?: Logic.Condition | null;
|
|
1116
1853
|
|
|
1117
1854
|
/**
|
|
1118
1855
|
* Negates a single child logic node.
|
|
1119
1856
|
*/
|
|
1120
|
-
NOT?:
|
|
1857
|
+
NOT?: {
|
|
1858
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1859
|
+
} | null;
|
|
1121
1860
|
|
|
1122
1861
|
/**
|
|
1123
1862
|
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
1124
1863
|
* or combinator).
|
|
1125
1864
|
*/
|
|
1126
|
-
OR?: Array<
|
|
1865
|
+
OR?: Array<{
|
|
1866
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
1867
|
+
}> | null;
|
|
1127
1868
|
}
|
|
1128
1869
|
|
|
1129
1870
|
export namespace Logic {
|
|
@@ -1240,6 +1981,42 @@ export namespace MappingUpdateParams {
|
|
|
1240
1981
|
}
|
|
1241
1982
|
}
|
|
1242
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
|
+
|
|
1243
2020
|
export interface MappingReorderParams {
|
|
1244
2021
|
/**
|
|
1245
2022
|
* Mapping ids in their new priority order, low priority index first. All ids must
|
|
@@ -1262,6 +2039,8 @@ export declare namespace Mappings {
|
|
|
1262
2039
|
type MappingRetrieveResponse as MappingRetrieveResponse,
|
|
1263
2040
|
type MappingUpdateResponse as MappingUpdateResponse,
|
|
1264
2041
|
type MappingDeleteResponse as MappingDeleteResponse,
|
|
2042
|
+
type MappingRenamePreviewResponse as MappingRenamePreviewResponse,
|
|
2043
|
+
type MappingRenameResponse as MappingRenameResponse,
|
|
1265
2044
|
type MappingReorderResponse as MappingReorderResponse,
|
|
1266
2045
|
type MappingTemplatesResponse as MappingTemplatesResponse,
|
|
1267
2046
|
type MappingDefaultVariablesResponse as MappingDefaultVariablesResponse,
|
|
@@ -1271,6 +2050,8 @@ export declare namespace Mappings {
|
|
|
1271
2050
|
type MappingListParams as MappingListParams,
|
|
1272
2051
|
type MappingCreateParams as MappingCreateParams,
|
|
1273
2052
|
type MappingUpdateParams as MappingUpdateParams,
|
|
2053
|
+
type MappingRenamePreviewParams as MappingRenamePreviewParams,
|
|
2054
|
+
type MappingRenameParams as MappingRenameParams,
|
|
1274
2055
|
type MappingReorderParams as MappingReorderParams,
|
|
1275
2056
|
type MappingTemplatesParams as MappingTemplatesParams,
|
|
1276
2057
|
};
|