@postrun/js 3.2.0 → 3.3.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/query.cjs CHANGED
@@ -1378,10 +1378,6 @@ var googleRemoveBudget = (options) => (options.client ?? client).post({
1378
1378
  key: "secretKey",
1379
1379
  scheme: "bearer",
1380
1380
  type: "http"
1381
- }, {
1382
- key: "frontendToken",
1383
- scheme: "bearer",
1384
- type: "http"
1385
1381
  }],
1386
1382
  url: "/google/{connection_id}/budgets/{id}/remove",
1387
1383
  ...options,
@@ -1450,6 +1446,19 @@ var googleEditCampaign = (options) => (options.client ?? client).patch({
1450
1446
  ...options.headers
1451
1447
  }
1452
1448
  });
1449
+ var googleSetCampaignBidding = (options) => (options.client ?? client).patch({
1450
+ security: [{
1451
+ key: "secretKey",
1452
+ scheme: "bearer",
1453
+ type: "http"
1454
+ }],
1455
+ url: "/google/{connection_id}/campaigns/{id}/bidding",
1456
+ ...options,
1457
+ headers: {
1458
+ "Content-Type": "application/json",
1459
+ ...options.headers
1460
+ }
1461
+ });
1453
1462
  var googleRemoveCampaign = (options) => (options.client ?? client).post({
1454
1463
  security: [{
1455
1464
  key: "secretKey",
@@ -1822,6 +1831,23 @@ var googleGetAd = (options) => (options.client ?? client).get({
1822
1831
  url: "/google/{connection_id}/ads/{id}",
1823
1832
  ...options
1824
1833
  });
1834
+ var googleEditAd = (options) => (options.client ?? client).patch({
1835
+ security: [{
1836
+ key: "secretKey",
1837
+ scheme: "bearer",
1838
+ type: "http"
1839
+ }, {
1840
+ key: "frontendToken",
1841
+ scheme: "bearer",
1842
+ type: "http"
1843
+ }],
1844
+ url: "/google/{connection_id}/ads/{id}",
1845
+ ...options,
1846
+ headers: {
1847
+ "Content-Type": "application/json",
1848
+ ...options.headers
1849
+ }
1850
+ });
1825
1851
  var googleCreateDisplayAd = (options) => (options.client ?? client).post({
1826
1852
  security: [{
1827
1853
  key: "secretKey",
@@ -1839,6 +1865,23 @@ var googleCreateDisplayAd = (options) => (options.client ?? client).post({
1839
1865
  ...options.headers
1840
1866
  }
1841
1867
  });
1868
+ var googleEditDisplayAd = (options) => (options.client ?? client).patch({
1869
+ security: [{
1870
+ key: "secretKey",
1871
+ scheme: "bearer",
1872
+ type: "http"
1873
+ }, {
1874
+ key: "frontendToken",
1875
+ scheme: "bearer",
1876
+ type: "http"
1877
+ }],
1878
+ url: "/google/{connection_id}/display-ads/{id}",
1879
+ ...options,
1880
+ headers: {
1881
+ "Content-Type": "application/json",
1882
+ ...options.headers
1883
+ }
1884
+ });
1842
1885
  var googleRemoveAd = (options) => (options.client ?? client).post({
1843
1886
  security: [{
1844
1887
  key: "secretKey",
@@ -2164,7 +2207,7 @@ var googleUploadImageAsset = (options) => (options.client ?? client).post({
2164
2207
  ...options.headers
2165
2208
  }
2166
2209
  });
2167
- var tiktokCreatorInfo = (options) => (options.client ?? client).get({
2210
+ var googleUploadYoutubeVideoAsset = (options) => (options.client ?? client).post({
2168
2211
  security: [{
2169
2212
  key: "secretKey",
2170
2213
  scheme: "bearer",
@@ -2174,212 +2217,1239 @@ var tiktokCreatorInfo = (options) => (options.client ?? client).get({
2174
2217
  scheme: "bearer",
2175
2218
  type: "http"
2176
2219
  }],
2177
- url: "/connections/{id}/tiktok/creator-info",
2178
- ...options
2220
+ url: "/google/{connection_id}/assets/youtube-video",
2221
+ ...options,
2222
+ headers: {
2223
+ "Content-Type": "application/json",
2224
+ ...options.headers
2225
+ }
2179
2226
  });
2180
- var logsList = (options) => (options?.client ?? client).get({
2227
+ var googleListAssetGroups = (options) => (options.client ?? client).get({
2181
2228
  security: [{
2182
2229
  key: "secretKey",
2183
2230
  scheme: "bearer",
2184
2231
  type: "http"
2232
+ }, {
2233
+ key: "frontendToken",
2234
+ scheme: "bearer",
2235
+ type: "http"
2185
2236
  }],
2186
- url: "/logs",
2237
+ url: "/google/{connection_id}/asset-groups",
2187
2238
  ...options
2188
2239
  });
2189
- var logsGet = (options) => (options.client ?? client).get({
2240
+ var googleGetAssetGroup = (options) => (options.client ?? client).get({
2190
2241
  security: [{
2191
2242
  key: "secretKey",
2192
2243
  scheme: "bearer",
2193
2244
  type: "http"
2245
+ }, {
2246
+ key: "frontendToken",
2247
+ scheme: "bearer",
2248
+ type: "http"
2194
2249
  }],
2195
- url: "/logs/{id}",
2250
+ url: "/google/{connection_id}/asset-groups/{id}",
2196
2251
  ...options
2197
2252
  });
2198
- var webhooksListEndpoints = (options) => (options?.client ?? client).get({
2253
+ var googleEditAssetGroup = (options) => (options.client ?? client).patch({
2199
2254
  security: [{
2200
2255
  key: "secretKey",
2201
2256
  scheme: "bearer",
2202
2257
  type: "http"
2258
+ }, {
2259
+ key: "frontendToken",
2260
+ scheme: "bearer",
2261
+ type: "http"
2203
2262
  }],
2204
- url: "/webhooks/endpoints",
2205
- ...options
2263
+ url: "/google/{connection_id}/asset-groups/{id}",
2264
+ ...options,
2265
+ headers: {
2266
+ "Content-Type": "application/json",
2267
+ ...options.headers
2268
+ }
2206
2269
  });
2207
- var webhooksCreateEndpoint = (options) => (options.client ?? client).post({
2270
+ var googleCreateAssetGroup = (options) => (options.client ?? client).post({
2208
2271
  security: [{
2209
2272
  key: "secretKey",
2210
2273
  scheme: "bearer",
2211
2274
  type: "http"
2275
+ }, {
2276
+ key: "frontendToken",
2277
+ scheme: "bearer",
2278
+ type: "http"
2212
2279
  }],
2213
- url: "/webhooks/endpoints",
2280
+ url: "/google/{connection_id}/performance-max/{campaign_id}/asset-groups",
2214
2281
  ...options,
2215
2282
  headers: {
2216
2283
  "Content-Type": "application/json",
2217
2284
  ...options.headers
2218
2285
  }
2219
2286
  });
2220
- var webhooksDeleteEndpoint = (options) => (options.client ?? client).delete({
2287
+ var googlePauseAssetGroup = (options) => (options.client ?? client).post({
2221
2288
  security: [{
2222
2289
  key: "secretKey",
2223
2290
  scheme: "bearer",
2224
2291
  type: "http"
2292
+ }, {
2293
+ key: "frontendToken",
2294
+ scheme: "bearer",
2295
+ type: "http"
2225
2296
  }],
2226
- url: "/webhooks/endpoints/{id}",
2227
- ...options
2297
+ url: "/google/{connection_id}/asset-groups/{id}/pause",
2298
+ ...options,
2299
+ headers: {
2300
+ "Content-Type": "application/json",
2301
+ ...options.headers
2302
+ }
2228
2303
  });
2229
- var webhooksGetEndpoint = (options) => (options.client ?? client).get({
2304
+ var googleEnableAssetGroup = (options) => (options.client ?? client).post({
2230
2305
  security: [{
2231
2306
  key: "secretKey",
2232
2307
  scheme: "bearer",
2233
2308
  type: "http"
2309
+ }, {
2310
+ key: "frontendToken",
2311
+ scheme: "bearer",
2312
+ type: "http"
2234
2313
  }],
2235
- url: "/webhooks/endpoints/{id}",
2236
- ...options
2314
+ url: "/google/{connection_id}/asset-groups/{id}/enable",
2315
+ ...options,
2316
+ headers: {
2317
+ "Content-Type": "application/json",
2318
+ ...options.headers
2319
+ }
2237
2320
  });
2238
- var webhooksUpdateEndpoint = (options) => (options.client ?? client).patch({
2321
+ var googleRemoveAssetGroup = (options) => (options.client ?? client).post({
2239
2322
  security: [{
2240
2323
  key: "secretKey",
2241
2324
  scheme: "bearer",
2242
2325
  type: "http"
2326
+ }, {
2327
+ key: "frontendToken",
2328
+ scheme: "bearer",
2329
+ type: "http"
2243
2330
  }],
2244
- url: "/webhooks/endpoints/{id}",
2331
+ url: "/google/{connection_id}/asset-groups/{id}/remove",
2245
2332
  ...options,
2246
2333
  headers: {
2247
2334
  "Content-Type": "application/json",
2248
2335
  ...options.headers
2249
2336
  }
2250
2337
  });
2251
- var webhooksCreatePortal = (options) => (options?.client ?? client).post({
2338
+ var googleListAssetGroupAssets = (options) => (options.client ?? client).get({
2252
2339
  security: [{
2253
2340
  key: "secretKey",
2254
2341
  scheme: "bearer",
2255
2342
  type: "http"
2343
+ }, {
2344
+ key: "frontendToken",
2345
+ scheme: "bearer",
2346
+ type: "http"
2256
2347
  }],
2257
- url: "/webhooks/portal",
2348
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/assets",
2258
2349
  ...options
2259
2350
  });
2260
- var webhooksListEventTypes = (options) => (options?.client ?? client).get({
2351
+ var googleAttachAssetGroupAsset = (options) => (options.client ?? client).post({
2261
2352
  security: [{
2262
2353
  key: "secretKey",
2263
2354
  scheme: "bearer",
2264
2355
  type: "http"
2356
+ }, {
2357
+ key: "frontendToken",
2358
+ scheme: "bearer",
2359
+ type: "http"
2265
2360
  }],
2266
- url: "/webhooks/event-types",
2267
- ...options
2361
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/assets",
2362
+ ...options,
2363
+ headers: {
2364
+ "Content-Type": "application/json",
2365
+ ...options.headers
2366
+ }
2268
2367
  });
2269
- var webhooksPing = (options) => (options.client ?? client).post({
2368
+ var googleRemoveAssetGroupAsset = (options) => (options.client ?? client).post({
2270
2369
  security: [{
2271
2370
  key: "secretKey",
2272
2371
  scheme: "bearer",
2273
2372
  type: "http"
2373
+ }, {
2374
+ key: "frontendToken",
2375
+ scheme: "bearer",
2376
+ type: "http"
2274
2377
  }],
2275
- url: "/webhooks/ping",
2378
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/assets/{id}/remove",
2276
2379
  ...options,
2277
2380
  headers: {
2278
2381
  "Content-Type": "application/json",
2279
2382
  ...options.headers
2280
2383
  }
2281
2384
  });
2282
- var tokensMint = (options) => (options.client ?? client).post({
2385
+ var googleListAssetGroupSignals = (options) => (options.client ?? client).get({
2283
2386
  security: [{
2284
2387
  key: "secretKey",
2285
2388
  scheme: "bearer",
2286
2389
  type: "http"
2390
+ }, {
2391
+ key: "frontendToken",
2392
+ scheme: "bearer",
2393
+ type: "http"
2287
2394
  }],
2288
- url: "/tokens",
2395
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/signals",
2396
+ ...options
2397
+ });
2398
+ var googleCreateAssetGroupSignal = (options) => (options.client ?? client).post({
2399
+ security: [{
2400
+ key: "secretKey",
2401
+ scheme: "bearer",
2402
+ type: "http"
2403
+ }, {
2404
+ key: "frontendToken",
2405
+ scheme: "bearer",
2406
+ type: "http"
2407
+ }],
2408
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/signals",
2289
2409
  ...options,
2290
2410
  headers: {
2291
2411
  "Content-Type": "application/json",
2292
2412
  ...options.headers
2293
2413
  }
2294
2414
  });
2295
-
2296
- // src/client/@tanstack/react-query.gen.ts
2297
- var createQueryKey = (id, options, infinite, tags) => {
2298
- const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
2299
- if (infinite) {
2300
- params._infinite = infinite;
2301
- }
2302
- if (options?.body) {
2303
- params.body = options.body;
2304
- }
2305
- if (options?.headers) {
2306
- params.headers = options.headers;
2307
- }
2308
- if (options?.path) {
2309
- params.path = options.path;
2310
- }
2311
- if (options?.query) {
2312
- params.query = options.query;
2415
+ var googleRemoveAssetGroupSignal = (options) => (options.client ?? client).post({
2416
+ security: [{
2417
+ key: "secretKey",
2418
+ scheme: "bearer",
2419
+ type: "http"
2420
+ }, {
2421
+ key: "frontendToken",
2422
+ scheme: "bearer",
2423
+ type: "http"
2424
+ }],
2425
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/signals/{id}/remove",
2426
+ ...options,
2427
+ headers: {
2428
+ "Content-Type": "application/json",
2429
+ ...options.headers
2313
2430
  }
2314
- return [params];
2315
- };
2316
- var profilesListQueryKey = (options) => createQueryKey("profilesList", options);
2317
- var profilesListOptions = (options) => reactQuery.queryOptions({
2318
- queryFn: async ({ queryKey, signal }) => {
2319
- const { data } = await profilesList({
2320
- ...options,
2321
- ...queryKey[0],
2322
- signal,
2323
- throwOnError: true
2324
- });
2325
- return data;
2326
- },
2327
- queryKey: profilesListQueryKey(options)
2328
2431
  });
2329
- var createInfiniteParams = (queryKey, page) => {
2330
- const params = { ...queryKey[0] };
2331
- if (page.body) {
2332
- params.body = {
2333
- ...queryKey[0].body,
2334
- ...page.body
2335
- };
2336
- }
2337
- if (page.headers) {
2338
- params.headers = {
2339
- ...queryKey[0].headers,
2340
- ...page.headers
2341
- };
2342
- }
2343
- if (page.path) {
2344
- params.path = {
2345
- ...queryKey[0].path,
2346
- ...page.path
2347
- };
2348
- }
2349
- if (page.query) {
2350
- params.query = {
2351
- ...queryKey[0].query,
2352
- ...page.query
2353
- };
2432
+ var googleCreatePerformanceMax = (options) => (options.client ?? client).post({
2433
+ security: [{
2434
+ key: "secretKey",
2435
+ scheme: "bearer",
2436
+ type: "http"
2437
+ }],
2438
+ url: "/google/{connection_id}/performance-max",
2439
+ ...options,
2440
+ headers: {
2441
+ "Content-Type": "application/json",
2442
+ ...options.headers
2354
2443
  }
2355
- return params;
2356
- };
2357
- var profilesListInfiniteQueryKey = (options) => createQueryKey("profilesList", options, true);
2358
- var profilesListInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
2359
- // @ts-ignore
2360
- {
2361
- queryFn: async ({ pageParam, queryKey, signal }) => {
2362
- const page = typeof pageParam === "object" ? pageParam : {
2363
- query: {
2364
- offset: pageParam
2365
- }
2366
- };
2367
- const params = createInfiniteParams(queryKey, page);
2368
- const { data } = await profilesList({
2369
- ...options,
2370
- ...params,
2371
- signal,
2372
- throwOnError: true
2373
- });
2374
- return data;
2375
- },
2376
- queryKey: profilesListInfiniteQueryKey(options)
2444
+ });
2445
+ var tiktokCreatorInfo = (options) => (options.client ?? client).get({
2446
+ security: [{
2447
+ key: "secretKey",
2448
+ scheme: "bearer",
2449
+ type: "http"
2450
+ }, {
2451
+ key: "frontendToken",
2452
+ scheme: "bearer",
2453
+ type: "http"
2454
+ }],
2455
+ url: "/connections/{id}/tiktok/creator-info",
2456
+ ...options
2457
+ });
2458
+ var tiktokAdsListAdvertisers = (options) => (options.client ?? client).get({
2459
+ security: [{
2460
+ key: "secretKey",
2461
+ scheme: "bearer",
2462
+ type: "http"
2463
+ }, {
2464
+ key: "frontendToken",
2465
+ scheme: "bearer",
2466
+ type: "http"
2467
+ }],
2468
+ url: "/tiktok/{connection_id}/advertisers",
2469
+ ...options
2470
+ });
2471
+ var tiktokAdsListBusinessCenters = (options) => (options.client ?? client).get({
2472
+ security: [{
2473
+ key: "secretKey",
2474
+ scheme: "bearer",
2475
+ type: "http"
2476
+ }, {
2477
+ key: "frontendToken",
2478
+ scheme: "bearer",
2479
+ type: "http"
2480
+ }],
2481
+ url: "/tiktok/{connection_id}/business-centers",
2482
+ ...options
2483
+ });
2484
+ var tiktokAdsListCampaigns = (options) => (options.client ?? client).get({
2485
+ security: [{
2486
+ key: "secretKey",
2487
+ scheme: "bearer",
2488
+ type: "http"
2489
+ }, {
2490
+ key: "frontendToken",
2491
+ scheme: "bearer",
2492
+ type: "http"
2493
+ }],
2494
+ url: "/tiktok/{connection_id}/campaigns",
2495
+ ...options
2496
+ });
2497
+ var tiktokAdsCreateCampaign = (options) => (options.client ?? client).post({
2498
+ security: [{
2499
+ key: "secretKey",
2500
+ scheme: "bearer",
2501
+ type: "http"
2502
+ }],
2503
+ url: "/tiktok/{connection_id}/campaigns",
2504
+ ...options,
2505
+ headers: {
2506
+ "Content-Type": "application/json",
2507
+ ...options.headers
2508
+ }
2509
+ });
2510
+ var tiktokAdsUpdateCampaignStatus = (options) => (options.client ?? client).post({
2511
+ security: [{
2512
+ key: "secretKey",
2513
+ scheme: "bearer",
2514
+ type: "http"
2515
+ }, {
2516
+ key: "frontendToken",
2517
+ scheme: "bearer",
2518
+ type: "http"
2519
+ }],
2520
+ url: "/tiktok/{connection_id}/campaigns/{campaign_id}/status",
2521
+ ...options,
2522
+ headers: {
2523
+ "Content-Type": "application/json",
2524
+ ...options.headers
2525
+ }
2526
+ });
2527
+ var tiktokAdsUpdateCampaignBudget = (options) => (options.client ?? client).post({
2528
+ security: [{
2529
+ key: "secretKey",
2530
+ scheme: "bearer",
2531
+ type: "http"
2532
+ }],
2533
+ url: "/tiktok/{connection_id}/campaigns/{campaign_id}/budget",
2534
+ ...options,
2535
+ headers: {
2536
+ "Content-Type": "application/json",
2537
+ ...options.headers
2538
+ }
2539
+ });
2540
+ var tiktokAdsRemoveCampaign = (options) => (options.client ?? client).post({
2541
+ security: [{
2542
+ key: "secretKey",
2543
+ scheme: "bearer",
2544
+ type: "http"
2545
+ }, {
2546
+ key: "frontendToken",
2547
+ scheme: "bearer",
2548
+ type: "http"
2549
+ }],
2550
+ url: "/tiktok/{connection_id}/campaigns/{campaign_id}/remove",
2551
+ ...options
2552
+ });
2553
+ var tiktokAdsListAdGroups = (options) => (options.client ?? client).get({
2554
+ security: [{
2555
+ key: "secretKey",
2556
+ scheme: "bearer",
2557
+ type: "http"
2558
+ }, {
2559
+ key: "frontendToken",
2560
+ scheme: "bearer",
2561
+ type: "http"
2562
+ }],
2563
+ url: "/tiktok/{connection_id}/ad-groups",
2564
+ ...options
2565
+ });
2566
+ var tiktokAdsCreateAdGroup = (options) => (options.client ?? client).post({
2567
+ security: [{
2568
+ key: "secretKey",
2569
+ scheme: "bearer",
2570
+ type: "http"
2571
+ }],
2572
+ url: "/tiktok/{connection_id}/ad-groups",
2573
+ ...options,
2574
+ headers: {
2575
+ "Content-Type": "application/json",
2576
+ ...options.headers
2577
+ }
2578
+ });
2579
+ var tiktokAdsUpdateAdGroupStatus = (options) => (options.client ?? client).post({
2580
+ security: [{
2581
+ key: "secretKey",
2582
+ scheme: "bearer",
2583
+ type: "http"
2584
+ }, {
2585
+ key: "frontendToken",
2586
+ scheme: "bearer",
2587
+ type: "http"
2588
+ }],
2589
+ url: "/tiktok/{connection_id}/ad-groups/{adgroup_id}/status",
2590
+ ...options,
2591
+ headers: {
2592
+ "Content-Type": "application/json",
2593
+ ...options.headers
2594
+ }
2595
+ });
2596
+ var tiktokAdsUpdateAdGroupBudget = (options) => (options.client ?? client).post({
2597
+ security: [{
2598
+ key: "secretKey",
2599
+ scheme: "bearer",
2600
+ type: "http"
2601
+ }],
2602
+ url: "/tiktok/{connection_id}/ad-groups/{adgroup_id}/budget",
2603
+ ...options,
2604
+ headers: {
2605
+ "Content-Type": "application/json",
2606
+ ...options.headers
2607
+ }
2608
+ });
2609
+ var tiktokAdsRemoveAdGroup = (options) => (options.client ?? client).post({
2610
+ security: [{
2611
+ key: "secretKey",
2612
+ scheme: "bearer",
2613
+ type: "http"
2614
+ }, {
2615
+ key: "frontendToken",
2616
+ scheme: "bearer",
2617
+ type: "http"
2618
+ }],
2619
+ url: "/tiktok/{connection_id}/ad-groups/{adgroup_id}/remove",
2620
+ ...options
2621
+ });
2622
+ var tiktokAdsListAds = (options) => (options.client ?? client).get({
2623
+ security: [{
2624
+ key: "secretKey",
2625
+ scheme: "bearer",
2626
+ type: "http"
2627
+ }, {
2628
+ key: "frontendToken",
2629
+ scheme: "bearer",
2630
+ type: "http"
2631
+ }],
2632
+ url: "/tiktok/{connection_id}/ads",
2633
+ ...options
2634
+ });
2635
+ var tiktokAdsCreateAd = (options) => (options.client ?? client).post({
2636
+ security: [{
2637
+ key: "secretKey",
2638
+ scheme: "bearer",
2639
+ type: "http"
2640
+ }, {
2641
+ key: "frontendToken",
2642
+ scheme: "bearer",
2643
+ type: "http"
2644
+ }],
2645
+ url: "/tiktok/{connection_id}/ads",
2646
+ ...options,
2647
+ headers: {
2648
+ "Content-Type": "application/json",
2649
+ ...options.headers
2650
+ }
2651
+ });
2652
+ var tiktokAdsUpdateAdStatus = (options) => (options.client ?? client).post({
2653
+ security: [{
2654
+ key: "secretKey",
2655
+ scheme: "bearer",
2656
+ type: "http"
2657
+ }, {
2658
+ key: "frontendToken",
2659
+ scheme: "bearer",
2660
+ type: "http"
2661
+ }],
2662
+ url: "/tiktok/{connection_id}/ads/{ad_id}/status",
2663
+ ...options,
2664
+ headers: {
2665
+ "Content-Type": "application/json",
2666
+ ...options.headers
2667
+ }
2668
+ });
2669
+ var tiktokAdsRemoveAd = (options) => (options.client ?? client).post({
2670
+ security: [{
2671
+ key: "secretKey",
2672
+ scheme: "bearer",
2673
+ type: "http"
2674
+ }, {
2675
+ key: "frontendToken",
2676
+ scheme: "bearer",
2677
+ type: "http"
2678
+ }],
2679
+ url: "/tiktok/{connection_id}/ads/{ad_id}/remove",
2680
+ ...options
2681
+ });
2682
+ var tiktokAdsGetInsights = (options) => (options.client ?? client).post({
2683
+ security: [{
2684
+ key: "secretKey",
2685
+ scheme: "bearer",
2686
+ type: "http"
2687
+ }, {
2688
+ key: "frontendToken",
2689
+ scheme: "bearer",
2690
+ type: "http"
2691
+ }],
2692
+ url: "/tiktok/{connection_id}/insights",
2693
+ ...options,
2694
+ headers: {
2695
+ "Content-Type": "application/json",
2696
+ ...options.headers
2697
+ }
2698
+ });
2699
+ var tiktokAdsGetAdTree = (options) => (options.client ?? client).get({
2700
+ security: [{
2701
+ key: "secretKey",
2702
+ scheme: "bearer",
2703
+ type: "http"
2704
+ }, {
2705
+ key: "frontendToken",
2706
+ scheme: "bearer",
2707
+ type: "http"
2708
+ }],
2709
+ url: "/tiktok/{connection_id}/ads/tree",
2710
+ ...options
2711
+ });
2712
+ var tiktokAdsListIdentities = (options) => (options.client ?? client).get({
2713
+ security: [{
2714
+ key: "secretKey",
2715
+ scheme: "bearer",
2716
+ type: "http"
2717
+ }, {
2718
+ key: "frontendToken",
2719
+ scheme: "bearer",
2720
+ type: "http"
2721
+ }],
2722
+ url: "/tiktok/{connection_id}/identities",
2723
+ ...options
2724
+ });
2725
+ var tiktokAdsCreateIdentity = (options) => (options.client ?? client).post({
2726
+ security: [{
2727
+ key: "secretKey",
2728
+ scheme: "bearer",
2729
+ type: "http"
2730
+ }, {
2731
+ key: "frontendToken",
2732
+ scheme: "bearer",
2733
+ type: "http"
2734
+ }],
2735
+ url: "/tiktok/{connection_id}/identities",
2736
+ ...options,
2737
+ headers: {
2738
+ "Content-Type": "application/json",
2739
+ ...options.headers
2740
+ }
2741
+ });
2742
+ var logsList = (options) => (options?.client ?? client).get({
2743
+ security: [{
2744
+ key: "secretKey",
2745
+ scheme: "bearer",
2746
+ type: "http"
2747
+ }],
2748
+ url: "/logs",
2749
+ ...options
2750
+ });
2751
+ var logsGet = (options) => (options.client ?? client).get({
2752
+ security: [{
2753
+ key: "secretKey",
2754
+ scheme: "bearer",
2755
+ type: "http"
2756
+ }],
2757
+ url: "/logs/{id}",
2758
+ ...options
2759
+ });
2760
+ var webhooksListEndpoints = (options) => (options?.client ?? client).get({
2761
+ security: [{
2762
+ key: "secretKey",
2763
+ scheme: "bearer",
2764
+ type: "http"
2765
+ }],
2766
+ url: "/webhooks/endpoints",
2767
+ ...options
2768
+ });
2769
+ var webhooksCreateEndpoint = (options) => (options.client ?? client).post({
2770
+ security: [{
2771
+ key: "secretKey",
2772
+ scheme: "bearer",
2773
+ type: "http"
2774
+ }],
2775
+ url: "/webhooks/endpoints",
2776
+ ...options,
2777
+ headers: {
2778
+ "Content-Type": "application/json",
2779
+ ...options.headers
2780
+ }
2781
+ });
2782
+ var webhooksDeleteEndpoint = (options) => (options.client ?? client).delete({
2783
+ security: [{
2784
+ key: "secretKey",
2785
+ scheme: "bearer",
2786
+ type: "http"
2787
+ }],
2788
+ url: "/webhooks/endpoints/{id}",
2789
+ ...options
2790
+ });
2791
+ var webhooksGetEndpoint = (options) => (options.client ?? client).get({
2792
+ security: [{
2793
+ key: "secretKey",
2794
+ scheme: "bearer",
2795
+ type: "http"
2796
+ }],
2797
+ url: "/webhooks/endpoints/{id}",
2798
+ ...options
2799
+ });
2800
+ var webhooksUpdateEndpoint = (options) => (options.client ?? client).patch({
2801
+ security: [{
2802
+ key: "secretKey",
2803
+ scheme: "bearer",
2804
+ type: "http"
2805
+ }],
2806
+ url: "/webhooks/endpoints/{id}",
2807
+ ...options,
2808
+ headers: {
2809
+ "Content-Type": "application/json",
2810
+ ...options.headers
2811
+ }
2812
+ });
2813
+ var webhooksCreatePortal = (options) => (options?.client ?? client).post({
2814
+ security: [{
2815
+ key: "secretKey",
2816
+ scheme: "bearer",
2817
+ type: "http"
2818
+ }],
2819
+ url: "/webhooks/portal",
2820
+ ...options
2821
+ });
2822
+ var webhooksListEventTypes = (options) => (options?.client ?? client).get({
2823
+ security: [{
2824
+ key: "secretKey",
2825
+ scheme: "bearer",
2826
+ type: "http"
2827
+ }],
2828
+ url: "/webhooks/event-types",
2829
+ ...options
2830
+ });
2831
+ var webhooksPing = (options) => (options.client ?? client).post({
2832
+ security: [{
2833
+ key: "secretKey",
2834
+ scheme: "bearer",
2835
+ type: "http"
2836
+ }],
2837
+ url: "/webhooks/ping",
2838
+ ...options,
2839
+ headers: {
2840
+ "Content-Type": "application/json",
2841
+ ...options.headers
2842
+ }
2843
+ });
2844
+ var tokensMint = (options) => (options.client ?? client).post({
2845
+ security: [{
2846
+ key: "secretKey",
2847
+ scheme: "bearer",
2848
+ type: "http"
2849
+ }],
2850
+ url: "/tokens",
2851
+ ...options,
2852
+ headers: {
2853
+ "Content-Type": "application/json",
2854
+ ...options.headers
2855
+ }
2856
+ });
2857
+
2858
+ // src/client/@tanstack/react-query.gen.ts
2859
+ var createQueryKey = (id, options, infinite, tags) => {
2860
+ const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
2861
+ if (infinite) {
2862
+ params._infinite = infinite;
2863
+ }
2864
+ if (options?.body) {
2865
+ params.body = options.body;
2866
+ }
2867
+ if (options?.headers) {
2868
+ params.headers = options.headers;
2869
+ }
2870
+ if (options?.path) {
2871
+ params.path = options.path;
2872
+ }
2873
+ if (options?.query) {
2874
+ params.query = options.query;
2875
+ }
2876
+ return [params];
2877
+ };
2878
+ var profilesListQueryKey = (options) => createQueryKey("profilesList", options);
2879
+ var profilesListOptions = (options) => reactQuery.queryOptions({
2880
+ queryFn: async ({ queryKey, signal }) => {
2881
+ const { data } = await profilesList({
2882
+ ...options,
2883
+ ...queryKey[0],
2884
+ signal,
2885
+ throwOnError: true
2886
+ });
2887
+ return data;
2888
+ },
2889
+ queryKey: profilesListQueryKey(options)
2890
+ });
2891
+ var createInfiniteParams = (queryKey, page) => {
2892
+ const params = { ...queryKey[0] };
2893
+ if (page.body) {
2894
+ params.body = {
2895
+ ...queryKey[0].body,
2896
+ ...page.body
2897
+ };
2898
+ }
2899
+ if (page.headers) {
2900
+ params.headers = {
2901
+ ...queryKey[0].headers,
2902
+ ...page.headers
2903
+ };
2904
+ }
2905
+ if (page.path) {
2906
+ params.path = {
2907
+ ...queryKey[0].path,
2908
+ ...page.path
2909
+ };
2910
+ }
2911
+ if (page.query) {
2912
+ params.query = {
2913
+ ...queryKey[0].query,
2914
+ ...page.query
2915
+ };
2916
+ }
2917
+ return params;
2918
+ };
2919
+ var profilesListInfiniteQueryKey = (options) => createQueryKey("profilesList", options, true);
2920
+ var profilesListInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
2921
+ // @ts-ignore
2922
+ {
2923
+ queryFn: async ({ pageParam, queryKey, signal }) => {
2924
+ const page = typeof pageParam === "object" ? pageParam : {
2925
+ query: {
2926
+ offset: pageParam
2927
+ }
2928
+ };
2929
+ const params = createInfiniteParams(queryKey, page);
2930
+ const { data } = await profilesList({
2931
+ ...options,
2932
+ ...params,
2933
+ signal,
2934
+ throwOnError: true
2935
+ });
2936
+ return data;
2937
+ },
2938
+ queryKey: profilesListInfiniteQueryKey(options)
2939
+ }
2940
+ );
2941
+ var profilesCreateMutation = (options) => {
2942
+ const mutationOptions = {
2943
+ mutationFn: async (fnOptions) => {
2944
+ const { data } = await profilesCreate({
2945
+ ...options,
2946
+ ...fnOptions,
2947
+ throwOnError: true
2948
+ });
2949
+ return data;
2950
+ }
2951
+ };
2952
+ return mutationOptions;
2953
+ };
2954
+ var profilesDeleteMutation = (options) => {
2955
+ const mutationOptions = {
2956
+ mutationFn: async (fnOptions) => {
2957
+ const { data } = await profilesDelete({
2958
+ ...options,
2959
+ ...fnOptions,
2960
+ throwOnError: true
2961
+ });
2962
+ return data;
2963
+ }
2964
+ };
2965
+ return mutationOptions;
2966
+ };
2967
+ var profilesGetQueryKey = (options) => createQueryKey("profilesGet", options);
2968
+ var profilesGetOptions = (options) => reactQuery.queryOptions({
2969
+ queryFn: async ({ queryKey, signal }) => {
2970
+ const { data } = await profilesGet({
2971
+ ...options,
2972
+ ...queryKey[0],
2973
+ signal,
2974
+ throwOnError: true
2975
+ });
2976
+ return data;
2977
+ },
2978
+ queryKey: profilesGetQueryKey(options)
2979
+ });
2980
+ var profilesUpdateMutation = (options) => {
2981
+ const mutationOptions = {
2982
+ mutationFn: async (fnOptions) => {
2983
+ const { data } = await profilesUpdate({
2984
+ ...options,
2985
+ ...fnOptions,
2986
+ throwOnError: true
2987
+ });
2988
+ return data;
2989
+ }
2990
+ };
2991
+ return mutationOptions;
2992
+ };
2993
+ var connectionsListByProfileQueryKey = (options) => createQueryKey("connectionsListByProfile", options);
2994
+ var connectionsListByProfileOptions = (options) => reactQuery.queryOptions({
2995
+ queryFn: async ({ queryKey, signal }) => {
2996
+ const { data } = await connectionsListByProfile({
2997
+ ...options,
2998
+ ...queryKey[0],
2999
+ signal,
3000
+ throwOnError: true
3001
+ });
3002
+ return data;
3003
+ },
3004
+ queryKey: connectionsListByProfileQueryKey(options)
3005
+ });
3006
+ var connectionsListByProfileInfiniteQueryKey = (options) => createQueryKey("connectionsListByProfile", options, true);
3007
+ var connectionsListByProfileInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
3008
+ // @ts-ignore
3009
+ {
3010
+ queryFn: async ({ pageParam, queryKey, signal }) => {
3011
+ const page = typeof pageParam === "object" ? pageParam : {
3012
+ query: {
3013
+ offset: pageParam
3014
+ }
3015
+ };
3016
+ const params = createInfiniteParams(queryKey, page);
3017
+ const { data } = await connectionsListByProfile({
3018
+ ...options,
3019
+ ...params,
3020
+ signal,
3021
+ throwOnError: true
3022
+ });
3023
+ return data;
3024
+ },
3025
+ queryKey: connectionsListByProfileInfiniteQueryKey(options)
3026
+ }
3027
+ );
3028
+ var connectionsDeleteMutation = (options) => {
3029
+ const mutationOptions = {
3030
+ mutationFn: async (fnOptions) => {
3031
+ const { data } = await connectionsDelete({
3032
+ ...options,
3033
+ ...fnOptions,
3034
+ throwOnError: true
3035
+ });
3036
+ return data;
3037
+ }
3038
+ };
3039
+ return mutationOptions;
3040
+ };
3041
+ var connectionsGetQueryKey = (options) => createQueryKey("connectionsGet", options);
3042
+ var connectionsGetOptions = (options) => reactQuery.queryOptions({
3043
+ queryFn: async ({ queryKey, signal }) => {
3044
+ const { data } = await connectionsGet({
3045
+ ...options,
3046
+ ...queryKey[0],
3047
+ signal,
3048
+ throwOnError: true
3049
+ });
3050
+ return data;
3051
+ },
3052
+ queryKey: connectionsGetQueryKey(options)
3053
+ });
3054
+ var connectionsSelectMutation = (options) => {
3055
+ const mutationOptions = {
3056
+ mutationFn: async (fnOptions) => {
3057
+ const { data } = await connectionsSelect({
3058
+ ...options,
3059
+ ...fnOptions,
3060
+ throwOnError: true
3061
+ });
3062
+ return data;
3063
+ }
3064
+ };
3065
+ return mutationOptions;
3066
+ };
3067
+ var connectionsListAccountsQueryKey = (options) => createQueryKey("connectionsListAccounts", options);
3068
+ var connectionsListAccountsOptions = (options) => reactQuery.queryOptions({
3069
+ queryFn: async ({ queryKey, signal }) => {
3070
+ const { data } = await connectionsListAccounts({
3071
+ ...options,
3072
+ ...queryKey[0],
3073
+ signal,
3074
+ throwOnError: true
3075
+ });
3076
+ return data;
3077
+ },
3078
+ queryKey: connectionsListAccountsQueryKey(options)
3079
+ });
3080
+ var connectionsConnectMutation = (options) => {
3081
+ const mutationOptions = {
3082
+ mutationFn: async (fnOptions) => {
3083
+ const { data } = await connectionsConnect({
3084
+ ...options,
3085
+ ...fnOptions,
3086
+ throwOnError: true
3087
+ });
3088
+ return data;
3089
+ }
3090
+ };
3091
+ return mutationOptions;
3092
+ };
3093
+ var mediaListQueryKey = (options) => createQueryKey("mediaList", options);
3094
+ var mediaListOptions = (options) => reactQuery.queryOptions({
3095
+ queryFn: async ({ queryKey, signal }) => {
3096
+ const { data } = await mediaList({
3097
+ ...options,
3098
+ ...queryKey[0],
3099
+ signal,
3100
+ throwOnError: true
3101
+ });
3102
+ return data;
3103
+ },
3104
+ queryKey: mediaListQueryKey(options)
3105
+ });
3106
+ var mediaListInfiniteQueryKey = (options) => createQueryKey("mediaList", options, true);
3107
+ var mediaListInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
3108
+ // @ts-ignore
3109
+ {
3110
+ queryFn: async ({ pageParam, queryKey, signal }) => {
3111
+ const page = typeof pageParam === "object" ? pageParam : {
3112
+ query: {
3113
+ offset: pageParam
3114
+ }
3115
+ };
3116
+ const params = createInfiniteParams(queryKey, page);
3117
+ const { data } = await mediaList({
3118
+ ...options,
3119
+ ...params,
3120
+ signal,
3121
+ throwOnError: true
3122
+ });
3123
+ return data;
3124
+ },
3125
+ queryKey: mediaListInfiniteQueryKey(options)
2377
3126
  }
2378
3127
  );
2379
- var profilesCreateMutation = (options) => {
3128
+ var mediaCreateMutation = (options) => {
3129
+ const mutationOptions = {
3130
+ mutationFn: async (fnOptions) => {
3131
+ const { data } = await mediaCreate({
3132
+ ...options,
3133
+ ...fnOptions,
3134
+ throwOnError: true
3135
+ });
3136
+ return data;
3137
+ }
3138
+ };
3139
+ return mutationOptions;
3140
+ };
3141
+ var mediaDeleteMutation = (options) => {
3142
+ const mutationOptions = {
3143
+ mutationFn: async (fnOptions) => {
3144
+ const { data } = await mediaDelete({
3145
+ ...options,
3146
+ ...fnOptions,
3147
+ throwOnError: true
3148
+ });
3149
+ return data;
3150
+ }
3151
+ };
3152
+ return mutationOptions;
3153
+ };
3154
+ var mediaGetQueryKey = (options) => createQueryKey("mediaGet", options);
3155
+ var mediaGetOptions = (options) => reactQuery.queryOptions({
3156
+ queryFn: async ({ queryKey, signal }) => {
3157
+ const { data } = await mediaGet({
3158
+ ...options,
3159
+ ...queryKey[0],
3160
+ signal,
3161
+ throwOnError: true
3162
+ });
3163
+ return data;
3164
+ },
3165
+ queryKey: mediaGetQueryKey(options)
3166
+ });
3167
+ var mediaUpdateMutation = (options) => {
3168
+ const mutationOptions = {
3169
+ mutationFn: async (fnOptions) => {
3170
+ const { data } = await mediaUpdate({
3171
+ ...options,
3172
+ ...fnOptions,
3173
+ throwOnError: true
3174
+ });
3175
+ return data;
3176
+ }
3177
+ };
3178
+ return mutationOptions;
3179
+ };
3180
+ var mediaSignPartMutation = (options) => {
3181
+ const mutationOptions = {
3182
+ mutationFn: async (fnOptions) => {
3183
+ const { data } = await mediaSignPart({
3184
+ ...options,
3185
+ ...fnOptions,
3186
+ throwOnError: true
3187
+ });
3188
+ return data;
3189
+ }
3190
+ };
3191
+ return mutationOptions;
3192
+ };
3193
+ var mediaListPartsQueryKey = (options) => createQueryKey("mediaListParts", options);
3194
+ var mediaListPartsOptions = (options) => reactQuery.queryOptions({
3195
+ queryFn: async ({ queryKey, signal }) => {
3196
+ const { data } = await mediaListParts({
3197
+ ...options,
3198
+ ...queryKey[0],
3199
+ signal,
3200
+ throwOnError: true
3201
+ });
3202
+ return data;
3203
+ },
3204
+ queryKey: mediaListPartsQueryKey(options)
3205
+ });
3206
+ var mediaCompleteMutation = (options) => {
3207
+ const mutationOptions = {
3208
+ mutationFn: async (fnOptions) => {
3209
+ const { data } = await mediaComplete({
3210
+ ...options,
3211
+ ...fnOptions,
3212
+ throwOnError: true
3213
+ });
3214
+ return data;
3215
+ }
3216
+ };
3217
+ return mutationOptions;
3218
+ };
3219
+ var mediaAbortMutation = (options) => {
3220
+ const mutationOptions = {
3221
+ mutationFn: async (fnOptions) => {
3222
+ const { data } = await mediaAbort({
3223
+ ...options,
3224
+ ...fnOptions,
3225
+ throwOnError: true
3226
+ });
3227
+ return data;
3228
+ }
3229
+ };
3230
+ return mutationOptions;
3231
+ };
3232
+ var postsListQueryKey = (options) => createQueryKey("postsList", options);
3233
+ var postsListOptions = (options) => reactQuery.queryOptions({
3234
+ queryFn: async ({ queryKey, signal }) => {
3235
+ const { data } = await postsList({
3236
+ ...options,
3237
+ ...queryKey[0],
3238
+ signal,
3239
+ throwOnError: true
3240
+ });
3241
+ return data;
3242
+ },
3243
+ queryKey: postsListQueryKey(options)
3244
+ });
3245
+ var postsListInfiniteQueryKey = (options) => createQueryKey("postsList", options, true);
3246
+ var postsListInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
3247
+ // @ts-ignore
3248
+ {
3249
+ queryFn: async ({ pageParam, queryKey, signal }) => {
3250
+ const page = typeof pageParam === "object" ? pageParam : {
3251
+ query: {
3252
+ offset: pageParam
3253
+ }
3254
+ };
3255
+ const params = createInfiniteParams(queryKey, page);
3256
+ const { data } = await postsList({
3257
+ ...options,
3258
+ ...params,
3259
+ signal,
3260
+ throwOnError: true
3261
+ });
3262
+ return data;
3263
+ },
3264
+ queryKey: postsListInfiniteQueryKey(options)
3265
+ }
3266
+ );
3267
+ var postsCreateMutation = (options) => {
3268
+ const mutationOptions = {
3269
+ mutationFn: async (fnOptions) => {
3270
+ const { data } = await postsCreate({
3271
+ ...options,
3272
+ ...fnOptions,
3273
+ throwOnError: true
3274
+ });
3275
+ return data;
3276
+ }
3277
+ };
3278
+ return mutationOptions;
3279
+ };
3280
+ var postsDeleteMutation = (options) => {
3281
+ const mutationOptions = {
3282
+ mutationFn: async (fnOptions) => {
3283
+ const { data } = await postsDelete({
3284
+ ...options,
3285
+ ...fnOptions,
3286
+ throwOnError: true
3287
+ });
3288
+ return data;
3289
+ }
3290
+ };
3291
+ return mutationOptions;
3292
+ };
3293
+ var postsGetQueryKey = (options) => createQueryKey("postsGet", options);
3294
+ var postsGetOptions = (options) => reactQuery.queryOptions({
3295
+ queryFn: async ({ queryKey, signal }) => {
3296
+ const { data } = await postsGet({
3297
+ ...options,
3298
+ ...queryKey[0],
3299
+ signal,
3300
+ throwOnError: true
3301
+ });
3302
+ return data;
3303
+ },
3304
+ queryKey: postsGetQueryKey(options)
3305
+ });
3306
+ var postsUpdateMutation = (options) => {
3307
+ const mutationOptions = {
3308
+ mutationFn: async (fnOptions) => {
3309
+ const { data } = await postsUpdate({
3310
+ ...options,
3311
+ ...fnOptions,
3312
+ throwOnError: true
3313
+ });
3314
+ return data;
3315
+ }
3316
+ };
3317
+ return mutationOptions;
3318
+ };
3319
+ var postsValidateMutation = (options) => {
3320
+ const mutationOptions = {
3321
+ mutationFn: async (fnOptions) => {
3322
+ const { data } = await postsValidate({
3323
+ ...options,
3324
+ ...fnOptions,
3325
+ throwOnError: true
3326
+ });
3327
+ return data;
3328
+ }
3329
+ };
3330
+ return mutationOptions;
3331
+ };
3332
+ var metaAccountQueryKey = (options) => createQueryKey("metaAccount", options);
3333
+ var metaAccountOptions = (options) => reactQuery.queryOptions({
3334
+ queryFn: async ({ queryKey, signal }) => {
3335
+ const { data } = await metaAccount({
3336
+ ...options,
3337
+ ...queryKey[0],
3338
+ signal,
3339
+ throwOnError: true
3340
+ });
3341
+ return data;
3342
+ },
3343
+ queryKey: metaAccountQueryKey(options)
3344
+ });
3345
+ var metaInsightsQueryKey = (options) => createQueryKey("metaInsights", options);
3346
+ var metaInsightsOptions = (options) => reactQuery.queryOptions({
3347
+ queryFn: async ({ queryKey, signal }) => {
3348
+ const { data } = await metaInsights({
3349
+ ...options,
3350
+ ...queryKey[0],
3351
+ signal,
3352
+ throwOnError: true
3353
+ });
3354
+ return data;
3355
+ },
3356
+ queryKey: metaInsightsQueryKey(options)
3357
+ });
3358
+ var metaCampaignsQueryKey = (options) => createQueryKey("metaCampaigns", options);
3359
+ var metaCampaignsOptions = (options) => reactQuery.queryOptions({
3360
+ queryFn: async ({ queryKey, signal }) => {
3361
+ const { data } = await metaCampaigns({
3362
+ ...options,
3363
+ ...queryKey[0],
3364
+ signal,
3365
+ throwOnError: true
3366
+ });
3367
+ return data;
3368
+ },
3369
+ queryKey: metaCampaignsQueryKey(options)
3370
+ });
3371
+ var metaCampaignQueryKey = (options) => createQueryKey("metaCampaign", options);
3372
+ var metaCampaignOptions = (options) => reactQuery.queryOptions({
3373
+ queryFn: async ({ queryKey, signal }) => {
3374
+ const { data } = await metaCampaign({
3375
+ ...options,
3376
+ ...queryKey[0],
3377
+ signal,
3378
+ throwOnError: true
3379
+ });
3380
+ return data;
3381
+ },
3382
+ queryKey: metaCampaignQueryKey(options)
3383
+ });
3384
+ var metaAdsetsQueryKey = (options) => createQueryKey("metaAdsets", options);
3385
+ var metaAdsetsOptions = (options) => reactQuery.queryOptions({
3386
+ queryFn: async ({ queryKey, signal }) => {
3387
+ const { data } = await metaAdsets({
3388
+ ...options,
3389
+ ...queryKey[0],
3390
+ signal,
3391
+ throwOnError: true
3392
+ });
3393
+ return data;
3394
+ },
3395
+ queryKey: metaAdsetsQueryKey(options)
3396
+ });
3397
+ var metaAdsetQueryKey = (options) => createQueryKey("metaAdset", options);
3398
+ var metaAdsetOptions = (options) => reactQuery.queryOptions({
3399
+ queryFn: async ({ queryKey, signal }) => {
3400
+ const { data } = await metaAdset({
3401
+ ...options,
3402
+ ...queryKey[0],
3403
+ signal,
3404
+ throwOnError: true
3405
+ });
3406
+ return data;
3407
+ },
3408
+ queryKey: metaAdsetQueryKey(options)
3409
+ });
3410
+ var metaAdsQueryKey = (options) => createQueryKey("metaAds", options);
3411
+ var metaAdsOptions = (options) => reactQuery.queryOptions({
3412
+ queryFn: async ({ queryKey, signal }) => {
3413
+ const { data } = await metaAds({
3414
+ ...options,
3415
+ ...queryKey[0],
3416
+ signal,
3417
+ throwOnError: true
3418
+ });
3419
+ return data;
3420
+ },
3421
+ queryKey: metaAdsQueryKey(options)
3422
+ });
3423
+ var metaAdQueryKey = (options) => createQueryKey("metaAd", options);
3424
+ var metaAdOptions = (options) => reactQuery.queryOptions({
3425
+ queryFn: async ({ queryKey, signal }) => {
3426
+ const { data } = await metaAd({
3427
+ ...options,
3428
+ ...queryKey[0],
3429
+ signal,
3430
+ throwOnError: true
3431
+ });
3432
+ return data;
3433
+ },
3434
+ queryKey: metaAdQueryKey(options)
3435
+ });
3436
+ var googleGetAccountQueryKey = (options) => createQueryKey("googleGetAccount", options);
3437
+ var googleGetAccountOptions = (options) => reactQuery.queryOptions({
3438
+ queryFn: async ({ queryKey, signal }) => {
3439
+ const { data } = await googleGetAccount({
3440
+ ...options,
3441
+ ...queryKey[0],
3442
+ signal,
3443
+ throwOnError: true
3444
+ });
3445
+ return data;
3446
+ },
3447
+ queryKey: googleGetAccountQueryKey(options)
3448
+ });
3449
+ var googleEditAccountMutation = (options) => {
2380
3450
  const mutationOptions = {
2381
3451
  mutationFn: async (fnOptions) => {
2382
- const { data } = await profilesCreate({
3452
+ const { data } = await googleEditAccount({
2383
3453
  ...options,
2384
3454
  ...fnOptions,
2385
3455
  throwOnError: true
@@ -2389,10 +3459,10 @@ var profilesCreateMutation = (options) => {
2389
3459
  };
2390
3460
  return mutationOptions;
2391
3461
  };
2392
- var profilesDeleteMutation = (options) => {
3462
+ var googleGetInsightsMutation = (options) => {
2393
3463
  const mutationOptions = {
2394
3464
  mutationFn: async (fnOptions) => {
2395
- const { data } = await profilesDelete({
3465
+ const { data } = await googleGetInsights({
2396
3466
  ...options,
2397
3467
  ...fnOptions,
2398
3468
  throwOnError: true
@@ -2402,10 +3472,10 @@ var profilesDeleteMutation = (options) => {
2402
3472
  };
2403
3473
  return mutationOptions;
2404
3474
  };
2405
- var profilesGetQueryKey = (options) => createQueryKey("profilesGet", options);
2406
- var profilesGetOptions = (options) => reactQuery.queryOptions({
3475
+ var googleGetAdTreeQueryKey = (options) => createQueryKey("googleGetAdTree", options);
3476
+ var googleGetAdTreeOptions = (options) => reactQuery.queryOptions({
2407
3477
  queryFn: async ({ queryKey, signal }) => {
2408
- const { data } = await profilesGet({
3478
+ const { data } = await googleGetAdTree({
2409
3479
  ...options,
2410
3480
  ...queryKey[0],
2411
3481
  signal,
@@ -2413,12 +3483,12 @@ var profilesGetOptions = (options) => reactQuery.queryOptions({
2413
3483
  });
2414
3484
  return data;
2415
3485
  },
2416
- queryKey: profilesGetQueryKey(options)
3486
+ queryKey: googleGetAdTreeQueryKey(options)
2417
3487
  });
2418
- var profilesUpdateMutation = (options) => {
3488
+ var googleRunGaqlMutation = (options) => {
2419
3489
  const mutationOptions = {
2420
3490
  mutationFn: async (fnOptions) => {
2421
- const { data } = await profilesUpdate({
3491
+ const { data } = await googleRunGaql({
2422
3492
  ...options,
2423
3493
  ...fnOptions,
2424
3494
  throwOnError: true
@@ -2428,10 +3498,49 @@ var profilesUpdateMutation = (options) => {
2428
3498
  };
2429
3499
  return mutationOptions;
2430
3500
  };
2431
- var connectionsListByProfileQueryKey = (options) => createQueryKey("connectionsListByProfile", options);
2432
- var connectionsListByProfileOptions = (options) => reactQuery.queryOptions({
3501
+ var googleCreateBudgetMutation = (options) => {
3502
+ const mutationOptions = {
3503
+ mutationFn: async (fnOptions) => {
3504
+ const { data } = await googleCreateBudget({
3505
+ ...options,
3506
+ ...fnOptions,
3507
+ throwOnError: true
3508
+ });
3509
+ return data;
3510
+ }
3511
+ };
3512
+ return mutationOptions;
3513
+ };
3514
+ var googleEditBudgetMutation = (options) => {
3515
+ const mutationOptions = {
3516
+ mutationFn: async (fnOptions) => {
3517
+ const { data } = await googleEditBudget({
3518
+ ...options,
3519
+ ...fnOptions,
3520
+ throwOnError: true
3521
+ });
3522
+ return data;
3523
+ }
3524
+ };
3525
+ return mutationOptions;
3526
+ };
3527
+ var googleRemoveBudgetMutation = (options) => {
3528
+ const mutationOptions = {
3529
+ mutationFn: async (fnOptions) => {
3530
+ const { data } = await googleRemoveBudget({
3531
+ ...options,
3532
+ ...fnOptions,
3533
+ throwOnError: true
3534
+ });
3535
+ return data;
3536
+ }
3537
+ };
3538
+ return mutationOptions;
3539
+ };
3540
+ var googleListCampaignsQueryKey = (options) => createQueryKey("googleListCampaigns", options);
3541
+ var googleListCampaignsOptions = (options) => reactQuery.queryOptions({
2433
3542
  queryFn: async ({ queryKey, signal }) => {
2434
- const { data } = await connectionsListByProfile({
3543
+ const { data } = await googleListCampaigns({
2435
3544
  ...options,
2436
3545
  ...queryKey[0],
2437
3546
  signal,
@@ -2439,34 +3548,12 @@ var connectionsListByProfileOptions = (options) => reactQuery.queryOptions({
2439
3548
  });
2440
3549
  return data;
2441
3550
  },
2442
- queryKey: connectionsListByProfileQueryKey(options)
3551
+ queryKey: googleListCampaignsQueryKey(options)
2443
3552
  });
2444
- var connectionsListByProfileInfiniteQueryKey = (options) => createQueryKey("connectionsListByProfile", options, true);
2445
- var connectionsListByProfileInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
2446
- // @ts-ignore
2447
- {
2448
- queryFn: async ({ pageParam, queryKey, signal }) => {
2449
- const page = typeof pageParam === "object" ? pageParam : {
2450
- query: {
2451
- offset: pageParam
2452
- }
2453
- };
2454
- const params = createInfiniteParams(queryKey, page);
2455
- const { data } = await connectionsListByProfile({
2456
- ...options,
2457
- ...params,
2458
- signal,
2459
- throwOnError: true
2460
- });
2461
- return data;
2462
- },
2463
- queryKey: connectionsListByProfileInfiniteQueryKey(options)
2464
- }
2465
- );
2466
- var connectionsDeleteMutation = (options) => {
3553
+ var googleCreateCampaignMutation = (options) => {
2467
3554
  const mutationOptions = {
2468
3555
  mutationFn: async (fnOptions) => {
2469
- const { data } = await connectionsDelete({
3556
+ const { data } = await googleCreateCampaign({
2470
3557
  ...options,
2471
3558
  ...fnOptions,
2472
3559
  throwOnError: true
@@ -2476,10 +3563,10 @@ var connectionsDeleteMutation = (options) => {
2476
3563
  };
2477
3564
  return mutationOptions;
2478
3565
  };
2479
- var connectionsGetQueryKey = (options) => createQueryKey("connectionsGet", options);
2480
- var connectionsGetOptions = (options) => reactQuery.queryOptions({
3566
+ var googleGetCampaignQueryKey = (options) => createQueryKey("googleGetCampaign", options);
3567
+ var googleGetCampaignOptions = (options) => reactQuery.queryOptions({
2481
3568
  queryFn: async ({ queryKey, signal }) => {
2482
- const { data } = await connectionsGet({
3569
+ const { data } = await googleGetCampaign({
2483
3570
  ...options,
2484
3571
  ...queryKey[0],
2485
3572
  signal,
@@ -2487,12 +3574,64 @@ var connectionsGetOptions = (options) => reactQuery.queryOptions({
2487
3574
  });
2488
3575
  return data;
2489
3576
  },
2490
- queryKey: connectionsGetQueryKey(options)
3577
+ queryKey: googleGetCampaignQueryKey(options)
2491
3578
  });
2492
- var connectionsSelectMutation = (options) => {
3579
+ var googleEditCampaignMutation = (options) => {
3580
+ const mutationOptions = {
3581
+ mutationFn: async (fnOptions) => {
3582
+ const { data } = await googleEditCampaign({
3583
+ ...options,
3584
+ ...fnOptions,
3585
+ throwOnError: true
3586
+ });
3587
+ return data;
3588
+ }
3589
+ };
3590
+ return mutationOptions;
3591
+ };
3592
+ var googleSetCampaignBiddingMutation = (options) => {
3593
+ const mutationOptions = {
3594
+ mutationFn: async (fnOptions) => {
3595
+ const { data } = await googleSetCampaignBidding({
3596
+ ...options,
3597
+ ...fnOptions,
3598
+ throwOnError: true
3599
+ });
3600
+ return data;
3601
+ }
3602
+ };
3603
+ return mutationOptions;
3604
+ };
3605
+ var googleRemoveCampaignMutation = (options) => {
3606
+ const mutationOptions = {
3607
+ mutationFn: async (fnOptions) => {
3608
+ const { data } = await googleRemoveCampaign({
3609
+ ...options,
3610
+ ...fnOptions,
3611
+ throwOnError: true
3612
+ });
3613
+ return data;
3614
+ }
3615
+ };
3616
+ return mutationOptions;
3617
+ };
3618
+ var googlePauseCampaignMutation = (options) => {
3619
+ const mutationOptions = {
3620
+ mutationFn: async (fnOptions) => {
3621
+ const { data } = await googlePauseCampaign({
3622
+ ...options,
3623
+ ...fnOptions,
3624
+ throwOnError: true
3625
+ });
3626
+ return data;
3627
+ }
3628
+ };
3629
+ return mutationOptions;
3630
+ };
3631
+ var googleEnableCampaignMutation = (options) => {
2493
3632
  const mutationOptions = {
2494
3633
  mutationFn: async (fnOptions) => {
2495
- const { data } = await connectionsSelect({
3634
+ const { data } = await googleEnableCampaign({
2496
3635
  ...options,
2497
3636
  ...fnOptions,
2498
3637
  throwOnError: true
@@ -2502,10 +3641,10 @@ var connectionsSelectMutation = (options) => {
2502
3641
  };
2503
3642
  return mutationOptions;
2504
3643
  };
2505
- var connectionsListAccountsQueryKey = (options) => createQueryKey("connectionsListAccounts", options);
2506
- var connectionsListAccountsOptions = (options) => reactQuery.queryOptions({
3644
+ var googleSearchGeoTargetsQueryKey = (options) => createQueryKey("googleSearchGeoTargets", options);
3645
+ var googleSearchGeoTargetsOptions = (options) => reactQuery.queryOptions({
2507
3646
  queryFn: async ({ queryKey, signal }) => {
2508
- const { data } = await connectionsListAccounts({
3647
+ const { data } = await googleSearchGeoTargets({
2509
3648
  ...options,
2510
3649
  ...queryKey[0],
2511
3650
  signal,
@@ -2513,25 +3652,12 @@ var connectionsListAccountsOptions = (options) => reactQuery.queryOptions({
2513
3652
  });
2514
3653
  return data;
2515
3654
  },
2516
- queryKey: connectionsListAccountsQueryKey(options)
3655
+ queryKey: googleSearchGeoTargetsQueryKey(options)
2517
3656
  });
2518
- var connectionsConnectMutation = (options) => {
2519
- const mutationOptions = {
2520
- mutationFn: async (fnOptions) => {
2521
- const { data } = await connectionsConnect({
2522
- ...options,
2523
- ...fnOptions,
2524
- throwOnError: true
2525
- });
2526
- return data;
2527
- }
2528
- };
2529
- return mutationOptions;
2530
- };
2531
- var mediaListQueryKey = (options) => createQueryKey("mediaList", options);
2532
- var mediaListOptions = (options) => reactQuery.queryOptions({
3657
+ var googleListCampaignCriteriaQueryKey = (options) => createQueryKey("googleListCampaignCriteria", options);
3658
+ var googleListCampaignCriteriaOptions = (options) => reactQuery.queryOptions({
2533
3659
  queryFn: async ({ queryKey, signal }) => {
2534
- const { data } = await mediaList({
3660
+ const { data } = await googleListCampaignCriteria({
2535
3661
  ...options,
2536
3662
  ...queryKey[0],
2537
3663
  signal,
@@ -2539,34 +3665,25 @@ var mediaListOptions = (options) => reactQuery.queryOptions({
2539
3665
  });
2540
3666
  return data;
2541
3667
  },
2542
- queryKey: mediaListQueryKey(options)
3668
+ queryKey: googleListCampaignCriteriaQueryKey(options)
2543
3669
  });
2544
- var mediaListInfiniteQueryKey = (options) => createQueryKey("mediaList", options, true);
2545
- var mediaListInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
2546
- // @ts-ignore
2547
- {
2548
- queryFn: async ({ pageParam, queryKey, signal }) => {
2549
- const page = typeof pageParam === "object" ? pageParam : {
2550
- query: {
2551
- offset: pageParam
2552
- }
2553
- };
2554
- const params = createInfiniteParams(queryKey, page);
2555
- const { data } = await mediaList({
3670
+ var googleCreateCampaignCriterionMutation = (options) => {
3671
+ const mutationOptions = {
3672
+ mutationFn: async (fnOptions) => {
3673
+ const { data } = await googleCreateCampaignCriterion({
2556
3674
  ...options,
2557
- ...params,
2558
- signal,
3675
+ ...fnOptions,
2559
3676
  throwOnError: true
2560
3677
  });
2561
3678
  return data;
2562
- },
2563
- queryKey: mediaListInfiniteQueryKey(options)
2564
- }
2565
- );
2566
- var mediaCreateMutation = (options) => {
3679
+ }
3680
+ };
3681
+ return mutationOptions;
3682
+ };
3683
+ var googleRemoveCampaignCriterionMutation = (options) => {
2567
3684
  const mutationOptions = {
2568
3685
  mutationFn: async (fnOptions) => {
2569
- const { data } = await mediaCreate({
3686
+ const { data } = await googleRemoveCampaignCriterion({
2570
3687
  ...options,
2571
3688
  ...fnOptions,
2572
3689
  throwOnError: true
@@ -2576,10 +3693,10 @@ var mediaCreateMutation = (options) => {
2576
3693
  };
2577
3694
  return mutationOptions;
2578
3695
  };
2579
- var mediaDeleteMutation = (options) => {
3696
+ var googleSetCampaignGeoSettingsMutation = (options) => {
2580
3697
  const mutationOptions = {
2581
3698
  mutationFn: async (fnOptions) => {
2582
- const { data } = await mediaDelete({
3699
+ const { data } = await googleSetCampaignGeoSettings({
2583
3700
  ...options,
2584
3701
  ...fnOptions,
2585
3702
  throwOnError: true
@@ -2589,10 +3706,10 @@ var mediaDeleteMutation = (options) => {
2589
3706
  };
2590
3707
  return mutationOptions;
2591
3708
  };
2592
- var mediaGetQueryKey = (options) => createQueryKey("mediaGet", options);
2593
- var mediaGetOptions = (options) => reactQuery.queryOptions({
3709
+ var googleListAdGroupsQueryKey = (options) => createQueryKey("googleListAdGroups", options);
3710
+ var googleListAdGroupsOptions = (options) => reactQuery.queryOptions({
2594
3711
  queryFn: async ({ queryKey, signal }) => {
2595
- const { data } = await mediaGet({
3712
+ const { data } = await googleListAdGroups({
2596
3713
  ...options,
2597
3714
  ...queryKey[0],
2598
3715
  signal,
@@ -2600,25 +3717,12 @@ var mediaGetOptions = (options) => reactQuery.queryOptions({
2600
3717
  });
2601
3718
  return data;
2602
3719
  },
2603
- queryKey: mediaGetQueryKey(options)
3720
+ queryKey: googleListAdGroupsQueryKey(options)
2604
3721
  });
2605
- var mediaUpdateMutation = (options) => {
2606
- const mutationOptions = {
2607
- mutationFn: async (fnOptions) => {
2608
- const { data } = await mediaUpdate({
2609
- ...options,
2610
- ...fnOptions,
2611
- throwOnError: true
2612
- });
2613
- return data;
2614
- }
2615
- };
2616
- return mutationOptions;
2617
- };
2618
- var mediaSignPartMutation = (options) => {
3722
+ var googleCreateAdGroupMutation = (options) => {
2619
3723
  const mutationOptions = {
2620
3724
  mutationFn: async (fnOptions) => {
2621
- const { data } = await mediaSignPart({
3725
+ const { data } = await googleCreateAdGroup({
2622
3726
  ...options,
2623
3727
  ...fnOptions,
2624
3728
  throwOnError: true
@@ -2628,10 +3732,10 @@ var mediaSignPartMutation = (options) => {
2628
3732
  };
2629
3733
  return mutationOptions;
2630
3734
  };
2631
- var mediaListPartsQueryKey = (options) => createQueryKey("mediaListParts", options);
2632
- var mediaListPartsOptions = (options) => reactQuery.queryOptions({
3735
+ var googleGetAdGroupQueryKey = (options) => createQueryKey("googleGetAdGroup", options);
3736
+ var googleGetAdGroupOptions = (options) => reactQuery.queryOptions({
2633
3737
  queryFn: async ({ queryKey, signal }) => {
2634
- const { data } = await mediaListParts({
3738
+ const { data } = await googleGetAdGroup({
2635
3739
  ...options,
2636
3740
  ...queryKey[0],
2637
3741
  signal,
@@ -2639,12 +3743,12 @@ var mediaListPartsOptions = (options) => reactQuery.queryOptions({
2639
3743
  });
2640
3744
  return data;
2641
3745
  },
2642
- queryKey: mediaListPartsQueryKey(options)
3746
+ queryKey: googleGetAdGroupQueryKey(options)
2643
3747
  });
2644
- var mediaCompleteMutation = (options) => {
3748
+ var googleEditAdGroupMutation = (options) => {
2645
3749
  const mutationOptions = {
2646
3750
  mutationFn: async (fnOptions) => {
2647
- const { data } = await mediaComplete({
3751
+ const { data } = await googleEditAdGroup({
2648
3752
  ...options,
2649
3753
  ...fnOptions,
2650
3754
  throwOnError: true
@@ -2654,10 +3758,10 @@ var mediaCompleteMutation = (options) => {
2654
3758
  };
2655
3759
  return mutationOptions;
2656
3760
  };
2657
- var mediaAbortMutation = (options) => {
3761
+ var googleSetAdGroupBidsMutation = (options) => {
2658
3762
  const mutationOptions = {
2659
3763
  mutationFn: async (fnOptions) => {
2660
- const { data } = await mediaAbort({
3764
+ const { data } = await googleSetAdGroupBids({
2661
3765
  ...options,
2662
3766
  ...fnOptions,
2663
3767
  throwOnError: true
@@ -2667,45 +3771,23 @@ var mediaAbortMutation = (options) => {
2667
3771
  };
2668
3772
  return mutationOptions;
2669
3773
  };
2670
- var postsListQueryKey = (options) => createQueryKey("postsList", options);
2671
- var postsListOptions = (options) => reactQuery.queryOptions({
2672
- queryFn: async ({ queryKey, signal }) => {
2673
- const { data } = await postsList({
2674
- ...options,
2675
- ...queryKey[0],
2676
- signal,
2677
- throwOnError: true
2678
- });
2679
- return data;
2680
- },
2681
- queryKey: postsListQueryKey(options)
2682
- });
2683
- var postsListInfiniteQueryKey = (options) => createQueryKey("postsList", options, true);
2684
- var postsListInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
2685
- // @ts-ignore
2686
- {
2687
- queryFn: async ({ pageParam, queryKey, signal }) => {
2688
- const page = typeof pageParam === "object" ? pageParam : {
2689
- query: {
2690
- offset: pageParam
2691
- }
2692
- };
2693
- const params = createInfiniteParams(queryKey, page);
2694
- const { data } = await postsList({
3774
+ var googleRemoveAdGroupMutation = (options) => {
3775
+ const mutationOptions = {
3776
+ mutationFn: async (fnOptions) => {
3777
+ const { data } = await googleRemoveAdGroup({
2695
3778
  ...options,
2696
- ...params,
2697
- signal,
3779
+ ...fnOptions,
2698
3780
  throwOnError: true
2699
3781
  });
2700
3782
  return data;
2701
- },
2702
- queryKey: postsListInfiniteQueryKey(options)
2703
- }
2704
- );
2705
- var postsCreateMutation = (options) => {
3783
+ }
3784
+ };
3785
+ return mutationOptions;
3786
+ };
3787
+ var googlePauseAdGroupMutation = (options) => {
2706
3788
  const mutationOptions = {
2707
3789
  mutationFn: async (fnOptions) => {
2708
- const { data } = await postsCreate({
3790
+ const { data } = await googlePauseAdGroup({
2709
3791
  ...options,
2710
3792
  ...fnOptions,
2711
3793
  throwOnError: true
@@ -2715,10 +3797,10 @@ var postsCreateMutation = (options) => {
2715
3797
  };
2716
3798
  return mutationOptions;
2717
3799
  };
2718
- var postsDeleteMutation = (options) => {
3800
+ var googleEnableAdGroupMutation = (options) => {
2719
3801
  const mutationOptions = {
2720
3802
  mutationFn: async (fnOptions) => {
2721
- const { data } = await postsDelete({
3803
+ const { data } = await googleEnableAdGroup({
2722
3804
  ...options,
2723
3805
  ...fnOptions,
2724
3806
  throwOnError: true
@@ -2728,10 +3810,10 @@ var postsDeleteMutation = (options) => {
2728
3810
  };
2729
3811
  return mutationOptions;
2730
3812
  };
2731
- var postsGetQueryKey = (options) => createQueryKey("postsGet", options);
2732
- var postsGetOptions = (options) => reactQuery.queryOptions({
3813
+ var googleListAdGroupCriteriaQueryKey = (options) => createQueryKey("googleListAdGroupCriteria", options);
3814
+ var googleListAdGroupCriteriaOptions = (options) => reactQuery.queryOptions({
2733
3815
  queryFn: async ({ queryKey, signal }) => {
2734
- const { data } = await postsGet({
3816
+ const { data } = await googleListAdGroupCriteria({
2735
3817
  ...options,
2736
3818
  ...queryKey[0],
2737
3819
  signal,
@@ -2739,12 +3821,12 @@ var postsGetOptions = (options) => reactQuery.queryOptions({
2739
3821
  });
2740
3822
  return data;
2741
3823
  },
2742
- queryKey: postsGetQueryKey(options)
3824
+ queryKey: googleListAdGroupCriteriaQueryKey(options)
2743
3825
  });
2744
- var postsUpdateMutation = (options) => {
3826
+ var googleCreateAdGroupCriterionMutation = (options) => {
2745
3827
  const mutationOptions = {
2746
3828
  mutationFn: async (fnOptions) => {
2747
- const { data } = await postsUpdate({
3829
+ const { data } = await googleCreateAdGroupCriterion({
2748
3830
  ...options,
2749
3831
  ...fnOptions,
2750
3832
  throwOnError: true
@@ -2754,10 +3836,10 @@ var postsUpdateMutation = (options) => {
2754
3836
  };
2755
3837
  return mutationOptions;
2756
3838
  };
2757
- var postsValidateMutation = (options) => {
3839
+ var googleRemoveAdGroupCriterionMutation = (options) => {
2758
3840
  const mutationOptions = {
2759
3841
  mutationFn: async (fnOptions) => {
2760
- const { data } = await postsValidate({
3842
+ const { data } = await googleRemoveAdGroupCriterion({
2761
3843
  ...options,
2762
3844
  ...fnOptions,
2763
3845
  throwOnError: true
@@ -2766,89 +3848,11 @@ var postsValidateMutation = (options) => {
2766
3848
  }
2767
3849
  };
2768
3850
  return mutationOptions;
2769
- };
2770
- var metaAccountQueryKey = (options) => createQueryKey("metaAccount", options);
2771
- var metaAccountOptions = (options) => reactQuery.queryOptions({
2772
- queryFn: async ({ queryKey, signal }) => {
2773
- const { data } = await metaAccount({
2774
- ...options,
2775
- ...queryKey[0],
2776
- signal,
2777
- throwOnError: true
2778
- });
2779
- return data;
2780
- },
2781
- queryKey: metaAccountQueryKey(options)
2782
- });
2783
- var metaInsightsQueryKey = (options) => createQueryKey("metaInsights", options);
2784
- var metaInsightsOptions = (options) => reactQuery.queryOptions({
2785
- queryFn: async ({ queryKey, signal }) => {
2786
- const { data } = await metaInsights({
2787
- ...options,
2788
- ...queryKey[0],
2789
- signal,
2790
- throwOnError: true
2791
- });
2792
- return data;
2793
- },
2794
- queryKey: metaInsightsQueryKey(options)
2795
- });
2796
- var metaCampaignsQueryKey = (options) => createQueryKey("metaCampaigns", options);
2797
- var metaCampaignsOptions = (options) => reactQuery.queryOptions({
2798
- queryFn: async ({ queryKey, signal }) => {
2799
- const { data } = await metaCampaigns({
2800
- ...options,
2801
- ...queryKey[0],
2802
- signal,
2803
- throwOnError: true
2804
- });
2805
- return data;
2806
- },
2807
- queryKey: metaCampaignsQueryKey(options)
2808
- });
2809
- var metaCampaignQueryKey = (options) => createQueryKey("metaCampaign", options);
2810
- var metaCampaignOptions = (options) => reactQuery.queryOptions({
2811
- queryFn: async ({ queryKey, signal }) => {
2812
- const { data } = await metaCampaign({
2813
- ...options,
2814
- ...queryKey[0],
2815
- signal,
2816
- throwOnError: true
2817
- });
2818
- return data;
2819
- },
2820
- queryKey: metaCampaignQueryKey(options)
2821
- });
2822
- var metaAdsetsQueryKey = (options) => createQueryKey("metaAdsets", options);
2823
- var metaAdsetsOptions = (options) => reactQuery.queryOptions({
2824
- queryFn: async ({ queryKey, signal }) => {
2825
- const { data } = await metaAdsets({
2826
- ...options,
2827
- ...queryKey[0],
2828
- signal,
2829
- throwOnError: true
2830
- });
2831
- return data;
2832
- },
2833
- queryKey: metaAdsetsQueryKey(options)
2834
- });
2835
- var metaAdsetQueryKey = (options) => createQueryKey("metaAdset", options);
2836
- var metaAdsetOptions = (options) => reactQuery.queryOptions({
2837
- queryFn: async ({ queryKey, signal }) => {
2838
- const { data } = await metaAdset({
2839
- ...options,
2840
- ...queryKey[0],
2841
- signal,
2842
- throwOnError: true
2843
- });
2844
- return data;
2845
- },
2846
- queryKey: metaAdsetQueryKey(options)
2847
- });
2848
- var metaAdsQueryKey = (options) => createQueryKey("metaAds", options);
2849
- var metaAdsOptions = (options) => reactQuery.queryOptions({
3851
+ };
3852
+ var googleListAudiencesQueryKey = (options) => createQueryKey("googleListAudiences", options);
3853
+ var googleListAudiencesOptions = (options) => reactQuery.queryOptions({
2850
3854
  queryFn: async ({ queryKey, signal }) => {
2851
- const { data } = await metaAds({
3855
+ const { data } = await googleListAudiences({
2852
3856
  ...options,
2853
3857
  ...queryKey[0],
2854
3858
  signal,
@@ -2856,12 +3860,25 @@ var metaAdsOptions = (options) => reactQuery.queryOptions({
2856
3860
  });
2857
3861
  return data;
2858
3862
  },
2859
- queryKey: metaAdsQueryKey(options)
3863
+ queryKey: googleListAudiencesQueryKey(options)
2860
3864
  });
2861
- var metaAdQueryKey = (options) => createQueryKey("metaAd", options);
2862
- var metaAdOptions = (options) => reactQuery.queryOptions({
3865
+ var googleSetCampaignTargetingSettingMutation = (options) => {
3866
+ const mutationOptions = {
3867
+ mutationFn: async (fnOptions) => {
3868
+ const { data } = await googleSetCampaignTargetingSetting({
3869
+ ...options,
3870
+ ...fnOptions,
3871
+ throwOnError: true
3872
+ });
3873
+ return data;
3874
+ }
3875
+ };
3876
+ return mutationOptions;
3877
+ };
3878
+ var googleListAdsQueryKey = (options) => createQueryKey("googleListAds", options);
3879
+ var googleListAdsOptions = (options) => reactQuery.queryOptions({
2863
3880
  queryFn: async ({ queryKey, signal }) => {
2864
- const { data } = await metaAd({
3881
+ const { data } = await googleListAds({
2865
3882
  ...options,
2866
3883
  ...queryKey[0],
2867
3884
  signal,
@@ -2869,12 +3886,25 @@ var metaAdOptions = (options) => reactQuery.queryOptions({
2869
3886
  });
2870
3887
  return data;
2871
3888
  },
2872
- queryKey: metaAdQueryKey(options)
3889
+ queryKey: googleListAdsQueryKey(options)
2873
3890
  });
2874
- var googleGetAccountQueryKey = (options) => createQueryKey("googleGetAccount", options);
2875
- var googleGetAccountOptions = (options) => reactQuery.queryOptions({
3891
+ var googleCreateAdMutation = (options) => {
3892
+ const mutationOptions = {
3893
+ mutationFn: async (fnOptions) => {
3894
+ const { data } = await googleCreateAd({
3895
+ ...options,
3896
+ ...fnOptions,
3897
+ throwOnError: true
3898
+ });
3899
+ return data;
3900
+ }
3901
+ };
3902
+ return mutationOptions;
3903
+ };
3904
+ var googleGetAdQueryKey = (options) => createQueryKey("googleGetAd", options);
3905
+ var googleGetAdOptions = (options) => reactQuery.queryOptions({
2876
3906
  queryFn: async ({ queryKey, signal }) => {
2877
- const { data } = await googleGetAccount({
3907
+ const { data } = await googleGetAd({
2878
3908
  ...options,
2879
3909
  ...queryKey[0],
2880
3910
  signal,
@@ -2882,12 +3912,12 @@ var googleGetAccountOptions = (options) => reactQuery.queryOptions({
2882
3912
  });
2883
3913
  return data;
2884
3914
  },
2885
- queryKey: googleGetAccountQueryKey(options)
3915
+ queryKey: googleGetAdQueryKey(options)
2886
3916
  });
2887
- var googleEditAccountMutation = (options) => {
3917
+ var googleEditAdMutation = (options) => {
2888
3918
  const mutationOptions = {
2889
3919
  mutationFn: async (fnOptions) => {
2890
- const { data } = await googleEditAccount({
3920
+ const { data } = await googleEditAd({
2891
3921
  ...options,
2892
3922
  ...fnOptions,
2893
3923
  throwOnError: true
@@ -2897,10 +3927,10 @@ var googleEditAccountMutation = (options) => {
2897
3927
  };
2898
3928
  return mutationOptions;
2899
3929
  };
2900
- var googleGetInsightsMutation = (options) => {
3930
+ var googleCreateDisplayAdMutation = (options) => {
2901
3931
  const mutationOptions = {
2902
3932
  mutationFn: async (fnOptions) => {
2903
- const { data } = await googleGetInsights({
3933
+ const { data } = await googleCreateDisplayAd({
2904
3934
  ...options,
2905
3935
  ...fnOptions,
2906
3936
  throwOnError: true
@@ -2910,23 +3940,10 @@ var googleGetInsightsMutation = (options) => {
2910
3940
  };
2911
3941
  return mutationOptions;
2912
3942
  };
2913
- var googleGetAdTreeQueryKey = (options) => createQueryKey("googleGetAdTree", options);
2914
- var googleGetAdTreeOptions = (options) => reactQuery.queryOptions({
2915
- queryFn: async ({ queryKey, signal }) => {
2916
- const { data } = await googleGetAdTree({
2917
- ...options,
2918
- ...queryKey[0],
2919
- signal,
2920
- throwOnError: true
2921
- });
2922
- return data;
2923
- },
2924
- queryKey: googleGetAdTreeQueryKey(options)
2925
- });
2926
- var googleRunGaqlMutation = (options) => {
3943
+ var googleEditDisplayAdMutation = (options) => {
2927
3944
  const mutationOptions = {
2928
3945
  mutationFn: async (fnOptions) => {
2929
- const { data } = await googleRunGaql({
3946
+ const { data } = await googleEditDisplayAd({
2930
3947
  ...options,
2931
3948
  ...fnOptions,
2932
3949
  throwOnError: true
@@ -2936,10 +3953,10 @@ var googleRunGaqlMutation = (options) => {
2936
3953
  };
2937
3954
  return mutationOptions;
2938
3955
  };
2939
- var googleCreateBudgetMutation = (options) => {
3956
+ var googleRemoveAdMutation = (options) => {
2940
3957
  const mutationOptions = {
2941
3958
  mutationFn: async (fnOptions) => {
2942
- const { data } = await googleCreateBudget({
3959
+ const { data } = await googleRemoveAd({
2943
3960
  ...options,
2944
3961
  ...fnOptions,
2945
3962
  throwOnError: true
@@ -2949,10 +3966,10 @@ var googleCreateBudgetMutation = (options) => {
2949
3966
  };
2950
3967
  return mutationOptions;
2951
3968
  };
2952
- var googleEditBudgetMutation = (options) => {
3969
+ var googlePauseAdMutation = (options) => {
2953
3970
  const mutationOptions = {
2954
3971
  mutationFn: async (fnOptions) => {
2955
- const { data } = await googleEditBudget({
3972
+ const { data } = await googlePauseAd({
2956
3973
  ...options,
2957
3974
  ...fnOptions,
2958
3975
  throwOnError: true
@@ -2962,10 +3979,10 @@ var googleEditBudgetMutation = (options) => {
2962
3979
  };
2963
3980
  return mutationOptions;
2964
3981
  };
2965
- var googleRemoveBudgetMutation = (options) => {
3982
+ var googleEnableAdMutation = (options) => {
2966
3983
  const mutationOptions = {
2967
3984
  mutationFn: async (fnOptions) => {
2968
- const { data } = await googleRemoveBudget({
3985
+ const { data } = await googleEnableAd({
2969
3986
  ...options,
2970
3987
  ...fnOptions,
2971
3988
  throwOnError: true
@@ -2975,10 +3992,10 @@ var googleRemoveBudgetMutation = (options) => {
2975
3992
  };
2976
3993
  return mutationOptions;
2977
3994
  };
2978
- var googleListCampaignsQueryKey = (options) => createQueryKey("googleListCampaigns", options);
2979
- var googleListCampaignsOptions = (options) => reactQuery.queryOptions({
3995
+ var googleListKeywordsQueryKey = (options) => createQueryKey("googleListKeywords", options);
3996
+ var googleListKeywordsOptions = (options) => reactQuery.queryOptions({
2980
3997
  queryFn: async ({ queryKey, signal }) => {
2981
- const { data } = await googleListCampaigns({
3998
+ const { data } = await googleListKeywords({
2982
3999
  ...options,
2983
4000
  ...queryKey[0],
2984
4001
  signal,
@@ -2986,12 +4003,12 @@ var googleListCampaignsOptions = (options) => reactQuery.queryOptions({
2986
4003
  });
2987
4004
  return data;
2988
4005
  },
2989
- queryKey: googleListCampaignsQueryKey(options)
4006
+ queryKey: googleListKeywordsQueryKey(options)
2990
4007
  });
2991
- var googleCreateCampaignMutation = (options) => {
4008
+ var googleCreateKeywordMutation = (options) => {
2992
4009
  const mutationOptions = {
2993
4010
  mutationFn: async (fnOptions) => {
2994
- const { data } = await googleCreateCampaign({
4011
+ const { data } = await googleCreateKeyword({
2995
4012
  ...options,
2996
4013
  ...fnOptions,
2997
4014
  throwOnError: true
@@ -3001,10 +4018,10 @@ var googleCreateCampaignMutation = (options) => {
3001
4018
  };
3002
4019
  return mutationOptions;
3003
4020
  };
3004
- var googleGetCampaignQueryKey = (options) => createQueryKey("googleGetCampaign", options);
3005
- var googleGetCampaignOptions = (options) => reactQuery.queryOptions({
4021
+ var googleGetKeywordQueryKey = (options) => createQueryKey("googleGetKeyword", options);
4022
+ var googleGetKeywordOptions = (options) => reactQuery.queryOptions({
3006
4023
  queryFn: async ({ queryKey, signal }) => {
3007
- const { data } = await googleGetCampaign({
4024
+ const { data } = await googleGetKeyword({
3008
4025
  ...options,
3009
4026
  ...queryKey[0],
3010
4027
  signal,
@@ -3012,12 +4029,12 @@ var googleGetCampaignOptions = (options) => reactQuery.queryOptions({
3012
4029
  });
3013
4030
  return data;
3014
4031
  },
3015
- queryKey: googleGetCampaignQueryKey(options)
4032
+ queryKey: googleGetKeywordQueryKey(options)
3016
4033
  });
3017
- var googleEditCampaignMutation = (options) => {
4034
+ var googleSetKeywordBidMutation = (options) => {
3018
4035
  const mutationOptions = {
3019
4036
  mutationFn: async (fnOptions) => {
3020
- const { data } = await googleEditCampaign({
4037
+ const { data } = await googleSetKeywordBid({
3021
4038
  ...options,
3022
4039
  ...fnOptions,
3023
4040
  throwOnError: true
@@ -3027,10 +4044,10 @@ var googleEditCampaignMutation = (options) => {
3027
4044
  };
3028
4045
  return mutationOptions;
3029
4046
  };
3030
- var googleRemoveCampaignMutation = (options) => {
4047
+ var googleRemoveKeywordMutation = (options) => {
3031
4048
  const mutationOptions = {
3032
4049
  mutationFn: async (fnOptions) => {
3033
- const { data } = await googleRemoveCampaign({
4050
+ const { data } = await googleRemoveKeyword({
3034
4051
  ...options,
3035
4052
  ...fnOptions,
3036
4053
  throwOnError: true
@@ -3040,10 +4057,10 @@ var googleRemoveCampaignMutation = (options) => {
3040
4057
  };
3041
4058
  return mutationOptions;
3042
4059
  };
3043
- var googlePauseCampaignMutation = (options) => {
4060
+ var googlePauseKeywordMutation = (options) => {
3044
4061
  const mutationOptions = {
3045
4062
  mutationFn: async (fnOptions) => {
3046
- const { data } = await googlePauseCampaign({
4063
+ const { data } = await googlePauseKeyword({
3047
4064
  ...options,
3048
4065
  ...fnOptions,
3049
4066
  throwOnError: true
@@ -3053,10 +4070,10 @@ var googlePauseCampaignMutation = (options) => {
3053
4070
  };
3054
4071
  return mutationOptions;
3055
4072
  };
3056
- var googleEnableCampaignMutation = (options) => {
4073
+ var googleEnableKeywordMutation = (options) => {
3057
4074
  const mutationOptions = {
3058
4075
  mutationFn: async (fnOptions) => {
3059
- const { data } = await googleEnableCampaign({
4076
+ const { data } = await googleEnableKeyword({
3060
4077
  ...options,
3061
4078
  ...fnOptions,
3062
4079
  throwOnError: true
@@ -3066,10 +4083,10 @@ var googleEnableCampaignMutation = (options) => {
3066
4083
  };
3067
4084
  return mutationOptions;
3068
4085
  };
3069
- var googleSearchGeoTargetsQueryKey = (options) => createQueryKey("googleSearchGeoTargets", options);
3070
- var googleSearchGeoTargetsOptions = (options) => reactQuery.queryOptions({
4086
+ var googleListConversionActionsQueryKey = (options) => createQueryKey("googleListConversionActions", options);
4087
+ var googleListConversionActionsOptions = (options) => reactQuery.queryOptions({
3071
4088
  queryFn: async ({ queryKey, signal }) => {
3072
- const { data } = await googleSearchGeoTargets({
4089
+ const { data } = await googleListConversionActions({
3073
4090
  ...options,
3074
4091
  ...queryKey[0],
3075
4092
  signal,
@@ -3077,12 +4094,25 @@ var googleSearchGeoTargetsOptions = (options) => reactQuery.queryOptions({
3077
4094
  });
3078
4095
  return data;
3079
4096
  },
3080
- queryKey: googleSearchGeoTargetsQueryKey(options)
4097
+ queryKey: googleListConversionActionsQueryKey(options)
3081
4098
  });
3082
- var googleListCampaignCriteriaQueryKey = (options) => createQueryKey("googleListCampaignCriteria", options);
3083
- var googleListCampaignCriteriaOptions = (options) => reactQuery.queryOptions({
4099
+ var googleCreateConversionActionMutation = (options) => {
4100
+ const mutationOptions = {
4101
+ mutationFn: async (fnOptions) => {
4102
+ const { data } = await googleCreateConversionAction({
4103
+ ...options,
4104
+ ...fnOptions,
4105
+ throwOnError: true
4106
+ });
4107
+ return data;
4108
+ }
4109
+ };
4110
+ return mutationOptions;
4111
+ };
4112
+ var googleGetConversionActionQueryKey = (options) => createQueryKey("googleGetConversionAction", options);
4113
+ var googleGetConversionActionOptions = (options) => reactQuery.queryOptions({
3084
4114
  queryFn: async ({ queryKey, signal }) => {
3085
- const { data } = await googleListCampaignCriteria({
4115
+ const { data } = await googleGetConversionAction({
3086
4116
  ...options,
3087
4117
  ...queryKey[0],
3088
4118
  signal,
@@ -3090,12 +4120,12 @@ var googleListCampaignCriteriaOptions = (options) => reactQuery.queryOptions({
3090
4120
  });
3091
4121
  return data;
3092
4122
  },
3093
- queryKey: googleListCampaignCriteriaQueryKey(options)
4123
+ queryKey: googleGetConversionActionQueryKey(options)
3094
4124
  });
3095
- var googleCreateCampaignCriterionMutation = (options) => {
4125
+ var googleUpdateConversionActionMutation = (options) => {
3096
4126
  const mutationOptions = {
3097
4127
  mutationFn: async (fnOptions) => {
3098
- const { data } = await googleCreateCampaignCriterion({
4128
+ const { data } = await googleUpdateConversionAction({
3099
4129
  ...options,
3100
4130
  ...fnOptions,
3101
4131
  throwOnError: true
@@ -3105,10 +4135,10 @@ var googleCreateCampaignCriterionMutation = (options) => {
3105
4135
  };
3106
4136
  return mutationOptions;
3107
4137
  };
3108
- var googleRemoveCampaignCriterionMutation = (options) => {
4138
+ var googleRemoveConversionActionMutation = (options) => {
3109
4139
  const mutationOptions = {
3110
4140
  mutationFn: async (fnOptions) => {
3111
- const { data } = await googleRemoveCampaignCriterion({
4141
+ const { data } = await googleRemoveConversionAction({
3112
4142
  ...options,
3113
4143
  ...fnOptions,
3114
4144
  throwOnError: true
@@ -3118,10 +4148,10 @@ var googleRemoveCampaignCriterionMutation = (options) => {
3118
4148
  };
3119
4149
  return mutationOptions;
3120
4150
  };
3121
- var googleSetCampaignGeoSettingsMutation = (options) => {
4151
+ var googleSendConversionsMutation = (options) => {
3122
4152
  const mutationOptions = {
3123
4153
  mutationFn: async (fnOptions) => {
3124
- const { data } = await googleSetCampaignGeoSettings({
4154
+ const { data } = await googleSendConversions({
3125
4155
  ...options,
3126
4156
  ...fnOptions,
3127
4157
  throwOnError: true
@@ -3131,10 +4161,10 @@ var googleSetCampaignGeoSettingsMutation = (options) => {
3131
4161
  };
3132
4162
  return mutationOptions;
3133
4163
  };
3134
- var googleListAdGroupsQueryKey = (options) => createQueryKey("googleListAdGroups", options);
3135
- var googleListAdGroupsOptions = (options) => reactQuery.queryOptions({
4164
+ var googleGetConversionStatusQueryKey = (options) => createQueryKey("googleGetConversionStatus", options);
4165
+ var googleGetConversionStatusOptions = (options) => reactQuery.queryOptions({
3136
4166
  queryFn: async ({ queryKey, signal }) => {
3137
- const { data } = await googleListAdGroups({
4167
+ const { data } = await googleGetConversionStatus({
3138
4168
  ...options,
3139
4169
  ...queryKey[0],
3140
4170
  signal,
@@ -3142,12 +4172,60 @@ var googleListAdGroupsOptions = (options) => reactQuery.queryOptions({
3142
4172
  });
3143
4173
  return data;
3144
4174
  },
3145
- queryKey: googleListAdGroupsQueryKey(options)
4175
+ queryKey: googleGetConversionStatusQueryKey(options)
3146
4176
  });
3147
- var googleCreateAdGroupMutation = (options) => {
4177
+ var googleListConversionRequestsQueryKey = (options) => createQueryKey("googleListConversionRequests", options);
4178
+ var googleListConversionRequestsOptions = (options) => reactQuery.queryOptions({
4179
+ queryFn: async ({ queryKey, signal }) => {
4180
+ const { data } = await googleListConversionRequests({
4181
+ ...options,
4182
+ ...queryKey[0],
4183
+ signal,
4184
+ throwOnError: true
4185
+ });
4186
+ return data;
4187
+ },
4188
+ queryKey: googleListConversionRequestsQueryKey(options)
4189
+ });
4190
+ var googleListConversionRequestsInfiniteQueryKey = (options) => createQueryKey("googleListConversionRequests", options, true);
4191
+ var googleListConversionRequestsInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
4192
+ // @ts-ignore
4193
+ {
4194
+ queryFn: async ({ pageParam, queryKey, signal }) => {
4195
+ const page = typeof pageParam === "object" ? pageParam : {
4196
+ query: {
4197
+ offset: pageParam
4198
+ }
4199
+ };
4200
+ const params = createInfiniteParams(queryKey, page);
4201
+ const { data } = await googleListConversionRequests({
4202
+ ...options,
4203
+ ...params,
4204
+ signal,
4205
+ throwOnError: true
4206
+ });
4207
+ return data;
4208
+ },
4209
+ queryKey: googleListConversionRequestsInfiniteQueryKey(options)
4210
+ }
4211
+ );
4212
+ var googleListConversionGoalsQueryKey = (options) => createQueryKey("googleListConversionGoals", options);
4213
+ var googleListConversionGoalsOptions = (options) => reactQuery.queryOptions({
4214
+ queryFn: async ({ queryKey, signal }) => {
4215
+ const { data } = await googleListConversionGoals({
4216
+ ...options,
4217
+ ...queryKey[0],
4218
+ signal,
4219
+ throwOnError: true
4220
+ });
4221
+ return data;
4222
+ },
4223
+ queryKey: googleListConversionGoalsQueryKey(options)
4224
+ });
4225
+ var googleSetConversionGoalMutation = (options) => {
3148
4226
  const mutationOptions = {
3149
4227
  mutationFn: async (fnOptions) => {
3150
- const { data } = await googleCreateAdGroup({
4228
+ const { data } = await googleSetConversionGoal({
3151
4229
  ...options,
3152
4230
  ...fnOptions,
3153
4231
  throwOnError: true
@@ -3157,10 +4235,36 @@ var googleCreateAdGroupMutation = (options) => {
3157
4235
  };
3158
4236
  return mutationOptions;
3159
4237
  };
3160
- var googleGetAdGroupQueryKey = (options) => createQueryKey("googleGetAdGroup", options);
3161
- var googleGetAdGroupOptions = (options) => reactQuery.queryOptions({
4238
+ var googleUploadImageAssetMutation = (options) => {
4239
+ const mutationOptions = {
4240
+ mutationFn: async (fnOptions) => {
4241
+ const { data } = await googleUploadImageAsset({
4242
+ ...options,
4243
+ ...fnOptions,
4244
+ throwOnError: true
4245
+ });
4246
+ return data;
4247
+ }
4248
+ };
4249
+ return mutationOptions;
4250
+ };
4251
+ var googleUploadYoutubeVideoAssetMutation = (options) => {
4252
+ const mutationOptions = {
4253
+ mutationFn: async (fnOptions) => {
4254
+ const { data } = await googleUploadYoutubeVideoAsset({
4255
+ ...options,
4256
+ ...fnOptions,
4257
+ throwOnError: true
4258
+ });
4259
+ return data;
4260
+ }
4261
+ };
4262
+ return mutationOptions;
4263
+ };
4264
+ var googleListAssetGroupsQueryKey = (options) => createQueryKey("googleListAssetGroups", options);
4265
+ var googleListAssetGroupsOptions = (options) => reactQuery.queryOptions({
3162
4266
  queryFn: async ({ queryKey, signal }) => {
3163
- const { data } = await googleGetAdGroup({
4267
+ const { data } = await googleListAssetGroups({
3164
4268
  ...options,
3165
4269
  ...queryKey[0],
3166
4270
  signal,
@@ -3168,12 +4272,25 @@ var googleGetAdGroupOptions = (options) => reactQuery.queryOptions({
3168
4272
  });
3169
4273
  return data;
3170
4274
  },
3171
- queryKey: googleGetAdGroupQueryKey(options)
4275
+ queryKey: googleListAssetGroupsQueryKey(options)
4276
+ });
4277
+ var googleGetAssetGroupQueryKey = (options) => createQueryKey("googleGetAssetGroup", options);
4278
+ var googleGetAssetGroupOptions = (options) => reactQuery.queryOptions({
4279
+ queryFn: async ({ queryKey, signal }) => {
4280
+ const { data } = await googleGetAssetGroup({
4281
+ ...options,
4282
+ ...queryKey[0],
4283
+ signal,
4284
+ throwOnError: true
4285
+ });
4286
+ return data;
4287
+ },
4288
+ queryKey: googleGetAssetGroupQueryKey(options)
3172
4289
  });
3173
- var googleEditAdGroupMutation = (options) => {
4290
+ var googleEditAssetGroupMutation = (options) => {
3174
4291
  const mutationOptions = {
3175
4292
  mutationFn: async (fnOptions) => {
3176
- const { data } = await googleEditAdGroup({
4293
+ const { data } = await googleEditAssetGroup({
3177
4294
  ...options,
3178
4295
  ...fnOptions,
3179
4296
  throwOnError: true
@@ -3183,10 +4300,10 @@ var googleEditAdGroupMutation = (options) => {
3183
4300
  };
3184
4301
  return mutationOptions;
3185
4302
  };
3186
- var googleSetAdGroupBidsMutation = (options) => {
4303
+ var googleCreateAssetGroupMutation = (options) => {
3187
4304
  const mutationOptions = {
3188
4305
  mutationFn: async (fnOptions) => {
3189
- const { data } = await googleSetAdGroupBids({
4306
+ const { data } = await googleCreateAssetGroup({
3190
4307
  ...options,
3191
4308
  ...fnOptions,
3192
4309
  throwOnError: true
@@ -3196,10 +4313,10 @@ var googleSetAdGroupBidsMutation = (options) => {
3196
4313
  };
3197
4314
  return mutationOptions;
3198
4315
  };
3199
- var googleRemoveAdGroupMutation = (options) => {
4316
+ var googlePauseAssetGroupMutation = (options) => {
3200
4317
  const mutationOptions = {
3201
4318
  mutationFn: async (fnOptions) => {
3202
- const { data } = await googleRemoveAdGroup({
4319
+ const { data } = await googlePauseAssetGroup({
3203
4320
  ...options,
3204
4321
  ...fnOptions,
3205
4322
  throwOnError: true
@@ -3209,10 +4326,10 @@ var googleRemoveAdGroupMutation = (options) => {
3209
4326
  };
3210
4327
  return mutationOptions;
3211
4328
  };
3212
- var googlePauseAdGroupMutation = (options) => {
4329
+ var googleEnableAssetGroupMutation = (options) => {
3213
4330
  const mutationOptions = {
3214
4331
  mutationFn: async (fnOptions) => {
3215
- const { data } = await googlePauseAdGroup({
4332
+ const { data } = await googleEnableAssetGroup({
3216
4333
  ...options,
3217
4334
  ...fnOptions,
3218
4335
  throwOnError: true
@@ -3222,10 +4339,10 @@ var googlePauseAdGroupMutation = (options) => {
3222
4339
  };
3223
4340
  return mutationOptions;
3224
4341
  };
3225
- var googleEnableAdGroupMutation = (options) => {
4342
+ var googleRemoveAssetGroupMutation = (options) => {
3226
4343
  const mutationOptions = {
3227
4344
  mutationFn: async (fnOptions) => {
3228
- const { data } = await googleEnableAdGroup({
4345
+ const { data } = await googleRemoveAssetGroup({
3229
4346
  ...options,
3230
4347
  ...fnOptions,
3231
4348
  throwOnError: true
@@ -3235,10 +4352,10 @@ var googleEnableAdGroupMutation = (options) => {
3235
4352
  };
3236
4353
  return mutationOptions;
3237
4354
  };
3238
- var googleListAdGroupCriteriaQueryKey = (options) => createQueryKey("googleListAdGroupCriteria", options);
3239
- var googleListAdGroupCriteriaOptions = (options) => reactQuery.queryOptions({
4355
+ var googleListAssetGroupAssetsQueryKey = (options) => createQueryKey("googleListAssetGroupAssets", options);
4356
+ var googleListAssetGroupAssetsOptions = (options) => reactQuery.queryOptions({
3240
4357
  queryFn: async ({ queryKey, signal }) => {
3241
- const { data } = await googleListAdGroupCriteria({
4358
+ const { data } = await googleListAssetGroupAssets({
3242
4359
  ...options,
3243
4360
  ...queryKey[0],
3244
4361
  signal,
@@ -3246,12 +4363,12 @@ var googleListAdGroupCriteriaOptions = (options) => reactQuery.queryOptions({
3246
4363
  });
3247
4364
  return data;
3248
4365
  },
3249
- queryKey: googleListAdGroupCriteriaQueryKey(options)
4366
+ queryKey: googleListAssetGroupAssetsQueryKey(options)
3250
4367
  });
3251
- var googleCreateAdGroupCriterionMutation = (options) => {
4368
+ var googleAttachAssetGroupAssetMutation = (options) => {
3252
4369
  const mutationOptions = {
3253
4370
  mutationFn: async (fnOptions) => {
3254
- const { data } = await googleCreateAdGroupCriterion({
4371
+ const { data } = await googleAttachAssetGroupAsset({
3255
4372
  ...options,
3256
4373
  ...fnOptions,
3257
4374
  throwOnError: true
@@ -3261,10 +4378,10 @@ var googleCreateAdGroupCriterionMutation = (options) => {
3261
4378
  };
3262
4379
  return mutationOptions;
3263
4380
  };
3264
- var googleRemoveAdGroupCriterionMutation = (options) => {
4381
+ var googleRemoveAssetGroupAssetMutation = (options) => {
3265
4382
  const mutationOptions = {
3266
4383
  mutationFn: async (fnOptions) => {
3267
- const { data } = await googleRemoveAdGroupCriterion({
4384
+ const { data } = await googleRemoveAssetGroupAsset({
3268
4385
  ...options,
3269
4386
  ...fnOptions,
3270
4387
  throwOnError: true
@@ -3274,10 +4391,10 @@ var googleRemoveAdGroupCriterionMutation = (options) => {
3274
4391
  };
3275
4392
  return mutationOptions;
3276
4393
  };
3277
- var googleListAudiencesQueryKey = (options) => createQueryKey("googleListAudiences", options);
3278
- var googleListAudiencesOptions = (options) => reactQuery.queryOptions({
4394
+ var googleListAssetGroupSignalsQueryKey = (options) => createQueryKey("googleListAssetGroupSignals", options);
4395
+ var googleListAssetGroupSignalsOptions = (options) => reactQuery.queryOptions({
3279
4396
  queryFn: async ({ queryKey, signal }) => {
3280
- const { data } = await googleListAudiences({
4397
+ const { data } = await googleListAssetGroupSignals({
3281
4398
  ...options,
3282
4399
  ...queryKey[0],
3283
4400
  signal,
@@ -3285,12 +4402,12 @@ var googleListAudiencesOptions = (options) => reactQuery.queryOptions({
3285
4402
  });
3286
4403
  return data;
3287
4404
  },
3288
- queryKey: googleListAudiencesQueryKey(options)
4405
+ queryKey: googleListAssetGroupSignalsQueryKey(options)
3289
4406
  });
3290
- var googleSetCampaignTargetingSettingMutation = (options) => {
4407
+ var googleCreateAssetGroupSignalMutation = (options) => {
3291
4408
  const mutationOptions = {
3292
4409
  mutationFn: async (fnOptions) => {
3293
- const { data } = await googleSetCampaignTargetingSetting({
4410
+ const { data } = await googleCreateAssetGroupSignal({
3294
4411
  ...options,
3295
4412
  ...fnOptions,
3296
4413
  throwOnError: true
@@ -3300,23 +4417,10 @@ var googleSetCampaignTargetingSettingMutation = (options) => {
3300
4417
  };
3301
4418
  return mutationOptions;
3302
4419
  };
3303
- var googleListAdsQueryKey = (options) => createQueryKey("googleListAds", options);
3304
- var googleListAdsOptions = (options) => reactQuery.queryOptions({
3305
- queryFn: async ({ queryKey, signal }) => {
3306
- const { data } = await googleListAds({
3307
- ...options,
3308
- ...queryKey[0],
3309
- signal,
3310
- throwOnError: true
3311
- });
3312
- return data;
3313
- },
3314
- queryKey: googleListAdsQueryKey(options)
3315
- });
3316
- var googleCreateAdMutation = (options) => {
4420
+ var googleRemoveAssetGroupSignalMutation = (options) => {
3317
4421
  const mutationOptions = {
3318
4422
  mutationFn: async (fnOptions) => {
3319
- const { data } = await googleCreateAd({
4423
+ const { data } = await googleRemoveAssetGroupSignal({
3320
4424
  ...options,
3321
4425
  ...fnOptions,
3322
4426
  throwOnError: true
@@ -3326,10 +4430,23 @@ var googleCreateAdMutation = (options) => {
3326
4430
  };
3327
4431
  return mutationOptions;
3328
4432
  };
3329
- var googleGetAdQueryKey = (options) => createQueryKey("googleGetAd", options);
3330
- var googleGetAdOptions = (options) => reactQuery.queryOptions({
4433
+ var googleCreatePerformanceMaxMutation = (options) => {
4434
+ const mutationOptions = {
4435
+ mutationFn: async (fnOptions) => {
4436
+ const { data } = await googleCreatePerformanceMax({
4437
+ ...options,
4438
+ ...fnOptions,
4439
+ throwOnError: true
4440
+ });
4441
+ return data;
4442
+ }
4443
+ };
4444
+ return mutationOptions;
4445
+ };
4446
+ var tiktokCreatorInfoQueryKey = (options) => createQueryKey("tiktokCreatorInfo", options);
4447
+ var tiktokCreatorInfoOptions = (options) => reactQuery.queryOptions({
3331
4448
  queryFn: async ({ queryKey, signal }) => {
3332
- const { data } = await googleGetAd({
4449
+ const { data } = await tiktokCreatorInfo({
3333
4450
  ...options,
3334
4451
  ...queryKey[0],
3335
4452
  signal,
@@ -3337,25 +4454,73 @@ var googleGetAdOptions = (options) => reactQuery.queryOptions({
3337
4454
  });
3338
4455
  return data;
3339
4456
  },
3340
- queryKey: googleGetAdQueryKey(options)
4457
+ queryKey: tiktokCreatorInfoQueryKey(options)
3341
4458
  });
3342
- var googleCreateDisplayAdMutation = (options) => {
3343
- const mutationOptions = {
3344
- mutationFn: async (fnOptions) => {
3345
- const { data } = await googleCreateDisplayAd({
4459
+ var tiktokAdsListAdvertisersQueryKey = (options) => createQueryKey("tiktokAdsListAdvertisers", options);
4460
+ var tiktokAdsListAdvertisersOptions = (options) => reactQuery.queryOptions({
4461
+ queryFn: async ({ queryKey, signal }) => {
4462
+ const { data } = await tiktokAdsListAdvertisers({
4463
+ ...options,
4464
+ ...queryKey[0],
4465
+ signal,
4466
+ throwOnError: true
4467
+ });
4468
+ return data;
4469
+ },
4470
+ queryKey: tiktokAdsListAdvertisersQueryKey(options)
4471
+ });
4472
+ var tiktokAdsListBusinessCentersQueryKey = (options) => createQueryKey("tiktokAdsListBusinessCenters", options);
4473
+ var tiktokAdsListBusinessCentersOptions = (options) => reactQuery.queryOptions({
4474
+ queryFn: async ({ queryKey, signal }) => {
4475
+ const { data } = await tiktokAdsListBusinessCenters({
4476
+ ...options,
4477
+ ...queryKey[0],
4478
+ signal,
4479
+ throwOnError: true
4480
+ });
4481
+ return data;
4482
+ },
4483
+ queryKey: tiktokAdsListBusinessCentersQueryKey(options)
4484
+ });
4485
+ var tiktokAdsListCampaignsQueryKey = (options) => createQueryKey("tiktokAdsListCampaigns", options);
4486
+ var tiktokAdsListCampaignsOptions = (options) => reactQuery.queryOptions({
4487
+ queryFn: async ({ queryKey, signal }) => {
4488
+ const { data } = await tiktokAdsListCampaigns({
4489
+ ...options,
4490
+ ...queryKey[0],
4491
+ signal,
4492
+ throwOnError: true
4493
+ });
4494
+ return data;
4495
+ },
4496
+ queryKey: tiktokAdsListCampaignsQueryKey(options)
4497
+ });
4498
+ var tiktokAdsListCampaignsInfiniteQueryKey = (options) => createQueryKey("tiktokAdsListCampaigns", options, true);
4499
+ var tiktokAdsListCampaignsInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
4500
+ // @ts-ignore
4501
+ {
4502
+ queryFn: async ({ pageParam, queryKey, signal }) => {
4503
+ const page = typeof pageParam === "object" ? pageParam : {
4504
+ query: {
4505
+ offset: pageParam
4506
+ }
4507
+ };
4508
+ const params = createInfiniteParams(queryKey, page);
4509
+ const { data } = await tiktokAdsListCampaigns({
3346
4510
  ...options,
3347
- ...fnOptions,
4511
+ ...params,
4512
+ signal,
3348
4513
  throwOnError: true
3349
4514
  });
3350
4515
  return data;
3351
- }
3352
- };
3353
- return mutationOptions;
3354
- };
3355
- var googleRemoveAdMutation = (options) => {
4516
+ },
4517
+ queryKey: tiktokAdsListCampaignsInfiniteQueryKey(options)
4518
+ }
4519
+ );
4520
+ var tiktokAdsCreateCampaignMutation = (options) => {
3356
4521
  const mutationOptions = {
3357
4522
  mutationFn: async (fnOptions) => {
3358
- const { data } = await googleRemoveAd({
4523
+ const { data } = await tiktokAdsCreateCampaign({
3359
4524
  ...options,
3360
4525
  ...fnOptions,
3361
4526
  throwOnError: true
@@ -3365,10 +4530,10 @@ var googleRemoveAdMutation = (options) => {
3365
4530
  };
3366
4531
  return mutationOptions;
3367
4532
  };
3368
- var googlePauseAdMutation = (options) => {
4533
+ var tiktokAdsUpdateCampaignStatusMutation = (options) => {
3369
4534
  const mutationOptions = {
3370
4535
  mutationFn: async (fnOptions) => {
3371
- const { data } = await googlePauseAd({
4536
+ const { data } = await tiktokAdsUpdateCampaignStatus({
3372
4537
  ...options,
3373
4538
  ...fnOptions,
3374
4539
  throwOnError: true
@@ -3378,10 +4543,10 @@ var googlePauseAdMutation = (options) => {
3378
4543
  };
3379
4544
  return mutationOptions;
3380
4545
  };
3381
- var googleEnableAdMutation = (options) => {
4546
+ var tiktokAdsUpdateCampaignBudgetMutation = (options) => {
3382
4547
  const mutationOptions = {
3383
4548
  mutationFn: async (fnOptions) => {
3384
- const { data } = await googleEnableAd({
4549
+ const { data } = await tiktokAdsUpdateCampaignBudget({
3385
4550
  ...options,
3386
4551
  ...fnOptions,
3387
4552
  throwOnError: true
@@ -3391,23 +4556,10 @@ var googleEnableAdMutation = (options) => {
3391
4556
  };
3392
4557
  return mutationOptions;
3393
4558
  };
3394
- var googleListKeywordsQueryKey = (options) => createQueryKey("googleListKeywords", options);
3395
- var googleListKeywordsOptions = (options) => reactQuery.queryOptions({
3396
- queryFn: async ({ queryKey, signal }) => {
3397
- const { data } = await googleListKeywords({
3398
- ...options,
3399
- ...queryKey[0],
3400
- signal,
3401
- throwOnError: true
3402
- });
3403
- return data;
3404
- },
3405
- queryKey: googleListKeywordsQueryKey(options)
3406
- });
3407
- var googleCreateKeywordMutation = (options) => {
4559
+ var tiktokAdsRemoveCampaignMutation = (options) => {
3408
4560
  const mutationOptions = {
3409
4561
  mutationFn: async (fnOptions) => {
3410
- const { data } = await googleCreateKeyword({
4562
+ const { data } = await tiktokAdsRemoveCampaign({
3411
4563
  ...options,
3412
4564
  ...fnOptions,
3413
4565
  throwOnError: true
@@ -3417,10 +4569,10 @@ var googleCreateKeywordMutation = (options) => {
3417
4569
  };
3418
4570
  return mutationOptions;
3419
4571
  };
3420
- var googleGetKeywordQueryKey = (options) => createQueryKey("googleGetKeyword", options);
3421
- var googleGetKeywordOptions = (options) => reactQuery.queryOptions({
4572
+ var tiktokAdsListAdGroupsQueryKey = (options) => createQueryKey("tiktokAdsListAdGroups", options);
4573
+ var tiktokAdsListAdGroupsOptions = (options) => reactQuery.queryOptions({
3422
4574
  queryFn: async ({ queryKey, signal }) => {
3423
- const { data } = await googleGetKeyword({
4575
+ const { data } = await tiktokAdsListAdGroups({
3424
4576
  ...options,
3425
4577
  ...queryKey[0],
3426
4578
  signal,
@@ -3428,12 +4580,34 @@ var googleGetKeywordOptions = (options) => reactQuery.queryOptions({
3428
4580
  });
3429
4581
  return data;
3430
4582
  },
3431
- queryKey: googleGetKeywordQueryKey(options)
4583
+ queryKey: tiktokAdsListAdGroupsQueryKey(options)
3432
4584
  });
3433
- var googleSetKeywordBidMutation = (options) => {
4585
+ var tiktokAdsListAdGroupsInfiniteQueryKey = (options) => createQueryKey("tiktokAdsListAdGroups", options, true);
4586
+ var tiktokAdsListAdGroupsInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
4587
+ // @ts-ignore
4588
+ {
4589
+ queryFn: async ({ pageParam, queryKey, signal }) => {
4590
+ const page = typeof pageParam === "object" ? pageParam : {
4591
+ query: {
4592
+ offset: pageParam
4593
+ }
4594
+ };
4595
+ const params = createInfiniteParams(queryKey, page);
4596
+ const { data } = await tiktokAdsListAdGroups({
4597
+ ...options,
4598
+ ...params,
4599
+ signal,
4600
+ throwOnError: true
4601
+ });
4602
+ return data;
4603
+ },
4604
+ queryKey: tiktokAdsListAdGroupsInfiniteQueryKey(options)
4605
+ }
4606
+ );
4607
+ var tiktokAdsCreateAdGroupMutation = (options) => {
3434
4608
  const mutationOptions = {
3435
4609
  mutationFn: async (fnOptions) => {
3436
- const { data } = await googleSetKeywordBid({
4610
+ const { data } = await tiktokAdsCreateAdGroup({
3437
4611
  ...options,
3438
4612
  ...fnOptions,
3439
4613
  throwOnError: true
@@ -3443,10 +4617,10 @@ var googleSetKeywordBidMutation = (options) => {
3443
4617
  };
3444
4618
  return mutationOptions;
3445
4619
  };
3446
- var googleRemoveKeywordMutation = (options) => {
4620
+ var tiktokAdsUpdateAdGroupStatusMutation = (options) => {
3447
4621
  const mutationOptions = {
3448
4622
  mutationFn: async (fnOptions) => {
3449
- const { data } = await googleRemoveKeyword({
4623
+ const { data } = await tiktokAdsUpdateAdGroupStatus({
3450
4624
  ...options,
3451
4625
  ...fnOptions,
3452
4626
  throwOnError: true
@@ -3456,10 +4630,10 @@ var googleRemoveKeywordMutation = (options) => {
3456
4630
  };
3457
4631
  return mutationOptions;
3458
4632
  };
3459
- var googlePauseKeywordMutation = (options) => {
4633
+ var tiktokAdsUpdateAdGroupBudgetMutation = (options) => {
3460
4634
  const mutationOptions = {
3461
4635
  mutationFn: async (fnOptions) => {
3462
- const { data } = await googlePauseKeyword({
4636
+ const { data } = await tiktokAdsUpdateAdGroupBudget({
3463
4637
  ...options,
3464
4638
  ...fnOptions,
3465
4639
  throwOnError: true
@@ -3469,10 +4643,10 @@ var googlePauseKeywordMutation = (options) => {
3469
4643
  };
3470
4644
  return mutationOptions;
3471
4645
  };
3472
- var googleEnableKeywordMutation = (options) => {
4646
+ var tiktokAdsRemoveAdGroupMutation = (options) => {
3473
4647
  const mutationOptions = {
3474
4648
  mutationFn: async (fnOptions) => {
3475
- const { data } = await googleEnableKeyword({
4649
+ const { data } = await tiktokAdsRemoveAdGroup({
3476
4650
  ...options,
3477
4651
  ...fnOptions,
3478
4652
  throwOnError: true
@@ -3482,10 +4656,10 @@ var googleEnableKeywordMutation = (options) => {
3482
4656
  };
3483
4657
  return mutationOptions;
3484
4658
  };
3485
- var googleListConversionActionsQueryKey = (options) => createQueryKey("googleListConversionActions", options);
3486
- var googleListConversionActionsOptions = (options) => reactQuery.queryOptions({
4659
+ var tiktokAdsListAdsQueryKey = (options) => createQueryKey("tiktokAdsListAds", options);
4660
+ var tiktokAdsListAdsOptions = (options) => reactQuery.queryOptions({
3487
4661
  queryFn: async ({ queryKey, signal }) => {
3488
- const { data } = await googleListConversionActions({
4662
+ const { data } = await tiktokAdsListAds({
3489
4663
  ...options,
3490
4664
  ...queryKey[0],
3491
4665
  signal,
@@ -3493,12 +4667,34 @@ var googleListConversionActionsOptions = (options) => reactQuery.queryOptions({
3493
4667
  });
3494
4668
  return data;
3495
4669
  },
3496
- queryKey: googleListConversionActionsQueryKey(options)
4670
+ queryKey: tiktokAdsListAdsQueryKey(options)
3497
4671
  });
3498
- var googleCreateConversionActionMutation = (options) => {
4672
+ var tiktokAdsListAdsInfiniteQueryKey = (options) => createQueryKey("tiktokAdsListAds", options, true);
4673
+ var tiktokAdsListAdsInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
4674
+ // @ts-ignore
4675
+ {
4676
+ queryFn: async ({ pageParam, queryKey, signal }) => {
4677
+ const page = typeof pageParam === "object" ? pageParam : {
4678
+ query: {
4679
+ offset: pageParam
4680
+ }
4681
+ };
4682
+ const params = createInfiniteParams(queryKey, page);
4683
+ const { data } = await tiktokAdsListAds({
4684
+ ...options,
4685
+ ...params,
4686
+ signal,
4687
+ throwOnError: true
4688
+ });
4689
+ return data;
4690
+ },
4691
+ queryKey: tiktokAdsListAdsInfiniteQueryKey(options)
4692
+ }
4693
+ );
4694
+ var tiktokAdsCreateAdMutation = (options) => {
3499
4695
  const mutationOptions = {
3500
4696
  mutationFn: async (fnOptions) => {
3501
- const { data } = await googleCreateConversionAction({
4697
+ const { data } = await tiktokAdsCreateAd({
3502
4698
  ...options,
3503
4699
  ...fnOptions,
3504
4700
  throwOnError: true
@@ -3508,23 +4704,10 @@ var googleCreateConversionActionMutation = (options) => {
3508
4704
  };
3509
4705
  return mutationOptions;
3510
4706
  };
3511
- var googleGetConversionActionQueryKey = (options) => createQueryKey("googleGetConversionAction", options);
3512
- var googleGetConversionActionOptions = (options) => reactQuery.queryOptions({
3513
- queryFn: async ({ queryKey, signal }) => {
3514
- const { data } = await googleGetConversionAction({
3515
- ...options,
3516
- ...queryKey[0],
3517
- signal,
3518
- throwOnError: true
3519
- });
3520
- return data;
3521
- },
3522
- queryKey: googleGetConversionActionQueryKey(options)
3523
- });
3524
- var googleUpdateConversionActionMutation = (options) => {
4707
+ var tiktokAdsUpdateAdStatusMutation = (options) => {
3525
4708
  const mutationOptions = {
3526
4709
  mutationFn: async (fnOptions) => {
3527
- const { data } = await googleUpdateConversionAction({
4710
+ const { data } = await tiktokAdsUpdateAdStatus({
3528
4711
  ...options,
3529
4712
  ...fnOptions,
3530
4713
  throwOnError: true
@@ -3534,10 +4717,10 @@ var googleUpdateConversionActionMutation = (options) => {
3534
4717
  };
3535
4718
  return mutationOptions;
3536
4719
  };
3537
- var googleRemoveConversionActionMutation = (options) => {
4720
+ var tiktokAdsRemoveAdMutation = (options) => {
3538
4721
  const mutationOptions = {
3539
4722
  mutationFn: async (fnOptions) => {
3540
- const { data } = await googleRemoveConversionAction({
4723
+ const { data } = await tiktokAdsRemoveAd({
3541
4724
  ...options,
3542
4725
  ...fnOptions,
3543
4726
  throwOnError: true
@@ -3547,10 +4730,10 @@ var googleRemoveConversionActionMutation = (options) => {
3547
4730
  };
3548
4731
  return mutationOptions;
3549
4732
  };
3550
- var googleSendConversionsMutation = (options) => {
4733
+ var tiktokAdsGetInsightsMutation = (options) => {
3551
4734
  const mutationOptions = {
3552
4735
  mutationFn: async (fnOptions) => {
3553
- const { data } = await googleSendConversions({
4736
+ const { data } = await tiktokAdsGetInsights({
3554
4737
  ...options,
3555
4738
  ...fnOptions,
3556
4739
  throwOnError: true
@@ -3560,10 +4743,10 @@ var googleSendConversionsMutation = (options) => {
3560
4743
  };
3561
4744
  return mutationOptions;
3562
4745
  };
3563
- var googleGetConversionStatusQueryKey = (options) => createQueryKey("googleGetConversionStatus", options);
3564
- var googleGetConversionStatusOptions = (options) => reactQuery.queryOptions({
4746
+ var tiktokAdsGetAdTreeQueryKey = (options) => createQueryKey("tiktokAdsGetAdTree", options);
4747
+ var tiktokAdsGetAdTreeOptions = (options) => reactQuery.queryOptions({
3565
4748
  queryFn: async ({ queryKey, signal }) => {
3566
- const { data } = await googleGetConversionStatus({
4749
+ const { data } = await tiktokAdsGetAdTree({
3567
4750
  ...options,
3568
4751
  ...queryKey[0],
3569
4752
  signal,
@@ -3571,12 +4754,12 @@ var googleGetConversionStatusOptions = (options) => reactQuery.queryOptions({
3571
4754
  });
3572
4755
  return data;
3573
4756
  },
3574
- queryKey: googleGetConversionStatusQueryKey(options)
4757
+ queryKey: tiktokAdsGetAdTreeQueryKey(options)
3575
4758
  });
3576
- var googleListConversionRequestsQueryKey = (options) => createQueryKey("googleListConversionRequests", options);
3577
- var googleListConversionRequestsOptions = (options) => reactQuery.queryOptions({
4759
+ var tiktokAdsListIdentitiesQueryKey = (options) => createQueryKey("tiktokAdsListIdentities", options);
4760
+ var tiktokAdsListIdentitiesOptions = (options) => reactQuery.queryOptions({
3578
4761
  queryFn: async ({ queryKey, signal }) => {
3579
- const { data } = await googleListConversionRequests({
4762
+ const { data } = await tiktokAdsListIdentities({
3580
4763
  ...options,
3581
4764
  ...queryKey[0],
3582
4765
  signal,
@@ -3584,20 +4767,20 @@ var googleListConversionRequestsOptions = (options) => reactQuery.queryOptions({
3584
4767
  });
3585
4768
  return data;
3586
4769
  },
3587
- queryKey: googleListConversionRequestsQueryKey(options)
4770
+ queryKey: tiktokAdsListIdentitiesQueryKey(options)
3588
4771
  });
3589
- var googleListConversionRequestsInfiniteQueryKey = (options) => createQueryKey("googleListConversionRequests", options, true);
3590
- var googleListConversionRequestsInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
4772
+ var tiktokAdsListIdentitiesInfiniteQueryKey = (options) => createQueryKey("tiktokAdsListIdentities", options, true);
4773
+ var tiktokAdsListIdentitiesInfiniteOptions = (options) => reactQuery.infiniteQueryOptions(
3591
4774
  // @ts-ignore
3592
4775
  {
3593
4776
  queryFn: async ({ pageParam, queryKey, signal }) => {
3594
4777
  const page = typeof pageParam === "object" ? pageParam : {
3595
4778
  query: {
3596
- offset: pageParam
4779
+ page: pageParam
3597
4780
  }
3598
4781
  };
3599
4782
  const params = createInfiniteParams(queryKey, page);
3600
- const { data } = await googleListConversionRequests({
4783
+ const { data } = await tiktokAdsListIdentities({
3601
4784
  ...options,
3602
4785
  ...params,
3603
4786
  signal,
@@ -3605,39 +4788,13 @@ var googleListConversionRequestsInfiniteOptions = (options) => reactQuery.infini
3605
4788
  });
3606
4789
  return data;
3607
4790
  },
3608
- queryKey: googleListConversionRequestsInfiniteQueryKey(options)
4791
+ queryKey: tiktokAdsListIdentitiesInfiniteQueryKey(options)
3609
4792
  }
3610
4793
  );
3611
- var googleListConversionGoalsQueryKey = (options) => createQueryKey("googleListConversionGoals", options);
3612
- var googleListConversionGoalsOptions = (options) => reactQuery.queryOptions({
3613
- queryFn: async ({ queryKey, signal }) => {
3614
- const { data } = await googleListConversionGoals({
3615
- ...options,
3616
- ...queryKey[0],
3617
- signal,
3618
- throwOnError: true
3619
- });
3620
- return data;
3621
- },
3622
- queryKey: googleListConversionGoalsQueryKey(options)
3623
- });
3624
- var googleSetConversionGoalMutation = (options) => {
3625
- const mutationOptions = {
3626
- mutationFn: async (fnOptions) => {
3627
- const { data } = await googleSetConversionGoal({
3628
- ...options,
3629
- ...fnOptions,
3630
- throwOnError: true
3631
- });
3632
- return data;
3633
- }
3634
- };
3635
- return mutationOptions;
3636
- };
3637
- var googleUploadImageAssetMutation = (options) => {
4794
+ var tiktokAdsCreateIdentityMutation = (options) => {
3638
4795
  const mutationOptions = {
3639
4796
  mutationFn: async (fnOptions) => {
3640
- const { data } = await googleUploadImageAsset({
4797
+ const { data } = await tiktokAdsCreateIdentity({
3641
4798
  ...options,
3642
4799
  ...fnOptions,
3643
4800
  throwOnError: true
@@ -3647,19 +4804,6 @@ var googleUploadImageAssetMutation = (options) => {
3647
4804
  };
3648
4805
  return mutationOptions;
3649
4806
  };
3650
- var tiktokCreatorInfoQueryKey = (options) => createQueryKey("tiktokCreatorInfo", options);
3651
- var tiktokCreatorInfoOptions = (options) => reactQuery.queryOptions({
3652
- queryFn: async ({ queryKey, signal }) => {
3653
- const { data } = await tiktokCreatorInfo({
3654
- ...options,
3655
- ...queryKey[0],
3656
- signal,
3657
- throwOnError: true
3658
- });
3659
- return data;
3660
- },
3661
- queryKey: tiktokCreatorInfoQueryKey(options)
3662
- });
3663
4807
  var logsListQueryKey = (options) => createQueryKey("logsList", options);
3664
4808
  var logsListOptions = (options) => reactQuery.queryOptions({
3665
4809
  queryFn: async ({ queryKey, signal }) => {
@@ -3859,21 +5003,29 @@ exports.connectionsListByProfileInfiniteQueryKey = connectionsListByProfileInfin
3859
5003
  exports.connectionsListByProfileOptions = connectionsListByProfileOptions;
3860
5004
  exports.connectionsListByProfileQueryKey = connectionsListByProfileQueryKey;
3861
5005
  exports.connectionsSelectMutation = connectionsSelectMutation;
5006
+ exports.googleAttachAssetGroupAssetMutation = googleAttachAssetGroupAssetMutation;
3862
5007
  exports.googleCreateAdGroupCriterionMutation = googleCreateAdGroupCriterionMutation;
3863
5008
  exports.googleCreateAdGroupMutation = googleCreateAdGroupMutation;
3864
5009
  exports.googleCreateAdMutation = googleCreateAdMutation;
5010
+ exports.googleCreateAssetGroupMutation = googleCreateAssetGroupMutation;
5011
+ exports.googleCreateAssetGroupSignalMutation = googleCreateAssetGroupSignalMutation;
3865
5012
  exports.googleCreateBudgetMutation = googleCreateBudgetMutation;
3866
5013
  exports.googleCreateCampaignCriterionMutation = googleCreateCampaignCriterionMutation;
3867
5014
  exports.googleCreateCampaignMutation = googleCreateCampaignMutation;
3868
5015
  exports.googleCreateConversionActionMutation = googleCreateConversionActionMutation;
3869
5016
  exports.googleCreateDisplayAdMutation = googleCreateDisplayAdMutation;
3870
5017
  exports.googleCreateKeywordMutation = googleCreateKeywordMutation;
5018
+ exports.googleCreatePerformanceMaxMutation = googleCreatePerformanceMaxMutation;
3871
5019
  exports.googleEditAccountMutation = googleEditAccountMutation;
3872
5020
  exports.googleEditAdGroupMutation = googleEditAdGroupMutation;
5021
+ exports.googleEditAdMutation = googleEditAdMutation;
5022
+ exports.googleEditAssetGroupMutation = googleEditAssetGroupMutation;
3873
5023
  exports.googleEditBudgetMutation = googleEditBudgetMutation;
3874
5024
  exports.googleEditCampaignMutation = googleEditCampaignMutation;
5025
+ exports.googleEditDisplayAdMutation = googleEditDisplayAdMutation;
3875
5026
  exports.googleEnableAdGroupMutation = googleEnableAdGroupMutation;
3876
5027
  exports.googleEnableAdMutation = googleEnableAdMutation;
5028
+ exports.googleEnableAssetGroupMutation = googleEnableAssetGroupMutation;
3877
5029
  exports.googleEnableCampaignMutation = googleEnableCampaignMutation;
3878
5030
  exports.googleEnableKeywordMutation = googleEnableKeywordMutation;
3879
5031
  exports.googleGetAccountOptions = googleGetAccountOptions;
@@ -3884,6 +5036,8 @@ exports.googleGetAdOptions = googleGetAdOptions;
3884
5036
  exports.googleGetAdQueryKey = googleGetAdQueryKey;
3885
5037
  exports.googleGetAdTreeOptions = googleGetAdTreeOptions;
3886
5038
  exports.googleGetAdTreeQueryKey = googleGetAdTreeQueryKey;
5039
+ exports.googleGetAssetGroupOptions = googleGetAssetGroupOptions;
5040
+ exports.googleGetAssetGroupQueryKey = googleGetAssetGroupQueryKey;
3887
5041
  exports.googleGetCampaignOptions = googleGetCampaignOptions;
3888
5042
  exports.googleGetCampaignQueryKey = googleGetCampaignQueryKey;
3889
5043
  exports.googleGetConversionActionOptions = googleGetConversionActionOptions;
@@ -3899,6 +5053,12 @@ exports.googleListAdGroupsOptions = googleListAdGroupsOptions;
3899
5053
  exports.googleListAdGroupsQueryKey = googleListAdGroupsQueryKey;
3900
5054
  exports.googleListAdsOptions = googleListAdsOptions;
3901
5055
  exports.googleListAdsQueryKey = googleListAdsQueryKey;
5056
+ exports.googleListAssetGroupAssetsOptions = googleListAssetGroupAssetsOptions;
5057
+ exports.googleListAssetGroupAssetsQueryKey = googleListAssetGroupAssetsQueryKey;
5058
+ exports.googleListAssetGroupSignalsOptions = googleListAssetGroupSignalsOptions;
5059
+ exports.googleListAssetGroupSignalsQueryKey = googleListAssetGroupSignalsQueryKey;
5060
+ exports.googleListAssetGroupsOptions = googleListAssetGroupsOptions;
5061
+ exports.googleListAssetGroupsQueryKey = googleListAssetGroupsQueryKey;
3902
5062
  exports.googleListAudiencesOptions = googleListAudiencesOptions;
3903
5063
  exports.googleListAudiencesQueryKey = googleListAudiencesQueryKey;
3904
5064
  exports.googleListCampaignCriteriaOptions = googleListCampaignCriteriaOptions;
@@ -3917,11 +5077,15 @@ exports.googleListKeywordsOptions = googleListKeywordsOptions;
3917
5077
  exports.googleListKeywordsQueryKey = googleListKeywordsQueryKey;
3918
5078
  exports.googlePauseAdGroupMutation = googlePauseAdGroupMutation;
3919
5079
  exports.googlePauseAdMutation = googlePauseAdMutation;
5080
+ exports.googlePauseAssetGroupMutation = googlePauseAssetGroupMutation;
3920
5081
  exports.googlePauseCampaignMutation = googlePauseCampaignMutation;
3921
5082
  exports.googlePauseKeywordMutation = googlePauseKeywordMutation;
3922
5083
  exports.googleRemoveAdGroupCriterionMutation = googleRemoveAdGroupCriterionMutation;
3923
5084
  exports.googleRemoveAdGroupMutation = googleRemoveAdGroupMutation;
3924
5085
  exports.googleRemoveAdMutation = googleRemoveAdMutation;
5086
+ exports.googleRemoveAssetGroupAssetMutation = googleRemoveAssetGroupAssetMutation;
5087
+ exports.googleRemoveAssetGroupMutation = googleRemoveAssetGroupMutation;
5088
+ exports.googleRemoveAssetGroupSignalMutation = googleRemoveAssetGroupSignalMutation;
3925
5089
  exports.googleRemoveBudgetMutation = googleRemoveBudgetMutation;
3926
5090
  exports.googleRemoveCampaignCriterionMutation = googleRemoveCampaignCriterionMutation;
3927
5091
  exports.googleRemoveCampaignMutation = googleRemoveCampaignMutation;
@@ -3932,12 +5096,14 @@ exports.googleSearchGeoTargetsOptions = googleSearchGeoTargetsOptions;
3932
5096
  exports.googleSearchGeoTargetsQueryKey = googleSearchGeoTargetsQueryKey;
3933
5097
  exports.googleSendConversionsMutation = googleSendConversionsMutation;
3934
5098
  exports.googleSetAdGroupBidsMutation = googleSetAdGroupBidsMutation;
5099
+ exports.googleSetCampaignBiddingMutation = googleSetCampaignBiddingMutation;
3935
5100
  exports.googleSetCampaignGeoSettingsMutation = googleSetCampaignGeoSettingsMutation;
3936
5101
  exports.googleSetCampaignTargetingSettingMutation = googleSetCampaignTargetingSettingMutation;
3937
5102
  exports.googleSetConversionGoalMutation = googleSetConversionGoalMutation;
3938
5103
  exports.googleSetKeywordBidMutation = googleSetKeywordBidMutation;
3939
5104
  exports.googleUpdateConversionActionMutation = googleUpdateConversionActionMutation;
3940
5105
  exports.googleUploadImageAssetMutation = googleUploadImageAssetMutation;
5106
+ exports.googleUploadYoutubeVideoAssetMutation = googleUploadYoutubeVideoAssetMutation;
3941
5107
  exports.logsGetOptions = logsGetOptions;
3942
5108
  exports.logsGetQueryKey = logsGetQueryKey;
3943
5109
  exports.logsListInfiniteOptions = logsListInfiniteOptions;
@@ -3993,6 +5159,41 @@ exports.profilesListInfiniteQueryKey = profilesListInfiniteQueryKey;
3993
5159
  exports.profilesListOptions = profilesListOptions;
3994
5160
  exports.profilesListQueryKey = profilesListQueryKey;
3995
5161
  exports.profilesUpdateMutation = profilesUpdateMutation;
5162
+ exports.tiktokAdsCreateAdGroupMutation = tiktokAdsCreateAdGroupMutation;
5163
+ exports.tiktokAdsCreateAdMutation = tiktokAdsCreateAdMutation;
5164
+ exports.tiktokAdsCreateCampaignMutation = tiktokAdsCreateCampaignMutation;
5165
+ exports.tiktokAdsCreateIdentityMutation = tiktokAdsCreateIdentityMutation;
5166
+ exports.tiktokAdsGetAdTreeOptions = tiktokAdsGetAdTreeOptions;
5167
+ exports.tiktokAdsGetAdTreeQueryKey = tiktokAdsGetAdTreeQueryKey;
5168
+ exports.tiktokAdsGetInsightsMutation = tiktokAdsGetInsightsMutation;
5169
+ exports.tiktokAdsListAdGroupsInfiniteOptions = tiktokAdsListAdGroupsInfiniteOptions;
5170
+ exports.tiktokAdsListAdGroupsInfiniteQueryKey = tiktokAdsListAdGroupsInfiniteQueryKey;
5171
+ exports.tiktokAdsListAdGroupsOptions = tiktokAdsListAdGroupsOptions;
5172
+ exports.tiktokAdsListAdGroupsQueryKey = tiktokAdsListAdGroupsQueryKey;
5173
+ exports.tiktokAdsListAdsInfiniteOptions = tiktokAdsListAdsInfiniteOptions;
5174
+ exports.tiktokAdsListAdsInfiniteQueryKey = tiktokAdsListAdsInfiniteQueryKey;
5175
+ exports.tiktokAdsListAdsOptions = tiktokAdsListAdsOptions;
5176
+ exports.tiktokAdsListAdsQueryKey = tiktokAdsListAdsQueryKey;
5177
+ exports.tiktokAdsListAdvertisersOptions = tiktokAdsListAdvertisersOptions;
5178
+ exports.tiktokAdsListAdvertisersQueryKey = tiktokAdsListAdvertisersQueryKey;
5179
+ exports.tiktokAdsListBusinessCentersOptions = tiktokAdsListBusinessCentersOptions;
5180
+ exports.tiktokAdsListBusinessCentersQueryKey = tiktokAdsListBusinessCentersQueryKey;
5181
+ exports.tiktokAdsListCampaignsInfiniteOptions = tiktokAdsListCampaignsInfiniteOptions;
5182
+ exports.tiktokAdsListCampaignsInfiniteQueryKey = tiktokAdsListCampaignsInfiniteQueryKey;
5183
+ exports.tiktokAdsListCampaignsOptions = tiktokAdsListCampaignsOptions;
5184
+ exports.tiktokAdsListCampaignsQueryKey = tiktokAdsListCampaignsQueryKey;
5185
+ exports.tiktokAdsListIdentitiesInfiniteOptions = tiktokAdsListIdentitiesInfiniteOptions;
5186
+ exports.tiktokAdsListIdentitiesInfiniteQueryKey = tiktokAdsListIdentitiesInfiniteQueryKey;
5187
+ exports.tiktokAdsListIdentitiesOptions = tiktokAdsListIdentitiesOptions;
5188
+ exports.tiktokAdsListIdentitiesQueryKey = tiktokAdsListIdentitiesQueryKey;
5189
+ exports.tiktokAdsRemoveAdGroupMutation = tiktokAdsRemoveAdGroupMutation;
5190
+ exports.tiktokAdsRemoveAdMutation = tiktokAdsRemoveAdMutation;
5191
+ exports.tiktokAdsRemoveCampaignMutation = tiktokAdsRemoveCampaignMutation;
5192
+ exports.tiktokAdsUpdateAdGroupBudgetMutation = tiktokAdsUpdateAdGroupBudgetMutation;
5193
+ exports.tiktokAdsUpdateAdGroupStatusMutation = tiktokAdsUpdateAdGroupStatusMutation;
5194
+ exports.tiktokAdsUpdateAdStatusMutation = tiktokAdsUpdateAdStatusMutation;
5195
+ exports.tiktokAdsUpdateCampaignBudgetMutation = tiktokAdsUpdateCampaignBudgetMutation;
5196
+ exports.tiktokAdsUpdateCampaignStatusMutation = tiktokAdsUpdateCampaignStatusMutation;
3996
5197
  exports.tiktokCreatorInfoOptions = tiktokCreatorInfoOptions;
3997
5198
  exports.tiktokCreatorInfoQueryKey = tiktokCreatorInfoQueryKey;
3998
5199
  exports.tokensMintMutation = tokensMintMutation;