@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
|
@@ -7,35 +7,41 @@ import { path } from '../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class ConsentSettings extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* List all consent settings. Requires scope
|
|
10
|
+
* List all consent settings. Requires API-key scope or current OAuth user
|
|
11
|
+
* permission: consentSettings:list
|
|
11
12
|
*/
|
|
12
13
|
list(options?: RequestOptions): APIPromise<ConsentSettingListResponse> {
|
|
13
14
|
return this._client.get('/rest/v1/consent-settings', options);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
|
-
* Create a new consent
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* Requires scope: consentSettings:create
|
|
18
|
+
* Create a new consent setting. POST takes no request body. The new draft is
|
|
19
|
+
* Disabled with no allowed domains, an opt-out default rule, English translations,
|
|
20
|
+
* necessary/analytics/advertising categories, and no regions. Configure it with
|
|
21
|
+
* PATCH or PUT before enabling it. Returns the same fields as GET, including its
|
|
22
|
+
* `id`, default rule, and categories. Requires API-key scope or current OAuth user
|
|
23
|
+
* permission: consentSettings:create
|
|
24
24
|
*/
|
|
25
25
|
create(options?: RequestOptions): APIPromise<ConsentSettingCreateResponse> {
|
|
26
26
|
return this._client.post('/rest/v1/consent-settings', options);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Find a single consent setting by ID. Requires scope
|
|
30
|
+
* Find a single consent setting by ID. Requires API-key scope or current OAuth
|
|
31
|
+
* user permission: consentSettings:find
|
|
31
32
|
*/
|
|
32
33
|
retrieve(id: string, options?: RequestOptions): APIPromise<ConsentSettingRetrieveResponse | null> {
|
|
33
34
|
return this._client.get(path`/rest/v1/consent-settings/${id}`, options);
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
38
|
+
* Update a consent setting with all required fields. Omitted optional top-level
|
|
39
|
+
* fields retain their saved values; the required default rule and lists are
|
|
40
|
+
* replaced by supplied values. Send null or [] to clear an optional field when
|
|
41
|
+
* allowed. Enabled requires at least one allowed domain in this request. Omitting
|
|
42
|
+
* or clearing `whitelistDomains` with null or [] while Enabled returns an HTTP 400
|
|
43
|
+
* validation error. Disabled settings may have no allowed domains. Use PATCH for
|
|
44
|
+
* partial updates. Requires API-key scope or current OAuth user permission:
|
|
39
45
|
* consentSettings:update
|
|
40
46
|
*/
|
|
41
47
|
replace(
|
|
@@ -47,10 +53,14 @@ export class ConsentSettings extends APIResource {
|
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
/**
|
|
50
|
-
* Partially update a consent setting.
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
56
|
+
* Partially update a consent setting. Omitted fields keep their saved values.
|
|
57
|
+
* List-valued fields (services, categories, regions) are replaced in full when
|
|
58
|
+
* sent. Omitting `whitelistDomains` preserves saved domains; sending it replaces
|
|
59
|
+
* the list. Clear allowed domains with null or [] only when the resulting status
|
|
60
|
+
* is Disabled. Enabled requires at least one allowed domain, either already saved
|
|
61
|
+
* or sent with this request. Invalid combinations return HTTP 400 validation
|
|
62
|
+
* errors. Requires API-key scope or current OAuth user permission:
|
|
63
|
+
* consentSettings:update
|
|
54
64
|
*/
|
|
55
65
|
update(
|
|
56
66
|
id: string,
|
|
@@ -61,7 +71,8 @@ export class ConsentSettings extends APIResource {
|
|
|
61
71
|
}
|
|
62
72
|
|
|
63
73
|
/**
|
|
64
|
-
* Delete a consent setting. Requires scope
|
|
74
|
+
* Delete a consent setting. Requires API-key scope or current OAuth user
|
|
75
|
+
* permission: consentSettings:delete
|
|
65
76
|
*/
|
|
66
77
|
delete(id: string, options?: RequestOptions): APIPromise<ConsentSettingDeleteResponse> {
|
|
67
78
|
return this._client.delete(path`/rest/v1/consent-settings/${id}`, options);
|
|
@@ -70,15 +81,18 @@ export class ConsentSettings extends APIResource {
|
|
|
70
81
|
/**
|
|
71
82
|
* Time-series consent analytics for a single consent settings record: banner
|
|
72
83
|
* views, opt-ins, opt-outs, close-icon clicks, and derived opt-in/out rates per
|
|
73
|
-
* UTC day
|
|
84
|
+
* UTC hour, day, Monday-based week, or calendar month. The window is zero-filled
|
|
74
85
|
* so callers get a contiguous series, and rates are person-level
|
|
75
|
-
* (`COUNT(DISTINCT visitor_id)`). Use the
|
|
76
|
-
* to scope
|
|
77
|
-
* to also receive the matching prior window.
|
|
78
|
-
*
|
|
79
|
-
* `
|
|
80
|
-
*
|
|
81
|
-
* Requires scope
|
|
86
|
+
* (`COUNT(DISTINCT visitor_id)`). Use the JSON-encoded shared analytics `filter`
|
|
87
|
+
* to scope events by source, page, visitor, or session properties; use
|
|
88
|
+
* `compareWithPreviousPeriod=true` to also receive the matching prior window.
|
|
89
|
+
* Included days: at most 180 days for `DAILY`, 365 for `WEEKLY`, 365 for
|
|
90
|
+
* `MONTHLY`, or 14 for `HOURLY`. Partial buckets identify their actual selected
|
|
91
|
+
* dates. Previous-period comparisons are supported for daily and hourly output.
|
|
92
|
+
* Requires the API-key scope `report:consent-analytics` (this endpoint returns
|
|
93
|
+
* consent analytics report data, which is PHI-bearing and gated separately from
|
|
94
|
+
* consent-settings management). Requires API-key scope or current OAuth user
|
|
95
|
+
* permission: report:consent-analytics
|
|
82
96
|
*/
|
|
83
97
|
analytics(
|
|
84
98
|
id: string,
|
|
@@ -88,14 +102,48 @@ export class ConsentSettings extends APIResource {
|
|
|
88
102
|
return this._client.get(path`/rest/v1/consent-settings/${id}/analytics`, { query, ...options });
|
|
89
103
|
}
|
|
90
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Monthly consent trends over up to 365 included days. Returns unique visitor
|
|
107
|
+
* counts within each UTC calendar month, event counts for dismissals, rates, and
|
|
108
|
+
* partial-month bounds. Uses the same shared analytics filter as the other consent
|
|
109
|
+
* reports. This series-only output omits whole-window totals and breakdowns.
|
|
110
|
+
* Requires API-key scope or current OAuth user permission:
|
|
111
|
+
* report:consent-analytics
|
|
112
|
+
*/
|
|
113
|
+
analyticsMonthly(
|
|
114
|
+
id: string,
|
|
115
|
+
query: ConsentSettingAnalyticsMonthlyParams,
|
|
116
|
+
options?: RequestOptions,
|
|
117
|
+
): APIPromise<ConsentSettingAnalyticsMonthlyResponse> {
|
|
118
|
+
return this._client.get(path`/rest/v1/consent-settings/${id}/analytics-monthly`, { query, ...options });
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Returns interval limits for a Consent report kind: SUMMARY, TRENDS, or PAGES.
|
|
123
|
+
* The organization is determined by the API key. Default included days: at most
|
|
124
|
+
* 180 days for `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`;
|
|
125
|
+
* organization limits may narrow these allowances. TRENDS requires
|
|
126
|
+
* report:consent-analytics, PAGES requires report:consent-page-analysis, and
|
|
127
|
+
* SUMMARY requires both. Dates, filters, search and pagination are not part of
|
|
128
|
+
* this request. Requires API-key scope or current OAuth user permission:
|
|
129
|
+
* report:consent-analytics or report:consent-page-analysis
|
|
130
|
+
*/
|
|
131
|
+
analyticsCapabilities(
|
|
132
|
+
query: ConsentSettingAnalyticsCapabilitiesParams | null | undefined = {},
|
|
133
|
+
options?: RequestOptions,
|
|
134
|
+
): APIPromise<ConsentSettingAnalyticsCapabilitiesResponse> {
|
|
135
|
+
return this._client.get('/rest/v1/consent-settings/analytics-capabilities', { query, ...options });
|
|
136
|
+
}
|
|
137
|
+
|
|
91
138
|
/**
|
|
92
139
|
* Per-page consent breakdown for one consent settings record, ranked by opt-outs
|
|
93
140
|
* (descending). Each row bundles banner views, opt-outs, close-icon clicks, and
|
|
94
|
-
* the derived opt-out rate.
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* (PHI-bearing report data). Requires
|
|
141
|
+
* the derived opt-out rate. Returns `{ entities, pagination }`. Continue with
|
|
142
|
+
* `pagination.nextCursor`; results sort by opt-outs descending, then page path
|
|
143
|
+
* ascending. `search` is a substring match against `pathname`; the JSON-encoded
|
|
144
|
+
* shared analytics `filter` scopes the underlying events. Requires the API-key
|
|
145
|
+
* scope `report:consent-page-analysis` (PHI-bearing report data). Requires API-key
|
|
146
|
+
* scope or current OAuth user permission: report:consent-page-analysis
|
|
99
147
|
*/
|
|
100
148
|
pageAnalysis(
|
|
101
149
|
id: string,
|
|
@@ -110,11 +158,10 @@ export class ConsentSettings extends APIResource {
|
|
|
110
158
|
* close-icon clicks, and derived rates per visitor `country_region_name`, ranked
|
|
111
159
|
* by banner views (descending). Visitors whose region cannot be resolved (e.g. bot
|
|
112
160
|
* traffic, IP geo failure) are bucketed under the literal `Unknown` so per-region
|
|
113
|
-
* counts always sum to the global totals. Use
|
|
114
|
-
*
|
|
115
|
-
* `
|
|
116
|
-
*
|
|
117
|
-
* report:consent-analytics
|
|
161
|
+
* counts always sum to the global totals. Use the JSON-encoded shared analytics
|
|
162
|
+
* `filter` to scope the underlying events. Requires the API-key scope
|
|
163
|
+
* `report:consent-analytics` (PHI-bearing report data). Requires API-key scope or
|
|
164
|
+
* current OAuth user permission: report:consent-analytics
|
|
118
165
|
*/
|
|
119
166
|
analyticsByRegion(
|
|
120
167
|
id: string,
|
|
@@ -174,7 +221,8 @@ export namespace ConsentSettingListResponse {
|
|
|
174
221
|
services: Array<Entity.Service>;
|
|
175
222
|
|
|
176
223
|
/**
|
|
177
|
-
* Enabled
|
|
224
|
+
* Enabled serves the CMP on its allowed domains and requires at least one.
|
|
225
|
+
* Disabled does not serve the CMP and may have no allowed domains.
|
|
178
226
|
*/
|
|
179
227
|
status: 'Disabled' | 'Enabled';
|
|
180
228
|
|
|
@@ -221,9 +269,9 @@ export namespace ConsentSettingListResponse {
|
|
|
221
269
|
webSDKToken?: string | null;
|
|
222
270
|
|
|
223
271
|
/**
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
* subdomains.
|
|
272
|
+
* Domains where this CMP may run. An Enabled CMP requires at least one allowed
|
|
273
|
+
* domain; with none configured, the CMP does not run. Matching domains may share
|
|
274
|
+
* consent across subdomains.
|
|
227
275
|
*/
|
|
228
276
|
whitelistDomains?: Array<string> | null;
|
|
229
277
|
}
|
|
@@ -614,7 +662,8 @@ export interface ConsentSettingCreateResponse {
|
|
|
614
662
|
services: Array<ConsentSettingCreateResponse.Service>;
|
|
615
663
|
|
|
616
664
|
/**
|
|
617
|
-
* Enabled
|
|
665
|
+
* Enabled serves the CMP on its allowed domains and requires at least one.
|
|
666
|
+
* Disabled does not serve the CMP and may have no allowed domains.
|
|
618
667
|
*/
|
|
619
668
|
status: 'Disabled' | 'Enabled';
|
|
620
669
|
|
|
@@ -661,9 +710,9 @@ export interface ConsentSettingCreateResponse {
|
|
|
661
710
|
webSDKToken?: string | null;
|
|
662
711
|
|
|
663
712
|
/**
|
|
664
|
-
*
|
|
665
|
-
*
|
|
666
|
-
* subdomains.
|
|
713
|
+
* Domains where this CMP may run. An Enabled CMP requires at least one allowed
|
|
714
|
+
* domain; with none configured, the CMP does not run. Matching domains may share
|
|
715
|
+
* consent across subdomains.
|
|
667
716
|
*/
|
|
668
717
|
whitelistDomains?: Array<string> | null;
|
|
669
718
|
}
|
|
@@ -1053,7 +1102,8 @@ export interface ConsentSettingRetrieveResponse {
|
|
|
1053
1102
|
services: Array<ConsentSettingRetrieveResponse.Service>;
|
|
1054
1103
|
|
|
1055
1104
|
/**
|
|
1056
|
-
* Enabled
|
|
1105
|
+
* Enabled serves the CMP on its allowed domains and requires at least one.
|
|
1106
|
+
* Disabled does not serve the CMP and may have no allowed domains.
|
|
1057
1107
|
*/
|
|
1058
1108
|
status: 'Disabled' | 'Enabled';
|
|
1059
1109
|
|
|
@@ -1100,9 +1150,9 @@ export interface ConsentSettingRetrieveResponse {
|
|
|
1100
1150
|
webSDKToken?: string | null;
|
|
1101
1151
|
|
|
1102
1152
|
/**
|
|
1103
|
-
*
|
|
1104
|
-
*
|
|
1105
|
-
* subdomains.
|
|
1153
|
+
* Domains where this CMP may run. An Enabled CMP requires at least one allowed
|
|
1154
|
+
* domain; with none configured, the CMP does not run. Matching domains may share
|
|
1155
|
+
* consent across subdomains.
|
|
1106
1156
|
*/
|
|
1107
1157
|
whitelistDomains?: Array<string> | null;
|
|
1108
1158
|
}
|
|
@@ -1492,7 +1542,8 @@ export interface ConsentSettingReplaceResponse {
|
|
|
1492
1542
|
services: Array<ConsentSettingReplaceResponse.Service>;
|
|
1493
1543
|
|
|
1494
1544
|
/**
|
|
1495
|
-
* Enabled
|
|
1545
|
+
* Enabled serves the CMP on its allowed domains and requires at least one.
|
|
1546
|
+
* Disabled does not serve the CMP and may have no allowed domains.
|
|
1496
1547
|
*/
|
|
1497
1548
|
status: 'Disabled' | 'Enabled';
|
|
1498
1549
|
|
|
@@ -1539,9 +1590,9 @@ export interface ConsentSettingReplaceResponse {
|
|
|
1539
1590
|
webSDKToken?: string | null;
|
|
1540
1591
|
|
|
1541
1592
|
/**
|
|
1542
|
-
*
|
|
1543
|
-
*
|
|
1544
|
-
* subdomains.
|
|
1593
|
+
* Domains where this CMP may run. An Enabled CMP requires at least one allowed
|
|
1594
|
+
* domain; with none configured, the CMP does not run. Matching domains may share
|
|
1595
|
+
* consent across subdomains.
|
|
1545
1596
|
*/
|
|
1546
1597
|
whitelistDomains?: Array<string> | null;
|
|
1547
1598
|
}
|
|
@@ -1931,7 +1982,8 @@ export interface ConsentSettingUpdateResponse {
|
|
|
1931
1982
|
services: Array<ConsentSettingUpdateResponse.Service>;
|
|
1932
1983
|
|
|
1933
1984
|
/**
|
|
1934
|
-
* Enabled
|
|
1985
|
+
* Enabled serves the CMP on its allowed domains and requires at least one.
|
|
1986
|
+
* Disabled does not serve the CMP and may have no allowed domains.
|
|
1935
1987
|
*/
|
|
1936
1988
|
status: 'Disabled' | 'Enabled';
|
|
1937
1989
|
|
|
@@ -1978,9 +2030,9 @@ export interface ConsentSettingUpdateResponse {
|
|
|
1978
2030
|
webSDKToken?: string | null;
|
|
1979
2031
|
|
|
1980
2032
|
/**
|
|
1981
|
-
*
|
|
1982
|
-
*
|
|
1983
|
-
* subdomains.
|
|
2033
|
+
* Domains where this CMP may run. An Enabled CMP requires at least one allowed
|
|
2034
|
+
* domain; with none configured, the CMP does not run. Matching domains may share
|
|
2035
|
+
* consent across subdomains.
|
|
1984
2036
|
*/
|
|
1985
2037
|
whitelistDomains?: Array<string> | null;
|
|
1986
2038
|
}
|
|
@@ -2370,7 +2422,8 @@ export interface ConsentSettingDeleteResponse {
|
|
|
2370
2422
|
services: Array<ConsentSettingDeleteResponse.Service>;
|
|
2371
2423
|
|
|
2372
2424
|
/**
|
|
2373
|
-
* Enabled
|
|
2425
|
+
* Enabled serves the CMP on its allowed domains and requires at least one.
|
|
2426
|
+
* Disabled does not serve the CMP and may have no allowed domains.
|
|
2374
2427
|
*/
|
|
2375
2428
|
status: 'Disabled' | 'Enabled';
|
|
2376
2429
|
|
|
@@ -2417,9 +2470,9 @@ export interface ConsentSettingDeleteResponse {
|
|
|
2417
2470
|
webSDKToken?: string | null;
|
|
2418
2471
|
|
|
2419
2472
|
/**
|
|
2420
|
-
*
|
|
2421
|
-
*
|
|
2422
|
-
* subdomains.
|
|
2473
|
+
* Domains where this CMP may run. An Enabled CMP requires at least one allowed
|
|
2474
|
+
* domain; with none configured, the CMP does not run. Matching domains may share
|
|
2475
|
+
* consent across subdomains.
|
|
2423
2476
|
*/
|
|
2424
2477
|
whitelistDomains?: Array<string> | null;
|
|
2425
2478
|
}
|
|
@@ -2767,9 +2820,9 @@ export namespace ConsentSettingDeleteResponse {
|
|
|
2767
2820
|
|
|
2768
2821
|
export interface ConsentSettingAnalyticsResponse {
|
|
2769
2822
|
/**
|
|
2770
|
-
* One entry per time bucket (day or
|
|
2771
|
-
* full window — empty windows are zero-filled so
|
|
2772
|
-
* time series without gap-handling logic.
|
|
2823
|
+
* One entry per time bucket (hour, day, week, or month, depending on
|
|
2824
|
+
* `granularity`) covering the full window — empty windows are zero-filled so
|
|
2825
|
+
* callers can render contiguous time series without gap-handling logic.
|
|
2773
2826
|
*/
|
|
2774
2827
|
items: Array<ConsentSettingAnalyticsResponse.Item>;
|
|
2775
2828
|
|
|
@@ -2792,6 +2845,12 @@ export namespace ConsentSettingAnalyticsResponse {
|
|
|
2792
2845
|
|
|
2793
2846
|
optOutRate: number;
|
|
2794
2847
|
|
|
2848
|
+
partialPeriod: boolean;
|
|
2849
|
+
|
|
2850
|
+
periodFrom: string;
|
|
2851
|
+
|
|
2852
|
+
periodTo: string;
|
|
2853
|
+
|
|
2795
2854
|
percentageChangeBannerViews?: number | null;
|
|
2796
2855
|
|
|
2797
2856
|
percentageChangeCloseIconClicks?: number | null;
|
|
@@ -2828,28 +2887,63 @@ export namespace ConsentSettingAnalyticsResponse {
|
|
|
2828
2887
|
}
|
|
2829
2888
|
}
|
|
2830
2889
|
|
|
2831
|
-
export interface
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
*/
|
|
2835
|
-
hasMore: boolean;
|
|
2890
|
+
export interface ConsentSettingAnalyticsMonthlyResponse {
|
|
2891
|
+
items: Array<ConsentSettingAnalyticsMonthlyResponse.Item>;
|
|
2892
|
+
}
|
|
2836
2893
|
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2894
|
+
export namespace ConsentSettingAnalyticsMonthlyResponse {
|
|
2895
|
+
export interface Item {
|
|
2896
|
+
bannerViews: number;
|
|
2897
|
+
|
|
2898
|
+
closeIconClicks: number;
|
|
2899
|
+
|
|
2900
|
+
dateTime: string;
|
|
2901
|
+
|
|
2902
|
+
explicitOptIns: number;
|
|
2903
|
+
|
|
2904
|
+
explicitOptOuts: number;
|
|
2905
|
+
|
|
2906
|
+
optInRate: number;
|
|
2907
|
+
|
|
2908
|
+
optOutRate: number;
|
|
2909
|
+
|
|
2910
|
+
partialPeriod: boolean;
|
|
2911
|
+
|
|
2912
|
+
periodFrom: string;
|
|
2913
|
+
|
|
2914
|
+
periodTo: string;
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
export interface ConsentSettingAnalyticsCapabilitiesResponse {
|
|
2919
|
+
expiresAt: string;
|
|
2920
|
+
|
|
2921
|
+
intervals: Array<ConsentSettingAnalyticsCapabilitiesResponse.Interval>;
|
|
2922
|
+
|
|
2923
|
+
policyVersion: string;
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
export namespace ConsentSettingAnalyticsCapabilitiesResponse {
|
|
2927
|
+
export interface Interval {
|
|
2928
|
+
comparisonSupported: boolean;
|
|
2929
|
+
|
|
2930
|
+
granularity: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
|
|
2931
|
+
|
|
2932
|
+
maxIncludedDays: number;
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2843
2935
|
|
|
2936
|
+
export interface ConsentSettingPageAnalysisResponse {
|
|
2844
2937
|
/**
|
|
2845
|
-
*
|
|
2846
|
-
* load-more flows; query without `offset` to get the exact size of the first page.
|
|
2938
|
+
* Pages ranked by opt-outs descending, then page path ascending.
|
|
2847
2939
|
*/
|
|
2848
|
-
|
|
2940
|
+
entities: Array<ConsentSettingPageAnalysisResponse.Entity>;
|
|
2941
|
+
|
|
2942
|
+
pagination: ConsentSettingPageAnalysisResponse.Pagination;
|
|
2849
2943
|
}
|
|
2850
2944
|
|
|
2851
2945
|
export namespace ConsentSettingPageAnalysisResponse {
|
|
2852
|
-
export interface
|
|
2946
|
+
export interface Entity {
|
|
2853
2947
|
bannerViews: number;
|
|
2854
2948
|
|
|
2855
2949
|
closeIconClicks: number;
|
|
@@ -2860,6 +2954,12 @@ export namespace ConsentSettingPageAnalysisResponse {
|
|
|
2860
2954
|
|
|
2861
2955
|
page: string;
|
|
2862
2956
|
}
|
|
2957
|
+
|
|
2958
|
+
export interface Pagination {
|
|
2959
|
+
hasMore: boolean;
|
|
2960
|
+
|
|
2961
|
+
nextCursor?: string | null;
|
|
2962
|
+
}
|
|
2863
2963
|
}
|
|
2864
2964
|
|
|
2865
2965
|
export interface ConsentSettingAnalyticsByRegionResponse {
|
|
@@ -2919,7 +3019,7 @@ export interface ConsentSettingReplaceParams {
|
|
|
2919
3019
|
services: Array<ConsentSettingReplaceParams.Service>;
|
|
2920
3020
|
|
|
2921
3021
|
/**
|
|
2922
|
-
* Enabled
|
|
3022
|
+
* Enabled requires at least one allowed domain. Disabled may have none.
|
|
2923
3023
|
*/
|
|
2924
3024
|
status: 'Disabled' | 'Enabled';
|
|
2925
3025
|
|
|
@@ -2957,7 +3057,9 @@ export interface ConsentSettingReplaceParams {
|
|
|
2957
3057
|
webSDKToken?: string | null;
|
|
2958
3058
|
|
|
2959
3059
|
/**
|
|
2960
|
-
*
|
|
3060
|
+
* Domains where this CMP may run. Enabled requires at least one allowed domain;
|
|
3061
|
+
* omitting, null, or [] fails validation when status is Enabled. Disabled may have
|
|
3062
|
+
* none.
|
|
2961
3063
|
*/
|
|
2962
3064
|
whitelistDomains?: Array<string> | null;
|
|
2963
3065
|
}
|
|
@@ -3357,7 +3459,8 @@ export interface ConsentSettingUpdateParams {
|
|
|
3357
3459
|
skipBlockingClassNames?: Array<string> | null;
|
|
3358
3460
|
|
|
3359
3461
|
/**
|
|
3360
|
-
*
|
|
3462
|
+
* Set Enabled or Disabled. Enabling requires at least one allowed domain, either
|
|
3463
|
+
* already saved or sent with this request.
|
|
3361
3464
|
*/
|
|
3362
3465
|
status?: 'Disabled' | 'Enabled';
|
|
3363
3466
|
|
|
@@ -3368,7 +3471,8 @@ export interface ConsentSettingUpdateParams {
|
|
|
3368
3471
|
webSDKToken?: string | null;
|
|
3369
3472
|
|
|
3370
3473
|
/**
|
|
3371
|
-
* Replace the
|
|
3474
|
+
* Replace the allowed domains when sent. Omit to preserve saved domains. Pass null
|
|
3475
|
+
* or [] to clear only when the resulting status is Disabled.
|
|
3372
3476
|
*/
|
|
3373
3477
|
whitelistDomains?: Array<string> | null;
|
|
3374
3478
|
}
|
|
@@ -3717,22 +3821,22 @@ export namespace ConsentSettingUpdateParams {
|
|
|
3717
3821
|
export interface ConsentSettingAnalyticsParams {
|
|
3718
3822
|
/**
|
|
3719
3823
|
* Inclusive lower bound of the analytics window, as a UTC calendar day in
|
|
3720
|
-
* `YYYY-MM-DD` format.
|
|
3721
|
-
*
|
|
3824
|
+
* `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
|
|
3825
|
+
* 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
|
|
3722
3826
|
*/
|
|
3723
3827
|
from: string;
|
|
3724
3828
|
|
|
3725
3829
|
/**
|
|
3726
3830
|
* Inclusive upper bound of the analytics window, as a UTC calendar day in
|
|
3727
|
-
* `YYYY-MM-DD` format.
|
|
3728
|
-
*
|
|
3831
|
+
* `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
|
|
3832
|
+
* 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
|
|
3729
3833
|
*/
|
|
3730
3834
|
to: string;
|
|
3731
3835
|
|
|
3732
3836
|
/**
|
|
3733
|
-
* When `true`, each bucket also returns the
|
|
3734
|
-
* preceding window of equal length (in
|
|
3735
|
-
* fields). Defaults to `false`.
|
|
3837
|
+
* Supported for DAILY and HOURLY. When `true`, each bucket also returns the
|
|
3838
|
+
* matching bucket from the immediately preceding window of equal length (in
|
|
3839
|
+
* `previous*` and `percentageChange*` fields). Defaults to `false`.
|
|
3736
3840
|
*/
|
|
3737
3841
|
compareWithPreviousPeriod?: boolean;
|
|
3738
3842
|
|
|
@@ -3754,65 +3858,87 @@ export interface ConsentSettingAnalyticsParams {
|
|
|
3754
3858
|
comparisonTo?: string;
|
|
3755
3859
|
|
|
3756
3860
|
/**
|
|
3757
|
-
*
|
|
3758
|
-
*
|
|
3861
|
+
* JSON-encoded versioned analytics filter. Uses the shared analytics catalog
|
|
3862
|
+
* property IDs and operators, including event, session, and custom properties.
|
|
3863
|
+
*/
|
|
3864
|
+
filter?: string;
|
|
3865
|
+
|
|
3866
|
+
/**
|
|
3867
|
+
* Reporting interval: DAILY (default), WEEKLY (UTC weeks starting Monday), MONTHLY
|
|
3868
|
+
* (UTC calendar months), or HOURLY. Included-day limits: at most 180 days for
|
|
3869
|
+
* `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`. Breakdown
|
|
3870
|
+
* reports aggregate the entire selected range.
|
|
3871
|
+
*/
|
|
3872
|
+
granularity?: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
|
|
3873
|
+
}
|
|
3874
|
+
|
|
3875
|
+
export interface ConsentSettingAnalyticsMonthlyParams {
|
|
3876
|
+
/**
|
|
3877
|
+
* Inclusive lower bound of the analytics window, as a UTC calendar day in
|
|
3878
|
+
* `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
|
|
3879
|
+
* 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
|
|
3759
3880
|
*/
|
|
3760
|
-
|
|
3881
|
+
from: string;
|
|
3761
3882
|
|
|
3762
3883
|
/**
|
|
3763
|
-
*
|
|
3764
|
-
*
|
|
3884
|
+
* Inclusive upper bound of the analytics window, as a UTC calendar day in
|
|
3885
|
+
* `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
|
|
3886
|
+
* 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
|
|
3765
3887
|
*/
|
|
3766
|
-
|
|
3888
|
+
to: string;
|
|
3767
3889
|
|
|
3768
3890
|
/**
|
|
3769
|
-
*
|
|
3770
|
-
*
|
|
3771
|
-
* (`California,Texas`). Case-sensitive. Use
|
|
3772
|
-
* `GET /rest/v1/consent-settings/{id}/analytics-by-region` to discover the region
|
|
3773
|
-
* names available for an account.
|
|
3891
|
+
* JSON-encoded versioned analytics filter. Uses the shared analytics catalog
|
|
3892
|
+
* property IDs and operators, including event, session, and custom properties.
|
|
3774
3893
|
*/
|
|
3775
|
-
|
|
3894
|
+
filter?: string;
|
|
3895
|
+
}
|
|
3896
|
+
|
|
3897
|
+
export interface ConsentSettingAnalyticsCapabilitiesParams {
|
|
3898
|
+
kind?: 'PAGES' | 'SUMMARY' | 'TRENDS';
|
|
3776
3899
|
}
|
|
3777
3900
|
|
|
3778
3901
|
export interface ConsentSettingPageAnalysisParams {
|
|
3779
3902
|
/**
|
|
3780
3903
|
* Inclusive lower bound of the analytics window, as a UTC calendar day in
|
|
3781
|
-
* `YYYY-MM-DD` format.
|
|
3782
|
-
*
|
|
3904
|
+
* `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
|
|
3905
|
+
* 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
|
|
3783
3906
|
*/
|
|
3784
3907
|
from: string;
|
|
3785
3908
|
|
|
3786
3909
|
/**
|
|
3787
3910
|
* Inclusive upper bound of the analytics window, as a UTC calendar day in
|
|
3788
|
-
* `YYYY-MM-DD` format.
|
|
3789
|
-
*
|
|
3911
|
+
* `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
|
|
3912
|
+
* 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
|
|
3790
3913
|
*/
|
|
3791
3914
|
to: string;
|
|
3792
3915
|
|
|
3793
3916
|
/**
|
|
3794
|
-
*
|
|
3917
|
+
* Opaque cursor from pagination.nextCursor. Omit for the first page.
|
|
3795
3918
|
*/
|
|
3796
|
-
|
|
3919
|
+
cursor?: string;
|
|
3797
3920
|
|
|
3798
3921
|
/**
|
|
3799
|
-
*
|
|
3800
|
-
*
|
|
3922
|
+
* JSON-encoded versioned analytics filter. Uses the shared analytics catalog
|
|
3923
|
+
* property IDs and operators, including event, session, and custom properties.
|
|
3801
3924
|
*/
|
|
3802
|
-
|
|
3925
|
+
filter?: string;
|
|
3803
3926
|
|
|
3804
3927
|
/**
|
|
3805
|
-
*
|
|
3806
|
-
*
|
|
3807
|
-
*
|
|
3808
|
-
*
|
|
3809
|
-
* names available for an account.
|
|
3928
|
+
* Reporting interval: DAILY (default), WEEKLY (UTC weeks starting Monday), MONTHLY
|
|
3929
|
+
* (UTC calendar months), or HOURLY. Included-day limits: at most 180 days for
|
|
3930
|
+
* `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`. Breakdown
|
|
3931
|
+
* reports aggregate the entire selected range.
|
|
3810
3932
|
*/
|
|
3811
|
-
|
|
3933
|
+
granularity?: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
|
|
3812
3934
|
|
|
3813
3935
|
/**
|
|
3814
|
-
*
|
|
3815
|
-
|
|
3936
|
+
* Maximum number of pages to return. Defaults to 50; clamped to 1–200.
|
|
3937
|
+
*/
|
|
3938
|
+
limit?: number | null;
|
|
3939
|
+
|
|
3940
|
+
/**
|
|
3941
|
+
* Case-sensitive substring match against the page path.
|
|
3816
3942
|
*/
|
|
3817
3943
|
search?: string;
|
|
3818
3944
|
}
|
|
@@ -3820,17 +3946,31 @@ export interface ConsentSettingPageAnalysisParams {
|
|
|
3820
3946
|
export interface ConsentSettingAnalyticsByRegionParams {
|
|
3821
3947
|
/**
|
|
3822
3948
|
* Inclusive lower bound of the analytics window, as a UTC calendar day in
|
|
3823
|
-
* `YYYY-MM-DD` format.
|
|
3824
|
-
*
|
|
3949
|
+
* `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
|
|
3950
|
+
* 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
|
|
3825
3951
|
*/
|
|
3826
3952
|
from: string;
|
|
3827
3953
|
|
|
3828
3954
|
/**
|
|
3829
3955
|
* Inclusive upper bound of the analytics window, as a UTC calendar day in
|
|
3830
|
-
* `YYYY-MM-DD` format.
|
|
3831
|
-
*
|
|
3956
|
+
* `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
|
|
3957
|
+
* 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
|
|
3832
3958
|
*/
|
|
3833
3959
|
to: string;
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* JSON-encoded versioned analytics filter. Uses the shared analytics catalog
|
|
3963
|
+
* property IDs and operators, including event, session, and custom properties.
|
|
3964
|
+
*/
|
|
3965
|
+
filter?: string;
|
|
3966
|
+
|
|
3967
|
+
/**
|
|
3968
|
+
* Reporting interval: DAILY (default), WEEKLY (UTC weeks starting Monday), MONTHLY
|
|
3969
|
+
* (UTC calendar months), or HOURLY. Included-day limits: at most 180 days for
|
|
3970
|
+
* `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`. Breakdown
|
|
3971
|
+
* reports aggregate the entire selected range.
|
|
3972
|
+
*/
|
|
3973
|
+
granularity?: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
|
|
3834
3974
|
}
|
|
3835
3975
|
|
|
3836
3976
|
export declare namespace ConsentSettings {
|
|
@@ -3842,11 +3982,15 @@ export declare namespace ConsentSettings {
|
|
|
3842
3982
|
type ConsentSettingUpdateResponse as ConsentSettingUpdateResponse,
|
|
3843
3983
|
type ConsentSettingDeleteResponse as ConsentSettingDeleteResponse,
|
|
3844
3984
|
type ConsentSettingAnalyticsResponse as ConsentSettingAnalyticsResponse,
|
|
3985
|
+
type ConsentSettingAnalyticsMonthlyResponse as ConsentSettingAnalyticsMonthlyResponse,
|
|
3986
|
+
type ConsentSettingAnalyticsCapabilitiesResponse as ConsentSettingAnalyticsCapabilitiesResponse,
|
|
3845
3987
|
type ConsentSettingPageAnalysisResponse as ConsentSettingPageAnalysisResponse,
|
|
3846
3988
|
type ConsentSettingAnalyticsByRegionResponse as ConsentSettingAnalyticsByRegionResponse,
|
|
3847
3989
|
type ConsentSettingReplaceParams as ConsentSettingReplaceParams,
|
|
3848
3990
|
type ConsentSettingUpdateParams as ConsentSettingUpdateParams,
|
|
3849
3991
|
type ConsentSettingAnalyticsParams as ConsentSettingAnalyticsParams,
|
|
3992
|
+
type ConsentSettingAnalyticsMonthlyParams as ConsentSettingAnalyticsMonthlyParams,
|
|
3993
|
+
type ConsentSettingAnalyticsCapabilitiesParams as ConsentSettingAnalyticsCapabilitiesParams,
|
|
3850
3994
|
type ConsentSettingPageAnalysisParams as ConsentSettingPageAnalysisParams,
|
|
3851
3995
|
type ConsentSettingAnalyticsByRegionParams as ConsentSettingAnalyticsByRegionParams,
|
|
3852
3996
|
};
|