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