@oursprivacy/platform-sdk 1.24.0 → 1.26.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 +17 -0
- package/client.d.mts +15 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -0
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- 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/index.d.mts +5 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -1
- package/resources/sources.d.mts +2 -2
- package/resources/sources.d.ts +2 -2
- 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 +430 -0
- package/resources/tag-manager-tags.d.mts.map +1 -0
- package/resources/tag-manager-tags.d.ts +430 -0
- package/resources/tag-manager-tags.d.ts.map +1 -0
- package/resources/tag-manager-tags.js +66 -0
- package/resources/tag-manager-tags.js.map +1 -0
- package/resources/tag-manager-tags.mjs +62 -0
- package/resources/tag-manager-tags.mjs.map +1 -0
- package/resources/tag-manager-triggers.d.mts +327 -0
- package/resources/tag-manager-triggers.d.mts.map +1 -0
- package/resources/tag-manager-triggers.d.ts +327 -0
- package/resources/tag-manager-triggers.d.ts.map +1 -0
- package/resources/tag-manager-triggers.js +61 -0
- package/resources/tag-manager-triggers.js.map +1 -0
- package/resources/tag-manager-triggers.mjs +57 -0
- package/resources/tag-manager-triggers.mjs.map +1 -0
- package/resources/tag-manager-variables.d.mts +370 -0
- package/resources/tag-manager-variables.d.mts.map +1 -0
- package/resources/tag-manager-variables.d.ts +370 -0
- package/resources/tag-manager-variables.d.ts.map +1 -0
- package/resources/tag-manager-variables.js +63 -0
- package/resources/tag-manager-variables.js.map +1 -0
- package/resources/tag-manager-variables.mjs +59 -0
- package/resources/tag-manager-variables.mjs.map +1 -0
- package/resources/tag-managers.d.mts +207 -0
- package/resources/tag-managers.d.mts.map +1 -0
- package/resources/tag-managers.d.ts +207 -0
- package/resources/tag-managers.d.ts.map +1 -0
- package/resources/tag-managers.js +51 -0
- package/resources/tag-managers.js.map +1 -0
- package/resources/tag-managers.mjs +47 -0
- package/resources/tag-managers.mjs.map +1 -0
- package/src/client.ts +137 -0
- package/src/resources/destinations.ts +7 -0
- package/src/resources/index.ts +61 -0
- package/src/resources/sources.ts +2 -2
- package/src/resources/tag-manager-folders.ts +172 -0
- package/src/resources/tag-manager-tags.ts +555 -0
- package/src/resources/tag-manager-triggers.ts +431 -0
- package/src/resources/tag-manager-variables.ts +469 -0
- package/src/resources/tag-managers.ts +272 -0
- 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,555 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class TagManagerTags extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* List tags inside a single tag manager. Requires the `tagManagerId` query
|
|
12
|
+
* parameter — tags are always scoped to one parent container. Supports cursor
|
|
13
|
+
* pagination via `limit` and `cursor`; the limit clamp is 1000 so a single request
|
|
14
|
+
* can return the full set (the web-app workspace renders all tags in one shot).
|
|
15
|
+
* Requires scope: tagManagers:find
|
|
16
|
+
*/
|
|
17
|
+
list(
|
|
18
|
+
query: TagManagerTagListParams,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): PagePromise<TagManagerTagListResponsesCursor, TagManagerTagListResponse> {
|
|
21
|
+
return this._client.getAPIList('/rest/v1/tag-manager-tags', Cursor<TagManagerTagListResponse>, {
|
|
22
|
+
query,
|
|
23
|
+
...options,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Create a new tag inside a tag manager. `tagManagerId` is required in the body.
|
|
29
|
+
* Newly created tags are not assigned to any folder — use the GraphQL
|
|
30
|
+
* `assignTagManagerAssetToFolder` mutation to place them. Requires scope:
|
|
31
|
+
* tagManagers:update
|
|
32
|
+
*/
|
|
33
|
+
create(body: TagManagerTagCreateParams, options?: RequestOptions): APIPromise<TagManagerTagCreateResponse> {
|
|
34
|
+
return this._client.post('/rest/v1/tag-manager-tags', { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Fetch a single tag by id, including its `folderId` (read-only on this endpoint).
|
|
39
|
+
* Requires scope: tagManagers:find
|
|
40
|
+
*/
|
|
41
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerTagRetrieveResponse> {
|
|
42
|
+
return this._client.get(path`/rest/v1/tag-manager-tags/${id}`, options);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Partially update a tag. Only the fields you send are changed. `folderId` is
|
|
47
|
+
* read-only here; change folder membership via the GraphQL
|
|
48
|
+
* `assignTagManagerAssetToFolder` mutation. Tags cannot be moved between tag
|
|
49
|
+
* managers (omit `tagManagerId` on patch). Requires scope: tagManagers:update
|
|
50
|
+
*/
|
|
51
|
+
update(
|
|
52
|
+
id: string,
|
|
53
|
+
body: TagManagerTagUpdateParams,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): APIPromise<TagManagerTagUpdateResponse> {
|
|
56
|
+
return this._client.patch(path`/rest/v1/tag-manager-tags/${id}`, { body, ...options });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Delete a tag manager tag. Requires scope: tagManagers:update
|
|
61
|
+
*/
|
|
62
|
+
delete(id: string, options?: RequestOptions): APIPromise<TagManagerTagDeleteResponse> {
|
|
63
|
+
return this._client.delete(path`/rest/v1/tag-manager-tags/${id}`, options);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Lists every tag template the platform supports — what `type` discriminator to
|
|
68
|
+
* send on create/patch, and the shape of the type-specific `parameters` payload
|
|
69
|
+
* (fields, validators, required flags, available values for selects).
|
|
70
|
+
* Account-agnostic: the response is the same for every API key. The same registry
|
|
71
|
+
* powers server-side validation on `POST` / `PATCH` so what this endpoint
|
|
72
|
+
* advertises matches what the server enforces. Requires scope: tagManagers:find
|
|
73
|
+
*/
|
|
74
|
+
types(options?: RequestOptions): APIPromise<TagManagerTagTypesResponse> {
|
|
75
|
+
return this._client.get('/rest/v1/tag-manager-tags/types', options);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type TagManagerTagListResponsesCursor = Cursor<TagManagerTagListResponse>;
|
|
80
|
+
|
|
81
|
+
export interface TagManagerTagListResponse {
|
|
82
|
+
/**
|
|
83
|
+
* Server-assigned UUID for this tag.
|
|
84
|
+
*/
|
|
85
|
+
id: string;
|
|
86
|
+
|
|
87
|
+
accountId: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Triggers that fire this tag. Tag does nothing if this list is empty.
|
|
91
|
+
*/
|
|
92
|
+
fireTriggerIds: Array<string>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Human-readable tag name.
|
|
96
|
+
*/
|
|
97
|
+
name: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Type-specific JSON configuration. Shape depends on `type` — inspect a known-good
|
|
101
|
+
* tag of the same type for the field set. Empty object is valid for placeholder
|
|
102
|
+
* tags.
|
|
103
|
+
*/
|
|
104
|
+
parameters: { [key: string]: unknown };
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Tag implementation identifier — usually matches `type` but kept distinct for
|
|
108
|
+
* legacy tags whose implementation diverged from the type label.
|
|
109
|
+
*/
|
|
110
|
+
Tag: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Parent tag manager that owns this tag.
|
|
114
|
+
*/
|
|
115
|
+
tagManagerId: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Tag type discriminator (e.g. `GA4Event`, `MetaPixel`, `OursInitTag`).
|
|
119
|
+
*/
|
|
120
|
+
type: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Triggers that suppress this tag when they match — evaluated after fire triggers.
|
|
124
|
+
*/
|
|
125
|
+
blockTriggerIds?: Array<string> | null;
|
|
126
|
+
|
|
127
|
+
createdAt?: string | null;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Defaults to `true` on create.
|
|
131
|
+
*/
|
|
132
|
+
enabled?: boolean | null;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Folder this tag belongs to in the dashboard. Read-only on this endpoint — change
|
|
136
|
+
* folder membership via the GraphQL `assignTagManagerAssetToFolder` mutation.
|
|
137
|
+
*/
|
|
138
|
+
folderId?: string | null;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Lower numbers fire first. Defaults to 0.
|
|
142
|
+
*/
|
|
143
|
+
priority?: number | null;
|
|
144
|
+
|
|
145
|
+
updatedAt?: string | null;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface TagManagerTagCreateResponse {
|
|
149
|
+
/**
|
|
150
|
+
* Server-assigned UUID for this tag.
|
|
151
|
+
*/
|
|
152
|
+
id: string;
|
|
153
|
+
|
|
154
|
+
accountId: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Triggers that fire this tag. Tag does nothing if this list is empty.
|
|
158
|
+
*/
|
|
159
|
+
fireTriggerIds: Array<string>;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Human-readable tag name.
|
|
163
|
+
*/
|
|
164
|
+
name: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Type-specific JSON configuration. Shape depends on `type` — inspect a known-good
|
|
168
|
+
* tag of the same type for the field set. Empty object is valid for placeholder
|
|
169
|
+
* tags.
|
|
170
|
+
*/
|
|
171
|
+
parameters: { [key: string]: unknown };
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Tag implementation identifier — usually matches `type` but kept distinct for
|
|
175
|
+
* legacy tags whose implementation diverged from the type label.
|
|
176
|
+
*/
|
|
177
|
+
Tag: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Parent tag manager that owns this tag.
|
|
181
|
+
*/
|
|
182
|
+
tagManagerId: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Tag type discriminator (e.g. `GA4Event`, `MetaPixel`, `OursInitTag`).
|
|
186
|
+
*/
|
|
187
|
+
type: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Triggers that suppress this tag when they match — evaluated after fire triggers.
|
|
191
|
+
*/
|
|
192
|
+
blockTriggerIds?: Array<string> | null;
|
|
193
|
+
|
|
194
|
+
createdAt?: string | null;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Defaults to `true` on create.
|
|
198
|
+
*/
|
|
199
|
+
enabled?: boolean | null;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Folder this tag belongs to in the dashboard. Read-only on this endpoint — change
|
|
203
|
+
* folder membership via the GraphQL `assignTagManagerAssetToFolder` mutation.
|
|
204
|
+
*/
|
|
205
|
+
folderId?: string | null;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Lower numbers fire first. Defaults to 0.
|
|
209
|
+
*/
|
|
210
|
+
priority?: number | null;
|
|
211
|
+
|
|
212
|
+
updatedAt?: string | null;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface TagManagerTagRetrieveResponse {
|
|
216
|
+
/**
|
|
217
|
+
* Server-assigned UUID for this tag.
|
|
218
|
+
*/
|
|
219
|
+
id: string;
|
|
220
|
+
|
|
221
|
+
accountId: string;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Triggers that fire this tag. Tag does nothing if this list is empty.
|
|
225
|
+
*/
|
|
226
|
+
fireTriggerIds: Array<string>;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Human-readable tag name.
|
|
230
|
+
*/
|
|
231
|
+
name: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Type-specific JSON configuration. Shape depends on `type` — inspect a known-good
|
|
235
|
+
* tag of the same type for the field set. Empty object is valid for placeholder
|
|
236
|
+
* tags.
|
|
237
|
+
*/
|
|
238
|
+
parameters: { [key: string]: unknown };
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Tag implementation identifier — usually matches `type` but kept distinct for
|
|
242
|
+
* legacy tags whose implementation diverged from the type label.
|
|
243
|
+
*/
|
|
244
|
+
Tag: string;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Parent tag manager that owns this tag.
|
|
248
|
+
*/
|
|
249
|
+
tagManagerId: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Tag type discriminator (e.g. `GA4Event`, `MetaPixel`, `OursInitTag`).
|
|
253
|
+
*/
|
|
254
|
+
type: string;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Triggers that suppress this tag when they match — evaluated after fire triggers.
|
|
258
|
+
*/
|
|
259
|
+
blockTriggerIds?: Array<string> | null;
|
|
260
|
+
|
|
261
|
+
createdAt?: string | null;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Defaults to `true` on create.
|
|
265
|
+
*/
|
|
266
|
+
enabled?: boolean | null;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Folder this tag belongs to in the dashboard. Read-only on this endpoint — change
|
|
270
|
+
* folder membership via the GraphQL `assignTagManagerAssetToFolder` mutation.
|
|
271
|
+
*/
|
|
272
|
+
folderId?: string | null;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Lower numbers fire first. Defaults to 0.
|
|
276
|
+
*/
|
|
277
|
+
priority?: number | null;
|
|
278
|
+
|
|
279
|
+
updatedAt?: string | null;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface TagManagerTagUpdateResponse {
|
|
283
|
+
/**
|
|
284
|
+
* Server-assigned UUID for this tag.
|
|
285
|
+
*/
|
|
286
|
+
id: string;
|
|
287
|
+
|
|
288
|
+
accountId: string;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Triggers that fire this tag. Tag does nothing if this list is empty.
|
|
292
|
+
*/
|
|
293
|
+
fireTriggerIds: Array<string>;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Human-readable tag name.
|
|
297
|
+
*/
|
|
298
|
+
name: string;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Type-specific JSON configuration. Shape depends on `type` — inspect a known-good
|
|
302
|
+
* tag of the same type for the field set. Empty object is valid for placeholder
|
|
303
|
+
* tags.
|
|
304
|
+
*/
|
|
305
|
+
parameters: { [key: string]: unknown };
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Tag implementation identifier — usually matches `type` but kept distinct for
|
|
309
|
+
* legacy tags whose implementation diverged from the type label.
|
|
310
|
+
*/
|
|
311
|
+
Tag: string;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Parent tag manager that owns this tag.
|
|
315
|
+
*/
|
|
316
|
+
tagManagerId: string;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Tag type discriminator (e.g. `GA4Event`, `MetaPixel`, `OursInitTag`).
|
|
320
|
+
*/
|
|
321
|
+
type: string;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Triggers that suppress this tag when they match — evaluated after fire triggers.
|
|
325
|
+
*/
|
|
326
|
+
blockTriggerIds?: Array<string> | null;
|
|
327
|
+
|
|
328
|
+
createdAt?: string | null;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Defaults to `true` on create.
|
|
332
|
+
*/
|
|
333
|
+
enabled?: boolean | null;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Folder this tag belongs to in the dashboard. Read-only on this endpoint — change
|
|
337
|
+
* folder membership via the GraphQL `assignTagManagerAssetToFolder` mutation.
|
|
338
|
+
*/
|
|
339
|
+
folderId?: string | null;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Lower numbers fire first. Defaults to 0.
|
|
343
|
+
*/
|
|
344
|
+
priority?: number | null;
|
|
345
|
+
|
|
346
|
+
updatedAt?: string | null;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export interface TagManagerTagDeleteResponse {
|
|
350
|
+
id: string;
|
|
351
|
+
|
|
352
|
+
deleted: boolean;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export interface TagManagerTagTypesResponse {
|
|
356
|
+
entities: Array<TagManagerTagTypesResponse.Entity>;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export namespace TagManagerTagTypesResponse {
|
|
360
|
+
export interface Entity {
|
|
361
|
+
/**
|
|
362
|
+
* Type discriminator — pass this as `type` on create/patch.
|
|
363
|
+
*/
|
|
364
|
+
id: string;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Grouping label.
|
|
368
|
+
*/
|
|
369
|
+
category: string;
|
|
370
|
+
|
|
371
|
+
fields: Array<Entity.Field>;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Human-readable display name.
|
|
375
|
+
*/
|
|
376
|
+
name: string;
|
|
377
|
+
|
|
378
|
+
description?: string | null;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export namespace Entity {
|
|
382
|
+
export interface Field {
|
|
383
|
+
/**
|
|
384
|
+
* Parameter key that goes in the `parameters` payload at create/patch.
|
|
385
|
+
*/
|
|
386
|
+
id: string;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Human-readable title for the field.
|
|
390
|
+
*/
|
|
391
|
+
title: string;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Underlying data type of the parameter value.
|
|
395
|
+
*/
|
|
396
|
+
type: 'STRING' | 'BOOLEAN' | 'INTEGER' | 'FLOAT' | 'TABLE';
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* For TABLE-typed fields, the predefined keys each row may contain.
|
|
400
|
+
*/
|
|
401
|
+
allowedKeys?: Array<string> | null;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* When present, the field accepts only one of these values. Send the `value`
|
|
405
|
+
* string in `parameters`; the `label` is for display.
|
|
406
|
+
*/
|
|
407
|
+
availableValues?: Array<Field.AvailableValue> | null;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Default value when the caller omits the parameter on create.
|
|
411
|
+
*/
|
|
412
|
+
default?: { [key: string]: unknown };
|
|
413
|
+
|
|
414
|
+
description?: string | null;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* When `true`, omitting or sending an empty value for this parameter on
|
|
418
|
+
* create/patch returns HTTP 400.
|
|
419
|
+
*/
|
|
420
|
+
required?: boolean | null;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Server-enforced rules applied to this field at create and patch.
|
|
424
|
+
*/
|
|
425
|
+
validators?: Array<Field.Validator> | null;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export namespace Field {
|
|
429
|
+
export interface AvailableValue {
|
|
430
|
+
label: string;
|
|
431
|
+
|
|
432
|
+
value: string;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export interface Validator {
|
|
436
|
+
type: 'NotEmpty' | 'CharacterLength' | 'Url' | 'Email' | 'Number' | 'Range';
|
|
437
|
+
|
|
438
|
+
max?: number | null;
|
|
439
|
+
|
|
440
|
+
min?: number | null;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export interface TagManagerTagListParams extends CursorParams {
|
|
447
|
+
/**
|
|
448
|
+
* Parent tag manager whose tags should be returned.
|
|
449
|
+
*/
|
|
450
|
+
tagManagerId: string;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export interface TagManagerTagCreateParams {
|
|
454
|
+
/**
|
|
455
|
+
* Trigger ids that cause this tag to fire. Use `[]` only for placeholder tags.
|
|
456
|
+
*/
|
|
457
|
+
fireTriggerIds: Array<string>;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Human-readable tag name.
|
|
461
|
+
*/
|
|
462
|
+
name: string;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Type-specific JSON configuration. Send `{}` for a placeholder.
|
|
466
|
+
*/
|
|
467
|
+
parameters: { [key: string]: unknown };
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Tag implementation identifier (typically equals `type`).
|
|
471
|
+
*/
|
|
472
|
+
Tag: string;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Parent tag manager that will own the new tag.
|
|
476
|
+
*/
|
|
477
|
+
tagManagerId: string;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Tag type discriminator (e.g. `GA4Event`).
|
|
481
|
+
*/
|
|
482
|
+
type: string;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Optional trigger ids that block this tag when they match.
|
|
486
|
+
*/
|
|
487
|
+
blockTriggerIds?: Array<string> | null;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Defaults to `true`.
|
|
491
|
+
*/
|
|
492
|
+
enabled?: boolean | null;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Defaults to 0.
|
|
496
|
+
*/
|
|
497
|
+
priority?: number | null;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export interface TagManagerTagUpdateParams {
|
|
501
|
+
/**
|
|
502
|
+
* Replaces the block trigger list wholesale. Send `null` to clear.
|
|
503
|
+
*/
|
|
504
|
+
blockTriggerIds?: Array<string> | null;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Pause/resume the tag without changing other fields.
|
|
508
|
+
*/
|
|
509
|
+
enabled?: boolean | null;
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Replaces the fire trigger list wholesale.
|
|
513
|
+
*/
|
|
514
|
+
fireTriggerIds?: Array<string>;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Updated tag name.
|
|
518
|
+
*/
|
|
519
|
+
name?: string;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Updated type-specific JSON configuration.
|
|
523
|
+
*/
|
|
524
|
+
parameters?: { [key: string]: unknown };
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Updated priority.
|
|
528
|
+
*/
|
|
529
|
+
priority?: number | null;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Updated tag implementation identifier.
|
|
533
|
+
*/
|
|
534
|
+
Tag?: string;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Updated tag type.
|
|
538
|
+
*/
|
|
539
|
+
type?: string;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
export declare namespace TagManagerTags {
|
|
543
|
+
export {
|
|
544
|
+
type TagManagerTagListResponse as TagManagerTagListResponse,
|
|
545
|
+
type TagManagerTagCreateResponse as TagManagerTagCreateResponse,
|
|
546
|
+
type TagManagerTagRetrieveResponse as TagManagerTagRetrieveResponse,
|
|
547
|
+
type TagManagerTagUpdateResponse as TagManagerTagUpdateResponse,
|
|
548
|
+
type TagManagerTagDeleteResponse as TagManagerTagDeleteResponse,
|
|
549
|
+
type TagManagerTagTypesResponse as TagManagerTagTypesResponse,
|
|
550
|
+
type TagManagerTagListResponsesCursor as TagManagerTagListResponsesCursor,
|
|
551
|
+
type TagManagerTagListParams as TagManagerTagListParams,
|
|
552
|
+
type TagManagerTagCreateParams as TagManagerTagCreateParams,
|
|
553
|
+
type TagManagerTagUpdateParams as TagManagerTagUpdateParams,
|
|
554
|
+
};
|
|
555
|
+
}
|