@postrun/js 2.16.0 → 2.18.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 ADDED
@@ -0,0 +1,3661 @@
1
+ import { queryOptions, infiniteQueryOptions } from '@tanstack/react-query';
2
+
3
+ // src/client/@tanstack/react-query.gen.ts
4
+
5
+ // src/client/core/bodySerializer.gen.ts
6
+ var jsonBodySerializer = {
7
+ bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
8
+ };
9
+
10
+ // src/client/core/serverSentEvents.gen.ts
11
+ function createSseClient({
12
+ onRequest,
13
+ onSseError,
14
+ onSseEvent,
15
+ responseTransformer,
16
+ responseValidator,
17
+ sseDefaultRetryDelay,
18
+ sseMaxRetryAttempts,
19
+ sseMaxRetryDelay,
20
+ sseSleepFn,
21
+ url,
22
+ ...options
23
+ }) {
24
+ let lastEventId;
25
+ const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
26
+ const createStream = async function* () {
27
+ let retryDelay = sseDefaultRetryDelay ?? 3e3;
28
+ let attempt = 0;
29
+ const signal = options.signal ?? new AbortController().signal;
30
+ while (true) {
31
+ if (signal.aborted) break;
32
+ attempt++;
33
+ const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers);
34
+ if (lastEventId !== void 0) {
35
+ headers.set("Last-Event-ID", lastEventId);
36
+ }
37
+ try {
38
+ const requestInit = {
39
+ redirect: "follow",
40
+ ...options,
41
+ body: options.serializedBody,
42
+ headers,
43
+ signal
44
+ };
45
+ let request = new Request(url, requestInit);
46
+ if (onRequest) {
47
+ request = await onRequest(url, requestInit);
48
+ }
49
+ const _fetch = options.fetch ?? globalThis.fetch;
50
+ const response = await _fetch(request);
51
+ if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
52
+ if (!response.body) throw new Error("No body in SSE response");
53
+ const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
54
+ let buffer = "";
55
+ const abortHandler = () => {
56
+ try {
57
+ reader.cancel();
58
+ } catch {
59
+ }
60
+ };
61
+ signal.addEventListener("abort", abortHandler);
62
+ try {
63
+ while (true) {
64
+ const { done, value } = await reader.read();
65
+ if (done) break;
66
+ buffer += value;
67
+ buffer = buffer.replace(/\r\n?/g, "\n");
68
+ const chunks = buffer.split("\n\n");
69
+ buffer = chunks.pop() ?? "";
70
+ for (const chunk of chunks) {
71
+ const lines = chunk.split("\n");
72
+ const dataLines = [];
73
+ let eventName;
74
+ for (const line of lines) {
75
+ if (line.startsWith("data:")) {
76
+ dataLines.push(line.replace(/^data:\s*/, ""));
77
+ } else if (line.startsWith("event:")) {
78
+ eventName = line.replace(/^event:\s*/, "");
79
+ } else if (line.startsWith("id:")) {
80
+ lastEventId = line.replace(/^id:\s*/, "");
81
+ } else if (line.startsWith("retry:")) {
82
+ const parsed = Number.parseInt(line.replace(/^retry:\s*/, ""), 10);
83
+ if (!Number.isNaN(parsed)) {
84
+ retryDelay = parsed;
85
+ }
86
+ }
87
+ }
88
+ let data;
89
+ let parsedJson = false;
90
+ if (dataLines.length) {
91
+ const rawData = dataLines.join("\n");
92
+ try {
93
+ data = JSON.parse(rawData);
94
+ parsedJson = true;
95
+ } catch {
96
+ data = rawData;
97
+ }
98
+ }
99
+ if (parsedJson) {
100
+ if (responseValidator) {
101
+ await responseValidator(data);
102
+ }
103
+ if (responseTransformer) {
104
+ data = await responseTransformer(data);
105
+ }
106
+ }
107
+ onSseEvent?.({
108
+ data,
109
+ event: eventName,
110
+ id: lastEventId,
111
+ retry: retryDelay
112
+ });
113
+ if (dataLines.length) {
114
+ yield data;
115
+ }
116
+ }
117
+ }
118
+ } finally {
119
+ signal.removeEventListener("abort", abortHandler);
120
+ reader.releaseLock();
121
+ }
122
+ break;
123
+ } catch (error) {
124
+ onSseError?.(error);
125
+ if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) {
126
+ break;
127
+ }
128
+ const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 3e4);
129
+ await sleep(backoff);
130
+ }
131
+ }
132
+ };
133
+ const stream = createStream();
134
+ return { stream };
135
+ }
136
+
137
+ // src/client/core/pathSerializer.gen.ts
138
+ var separatorArrayExplode = (style) => {
139
+ switch (style) {
140
+ case "label":
141
+ return ".";
142
+ case "matrix":
143
+ return ";";
144
+ case "simple":
145
+ return ",";
146
+ default:
147
+ return "&";
148
+ }
149
+ };
150
+ var separatorArrayNoExplode = (style) => {
151
+ switch (style) {
152
+ case "form":
153
+ return ",";
154
+ case "pipeDelimited":
155
+ return "|";
156
+ case "spaceDelimited":
157
+ return "%20";
158
+ default:
159
+ return ",";
160
+ }
161
+ };
162
+ var separatorObjectExplode = (style) => {
163
+ switch (style) {
164
+ case "label":
165
+ return ".";
166
+ case "matrix":
167
+ return ";";
168
+ case "simple":
169
+ return ",";
170
+ default:
171
+ return "&";
172
+ }
173
+ };
174
+ var serializeArrayParam = ({
175
+ allowReserved,
176
+ explode,
177
+ name,
178
+ style,
179
+ value
180
+ }) => {
181
+ if (!explode) {
182
+ const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
183
+ switch (style) {
184
+ case "label":
185
+ return `.${joinedValues2}`;
186
+ case "matrix":
187
+ return `;${name}=${joinedValues2}`;
188
+ case "simple":
189
+ return joinedValues2;
190
+ default:
191
+ return `${name}=${joinedValues2}`;
192
+ }
193
+ }
194
+ const separator = separatorArrayExplode(style);
195
+ const joinedValues = value.map((v) => {
196
+ if (style === "label" || style === "simple") {
197
+ return allowReserved ? v : encodeURIComponent(v);
198
+ }
199
+ return serializePrimitiveParam({
200
+ allowReserved,
201
+ name,
202
+ value: v
203
+ });
204
+ }).join(separator);
205
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
206
+ };
207
+ var serializePrimitiveParam = ({
208
+ allowReserved,
209
+ name,
210
+ value
211
+ }) => {
212
+ if (value === void 0 || value === null) {
213
+ return "";
214
+ }
215
+ if (typeof value === "object") {
216
+ throw new Error(
217
+ "Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these."
218
+ );
219
+ }
220
+ return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
221
+ };
222
+ var serializeObjectParam = ({
223
+ allowReserved,
224
+ explode,
225
+ name,
226
+ style,
227
+ value,
228
+ valueOnly
229
+ }) => {
230
+ if (value instanceof Date) {
231
+ return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
232
+ }
233
+ if (style !== "deepObject" && !explode) {
234
+ let values = [];
235
+ Object.entries(value).forEach(([key, v]) => {
236
+ values = [...values, key, allowReserved ? v : encodeURIComponent(v)];
237
+ });
238
+ const joinedValues2 = values.join(",");
239
+ switch (style) {
240
+ case "form":
241
+ return `${name}=${joinedValues2}`;
242
+ case "label":
243
+ return `.${joinedValues2}`;
244
+ case "matrix":
245
+ return `;${name}=${joinedValues2}`;
246
+ default:
247
+ return joinedValues2;
248
+ }
249
+ }
250
+ const separator = separatorObjectExplode(style);
251
+ const joinedValues = Object.entries(value).map(
252
+ ([key, v]) => serializePrimitiveParam({
253
+ allowReserved,
254
+ name: style === "deepObject" ? `${name}[${key}]` : key,
255
+ value: v
256
+ })
257
+ ).join(separator);
258
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
259
+ };
260
+
261
+ // src/client/core/utils.gen.ts
262
+ var PATH_PARAM_RE = /\{[^{}]+\}/g;
263
+ var defaultPathSerializer = ({ path, url: _url }) => {
264
+ let url = _url;
265
+ const matches = _url.match(PATH_PARAM_RE);
266
+ if (matches) {
267
+ for (const match of matches) {
268
+ let explode = false;
269
+ let name = match.substring(1, match.length - 1);
270
+ let style = "simple";
271
+ if (name.endsWith("*")) {
272
+ explode = true;
273
+ name = name.substring(0, name.length - 1);
274
+ }
275
+ if (name.startsWith(".")) {
276
+ name = name.substring(1);
277
+ style = "label";
278
+ } else if (name.startsWith(";")) {
279
+ name = name.substring(1);
280
+ style = "matrix";
281
+ }
282
+ const value = path[name];
283
+ if (value === void 0 || value === null) {
284
+ continue;
285
+ }
286
+ if (Array.isArray(value)) {
287
+ url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
288
+ continue;
289
+ }
290
+ if (typeof value === "object") {
291
+ url = url.replace(
292
+ match,
293
+ serializeObjectParam({
294
+ explode,
295
+ name,
296
+ style,
297
+ value,
298
+ valueOnly: true
299
+ })
300
+ );
301
+ continue;
302
+ }
303
+ if (style === "matrix") {
304
+ url = url.replace(
305
+ match,
306
+ `;${serializePrimitiveParam({
307
+ name,
308
+ value
309
+ })}`
310
+ );
311
+ continue;
312
+ }
313
+ const replaceValue = encodeURIComponent(
314
+ style === "label" ? `.${value}` : value
315
+ );
316
+ url = url.replace(match, replaceValue);
317
+ }
318
+ }
319
+ return url;
320
+ };
321
+ var getUrl = ({
322
+ baseUrl,
323
+ path,
324
+ query,
325
+ querySerializer,
326
+ url: _url
327
+ }) => {
328
+ const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
329
+ let url = (baseUrl ?? "") + pathUrl;
330
+ if (path) {
331
+ url = defaultPathSerializer({ path, url });
332
+ }
333
+ let search = query ? querySerializer(query) : "";
334
+ if (search.startsWith("?")) {
335
+ search = search.substring(1);
336
+ }
337
+ if (search) {
338
+ url += `?${search}`;
339
+ }
340
+ return url;
341
+ };
342
+ function getValidRequestBody(options) {
343
+ const hasBody = options.body !== void 0;
344
+ const isSerializedBody = hasBody && options.bodySerializer;
345
+ if (isSerializedBody) {
346
+ if ("serializedBody" in options) {
347
+ const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
348
+ return hasSerializedBody ? options.serializedBody : null;
349
+ }
350
+ return options.body !== "" ? options.body : null;
351
+ }
352
+ if (hasBody) {
353
+ return options.body;
354
+ }
355
+ return void 0;
356
+ }
357
+
358
+ // src/client/core/auth.gen.ts
359
+ var getAuthToken = async (auth, callback) => {
360
+ const token = typeof callback === "function" ? await callback(auth) : callback;
361
+ if (!token) {
362
+ return;
363
+ }
364
+ if (auth.scheme === "bearer") {
365
+ return `Bearer ${token}`;
366
+ }
367
+ if (auth.scheme === "basic") {
368
+ return `Basic ${btoa(token)}`;
369
+ }
370
+ return token;
371
+ };
372
+
373
+ // src/client/client/utils.gen.ts
374
+ var createQuerySerializer = ({
375
+ parameters = {},
376
+ ...args
377
+ } = {}) => {
378
+ const querySerializer = (queryParams) => {
379
+ const search = [];
380
+ if (queryParams && typeof queryParams === "object") {
381
+ for (const name in queryParams) {
382
+ const value = queryParams[name];
383
+ if (value === void 0 || value === null) {
384
+ continue;
385
+ }
386
+ const options = parameters[name] || args;
387
+ if (Array.isArray(value)) {
388
+ const serializedArray = serializeArrayParam({
389
+ allowReserved: options.allowReserved,
390
+ explode: true,
391
+ name,
392
+ style: "form",
393
+ value,
394
+ ...options.array
395
+ });
396
+ if (serializedArray) search.push(serializedArray);
397
+ } else if (typeof value === "object") {
398
+ const serializedObject = serializeObjectParam({
399
+ allowReserved: options.allowReserved,
400
+ explode: true,
401
+ name,
402
+ style: "deepObject",
403
+ value,
404
+ ...options.object
405
+ });
406
+ if (serializedObject) search.push(serializedObject);
407
+ } else {
408
+ const serializedPrimitive = serializePrimitiveParam({
409
+ allowReserved: options.allowReserved,
410
+ name,
411
+ value
412
+ });
413
+ if (serializedPrimitive) search.push(serializedPrimitive);
414
+ }
415
+ }
416
+ }
417
+ return search.join("&");
418
+ };
419
+ return querySerializer;
420
+ };
421
+ var getParseAs = (contentType) => {
422
+ if (!contentType) {
423
+ return "stream";
424
+ }
425
+ const cleanContent = contentType.split(";")[0]?.trim();
426
+ if (!cleanContent) {
427
+ return;
428
+ }
429
+ if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
430
+ return "json";
431
+ }
432
+ if (cleanContent === "multipart/form-data") {
433
+ return "formData";
434
+ }
435
+ if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) {
436
+ return "blob";
437
+ }
438
+ if (cleanContent.startsWith("text/")) {
439
+ return "text";
440
+ }
441
+ return;
442
+ };
443
+ var checkForExistence = (options, name) => {
444
+ if (!name) {
445
+ return false;
446
+ }
447
+ if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
448
+ return true;
449
+ }
450
+ return false;
451
+ };
452
+ async function setAuthParams(options) {
453
+ for (const auth of options.security ?? []) {
454
+ if (checkForExistence(options, auth.name)) {
455
+ continue;
456
+ }
457
+ const token = await getAuthToken(auth, options.auth);
458
+ if (!token) {
459
+ continue;
460
+ }
461
+ const name = auth.name ?? "Authorization";
462
+ switch (auth.in) {
463
+ case "query":
464
+ if (!options.query) {
465
+ options.query = {};
466
+ }
467
+ options.query[name] = token;
468
+ break;
469
+ case "cookie":
470
+ options.headers.append("Cookie", `${name}=${token}`);
471
+ break;
472
+ case "header":
473
+ default:
474
+ options.headers.set(name, token);
475
+ break;
476
+ }
477
+ }
478
+ }
479
+ var buildUrl = (options) => getUrl({
480
+ baseUrl: options.baseUrl,
481
+ path: options.path,
482
+ query: options.query,
483
+ querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
484
+ url: options.url
485
+ });
486
+ var mergeConfigs = (a, b) => {
487
+ const config = { ...a, ...b };
488
+ if (config.baseUrl?.endsWith("/")) {
489
+ config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
490
+ }
491
+ config.headers = mergeHeaders(a.headers, b.headers);
492
+ return config;
493
+ };
494
+ var headersEntries = (headers) => {
495
+ const entries = [];
496
+ headers.forEach((value, key) => {
497
+ entries.push([key, value]);
498
+ });
499
+ return entries;
500
+ };
501
+ var mergeHeaders = (...headers) => {
502
+ const mergedHeaders = new Headers();
503
+ for (const header of headers) {
504
+ if (!header) {
505
+ continue;
506
+ }
507
+ const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
508
+ for (const [key, value] of iterator) {
509
+ if (value === null) {
510
+ mergedHeaders.delete(key);
511
+ } else if (Array.isArray(value)) {
512
+ for (const v of value) {
513
+ mergedHeaders.append(key, v);
514
+ }
515
+ } else if (value !== void 0) {
516
+ mergedHeaders.set(
517
+ key,
518
+ typeof value === "object" ? JSON.stringify(value) : value
519
+ );
520
+ }
521
+ }
522
+ }
523
+ return mergedHeaders;
524
+ };
525
+ var Interceptors = class {
526
+ fns = [];
527
+ clear() {
528
+ this.fns = [];
529
+ }
530
+ eject(id) {
531
+ const index = this.getInterceptorIndex(id);
532
+ if (this.fns[index]) {
533
+ this.fns[index] = null;
534
+ }
535
+ }
536
+ exists(id) {
537
+ const index = this.getInterceptorIndex(id);
538
+ return Boolean(this.fns[index]);
539
+ }
540
+ getInterceptorIndex(id) {
541
+ if (typeof id === "number") {
542
+ return this.fns[id] ? id : -1;
543
+ }
544
+ return this.fns.indexOf(id);
545
+ }
546
+ update(id, fn) {
547
+ const index = this.getInterceptorIndex(id);
548
+ if (this.fns[index]) {
549
+ this.fns[index] = fn;
550
+ return id;
551
+ }
552
+ return false;
553
+ }
554
+ use(fn) {
555
+ this.fns.push(fn);
556
+ return this.fns.length - 1;
557
+ }
558
+ };
559
+ var createInterceptors = () => ({
560
+ error: new Interceptors(),
561
+ request: new Interceptors(),
562
+ response: new Interceptors()
563
+ });
564
+ var defaultQuerySerializer = createQuerySerializer({
565
+ allowReserved: false,
566
+ array: {
567
+ explode: true,
568
+ style: "form"
569
+ },
570
+ object: {
571
+ explode: true,
572
+ style: "deepObject"
573
+ }
574
+ });
575
+ var defaultHeaders = {
576
+ "Content-Type": "application/json"
577
+ };
578
+ var createConfig = (override = {}) => ({
579
+ ...jsonBodySerializer,
580
+ headers: defaultHeaders,
581
+ parseAs: "auto",
582
+ querySerializer: defaultQuerySerializer,
583
+ ...override
584
+ });
585
+
586
+ // src/client/client/client.gen.ts
587
+ var createClient = (config = {}) => {
588
+ let _config = mergeConfigs(createConfig(), config);
589
+ const getConfig = () => ({ ..._config });
590
+ const setConfig = (config2) => {
591
+ _config = mergeConfigs(_config, config2);
592
+ return getConfig();
593
+ };
594
+ const interceptors = createInterceptors();
595
+ const beforeRequest = async (options) => {
596
+ const opts = {
597
+ ..._config,
598
+ ...options,
599
+ fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
600
+ headers: mergeHeaders(_config.headers, options.headers),
601
+ serializedBody: void 0
602
+ };
603
+ if (opts.security) {
604
+ await setAuthParams(opts);
605
+ }
606
+ if (opts.requestValidator) {
607
+ await opts.requestValidator(opts);
608
+ }
609
+ if (opts.body !== void 0 && opts.bodySerializer) {
610
+ opts.serializedBody = opts.bodySerializer(opts.body);
611
+ }
612
+ if (opts.body === void 0 || opts.serializedBody === "") {
613
+ opts.headers.delete("Content-Type");
614
+ }
615
+ const resolvedOpts = opts;
616
+ const url = buildUrl(resolvedOpts);
617
+ return { opts: resolvedOpts, url };
618
+ };
619
+ const request = async (options) => {
620
+ const throwOnError = options.throwOnError ?? _config.throwOnError;
621
+ const responseStyle = options.responseStyle ?? _config.responseStyle;
622
+ let request2;
623
+ let response;
624
+ try {
625
+ const { opts, url } = await beforeRequest(options);
626
+ const requestInit = {
627
+ redirect: "follow",
628
+ ...opts,
629
+ body: getValidRequestBody(opts)
630
+ };
631
+ request2 = new Request(url, requestInit);
632
+ for (const fn of interceptors.request.fns) {
633
+ if (fn) {
634
+ request2 = await fn(request2, opts);
635
+ }
636
+ }
637
+ const _fetch = opts.fetch;
638
+ response = await _fetch(request2);
639
+ for (const fn of interceptors.response.fns) {
640
+ if (fn) {
641
+ response = await fn(response, request2, opts);
642
+ }
643
+ }
644
+ const result = {
645
+ request: request2,
646
+ response
647
+ };
648
+ if (response.ok) {
649
+ const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
650
+ if (response.status === 204 || response.headers.get("Content-Length") === "0") {
651
+ let emptyData;
652
+ switch (parseAs) {
653
+ case "arrayBuffer":
654
+ case "blob":
655
+ case "text":
656
+ emptyData = await response[parseAs]();
657
+ break;
658
+ case "formData":
659
+ emptyData = new FormData();
660
+ break;
661
+ case "stream":
662
+ emptyData = response.body;
663
+ break;
664
+ case "json":
665
+ default:
666
+ emptyData = {};
667
+ break;
668
+ }
669
+ return opts.responseStyle === "data" ? emptyData : {
670
+ data: emptyData,
671
+ ...result
672
+ };
673
+ }
674
+ let data;
675
+ switch (parseAs) {
676
+ case "arrayBuffer":
677
+ case "blob":
678
+ case "formData":
679
+ case "text":
680
+ data = await response[parseAs]();
681
+ break;
682
+ case "json": {
683
+ const text = await response.text();
684
+ data = text ? JSON.parse(text) : {};
685
+ break;
686
+ }
687
+ case "stream":
688
+ return opts.responseStyle === "data" ? response.body : {
689
+ data: response.body,
690
+ ...result
691
+ };
692
+ }
693
+ if (parseAs === "json") {
694
+ if (opts.responseValidator) {
695
+ await opts.responseValidator(data);
696
+ }
697
+ if (opts.responseTransformer) {
698
+ data = await opts.responseTransformer(data);
699
+ }
700
+ }
701
+ return opts.responseStyle === "data" ? data : {
702
+ data,
703
+ ...result
704
+ };
705
+ }
706
+ const textError = await response.text();
707
+ let jsonError;
708
+ try {
709
+ jsonError = JSON.parse(textError);
710
+ } catch {
711
+ }
712
+ throw jsonError ?? textError;
713
+ } catch (error) {
714
+ let finalError = error;
715
+ for (const fn of interceptors.error.fns) {
716
+ if (fn) {
717
+ finalError = await fn(finalError, response, request2, options);
718
+ }
719
+ }
720
+ finalError = finalError || {};
721
+ if (throwOnError) {
722
+ throw finalError;
723
+ }
724
+ return responseStyle === "data" ? void 0 : {
725
+ error: finalError,
726
+ request: request2,
727
+ response
728
+ };
729
+ }
730
+ };
731
+ const makeMethodFn = (method) => (options) => request({ ...options, method });
732
+ const makeSseFn = (method) => async (options) => {
733
+ const { opts, url } = await beforeRequest(options);
734
+ return createSseClient({
735
+ ...opts,
736
+ body: opts.body,
737
+ method,
738
+ onRequest: async (url2, init) => {
739
+ let request2 = new Request(url2, init);
740
+ for (const fn of interceptors.request.fns) {
741
+ if (fn) {
742
+ request2 = await fn(request2, opts);
743
+ }
744
+ }
745
+ return request2;
746
+ },
747
+ serializedBody: getValidRequestBody(opts),
748
+ url
749
+ });
750
+ };
751
+ const _buildUrl = (options) => buildUrl({ ..._config, ...options });
752
+ return {
753
+ buildUrl: _buildUrl,
754
+ connect: makeMethodFn("CONNECT"),
755
+ delete: makeMethodFn("DELETE"),
756
+ get: makeMethodFn("GET"),
757
+ getConfig,
758
+ head: makeMethodFn("HEAD"),
759
+ interceptors,
760
+ options: makeMethodFn("OPTIONS"),
761
+ patch: makeMethodFn("PATCH"),
762
+ post: makeMethodFn("POST"),
763
+ put: makeMethodFn("PUT"),
764
+ request,
765
+ setConfig,
766
+ sse: {
767
+ connect: makeSseFn("CONNECT"),
768
+ delete: makeSseFn("DELETE"),
769
+ get: makeSseFn("GET"),
770
+ head: makeSseFn("HEAD"),
771
+ options: makeSseFn("OPTIONS"),
772
+ patch: makeSseFn("PATCH"),
773
+ post: makeSseFn("POST"),
774
+ put: makeSseFn("PUT"),
775
+ trace: makeSseFn("TRACE")
776
+ },
777
+ trace: makeMethodFn("TRACE")
778
+ };
779
+ };
780
+
781
+ // src/client/client.gen.ts
782
+ var client = createClient(createConfig({ baseUrl: "https://api.postrun.ai/v1", throwOnError: true }));
783
+
784
+ // src/client/sdk.gen.ts
785
+ var profilesList = (options) => (options?.client ?? client).get({
786
+ security: [{
787
+ key: "secretKey",
788
+ scheme: "bearer",
789
+ type: "http"
790
+ }, {
791
+ key: "frontendToken",
792
+ scheme: "bearer",
793
+ type: "http"
794
+ }],
795
+ url: "/profiles",
796
+ ...options
797
+ });
798
+ var profilesCreate = (options) => (options.client ?? client).post({
799
+ security: [{
800
+ key: "secretKey",
801
+ scheme: "bearer",
802
+ type: "http"
803
+ }, {
804
+ key: "frontendToken",
805
+ scheme: "bearer",
806
+ type: "http"
807
+ }],
808
+ url: "/profiles",
809
+ ...options,
810
+ headers: {
811
+ "Content-Type": "application/json",
812
+ ...options.headers
813
+ }
814
+ });
815
+ var profilesDelete = (options) => (options.client ?? client).delete({
816
+ security: [{
817
+ key: "secretKey",
818
+ scheme: "bearer",
819
+ type: "http"
820
+ }, {
821
+ key: "frontendToken",
822
+ scheme: "bearer",
823
+ type: "http"
824
+ }],
825
+ url: "/profiles/{id}",
826
+ ...options
827
+ });
828
+ var profilesGet = (options) => (options.client ?? client).get({
829
+ security: [{
830
+ key: "secretKey",
831
+ scheme: "bearer",
832
+ type: "http"
833
+ }, {
834
+ key: "frontendToken",
835
+ scheme: "bearer",
836
+ type: "http"
837
+ }],
838
+ url: "/profiles/{id}",
839
+ ...options
840
+ });
841
+ var profilesUpdate = (options) => (options.client ?? client).patch({
842
+ security: [{
843
+ key: "secretKey",
844
+ scheme: "bearer",
845
+ type: "http"
846
+ }, {
847
+ key: "frontendToken",
848
+ scheme: "bearer",
849
+ type: "http"
850
+ }],
851
+ url: "/profiles/{id}",
852
+ ...options,
853
+ headers: {
854
+ "Content-Type": "application/json",
855
+ ...options.headers
856
+ }
857
+ });
858
+ var connectionsListByProfile = (options) => (options.client ?? client).get({
859
+ security: [{
860
+ key: "secretKey",
861
+ scheme: "bearer",
862
+ type: "http"
863
+ }, {
864
+ key: "frontendToken",
865
+ scheme: "bearer",
866
+ type: "http"
867
+ }],
868
+ url: "/profiles/{id}/connections",
869
+ ...options
870
+ });
871
+ var connectionsDelete = (options) => (options.client ?? client).delete({
872
+ security: [{
873
+ key: "secretKey",
874
+ scheme: "bearer",
875
+ type: "http"
876
+ }, {
877
+ key: "frontendToken",
878
+ scheme: "bearer",
879
+ type: "http"
880
+ }],
881
+ url: "/connections/{id}",
882
+ ...options
883
+ });
884
+ var connectionsGet = (options) => (options.client ?? client).get({
885
+ security: [{
886
+ key: "secretKey",
887
+ scheme: "bearer",
888
+ type: "http"
889
+ }, {
890
+ key: "frontendToken",
891
+ scheme: "bearer",
892
+ type: "http"
893
+ }],
894
+ url: "/connections/{id}",
895
+ ...options
896
+ });
897
+ var connectionsSelect = (options) => (options.client ?? client).patch({
898
+ security: [{
899
+ key: "secretKey",
900
+ scheme: "bearer",
901
+ type: "http"
902
+ }, {
903
+ key: "frontendToken",
904
+ scheme: "bearer",
905
+ type: "http"
906
+ }],
907
+ url: "/connections/{id}",
908
+ ...options,
909
+ headers: {
910
+ "Content-Type": "application/json",
911
+ ...options.headers
912
+ }
913
+ });
914
+ var connectionsListAccounts = (options) => (options.client ?? client).get({
915
+ security: [{
916
+ key: "secretKey",
917
+ scheme: "bearer",
918
+ type: "http"
919
+ }, {
920
+ key: "frontendToken",
921
+ scheme: "bearer",
922
+ type: "http"
923
+ }],
924
+ url: "/connections/{id}/accounts",
925
+ ...options
926
+ });
927
+ var connectionsConnect = (options) => (options.client ?? client).post({
928
+ security: [{
929
+ key: "secretKey",
930
+ scheme: "bearer",
931
+ type: "http"
932
+ }, {
933
+ key: "frontendToken",
934
+ scheme: "bearer",
935
+ type: "http"
936
+ }],
937
+ url: "/profiles/{id}/connect",
938
+ ...options,
939
+ headers: {
940
+ "Content-Type": "application/json",
941
+ ...options.headers
942
+ }
943
+ });
944
+ var mediaList = (options) => (options?.client ?? client).get({
945
+ security: [{
946
+ key: "secretKey",
947
+ scheme: "bearer",
948
+ type: "http"
949
+ }, {
950
+ key: "frontendToken",
951
+ scheme: "bearer",
952
+ type: "http"
953
+ }],
954
+ url: "/media",
955
+ ...options
956
+ });
957
+ var mediaCreate = (options) => (options.client ?? client).post({
958
+ security: [{
959
+ key: "secretKey",
960
+ scheme: "bearer",
961
+ type: "http"
962
+ }, {
963
+ key: "frontendToken",
964
+ scheme: "bearer",
965
+ type: "http"
966
+ }],
967
+ url: "/media",
968
+ ...options,
969
+ headers: {
970
+ "Content-Type": "application/json",
971
+ ...options.headers
972
+ }
973
+ });
974
+ var mediaDelete = (options) => (options.client ?? client).delete({
975
+ security: [{
976
+ key: "secretKey",
977
+ scheme: "bearer",
978
+ type: "http"
979
+ }, {
980
+ key: "frontendToken",
981
+ scheme: "bearer",
982
+ type: "http"
983
+ }],
984
+ url: "/media/{id}",
985
+ ...options
986
+ });
987
+ var mediaGet = (options) => (options.client ?? client).get({
988
+ security: [{
989
+ key: "secretKey",
990
+ scheme: "bearer",
991
+ type: "http"
992
+ }, {
993
+ key: "frontendToken",
994
+ scheme: "bearer",
995
+ type: "http"
996
+ }],
997
+ url: "/media/{id}",
998
+ ...options
999
+ });
1000
+ var mediaUpdate = (options) => (options.client ?? client).patch({
1001
+ security: [{
1002
+ key: "secretKey",
1003
+ scheme: "bearer",
1004
+ type: "http"
1005
+ }, {
1006
+ key: "frontendToken",
1007
+ scheme: "bearer",
1008
+ type: "http"
1009
+ }],
1010
+ url: "/media/{id}",
1011
+ ...options,
1012
+ headers: {
1013
+ "Content-Type": "application/json",
1014
+ ...options.headers
1015
+ }
1016
+ });
1017
+ var mediaSignPart = (options) => (options.client ?? client).post({
1018
+ security: [{
1019
+ key: "secretKey",
1020
+ scheme: "bearer",
1021
+ type: "http"
1022
+ }, {
1023
+ key: "frontendToken",
1024
+ scheme: "bearer",
1025
+ type: "http"
1026
+ }],
1027
+ url: "/media/{id}/multipart/sign",
1028
+ ...options,
1029
+ headers: {
1030
+ "Content-Type": "application/json",
1031
+ ...options.headers
1032
+ }
1033
+ });
1034
+ var mediaListParts = (options) => (options.client ?? client).get({
1035
+ security: [{
1036
+ key: "secretKey",
1037
+ scheme: "bearer",
1038
+ type: "http"
1039
+ }, {
1040
+ key: "frontendToken",
1041
+ scheme: "bearer",
1042
+ type: "http"
1043
+ }],
1044
+ url: "/media/{id}/multipart/parts",
1045
+ ...options
1046
+ });
1047
+ var mediaComplete = (options) => (options.client ?? client).post({
1048
+ security: [{
1049
+ key: "secretKey",
1050
+ scheme: "bearer",
1051
+ type: "http"
1052
+ }, {
1053
+ key: "frontendToken",
1054
+ scheme: "bearer",
1055
+ type: "http"
1056
+ }],
1057
+ url: "/media/{id}/multipart/complete",
1058
+ ...options,
1059
+ headers: {
1060
+ "Content-Type": "application/json",
1061
+ ...options.headers
1062
+ }
1063
+ });
1064
+ var mediaAbort = (options) => (options.client ?? client).post({
1065
+ security: [{
1066
+ key: "secretKey",
1067
+ scheme: "bearer",
1068
+ type: "http"
1069
+ }, {
1070
+ key: "frontendToken",
1071
+ scheme: "bearer",
1072
+ type: "http"
1073
+ }],
1074
+ url: "/media/{id}/multipart/abort",
1075
+ ...options
1076
+ });
1077
+ var postsList = (options) => (options?.client ?? client).get({
1078
+ security: [{
1079
+ key: "secretKey",
1080
+ scheme: "bearer",
1081
+ type: "http"
1082
+ }, {
1083
+ key: "frontendToken",
1084
+ scheme: "bearer",
1085
+ type: "http"
1086
+ }],
1087
+ url: "/posts",
1088
+ ...options
1089
+ });
1090
+ var postsCreate = (options) => (options.client ?? client).post({
1091
+ security: [{
1092
+ key: "secretKey",
1093
+ scheme: "bearer",
1094
+ type: "http"
1095
+ }, {
1096
+ key: "frontendToken",
1097
+ scheme: "bearer",
1098
+ type: "http"
1099
+ }],
1100
+ url: "/posts",
1101
+ ...options,
1102
+ headers: {
1103
+ "Content-Type": "application/json",
1104
+ ...options.headers
1105
+ }
1106
+ });
1107
+ var postsDelete = (options) => (options.client ?? client).delete({
1108
+ security: [{
1109
+ key: "secretKey",
1110
+ scheme: "bearer",
1111
+ type: "http"
1112
+ }, {
1113
+ key: "frontendToken",
1114
+ scheme: "bearer",
1115
+ type: "http"
1116
+ }],
1117
+ url: "/posts/{id}",
1118
+ ...options
1119
+ });
1120
+ var postsGet = (options) => (options.client ?? client).get({
1121
+ security: [{
1122
+ key: "secretKey",
1123
+ scheme: "bearer",
1124
+ type: "http"
1125
+ }, {
1126
+ key: "frontendToken",
1127
+ scheme: "bearer",
1128
+ type: "http"
1129
+ }],
1130
+ url: "/posts/{id}",
1131
+ ...options
1132
+ });
1133
+ var postsUpdate = (options) => (options.client ?? client).patch({
1134
+ security: [{
1135
+ key: "secretKey",
1136
+ scheme: "bearer",
1137
+ type: "http"
1138
+ }, {
1139
+ key: "frontendToken",
1140
+ scheme: "bearer",
1141
+ type: "http"
1142
+ }],
1143
+ url: "/posts/{id}",
1144
+ ...options,
1145
+ headers: {
1146
+ "Content-Type": "application/json",
1147
+ ...options.headers
1148
+ }
1149
+ });
1150
+ var postsValidate = (options) => (options.client ?? client).post({
1151
+ security: [{
1152
+ key: "secretKey",
1153
+ scheme: "bearer",
1154
+ type: "http"
1155
+ }, {
1156
+ key: "frontendToken",
1157
+ scheme: "bearer",
1158
+ type: "http"
1159
+ }],
1160
+ url: "/posts/validate",
1161
+ ...options,
1162
+ headers: {
1163
+ "Content-Type": "application/json",
1164
+ ...options.headers
1165
+ }
1166
+ });
1167
+ var metaAccount = (options) => (options.client ?? client).get({
1168
+ security: [{
1169
+ key: "secretKey",
1170
+ scheme: "bearer",
1171
+ type: "http"
1172
+ }, {
1173
+ key: "frontendToken",
1174
+ scheme: "bearer",
1175
+ type: "http"
1176
+ }],
1177
+ url: "/meta/{connection_id}/account",
1178
+ ...options
1179
+ });
1180
+ var metaInsights = (options) => (options.client ?? client).get({
1181
+ security: [{
1182
+ key: "secretKey",
1183
+ scheme: "bearer",
1184
+ type: "http"
1185
+ }, {
1186
+ key: "frontendToken",
1187
+ scheme: "bearer",
1188
+ type: "http"
1189
+ }],
1190
+ url: "/meta/{connection_id}/insights",
1191
+ ...options
1192
+ });
1193
+ var metaCampaigns = (options) => (options.client ?? client).get({
1194
+ security: [{
1195
+ key: "secretKey",
1196
+ scheme: "bearer",
1197
+ type: "http"
1198
+ }, {
1199
+ key: "frontendToken",
1200
+ scheme: "bearer",
1201
+ type: "http"
1202
+ }],
1203
+ url: "/meta/{connection_id}/campaigns",
1204
+ ...options
1205
+ });
1206
+ var metaCampaign = (options) => (options.client ?? client).get({
1207
+ security: [{
1208
+ key: "secretKey",
1209
+ scheme: "bearer",
1210
+ type: "http"
1211
+ }, {
1212
+ key: "frontendToken",
1213
+ scheme: "bearer",
1214
+ type: "http"
1215
+ }],
1216
+ url: "/meta/{connection_id}/campaigns/{campaign_id}",
1217
+ ...options
1218
+ });
1219
+ var metaAdsets = (options) => (options.client ?? client).get({
1220
+ security: [{
1221
+ key: "secretKey",
1222
+ scheme: "bearer",
1223
+ type: "http"
1224
+ }, {
1225
+ key: "frontendToken",
1226
+ scheme: "bearer",
1227
+ type: "http"
1228
+ }],
1229
+ url: "/meta/{connection_id}/adsets",
1230
+ ...options
1231
+ });
1232
+ var metaAdset = (options) => (options.client ?? client).get({
1233
+ security: [{
1234
+ key: "secretKey",
1235
+ scheme: "bearer",
1236
+ type: "http"
1237
+ }, {
1238
+ key: "frontendToken",
1239
+ scheme: "bearer",
1240
+ type: "http"
1241
+ }],
1242
+ url: "/meta/{connection_id}/adsets/{adset_id}",
1243
+ ...options
1244
+ });
1245
+ var metaAds = (options) => (options.client ?? client).get({
1246
+ security: [{
1247
+ key: "secretKey",
1248
+ scheme: "bearer",
1249
+ type: "http"
1250
+ }, {
1251
+ key: "frontendToken",
1252
+ scheme: "bearer",
1253
+ type: "http"
1254
+ }],
1255
+ url: "/meta/{connection_id}/ads",
1256
+ ...options
1257
+ });
1258
+ var metaAd = (options) => (options.client ?? client).get({
1259
+ security: [{
1260
+ key: "secretKey",
1261
+ scheme: "bearer",
1262
+ type: "http"
1263
+ }, {
1264
+ key: "frontendToken",
1265
+ scheme: "bearer",
1266
+ type: "http"
1267
+ }],
1268
+ url: "/meta/{connection_id}/ads/{ad_id}",
1269
+ ...options
1270
+ });
1271
+ var googleGetAccount = (options) => (options.client ?? client).get({
1272
+ security: [{
1273
+ key: "secretKey",
1274
+ scheme: "bearer",
1275
+ type: "http"
1276
+ }, {
1277
+ key: "frontendToken",
1278
+ scheme: "bearer",
1279
+ type: "http"
1280
+ }],
1281
+ url: "/google/{connection_id}/account",
1282
+ ...options
1283
+ });
1284
+ var googleGetInsights = (options) => (options.client ?? client).post({
1285
+ security: [{
1286
+ key: "secretKey",
1287
+ scheme: "bearer",
1288
+ type: "http"
1289
+ }, {
1290
+ key: "frontendToken",
1291
+ scheme: "bearer",
1292
+ type: "http"
1293
+ }],
1294
+ url: "/google/{connection_id}/insights",
1295
+ ...options,
1296
+ headers: {
1297
+ "Content-Type": "application/json",
1298
+ ...options.headers
1299
+ }
1300
+ });
1301
+ var googleRunGaql = (options) => (options.client ?? client).post({
1302
+ security: [{
1303
+ key: "secretKey",
1304
+ scheme: "bearer",
1305
+ type: "http"
1306
+ }, {
1307
+ key: "frontendToken",
1308
+ scheme: "bearer",
1309
+ type: "http"
1310
+ }],
1311
+ url: "/google/{connection_id}/gaql",
1312
+ ...options,
1313
+ headers: {
1314
+ "Content-Type": "application/json",
1315
+ ...options.headers
1316
+ }
1317
+ });
1318
+ var googleCreateBudget = (options) => (options.client ?? client).post({
1319
+ security: [{
1320
+ key: "secretKey",
1321
+ scheme: "bearer",
1322
+ type: "http"
1323
+ }],
1324
+ url: "/google/{connection_id}/budgets",
1325
+ ...options,
1326
+ headers: {
1327
+ "Content-Type": "application/json",
1328
+ ...options.headers
1329
+ }
1330
+ });
1331
+ var googleDeleteBudget = (options) => (options.client ?? client).delete({
1332
+ security: [{
1333
+ key: "secretKey",
1334
+ scheme: "bearer",
1335
+ type: "http"
1336
+ }, {
1337
+ key: "frontendToken",
1338
+ scheme: "bearer",
1339
+ type: "http"
1340
+ }],
1341
+ url: "/google/{connection_id}/budgets/{id}",
1342
+ ...options,
1343
+ headers: {
1344
+ "Content-Type": "application/json",
1345
+ ...options.headers
1346
+ }
1347
+ });
1348
+ var googleEditBudget = (options) => (options.client ?? client).patch({
1349
+ security: [{
1350
+ key: "secretKey",
1351
+ scheme: "bearer",
1352
+ type: "http"
1353
+ }],
1354
+ url: "/google/{connection_id}/budgets/{id}",
1355
+ ...options,
1356
+ headers: {
1357
+ "Content-Type": "application/json",
1358
+ ...options.headers
1359
+ }
1360
+ });
1361
+ var googleListCampaigns = (options) => (options.client ?? client).get({
1362
+ security: [{
1363
+ key: "secretKey",
1364
+ scheme: "bearer",
1365
+ type: "http"
1366
+ }, {
1367
+ key: "frontendToken",
1368
+ scheme: "bearer",
1369
+ type: "http"
1370
+ }],
1371
+ url: "/google/{connection_id}/campaigns",
1372
+ ...options
1373
+ });
1374
+ var googleCreateCampaign = (options) => (options.client ?? client).post({
1375
+ security: [{
1376
+ key: "secretKey",
1377
+ scheme: "bearer",
1378
+ type: "http"
1379
+ }, {
1380
+ key: "frontendToken",
1381
+ scheme: "bearer",
1382
+ type: "http"
1383
+ }],
1384
+ url: "/google/{connection_id}/campaigns",
1385
+ ...options,
1386
+ headers: {
1387
+ "Content-Type": "application/json",
1388
+ ...options.headers
1389
+ }
1390
+ });
1391
+ var googleDeleteCampaign = (options) => (options.client ?? client).delete({
1392
+ security: [{
1393
+ key: "secretKey",
1394
+ scheme: "bearer",
1395
+ type: "http"
1396
+ }, {
1397
+ key: "frontendToken",
1398
+ scheme: "bearer",
1399
+ type: "http"
1400
+ }],
1401
+ url: "/google/{connection_id}/campaigns/{id}",
1402
+ ...options,
1403
+ headers: {
1404
+ "Content-Type": "application/json",
1405
+ ...options.headers
1406
+ }
1407
+ });
1408
+ var googleGetCampaign = (options) => (options.client ?? client).get({
1409
+ security: [{
1410
+ key: "secretKey",
1411
+ scheme: "bearer",
1412
+ type: "http"
1413
+ }, {
1414
+ key: "frontendToken",
1415
+ scheme: "bearer",
1416
+ type: "http"
1417
+ }],
1418
+ url: "/google/{connection_id}/campaigns/{id}",
1419
+ ...options
1420
+ });
1421
+ var googleEditCampaign = (options) => (options.client ?? client).patch({
1422
+ security: [{
1423
+ key: "secretKey",
1424
+ scheme: "bearer",
1425
+ type: "http"
1426
+ }, {
1427
+ key: "frontendToken",
1428
+ scheme: "bearer",
1429
+ type: "http"
1430
+ }],
1431
+ url: "/google/{connection_id}/campaigns/{id}",
1432
+ ...options,
1433
+ headers: {
1434
+ "Content-Type": "application/json",
1435
+ ...options.headers
1436
+ }
1437
+ });
1438
+ var googlePauseCampaign = (options) => (options.client ?? client).post({
1439
+ security: [{
1440
+ key: "secretKey",
1441
+ scheme: "bearer",
1442
+ type: "http"
1443
+ }, {
1444
+ key: "frontendToken",
1445
+ scheme: "bearer",
1446
+ type: "http"
1447
+ }],
1448
+ url: "/google/{connection_id}/campaigns/{id}/pause",
1449
+ ...options,
1450
+ headers: {
1451
+ "Content-Type": "application/json",
1452
+ ...options.headers
1453
+ }
1454
+ });
1455
+ var googleEnableCampaign = (options) => (options.client ?? client).post({
1456
+ security: [{
1457
+ key: "secretKey",
1458
+ scheme: "bearer",
1459
+ type: "http"
1460
+ }, {
1461
+ key: "frontendToken",
1462
+ scheme: "bearer",
1463
+ type: "http"
1464
+ }],
1465
+ url: "/google/{connection_id}/campaigns/{id}/enable",
1466
+ ...options,
1467
+ headers: {
1468
+ "Content-Type": "application/json",
1469
+ ...options.headers
1470
+ }
1471
+ });
1472
+ var googleSearchGeoTargets = (options) => (options.client ?? client).get({
1473
+ security: [{
1474
+ key: "secretKey",
1475
+ scheme: "bearer",
1476
+ type: "http"
1477
+ }, {
1478
+ key: "frontendToken",
1479
+ scheme: "bearer",
1480
+ type: "http"
1481
+ }],
1482
+ url: "/google/{connection_id}/geo-targets/search",
1483
+ ...options
1484
+ });
1485
+ var googleListCampaignCriteria = (options) => (options.client ?? client).get({
1486
+ security: [{
1487
+ key: "secretKey",
1488
+ scheme: "bearer",
1489
+ type: "http"
1490
+ }, {
1491
+ key: "frontendToken",
1492
+ scheme: "bearer",
1493
+ type: "http"
1494
+ }],
1495
+ url: "/google/{connection_id}/campaigns/{campaign_id}/criteria",
1496
+ ...options
1497
+ });
1498
+ var googleCreateCampaignCriterion = (options) => (options.client ?? client).post({
1499
+ security: [{
1500
+ key: "secretKey",
1501
+ scheme: "bearer",
1502
+ type: "http"
1503
+ }, {
1504
+ key: "frontendToken",
1505
+ scheme: "bearer",
1506
+ type: "http"
1507
+ }],
1508
+ url: "/google/{connection_id}/campaigns/{campaign_id}/criteria",
1509
+ ...options,
1510
+ headers: {
1511
+ "Content-Type": "application/json",
1512
+ ...options.headers
1513
+ }
1514
+ });
1515
+ var googleDeleteCampaignCriterion = (options) => (options.client ?? client).delete({
1516
+ security: [{
1517
+ key: "secretKey",
1518
+ scheme: "bearer",
1519
+ type: "http"
1520
+ }, {
1521
+ key: "frontendToken",
1522
+ scheme: "bearer",
1523
+ type: "http"
1524
+ }],
1525
+ url: "/google/{connection_id}/campaigns/{campaign_id}/criteria/{criterion_id}",
1526
+ ...options,
1527
+ headers: {
1528
+ "Content-Type": "application/json",
1529
+ ...options.headers
1530
+ }
1531
+ });
1532
+ var googleSetCampaignGeoSettings = (options) => (options.client ?? client).patch({
1533
+ security: [{
1534
+ key: "secretKey",
1535
+ scheme: "bearer",
1536
+ type: "http"
1537
+ }, {
1538
+ key: "frontendToken",
1539
+ scheme: "bearer",
1540
+ type: "http"
1541
+ }],
1542
+ url: "/google/{connection_id}/campaigns/{campaign_id}/geo-settings",
1543
+ ...options,
1544
+ headers: {
1545
+ "Content-Type": "application/json",
1546
+ ...options.headers
1547
+ }
1548
+ });
1549
+ var googleListAdGroups = (options) => (options.client ?? client).get({
1550
+ security: [{
1551
+ key: "secretKey",
1552
+ scheme: "bearer",
1553
+ type: "http"
1554
+ }, {
1555
+ key: "frontendToken",
1556
+ scheme: "bearer",
1557
+ type: "http"
1558
+ }],
1559
+ url: "/google/{connection_id}/ad-groups",
1560
+ ...options
1561
+ });
1562
+ var googleCreateAdGroup = (options) => (options.client ?? client).post({
1563
+ security: [{
1564
+ key: "secretKey",
1565
+ scheme: "bearer",
1566
+ type: "http"
1567
+ }, {
1568
+ key: "frontendToken",
1569
+ scheme: "bearer",
1570
+ type: "http"
1571
+ }],
1572
+ url: "/google/{connection_id}/ad-groups",
1573
+ ...options,
1574
+ headers: {
1575
+ "Content-Type": "application/json",
1576
+ ...options.headers
1577
+ }
1578
+ });
1579
+ var googleDeleteAdGroup = (options) => (options.client ?? client).delete({
1580
+ security: [{
1581
+ key: "secretKey",
1582
+ scheme: "bearer",
1583
+ type: "http"
1584
+ }, {
1585
+ key: "frontendToken",
1586
+ scheme: "bearer",
1587
+ type: "http"
1588
+ }],
1589
+ url: "/google/{connection_id}/ad-groups/{id}",
1590
+ ...options,
1591
+ headers: {
1592
+ "Content-Type": "application/json",
1593
+ ...options.headers
1594
+ }
1595
+ });
1596
+ var googleGetAdGroup = (options) => (options.client ?? client).get({
1597
+ security: [{
1598
+ key: "secretKey",
1599
+ scheme: "bearer",
1600
+ type: "http"
1601
+ }, {
1602
+ key: "frontendToken",
1603
+ scheme: "bearer",
1604
+ type: "http"
1605
+ }],
1606
+ url: "/google/{connection_id}/ad-groups/{id}",
1607
+ ...options
1608
+ });
1609
+ var googleEditAdGroup = (options) => (options.client ?? client).patch({
1610
+ security: [{
1611
+ key: "secretKey",
1612
+ scheme: "bearer",
1613
+ type: "http"
1614
+ }, {
1615
+ key: "frontendToken",
1616
+ scheme: "bearer",
1617
+ type: "http"
1618
+ }],
1619
+ url: "/google/{connection_id}/ad-groups/{id}",
1620
+ ...options,
1621
+ headers: {
1622
+ "Content-Type": "application/json",
1623
+ ...options.headers
1624
+ }
1625
+ });
1626
+ var googleSetAdGroupBids = (options) => (options.client ?? client).patch({
1627
+ security: [{
1628
+ key: "secretKey",
1629
+ scheme: "bearer",
1630
+ type: "http"
1631
+ }],
1632
+ url: "/google/{connection_id}/ad-groups/{id}/bids",
1633
+ ...options,
1634
+ headers: {
1635
+ "Content-Type": "application/json",
1636
+ ...options.headers
1637
+ }
1638
+ });
1639
+ var googlePauseAdGroup = (options) => (options.client ?? client).post({
1640
+ security: [{
1641
+ key: "secretKey",
1642
+ scheme: "bearer",
1643
+ type: "http"
1644
+ }, {
1645
+ key: "frontendToken",
1646
+ scheme: "bearer",
1647
+ type: "http"
1648
+ }],
1649
+ url: "/google/{connection_id}/ad-groups/{id}/pause",
1650
+ ...options,
1651
+ headers: {
1652
+ "Content-Type": "application/json",
1653
+ ...options.headers
1654
+ }
1655
+ });
1656
+ var googleEnableAdGroup = (options) => (options.client ?? client).post({
1657
+ security: [{
1658
+ key: "secretKey",
1659
+ scheme: "bearer",
1660
+ type: "http"
1661
+ }, {
1662
+ key: "frontendToken",
1663
+ scheme: "bearer",
1664
+ type: "http"
1665
+ }],
1666
+ url: "/google/{connection_id}/ad-groups/{id}/enable",
1667
+ ...options,
1668
+ headers: {
1669
+ "Content-Type": "application/json",
1670
+ ...options.headers
1671
+ }
1672
+ });
1673
+ var googleListAdGroupCriteria = (options) => (options.client ?? client).get({
1674
+ security: [{
1675
+ key: "secretKey",
1676
+ scheme: "bearer",
1677
+ type: "http"
1678
+ }, {
1679
+ key: "frontendToken",
1680
+ scheme: "bearer",
1681
+ type: "http"
1682
+ }],
1683
+ url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria",
1684
+ ...options
1685
+ });
1686
+ var googleCreateAdGroupCriterion = (options) => (options.client ?? client).post({
1687
+ security: [{
1688
+ key: "secretKey",
1689
+ scheme: "bearer",
1690
+ type: "http"
1691
+ }, {
1692
+ key: "frontendToken",
1693
+ scheme: "bearer",
1694
+ type: "http"
1695
+ }],
1696
+ url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria",
1697
+ ...options,
1698
+ headers: {
1699
+ "Content-Type": "application/json",
1700
+ ...options.headers
1701
+ }
1702
+ });
1703
+ var googleDeleteAdGroupCriterion = (options) => (options.client ?? client).delete({
1704
+ security: [{
1705
+ key: "secretKey",
1706
+ scheme: "bearer",
1707
+ type: "http"
1708
+ }, {
1709
+ key: "frontendToken",
1710
+ scheme: "bearer",
1711
+ type: "http"
1712
+ }],
1713
+ url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria/{criterion_id}",
1714
+ ...options,
1715
+ headers: {
1716
+ "Content-Type": "application/json",
1717
+ ...options.headers
1718
+ }
1719
+ });
1720
+ var googleListAudiences = (options) => (options.client ?? client).get({
1721
+ security: [{
1722
+ key: "secretKey",
1723
+ scheme: "bearer",
1724
+ type: "http"
1725
+ }, {
1726
+ key: "frontendToken",
1727
+ scheme: "bearer",
1728
+ type: "http"
1729
+ }],
1730
+ url: "/google/{connection_id}/audiences",
1731
+ ...options
1732
+ });
1733
+ var googleSetCampaignTargetingSetting = (options) => (options.client ?? client).patch({
1734
+ security: [{
1735
+ key: "secretKey",
1736
+ scheme: "bearer",
1737
+ type: "http"
1738
+ }, {
1739
+ key: "frontendToken",
1740
+ scheme: "bearer",
1741
+ type: "http"
1742
+ }],
1743
+ url: "/google/{connection_id}/campaigns/{campaign_id}/targeting-setting",
1744
+ ...options,
1745
+ headers: {
1746
+ "Content-Type": "application/json",
1747
+ ...options.headers
1748
+ }
1749
+ });
1750
+ var googleListAds = (options) => (options.client ?? client).get({
1751
+ security: [{
1752
+ key: "secretKey",
1753
+ scheme: "bearer",
1754
+ type: "http"
1755
+ }, {
1756
+ key: "frontendToken",
1757
+ scheme: "bearer",
1758
+ type: "http"
1759
+ }],
1760
+ url: "/google/{connection_id}/ads",
1761
+ ...options
1762
+ });
1763
+ var googleCreateAd = (options) => (options.client ?? client).post({
1764
+ security: [{
1765
+ key: "secretKey",
1766
+ scheme: "bearer",
1767
+ type: "http"
1768
+ }, {
1769
+ key: "frontendToken",
1770
+ scheme: "bearer",
1771
+ type: "http"
1772
+ }],
1773
+ url: "/google/{connection_id}/ads",
1774
+ ...options,
1775
+ headers: {
1776
+ "Content-Type": "application/json",
1777
+ ...options.headers
1778
+ }
1779
+ });
1780
+ var googleDeleteAd = (options) => (options.client ?? client).delete({
1781
+ security: [{
1782
+ key: "secretKey",
1783
+ scheme: "bearer",
1784
+ type: "http"
1785
+ }, {
1786
+ key: "frontendToken",
1787
+ scheme: "bearer",
1788
+ type: "http"
1789
+ }],
1790
+ url: "/google/{connection_id}/ads/{id}",
1791
+ ...options,
1792
+ headers: {
1793
+ "Content-Type": "application/json",
1794
+ ...options.headers
1795
+ }
1796
+ });
1797
+ var googleGetAd = (options) => (options.client ?? client).get({
1798
+ security: [{
1799
+ key: "secretKey",
1800
+ scheme: "bearer",
1801
+ type: "http"
1802
+ }, {
1803
+ key: "frontendToken",
1804
+ scheme: "bearer",
1805
+ type: "http"
1806
+ }],
1807
+ url: "/google/{connection_id}/ads/{id}",
1808
+ ...options
1809
+ });
1810
+ var googleCreateDisplayAd = (options) => (options.client ?? client).post({
1811
+ security: [{
1812
+ key: "secretKey",
1813
+ scheme: "bearer",
1814
+ type: "http"
1815
+ }, {
1816
+ key: "frontendToken",
1817
+ scheme: "bearer",
1818
+ type: "http"
1819
+ }],
1820
+ url: "/google/{connection_id}/display-ads",
1821
+ ...options,
1822
+ headers: {
1823
+ "Content-Type": "application/json",
1824
+ ...options.headers
1825
+ }
1826
+ });
1827
+ var googlePauseAd = (options) => (options.client ?? client).post({
1828
+ security: [{
1829
+ key: "secretKey",
1830
+ scheme: "bearer",
1831
+ type: "http"
1832
+ }, {
1833
+ key: "frontendToken",
1834
+ scheme: "bearer",
1835
+ type: "http"
1836
+ }],
1837
+ url: "/google/{connection_id}/ads/{id}/pause",
1838
+ ...options,
1839
+ headers: {
1840
+ "Content-Type": "application/json",
1841
+ ...options.headers
1842
+ }
1843
+ });
1844
+ var googleEnableAd = (options) => (options.client ?? client).post({
1845
+ security: [{
1846
+ key: "secretKey",
1847
+ scheme: "bearer",
1848
+ type: "http"
1849
+ }, {
1850
+ key: "frontendToken",
1851
+ scheme: "bearer",
1852
+ type: "http"
1853
+ }],
1854
+ url: "/google/{connection_id}/ads/{id}/enable",
1855
+ ...options,
1856
+ headers: {
1857
+ "Content-Type": "application/json",
1858
+ ...options.headers
1859
+ }
1860
+ });
1861
+ var googleListKeywords = (options) => (options.client ?? client).get({
1862
+ security: [{
1863
+ key: "secretKey",
1864
+ scheme: "bearer",
1865
+ type: "http"
1866
+ }, {
1867
+ key: "frontendToken",
1868
+ scheme: "bearer",
1869
+ type: "http"
1870
+ }],
1871
+ url: "/google/{connection_id}/keywords",
1872
+ ...options
1873
+ });
1874
+ var googleCreateKeyword = (options) => (options.client ?? client).post({
1875
+ security: [{
1876
+ key: "secretKey",
1877
+ scheme: "bearer",
1878
+ type: "http"
1879
+ }, {
1880
+ key: "frontendToken",
1881
+ scheme: "bearer",
1882
+ type: "http"
1883
+ }],
1884
+ url: "/google/{connection_id}/keywords",
1885
+ ...options,
1886
+ headers: {
1887
+ "Content-Type": "application/json",
1888
+ ...options.headers
1889
+ }
1890
+ });
1891
+ var googleDeleteKeyword = (options) => (options.client ?? client).delete({
1892
+ security: [{
1893
+ key: "secretKey",
1894
+ scheme: "bearer",
1895
+ type: "http"
1896
+ }, {
1897
+ key: "frontendToken",
1898
+ scheme: "bearer",
1899
+ type: "http"
1900
+ }],
1901
+ url: "/google/{connection_id}/keywords/{id}",
1902
+ ...options,
1903
+ headers: {
1904
+ "Content-Type": "application/json",
1905
+ ...options.headers
1906
+ }
1907
+ });
1908
+ var googleGetKeyword = (options) => (options.client ?? client).get({
1909
+ security: [{
1910
+ key: "secretKey",
1911
+ scheme: "bearer",
1912
+ type: "http"
1913
+ }, {
1914
+ key: "frontendToken",
1915
+ scheme: "bearer",
1916
+ type: "http"
1917
+ }],
1918
+ url: "/google/{connection_id}/keywords/{id}",
1919
+ ...options
1920
+ });
1921
+ var googleSetKeywordBid = (options) => (options.client ?? client).patch({
1922
+ security: [{
1923
+ key: "secretKey",
1924
+ scheme: "bearer",
1925
+ type: "http"
1926
+ }],
1927
+ url: "/google/{connection_id}/keywords/{id}/bid",
1928
+ ...options,
1929
+ headers: {
1930
+ "Content-Type": "application/json",
1931
+ ...options.headers
1932
+ }
1933
+ });
1934
+ var googlePauseKeyword = (options) => (options.client ?? client).post({
1935
+ security: [{
1936
+ key: "secretKey",
1937
+ scheme: "bearer",
1938
+ type: "http"
1939
+ }, {
1940
+ key: "frontendToken",
1941
+ scheme: "bearer",
1942
+ type: "http"
1943
+ }],
1944
+ url: "/google/{connection_id}/keywords/{id}/pause",
1945
+ ...options,
1946
+ headers: {
1947
+ "Content-Type": "application/json",
1948
+ ...options.headers
1949
+ }
1950
+ });
1951
+ var googleEnableKeyword = (options) => (options.client ?? client).post({
1952
+ security: [{
1953
+ key: "secretKey",
1954
+ scheme: "bearer",
1955
+ type: "http"
1956
+ }, {
1957
+ key: "frontendToken",
1958
+ scheme: "bearer",
1959
+ type: "http"
1960
+ }],
1961
+ url: "/google/{connection_id}/keywords/{id}/enable",
1962
+ ...options,
1963
+ headers: {
1964
+ "Content-Type": "application/json",
1965
+ ...options.headers
1966
+ }
1967
+ });
1968
+ var googleListConversionActions = (options) => (options.client ?? client).get({
1969
+ security: [{
1970
+ key: "secretKey",
1971
+ scheme: "bearer",
1972
+ type: "http"
1973
+ }, {
1974
+ key: "frontendToken",
1975
+ scheme: "bearer",
1976
+ type: "http"
1977
+ }],
1978
+ url: "/google/{connection_id}/conversion-actions",
1979
+ ...options
1980
+ });
1981
+ var googleCreateConversionAction = (options) => (options.client ?? client).post({
1982
+ security: [{
1983
+ key: "secretKey",
1984
+ scheme: "bearer",
1985
+ type: "http"
1986
+ }, {
1987
+ key: "frontendToken",
1988
+ scheme: "bearer",
1989
+ type: "http"
1990
+ }],
1991
+ url: "/google/{connection_id}/conversion-actions",
1992
+ ...options,
1993
+ headers: {
1994
+ "Content-Type": "application/json",
1995
+ ...options.headers
1996
+ }
1997
+ });
1998
+ var googleGetConversionAction = (options) => (options.client ?? client).get({
1999
+ security: [{
2000
+ key: "secretKey",
2001
+ scheme: "bearer",
2002
+ type: "http"
2003
+ }, {
2004
+ key: "frontendToken",
2005
+ scheme: "bearer",
2006
+ type: "http"
2007
+ }],
2008
+ url: "/google/{connection_id}/conversion-actions/{id}",
2009
+ ...options
2010
+ });
2011
+ var googleListConversionGoals = (options) => (options.client ?? client).get({
2012
+ security: [{
2013
+ key: "secretKey",
2014
+ scheme: "bearer",
2015
+ type: "http"
2016
+ }, {
2017
+ key: "frontendToken",
2018
+ scheme: "bearer",
2019
+ type: "http"
2020
+ }],
2021
+ url: "/google/{connection_id}/conversion-goals",
2022
+ ...options
2023
+ });
2024
+ var googleSetConversionGoal = (options) => (options.client ?? client).post({
2025
+ security: [{
2026
+ key: "secretKey",
2027
+ scheme: "bearer",
2028
+ type: "http"
2029
+ }, {
2030
+ key: "frontendToken",
2031
+ scheme: "bearer",
2032
+ type: "http"
2033
+ }],
2034
+ url: "/google/{connection_id}/conversion-goals",
2035
+ ...options,
2036
+ headers: {
2037
+ "Content-Type": "application/json",
2038
+ ...options.headers
2039
+ }
2040
+ });
2041
+ var googleUploadConversions = (options) => (options.client ?? client).post({
2042
+ security: [{
2043
+ key: "secretKey",
2044
+ scheme: "bearer",
2045
+ type: "http"
2046
+ }, {
2047
+ key: "frontendToken",
2048
+ scheme: "bearer",
2049
+ type: "http"
2050
+ }],
2051
+ url: "/google/{connection_id}/conversion-uploads",
2052
+ ...options,
2053
+ headers: {
2054
+ "Content-Type": "application/json",
2055
+ ...options.headers
2056
+ }
2057
+ });
2058
+ var googleUploadImageAsset = (options) => (options.client ?? client).post({
2059
+ security: [{
2060
+ key: "secretKey",
2061
+ scheme: "bearer",
2062
+ type: "http"
2063
+ }, {
2064
+ key: "frontendToken",
2065
+ scheme: "bearer",
2066
+ type: "http"
2067
+ }],
2068
+ url: "/google/{connection_id}/assets/images",
2069
+ ...options,
2070
+ headers: {
2071
+ "Content-Type": "application/json",
2072
+ ...options.headers
2073
+ }
2074
+ });
2075
+ var tiktokCreatorInfo = (options) => (options.client ?? client).get({
2076
+ security: [{
2077
+ key: "secretKey",
2078
+ scheme: "bearer",
2079
+ type: "http"
2080
+ }, {
2081
+ key: "frontendToken",
2082
+ scheme: "bearer",
2083
+ type: "http"
2084
+ }],
2085
+ url: "/connections/{id}/tiktok/creator-info",
2086
+ ...options
2087
+ });
2088
+ var logsList = (options) => (options?.client ?? client).get({
2089
+ security: [{
2090
+ key: "secretKey",
2091
+ scheme: "bearer",
2092
+ type: "http"
2093
+ }],
2094
+ url: "/logs",
2095
+ ...options
2096
+ });
2097
+ var logsGet = (options) => (options.client ?? client).get({
2098
+ security: [{
2099
+ key: "secretKey",
2100
+ scheme: "bearer",
2101
+ type: "http"
2102
+ }],
2103
+ url: "/logs/{id}",
2104
+ ...options
2105
+ });
2106
+ var webhooksListEndpoints = (options) => (options?.client ?? client).get({
2107
+ security: [{
2108
+ key: "secretKey",
2109
+ scheme: "bearer",
2110
+ type: "http"
2111
+ }],
2112
+ url: "/webhooks/endpoints",
2113
+ ...options
2114
+ });
2115
+ var webhooksCreateEndpoint = (options) => (options.client ?? client).post({
2116
+ security: [{
2117
+ key: "secretKey",
2118
+ scheme: "bearer",
2119
+ type: "http"
2120
+ }],
2121
+ url: "/webhooks/endpoints",
2122
+ ...options,
2123
+ headers: {
2124
+ "Content-Type": "application/json",
2125
+ ...options.headers
2126
+ }
2127
+ });
2128
+ var webhooksDeleteEndpoint = (options) => (options.client ?? client).delete({
2129
+ security: [{
2130
+ key: "secretKey",
2131
+ scheme: "bearer",
2132
+ type: "http"
2133
+ }],
2134
+ url: "/webhooks/endpoints/{id}",
2135
+ ...options
2136
+ });
2137
+ var webhooksGetEndpoint = (options) => (options.client ?? client).get({
2138
+ security: [{
2139
+ key: "secretKey",
2140
+ scheme: "bearer",
2141
+ type: "http"
2142
+ }],
2143
+ url: "/webhooks/endpoints/{id}",
2144
+ ...options
2145
+ });
2146
+ var webhooksUpdateEndpoint = (options) => (options.client ?? client).patch({
2147
+ security: [{
2148
+ key: "secretKey",
2149
+ scheme: "bearer",
2150
+ type: "http"
2151
+ }],
2152
+ url: "/webhooks/endpoints/{id}",
2153
+ ...options,
2154
+ headers: {
2155
+ "Content-Type": "application/json",
2156
+ ...options.headers
2157
+ }
2158
+ });
2159
+ var webhooksCreatePortal = (options) => (options?.client ?? client).post({
2160
+ security: [{
2161
+ key: "secretKey",
2162
+ scheme: "bearer",
2163
+ type: "http"
2164
+ }],
2165
+ url: "/webhooks/portal",
2166
+ ...options
2167
+ });
2168
+ var webhooksListEventTypes = (options) => (options?.client ?? client).get({
2169
+ security: [{
2170
+ key: "secretKey",
2171
+ scheme: "bearer",
2172
+ type: "http"
2173
+ }],
2174
+ url: "/webhooks/event-types",
2175
+ ...options
2176
+ });
2177
+ var webhooksPing = (options) => (options.client ?? client).post({
2178
+ security: [{
2179
+ key: "secretKey",
2180
+ scheme: "bearer",
2181
+ type: "http"
2182
+ }],
2183
+ url: "/webhooks/ping",
2184
+ ...options,
2185
+ headers: {
2186
+ "Content-Type": "application/json",
2187
+ ...options.headers
2188
+ }
2189
+ });
2190
+ var tokensMint = (options) => (options.client ?? client).post({
2191
+ security: [{
2192
+ key: "secretKey",
2193
+ scheme: "bearer",
2194
+ type: "http"
2195
+ }],
2196
+ url: "/tokens",
2197
+ ...options,
2198
+ headers: {
2199
+ "Content-Type": "application/json",
2200
+ ...options.headers
2201
+ }
2202
+ });
2203
+
2204
+ // src/client/@tanstack/react-query.gen.ts
2205
+ var createQueryKey = (id, options, infinite, tags) => {
2206
+ const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
2207
+ if (infinite) {
2208
+ params._infinite = infinite;
2209
+ }
2210
+ if (options?.body) {
2211
+ params.body = options.body;
2212
+ }
2213
+ if (options?.headers) {
2214
+ params.headers = options.headers;
2215
+ }
2216
+ if (options?.path) {
2217
+ params.path = options.path;
2218
+ }
2219
+ if (options?.query) {
2220
+ params.query = options.query;
2221
+ }
2222
+ return [params];
2223
+ };
2224
+ var profilesListQueryKey = (options) => createQueryKey("profilesList", options);
2225
+ var profilesListOptions = (options) => queryOptions({
2226
+ queryFn: async ({ queryKey, signal }) => {
2227
+ const { data } = await profilesList({
2228
+ ...options,
2229
+ ...queryKey[0],
2230
+ signal,
2231
+ throwOnError: true
2232
+ });
2233
+ return data;
2234
+ },
2235
+ queryKey: profilesListQueryKey(options)
2236
+ });
2237
+ var createInfiniteParams = (queryKey, page) => {
2238
+ const params = { ...queryKey[0] };
2239
+ if (page.body) {
2240
+ params.body = {
2241
+ ...queryKey[0].body,
2242
+ ...page.body
2243
+ };
2244
+ }
2245
+ if (page.headers) {
2246
+ params.headers = {
2247
+ ...queryKey[0].headers,
2248
+ ...page.headers
2249
+ };
2250
+ }
2251
+ if (page.path) {
2252
+ params.path = {
2253
+ ...queryKey[0].path,
2254
+ ...page.path
2255
+ };
2256
+ }
2257
+ if (page.query) {
2258
+ params.query = {
2259
+ ...queryKey[0].query,
2260
+ ...page.query
2261
+ };
2262
+ }
2263
+ return params;
2264
+ };
2265
+ var profilesListInfiniteQueryKey = (options) => createQueryKey("profilesList", options, true);
2266
+ var profilesListInfiniteOptions = (options) => infiniteQueryOptions(
2267
+ // @ts-ignore
2268
+ {
2269
+ queryFn: async ({ pageParam, queryKey, signal }) => {
2270
+ const page = typeof pageParam === "object" ? pageParam : {
2271
+ query: {
2272
+ offset: pageParam
2273
+ }
2274
+ };
2275
+ const params = createInfiniteParams(queryKey, page);
2276
+ const { data } = await profilesList({
2277
+ ...options,
2278
+ ...params,
2279
+ signal,
2280
+ throwOnError: true
2281
+ });
2282
+ return data;
2283
+ },
2284
+ queryKey: profilesListInfiniteQueryKey(options)
2285
+ }
2286
+ );
2287
+ var profilesCreateMutation = (options) => {
2288
+ const mutationOptions = {
2289
+ mutationFn: async (fnOptions) => {
2290
+ const { data } = await profilesCreate({
2291
+ ...options,
2292
+ ...fnOptions,
2293
+ throwOnError: true
2294
+ });
2295
+ return data;
2296
+ }
2297
+ };
2298
+ return mutationOptions;
2299
+ };
2300
+ var profilesDeleteMutation = (options) => {
2301
+ const mutationOptions = {
2302
+ mutationFn: async (fnOptions) => {
2303
+ const { data } = await profilesDelete({
2304
+ ...options,
2305
+ ...fnOptions,
2306
+ throwOnError: true
2307
+ });
2308
+ return data;
2309
+ }
2310
+ };
2311
+ return mutationOptions;
2312
+ };
2313
+ var profilesGetQueryKey = (options) => createQueryKey("profilesGet", options);
2314
+ var profilesGetOptions = (options) => queryOptions({
2315
+ queryFn: async ({ queryKey, signal }) => {
2316
+ const { data } = await profilesGet({
2317
+ ...options,
2318
+ ...queryKey[0],
2319
+ signal,
2320
+ throwOnError: true
2321
+ });
2322
+ return data;
2323
+ },
2324
+ queryKey: profilesGetQueryKey(options)
2325
+ });
2326
+ var profilesUpdateMutation = (options) => {
2327
+ const mutationOptions = {
2328
+ mutationFn: async (fnOptions) => {
2329
+ const { data } = await profilesUpdate({
2330
+ ...options,
2331
+ ...fnOptions,
2332
+ throwOnError: true
2333
+ });
2334
+ return data;
2335
+ }
2336
+ };
2337
+ return mutationOptions;
2338
+ };
2339
+ var connectionsListByProfileQueryKey = (options) => createQueryKey("connectionsListByProfile", options);
2340
+ var connectionsListByProfileOptions = (options) => queryOptions({
2341
+ queryFn: async ({ queryKey, signal }) => {
2342
+ const { data } = await connectionsListByProfile({
2343
+ ...options,
2344
+ ...queryKey[0],
2345
+ signal,
2346
+ throwOnError: true
2347
+ });
2348
+ return data;
2349
+ },
2350
+ queryKey: connectionsListByProfileQueryKey(options)
2351
+ });
2352
+ var connectionsListByProfileInfiniteQueryKey = (options) => createQueryKey("connectionsListByProfile", options, true);
2353
+ var connectionsListByProfileInfiniteOptions = (options) => infiniteQueryOptions(
2354
+ // @ts-ignore
2355
+ {
2356
+ queryFn: async ({ pageParam, queryKey, signal }) => {
2357
+ const page = typeof pageParam === "object" ? pageParam : {
2358
+ query: {
2359
+ offset: pageParam
2360
+ }
2361
+ };
2362
+ const params = createInfiniteParams(queryKey, page);
2363
+ const { data } = await connectionsListByProfile({
2364
+ ...options,
2365
+ ...params,
2366
+ signal,
2367
+ throwOnError: true
2368
+ });
2369
+ return data;
2370
+ },
2371
+ queryKey: connectionsListByProfileInfiniteQueryKey(options)
2372
+ }
2373
+ );
2374
+ var connectionsDeleteMutation = (options) => {
2375
+ const mutationOptions = {
2376
+ mutationFn: async (fnOptions) => {
2377
+ const { data } = await connectionsDelete({
2378
+ ...options,
2379
+ ...fnOptions,
2380
+ throwOnError: true
2381
+ });
2382
+ return data;
2383
+ }
2384
+ };
2385
+ return mutationOptions;
2386
+ };
2387
+ var connectionsGetQueryKey = (options) => createQueryKey("connectionsGet", options);
2388
+ var connectionsGetOptions = (options) => queryOptions({
2389
+ queryFn: async ({ queryKey, signal }) => {
2390
+ const { data } = await connectionsGet({
2391
+ ...options,
2392
+ ...queryKey[0],
2393
+ signal,
2394
+ throwOnError: true
2395
+ });
2396
+ return data;
2397
+ },
2398
+ queryKey: connectionsGetQueryKey(options)
2399
+ });
2400
+ var connectionsSelectMutation = (options) => {
2401
+ const mutationOptions = {
2402
+ mutationFn: async (fnOptions) => {
2403
+ const { data } = await connectionsSelect({
2404
+ ...options,
2405
+ ...fnOptions,
2406
+ throwOnError: true
2407
+ });
2408
+ return data;
2409
+ }
2410
+ };
2411
+ return mutationOptions;
2412
+ };
2413
+ var connectionsListAccountsQueryKey = (options) => createQueryKey("connectionsListAccounts", options);
2414
+ var connectionsListAccountsOptions = (options) => queryOptions({
2415
+ queryFn: async ({ queryKey, signal }) => {
2416
+ const { data } = await connectionsListAccounts({
2417
+ ...options,
2418
+ ...queryKey[0],
2419
+ signal,
2420
+ throwOnError: true
2421
+ });
2422
+ return data;
2423
+ },
2424
+ queryKey: connectionsListAccountsQueryKey(options)
2425
+ });
2426
+ var connectionsConnectMutation = (options) => {
2427
+ const mutationOptions = {
2428
+ mutationFn: async (fnOptions) => {
2429
+ const { data } = await connectionsConnect({
2430
+ ...options,
2431
+ ...fnOptions,
2432
+ throwOnError: true
2433
+ });
2434
+ return data;
2435
+ }
2436
+ };
2437
+ return mutationOptions;
2438
+ };
2439
+ var mediaListQueryKey = (options) => createQueryKey("mediaList", options);
2440
+ var mediaListOptions = (options) => queryOptions({
2441
+ queryFn: async ({ queryKey, signal }) => {
2442
+ const { data } = await mediaList({
2443
+ ...options,
2444
+ ...queryKey[0],
2445
+ signal,
2446
+ throwOnError: true
2447
+ });
2448
+ return data;
2449
+ },
2450
+ queryKey: mediaListQueryKey(options)
2451
+ });
2452
+ var mediaListInfiniteQueryKey = (options) => createQueryKey("mediaList", options, true);
2453
+ var mediaListInfiniteOptions = (options) => infiniteQueryOptions(
2454
+ // @ts-ignore
2455
+ {
2456
+ queryFn: async ({ pageParam, queryKey, signal }) => {
2457
+ const page = typeof pageParam === "object" ? pageParam : {
2458
+ query: {
2459
+ offset: pageParam
2460
+ }
2461
+ };
2462
+ const params = createInfiniteParams(queryKey, page);
2463
+ const { data } = await mediaList({
2464
+ ...options,
2465
+ ...params,
2466
+ signal,
2467
+ throwOnError: true
2468
+ });
2469
+ return data;
2470
+ },
2471
+ queryKey: mediaListInfiniteQueryKey(options)
2472
+ }
2473
+ );
2474
+ var mediaCreateMutation = (options) => {
2475
+ const mutationOptions = {
2476
+ mutationFn: async (fnOptions) => {
2477
+ const { data } = await mediaCreate({
2478
+ ...options,
2479
+ ...fnOptions,
2480
+ throwOnError: true
2481
+ });
2482
+ return data;
2483
+ }
2484
+ };
2485
+ return mutationOptions;
2486
+ };
2487
+ var mediaDeleteMutation = (options) => {
2488
+ const mutationOptions = {
2489
+ mutationFn: async (fnOptions) => {
2490
+ const { data } = await mediaDelete({
2491
+ ...options,
2492
+ ...fnOptions,
2493
+ throwOnError: true
2494
+ });
2495
+ return data;
2496
+ }
2497
+ };
2498
+ return mutationOptions;
2499
+ };
2500
+ var mediaGetQueryKey = (options) => createQueryKey("mediaGet", options);
2501
+ var mediaGetOptions = (options) => queryOptions({
2502
+ queryFn: async ({ queryKey, signal }) => {
2503
+ const { data } = await mediaGet({
2504
+ ...options,
2505
+ ...queryKey[0],
2506
+ signal,
2507
+ throwOnError: true
2508
+ });
2509
+ return data;
2510
+ },
2511
+ queryKey: mediaGetQueryKey(options)
2512
+ });
2513
+ var mediaUpdateMutation = (options) => {
2514
+ const mutationOptions = {
2515
+ mutationFn: async (fnOptions) => {
2516
+ const { data } = await mediaUpdate({
2517
+ ...options,
2518
+ ...fnOptions,
2519
+ throwOnError: true
2520
+ });
2521
+ return data;
2522
+ }
2523
+ };
2524
+ return mutationOptions;
2525
+ };
2526
+ var mediaSignPartMutation = (options) => {
2527
+ const mutationOptions = {
2528
+ mutationFn: async (fnOptions) => {
2529
+ const { data } = await mediaSignPart({
2530
+ ...options,
2531
+ ...fnOptions,
2532
+ throwOnError: true
2533
+ });
2534
+ return data;
2535
+ }
2536
+ };
2537
+ return mutationOptions;
2538
+ };
2539
+ var mediaListPartsQueryKey = (options) => createQueryKey("mediaListParts", options);
2540
+ var mediaListPartsOptions = (options) => queryOptions({
2541
+ queryFn: async ({ queryKey, signal }) => {
2542
+ const { data } = await mediaListParts({
2543
+ ...options,
2544
+ ...queryKey[0],
2545
+ signal,
2546
+ throwOnError: true
2547
+ });
2548
+ return data;
2549
+ },
2550
+ queryKey: mediaListPartsQueryKey(options)
2551
+ });
2552
+ var mediaCompleteMutation = (options) => {
2553
+ const mutationOptions = {
2554
+ mutationFn: async (fnOptions) => {
2555
+ const { data } = await mediaComplete({
2556
+ ...options,
2557
+ ...fnOptions,
2558
+ throwOnError: true
2559
+ });
2560
+ return data;
2561
+ }
2562
+ };
2563
+ return mutationOptions;
2564
+ };
2565
+ var mediaAbortMutation = (options) => {
2566
+ const mutationOptions = {
2567
+ mutationFn: async (fnOptions) => {
2568
+ const { data } = await mediaAbort({
2569
+ ...options,
2570
+ ...fnOptions,
2571
+ throwOnError: true
2572
+ });
2573
+ return data;
2574
+ }
2575
+ };
2576
+ return mutationOptions;
2577
+ };
2578
+ var postsListQueryKey = (options) => createQueryKey("postsList", options);
2579
+ var postsListOptions = (options) => queryOptions({
2580
+ queryFn: async ({ queryKey, signal }) => {
2581
+ const { data } = await postsList({
2582
+ ...options,
2583
+ ...queryKey[0],
2584
+ signal,
2585
+ throwOnError: true
2586
+ });
2587
+ return data;
2588
+ },
2589
+ queryKey: postsListQueryKey(options)
2590
+ });
2591
+ var postsListInfiniteQueryKey = (options) => createQueryKey("postsList", options, true);
2592
+ var postsListInfiniteOptions = (options) => infiniteQueryOptions(
2593
+ // @ts-ignore
2594
+ {
2595
+ queryFn: async ({ pageParam, queryKey, signal }) => {
2596
+ const page = typeof pageParam === "object" ? pageParam : {
2597
+ query: {
2598
+ offset: pageParam
2599
+ }
2600
+ };
2601
+ const params = createInfiniteParams(queryKey, page);
2602
+ const { data } = await postsList({
2603
+ ...options,
2604
+ ...params,
2605
+ signal,
2606
+ throwOnError: true
2607
+ });
2608
+ return data;
2609
+ },
2610
+ queryKey: postsListInfiniteQueryKey(options)
2611
+ }
2612
+ );
2613
+ var postsCreateMutation = (options) => {
2614
+ const mutationOptions = {
2615
+ mutationFn: async (fnOptions) => {
2616
+ const { data } = await postsCreate({
2617
+ ...options,
2618
+ ...fnOptions,
2619
+ throwOnError: true
2620
+ });
2621
+ return data;
2622
+ }
2623
+ };
2624
+ return mutationOptions;
2625
+ };
2626
+ var postsDeleteMutation = (options) => {
2627
+ const mutationOptions = {
2628
+ mutationFn: async (fnOptions) => {
2629
+ const { data } = await postsDelete({
2630
+ ...options,
2631
+ ...fnOptions,
2632
+ throwOnError: true
2633
+ });
2634
+ return data;
2635
+ }
2636
+ };
2637
+ return mutationOptions;
2638
+ };
2639
+ var postsGetQueryKey = (options) => createQueryKey("postsGet", options);
2640
+ var postsGetOptions = (options) => queryOptions({
2641
+ queryFn: async ({ queryKey, signal }) => {
2642
+ const { data } = await postsGet({
2643
+ ...options,
2644
+ ...queryKey[0],
2645
+ signal,
2646
+ throwOnError: true
2647
+ });
2648
+ return data;
2649
+ },
2650
+ queryKey: postsGetQueryKey(options)
2651
+ });
2652
+ var postsUpdateMutation = (options) => {
2653
+ const mutationOptions = {
2654
+ mutationFn: async (fnOptions) => {
2655
+ const { data } = await postsUpdate({
2656
+ ...options,
2657
+ ...fnOptions,
2658
+ throwOnError: true
2659
+ });
2660
+ return data;
2661
+ }
2662
+ };
2663
+ return mutationOptions;
2664
+ };
2665
+ var postsValidateMutation = (options) => {
2666
+ const mutationOptions = {
2667
+ mutationFn: async (fnOptions) => {
2668
+ const { data } = await postsValidate({
2669
+ ...options,
2670
+ ...fnOptions,
2671
+ throwOnError: true
2672
+ });
2673
+ return data;
2674
+ }
2675
+ };
2676
+ return mutationOptions;
2677
+ };
2678
+ var metaAccountQueryKey = (options) => createQueryKey("metaAccount", options);
2679
+ var metaAccountOptions = (options) => queryOptions({
2680
+ queryFn: async ({ queryKey, signal }) => {
2681
+ const { data } = await metaAccount({
2682
+ ...options,
2683
+ ...queryKey[0],
2684
+ signal,
2685
+ throwOnError: true
2686
+ });
2687
+ return data;
2688
+ },
2689
+ queryKey: metaAccountQueryKey(options)
2690
+ });
2691
+ var metaInsightsQueryKey = (options) => createQueryKey("metaInsights", options);
2692
+ var metaInsightsOptions = (options) => queryOptions({
2693
+ queryFn: async ({ queryKey, signal }) => {
2694
+ const { data } = await metaInsights({
2695
+ ...options,
2696
+ ...queryKey[0],
2697
+ signal,
2698
+ throwOnError: true
2699
+ });
2700
+ return data;
2701
+ },
2702
+ queryKey: metaInsightsQueryKey(options)
2703
+ });
2704
+ var metaCampaignsQueryKey = (options) => createQueryKey("metaCampaigns", options);
2705
+ var metaCampaignsOptions = (options) => queryOptions({
2706
+ queryFn: async ({ queryKey, signal }) => {
2707
+ const { data } = await metaCampaigns({
2708
+ ...options,
2709
+ ...queryKey[0],
2710
+ signal,
2711
+ throwOnError: true
2712
+ });
2713
+ return data;
2714
+ },
2715
+ queryKey: metaCampaignsQueryKey(options)
2716
+ });
2717
+ var metaCampaignQueryKey = (options) => createQueryKey("metaCampaign", options);
2718
+ var metaCampaignOptions = (options) => queryOptions({
2719
+ queryFn: async ({ queryKey, signal }) => {
2720
+ const { data } = await metaCampaign({
2721
+ ...options,
2722
+ ...queryKey[0],
2723
+ signal,
2724
+ throwOnError: true
2725
+ });
2726
+ return data;
2727
+ },
2728
+ queryKey: metaCampaignQueryKey(options)
2729
+ });
2730
+ var metaAdsetsQueryKey = (options) => createQueryKey("metaAdsets", options);
2731
+ var metaAdsetsOptions = (options) => queryOptions({
2732
+ queryFn: async ({ queryKey, signal }) => {
2733
+ const { data } = await metaAdsets({
2734
+ ...options,
2735
+ ...queryKey[0],
2736
+ signal,
2737
+ throwOnError: true
2738
+ });
2739
+ return data;
2740
+ },
2741
+ queryKey: metaAdsetsQueryKey(options)
2742
+ });
2743
+ var metaAdsetQueryKey = (options) => createQueryKey("metaAdset", options);
2744
+ var metaAdsetOptions = (options) => queryOptions({
2745
+ queryFn: async ({ queryKey, signal }) => {
2746
+ const { data } = await metaAdset({
2747
+ ...options,
2748
+ ...queryKey[0],
2749
+ signal,
2750
+ throwOnError: true
2751
+ });
2752
+ return data;
2753
+ },
2754
+ queryKey: metaAdsetQueryKey(options)
2755
+ });
2756
+ var metaAdsQueryKey = (options) => createQueryKey("metaAds", options);
2757
+ var metaAdsOptions = (options) => queryOptions({
2758
+ queryFn: async ({ queryKey, signal }) => {
2759
+ const { data } = await metaAds({
2760
+ ...options,
2761
+ ...queryKey[0],
2762
+ signal,
2763
+ throwOnError: true
2764
+ });
2765
+ return data;
2766
+ },
2767
+ queryKey: metaAdsQueryKey(options)
2768
+ });
2769
+ var metaAdQueryKey = (options) => createQueryKey("metaAd", options);
2770
+ var metaAdOptions = (options) => queryOptions({
2771
+ queryFn: async ({ queryKey, signal }) => {
2772
+ const { data } = await metaAd({
2773
+ ...options,
2774
+ ...queryKey[0],
2775
+ signal,
2776
+ throwOnError: true
2777
+ });
2778
+ return data;
2779
+ },
2780
+ queryKey: metaAdQueryKey(options)
2781
+ });
2782
+ var googleGetAccountQueryKey = (options) => createQueryKey("googleGetAccount", options);
2783
+ var googleGetAccountOptions = (options) => queryOptions({
2784
+ queryFn: async ({ queryKey, signal }) => {
2785
+ const { data } = await googleGetAccount({
2786
+ ...options,
2787
+ ...queryKey[0],
2788
+ signal,
2789
+ throwOnError: true
2790
+ });
2791
+ return data;
2792
+ },
2793
+ queryKey: googleGetAccountQueryKey(options)
2794
+ });
2795
+ var googleGetInsightsMutation = (options) => {
2796
+ const mutationOptions = {
2797
+ mutationFn: async (fnOptions) => {
2798
+ const { data } = await googleGetInsights({
2799
+ ...options,
2800
+ ...fnOptions,
2801
+ throwOnError: true
2802
+ });
2803
+ return data;
2804
+ }
2805
+ };
2806
+ return mutationOptions;
2807
+ };
2808
+ var googleRunGaqlMutation = (options) => {
2809
+ const mutationOptions = {
2810
+ mutationFn: async (fnOptions) => {
2811
+ const { data } = await googleRunGaql({
2812
+ ...options,
2813
+ ...fnOptions,
2814
+ throwOnError: true
2815
+ });
2816
+ return data;
2817
+ }
2818
+ };
2819
+ return mutationOptions;
2820
+ };
2821
+ var googleCreateBudgetMutation = (options) => {
2822
+ const mutationOptions = {
2823
+ mutationFn: async (fnOptions) => {
2824
+ const { data } = await googleCreateBudget({
2825
+ ...options,
2826
+ ...fnOptions,
2827
+ throwOnError: true
2828
+ });
2829
+ return data;
2830
+ }
2831
+ };
2832
+ return mutationOptions;
2833
+ };
2834
+ var googleDeleteBudgetMutation = (options) => {
2835
+ const mutationOptions = {
2836
+ mutationFn: async (fnOptions) => {
2837
+ const { data } = await googleDeleteBudget({
2838
+ ...options,
2839
+ ...fnOptions,
2840
+ throwOnError: true
2841
+ });
2842
+ return data;
2843
+ }
2844
+ };
2845
+ return mutationOptions;
2846
+ };
2847
+ var googleEditBudgetMutation = (options) => {
2848
+ const mutationOptions = {
2849
+ mutationFn: async (fnOptions) => {
2850
+ const { data } = await googleEditBudget({
2851
+ ...options,
2852
+ ...fnOptions,
2853
+ throwOnError: true
2854
+ });
2855
+ return data;
2856
+ }
2857
+ };
2858
+ return mutationOptions;
2859
+ };
2860
+ var googleListCampaignsQueryKey = (options) => createQueryKey("googleListCampaigns", options);
2861
+ var googleListCampaignsOptions = (options) => queryOptions({
2862
+ queryFn: async ({ queryKey, signal }) => {
2863
+ const { data } = await googleListCampaigns({
2864
+ ...options,
2865
+ ...queryKey[0],
2866
+ signal,
2867
+ throwOnError: true
2868
+ });
2869
+ return data;
2870
+ },
2871
+ queryKey: googleListCampaignsQueryKey(options)
2872
+ });
2873
+ var googleCreateCampaignMutation = (options) => {
2874
+ const mutationOptions = {
2875
+ mutationFn: async (fnOptions) => {
2876
+ const { data } = await googleCreateCampaign({
2877
+ ...options,
2878
+ ...fnOptions,
2879
+ throwOnError: true
2880
+ });
2881
+ return data;
2882
+ }
2883
+ };
2884
+ return mutationOptions;
2885
+ };
2886
+ var googleDeleteCampaignMutation = (options) => {
2887
+ const mutationOptions = {
2888
+ mutationFn: async (fnOptions) => {
2889
+ const { data } = await googleDeleteCampaign({
2890
+ ...options,
2891
+ ...fnOptions,
2892
+ throwOnError: true
2893
+ });
2894
+ return data;
2895
+ }
2896
+ };
2897
+ return mutationOptions;
2898
+ };
2899
+ var googleGetCampaignQueryKey = (options) => createQueryKey("googleGetCampaign", options);
2900
+ var googleGetCampaignOptions = (options) => queryOptions({
2901
+ queryFn: async ({ queryKey, signal }) => {
2902
+ const { data } = await googleGetCampaign({
2903
+ ...options,
2904
+ ...queryKey[0],
2905
+ signal,
2906
+ throwOnError: true
2907
+ });
2908
+ return data;
2909
+ },
2910
+ queryKey: googleGetCampaignQueryKey(options)
2911
+ });
2912
+ var googleEditCampaignMutation = (options) => {
2913
+ const mutationOptions = {
2914
+ mutationFn: async (fnOptions) => {
2915
+ const { data } = await googleEditCampaign({
2916
+ ...options,
2917
+ ...fnOptions,
2918
+ throwOnError: true
2919
+ });
2920
+ return data;
2921
+ }
2922
+ };
2923
+ return mutationOptions;
2924
+ };
2925
+ var googlePauseCampaignMutation = (options) => {
2926
+ const mutationOptions = {
2927
+ mutationFn: async (fnOptions) => {
2928
+ const { data } = await googlePauseCampaign({
2929
+ ...options,
2930
+ ...fnOptions,
2931
+ throwOnError: true
2932
+ });
2933
+ return data;
2934
+ }
2935
+ };
2936
+ return mutationOptions;
2937
+ };
2938
+ var googleEnableCampaignMutation = (options) => {
2939
+ const mutationOptions = {
2940
+ mutationFn: async (fnOptions) => {
2941
+ const { data } = await googleEnableCampaign({
2942
+ ...options,
2943
+ ...fnOptions,
2944
+ throwOnError: true
2945
+ });
2946
+ return data;
2947
+ }
2948
+ };
2949
+ return mutationOptions;
2950
+ };
2951
+ var googleSearchGeoTargetsQueryKey = (options) => createQueryKey("googleSearchGeoTargets", options);
2952
+ var googleSearchGeoTargetsOptions = (options) => queryOptions({
2953
+ queryFn: async ({ queryKey, signal }) => {
2954
+ const { data } = await googleSearchGeoTargets({
2955
+ ...options,
2956
+ ...queryKey[0],
2957
+ signal,
2958
+ throwOnError: true
2959
+ });
2960
+ return data;
2961
+ },
2962
+ queryKey: googleSearchGeoTargetsQueryKey(options)
2963
+ });
2964
+ var googleListCampaignCriteriaQueryKey = (options) => createQueryKey("googleListCampaignCriteria", options);
2965
+ var googleListCampaignCriteriaOptions = (options) => queryOptions({
2966
+ queryFn: async ({ queryKey, signal }) => {
2967
+ const { data } = await googleListCampaignCriteria({
2968
+ ...options,
2969
+ ...queryKey[0],
2970
+ signal,
2971
+ throwOnError: true
2972
+ });
2973
+ return data;
2974
+ },
2975
+ queryKey: googleListCampaignCriteriaQueryKey(options)
2976
+ });
2977
+ var googleCreateCampaignCriterionMutation = (options) => {
2978
+ const mutationOptions = {
2979
+ mutationFn: async (fnOptions) => {
2980
+ const { data } = await googleCreateCampaignCriterion({
2981
+ ...options,
2982
+ ...fnOptions,
2983
+ throwOnError: true
2984
+ });
2985
+ return data;
2986
+ }
2987
+ };
2988
+ return mutationOptions;
2989
+ };
2990
+ var googleDeleteCampaignCriterionMutation = (options) => {
2991
+ const mutationOptions = {
2992
+ mutationFn: async (fnOptions) => {
2993
+ const { data } = await googleDeleteCampaignCriterion({
2994
+ ...options,
2995
+ ...fnOptions,
2996
+ throwOnError: true
2997
+ });
2998
+ return data;
2999
+ }
3000
+ };
3001
+ return mutationOptions;
3002
+ };
3003
+ var googleSetCampaignGeoSettingsMutation = (options) => {
3004
+ const mutationOptions = {
3005
+ mutationFn: async (fnOptions) => {
3006
+ const { data } = await googleSetCampaignGeoSettings({
3007
+ ...options,
3008
+ ...fnOptions,
3009
+ throwOnError: true
3010
+ });
3011
+ return data;
3012
+ }
3013
+ };
3014
+ return mutationOptions;
3015
+ };
3016
+ var googleListAdGroupsQueryKey = (options) => createQueryKey("googleListAdGroups", options);
3017
+ var googleListAdGroupsOptions = (options) => queryOptions({
3018
+ queryFn: async ({ queryKey, signal }) => {
3019
+ const { data } = await googleListAdGroups({
3020
+ ...options,
3021
+ ...queryKey[0],
3022
+ signal,
3023
+ throwOnError: true
3024
+ });
3025
+ return data;
3026
+ },
3027
+ queryKey: googleListAdGroupsQueryKey(options)
3028
+ });
3029
+ var googleCreateAdGroupMutation = (options) => {
3030
+ const mutationOptions = {
3031
+ mutationFn: async (fnOptions) => {
3032
+ const { data } = await googleCreateAdGroup({
3033
+ ...options,
3034
+ ...fnOptions,
3035
+ throwOnError: true
3036
+ });
3037
+ return data;
3038
+ }
3039
+ };
3040
+ return mutationOptions;
3041
+ };
3042
+ var googleDeleteAdGroupMutation = (options) => {
3043
+ const mutationOptions = {
3044
+ mutationFn: async (fnOptions) => {
3045
+ const { data } = await googleDeleteAdGroup({
3046
+ ...options,
3047
+ ...fnOptions,
3048
+ throwOnError: true
3049
+ });
3050
+ return data;
3051
+ }
3052
+ };
3053
+ return mutationOptions;
3054
+ };
3055
+ var googleGetAdGroupQueryKey = (options) => createQueryKey("googleGetAdGroup", options);
3056
+ var googleGetAdGroupOptions = (options) => queryOptions({
3057
+ queryFn: async ({ queryKey, signal }) => {
3058
+ const { data } = await googleGetAdGroup({
3059
+ ...options,
3060
+ ...queryKey[0],
3061
+ signal,
3062
+ throwOnError: true
3063
+ });
3064
+ return data;
3065
+ },
3066
+ queryKey: googleGetAdGroupQueryKey(options)
3067
+ });
3068
+ var googleEditAdGroupMutation = (options) => {
3069
+ const mutationOptions = {
3070
+ mutationFn: async (fnOptions) => {
3071
+ const { data } = await googleEditAdGroup({
3072
+ ...options,
3073
+ ...fnOptions,
3074
+ throwOnError: true
3075
+ });
3076
+ return data;
3077
+ }
3078
+ };
3079
+ return mutationOptions;
3080
+ };
3081
+ var googleSetAdGroupBidsMutation = (options) => {
3082
+ const mutationOptions = {
3083
+ mutationFn: async (fnOptions) => {
3084
+ const { data } = await googleSetAdGroupBids({
3085
+ ...options,
3086
+ ...fnOptions,
3087
+ throwOnError: true
3088
+ });
3089
+ return data;
3090
+ }
3091
+ };
3092
+ return mutationOptions;
3093
+ };
3094
+ var googlePauseAdGroupMutation = (options) => {
3095
+ const mutationOptions = {
3096
+ mutationFn: async (fnOptions) => {
3097
+ const { data } = await googlePauseAdGroup({
3098
+ ...options,
3099
+ ...fnOptions,
3100
+ throwOnError: true
3101
+ });
3102
+ return data;
3103
+ }
3104
+ };
3105
+ return mutationOptions;
3106
+ };
3107
+ var googleEnableAdGroupMutation = (options) => {
3108
+ const mutationOptions = {
3109
+ mutationFn: async (fnOptions) => {
3110
+ const { data } = await googleEnableAdGroup({
3111
+ ...options,
3112
+ ...fnOptions,
3113
+ throwOnError: true
3114
+ });
3115
+ return data;
3116
+ }
3117
+ };
3118
+ return mutationOptions;
3119
+ };
3120
+ var googleListAdGroupCriteriaQueryKey = (options) => createQueryKey("googleListAdGroupCriteria", options);
3121
+ var googleListAdGroupCriteriaOptions = (options) => queryOptions({
3122
+ queryFn: async ({ queryKey, signal }) => {
3123
+ const { data } = await googleListAdGroupCriteria({
3124
+ ...options,
3125
+ ...queryKey[0],
3126
+ signal,
3127
+ throwOnError: true
3128
+ });
3129
+ return data;
3130
+ },
3131
+ queryKey: googleListAdGroupCriteriaQueryKey(options)
3132
+ });
3133
+ var googleCreateAdGroupCriterionMutation = (options) => {
3134
+ const mutationOptions = {
3135
+ mutationFn: async (fnOptions) => {
3136
+ const { data } = await googleCreateAdGroupCriterion({
3137
+ ...options,
3138
+ ...fnOptions,
3139
+ throwOnError: true
3140
+ });
3141
+ return data;
3142
+ }
3143
+ };
3144
+ return mutationOptions;
3145
+ };
3146
+ var googleDeleteAdGroupCriterionMutation = (options) => {
3147
+ const mutationOptions = {
3148
+ mutationFn: async (fnOptions) => {
3149
+ const { data } = await googleDeleteAdGroupCriterion({
3150
+ ...options,
3151
+ ...fnOptions,
3152
+ throwOnError: true
3153
+ });
3154
+ return data;
3155
+ }
3156
+ };
3157
+ return mutationOptions;
3158
+ };
3159
+ var googleListAudiencesQueryKey = (options) => createQueryKey("googleListAudiences", options);
3160
+ var googleListAudiencesOptions = (options) => queryOptions({
3161
+ queryFn: async ({ queryKey, signal }) => {
3162
+ const { data } = await googleListAudiences({
3163
+ ...options,
3164
+ ...queryKey[0],
3165
+ signal,
3166
+ throwOnError: true
3167
+ });
3168
+ return data;
3169
+ },
3170
+ queryKey: googleListAudiencesQueryKey(options)
3171
+ });
3172
+ var googleSetCampaignTargetingSettingMutation = (options) => {
3173
+ const mutationOptions = {
3174
+ mutationFn: async (fnOptions) => {
3175
+ const { data } = await googleSetCampaignTargetingSetting({
3176
+ ...options,
3177
+ ...fnOptions,
3178
+ throwOnError: true
3179
+ });
3180
+ return data;
3181
+ }
3182
+ };
3183
+ return mutationOptions;
3184
+ };
3185
+ var googleListAdsQueryKey = (options) => createQueryKey("googleListAds", options);
3186
+ var googleListAdsOptions = (options) => queryOptions({
3187
+ queryFn: async ({ queryKey, signal }) => {
3188
+ const { data } = await googleListAds({
3189
+ ...options,
3190
+ ...queryKey[0],
3191
+ signal,
3192
+ throwOnError: true
3193
+ });
3194
+ return data;
3195
+ },
3196
+ queryKey: googleListAdsQueryKey(options)
3197
+ });
3198
+ var googleCreateAdMutation = (options) => {
3199
+ const mutationOptions = {
3200
+ mutationFn: async (fnOptions) => {
3201
+ const { data } = await googleCreateAd({
3202
+ ...options,
3203
+ ...fnOptions,
3204
+ throwOnError: true
3205
+ });
3206
+ return data;
3207
+ }
3208
+ };
3209
+ return mutationOptions;
3210
+ };
3211
+ var googleDeleteAdMutation = (options) => {
3212
+ const mutationOptions = {
3213
+ mutationFn: async (fnOptions) => {
3214
+ const { data } = await googleDeleteAd({
3215
+ ...options,
3216
+ ...fnOptions,
3217
+ throwOnError: true
3218
+ });
3219
+ return data;
3220
+ }
3221
+ };
3222
+ return mutationOptions;
3223
+ };
3224
+ var googleGetAdQueryKey = (options) => createQueryKey("googleGetAd", options);
3225
+ var googleGetAdOptions = (options) => queryOptions({
3226
+ queryFn: async ({ queryKey, signal }) => {
3227
+ const { data } = await googleGetAd({
3228
+ ...options,
3229
+ ...queryKey[0],
3230
+ signal,
3231
+ throwOnError: true
3232
+ });
3233
+ return data;
3234
+ },
3235
+ queryKey: googleGetAdQueryKey(options)
3236
+ });
3237
+ var googleCreateDisplayAdMutation = (options) => {
3238
+ const mutationOptions = {
3239
+ mutationFn: async (fnOptions) => {
3240
+ const { data } = await googleCreateDisplayAd({
3241
+ ...options,
3242
+ ...fnOptions,
3243
+ throwOnError: true
3244
+ });
3245
+ return data;
3246
+ }
3247
+ };
3248
+ return mutationOptions;
3249
+ };
3250
+ var googlePauseAdMutation = (options) => {
3251
+ const mutationOptions = {
3252
+ mutationFn: async (fnOptions) => {
3253
+ const { data } = await googlePauseAd({
3254
+ ...options,
3255
+ ...fnOptions,
3256
+ throwOnError: true
3257
+ });
3258
+ return data;
3259
+ }
3260
+ };
3261
+ return mutationOptions;
3262
+ };
3263
+ var googleEnableAdMutation = (options) => {
3264
+ const mutationOptions = {
3265
+ mutationFn: async (fnOptions) => {
3266
+ const { data } = await googleEnableAd({
3267
+ ...options,
3268
+ ...fnOptions,
3269
+ throwOnError: true
3270
+ });
3271
+ return data;
3272
+ }
3273
+ };
3274
+ return mutationOptions;
3275
+ };
3276
+ var googleListKeywordsQueryKey = (options) => createQueryKey("googleListKeywords", options);
3277
+ var googleListKeywordsOptions = (options) => queryOptions({
3278
+ queryFn: async ({ queryKey, signal }) => {
3279
+ const { data } = await googleListKeywords({
3280
+ ...options,
3281
+ ...queryKey[0],
3282
+ signal,
3283
+ throwOnError: true
3284
+ });
3285
+ return data;
3286
+ },
3287
+ queryKey: googleListKeywordsQueryKey(options)
3288
+ });
3289
+ var googleCreateKeywordMutation = (options) => {
3290
+ const mutationOptions = {
3291
+ mutationFn: async (fnOptions) => {
3292
+ const { data } = await googleCreateKeyword({
3293
+ ...options,
3294
+ ...fnOptions,
3295
+ throwOnError: true
3296
+ });
3297
+ return data;
3298
+ }
3299
+ };
3300
+ return mutationOptions;
3301
+ };
3302
+ var googleDeleteKeywordMutation = (options) => {
3303
+ const mutationOptions = {
3304
+ mutationFn: async (fnOptions) => {
3305
+ const { data } = await googleDeleteKeyword({
3306
+ ...options,
3307
+ ...fnOptions,
3308
+ throwOnError: true
3309
+ });
3310
+ return data;
3311
+ }
3312
+ };
3313
+ return mutationOptions;
3314
+ };
3315
+ var googleGetKeywordQueryKey = (options) => createQueryKey("googleGetKeyword", options);
3316
+ var googleGetKeywordOptions = (options) => queryOptions({
3317
+ queryFn: async ({ queryKey, signal }) => {
3318
+ const { data } = await googleGetKeyword({
3319
+ ...options,
3320
+ ...queryKey[0],
3321
+ signal,
3322
+ throwOnError: true
3323
+ });
3324
+ return data;
3325
+ },
3326
+ queryKey: googleGetKeywordQueryKey(options)
3327
+ });
3328
+ var googleSetKeywordBidMutation = (options) => {
3329
+ const mutationOptions = {
3330
+ mutationFn: async (fnOptions) => {
3331
+ const { data } = await googleSetKeywordBid({
3332
+ ...options,
3333
+ ...fnOptions,
3334
+ throwOnError: true
3335
+ });
3336
+ return data;
3337
+ }
3338
+ };
3339
+ return mutationOptions;
3340
+ };
3341
+ var googlePauseKeywordMutation = (options) => {
3342
+ const mutationOptions = {
3343
+ mutationFn: async (fnOptions) => {
3344
+ const { data } = await googlePauseKeyword({
3345
+ ...options,
3346
+ ...fnOptions,
3347
+ throwOnError: true
3348
+ });
3349
+ return data;
3350
+ }
3351
+ };
3352
+ return mutationOptions;
3353
+ };
3354
+ var googleEnableKeywordMutation = (options) => {
3355
+ const mutationOptions = {
3356
+ mutationFn: async (fnOptions) => {
3357
+ const { data } = await googleEnableKeyword({
3358
+ ...options,
3359
+ ...fnOptions,
3360
+ throwOnError: true
3361
+ });
3362
+ return data;
3363
+ }
3364
+ };
3365
+ return mutationOptions;
3366
+ };
3367
+ var googleListConversionActionsQueryKey = (options) => createQueryKey("googleListConversionActions", options);
3368
+ var googleListConversionActionsOptions = (options) => queryOptions({
3369
+ queryFn: async ({ queryKey, signal }) => {
3370
+ const { data } = await googleListConversionActions({
3371
+ ...options,
3372
+ ...queryKey[0],
3373
+ signal,
3374
+ throwOnError: true
3375
+ });
3376
+ return data;
3377
+ },
3378
+ queryKey: googleListConversionActionsQueryKey(options)
3379
+ });
3380
+ var googleCreateConversionActionMutation = (options) => {
3381
+ const mutationOptions = {
3382
+ mutationFn: async (fnOptions) => {
3383
+ const { data } = await googleCreateConversionAction({
3384
+ ...options,
3385
+ ...fnOptions,
3386
+ throwOnError: true
3387
+ });
3388
+ return data;
3389
+ }
3390
+ };
3391
+ return mutationOptions;
3392
+ };
3393
+ var googleGetConversionActionQueryKey = (options) => createQueryKey("googleGetConversionAction", options);
3394
+ var googleGetConversionActionOptions = (options) => queryOptions({
3395
+ queryFn: async ({ queryKey, signal }) => {
3396
+ const { data } = await googleGetConversionAction({
3397
+ ...options,
3398
+ ...queryKey[0],
3399
+ signal,
3400
+ throwOnError: true
3401
+ });
3402
+ return data;
3403
+ },
3404
+ queryKey: googleGetConversionActionQueryKey(options)
3405
+ });
3406
+ var googleListConversionGoalsQueryKey = (options) => createQueryKey("googleListConversionGoals", options);
3407
+ var googleListConversionGoalsOptions = (options) => queryOptions({
3408
+ queryFn: async ({ queryKey, signal }) => {
3409
+ const { data } = await googleListConversionGoals({
3410
+ ...options,
3411
+ ...queryKey[0],
3412
+ signal,
3413
+ throwOnError: true
3414
+ });
3415
+ return data;
3416
+ },
3417
+ queryKey: googleListConversionGoalsQueryKey(options)
3418
+ });
3419
+ var googleSetConversionGoalMutation = (options) => {
3420
+ const mutationOptions = {
3421
+ mutationFn: async (fnOptions) => {
3422
+ const { data } = await googleSetConversionGoal({
3423
+ ...options,
3424
+ ...fnOptions,
3425
+ throwOnError: true
3426
+ });
3427
+ return data;
3428
+ }
3429
+ };
3430
+ return mutationOptions;
3431
+ };
3432
+ var googleUploadConversionsMutation = (options) => {
3433
+ const mutationOptions = {
3434
+ mutationFn: async (fnOptions) => {
3435
+ const { data } = await googleUploadConversions({
3436
+ ...options,
3437
+ ...fnOptions,
3438
+ throwOnError: true
3439
+ });
3440
+ return data;
3441
+ }
3442
+ };
3443
+ return mutationOptions;
3444
+ };
3445
+ var googleUploadImageAssetMutation = (options) => {
3446
+ const mutationOptions = {
3447
+ mutationFn: async (fnOptions) => {
3448
+ const { data } = await googleUploadImageAsset({
3449
+ ...options,
3450
+ ...fnOptions,
3451
+ throwOnError: true
3452
+ });
3453
+ return data;
3454
+ }
3455
+ };
3456
+ return mutationOptions;
3457
+ };
3458
+ var tiktokCreatorInfoQueryKey = (options) => createQueryKey("tiktokCreatorInfo", options);
3459
+ var tiktokCreatorInfoOptions = (options) => queryOptions({
3460
+ queryFn: async ({ queryKey, signal }) => {
3461
+ const { data } = await tiktokCreatorInfo({
3462
+ ...options,
3463
+ ...queryKey[0],
3464
+ signal,
3465
+ throwOnError: true
3466
+ });
3467
+ return data;
3468
+ },
3469
+ queryKey: tiktokCreatorInfoQueryKey(options)
3470
+ });
3471
+ var logsListQueryKey = (options) => createQueryKey("logsList", options);
3472
+ var logsListOptions = (options) => queryOptions({
3473
+ queryFn: async ({ queryKey, signal }) => {
3474
+ const { data } = await logsList({
3475
+ ...options,
3476
+ ...queryKey[0],
3477
+ signal,
3478
+ throwOnError: true
3479
+ });
3480
+ return data;
3481
+ },
3482
+ queryKey: logsListQueryKey(options)
3483
+ });
3484
+ var logsListInfiniteQueryKey = (options) => createQueryKey("logsList", options, true);
3485
+ var logsListInfiniteOptions = (options) => infiniteQueryOptions(
3486
+ // @ts-ignore
3487
+ {
3488
+ queryFn: async ({ pageParam, queryKey, signal }) => {
3489
+ const page = typeof pageParam === "object" ? pageParam : {
3490
+ query: {
3491
+ offset: pageParam
3492
+ }
3493
+ };
3494
+ const params = createInfiniteParams(queryKey, page);
3495
+ const { data } = await logsList({
3496
+ ...options,
3497
+ ...params,
3498
+ signal,
3499
+ throwOnError: true
3500
+ });
3501
+ return data;
3502
+ },
3503
+ queryKey: logsListInfiniteQueryKey(options)
3504
+ }
3505
+ );
3506
+ var logsGetQueryKey = (options) => createQueryKey("logsGet", options);
3507
+ var logsGetOptions = (options) => queryOptions({
3508
+ queryFn: async ({ queryKey, signal }) => {
3509
+ const { data } = await logsGet({
3510
+ ...options,
3511
+ ...queryKey[0],
3512
+ signal,
3513
+ throwOnError: true
3514
+ });
3515
+ return data;
3516
+ },
3517
+ queryKey: logsGetQueryKey(options)
3518
+ });
3519
+ var webhooksListEndpointsQueryKey = (options) => createQueryKey("webhooksListEndpoints", options);
3520
+ var webhooksListEndpointsOptions = (options) => queryOptions({
3521
+ queryFn: async ({ queryKey, signal }) => {
3522
+ const { data } = await webhooksListEndpoints({
3523
+ ...options,
3524
+ ...queryKey[0],
3525
+ signal,
3526
+ throwOnError: true
3527
+ });
3528
+ return data;
3529
+ },
3530
+ queryKey: webhooksListEndpointsQueryKey(options)
3531
+ });
3532
+ var webhooksListEndpointsInfiniteQueryKey = (options) => createQueryKey("webhooksListEndpoints", options, true);
3533
+ var webhooksListEndpointsInfiniteOptions = (options) => infiniteQueryOptions(
3534
+ // @ts-ignore
3535
+ {
3536
+ queryFn: async ({ pageParam, queryKey, signal }) => {
3537
+ const page = typeof pageParam === "object" ? pageParam : {
3538
+ query: {
3539
+ offset: pageParam
3540
+ }
3541
+ };
3542
+ const params = createInfiniteParams(queryKey, page);
3543
+ const { data } = await webhooksListEndpoints({
3544
+ ...options,
3545
+ ...params,
3546
+ signal,
3547
+ throwOnError: true
3548
+ });
3549
+ return data;
3550
+ },
3551
+ queryKey: webhooksListEndpointsInfiniteQueryKey(options)
3552
+ }
3553
+ );
3554
+ var webhooksCreateEndpointMutation = (options) => {
3555
+ const mutationOptions = {
3556
+ mutationFn: async (fnOptions) => {
3557
+ const { data } = await webhooksCreateEndpoint({
3558
+ ...options,
3559
+ ...fnOptions,
3560
+ throwOnError: true
3561
+ });
3562
+ return data;
3563
+ }
3564
+ };
3565
+ return mutationOptions;
3566
+ };
3567
+ var webhooksDeleteEndpointMutation = (options) => {
3568
+ const mutationOptions = {
3569
+ mutationFn: async (fnOptions) => {
3570
+ const { data } = await webhooksDeleteEndpoint({
3571
+ ...options,
3572
+ ...fnOptions,
3573
+ throwOnError: true
3574
+ });
3575
+ return data;
3576
+ }
3577
+ };
3578
+ return mutationOptions;
3579
+ };
3580
+ var webhooksGetEndpointQueryKey = (options) => createQueryKey("webhooksGetEndpoint", options);
3581
+ var webhooksGetEndpointOptions = (options) => queryOptions({
3582
+ queryFn: async ({ queryKey, signal }) => {
3583
+ const { data } = await webhooksGetEndpoint({
3584
+ ...options,
3585
+ ...queryKey[0],
3586
+ signal,
3587
+ throwOnError: true
3588
+ });
3589
+ return data;
3590
+ },
3591
+ queryKey: webhooksGetEndpointQueryKey(options)
3592
+ });
3593
+ var webhooksUpdateEndpointMutation = (options) => {
3594
+ const mutationOptions = {
3595
+ mutationFn: async (fnOptions) => {
3596
+ const { data } = await webhooksUpdateEndpoint({
3597
+ ...options,
3598
+ ...fnOptions,
3599
+ throwOnError: true
3600
+ });
3601
+ return data;
3602
+ }
3603
+ };
3604
+ return mutationOptions;
3605
+ };
3606
+ var webhooksCreatePortalMutation = (options) => {
3607
+ const mutationOptions = {
3608
+ mutationFn: async (fnOptions) => {
3609
+ const { data } = await webhooksCreatePortal({
3610
+ ...options,
3611
+ ...fnOptions,
3612
+ throwOnError: true
3613
+ });
3614
+ return data;
3615
+ }
3616
+ };
3617
+ return mutationOptions;
3618
+ };
3619
+ var webhooksListEventTypesQueryKey = (options) => createQueryKey("webhooksListEventTypes", options);
3620
+ var webhooksListEventTypesOptions = (options) => queryOptions({
3621
+ queryFn: async ({ queryKey, signal }) => {
3622
+ const { data } = await webhooksListEventTypes({
3623
+ ...options,
3624
+ ...queryKey[0],
3625
+ signal,
3626
+ throwOnError: true
3627
+ });
3628
+ return data;
3629
+ },
3630
+ queryKey: webhooksListEventTypesQueryKey(options)
3631
+ });
3632
+ var webhooksPingMutation = (options) => {
3633
+ const mutationOptions = {
3634
+ mutationFn: async (fnOptions) => {
3635
+ const { data } = await webhooksPing({
3636
+ ...options,
3637
+ ...fnOptions,
3638
+ throwOnError: true
3639
+ });
3640
+ return data;
3641
+ }
3642
+ };
3643
+ return mutationOptions;
3644
+ };
3645
+ var tokensMintMutation = (options) => {
3646
+ const mutationOptions = {
3647
+ mutationFn: async (fnOptions) => {
3648
+ const { data } = await tokensMint({
3649
+ ...options,
3650
+ ...fnOptions,
3651
+ throwOnError: true
3652
+ });
3653
+ return data;
3654
+ }
3655
+ };
3656
+ return mutationOptions;
3657
+ };
3658
+
3659
+ export { connectionsConnectMutation, connectionsDeleteMutation, connectionsGetOptions, connectionsGetQueryKey, connectionsListAccountsOptions, connectionsListAccountsQueryKey, connectionsListByProfileInfiniteOptions, connectionsListByProfileInfiniteQueryKey, connectionsListByProfileOptions, connectionsListByProfileQueryKey, connectionsSelectMutation, googleCreateAdGroupCriterionMutation, googleCreateAdGroupMutation, googleCreateAdMutation, googleCreateBudgetMutation, googleCreateCampaignCriterionMutation, googleCreateCampaignMutation, googleCreateConversionActionMutation, googleCreateDisplayAdMutation, googleCreateKeywordMutation, googleDeleteAdGroupCriterionMutation, googleDeleteAdGroupMutation, googleDeleteAdMutation, googleDeleteBudgetMutation, googleDeleteCampaignCriterionMutation, googleDeleteCampaignMutation, googleDeleteKeywordMutation, googleEditAdGroupMutation, googleEditBudgetMutation, googleEditCampaignMutation, googleEnableAdGroupMutation, googleEnableAdMutation, googleEnableCampaignMutation, googleEnableKeywordMutation, googleGetAccountOptions, googleGetAccountQueryKey, googleGetAdGroupOptions, googleGetAdGroupQueryKey, googleGetAdOptions, googleGetAdQueryKey, googleGetCampaignOptions, googleGetCampaignQueryKey, googleGetConversionActionOptions, googleGetConversionActionQueryKey, googleGetInsightsMutation, googleGetKeywordOptions, googleGetKeywordQueryKey, googleListAdGroupCriteriaOptions, googleListAdGroupCriteriaQueryKey, googleListAdGroupsOptions, googleListAdGroupsQueryKey, googleListAdsOptions, googleListAdsQueryKey, googleListAudiencesOptions, googleListAudiencesQueryKey, googleListCampaignCriteriaOptions, googleListCampaignCriteriaQueryKey, googleListCampaignsOptions, googleListCampaignsQueryKey, googleListConversionActionsOptions, googleListConversionActionsQueryKey, googleListConversionGoalsOptions, googleListConversionGoalsQueryKey, googleListKeywordsOptions, googleListKeywordsQueryKey, googlePauseAdGroupMutation, googlePauseAdMutation, googlePauseCampaignMutation, googlePauseKeywordMutation, googleRunGaqlMutation, googleSearchGeoTargetsOptions, googleSearchGeoTargetsQueryKey, googleSetAdGroupBidsMutation, googleSetCampaignGeoSettingsMutation, googleSetCampaignTargetingSettingMutation, googleSetConversionGoalMutation, googleSetKeywordBidMutation, googleUploadConversionsMutation, 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 };
3660
+ //# sourceMappingURL=query.js.map
3661
+ //# sourceMappingURL=query.js.map