@oursprivacy/platform-sdk 1.26.0 → 1.27.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/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/consent-analytics.d.mts +4 -2
- package/resources/consent-analytics.d.mts.map +1 -1
- package/resources/consent-analytics.d.ts +4 -2
- package/resources/consent-analytics.d.ts.map +1 -1
- package/resources/consent-analytics.js +4 -2
- package/resources/consent-analytics.js.map +1 -1
- package/resources/consent-analytics.mjs +4 -2
- package/resources/consent-analytics.mjs.map +1 -1
- package/resources/consent-settings.d.mts +11 -9
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +11 -9
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +11 -9
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +11 -9
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/data-governance.d.mts +7 -7
- package/resources/data-governance.d.ts +7 -7
- package/resources/data-governance.js +6 -6
- package/resources/data-governance.mjs +6 -6
- package/resources/destinations.d.mts +7 -7
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -7
- package/resources/destinations.d.ts.map +1 -1
- package/resources/heatmap-pages.d.mts +4 -5
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +4 -5
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +4 -5
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +4 -5
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/locations.d.mts +3 -3
- package/resources/locations.d.ts +3 -3
- package/resources/locations.js +3 -3
- package/resources/locations.mjs +3 -3
- package/resources/mappings.d.mts +5 -6
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +5 -6
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +5 -6
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +5 -6
- package/resources/mappings.mjs.map +1 -1
- package/resources/sources.d.mts +6 -5
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +6 -5
- package/resources/sources.d.ts.map +1 -1
- package/resources/sources.js +6 -5
- package/resources/sources.js.map +1 -1
- package/resources/sources.mjs +6 -5
- package/resources/sources.mjs.map +1 -1
- package/resources/tag-manager-asset-folders.d.mts +42 -0
- package/resources/tag-manager-asset-folders.d.mts.map +1 -0
- package/resources/tag-manager-asset-folders.d.ts +42 -0
- package/resources/tag-manager-asset-folders.d.ts.map +1 -0
- package/resources/tag-manager-asset-folders.js +18 -0
- package/resources/tag-manager-asset-folders.js.map +1 -0
- package/resources/tag-manager-asset-folders.mjs +14 -0
- package/resources/tag-manager-asset-folders.mjs.map +1 -0
- package/resources/tag-manager-tags.d.mts +33 -49
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +33 -49
- package/resources/tag-manager-tags.d.ts.map +1 -1
- package/resources/tag-manager-tags.js +5 -7
- package/resources/tag-manager-tags.js.map +1 -1
- package/resources/tag-manager-tags.mjs +5 -7
- package/resources/tag-manager-tags.mjs.map +1 -1
- package/resources/tag-manager-triggers.d.mts +33 -39
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +33 -39
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-triggers.js +2 -1
- package/resources/tag-manager-triggers.js.map +1 -1
- package/resources/tag-manager-triggers.mjs +2 -1
- package/resources/tag-manager-triggers.mjs.map +1 -1
- package/resources/tag-manager-variables.d.mts +25 -39
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +25 -39
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-manager-variables.js +2 -1
- package/resources/tag-manager-variables.js.map +1 -1
- package/resources/tag-manager-variables.mjs +2 -1
- package/resources/tag-manager-variables.mjs.map +1 -1
- package/resources/tag-managers.d.mts +8 -4
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +8 -4
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +7 -3
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +7 -3
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/web-scanner-rules.d.mts +1 -1
- package/resources/web-scanner-rules.d.ts +1 -1
- package/resources/web-scanners.d.mts +6 -7
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +6 -7
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +5 -6
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +5 -6
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +13 -0
- package/src/resources/consent-analytics.ts +4 -2
- package/src/resources/consent-settings.ts +11 -9
- package/src/resources/data-governance.ts +7 -7
- package/src/resources/destinations.ts +9 -2
- package/src/resources/heatmap-pages.ts +4 -5
- package/src/resources/index.ts +5 -0
- package/src/resources/locations.ts +3 -3
- package/src/resources/mappings.ts +5 -6
- package/src/resources/sources.ts +6 -5
- package/src/resources/tag-manager-asset-folders.ts +64 -0
- package/src/resources/tag-manager-tags.ts +33 -55
- package/src/resources/tag-manager-triggers.ts +33 -45
- package/src/resources/tag-manager-variables.ts +25 -45
- package/src/resources/tag-managers.ts +8 -4
- package/src/resources/web-scanner-rules.ts +1 -1
- package/src/resources/web-scanners.ts +6 -7
- 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
|
@@ -47,7 +47,8 @@ export class TagManagerVariables extends APIResource {
|
|
|
47
47
|
/**
|
|
48
48
|
* Partially update a variable. Only the fields you send are changed. Name
|
|
49
49
|
* collisions with other variables in the same tag manager return 409 with the
|
|
50
|
-
* reason in the response `error` field.
|
|
50
|
+
* reason in the response `error` field. To assign a variable to a folder, use
|
|
51
|
+
* `POST /rest/v1/tag-manager-asset-folders`. Requires scope: tagManagers:update
|
|
51
52
|
*/
|
|
52
53
|
update(
|
|
53
54
|
id: string,
|
|
@@ -93,15 +94,12 @@ export interface TagManagerVariableListResponse {
|
|
|
93
94
|
tagManagerId: string;
|
|
94
95
|
|
|
95
96
|
/**
|
|
96
|
-
* Variable type
|
|
97
|
+
* Variable type discriminator. Examples that exist today: `DataLayer`, `Constant`,
|
|
98
|
+
* `Cookie`, `Url`, `UrlParameter`, `Weekday`, `RandomNumber`. Pick from
|
|
99
|
+
* `GET /tag-manager-variables/types` for the canonical set.
|
|
97
100
|
*/
|
|
98
101
|
type: string;
|
|
99
102
|
|
|
100
|
-
/**
|
|
101
|
-
* Variable implementation identifier (typically equals `type`).
|
|
102
|
-
*/
|
|
103
|
-
Variable: string;
|
|
104
|
-
|
|
105
103
|
createdAt?: string | null;
|
|
106
104
|
|
|
107
105
|
/**
|
|
@@ -113,8 +111,8 @@ export interface TagManagerVariableListResponse {
|
|
|
113
111
|
enabled?: boolean | null;
|
|
114
112
|
|
|
115
113
|
/**
|
|
116
|
-
* Folder this variable belongs to.
|
|
117
|
-
* `
|
|
114
|
+
* Folder this variable belongs to. Settable via PATCH — send a folder UUID to
|
|
115
|
+
* assign, or `null` to remove from its current folder.
|
|
118
116
|
*/
|
|
119
117
|
folderId?: string | null;
|
|
120
118
|
|
|
@@ -141,15 +139,12 @@ export interface TagManagerVariableCreateResponse {
|
|
|
141
139
|
tagManagerId: string;
|
|
142
140
|
|
|
143
141
|
/**
|
|
144
|
-
* Variable type
|
|
142
|
+
* Variable type discriminator. Examples that exist today: `DataLayer`, `Constant`,
|
|
143
|
+
* `Cookie`, `Url`, `UrlParameter`, `Weekday`, `RandomNumber`. Pick from
|
|
144
|
+
* `GET /tag-manager-variables/types` for the canonical set.
|
|
145
145
|
*/
|
|
146
146
|
type: string;
|
|
147
147
|
|
|
148
|
-
/**
|
|
149
|
-
* Variable implementation identifier (typically equals `type`).
|
|
150
|
-
*/
|
|
151
|
-
Variable: string;
|
|
152
|
-
|
|
153
148
|
createdAt?: string | null;
|
|
154
149
|
|
|
155
150
|
/**
|
|
@@ -161,8 +156,8 @@ export interface TagManagerVariableCreateResponse {
|
|
|
161
156
|
enabled?: boolean | null;
|
|
162
157
|
|
|
163
158
|
/**
|
|
164
|
-
* Folder this variable belongs to.
|
|
165
|
-
* `
|
|
159
|
+
* Folder this variable belongs to. Settable via PATCH — send a folder UUID to
|
|
160
|
+
* assign, or `null` to remove from its current folder.
|
|
166
161
|
*/
|
|
167
162
|
folderId?: string | null;
|
|
168
163
|
|
|
@@ -189,15 +184,12 @@ export interface TagManagerVariableRetrieveResponse {
|
|
|
189
184
|
tagManagerId: string;
|
|
190
185
|
|
|
191
186
|
/**
|
|
192
|
-
* Variable type
|
|
187
|
+
* Variable type discriminator. Examples that exist today: `DataLayer`, `Constant`,
|
|
188
|
+
* `Cookie`, `Url`, `UrlParameter`, `Weekday`, `RandomNumber`. Pick from
|
|
189
|
+
* `GET /tag-manager-variables/types` for the canonical set.
|
|
193
190
|
*/
|
|
194
191
|
type: string;
|
|
195
192
|
|
|
196
|
-
/**
|
|
197
|
-
* Variable implementation identifier (typically equals `type`).
|
|
198
|
-
*/
|
|
199
|
-
Variable: string;
|
|
200
|
-
|
|
201
193
|
createdAt?: string | null;
|
|
202
194
|
|
|
203
195
|
/**
|
|
@@ -209,8 +201,8 @@ export interface TagManagerVariableRetrieveResponse {
|
|
|
209
201
|
enabled?: boolean | null;
|
|
210
202
|
|
|
211
203
|
/**
|
|
212
|
-
* Folder this variable belongs to.
|
|
213
|
-
* `
|
|
204
|
+
* Folder this variable belongs to. Settable via PATCH — send a folder UUID to
|
|
205
|
+
* assign, or `null` to remove from its current folder.
|
|
214
206
|
*/
|
|
215
207
|
folderId?: string | null;
|
|
216
208
|
|
|
@@ -237,15 +229,12 @@ export interface TagManagerVariableUpdateResponse {
|
|
|
237
229
|
tagManagerId: string;
|
|
238
230
|
|
|
239
231
|
/**
|
|
240
|
-
* Variable type
|
|
232
|
+
* Variable type discriminator. Examples that exist today: `DataLayer`, `Constant`,
|
|
233
|
+
* `Cookie`, `Url`, `UrlParameter`, `Weekday`, `RandomNumber`. Pick from
|
|
234
|
+
* `GET /tag-manager-variables/types` for the canonical set.
|
|
241
235
|
*/
|
|
242
236
|
type: string;
|
|
243
237
|
|
|
244
|
-
/**
|
|
245
|
-
* Variable implementation identifier (typically equals `type`).
|
|
246
|
-
*/
|
|
247
|
-
Variable: string;
|
|
248
|
-
|
|
249
238
|
createdAt?: string | null;
|
|
250
239
|
|
|
251
240
|
/**
|
|
@@ -257,8 +246,8 @@ export interface TagManagerVariableUpdateResponse {
|
|
|
257
246
|
enabled?: boolean | null;
|
|
258
247
|
|
|
259
248
|
/**
|
|
260
|
-
* Folder this variable belongs to.
|
|
261
|
-
* `
|
|
249
|
+
* Folder this variable belongs to. Settable via PATCH — send a folder UUID to
|
|
250
|
+
* assign, or `null` to remove from its current folder.
|
|
262
251
|
*/
|
|
263
252
|
folderId?: string | null;
|
|
264
253
|
|
|
@@ -394,15 +383,11 @@ export interface TagManagerVariableCreateParams {
|
|
|
394
383
|
tagManagerId: string;
|
|
395
384
|
|
|
396
385
|
/**
|
|
397
|
-
* Variable type discriminator.
|
|
386
|
+
* Variable type discriminator. Pick from `GET /tag-manager-variables/types` for
|
|
387
|
+
* the canonical set (e.g. `DataLayer`, `Constant`, `Cookie`, `Url`).
|
|
398
388
|
*/
|
|
399
389
|
type: string;
|
|
400
390
|
|
|
401
|
-
/**
|
|
402
|
-
* Variable implementation identifier (typically equals `type`).
|
|
403
|
-
*/
|
|
404
|
-
Variable: string;
|
|
405
|
-
|
|
406
391
|
/**
|
|
407
392
|
* Optional default value. JSON value of any type.
|
|
408
393
|
*/
|
|
@@ -443,14 +428,9 @@ export interface TagManagerVariableUpdateParams {
|
|
|
443
428
|
parameters?: { [key: string]: unknown };
|
|
444
429
|
|
|
445
430
|
/**
|
|
446
|
-
* Updated variable type.
|
|
431
|
+
* Updated variable type. Pick from `GET /tag-manager-variables/types`.
|
|
447
432
|
*/
|
|
448
433
|
type?: string;
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Updated variable implementation identifier.
|
|
452
|
-
*/
|
|
453
|
-
Variable?: string;
|
|
454
434
|
}
|
|
455
435
|
|
|
456
436
|
export declare namespace TagManagerVariables {
|
|
@@ -19,9 +19,13 @@ export class TagManagers extends APIResource {
|
|
|
19
19
|
/**
|
|
20
20
|
* Create a new tag manager. The server seeds three default triggers
|
|
21
21
|
* (`Initialization`, `PageView`, `DomReady`) and one `OursInitTag` so the
|
|
22
|
-
* container is immediately usable
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* container is immediately usable — call
|
|
23
|
+
* `GET /tag-manager-triggers?tagManagerId={id}` right after create to grab their
|
|
24
|
+
* server-assigned ids so you can reuse them in `fireTriggerIds` instead of
|
|
25
|
+
* redundantly creating a second `PageView`/`DomReady`/`Initialization`. Returns
|
|
26
|
+
* the bare entity. Accounts have a per-account tag manager limit — exceeding it
|
|
27
|
+
* returns 409 with the reason in the response `error` field. Requires scope:
|
|
28
|
+
* tagManagers:create
|
|
25
29
|
*/
|
|
26
30
|
create(body: TagManagerCreateParams, options?: RequestOptions): APIPromise<TagManagerCreateResponse> {
|
|
27
31
|
return this._client.post('/rest/v1/tag-managers', { body, ...options });
|
|
@@ -230,7 +234,7 @@ export interface TagManagerDeleteResponse {
|
|
|
230
234
|
id: string;
|
|
231
235
|
|
|
232
236
|
/**
|
|
233
|
-
* True when the
|
|
237
|
+
* True when the tag manager was deleted.
|
|
234
238
|
*/
|
|
235
239
|
deleted: boolean;
|
|
236
240
|
}
|
|
@@ -61,13 +61,12 @@ export class WebScanners extends APIResource {
|
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* Manually kick off a new scan for this web scanner. The request body is empty (or
|
|
64
|
-
* `{}`). A successful response means the
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* `{}`). A successful response means the request was accepted; because the scan
|
|
65
|
+
* starts asynchronously, the returned entity may still reflect pre-trigger values
|
|
66
|
+
* for fields like `scanStatus` and `lastScanStartedAt`. The trigger is
|
|
67
67
|
* rate-limited: a 409 is returned if another scan is already in flight, the
|
|
68
|
-
* per-account cooldown has not elapsed, or the
|
|
69
|
-
*
|
|
70
|
-
* webScanner:trigger
|
|
68
|
+
* per-account cooldown has not elapsed, or the request was otherwise rejected; the
|
|
69
|
+
* reason is in the response `error` field. Requires scope: webScanner:trigger
|
|
71
70
|
*/
|
|
72
71
|
trigger(id: string, options?: RequestOptions): APIPromise<WebScannerTriggerResponse> {
|
|
73
72
|
return this._client.post(path`/rest/v1/web-scanners/${id}/trigger`, options);
|
|
@@ -231,7 +230,7 @@ export interface WebScannerDeleteResponse {
|
|
|
231
230
|
id: string;
|
|
232
231
|
|
|
233
232
|
/**
|
|
234
|
-
* True when the
|
|
233
|
+
* True when the scanner and its rules were deleted.
|
|
235
234
|
*/
|
|
236
235
|
deleted: boolean;
|
|
237
236
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.27.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.27.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.27.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.27.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|