@oursprivacy/platform-sdk 1.52.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/allowed-events.d.mts +9 -7
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +9 -7
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/allowed-events.js +9 -7
- package/resources/allowed-events.js.map +1 -1
- package/resources/allowed-events.mjs +9 -7
- package/resources/allowed-events.mjs.map +1 -1
- package/resources/analytics.d.mts +4 -2
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +4 -2
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.js +4 -2
- package/resources/analytics.js.map +1 -1
- package/resources/analytics.mjs +4 -2
- package/resources/analytics.mjs.map +1 -1
- package/resources/attribution.d.mts +8 -5
- package/resources/attribution.d.mts.map +1 -1
- package/resources/attribution.d.ts +8 -5
- package/resources/attribution.d.ts.map +1 -1
- package/resources/attribution.js +8 -5
- package/resources/attribution.js.map +1 -1
- package/resources/attribution.mjs +8 -5
- package/resources/attribution.mjs.map +1 -1
- package/resources/audience-conversion-reports.d.mts +11 -9
- package/resources/audience-conversion-reports.d.mts.map +1 -1
- package/resources/audience-conversion-reports.d.ts +11 -9
- package/resources/audience-conversion-reports.d.ts.map +1 -1
- package/resources/audience-conversion-reports.js +11 -9
- package/resources/audience-conversion-reports.js.map +1 -1
- package/resources/audience-conversion-reports.mjs +11 -9
- package/resources/audience-conversion-reports.mjs.map +1 -1
- package/resources/consent-analytics.d.mts +2 -1
- package/resources/consent-analytics.d.mts.map +1 -1
- package/resources/consent-analytics.d.ts +2 -1
- package/resources/consent-analytics.d.ts.map +1 -1
- package/resources/consent-analytics.js +2 -1
- package/resources/consent-analytics.js.map +1 -1
- package/resources/consent-analytics.mjs +2 -1
- package/resources/consent-analytics.mjs.map +1 -1
- package/resources/consent-settings.d.mts +6238 -650
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +6238 -650
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +72 -34
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +72 -34
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/conversion-journey-summaries.d.mts +10 -5
- package/resources/conversion-journey-summaries.d.mts.map +1 -1
- package/resources/conversion-journey-summaries.d.ts +10 -5
- package/resources/conversion-journey-summaries.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.js +10 -5
- package/resources/conversion-journey-summaries.js.map +1 -1
- package/resources/conversion-journey-summaries.mjs +10 -5
- package/resources/conversion-journey-summaries.mjs.map +1 -1
- package/resources/custom-domains.d.mts +301 -0
- package/resources/custom-domains.d.mts.map +1 -0
- package/resources/custom-domains.d.ts +301 -0
- package/resources/custom-domains.d.ts.map +1 -0
- package/resources/custom-domains.js +55 -0
- package/resources/custom-domains.js.map +1 -0
- package/resources/custom-domains.mjs +51 -0
- package/resources/custom-domains.mjs.map +1 -0
- package/resources/data-governance.d.mts +83 -21
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +83 -21
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/data-governance.js +8 -6
- package/resources/data-governance.js.map +1 -1
- package/resources/data-governance.mjs +8 -6
- package/resources/data-governance.mjs.map +1 -1
- package/resources/default-mappings.d.mts +213 -8
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +213 -8
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/default-mappings.js +6 -5
- package/resources/default-mappings.js.map +1 -1
- package/resources/default-mappings.mjs +6 -5
- package/resources/default-mappings.mjs.map +1 -1
- package/resources/destinations.d.mts +45 -20
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +45 -20
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +12 -7
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +12 -7
- package/resources/destinations.mjs.map +1 -1
- package/resources/experiment-settings.d.mts +9 -6
- package/resources/experiment-settings.d.mts.map +1 -1
- package/resources/experiment-settings.d.ts +9 -6
- package/resources/experiment-settings.d.ts.map +1 -1
- package/resources/experiment-settings.js +9 -6
- package/resources/experiment-settings.js.map +1 -1
- package/resources/experiment-settings.mjs +9 -6
- package/resources/experiment-settings.mjs.map +1 -1
- package/resources/experiment-variants.d.mts +126 -19
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +126 -19
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiment-variants.js +9 -5
- package/resources/experiment-variants.js.map +1 -1
- package/resources/experiment-variants.mjs +9 -5
- package/resources/experiment-variants.mjs.map +1 -1
- package/resources/experiments.d.mts +4009 -272
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +4009 -272
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +30 -19
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +30 -19
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +659 -17
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +659 -17
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +11 -10
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +11 -10
- package/resources/funnels.mjs.map +1 -1
- package/resources/heatmap-pages.d.mts +3 -2
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +3 -2
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +3 -2
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +3 -2
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +597 -28
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +597 -28
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +17 -12
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +17 -12
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/locations.d.mts +31 -10
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +31 -10
- package/resources/locations.d.ts.map +1 -1
- package/resources/locations.js +6 -5
- package/resources/locations.js.map +1 -1
- package/resources/locations.mjs +6 -5
- package/resources/locations.mjs.map +1 -1
- package/resources/mappings.d.mts +558 -24
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +558 -24
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +40 -12
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +40 -12
- package/resources/mappings.mjs.map +1 -1
- package/resources/me.d.mts +29 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +29 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +17 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +13 -0
- package/resources/me.mjs.map +1 -0
- package/resources/personalization-properties.d.mts +10 -7
- package/resources/personalization-properties.d.mts.map +1 -1
- package/resources/personalization-properties.d.ts +10 -7
- package/resources/personalization-properties.d.ts.map +1 -1
- package/resources/personalization-properties.js +10 -7
- package/resources/personalization-properties.js.map +1 -1
- package/resources/personalization-properties.mjs +10 -7
- package/resources/personalization-properties.mjs.map +1 -1
- package/resources/replay-settings.d.mts +126 -9
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +126 -9
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +9 -6
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +9 -6
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/session-replays.d.mts +9 -2
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +9 -2
- package/resources/session-replays.d.ts.map +1 -1
- package/resources/session-replays.js +4 -2
- package/resources/session-replays.js.map +1 -1
- package/resources/session-replays.mjs +4 -2
- package/resources/session-replays.mjs.map +1 -1
- package/resources/short-links.d.mts +733 -17
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +733 -17
- package/resources/short-links.d.ts.map +1 -1
- package/resources/short-links.js +11 -7
- package/resources/short-links.js.map +1 -1
- package/resources/short-links.mjs +11 -7
- package/resources/short-links.mjs.map +1 -1
- package/resources/sources.d.mts +98 -17
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +98 -17
- package/resources/sources.d.ts.map +1 -1
- package/resources/sources.js +12 -6
- package/resources/sources.js.map +1 -1
- package/resources/sources.mjs +12 -6
- package/resources/sources.mjs.map +1 -1
- package/resources/tag-manager-asset-folders.d.mts +2 -1
- package/resources/tag-manager-asset-folders.d.mts.map +1 -1
- package/resources/tag-manager-asset-folders.d.ts +2 -1
- package/resources/tag-manager-asset-folders.d.ts.map +1 -1
- package/resources/tag-manager-asset-folders.js +2 -1
- package/resources/tag-manager-asset-folders.js.map +1 -1
- package/resources/tag-manager-asset-folders.mjs +2 -1
- package/resources/tag-manager-asset-folders.mjs.map +1 -1
- package/resources/tag-manager-folders.d.mts +9 -7
- package/resources/tag-manager-folders.d.mts.map +1 -1
- package/resources/tag-manager-folders.d.ts +9 -7
- package/resources/tag-manager-folders.d.ts.map +1 -1
- package/resources/tag-manager-folders.js +9 -7
- package/resources/tag-manager-folders.js.map +1 -1
- package/resources/tag-manager-folders.mjs +9 -7
- package/resources/tag-manager-folders.mjs.map +1 -1
- package/resources/tag-manager-tags.d.mts +13 -7
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +13 -7
- package/resources/tag-manager-tags.d.ts.map +1 -1
- package/resources/tag-manager-tags.js +10 -6
- package/resources/tag-manager-tags.js.map +1 -1
- package/resources/tag-manager-tags.mjs +10 -6
- package/resources/tag-manager-tags.mjs.map +1 -1
- package/resources/tag-manager-triggers.d.mts +14 -7
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +14 -7
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-triggers.js +11 -6
- package/resources/tag-manager-triggers.js.map +1 -1
- package/resources/tag-manager-triggers.mjs +11 -6
- package/resources/tag-manager-triggers.mjs.map +1 -1
- package/resources/tag-manager-variables.d.mts +53 -23
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +53 -23
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-manager-variables.js +10 -6
- package/resources/tag-manager-variables.js.map +1 -1
- package/resources/tag-manager-variables.mjs +10 -6
- package/resources/tag-manager-variables.mjs.map +1 -1
- package/resources/tag-managers.d.mts +24 -6
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +24 -6
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +18 -5
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +18 -5
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +73 -15
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +73 -15
- package/resources/test-events.d.ts.map +1 -1
- package/resources/test-events.js +6 -4
- package/resources/test-events.js.map +1 -1
- package/resources/test-events.mjs +6 -4
- package/resources/test-events.mjs.map +1 -1
- package/resources/translation-widgets.d.mts +7 -6
- package/resources/translation-widgets.d.mts.map +1 -1
- package/resources/translation-widgets.d.ts +7 -6
- package/resources/translation-widgets.d.ts.map +1 -1
- package/resources/translation-widgets.js +7 -6
- package/resources/translation-widgets.js.map +1 -1
- package/resources/translation-widgets.mjs +7 -6
- package/resources/translation-widgets.mjs.map +1 -1
- package/resources/versions.d.mts +102 -47
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +102 -47
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +20 -15
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +20 -15
- package/resources/versions.mjs.map +1 -1
- package/resources/video-channels.d.mts +47 -13
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +47 -13
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/video-channels.js +15 -9
- package/resources/video-channels.js.map +1 -1
- package/resources/video-channels.mjs +15 -9
- package/resources/video-channels.mjs.map +1 -1
- package/resources/videos.d.mts +21 -14
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +21 -14
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +21 -14
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +21 -14
- package/resources/videos.mjs.map +1 -1
- package/resources/web-analytics.d.mts +14 -9
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +14 -9
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +14 -9
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +14 -9
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanner-rules.d.mts +10 -6
- package/resources/web-scanner-rules.d.mts.map +1 -1
- package/resources/web-scanner-rules.d.ts +10 -6
- package/resources/web-scanner-rules.d.ts.map +1 -1
- package/resources/web-scanner-rules.js +10 -6
- package/resources/web-scanner-rules.js.map +1 -1
- package/resources/web-scanner-rules.mjs +10 -6
- package/resources/web-scanner-rules.mjs.map +1 -1
- package/resources/web-scanners.d.mts +26 -19
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +26 -19
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +25 -18
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +25 -18
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +44 -0
- package/src/resources/allowed-events.ts +9 -7
- package/src/resources/analytics.ts +4 -2
- package/src/resources/attribution.ts +8 -5
- package/src/resources/audience-conversion-reports.ts +11 -9
- package/src/resources/consent-analytics.ts +2 -1
- package/src/resources/consent-settings.ts +7576 -519
- package/src/resources/conversion-journey-summaries.ts +10 -5
- package/src/resources/custom-domains.ts +450 -0
- package/src/resources/data-governance.ts +53 -21
- package/src/resources/default-mappings.ts +309 -8
- package/src/resources/destinations.ts +40 -15
- package/src/resources/experiment-settings.ts +9 -6
- package/src/resources/experiment-variants.ts +140 -19
- package/src/resources/experiments.ts +8051 -462
- package/src/resources/funnels.ts +1366 -17
- package/src/resources/heatmap-pages.ts +3 -2
- package/src/resources/index.ts +19 -0
- package/src/resources/journey-flows.ts +1241 -28
- package/src/resources/locations.ts +41 -10
- package/src/resources/mappings.ts +812 -31
- package/src/resources/me.ts +37 -0
- package/src/resources/personalization-properties.ts +10 -7
- package/src/resources/replay-settings.ts +147 -9
- package/src/resources/session-replays.ts +10 -2
- package/src/resources/short-links.ts +883 -17
- package/src/resources/sources.ts +108 -17
- package/src/resources/tag-manager-asset-folders.ts +2 -1
- package/src/resources/tag-manager-folders.ts +9 -7
- package/src/resources/tag-manager-tags.ts +17 -7
- package/src/resources/tag-manager-triggers.ts +18 -7
- package/src/resources/tag-manager-variables.ts +101 -19
- package/src/resources/tag-managers.ts +35 -5
- package/src/resources/test-events.ts +53 -15
- package/src/resources/translation-widgets.ts +7 -6
- package/src/resources/versions.ts +104 -47
- package/src/resources/video-channels.ts +59 -13
- package/src/resources/videos.ts +21 -14
- package/src/resources/web-analytics.ts +14 -9
- package/src/resources/web-scanner-rules.ts +10 -6
- package/src/resources/web-scanners.ts +26 -19
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -10,8 +10,8 @@ export class DefaultMappings extends APIResource {
|
|
|
10
10
|
* List every stored default mapping for the account, one per destination that has
|
|
11
11
|
* ever written a default. Destinations that have not yet written a default mapping
|
|
12
12
|
* do not appear here. Use `GET /rest/v1/default-mappings/{destinationId}` to fetch
|
|
13
|
-
* the hydrated would-be row for a specific destination. Requires scope
|
|
14
|
-
* mapping:list
|
|
13
|
+
* the hydrated would-be row for a specific destination. Requires API-key scope or
|
|
14
|
+
* current OAuth user permission: mapping:list
|
|
15
15
|
*/
|
|
16
16
|
list(options?: RequestOptions): APIPromise<DefaultMappingListResponse> {
|
|
17
17
|
return this._client.get('/rest/v1/default-mappings', options);
|
|
@@ -21,7 +21,8 @@ export class DefaultMappings extends APIResource {
|
|
|
21
21
|
* Fetch the destination's default mapping by destination id. Returns a hydrated
|
|
22
22
|
* row with empty `mappings[]` when no default mapping has been written yet (so
|
|
23
23
|
* callers do not need to handle a 404-vs-200 branch). Each destination has at most
|
|
24
|
-
* one default mapping. Requires scope
|
|
24
|
+
* one default mapping. Requires API-key scope or current OAuth user permission:
|
|
25
|
+
* mapping:find
|
|
25
26
|
*/
|
|
26
27
|
retrieve(id: string, options?: RequestOptions): APIPromise<DefaultMappingRetrieveResponse> {
|
|
27
28
|
return this._client.get(path`/rest/v1/default-mappings/${id}`, options);
|
|
@@ -30,8 +31,8 @@ export class DefaultMappings extends APIResource {
|
|
|
30
31
|
/**
|
|
31
32
|
* Upsert the destination default mapping. Always replaces `mappings[]` wholesale
|
|
32
33
|
* (default mappings have no merge-partial semantic). Default mappings cannot have
|
|
33
|
-
* custom `logic`; the field is not accepted on this endpoint. Requires
|
|
34
|
-
* mapping:update
|
|
34
|
+
* custom `logic`; the field is not accepted on this endpoint. Requires API-key
|
|
35
|
+
* scope or current OAuth user permission: mapping:update
|
|
35
36
|
*/
|
|
36
37
|
replace(
|
|
37
38
|
id: string,
|
|
@@ -68,7 +69,7 @@ export namespace DefaultMappingListResponse {
|
|
|
68
69
|
*
|
|
69
70
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
70
71
|
*/
|
|
71
|
-
logic?:
|
|
72
|
+
logic?: Entity.Logic | null;
|
|
72
73
|
|
|
73
74
|
name?: string | null;
|
|
74
75
|
|
|
@@ -133,6 +134,106 @@ export namespace DefaultMappingListResponse {
|
|
|
133
134
|
| 'UpperCase'
|
|
134
135
|
| null;
|
|
135
136
|
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
140
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
141
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
142
|
+
*
|
|
143
|
+
* Example leaf:
|
|
144
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
145
|
+
*
|
|
146
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
147
|
+
*/
|
|
148
|
+
export interface Logic {
|
|
149
|
+
/**
|
|
150
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
151
|
+
* or combinator).
|
|
152
|
+
*/
|
|
153
|
+
AND?: Array<{
|
|
154
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
155
|
+
}> | null;
|
|
156
|
+
|
|
157
|
+
condition?: Logic.Condition | null;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Negates a single child logic node.
|
|
161
|
+
*/
|
|
162
|
+
NOT?: {
|
|
163
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
164
|
+
} | null;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
168
|
+
* or combinator).
|
|
169
|
+
*/
|
|
170
|
+
OR?: Array<{
|
|
171
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
172
|
+
}> | null;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export namespace Logic {
|
|
176
|
+
export interface Condition {
|
|
177
|
+
/**
|
|
178
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
179
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
180
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
181
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
182
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
183
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
184
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
185
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
186
|
+
*/
|
|
187
|
+
operator:
|
|
188
|
+
| 'Is'
|
|
189
|
+
| 'IsNot'
|
|
190
|
+
| 'Contains'
|
|
191
|
+
| 'DoesNotContain'
|
|
192
|
+
| 'StartsWith'
|
|
193
|
+
| 'EndsWith'
|
|
194
|
+
| 'IsFalsy'
|
|
195
|
+
| 'IsTruthy'
|
|
196
|
+
| 'IsNull'
|
|
197
|
+
| 'IsNotNull'
|
|
198
|
+
| 'IsUndefined'
|
|
199
|
+
| 'IsNotUndefined'
|
|
200
|
+
| 'IsGreaterThan'
|
|
201
|
+
| 'IsGreaterThanOrEqual'
|
|
202
|
+
| 'IsLessThan'
|
|
203
|
+
| 'IsLessThanOrEqual'
|
|
204
|
+
| 'IsIn'
|
|
205
|
+
| 'IsNotIn'
|
|
206
|
+
| 'IsFoundIn'
|
|
207
|
+
| 'IsNotFoundIn'
|
|
208
|
+
| 'IsTrue'
|
|
209
|
+
| 'IsFalse'
|
|
210
|
+
| 'IsBefore'
|
|
211
|
+
| 'IsAfter'
|
|
212
|
+
| 'IsBetween'
|
|
213
|
+
| 'IsOnOrBefore'
|
|
214
|
+
| 'IsOnOrAfter'
|
|
215
|
+
| 'MatchesRegex'
|
|
216
|
+
| 'MatchesRegexIgnoreCase'
|
|
217
|
+
| 'DoesNotMatchRegex'
|
|
218
|
+
| 'DoesNotMatchRegexIgnoreCase';
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
222
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
223
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
224
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
225
|
+
* and would be compared as a literal string.
|
|
226
|
+
*/
|
|
227
|
+
property: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* String compared against the resolved property. Operators that take no value
|
|
231
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
232
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
233
|
+
*/
|
|
234
|
+
value: string;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
136
237
|
}
|
|
137
238
|
}
|
|
138
239
|
|
|
@@ -157,7 +258,7 @@ export interface DefaultMappingRetrieveResponse {
|
|
|
157
258
|
*
|
|
158
259
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
159
260
|
*/
|
|
160
|
-
logic?:
|
|
261
|
+
logic?: DefaultMappingRetrieveResponse.Logic | null;
|
|
161
262
|
|
|
162
263
|
name?: string | null;
|
|
163
264
|
|
|
@@ -222,6 +323,106 @@ export namespace DefaultMappingRetrieveResponse {
|
|
|
222
323
|
| 'UpperCase'
|
|
223
324
|
| null;
|
|
224
325
|
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
329
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
330
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
331
|
+
*
|
|
332
|
+
* Example leaf:
|
|
333
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
334
|
+
*
|
|
335
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
336
|
+
*/
|
|
337
|
+
export interface Logic {
|
|
338
|
+
/**
|
|
339
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
340
|
+
* or combinator).
|
|
341
|
+
*/
|
|
342
|
+
AND?: Array<{
|
|
343
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
344
|
+
}> | null;
|
|
345
|
+
|
|
346
|
+
condition?: Logic.Condition | null;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Negates a single child logic node.
|
|
350
|
+
*/
|
|
351
|
+
NOT?: {
|
|
352
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
353
|
+
} | null;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
357
|
+
* or combinator).
|
|
358
|
+
*/
|
|
359
|
+
OR?: Array<{
|
|
360
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
361
|
+
}> | null;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export namespace Logic {
|
|
365
|
+
export interface Condition {
|
|
366
|
+
/**
|
|
367
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
368
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
369
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
370
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
371
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
372
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
373
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
374
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
375
|
+
*/
|
|
376
|
+
operator:
|
|
377
|
+
| 'Is'
|
|
378
|
+
| 'IsNot'
|
|
379
|
+
| 'Contains'
|
|
380
|
+
| 'DoesNotContain'
|
|
381
|
+
| 'StartsWith'
|
|
382
|
+
| 'EndsWith'
|
|
383
|
+
| 'IsFalsy'
|
|
384
|
+
| 'IsTruthy'
|
|
385
|
+
| 'IsNull'
|
|
386
|
+
| 'IsNotNull'
|
|
387
|
+
| 'IsUndefined'
|
|
388
|
+
| 'IsNotUndefined'
|
|
389
|
+
| 'IsGreaterThan'
|
|
390
|
+
| 'IsGreaterThanOrEqual'
|
|
391
|
+
| 'IsLessThan'
|
|
392
|
+
| 'IsLessThanOrEqual'
|
|
393
|
+
| 'IsIn'
|
|
394
|
+
| 'IsNotIn'
|
|
395
|
+
| 'IsFoundIn'
|
|
396
|
+
| 'IsNotFoundIn'
|
|
397
|
+
| 'IsTrue'
|
|
398
|
+
| 'IsFalse'
|
|
399
|
+
| 'IsBefore'
|
|
400
|
+
| 'IsAfter'
|
|
401
|
+
| 'IsBetween'
|
|
402
|
+
| 'IsOnOrBefore'
|
|
403
|
+
| 'IsOnOrAfter'
|
|
404
|
+
| 'MatchesRegex'
|
|
405
|
+
| 'MatchesRegexIgnoreCase'
|
|
406
|
+
| 'DoesNotMatchRegex'
|
|
407
|
+
| 'DoesNotMatchRegexIgnoreCase';
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
411
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
412
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
413
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
414
|
+
* and would be compared as a literal string.
|
|
415
|
+
*/
|
|
416
|
+
property: string;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* String compared against the resolved property. Operators that take no value
|
|
420
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
421
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
422
|
+
*/
|
|
423
|
+
value: string;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
225
426
|
}
|
|
226
427
|
|
|
227
428
|
export interface DefaultMappingReplaceResponse {
|
|
@@ -245,7 +446,7 @@ export interface DefaultMappingReplaceResponse {
|
|
|
245
446
|
*
|
|
246
447
|
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
247
448
|
*/
|
|
248
|
-
logic?:
|
|
449
|
+
logic?: DefaultMappingReplaceResponse.Logic | null;
|
|
249
450
|
|
|
250
451
|
name?: string | null;
|
|
251
452
|
|
|
@@ -310,6 +511,106 @@ export namespace DefaultMappingReplaceResponse {
|
|
|
310
511
|
| 'UpperCase'
|
|
311
512
|
| null;
|
|
312
513
|
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Condition tree gating when this mapping fires. A node is either a leaf
|
|
517
|
+
* `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
|
|
518
|
+
* themselves logic nodes, so trees nest arbitrarily.
|
|
519
|
+
*
|
|
520
|
+
* Example leaf:
|
|
521
|
+
* `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
|
|
522
|
+
*
|
|
523
|
+
* Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
|
|
524
|
+
*/
|
|
525
|
+
export interface Logic {
|
|
526
|
+
/**
|
|
527
|
+
* All child nodes must match. Each child is itself a logic node (leaf `condition`
|
|
528
|
+
* or combinator).
|
|
529
|
+
*/
|
|
530
|
+
AND?: Array<{
|
|
531
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
532
|
+
}> | null;
|
|
533
|
+
|
|
534
|
+
condition?: Logic.Condition | null;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Negates a single child logic node.
|
|
538
|
+
*/
|
|
539
|
+
NOT?: {
|
|
540
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
541
|
+
} | null;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Any child node must match. Each child is itself a logic node (leaf `condition`
|
|
545
|
+
* or combinator).
|
|
546
|
+
*/
|
|
547
|
+
OR?: Array<{
|
|
548
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
549
|
+
}> | null;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
export namespace Logic {
|
|
553
|
+
export interface Condition {
|
|
554
|
+
/**
|
|
555
|
+
* Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
|
|
556
|
+
* `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
|
|
557
|
+
* `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
|
|
558
|
+
* `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
|
|
559
|
+
* `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
|
|
560
|
+
* `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
|
|
561
|
+
* `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
|
|
562
|
+
* `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
|
|
563
|
+
*/
|
|
564
|
+
operator:
|
|
565
|
+
| 'Is'
|
|
566
|
+
| 'IsNot'
|
|
567
|
+
| 'Contains'
|
|
568
|
+
| 'DoesNotContain'
|
|
569
|
+
| 'StartsWith'
|
|
570
|
+
| 'EndsWith'
|
|
571
|
+
| 'IsFalsy'
|
|
572
|
+
| 'IsTruthy'
|
|
573
|
+
| 'IsNull'
|
|
574
|
+
| 'IsNotNull'
|
|
575
|
+
| 'IsUndefined'
|
|
576
|
+
| 'IsNotUndefined'
|
|
577
|
+
| 'IsGreaterThan'
|
|
578
|
+
| 'IsGreaterThanOrEqual'
|
|
579
|
+
| 'IsLessThan'
|
|
580
|
+
| 'IsLessThanOrEqual'
|
|
581
|
+
| 'IsIn'
|
|
582
|
+
| 'IsNotIn'
|
|
583
|
+
| 'IsFoundIn'
|
|
584
|
+
| 'IsNotFoundIn'
|
|
585
|
+
| 'IsTrue'
|
|
586
|
+
| 'IsFalse'
|
|
587
|
+
| 'IsBefore'
|
|
588
|
+
| 'IsAfter'
|
|
589
|
+
| 'IsBetween'
|
|
590
|
+
| 'IsOnOrBefore'
|
|
591
|
+
| 'IsOnOrAfter'
|
|
592
|
+
| 'MatchesRegex'
|
|
593
|
+
| 'MatchesRegexIgnoreCase'
|
|
594
|
+
| 'DoesNotMatchRegex'
|
|
595
|
+
| 'DoesNotMatchRegexIgnoreCase';
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Bare dotted path into the event/visitor record. Examples: `$event.event`,
|
|
599
|
+
* `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
|
|
600
|
+
* optional and stripped before lookup. Do **not** use `{{...}}` here — that
|
|
601
|
+
* template syntax is for mapping values (`mappings[].map`), not logic conditions,
|
|
602
|
+
* and would be compared as a literal string.
|
|
603
|
+
*/
|
|
604
|
+
property: string;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* String compared against the resolved property. Operators that take no value
|
|
608
|
+
* (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
|
|
609
|
+
* `IsTrue`, `IsFalse`) ignore this field — send `""`.
|
|
610
|
+
*/
|
|
611
|
+
value: string;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
313
614
|
}
|
|
314
615
|
|
|
315
616
|
export interface DefaultMappingReplaceParams {
|
|
@@ -8,7 +8,8 @@ import { path } from '../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Destinations extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* List all destinations. Requires scope
|
|
11
|
+
* List all destinations. Requires API-key scope or current OAuth user permission:
|
|
12
|
+
* destination:list
|
|
12
13
|
*/
|
|
13
14
|
list(
|
|
14
15
|
query: DestinationListParams | null | undefined = {},
|
|
@@ -21,14 +22,16 @@ export class Destinations extends APIResource {
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
|
-
* Create a new destination. Requires scope
|
|
25
|
+
* Create a new destination. Requires API-key scope or current OAuth user
|
|
26
|
+
* permission: destination:create
|
|
25
27
|
*/
|
|
26
28
|
create(body: DestinationCreateParams, options?: RequestOptions): APIPromise<DestinationCreateResponse> {
|
|
27
29
|
return this._client.post('/rest/v1/destinations', { body, ...options });
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
|
-
* Find a single destination by ID. Requires scope
|
|
33
|
+
* Find a single destination by ID. Requires API-key scope or current OAuth user
|
|
34
|
+
* permission: destination:find
|
|
32
35
|
*/
|
|
33
36
|
retrieve(id: string, options?: RequestOptions): APIPromise<DestinationRetrieveResponse> {
|
|
34
37
|
return this._client.get(path`/rest/v1/destinations/${id}`, options);
|
|
@@ -38,7 +41,7 @@ export class Destinations extends APIResource {
|
|
|
38
41
|
* Partially update a destination. Only the fields you send are changed; omitted
|
|
39
42
|
* fields are unchanged. The `settings` object is patch-only: omitted keys keep
|
|
40
43
|
* their current value, and send `null` to clear a specific setting. Requires
|
|
41
|
-
* scope: destination:update
|
|
44
|
+
* API-key scope or current OAuth user permission: destination:update
|
|
42
45
|
*/
|
|
43
46
|
update(
|
|
44
47
|
id: string,
|
|
@@ -49,7 +52,8 @@ export class Destinations extends APIResource {
|
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
/**
|
|
52
|
-
* Delete a destination. Requires scope
|
|
55
|
+
* Delete a destination. Requires API-key scope or current OAuth user permission:
|
|
56
|
+
* destination:delete
|
|
53
57
|
*/
|
|
54
58
|
delete(id: string, options?: RequestOptions): APIPromise<DestinationDeleteResponse> {
|
|
55
59
|
return this._client.delete(path`/rest/v1/destinations/${id}`, options);
|
|
@@ -61,7 +65,7 @@ export class Destinations extends APIResource {
|
|
|
61
65
|
* settings descriptor used to configure a destination of that type.
|
|
62
66
|
* Account-agnostic — the response is the same for every API key. Filter
|
|
63
67
|
* client-side to find a specific type (e.g. `Klaviyo`, `Facebook`). Requires
|
|
64
|
-
* scope: destination:list
|
|
68
|
+
* API-key scope or current OAuth user permission: destination:list
|
|
65
69
|
*/
|
|
66
70
|
types(options?: RequestOptions): APIPromise<DestinationTypesResponse> {
|
|
67
71
|
return this._client.get('/rest/v1/destinations/types', options);
|
|
@@ -70,7 +74,8 @@ export class Destinations extends APIResource {
|
|
|
70
74
|
/**
|
|
71
75
|
* Snapshot of dispatch health for this destination over the trailing 24 hours:
|
|
72
76
|
* counts of succeeded, failed, and intentionally stopped/blocked dispatches, plus
|
|
73
|
-
* a derived `status`. Requires scope
|
|
77
|
+
* a derived `status`. Requires API-key scope or current OAuth user permission:
|
|
78
|
+
* destination:find
|
|
74
79
|
*/
|
|
75
80
|
health(id: string, options?: RequestOptions): APIPromise<DestinationHealthResponse> {
|
|
76
81
|
return this._client.get(path`/rest/v1/destinations/${id}/health`, options);
|
|
@@ -134,6 +139,7 @@ export interface DestinationListResponse {
|
|
|
134
139
|
| 'GoogleDataManagerEventIngest'
|
|
135
140
|
| 'GooglePubSub'
|
|
136
141
|
| 'GoogleStorage'
|
|
142
|
+
| 'GravityCAPI'
|
|
137
143
|
| 'HTTPCustomRequest'
|
|
138
144
|
| 'HTTPDestination'
|
|
139
145
|
| 'Hubspot'
|
|
@@ -147,6 +153,7 @@ export interface DestinationListResponse {
|
|
|
147
153
|
| 'MNTN'
|
|
148
154
|
| 'MNTNAudience'
|
|
149
155
|
| 'Mailchimp'
|
|
156
|
+
| 'MailchimpAudience'
|
|
150
157
|
| 'MicrosoftCAPI'
|
|
151
158
|
| 'Mixpanel'
|
|
152
159
|
| 'NextdoorAds'
|
|
@@ -191,7 +198,9 @@ export interface DestinationListResponse {
|
|
|
191
198
|
|
|
192
199
|
name?: string | null;
|
|
193
200
|
|
|
194
|
-
settings?:
|
|
201
|
+
settings?: {
|
|
202
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
203
|
+
} | null;
|
|
195
204
|
|
|
196
205
|
updatedAt?: string | null;
|
|
197
206
|
}
|
|
@@ -251,6 +260,7 @@ export interface DestinationCreateResponse {
|
|
|
251
260
|
| 'GoogleDataManagerEventIngest'
|
|
252
261
|
| 'GooglePubSub'
|
|
253
262
|
| 'GoogleStorage'
|
|
263
|
+
| 'GravityCAPI'
|
|
254
264
|
| 'HTTPCustomRequest'
|
|
255
265
|
| 'HTTPDestination'
|
|
256
266
|
| 'Hubspot'
|
|
@@ -264,6 +274,7 @@ export interface DestinationCreateResponse {
|
|
|
264
274
|
| 'MNTN'
|
|
265
275
|
| 'MNTNAudience'
|
|
266
276
|
| 'Mailchimp'
|
|
277
|
+
| 'MailchimpAudience'
|
|
267
278
|
| 'MicrosoftCAPI'
|
|
268
279
|
| 'Mixpanel'
|
|
269
280
|
| 'NextdoorAds'
|
|
@@ -308,7 +319,9 @@ export interface DestinationCreateResponse {
|
|
|
308
319
|
|
|
309
320
|
name?: string | null;
|
|
310
321
|
|
|
311
|
-
settings?:
|
|
322
|
+
settings?: {
|
|
323
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
324
|
+
} | null;
|
|
312
325
|
|
|
313
326
|
updatedAt?: string | null;
|
|
314
327
|
}
|
|
@@ -368,6 +381,7 @@ export interface DestinationRetrieveResponse {
|
|
|
368
381
|
| 'GoogleDataManagerEventIngest'
|
|
369
382
|
| 'GooglePubSub'
|
|
370
383
|
| 'GoogleStorage'
|
|
384
|
+
| 'GravityCAPI'
|
|
371
385
|
| 'HTTPCustomRequest'
|
|
372
386
|
| 'HTTPDestination'
|
|
373
387
|
| 'Hubspot'
|
|
@@ -381,6 +395,7 @@ export interface DestinationRetrieveResponse {
|
|
|
381
395
|
| 'MNTN'
|
|
382
396
|
| 'MNTNAudience'
|
|
383
397
|
| 'Mailchimp'
|
|
398
|
+
| 'MailchimpAudience'
|
|
384
399
|
| 'MicrosoftCAPI'
|
|
385
400
|
| 'Mixpanel'
|
|
386
401
|
| 'NextdoorAds'
|
|
@@ -425,7 +440,9 @@ export interface DestinationRetrieveResponse {
|
|
|
425
440
|
|
|
426
441
|
name?: string | null;
|
|
427
442
|
|
|
428
|
-
settings?:
|
|
443
|
+
settings?: {
|
|
444
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
445
|
+
} | null;
|
|
429
446
|
|
|
430
447
|
updatedAt?: string | null;
|
|
431
448
|
}
|
|
@@ -485,6 +502,7 @@ export interface DestinationUpdateResponse {
|
|
|
485
502
|
| 'GoogleDataManagerEventIngest'
|
|
486
503
|
| 'GooglePubSub'
|
|
487
504
|
| 'GoogleStorage'
|
|
505
|
+
| 'GravityCAPI'
|
|
488
506
|
| 'HTTPCustomRequest'
|
|
489
507
|
| 'HTTPDestination'
|
|
490
508
|
| 'Hubspot'
|
|
@@ -498,6 +516,7 @@ export interface DestinationUpdateResponse {
|
|
|
498
516
|
| 'MNTN'
|
|
499
517
|
| 'MNTNAudience'
|
|
500
518
|
| 'Mailchimp'
|
|
519
|
+
| 'MailchimpAudience'
|
|
501
520
|
| 'MicrosoftCAPI'
|
|
502
521
|
| 'Mixpanel'
|
|
503
522
|
| 'NextdoorAds'
|
|
@@ -542,7 +561,9 @@ export interface DestinationUpdateResponse {
|
|
|
542
561
|
|
|
543
562
|
name?: string | null;
|
|
544
563
|
|
|
545
|
-
settings?:
|
|
564
|
+
settings?: {
|
|
565
|
+
[key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
566
|
+
} | null;
|
|
546
567
|
|
|
547
568
|
updatedAt?: string | null;
|
|
548
569
|
}
|
|
@@ -635,7 +656,8 @@ export namespace DestinationTypesResponse {
|
|
|
635
656
|
| 'MNTN'
|
|
636
657
|
| 'ZohoCRM'
|
|
637
658
|
| 'Rokt'
|
|
638
|
-
| 'Fullstory'
|
|
659
|
+
| 'Fullstory'
|
|
660
|
+
| 'GravityCAPI';
|
|
639
661
|
|
|
640
662
|
capabilities: Entity.Capabilities;
|
|
641
663
|
|
|
@@ -838,6 +860,7 @@ export interface DestinationListParams extends CursorParams {
|
|
|
838
860
|
| 'GoogleDataManagerEventIngest'
|
|
839
861
|
| 'GooglePubSub'
|
|
840
862
|
| 'GoogleStorage'
|
|
863
|
+
| 'GravityCAPI'
|
|
841
864
|
| 'HTTPCustomRequest'
|
|
842
865
|
| 'HTTPDestination'
|
|
843
866
|
| 'Hubspot'
|
|
@@ -851,6 +874,7 @@ export interface DestinationListParams extends CursorParams {
|
|
|
851
874
|
| 'MNTN'
|
|
852
875
|
| 'MNTNAudience'
|
|
853
876
|
| 'Mailchimp'
|
|
877
|
+
| 'MailchimpAudience'
|
|
854
878
|
| 'MicrosoftCAPI'
|
|
855
879
|
| 'Mixpanel'
|
|
856
880
|
| 'NextdoorAds'
|
|
@@ -977,7 +1001,8 @@ export interface DestinationCreateParams {
|
|
|
977
1001
|
| 'MNTN'
|
|
978
1002
|
| 'ZohoCRM'
|
|
979
1003
|
| 'Rokt'
|
|
980
|
-
| 'Fullstory'
|
|
1004
|
+
| 'Fullstory'
|
|
1005
|
+
| 'GravityCAPI';
|
|
981
1006
|
|
|
982
1007
|
name?: string | null;
|
|
983
1008
|
|
|
@@ -985,7 +1010,7 @@ export interface DestinationCreateParams {
|
|
|
985
1010
|
* Per-type configuration keys and values. Call GET /rest/v1/destinations/types to
|
|
986
1011
|
* get the valid keys for your destination type.
|
|
987
1012
|
*/
|
|
988
|
-
settings?:
|
|
1013
|
+
settings?: { [key: string]: string | null | number | boolean } | null;
|
|
989
1014
|
}
|
|
990
1015
|
|
|
991
1016
|
export interface DestinationUpdateParams {
|
|
@@ -999,7 +1024,7 @@ export interface DestinationUpdateParams {
|
|
|
999
1024
|
* Per-type configuration keys and values. Call GET /rest/v1/destinations/types to
|
|
1000
1025
|
* get the valid keys for your destination type.
|
|
1001
1026
|
*/
|
|
1002
|
-
settings?:
|
|
1027
|
+
settings?: { [key: string]: string | null | number | boolean } | null;
|
|
1003
1028
|
|
|
1004
1029
|
status?: 'Disabled' | 'Enabled' | null;
|
|
1005
1030
|
}
|
|
@@ -8,8 +8,8 @@ import { path } from '../internal/utils/path';
|
|
|
8
8
|
export class ExperimentSettings extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* List experiment settings records for the account. Use the returned `id` as
|
|
11
|
-
* `experimentSettingsId` when creating an experiment. Requires scope
|
|
12
|
-
* experimentSettings:list
|
|
11
|
+
* `experimentSettingsId` when creating an experiment. Requires API-key scope or
|
|
12
|
+
* current OAuth user permission: experimentSettings:list
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
@@ -23,7 +23,8 @@ export class ExperimentSettings extends APIResource {
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Create the account-level experimentation bootstrap record. Most accounts should
|
|
26
|
-
* only ever have one. Requires scope
|
|
26
|
+
* only ever have one. Requires API-key scope or current OAuth user permission:
|
|
27
|
+
* experimentSettings:create
|
|
27
28
|
*
|
|
28
29
|
* @example
|
|
29
30
|
* ```ts
|
|
@@ -40,7 +41,8 @@ export class ExperimentSettings extends APIResource {
|
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
43
|
* Find a single experiment settings record by ID. Returns 404 when no record
|
|
43
|
-
* matches the supplied id. Requires scope
|
|
44
|
+
* matches the supplied id. Requires API-key scope or current OAuth user
|
|
45
|
+
* permission: experimentSettings:find
|
|
44
46
|
*
|
|
45
47
|
* @example
|
|
46
48
|
* ```ts
|
|
@@ -54,7 +56,8 @@ export class ExperimentSettings extends APIResource {
|
|
|
54
56
|
|
|
55
57
|
/**
|
|
56
58
|
* Partially update an experiment settings. Only the fields you send are changed.
|
|
57
|
-
* Requires scope
|
|
59
|
+
* Requires API-key scope or current OAuth user permission:
|
|
60
|
+
* experimentSettings:update
|
|
58
61
|
*
|
|
59
62
|
* @example
|
|
60
63
|
* ```ts
|
|
@@ -73,7 +76,7 @@ export class ExperimentSettings extends APIResource {
|
|
|
73
76
|
/**
|
|
74
77
|
* Delete the experimentation bootstrap record. This also deletes child
|
|
75
78
|
* experiments, variants, and personalization properties owned by it. Requires
|
|
76
|
-
* scope: experimentSettings:delete
|
|
79
|
+
* API-key scope or current OAuth user permission: experimentSettings:delete
|
|
77
80
|
*
|
|
78
81
|
* @example
|
|
79
82
|
* ```ts
|