@postrun/js 2.19.0 → 2.21.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-EBCBBXLX.js → chunk-B3QMJNLV.js} +305 -62
- package/dist/chunk-B3QMJNLV.js.map +1 -0
- package/dist/{chunk-UAOUZR6K.js → chunk-Z24YOZBU.js} +77 -64
- package/dist/chunk-Z24YOZBU.js.map +1 -0
- package/dist/index.cjs +382 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +86 -57
- package/dist/index.d.ts +86 -57
- 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 +8772 -631
- package/dist/query.d.ts +8772 -631
- package/dist/query.js +147 -121
- package/dist/query.js.map +1 -1
- package/dist/schemas/index.cjs +374 -80
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +498 -86
- package/dist/schemas/index.d.ts +498 -86
- package/dist/schemas/index.js +1 -1
- package/dist/server.cjs +278 -36
- 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-DebHd_dS.d.cts} +8682 -562
- package/dist/{types.gen-D7d6RVzh.d.ts → types.gen-DebHd_dS.d.ts} +8682 -562
- 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",
|
|
@@ -1853,6 +1853,11 @@ var zGoogleAdsAudience = z__namespace.union([
|
|
|
1853
1853
|
])
|
|
1854
1854
|
})
|
|
1855
1855
|
]);
|
|
1856
|
+
var zGoogleAdsReadStatusFilter = z__namespace.array(z__namespace.enum([
|
|
1857
|
+
"ENABLED",
|
|
1858
|
+
"PAUSED",
|
|
1859
|
+
"REMOVED"
|
|
1860
|
+
])).min(1);
|
|
1856
1861
|
var zGoogleAdsCampaignCriterion = z__namespace.union([
|
|
1857
1862
|
z__namespace.object({
|
|
1858
1863
|
type: z__namespace.literal("LOCATION"),
|
|
@@ -2221,8 +2226,20 @@ var zGoogleAdsInsightsRow = z__namespace.object({
|
|
|
2221
2226
|
id: z__namespace.string().min(1),
|
|
2222
2227
|
name: z__namespace.string().nullable(),
|
|
2223
2228
|
parent_id: z__namespace.string().min(1).nullable(),
|
|
2224
|
-
metrics: z__namespace.
|
|
2225
|
-
|
|
2229
|
+
metrics: z__namespace.object({
|
|
2230
|
+
impressions: z__namespace.number().nullish(),
|
|
2231
|
+
clicks: z__namespace.number().nullish(),
|
|
2232
|
+
ctr: z__namespace.number().nullish(),
|
|
2233
|
+
average_cpc: z__namespace.number().nullish(),
|
|
2234
|
+
cost_micros: z__namespace.number().nullish(),
|
|
2235
|
+
conversions: z__namespace.number().nullish(),
|
|
2236
|
+
conversions_value: z__namespace.number().nullish(),
|
|
2237
|
+
cost_per_conversion: z__namespace.number().nullish()
|
|
2238
|
+
}),
|
|
2239
|
+
segments: z__namespace.object({
|
|
2240
|
+
date: z__namespace.string().optional(),
|
|
2241
|
+
device: z__namespace.string().optional()
|
|
2242
|
+
}).optional()
|
|
2226
2243
|
});
|
|
2227
2244
|
z__namespace.object({
|
|
2228
2245
|
object: z__namespace.literal("list"),
|
|
@@ -2253,6 +2270,64 @@ z__namespace.object({
|
|
|
2253
2270
|
since: z__namespace.iso.date(),
|
|
2254
2271
|
until: z__namespace.iso.date()
|
|
2255
2272
|
});
|
|
2273
|
+
var zGoogleAdTreeNode = z__namespace.object({
|
|
2274
|
+
level: z__namespace.enum([
|
|
2275
|
+
"campaign",
|
|
2276
|
+
"ad_group",
|
|
2277
|
+
"ad",
|
|
2278
|
+
"keyword"
|
|
2279
|
+
]),
|
|
2280
|
+
id: z__namespace.string().min(1),
|
|
2281
|
+
name: z__namespace.string().nullable(),
|
|
2282
|
+
parent_id: z__namespace.string().min(1).nullable(),
|
|
2283
|
+
status: z__namespace.enum([
|
|
2284
|
+
"UNSPECIFIED",
|
|
2285
|
+
"UNKNOWN",
|
|
2286
|
+
"ENABLED",
|
|
2287
|
+
"PAUSED",
|
|
2288
|
+
"REMOVED"
|
|
2289
|
+
]),
|
|
2290
|
+
type: z__namespace.enum([
|
|
2291
|
+
"UNSPECIFIED",
|
|
2292
|
+
"UNKNOWN",
|
|
2293
|
+
"SEARCH",
|
|
2294
|
+
"DISPLAY",
|
|
2295
|
+
"SHOPPING",
|
|
2296
|
+
"HOTEL",
|
|
2297
|
+
"VIDEO",
|
|
2298
|
+
"MULTI_CHANNEL",
|
|
2299
|
+
"LOCAL",
|
|
2300
|
+
"SMART",
|
|
2301
|
+
"PERFORMANCE_MAX",
|
|
2302
|
+
"LOCAL_SERVICES",
|
|
2303
|
+
"TRAVEL",
|
|
2304
|
+
"DEMAND_GEN"
|
|
2305
|
+
]).nullable(),
|
|
2306
|
+
child_kind: z__namespace.enum([
|
|
2307
|
+
"ad_group",
|
|
2308
|
+
"asset_group",
|
|
2309
|
+
"none"
|
|
2310
|
+
]),
|
|
2311
|
+
expandable: z__namespace.boolean(),
|
|
2312
|
+
budget_micros: z__namespace.number().nullable(),
|
|
2313
|
+
metrics: z__namespace.object({
|
|
2314
|
+
impressions: z__namespace.number().nullish(),
|
|
2315
|
+
clicks: z__namespace.number().nullish(),
|
|
2316
|
+
ctr: z__namespace.number().nullish(),
|
|
2317
|
+
average_cpc: z__namespace.number().nullish(),
|
|
2318
|
+
cost_micros: z__namespace.number().nullish(),
|
|
2319
|
+
conversions: z__namespace.number().nullish(),
|
|
2320
|
+
conversions_value: z__namespace.number().nullish(),
|
|
2321
|
+
cost_per_conversion: z__namespace.number().nullish()
|
|
2322
|
+
}),
|
|
2323
|
+
cost_micros: z__namespace.number(),
|
|
2324
|
+
cost: z__namespace.number()
|
|
2325
|
+
});
|
|
2326
|
+
z__namespace.object({
|
|
2327
|
+
object: z__namespace.literal("list"),
|
|
2328
|
+
data: z__namespace.array(zGoogleAdTreeNode)
|
|
2329
|
+
});
|
|
2330
|
+
z__namespace.string().min(1).max(255);
|
|
2256
2331
|
z__namespace.object({
|
|
2257
2332
|
limit: z__namespace.int().gte(1).lte(100).optional().default(20),
|
|
2258
2333
|
offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0),
|
|
@@ -2281,6 +2356,9 @@ z__namespace.object({
|
|
|
2281
2356
|
z__namespace.boolean()
|
|
2282
2357
|
])).optional()
|
|
2283
2358
|
});
|
|
2359
|
+
z__namespace.object({
|
|
2360
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2361
|
+
});
|
|
2284
2362
|
z__namespace.object({
|
|
2285
2363
|
id: z__namespace.string()
|
|
2286
2364
|
});
|
|
@@ -2323,6 +2401,9 @@ z__namespace.object({
|
|
|
2323
2401
|
offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
2324
2402
|
has_more: z__namespace.boolean()
|
|
2325
2403
|
});
|
|
2404
|
+
z__namespace.object({
|
|
2405
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2406
|
+
});
|
|
2326
2407
|
z__namespace.object({
|
|
2327
2408
|
id: z__namespace.string()
|
|
2328
2409
|
});
|
|
@@ -2337,6 +2418,9 @@ z__namespace.object({
|
|
|
2337
2418
|
z__namespace.object({
|
|
2338
2419
|
external_account_id: z__namespace.string().min(1)
|
|
2339
2420
|
});
|
|
2421
|
+
z__namespace.object({
|
|
2422
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2423
|
+
});
|
|
2340
2424
|
z__namespace.object({
|
|
2341
2425
|
id: z__namespace.string()
|
|
2342
2426
|
});
|
|
@@ -2358,6 +2442,9 @@ z__namespace.object({
|
|
|
2358
2442
|
"tiktok"
|
|
2359
2443
|
])
|
|
2360
2444
|
});
|
|
2445
|
+
z__namespace.object({
|
|
2446
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2447
|
+
});
|
|
2361
2448
|
z__namespace.object({
|
|
2362
2449
|
id: z__namespace.string()
|
|
2363
2450
|
});
|
|
@@ -2402,6 +2489,9 @@ z__namespace.object({
|
|
|
2402
2489
|
z__namespace.boolean()
|
|
2403
2490
|
])).optional()
|
|
2404
2491
|
});
|
|
2492
|
+
z__namespace.object({
|
|
2493
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2494
|
+
});
|
|
2405
2495
|
z__namespace.object({
|
|
2406
2496
|
id: z__namespace.string(),
|
|
2407
2497
|
object: z__namespace.literal("media"),
|
|
@@ -2556,6 +2646,9 @@ z__namespace.object({
|
|
|
2556
2646
|
expires_at: z__namespace.string()
|
|
2557
2647
|
}).nullable()
|
|
2558
2648
|
});
|
|
2649
|
+
z__namespace.object({
|
|
2650
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2651
|
+
});
|
|
2559
2652
|
z__namespace.object({
|
|
2560
2653
|
id: z__namespace.string()
|
|
2561
2654
|
});
|
|
@@ -2584,6 +2677,9 @@ z__namespace.object({
|
|
|
2584
2677
|
"google_ads"
|
|
2585
2678
|
])).min(1).optional()
|
|
2586
2679
|
});
|
|
2680
|
+
z__namespace.object({
|
|
2681
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2682
|
+
});
|
|
2587
2683
|
z__namespace.object({
|
|
2588
2684
|
id: z__namespace.string()
|
|
2589
2685
|
});
|
|
@@ -2641,6 +2737,9 @@ z__namespace.object({
|
|
|
2641
2737
|
offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
2642
2738
|
has_more: z__namespace.boolean()
|
|
2643
2739
|
});
|
|
2740
|
+
z__namespace.object({
|
|
2741
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2742
|
+
});
|
|
2644
2743
|
z__namespace.object({
|
|
2645
2744
|
id: z__namespace.string(),
|
|
2646
2745
|
object: z__namespace.literal("post"),
|
|
@@ -2697,6 +2796,9 @@ z__namespace.object({
|
|
|
2697
2796
|
dry_run: z__namespace.boolean().optional().default(false),
|
|
2698
2797
|
variants: z__namespace.array(zPostVariantInput).min(1).optional()
|
|
2699
2798
|
});
|
|
2799
|
+
z__namespace.object({
|
|
2800
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
2801
|
+
});
|
|
2700
2802
|
z__namespace.object({
|
|
2701
2803
|
id: z__namespace.string()
|
|
2702
2804
|
});
|
|
@@ -2860,6 +2962,22 @@ z__namespace.object({
|
|
|
2860
2962
|
hint: z__namespace.string().optional(),
|
|
2861
2963
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
2862
2964
|
got: z__namespace.string().optional(),
|
|
2965
|
+
source: z__namespace.object({
|
|
2966
|
+
platform: z__namespace.enum([
|
|
2967
|
+
"google",
|
|
2968
|
+
"meta",
|
|
2969
|
+
"x",
|
|
2970
|
+
"linkedin",
|
|
2971
|
+
"instagram",
|
|
2972
|
+
"facebook",
|
|
2973
|
+
"tiktok",
|
|
2974
|
+
"youtube"
|
|
2975
|
+
]),
|
|
2976
|
+
platform_code: z__namespace.string().optional(),
|
|
2977
|
+
field: z__namespace.string().optional(),
|
|
2978
|
+
value: z__namespace.string().optional(),
|
|
2979
|
+
platform_request_id: z__namespace.string().optional()
|
|
2980
|
+
}).optional(),
|
|
2863
2981
|
variant_index: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
2864
2982
|
path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()])),
|
|
2865
2983
|
platform: zPostPlatform.optional(),
|
|
@@ -3095,6 +3213,21 @@ z__namespace.object({
|
|
|
3095
3213
|
z__namespace.object({
|
|
3096
3214
|
connection_id: z__namespace.string()
|
|
3097
3215
|
});
|
|
3216
|
+
z__namespace.object({
|
|
3217
|
+
connection_id: z__namespace.string()
|
|
3218
|
+
});
|
|
3219
|
+
z__namespace.object({
|
|
3220
|
+
campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
|
|
3221
|
+
status: zGoogleAdsReadStatusFilter.optional(),
|
|
3222
|
+
metrics: z__namespace.array(zGoogleAdsInsightMetric).min(1).optional().default([
|
|
3223
|
+
"impressions",
|
|
3224
|
+
"clicks",
|
|
3225
|
+
"cost_micros",
|
|
3226
|
+
"conversions"
|
|
3227
|
+
]),
|
|
3228
|
+
since: z__namespace.iso.date(),
|
|
3229
|
+
until: z__namespace.iso.date()
|
|
3230
|
+
});
|
|
3098
3231
|
z__namespace.object({
|
|
3099
3232
|
query: z__namespace.string().min(1).max(1e4)
|
|
3100
3233
|
});
|
|
@@ -3110,20 +3243,29 @@ z__namespace.object({
|
|
|
3110
3243
|
amount_micros: z__namespace.int().gt(0).lte(9007199254740991),
|
|
3111
3244
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3112
3245
|
});
|
|
3246
|
+
z__namespace.object({
|
|
3247
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3248
|
+
});
|
|
3113
3249
|
z__namespace.object({
|
|
3114
3250
|
connection_id: z__namespace.string()
|
|
3115
3251
|
});
|
|
3116
3252
|
z__namespace.object({
|
|
3253
|
+
amount_micros: z__namespace.int().gt(0).lte(9007199254740991),
|
|
3117
3254
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3118
3255
|
});
|
|
3256
|
+
z__namespace.object({
|
|
3257
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3258
|
+
});
|
|
3119
3259
|
z__namespace.object({
|
|
3120
3260
|
connection_id: z__namespace.string(),
|
|
3121
3261
|
id: z__namespace.string().regex(/^\d+$/)
|
|
3122
3262
|
});
|
|
3123
3263
|
z__namespace.object({
|
|
3124
|
-
amount_micros: z__namespace.int().gt(0).lte(9007199254740991),
|
|
3125
3264
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3126
3265
|
});
|
|
3266
|
+
z__namespace.object({
|
|
3267
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3268
|
+
});
|
|
3127
3269
|
z__namespace.object({
|
|
3128
3270
|
connection_id: z__namespace.string(),
|
|
3129
3271
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3198,17 +3340,14 @@ z__namespace.object({
|
|
|
3198
3340
|
"target_spend"
|
|
3199
3341
|
]),
|
|
3200
3342
|
status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
|
|
3343
|
+
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
3344
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3202
3345
|
});
|
|
3203
3346
|
z__namespace.object({
|
|
3204
|
-
|
|
3205
|
-
});
|
|
3206
|
-
z__namespace.object({
|
|
3207
|
-
dry_run: z__namespace.boolean().optional().default(false)
|
|
3347
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3208
3348
|
});
|
|
3209
3349
|
z__namespace.object({
|
|
3210
|
-
connection_id: z__namespace.string()
|
|
3211
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3350
|
+
connection_id: z__namespace.string()
|
|
3212
3351
|
});
|
|
3213
3352
|
z__namespace.object({
|
|
3214
3353
|
connection_id: z__namespace.string(),
|
|
@@ -3272,6 +3411,9 @@ z__namespace.object({
|
|
|
3272
3411
|
name: z__namespace.string().min(1).max(255),
|
|
3273
3412
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3274
3413
|
});
|
|
3414
|
+
z__namespace.object({
|
|
3415
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3416
|
+
});
|
|
3275
3417
|
z__namespace.object({
|
|
3276
3418
|
connection_id: z__namespace.string(),
|
|
3277
3419
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3279,6 +3421,19 @@ z__namespace.object({
|
|
|
3279
3421
|
z__namespace.object({
|
|
3280
3422
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3281
3423
|
});
|
|
3424
|
+
z__namespace.object({
|
|
3425
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3426
|
+
});
|
|
3427
|
+
z__namespace.object({
|
|
3428
|
+
connection_id: z__namespace.string(),
|
|
3429
|
+
id: z__namespace.string().regex(/^\d+$/)
|
|
3430
|
+
});
|
|
3431
|
+
z__namespace.object({
|
|
3432
|
+
dry_run: z__namespace.boolean().optional().default(false)
|
|
3433
|
+
});
|
|
3434
|
+
z__namespace.object({
|
|
3435
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3436
|
+
});
|
|
3282
3437
|
z__namespace.object({
|
|
3283
3438
|
connection_id: z__namespace.string(),
|
|
3284
3439
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3292,6 +3447,9 @@ z__namespace.object({
|
|
|
3292
3447
|
z__namespace.object({
|
|
3293
3448
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3294
3449
|
});
|
|
3450
|
+
z__namespace.object({
|
|
3451
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3452
|
+
});
|
|
3295
3453
|
z__namespace.object({
|
|
3296
3454
|
connection_id: z__namespace.string(),
|
|
3297
3455
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3331,6 +3489,9 @@ z__namespace.object({
|
|
|
3331
3489
|
negative: z__namespace.boolean().optional().default(false),
|
|
3332
3490
|
language_constant: z__namespace.string().min(1).optional()
|
|
3333
3491
|
});
|
|
3492
|
+
z__namespace.object({
|
|
3493
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3494
|
+
});
|
|
3334
3495
|
z__namespace.object({
|
|
3335
3496
|
connection_id: z__namespace.string(),
|
|
3336
3497
|
campaign_id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3338,6 +3499,9 @@ z__namespace.object({
|
|
|
3338
3499
|
z__namespace.object({
|
|
3339
3500
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3340
3501
|
});
|
|
3502
|
+
z__namespace.object({
|
|
3503
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3504
|
+
});
|
|
3341
3505
|
z__namespace.object({
|
|
3342
3506
|
connection_id: z__namespace.string(),
|
|
3343
3507
|
campaign_id: z__namespace.string().regex(/^\d+$/),
|
|
@@ -3348,6 +3512,9 @@ z__namespace.object({
|
|
|
3348
3512
|
positive_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional(),
|
|
3349
3513
|
negative_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional()
|
|
3350
3514
|
});
|
|
3515
|
+
z__namespace.object({
|
|
3516
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3517
|
+
});
|
|
3351
3518
|
z__namespace.object({
|
|
3352
3519
|
connection_id: z__namespace.string(),
|
|
3353
3520
|
campaign_id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3356,7 +3523,8 @@ z__namespace.object({
|
|
|
3356
3523
|
connection_id: z__namespace.string()
|
|
3357
3524
|
});
|
|
3358
3525
|
z__namespace.object({
|
|
3359
|
-
campaign_id: z__namespace.string().regex(/^\d+$/).optional()
|
|
3526
|
+
campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
|
|
3527
|
+
status: zGoogleAdsReadStatusFilter.optional()
|
|
3360
3528
|
});
|
|
3361
3529
|
z__namespace.object({
|
|
3362
3530
|
object: z__namespace.literal("list"),
|
|
@@ -3370,14 +3538,10 @@ z__namespace.object({
|
|
|
3370
3538
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3371
3539
|
});
|
|
3372
3540
|
z__namespace.object({
|
|
3373
|
-
|
|
3541
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3374
3542
|
});
|
|
3375
3543
|
z__namespace.object({
|
|
3376
|
-
|
|
3377
|
-
});
|
|
3378
|
-
z__namespace.object({
|
|
3379
|
-
connection_id: z__namespace.string(),
|
|
3380
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3544
|
+
connection_id: z__namespace.string()
|
|
3381
3545
|
});
|
|
3382
3546
|
z__namespace.object({
|
|
3383
3547
|
connection_id: z__namespace.string(),
|
|
@@ -3387,6 +3551,9 @@ z__namespace.object({
|
|
|
3387
3551
|
name: z__namespace.string().min(1).max(255),
|
|
3388
3552
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3389
3553
|
});
|
|
3554
|
+
z__namespace.object({
|
|
3555
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3556
|
+
});
|
|
3390
3557
|
z__namespace.object({
|
|
3391
3558
|
connection_id: z__namespace.string(),
|
|
3392
3559
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3398,6 +3565,19 @@ z__namespace.object({
|
|
|
3398
3565
|
target_roas: z__namespace.number().gt(0).optional(),
|
|
3399
3566
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3400
3567
|
});
|
|
3568
|
+
z__namespace.object({
|
|
3569
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3570
|
+
});
|
|
3571
|
+
z__namespace.object({
|
|
3572
|
+
connection_id: z__namespace.string(),
|
|
3573
|
+
id: z__namespace.string().regex(/^\d+$/)
|
|
3574
|
+
});
|
|
3575
|
+
z__namespace.object({
|
|
3576
|
+
dry_run: z__namespace.boolean().optional().default(false)
|
|
3577
|
+
});
|
|
3578
|
+
z__namespace.object({
|
|
3579
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3580
|
+
});
|
|
3401
3581
|
z__namespace.object({
|
|
3402
3582
|
connection_id: z__namespace.string(),
|
|
3403
3583
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3405,6 +3585,9 @@ z__namespace.object({
|
|
|
3405
3585
|
z__namespace.object({
|
|
3406
3586
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3407
3587
|
});
|
|
3588
|
+
z__namespace.object({
|
|
3589
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3590
|
+
});
|
|
3408
3591
|
z__namespace.object({
|
|
3409
3592
|
connection_id: z__namespace.string(),
|
|
3410
3593
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3418,6 +3601,9 @@ z__namespace.object({
|
|
|
3418
3601
|
z__namespace.object({
|
|
3419
3602
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3420
3603
|
});
|
|
3604
|
+
z__namespace.object({
|
|
3605
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3606
|
+
});
|
|
3421
3607
|
z__namespace.object({
|
|
3422
3608
|
connection_id: z__namespace.string(),
|
|
3423
3609
|
id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3480,6 +3666,9 @@ z__namespace.object({
|
|
|
3480
3666
|
audience: z__namespace.string().regex(/^customers\/\d+\/audiences\/\d+$/).optional(),
|
|
3481
3667
|
custom_audience: z__namespace.string().regex(/^customers\/\d+\/customAudiences\/\d+$/).optional()
|
|
3482
3668
|
});
|
|
3669
|
+
z__namespace.object({
|
|
3670
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3671
|
+
});
|
|
3483
3672
|
z__namespace.object({
|
|
3484
3673
|
connection_id: z__namespace.string(),
|
|
3485
3674
|
ad_group_id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3487,6 +3676,9 @@ z__namespace.object({
|
|
|
3487
3676
|
z__namespace.object({
|
|
3488
3677
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3489
3678
|
});
|
|
3679
|
+
z__namespace.object({
|
|
3680
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3681
|
+
});
|
|
3490
3682
|
z__namespace.object({
|
|
3491
3683
|
connection_id: z__namespace.string(),
|
|
3492
3684
|
ad_group_id: z__namespace.string().regex(/^\d+$/),
|
|
@@ -3521,6 +3713,9 @@ z__namespace.object({
|
|
|
3521
3713
|
]),
|
|
3522
3714
|
bid_only: z__namespace.boolean()
|
|
3523
3715
|
});
|
|
3716
|
+
z__namespace.object({
|
|
3717
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3718
|
+
});
|
|
3524
3719
|
z__namespace.object({
|
|
3525
3720
|
connection_id: z__namespace.string(),
|
|
3526
3721
|
campaign_id: z__namespace.string().regex(/^\d+$/)
|
|
@@ -3529,7 +3724,8 @@ z__namespace.object({
|
|
|
3529
3724
|
connection_id: z__namespace.string()
|
|
3530
3725
|
});
|
|
3531
3726
|
z__namespace.object({
|
|
3532
|
-
ad_group_id: z__namespace.string().regex(/^\d+$/).optional()
|
|
3727
|
+
ad_group_id: z__namespace.string().regex(/^\d+$/).optional(),
|
|
3728
|
+
status: zGoogleAdsReadStatusFilter.optional()
|
|
3533
3729
|
});
|
|
3534
3730
|
z__namespace.object({
|
|
3535
3731
|
object: z__namespace.literal("list"),
|
|
@@ -3555,18 +3751,14 @@ z__namespace.object({
|
|
|
3555
3751
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3556
3752
|
});
|
|
3557
3753
|
z__namespace.object({
|
|
3558
|
-
|
|
3754
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3559
3755
|
});
|
|
3560
3756
|
z__namespace.object({
|
|
3561
|
-
|
|
3562
|
-
});
|
|
3563
|
-
z__namespace.object({
|
|
3564
|
-
connection_id: z__namespace.string(),
|
|
3565
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3757
|
+
connection_id: z__namespace.string()
|
|
3566
3758
|
});
|
|
3567
3759
|
z__namespace.object({
|
|
3568
3760
|
connection_id: z__namespace.string(),
|
|
3569
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3761
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3570
3762
|
});
|
|
3571
3763
|
z__namespace.object({
|
|
3572
3764
|
ad_group: z__namespace.string().min(1),
|
|
@@ -3599,15 +3791,31 @@ z__namespace.object({
|
|
|
3599
3791
|
status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
|
|
3600
3792
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3601
3793
|
});
|
|
3794
|
+
z__namespace.object({
|
|
3795
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3796
|
+
});
|
|
3602
3797
|
z__namespace.object({
|
|
3603
3798
|
connection_id: z__namespace.string()
|
|
3604
3799
|
});
|
|
3605
3800
|
z__namespace.object({
|
|
3606
3801
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3607
3802
|
});
|
|
3803
|
+
z__namespace.object({
|
|
3804
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3805
|
+
});
|
|
3608
3806
|
z__namespace.object({
|
|
3609
3807
|
connection_id: z__namespace.string(),
|
|
3610
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3808
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3809
|
+
});
|
|
3810
|
+
z__namespace.object({
|
|
3811
|
+
dry_run: z__namespace.boolean().optional().default(false)
|
|
3812
|
+
});
|
|
3813
|
+
z__namespace.object({
|
|
3814
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3815
|
+
});
|
|
3816
|
+
z__namespace.object({
|
|
3817
|
+
connection_id: z__namespace.string(),
|
|
3818
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3611
3819
|
});
|
|
3612
3820
|
z__namespace.object({
|
|
3613
3821
|
id: z__namespace.string(),
|
|
@@ -3618,9 +3826,12 @@ z__namespace.object({
|
|
|
3618
3826
|
z__namespace.object({
|
|
3619
3827
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3620
3828
|
});
|
|
3829
|
+
z__namespace.object({
|
|
3830
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3831
|
+
});
|
|
3621
3832
|
z__namespace.object({
|
|
3622
3833
|
connection_id: z__namespace.string(),
|
|
3623
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3834
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3624
3835
|
});
|
|
3625
3836
|
z__namespace.object({
|
|
3626
3837
|
id: z__namespace.string(),
|
|
@@ -3632,7 +3843,8 @@ z__namespace.object({
|
|
|
3632
3843
|
connection_id: z__namespace.string()
|
|
3633
3844
|
});
|
|
3634
3845
|
z__namespace.object({
|
|
3635
|
-
ad_group_id: z__namespace.string().regex(/^\d+$/).optional()
|
|
3846
|
+
ad_group_id: z__namespace.string().regex(/^\d+$/).optional(),
|
|
3847
|
+
status: zGoogleAdsReadStatusFilter.optional()
|
|
3636
3848
|
});
|
|
3637
3849
|
z__namespace.object({
|
|
3638
3850
|
object: z__namespace.literal("list"),
|
|
@@ -3650,34 +3862,46 @@ z__namespace.object({
|
|
|
3650
3862
|
status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("ENABLED"),
|
|
3651
3863
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3652
3864
|
});
|
|
3865
|
+
z__namespace.object({
|
|
3866
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3867
|
+
});
|
|
3653
3868
|
z__namespace.object({
|
|
3654
3869
|
connection_id: z__namespace.string()
|
|
3655
3870
|
});
|
|
3656
3871
|
z__namespace.object({
|
|
3872
|
+
connection_id: z__namespace.string(),
|
|
3873
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3874
|
+
});
|
|
3875
|
+
z__namespace.object({
|
|
3876
|
+
cpc_bid_micros: z__namespace.int().gt(0).lte(9007199254740991),
|
|
3657
3877
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3658
3878
|
});
|
|
3659
3879
|
z__namespace.object({
|
|
3660
|
-
|
|
3661
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3880
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3662
3881
|
});
|
|
3663
3882
|
z__namespace.object({
|
|
3664
3883
|
connection_id: z__namespace.string(),
|
|
3665
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3884
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3666
3885
|
});
|
|
3667
3886
|
z__namespace.object({
|
|
3668
|
-
cpc_bid_micros: z__namespace.int().gt(0).lte(9007199254740991),
|
|
3669
3887
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3670
3888
|
});
|
|
3889
|
+
z__namespace.object({
|
|
3890
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3891
|
+
});
|
|
3671
3892
|
z__namespace.object({
|
|
3672
3893
|
connection_id: z__namespace.string(),
|
|
3673
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3894
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3674
3895
|
});
|
|
3675
3896
|
z__namespace.object({
|
|
3676
3897
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3677
3898
|
});
|
|
3899
|
+
z__namespace.object({
|
|
3900
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3901
|
+
});
|
|
3678
3902
|
z__namespace.object({
|
|
3679
3903
|
connection_id: z__namespace.string(),
|
|
3680
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3904
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3681
3905
|
});
|
|
3682
3906
|
z__namespace.object({
|
|
3683
3907
|
id: z__namespace.string(),
|
|
@@ -3688,9 +3912,12 @@ z__namespace.object({
|
|
|
3688
3912
|
z__namespace.object({
|
|
3689
3913
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3690
3914
|
});
|
|
3915
|
+
z__namespace.object({
|
|
3916
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
3917
|
+
});
|
|
3691
3918
|
z__namespace.object({
|
|
3692
3919
|
connection_id: z__namespace.string(),
|
|
3693
|
-
id: z__namespace.string().regex(/^\d+$/)
|
|
3920
|
+
id: z__namespace.string().regex(/^\d+~\d+$/)
|
|
3694
3921
|
});
|
|
3695
3922
|
z__namespace.object({
|
|
3696
3923
|
id: z__namespace.string(),
|
|
@@ -3861,6 +4088,9 @@ z__namespace.object({
|
|
|
3861
4088
|
view_through_lookback_window_days: z__namespace.int().gt(0).lte(9007199254740991).optional(),
|
|
3862
4089
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
3863
4090
|
});
|
|
4091
|
+
z__namespace.object({
|
|
4092
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
4093
|
+
});
|
|
3864
4094
|
z__namespace.object({
|
|
3865
4095
|
connection_id: z__namespace.string()
|
|
3866
4096
|
});
|
|
@@ -4067,6 +4297,9 @@ z__namespace.object({
|
|
|
4067
4297
|
biddable: z__namespace.boolean(),
|
|
4068
4298
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
4069
4299
|
});
|
|
4300
|
+
z__namespace.object({
|
|
4301
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
4302
|
+
});
|
|
4070
4303
|
z__namespace.object({
|
|
4071
4304
|
connection_id: z__namespace.string()
|
|
4072
4305
|
});
|
|
@@ -4132,6 +4365,9 @@ z__namespace.object({
|
|
|
4132
4365
|
})).min(1).max(2e3),
|
|
4133
4366
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
4134
4367
|
});
|
|
4368
|
+
z__namespace.object({
|
|
4369
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
4370
|
+
});
|
|
4135
4371
|
z__namespace.object({
|
|
4136
4372
|
connection_id: z__namespace.string()
|
|
4137
4373
|
});
|
|
@@ -4150,6 +4386,9 @@ z__namespace.object({
|
|
|
4150
4386
|
media_id: z__namespace.string(),
|
|
4151
4387
|
dry_run: z__namespace.boolean().optional().default(false)
|
|
4152
4388
|
});
|
|
4389
|
+
z__namespace.object({
|
|
4390
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
4391
|
+
});
|
|
4153
4392
|
z__namespace.object({
|
|
4154
4393
|
connection_id: z__namespace.string()
|
|
4155
4394
|
});
|
|
@@ -4378,6 +4617,9 @@ z__namespace.object({
|
|
|
4378
4617
|
"post.completed"
|
|
4379
4618
|
]))
|
|
4380
4619
|
});
|
|
4620
|
+
z__namespace.object({
|
|
4621
|
+
"Idempotency-Key": z__namespace.string().min(1).max(255).optional()
|
|
4622
|
+
});
|
|
4381
4623
|
z__namespace.object({
|
|
4382
4624
|
id: z__namespace.string(),
|
|
4383
4625
|
url: z__namespace.string(),
|
|
@@ -5073,6 +5315,19 @@ var googleGetInsights = (options) => (options.client ?? client).post({
|
|
|
5073
5315
|
...options.headers
|
|
5074
5316
|
}
|
|
5075
5317
|
});
|
|
5318
|
+
var googleGetAdTree = (options) => (options.client ?? client).get({
|
|
5319
|
+
security: [{
|
|
5320
|
+
key: "secretKey",
|
|
5321
|
+
scheme: "bearer",
|
|
5322
|
+
type: "http"
|
|
5323
|
+
}, {
|
|
5324
|
+
key: "frontendToken",
|
|
5325
|
+
scheme: "bearer",
|
|
5326
|
+
type: "http"
|
|
5327
|
+
}],
|
|
5328
|
+
url: "/google/{connection_id}/ads/tree",
|
|
5329
|
+
...options
|
|
5330
|
+
});
|
|
5076
5331
|
var googleRunGaql = (options) => (options.client ?? client).post({
|
|
5077
5332
|
security: [{
|
|
5078
5333
|
key: "secretKey",
|
|
@@ -5103,15 +5358,11 @@ var googleCreateBudget = (options) => (options.client ?? client).post({
|
|
|
5103
5358
|
...options.headers
|
|
5104
5359
|
}
|
|
5105
5360
|
});
|
|
5106
|
-
var
|
|
5361
|
+
var googleEditBudget = (options) => (options.client ?? client).patch({
|
|
5107
5362
|
security: [{
|
|
5108
5363
|
key: "secretKey",
|
|
5109
5364
|
scheme: "bearer",
|
|
5110
5365
|
type: "http"
|
|
5111
|
-
}, {
|
|
5112
|
-
key: "frontendToken",
|
|
5113
|
-
scheme: "bearer",
|
|
5114
|
-
type: "http"
|
|
5115
5366
|
}],
|
|
5116
5367
|
url: "/google/{connection_id}/budgets/{id}",
|
|
5117
5368
|
...options,
|
|
@@ -5120,13 +5371,17 @@ var googleDeleteBudget = (options) => (options.client ?? client).delete({
|
|
|
5120
5371
|
...options.headers
|
|
5121
5372
|
}
|
|
5122
5373
|
});
|
|
5123
|
-
var
|
|
5374
|
+
var googleRemoveBudget = (options) => (options.client ?? client).post({
|
|
5124
5375
|
security: [{
|
|
5125
5376
|
key: "secretKey",
|
|
5126
5377
|
scheme: "bearer",
|
|
5127
5378
|
type: "http"
|
|
5379
|
+
}, {
|
|
5380
|
+
key: "frontendToken",
|
|
5381
|
+
scheme: "bearer",
|
|
5382
|
+
type: "http"
|
|
5128
5383
|
}],
|
|
5129
|
-
url: "/google/{connection_id}/budgets/{id}",
|
|
5384
|
+
url: "/google/{connection_id}/budgets/{id}/remove",
|
|
5130
5385
|
...options,
|
|
5131
5386
|
headers: {
|
|
5132
5387
|
"Content-Type": "application/json",
|
|
@@ -5163,7 +5418,7 @@ var googleCreateCampaign = (options) => (options.client ?? client).post({
|
|
|
5163
5418
|
...options.headers
|
|
5164
5419
|
}
|
|
5165
5420
|
});
|
|
5166
|
-
var
|
|
5421
|
+
var googleGetCampaign = (options) => (options.client ?? client).get({
|
|
5167
5422
|
security: [{
|
|
5168
5423
|
key: "secretKey",
|
|
5169
5424
|
scheme: "bearer",
|
|
@@ -5174,13 +5429,9 @@ var googleDeleteCampaign = (options) => (options.client ?? client).delete({
|
|
|
5174
5429
|
type: "http"
|
|
5175
5430
|
}],
|
|
5176
5431
|
url: "/google/{connection_id}/campaigns/{id}",
|
|
5177
|
-
...options
|
|
5178
|
-
headers: {
|
|
5179
|
-
"Content-Type": "application/json",
|
|
5180
|
-
...options.headers
|
|
5181
|
-
}
|
|
5432
|
+
...options
|
|
5182
5433
|
});
|
|
5183
|
-
var
|
|
5434
|
+
var googleEditCampaign = (options) => (options.client ?? client).patch({
|
|
5184
5435
|
security: [{
|
|
5185
5436
|
key: "secretKey",
|
|
5186
5437
|
scheme: "bearer",
|
|
@@ -5191,9 +5442,13 @@ var googleGetCampaign = (options) => (options.client ?? client).get({
|
|
|
5191
5442
|
type: "http"
|
|
5192
5443
|
}],
|
|
5193
5444
|
url: "/google/{connection_id}/campaigns/{id}",
|
|
5194
|
-
...options
|
|
5445
|
+
...options,
|
|
5446
|
+
headers: {
|
|
5447
|
+
"Content-Type": "application/json",
|
|
5448
|
+
...options.headers
|
|
5449
|
+
}
|
|
5195
5450
|
});
|
|
5196
|
-
var
|
|
5451
|
+
var googleRemoveCampaign = (options) => (options.client ?? client).post({
|
|
5197
5452
|
security: [{
|
|
5198
5453
|
key: "secretKey",
|
|
5199
5454
|
scheme: "bearer",
|
|
@@ -5203,7 +5458,7 @@ var googleEditCampaign = (options) => (options.client ?? client).patch({
|
|
|
5203
5458
|
scheme: "bearer",
|
|
5204
5459
|
type: "http"
|
|
5205
5460
|
}],
|
|
5206
|
-
url: "/google/{connection_id}/campaigns/{id}",
|
|
5461
|
+
url: "/google/{connection_id}/campaigns/{id}/remove",
|
|
5207
5462
|
...options,
|
|
5208
5463
|
headers: {
|
|
5209
5464
|
"Content-Type": "application/json",
|
|
@@ -5287,7 +5542,7 @@ var googleCreateCampaignCriterion = (options) => (options.client ?? client).post
|
|
|
5287
5542
|
...options.headers
|
|
5288
5543
|
}
|
|
5289
5544
|
});
|
|
5290
|
-
var
|
|
5545
|
+
var googleRemoveCampaignCriterion = (options) => (options.client ?? client).post({
|
|
5291
5546
|
security: [{
|
|
5292
5547
|
key: "secretKey",
|
|
5293
5548
|
scheme: "bearer",
|
|
@@ -5297,7 +5552,7 @@ var googleDeleteCampaignCriterion = (options) => (options.client ?? client).dele
|
|
|
5297
5552
|
scheme: "bearer",
|
|
5298
5553
|
type: "http"
|
|
5299
5554
|
}],
|
|
5300
|
-
url: "/google/{connection_id}/campaigns/{campaign_id}/criteria/{criterion_id}",
|
|
5555
|
+
url: "/google/{connection_id}/campaigns/{campaign_id}/criteria/{criterion_id}/remove",
|
|
5301
5556
|
...options,
|
|
5302
5557
|
headers: {
|
|
5303
5558
|
"Content-Type": "application/json",
|
|
@@ -5351,7 +5606,7 @@ var googleCreateAdGroup = (options) => (options.client ?? client).post({
|
|
|
5351
5606
|
...options.headers
|
|
5352
5607
|
}
|
|
5353
5608
|
});
|
|
5354
|
-
var
|
|
5609
|
+
var googleGetAdGroup = (options) => (options.client ?? client).get({
|
|
5355
5610
|
security: [{
|
|
5356
5611
|
key: "secretKey",
|
|
5357
5612
|
scheme: "bearer",
|
|
@@ -5362,13 +5617,9 @@ var googleDeleteAdGroup = (options) => (options.client ?? client).delete({
|
|
|
5362
5617
|
type: "http"
|
|
5363
5618
|
}],
|
|
5364
5619
|
url: "/google/{connection_id}/ad-groups/{id}",
|
|
5365
|
-
...options
|
|
5366
|
-
headers: {
|
|
5367
|
-
"Content-Type": "application/json",
|
|
5368
|
-
...options.headers
|
|
5369
|
-
}
|
|
5620
|
+
...options
|
|
5370
5621
|
});
|
|
5371
|
-
var
|
|
5622
|
+
var googleEditAdGroup = (options) => (options.client ?? client).patch({
|
|
5372
5623
|
security: [{
|
|
5373
5624
|
key: "secretKey",
|
|
5374
5625
|
scheme: "bearer",
|
|
@@ -5379,32 +5630,36 @@ var googleGetAdGroup = (options) => (options.client ?? client).get({
|
|
|
5379
5630
|
type: "http"
|
|
5380
5631
|
}],
|
|
5381
5632
|
url: "/google/{connection_id}/ad-groups/{id}",
|
|
5382
|
-
...options
|
|
5633
|
+
...options,
|
|
5634
|
+
headers: {
|
|
5635
|
+
"Content-Type": "application/json",
|
|
5636
|
+
...options.headers
|
|
5637
|
+
}
|
|
5383
5638
|
});
|
|
5384
|
-
var
|
|
5639
|
+
var googleSetAdGroupBids = (options) => (options.client ?? client).patch({
|
|
5385
5640
|
security: [{
|
|
5386
5641
|
key: "secretKey",
|
|
5387
5642
|
scheme: "bearer",
|
|
5388
5643
|
type: "http"
|
|
5389
|
-
}, {
|
|
5390
|
-
key: "frontendToken",
|
|
5391
|
-
scheme: "bearer",
|
|
5392
|
-
type: "http"
|
|
5393
5644
|
}],
|
|
5394
|
-
url: "/google/{connection_id}/ad-groups/{id}",
|
|
5645
|
+
url: "/google/{connection_id}/ad-groups/{id}/bids",
|
|
5395
5646
|
...options,
|
|
5396
5647
|
headers: {
|
|
5397
5648
|
"Content-Type": "application/json",
|
|
5398
5649
|
...options.headers
|
|
5399
5650
|
}
|
|
5400
5651
|
});
|
|
5401
|
-
var
|
|
5652
|
+
var googleRemoveAdGroup = (options) => (options.client ?? client).post({
|
|
5402
5653
|
security: [{
|
|
5403
5654
|
key: "secretKey",
|
|
5404
5655
|
scheme: "bearer",
|
|
5405
5656
|
type: "http"
|
|
5657
|
+
}, {
|
|
5658
|
+
key: "frontendToken",
|
|
5659
|
+
scheme: "bearer",
|
|
5660
|
+
type: "http"
|
|
5406
5661
|
}],
|
|
5407
|
-
url: "/google/{connection_id}/ad-groups/{id}/
|
|
5662
|
+
url: "/google/{connection_id}/ad-groups/{id}/remove",
|
|
5408
5663
|
...options,
|
|
5409
5664
|
headers: {
|
|
5410
5665
|
"Content-Type": "application/json",
|
|
@@ -5475,7 +5730,7 @@ var googleCreateAdGroupCriterion = (options) => (options.client ?? client).post(
|
|
|
5475
5730
|
...options.headers
|
|
5476
5731
|
}
|
|
5477
5732
|
});
|
|
5478
|
-
var
|
|
5733
|
+
var googleRemoveAdGroupCriterion = (options) => (options.client ?? client).post({
|
|
5479
5734
|
security: [{
|
|
5480
5735
|
key: "secretKey",
|
|
5481
5736
|
scheme: "bearer",
|
|
@@ -5485,7 +5740,7 @@ var googleDeleteAdGroupCriterion = (options) => (options.client ?? client).delet
|
|
|
5485
5740
|
scheme: "bearer",
|
|
5486
5741
|
type: "http"
|
|
5487
5742
|
}],
|
|
5488
|
-
url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria/{criterion_id}",
|
|
5743
|
+
url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria/{criterion_id}/remove",
|
|
5489
5744
|
...options,
|
|
5490
5745
|
headers: {
|
|
5491
5746
|
"Content-Type": "application/json",
|
|
@@ -5552,7 +5807,7 @@ var googleCreateAd = (options) => (options.client ?? client).post({
|
|
|
5552
5807
|
...options.headers
|
|
5553
5808
|
}
|
|
5554
5809
|
});
|
|
5555
|
-
var
|
|
5810
|
+
var googleGetAd = (options) => (options.client ?? client).get({
|
|
5556
5811
|
security: [{
|
|
5557
5812
|
key: "secretKey",
|
|
5558
5813
|
scheme: "bearer",
|
|
@@ -5563,13 +5818,9 @@ var googleDeleteAd = (options) => (options.client ?? client).delete({
|
|
|
5563
5818
|
type: "http"
|
|
5564
5819
|
}],
|
|
5565
5820
|
url: "/google/{connection_id}/ads/{id}",
|
|
5566
|
-
...options
|
|
5567
|
-
headers: {
|
|
5568
|
-
"Content-Type": "application/json",
|
|
5569
|
-
...options.headers
|
|
5570
|
-
}
|
|
5821
|
+
...options
|
|
5571
5822
|
});
|
|
5572
|
-
var
|
|
5823
|
+
var googleCreateDisplayAd = (options) => (options.client ?? client).post({
|
|
5573
5824
|
security: [{
|
|
5574
5825
|
key: "secretKey",
|
|
5575
5826
|
scheme: "bearer",
|
|
@@ -5579,10 +5830,14 @@ var googleGetAd = (options) => (options.client ?? client).get({
|
|
|
5579
5830
|
scheme: "bearer",
|
|
5580
5831
|
type: "http"
|
|
5581
5832
|
}],
|
|
5582
|
-
url: "/google/{connection_id}/ads
|
|
5583
|
-
...options
|
|
5833
|
+
url: "/google/{connection_id}/display-ads",
|
|
5834
|
+
...options,
|
|
5835
|
+
headers: {
|
|
5836
|
+
"Content-Type": "application/json",
|
|
5837
|
+
...options.headers
|
|
5838
|
+
}
|
|
5584
5839
|
});
|
|
5585
|
-
var
|
|
5840
|
+
var googleRemoveAd = (options) => (options.client ?? client).post({
|
|
5586
5841
|
security: [{
|
|
5587
5842
|
key: "secretKey",
|
|
5588
5843
|
scheme: "bearer",
|
|
@@ -5592,7 +5847,7 @@ var googleCreateDisplayAd = (options) => (options.client ?? client).post({
|
|
|
5592
5847
|
scheme: "bearer",
|
|
5593
5848
|
type: "http"
|
|
5594
5849
|
}],
|
|
5595
|
-
url: "/google/{connection_id}/
|
|
5850
|
+
url: "/google/{connection_id}/ads/{id}/remove",
|
|
5596
5851
|
...options,
|
|
5597
5852
|
headers: {
|
|
5598
5853
|
"Content-Type": "application/json",
|
|
@@ -5663,7 +5918,7 @@ var googleCreateKeyword = (options) => (options.client ?? client).post({
|
|
|
5663
5918
|
...options.headers
|
|
5664
5919
|
}
|
|
5665
5920
|
});
|
|
5666
|
-
var
|
|
5921
|
+
var googleGetKeyword = (options) => (options.client ?? client).get({
|
|
5667
5922
|
security: [{
|
|
5668
5923
|
key: "secretKey",
|
|
5669
5924
|
scheme: "bearer",
|
|
@@ -5674,13 +5929,22 @@ var googleDeleteKeyword = (options) => (options.client ?? client).delete({
|
|
|
5674
5929
|
type: "http"
|
|
5675
5930
|
}],
|
|
5676
5931
|
url: "/google/{connection_id}/keywords/{id}",
|
|
5932
|
+
...options
|
|
5933
|
+
});
|
|
5934
|
+
var googleSetKeywordBid = (options) => (options.client ?? client).patch({
|
|
5935
|
+
security: [{
|
|
5936
|
+
key: "secretKey",
|
|
5937
|
+
scheme: "bearer",
|
|
5938
|
+
type: "http"
|
|
5939
|
+
}],
|
|
5940
|
+
url: "/google/{connection_id}/keywords/{id}/bid",
|
|
5677
5941
|
...options,
|
|
5678
5942
|
headers: {
|
|
5679
5943
|
"Content-Type": "application/json",
|
|
5680
5944
|
...options.headers
|
|
5681
5945
|
}
|
|
5682
5946
|
});
|
|
5683
|
-
var
|
|
5947
|
+
var googleRemoveKeyword = (options) => (options.client ?? client).post({
|
|
5684
5948
|
security: [{
|
|
5685
5949
|
key: "secretKey",
|
|
5686
5950
|
scheme: "bearer",
|
|
@@ -5690,16 +5954,7 @@ var googleGetKeyword = (options) => (options.client ?? client).get({
|
|
|
5690
5954
|
scheme: "bearer",
|
|
5691
5955
|
type: "http"
|
|
5692
5956
|
}],
|
|
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",
|
|
5957
|
+
url: "/google/{connection_id}/keywords/{id}/remove",
|
|
5703
5958
|
...options,
|
|
5704
5959
|
headers: {
|
|
5705
5960
|
"Content-Type": "application/json",
|
|
@@ -6128,6 +6383,28 @@ function xPollDurationLabel(durationMinutes) {
|
|
|
6128
6383
|
return plural(durationMinutes, "minute");
|
|
6129
6384
|
}
|
|
6130
6385
|
|
|
6386
|
+
// src/ads-tree.ts
|
|
6387
|
+
function groupAdTree(nodes) {
|
|
6388
|
+
const byId = /* @__PURE__ */ new Map();
|
|
6389
|
+
for (const node of nodes) {
|
|
6390
|
+
byId.set(node.id, { ...node, children: [] });
|
|
6391
|
+
}
|
|
6392
|
+
const roots = [];
|
|
6393
|
+
for (const node of nodes) {
|
|
6394
|
+
const treeNode = byId.get(node.id);
|
|
6395
|
+
if (treeNode === void 0) {
|
|
6396
|
+
continue;
|
|
6397
|
+
}
|
|
6398
|
+
const parent = node.parent_id === null ? void 0 : byId.get(node.parent_id);
|
|
6399
|
+
if (parent === void 0) {
|
|
6400
|
+
roots.push(treeNode);
|
|
6401
|
+
} else {
|
|
6402
|
+
parent.children.push(treeNode);
|
|
6403
|
+
}
|
|
6404
|
+
}
|
|
6405
|
+
return roots;
|
|
6406
|
+
}
|
|
6407
|
+
|
|
6131
6408
|
// src/tiktok-options.ts
|
|
6132
6409
|
var TIKTOK_CAPTION_MAX = { video: 2200, photo: 4e3 };
|
|
6133
6410
|
function captionMaxFor(postType) {
|
|
@@ -6473,13 +6750,6 @@ exports.googleCreateCampaignCriterion = googleCreateCampaignCriterion;
|
|
|
6473
6750
|
exports.googleCreateConversionAction = googleCreateConversionAction;
|
|
6474
6751
|
exports.googleCreateDisplayAd = googleCreateDisplayAd;
|
|
6475
6752
|
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
6753
|
exports.googleEditAdGroup = googleEditAdGroup;
|
|
6484
6754
|
exports.googleEditBudget = googleEditBudget;
|
|
6485
6755
|
exports.googleEditCampaign = googleEditCampaign;
|
|
@@ -6490,6 +6760,7 @@ exports.googleEnableKeyword = googleEnableKeyword;
|
|
|
6490
6760
|
exports.googleGetAccount = googleGetAccount;
|
|
6491
6761
|
exports.googleGetAd = googleGetAd;
|
|
6492
6762
|
exports.googleGetAdGroup = googleGetAdGroup;
|
|
6763
|
+
exports.googleGetAdTree = googleGetAdTree;
|
|
6493
6764
|
exports.googleGetCampaign = googleGetCampaign;
|
|
6494
6765
|
exports.googleGetConversionAction = googleGetConversionAction;
|
|
6495
6766
|
exports.googleGetInsights = googleGetInsights;
|
|
@@ -6507,6 +6778,13 @@ exports.googlePauseAd = googlePauseAd;
|
|
|
6507
6778
|
exports.googlePauseAdGroup = googlePauseAdGroup;
|
|
6508
6779
|
exports.googlePauseCampaign = googlePauseCampaign;
|
|
6509
6780
|
exports.googlePauseKeyword = googlePauseKeyword;
|
|
6781
|
+
exports.googleRemoveAd = googleRemoveAd;
|
|
6782
|
+
exports.googleRemoveAdGroup = googleRemoveAdGroup;
|
|
6783
|
+
exports.googleRemoveAdGroupCriterion = googleRemoveAdGroupCriterion;
|
|
6784
|
+
exports.googleRemoveBudget = googleRemoveBudget;
|
|
6785
|
+
exports.googleRemoveCampaign = googleRemoveCampaign;
|
|
6786
|
+
exports.googleRemoveCampaignCriterion = googleRemoveCampaignCriterion;
|
|
6787
|
+
exports.googleRemoveKeyword = googleRemoveKeyword;
|
|
6510
6788
|
exports.googleRunGaql = googleRunGaql;
|
|
6511
6789
|
exports.googleSearchGeoTargets = googleSearchGeoTargets;
|
|
6512
6790
|
exports.googleSetAdGroupBids = googleSetAdGroupBids;
|
|
@@ -6516,6 +6794,7 @@ exports.googleSetConversionGoal = googleSetConversionGoal;
|
|
|
6516
6794
|
exports.googleSetKeywordBid = googleSetKeywordBid;
|
|
6517
6795
|
exports.googleUploadConversions = googleUploadConversions;
|
|
6518
6796
|
exports.googleUploadImageAsset = googleUploadImageAsset;
|
|
6797
|
+
exports.groupAdTree = groupAdTree;
|
|
6519
6798
|
exports.interactionRows = interactionRows;
|
|
6520
6799
|
exports.interactionValueKey = interactionValueKey;
|
|
6521
6800
|
exports.isInteractionForbidden = isInteractionForbidden;
|