@teemill/inserts 0.4.1 → 0.4.3
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/README.md +4 -4
- package/api.ts +19 -310
- package/base.ts +1 -25
- package/common.ts +1 -2
- package/configuration.ts +1 -18
- package/dist/api.d.ts +25 -316
- package/dist/api.js +1 -19
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -18
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +25 -316
- package/dist/esm/api.js +1 -19
- package/dist/esm/base.d.ts +1 -25
- package/dist/esm/base.js +1 -20
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -18
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/InsertsApi.md +2 -2
- package/docs/InsertsTypesApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Inserts API
|
|
5
5
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.
|
|
7
|
+
* The version of the OpenAPI document: 0.4.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,121 +23,56 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @interface ApiError
|
|
30
|
-
*/
|
|
31
26
|
export interface ApiError {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof ApiError
|
|
36
|
-
*/
|
|
37
27
|
'message': string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof ApiError
|
|
42
|
-
*/
|
|
43
28
|
'code': string;
|
|
44
29
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @interface CreateInsertRequest
|
|
49
|
-
*/
|
|
50
30
|
export interface CreateInsertRequest {
|
|
51
31
|
/**
|
|
52
32
|
* Whether the insert is enabled
|
|
53
|
-
* @type {boolean}
|
|
54
|
-
* @memberof CreateInsertRequest
|
|
55
33
|
*/
|
|
56
34
|
'enabled': boolean;
|
|
57
35
|
/**
|
|
58
36
|
* A reference to the variant that will be inserted into the order when this insert rule is triggered
|
|
59
|
-
* @type {string}
|
|
60
|
-
* @memberof CreateInsertRequest
|
|
61
37
|
*/
|
|
62
38
|
'variantRef': string;
|
|
63
39
|
/**
|
|
64
40
|
* A reference to the insert type that will be inserted into the order when this insert rule is triggered
|
|
65
|
-
* @type {string}
|
|
66
|
-
* @memberof CreateInsertRequest
|
|
67
41
|
*/
|
|
68
42
|
'typeRef': string;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {CreateInsertRequestConfig}
|
|
72
|
-
* @memberof CreateInsertRequest
|
|
73
|
-
*/
|
|
74
43
|
'config'?: CreateInsertRequestConfig;
|
|
75
44
|
}
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @export
|
|
79
|
-
* @interface CreateInsertRequestConfig
|
|
80
|
-
*/
|
|
81
45
|
export interface CreateInsertRequestConfig {
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {CreateInsertRequestConfigCoupon}
|
|
85
|
-
* @memberof CreateInsertRequestConfig
|
|
86
|
-
*/
|
|
87
46
|
'coupon'?: CreateInsertRequestConfigCoupon;
|
|
88
47
|
}
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @export
|
|
92
|
-
* @interface CreateInsertRequestConfigCoupon
|
|
93
|
-
*/
|
|
94
48
|
export interface CreateInsertRequestConfigCoupon {
|
|
95
49
|
/**
|
|
96
50
|
* The prefix of the coupon code to apply to the insert
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof CreateInsertRequestConfigCoupon
|
|
99
51
|
*/
|
|
100
52
|
'prefix': string;
|
|
101
53
|
/**
|
|
102
54
|
* The type of coupon to apply to the insert
|
|
103
|
-
* @type {string}
|
|
104
|
-
* @memberof CreateInsertRequestConfigCoupon
|
|
105
55
|
*/
|
|
106
56
|
'type': CreateInsertRequestConfigCouponTypeEnum;
|
|
107
57
|
/**
|
|
108
58
|
* The number of hours after creation which the coupon will expire
|
|
109
|
-
* @type {number}
|
|
110
|
-
* @memberof CreateInsertRequestConfigCoupon
|
|
111
59
|
*/
|
|
112
60
|
'expiryHours': number;
|
|
113
61
|
/**
|
|
114
62
|
* The number of times the coupon can be used
|
|
115
|
-
* @type {number}
|
|
116
|
-
* @memberof CreateInsertRequestConfigCoupon
|
|
117
63
|
*/
|
|
118
64
|
'numberOfUses': number;
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @type {Value}
|
|
122
|
-
* @memberof CreateInsertRequestConfigCoupon
|
|
123
|
-
*/
|
|
124
65
|
'value': Value;
|
|
125
66
|
/**
|
|
126
67
|
* The minimum order value to apply the coupon to
|
|
127
|
-
* @type {number}
|
|
128
|
-
* @memberof CreateInsertRequestConfigCoupon
|
|
129
68
|
*/
|
|
130
69
|
'minimumOrderValue': number;
|
|
131
70
|
/**
|
|
132
71
|
* A list of delivery methods that will be used for the discount. **Note:** Adding delivery methods requires the delivery integration to be installed on your project.
|
|
133
|
-
* @type {Array<string>}
|
|
134
|
-
* @memberof CreateInsertRequestConfigCoupon
|
|
135
72
|
*/
|
|
136
73
|
'freeDeliveryMethods'?: Array<string>;
|
|
137
74
|
/**
|
|
138
75
|
* The description of the coupon to apply to the insert
|
|
139
|
-
* @type {string}
|
|
140
|
-
* @memberof CreateInsertRequestConfigCoupon
|
|
141
76
|
*/
|
|
142
77
|
'description': string;
|
|
143
78
|
}
|
|
@@ -150,159 +85,65 @@ export const CreateInsertRequestConfigCouponTypeEnum = {
|
|
|
150
85
|
|
|
151
86
|
export type CreateInsertRequestConfigCouponTypeEnum = typeof CreateInsertRequestConfigCouponTypeEnum[keyof typeof CreateInsertRequestConfigCouponTypeEnum];
|
|
152
87
|
|
|
153
|
-
/**
|
|
154
|
-
*
|
|
155
|
-
* @export
|
|
156
|
-
* @interface InlineObject
|
|
157
|
-
*/
|
|
158
|
-
export interface InlineObject {
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
* @type {Array<InsertType>}
|
|
162
|
-
* @memberof InlineObject
|
|
163
|
-
*/
|
|
164
|
-
'insertTypes': Array<InsertType>;
|
|
165
|
-
/**
|
|
166
|
-
* The token referencing the next page number
|
|
167
|
-
* @type {number}
|
|
168
|
-
* @memberof InlineObject
|
|
169
|
-
*/
|
|
170
|
-
'nextPageToken': number | null;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @export
|
|
175
|
-
* @interface InlineObject1
|
|
176
|
-
*/
|
|
177
|
-
export interface InlineObject1 {
|
|
178
|
-
/**
|
|
179
|
-
*
|
|
180
|
-
* @type {Array<Insert>}
|
|
181
|
-
* @memberof InlineObject1
|
|
182
|
-
*/
|
|
183
|
-
'inserts': Array<Insert>;
|
|
184
|
-
/**
|
|
185
|
-
* The token referencing the next page number
|
|
186
|
-
* @type {number}
|
|
187
|
-
* @memberof InlineObject1
|
|
188
|
-
*/
|
|
189
|
-
'nextPageToken': number | null;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
*
|
|
193
|
-
* @export
|
|
194
|
-
* @interface Insert
|
|
195
|
-
*/
|
|
196
88
|
export interface Insert {
|
|
197
89
|
/**
|
|
198
90
|
* Unique object identifier
|
|
199
|
-
* @type {string}
|
|
200
|
-
* @memberof Insert
|
|
201
91
|
*/
|
|
202
92
|
'id': string;
|
|
203
93
|
/**
|
|
204
94
|
* Whether the insert is enabled
|
|
205
|
-
* @type {boolean}
|
|
206
|
-
* @memberof Insert
|
|
207
95
|
*/
|
|
208
96
|
'enabled': boolean;
|
|
209
97
|
/**
|
|
210
98
|
* A reference to the variant that will be inserted into the order when this insert rule is triggered
|
|
211
|
-
* @type {string}
|
|
212
|
-
* @memberof Insert
|
|
213
99
|
*/
|
|
214
100
|
'variantRef': string | null;
|
|
215
101
|
/**
|
|
216
102
|
* A reference to the insert type that will be inserted into the order when this insert rule is triggered
|
|
217
|
-
* @type {string}
|
|
218
|
-
* @memberof Insert
|
|
219
103
|
*/
|
|
220
104
|
'typeRef': string;
|
|
221
|
-
/**
|
|
222
|
-
*
|
|
223
|
-
* @type {InsertConfig}
|
|
224
|
-
* @memberof Insert
|
|
225
|
-
*/
|
|
226
105
|
'config': InsertConfig | null;
|
|
227
106
|
/**
|
|
228
107
|
* ISO 8601 Timestamp
|
|
229
|
-
* @type {string}
|
|
230
|
-
* @memberof Insert
|
|
231
108
|
*/
|
|
232
109
|
'createdAt': string;
|
|
233
110
|
/**
|
|
234
111
|
* ISO 8601 Timestamp
|
|
235
|
-
* @type {string}
|
|
236
|
-
* @memberof Insert
|
|
237
112
|
*/
|
|
238
113
|
'updatedAt': string | null;
|
|
239
114
|
}
|
|
240
115
|
/**
|
|
241
116
|
* The configuration of the insert
|
|
242
|
-
* @export
|
|
243
|
-
* @interface InsertConfig
|
|
244
117
|
*/
|
|
245
118
|
export interface InsertConfig {
|
|
246
|
-
/**
|
|
247
|
-
*
|
|
248
|
-
* @type {InsertConfigCoupon}
|
|
249
|
-
* @memberof InsertConfig
|
|
250
|
-
*/
|
|
251
119
|
'coupon'?: InsertConfigCoupon | null;
|
|
252
120
|
}
|
|
253
|
-
/**
|
|
254
|
-
*
|
|
255
|
-
* @export
|
|
256
|
-
* @interface InsertConfigCoupon
|
|
257
|
-
*/
|
|
258
121
|
export interface InsertConfigCoupon {
|
|
259
122
|
/**
|
|
260
123
|
* The prefix of the coupon code to apply to the insert
|
|
261
|
-
* @type {string}
|
|
262
|
-
* @memberof InsertConfigCoupon
|
|
263
124
|
*/
|
|
264
125
|
'prefix': string;
|
|
265
126
|
/**
|
|
266
127
|
* The type of coupon to apply to the insert
|
|
267
|
-
* @type {string}
|
|
268
|
-
* @memberof InsertConfigCoupon
|
|
269
128
|
*/
|
|
270
129
|
'type': InsertConfigCouponTypeEnum;
|
|
271
130
|
/**
|
|
272
131
|
* The number of hours after creation which the coupon will expire
|
|
273
|
-
* @type {number}
|
|
274
|
-
* @memberof InsertConfigCoupon
|
|
275
132
|
*/
|
|
276
133
|
'expiryHours': number;
|
|
277
134
|
/**
|
|
278
135
|
* The number of times the coupon can be used
|
|
279
|
-
* @type {number}
|
|
280
|
-
* @memberof InsertConfigCoupon
|
|
281
136
|
*/
|
|
282
137
|
'numberOfUses': number;
|
|
283
138
|
/**
|
|
284
139
|
* A list of delivery methods for the discount.
|
|
285
|
-
* @type {Array<string>}
|
|
286
|
-
* @memberof InsertConfigCoupon
|
|
287
140
|
*/
|
|
288
141
|
'freeDeliveryMethods'?: Array<string> | null;
|
|
289
|
-
/**
|
|
290
|
-
*
|
|
291
|
-
* @type {Value}
|
|
292
|
-
* @memberof InsertConfigCoupon
|
|
293
|
-
*/
|
|
294
142
|
'value': Value;
|
|
295
143
|
/**
|
|
296
144
|
* The minimum order value to apply the coupon to
|
|
297
|
-
* @type {number}
|
|
298
|
-
* @memberof InsertConfigCoupon
|
|
299
145
|
*/
|
|
300
146
|
'minimumOrderValue': number;
|
|
301
|
-
/**
|
|
302
|
-
*
|
|
303
|
-
* @type {string}
|
|
304
|
-
* @memberof InsertConfigCoupon
|
|
305
|
-
*/
|
|
306
147
|
'description': string;
|
|
307
148
|
}
|
|
308
149
|
|
|
@@ -314,133 +155,84 @@ export const InsertConfigCouponTypeEnum = {
|
|
|
314
155
|
|
|
315
156
|
export type InsertConfigCouponTypeEnum = typeof InsertConfigCouponTypeEnum[keyof typeof InsertConfigCouponTypeEnum];
|
|
316
157
|
|
|
317
|
-
/**
|
|
318
|
-
*
|
|
319
|
-
* @export
|
|
320
|
-
* @interface InsertType
|
|
321
|
-
*/
|
|
322
158
|
export interface InsertType {
|
|
323
159
|
/**
|
|
324
160
|
* Unique object identifier
|
|
325
|
-
* @type {string}
|
|
326
|
-
* @memberof InsertType
|
|
327
161
|
*/
|
|
328
162
|
'id': string;
|
|
329
163
|
/**
|
|
330
164
|
* The name of the insert type
|
|
331
|
-
* @type {string}
|
|
332
|
-
* @memberof InsertType
|
|
333
165
|
*/
|
|
334
166
|
'name': string;
|
|
335
167
|
/**
|
|
336
168
|
* The code of the insert type
|
|
337
|
-
* @type {string}
|
|
338
|
-
* @memberof InsertType
|
|
339
169
|
*/
|
|
340
170
|
'code': string;
|
|
341
171
|
/**
|
|
342
172
|
* The description of the insert type
|
|
343
|
-
* @type {string}
|
|
344
|
-
* @memberof InsertType
|
|
345
173
|
*/
|
|
346
174
|
'description': string;
|
|
347
175
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
176
|
+
export interface ListInsertTypes200Response {
|
|
177
|
+
'insertTypes': Array<InsertType>;
|
|
178
|
+
/**
|
|
179
|
+
* The token referencing the next page number
|
|
180
|
+
*/
|
|
181
|
+
'nextPageToken': number | null;
|
|
182
|
+
}
|
|
183
|
+
export interface ListInserts200Response {
|
|
184
|
+
'inserts': Array<Insert>;
|
|
185
|
+
/**
|
|
186
|
+
* The token referencing the next page number
|
|
187
|
+
*/
|
|
188
|
+
'nextPageToken': number | null;
|
|
189
|
+
}
|
|
353
190
|
export interface UpdateInsertRequest {
|
|
354
191
|
/**
|
|
355
192
|
* Whether the insert is enabled
|
|
356
|
-
* @type {boolean}
|
|
357
|
-
* @memberof UpdateInsertRequest
|
|
358
193
|
*/
|
|
359
194
|
'enabled'?: boolean;
|
|
360
195
|
/**
|
|
361
196
|
* A reference to the variant that will be inserted into the order when this insert rule is triggered
|
|
362
|
-
* @type {string}
|
|
363
|
-
* @memberof UpdateInsertRequest
|
|
364
197
|
*/
|
|
365
198
|
'variantRef'?: string;
|
|
366
199
|
/**
|
|
367
200
|
* A reference to the insert type that will be inserted into the order when this insert rule is triggered
|
|
368
|
-
* @type {string}
|
|
369
|
-
* @memberof UpdateInsertRequest
|
|
370
201
|
*/
|
|
371
202
|
'typeRef'?: string;
|
|
372
|
-
/**
|
|
373
|
-
*
|
|
374
|
-
* @type {UpdateInsertRequestConfig}
|
|
375
|
-
* @memberof UpdateInsertRequest
|
|
376
|
-
*/
|
|
377
203
|
'config'?: UpdateInsertRequestConfig | null;
|
|
378
204
|
}
|
|
379
|
-
/**
|
|
380
|
-
*
|
|
381
|
-
* @export
|
|
382
|
-
* @interface UpdateInsertRequestConfig
|
|
383
|
-
*/
|
|
384
205
|
export interface UpdateInsertRequestConfig {
|
|
385
|
-
/**
|
|
386
|
-
*
|
|
387
|
-
* @type {UpdateInsertRequestConfigCoupon}
|
|
388
|
-
* @memberof UpdateInsertRequestConfig
|
|
389
|
-
*/
|
|
390
206
|
'coupon'?: UpdateInsertRequestConfigCoupon;
|
|
391
207
|
}
|
|
392
|
-
/**
|
|
393
|
-
*
|
|
394
|
-
* @export
|
|
395
|
-
* @interface UpdateInsertRequestConfigCoupon
|
|
396
|
-
*/
|
|
397
208
|
export interface UpdateInsertRequestConfigCoupon {
|
|
398
209
|
/**
|
|
399
210
|
* The prefix of the coupon code to apply to the insert
|
|
400
|
-
* @type {string}
|
|
401
|
-
* @memberof UpdateInsertRequestConfigCoupon
|
|
402
211
|
*/
|
|
403
212
|
'prefix': string;
|
|
404
213
|
/**
|
|
405
214
|
* The number of times the coupon can be used
|
|
406
|
-
* @type {number}
|
|
407
|
-
* @memberof UpdateInsertRequestConfigCoupon
|
|
408
215
|
*/
|
|
409
216
|
'numberOfUses': number;
|
|
410
217
|
/**
|
|
411
218
|
* The number of hours after creation which the coupon will expire
|
|
412
|
-
* @type {number}
|
|
413
|
-
* @memberof UpdateInsertRequestConfigCoupon
|
|
414
219
|
*/
|
|
415
220
|
'expiryHours': number;
|
|
416
221
|
/**
|
|
417
222
|
* The type of coupon to apply to the insert
|
|
418
|
-
* @type {string}
|
|
419
|
-
* @memberof UpdateInsertRequestConfigCoupon
|
|
420
223
|
*/
|
|
421
224
|
'type': UpdateInsertRequestConfigCouponTypeEnum;
|
|
422
|
-
/**
|
|
423
|
-
*
|
|
424
|
-
* @type {Value}
|
|
425
|
-
* @memberof UpdateInsertRequestConfigCoupon
|
|
426
|
-
*/
|
|
427
225
|
'value': Value;
|
|
428
226
|
/**
|
|
429
227
|
* The minimum order value to apply the coupon to
|
|
430
|
-
* @type {number}
|
|
431
|
-
* @memberof UpdateInsertRequestConfigCoupon
|
|
432
228
|
*/
|
|
433
229
|
'minimumOrderValue': number;
|
|
434
230
|
/**
|
|
435
231
|
* A list of delivery methods that will be used for the discount. **Note:** Adding delivery methods requires the delivery integration to be installed on your project.
|
|
436
|
-
* @type {Array<string>}
|
|
437
|
-
* @memberof UpdateInsertRequestConfigCoupon
|
|
438
232
|
*/
|
|
439
233
|
'freeDeliveryMethods'?: Array<string> | null;
|
|
440
234
|
/**
|
|
441
235
|
* The description of the coupon to apply to the insert
|
|
442
|
-
* @type {string}
|
|
443
|
-
* @memberof UpdateInsertRequestConfigCoupon
|
|
444
236
|
*/
|
|
445
237
|
'description': string;
|
|
446
238
|
}
|
|
@@ -456,14 +248,12 @@ export type UpdateInsertRequestConfigCouponTypeEnum = typeof UpdateInsertRequest
|
|
|
456
248
|
/**
|
|
457
249
|
* @type Value
|
|
458
250
|
* The value of the discount. For percentage discounts, this is the percentage (0-100). For fixed discounts, this is the fixed amount. For item discounts, this is the product reference.
|
|
459
|
-
* @export
|
|
460
251
|
*/
|
|
461
252
|
export type Value = number | string;
|
|
462
253
|
|
|
463
254
|
|
|
464
255
|
/**
|
|
465
256
|
* InsertsApi - axios parameter creator
|
|
466
|
-
* @export
|
|
467
257
|
*/
|
|
468
258
|
export const InsertsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
469
259
|
return {
|
|
@@ -683,7 +473,6 @@ export const InsertsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
683
473
|
|
|
684
474
|
/**
|
|
685
475
|
* InsertsApi - functional programming interface
|
|
686
|
-
* @export
|
|
687
476
|
*/
|
|
688
477
|
export const InsertsApiFp = function(configuration?: Configuration) {
|
|
689
478
|
const localVarAxiosParamCreator = InsertsApiAxiosParamCreator(configuration)
|
|
@@ -726,7 +515,7 @@ export const InsertsApiFp = function(configuration?: Configuration) {
|
|
|
726
515
|
* @param {*} [options] Override http request option.
|
|
727
516
|
* @throws {RequiredError}
|
|
728
517
|
*/
|
|
729
|
-
async listInserts(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
518
|
+
async listInserts(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInserts200Response>> {
|
|
730
519
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listInserts(project, pageToken, pageSize, search, options);
|
|
731
520
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
732
521
|
const localVarOperationServerBasePath = operationServerMap['InsertsApi.listInserts']?.[localVarOperationServerIndex]?.url;
|
|
@@ -752,7 +541,6 @@ export const InsertsApiFp = function(configuration?: Configuration) {
|
|
|
752
541
|
|
|
753
542
|
/**
|
|
754
543
|
* InsertsApi - factory interface
|
|
755
|
-
* @export
|
|
756
544
|
*/
|
|
757
545
|
export const InsertsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
758
546
|
const localVarFp = InsertsApiFp(configuration)
|
|
@@ -784,7 +572,7 @@ export const InsertsApiFactory = function (configuration?: Configuration, basePa
|
|
|
784
572
|
* @param {*} [options] Override http request option.
|
|
785
573
|
* @throws {RequiredError}
|
|
786
574
|
*/
|
|
787
|
-
listInserts(requestParameters: InsertsApiListInsertsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
575
|
+
listInserts(requestParameters: InsertsApiListInsertsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListInserts200Response> {
|
|
788
576
|
return localVarFp.listInserts(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
789
577
|
},
|
|
790
578
|
/**
|
|
@@ -802,114 +590,69 @@ export const InsertsApiFactory = function (configuration?: Configuration, basePa
|
|
|
802
590
|
|
|
803
591
|
/**
|
|
804
592
|
* Request parameters for createInsert operation in InsertsApi.
|
|
805
|
-
* @export
|
|
806
|
-
* @interface InsertsApiCreateInsertRequest
|
|
807
593
|
*/
|
|
808
594
|
export interface InsertsApiCreateInsertRequest {
|
|
809
|
-
/**
|
|
810
|
-
*
|
|
811
|
-
* @type {string}
|
|
812
|
-
* @memberof InsertsApiCreateInsert
|
|
813
|
-
*/
|
|
814
595
|
readonly project: string
|
|
815
596
|
|
|
816
597
|
/**
|
|
817
598
|
* Create an insert
|
|
818
|
-
* @type {CreateInsertRequest}
|
|
819
|
-
* @memberof InsertsApiCreateInsert
|
|
820
599
|
*/
|
|
821
600
|
readonly createInsertRequest: CreateInsertRequest
|
|
822
601
|
}
|
|
823
602
|
|
|
824
603
|
/**
|
|
825
604
|
* Request parameters for getInsert operation in InsertsApi.
|
|
826
|
-
* @export
|
|
827
|
-
* @interface InsertsApiGetInsertRequest
|
|
828
605
|
*/
|
|
829
606
|
export interface InsertsApiGetInsertRequest {
|
|
830
607
|
/**
|
|
831
608
|
* Filter by insert ID
|
|
832
|
-
* @type {string}
|
|
833
|
-
* @memberof InsertsApiGetInsert
|
|
834
609
|
*/
|
|
835
610
|
readonly insertId: string
|
|
836
611
|
|
|
837
|
-
/**
|
|
838
|
-
*
|
|
839
|
-
* @type {string}
|
|
840
|
-
* @memberof InsertsApiGetInsert
|
|
841
|
-
*/
|
|
842
612
|
readonly project: string
|
|
843
613
|
}
|
|
844
614
|
|
|
845
615
|
/**
|
|
846
616
|
* Request parameters for listInserts operation in InsertsApi.
|
|
847
|
-
* @export
|
|
848
|
-
* @interface InsertsApiListInsertsRequest
|
|
849
617
|
*/
|
|
850
618
|
export interface InsertsApiListInsertsRequest {
|
|
851
|
-
/**
|
|
852
|
-
*
|
|
853
|
-
* @type {string}
|
|
854
|
-
* @memberof InsertsApiListInserts
|
|
855
|
-
*/
|
|
856
619
|
readonly project: string
|
|
857
620
|
|
|
858
621
|
/**
|
|
859
622
|
* Page reference token
|
|
860
|
-
* @type {number}
|
|
861
|
-
* @memberof InsertsApiListInserts
|
|
862
623
|
*/
|
|
863
624
|
readonly pageToken?: number
|
|
864
625
|
|
|
865
626
|
/**
|
|
866
627
|
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
867
|
-
* @type {number}
|
|
868
|
-
* @memberof InsertsApiListInserts
|
|
869
628
|
*/
|
|
870
629
|
readonly pageSize?: number
|
|
871
630
|
|
|
872
631
|
/**
|
|
873
632
|
* Search for inserts by id or name
|
|
874
|
-
* @type {string}
|
|
875
|
-
* @memberof InsertsApiListInserts
|
|
876
633
|
*/
|
|
877
634
|
readonly search?: string
|
|
878
635
|
}
|
|
879
636
|
|
|
880
637
|
/**
|
|
881
638
|
* Request parameters for updateInsert operation in InsertsApi.
|
|
882
|
-
* @export
|
|
883
|
-
* @interface InsertsApiUpdateInsertRequest
|
|
884
639
|
*/
|
|
885
640
|
export interface InsertsApiUpdateInsertRequest {
|
|
886
641
|
/**
|
|
887
642
|
* Filter by insert ID
|
|
888
|
-
* @type {string}
|
|
889
|
-
* @memberof InsertsApiUpdateInsert
|
|
890
643
|
*/
|
|
891
644
|
readonly insertId: string
|
|
892
645
|
|
|
893
|
-
/**
|
|
894
|
-
*
|
|
895
|
-
* @type {string}
|
|
896
|
-
* @memberof InsertsApiUpdateInsert
|
|
897
|
-
*/
|
|
898
646
|
readonly project: string
|
|
899
647
|
|
|
900
648
|
/**
|
|
901
649
|
* Update an insert
|
|
902
|
-
* @type {UpdateInsertRequest}
|
|
903
|
-
* @memberof InsertsApiUpdateInsert
|
|
904
650
|
*/
|
|
905
651
|
readonly updateInsertRequest: UpdateInsertRequest
|
|
906
652
|
}
|
|
907
653
|
|
|
908
654
|
/**
|
|
909
655
|
* InsertsApi - object-oriented interface
|
|
910
|
-
* @export
|
|
911
|
-
* @class InsertsApi
|
|
912
|
-
* @extends {BaseAPI}
|
|
913
656
|
*/
|
|
914
657
|
export class InsertsApi extends BaseAPI {
|
|
915
658
|
/**
|
|
@@ -918,7 +661,6 @@ export class InsertsApi extends BaseAPI {
|
|
|
918
661
|
* @param {InsertsApiCreateInsertRequest} requestParameters Request parameters.
|
|
919
662
|
* @param {*} [options] Override http request option.
|
|
920
663
|
* @throws {RequiredError}
|
|
921
|
-
* @memberof InsertsApi
|
|
922
664
|
*/
|
|
923
665
|
public createInsert(requestParameters: InsertsApiCreateInsertRequest, options?: RawAxiosRequestConfig) {
|
|
924
666
|
return InsertsApiFp(this.configuration).createInsert(requestParameters.project, requestParameters.createInsertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -930,7 +672,6 @@ export class InsertsApi extends BaseAPI {
|
|
|
930
672
|
* @param {InsertsApiGetInsertRequest} requestParameters Request parameters.
|
|
931
673
|
* @param {*} [options] Override http request option.
|
|
932
674
|
* @throws {RequiredError}
|
|
933
|
-
* @memberof InsertsApi
|
|
934
675
|
*/
|
|
935
676
|
public getInsert(requestParameters: InsertsApiGetInsertRequest, options?: RawAxiosRequestConfig) {
|
|
936
677
|
return InsertsApiFp(this.configuration).getInsert(requestParameters.insertId, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -942,7 +683,6 @@ export class InsertsApi extends BaseAPI {
|
|
|
942
683
|
* @param {InsertsApiListInsertsRequest} requestParameters Request parameters.
|
|
943
684
|
* @param {*} [options] Override http request option.
|
|
944
685
|
* @throws {RequiredError}
|
|
945
|
-
* @memberof InsertsApi
|
|
946
686
|
*/
|
|
947
687
|
public listInserts(requestParameters: InsertsApiListInsertsRequest, options?: RawAxiosRequestConfig) {
|
|
948
688
|
return InsertsApiFp(this.configuration).listInserts(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -954,7 +694,6 @@ export class InsertsApi extends BaseAPI {
|
|
|
954
694
|
* @param {InsertsApiUpdateInsertRequest} requestParameters Request parameters.
|
|
955
695
|
* @param {*} [options] Override http request option.
|
|
956
696
|
* @throws {RequiredError}
|
|
957
|
-
* @memberof InsertsApi
|
|
958
697
|
*/
|
|
959
698
|
public updateInsert(requestParameters: InsertsApiUpdateInsertRequest, options?: RawAxiosRequestConfig) {
|
|
960
699
|
return InsertsApiFp(this.configuration).updateInsert(requestParameters.insertId, requestParameters.project, requestParameters.updateInsertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -965,7 +704,6 @@ export class InsertsApi extends BaseAPI {
|
|
|
965
704
|
|
|
966
705
|
/**
|
|
967
706
|
* InsertsTypesApi - axios parameter creator
|
|
968
|
-
* @export
|
|
969
707
|
*/
|
|
970
708
|
export const InsertsTypesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
971
709
|
return {
|
|
@@ -1081,7 +819,6 @@ export const InsertsTypesApiAxiosParamCreator = function (configuration?: Config
|
|
|
1081
819
|
|
|
1082
820
|
/**
|
|
1083
821
|
* InsertsTypesApi - functional programming interface
|
|
1084
|
-
* @export
|
|
1085
822
|
*/
|
|
1086
823
|
export const InsertsTypesApiFp = function(configuration?: Configuration) {
|
|
1087
824
|
const localVarAxiosParamCreator = InsertsTypesApiAxiosParamCreator(configuration)
|
|
@@ -1110,7 +847,7 @@ export const InsertsTypesApiFp = function(configuration?: Configuration) {
|
|
|
1110
847
|
* @param {*} [options] Override http request option.
|
|
1111
848
|
* @throws {RequiredError}
|
|
1112
849
|
*/
|
|
1113
|
-
async listInsertTypes(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
850
|
+
async listInsertTypes(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInsertTypes200Response>> {
|
|
1114
851
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listInsertTypes(project, pageToken, pageSize, search, options);
|
|
1115
852
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1116
853
|
const localVarOperationServerBasePath = operationServerMap['InsertsTypesApi.listInsertTypes']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1121,7 +858,6 @@ export const InsertsTypesApiFp = function(configuration?: Configuration) {
|
|
|
1121
858
|
|
|
1122
859
|
/**
|
|
1123
860
|
* InsertsTypesApi - factory interface
|
|
1124
|
-
* @export
|
|
1125
861
|
*/
|
|
1126
862
|
export const InsertsTypesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1127
863
|
const localVarFp = InsertsTypesApiFp(configuration)
|
|
@@ -1143,7 +879,7 @@ export const InsertsTypesApiFactory = function (configuration?: Configuration, b
|
|
|
1143
879
|
* @param {*} [options] Override http request option.
|
|
1144
880
|
* @throws {RequiredError}
|
|
1145
881
|
*/
|
|
1146
|
-
listInsertTypes(requestParameters: InsertsTypesApiListInsertTypesRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
882
|
+
listInsertTypes(requestParameters: InsertsTypesApiListInsertTypesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListInsertTypes200Response> {
|
|
1147
883
|
return localVarFp.listInsertTypes(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1148
884
|
},
|
|
1149
885
|
};
|
|
@@ -1151,65 +887,40 @@ export const InsertsTypesApiFactory = function (configuration?: Configuration, b
|
|
|
1151
887
|
|
|
1152
888
|
/**
|
|
1153
889
|
* Request parameters for getInsertType operation in InsertsTypesApi.
|
|
1154
|
-
* @export
|
|
1155
|
-
* @interface InsertsTypesApiGetInsertTypeRequest
|
|
1156
890
|
*/
|
|
1157
891
|
export interface InsertsTypesApiGetInsertTypeRequest {
|
|
1158
892
|
/**
|
|
1159
893
|
* Filter by insert type ID
|
|
1160
|
-
* @type {string}
|
|
1161
|
-
* @memberof InsertsTypesApiGetInsertType
|
|
1162
894
|
*/
|
|
1163
895
|
readonly insertTypeId: string
|
|
1164
896
|
|
|
1165
|
-
/**
|
|
1166
|
-
*
|
|
1167
|
-
* @type {string}
|
|
1168
|
-
* @memberof InsertsTypesApiGetInsertType
|
|
1169
|
-
*/
|
|
1170
897
|
readonly project: string
|
|
1171
898
|
}
|
|
1172
899
|
|
|
1173
900
|
/**
|
|
1174
901
|
* Request parameters for listInsertTypes operation in InsertsTypesApi.
|
|
1175
|
-
* @export
|
|
1176
|
-
* @interface InsertsTypesApiListInsertTypesRequest
|
|
1177
902
|
*/
|
|
1178
903
|
export interface InsertsTypesApiListInsertTypesRequest {
|
|
1179
|
-
/**
|
|
1180
|
-
*
|
|
1181
|
-
* @type {string}
|
|
1182
|
-
* @memberof InsertsTypesApiListInsertTypes
|
|
1183
|
-
*/
|
|
1184
904
|
readonly project: string
|
|
1185
905
|
|
|
1186
906
|
/**
|
|
1187
907
|
* Page reference token
|
|
1188
|
-
* @type {number}
|
|
1189
|
-
* @memberof InsertsTypesApiListInsertTypes
|
|
1190
908
|
*/
|
|
1191
909
|
readonly pageToken?: number
|
|
1192
910
|
|
|
1193
911
|
/**
|
|
1194
912
|
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1195
|
-
* @type {number}
|
|
1196
|
-
* @memberof InsertsTypesApiListInsertTypes
|
|
1197
913
|
*/
|
|
1198
914
|
readonly pageSize?: number
|
|
1199
915
|
|
|
1200
916
|
/**
|
|
1201
917
|
* Search for inserts by id or name
|
|
1202
|
-
* @type {string}
|
|
1203
|
-
* @memberof InsertsTypesApiListInsertTypes
|
|
1204
918
|
*/
|
|
1205
919
|
readonly search?: string
|
|
1206
920
|
}
|
|
1207
921
|
|
|
1208
922
|
/**
|
|
1209
923
|
* InsertsTypesApi - object-oriented interface
|
|
1210
|
-
* @export
|
|
1211
|
-
* @class InsertsTypesApi
|
|
1212
|
-
* @extends {BaseAPI}
|
|
1213
924
|
*/
|
|
1214
925
|
export class InsertsTypesApi extends BaseAPI {
|
|
1215
926
|
/**
|
|
@@ -1218,7 +929,6 @@ export class InsertsTypesApi extends BaseAPI {
|
|
|
1218
929
|
* @param {InsertsTypesApiGetInsertTypeRequest} requestParameters Request parameters.
|
|
1219
930
|
* @param {*} [options] Override http request option.
|
|
1220
931
|
* @throws {RequiredError}
|
|
1221
|
-
* @memberof InsertsTypesApi
|
|
1222
932
|
*/
|
|
1223
933
|
public getInsertType(requestParameters: InsertsTypesApiGetInsertTypeRequest, options?: RawAxiosRequestConfig) {
|
|
1224
934
|
return InsertsTypesApiFp(this.configuration).getInsertType(requestParameters.insertTypeId, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1230,7 +940,6 @@ export class InsertsTypesApi extends BaseAPI {
|
|
|
1230
940
|
* @param {InsertsTypesApiListInsertTypesRequest} requestParameters Request parameters.
|
|
1231
941
|
* @param {*} [options] Override http request option.
|
|
1232
942
|
* @throws {RequiredError}
|
|
1233
|
-
* @memberof InsertsTypesApi
|
|
1234
943
|
*/
|
|
1235
944
|
public listInsertTypes(requestParameters: InsertsTypesApiListInsertTypesRequest, options?: RawAxiosRequestConfig) {
|
|
1236
945
|
return InsertsTypesApiFp(this.configuration).listInsertTypes(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|