@postrun/js 3.1.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",
@@ -2038,6 +2081,40 @@ var googleGetConversionAction = (options) => (options.client ?? client).get({
2038
2081
  url: "/google/{connection_id}/conversion-actions/{id}",
2039
2082
  ...options
2040
2083
  });
2084
+ var googleUpdateConversionAction = (options) => (options.client ?? client).patch({
2085
+ security: [{
2086
+ key: "secretKey",
2087
+ scheme: "bearer",
2088
+ type: "http"
2089
+ }, {
2090
+ key: "frontendToken",
2091
+ scheme: "bearer",
2092
+ type: "http"
2093
+ }],
2094
+ url: "/google/{connection_id}/conversion-actions/{id}",
2095
+ ...options,
2096
+ headers: {
2097
+ "Content-Type": "application/json",
2098
+ ...options.headers
2099
+ }
2100
+ });
2101
+ var googleRemoveConversionAction = (options) => (options.client ?? client).post({
2102
+ security: [{
2103
+ key: "secretKey",
2104
+ scheme: "bearer",
2105
+ type: "http"
2106
+ }, {
2107
+ key: "frontendToken",
2108
+ scheme: "bearer",
2109
+ type: "http"
2110
+ }],
2111
+ url: "/google/{connection_id}/conversion-actions/{id}/remove",
2112
+ ...options,
2113
+ headers: {
2114
+ "Content-Type": "application/json",
2115
+ ...options.headers
2116
+ }
2117
+ });
2041
2118
  var googleSendConversions = (options) => (options.client ?? client).post({
2042
2119
  security: [{
2043
2120
  key: "secretKey",
@@ -2128,7 +2205,7 @@ var googleUploadImageAsset = (options) => (options.client ?? client).post({
2128
2205
  ...options.headers
2129
2206
  }
2130
2207
  });
2131
- var tiktokCreatorInfo = (options) => (options.client ?? client).get({
2208
+ var googleUploadYoutubeVideoAsset = (options) => (options.client ?? client).post({
2132
2209
  security: [{
2133
2210
  key: "secretKey",
2134
2211
  scheme: "bearer",
@@ -2138,175 +2215,694 @@ var tiktokCreatorInfo = (options) => (options.client ?? client).get({
2138
2215
  scheme: "bearer",
2139
2216
  type: "http"
2140
2217
  }],
2141
- url: "/connections/{id}/tiktok/creator-info",
2142
- ...options
2218
+ url: "/google/{connection_id}/assets/youtube-video",
2219
+ ...options,
2220
+ headers: {
2221
+ "Content-Type": "application/json",
2222
+ ...options.headers
2223
+ }
2143
2224
  });
2144
- var logsList = (options) => (options?.client ?? client).get({
2225
+ var googleListAssetGroups = (options) => (options.client ?? client).get({
2145
2226
  security: [{
2146
2227
  key: "secretKey",
2147
2228
  scheme: "bearer",
2148
2229
  type: "http"
2230
+ }, {
2231
+ key: "frontendToken",
2232
+ scheme: "bearer",
2233
+ type: "http"
2149
2234
  }],
2150
- url: "/logs",
2235
+ url: "/google/{connection_id}/asset-groups",
2151
2236
  ...options
2152
2237
  });
2153
- var logsGet = (options) => (options.client ?? client).get({
2238
+ var googleGetAssetGroup = (options) => (options.client ?? client).get({
2154
2239
  security: [{
2155
2240
  key: "secretKey",
2156
2241
  scheme: "bearer",
2157
2242
  type: "http"
2243
+ }, {
2244
+ key: "frontendToken",
2245
+ scheme: "bearer",
2246
+ type: "http"
2158
2247
  }],
2159
- url: "/logs/{id}",
2248
+ url: "/google/{connection_id}/asset-groups/{id}",
2160
2249
  ...options
2161
2250
  });
2162
- var webhooksListEndpoints = (options) => (options?.client ?? client).get({
2251
+ var googleEditAssetGroup = (options) => (options.client ?? client).patch({
2163
2252
  security: [{
2164
2253
  key: "secretKey",
2165
2254
  scheme: "bearer",
2166
2255
  type: "http"
2256
+ }, {
2257
+ key: "frontendToken",
2258
+ scheme: "bearer",
2259
+ type: "http"
2167
2260
  }],
2168
- url: "/webhooks/endpoints",
2169
- ...options
2261
+ url: "/google/{connection_id}/asset-groups/{id}",
2262
+ ...options,
2263
+ headers: {
2264
+ "Content-Type": "application/json",
2265
+ ...options.headers
2266
+ }
2170
2267
  });
2171
- var webhooksCreateEndpoint = (options) => (options.client ?? client).post({
2268
+ var googleCreateAssetGroup = (options) => (options.client ?? client).post({
2172
2269
  security: [{
2173
2270
  key: "secretKey",
2174
2271
  scheme: "bearer",
2175
2272
  type: "http"
2273
+ }, {
2274
+ key: "frontendToken",
2275
+ scheme: "bearer",
2276
+ type: "http"
2176
2277
  }],
2177
- url: "/webhooks/endpoints",
2278
+ url: "/google/{connection_id}/performance-max/{campaign_id}/asset-groups",
2178
2279
  ...options,
2179
2280
  headers: {
2180
2281
  "Content-Type": "application/json",
2181
2282
  ...options.headers
2182
2283
  }
2183
2284
  });
2184
- var webhooksDeleteEndpoint = (options) => (options.client ?? client).delete({
2285
+ var googlePauseAssetGroup = (options) => (options.client ?? client).post({
2185
2286
  security: [{
2186
2287
  key: "secretKey",
2187
2288
  scheme: "bearer",
2188
2289
  type: "http"
2290
+ }, {
2291
+ key: "frontendToken",
2292
+ scheme: "bearer",
2293
+ type: "http"
2189
2294
  }],
2190
- url: "/webhooks/endpoints/{id}",
2191
- ...options
2295
+ url: "/google/{connection_id}/asset-groups/{id}/pause",
2296
+ ...options,
2297
+ headers: {
2298
+ "Content-Type": "application/json",
2299
+ ...options.headers
2300
+ }
2192
2301
  });
2193
- var webhooksGetEndpoint = (options) => (options.client ?? client).get({
2302
+ var googleEnableAssetGroup = (options) => (options.client ?? client).post({
2194
2303
  security: [{
2195
2304
  key: "secretKey",
2196
2305
  scheme: "bearer",
2197
2306
  type: "http"
2307
+ }, {
2308
+ key: "frontendToken",
2309
+ scheme: "bearer",
2310
+ type: "http"
2198
2311
  }],
2199
- url: "/webhooks/endpoints/{id}",
2200
- ...options
2312
+ url: "/google/{connection_id}/asset-groups/{id}/enable",
2313
+ ...options,
2314
+ headers: {
2315
+ "Content-Type": "application/json",
2316
+ ...options.headers
2317
+ }
2201
2318
  });
2202
- var webhooksUpdateEndpoint = (options) => (options.client ?? client).patch({
2319
+ var googleRemoveAssetGroup = (options) => (options.client ?? client).post({
2203
2320
  security: [{
2204
2321
  key: "secretKey",
2205
2322
  scheme: "bearer",
2206
2323
  type: "http"
2324
+ }, {
2325
+ key: "frontendToken",
2326
+ scheme: "bearer",
2327
+ type: "http"
2207
2328
  }],
2208
- url: "/webhooks/endpoints/{id}",
2329
+ url: "/google/{connection_id}/asset-groups/{id}/remove",
2209
2330
  ...options,
2210
2331
  headers: {
2211
2332
  "Content-Type": "application/json",
2212
2333
  ...options.headers
2213
2334
  }
2214
2335
  });
2215
- var webhooksCreatePortal = (options) => (options?.client ?? client).post({
2336
+ var googleListAssetGroupAssets = (options) => (options.client ?? client).get({
2216
2337
  security: [{
2217
2338
  key: "secretKey",
2218
2339
  scheme: "bearer",
2219
2340
  type: "http"
2341
+ }, {
2342
+ key: "frontendToken",
2343
+ scheme: "bearer",
2344
+ type: "http"
2220
2345
  }],
2221
- url: "/webhooks/portal",
2346
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/assets",
2222
2347
  ...options
2223
2348
  });
2224
- var webhooksListEventTypes = (options) => (options?.client ?? client).get({
2349
+ var googleAttachAssetGroupAsset = (options) => (options.client ?? client).post({
2225
2350
  security: [{
2226
2351
  key: "secretKey",
2227
2352
  scheme: "bearer",
2228
2353
  type: "http"
2354
+ }, {
2355
+ key: "frontendToken",
2356
+ scheme: "bearer",
2357
+ type: "http"
2229
2358
  }],
2230
- url: "/webhooks/event-types",
2231
- ...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
+ }
2232
2365
  });
2233
- var webhooksPing = (options) => (options.client ?? client).post({
2366
+ var googleRemoveAssetGroupAsset = (options) => (options.client ?? client).post({
2234
2367
  security: [{
2235
2368
  key: "secretKey",
2236
2369
  scheme: "bearer",
2237
2370
  type: "http"
2371
+ }, {
2372
+ key: "frontendToken",
2373
+ scheme: "bearer",
2374
+ type: "http"
2238
2375
  }],
2239
- url: "/webhooks/ping",
2376
+ url: "/google/{connection_id}/asset-groups/{asset_group_id}/assets/{id}/remove",
2240
2377
  ...options,
2241
2378
  headers: {
2242
2379
  "Content-Type": "application/json",
2243
2380
  ...options.headers
2244
2381
  }
2245
2382
  });
2246
- var tokensMint = (options) => (options.client ?? client).post({
2383
+ var googleListAssetGroupSignals = (options) => (options.client ?? client).get({
2247
2384
  security: [{
2248
2385
  key: "secretKey",
2249
2386
  scheme: "bearer",
2250
2387
  type: "http"
2388
+ }, {
2389
+ key: "frontendToken",
2390
+ scheme: "bearer",
2391
+ type: "http"
2251
2392
  }],
2252
- 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",
2253
2407
  ...options,
2254
2408
  headers: {
2255
2409
  "Content-Type": "application/json",
2256
2410
  ...options.headers
2257
2411
  }
2258
2412
  });
2259
-
2260
- // src/client/@tanstack/react-query.gen.ts
2261
- var createQueryKey = (id, options, infinite, tags) => {
2262
- const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
2263
- if (infinite) {
2264
- params._infinite = infinite;
2265
- }
2266
- if (options?.body) {
2267
- params.body = options.body;
2268
- }
2269
- if (options?.headers) {
2270
- params.headers = options.headers;
2271
- }
2272
- if (options?.path) {
2273
- params.path = options.path;
2274
- }
2275
- if (options?.query) {
2276
- 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
2277
2428
  }
2278
- return [params];
2279
- };
2280
- var profilesListQueryKey = (options) => createQueryKey("profilesList", options);
2281
- var profilesListOptions = (options) => queryOptions({
2282
- queryFn: async ({ queryKey, signal }) => {
2283
- const { data } = await profilesList({
2284
- ...options,
2285
- ...queryKey[0],
2286
- signal,
2287
- throwOnError: true
2288
- });
2289
- return data;
2290
- },
2291
- queryKey: profilesListQueryKey(options)
2292
2429
  });
2293
- var createInfiniteParams = (queryKey, page) => {
2294
- const params = { ...queryKey[0] };
2295
- if (page.body) {
2296
- params.body = {
2297
- ...queryKey[0].body,
2298
- ...page.body
2299
- };
2300
- }
2301
- if (page.headers) {
2302
- params.headers = {
2303
- ...queryKey[0].headers,
2304
- ...page.headers
2305
- };
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
2306
2441
  }
2307
- if (page.path) {
2308
- params.path = {
2309
- ...queryKey[0].path,
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,
2310
2906
  ...page.path
2311
2907
  };
2312
2908
  }
@@ -2316,10 +2912,336 @@ var createInfiniteParams = (queryKey, page) => {
2316
2912
  ...page.query
2317
2913
  };
2318
2914
  }
2319
- return params;
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)
3124
+ }
3125
+ );
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;
2320
3138
  };
2321
- var profilesListInfiniteQueryKey = (options) => createQueryKey("profilesList", options, true);
2322
- var profilesListInfiniteOptions = (options) => infiniteQueryOptions(
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(
2323
3245
  // @ts-ignore
2324
3246
  {
2325
3247
  queryFn: async ({ pageParam, queryKey, signal }) => {
@@ -2329,7 +3251,7 @@ var profilesListInfiniteOptions = (options) => infiniteQueryOptions(
2329
3251
  }
2330
3252
  };
2331
3253
  const params = createInfiniteParams(queryKey, page);
2332
- const { data } = await profilesList({
3254
+ const { data } = await postsList({
2333
3255
  ...options,
2334
3256
  ...params,
2335
3257
  signal,
@@ -2337,13 +3259,195 @@ var profilesListInfiniteOptions = (options) => infiniteQueryOptions(
2337
3259
  });
2338
3260
  return data;
2339
3261
  },
2340
- queryKey: profilesListInfiniteQueryKey(options)
3262
+ queryKey: postsListInfiniteQueryKey(options)
2341
3263
  }
2342
3264
  );
2343
- var profilesCreateMutation = (options) => {
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) => {
2344
3448
  const mutationOptions = {
2345
3449
  mutationFn: async (fnOptions) => {
2346
- const { data } = await profilesCreate({
3450
+ const { data } = await googleEditAccount({
2347
3451
  ...options,
2348
3452
  ...fnOptions,
2349
3453
  throwOnError: true
@@ -2353,10 +3457,10 @@ var profilesCreateMutation = (options) => {
2353
3457
  };
2354
3458
  return mutationOptions;
2355
3459
  };
2356
- var profilesDeleteMutation = (options) => {
3460
+ var googleGetInsightsMutation = (options) => {
2357
3461
  const mutationOptions = {
2358
3462
  mutationFn: async (fnOptions) => {
2359
- const { data } = await profilesDelete({
3463
+ const { data } = await googleGetInsights({
2360
3464
  ...options,
2361
3465
  ...fnOptions,
2362
3466
  throwOnError: true
@@ -2366,10 +3470,10 @@ var profilesDeleteMutation = (options) => {
2366
3470
  };
2367
3471
  return mutationOptions;
2368
3472
  };
2369
- var profilesGetQueryKey = (options) => createQueryKey("profilesGet", options);
2370
- var profilesGetOptions = (options) => queryOptions({
3473
+ var googleGetAdTreeQueryKey = (options) => createQueryKey("googleGetAdTree", options);
3474
+ var googleGetAdTreeOptions = (options) => queryOptions({
2371
3475
  queryFn: async ({ queryKey, signal }) => {
2372
- const { data } = await profilesGet({
3476
+ const { data } = await googleGetAdTree({
2373
3477
  ...options,
2374
3478
  ...queryKey[0],
2375
3479
  signal,
@@ -2377,12 +3481,12 @@ var profilesGetOptions = (options) => queryOptions({
2377
3481
  });
2378
3482
  return data;
2379
3483
  },
2380
- queryKey: profilesGetQueryKey(options)
3484
+ queryKey: googleGetAdTreeQueryKey(options)
2381
3485
  });
2382
- var profilesUpdateMutation = (options) => {
3486
+ var googleRunGaqlMutation = (options) => {
2383
3487
  const mutationOptions = {
2384
3488
  mutationFn: async (fnOptions) => {
2385
- const { data } = await profilesUpdate({
3489
+ const { data } = await googleRunGaql({
2386
3490
  ...options,
2387
3491
  ...fnOptions,
2388
3492
  throwOnError: true
@@ -2392,45 +3496,23 @@ var profilesUpdateMutation = (options) => {
2392
3496
  };
2393
3497
  return mutationOptions;
2394
3498
  };
2395
- var connectionsListByProfileQueryKey = (options) => createQueryKey("connectionsListByProfile", options);
2396
- var connectionsListByProfileOptions = (options) => queryOptions({
2397
- queryFn: async ({ queryKey, signal }) => {
2398
- const { data } = await connectionsListByProfile({
2399
- ...options,
2400
- ...queryKey[0],
2401
- signal,
2402
- throwOnError: true
2403
- });
2404
- return data;
2405
- },
2406
- queryKey: connectionsListByProfileQueryKey(options)
2407
- });
2408
- var connectionsListByProfileInfiniteQueryKey = (options) => createQueryKey("connectionsListByProfile", options, true);
2409
- var connectionsListByProfileInfiniteOptions = (options) => infiniteQueryOptions(
2410
- // @ts-ignore
2411
- {
2412
- queryFn: async ({ pageParam, queryKey, signal }) => {
2413
- const page = typeof pageParam === "object" ? pageParam : {
2414
- query: {
2415
- offset: pageParam
2416
- }
2417
- };
2418
- const params = createInfiniteParams(queryKey, page);
2419
- const { data } = await connectionsListByProfile({
3499
+ var googleCreateBudgetMutation = (options) => {
3500
+ const mutationOptions = {
3501
+ mutationFn: async (fnOptions) => {
3502
+ const { data } = await googleCreateBudget({
2420
3503
  ...options,
2421
- ...params,
2422
- signal,
3504
+ ...fnOptions,
2423
3505
  throwOnError: true
2424
3506
  });
2425
3507
  return data;
2426
- },
2427
- queryKey: connectionsListByProfileInfiniteQueryKey(options)
2428
- }
2429
- );
2430
- var connectionsDeleteMutation = (options) => {
3508
+ }
3509
+ };
3510
+ return mutationOptions;
3511
+ };
3512
+ var googleEditBudgetMutation = (options) => {
2431
3513
  const mutationOptions = {
2432
3514
  mutationFn: async (fnOptions) => {
2433
- const { data } = await connectionsDelete({
3515
+ const { data } = await googleEditBudget({
2434
3516
  ...options,
2435
3517
  ...fnOptions,
2436
3518
  throwOnError: true
@@ -2440,10 +3522,23 @@ var connectionsDeleteMutation = (options) => {
2440
3522
  };
2441
3523
  return mutationOptions;
2442
3524
  };
2443
- var connectionsGetQueryKey = (options) => createQueryKey("connectionsGet", options);
2444
- var connectionsGetOptions = (options) => queryOptions({
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({
2445
3540
  queryFn: async ({ queryKey, signal }) => {
2446
- const { data } = await connectionsGet({
3541
+ const { data } = await googleListCampaigns({
2447
3542
  ...options,
2448
3543
  ...queryKey[0],
2449
3544
  signal,
@@ -2451,12 +3546,12 @@ var connectionsGetOptions = (options) => queryOptions({
2451
3546
  });
2452
3547
  return data;
2453
3548
  },
2454
- queryKey: connectionsGetQueryKey(options)
3549
+ queryKey: googleListCampaignsQueryKey(options)
2455
3550
  });
2456
- var connectionsSelectMutation = (options) => {
3551
+ var googleCreateCampaignMutation = (options) => {
2457
3552
  const mutationOptions = {
2458
3553
  mutationFn: async (fnOptions) => {
2459
- const { data } = await connectionsSelect({
3554
+ const { data } = await googleCreateCampaign({
2460
3555
  ...options,
2461
3556
  ...fnOptions,
2462
3557
  throwOnError: true
@@ -2466,10 +3561,10 @@ var connectionsSelectMutation = (options) => {
2466
3561
  };
2467
3562
  return mutationOptions;
2468
3563
  };
2469
- var connectionsListAccountsQueryKey = (options) => createQueryKey("connectionsListAccounts", options);
2470
- var connectionsListAccountsOptions = (options) => queryOptions({
3564
+ var googleGetCampaignQueryKey = (options) => createQueryKey("googleGetCampaign", options);
3565
+ var googleGetCampaignOptions = (options) => queryOptions({
2471
3566
  queryFn: async ({ queryKey, signal }) => {
2472
- const { data } = await connectionsListAccounts({
3567
+ const { data } = await googleGetCampaign({
2473
3568
  ...options,
2474
3569
  ...queryKey[0],
2475
3570
  signal,
@@ -2477,12 +3572,12 @@ var connectionsListAccountsOptions = (options) => queryOptions({
2477
3572
  });
2478
3573
  return data;
2479
3574
  },
2480
- queryKey: connectionsListAccountsQueryKey(options)
3575
+ queryKey: googleGetCampaignQueryKey(options)
2481
3576
  });
2482
- var connectionsConnectMutation = (options) => {
3577
+ var googleEditCampaignMutation = (options) => {
2483
3578
  const mutationOptions = {
2484
3579
  mutationFn: async (fnOptions) => {
2485
- const { data } = await connectionsConnect({
3580
+ const { data } = await googleEditCampaign({
2486
3581
  ...options,
2487
3582
  ...fnOptions,
2488
3583
  throwOnError: true
@@ -2492,10 +3587,62 @@ var connectionsConnectMutation = (options) => {
2492
3587
  };
2493
3588
  return mutationOptions;
2494
3589
  };
2495
- var mediaListQueryKey = (options) => createQueryKey("mediaList", options);
2496
- var mediaListOptions = (options) => queryOptions({
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) => {
3630
+ const mutationOptions = {
3631
+ mutationFn: async (fnOptions) => {
3632
+ const { data } = await googleEnableCampaign({
3633
+ ...options,
3634
+ ...fnOptions,
3635
+ throwOnError: true
3636
+ });
3637
+ return data;
3638
+ }
3639
+ };
3640
+ return mutationOptions;
3641
+ };
3642
+ var googleSearchGeoTargetsQueryKey = (options) => createQueryKey("googleSearchGeoTargets", options);
3643
+ var googleSearchGeoTargetsOptions = (options) => queryOptions({
2497
3644
  queryFn: async ({ queryKey, signal }) => {
2498
- const { data } = await mediaList({
3645
+ const { data } = await googleSearchGeoTargets({
2499
3646
  ...options,
2500
3647
  ...queryKey[0],
2501
3648
  signal,
@@ -2503,34 +3650,38 @@ var mediaListOptions = (options) => queryOptions({
2503
3650
  });
2504
3651
  return data;
2505
3652
  },
2506
- queryKey: mediaListQueryKey(options)
3653
+ queryKey: googleSearchGeoTargetsQueryKey(options)
3654
+ });
3655
+ var googleListCampaignCriteriaQueryKey = (options) => createQueryKey("googleListCampaignCriteria", options);
3656
+ var googleListCampaignCriteriaOptions = (options) => queryOptions({
3657
+ queryFn: async ({ queryKey, signal }) => {
3658
+ const { data } = await googleListCampaignCriteria({
3659
+ ...options,
3660
+ ...queryKey[0],
3661
+ signal,
3662
+ throwOnError: true
3663
+ });
3664
+ return data;
3665
+ },
3666
+ queryKey: googleListCampaignCriteriaQueryKey(options)
2507
3667
  });
2508
- var mediaListInfiniteQueryKey = (options) => createQueryKey("mediaList", options, true);
2509
- var mediaListInfiniteOptions = (options) => infiniteQueryOptions(
2510
- // @ts-ignore
2511
- {
2512
- queryFn: async ({ pageParam, queryKey, signal }) => {
2513
- const page = typeof pageParam === "object" ? pageParam : {
2514
- query: {
2515
- offset: pageParam
2516
- }
2517
- };
2518
- const params = createInfiniteParams(queryKey, page);
2519
- const { data } = await mediaList({
3668
+ var googleCreateCampaignCriterionMutation = (options) => {
3669
+ const mutationOptions = {
3670
+ mutationFn: async (fnOptions) => {
3671
+ const { data } = await googleCreateCampaignCriterion({
2520
3672
  ...options,
2521
- ...params,
2522
- signal,
3673
+ ...fnOptions,
2523
3674
  throwOnError: true
2524
3675
  });
2525
3676
  return data;
2526
- },
2527
- queryKey: mediaListInfiniteQueryKey(options)
2528
- }
2529
- );
2530
- var mediaCreateMutation = (options) => {
3677
+ }
3678
+ };
3679
+ return mutationOptions;
3680
+ };
3681
+ var googleRemoveCampaignCriterionMutation = (options) => {
2531
3682
  const mutationOptions = {
2532
3683
  mutationFn: async (fnOptions) => {
2533
- const { data } = await mediaCreate({
3684
+ const { data } = await googleRemoveCampaignCriterion({
2534
3685
  ...options,
2535
3686
  ...fnOptions,
2536
3687
  throwOnError: true
@@ -2540,10 +3691,10 @@ var mediaCreateMutation = (options) => {
2540
3691
  };
2541
3692
  return mutationOptions;
2542
3693
  };
2543
- var mediaDeleteMutation = (options) => {
3694
+ var googleSetCampaignGeoSettingsMutation = (options) => {
2544
3695
  const mutationOptions = {
2545
3696
  mutationFn: async (fnOptions) => {
2546
- const { data } = await mediaDelete({
3697
+ const { data } = await googleSetCampaignGeoSettings({
2547
3698
  ...options,
2548
3699
  ...fnOptions,
2549
3700
  throwOnError: true
@@ -2553,10 +3704,10 @@ var mediaDeleteMutation = (options) => {
2553
3704
  };
2554
3705
  return mutationOptions;
2555
3706
  };
2556
- var mediaGetQueryKey = (options) => createQueryKey("mediaGet", options);
2557
- var mediaGetOptions = (options) => queryOptions({
3707
+ var googleListAdGroupsQueryKey = (options) => createQueryKey("googleListAdGroups", options);
3708
+ var googleListAdGroupsOptions = (options) => queryOptions({
2558
3709
  queryFn: async ({ queryKey, signal }) => {
2559
- const { data } = await mediaGet({
3710
+ const { data } = await googleListAdGroups({
2560
3711
  ...options,
2561
3712
  ...queryKey[0],
2562
3713
  signal,
@@ -2564,25 +3715,12 @@ var mediaGetOptions = (options) => queryOptions({
2564
3715
  });
2565
3716
  return data;
2566
3717
  },
2567
- queryKey: mediaGetQueryKey(options)
3718
+ queryKey: googleListAdGroupsQueryKey(options)
2568
3719
  });
2569
- var mediaUpdateMutation = (options) => {
2570
- const mutationOptions = {
2571
- mutationFn: async (fnOptions) => {
2572
- const { data } = await mediaUpdate({
2573
- ...options,
2574
- ...fnOptions,
2575
- throwOnError: true
2576
- });
2577
- return data;
2578
- }
2579
- };
2580
- return mutationOptions;
2581
- };
2582
- var mediaSignPartMutation = (options) => {
3720
+ var googleCreateAdGroupMutation = (options) => {
2583
3721
  const mutationOptions = {
2584
3722
  mutationFn: async (fnOptions) => {
2585
- const { data } = await mediaSignPart({
3723
+ const { data } = await googleCreateAdGroup({
2586
3724
  ...options,
2587
3725
  ...fnOptions,
2588
3726
  throwOnError: true
@@ -2592,10 +3730,10 @@ var mediaSignPartMutation = (options) => {
2592
3730
  };
2593
3731
  return mutationOptions;
2594
3732
  };
2595
- var mediaListPartsQueryKey = (options) => createQueryKey("mediaListParts", options);
2596
- var mediaListPartsOptions = (options) => queryOptions({
3733
+ var googleGetAdGroupQueryKey = (options) => createQueryKey("googleGetAdGroup", options);
3734
+ var googleGetAdGroupOptions = (options) => queryOptions({
2597
3735
  queryFn: async ({ queryKey, signal }) => {
2598
- const { data } = await mediaListParts({
3736
+ const { data } = await googleGetAdGroup({
2599
3737
  ...options,
2600
3738
  ...queryKey[0],
2601
3739
  signal,
@@ -2603,12 +3741,12 @@ var mediaListPartsOptions = (options) => queryOptions({
2603
3741
  });
2604
3742
  return data;
2605
3743
  },
2606
- queryKey: mediaListPartsQueryKey(options)
3744
+ queryKey: googleGetAdGroupQueryKey(options)
2607
3745
  });
2608
- var mediaCompleteMutation = (options) => {
3746
+ var googleEditAdGroupMutation = (options) => {
2609
3747
  const mutationOptions = {
2610
3748
  mutationFn: async (fnOptions) => {
2611
- const { data } = await mediaComplete({
3749
+ const { data } = await googleEditAdGroup({
2612
3750
  ...options,
2613
3751
  ...fnOptions,
2614
3752
  throwOnError: true
@@ -2618,10 +3756,10 @@ var mediaCompleteMutation = (options) => {
2618
3756
  };
2619
3757
  return mutationOptions;
2620
3758
  };
2621
- var mediaAbortMutation = (options) => {
3759
+ var googleSetAdGroupBidsMutation = (options) => {
2622
3760
  const mutationOptions = {
2623
3761
  mutationFn: async (fnOptions) => {
2624
- const { data } = await mediaAbort({
3762
+ const { data } = await googleSetAdGroupBids({
2625
3763
  ...options,
2626
3764
  ...fnOptions,
2627
3765
  throwOnError: true
@@ -2631,45 +3769,23 @@ var mediaAbortMutation = (options) => {
2631
3769
  };
2632
3770
  return mutationOptions;
2633
3771
  };
2634
- var postsListQueryKey = (options) => createQueryKey("postsList", options);
2635
- var postsListOptions = (options) => queryOptions({
2636
- queryFn: async ({ queryKey, signal }) => {
2637
- const { data } = await postsList({
2638
- ...options,
2639
- ...queryKey[0],
2640
- signal,
2641
- throwOnError: true
2642
- });
2643
- return data;
2644
- },
2645
- queryKey: postsListQueryKey(options)
2646
- });
2647
- var postsListInfiniteQueryKey = (options) => createQueryKey("postsList", options, true);
2648
- var postsListInfiniteOptions = (options) => infiniteQueryOptions(
2649
- // @ts-ignore
2650
- {
2651
- queryFn: async ({ pageParam, queryKey, signal }) => {
2652
- const page = typeof pageParam === "object" ? pageParam : {
2653
- query: {
2654
- offset: pageParam
2655
- }
2656
- };
2657
- const params = createInfiniteParams(queryKey, page);
2658
- const { data } = await postsList({
3772
+ var googleRemoveAdGroupMutation = (options) => {
3773
+ const mutationOptions = {
3774
+ mutationFn: async (fnOptions) => {
3775
+ const { data } = await googleRemoveAdGroup({
2659
3776
  ...options,
2660
- ...params,
2661
- signal,
3777
+ ...fnOptions,
2662
3778
  throwOnError: true
2663
3779
  });
2664
3780
  return data;
2665
- },
2666
- queryKey: postsListInfiniteQueryKey(options)
2667
- }
2668
- );
2669
- var postsCreateMutation = (options) => {
3781
+ }
3782
+ };
3783
+ return mutationOptions;
3784
+ };
3785
+ var googlePauseAdGroupMutation = (options) => {
2670
3786
  const mutationOptions = {
2671
3787
  mutationFn: async (fnOptions) => {
2672
- const { data } = await postsCreate({
3788
+ const { data } = await googlePauseAdGroup({
2673
3789
  ...options,
2674
3790
  ...fnOptions,
2675
3791
  throwOnError: true
@@ -2679,10 +3795,10 @@ var postsCreateMutation = (options) => {
2679
3795
  };
2680
3796
  return mutationOptions;
2681
3797
  };
2682
- var postsDeleteMutation = (options) => {
3798
+ var googleEnableAdGroupMutation = (options) => {
2683
3799
  const mutationOptions = {
2684
3800
  mutationFn: async (fnOptions) => {
2685
- const { data } = await postsDelete({
3801
+ const { data } = await googleEnableAdGroup({
2686
3802
  ...options,
2687
3803
  ...fnOptions,
2688
3804
  throwOnError: true
@@ -2692,10 +3808,10 @@ var postsDeleteMutation = (options) => {
2692
3808
  };
2693
3809
  return mutationOptions;
2694
3810
  };
2695
- var postsGetQueryKey = (options) => createQueryKey("postsGet", options);
2696
- var postsGetOptions = (options) => queryOptions({
3811
+ var googleListAdGroupCriteriaQueryKey = (options) => createQueryKey("googleListAdGroupCriteria", options);
3812
+ var googleListAdGroupCriteriaOptions = (options) => queryOptions({
2697
3813
  queryFn: async ({ queryKey, signal }) => {
2698
- const { data } = await postsGet({
3814
+ const { data } = await googleListAdGroupCriteria({
2699
3815
  ...options,
2700
3816
  ...queryKey[0],
2701
3817
  signal,
@@ -2703,12 +3819,12 @@ var postsGetOptions = (options) => queryOptions({
2703
3819
  });
2704
3820
  return data;
2705
3821
  },
2706
- queryKey: postsGetQueryKey(options)
3822
+ queryKey: googleListAdGroupCriteriaQueryKey(options)
2707
3823
  });
2708
- var postsUpdateMutation = (options) => {
3824
+ var googleCreateAdGroupCriterionMutation = (options) => {
2709
3825
  const mutationOptions = {
2710
3826
  mutationFn: async (fnOptions) => {
2711
- const { data } = await postsUpdate({
3827
+ const { data } = await googleCreateAdGroupCriterion({
2712
3828
  ...options,
2713
3829
  ...fnOptions,
2714
3830
  throwOnError: true
@@ -2718,10 +3834,10 @@ var postsUpdateMutation = (options) => {
2718
3834
  };
2719
3835
  return mutationOptions;
2720
3836
  };
2721
- var postsValidateMutation = (options) => {
3837
+ var googleRemoveAdGroupCriterionMutation = (options) => {
2722
3838
  const mutationOptions = {
2723
3839
  mutationFn: async (fnOptions) => {
2724
- const { data } = await postsValidate({
3840
+ const { data } = await googleRemoveAdGroupCriterion({
2725
3841
  ...options,
2726
3842
  ...fnOptions,
2727
3843
  throwOnError: true
@@ -2731,88 +3847,10 @@ var postsValidateMutation = (options) => {
2731
3847
  };
2732
3848
  return mutationOptions;
2733
3849
  };
2734
- var metaAccountQueryKey = (options) => createQueryKey("metaAccount", options);
2735
- var metaAccountOptions = (options) => queryOptions({
2736
- queryFn: async ({ queryKey, signal }) => {
2737
- const { data } = await metaAccount({
2738
- ...options,
2739
- ...queryKey[0],
2740
- signal,
2741
- throwOnError: true
2742
- });
2743
- return data;
2744
- },
2745
- queryKey: metaAccountQueryKey(options)
2746
- });
2747
- var metaInsightsQueryKey = (options) => createQueryKey("metaInsights", options);
2748
- var metaInsightsOptions = (options) => queryOptions({
2749
- queryFn: async ({ queryKey, signal }) => {
2750
- const { data } = await metaInsights({
2751
- ...options,
2752
- ...queryKey[0],
2753
- signal,
2754
- throwOnError: true
2755
- });
2756
- return data;
2757
- },
2758
- queryKey: metaInsightsQueryKey(options)
2759
- });
2760
- var metaCampaignsQueryKey = (options) => createQueryKey("metaCampaigns", options);
2761
- var metaCampaignsOptions = (options) => queryOptions({
2762
- queryFn: async ({ queryKey, signal }) => {
2763
- const { data } = await metaCampaigns({
2764
- ...options,
2765
- ...queryKey[0],
2766
- signal,
2767
- throwOnError: true
2768
- });
2769
- return data;
2770
- },
2771
- queryKey: metaCampaignsQueryKey(options)
2772
- });
2773
- var metaCampaignQueryKey = (options) => createQueryKey("metaCampaign", options);
2774
- var metaCampaignOptions = (options) => queryOptions({
2775
- queryFn: async ({ queryKey, signal }) => {
2776
- const { data } = await metaCampaign({
2777
- ...options,
2778
- ...queryKey[0],
2779
- signal,
2780
- throwOnError: true
2781
- });
2782
- return data;
2783
- },
2784
- queryKey: metaCampaignQueryKey(options)
2785
- });
2786
- var metaAdsetsQueryKey = (options) => createQueryKey("metaAdsets", options);
2787
- var metaAdsetsOptions = (options) => queryOptions({
2788
- queryFn: async ({ queryKey, signal }) => {
2789
- const { data } = await metaAdsets({
2790
- ...options,
2791
- ...queryKey[0],
2792
- signal,
2793
- throwOnError: true
2794
- });
2795
- return data;
2796
- },
2797
- queryKey: metaAdsetsQueryKey(options)
2798
- });
2799
- var metaAdsetQueryKey = (options) => createQueryKey("metaAdset", options);
2800
- var metaAdsetOptions = (options) => queryOptions({
2801
- queryFn: async ({ queryKey, signal }) => {
2802
- const { data } = await metaAdset({
2803
- ...options,
2804
- ...queryKey[0],
2805
- signal,
2806
- throwOnError: true
2807
- });
2808
- return data;
2809
- },
2810
- queryKey: metaAdsetQueryKey(options)
2811
- });
2812
- var metaAdsQueryKey = (options) => createQueryKey("metaAds", options);
2813
- var metaAdsOptions = (options) => queryOptions({
3850
+ var googleListAudiencesQueryKey = (options) => createQueryKey("googleListAudiences", options);
3851
+ var googleListAudiencesOptions = (options) => queryOptions({
2814
3852
  queryFn: async ({ queryKey, signal }) => {
2815
- const { data } = await metaAds({
3853
+ const { data } = await googleListAudiences({
2816
3854
  ...options,
2817
3855
  ...queryKey[0],
2818
3856
  signal,
@@ -2820,12 +3858,25 @@ var metaAdsOptions = (options) => queryOptions({
2820
3858
  });
2821
3859
  return data;
2822
3860
  },
2823
- queryKey: metaAdsQueryKey(options)
3861
+ queryKey: googleListAudiencesQueryKey(options)
2824
3862
  });
2825
- var metaAdQueryKey = (options) => createQueryKey("metaAd", options);
2826
- 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({
2827
3878
  queryFn: async ({ queryKey, signal }) => {
2828
- const { data } = await metaAd({
3879
+ const { data } = await googleListAds({
2829
3880
  ...options,
2830
3881
  ...queryKey[0],
2831
3882
  signal,
@@ -2833,12 +3884,25 @@ var metaAdOptions = (options) => queryOptions({
2833
3884
  });
2834
3885
  return data;
2835
3886
  },
2836
- queryKey: metaAdQueryKey(options)
3887
+ queryKey: googleListAdsQueryKey(options)
2837
3888
  });
2838
- var googleGetAccountQueryKey = (options) => createQueryKey("googleGetAccount", options);
2839
- 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({
2840
3904
  queryFn: async ({ queryKey, signal }) => {
2841
- const { data } = await googleGetAccount({
3905
+ const { data } = await googleGetAd({
2842
3906
  ...options,
2843
3907
  ...queryKey[0],
2844
3908
  signal,
@@ -2846,12 +3910,12 @@ var googleGetAccountOptions = (options) => queryOptions({
2846
3910
  });
2847
3911
  return data;
2848
3912
  },
2849
- queryKey: googleGetAccountQueryKey(options)
3913
+ queryKey: googleGetAdQueryKey(options)
2850
3914
  });
2851
- var googleEditAccountMutation = (options) => {
3915
+ var googleEditAdMutation = (options) => {
2852
3916
  const mutationOptions = {
2853
3917
  mutationFn: async (fnOptions) => {
2854
- const { data } = await googleEditAccount({
3918
+ const { data } = await googleEditAd({
2855
3919
  ...options,
2856
3920
  ...fnOptions,
2857
3921
  throwOnError: true
@@ -2861,10 +3925,10 @@ var googleEditAccountMutation = (options) => {
2861
3925
  };
2862
3926
  return mutationOptions;
2863
3927
  };
2864
- var googleGetInsightsMutation = (options) => {
3928
+ var googleCreateDisplayAdMutation = (options) => {
2865
3929
  const mutationOptions = {
2866
3930
  mutationFn: async (fnOptions) => {
2867
- const { data } = await googleGetInsights({
3931
+ const { data } = await googleCreateDisplayAd({
2868
3932
  ...options,
2869
3933
  ...fnOptions,
2870
3934
  throwOnError: true
@@ -2874,23 +3938,10 @@ var googleGetInsightsMutation = (options) => {
2874
3938
  };
2875
3939
  return mutationOptions;
2876
3940
  };
2877
- var googleGetAdTreeQueryKey = (options) => createQueryKey("googleGetAdTree", options);
2878
- var googleGetAdTreeOptions = (options) => queryOptions({
2879
- queryFn: async ({ queryKey, signal }) => {
2880
- const { data } = await googleGetAdTree({
2881
- ...options,
2882
- ...queryKey[0],
2883
- signal,
2884
- throwOnError: true
2885
- });
2886
- return data;
2887
- },
2888
- queryKey: googleGetAdTreeQueryKey(options)
2889
- });
2890
- var googleRunGaqlMutation = (options) => {
3941
+ var googleEditDisplayAdMutation = (options) => {
2891
3942
  const mutationOptions = {
2892
3943
  mutationFn: async (fnOptions) => {
2893
- const { data } = await googleRunGaql({
3944
+ const { data } = await googleEditDisplayAd({
2894
3945
  ...options,
2895
3946
  ...fnOptions,
2896
3947
  throwOnError: true
@@ -2900,10 +3951,10 @@ var googleRunGaqlMutation = (options) => {
2900
3951
  };
2901
3952
  return mutationOptions;
2902
3953
  };
2903
- var googleCreateBudgetMutation = (options) => {
3954
+ var googleRemoveAdMutation = (options) => {
2904
3955
  const mutationOptions = {
2905
3956
  mutationFn: async (fnOptions) => {
2906
- const { data } = await googleCreateBudget({
3957
+ const { data } = await googleRemoveAd({
2907
3958
  ...options,
2908
3959
  ...fnOptions,
2909
3960
  throwOnError: true
@@ -2913,10 +3964,10 @@ var googleCreateBudgetMutation = (options) => {
2913
3964
  };
2914
3965
  return mutationOptions;
2915
3966
  };
2916
- var googleEditBudgetMutation = (options) => {
3967
+ var googlePauseAdMutation = (options) => {
2917
3968
  const mutationOptions = {
2918
3969
  mutationFn: async (fnOptions) => {
2919
- const { data } = await googleEditBudget({
3970
+ const { data } = await googlePauseAd({
2920
3971
  ...options,
2921
3972
  ...fnOptions,
2922
3973
  throwOnError: true
@@ -2926,10 +3977,10 @@ var googleEditBudgetMutation = (options) => {
2926
3977
  };
2927
3978
  return mutationOptions;
2928
3979
  };
2929
- var googleRemoveBudgetMutation = (options) => {
3980
+ var googleEnableAdMutation = (options) => {
2930
3981
  const mutationOptions = {
2931
3982
  mutationFn: async (fnOptions) => {
2932
- const { data } = await googleRemoveBudget({
3983
+ const { data } = await googleEnableAd({
2933
3984
  ...options,
2934
3985
  ...fnOptions,
2935
3986
  throwOnError: true
@@ -2939,10 +3990,10 @@ var googleRemoveBudgetMutation = (options) => {
2939
3990
  };
2940
3991
  return mutationOptions;
2941
3992
  };
2942
- var googleListCampaignsQueryKey = (options) => createQueryKey("googleListCampaigns", options);
2943
- var googleListCampaignsOptions = (options) => queryOptions({
3993
+ var googleListKeywordsQueryKey = (options) => createQueryKey("googleListKeywords", options);
3994
+ var googleListKeywordsOptions = (options) => queryOptions({
2944
3995
  queryFn: async ({ queryKey, signal }) => {
2945
- const { data } = await googleListCampaigns({
3996
+ const { data } = await googleListKeywords({
2946
3997
  ...options,
2947
3998
  ...queryKey[0],
2948
3999
  signal,
@@ -2950,12 +4001,12 @@ var googleListCampaignsOptions = (options) => queryOptions({
2950
4001
  });
2951
4002
  return data;
2952
4003
  },
2953
- queryKey: googleListCampaignsQueryKey(options)
4004
+ queryKey: googleListKeywordsQueryKey(options)
2954
4005
  });
2955
- var googleCreateCampaignMutation = (options) => {
4006
+ var googleCreateKeywordMutation = (options) => {
2956
4007
  const mutationOptions = {
2957
4008
  mutationFn: async (fnOptions) => {
2958
- const { data } = await googleCreateCampaign({
4009
+ const { data } = await googleCreateKeyword({
2959
4010
  ...options,
2960
4011
  ...fnOptions,
2961
4012
  throwOnError: true
@@ -2965,10 +4016,10 @@ var googleCreateCampaignMutation = (options) => {
2965
4016
  };
2966
4017
  return mutationOptions;
2967
4018
  };
2968
- var googleGetCampaignQueryKey = (options) => createQueryKey("googleGetCampaign", options);
2969
- var googleGetCampaignOptions = (options) => queryOptions({
4019
+ var googleGetKeywordQueryKey = (options) => createQueryKey("googleGetKeyword", options);
4020
+ var googleGetKeywordOptions = (options) => queryOptions({
2970
4021
  queryFn: async ({ queryKey, signal }) => {
2971
- const { data } = await googleGetCampaign({
4022
+ const { data } = await googleGetKeyword({
2972
4023
  ...options,
2973
4024
  ...queryKey[0],
2974
4025
  signal,
@@ -2976,12 +4027,12 @@ var googleGetCampaignOptions = (options) => queryOptions({
2976
4027
  });
2977
4028
  return data;
2978
4029
  },
2979
- queryKey: googleGetCampaignQueryKey(options)
4030
+ queryKey: googleGetKeywordQueryKey(options)
2980
4031
  });
2981
- var googleEditCampaignMutation = (options) => {
4032
+ var googleSetKeywordBidMutation = (options) => {
2982
4033
  const mutationOptions = {
2983
4034
  mutationFn: async (fnOptions) => {
2984
- const { data } = await googleEditCampaign({
4035
+ const { data } = await googleSetKeywordBid({
2985
4036
  ...options,
2986
4037
  ...fnOptions,
2987
4038
  throwOnError: true
@@ -2991,10 +4042,10 @@ var googleEditCampaignMutation = (options) => {
2991
4042
  };
2992
4043
  return mutationOptions;
2993
4044
  };
2994
- var googleRemoveCampaignMutation = (options) => {
4045
+ var googleRemoveKeywordMutation = (options) => {
2995
4046
  const mutationOptions = {
2996
4047
  mutationFn: async (fnOptions) => {
2997
- const { data } = await googleRemoveCampaign({
4048
+ const { data } = await googleRemoveKeyword({
2998
4049
  ...options,
2999
4050
  ...fnOptions,
3000
4051
  throwOnError: true
@@ -3004,10 +4055,10 @@ var googleRemoveCampaignMutation = (options) => {
3004
4055
  };
3005
4056
  return mutationOptions;
3006
4057
  };
3007
- var googlePauseCampaignMutation = (options) => {
4058
+ var googlePauseKeywordMutation = (options) => {
3008
4059
  const mutationOptions = {
3009
4060
  mutationFn: async (fnOptions) => {
3010
- const { data } = await googlePauseCampaign({
4061
+ const { data } = await googlePauseKeyword({
3011
4062
  ...options,
3012
4063
  ...fnOptions,
3013
4064
  throwOnError: true
@@ -3017,10 +4068,10 @@ var googlePauseCampaignMutation = (options) => {
3017
4068
  };
3018
4069
  return mutationOptions;
3019
4070
  };
3020
- var googleEnableCampaignMutation = (options) => {
4071
+ var googleEnableKeywordMutation = (options) => {
3021
4072
  const mutationOptions = {
3022
4073
  mutationFn: async (fnOptions) => {
3023
- const { data } = await googleEnableCampaign({
4074
+ const { data } = await googleEnableKeyword({
3024
4075
  ...options,
3025
4076
  ...fnOptions,
3026
4077
  throwOnError: true
@@ -3030,10 +4081,10 @@ var googleEnableCampaignMutation = (options) => {
3030
4081
  };
3031
4082
  return mutationOptions;
3032
4083
  };
3033
- var googleSearchGeoTargetsQueryKey = (options) => createQueryKey("googleSearchGeoTargets", options);
3034
- var googleSearchGeoTargetsOptions = (options) => queryOptions({
4084
+ var googleListConversionActionsQueryKey = (options) => createQueryKey("googleListConversionActions", options);
4085
+ var googleListConversionActionsOptions = (options) => queryOptions({
3035
4086
  queryFn: async ({ queryKey, signal }) => {
3036
- const { data } = await googleSearchGeoTargets({
4087
+ const { data } = await googleListConversionActions({
3037
4088
  ...options,
3038
4089
  ...queryKey[0],
3039
4090
  signal,
@@ -3041,12 +4092,25 @@ var googleSearchGeoTargetsOptions = (options) => queryOptions({
3041
4092
  });
3042
4093
  return data;
3043
4094
  },
3044
- queryKey: googleSearchGeoTargetsQueryKey(options)
4095
+ queryKey: googleListConversionActionsQueryKey(options)
3045
4096
  });
3046
- var googleListCampaignCriteriaQueryKey = (options) => createQueryKey("googleListCampaignCriteria", options);
3047
- 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({
3048
4112
  queryFn: async ({ queryKey, signal }) => {
3049
- const { data } = await googleListCampaignCriteria({
4113
+ const { data } = await googleGetConversionAction({
3050
4114
  ...options,
3051
4115
  ...queryKey[0],
3052
4116
  signal,
@@ -3054,12 +4118,12 @@ var googleListCampaignCriteriaOptions = (options) => queryOptions({
3054
4118
  });
3055
4119
  return data;
3056
4120
  },
3057
- queryKey: googleListCampaignCriteriaQueryKey(options)
4121
+ queryKey: googleGetConversionActionQueryKey(options)
3058
4122
  });
3059
- var googleCreateCampaignCriterionMutation = (options) => {
4123
+ var googleUpdateConversionActionMutation = (options) => {
3060
4124
  const mutationOptions = {
3061
4125
  mutationFn: async (fnOptions) => {
3062
- const { data } = await googleCreateCampaignCriterion({
4126
+ const { data } = await googleUpdateConversionAction({
3063
4127
  ...options,
3064
4128
  ...fnOptions,
3065
4129
  throwOnError: true
@@ -3069,10 +4133,10 @@ var googleCreateCampaignCriterionMutation = (options) => {
3069
4133
  };
3070
4134
  return mutationOptions;
3071
4135
  };
3072
- var googleRemoveCampaignCriterionMutation = (options) => {
4136
+ var googleRemoveConversionActionMutation = (options) => {
3073
4137
  const mutationOptions = {
3074
4138
  mutationFn: async (fnOptions) => {
3075
- const { data } = await googleRemoveCampaignCriterion({
4139
+ const { data } = await googleRemoveConversionAction({
3076
4140
  ...options,
3077
4141
  ...fnOptions,
3078
4142
  throwOnError: true
@@ -3082,10 +4146,10 @@ var googleRemoveCampaignCriterionMutation = (options) => {
3082
4146
  };
3083
4147
  return mutationOptions;
3084
4148
  };
3085
- var googleSetCampaignGeoSettingsMutation = (options) => {
4149
+ var googleSendConversionsMutation = (options) => {
3086
4150
  const mutationOptions = {
3087
4151
  mutationFn: async (fnOptions) => {
3088
- const { data } = await googleSetCampaignGeoSettings({
4152
+ const { data } = await googleSendConversions({
3089
4153
  ...options,
3090
4154
  ...fnOptions,
3091
4155
  throwOnError: true
@@ -3095,10 +4159,10 @@ var googleSetCampaignGeoSettingsMutation = (options) => {
3095
4159
  };
3096
4160
  return mutationOptions;
3097
4161
  };
3098
- var googleListAdGroupsQueryKey = (options) => createQueryKey("googleListAdGroups", options);
3099
- var googleListAdGroupsOptions = (options) => queryOptions({
4162
+ var googleGetConversionStatusQueryKey = (options) => createQueryKey("googleGetConversionStatus", options);
4163
+ var googleGetConversionStatusOptions = (options) => queryOptions({
3100
4164
  queryFn: async ({ queryKey, signal }) => {
3101
- const { data } = await googleListAdGroups({
4165
+ const { data } = await googleGetConversionStatus({
3102
4166
  ...options,
3103
4167
  ...queryKey[0],
3104
4168
  signal,
@@ -3106,12 +4170,60 @@ var googleListAdGroupsOptions = (options) => queryOptions({
3106
4170
  });
3107
4171
  return data;
3108
4172
  },
3109
- queryKey: googleListAdGroupsQueryKey(options)
4173
+ queryKey: googleGetConversionStatusQueryKey(options)
3110
4174
  });
3111
- 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) => {
3112
4224
  const mutationOptions = {
3113
4225
  mutationFn: async (fnOptions) => {
3114
- const { data } = await googleCreateAdGroup({
4226
+ const { data } = await googleSetConversionGoal({
3115
4227
  ...options,
3116
4228
  ...fnOptions,
3117
4229
  throwOnError: true
@@ -3121,10 +4233,36 @@ var googleCreateAdGroupMutation = (options) => {
3121
4233
  };
3122
4234
  return mutationOptions;
3123
4235
  };
3124
- var googleGetAdGroupQueryKey = (options) => createQueryKey("googleGetAdGroup", options);
3125
- 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({
3126
4264
  queryFn: async ({ queryKey, signal }) => {
3127
- const { data } = await googleGetAdGroup({
4265
+ const { data } = await googleListAssetGroups({
3128
4266
  ...options,
3129
4267
  ...queryKey[0],
3130
4268
  signal,
@@ -3132,12 +4270,25 @@ var googleGetAdGroupOptions = (options) => queryOptions({
3132
4270
  });
3133
4271
  return data;
3134
4272
  },
3135
- queryKey: googleGetAdGroupQueryKey(options)
4273
+ queryKey: googleListAssetGroupsQueryKey(options)
3136
4274
  });
3137
- var googleEditAdGroupMutation = (options) => {
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)
4287
+ });
4288
+ var googleEditAssetGroupMutation = (options) => {
3138
4289
  const mutationOptions = {
3139
4290
  mutationFn: async (fnOptions) => {
3140
- const { data } = await googleEditAdGroup({
4291
+ const { data } = await googleEditAssetGroup({
3141
4292
  ...options,
3142
4293
  ...fnOptions,
3143
4294
  throwOnError: true
@@ -3147,10 +4298,10 @@ var googleEditAdGroupMutation = (options) => {
3147
4298
  };
3148
4299
  return mutationOptions;
3149
4300
  };
3150
- var googleSetAdGroupBidsMutation = (options) => {
4301
+ var googleCreateAssetGroupMutation = (options) => {
3151
4302
  const mutationOptions = {
3152
4303
  mutationFn: async (fnOptions) => {
3153
- const { data } = await googleSetAdGroupBids({
4304
+ const { data } = await googleCreateAssetGroup({
3154
4305
  ...options,
3155
4306
  ...fnOptions,
3156
4307
  throwOnError: true
@@ -3160,10 +4311,10 @@ var googleSetAdGroupBidsMutation = (options) => {
3160
4311
  };
3161
4312
  return mutationOptions;
3162
4313
  };
3163
- var googleRemoveAdGroupMutation = (options) => {
4314
+ var googlePauseAssetGroupMutation = (options) => {
3164
4315
  const mutationOptions = {
3165
4316
  mutationFn: async (fnOptions) => {
3166
- const { data } = await googleRemoveAdGroup({
4317
+ const { data } = await googlePauseAssetGroup({
3167
4318
  ...options,
3168
4319
  ...fnOptions,
3169
4320
  throwOnError: true
@@ -3173,10 +4324,10 @@ var googleRemoveAdGroupMutation = (options) => {
3173
4324
  };
3174
4325
  return mutationOptions;
3175
4326
  };
3176
- var googlePauseAdGroupMutation = (options) => {
4327
+ var googleEnableAssetGroupMutation = (options) => {
3177
4328
  const mutationOptions = {
3178
4329
  mutationFn: async (fnOptions) => {
3179
- const { data } = await googlePauseAdGroup({
4330
+ const { data } = await googleEnableAssetGroup({
3180
4331
  ...options,
3181
4332
  ...fnOptions,
3182
4333
  throwOnError: true
@@ -3186,10 +4337,49 @@ var googlePauseAdGroupMutation = (options) => {
3186
4337
  };
3187
4338
  return mutationOptions;
3188
4339
  };
3189
- var googleEnableAdGroupMutation = (options) => {
4340
+ var googleRemoveAssetGroupMutation = (options) => {
4341
+ const mutationOptions = {
4342
+ mutationFn: async (fnOptions) => {
4343
+ const { data } = await googleRemoveAssetGroup({
4344
+ ...options,
4345
+ ...fnOptions,
4346
+ throwOnError: true
4347
+ });
4348
+ return data;
4349
+ }
4350
+ };
4351
+ return mutationOptions;
4352
+ };
4353
+ var googleListAssetGroupAssetsQueryKey = (options) => createQueryKey("googleListAssetGroupAssets", options);
4354
+ var googleListAssetGroupAssetsOptions = (options) => queryOptions({
4355
+ queryFn: async ({ queryKey, signal }) => {
4356
+ const { data } = await googleListAssetGroupAssets({
4357
+ ...options,
4358
+ ...queryKey[0],
4359
+ signal,
4360
+ throwOnError: true
4361
+ });
4362
+ return data;
4363
+ },
4364
+ queryKey: googleListAssetGroupAssetsQueryKey(options)
4365
+ });
4366
+ var googleAttachAssetGroupAssetMutation = (options) => {
4367
+ const mutationOptions = {
4368
+ mutationFn: async (fnOptions) => {
4369
+ const { data } = await googleAttachAssetGroupAsset({
4370
+ ...options,
4371
+ ...fnOptions,
4372
+ throwOnError: true
4373
+ });
4374
+ return data;
4375
+ }
4376
+ };
4377
+ return mutationOptions;
4378
+ };
4379
+ var googleRemoveAssetGroupAssetMutation = (options) => {
3190
4380
  const mutationOptions = {
3191
4381
  mutationFn: async (fnOptions) => {
3192
- const { data } = await googleEnableAdGroup({
4382
+ const { data } = await googleRemoveAssetGroupAsset({
3193
4383
  ...options,
3194
4384
  ...fnOptions,
3195
4385
  throwOnError: true
@@ -3199,10 +4389,10 @@ var googleEnableAdGroupMutation = (options) => {
3199
4389
  };
3200
4390
  return mutationOptions;
3201
4391
  };
3202
- var googleListAdGroupCriteriaQueryKey = (options) => createQueryKey("googleListAdGroupCriteria", options);
3203
- var googleListAdGroupCriteriaOptions = (options) => queryOptions({
4392
+ var googleListAssetGroupSignalsQueryKey = (options) => createQueryKey("googleListAssetGroupSignals", options);
4393
+ var googleListAssetGroupSignalsOptions = (options) => queryOptions({
3204
4394
  queryFn: async ({ queryKey, signal }) => {
3205
- const { data } = await googleListAdGroupCriteria({
4395
+ const { data } = await googleListAssetGroupSignals({
3206
4396
  ...options,
3207
4397
  ...queryKey[0],
3208
4398
  signal,
@@ -3210,12 +4400,12 @@ var googleListAdGroupCriteriaOptions = (options) => queryOptions({
3210
4400
  });
3211
4401
  return data;
3212
4402
  },
3213
- queryKey: googleListAdGroupCriteriaQueryKey(options)
4403
+ queryKey: googleListAssetGroupSignalsQueryKey(options)
3214
4404
  });
3215
- var googleCreateAdGroupCriterionMutation = (options) => {
4405
+ var googleCreateAssetGroupSignalMutation = (options) => {
3216
4406
  const mutationOptions = {
3217
4407
  mutationFn: async (fnOptions) => {
3218
- const { data } = await googleCreateAdGroupCriterion({
4408
+ const { data } = await googleCreateAssetGroupSignal({
3219
4409
  ...options,
3220
4410
  ...fnOptions,
3221
4411
  throwOnError: true
@@ -3225,10 +4415,10 @@ var googleCreateAdGroupCriterionMutation = (options) => {
3225
4415
  };
3226
4416
  return mutationOptions;
3227
4417
  };
3228
- var googleRemoveAdGroupCriterionMutation = (options) => {
4418
+ var googleRemoveAssetGroupSignalMutation = (options) => {
3229
4419
  const mutationOptions = {
3230
4420
  mutationFn: async (fnOptions) => {
3231
- const { data } = await googleRemoveAdGroupCriterion({
4421
+ const { data } = await googleRemoveAssetGroupSignal({
3232
4422
  ...options,
3233
4423
  ...fnOptions,
3234
4424
  throwOnError: true
@@ -3238,23 +4428,10 @@ var googleRemoveAdGroupCriterionMutation = (options) => {
3238
4428
  };
3239
4429
  return mutationOptions;
3240
4430
  };
3241
- var googleListAudiencesQueryKey = (options) => createQueryKey("googleListAudiences", options);
3242
- var googleListAudiencesOptions = (options) => queryOptions({
3243
- queryFn: async ({ queryKey, signal }) => {
3244
- const { data } = await googleListAudiences({
3245
- ...options,
3246
- ...queryKey[0],
3247
- signal,
3248
- throwOnError: true
3249
- });
3250
- return data;
3251
- },
3252
- queryKey: googleListAudiencesQueryKey(options)
3253
- });
3254
- var googleSetCampaignTargetingSettingMutation = (options) => {
4431
+ var googleCreatePerformanceMaxMutation = (options) => {
3255
4432
  const mutationOptions = {
3256
4433
  mutationFn: async (fnOptions) => {
3257
- const { data } = await googleSetCampaignTargetingSetting({
4434
+ const { data } = await googleCreatePerformanceMax({
3258
4435
  ...options,
3259
4436
  ...fnOptions,
3260
4437
  throwOnError: true
@@ -3264,10 +4441,10 @@ var googleSetCampaignTargetingSettingMutation = (options) => {
3264
4441
  };
3265
4442
  return mutationOptions;
3266
4443
  };
3267
- var googleListAdsQueryKey = (options) => createQueryKey("googleListAds", options);
3268
- var googleListAdsOptions = (options) => queryOptions({
4444
+ var tiktokCreatorInfoQueryKey = (options) => createQueryKey("tiktokCreatorInfo", options);
4445
+ var tiktokCreatorInfoOptions = (options) => queryOptions({
3269
4446
  queryFn: async ({ queryKey, signal }) => {
3270
- const { data } = await googleListAds({
4447
+ const { data } = await tiktokCreatorInfo({
3271
4448
  ...options,
3272
4449
  ...queryKey[0],
3273
4450
  signal,
@@ -3275,25 +4452,12 @@ var googleListAdsOptions = (options) => queryOptions({
3275
4452
  });
3276
4453
  return data;
3277
4454
  },
3278
- queryKey: googleListAdsQueryKey(options)
4455
+ queryKey: tiktokCreatorInfoQueryKey(options)
3279
4456
  });
3280
- var googleCreateAdMutation = (options) => {
3281
- const mutationOptions = {
3282
- mutationFn: async (fnOptions) => {
3283
- const { data } = await googleCreateAd({
3284
- ...options,
3285
- ...fnOptions,
3286
- throwOnError: true
3287
- });
3288
- return data;
3289
- }
3290
- };
3291
- return mutationOptions;
3292
- };
3293
- var googleGetAdQueryKey = (options) => createQueryKey("googleGetAd", options);
3294
- var googleGetAdOptions = (options) => queryOptions({
4457
+ var tiktokAdsListAdvertisersQueryKey = (options) => createQueryKey("tiktokAdsListAdvertisers", options);
4458
+ var tiktokAdsListAdvertisersOptions = (options) => queryOptions({
3295
4459
  queryFn: async ({ queryKey, signal }) => {
3296
- const { data } = await googleGetAd({
4460
+ const { data } = await tiktokAdsListAdvertisers({
3297
4461
  ...options,
3298
4462
  ...queryKey[0],
3299
4463
  signal,
@@ -3301,25 +4465,60 @@ var googleGetAdOptions = (options) => queryOptions({
3301
4465
  });
3302
4466
  return data;
3303
4467
  },
3304
- queryKey: googleGetAdQueryKey(options)
4468
+ queryKey: tiktokAdsListAdvertisersQueryKey(options)
3305
4469
  });
3306
- var googleCreateDisplayAdMutation = (options) => {
3307
- const mutationOptions = {
3308
- mutationFn: async (fnOptions) => {
3309
- const { data } = await googleCreateDisplayAd({
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({
3310
4508
  ...options,
3311
- ...fnOptions,
4509
+ ...params,
4510
+ signal,
3312
4511
  throwOnError: true
3313
4512
  });
3314
4513
  return data;
3315
- }
3316
- };
3317
- return mutationOptions;
3318
- };
3319
- var googleRemoveAdMutation = (options) => {
4514
+ },
4515
+ queryKey: tiktokAdsListCampaignsInfiniteQueryKey(options)
4516
+ }
4517
+ );
4518
+ var tiktokAdsCreateCampaignMutation = (options) => {
3320
4519
  const mutationOptions = {
3321
4520
  mutationFn: async (fnOptions) => {
3322
- const { data } = await googleRemoveAd({
4521
+ const { data } = await tiktokAdsCreateCampaign({
3323
4522
  ...options,
3324
4523
  ...fnOptions,
3325
4524
  throwOnError: true
@@ -3329,10 +4528,10 @@ var googleRemoveAdMutation = (options) => {
3329
4528
  };
3330
4529
  return mutationOptions;
3331
4530
  };
3332
- var googlePauseAdMutation = (options) => {
4531
+ var tiktokAdsUpdateCampaignStatusMutation = (options) => {
3333
4532
  const mutationOptions = {
3334
4533
  mutationFn: async (fnOptions) => {
3335
- const { data } = await googlePauseAd({
4534
+ const { data } = await tiktokAdsUpdateCampaignStatus({
3336
4535
  ...options,
3337
4536
  ...fnOptions,
3338
4537
  throwOnError: true
@@ -3342,10 +4541,10 @@ var googlePauseAdMutation = (options) => {
3342
4541
  };
3343
4542
  return mutationOptions;
3344
4543
  };
3345
- var googleEnableAdMutation = (options) => {
4544
+ var tiktokAdsUpdateCampaignBudgetMutation = (options) => {
3346
4545
  const mutationOptions = {
3347
4546
  mutationFn: async (fnOptions) => {
3348
- const { data } = await googleEnableAd({
4547
+ const { data } = await tiktokAdsUpdateCampaignBudget({
3349
4548
  ...options,
3350
4549
  ...fnOptions,
3351
4550
  throwOnError: true
@@ -3355,23 +4554,10 @@ var googleEnableAdMutation = (options) => {
3355
4554
  };
3356
4555
  return mutationOptions;
3357
4556
  };
3358
- var googleListKeywordsQueryKey = (options) => createQueryKey("googleListKeywords", options);
3359
- var googleListKeywordsOptions = (options) => queryOptions({
3360
- queryFn: async ({ queryKey, signal }) => {
3361
- const { data } = await googleListKeywords({
3362
- ...options,
3363
- ...queryKey[0],
3364
- signal,
3365
- throwOnError: true
3366
- });
3367
- return data;
3368
- },
3369
- queryKey: googleListKeywordsQueryKey(options)
3370
- });
3371
- var googleCreateKeywordMutation = (options) => {
4557
+ var tiktokAdsRemoveCampaignMutation = (options) => {
3372
4558
  const mutationOptions = {
3373
4559
  mutationFn: async (fnOptions) => {
3374
- const { data } = await googleCreateKeyword({
4560
+ const { data } = await tiktokAdsRemoveCampaign({
3375
4561
  ...options,
3376
4562
  ...fnOptions,
3377
4563
  throwOnError: true
@@ -3381,10 +4567,10 @@ var googleCreateKeywordMutation = (options) => {
3381
4567
  };
3382
4568
  return mutationOptions;
3383
4569
  };
3384
- var googleGetKeywordQueryKey = (options) => createQueryKey("googleGetKeyword", options);
3385
- var googleGetKeywordOptions = (options) => queryOptions({
4570
+ var tiktokAdsListAdGroupsQueryKey = (options) => createQueryKey("tiktokAdsListAdGroups", options);
4571
+ var tiktokAdsListAdGroupsOptions = (options) => queryOptions({
3386
4572
  queryFn: async ({ queryKey, signal }) => {
3387
- const { data } = await googleGetKeyword({
4573
+ const { data } = await tiktokAdsListAdGroups({
3388
4574
  ...options,
3389
4575
  ...queryKey[0],
3390
4576
  signal,
@@ -3392,12 +4578,34 @@ var googleGetKeywordOptions = (options) => queryOptions({
3392
4578
  });
3393
4579
  return data;
3394
4580
  },
3395
- queryKey: googleGetKeywordQueryKey(options)
4581
+ queryKey: tiktokAdsListAdGroupsQueryKey(options)
3396
4582
  });
3397
- 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) => {
3398
4606
  const mutationOptions = {
3399
4607
  mutationFn: async (fnOptions) => {
3400
- const { data } = await googleSetKeywordBid({
4608
+ const { data } = await tiktokAdsCreateAdGroup({
3401
4609
  ...options,
3402
4610
  ...fnOptions,
3403
4611
  throwOnError: true
@@ -3407,10 +4615,10 @@ var googleSetKeywordBidMutation = (options) => {
3407
4615
  };
3408
4616
  return mutationOptions;
3409
4617
  };
3410
- var googleRemoveKeywordMutation = (options) => {
4618
+ var tiktokAdsUpdateAdGroupStatusMutation = (options) => {
3411
4619
  const mutationOptions = {
3412
4620
  mutationFn: async (fnOptions) => {
3413
- const { data } = await googleRemoveKeyword({
4621
+ const { data } = await tiktokAdsUpdateAdGroupStatus({
3414
4622
  ...options,
3415
4623
  ...fnOptions,
3416
4624
  throwOnError: true
@@ -3420,10 +4628,10 @@ var googleRemoveKeywordMutation = (options) => {
3420
4628
  };
3421
4629
  return mutationOptions;
3422
4630
  };
3423
- var googlePauseKeywordMutation = (options) => {
4631
+ var tiktokAdsUpdateAdGroupBudgetMutation = (options) => {
3424
4632
  const mutationOptions = {
3425
4633
  mutationFn: async (fnOptions) => {
3426
- const { data } = await googlePauseKeyword({
4634
+ const { data } = await tiktokAdsUpdateAdGroupBudget({
3427
4635
  ...options,
3428
4636
  ...fnOptions,
3429
4637
  throwOnError: true
@@ -3433,10 +4641,10 @@ var googlePauseKeywordMutation = (options) => {
3433
4641
  };
3434
4642
  return mutationOptions;
3435
4643
  };
3436
- var googleEnableKeywordMutation = (options) => {
4644
+ var tiktokAdsRemoveAdGroupMutation = (options) => {
3437
4645
  const mutationOptions = {
3438
4646
  mutationFn: async (fnOptions) => {
3439
- const { data } = await googleEnableKeyword({
4647
+ const { data } = await tiktokAdsRemoveAdGroup({
3440
4648
  ...options,
3441
4649
  ...fnOptions,
3442
4650
  throwOnError: true
@@ -3446,10 +4654,10 @@ var googleEnableKeywordMutation = (options) => {
3446
4654
  };
3447
4655
  return mutationOptions;
3448
4656
  };
3449
- var googleListConversionActionsQueryKey = (options) => createQueryKey("googleListConversionActions", options);
3450
- var googleListConversionActionsOptions = (options) => queryOptions({
4657
+ var tiktokAdsListAdsQueryKey = (options) => createQueryKey("tiktokAdsListAds", options);
4658
+ var tiktokAdsListAdsOptions = (options) => queryOptions({
3451
4659
  queryFn: async ({ queryKey, signal }) => {
3452
- const { data } = await googleListConversionActions({
4660
+ const { data } = await tiktokAdsListAds({
3453
4661
  ...options,
3454
4662
  ...queryKey[0],
3455
4663
  signal,
@@ -3457,12 +4665,34 @@ var googleListConversionActionsOptions = (options) => queryOptions({
3457
4665
  });
3458
4666
  return data;
3459
4667
  },
3460
- queryKey: googleListConversionActionsQueryKey(options)
4668
+ queryKey: tiktokAdsListAdsQueryKey(options)
3461
4669
  });
3462
- 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) => {
3463
4693
  const mutationOptions = {
3464
4694
  mutationFn: async (fnOptions) => {
3465
- const { data } = await googleCreateConversionAction({
4695
+ const { data } = await tiktokAdsCreateAd({
3466
4696
  ...options,
3467
4697
  ...fnOptions,
3468
4698
  throwOnError: true
@@ -3472,23 +4702,10 @@ var googleCreateConversionActionMutation = (options) => {
3472
4702
  };
3473
4703
  return mutationOptions;
3474
4704
  };
3475
- var googleGetConversionActionQueryKey = (options) => createQueryKey("googleGetConversionAction", options);
3476
- var googleGetConversionActionOptions = (options) => queryOptions({
3477
- queryFn: async ({ queryKey, signal }) => {
3478
- const { data } = await googleGetConversionAction({
3479
- ...options,
3480
- ...queryKey[0],
3481
- signal,
3482
- throwOnError: true
3483
- });
3484
- return data;
3485
- },
3486
- queryKey: googleGetConversionActionQueryKey(options)
3487
- });
3488
- var googleSendConversionsMutation = (options) => {
4705
+ var tiktokAdsUpdateAdStatusMutation = (options) => {
3489
4706
  const mutationOptions = {
3490
4707
  mutationFn: async (fnOptions) => {
3491
- const { data } = await googleSendConversions({
4708
+ const { data } = await tiktokAdsUpdateAdStatus({
3492
4709
  ...options,
3493
4710
  ...fnOptions,
3494
4711
  throwOnError: true
@@ -3498,10 +4715,36 @@ var googleSendConversionsMutation = (options) => {
3498
4715
  };
3499
4716
  return mutationOptions;
3500
4717
  };
3501
- var googleGetConversionStatusQueryKey = (options) => createQueryKey("googleGetConversionStatus", options);
3502
- var googleGetConversionStatusOptions = (options) => queryOptions({
4718
+ var tiktokAdsRemoveAdMutation = (options) => {
4719
+ const mutationOptions = {
4720
+ mutationFn: async (fnOptions) => {
4721
+ const { data } = await tiktokAdsRemoveAd({
4722
+ ...options,
4723
+ ...fnOptions,
4724
+ throwOnError: true
4725
+ });
4726
+ return data;
4727
+ }
4728
+ };
4729
+ return mutationOptions;
4730
+ };
4731
+ var tiktokAdsGetInsightsMutation = (options) => {
4732
+ const mutationOptions = {
4733
+ mutationFn: async (fnOptions) => {
4734
+ const { data } = await tiktokAdsGetInsights({
4735
+ ...options,
4736
+ ...fnOptions,
4737
+ throwOnError: true
4738
+ });
4739
+ return data;
4740
+ }
4741
+ };
4742
+ return mutationOptions;
4743
+ };
4744
+ var tiktokAdsGetAdTreeQueryKey = (options) => createQueryKey("tiktokAdsGetAdTree", options);
4745
+ var tiktokAdsGetAdTreeOptions = (options) => queryOptions({
3503
4746
  queryFn: async ({ queryKey, signal }) => {
3504
- const { data } = await googleGetConversionStatus({
4747
+ const { data } = await tiktokAdsGetAdTree({
3505
4748
  ...options,
3506
4749
  ...queryKey[0],
3507
4750
  signal,
@@ -3509,12 +4752,12 @@ var googleGetConversionStatusOptions = (options) => queryOptions({
3509
4752
  });
3510
4753
  return data;
3511
4754
  },
3512
- queryKey: googleGetConversionStatusQueryKey(options)
4755
+ queryKey: tiktokAdsGetAdTreeQueryKey(options)
3513
4756
  });
3514
- var googleListConversionRequestsQueryKey = (options) => createQueryKey("googleListConversionRequests", options);
3515
- var googleListConversionRequestsOptions = (options) => queryOptions({
4757
+ var tiktokAdsListIdentitiesQueryKey = (options) => createQueryKey("tiktokAdsListIdentities", options);
4758
+ var tiktokAdsListIdentitiesOptions = (options) => queryOptions({
3516
4759
  queryFn: async ({ queryKey, signal }) => {
3517
- const { data } = await googleListConversionRequests({
4760
+ const { data } = await tiktokAdsListIdentities({
3518
4761
  ...options,
3519
4762
  ...queryKey[0],
3520
4763
  signal,
@@ -3522,20 +4765,20 @@ var googleListConversionRequestsOptions = (options) => queryOptions({
3522
4765
  });
3523
4766
  return data;
3524
4767
  },
3525
- queryKey: googleListConversionRequestsQueryKey(options)
4768
+ queryKey: tiktokAdsListIdentitiesQueryKey(options)
3526
4769
  });
3527
- var googleListConversionRequestsInfiniteQueryKey = (options) => createQueryKey("googleListConversionRequests", options, true);
3528
- var googleListConversionRequestsInfiniteOptions = (options) => infiniteQueryOptions(
4770
+ var tiktokAdsListIdentitiesInfiniteQueryKey = (options) => createQueryKey("tiktokAdsListIdentities", options, true);
4771
+ var tiktokAdsListIdentitiesInfiniteOptions = (options) => infiniteQueryOptions(
3529
4772
  // @ts-ignore
3530
4773
  {
3531
4774
  queryFn: async ({ pageParam, queryKey, signal }) => {
3532
4775
  const page = typeof pageParam === "object" ? pageParam : {
3533
4776
  query: {
3534
- offset: pageParam
4777
+ page: pageParam
3535
4778
  }
3536
4779
  };
3537
4780
  const params = createInfiniteParams(queryKey, page);
3538
- const { data } = await googleListConversionRequests({
4781
+ const { data } = await tiktokAdsListIdentities({
3539
4782
  ...options,
3540
4783
  ...params,
3541
4784
  signal,
@@ -3543,39 +4786,13 @@ var googleListConversionRequestsInfiniteOptions = (options) => infiniteQueryOpti
3543
4786
  });
3544
4787
  return data;
3545
4788
  },
3546
- queryKey: googleListConversionRequestsInfiniteQueryKey(options)
4789
+ queryKey: tiktokAdsListIdentitiesInfiniteQueryKey(options)
3547
4790
  }
3548
4791
  );
3549
- var googleListConversionGoalsQueryKey = (options) => createQueryKey("googleListConversionGoals", options);
3550
- var googleListConversionGoalsOptions = (options) => queryOptions({
3551
- queryFn: async ({ queryKey, signal }) => {
3552
- const { data } = await googleListConversionGoals({
3553
- ...options,
3554
- ...queryKey[0],
3555
- signal,
3556
- throwOnError: true
3557
- });
3558
- return data;
3559
- },
3560
- queryKey: googleListConversionGoalsQueryKey(options)
3561
- });
3562
- var googleSetConversionGoalMutation = (options) => {
3563
- const mutationOptions = {
3564
- mutationFn: async (fnOptions) => {
3565
- const { data } = await googleSetConversionGoal({
3566
- ...options,
3567
- ...fnOptions,
3568
- throwOnError: true
3569
- });
3570
- return data;
3571
- }
3572
- };
3573
- return mutationOptions;
3574
- };
3575
- var googleUploadImageAssetMutation = (options) => {
4792
+ var tiktokAdsCreateIdentityMutation = (options) => {
3576
4793
  const mutationOptions = {
3577
4794
  mutationFn: async (fnOptions) => {
3578
- const { data } = await googleUploadImageAsset({
4795
+ const { data } = await tiktokAdsCreateIdentity({
3579
4796
  ...options,
3580
4797
  ...fnOptions,
3581
4798
  throwOnError: true
@@ -3585,19 +4802,6 @@ var googleUploadImageAssetMutation = (options) => {
3585
4802
  };
3586
4803
  return mutationOptions;
3587
4804
  };
3588
- var tiktokCreatorInfoQueryKey = (options) => createQueryKey("tiktokCreatorInfo", options);
3589
- var tiktokCreatorInfoOptions = (options) => queryOptions({
3590
- queryFn: async ({ queryKey, signal }) => {
3591
- const { data } = await tiktokCreatorInfo({
3592
- ...options,
3593
- ...queryKey[0],
3594
- signal,
3595
- throwOnError: true
3596
- });
3597
- return data;
3598
- },
3599
- queryKey: tiktokCreatorInfoQueryKey(options)
3600
- });
3601
4805
  var logsListQueryKey = (options) => createQueryKey("logsList", options);
3602
4806
  var logsListOptions = (options) => queryOptions({
3603
4807
  queryFn: async ({ queryKey, signal }) => {
@@ -3786,6 +4990,6 @@ var tokensMintMutation = (options) => {
3786
4990
  return mutationOptions;
3787
4991
  };
3788
4992
 
3789
- 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, googleRemoveKeywordMutation, googleRunGaqlMutation, googleSearchGeoTargetsOptions, googleSearchGeoTargetsQueryKey, googleSendConversionsMutation, googleSetAdGroupBidsMutation, googleSetCampaignGeoSettingsMutation, googleSetCampaignTargetingSettingMutation, googleSetConversionGoalMutation, googleSetKeywordBidMutation, 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 };
3790
4994
  //# sourceMappingURL=query.js.map
3791
4995
  //# sourceMappingURL=query.js.map