@postrun/js 2.19.0 → 2.20.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/dist/{chunk-UAOUZR6K.js → chunk-GJSZT5Q4.js} +77 -64
- package/dist/chunk-GJSZT5Q4.js.map +1 -0
- package/dist/{chunk-EBCBBXLX.js → chunk-ZGJ6TJD5.js} +269 -57
- package/dist/chunk-ZGJ6TJD5.js.map +1 -0
- package/dist/index.cjs +346 -98
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +83 -54
- package/dist/index.d.ts +83 -54
- package/dist/index.js +26 -4
- package/dist/index.js.map +1 -1
- package/dist/query.cjs +155 -127
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +8742 -628
- package/dist/query.d.ts +8742 -628
- package/dist/query.js +147 -121
- package/dist/query.js.map +1 -1
- package/dist/schemas/index.cjs +337 -75
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +398 -80
- package/dist/schemas/index.d.ts +398 -80
- package/dist/schemas/index.js +1 -1
- package/dist/server.cjs +242 -31
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/{types.gen-D7d6RVzh.d.cts → types.gen-D7ytdorE.d.cts} +8633 -540
- package/dist/{types.gen-D7d6RVzh.d.ts → types.gen-D7ytdorE.d.ts} +8633 -540
- package/package.json +1 -1
- package/dist/chunk-EBCBBXLX.js.map +0 -1
- package/dist/chunk-UAOUZR6K.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1729,7 +1729,7 @@ var zGoogleAdsAdGroup = z__namespace.object({
|
|
|
1729
1729
|
campaign: z__namespace.string().nullable()
|
|
1730
1730
|
});
|
|
1731
1731
|
var zGoogleAdsAd = z__namespace.object({
|
|
1732
|
-
id: z__namespace.string(),
|
|
1732
|
+
id: z__namespace.string().regex(/^\d+~\d+$/),
|
|
1733
1733
|
name: z__namespace.string().nullable(),
|
|
1734
1734
|
type: z__namespace.enum([
|
|
1735
1735
|
"UNSPECIFIED",
|
|
@@ -1777,7 +1777,7 @@ var zGoogleAdsAd = z__namespace.object({
|
|
|
1777
1777
|
ad_group: z__namespace.string().nullable()
|
|
1778
1778
|
});
|
|
1779
1779
|
var zGoogleAdsKeyword = z__namespace.object({
|
|
1780
|
-
id: z__namespace.string(),
|
|
1780
|
+
id: z__namespace.string().regex(/^\d+~\d+$/),
|
|
1781
1781
|
text: z__namespace.string().nullable(),
|
|
1782
1782
|
match_type: z__namespace.enum([
|
|
1783
1783
|
"UNSPECIFIED",
|
|
@@ -2253,6 +2253,54 @@ z__namespace.object({
|
|
|
2253
2253
|
since: z__namespace.iso.date(),
|
|
2254
2254
|
until: z__namespace.iso.date()
|
|
2255
2255
|
});
|
|
2256
|
+
var zGoogleAdTreeNode = z__namespace.object({
|
|
2257
|
+
level: z__namespace.enum([
|
|
2258
|
+
"campaign",
|
|
2259
|
+
"ad_group",
|
|
2260
|
+
"ad",
|
|
2261
|
+
"keyword"
|
|
2262
|
+
]),
|
|
2263
|
+
id: z__namespace.string().min(1),
|
|
2264
|
+
name: z__namespace.string().nullable(),
|
|
2265
|
+
parent_id: z__namespace.string().min(1).nullable(),
|
|
2266
|
+
status: z__namespace.enum([
|
|
2267
|
+
"UNSPECIFIED",
|
|
2268
|
+
"UNKNOWN",
|
|
2269
|
+
"ENABLED",
|
|
2270
|
+
"PAUSED",
|
|
2271
|
+
"REMOVED"
|
|
2272
|
+
]),
|
|
2273
|
+
type: z__namespace.enum([
|
|
2274
|
+
"UNSPECIFIED",
|
|
2275
|
+
"UNKNOWN",
|
|
2276
|
+
"SEARCH",
|
|
2277
|
+
"DISPLAY",
|
|
2278
|
+
"SHOPPING",
|
|
2279
|
+
"HOTEL",
|
|
2280
|
+
"VIDEO",
|
|
2281
|
+
"MULTI_CHANNEL",
|
|
2282
|
+
"LOCAL",
|
|
2283
|
+
"SMART",
|
|
2284
|
+
"PERFORMANCE_MAX",
|
|
2285
|
+
"LOCAL_SERVICES",
|
|
2286
|
+
"TRAVEL",
|
|
2287
|
+
"DEMAND_GEN"
|
|
2288
|
+
]).nullable(),
|
|
2289
|
+
child_kind: z__namespace.enum([
|
|
2290
|
+
"ad_group",
|
|
2291
|
+
"asset_group",
|
|
2292
|
+
"none"
|
|
2293
|
+
]),
|
|
2294
|
+
expandable: z__namespace.boolean(),
|
|
2295
|
+
metrics: z__namespace.record(z__namespace.string(), z__namespace.number().nullable()),
|
|
2296
|
+
cost_micros: z__namespace.number(),
|
|
2297
|
+
cost: z__namespace.number()
|
|
2298
|
+
});
|
|
2299
|
+
z__namespace.object({
|
|
2300
|
+
object: z__namespace.literal("list"),
|
|
2301
|
+
data: z__namespace.array(zGoogleAdTreeNode)
|
|
2302
|
+
});
|
|
2303
|
+
z__namespace.string().min(1).max(255);
|
|
2256
2304
|
z__namespace.object({
|
|
2257
2305
|
limit: z__namespace.int().gte(1).lte(100).optional().default(20),
|
|
2258
2306
|
offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0),
|
|
@@ -2281,6 +2329,9 @@ z__namespace.object({
|
|
|
2281
2329
|
z__namespace.boolean()
|
|
2282
2330
|
])).optional()
|
|
2283
2331
|
});
|
|
2332
|
+
z__namespace.object({
|
|
2333
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2334
|
+
});
|
|
2284
2335
|
z__namespace.object({
|
|
2285
2336
|
id: z__namespace.string()
|
|
2286
2337
|
});
|
|
@@ -2323,6 +2374,9 @@ z__namespace.object({
|
|
|
2323
2374
|
offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
2324
2375
|
has_more: z__namespace.boolean()
|
|
2325
2376
|
});
|
|
2377
|
+
z__namespace.object({
|
|
2378
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2379
|
+
});
|
|
2326
2380
|
z__namespace.object({
|
|
2327
2381
|
id: z__namespace.string()
|
|
2328
2382
|
});
|
|
@@ -2337,6 +2391,9 @@ z__namespace.object({
|
|
|
2337
2391
|
z__namespace.object({
|
|
2338
2392
|
external_account_id: z__namespace.string().min(1)
|
|
2339
2393
|
});
|
|
2394
|
+
z__namespace.object({
|
|
2395
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2396
|
+
});
|
|
2340
2397
|
z__namespace.object({
|
|
2341
2398
|
id: z__namespace.string()
|
|
2342
2399
|
});
|
|
@@ -2358,6 +2415,9 @@ z__namespace.object({
|
|
|
2358
2415
|
"tiktok"
|
|
2359
2416
|
])
|
|
2360
2417
|
});
|
|
2418
|
+
z__namespace.object({
|
|
2419
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2420
|
+
});
|
|
2361
2421
|
z__namespace.object({
|
|
2362
2422
|
id: z__namespace.string()
|
|
2363
2423
|
});
|
|
@@ -2402,6 +2462,9 @@ z__namespace.object({
|
|
|
2402
2462
|
z__namespace.boolean()
|
|
2403
2463
|
])).optional()
|
|
2404
2464
|
});
|
|
2465
|
+
z__namespace.object({
|
|
2466
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2467
|
+
});
|
|
2405
2468
|
z__namespace.object({
|
|
2406
2469
|
id: z__namespace.string(),
|
|
2407
2470
|
object: z__namespace.literal("media"),
|
|
@@ -2556,6 +2619,9 @@ z__namespace.object({
|
|
|
2556
2619
|
expires_at: z__namespace.string()
|
|
2557
2620
|
}).nullable()
|
|
2558
2621
|
});
|
|
2622
|
+
z__namespace.object({
|
|
2623
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2624
|
+
});
|
|
2559
2625
|
z__namespace.object({
|
|
2560
2626
|
id: z__namespace.string()
|
|
2561
2627
|
});
|
|
@@ -2584,6 +2650,9 @@ z__namespace.object({
|
|
|
2584
2650
|
"google_ads"
|
|
2585
2651
|
])).min(1).optional()
|
|
2586
2652
|
});
|
|
2653
|
+
z__namespace.object({
|
|
2654
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2655
|
+
});
|
|
2587
2656
|
z__namespace.object({
|
|
2588
2657
|
id: z__namespace.string()
|
|
2589
2658
|
});
|
|
@@ -2641,6 +2710,9 @@ z__namespace.object({
|
|
|
2641
2710
|
offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
2642
2711
|
has_more: z__namespace.boolean()
|
|
2643
2712
|
});
|
|
2713
|
+
z__namespace.object({
|
|
2714
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2715
|
+
});
|
|
2644
2716
|
z__namespace.object({
|
|
2645
2717
|
id: z__namespace.string(),
|
|
2646
2718
|
object: z__namespace.literal("post"),
|
|
@@ -2697,6 +2769,9 @@ z__namespace.object({
|
|
|
2697
2769
|
dry_run: z__namespace.boolean().optional().default(false),
|
|
2698
2770
|
variants: z__namespace.array(zPostVariantInput).min(1).optional()
|
|
2699
2771
|
});
|
|
2772
|
+
z__namespace.object({
|
|
2773
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2774
|
+
});
|
|
2700
2775
|
z__namespace.object({
|
|
2701
2776
|
id: z__namespace.string()
|
|
2702
2777
|
});
|
|
@@ -2860,6 +2935,22 @@ z__namespace.object({
|
|
|
2860
2935
|
hint: z__namespace.string().optional(),
|
|
2861
2936
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
2862
2937
|
got: z__namespace.string().optional(),
|
|
2938
|
+
source: z__namespace.object({
|
|
2939
|
+
platform: z__namespace.enum([
|
|
2940
|
+
"google",
|
|
2941
|
+
"meta",
|
|
2942
|
+
"x",
|
|
2943
|
+
"linkedin",
|
|
2944
|
+
"instagram",
|
|
2945
|
+
"facebook",
|
|
2946
|
+
"tiktok",
|
|
2947
|
+
"youtube"
|
|
2948
|
+
]),
|
|
2949
|
+
platform_code: z__namespace.string().optional(),
|
|
2950
|
+
field: z__namespace.string().optional(),
|
|
2951
|
+
value: z__namespace.string().optional(),
|
|
2952
|
+
platform_request_id: z__namespace.string().optional()
|
|
2953
|
+
}).optional(),
|
|
2863
2954
|
variant_index: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
2864
2955
|
path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()])),
|
|
2865
2956
|
platform: zPostPlatform.optional(),
|
|
@@ -3095,6 +3186,20 @@ z__namespace.object({
|
|
|
3095
3186
|
z__namespace.object({
|
|
3096
3187
|
connection_id: z__namespace.string()
|
|
3097
3188
|
});
|
|
3189
|
+
z__namespace.object({
|
|
3190
|
+
connection_id: z__namespace.string()
|
|
3191
|
+
});
|
|
3192
|
+
z__namespace.object({
|
|
3193
|
+
campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
|
|
3194
|
+
metrics: z__namespace.array(zGoogleAdsInsightMetric).min(1).optional().default([
|
|
3195
|
+
"impressions",
|
|
3196
|
+
"clicks",
|
|
3197
|
+
"cost_micros",
|
|
3198
|
+
"conversions"
|
|
3199
|
+
]),
|
|
3200
|
+
since: z__namespace.iso.date(),
|
|
3201
|
+
until: z__namespace.iso.date()
|
|
3202
|
+
});
|
|
3098
3203
|
z__namespace.object({
|
|
3099
3204
|
query: z__namespace.string().min(1).max(1e4)
|
|
3100
3205
|
});
|
|
@@ -3110,20 +3215,29 @@ z__namespace.object({
|
|
|
3110
3215
|
amount_micros: z__namespace.int().gt(0).lte(9007199254740991),
|
|
3111
3216
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3112
3217
|
});
|
|
3218
|
+
z__namespace.object({
|
|
3219
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3220
|
+
});
|
|
3113
3221
|
z__namespace.object({
|
|
3114
3222
|
connection_id: z__namespace.string()
|
|
3115
3223
|
});
|
|
3116
3224
|
z__namespace.object({
|
|
3225
|
+
amount_micros: z__namespace.int().gt(0).lte(9007199254740991),
|
|
3117
3226
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3118
3227
|
});
|
|
3228
|
+
z__namespace.object({
|
|
3229
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3230
|
+
});
|
|
3119
3231
|
z__namespace.object({
|
|
3120
3232
|
connection_id: z__namespace.string(),
|
|
3121
3233
|
id: z__namespace.string().regex(/^\d+$/)
|
|
3122
3234
|
});
|
|
3123
3235
|
z__namespace.object({
|
|
3124
|
-
amount_micros: z__namespace.int().gt(0).lte(9007199254740991),
|
|
3125
3236
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3126
3237
|
});
|
|
3238
|
+
z__namespace.object({
|
|
3239
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3240
|
+
});
|
|
3127
3241
|
z__namespace.object({
|
|
3128
3242
|
connection_id: z__namespace.string(),
|
|
3129
3243
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3198,17 +3312,14 @@ z__namespace.object({
|
|
|
3198
3312
|
"target_spend"
|
|
3199
3313
|
]),
|
|
3200
3314
|
status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
|
|
3315
|
+
contains_eu_political_advertising: z__namespace.enum(["DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING", "CONTAINS_EU_POLITICAL_ADVERTISING"]).optional().default("DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING"),
|
|
3201
3316
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3202
3317
|
});
|
|
3203
3318
|
z__namespace.object({
|
|
3204
|
-
|
|
3205
|
-
});
|
|
3206
|
-
z__namespace.object({
|
|
3207
|
-
dry_run: z__namespace.boolean().optional().default(false)
|
|
3319
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3208
3320
|
});
|
|
3209
3321
|
z__namespace.object({
|
|
3210
|
-
connection_id: z__namespace.string()
|
|
3211
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3322
|
+
connection_id: z__namespace.string()
|
|
3212
3323
|
});
|
|
3213
3324
|
z__namespace.object({
|
|
3214
3325
|
connection_id: z__namespace.string(),
|
|
@@ -3272,6 +3383,9 @@ z__namespace.object({
|
|
|
3272
3383
|
name: z__namespace.string().min(1).max(255),
|
|
3273
3384
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3274
3385
|
});
|
|
3386
|
+
z__namespace.object({
|
|
3387
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3388
|
+
});
|
|
3275
3389
|
z__namespace.object({
|
|
3276
3390
|
connection_id: z__namespace.string(),
|
|
3277
3391
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3279,6 +3393,19 @@ z__namespace.object({
|
|
|
3279
3393
|
z__namespace.object({
|
|
3280
3394
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3281
3395
|
});
|
|
3396
|
+
z__namespace.object({
|
|
3397
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3398
|
+
});
|
|
3399
|
+
z__namespace.object({
|
|
3400
|
+
connection_id: z__namespace.string(),
|
|
3401
|
+
id: z__namespace.string().regex(/^\d+$/)
|
|
3402
|
+
});
|
|
3403
|
+
z__namespace.object({
|
|
3404
|
+
dry_run: z__namespace.boolean().optional().default(false)
|
|
3405
|
+
});
|
|
3406
|
+
z__namespace.object({
|
|
3407
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3408
|
+
});
|
|
3282
3409
|
z__namespace.object({
|
|
3283
3410
|
connection_id: z__namespace.string(),
|
|
3284
3411
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3292,6 +3419,9 @@ z__namespace.object({
|
|
|
3292
3419
|
z__namespace.object({
|
|
3293
3420
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3294
3421
|
});
|
|
3422
|
+
z__namespace.object({
|
|
3423
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3424
|
+
});
|
|
3295
3425
|
z__namespace.object({
|
|
3296
3426
|
connection_id: z__namespace.string(),
|
|
3297
3427
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3331,6 +3461,9 @@ z__namespace.object({
|
|
|
3331
3461
|
negative: z__namespace.boolean().optional().default(false),
|
|
3332
3462
|
language_constant: z__namespace.string().min(1).optional()
|
|
3333
3463
|
});
|
|
3464
|
+
z__namespace.object({
|
|
3465
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3466
|
+
});
|
|
3334
3467
|
z__namespace.object({
|
|
3335
3468
|
connection_id: z__namespace.string(),
|
|
3336
3469
|
campaign_id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3338,6 +3471,9 @@ z__namespace.object({
|
|
|
3338
3471
|
z__namespace.object({
|
|
3339
3472
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3340
3473
|
});
|
|
3474
|
+
z__namespace.object({
|
|
3475
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3476
|
+
});
|
|
3341
3477
|
z__namespace.object({
|
|
3342
3478
|
connection_id: z__namespace.string(),
|
|
3343
3479
|
campaign_id: z__namespace.string().regex(/^\d+$/),
|
|
@@ -3348,6 +3484,9 @@ z__namespace.object({
|
|
|
3348
3484
|
positive_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional(),
|
|
3349
3485
|
negative_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional()
|
|
3350
3486
|
});
|
|
3487
|
+
z__namespace.object({
|
|
3488
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3489
|
+
});
|
|
3351
3490
|
z__namespace.object({
|
|
3352
3491
|
connection_id: z__namespace.string(),
|
|
3353
3492
|
campaign_id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3370,14 +3509,10 @@ z__namespace.object({
|
|
|
3370
3509
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3371
3510
|
});
|
|
3372
3511
|
z__namespace.object({
|
|
3373
|
-
|
|
3512
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3374
3513
|
});
|
|
3375
3514
|
z__namespace.object({
|
|
3376
|
-
|
|
3377
|
-
});
|
|
3378
|
-
z__namespace.object({
|
|
3379
|
-
connection_id: z__namespace.string(),
|
|
3380
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3515
|
+
connection_id: z__namespace.string()
|
|
3381
3516
|
});
|
|
3382
3517
|
z__namespace.object({
|
|
3383
3518
|
connection_id: z__namespace.string(),
|
|
@@ -3387,6 +3522,9 @@ z__namespace.object({
|
|
|
3387
3522
|
name: z__namespace.string().min(1).max(255),
|
|
3388
3523
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3389
3524
|
});
|
|
3525
|
+
z__namespace.object({
|
|
3526
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3527
|
+
});
|
|
3390
3528
|
z__namespace.object({
|
|
3391
3529
|
connection_id: z__namespace.string(),
|
|
3392
3530
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3398,6 +3536,9 @@ z__namespace.object({
|
|
|
3398
3536
|
target_roas: z__namespace.number().gt(0).optional(),
|
|
3399
3537
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3400
3538
|
});
|
|
3539
|
+
z__namespace.object({
|
|
3540
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3541
|
+
});
|
|
3401
3542
|
z__namespace.object({
|
|
3402
3543
|
connection_id: z__namespace.string(),
|
|
3403
3544
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3405,6 +3546,19 @@ z__namespace.object({
|
|
|
3405
3546
|
z__namespace.object({
|
|
3406
3547
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3407
3548
|
});
|
|
3549
|
+
z__namespace.object({
|
|
3550
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3551
|
+
});
|
|
3552
|
+
z__namespace.object({
|
|
3553
|
+
connection_id: z__namespace.string(),
|
|
3554
|
+
id: z__namespace.string().regex(/^\d+$/)
|
|
3555
|
+
});
|
|
3556
|
+
z__namespace.object({
|
|
3557
|
+
dry_run: z__namespace.boolean().optional().default(false)
|
|
3558
|
+
});
|
|
3559
|
+
z__namespace.object({
|
|
3560
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3561
|
+
});
|
|
3408
3562
|
z__namespace.object({
|
|
3409
3563
|
connection_id: z__namespace.string(),
|
|
3410
3564
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3418,6 +3572,9 @@ z__namespace.object({
|
|
|
3418
3572
|
z__namespace.object({
|
|
3419
3573
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3420
3574
|
});
|
|
3575
|
+
z__namespace.object({
|
|
3576
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3577
|
+
});
|
|
3421
3578
|
z__namespace.object({
|
|
3422
3579
|
connection_id: z__namespace.string(),
|
|
3423
3580
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3480,6 +3637,9 @@ z__namespace.object({
|
|
|
3480
3637
|
audience: z__namespace.string().regex(/^customers\/\d+\/audiences\/\d+$/).optional(),
|
|
3481
3638
|
custom_audience: z__namespace.string().regex(/^customers\/\d+\/customAudiences\/\d+$/).optional()
|
|
3482
3639
|
});
|
|
3640
|
+
z__namespace.object({
|
|
3641
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3642
|
+
});
|
|
3483
3643
|
z__namespace.object({
|
|
3484
3644
|
connection_id: z__namespace.string(),
|
|
3485
3645
|
ad_group_id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3487,6 +3647,9 @@ z__namespace.object({
|
|
|
3487
3647
|
z__namespace.object({
|
|
3488
3648
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3489
3649
|
});
|
|
3650
|
+
z__namespace.object({
|
|
3651
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3652
|
+
});
|
|
3490
3653
|
z__namespace.object({
|
|
3491
3654
|
connection_id: z__namespace.string(),
|
|
3492
3655
|
ad_group_id: z__namespace.string().regex(/^\d+$/),
|
|
@@ -3521,6 +3684,9 @@ z__namespace.object({
|
|
|
3521
3684
|
]),
|
|
3522
3685
|
bid_only: z__namespace.boolean()
|
|
3523
3686
|
});
|
|
3687
|
+
z__namespace.object({
|
|
3688
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3689
|
+
});
|
|
3524
3690
|
z__namespace.object({
|
|
3525
3691
|
connection_id: z__namespace.string(),
|
|
3526
3692
|
campaign_id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3555,18 +3721,14 @@ z__namespace.object({
|
|
|
3555
3721
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3556
3722
|
});
|
|
3557
3723
|
z__namespace.object({
|
|
3558
|
-
|
|
3559
|
-
});
|
|
3560
|
-
z__namespace.object({
|
|
3561
|
-
dry_run: z__namespace.boolean().optional().default(false)
|
|
3724
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3562
3725
|
});
|
|
3563
3726
|
z__namespace.object({
|
|
3564
|
-
connection_id: z__namespace.string()
|
|
3565
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3727
|
+
connection_id: z__namespace.string()
|
|
3566
3728
|
});
|
|
3567
3729
|
z__namespace.object({
|
|
3568
3730
|
connection_id: z__namespace.string(),
|
|
3569
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3731
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3570
3732
|
});
|
|
3571
3733
|
z__namespace.object({
|
|
3572
3734
|
ad_group: z__namespace.string().min(1),
|
|
@@ -3599,15 +3761,31 @@ z__namespace.object({
|
|
|
3599
3761
|
status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
|
|
3600
3762
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3601
3763
|
});
|
|
3764
|
+
z__namespace.object({
|
|
3765
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3766
|
+
});
|
|
3602
3767
|
z__namespace.object({
|
|
3603
3768
|
connection_id: z__namespace.string()
|
|
3604
3769
|
});
|
|
3605
3770
|
z__namespace.object({
|
|
3606
3771
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3607
3772
|
});
|
|
3773
|
+
z__namespace.object({
|
|
3774
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3775
|
+
});
|
|
3608
3776
|
z__namespace.object({
|
|
3609
3777
|
connection_id: z__namespace.string(),
|
|
3610
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3778
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3779
|
+
});
|
|
3780
|
+
z__namespace.object({
|
|
3781
|
+
dry_run: z__namespace.boolean().optional().default(false)
|
|
3782
|
+
});
|
|
3783
|
+
z__namespace.object({
|
|
3784
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3785
|
+
});
|
|
3786
|
+
z__namespace.object({
|
|
3787
|
+
connection_id: z__namespace.string(),
|
|
3788
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3611
3789
|
});
|
|
3612
3790
|
z__namespace.object({
|
|
3613
3791
|
id: z__namespace.string(),
|
|
@@ -3618,9 +3796,12 @@ z__namespace.object({
|
|
|
3618
3796
|
z__namespace.object({
|
|
3619
3797
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3620
3798
|
});
|
|
3799
|
+
z__namespace.object({
|
|
3800
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3801
|
+
});
|
|
3621
3802
|
z__namespace.object({
|
|
3622
3803
|
connection_id: z__namespace.string(),
|
|
3623
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3804
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3624
3805
|
});
|
|
3625
3806
|
z__namespace.object({
|
|
3626
3807
|
id: z__namespace.string(),
|
|
@@ -3650,34 +3831,46 @@ z__namespace.object({
|
|
|
3650
3831
|
status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("ENABLED"),
|
|
3651
3832
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3652
3833
|
});
|
|
3834
|
+
z__namespace.object({
|
|
3835
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3836
|
+
});
|
|
3653
3837
|
z__namespace.object({
|
|
3654
3838
|
connection_id: z__namespace.string()
|
|
3655
3839
|
});
|
|
3656
3840
|
z__namespace.object({
|
|
3841
|
+
connection_id: z__namespace.string(),
|
|
3842
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3843
|
+
});
|
|
3844
|
+
z__namespace.object({
|
|
3845
|
+
cpc_bid_micros: z__namespace.int().gt(0).lte(9007199254740991),
|
|
3657
3846
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3658
3847
|
});
|
|
3659
3848
|
z__namespace.object({
|
|
3660
|
-
|
|
3661
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3849
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3662
3850
|
});
|
|
3663
3851
|
z__namespace.object({
|
|
3664
3852
|
connection_id: z__namespace.string(),
|
|
3665
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3853
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3666
3854
|
});
|
|
3667
3855
|
z__namespace.object({
|
|
3668
|
-
cpc_bid_micros: z__namespace.int().gt(0).lte(9007199254740991),
|
|
3669
3856
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3670
3857
|
});
|
|
3858
|
+
z__namespace.object({
|
|
3859
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3860
|
+
});
|
|
3671
3861
|
z__namespace.object({
|
|
3672
3862
|
connection_id: z__namespace.string(),
|
|
3673
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3863
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3674
3864
|
});
|
|
3675
3865
|
z__namespace.object({
|
|
3676
3866
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3677
3867
|
});
|
|
3868
|
+
z__namespace.object({
|
|
3869
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3870
|
+
});
|
|
3678
3871
|
z__namespace.object({
|
|
3679
3872
|
connection_id: z__namespace.string(),
|
|
3680
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3873
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3681
3874
|
});
|
|
3682
3875
|
z__namespace.object({
|
|
3683
3876
|
id: z__namespace.string(),
|
|
@@ -3688,9 +3881,12 @@ z__namespace.object({
|
|
|
3688
3881
|
z__namespace.object({
|
|
3689
3882
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3690
3883
|
});
|
|
3884
|
+
z__namespace.object({
|
|
3885
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3886
|
+
});
|
|
3691
3887
|
z__namespace.object({
|
|
3692
3888
|
connection_id: z__namespace.string(),
|
|
3693
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3889
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3694
3890
|
});
|
|
3695
3891
|
z__namespace.object({
|
|
3696
3892
|
id: z__namespace.string(),
|
|
@@ -3861,6 +4057,9 @@ z__namespace.object({
|
|
|
3861
4057
|
view_through_lookback_window_days: z__namespace.int().gt(0).lte(9007199254740991).optional(),
|
|
3862
4058
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3863
4059
|
});
|
|
4060
|
+
z__namespace.object({
|
|
4061
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
4062
|
+
});
|
|
3864
4063
|
z__namespace.object({
|
|
3865
4064
|
connection_id: z__namespace.string()
|
|
3866
4065
|
});
|
|
@@ -4067,6 +4266,9 @@ z__namespace.object({
|
|
|
4067
4266
|
biddable: z__namespace.boolean(),
|
|
4068
4267
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
4069
4268
|
});
|
|
4269
|
+
z__namespace.object({
|
|
4270
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
4271
|
+
});
|
|
4070
4272
|
z__namespace.object({
|
|
4071
4273
|
connection_id: z__namespace.string()
|
|
4072
4274
|
});
|
|
@@ -4132,6 +4334,9 @@ z__namespace.object({
|
|
|
4132
4334
|
})).min(1).max(2e3),
|
|
4133
4335
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
4134
4336
|
});
|
|
4337
|
+
z__namespace.object({
|
|
4338
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
4339
|
+
});
|
|
4135
4340
|
z__namespace.object({
|
|
4136
4341
|
connection_id: z__namespace.string()
|
|
4137
4342
|
});
|
|
@@ -4150,6 +4355,9 @@ z__namespace.object({
|
|
|
4150
4355
|
media_id: z__namespace.string(),
|
|
4151
4356
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
4152
4357
|
});
|
|
4358
|
+
z__namespace.object({
|
|
4359
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
4360
|
+
});
|
|
4153
4361
|
z__namespace.object({
|
|
4154
4362
|
connection_id: z__namespace.string()
|
|
4155
4363
|
});
|
|
@@ -4378,6 +4586,9 @@ z__namespace.object({
|
|
|
4378
4586
|
"post.completed"
|
|
4379
4587
|
]))
|
|
4380
4588
|
});
|
|
4589
|
+
z__namespace.object({
|
|
4590
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
4591
|
+
});
|
|
4381
4592
|
z__namespace.object({
|
|
4382
4593
|
id: z__namespace.string(),
|
|
4383
4594
|
url: z__namespace.string(),
|
|
@@ -5073,6 +5284,19 @@ var googleGetInsights = (options) => (options.client ?? client).post({
|
|
|
5073
5284
|
...options.headers
|
|
5074
5285
|
}
|
|
5075
5286
|
});
|
|
5287
|
+
var googleGetAdTree = (options) => (options.client ?? client).get({
|
|
5288
|
+
security: [{
|
|
5289
|
+
key: "secretKey",
|
|
5290
|
+
scheme: "bearer",
|
|
5291
|
+
type: "http"
|
|
5292
|
+
}, {
|
|
5293
|
+
key: "frontendToken",
|
|
5294
|
+
scheme: "bearer",
|
|
5295
|
+
type: "http"
|
|
5296
|
+
}],
|
|
5297
|
+
url: "/google/{connection_id}/ads/tree",
|
|
5298
|
+
...options
|
|
5299
|
+
});
|
|
5076
5300
|
var googleRunGaql = (options) => (options.client ?? client).post({
|
|
5077
5301
|
security: [{
|
|
5078
5302
|
key: "secretKey",
|
|
@@ -5103,15 +5327,11 @@ var googleCreateBudget = (options) => (options.client ?? client).post({
|
|
|
5103
5327
|
...options.headers
|
|
5104
5328
|
}
|
|
5105
5329
|
});
|
|
5106
|
-
var
|
|
5330
|
+
var googleEditBudget = (options) => (options.client ?? client).patch({
|
|
5107
5331
|
security: [{
|
|
5108
5332
|
key: "secretKey",
|
|
5109
5333
|
scheme: "bearer",
|
|
5110
5334
|
type: "http"
|
|
5111
|
-
}, {
|
|
5112
|
-
key: "frontendToken",
|
|
5113
|
-
scheme: "bearer",
|
|
5114
|
-
type: "http"
|
|
5115
5335
|
}],
|
|
5116
5336
|
url: "/google/{connection_id}/budgets/{id}",
|
|
5117
5337
|
...options,
|
|
@@ -5120,13 +5340,17 @@ var googleDeleteBudget = (options) => (options.client ?? client).delete({
|
|
|
5120
5340
|
...options.headers
|
|
5121
5341
|
}
|
|
5122
5342
|
});
|
|
5123
|
-
var
|
|
5343
|
+
var googleRemoveBudget = (options) => (options.client ?? client).post({
|
|
5124
5344
|
security: [{
|
|
5125
5345
|
key: "secretKey",
|
|
5126
5346
|
scheme: "bearer",
|
|
5127
5347
|
type: "http"
|
|
5348
|
+
}, {
|
|
5349
|
+
key: "frontendToken",
|
|
5350
|
+
scheme: "bearer",
|
|
5351
|
+
type: "http"
|
|
5128
5352
|
}],
|
|
5129
|
-
url: "/google/{connection_id}/budgets/{id}",
|
|
5353
|
+
url: "/google/{connection_id}/budgets/{id}/remove",
|
|
5130
5354
|
...options,
|
|
5131
5355
|
headers: {
|
|
5132
5356
|
"Content-Type": "application/json",
|
|
@@ -5163,7 +5387,7 @@ var googleCreateCampaign = (options) => (options.client ?? client).post({
|
|
|
5163
5387
|
...options.headers
|
|
5164
5388
|
}
|
|
5165
5389
|
});
|
|
5166
|
-
var
|
|
5390
|
+
var googleGetCampaign = (options) => (options.client ?? client).get({
|
|
5167
5391
|
security: [{
|
|
5168
5392
|
key: "secretKey",
|
|
5169
5393
|
scheme: "bearer",
|
|
@@ -5174,13 +5398,9 @@ var googleDeleteCampaign = (options) => (options.client ?? client).delete({
|
|
|
5174
5398
|
type: "http"
|
|
5175
5399
|
}],
|
|
5176
5400
|
url: "/google/{connection_id}/campaigns/{id}",
|
|
5177
|
-
...options
|
|
5178
|
-
headers: {
|
|
5179
|
-
"Content-Type": "application/json",
|
|
5180
|
-
...options.headers
|
|
5181
|
-
}
|
|
5401
|
+
...options
|
|
5182
5402
|
});
|
|
5183
|
-
var
|
|
5403
|
+
var googleEditCampaign = (options) => (options.client ?? client).patch({
|
|
5184
5404
|
security: [{
|
|
5185
5405
|
key: "secretKey",
|
|
5186
5406
|
scheme: "bearer",
|
|
@@ -5191,9 +5411,13 @@ var googleGetCampaign = (options) => (options.client ?? client).get({
|
|
|
5191
5411
|
type: "http"
|
|
5192
5412
|
}],
|
|
5193
5413
|
url: "/google/{connection_id}/campaigns/{id}",
|
|
5194
|
-
...options
|
|
5414
|
+
...options,
|
|
5415
|
+
headers: {
|
|
5416
|
+
"Content-Type": "application/json",
|
|
5417
|
+
...options.headers
|
|
5418
|
+
}
|
|
5195
5419
|
});
|
|
5196
|
-
var
|
|
5420
|
+
var googleRemoveCampaign = (options) => (options.client ?? client).post({
|
|
5197
5421
|
security: [{
|
|
5198
5422
|
key: "secretKey",
|
|
5199
5423
|
scheme: "bearer",
|
|
@@ -5203,7 +5427,7 @@ var googleEditCampaign = (options) => (options.client ?? client).patch({
|
|
|
5203
5427
|
scheme: "bearer",
|
|
5204
5428
|
type: "http"
|
|
5205
5429
|
}],
|
|
5206
|
-
url: "/google/{connection_id}/campaigns/{id}",
|
|
5430
|
+
url: "/google/{connection_id}/campaigns/{id}/remove",
|
|
5207
5431
|
...options,
|
|
5208
5432
|
headers: {
|
|
5209
5433
|
"Content-Type": "application/json",
|
|
@@ -5287,7 +5511,7 @@ var googleCreateCampaignCriterion = (options) => (options.client ?? client).post
|
|
|
5287
5511
|
...options.headers
|
|
5288
5512
|
}
|
|
5289
5513
|
});
|
|
5290
|
-
var
|
|
5514
|
+
var googleRemoveCampaignCriterion = (options) => (options.client ?? client).post({
|
|
5291
5515
|
security: [{
|
|
5292
5516
|
key: "secretKey",
|
|
5293
5517
|
scheme: "bearer",
|
|
@@ -5297,7 +5521,7 @@ var googleDeleteCampaignCriterion = (options) => (options.client ?? client).dele
|
|
|
5297
5521
|
scheme: "bearer",
|
|
5298
5522
|
type: "http"
|
|
5299
5523
|
}],
|
|
5300
|
-
url: "/google/{connection_id}/campaigns/{campaign_id}/criteria/{criterion_id}",
|
|
5524
|
+
url: "/google/{connection_id}/campaigns/{campaign_id}/criteria/{criterion_id}/remove",
|
|
5301
5525
|
...options,
|
|
5302
5526
|
headers: {
|
|
5303
5527
|
"Content-Type": "application/json",
|
|
@@ -5351,7 +5575,7 @@ var googleCreateAdGroup = (options) => (options.client ?? client).post({
|
|
|
5351
5575
|
...options.headers
|
|
5352
5576
|
}
|
|
5353
5577
|
});
|
|
5354
|
-
var
|
|
5578
|
+
var googleGetAdGroup = (options) => (options.client ?? client).get({
|
|
5355
5579
|
security: [{
|
|
5356
5580
|
key: "secretKey",
|
|
5357
5581
|
scheme: "bearer",
|
|
@@ -5362,13 +5586,9 @@ var googleDeleteAdGroup = (options) => (options.client ?? client).delete({
|
|
|
5362
5586
|
type: "http"
|
|
5363
5587
|
}],
|
|
5364
5588
|
url: "/google/{connection_id}/ad-groups/{id}",
|
|
5365
|
-
...options
|
|
5366
|
-
headers: {
|
|
5367
|
-
"Content-Type": "application/json",
|
|
5368
|
-
...options.headers
|
|
5369
|
-
}
|
|
5589
|
+
...options
|
|
5370
5590
|
});
|
|
5371
|
-
var
|
|
5591
|
+
var googleEditAdGroup = (options) => (options.client ?? client).patch({
|
|
5372
5592
|
security: [{
|
|
5373
5593
|
key: "secretKey",
|
|
5374
5594
|
scheme: "bearer",
|
|
@@ -5379,32 +5599,36 @@ var googleGetAdGroup = (options) => (options.client ?? client).get({
|
|
|
5379
5599
|
type: "http"
|
|
5380
5600
|
}],
|
|
5381
5601
|
url: "/google/{connection_id}/ad-groups/{id}",
|
|
5382
|
-
...options
|
|
5602
|
+
...options,
|
|
5603
|
+
headers: {
|
|
5604
|
+
"Content-Type": "application/json",
|
|
5605
|
+
...options.headers
|
|
5606
|
+
}
|
|
5383
5607
|
});
|
|
5384
|
-
var
|
|
5608
|
+
var googleSetAdGroupBids = (options) => (options.client ?? client).patch({
|
|
5385
5609
|
security: [{
|
|
5386
5610
|
key: "secretKey",
|
|
5387
5611
|
scheme: "bearer",
|
|
5388
5612
|
type: "http"
|
|
5389
|
-
}, {
|
|
5390
|
-
key: "frontendToken",
|
|
5391
|
-
scheme: "bearer",
|
|
5392
|
-
type: "http"
|
|
5393
5613
|
}],
|
|
5394
|
-
url: "/google/{connection_id}/ad-groups/{id}",
|
|
5614
|
+
url: "/google/{connection_id}/ad-groups/{id}/bids",
|
|
5395
5615
|
...options,
|
|
5396
5616
|
headers: {
|
|
5397
5617
|
"Content-Type": "application/json",
|
|
5398
5618
|
...options.headers
|
|
5399
5619
|
}
|
|
5400
5620
|
});
|
|
5401
|
-
var
|
|
5621
|
+
var googleRemoveAdGroup = (options) => (options.client ?? client).post({
|
|
5402
5622
|
security: [{
|
|
5403
5623
|
key: "secretKey",
|
|
5404
5624
|
scheme: "bearer",
|
|
5405
5625
|
type: "http"
|
|
5626
|
+
}, {
|
|
5627
|
+
key: "frontendToken",
|
|
5628
|
+
scheme: "bearer",
|
|
5629
|
+
type: "http"
|
|
5406
5630
|
}],
|
|
5407
|
-
url: "/google/{connection_id}/ad-groups/{id}/
|
|
5631
|
+
url: "/google/{connection_id}/ad-groups/{id}/remove",
|
|
5408
5632
|
...options,
|
|
5409
5633
|
headers: {
|
|
5410
5634
|
"Content-Type": "application/json",
|
|
@@ -5475,7 +5699,7 @@ var googleCreateAdGroupCriterion = (options) => (options.client ?? client).post(
|
|
|
5475
5699
|
...options.headers
|
|
5476
5700
|
}
|
|
5477
5701
|
});
|
|
5478
|
-
var
|
|
5702
|
+
var googleRemoveAdGroupCriterion = (options) => (options.client ?? client).post({
|
|
5479
5703
|
security: [{
|
|
5480
5704
|
key: "secretKey",
|
|
5481
5705
|
scheme: "bearer",
|
|
@@ -5485,7 +5709,7 @@ var googleDeleteAdGroupCriterion = (options) => (options.client ?? client).delet
|
|
|
5485
5709
|
scheme: "bearer",
|
|
5486
5710
|
type: "http"
|
|
5487
5711
|
}],
|
|
5488
|
-
url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria/{criterion_id}",
|
|
5712
|
+
url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria/{criterion_id}/remove",
|
|
5489
5713
|
...options,
|
|
5490
5714
|
headers: {
|
|
5491
5715
|
"Content-Type": "application/json",
|
|
@@ -5552,7 +5776,7 @@ var googleCreateAd = (options) => (options.client ?? client).post({
|
|
|
5552
5776
|
...options.headers
|
|
5553
5777
|
}
|
|
5554
5778
|
});
|
|
5555
|
-
var
|
|
5779
|
+
var googleGetAd = (options) => (options.client ?? client).get({
|
|
5556
5780
|
security: [{
|
|
5557
5781
|
key: "secretKey",
|
|
5558
5782
|
scheme: "bearer",
|
|
@@ -5563,13 +5787,9 @@ var googleDeleteAd = (options) => (options.client ?? client).delete({
|
|
|
5563
5787
|
type: "http"
|
|
5564
5788
|
}],
|
|
5565
5789
|
url: "/google/{connection_id}/ads/{id}",
|
|
5566
|
-
...options
|
|
5567
|
-
headers: {
|
|
5568
|
-
"Content-Type": "application/json",
|
|
5569
|
-
...options.headers
|
|
5570
|
-
}
|
|
5790
|
+
...options
|
|
5571
5791
|
});
|
|
5572
|
-
var
|
|
5792
|
+
var googleCreateDisplayAd = (options) => (options.client ?? client).post({
|
|
5573
5793
|
security: [{
|
|
5574
5794
|
key: "secretKey",
|
|
5575
5795
|
scheme: "bearer",
|
|
@@ -5579,10 +5799,14 @@ var googleGetAd = (options) => (options.client ?? client).get({
|
|
|
5579
5799
|
scheme: "bearer",
|
|
5580
5800
|
type: "http"
|
|
5581
5801
|
}],
|
|
5582
|
-
url: "/google/{connection_id}/ads
|
|
5583
|
-
...options
|
|
5802
|
+
url: "/google/{connection_id}/display-ads",
|
|
5803
|
+
...options,
|
|
5804
|
+
headers: {
|
|
5805
|
+
"Content-Type": "application/json",
|
|
5806
|
+
...options.headers
|
|
5807
|
+
}
|
|
5584
5808
|
});
|
|
5585
|
-
var
|
|
5809
|
+
var googleRemoveAd = (options) => (options.client ?? client).post({
|
|
5586
5810
|
security: [{
|
|
5587
5811
|
key: "secretKey",
|
|
5588
5812
|
scheme: "bearer",
|
|
@@ -5592,7 +5816,7 @@ var googleCreateDisplayAd = (options) => (options.client ?? client).post({
|
|
|
5592
5816
|
scheme: "bearer",
|
|
5593
5817
|
type: "http"
|
|
5594
5818
|
}],
|
|
5595
|
-
url: "/google/{connection_id}/
|
|
5819
|
+
url: "/google/{connection_id}/ads/{id}/remove",
|
|
5596
5820
|
...options,
|
|
5597
5821
|
headers: {
|
|
5598
5822
|
"Content-Type": "application/json",
|
|
@@ -5663,7 +5887,7 @@ var googleCreateKeyword = (options) => (options.client ?? client).post({
|
|
|
5663
5887
|
...options.headers
|
|
5664
5888
|
}
|
|
5665
5889
|
});
|
|
5666
|
-
var
|
|
5890
|
+
var googleGetKeyword = (options) => (options.client ?? client).get({
|
|
5667
5891
|
security: [{
|
|
5668
5892
|
key: "secretKey",
|
|
5669
5893
|
scheme: "bearer",
|
|
@@ -5674,13 +5898,22 @@ var googleDeleteKeyword = (options) => (options.client ?? client).delete({
|
|
|
5674
5898
|
type: "http"
|
|
5675
5899
|
}],
|
|
5676
5900
|
url: "/google/{connection_id}/keywords/{id}",
|
|
5901
|
+
...options
|
|
5902
|
+
});
|
|
5903
|
+
var googleSetKeywordBid = (options) => (options.client ?? client).patch({
|
|
5904
|
+
security: [{
|
|
5905
|
+
key: "secretKey",
|
|
5906
|
+
scheme: "bearer",
|
|
5907
|
+
type: "http"
|
|
5908
|
+
}],
|
|
5909
|
+
url: "/google/{connection_id}/keywords/{id}/bid",
|
|
5677
5910
|
...options,
|
|
5678
5911
|
headers: {
|
|
5679
5912
|
"Content-Type": "application/json",
|
|
5680
5913
|
...options.headers
|
|
5681
5914
|
}
|
|
5682
5915
|
});
|
|
5683
|
-
var
|
|
5916
|
+
var googleRemoveKeyword = (options) => (options.client ?? client).post({
|
|
5684
5917
|
security: [{
|
|
5685
5918
|
key: "secretKey",
|
|
5686
5919
|
scheme: "bearer",
|
|
@@ -5690,16 +5923,7 @@ var googleGetKeyword = (options) => (options.client ?? client).get({
|
|
|
5690
5923
|
scheme: "bearer",
|
|
5691
5924
|
type: "http"
|
|
5692
5925
|
}],
|
|
5693
|
-
url: "/google/{connection_id}/keywords/{id}",
|
|
5694
|
-
...options
|
|
5695
|
-
});
|
|
5696
|
-
var googleSetKeywordBid = (options) => (options.client ?? client).patch({
|
|
5697
|
-
security: [{
|
|
5698
|
-
key: "secretKey",
|
|
5699
|
-
scheme: "bearer",
|
|
5700
|
-
type: "http"
|
|
5701
|
-
}],
|
|
5702
|
-
url: "/google/{connection_id}/keywords/{id}/bid",
|
|
5926
|
+
url: "/google/{connection_id}/keywords/{id}/remove",
|
|
5703
5927
|
...options,
|
|
5704
5928
|
headers: {
|
|
5705
5929
|
"Content-Type": "application/json",
|
|
@@ -6128,6 +6352,28 @@ function xPollDurationLabel(durationMinutes) {
|
|
|
6128
6352
|
return plural(durationMinutes, "minute");
|
|
6129
6353
|
}
|
|
6130
6354
|
|
|
6355
|
+
// src/ads-tree.ts
|
|
6356
|
+
function groupAdTree(nodes) {
|
|
6357
|
+
const byId = /* @__PURE__ */ new Map();
|
|
6358
|
+
for (const node of nodes) {
|
|
6359
|
+
byId.set(node.id, { ...node, children: [] });
|
|
6360
|
+
}
|
|
6361
|
+
const roots = [];
|
|
6362
|
+
for (const node of nodes) {
|
|
6363
|
+
const treeNode = byId.get(node.id);
|
|
6364
|
+
if (treeNode === void 0) {
|
|
6365
|
+
continue;
|
|
6366
|
+
}
|
|
6367
|
+
const parent = node.parent_id === null ? void 0 : byId.get(node.parent_id);
|
|
6368
|
+
if (parent === void 0) {
|
|
6369
|
+
roots.push(treeNode);
|
|
6370
|
+
} else {
|
|
6371
|
+
parent.children.push(treeNode);
|
|
6372
|
+
}
|
|
6373
|
+
}
|
|
6374
|
+
return roots;
|
|
6375
|
+
}
|
|
6376
|
+
|
|
6131
6377
|
// src/tiktok-options.ts
|
|
6132
6378
|
var TIKTOK_CAPTION_MAX = { video: 2200, photo: 4e3 };
|
|
6133
6379
|
function captionMaxFor(postType) {
|
|
@@ -6473,13 +6719,6 @@ exports.googleCreateCampaignCriterion = googleCreateCampaignCriterion;
|
|
|
6473
6719
|
exports.googleCreateConversionAction = googleCreateConversionAction;
|
|
6474
6720
|
exports.googleCreateDisplayAd = googleCreateDisplayAd;
|
|
6475
6721
|
exports.googleCreateKeyword = googleCreateKeyword;
|
|
6476
|
-
exports.googleDeleteAd = googleDeleteAd;
|
|
6477
|
-
exports.googleDeleteAdGroup = googleDeleteAdGroup;
|
|
6478
|
-
exports.googleDeleteAdGroupCriterion = googleDeleteAdGroupCriterion;
|
|
6479
|
-
exports.googleDeleteBudget = googleDeleteBudget;
|
|
6480
|
-
exports.googleDeleteCampaign = googleDeleteCampaign;
|
|
6481
|
-
exports.googleDeleteCampaignCriterion = googleDeleteCampaignCriterion;
|
|
6482
|
-
exports.googleDeleteKeyword = googleDeleteKeyword;
|
|
6483
6722
|
exports.googleEditAdGroup = googleEditAdGroup;
|
|
6484
6723
|
exports.googleEditBudget = googleEditBudget;
|
|
6485
6724
|
exports.googleEditCampaign = googleEditCampaign;
|
|
@@ -6490,6 +6729,7 @@ exports.googleEnableKeyword = googleEnableKeyword;
|
|
|
6490
6729
|
exports.googleGetAccount = googleGetAccount;
|
|
6491
6730
|
exports.googleGetAd = googleGetAd;
|
|
6492
6731
|
exports.googleGetAdGroup = googleGetAdGroup;
|
|
6732
|
+
exports.googleGetAdTree = googleGetAdTree;
|
|
6493
6733
|
exports.googleGetCampaign = googleGetCampaign;
|
|
6494
6734
|
exports.googleGetConversionAction = googleGetConversionAction;
|
|
6495
6735
|
exports.googleGetInsights = googleGetInsights;
|
|
@@ -6507,6 +6747,13 @@ exports.googlePauseAd = googlePauseAd;
|
|
|
6507
6747
|
exports.googlePauseAdGroup = googlePauseAdGroup;
|
|
6508
6748
|
exports.googlePauseCampaign = googlePauseCampaign;
|
|
6509
6749
|
exports.googlePauseKeyword = googlePauseKeyword;
|
|
6750
|
+
exports.googleRemoveAd = googleRemoveAd;
|
|
6751
|
+
exports.googleRemoveAdGroup = googleRemoveAdGroup;
|
|
6752
|
+
exports.googleRemoveAdGroupCriterion = googleRemoveAdGroupCriterion;
|
|
6753
|
+
exports.googleRemoveBudget = googleRemoveBudget;
|
|
6754
|
+
exports.googleRemoveCampaign = googleRemoveCampaign;
|
|
6755
|
+
exports.googleRemoveCampaignCriterion = googleRemoveCampaignCriterion;
|
|
6756
|
+
exports.googleRemoveKeyword = googleRemoveKeyword;
|
|
6510
6757
|
exports.googleRunGaql = googleRunGaql;
|
|
6511
6758
|
exports.googleSearchGeoTargets = googleSearchGeoTargets;
|
|
6512
6759
|
exports.googleSetAdGroupBids = googleSetAdGroupBids;
|
|
@@ -6516,6 +6763,7 @@ exports.googleSetConversionGoal = googleSetConversionGoal;
|
|
|
6516
6763
|
exports.googleSetKeywordBid = googleSetKeywordBid;
|
|
6517
6764
|
exports.googleUploadConversions = googleUploadConversions;
|
|
6518
6765
|
exports.googleUploadImageAsset = googleUploadImageAsset;
|
|
6766
|
+
exports.groupAdTree = groupAdTree;
|
|
6519
6767
|
exports.interactionRows = interactionRows;
|
|
6520
6768
|
exports.interactionValueKey = interactionValueKey;
|
|
6521
6769
|
exports.isInteractionForbidden = isInteractionForbidden;
|