@oursprivacy/platform-sdk 1.25.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 +18 -0
- package/client.d.mts +18 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -0
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -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 +6 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -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 +8 -7
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +8 -7
- 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-folders.d.mts +100 -0
- package/resources/tag-manager-folders.d.mts.map +1 -0
- package/resources/tag-manager-folders.d.ts +100 -0
- package/resources/tag-manager-folders.d.ts.map +1 -0
- package/resources/tag-manager-folders.js +55 -0
- package/resources/tag-manager-folders.js.map +1 -0
- package/resources/tag-manager-folders.mjs +51 -0
- package/resources/tag-manager-folders.mjs.map +1 -0
- package/resources/tag-manager-tags.d.mts +414 -0
- package/resources/tag-manager-tags.d.mts.map +1 -0
- package/resources/tag-manager-tags.d.ts +414 -0
- package/resources/tag-manager-tags.d.ts.map +1 -0
- package/resources/tag-manager-tags.js +64 -0
- package/resources/tag-manager-tags.js.map +1 -0
- package/resources/tag-manager-tags.mjs +60 -0
- package/resources/tag-manager-tags.mjs.map +1 -0
- package/resources/tag-manager-triggers.d.mts +321 -0
- package/resources/tag-manager-triggers.d.mts.map +1 -0
- package/resources/tag-manager-triggers.d.ts +321 -0
- package/resources/tag-manager-triggers.d.ts.map +1 -0
- package/resources/tag-manager-triggers.js +62 -0
- package/resources/tag-manager-triggers.js.map +1 -0
- package/resources/tag-manager-triggers.mjs +58 -0
- package/resources/tag-manager-triggers.mjs.map +1 -0
- package/resources/tag-manager-variables.d.mts +356 -0
- package/resources/tag-manager-variables.d.mts.map +1 -0
- package/resources/tag-manager-variables.d.ts +356 -0
- package/resources/tag-manager-variables.d.ts.map +1 -0
- package/resources/tag-manager-variables.js +64 -0
- package/resources/tag-manager-variables.js.map +1 -0
- package/resources/tag-manager-variables.mjs +60 -0
- package/resources/tag-manager-variables.mjs.map +1 -0
- package/resources/tag-managers.d.mts +211 -0
- package/resources/tag-managers.d.mts.map +1 -0
- package/resources/tag-managers.d.ts +211 -0
- package/resources/tag-managers.d.ts.map +1 -0
- package/resources/tag-managers.js +55 -0
- package/resources/tag-managers.js.map +1 -0
- package/resources/tag-managers.mjs +51 -0
- package/resources/tag-managers.mjs.map +1 -0
- 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 +150 -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 +66 -0
- package/src/resources/locations.ts +3 -3
- package/src/resources/mappings.ts +5 -6
- package/src/resources/sources.ts +8 -7
- package/src/resources/tag-manager-asset-folders.ts +64 -0
- package/src/resources/tag-manager-folders.ts +172 -0
- package/src/resources/tag-manager-tags.ts +533 -0
- package/src/resources/tag-manager-triggers.ts +419 -0
- package/src/resources/tag-manager-variables.ts +449 -0
- package/src/resources/tag-managers.ts +276 -0
- 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
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class TagManagerTriggers extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List triggers inside a single tag manager. Requires the `tagManagerId` query
|
|
8
|
+
* parameter — triggers are always scoped to one parent container. Supports cursor
|
|
9
|
+
* pagination via `limit` and `cursor`; the limit clamp is 1000 so a single request
|
|
10
|
+
* can return the full set (the web-app workspace renders all triggers in one
|
|
11
|
+
* shot). Requires scope: tagManagers:find
|
|
12
|
+
*/
|
|
13
|
+
list(query: TagManagerTriggerListParams, options?: RequestOptions): PagePromise<TagManagerTriggerListResponsesCursor, TagManagerTriggerListResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Create a new trigger inside a tag manager. `tagManagerId` is required in the
|
|
16
|
+
* body. Send `conditions: []` for an unconditional trigger; otherwise supply
|
|
17
|
+
* type-specific condition objects. Requires scope: tagManagers:update
|
|
18
|
+
*/
|
|
19
|
+
create(body: TagManagerTriggerCreateParams, options?: RequestOptions): APIPromise<TagManagerTriggerCreateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Find a single tag manager trigger by ID. Requires scope: tagManagers:find
|
|
22
|
+
*/
|
|
23
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerTriggerRetrieveResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Partially update a trigger. Only the fields you send are changed. `conditions`
|
|
26
|
+
* is replaced wholesale when sent. To assign a trigger to a folder, use
|
|
27
|
+
* `POST /rest/v1/tag-manager-asset-folders`. Requires scope: tagManagers:update
|
|
28
|
+
*/
|
|
29
|
+
update(id: string, body: TagManagerTriggerUpdateParams, options?: RequestOptions): APIPromise<TagManagerTriggerUpdateResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Delete a tag manager trigger. Requires scope: tagManagers:update
|
|
32
|
+
*/
|
|
33
|
+
delete(id: string, options?: RequestOptions): APIPromise<TagManagerTriggerDeleteResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Lists every trigger template the platform supports — what `type` discriminator
|
|
36
|
+
* to send on create/patch, and the shape of the type-specific `parameters`
|
|
37
|
+
* payload. Trigger `conditions` are evaluated at runtime (per-trigger, see the
|
|
38
|
+
* resource docs) and are not part of this descriptor. Account-agnostic: the
|
|
39
|
+
* response is the same for every API key. Requires scope: tagManagers:find
|
|
40
|
+
*/
|
|
41
|
+
types(options?: RequestOptions): APIPromise<TagManagerTriggerTypesResponse>;
|
|
42
|
+
}
|
|
43
|
+
export type TagManagerTriggerListResponsesCursor = Cursor<TagManagerTriggerListResponse>;
|
|
44
|
+
export interface TagManagerTriggerListResponse {
|
|
45
|
+
id: string;
|
|
46
|
+
accountId: string;
|
|
47
|
+
/**
|
|
48
|
+
* Conditions that must hold for the trigger to match. Use `[]` for unconditional
|
|
49
|
+
* triggers.
|
|
50
|
+
*/
|
|
51
|
+
conditions: Array<{
|
|
52
|
+
[key: string]: unknown;
|
|
53
|
+
}>;
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Type-specific configuration. Send `{}` for a no-op trigger.
|
|
57
|
+
*/
|
|
58
|
+
parameters: {
|
|
59
|
+
[key: string]: unknown;
|
|
60
|
+
};
|
|
61
|
+
tagManagerId: string;
|
|
62
|
+
/**
|
|
63
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
64
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
65
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
66
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
67
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
68
|
+
*/
|
|
69
|
+
type: string;
|
|
70
|
+
createdAt?: string | null;
|
|
71
|
+
enabled?: boolean | null;
|
|
72
|
+
/**
|
|
73
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
74
|
+
* assign, or `null` to remove from its current folder.
|
|
75
|
+
*/
|
|
76
|
+
folderId?: string | null;
|
|
77
|
+
updatedAt?: string | null;
|
|
78
|
+
}
|
|
79
|
+
export interface TagManagerTriggerCreateResponse {
|
|
80
|
+
id: string;
|
|
81
|
+
accountId: string;
|
|
82
|
+
/**
|
|
83
|
+
* Conditions that must hold for the trigger to match. Use `[]` for unconditional
|
|
84
|
+
* triggers.
|
|
85
|
+
*/
|
|
86
|
+
conditions: Array<{
|
|
87
|
+
[key: string]: unknown;
|
|
88
|
+
}>;
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* Type-specific configuration. Send `{}` for a no-op trigger.
|
|
92
|
+
*/
|
|
93
|
+
parameters: {
|
|
94
|
+
[key: string]: unknown;
|
|
95
|
+
};
|
|
96
|
+
tagManagerId: string;
|
|
97
|
+
/**
|
|
98
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
99
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
100
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
101
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
102
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
103
|
+
*/
|
|
104
|
+
type: string;
|
|
105
|
+
createdAt?: string | null;
|
|
106
|
+
enabled?: boolean | null;
|
|
107
|
+
/**
|
|
108
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
109
|
+
* assign, or `null` to remove from its current folder.
|
|
110
|
+
*/
|
|
111
|
+
folderId?: string | null;
|
|
112
|
+
updatedAt?: string | null;
|
|
113
|
+
}
|
|
114
|
+
export interface TagManagerTriggerRetrieveResponse {
|
|
115
|
+
id: string;
|
|
116
|
+
accountId: string;
|
|
117
|
+
/**
|
|
118
|
+
* Conditions that must hold for the trigger to match. Use `[]` for unconditional
|
|
119
|
+
* triggers.
|
|
120
|
+
*/
|
|
121
|
+
conditions: Array<{
|
|
122
|
+
[key: string]: unknown;
|
|
123
|
+
}>;
|
|
124
|
+
name: string;
|
|
125
|
+
/**
|
|
126
|
+
* Type-specific configuration. Send `{}` for a no-op trigger.
|
|
127
|
+
*/
|
|
128
|
+
parameters: {
|
|
129
|
+
[key: string]: unknown;
|
|
130
|
+
};
|
|
131
|
+
tagManagerId: string;
|
|
132
|
+
/**
|
|
133
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
134
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
135
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
136
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
137
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
138
|
+
*/
|
|
139
|
+
type: string;
|
|
140
|
+
createdAt?: string | null;
|
|
141
|
+
enabled?: boolean | null;
|
|
142
|
+
/**
|
|
143
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
144
|
+
* assign, or `null` to remove from its current folder.
|
|
145
|
+
*/
|
|
146
|
+
folderId?: string | null;
|
|
147
|
+
updatedAt?: string | null;
|
|
148
|
+
}
|
|
149
|
+
export interface TagManagerTriggerUpdateResponse {
|
|
150
|
+
id: string;
|
|
151
|
+
accountId: string;
|
|
152
|
+
/**
|
|
153
|
+
* Conditions that must hold for the trigger to match. Use `[]` for unconditional
|
|
154
|
+
* triggers.
|
|
155
|
+
*/
|
|
156
|
+
conditions: Array<{
|
|
157
|
+
[key: string]: unknown;
|
|
158
|
+
}>;
|
|
159
|
+
name: string;
|
|
160
|
+
/**
|
|
161
|
+
* Type-specific configuration. Send `{}` for a no-op trigger.
|
|
162
|
+
*/
|
|
163
|
+
parameters: {
|
|
164
|
+
[key: string]: unknown;
|
|
165
|
+
};
|
|
166
|
+
tagManagerId: string;
|
|
167
|
+
/**
|
|
168
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
169
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
170
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
171
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
172
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
173
|
+
*/
|
|
174
|
+
type: string;
|
|
175
|
+
createdAt?: string | null;
|
|
176
|
+
enabled?: boolean | null;
|
|
177
|
+
/**
|
|
178
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
179
|
+
* assign, or `null` to remove from its current folder.
|
|
180
|
+
*/
|
|
181
|
+
folderId?: string | null;
|
|
182
|
+
updatedAt?: string | null;
|
|
183
|
+
}
|
|
184
|
+
export interface TagManagerTriggerDeleteResponse {
|
|
185
|
+
id: string;
|
|
186
|
+
deleted: boolean;
|
|
187
|
+
}
|
|
188
|
+
export interface TagManagerTriggerTypesResponse {
|
|
189
|
+
entities: Array<TagManagerTriggerTypesResponse.Entity>;
|
|
190
|
+
}
|
|
191
|
+
export declare namespace TagManagerTriggerTypesResponse {
|
|
192
|
+
interface Entity {
|
|
193
|
+
/**
|
|
194
|
+
* Type discriminator — pass this as `type` on create/patch.
|
|
195
|
+
*/
|
|
196
|
+
id: string;
|
|
197
|
+
/**
|
|
198
|
+
* Grouping label.
|
|
199
|
+
*/
|
|
200
|
+
category: string;
|
|
201
|
+
fields: Array<Entity.Field>;
|
|
202
|
+
/**
|
|
203
|
+
* Human-readable display name.
|
|
204
|
+
*/
|
|
205
|
+
name: string;
|
|
206
|
+
description?: string | null;
|
|
207
|
+
}
|
|
208
|
+
namespace Entity {
|
|
209
|
+
interface Field {
|
|
210
|
+
/**
|
|
211
|
+
* Parameter key that goes in the `parameters` payload at create/patch.
|
|
212
|
+
*/
|
|
213
|
+
id: string;
|
|
214
|
+
/**
|
|
215
|
+
* Human-readable title for the field.
|
|
216
|
+
*/
|
|
217
|
+
title: string;
|
|
218
|
+
/**
|
|
219
|
+
* Underlying data type of the parameter value.
|
|
220
|
+
*/
|
|
221
|
+
type: 'STRING' | 'BOOLEAN' | 'INTEGER' | 'FLOAT' | 'TABLE';
|
|
222
|
+
/**
|
|
223
|
+
* For TABLE-typed fields, the predefined keys each row may contain.
|
|
224
|
+
*/
|
|
225
|
+
allowedKeys?: Array<string> | null;
|
|
226
|
+
/**
|
|
227
|
+
* When present, the field accepts only one of these values. Send the `value`
|
|
228
|
+
* string in `parameters`; the `label` is for display.
|
|
229
|
+
*/
|
|
230
|
+
availableValues?: Array<Field.AvailableValue> | null;
|
|
231
|
+
/**
|
|
232
|
+
* Default value when the caller omits the parameter on create.
|
|
233
|
+
*/
|
|
234
|
+
default?: {
|
|
235
|
+
[key: string]: unknown;
|
|
236
|
+
};
|
|
237
|
+
description?: string | null;
|
|
238
|
+
/**
|
|
239
|
+
* When `true`, omitting or sending an empty value for this parameter on
|
|
240
|
+
* create/patch returns HTTP 400.
|
|
241
|
+
*/
|
|
242
|
+
required?: boolean | null;
|
|
243
|
+
/**
|
|
244
|
+
* Server-enforced rules applied to this field at create and patch.
|
|
245
|
+
*/
|
|
246
|
+
validators?: Array<Field.Validator> | null;
|
|
247
|
+
}
|
|
248
|
+
namespace Field {
|
|
249
|
+
interface AvailableValue {
|
|
250
|
+
label: string;
|
|
251
|
+
value: string;
|
|
252
|
+
}
|
|
253
|
+
interface Validator {
|
|
254
|
+
type: 'NotEmpty' | 'CharacterLength' | 'Url' | 'Email' | 'Number' | 'Range';
|
|
255
|
+
max?: number | null;
|
|
256
|
+
min?: number | null;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
export interface TagManagerTriggerListParams extends CursorParams {
|
|
262
|
+
/**
|
|
263
|
+
* Parent tag manager whose triggers should be returned.
|
|
264
|
+
*/
|
|
265
|
+
tagManagerId: string;
|
|
266
|
+
}
|
|
267
|
+
export interface TagManagerTriggerCreateParams {
|
|
268
|
+
/**
|
|
269
|
+
* Match conditions; use `[]` for an unconditional trigger.
|
|
270
|
+
*/
|
|
271
|
+
conditions: Array<{
|
|
272
|
+
[key: string]: unknown;
|
|
273
|
+
}>;
|
|
274
|
+
name: string;
|
|
275
|
+
/**
|
|
276
|
+
* Type-specific JSON configuration.
|
|
277
|
+
*/
|
|
278
|
+
parameters: {
|
|
279
|
+
[key: string]: unknown;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Parent tag manager that will own the new trigger.
|
|
283
|
+
*/
|
|
284
|
+
tagManagerId: string;
|
|
285
|
+
/**
|
|
286
|
+
* Trigger type discriminator. Pick from `GET /tag-manager-triggers/types` for the
|
|
287
|
+
* canonical set (e.g. `PageView`, `CustomEvent`, `AllElementsClick`).
|
|
288
|
+
*/
|
|
289
|
+
type: string;
|
|
290
|
+
enabled?: boolean | null;
|
|
291
|
+
}
|
|
292
|
+
export interface TagManagerTriggerUpdateParams {
|
|
293
|
+
/**
|
|
294
|
+
* Replaces conditions wholesale when sent. Use `[]` for an unconditional trigger.
|
|
295
|
+
*/
|
|
296
|
+
conditions?: Array<{
|
|
297
|
+
[key: string]: unknown;
|
|
298
|
+
}>;
|
|
299
|
+
/**
|
|
300
|
+
* Pause/resume the trigger without changing other fields.
|
|
301
|
+
*/
|
|
302
|
+
enabled?: boolean | null;
|
|
303
|
+
/**
|
|
304
|
+
* Updated trigger name.
|
|
305
|
+
*/
|
|
306
|
+
name?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Updated type-specific JSON configuration.
|
|
309
|
+
*/
|
|
310
|
+
parameters?: {
|
|
311
|
+
[key: string]: unknown;
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* Updated trigger type. Pick from `GET /tag-manager-triggers/types`.
|
|
315
|
+
*/
|
|
316
|
+
type?: string;
|
|
317
|
+
}
|
|
318
|
+
export declare namespace TagManagerTriggers {
|
|
319
|
+
export { type TagManagerTriggerListResponse as TagManagerTriggerListResponse, type TagManagerTriggerCreateResponse as TagManagerTriggerCreateResponse, type TagManagerTriggerRetrieveResponse as TagManagerTriggerRetrieveResponse, type TagManagerTriggerUpdateResponse as TagManagerTriggerUpdateResponse, type TagManagerTriggerDeleteResponse as TagManagerTriggerDeleteResponse, type TagManagerTriggerTypesResponse as TagManagerTriggerTypesResponse, type TagManagerTriggerListResponsesCursor as TagManagerTriggerListResponsesCursor, type TagManagerTriggerListParams as TagManagerTriggerListParams, type TagManagerTriggerCreateParams as TagManagerTriggerCreateParams, type TagManagerTriggerUpdateParams as TagManagerTriggerUpdateParams, };
|
|
320
|
+
}
|
|
321
|
+
//# sourceMappingURL=tag-manager-triggers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-manager-triggers.d.mts","sourceRoot":"","sources":["../src/resources/tag-manager-triggers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,+BAA2B;AAC5E,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,kBAAmB,SAAQ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} from "../core/api-promise.js";
|
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class TagManagerTriggers extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List triggers inside a single tag manager. Requires the `tagManagerId` query
|
|
8
|
+
* parameter — triggers are always scoped to one parent container. Supports cursor
|
|
9
|
+
* pagination via `limit` and `cursor`; the limit clamp is 1000 so a single request
|
|
10
|
+
* can return the full set (the web-app workspace renders all triggers in one
|
|
11
|
+
* shot). Requires scope: tagManagers:find
|
|
12
|
+
*/
|
|
13
|
+
list(query: TagManagerTriggerListParams, options?: RequestOptions): PagePromise<TagManagerTriggerListResponsesCursor, TagManagerTriggerListResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Create a new trigger inside a tag manager. `tagManagerId` is required in the
|
|
16
|
+
* body. Send `conditions: []` for an unconditional trigger; otherwise supply
|
|
17
|
+
* type-specific condition objects. Requires scope: tagManagers:update
|
|
18
|
+
*/
|
|
19
|
+
create(body: TagManagerTriggerCreateParams, options?: RequestOptions): APIPromise<TagManagerTriggerCreateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Find a single tag manager trigger by ID. Requires scope: tagManagers:find
|
|
22
|
+
*/
|
|
23
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerTriggerRetrieveResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Partially update a trigger. Only the fields you send are changed. `conditions`
|
|
26
|
+
* is replaced wholesale when sent. To assign a trigger to a folder, use
|
|
27
|
+
* `POST /rest/v1/tag-manager-asset-folders`. Requires scope: tagManagers:update
|
|
28
|
+
*/
|
|
29
|
+
update(id: string, body: TagManagerTriggerUpdateParams, options?: RequestOptions): APIPromise<TagManagerTriggerUpdateResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Delete a tag manager trigger. Requires scope: tagManagers:update
|
|
32
|
+
*/
|
|
33
|
+
delete(id: string, options?: RequestOptions): APIPromise<TagManagerTriggerDeleteResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Lists every trigger template the platform supports — what `type` discriminator
|
|
36
|
+
* to send on create/patch, and the shape of the type-specific `parameters`
|
|
37
|
+
* payload. Trigger `conditions` are evaluated at runtime (per-trigger, see the
|
|
38
|
+
* resource docs) and are not part of this descriptor. Account-agnostic: the
|
|
39
|
+
* response is the same for every API key. Requires scope: tagManagers:find
|
|
40
|
+
*/
|
|
41
|
+
types(options?: RequestOptions): APIPromise<TagManagerTriggerTypesResponse>;
|
|
42
|
+
}
|
|
43
|
+
export type TagManagerTriggerListResponsesCursor = Cursor<TagManagerTriggerListResponse>;
|
|
44
|
+
export interface TagManagerTriggerListResponse {
|
|
45
|
+
id: string;
|
|
46
|
+
accountId: string;
|
|
47
|
+
/**
|
|
48
|
+
* Conditions that must hold for the trigger to match. Use `[]` for unconditional
|
|
49
|
+
* triggers.
|
|
50
|
+
*/
|
|
51
|
+
conditions: Array<{
|
|
52
|
+
[key: string]: unknown;
|
|
53
|
+
}>;
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Type-specific configuration. Send `{}` for a no-op trigger.
|
|
57
|
+
*/
|
|
58
|
+
parameters: {
|
|
59
|
+
[key: string]: unknown;
|
|
60
|
+
};
|
|
61
|
+
tagManagerId: string;
|
|
62
|
+
/**
|
|
63
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
64
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
65
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
66
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
67
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
68
|
+
*/
|
|
69
|
+
type: string;
|
|
70
|
+
createdAt?: string | null;
|
|
71
|
+
enabled?: boolean | null;
|
|
72
|
+
/**
|
|
73
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
74
|
+
* assign, or `null` to remove from its current folder.
|
|
75
|
+
*/
|
|
76
|
+
folderId?: string | null;
|
|
77
|
+
updatedAt?: string | null;
|
|
78
|
+
}
|
|
79
|
+
export interface TagManagerTriggerCreateResponse {
|
|
80
|
+
id: string;
|
|
81
|
+
accountId: string;
|
|
82
|
+
/**
|
|
83
|
+
* Conditions that must hold for the trigger to match. Use `[]` for unconditional
|
|
84
|
+
* triggers.
|
|
85
|
+
*/
|
|
86
|
+
conditions: Array<{
|
|
87
|
+
[key: string]: unknown;
|
|
88
|
+
}>;
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* Type-specific configuration. Send `{}` for a no-op trigger.
|
|
92
|
+
*/
|
|
93
|
+
parameters: {
|
|
94
|
+
[key: string]: unknown;
|
|
95
|
+
};
|
|
96
|
+
tagManagerId: string;
|
|
97
|
+
/**
|
|
98
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
99
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
100
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
101
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
102
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
103
|
+
*/
|
|
104
|
+
type: string;
|
|
105
|
+
createdAt?: string | null;
|
|
106
|
+
enabled?: boolean | null;
|
|
107
|
+
/**
|
|
108
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
109
|
+
* assign, or `null` to remove from its current folder.
|
|
110
|
+
*/
|
|
111
|
+
folderId?: string | null;
|
|
112
|
+
updatedAt?: string | null;
|
|
113
|
+
}
|
|
114
|
+
export interface TagManagerTriggerRetrieveResponse {
|
|
115
|
+
id: string;
|
|
116
|
+
accountId: string;
|
|
117
|
+
/**
|
|
118
|
+
* Conditions that must hold for the trigger to match. Use `[]` for unconditional
|
|
119
|
+
* triggers.
|
|
120
|
+
*/
|
|
121
|
+
conditions: Array<{
|
|
122
|
+
[key: string]: unknown;
|
|
123
|
+
}>;
|
|
124
|
+
name: string;
|
|
125
|
+
/**
|
|
126
|
+
* Type-specific configuration. Send `{}` for a no-op trigger.
|
|
127
|
+
*/
|
|
128
|
+
parameters: {
|
|
129
|
+
[key: string]: unknown;
|
|
130
|
+
};
|
|
131
|
+
tagManagerId: string;
|
|
132
|
+
/**
|
|
133
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
134
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
135
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
136
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
137
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
138
|
+
*/
|
|
139
|
+
type: string;
|
|
140
|
+
createdAt?: string | null;
|
|
141
|
+
enabled?: boolean | null;
|
|
142
|
+
/**
|
|
143
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
144
|
+
* assign, or `null` to remove from its current folder.
|
|
145
|
+
*/
|
|
146
|
+
folderId?: string | null;
|
|
147
|
+
updatedAt?: string | null;
|
|
148
|
+
}
|
|
149
|
+
export interface TagManagerTriggerUpdateResponse {
|
|
150
|
+
id: string;
|
|
151
|
+
accountId: string;
|
|
152
|
+
/**
|
|
153
|
+
* Conditions that must hold for the trigger to match. Use `[]` for unconditional
|
|
154
|
+
* triggers.
|
|
155
|
+
*/
|
|
156
|
+
conditions: Array<{
|
|
157
|
+
[key: string]: unknown;
|
|
158
|
+
}>;
|
|
159
|
+
name: string;
|
|
160
|
+
/**
|
|
161
|
+
* Type-specific configuration. Send `{}` for a no-op trigger.
|
|
162
|
+
*/
|
|
163
|
+
parameters: {
|
|
164
|
+
[key: string]: unknown;
|
|
165
|
+
};
|
|
166
|
+
tagManagerId: string;
|
|
167
|
+
/**
|
|
168
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
169
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
170
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
171
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
172
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
173
|
+
*/
|
|
174
|
+
type: string;
|
|
175
|
+
createdAt?: string | null;
|
|
176
|
+
enabled?: boolean | null;
|
|
177
|
+
/**
|
|
178
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
179
|
+
* assign, or `null` to remove from its current folder.
|
|
180
|
+
*/
|
|
181
|
+
folderId?: string | null;
|
|
182
|
+
updatedAt?: string | null;
|
|
183
|
+
}
|
|
184
|
+
export interface TagManagerTriggerDeleteResponse {
|
|
185
|
+
id: string;
|
|
186
|
+
deleted: boolean;
|
|
187
|
+
}
|
|
188
|
+
export interface TagManagerTriggerTypesResponse {
|
|
189
|
+
entities: Array<TagManagerTriggerTypesResponse.Entity>;
|
|
190
|
+
}
|
|
191
|
+
export declare namespace TagManagerTriggerTypesResponse {
|
|
192
|
+
interface Entity {
|
|
193
|
+
/**
|
|
194
|
+
* Type discriminator — pass this as `type` on create/patch.
|
|
195
|
+
*/
|
|
196
|
+
id: string;
|
|
197
|
+
/**
|
|
198
|
+
* Grouping label.
|
|
199
|
+
*/
|
|
200
|
+
category: string;
|
|
201
|
+
fields: Array<Entity.Field>;
|
|
202
|
+
/**
|
|
203
|
+
* Human-readable display name.
|
|
204
|
+
*/
|
|
205
|
+
name: string;
|
|
206
|
+
description?: string | null;
|
|
207
|
+
}
|
|
208
|
+
namespace Entity {
|
|
209
|
+
interface Field {
|
|
210
|
+
/**
|
|
211
|
+
* Parameter key that goes in the `parameters` payload at create/patch.
|
|
212
|
+
*/
|
|
213
|
+
id: string;
|
|
214
|
+
/**
|
|
215
|
+
* Human-readable title for the field.
|
|
216
|
+
*/
|
|
217
|
+
title: string;
|
|
218
|
+
/**
|
|
219
|
+
* Underlying data type of the parameter value.
|
|
220
|
+
*/
|
|
221
|
+
type: 'STRING' | 'BOOLEAN' | 'INTEGER' | 'FLOAT' | 'TABLE';
|
|
222
|
+
/**
|
|
223
|
+
* For TABLE-typed fields, the predefined keys each row may contain.
|
|
224
|
+
*/
|
|
225
|
+
allowedKeys?: Array<string> | null;
|
|
226
|
+
/**
|
|
227
|
+
* When present, the field accepts only one of these values. Send the `value`
|
|
228
|
+
* string in `parameters`; the `label` is for display.
|
|
229
|
+
*/
|
|
230
|
+
availableValues?: Array<Field.AvailableValue> | null;
|
|
231
|
+
/**
|
|
232
|
+
* Default value when the caller omits the parameter on create.
|
|
233
|
+
*/
|
|
234
|
+
default?: {
|
|
235
|
+
[key: string]: unknown;
|
|
236
|
+
};
|
|
237
|
+
description?: string | null;
|
|
238
|
+
/**
|
|
239
|
+
* When `true`, omitting or sending an empty value for this parameter on
|
|
240
|
+
* create/patch returns HTTP 400.
|
|
241
|
+
*/
|
|
242
|
+
required?: boolean | null;
|
|
243
|
+
/**
|
|
244
|
+
* Server-enforced rules applied to this field at create and patch.
|
|
245
|
+
*/
|
|
246
|
+
validators?: Array<Field.Validator> | null;
|
|
247
|
+
}
|
|
248
|
+
namespace Field {
|
|
249
|
+
interface AvailableValue {
|
|
250
|
+
label: string;
|
|
251
|
+
value: string;
|
|
252
|
+
}
|
|
253
|
+
interface Validator {
|
|
254
|
+
type: 'NotEmpty' | 'CharacterLength' | 'Url' | 'Email' | 'Number' | 'Range';
|
|
255
|
+
max?: number | null;
|
|
256
|
+
min?: number | null;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
export interface TagManagerTriggerListParams extends CursorParams {
|
|
262
|
+
/**
|
|
263
|
+
* Parent tag manager whose triggers should be returned.
|
|
264
|
+
*/
|
|
265
|
+
tagManagerId: string;
|
|
266
|
+
}
|
|
267
|
+
export interface TagManagerTriggerCreateParams {
|
|
268
|
+
/**
|
|
269
|
+
* Match conditions; use `[]` for an unconditional trigger.
|
|
270
|
+
*/
|
|
271
|
+
conditions: Array<{
|
|
272
|
+
[key: string]: unknown;
|
|
273
|
+
}>;
|
|
274
|
+
name: string;
|
|
275
|
+
/**
|
|
276
|
+
* Type-specific JSON configuration.
|
|
277
|
+
*/
|
|
278
|
+
parameters: {
|
|
279
|
+
[key: string]: unknown;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Parent tag manager that will own the new trigger.
|
|
283
|
+
*/
|
|
284
|
+
tagManagerId: string;
|
|
285
|
+
/**
|
|
286
|
+
* Trigger type discriminator. Pick from `GET /tag-manager-triggers/types` for the
|
|
287
|
+
* canonical set (e.g. `PageView`, `CustomEvent`, `AllElementsClick`).
|
|
288
|
+
*/
|
|
289
|
+
type: string;
|
|
290
|
+
enabled?: boolean | null;
|
|
291
|
+
}
|
|
292
|
+
export interface TagManagerTriggerUpdateParams {
|
|
293
|
+
/**
|
|
294
|
+
* Replaces conditions wholesale when sent. Use `[]` for an unconditional trigger.
|
|
295
|
+
*/
|
|
296
|
+
conditions?: Array<{
|
|
297
|
+
[key: string]: unknown;
|
|
298
|
+
}>;
|
|
299
|
+
/**
|
|
300
|
+
* Pause/resume the trigger without changing other fields.
|
|
301
|
+
*/
|
|
302
|
+
enabled?: boolean | null;
|
|
303
|
+
/**
|
|
304
|
+
* Updated trigger name.
|
|
305
|
+
*/
|
|
306
|
+
name?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Updated type-specific JSON configuration.
|
|
309
|
+
*/
|
|
310
|
+
parameters?: {
|
|
311
|
+
[key: string]: unknown;
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* Updated trigger type. Pick from `GET /tag-manager-triggers/types`.
|
|
315
|
+
*/
|
|
316
|
+
type?: string;
|
|
317
|
+
}
|
|
318
|
+
export declare namespace TagManagerTriggers {
|
|
319
|
+
export { type TagManagerTriggerListResponse as TagManagerTriggerListResponse, type TagManagerTriggerCreateResponse as TagManagerTriggerCreateResponse, type TagManagerTriggerRetrieveResponse as TagManagerTriggerRetrieveResponse, type TagManagerTriggerUpdateResponse as TagManagerTriggerUpdateResponse, type TagManagerTriggerDeleteResponse as TagManagerTriggerDeleteResponse, type TagManagerTriggerTypesResponse as TagManagerTriggerTypesResponse, type TagManagerTriggerListResponsesCursor as TagManagerTriggerListResponsesCursor, type TagManagerTriggerListParams as TagManagerTriggerListParams, type TagManagerTriggerCreateParams as TagManagerTriggerCreateParams, type TagManagerTriggerUpdateParams as TagManagerTriggerUpdateParams, };
|
|
320
|
+
}
|
|
321
|
+
//# sourceMappingURL=tag-manager-triggers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-manager-triggers.d.ts","sourceRoot":"","sources":["../src/resources/tag-manager-triggers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,8BAA2B;AAC5E,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;OAMG;IACH,IAAI,CACF,KAAK,EAAE,2BAA2B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oCAAoC,EAAE,6BAA6B,CAAC;IAOnF;;;;OAIG;IACH,MAAM,CACJ,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;IAI9C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iCAAiC,CAAC;IAI7F;;;;OAIG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,cAAc,GAC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