@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,7 +10,8 @@ export class DataGovernance extends APIResource {
|
|
|
10
10
|
* meaningful here. Data governance is the second stage of the dispatch flow
|
|
11
11
|
* (Source → Allowed Events → Data Governance → Mappings → Destination) — it
|
|
12
12
|
* evaluates each event against the configured category logic and stops dispatch to
|
|
13
|
-
* the destinations on any matching category. Requires scope
|
|
13
|
+
* the destinations on any matching category. Requires API-key scope or current
|
|
14
|
+
* OAuth user permission: globalDispatch:list
|
|
14
15
|
*/
|
|
15
16
|
list(query = {}, options) {
|
|
16
17
|
return this._client.getAPIList('/rest/v1/data-governance', (Cursor), {
|
|
@@ -22,15 +23,15 @@ export class DataGovernance extends APIResource {
|
|
|
22
23
|
* Create the data-governance record for this account. Each account may have at
|
|
23
24
|
* most one — a second POST returns 409. Body is optional; defaults are
|
|
24
25
|
* `isEnabled: false` and no categories. Categories are added later via PATCH.
|
|
25
|
-
* Requires scope: globalDispatch:create
|
|
26
|
+
* Requires API-key scope or current OAuth user permission: globalDispatch:create
|
|
26
27
|
*/
|
|
27
28
|
create(body, options) {
|
|
28
29
|
return this._client.post('/rest/v1/data-governance', { body, ...options });
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* Fetch the data-governance record by id, including its categories (logic,
|
|
32
|
-
* destinations, priority). Returns 404 when no record matches. Requires
|
|
33
|
-
* globalDispatch:find
|
|
33
|
+
* destinations, priority). Returns 404 when no record matches. Requires API-key
|
|
34
|
+
* scope or current OAuth user permission: globalDispatch:find
|
|
34
35
|
*/
|
|
35
36
|
retrieve(id, options) {
|
|
36
37
|
return this._client.get(path `/rest/v1/data-governance/${id}`, options);
|
|
@@ -49,7 +50,7 @@ export class DataGovernance extends APIResource {
|
|
|
49
50
|
* sequential with no gaps. Stale `destinationIds` (deleted destinations or
|
|
50
51
|
* destinations on another account) are silently filtered out — the response echoes
|
|
51
52
|
* the filtered list, so a follow-up GET is not required to see what was saved.
|
|
52
|
-
* Requires scope: globalDispatch:update
|
|
53
|
+
* Requires API-key scope or current OAuth user permission: globalDispatch:update
|
|
53
54
|
*/
|
|
54
55
|
update(id, body, options) {
|
|
55
56
|
return this._client.patch(path `/rest/v1/data-governance/${id}`, { body, ...options });
|
|
@@ -57,7 +58,8 @@ export class DataGovernance extends APIResource {
|
|
|
57
58
|
/**
|
|
58
59
|
* Delete the data-governance record. After deletion, inbound events flow through
|
|
59
60
|
* to destinations without category-level gating. Create a new record with POST to
|
|
60
|
-
* reinstate governance. Requires scope
|
|
61
|
+
* reinstate governance. Requires API-key scope or current OAuth user permission:
|
|
62
|
+
* globalDispatch:delete
|
|
61
63
|
*/
|
|
62
64
|
delete(id, options) {
|
|
63
65
|
return this._client.delete(path `/rest/v1/data-governance/${id}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-governance.mjs","sourceRoot":"","sources":["../src/resources/data-governance.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,MAAM,EAAkC,+BAA2B;AAE5E,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"data-governance.mjs","sourceRoot":"","sources":["../src/resources/data-governance.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,MAAM,EAAkC,+BAA2B;AAE5E,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;OASG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAA,MAAkC,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAU,EACV,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -6,22 +6,23 @@ export declare class DefaultMappings extends APIResource {
|
|
|
6
6
|
* List every stored default mapping for the account, one per destination that has
|
|
7
7
|
* ever written a default. Destinations that have not yet written a default mapping
|
|
8
8
|
* do not appear here. Use `GET /rest/v1/default-mappings/{destinationId}` to fetch
|
|
9
|
-
* the hydrated would-be row for a specific destination. Requires scope
|
|
10
|
-
* mapping:list
|
|
9
|
+
* the hydrated would-be row for a specific destination. Requires API-key scope or
|
|
10
|
+
* current OAuth user permission: mapping:list
|
|
11
11
|
*/
|
|
12
12
|
list(options?: RequestOptions): APIPromise<DefaultMappingListResponse>;
|
|
13
13
|
/**
|
|
14
14
|
* Fetch the destination's default mapping by destination id. Returns a hydrated
|
|
15
15
|
* row with empty `mappings[]` when no default mapping has been written yet (so
|
|
16
16
|
* callers do not need to handle a 404-vs-200 branch). Each destination has at most
|
|
17
|
-
* one default mapping. Requires scope
|
|
17
|
+
* one default mapping. Requires API-key scope or current OAuth user permission:
|
|
18
|
+
* mapping:find
|
|
18
19
|
*/
|
|
19
20
|
retrieve(id: string, options?: RequestOptions): APIPromise<DefaultMappingRetrieveResponse>;
|
|
20
21
|
/**
|
|
21
22
|
* Upsert the destination default mapping. Always replaces `mappings[]` wholesale
|
|
22
23
|
* (default mappings have no merge-partial semantic). Default mappings cannot have
|
|
23
|
-
* custom `logic`; the field is not accepted on this endpoint. Requires
|
|
24
|
-
* mapping:update
|
|
24
|
+
* custom `logic`; the field is not accepted on this endpoint. Requires API-key
|
|
25
|
+
* scope or current OAuth user permission: mapping:update
|
|
25
26
|
*/
|
|
26
27
|
replace(id: string, body: DefaultMappingReplaceParams, options?: RequestOptions): APIPromise<DefaultMappingReplaceResponse>;
|
|
27
28
|
}
|
|
@@ -45,7 +46,7 @@ export declare namespace DefaultMappingListResponse {
|
|
|
45
46
|
*
|
|
46
47
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
47
48
|
*/
|
|
48
|
-
logic?:
|
|
49
|
+
logic?: Entity.Logic | null;
|
|
49
50
|
name?: string | null;
|
|
50
51
|
priority?: number | null;
|
|
51
52
|
sourceId?: string | null;
|
|
@@ -71,6 +72,74 @@ export declare namespace DefaultMappingListResponse {
|
|
|
71
72
|
property: string;
|
|
72
73
|
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;
|
|
73
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
77
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
78
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
79
|
+
*
|
|
80
|
+
* Example leaf:
|
|
81
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
82
|
+
*
|
|
83
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
84
|
+
*/
|
|
85
|
+
interface Logic {
|
|
86
|
+
/**
|
|
87
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
88
|
+
* or combinator).
|
|
89
|
+
*/
|
|
90
|
+
AND?: Array<{
|
|
91
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
92
|
+
[key: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
}> | null;
|
|
95
|
+
condition?: Logic.Condition | null;
|
|
96
|
+
/**
|
|
97
|
+
* Negates a single child logic node.
|
|
98
|
+
*/
|
|
99
|
+
NOT?: {
|
|
100
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
101
|
+
[key: string]: unknown;
|
|
102
|
+
};
|
|
103
|
+
} | null;
|
|
104
|
+
/**
|
|
105
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
106
|
+
* or combinator).
|
|
107
|
+
*/
|
|
108
|
+
OR?: Array<{
|
|
109
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
110
|
+
[key: string]: unknown;
|
|
111
|
+
};
|
|
112
|
+
}> | null;
|
|
113
|
+
}
|
|
114
|
+
namespace Logic {
|
|
115
|
+
interface Condition {
|
|
116
|
+
/**
|
|
117
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
118
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
119
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
120
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
121
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
122
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
123
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
124
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
125
|
+
*/
|
|
126
|
+
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';
|
|
127
|
+
/**
|
|
128
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
129
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
130
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
131
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
132
|
+
* and would be compared as a literal string.
|
|
133
|
+
*/
|
|
134
|
+
property: string;
|
|
135
|
+
/**
|
|
136
|
+
* String compared against the resolved property. Operators that take no value
|
|
137
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
138
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
139
|
+
*/
|
|
140
|
+
value: string;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
74
143
|
}
|
|
75
144
|
}
|
|
76
145
|
export interface DefaultMappingRetrieveResponse {
|
|
@@ -89,7 +158,7 @@ export interface DefaultMappingRetrieveResponse {
|
|
|
89
158
|
*
|
|
90
159
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
91
160
|
*/
|
|
92
|
-
logic?:
|
|
161
|
+
logic?: DefaultMappingRetrieveResponse.Logic | null;
|
|
93
162
|
name?: string | null;
|
|
94
163
|
priority?: number | null;
|
|
95
164
|
sourceId?: string | null;
|
|
@@ -115,6 +184,74 @@ export declare namespace DefaultMappingRetrieveResponse {
|
|
|
115
184
|
property: string;
|
|
116
185
|
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;
|
|
117
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
189
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
190
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
191
|
+
*
|
|
192
|
+
* Example leaf:
|
|
193
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
194
|
+
*
|
|
195
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
196
|
+
*/
|
|
197
|
+
interface Logic {
|
|
198
|
+
/**
|
|
199
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
200
|
+
* or combinator).
|
|
201
|
+
*/
|
|
202
|
+
AND?: Array<{
|
|
203
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
204
|
+
[key: string]: unknown;
|
|
205
|
+
};
|
|
206
|
+
}> | null;
|
|
207
|
+
condition?: Logic.Condition | null;
|
|
208
|
+
/**
|
|
209
|
+
* Negates a single child logic node.
|
|
210
|
+
*/
|
|
211
|
+
NOT?: {
|
|
212
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
213
|
+
[key: string]: unknown;
|
|
214
|
+
};
|
|
215
|
+
} | null;
|
|
216
|
+
/**
|
|
217
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
218
|
+
* or combinator).
|
|
219
|
+
*/
|
|
220
|
+
OR?: Array<{
|
|
221
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
222
|
+
[key: string]: unknown;
|
|
223
|
+
};
|
|
224
|
+
}> | null;
|
|
225
|
+
}
|
|
226
|
+
namespace Logic {
|
|
227
|
+
interface Condition {
|
|
228
|
+
/**
|
|
229
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
230
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
231
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
232
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
233
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
234
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
235
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
236
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
237
|
+
*/
|
|
238
|
+
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';
|
|
239
|
+
/**
|
|
240
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
241
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
242
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
243
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
244
|
+
* and would be compared as a literal string.
|
|
245
|
+
*/
|
|
246
|
+
property: string;
|
|
247
|
+
/**
|
|
248
|
+
* String compared against the resolved property. Operators that take no value
|
|
249
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
250
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
251
|
+
*/
|
|
252
|
+
value: string;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
118
255
|
}
|
|
119
256
|
export interface DefaultMappingReplaceResponse {
|
|
120
257
|
id: string;
|
|
@@ -132,7 +269,7 @@ export interface DefaultMappingReplaceResponse {
|
|
|
132
269
|
*
|
|
133
270
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
134
271
|
*/
|
|
135
|
-
logic?:
|
|
272
|
+
logic?: DefaultMappingReplaceResponse.Logic | null;
|
|
136
273
|
name?: string | null;
|
|
137
274
|
priority?: number | null;
|
|
138
275
|
sourceId?: string | null;
|
|
@@ -158,6 +295,74 @@ export declare namespace DefaultMappingReplaceResponse {
|
|
|
158
295
|
property: string;
|
|
159
296
|
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;
|
|
160
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
300
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
301
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
302
|
+
*
|
|
303
|
+
* Example leaf:
|
|
304
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
305
|
+
*
|
|
306
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
307
|
+
*/
|
|
308
|
+
interface Logic {
|
|
309
|
+
/**
|
|
310
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
311
|
+
* or combinator).
|
|
312
|
+
*/
|
|
313
|
+
AND?: Array<{
|
|
314
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
315
|
+
[key: string]: unknown;
|
|
316
|
+
};
|
|
317
|
+
}> | null;
|
|
318
|
+
condition?: Logic.Condition | null;
|
|
319
|
+
/**
|
|
320
|
+
* Negates a single child logic node.
|
|
321
|
+
*/
|
|
322
|
+
NOT?: {
|
|
323
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
324
|
+
[key: string]: unknown;
|
|
325
|
+
};
|
|
326
|
+
} | null;
|
|
327
|
+
/**
|
|
328
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
329
|
+
* or combinator).
|
|
330
|
+
*/
|
|
331
|
+
OR?: Array<{
|
|
332
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
333
|
+
[key: string]: unknown;
|
|
334
|
+
};
|
|
335
|
+
}> | null;
|
|
336
|
+
}
|
|
337
|
+
namespace Logic {
|
|
338
|
+
interface Condition {
|
|
339
|
+
/**
|
|
340
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
341
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
342
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
343
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
344
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
345
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
346
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
347
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
348
|
+
*/
|
|
349
|
+
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';
|
|
350
|
+
/**
|
|
351
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
352
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
353
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
354
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
355
|
+
* and would be compared as a literal string.
|
|
356
|
+
*/
|
|
357
|
+
property: string;
|
|
358
|
+
/**
|
|
359
|
+
* String compared against the resolved property. Operators that take no value
|
|
360
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
361
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
362
|
+
*/
|
|
363
|
+
value: string;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
161
366
|
}
|
|
162
367
|
export interface DefaultMappingReplaceParams {
|
|
163
368
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-mappings.d.mts","sourceRoot":"","sources":["../src/resources/default-mappings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItE
|
|
1
|
+
{"version":3,"file":"default-m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;QACtB;;;;;;;WAOG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB,YAAY,CAAC,EACT,WAAW,GACX,OAAO,GACP,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,YAAY,GACZ,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,SAAS,GACT,MAAM,GACN,SAAS,GACT,eAAe,GACf,mBAAmB,GACnB,cAAc,GACd,kBAAkB,GAClB,gCAAgC,GAChC,aAAa,GACb,aAAa,GACb,WAAW,GACX,WAAW,GACX,WAAW,GACX,MAAM,GACN,MAAM,GACN,UAAU,GACV,YAAY,GACZ,WAAW,GACX,WAAW,GACX,WAAW,GACX,IAAI,CAAC;KACV;CACF;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -6,22 +6,23 @@ export declare class DefaultMappings extends APIResource {
|
|
|
6
6
|
* List every stored default mapping for the account, one per destination that has
|
|
7
7
|
* ever written a default. Destinations that have not yet written a default mapping
|
|
8
8
|
* do not appear here. Use `GET /rest/v1/default-mappings/{destinationId}` to fetch
|
|
9
|
-
* the hydrated would-be row for a specific destination. Requires scope
|
|
10
|
-
* mapping:list
|
|
9
|
+
* the hydrated would-be row for a specific destination. Requires API-key scope or
|
|
10
|
+
* current OAuth user permission: mapping:list
|
|
11
11
|
*/
|
|
12
12
|
list(options?: RequestOptions): APIPromise<DefaultMappingListResponse>;
|
|
13
13
|
/**
|
|
14
14
|
* Fetch the destination's default mapping by destination id. Returns a hydrated
|
|
15
15
|
* row with empty `mappings[]` when no default mapping has been written yet (so
|
|
16
16
|
* callers do not need to handle a 404-vs-200 branch). Each destination has at most
|
|
17
|
-
* one default mapping. Requires scope
|
|
17
|
+
* one default mapping. Requires API-key scope or current OAuth user permission:
|
|
18
|
+
* mapping:find
|
|
18
19
|
*/
|
|
19
20
|
retrieve(id: string, options?: RequestOptions): APIPromise<DefaultMappingRetrieveResponse>;
|
|
20
21
|
/**
|
|
21
22
|
* Upsert the destination default mapping. Always replaces `mappings[]` wholesale
|
|
22
23
|
* (default mappings have no merge-partial semantic). Default mappings cannot have
|
|
23
|
-
* custom `logic`; the field is not accepted on this endpoint. Requires
|
|
24
|
-
* mapping:update
|
|
24
|
+
* custom `logic`; the field is not accepted on this endpoint. Requires API-key
|
|
25
|
+
* scope or current OAuth user permission: mapping:update
|
|
25
26
|
*/
|
|
26
27
|
replace(id: string, body: DefaultMappingReplaceParams, options?: RequestOptions): APIPromise<DefaultMappingReplaceResponse>;
|
|
27
28
|
}
|
|
@@ -45,7 +46,7 @@ export declare namespace DefaultMappingListResponse {
|
|
|
45
46
|
*
|
|
46
47
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
47
48
|
*/
|
|
48
|
-
logic?:
|
|
49
|
+
logic?: Entity.Logic | null;
|
|
49
50
|
name?: string | null;
|
|
50
51
|
priority?: number | null;
|
|
51
52
|
sourceId?: string | null;
|
|
@@ -71,6 +72,74 @@ export declare namespace DefaultMappingListResponse {
|
|
|
71
72
|
property: string;
|
|
72
73
|
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;
|
|
73
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
77
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
78
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
79
|
+
*
|
|
80
|
+
* Example leaf:
|
|
81
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
82
|
+
*
|
|
83
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
84
|
+
*/
|
|
85
|
+
interface Logic {
|
|
86
|
+
/**
|
|
87
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
88
|
+
* or combinator).
|
|
89
|
+
*/
|
|
90
|
+
AND?: Array<{
|
|
91
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
92
|
+
[key: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
}> | null;
|
|
95
|
+
condition?: Logic.Condition | null;
|
|
96
|
+
/**
|
|
97
|
+
* Negates a single child logic node.
|
|
98
|
+
*/
|
|
99
|
+
NOT?: {
|
|
100
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
101
|
+
[key: string]: unknown;
|
|
102
|
+
};
|
|
103
|
+
} | null;
|
|
104
|
+
/**
|
|
105
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
106
|
+
* or combinator).
|
|
107
|
+
*/
|
|
108
|
+
OR?: Array<{
|
|
109
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
110
|
+
[key: string]: unknown;
|
|
111
|
+
};
|
|
112
|
+
}> | null;
|
|
113
|
+
}
|
|
114
|
+
namespace Logic {
|
|
115
|
+
interface Condition {
|
|
116
|
+
/**
|
|
117
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
118
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
119
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
120
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
121
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
122
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
123
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
124
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
125
|
+
*/
|
|
126
|
+
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';
|
|
127
|
+
/**
|
|
128
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
129
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
130
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
131
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
132
|
+
* and would be compared as a literal string.
|
|
133
|
+
*/
|
|
134
|
+
property: string;
|
|
135
|
+
/**
|
|
136
|
+
* String compared against the resolved property. Operators that take no value
|
|
137
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
138
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
139
|
+
*/
|
|
140
|
+
value: string;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
74
143
|
}
|
|
75
144
|
}
|
|
76
145
|
export interface DefaultMappingRetrieveResponse {
|
|
@@ -89,7 +158,7 @@ export interface DefaultMappingRetrieveResponse {
|
|
|
89
158
|
*
|
|
90
159
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
91
160
|
*/
|
|
92
|
-
logic?:
|
|
161
|
+
logic?: DefaultMappingRetrieveResponse.Logic | null;
|
|
93
162
|
name?: string | null;
|
|
94
163
|
priority?: number | null;
|
|
95
164
|
sourceId?: string | null;
|
|
@@ -115,6 +184,74 @@ export declare namespace DefaultMappingRetrieveResponse {
|
|
|
115
184
|
property: string;
|
|
116
185
|
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;
|
|
117
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
189
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
190
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
191
|
+
*
|
|
192
|
+
* Example leaf:
|
|
193
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
194
|
+
*
|
|
195
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
196
|
+
*/
|
|
197
|
+
interface Logic {
|
|
198
|
+
/**
|
|
199
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
200
|
+
* or combinator).
|
|
201
|
+
*/
|
|
202
|
+
AND?: Array<{
|
|
203
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
204
|
+
[key: string]: unknown;
|
|
205
|
+
};
|
|
206
|
+
}> | null;
|
|
207
|
+
condition?: Logic.Condition | null;
|
|
208
|
+
/**
|
|
209
|
+
* Negates a single child logic node.
|
|
210
|
+
*/
|
|
211
|
+
NOT?: {
|
|
212
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
213
|
+
[key: string]: unknown;
|
|
214
|
+
};
|
|
215
|
+
} | null;
|
|
216
|
+
/**
|
|
217
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
218
|
+
* or combinator).
|
|
219
|
+
*/
|
|
220
|
+
OR?: Array<{
|
|
221
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
222
|
+
[key: string]: unknown;
|
|
223
|
+
};
|
|
224
|
+
}> | null;
|
|
225
|
+
}
|
|
226
|
+
namespace Logic {
|
|
227
|
+
interface Condition {
|
|
228
|
+
/**
|
|
229
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
230
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
231
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
232
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
233
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
234
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
235
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
236
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
237
|
+
*/
|
|
238
|
+
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';
|
|
239
|
+
/**
|
|
240
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
241
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
242
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
243
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
244
|
+
* and would be compared as a literal string.
|
|
245
|
+
*/
|
|
246
|
+
property: string;
|
|
247
|
+
/**
|
|
248
|
+
* String compared against the resolved property. Operators that take no value
|
|
249
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
250
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
251
|
+
*/
|
|
252
|
+
value: string;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
118
255
|
}
|
|
119
256
|
export interface DefaultMappingReplaceResponse {
|
|
120
257
|
id: string;
|
|
@@ -132,7 +269,7 @@ export interface DefaultMappingReplaceResponse {
|
|
|
132
269
|
*
|
|
133
270
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
134
271
|
*/
|
|
135
|
-
logic?:
|
|
272
|
+
logic?: DefaultMappingReplaceResponse.Logic | null;
|
|
136
273
|
name?: string | null;
|
|
137
274
|
priority?: number | null;
|
|
138
275
|
sourceId?: string | null;
|
|
@@ -158,6 +295,74 @@ export declare namespace DefaultMappingReplaceResponse {
|
|
|
158
295
|
property: string;
|
|
159
296
|
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;
|
|
160
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
300
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
301
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
302
|
+
*
|
|
303
|
+
* Example leaf:
|
|
304
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
305
|
+
*
|
|
306
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
307
|
+
*/
|
|
308
|
+
interface Logic {
|
|
309
|
+
/**
|
|
310
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
311
|
+
* or combinator).
|
|
312
|
+
*/
|
|
313
|
+
AND?: Array<{
|
|
314
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
315
|
+
[key: string]: unknown;
|
|
316
|
+
};
|
|
317
|
+
}> | null;
|
|
318
|
+
condition?: Logic.Condition | null;
|
|
319
|
+
/**
|
|
320
|
+
* Negates a single child logic node.
|
|
321
|
+
*/
|
|
322
|
+
NOT?: {
|
|
323
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
324
|
+
[key: string]: unknown;
|
|
325
|
+
};
|
|
326
|
+
} | null;
|
|
327
|
+
/**
|
|
328
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
329
|
+
* or combinator).
|
|
330
|
+
*/
|
|
331
|
+
OR?: Array<{
|
|
332
|
+
[key: string]: string | null | number | boolean | Array<unknown> | {
|
|
333
|
+
[key: string]: unknown;
|
|
334
|
+
};
|
|
335
|
+
}> | null;
|
|
336
|
+
}
|
|
337
|
+
namespace Logic {
|
|
338
|
+
interface Condition {
|
|
339
|
+
/**
|
|
340
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
341
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
342
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
343
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
344
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
345
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
346
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
347
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
348
|
+
*/
|
|
349
|
+
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';
|
|
350
|
+
/**
|
|
351
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
352
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
353
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
354
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
355
|
+
* and would be compared as a literal string.
|
|
356
|
+
*/
|
|
357
|
+
property: string;
|
|
358
|
+
/**
|
|
359
|
+
* String compared against the resolved property. Operators that take no value
|
|
360
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
361
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
362
|
+
*/
|
|
363
|
+
value: string;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
161
366
|
}
|
|
162
367
|
export interface DefaultMappingReplaceParams {
|
|
163
368
|
/**
|