@oursprivacy/platform-sdk 1.22.0 → 1.23.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 +9 -0
- package/README.md +8 -8
- package/client.d.mts +10 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -7
- package/client.d.ts.map +1 -1
- package/client.js +6 -3
- package/client.js.map +1 -1
- package/client.mjs +6 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/allowed-events.d.mts +206 -5
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +206 -5
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/allowed-events.js +48 -4
- package/resources/allowed-events.js.map +1 -1
- package/resources/allowed-events.mjs +48 -4
- package/resources/allowed-events.mjs.map +1 -1
- package/resources/consent-analytics.d.mts +57 -0
- package/resources/consent-analytics.d.mts.map +1 -0
- package/resources/consent-analytics.d.ts +57 -0
- package/resources/consent-analytics.d.ts.map +1 -0
- package/resources/consent-analytics.js +22 -0
- package/resources/consent-analytics.js.map +1 -0
- package/resources/consent-analytics.mjs +18 -0
- package/resources/consent-analytics.mjs.map +1 -0
- package/resources/consent-settings.d.mts +198 -1
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +198 -1
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +40 -0
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +40 -0
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/data-governance.d.mts +793 -0
- package/resources/data-governance.d.mts.map +1 -0
- package/resources/data-governance.d.ts +793 -0
- package/resources/data-governance.d.ts.map +1 -0
- package/resources/data-governance.js +70 -0
- package/resources/data-governance.js.map +1 -0
- package/resources/data-governance.mjs +66 -0
- package/resources/data-governance.mjs.map +1 -0
- package/resources/default-mappings.d.mts +60 -3
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +60 -3
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mappings.d.mts +174 -15
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +174 -15
- package/resources/mappings.d.ts.map +1 -1
- package/src/client.ts +56 -27
- package/src/resources/allowed-events.ts +232 -4
- package/src/resources/consent-analytics.ts +76 -0
- package/src/resources/consent-settings.ts +272 -0
- package/src/resources/data-governance.ts +1091 -0
- package/src/resources/default-mappings.ts +60 -3
- package/src/resources/index.ts +25 -12
- package/src/resources/mappings.ts +174 -15
- 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/global-dispatch-centers.d.mts +0 -349
- package/resources/global-dispatch-centers.d.mts.map +0 -1
- package/resources/global-dispatch-centers.d.ts +0 -349
- package/resources/global-dispatch-centers.d.ts.map +0 -1
- package/resources/global-dispatch-centers.js +0 -43
- package/resources/global-dispatch-centers.js.map +0 -1
- package/resources/global-dispatch-centers.mjs +0 -39
- package/resources/global-dispatch-centers.mjs.map +0 -1
- package/src/resources/global-dispatch-centers.ts +0 -458
|
@@ -49,5 +49,45 @@ export class ConsentSettings extends APIResource {
|
|
|
49
49
|
delete(id, options) {
|
|
50
50
|
return this._client.delete(path `/rest/v1/consent-settings/${id}`, options);
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Time-series consent analytics for a single consent settings record: banner
|
|
54
|
+
* views, opt-ins, opt-outs, close-icon clicks, and derived opt-in/out rates per
|
|
55
|
+
* UTC day (or per UTC hour with `granularity=HOURLY`). The window is zero-filled
|
|
56
|
+
* so callers get a contiguous series, and rates are person-level
|
|
57
|
+
* (`COUNT(DISTINCT visitor_id)`). Use the optional `pagePath` and `region` filters
|
|
58
|
+
* to scope to one page or one visitor region; use `compareWithPreviousPeriod=true`
|
|
59
|
+
* to also receive the matching prior window. `DAILY` allows a 90-day window;
|
|
60
|
+
* `HOURLY` is capped at 14 days. Reuses the API-key scope `consentSettings:find`
|
|
61
|
+
* because the endpoint is identified by a consent settings `id`. Requires scope:
|
|
62
|
+
* consentSettings:find
|
|
63
|
+
*/
|
|
64
|
+
analytics(id, query, options) {
|
|
65
|
+
return this._client.get(path `/rest/v1/consent-settings/${id}/analytics`, { query, ...options });
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Per-page consent breakdown for one consent settings record, ranked by opt-outs
|
|
69
|
+
* (descending). Each row bundles banner views, opt-outs, close-icon clicks, and
|
|
70
|
+
* the derived opt-out rate. Documented exception to the cursor-pagination
|
|
71
|
+
* standard: this is a derived read whose underlying GraphQL contract is
|
|
72
|
+
* offset/limit-based; cursors are not used. `search` is a substring match against
|
|
73
|
+
* `pathname`; `region` filters to one visitor region. Reuses the API-key scope
|
|
74
|
+
* `consentSettings:find`. Requires scope: consentSettings:find
|
|
75
|
+
*/
|
|
76
|
+
pageAnalysis(id, query, options) {
|
|
77
|
+
return this._client.get(path `/rest/v1/consent-settings/${id}/page-analysis`, { query, ...options });
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Region-grouped consent totals for the window: banner views, opt-ins, opt-outs,
|
|
81
|
+
* close-icon clicks, and derived rates per visitor `country_region_name`, ranked
|
|
82
|
+
* by banner views (descending). Visitors whose region cannot be resolved (e.g. bot
|
|
83
|
+
* traffic, IP geo failure) are bucketed under the literal `Unknown` so per-region
|
|
84
|
+
* counts always sum to the global totals. Use this to discover the region names
|
|
85
|
+
* you can later pass to the `region` filter on
|
|
86
|
+
* `GET /rest/v1/consent-settings/{id}/analytics`. Reuses the API-key scope
|
|
87
|
+
* `consentSettings:find`. Requires scope: consentSettings:find
|
|
88
|
+
*/
|
|
89
|
+
analyticsByRegion(id, query, options) {
|
|
90
|
+
return this._client.get(path `/rest/v1/consent-settings/${id}/analytics-by-region`, { query, ...options });
|
|
91
|
+
}
|
|
52
92
|
}
|
|
53
93
|
//# sourceMappingURL=consent-settings.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-settings.mjs","sourceRoot":"","sources":["../src/resources/consent-settings.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,6BAA6B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACH,OAAO,CACL,EAAU,EACV,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,6BAA6B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,EAAU,EACV,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,6BAA6B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,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