@oursprivacy/platform-sdk 1.52.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/allowed-events.d.mts +9 -7
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +9 -7
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/allowed-events.js +9 -7
- package/resources/allowed-events.js.map +1 -1
- package/resources/allowed-events.mjs +9 -7
- package/resources/allowed-events.mjs.map +1 -1
- package/resources/analytics.d.mts +4 -2
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +4 -2
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.js +4 -2
- package/resources/analytics.js.map +1 -1
- package/resources/analytics.mjs +4 -2
- package/resources/analytics.mjs.map +1 -1
- package/resources/attribution.d.mts +8 -5
- package/resources/attribution.d.mts.map +1 -1
- package/resources/attribution.d.ts +8 -5
- package/resources/attribution.d.ts.map +1 -1
- package/resources/attribution.js +8 -5
- package/resources/attribution.js.map +1 -1
- package/resources/attribution.mjs +8 -5
- package/resources/attribution.mjs.map +1 -1
- package/resources/audience-conversion-reports.d.mts +11 -9
- package/resources/audience-conversion-reports.d.mts.map +1 -1
- package/resources/audience-conversion-reports.d.ts +11 -9
- package/resources/audience-conversion-reports.d.ts.map +1 -1
- package/resources/audience-conversion-reports.js +11 -9
- package/resources/audience-conversion-reports.js.map +1 -1
- package/resources/audience-conversion-reports.mjs +11 -9
- package/resources/audience-conversion-reports.mjs.map +1 -1
- package/resources/consent-analytics.d.mts +2 -1
- package/resources/consent-analytics.d.mts.map +1 -1
- package/resources/consent-analytics.d.ts +2 -1
- package/resources/consent-analytics.d.ts.map +1 -1
- package/resources/consent-analytics.js +2 -1
- package/resources/consent-analytics.js.map +1 -1
- package/resources/consent-analytics.mjs +2 -1
- package/resources/consent-analytics.mjs.map +1 -1
- package/resources/consent-settings.d.mts +6238 -650
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +6238 -650
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +72 -34
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +72 -34
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/conversion-journey-summaries.d.mts +10 -5
- package/resources/conversion-journey-summaries.d.mts.map +1 -1
- package/resources/conversion-journey-summaries.d.ts +10 -5
- package/resources/conversion-journey-summaries.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.js +10 -5
- package/resources/conversion-journey-summaries.js.map +1 -1
- package/resources/conversion-journey-summaries.mjs +10 -5
- package/resources/conversion-journey-summaries.mjs.map +1 -1
- package/resources/custom-domains.d.mts +301 -0
- package/resources/custom-domains.d.mts.map +1 -0
- package/resources/custom-domains.d.ts +301 -0
- package/resources/custom-domains.d.ts.map +1 -0
- package/resources/custom-domains.js +55 -0
- package/resources/custom-domains.js.map +1 -0
- package/resources/custom-domains.mjs +51 -0
- package/resources/custom-domains.mjs.map +1 -0
- package/resources/data-governance.d.mts +83 -21
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +83 -21
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/data-governance.js +8 -6
- package/resources/data-governance.js.map +1 -1
- package/resources/data-governance.mjs +8 -6
- package/resources/data-governance.mjs.map +1 -1
- package/resources/default-mappings.d.mts +213 -8
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +213 -8
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/default-mappings.js +6 -5
- package/resources/default-mappings.js.map +1 -1
- package/resources/default-mappings.mjs +6 -5
- package/resources/default-mappings.mjs.map +1 -1
- package/resources/destinations.d.mts +45 -20
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +45 -20
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +12 -7
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +12 -7
- package/resources/destinations.mjs.map +1 -1
- package/resources/experiment-settings.d.mts +9 -6
- package/resources/experiment-settings.d.mts.map +1 -1
- package/resources/experiment-settings.d.ts +9 -6
- package/resources/experiment-settings.d.ts.map +1 -1
- package/resources/experiment-settings.js +9 -6
- package/resources/experiment-settings.js.map +1 -1
- package/resources/experiment-settings.mjs +9 -6
- package/resources/experiment-settings.mjs.map +1 -1
- package/resources/experiment-variants.d.mts +126 -19
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +126 -19
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiment-variants.js +9 -5
- package/resources/experiment-variants.js.map +1 -1
- package/resources/experiment-variants.mjs +9 -5
- package/resources/experiment-variants.mjs.map +1 -1
- package/resources/experiments.d.mts +4009 -272
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +4009 -272
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +30 -19
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +30 -19
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +659 -17
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +659 -17
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +11 -10
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +11 -10
- package/resources/funnels.mjs.map +1 -1
- package/resources/heatmap-pages.d.mts +3 -2
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +3 -2
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +3 -2
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +3 -2
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +597 -28
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +597 -28
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +17 -12
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +17 -12
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/locations.d.mts +31 -10
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +31 -10
- package/resources/locations.d.ts.map +1 -1
- package/resources/locations.js +6 -5
- package/resources/locations.js.map +1 -1
- package/resources/locations.mjs +6 -5
- package/resources/locations.mjs.map +1 -1
- package/resources/mappings.d.mts +558 -24
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +558 -24
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +40 -12
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +40 -12
- package/resources/mappings.mjs.map +1 -1
- package/resources/me.d.mts +29 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +29 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +17 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +13 -0
- package/resources/me.mjs.map +1 -0
- package/resources/personalization-properties.d.mts +10 -7
- package/resources/personalization-properties.d.mts.map +1 -1
- package/resources/personalization-properties.d.ts +10 -7
- package/resources/personalization-properties.d.ts.map +1 -1
- package/resources/personalization-properties.js +10 -7
- package/resources/personalization-properties.js.map +1 -1
- package/resources/personalization-properties.mjs +10 -7
- package/resources/personalization-properties.mjs.map +1 -1
- package/resources/replay-settings.d.mts +126 -9
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +126 -9
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +9 -6
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +9 -6
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/session-replays.d.mts +9 -2
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +9 -2
- package/resources/session-replays.d.ts.map +1 -1
- package/resources/session-replays.js +4 -2
- package/resources/session-replays.js.map +1 -1
- package/resources/session-replays.mjs +4 -2
- package/resources/session-replays.mjs.map +1 -1
- package/resources/short-links.d.mts +733 -17
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +733 -17
- package/resources/short-links.d.ts.map +1 -1
- package/resources/short-links.js +11 -7
- package/resources/short-links.js.map +1 -1
- package/resources/short-links.mjs +11 -7
- package/resources/short-links.mjs.map +1 -1
- package/resources/sources.d.mts +98 -17
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +98 -17
- package/resources/sources.d.ts.map +1 -1
- package/resources/sources.js +12 -6
- package/resources/sources.js.map +1 -1
- package/resources/sources.mjs +12 -6
- package/resources/sources.mjs.map +1 -1
- package/resources/tag-manager-asset-folders.d.mts +2 -1
- package/resources/tag-manager-asset-folders.d.mts.map +1 -1
- package/resources/tag-manager-asset-folders.d.ts +2 -1
- package/resources/tag-manager-asset-folders.d.ts.map +1 -1
- package/resources/tag-manager-asset-folders.js +2 -1
- package/resources/tag-manager-asset-folders.js.map +1 -1
- package/resources/tag-manager-asset-folders.mjs +2 -1
- package/resources/tag-manager-asset-folders.mjs.map +1 -1
- package/resources/tag-manager-folders.d.mts +9 -7
- package/resources/tag-manager-folders.d.mts.map +1 -1
- package/resources/tag-manager-folders.d.ts +9 -7
- package/resources/tag-manager-folders.d.ts.map +1 -1
- package/resources/tag-manager-folders.js +9 -7
- package/resources/tag-manager-folders.js.map +1 -1
- package/resources/tag-manager-folders.mjs +9 -7
- package/resources/tag-manager-folders.mjs.map +1 -1
- package/resources/tag-manager-tags.d.mts +13 -7
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +13 -7
- package/resources/tag-manager-tags.d.ts.map +1 -1
- package/resources/tag-manager-tags.js +10 -6
- package/resources/tag-manager-tags.js.map +1 -1
- package/resources/tag-manager-tags.mjs +10 -6
- package/resources/tag-manager-tags.mjs.map +1 -1
- package/resources/tag-manager-triggers.d.mts +14 -7
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +14 -7
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-triggers.js +11 -6
- package/resources/tag-manager-triggers.js.map +1 -1
- package/resources/tag-manager-triggers.mjs +11 -6
- package/resources/tag-manager-triggers.mjs.map +1 -1
- package/resources/tag-manager-variables.d.mts +53 -23
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +53 -23
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-manager-variables.js +10 -6
- package/resources/tag-manager-variables.js.map +1 -1
- package/resources/tag-manager-variables.mjs +10 -6
- package/resources/tag-manager-variables.mjs.map +1 -1
- package/resources/tag-managers.d.mts +24 -6
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +24 -6
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +18 -5
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +18 -5
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +73 -15
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +73 -15
- package/resources/test-events.d.ts.map +1 -1
- package/resources/test-events.js +6 -4
- package/resources/test-events.js.map +1 -1
- package/resources/test-events.mjs +6 -4
- package/resources/test-events.mjs.map +1 -1
- package/resources/translation-widgets.d.mts +7 -6
- package/resources/translation-widgets.d.mts.map +1 -1
- package/resources/translation-widgets.d.ts +7 -6
- package/resources/translation-widgets.d.ts.map +1 -1
- package/resources/translation-widgets.js +7 -6
- package/resources/translation-widgets.js.map +1 -1
- package/resources/translation-widgets.mjs +7 -6
- package/resources/translation-widgets.mjs.map +1 -1
- package/resources/versions.d.mts +102 -47
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +102 -47
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +20 -15
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +20 -15
- package/resources/versions.mjs.map +1 -1
- package/resources/video-channels.d.mts +47 -13
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +47 -13
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/video-channels.js +15 -9
- package/resources/video-channels.js.map +1 -1
- package/resources/video-channels.mjs +15 -9
- package/resources/video-channels.mjs.map +1 -1
- package/resources/videos.d.mts +21 -14
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +21 -14
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +21 -14
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +21 -14
- package/resources/videos.mjs.map +1 -1
- package/resources/web-analytics.d.mts +14 -9
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +14 -9
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +14 -9
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +14 -9
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanner-rules.d.mts +10 -6
- package/resources/web-scanner-rules.d.mts.map +1 -1
- package/resources/web-scanner-rules.d.ts +10 -6
- package/resources/web-scanner-rules.d.ts.map +1 -1
- package/resources/web-scanner-rules.js +10 -6
- package/resources/web-scanner-rules.js.map +1 -1
- package/resources/web-scanner-rules.mjs +10 -6
- package/resources/web-scanner-rules.mjs.map +1 -1
- package/resources/web-scanners.d.mts +26 -19
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +26 -19
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +25 -18
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +25 -18
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +44 -0
- package/src/resources/allowed-events.ts +9 -7
- package/src/resources/analytics.ts +4 -2
- package/src/resources/attribution.ts +8 -5
- package/src/resources/audience-conversion-reports.ts +11 -9
- package/src/resources/consent-analytics.ts +2 -1
- package/src/resources/consent-settings.ts +7576 -519
- package/src/resources/conversion-journey-summaries.ts +10 -5
- package/src/resources/custom-domains.ts +450 -0
- package/src/resources/data-governance.ts +53 -21
- package/src/resources/default-mappings.ts +309 -8
- package/src/resources/destinations.ts +40 -15
- package/src/resources/experiment-settings.ts +9 -6
- package/src/resources/experiment-variants.ts +140 -19
- package/src/resources/experiments.ts +8051 -462
- package/src/resources/funnels.ts +1366 -17
- package/src/resources/heatmap-pages.ts +3 -2
- package/src/resources/index.ts +19 -0
- package/src/resources/journey-flows.ts +1241 -28
- package/src/resources/locations.ts +41 -10
- package/src/resources/mappings.ts +812 -31
- package/src/resources/me.ts +37 -0
- package/src/resources/personalization-properties.ts +10 -7
- package/src/resources/replay-settings.ts +147 -9
- package/src/resources/session-replays.ts +10 -2
- package/src/resources/short-links.ts +883 -17
- package/src/resources/sources.ts +108 -17
- package/src/resources/tag-manager-asset-folders.ts +2 -1
- package/src/resources/tag-manager-folders.ts +9 -7
- package/src/resources/tag-manager-tags.ts +17 -7
- package/src/resources/tag-manager-triggers.ts +18 -7
- package/src/resources/tag-manager-variables.ts +101 -19
- package/src/resources/tag-managers.ts +35 -5
- package/src/resources/test-events.ts +53 -15
- package/src/resources/translation-widgets.ts +7 -6
- package/src/resources/versions.ts +104 -47
- package/src/resources/video-channels.ts +59 -13
- package/src/resources/videos.ts +21 -14
- package/src/resources/web-analytics.ts +14 -9
- package/src/resources/web-scanner-rules.ts +10 -6
- package/src/resources/web-scanners.ts +26 -19
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/analytics.mjs
CHANGED
|
@@ -3,7 +3,8 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
3
3
|
export class Analytics extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Discover the filter properties, operators, and providers available to analytics
|
|
6
|
-
* query definitions. Requires scope
|
|
6
|
+
* query definitions. Requires API-key scope or current OAuth user permission:
|
|
7
|
+
* variables:find-default
|
|
7
8
|
*/
|
|
8
9
|
queryCatalog(options) {
|
|
9
10
|
return this._client.get('/rest/v1/analytics/query-catalog', options);
|
|
@@ -12,7 +13,8 @@ export class Analytics extends APIResource {
|
|
|
12
13
|
* Discover property paths recently observed in event data. Results are suggestions
|
|
13
14
|
* from a fixed recent 30-day sample and may be incomplete; callers can still use
|
|
14
15
|
* manually entered paths. Use `eventName` and `sourceId` to narrow the
|
|
15
|
-
* suggestions. Requires scope
|
|
16
|
+
* suggestions. Requires API-key scope or current OAuth user permission:
|
|
17
|
+
* variables:find-custom, web-analytics:view
|
|
16
18
|
*/
|
|
17
19
|
propertySuggestions(query = {}, options) {
|
|
18
20
|
return this._client.get('/rest/v1/analytics/property-suggestions', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.mjs","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"analytics.mjs","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;OAMG;IACH,mBAAmB,CACjB,QAA+D,EAAE,EACjE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yCAAyC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF"}
|
|
@@ -9,7 +9,7 @@ export declare class Attribution extends APIResource {
|
|
|
9
9
|
* analysis window (max 60 days). Optionally filter to a specific UTM combo with
|
|
10
10
|
* `utmSource`, `utmMedium`, etc. The counts represent unique visitors who
|
|
11
11
|
* performed the specified `eventName` and were attributed to each UTM value.
|
|
12
|
-
* Requires scope: web-analytics:view
|
|
12
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:view
|
|
13
13
|
*/
|
|
14
14
|
initial(query: AttributionInitialParams, options?: RequestOptions): APIPromise<AttributionInitialResponse>;
|
|
15
15
|
/**
|
|
@@ -18,7 +18,8 @@ export declare class Attribution extends APIResource {
|
|
|
18
18
|
* a last-touch basis for the given date window. Use `from`/`to` to set the
|
|
19
19
|
* analysis window (max 60 days). The counts represent unique visitors who
|
|
20
20
|
* performed the specified `eventName` and were attributed to each UTM value on
|
|
21
|
-
* their most recent session. Requires scope
|
|
21
|
+
* their most recent session. Requires API-key scope or current OAuth user
|
|
22
|
+
* permission: web-analytics:view
|
|
22
23
|
*/
|
|
23
24
|
lastTouch(query: AttributionLastTouchParams, options?: RequestOptions): APIPromise<AttributionLastTouchResponse>;
|
|
24
25
|
/**
|
|
@@ -26,7 +27,8 @@ export declare class Attribution extends APIResource {
|
|
|
26
27
|
* hierarchy with attributed converter credits distributed according to the
|
|
27
28
|
* selected `attributionModel`. Scoped to all web sources by default; optionally
|
|
28
29
|
* narrow to a single web source via `webSourceId`. Date range is capped at 31
|
|
29
|
-
* days; lookback window is capped at 60 days. Requires scope
|
|
30
|
+
* days; lookback window is capped at 60 days. Requires API-key scope or current
|
|
31
|
+
* OAuth user permission: web-analytics:view
|
|
30
32
|
*/
|
|
31
33
|
conversion(query: AttributionConversionParams, options?: RequestOptions): APIPromise<AttributionConversionResponse>;
|
|
32
34
|
/**
|
|
@@ -34,7 +36,8 @@ export declare class Attribution extends APIResource {
|
|
|
34
36
|
* conversion rate for the selected event and date window, a per-day timeseries,
|
|
35
37
|
* and a UTM source/medium/campaign breakdown. Optionally compare against the
|
|
36
38
|
* preceding period of equal length when `attributionWindow` is `IN_RANGE`. Date
|
|
37
|
-
* range is capped at 60 days. Requires scope
|
|
39
|
+
* range is capped at 60 days. Requires API-key scope or current OAuth user
|
|
40
|
+
* permission: web-analytics:view
|
|
38
41
|
*/
|
|
39
42
|
audienceConversion(query: AttributionAudienceConversionParams, options?: RequestOptions): APIPromise<AttributionAudienceConversionResponse>;
|
|
40
43
|
/**
|
|
@@ -44,7 +47,7 @@ export declare class Attribution extends APIResource {
|
|
|
44
47
|
* `web-analytics:view` and `report:event-count-by-day` API-key scopes. Date range
|
|
45
48
|
* is capped at 31 days. Pass `combos` as a single JSON-encoded array:
|
|
46
49
|
* `combos=[{"utmSource":"google","utmMedium":"cpc"},{"utmSource":"meta"}]`.
|
|
47
|
-
* Requires scope: web-analytics:view
|
|
50
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:view
|
|
48
51
|
*/
|
|
49
52
|
utmComparison(query: AttributionUtmComparisonParams, options?: RequestOptions): APIPromise<AttributionUtmComparisonResponse>;
|
|
50
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribution.d.mts","sourceRoot":"","sources":["../src/resources/attribution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK,EAAE,wBAAwB,EAAE,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E,MAAM,CAAC;IAElB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,8BAA8B;IAC7C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -9,7 +9,7 @@ export declare class Attribution extends APIResource {
|
|
|
9
9
|
* analysis window (max 60 days). Optionally filter to a specific UTM combo with
|
|
10
10
|
* `utmSource`, `utmMedium`, etc. The counts represent unique visitors who
|
|
11
11
|
* performed the specified `eventName` and were attributed to each UTM value.
|
|
12
|
-
* Requires scope: web-analytics:view
|
|
12
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:view
|
|
13
13
|
*/
|
|
14
14
|
initial(query: AttributionInitialParams, options?: RequestOptions): APIPromise<AttributionInitialResponse>;
|
|
15
15
|
/**
|
|
@@ -18,7 +18,8 @@ export declare class Attribution extends APIResource {
|
|
|
18
18
|
* a last-touch basis for the given date window. Use `from`/`to` to set the
|
|
19
19
|
* analysis window (max 60 days). The counts represent unique visitors who
|
|
20
20
|
* performed the specified `eventName` and were attributed to each UTM value on
|
|
21
|
-
* their most recent session. Requires scope
|
|
21
|
+
* their most recent session. Requires API-key scope or current OAuth user
|
|
22
|
+
* permission: web-analytics:view
|
|
22
23
|
*/
|
|
23
24
|
lastTouch(query: AttributionLastTouchParams, options?: RequestOptions): APIPromise<AttributionLastTouchResponse>;
|
|
24
25
|
/**
|
|
@@ -26,7 +27,8 @@ export declare class Attribution extends APIResource {
|
|
|
26
27
|
* hierarchy with attributed converter credits distributed according to the
|
|
27
28
|
* selected `attributionModel`. Scoped to all web sources by default; optionally
|
|
28
29
|
* narrow to a single web source via `webSourceId`. Date range is capped at 31
|
|
29
|
-
* days; lookback window is capped at 60 days. Requires scope
|
|
30
|
+
* days; lookback window is capped at 60 days. Requires API-key scope or current
|
|
31
|
+
* OAuth user permission: web-analytics:view
|
|
30
32
|
*/
|
|
31
33
|
conversion(query: AttributionConversionParams, options?: RequestOptions): APIPromise<AttributionConversionResponse>;
|
|
32
34
|
/**
|
|
@@ -34,7 +36,8 @@ export declare class Attribution extends APIResource {
|
|
|
34
36
|
* conversion rate for the selected event and date window, a per-day timeseries,
|
|
35
37
|
* and a UTM source/medium/campaign breakdown. Optionally compare against the
|
|
36
38
|
* preceding period of equal length when `attributionWindow` is `IN_RANGE`. Date
|
|
37
|
-
* range is capped at 60 days. Requires scope
|
|
39
|
+
* range is capped at 60 days. Requires API-key scope or current OAuth user
|
|
40
|
+
* permission: web-analytics:view
|
|
38
41
|
*/
|
|
39
42
|
audienceConversion(query: AttributionAudienceConversionParams, options?: RequestOptions): APIPromise<AttributionAudienceConversionResponse>;
|
|
40
43
|
/**
|
|
@@ -44,7 +47,7 @@ export declare class Attribution extends APIResource {
|
|
|
44
47
|
* `web-analytics:view` and `report:event-count-by-day` API-key scopes. Date range
|
|
45
48
|
* is capped at 31 days. Pass `combos` as a single JSON-encoded array:
|
|
46
49
|
* `combos=[{"utmSource":"google","utmMedium":"cpc"},{"utmSource":"meta"}]`.
|
|
47
|
-
* Requires scope: web-analytics:view
|
|
50
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:view
|
|
48
51
|
*/
|
|
49
52
|
utmComparison(query: AttributionUtmComparisonParams, options?: RequestOptions): APIPromise<AttributionUtmComparisonResponse>;
|
|
50
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribution.d.ts","sourceRoot":"","sources":["../src/resources/attribution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI1G
|
|
1
|
+
{"version":3,"file":"attribution.d.ts","sourceRoot":"","sources":["../src/resources/attribution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI1G;;;;;;;;OAQG;IACH,SAAS,CACP,KAAK,EAAE,0BAA0B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,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;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
package/resources/attribution.js
CHANGED
|
@@ -11,7 +11,7 @@ class Attribution extends resource_1.APIResource {
|
|
|
11
11
|
* analysis window (max 60 days). Optionally filter to a specific UTM combo with
|
|
12
12
|
* `utmSource`, `utmMedium`, etc. The counts represent unique visitors who
|
|
13
13
|
* performed the specified `eventName` and were attributed to each UTM value.
|
|
14
|
-
* Requires scope: web-analytics:view
|
|
14
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:view
|
|
15
15
|
*/
|
|
16
16
|
initial(query, options) {
|
|
17
17
|
return this._client.get('/rest/v1/attribution/initial', { query, ...options });
|
|
@@ -22,7 +22,8 @@ class Attribution extends resource_1.APIResource {
|
|
|
22
22
|
* a last-touch basis for the given date window. Use `from`/`to` to set the
|
|
23
23
|
* analysis window (max 60 days). The counts represent unique visitors who
|
|
24
24
|
* performed the specified `eventName` and were attributed to each UTM value on
|
|
25
|
-
* their most recent session. Requires scope
|
|
25
|
+
* their most recent session. Requires API-key scope or current OAuth user
|
|
26
|
+
* permission: web-analytics:view
|
|
26
27
|
*/
|
|
27
28
|
lastTouch(query, options) {
|
|
28
29
|
return this._client.get('/rest/v1/attribution/last-touch', { query, ...options });
|
|
@@ -32,7 +33,8 @@ class Attribution extends resource_1.APIResource {
|
|
|
32
33
|
* hierarchy with attributed converter credits distributed according to the
|
|
33
34
|
* selected `attributionModel`. Scoped to all web sources by default; optionally
|
|
34
35
|
* narrow to a single web source via `webSourceId`. Date range is capped at 31
|
|
35
|
-
* days; lookback window is capped at 60 days. Requires scope
|
|
36
|
+
* days; lookback window is capped at 60 days. Requires API-key scope or current
|
|
37
|
+
* OAuth user permission: web-analytics:view
|
|
36
38
|
*/
|
|
37
39
|
conversion(query, options) {
|
|
38
40
|
return this._client.get('/rest/v1/attribution/conversion', { query, ...options });
|
|
@@ -42,7 +44,8 @@ class Attribution extends resource_1.APIResource {
|
|
|
42
44
|
* conversion rate for the selected event and date window, a per-day timeseries,
|
|
43
45
|
* and a UTM source/medium/campaign breakdown. Optionally compare against the
|
|
44
46
|
* preceding period of equal length when `attributionWindow` is `IN_RANGE`. Date
|
|
45
|
-
* range is capped at 60 days. Requires scope
|
|
47
|
+
* range is capped at 60 days. Requires API-key scope or current OAuth user
|
|
48
|
+
* permission: web-analytics:view
|
|
46
49
|
*/
|
|
47
50
|
audienceConversion(query, options) {
|
|
48
51
|
return this._client.get('/rest/v1/attribution/audience-conversion', { query, ...options });
|
|
@@ -54,7 +57,7 @@ class Attribution extends resource_1.APIResource {
|
|
|
54
57
|
* `web-analytics:view` and `report:event-count-by-day` API-key scopes. Date range
|
|
55
58
|
* is capped at 31 days. Pass `combos` as a single JSON-encoded array:
|
|
56
59
|
* `combos=[{"utmSource":"google","utmMedium":"cpc"},{"utmSource":"meta"}]`.
|
|
57
|
-
* Requires scope: web-analytics:view
|
|
60
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:view
|
|
58
61
|
*/
|
|
59
62
|
utmComparison(query, options) {
|
|
60
63
|
return this._client.get('/rest/v1/attribution/utm-comparison', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribution.js","sourceRoot":"","sources":["../src/resources/attribution.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,WAAY,SAAQ,sBA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;CACF;AA3ED,kCA2EC"}
|
|
@@ -8,7 +8,7 @@ export class Attribution extends APIResource {
|
|
|
8
8
|
* analysis window (max 60 days). Optionally filter to a specific UTM combo with
|
|
9
9
|
* `utmSource`, `utmMedium`, etc. The counts represent unique visitors who
|
|
10
10
|
* performed the specified `eventName` and were attributed to each UTM value.
|
|
11
|
-
* Requires scope: web-analytics:view
|
|
11
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:view
|
|
12
12
|
*/
|
|
13
13
|
initial(query, options) {
|
|
14
14
|
return this._client.get('/rest/v1/attribution/initial', { query, ...options });
|
|
@@ -19,7 +19,8 @@ export class Attribution extends APIResource {
|
|
|
19
19
|
* a last-touch basis for the given date window. Use `from`/`to` to set the
|
|
20
20
|
* analysis window (max 60 days). The counts represent unique visitors who
|
|
21
21
|
* performed the specified `eventName` and were attributed to each UTM value on
|
|
22
|
-
* their most recent session. Requires scope
|
|
22
|
+
* their most recent session. Requires API-key scope or current OAuth user
|
|
23
|
+
* permission: web-analytics:view
|
|
23
24
|
*/
|
|
24
25
|
lastTouch(query, options) {
|
|
25
26
|
return this._client.get('/rest/v1/attribution/last-touch', { query, ...options });
|
|
@@ -29,7 +30,8 @@ export class Attribution extends APIResource {
|
|
|
29
30
|
* hierarchy with attributed converter credits distributed according to the
|
|
30
31
|
* selected `attributionModel`. Scoped to all web sources by default; optionally
|
|
31
32
|
* narrow to a single web source via `webSourceId`. Date range is capped at 31
|
|
32
|
-
* days; lookback window is capped at 60 days. Requires scope
|
|
33
|
+
* days; lookback window is capped at 60 days. Requires API-key scope or current
|
|
34
|
+
* OAuth user permission: web-analytics:view
|
|
33
35
|
*/
|
|
34
36
|
conversion(query, options) {
|
|
35
37
|
return this._client.get('/rest/v1/attribution/conversion', { query, ...options });
|
|
@@ -39,7 +41,8 @@ export class Attribution extends APIResource {
|
|
|
39
41
|
* conversion rate for the selected event and date window, a per-day timeseries,
|
|
40
42
|
* and a UTM source/medium/campaign breakdown. Optionally compare against the
|
|
41
43
|
* preceding period of equal length when `attributionWindow` is `IN_RANGE`. Date
|
|
42
|
-
* range is capped at 60 days. Requires scope
|
|
44
|
+
* range is capped at 60 days. Requires API-key scope or current OAuth user
|
|
45
|
+
* permission: web-analytics:view
|
|
43
46
|
*/
|
|
44
47
|
audienceConversion(query, options) {
|
|
45
48
|
return this._client.get('/rest/v1/attribution/audience-conversion', { query, ...options });
|
|
@@ -51,7 +54,7 @@ export class Attribution extends APIResource {
|
|
|
51
54
|
* `web-analytics:view` and `report:event-count-by-day` API-key scopes. Date range
|
|
52
55
|
* is capped at 31 days. Pass `combos` as a single JSON-encoded array:
|
|
53
56
|
* `combos=[{"utmSource":"google","utmMedium":"cpc"},{"utmSource":"meta"}]`.
|
|
54
|
-
* Requires scope: web-analytics:view
|
|
57
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:view
|
|
55
58
|
*/
|
|
56
59
|
utmComparison(query, options) {
|
|
57
60
|
return this._client.get('/rest/v1/attribution/utm-comparison', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribution.mjs","sourceRoot":"","sources":["../src/resources/attribution.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,OAAO,CAAC,KAA+B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"attribution.mjs","sourceRoot":"","sources":["../src/resources/attribution.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,OAAO,CAAC,KAA+B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;OAQG;IACH,SAAS,CACP,KAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CACR,KAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;OAOG;IACH,kBAAkB,CAChB,KAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0CAA0C,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;OAQG;IACH,aAAa,CACX,KAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF"}
|
|
@@ -4,35 +4,37 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
4
4
|
export declare class AudienceConversionReports extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* List saved Audience Performance report configurations, most recently updated
|
|
7
|
-
* first. Requires scope
|
|
7
|
+
* first. Requires API-key scope or current OAuth user permission:
|
|
8
|
+
* web-analytics:view
|
|
8
9
|
*/
|
|
9
10
|
list(options?: RequestOptions): APIPromise<AudienceConversionReportListResponse>;
|
|
10
11
|
/**
|
|
11
12
|
* Save an Audience Performance report configuration. Returns the full report so
|
|
12
|
-
* callers can run or update it without another request. Requires scope
|
|
13
|
-
* web-analytics:write
|
|
13
|
+
* callers can run or update it without another request. Requires API-key scope or
|
|
14
|
+
* current OAuth user permission: web-analytics:write
|
|
14
15
|
*/
|
|
15
16
|
create(body: AudienceConversionReportCreateParams, options?: RequestOptions): APIPromise<AudienceConversionReportCreateResponse>;
|
|
16
17
|
/**
|
|
17
|
-
* Fetch a saved Audience Performance report by id. Requires scope
|
|
18
|
-
* web-analytics:view
|
|
18
|
+
* Fetch a saved Audience Performance report by id. Requires API-key scope or
|
|
19
|
+
* current OAuth user permission: web-analytics:view
|
|
19
20
|
*/
|
|
20
21
|
retrieve(id: string, options?: RequestOptions): APIPromise<AudienceConversionReportRetrieveResponse>;
|
|
21
22
|
/**
|
|
22
23
|
* Update a saved Audience Performance report. Omitted fields remain unchanged,
|
|
23
24
|
* `filters: []` clears all filters, and dates must be sent or cleared as a pair.
|
|
24
|
-
* Requires scope: web-analytics:write
|
|
25
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:write
|
|
25
26
|
*/
|
|
26
27
|
update(id: string, body: AudienceConversionReportUpdateParams, options?: RequestOptions): APIPromise<AudienceConversionReportUpdateResponse>;
|
|
27
28
|
/**
|
|
28
|
-
* Delete a saved Audience Performance report configuration. Requires scope
|
|
29
|
-
* web-analytics:write
|
|
29
|
+
* Delete a saved Audience Performance report configuration. Requires API-key scope
|
|
30
|
+
* or current OAuth user permission: web-analytics:write
|
|
30
31
|
*/
|
|
31
32
|
delete(id: string, options?: RequestOptions): APIPromise<AudienceConversionReportDeleteResponse>;
|
|
32
33
|
/**
|
|
33
34
|
* Run a saved Audience Performance report. `from` and `to` override the saved date
|
|
34
35
|
* range when provided together. Returns 400 when neither a saved range nor an
|
|
35
|
-
* override is available. Requires scope
|
|
36
|
+
* override is available. Requires API-key scope or current OAuth user permission:
|
|
37
|
+
* web-analytics:view
|
|
36
38
|
*/
|
|
37
39
|
results(id: string, query?: AudienceConversionReportResultsParams | null | undefined, options?: RequestOptions): APIPromise<AudienceConversionReportResultsResponse>;
|
|
38
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audience-conversion-reports.d.mts","sourceRoot":"","sources":["../src/resources/audience-conversion-reports.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,yBAA0B,SAAQ,WAAW;IACxD
|
|
1
|
+
{"version":3,"file":"audience-conversion-reports.d.mts","sourceRoot":"","sources":["../src/resources/audience-conversion-reports.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,yBAA0B,SAAQ,WAAW;IACxD;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oCAAoC,CAAC;IAIhF;;;;OAIG;IACH,MAAM,CACJ,IAAI,EAAE,oCAAoC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sCAAsC,CAAC;IAIrD;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wCAAwC,CAAC;IAIpG;;;;OAIG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oCAAoC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sCAAsC,CAAC;IAIrD;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sCAAsC,CAAC;IAIhG;;;;;OAKG;IACH,OAAO,CACL,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,qCAAqC,GAAG,IAAI,GAAG,SAAc,EACpE,O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CAC7B;AAED,yBAAiB,oCAAoC,CAAC;IACpD,UAAiB,MAAM;QACrB,SAAS,EACL,SAAS,GACT,UAAU,GACV,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,IAAI,GACJ,MAAM,GACN,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,MAAM,CAAC;QAEX,QAAQ,CAAC,EAAE,UAAU,GAAG,IAAI,GAAG,QAAQ,GAAG,cAAc,CAAC;QAEzD,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACxB;CACF;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,yBAAyB,CAAC;IACjD,OAAO,EACL,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,qCAAqC,IAAI,qCAAqC,GACpF,CAAC;CACH"}
|
|
@@ -4,35 +4,37 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
4
4
|
export declare class AudienceConversionReports extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* List saved Audience Performance report configurations, most recently updated
|
|
7
|
-
* first. Requires scope
|
|
7
|
+
* first. Requires API-key scope or current OAuth user permission:
|
|
8
|
+
* web-analytics:view
|
|
8
9
|
*/
|
|
9
10
|
list(options?: RequestOptions): APIPromise<AudienceConversionReportListResponse>;
|
|
10
11
|
/**
|
|
11
12
|
* Save an Audience Performance report configuration. Returns the full report so
|
|
12
|
-
* callers can run or update it without another request. Requires scope
|
|
13
|
-
* web-analytics:write
|
|
13
|
+
* callers can run or update it without another request. Requires API-key scope or
|
|
14
|
+
* current OAuth user permission: web-analytics:write
|
|
14
15
|
*/
|
|
15
16
|
create(body: AudienceConversionReportCreateParams, options?: RequestOptions): APIPromise<AudienceConversionReportCreateResponse>;
|
|
16
17
|
/**
|
|
17
|
-
* Fetch a saved Audience Performance report by id. Requires scope
|
|
18
|
-
* web-analytics:view
|
|
18
|
+
* Fetch a saved Audience Performance report by id. Requires API-key scope or
|
|
19
|
+
* current OAuth user permission: web-analytics:view
|
|
19
20
|
*/
|
|
20
21
|
retrieve(id: string, options?: RequestOptions): APIPromise<AudienceConversionReportRetrieveResponse>;
|
|
21
22
|
/**
|
|
22
23
|
* Update a saved Audience Performance report. Omitted fields remain unchanged,
|
|
23
24
|
* `filters: []` clears all filters, and dates must be sent or cleared as a pair.
|
|
24
|
-
* Requires scope: web-analytics:write
|
|
25
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:write
|
|
25
26
|
*/
|
|
26
27
|
update(id: string, body: AudienceConversionReportUpdateParams, options?: RequestOptions): APIPromise<AudienceConversionReportUpdateResponse>;
|
|
27
28
|
/**
|
|
28
|
-
* Delete a saved Audience Performance report configuration. Requires scope
|
|
29
|
-
* web-analytics:write
|
|
29
|
+
* Delete a saved Audience Performance report configuration. Requires API-key scope
|
|
30
|
+
* or current OAuth user permission: web-analytics:write
|
|
30
31
|
*/
|
|
31
32
|
delete(id: string, options?: RequestOptions): APIPromise<AudienceConversionReportDeleteResponse>;
|
|
32
33
|
/**
|
|
33
34
|
* Run a saved Audience Performance report. `from` and `to` override the saved date
|
|
34
35
|
* range when provided together. Returns 400 when neither a saved range nor an
|
|
35
|
-
* override is available. Requires scope
|
|
36
|
+
* override is available. Requires API-key scope or current OAuth user permission:
|
|
37
|
+
* web-analytics:view
|
|
36
38
|
*/
|
|
37
39
|
results(id: string, query?: AudienceConversionReportResultsParams | null | undefined, options?: RequestOptions): APIPromise<AudienceConversionReportResultsResponse>;
|
|
38
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audience-conversion-reports.d.ts","sourceRoot":"","sources":["../src/resources/audience-conversion-reports.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,yBAA0B,SAAQ,WAAW;IACxD
|
|
1
|
+
{"version":3,"file":"audience-conversion-reports.d.ts","sourceRoot":"","sources":["../src/resources/audience-conversion-reports.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,yBAA0B,SAAQ,WAAW;IACxD;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oCAAoC,CAAC;IAIhF;;;;OAIG;IACH,MAAM,CACJ,IAAI,EAAE,oCAAoC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sCAAsC,CAAC;IAIrD;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wCAAwC,CAAC;IAIpG;;;;OAIG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oCAAoC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sCAAsC,CAAC;IAIrD;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sCAAsC,CAAC;IAIhG;;;;;OAKG;IACH,OAAO,CACL,EAAE,EAAE,MA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AAM,CAAC;IAEvB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,yBAAiB,oCAAoC,CAAC;IACpD,UAAiB,MAAM;QACrB,SAAS,EACL,SAAS,GACT,UAAU,GACV,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,IAAI,GACJ,MAAM,GACN,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,MAAM,CAAC;QAEX,QAAQ,CAAC,EAAE,UAAU,GAAG,IAAI,GAAG,QAAQ,GAAG,cAAc,CAAC;QAEzD,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACxB;CACF;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,yBAAyB,CAAC;IACjD,OAAO,EACL,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,qCAAqC,IAAI,qCAAqC,GACpF,CAAC;CACH"}
|
|
@@ -7,22 +7,23 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
7
7
|
class AudienceConversionReports extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* List saved Audience Performance report configurations, most recently updated
|
|
10
|
-
* first. Requires scope
|
|
10
|
+
* first. Requires API-key scope or current OAuth user permission:
|
|
11
|
+
* web-analytics:view
|
|
11
12
|
*/
|
|
12
13
|
list(options) {
|
|
13
14
|
return this._client.get('/rest/v1/audience-conversion-reports', options);
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Save an Audience Performance report configuration. Returns the full report so
|
|
17
|
-
* callers can run or update it without another request. Requires scope
|
|
18
|
-
* web-analytics:write
|
|
18
|
+
* callers can run or update it without another request. Requires API-key scope or
|
|
19
|
+
* current OAuth user permission: web-analytics:write
|
|
19
20
|
*/
|
|
20
21
|
create(body, options) {
|
|
21
22
|
return this._client.post('/rest/v1/audience-conversion-reports', { body, ...options });
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
|
-
* Fetch a saved Audience Performance report by id. Requires scope
|
|
25
|
-
* web-analytics:view
|
|
25
|
+
* Fetch a saved Audience Performance report by id. Requires API-key scope or
|
|
26
|
+
* current OAuth user permission: web-analytics:view
|
|
26
27
|
*/
|
|
27
28
|
retrieve(id, options) {
|
|
28
29
|
return this._client.get((0, path_1.path) `/rest/v1/audience-conversion-reports/${id}`, options);
|
|
@@ -30,14 +31,14 @@ class AudienceConversionReports extends resource_1.APIResource {
|
|
|
30
31
|
/**
|
|
31
32
|
* Update a saved Audience Performance report. Omitted fields remain unchanged,
|
|
32
33
|
* `filters: []` clears all filters, and dates must be sent or cleared as a pair.
|
|
33
|
-
* Requires scope: web-analytics:write
|
|
34
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:write
|
|
34
35
|
*/
|
|
35
36
|
update(id, body, options) {
|
|
36
37
|
return this._client.patch((0, path_1.path) `/rest/v1/audience-conversion-reports/${id}`, { body, ...options });
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
|
-
* Delete a saved Audience Performance report configuration. Requires scope
|
|
40
|
-
* web-analytics:write
|
|
40
|
+
* Delete a saved Audience Performance report configuration. Requires API-key scope
|
|
41
|
+
* or current OAuth user permission: web-analytics:write
|
|
41
42
|
*/
|
|
42
43
|
delete(id, options) {
|
|
43
44
|
return this._client.delete((0, path_1.path) `/rest/v1/audience-conversion-reports/${id}`, options);
|
|
@@ -45,7 +46,8 @@ class AudienceConversionReports extends resource_1.APIResource {
|
|
|
45
46
|
/**
|
|
46
47
|
* Run a saved Audience Performance report. `from` and `to` override the saved date
|
|
47
48
|
* range when provided together. Returns 400 when neither a saved range nor an
|
|
48
|
-
* override is available. Requires scope
|
|
49
|
+
* override is available. Requires API-key scope or current OAuth user permission:
|
|
50
|
+
* web-analytics:view
|
|
49
51
|
*/
|
|
50
52
|
results(id, query = {}, options) {
|
|
51
53
|
return this._client.get((0, path_1.path) `/rest/v1/audience-conversion-reports/${id}/results`, { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audience-conversion-reports.js","sourceRoot":"","sources":["../src/resources/audience-conversion-reports.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,yBAA0B,SAAQ,sBAAW;IACxD
|
|
1
|
+
{"version":3,"file":"audience-conversion-reports.js","sourceRoot":"","sources":["../src/resources/audience-conversion-reports.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,yBAA0B,SAAQ,sBAAW;IACxD;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,IAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wCAAwC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,EAAU,EACV,IAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,wCAAwC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,wCAAwC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;OAKG;IACH,OAAO,CACL,EAAU,EACV,QAAkE,EAAE,EACpE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wCAAwC,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;CACF;AAhED,8DAgEC"}
|
|
@@ -4,22 +4,23 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
4
4
|
export class AudienceConversionReports extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* List saved Audience Performance report configurations, most recently updated
|
|
7
|
-
* first. Requires scope
|
|
7
|
+
* first. Requires API-key scope or current OAuth user permission:
|
|
8
|
+
* web-analytics:view
|
|
8
9
|
*/
|
|
9
10
|
list(options) {
|
|
10
11
|
return this._client.get('/rest/v1/audience-conversion-reports', options);
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Save an Audience Performance report configuration. Returns the full report so
|
|
14
|
-
* callers can run or update it without another request. Requires scope
|
|
15
|
-
* web-analytics:write
|
|
15
|
+
* callers can run or update it without another request. Requires API-key scope or
|
|
16
|
+
* current OAuth user permission: web-analytics:write
|
|
16
17
|
*/
|
|
17
18
|
create(body, options) {
|
|
18
19
|
return this._client.post('/rest/v1/audience-conversion-reports', { body, ...options });
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
|
-
* Fetch a saved Audience Performance report by id. Requires scope
|
|
22
|
-
* web-analytics:view
|
|
22
|
+
* Fetch a saved Audience Performance report by id. Requires API-key scope or
|
|
23
|
+
* current OAuth user permission: web-analytics:view
|
|
23
24
|
*/
|
|
24
25
|
retrieve(id, options) {
|
|
25
26
|
return this._client.get(path `/rest/v1/audience-conversion-reports/${id}`, options);
|
|
@@ -27,14 +28,14 @@ export class AudienceConversionReports extends APIResource {
|
|
|
27
28
|
/**
|
|
28
29
|
* Update a saved Audience Performance report. Omitted fields remain unchanged,
|
|
29
30
|
* `filters: []` clears all filters, and dates must be sent or cleared as a pair.
|
|
30
|
-
* Requires scope: web-analytics:write
|
|
31
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:write
|
|
31
32
|
*/
|
|
32
33
|
update(id, body, options) {
|
|
33
34
|
return this._client.patch(path `/rest/v1/audience-conversion-reports/${id}`, { body, ...options });
|
|
34
35
|
}
|
|
35
36
|
/**
|
|
36
|
-
* Delete a saved Audience Performance report configuration. Requires scope
|
|
37
|
-
* web-analytics:write
|
|
37
|
+
* Delete a saved Audience Performance report configuration. Requires API-key scope
|
|
38
|
+
* or current OAuth user permission: web-analytics:write
|
|
38
39
|
*/
|
|
39
40
|
delete(id, options) {
|
|
40
41
|
return this._client.delete(path `/rest/v1/audience-conversion-reports/${id}`, options);
|
|
@@ -42,7 +43,8 @@ export class AudienceConversionReports extends APIResource {
|
|
|
42
43
|
/**
|
|
43
44
|
* Run a saved Audience Performance report. `from` and `to` override the saved date
|
|
44
45
|
* range when provided together. Returns 400 when neither a saved range nor an
|
|
45
|
-
* override is available. Requires scope
|
|
46
|
+
* override is available. Requires API-key scope or current OAuth user permission:
|
|
47
|
+
* web-analytics:view
|
|
46
48
|
*/
|
|
47
49
|
results(id, query = {}, options) {
|
|
48
50
|
return this._client.get(path `/rest/v1/audience-conversion-reports/${id}/results`, { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audience-conversion-reports.mjs","sourceRoot":"","sources":["../src/resources/audience-conversion-reports.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD
|
|
1
|
+
{"version":3,"file":"audience-conversion-reports.mjs","sourceRoot":"","sources":["../src/resources/audience-conversion-reports.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,IAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wCAAwC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,EAAU,EACV,IAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,wCAAwC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAA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