@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
|
@@ -9,8 +9,8 @@ export declare class AllowedEvents extends APIResource {
|
|
|
9
9
|
* event's `destinationIds`. Events without a matching allowed event are dropped.
|
|
10
10
|
* The list is not paginated; the per-account count is bounded. System events
|
|
11
11
|
* (names beginning with `$`, e.g. `$heatmap_click`) are hidden from the response —
|
|
12
|
-
* only `$identify` is creatable as an allowed event. Requires scope
|
|
13
|
-
* allowedEvent:list
|
|
12
|
+
* only `$identify` is creatable as an allowed event. Requires API-key scope or
|
|
13
|
+
* current OAuth user permission: allowedEvent:list
|
|
14
14
|
*/
|
|
15
15
|
list(options?: RequestOptions): APIPromise<AllowedEventListResponse>;
|
|
16
16
|
/**
|
|
@@ -28,13 +28,13 @@ export declare class AllowedEvents extends APIResource {
|
|
|
28
28
|
* `createdAt`, and the filtered `destinationIds` without a follow-up GET. Known
|
|
29
29
|
* input failures (duplicate name, name length, `$`-prefix reservation, empty name)
|
|
30
30
|
* are returned as HTTP 409 with the reason in the response `error` field. Requires
|
|
31
|
-
* scope: allowedEvent:create
|
|
31
|
+
* API-key scope or current OAuth user permission: allowedEvent:create
|
|
32
32
|
*/
|
|
33
33
|
create(body: AllowedEventCreateParams, options?: RequestOptions): APIPromise<AllowedEventCreateResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* Fetch a single allowed event by id. Returns 404 when no record matches the
|
|
36
|
-
* supplied id or it belongs to a different account. Requires scope
|
|
37
|
-
* allowedEvent:find
|
|
36
|
+
* supplied id or it belongs to a different account. Requires API-key scope or
|
|
37
|
+
* current OAuth user permission: allowedEvent:find
|
|
38
38
|
*/
|
|
39
39
|
retrieve(id: string, options?: RequestOptions): APIPromise<AllowedEventRetrieveResponse>;
|
|
40
40
|
/**
|
|
@@ -51,13 +51,15 @@ export declare class AllowedEvents extends APIResource {
|
|
|
51
51
|
*
|
|
52
52
|
* Returns the full entity. Known input failures (duplicate name, length,
|
|
53
53
|
* `$`-prefix, empty name) are returned as HTTP 409 with the reason in the response
|
|
54
|
-
* `error` field. Requires scope
|
|
54
|
+
* `error` field. Requires API-key scope or current OAuth user permission:
|
|
55
|
+
* allowedEvent:update
|
|
55
56
|
*/
|
|
56
57
|
update(id: string, body: AllowedEventUpdateParams, options?: RequestOptions): APIPromise<AllowedEventUpdateResponse>;
|
|
57
58
|
/**
|
|
58
59
|
* Delete an allowed event. After deletion, inbound events whose `event` field
|
|
59
60
|
* matches the deleted name are no longer routed and are dropped at the allow-list
|
|
60
|
-
* stage of the dispatch flow. Requires scope
|
|
61
|
+
* stage of the dispatch flow. Requires API-key scope or current OAuth user
|
|
62
|
+
* permission: allowedEvent:delete
|
|
61
63
|
*/
|
|
62
64
|
delete(id: string, options?: RequestOptions): APIPromise<AllowedEventDeleteResponse>;
|
|
63
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowed-events.d.mts","sourceRoot":"","sources":["../src/resources/allowed-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpE;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxG;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAIxF
|
|
1
|
+
{"version":3,"file":"allowed-events.d.mts","sourceRoot":"","sources":["../src/resources/allowed-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpE;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxG;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAIxF;;;;;;;;;;;;;;;;OAg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AAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -9,8 +9,8 @@ export declare class AllowedEvents extends APIResource {
|
|
|
9
9
|
* event's `destinationIds`. Events without a matching allowed event are dropped.
|
|
10
10
|
* The list is not paginated; the per-account count is bounded. System events
|
|
11
11
|
* (names beginning with `$`, e.g. `$heatmap_click`) are hidden from the response —
|
|
12
|
-
* only `$identify` is creatable as an allowed event. Requires scope
|
|
13
|
-
* allowedEvent:list
|
|
12
|
+
* only `$identify` is creatable as an allowed event. Requires API-key scope or
|
|
13
|
+
* current OAuth user permission: allowedEvent:list
|
|
14
14
|
*/
|
|
15
15
|
list(options?: RequestOptions): APIPromise<AllowedEventListResponse>;
|
|
16
16
|
/**
|
|
@@ -28,13 +28,13 @@ export declare class AllowedEvents extends APIResource {
|
|
|
28
28
|
* `createdAt`, and the filtered `destinationIds` without a follow-up GET. Known
|
|
29
29
|
* input failures (duplicate name, name length, `$`-prefix reservation, empty name)
|
|
30
30
|
* are returned as HTTP 409 with the reason in the response `error` field. Requires
|
|
31
|
-
* scope: allowedEvent:create
|
|
31
|
+
* API-key scope or current OAuth user permission: allowedEvent:create
|
|
32
32
|
*/
|
|
33
33
|
create(body: AllowedEventCreateParams, options?: RequestOptions): APIPromise<AllowedEventCreateResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* Fetch a single allowed event by id. Returns 404 when no record matches the
|
|
36
|
-
* supplied id or it belongs to a different account. Requires scope
|
|
37
|
-
* allowedEvent:find
|
|
36
|
+
* supplied id or it belongs to a different account. Requires API-key scope or
|
|
37
|
+
* current OAuth user permission: allowedEvent:find
|
|
38
38
|
*/
|
|
39
39
|
retrieve(id: string, options?: RequestOptions): APIPromise<AllowedEventRetrieveResponse>;
|
|
40
40
|
/**
|
|
@@ -51,13 +51,15 @@ export declare class AllowedEvents extends APIResource {
|
|
|
51
51
|
*
|
|
52
52
|
* Returns the full entity. Known input failures (duplicate name, length,
|
|
53
53
|
* `$`-prefix, empty name) are returned as HTTP 409 with the reason in the response
|
|
54
|
-
* `error` field. Requires scope
|
|
54
|
+
* `error` field. Requires API-key scope or current OAuth user permission:
|
|
55
|
+
* allowedEvent:update
|
|
55
56
|
*/
|
|
56
57
|
update(id: string, body: AllowedEventUpdateParams, options?: RequestOptions): APIPromise<AllowedEventUpdateResponse>;
|
|
57
58
|
/**
|
|
58
59
|
* Delete an allowed event. After deletion, inbound events whose `event` field
|
|
59
60
|
* matches the deleted name are no longer routed and are dropped at the allow-list
|
|
60
|
-
* stage of the dispatch flow. Requires scope
|
|
61
|
+
* stage of the dispatch flow. Requires API-key scope or current OAuth user
|
|
62
|
+
* permission: allowedEvent:delete
|
|
61
63
|
*/
|
|
62
64
|
delete(id: string, options?: RequestOptions): APIPromise<AllowedEventDeleteResponse>;
|
|
63
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowed-events.d.ts","sourceRoot":"","sources":["../src/resources/allowed-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIp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BAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -12,8 +12,8 @@ class AllowedEvents extends resource_1.APIResource {
|
|
|
12
12
|
* event's `destinationIds`. Events without a matching allowed event are dropped.
|
|
13
13
|
* The list is not paginated; the per-account count is bounded. System events
|
|
14
14
|
* (names beginning with `$`, e.g. `$heatmap_click`) are hidden from the response —
|
|
15
|
-
* only `$identify` is creatable as an allowed event. Requires scope
|
|
16
|
-
* allowedEvent:list
|
|
15
|
+
* only `$identify` is creatable as an allowed event. Requires API-key scope or
|
|
16
|
+
* current OAuth user permission: allowedEvent:list
|
|
17
17
|
*/
|
|
18
18
|
list(options) {
|
|
19
19
|
return this._client.get('/rest/v1/allowed-events', options);
|
|
@@ -33,15 +33,15 @@ class AllowedEvents extends resource_1.APIResource {
|
|
|
33
33
|
* `createdAt`, and the filtered `destinationIds` without a follow-up GET. Known
|
|
34
34
|
* input failures (duplicate name, name length, `$`-prefix reservation, empty name)
|
|
35
35
|
* are returned as HTTP 409 with the reason in the response `error` field. Requires
|
|
36
|
-
* scope: allowedEvent:create
|
|
36
|
+
* API-key scope or current OAuth user permission: allowedEvent:create
|
|
37
37
|
*/
|
|
38
38
|
create(body, options) {
|
|
39
39
|
return this._client.post('/rest/v1/allowed-events', { body, ...options });
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Fetch a single allowed event by id. Returns 404 when no record matches the
|
|
43
|
-
* supplied id or it belongs to a different account. Requires scope
|
|
44
|
-
* allowedEvent:find
|
|
43
|
+
* supplied id or it belongs to a different account. Requires API-key scope or
|
|
44
|
+
* current OAuth user permission: allowedEvent:find
|
|
45
45
|
*/
|
|
46
46
|
retrieve(id, options) {
|
|
47
47
|
return this._client.get((0, path_1.path) `/rest/v1/allowed-events/${id}`, options);
|
|
@@ -60,7 +60,8 @@ class AllowedEvents extends resource_1.APIResource {
|
|
|
60
60
|
*
|
|
61
61
|
* Returns the full entity. Known input failures (duplicate name, length,
|
|
62
62
|
* `$`-prefix, empty name) are returned as HTTP 409 with the reason in the response
|
|
63
|
-
* `error` field. Requires scope
|
|
63
|
+
* `error` field. Requires API-key scope or current OAuth user permission:
|
|
64
|
+
* allowedEvent:update
|
|
64
65
|
*/
|
|
65
66
|
update(id, body, options) {
|
|
66
67
|
return this._client.patch((0, path_1.path) `/rest/v1/allowed-events/${id}`, { body, ...options });
|
|
@@ -68,7 +69,8 @@ class AllowedEvents extends resource_1.APIResource {
|
|
|
68
69
|
/**
|
|
69
70
|
* Delete an allowed event. After deletion, inbound events whose `event` field
|
|
70
71
|
* matches the deleted name are no longer routed and are dropped at the allow-list
|
|
71
|
-
* stage of the dispatch flow. Requires scope
|
|
72
|
+
* stage of the dispatch flow. Requires API-key scope or current OAuth user
|
|
73
|
+
* permission: allowedEvent:delete
|
|
72
74
|
*/
|
|
73
75
|
delete(id, options) {
|
|
74
76
|
return this._client.delete((0, path_1.path) `/rest/v1/allowed-events/${id}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowed-events.js","sourceRoot":"","sources":["../src/resources/allowed-events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"allowed-events.js","sourceRoot":"","sources":["../src/resources/allowed-events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,EAAU,EACV,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AA/ED,sCA+EC"}
|
|
@@ -9,8 +9,8 @@ export class AllowedEvents extends APIResource {
|
|
|
9
9
|
* event's `destinationIds`. Events without a matching allowed event are dropped.
|
|
10
10
|
* The list is not paginated; the per-account count is bounded. System events
|
|
11
11
|
* (names beginning with `$`, e.g. `$heatmap_click`) are hidden from the response —
|
|
12
|
-
* only `$identify` is creatable as an allowed event. Requires scope
|
|
13
|
-
* allowedEvent:list
|
|
12
|
+
* only `$identify` is creatable as an allowed event. Requires API-key scope or
|
|
13
|
+
* current OAuth user permission: allowedEvent:list
|
|
14
14
|
*/
|
|
15
15
|
list(options) {
|
|
16
16
|
return this._client.get('/rest/v1/allowed-events', options);
|
|
@@ -30,15 +30,15 @@ export class AllowedEvents extends APIResource {
|
|
|
30
30
|
* `createdAt`, and the filtered `destinationIds` without a follow-up GET. Known
|
|
31
31
|
* input failures (duplicate name, name length, `$`-prefix reservation, empty name)
|
|
32
32
|
* are returned as HTTP 409 with the reason in the response `error` field. Requires
|
|
33
|
-
* scope: allowedEvent:create
|
|
33
|
+
* API-key scope or current OAuth user permission: allowedEvent:create
|
|
34
34
|
*/
|
|
35
35
|
create(body, options) {
|
|
36
36
|
return this._client.post('/rest/v1/allowed-events', { body, ...options });
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Fetch a single allowed event by id. Returns 404 when no record matches the
|
|
40
|
-
* supplied id or it belongs to a different account. Requires scope
|
|
41
|
-
* allowedEvent:find
|
|
40
|
+
* supplied id or it belongs to a different account. Requires API-key scope or
|
|
41
|
+
* current OAuth user permission: allowedEvent:find
|
|
42
42
|
*/
|
|
43
43
|
retrieve(id, options) {
|
|
44
44
|
return this._client.get(path `/rest/v1/allowed-events/${id}`, options);
|
|
@@ -57,7 +57,8 @@ export class AllowedEvents extends APIResource {
|
|
|
57
57
|
*
|
|
58
58
|
* Returns the full entity. Known input failures (duplicate name, length,
|
|
59
59
|
* `$`-prefix, empty name) are returned as HTTP 409 with the reason in the response
|
|
60
|
-
* `error` field. Requires scope
|
|
60
|
+
* `error` field. Requires API-key scope or current OAuth user permission:
|
|
61
|
+
* allowedEvent:update
|
|
61
62
|
*/
|
|
62
63
|
update(id, body, options) {
|
|
63
64
|
return this._client.patch(path `/rest/v1/allowed-events/${id}`, { body, ...options });
|
|
@@ -65,7 +66,8 @@ export class AllowedEvents extends APIResource {
|
|
|
65
66
|
/**
|
|
66
67
|
* Delete an allowed event. After deletion, inbound events whose `event` field
|
|
67
68
|
* matches the deleted name are no longer routed and are dropped at the allow-list
|
|
68
|
-
* stage of the dispatch flow. Requires scope
|
|
69
|
+
* stage of the dispatch flow. Requires API-key scope or current OAuth user
|
|
70
|
+
* permission: allowedEvent:delete
|
|
69
71
|
*/
|
|
70
72
|
delete(id, options) {
|
|
71
73
|
return this._client.delete(path `/rest/v1/allowed-events/${id}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowed-events.mjs","sourceRoot":"","sources":["../src/resources/allowed-events.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"allowed-events.mjs","sourceRoot":"","sources":["../src/resources/allowed-events.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,EAAU,EACV,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,2BAA2B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -4,14 +4,16 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
4
4
|
export declare class Analytics extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Discover the filter properties, operators, and providers available to analytics
|
|
7
|
-
* query definitions. Requires scope
|
|
7
|
+
* query definitions. Requires API-key scope or current OAuth user permission:
|
|
8
|
+
* variables:find-default
|
|
8
9
|
*/
|
|
9
10
|
queryCatalog(options?: RequestOptions): APIPromise<AnalyticsQueryCatalogResponse>;
|
|
10
11
|
/**
|
|
11
12
|
* Discover property paths recently observed in event data. Results are suggestions
|
|
12
13
|
* from a fixed recent 30-day sample and may be incomplete; callers can still use
|
|
13
14
|
* manually entered paths. Use `eventName` and `sourceId` to narrow the
|
|
14
|
-
* suggestions. Requires scope
|
|
15
|
+
* suggestions. Requires API-key scope or current OAuth user permission:
|
|
16
|
+
* variables:find-custom, web-analytics:view
|
|
15
17
|
*/
|
|
16
18
|
propertySuggestions(query?: AnalyticsPropertySuggestionsParams | null | undefined, options?: RequestOptions): APIPromise<AnalyticsPropertySuggestionsResponse>;
|
|
17
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.mts","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"analytics.d.mts","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAIjF;;;;;;OAMG;IACH,mBAAmB,CACjB,KAAK,GAAE,kCAAkC,GAAG,IAAI,GAAG,SAAc,EACjE,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,o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,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"}
|
package/resources/analytics.d.ts
CHANGED
|
@@ -4,14 +4,16 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
4
4
|
export declare class Analytics extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Discover the filter properties, operators, and providers available to analytics
|
|
7
|
-
* query definitions. Requires scope
|
|
7
|
+
* query definitions. Requires API-key scope or current OAuth user permission:
|
|
8
|
+
* variables:find-default
|
|
8
9
|
*/
|
|
9
10
|
queryCatalog(options?: RequestOptions): APIPromise<AnalyticsQueryCatalogResponse>;
|
|
10
11
|
/**
|
|
11
12
|
* Discover property paths recently observed in event data. Results are suggestions
|
|
12
13
|
* from a fixed recent 30-day sample and may be incomplete; callers can still use
|
|
13
14
|
* manually entered paths. Use `eventName` and `sourceId` to narrow the
|
|
14
|
-
* suggestions. Requires scope
|
|
15
|
+
* suggestions. Requires API-key scope or current OAuth user permission:
|
|
16
|
+
* variables:find-custom, web-analytics:view
|
|
15
17
|
*/
|
|
16
18
|
propertySuggestions(query?: AnalyticsPropertySuggestionsParams | null | undefined, options?: RequestOptions): APIPromise<AnalyticsPropertySuggestionsResponse>;
|
|
17
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAA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G,QAAQ,GAAG,SAAS,CAAC;KACvC;CACF;AAED,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"}
|
package/resources/analytics.js
CHANGED
|
@@ -6,7 +6,8 @@ const resource_1 = require("../core/resource.js");
|
|
|
6
6
|
class Analytics extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Discover the filter properties, operators, and providers available to analytics
|
|
9
|
-
* query definitions. Requires scope
|
|
9
|
+
* query definitions. Requires API-key scope or current OAuth user permission:
|
|
10
|
+
* variables:find-default
|
|
10
11
|
*/
|
|
11
12
|
queryCatalog(options) {
|
|
12
13
|
return this._client.get('/rest/v1/analytics/query-catalog', options);
|
|
@@ -15,7 +16,8 @@ class Analytics extends resource_1.APIResource {
|
|
|
15
16
|
* Discover property paths recently observed in event data. Results are suggestions
|
|
16
17
|
* from a fixed recent 30-day sample and may be incomplete; callers can still use
|
|
17
18
|
* manually entered paths. Use `eventName` and `sourceId` to narrow the
|
|
18
|
-
* suggestions. Requires scope
|
|
19
|
+
* suggestions. Requires API-key scope or current OAuth user permission:
|
|
20
|
+
* variables:find-custom, web-analytics:view
|
|
19
21
|
*/
|
|
20
22
|
propertySuggestions(query = {}, options) {
|
|
21
23
|
return this._client.get('/rest/v1/analytics/property-suggestions', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,SAAU,SAAQ,sBAAW;IACxC
|
|
1
|
+
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,SAAU,SAAQ,sBAAW;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;AAvBD,8BAuBC"}
|
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,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI1G
|
|
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,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,4BAA4B,CAAC;IAI3C;;;;;;;OAOG;IACH,UAAU,CACR,KAAK,EAAE,2BAA2B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;OAOG;IACH,kBAAkB,CAChB,KAAK,EAAE,mCAAmC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;IAIpD;;;;;;;;OAQG;IACH,aAAa,CACX,KAAK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A0B,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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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"}
|
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,sBAAW;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.js","sourceRoot":"","sources":["../src/resources/attribution.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,WAAY,SAAQ,sBAAW;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,KAA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