@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
package/resources/mappings.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export declare class Mappings extends APIResource {
|
|
|
6
6
|
/**
|
|
7
7
|
* List mappings for an entity (a source or destination). Requires the `entityId`
|
|
8
8
|
* query parameter. Supports cursor pagination via `limit` and `cursor`. Sorted by
|
|
9
|
-
* `priority` ascending, then by `id` for deterministic pagination. Requires
|
|
10
|
-
* mapping:list
|
|
9
|
+
* `priority` ascending, then by `id` for deterministic pagination. Requires
|
|
10
|
+
* API-key scope or current OAuth user permission: mapping:list
|
|
11
11
|
*/
|
|
12
12
|
list(query: MappingListParams, options?: RequestOptions): PagePromise<MappingListResponsesCursor, MappingListResponse>;
|
|
13
13
|
/**
|
|
@@ -22,30 +22,51 @@ export declare class Mappings extends APIResource {
|
|
|
22
22
|
* `GET /rest/v1/mapping-templates?entityId=...` to discover the valid
|
|
23
23
|
* `templateId` and `mappings[].property` values.
|
|
24
24
|
*
|
|
25
|
-
* Sending both `allowedEventId` and `templateId` returns 400. Requires
|
|
26
|
-
* mapping:create
|
|
25
|
+
* Sending both `allowedEventId` and `templateId` returns 400. Requires API-key
|
|
26
|
+
* scope or current OAuth user permission: mapping:create
|
|
27
27
|
*/
|
|
28
28
|
create(body: MappingCreateParams, options?: RequestOptions): APIPromise<MappingCreateResponse>;
|
|
29
29
|
/**
|
|
30
|
-
* Find a single mapping by ID. Requires scope
|
|
30
|
+
* Find a single mapping by ID. Requires API-key scope or current OAuth user
|
|
31
|
+
* permission: mapping:find
|
|
31
32
|
*/
|
|
32
33
|
retrieve(id: string, options?: RequestOptions): APIPromise<MappingRetrieveResponse>;
|
|
33
34
|
/**
|
|
34
35
|
* Partially update a mapping. Only the fields you send are changed. Send
|
|
35
36
|
* `isEnabled: false` to pause the mapping without changing other fields (mirrors
|
|
36
37
|
* `status` on destinations). `mappings[]` is replaced wholesale when sent.
|
|
37
|
-
* Requires scope: mapping:update
|
|
38
|
+
* Requires API-key scope or current OAuth user permission: mapping:update
|
|
38
39
|
*/
|
|
39
40
|
update(id: string, body: MappingUpdateParams, options?: RequestOptions): APIPromise<MappingUpdateResponse>;
|
|
40
41
|
/**
|
|
41
|
-
* Delete a mapping. Requires scope
|
|
42
|
+
* Delete a mapping. Requires API-key scope or current OAuth user permission:
|
|
43
|
+
* mapping:delete
|
|
42
44
|
*/
|
|
43
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>;
|
|
44
64
|
/**
|
|
45
65
|
* Reassign `priority` for a set of mappings. Pass `{ uuids: [...] }` with the
|
|
46
66
|
* mapping ids in their new order — index 0 becomes the highest-priority mapping.
|
|
47
67
|
* All ids must belong to the same parent entity (source or destination); mixing
|
|
48
|
-
* entities returns 400. Requires scope
|
|
68
|
+
* entities returns 400. Requires API-key scope or current OAuth user permission:
|
|
69
|
+
* mapping:update
|
|
49
70
|
*/
|
|
50
71
|
reorder(body: MappingReorderParams, options?: RequestOptions): APIPromise<MappingReorderResponse>;
|
|
51
72
|
/**
|
|
@@ -55,14 +76,15 @@ export declare class Mappings extends APIResource {
|
|
|
55
76
|
* `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
|
|
56
77
|
* any enforced `options`. The `isDefault: true` entry is the destination's
|
|
57
78
|
* built-in default template, configured via
|
|
58
|
-
* `PUT /rest/v1/default-mappings/{destinationId}`. Requires scope
|
|
79
|
+
* `PUT /rest/v1/default-mappings/{destinationId}`. Requires API-key scope or
|
|
80
|
+
* current OAuth user permission: mapping:find
|
|
59
81
|
*/
|
|
60
82
|
templates(query: MappingTemplatesParams, options?: RequestOptions): APIPromise<MappingTemplatesResponse>;
|
|
61
83
|
/**
|
|
62
84
|
* Lists the platform-provided variables that any mapping `value` can reference
|
|
63
85
|
* (e.g. `event.email`, `event.request_context.ip`, `visitor.id`). Account-agnostic
|
|
64
86
|
* discovery — use these paths as the right-hand side of a mapping field. Requires
|
|
65
|
-
* scope: variables:find-default
|
|
87
|
+
* API-key scope or current OAuth user permission: variables:find-default
|
|
66
88
|
*/
|
|
67
89
|
defaultVariables(options?: RequestOptions): APIPromise<MappingDefaultVariablesResponse>;
|
|
68
90
|
/**
|
|
@@ -70,14 +92,16 @@ export declare class Mappings extends APIResource {
|
|
|
70
92
|
* 14 days). These are dot-paths under `event.event_properties.*` that callers can
|
|
71
93
|
* target in mapping `value` fields. Newly seen properties may take a few minutes
|
|
72
94
|
* to appear; an empty list means no custom properties have been observed yet for
|
|
73
|
-
* this account. Requires scope
|
|
95
|
+
* this account. Requires API-key scope or current OAuth user permission:
|
|
96
|
+
* variables:find-custom
|
|
74
97
|
*/
|
|
75
98
|
customVariables(options?: RequestOptions): APIPromise<MappingCustomVariablesResponse>;
|
|
76
99
|
/**
|
|
77
100
|
* Lists every value accepted on a mapping field’s `modification` property, with a
|
|
78
101
|
* human-readable label and one-sentence description. Account-agnostic. Use this
|
|
79
102
|
* alongside `GET /rest/v1/mapping-templates` to render a labelled modification
|
|
80
|
-
* picker without hardcoding the enum. Requires scope
|
|
103
|
+
* picker without hardcoding the enum. Requires API-key scope or current OAuth user
|
|
104
|
+
* permission: variables:find-default
|
|
81
105
|
*/
|
|
82
106
|
modifications(options?: RequestOptions): APIPromise<MappingModificationsResponse>;
|
|
83
107
|
}
|
|
@@ -98,7 +122,7 @@ export interface MappingListResponse {
|
|
|
98
122
|
*
|
|
99
123
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
100
124
|
*/
|
|
101
|
-
logic?:
|
|
125
|
+
logic?: MappingListResponse.Logic | null;
|
|
102
126
|
name?: string | null;
|
|
103
127
|
priority?: number | null;
|
|
104
128
|
sourceId?: string | null;
|
|
@@ -124,6 +148,74 @@ export declare namespace MappingListResponse {
|
|
|
124
148
|
property: string;
|
|
125
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;
|
|
126
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
|
+
}
|
|
127
219
|
}
|
|
128
220
|
export interface MappingCreateResponse {
|
|
129
221
|
id: string;
|
|
@@ -141,7 +233,7 @@ export interface MappingCreateResponse {
|
|
|
141
233
|
*
|
|
142
234
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
143
235
|
*/
|
|
144
|
-
logic?:
|
|
236
|
+
logic?: MappingCreateResponse.Logic | null;
|
|
145
237
|
name?: string | null;
|
|
146
238
|
priority?: number | null;
|
|
147
239
|
sourceId?: string | null;
|
|
@@ -167,6 +259,74 @@ export declare namespace MappingCreateResponse {
|
|
|
167
259
|
property: string;
|
|
168
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;
|
|
169
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
|
+
}
|
|
170
330
|
}
|
|
171
331
|
export interface MappingRetrieveResponse {
|
|
172
332
|
id: string;
|
|
@@ -184,7 +344,7 @@ export interface MappingRetrieveResponse {
|
|
|
184
344
|
*
|
|
185
345
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
186
346
|
*/
|
|
187
|
-
logic?:
|
|
347
|
+
logic?: MappingRetrieveResponse.Logic | null;
|
|
188
348
|
name?: string | null;
|
|
189
349
|
priority?: number | null;
|
|
190
350
|
sourceId?: string | null;
|
|
@@ -210,6 +370,74 @@ export declare namespace MappingRetrieveResponse {
|
|
|
210
370
|
property: string;
|
|
211
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;
|
|
212
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
|
+
}
|
|
213
441
|
}
|
|
214
442
|
export interface MappingUpdateResponse {
|
|
215
443
|
id: string;
|
|
@@ -227,7 +455,7 @@ export interface MappingUpdateResponse {
|
|
|
227
455
|
*
|
|
228
456
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
229
457
|
*/
|
|
230
|
-
logic?:
|
|
458
|
+
logic?: MappingUpdateResponse.Logic | null;
|
|
231
459
|
name?: string | null;
|
|
232
460
|
priority?: number | null;
|
|
233
461
|
sourceId?: string | null;
|
|
@@ -253,8 +481,192 @@ export declare namespace MappingUpdateResponse {
|
|
|
253
481
|
property: string;
|
|
254
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;
|
|
255
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
|
+
}
|
|
256
552
|
}
|
|
257
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
|
+
}
|
|
258
670
|
export interface MappingReorderResponse {
|
|
259
671
|
entities: Array<MappingReorderResponse.Entity>;
|
|
260
672
|
}
|
|
@@ -275,7 +687,7 @@ export declare namespace MappingReorderResponse {
|
|
|
275
687
|
*
|
|
276
688
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
277
689
|
*/
|
|
278
|
-
logic?:
|
|
690
|
+
logic?: Entity.Logic | null;
|
|
279
691
|
name?: string | null;
|
|
280
692
|
priority?: number | null;
|
|
281
693
|
sourceId?: string | null;
|
|
@@ -301,6 +713,74 @@ export declare namespace MappingReorderResponse {
|
|
|
301
713
|
property: string;
|
|
302
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;
|
|
303
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
|
+
}
|
|
304
784
|
}
|
|
305
785
|
}
|
|
306
786
|
export interface MappingTemplatesResponse {
|
|
@@ -527,17 +1007,29 @@ export declare namespace MappingCreateParams {
|
|
|
527
1007
|
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
528
1008
|
* or combinator).
|
|
529
1009
|
*/
|
|
530
|
-
AND?: Array<
|
|
1010
|
+
AND?: Array<{
|
|
1011
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1012
|
+
[key: string]: unknown;
|
|
1013
|
+
};
|
|
1014
|
+
}> | null;
|
|
531
1015
|
condition?: Logic.Condition | null;
|
|
532
1016
|
/**
|
|
533
1017
|
* Negates a single child logic node.
|
|
534
1018
|
*/
|
|
535
|
-
NOT?:
|
|
1019
|
+
NOT?: {
|
|
1020
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1021
|
+
[key: string]: unknown;
|
|
1022
|
+
};
|
|
1023
|
+
} | null;
|
|
536
1024
|
/**
|
|
537
1025
|
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
538
1026
|
* or combinator).
|
|
539
1027
|
*/
|
|
540
|
-
OR?: Array<
|
|
1028
|
+
OR?: Array<{
|
|
1029
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1030
|
+
[key: string]: unknown;
|
|
1031
|
+
};
|
|
1032
|
+
}> | null;
|
|
541
1033
|
}
|
|
542
1034
|
namespace Logic {
|
|
543
1035
|
interface Condition {
|
|
@@ -622,17 +1114,29 @@ export declare namespace MappingUpdateParams {
|
|
|
622
1114
|
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
623
1115
|
* or combinator).
|
|
624
1116
|
*/
|
|
625
|
-
AND?: Array<
|
|
1117
|
+
AND?: Array<{
|
|
1118
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1119
|
+
[key: string]: unknown;
|
|
1120
|
+
};
|
|
1121
|
+
}> | null;
|
|
626
1122
|
condition?: Logic.Condition | null;
|
|
627
1123
|
/**
|
|
628
1124
|
* Negates a single child logic node.
|
|
629
1125
|
*/
|
|
630
|
-
NOT?:
|
|
1126
|
+
NOT?: {
|
|
1127
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1128
|
+
[key: string]: unknown;
|
|
1129
|
+
};
|
|
1130
|
+
} | null;
|
|
631
1131
|
/**
|
|
632
1132
|
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
633
1133
|
* or combinator).
|
|
634
1134
|
*/
|
|
635
|
-
OR?: Array<
|
|
1135
|
+
OR?: Array<{
|
|
1136
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
1137
|
+
[key: string]: unknown;
|
|
1138
|
+
};
|
|
1139
|
+
}> | null;
|
|
636
1140
|
}
|
|
637
1141
|
namespace Logic {
|
|
638
1142
|
interface Condition {
|
|
@@ -681,6 +1185,36 @@ export declare namespace MappingUpdateParams {
|
|
|
681
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;
|
|
682
1186
|
}
|
|
683
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
|
+
}
|
|
684
1218
|
export interface MappingReorderParams {
|
|
685
1219
|
/**
|
|
686
1220
|
* Mapping ids in their new priority order, low priority index first. All ids must
|
|
@@ -695,6 +1229,6 @@ export interface MappingTemplatesParams {
|
|
|
695
1229
|
entityId: string;
|
|
696
1230
|
}
|
|
697
1231
|
export declare namespace Mappings {
|
|
698
|
-
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, };
|
|
699
1233
|
}
|
|
700
1234
|
//# sourceMappingURL=mappings.d.ts.map
|