@maxim_mazurok/gapi.client.tagmanager-v2 0.2.20260316 → 0.2.20260608
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/index.d.ts +58 -1
- package/package.json +1 -1
- package/readme.md +12 -0
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://tagmanager.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260608
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -217,6 +217,57 @@ declare namespace gapi.client {
|
|
|
217
217
|
/** GTM Workspace ID. */
|
|
218
218
|
workspaceId?: string;
|
|
219
219
|
}
|
|
220
|
+
interface CompilerErrorLite {
|
|
221
|
+
errorMessage?: string;
|
|
222
|
+
errorType?:
|
|
223
|
+
| 'unknownErrorType'
|
|
224
|
+
| 'duplicateAutoEventName'
|
|
225
|
+
| 'duplicateConditionId'
|
|
226
|
+
| 'duplicateDefaultMacro'
|
|
227
|
+
| 'duplicateTagName'
|
|
228
|
+
| 'internalCompilerError'
|
|
229
|
+
| 'invalidMacroKey'
|
|
230
|
+
| 'invalidNumberPredicateArgs'
|
|
231
|
+
| 'invalidMacroFormat'
|
|
232
|
+
| 'invalidMacroNameReference'
|
|
233
|
+
| 'invalidMacroParameter'
|
|
234
|
+
| 'invalidUsageContext'
|
|
235
|
+
| 'invalidRegex'
|
|
236
|
+
| 'macroCycle'
|
|
237
|
+
| 'unknownConditionId'
|
|
238
|
+
| 'unknownMacroInstance'
|
|
239
|
+
| 'invalidManualEscaping'
|
|
240
|
+
| 'invalidHtmlCssJs'
|
|
241
|
+
| 'macroInCommentsError'
|
|
242
|
+
| 'jsCompilerError'
|
|
243
|
+
| 'jsonError'
|
|
244
|
+
| 'invalidTagParameter'
|
|
245
|
+
| 'javascriptTooLong'
|
|
246
|
+
| 'unknownTagInstance'
|
|
247
|
+
| 'invalidTagReference'
|
|
248
|
+
| 'unknownTriggerId'
|
|
249
|
+
| 'customTriggerMissingEventFilter'
|
|
250
|
+
| 'duplicateTriggerId'
|
|
251
|
+
| 'unsupportedTriggerType'
|
|
252
|
+
| 'invalidTriggerParameter'
|
|
253
|
+
| 'duplicateExperimentId'
|
|
254
|
+
| 'pixieCompilerError'
|
|
255
|
+
| 'macroNotServerSideResolvable'
|
|
256
|
+
| 'invalidBlockingTrigger'
|
|
257
|
+
| 'lineTooLong'
|
|
258
|
+
| 'invalidTypeInSelect'
|
|
259
|
+
| 'gaExperimentMacroIsDeprecated'
|
|
260
|
+
| 'unsafeHtmlContent'
|
|
261
|
+
| 'unsafeHtmlAttributeValue'
|
|
262
|
+
| 'unsafeCssContent'
|
|
263
|
+
| 'parameterReferenceNotFound'
|
|
264
|
+
| 'invalidCustomTemplateRuntimeCode'
|
|
265
|
+
| 'conflictingDestinationRouting'
|
|
266
|
+
| 'missingRequiredActivity'
|
|
267
|
+
| 'unresolvableDestinationTag'
|
|
268
|
+
| 'invalidDestinationTag'
|
|
269
|
+
| 'tosRequiredForThirdPartyTags';
|
|
270
|
+
}
|
|
220
271
|
interface Condition {
|
|
221
272
|
/** A list of named parameters (key/value), depending on the condition's type. Notes: - For binary operators, include parameters named arg0 and arg1 for specifying the left and right operands, respectively. - At this time, the left operand (arg0) must be a reference to a variable. - For case-insensitive Regex matching, include a boolean parameter named ignore_case that is set to true. If not specified or set to any other value, the matching will be case sensitive. - To negate an operator, include a boolean parameter named negate boolean parameter that is set to true. */
|
|
222
273
|
parameter?: Parameter[];
|
|
@@ -398,6 +449,8 @@ declare namespace gapi.client {
|
|
|
398
449
|
interface CreateContainerVersionResponse {
|
|
399
450
|
/** Compiler errors or not. */
|
|
400
451
|
compilerError?: boolean;
|
|
452
|
+
/** Compiler error details. */
|
|
453
|
+
compilerErrors?: CompilerErrorLite[];
|
|
401
454
|
/** The container version created. */
|
|
402
455
|
containerVersion?: ContainerVersion;
|
|
403
456
|
/** Auto generated workspace path created as a result of version creation. This field should only be populated if the created version was not a quick preview. */
|
|
@@ -723,12 +776,16 @@ declare namespace gapi.client {
|
|
|
723
776
|
interface PublishContainerVersionResponse {
|
|
724
777
|
/** Compiler errors or not. */
|
|
725
778
|
compilerError?: boolean;
|
|
779
|
+
/** Compiler error details. */
|
|
780
|
+
compilerErrors?: CompilerErrorLite[];
|
|
726
781
|
/** The container version created. */
|
|
727
782
|
containerVersion?: ContainerVersion;
|
|
728
783
|
}
|
|
729
784
|
interface QuickPreviewResponse {
|
|
730
785
|
/** Were there compiler errors or not. */
|
|
731
786
|
compilerError?: boolean;
|
|
787
|
+
/** Compiler error details. */
|
|
788
|
+
compilerErrors?: CompilerErrorLite[];
|
|
732
789
|
/** The quick previewed container version. */
|
|
733
790
|
containerVersion?: ContainerVersion;
|
|
734
791
|
/** Whether quick previewing failed when syncing the workspace to the latest container version. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,18 @@ Install typings for Tag Manager API:
|
|
|
11
11
|
npm install @types/gapi.client.tagmanager-v2 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.tagmanager-v2"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
14
26
|
## Usage
|
|
15
27
|
|
|
16
28
|
You need to initialize Google API client in your code:
|