@oursprivacy/platform-sdk 1.51.0 → 1.53.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 +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- 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 +220 -120
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +220 -120
- 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/data-governance.d.mts +8 -6
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +8 -6
- 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 +6 -5
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +6 -5
- 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 +17 -12
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +17 -12
- 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 +9 -5
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +9 -5
- 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 +30 -19
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +30 -19
- 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 +11 -10
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +11 -10
- 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 +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +17 -12
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +17 -12
- 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 +6 -5
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +6 -5
- 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 +18 -12
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +18 -12
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +18 -12
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +18 -12
- package/resources/mappings.mjs.map +1 -1
- 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 +9 -6
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +9 -6
- 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 +4 -2
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +4 -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 +11 -7
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +11 -7
- 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 +12 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +12 -6
- 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 +11 -7
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +11 -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 +12 -7
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +12 -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 +27 -23
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +27 -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 +10 -5
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +10 -5
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +10 -5
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +10 -5
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +351 -12
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +351 -12
- package/resources/test-events.d.ts.map +1 -1
- package/resources/test-events.js +11 -8
- package/resources/test-events.js.map +1 -1
- package/resources/test-events.mjs +11 -8
- 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 +21 -11
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +21 -11
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +16 -11
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +16 -11
- package/resources/versions.mjs.map +1 -1
- package/resources/video-channels.d.mts +15 -9
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +15 -9
- 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 +8 -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 +264 -120
- package/src/resources/conversion-journey-summaries.ts +10 -5
- package/src/resources/data-governance.ts +8 -6
- package/src/resources/default-mappings.ts +6 -5
- package/src/resources/destinations.ts +17 -7
- package/src/resources/experiment-settings.ts +9 -6
- package/src/resources/experiment-variants.ts +9 -5
- package/src/resources/experiments.ts +30 -19
- package/src/resources/funnels.ts +11 -10
- package/src/resources/heatmap-pages.ts +3 -2
- package/src/resources/index.ts +4 -0
- package/src/resources/journey-flows.ts +17 -12
- package/src/resources/locations.ts +6 -5
- package/src/resources/mappings.ts +18 -12
- package/src/resources/personalization-properties.ts +10 -7
- package/src/resources/replay-settings.ts +9 -6
- package/src/resources/session-replays.ts +4 -2
- package/src/resources/short-links.ts +11 -7
- package/src/resources/sources.ts +12 -6
- 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 +11 -7
- package/src/resources/tag-manager-triggers.ts +12 -7
- package/src/resources/tag-manager-variables.ts +23 -19
- package/src/resources/tag-managers.ts +10 -5
- package/src/resources/test-events.ts +429 -12
- package/src/resources/translation-widgets.ts +7 -6
- package/src/resources/versions.ts +22 -11
- package/src/resources/video-channels.ts +15 -9
- 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
|
@@ -12,7 +12,7 @@ export class TagManagerTriggers extends APIResource {
|
|
|
12
12
|
* parameter — triggers are always scoped to one parent container. Supports cursor
|
|
13
13
|
* pagination via `limit` and `cursor`; the limit clamp is 1000 so a single request
|
|
14
14
|
* can return the full set (the web-app workspace renders all triggers in one
|
|
15
|
-
* shot). Requires scope: tagManagers:find
|
|
15
|
+
* shot). Requires API-key scope or current OAuth user permission: tagManagers:find
|
|
16
16
|
*/
|
|
17
17
|
list(
|
|
18
18
|
query: TagManagerTriggerListParams,
|
|
@@ -27,7 +27,8 @@ export class TagManagerTriggers extends APIResource {
|
|
|
27
27
|
/**
|
|
28
28
|
* Create a new trigger inside a tag manager. `tagManagerId` is required in the
|
|
29
29
|
* body. Send `conditions: []` for an unconditional trigger; otherwise supply
|
|
30
|
-
* type-specific condition objects. Requires scope
|
|
30
|
+
* type-specific condition objects. Requires API-key scope or current OAuth user
|
|
31
|
+
* permission: tagManagers:update
|
|
31
32
|
*/
|
|
32
33
|
create(
|
|
33
34
|
body: TagManagerTriggerCreateParams,
|
|
@@ -37,7 +38,8 @@ export class TagManagerTriggers extends APIResource {
|
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
/**
|
|
40
|
-
* Find a single tag manager trigger by ID. Requires scope
|
|
41
|
+
* Find a single tag manager trigger by ID. Requires API-key scope or current OAuth
|
|
42
|
+
* user permission: tagManagers:find
|
|
41
43
|
*/
|
|
42
44
|
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerTriggerRetrieveResponse> {
|
|
43
45
|
return this._client.get(path`/rest/v1/tag-manager-triggers/${id}`, options);
|
|
@@ -46,7 +48,8 @@ export class TagManagerTriggers extends APIResource {
|
|
|
46
48
|
/**
|
|
47
49
|
* Partially update a trigger. Only the fields you send are changed. `conditions`
|
|
48
50
|
* is replaced wholesale when sent. To assign a trigger to a folder, use
|
|
49
|
-
* `POST /rest/v1/tag-manager-asset-folders`. Requires scope
|
|
51
|
+
* `POST /rest/v1/tag-manager-asset-folders`. Requires API-key scope or current
|
|
52
|
+
* OAuth user permission: tagManagers:update
|
|
50
53
|
*/
|
|
51
54
|
update(
|
|
52
55
|
id: string,
|
|
@@ -57,7 +60,8 @@ export class TagManagerTriggers extends APIResource {
|
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
/**
|
|
60
|
-
* Delete a tag manager trigger. Requires scope
|
|
63
|
+
* Delete a tag manager trigger. Requires API-key scope or current OAuth user
|
|
64
|
+
* permission: tagManagers:update
|
|
61
65
|
*/
|
|
62
66
|
delete(id: string, options?: RequestOptions): APIPromise<TagManagerTriggerDeleteResponse> {
|
|
63
67
|
return this._client.delete(path`/rest/v1/tag-manager-triggers/${id}`, options);
|
|
@@ -68,7 +72,8 @@ export class TagManagerTriggers extends APIResource {
|
|
|
68
72
|
* to send on create/patch, and the shape of the type-specific `parameters`
|
|
69
73
|
* payload. Trigger `conditions` are evaluated at runtime (per-trigger, see the
|
|
70
74
|
* resource docs) and are not part of this descriptor. Account-agnostic: the
|
|
71
|
-
* response is the same for every API key. Requires scope
|
|
75
|
+
* response is the same for every API key. Requires API-key scope or current OAuth
|
|
76
|
+
* user permission: tagManagers:find
|
|
72
77
|
*/
|
|
73
78
|
types(options?: RequestOptions): APIPromise<TagManagerTriggerTypesResponse> {
|
|
74
79
|
return this._client.get('/rest/v1/tag-manager-triggers/types', options);
|
|
@@ -320,7 +325,7 @@ export namespace TagManagerTriggerTypesResponse {
|
|
|
320
325
|
/**
|
|
321
326
|
* Default value when the caller omits the parameter on create.
|
|
322
327
|
*/
|
|
323
|
-
default?: { [key: string]: unknown };
|
|
328
|
+
default?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
324
329
|
|
|
325
330
|
description?: string | null;
|
|
326
331
|
|
|
@@ -12,7 +12,7 @@ export class TagManagerVariables extends APIResource {
|
|
|
12
12
|
* parameter — variables are always scoped to one parent container. Supports cursor
|
|
13
13
|
* pagination via `limit` and `cursor`; the limit clamp is 1000 so a single request
|
|
14
14
|
* can return the full set (the web-app workspace renders all variables in one
|
|
15
|
-
* shot). Requires scope: tagManagers:find
|
|
15
|
+
* shot). Requires API-key scope or current OAuth user permission: tagManagers:find
|
|
16
16
|
*/
|
|
17
17
|
list(
|
|
18
18
|
query: TagManagerVariableListParams,
|
|
@@ -28,7 +28,7 @@ export class TagManagerVariables extends APIResource {
|
|
|
28
28
|
* Create a new variable inside a tag manager. `tagManagerId` is required in the
|
|
29
29
|
* body. Known input failures (e.g. duplicate variable name within the tag manager)
|
|
30
30
|
* are returned as HTTP 409 with the reason in the response `error` field. Requires
|
|
31
|
-
* scope: tagManagers:update
|
|
31
|
+
* API-key scope or current OAuth user permission: tagManagers:update
|
|
32
32
|
*/
|
|
33
33
|
create(
|
|
34
34
|
body: TagManagerVariableCreateParams,
|
|
@@ -38,7 +38,8 @@ export class TagManagerVariables extends APIResource {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
* Find a single tag manager variable by ID. Requires scope
|
|
41
|
+
* Find a single tag manager variable by ID. Requires API-key scope or current
|
|
42
|
+
* OAuth user permission: tagManagers:find
|
|
42
43
|
*/
|
|
43
44
|
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerVariableRetrieveResponse> {
|
|
44
45
|
return this._client.get(path`/rest/v1/tag-manager-variables/${id}`, options);
|
|
@@ -48,7 +49,8 @@ export class TagManagerVariables extends APIResource {
|
|
|
48
49
|
* Partially update a variable. Only the fields you send are changed. Name
|
|
49
50
|
* collisions with other variables in the same tag manager return 409 with the
|
|
50
51
|
* reason in the response `error` field. To assign a variable to a folder, use
|
|
51
|
-
* `POST /rest/v1/tag-manager-asset-folders`. Requires scope
|
|
52
|
+
* `POST /rest/v1/tag-manager-asset-folders`. Requires API-key scope or current
|
|
53
|
+
* OAuth user permission: tagManagers:update
|
|
52
54
|
*/
|
|
53
55
|
update(
|
|
54
56
|
id: string,
|
|
@@ -59,7 +61,8 @@ export class TagManagerVariables extends APIResource {
|
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
/**
|
|
62
|
-
* Delete a tag manager variable. Requires scope
|
|
64
|
+
* Delete a tag manager variable. Requires API-key scope or current OAuth user
|
|
65
|
+
* permission: tagManagers:update
|
|
63
66
|
*/
|
|
64
67
|
delete(id: string, options?: RequestOptions): APIPromise<TagManagerVariableDeleteResponse> {
|
|
65
68
|
return this._client.delete(path`/rest/v1/tag-manager-variables/${id}`, options);
|
|
@@ -70,7 +73,8 @@ export class TagManagerVariables extends APIResource {
|
|
|
70
73
|
* to send on create/patch, the shape of the type-specific `parameters` payload,
|
|
71
74
|
* and `supportsVariables` (whether the variable's own parameter fields may
|
|
72
75
|
* reference `{{OtherVariable}}` at runtime). Account-agnostic: the response is the
|
|
73
|
-
* same for every API key. Requires scope
|
|
76
|
+
* same for every API key. Requires API-key scope or current OAuth user permission:
|
|
77
|
+
* tagManagers:find
|
|
74
78
|
*/
|
|
75
79
|
types(options?: RequestOptions): APIPromise<TagManagerVariableTypesResponse> {
|
|
76
80
|
return this._client.get('/rest/v1/tag-manager-variables/types', options);
|
|
@@ -106,7 +110,7 @@ export interface TagManagerVariableListResponse {
|
|
|
106
110
|
* Default value returned when no rule matches. JSON value — type depends on
|
|
107
111
|
* `type`.
|
|
108
112
|
*/
|
|
109
|
-
defaultValue?: { [key: string]: unknown };
|
|
113
|
+
defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
110
114
|
|
|
111
115
|
enabled?: boolean | null;
|
|
112
116
|
|
|
@@ -119,7 +123,7 @@ export interface TagManagerVariableListResponse {
|
|
|
119
123
|
/**
|
|
120
124
|
* Optional lookup table for `LookUpTable`-style variables. JSON value.
|
|
121
125
|
*/
|
|
122
|
-
lookUpTable?: { [key: string]: unknown };
|
|
126
|
+
lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
123
127
|
|
|
124
128
|
updatedAt?: string | null;
|
|
125
129
|
}
|
|
@@ -151,7 +155,7 @@ export interface TagManagerVariableCreateResponse {
|
|
|
151
155
|
* Default value returned when no rule matches. JSON value — type depends on
|
|
152
156
|
* `type`.
|
|
153
157
|
*/
|
|
154
|
-
defaultValue?: { [key: string]: unknown };
|
|
158
|
+
defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
155
159
|
|
|
156
160
|
enabled?: boolean | null;
|
|
157
161
|
|
|
@@ -164,7 +168,7 @@ export interface TagManagerVariableCreateResponse {
|
|
|
164
168
|
/**
|
|
165
169
|
* Optional lookup table for `LookUpTable`-style variables. JSON value.
|
|
166
170
|
*/
|
|
167
|
-
lookUpTable?: { [key: string]: unknown };
|
|
171
|
+
lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
168
172
|
|
|
169
173
|
updatedAt?: string | null;
|
|
170
174
|
}
|
|
@@ -196,7 +200,7 @@ export interface TagManagerVariableRetrieveResponse {
|
|
|
196
200
|
* Default value returned when no rule matches. JSON value — type depends on
|
|
197
201
|
* `type`.
|
|
198
202
|
*/
|
|
199
|
-
defaultValue?: { [key: string]: unknown };
|
|
203
|
+
defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
200
204
|
|
|
201
205
|
enabled?: boolean | null;
|
|
202
206
|
|
|
@@ -209,7 +213,7 @@ export interface TagManagerVariableRetrieveResponse {
|
|
|
209
213
|
/**
|
|
210
214
|
* Optional lookup table for `LookUpTable`-style variables. JSON value.
|
|
211
215
|
*/
|
|
212
|
-
lookUpTable?: { [key: string]: unknown };
|
|
216
|
+
lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
213
217
|
|
|
214
218
|
updatedAt?: string | null;
|
|
215
219
|
}
|
|
@@ -241,7 +245,7 @@ export interface TagManagerVariableUpdateResponse {
|
|
|
241
245
|
* Default value returned when no rule matches. JSON value — type depends on
|
|
242
246
|
* `type`.
|
|
243
247
|
*/
|
|
244
|
-
defaultValue?: { [key: string]: unknown };
|
|
248
|
+
defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
245
249
|
|
|
246
250
|
enabled?: boolean | null;
|
|
247
251
|
|
|
@@ -254,7 +258,7 @@ export interface TagManagerVariableUpdateResponse {
|
|
|
254
258
|
/**
|
|
255
259
|
* Optional lookup table for `LookUpTable`-style variables. JSON value.
|
|
256
260
|
*/
|
|
257
|
-
lookUpTable?: { [key: string]: unknown };
|
|
261
|
+
lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
258
262
|
|
|
259
263
|
updatedAt?: string | null;
|
|
260
264
|
}
|
|
@@ -328,7 +332,7 @@ export namespace TagManagerVariableTypesResponse {
|
|
|
328
332
|
/**
|
|
329
333
|
* Default value when the caller omits the parameter on create.
|
|
330
334
|
*/
|
|
331
|
-
default?: { [key: string]: unknown };
|
|
335
|
+
default?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
332
336
|
|
|
333
337
|
description?: string | null;
|
|
334
338
|
|
|
@@ -391,21 +395,21 @@ export interface TagManagerVariableCreateParams {
|
|
|
391
395
|
/**
|
|
392
396
|
* Optional default value. JSON value of any type.
|
|
393
397
|
*/
|
|
394
|
-
defaultValue?: { [key: string]: unknown }
|
|
398
|
+
defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
395
399
|
|
|
396
400
|
enabled?: boolean | null;
|
|
397
401
|
|
|
398
402
|
/**
|
|
399
403
|
* Optional lookup table for `LookUpTable` variables.
|
|
400
404
|
*/
|
|
401
|
-
lookUpTable?: { [key: string]: unknown }
|
|
405
|
+
lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
402
406
|
}
|
|
403
407
|
|
|
404
408
|
export interface TagManagerVariableUpdateParams {
|
|
405
409
|
/**
|
|
406
410
|
* Updated default value. JSON value of any type.
|
|
407
411
|
*/
|
|
408
|
-
defaultValue?: { [key: string]: unknown }
|
|
412
|
+
defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
409
413
|
|
|
410
414
|
/**
|
|
411
415
|
* Pause/resume the variable without changing other fields.
|
|
@@ -415,7 +419,7 @@ export interface TagManagerVariableUpdateParams {
|
|
|
415
419
|
/**
|
|
416
420
|
* Updated lookup table payload.
|
|
417
421
|
*/
|
|
418
|
-
lookUpTable?: { [key: string]: unknown }
|
|
422
|
+
lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
|
|
419
423
|
|
|
420
424
|
/**
|
|
421
425
|
* Updated variable name.
|
|
@@ -10,7 +10,8 @@ export class TagManagers extends APIResource {
|
|
|
10
10
|
* List every tag manager on this account. Each tag manager is a pixel-scoped
|
|
11
11
|
* container of tags, triggers, variables, and folders. Not paginated — accounts
|
|
12
12
|
* are capped at a small number of tag managers in practice, so the response fits
|
|
13
|
-
* in a single page. Requires scope
|
|
13
|
+
* in a single page. Requires API-key scope or current OAuth user permission:
|
|
14
|
+
* tagManagers:list
|
|
14
15
|
*/
|
|
15
16
|
list(options?: RequestOptions): APIPromise<TagManagerListResponse> {
|
|
16
17
|
return this._client.get('/rest/v1/tag-managers', options);
|
|
@@ -23,7 +24,8 @@ export class TagManagers extends APIResource {
|
|
|
23
24
|
* `GET /tag-manager-triggers?tagManagerId={id}` right after create to grab their
|
|
24
25
|
* server-assigned ids so you can reuse them in `fireTriggerIds` instead of
|
|
25
26
|
* redundantly creating a second `PageView`/`DomReady`/`Initialization`. Returns
|
|
26
|
-
* the bare entity. Requires scope
|
|
27
|
+
* the bare entity. Requires API-key scope or current OAuth user permission:
|
|
28
|
+
* tagManagers:create
|
|
27
29
|
*/
|
|
28
30
|
create(body: TagManagerCreateParams, options?: RequestOptions): APIPromise<TagManagerCreateResponse> {
|
|
29
31
|
return this._client.post('/rest/v1/tag-managers', { body, ...options });
|
|
@@ -31,7 +33,8 @@ export class TagManagers extends APIResource {
|
|
|
31
33
|
|
|
32
34
|
/**
|
|
33
35
|
* Fetch a single tag manager by id, including its server-assigned `pixel` token
|
|
34
|
-
* used by the install snippet. Requires scope
|
|
36
|
+
* used by the install snippet. Requires API-key scope or current OAuth user
|
|
37
|
+
* permission: tagManagers:find
|
|
35
38
|
*/
|
|
36
39
|
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerRetrieveResponse> {
|
|
37
40
|
return this._client.get(path`/rest/v1/tag-managers/${id}`, options);
|
|
@@ -40,7 +43,8 @@ export class TagManagers extends APIResource {
|
|
|
40
43
|
/**
|
|
41
44
|
* Partially update a tag manager. Only the fields you send are changed; omitted
|
|
42
45
|
* fields keep their current value. Send `dataLayerName: null` to clear the
|
|
43
|
-
* override and fall back to the SDK default. Requires scope
|
|
46
|
+
* override and fall back to the SDK default. Requires API-key scope or current
|
|
47
|
+
* OAuth user permission: tagManagers:update
|
|
44
48
|
*/
|
|
45
49
|
update(
|
|
46
50
|
id: string,
|
|
@@ -52,7 +56,8 @@ export class TagManagers extends APIResource {
|
|
|
52
56
|
|
|
53
57
|
/**
|
|
54
58
|
* Delete a tag manager. Child tags, triggers, variables, and folders are
|
|
55
|
-
* cascade-deleted with the container. Requires scope
|
|
59
|
+
* cascade-deleted with the container. Requires API-key scope or current OAuth user
|
|
60
|
+
* permission: tagManagers:delete
|
|
56
61
|
*/
|
|
57
62
|
delete(id: string, options?: RequestOptions): APIPromise<TagManagerDeleteResponse> {
|
|
58
63
|
return this._client.delete(path`/rest/v1/tag-managers/${id}`, options);
|