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