@teemill/gfn-catalog 1.4.0 → 2.0.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.
Files changed (164) hide show
  1. package/.openapi-generator/FILES +7 -28
  2. package/README.md +3 -3
  3. package/api.ts +1646 -0
  4. package/base.ts +86 -0
  5. package/common.ts +150 -0
  6. package/configuration.ts +110 -0
  7. package/dist/api.d.ts +1074 -0
  8. package/dist/api.js +1014 -0
  9. package/dist/base.d.ts +66 -0
  10. package/dist/base.js +65 -0
  11. package/dist/common.d.ts +65 -0
  12. package/dist/common.js +161 -0
  13. package/dist/configuration.d.ts +91 -0
  14. package/dist/configuration.js +43 -0
  15. package/dist/esm/api.d.ts +1074 -0
  16. package/dist/esm/api.js +995 -0
  17. package/dist/esm/base.d.ts +66 -0
  18. package/dist/esm/{models/AttributeThumbnail.js → base.js} +38 -26
  19. package/dist/esm/common.d.ts +65 -0
  20. package/dist/esm/common.js +149 -0
  21. package/dist/esm/configuration.d.ts +91 -0
  22. package/dist/esm/configuration.js +39 -0
  23. package/dist/esm/index.d.ts +13 -3
  24. package/dist/esm/index.js +13 -3
  25. package/dist/index.d.ts +13 -3
  26. package/dist/index.js +15 -5
  27. package/git_push.sh +57 -0
  28. package/{dist/models/Stock.d.ts → index.ts} +8 -21
  29. package/package.json +14 -2
  30. package/tsconfig.json +4 -6
  31. package/dist/apis/ProductsApi.d.ts +0 -35
  32. package/dist/apis/ProductsApi.js +0 -85
  33. package/dist/apis/StatementsApi.d.ts +0 -48
  34. package/dist/apis/StatementsApi.js +0 -127
  35. package/dist/apis/TransactionsApi.d.ts +0 -48
  36. package/dist/apis/TransactionsApi.js +0 -129
  37. package/dist/apis/VariantsApi.d.ts +0 -82
  38. package/dist/apis/VariantsApi.js +0 -229
  39. package/dist/apis/index.d.ts +0 -4
  40. package/dist/apis/index.js +0 -22
  41. package/dist/esm/apis/ProductsApi.d.ts +0 -35
  42. package/dist/esm/apis/ProductsApi.js +0 -81
  43. package/dist/esm/apis/StatementsApi.d.ts +0 -48
  44. package/dist/esm/apis/StatementsApi.js +0 -123
  45. package/dist/esm/apis/TransactionsApi.d.ts +0 -48
  46. package/dist/esm/apis/TransactionsApi.js +0 -125
  47. package/dist/esm/apis/VariantsApi.d.ts +0 -82
  48. package/dist/esm/apis/VariantsApi.js +0 -225
  49. package/dist/esm/apis/index.d.ts +0 -4
  50. package/dist/esm/apis/index.js +0 -6
  51. package/dist/esm/models/ApiError.d.ts +0 -37
  52. package/dist/esm/models/ApiError.js +0 -42
  53. package/dist/esm/models/ApiValidationError.d.ts +0 -39
  54. package/dist/esm/models/ApiValidationError.js +0 -44
  55. package/dist/esm/models/Attribute.d.ts +0 -50
  56. package/dist/esm/models/Attribute.js +0 -49
  57. package/dist/esm/models/AttributeThumbnail.d.ts +0 -46
  58. package/dist/esm/models/ExportTransactionsRequest.d.ts +0 -43
  59. package/dist/esm/models/ExportTransactionsRequest.js +0 -42
  60. package/dist/esm/models/Image.d.ts +0 -67
  61. package/dist/esm/models/Image.js +0 -50
  62. package/dist/esm/models/ListStatements200Response.d.ts +0 -38
  63. package/dist/esm/models/ListStatements200Response.js +0 -41
  64. package/dist/esm/models/ListTransactions200Response.d.ts +0 -38
  65. package/dist/esm/models/ListTransactions200Response.js +0 -41
  66. package/dist/esm/models/Product.d.ts +0 -67
  67. package/dist/esm/models/Product.js +0 -52
  68. package/dist/esm/models/ProductsResponse.d.ts +0 -38
  69. package/dist/esm/models/ProductsResponse.js +0 -41
  70. package/dist/esm/models/Statement.d.ts +0 -61
  71. package/dist/esm/models/Statement.js +0 -60
  72. package/dist/esm/models/Stock.d.ts +0 -31
  73. package/dist/esm/models/Stock.js +0 -38
  74. package/dist/esm/models/StockResponse.d.ts +0 -38
  75. package/dist/esm/models/StockResponse.js +0 -41
  76. package/dist/esm/models/Transaction.d.ts +0 -68
  77. package/dist/esm/models/Transaction.js +0 -61
  78. package/dist/esm/models/TransactionOrder.d.ts +0 -37
  79. package/dist/esm/models/TransactionOrder.js +0 -44
  80. package/dist/esm/models/Variant.d.ts +0 -78
  81. package/dist/esm/models/Variant.js +0 -61
  82. package/dist/esm/models/VariantManufacturerOrigin.d.ts +0 -37
  83. package/dist/esm/models/VariantManufacturerOrigin.js +0 -40
  84. package/dist/esm/models/VariantProduct.d.ts +0 -37
  85. package/dist/esm/models/VariantProduct.js +0 -40
  86. package/dist/esm/models/VariantStock.d.ts +0 -50
  87. package/dist/esm/models/VariantStock.js +0 -45
  88. package/dist/esm/models/VariantsResponse.d.ts +0 -38
  89. package/dist/esm/models/VariantsResponse.js +0 -41
  90. package/dist/esm/models/index.d.ts +0 -20
  91. package/dist/esm/models/index.js +0 -22
  92. package/dist/esm/runtime.d.ts +0 -187
  93. package/dist/esm/runtime.js +0 -333
  94. package/dist/models/ApiError.d.ts +0 -37
  95. package/dist/models/ApiError.js +0 -49
  96. package/dist/models/ApiValidationError.d.ts +0 -39
  97. package/dist/models/ApiValidationError.js +0 -51
  98. package/dist/models/Attribute.d.ts +0 -50
  99. package/dist/models/Attribute.js +0 -56
  100. package/dist/models/AttributeThumbnail.d.ts +0 -46
  101. package/dist/models/AttributeThumbnail.js +0 -55
  102. package/dist/models/ExportTransactionsRequest.d.ts +0 -43
  103. package/dist/models/ExportTransactionsRequest.js +0 -49
  104. package/dist/models/Image.d.ts +0 -67
  105. package/dist/models/Image.js +0 -57
  106. package/dist/models/ListStatements200Response.d.ts +0 -38
  107. package/dist/models/ListStatements200Response.js +0 -48
  108. package/dist/models/ListTransactions200Response.d.ts +0 -38
  109. package/dist/models/ListTransactions200Response.js +0 -48
  110. package/dist/models/Product.d.ts +0 -67
  111. package/dist/models/Product.js +0 -59
  112. package/dist/models/ProductsResponse.d.ts +0 -38
  113. package/dist/models/ProductsResponse.js +0 -48
  114. package/dist/models/Statement.d.ts +0 -61
  115. package/dist/models/Statement.js +0 -67
  116. package/dist/models/Stock.js +0 -45
  117. package/dist/models/StockResponse.d.ts +0 -38
  118. package/dist/models/StockResponse.js +0 -48
  119. package/dist/models/Transaction.d.ts +0 -68
  120. package/dist/models/Transaction.js +0 -68
  121. package/dist/models/TransactionOrder.d.ts +0 -37
  122. package/dist/models/TransactionOrder.js +0 -51
  123. package/dist/models/Variant.d.ts +0 -78
  124. package/dist/models/Variant.js +0 -68
  125. package/dist/models/VariantManufacturerOrigin.d.ts +0 -37
  126. package/dist/models/VariantManufacturerOrigin.js +0 -47
  127. package/dist/models/VariantProduct.d.ts +0 -37
  128. package/dist/models/VariantProduct.js +0 -47
  129. package/dist/models/VariantStock.d.ts +0 -50
  130. package/dist/models/VariantStock.js +0 -52
  131. package/dist/models/VariantsResponse.d.ts +0 -38
  132. package/dist/models/VariantsResponse.js +0 -48
  133. package/dist/models/index.d.ts +0 -20
  134. package/dist/models/index.js +0 -38
  135. package/dist/runtime.d.ts +0 -187
  136. package/dist/runtime.js +0 -349
  137. package/src/apis/ProductsApi.ts +0 -116
  138. package/src/apis/StatementsApi.ts +0 -177
  139. package/src/apis/TransactionsApi.ts +0 -180
  140. package/src/apis/VariantsApi.ts +0 -345
  141. package/src/apis/index.ts +0 -6
  142. package/src/index.ts +0 -5
  143. package/src/models/ApiError.ts +0 -69
  144. package/src/models/ApiValidationError.ts +0 -70
  145. package/src/models/Attribute.ts +0 -93
  146. package/src/models/AttributeThumbnail.ts +0 -80
  147. package/src/models/ExportTransactionsRequest.ts +0 -76
  148. package/src/models/Image.ts +0 -108
  149. package/src/models/ListStatements200Response.ts +0 -75
  150. package/src/models/ListTransactions200Response.ts +0 -75
  151. package/src/models/Product.ts +0 -109
  152. package/src/models/ProductsResponse.ts +0 -75
  153. package/src/models/Statement.ts +0 -106
  154. package/src/models/Stock.ts +0 -60
  155. package/src/models/StockResponse.ts +0 -75
  156. package/src/models/Transaction.ts +0 -120
  157. package/src/models/TransactionOrder.ts +0 -70
  158. package/src/models/Variant.ts +0 -149
  159. package/src/models/VariantManufacturerOrigin.ts +0 -68
  160. package/src/models/VariantProduct.ts +0 -68
  161. package/src/models/VariantStock.ts +0 -91
  162. package/src/models/VariantsResponse.ts +0 -75
  163. package/src/models/index.ts +0 -22
  164. package/src/runtime.ts +0 -441
package/api.ts ADDED
@@ -0,0 +1,1646 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GFN Catalog API
5
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from './configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
22
+ import type { RequestArgs } from './base';
23
+ // @ts-ignore
24
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
+
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface ApiError
30
+ */
31
+ export interface ApiError {
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ApiError
36
+ */
37
+ 'code'?: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ApiError
42
+ */
43
+ 'message': string;
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface ApiValidationError
49
+ */
50
+ export interface ApiValidationError {
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof ApiValidationError
55
+ */
56
+ 'message': string;
57
+ /**
58
+ *
59
+ * @type {{ [key: string]: Array<string>; }}
60
+ * @memberof ApiValidationError
61
+ */
62
+ 'errors': { [key: string]: Array<string>; };
63
+ }
64
+ /**
65
+ *
66
+ * @export
67
+ * @interface Attribute
68
+ */
69
+ export interface Attribute {
70
+ /**
71
+ * Attribute name
72
+ * @type {string}
73
+ * @memberof Attribute
74
+ */
75
+ 'name': string;
76
+ /**
77
+ * Attribute value
78
+ * @type {string}
79
+ * @memberof Attribute
80
+ */
81
+ 'value': string;
82
+ /**
83
+ *
84
+ * @type {AttributeThumbnail}
85
+ * @memberof Attribute
86
+ */
87
+ 'thumbnail'?: AttributeThumbnail;
88
+ /**
89
+ * Attribute tags
90
+ * @type {Array<string>}
91
+ * @memberof Attribute
92
+ */
93
+ 'tags'?: Array<string>;
94
+ }
95
+ /**
96
+ * Attribute thumbnail
97
+ * @export
98
+ * @interface AttributeThumbnail
99
+ */
100
+ export interface AttributeThumbnail {
101
+ /**
102
+ *
103
+ * @type {string}
104
+ * @memberof AttributeThumbnail
105
+ */
106
+ 'type'?: AttributeThumbnailTypeEnum;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof AttributeThumbnail
111
+ */
112
+ 'value'?: string;
113
+ }
114
+
115
+ export const AttributeThumbnailTypeEnum = {
116
+ Text: 'text',
117
+ Color: 'color',
118
+ Image: 'image'
119
+ } as const;
120
+
121
+ export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
122
+
123
+ /**
124
+ *
125
+ * @export
126
+ * @interface ExportTransactionsRequest
127
+ */
128
+ export interface ExportTransactionsRequest {
129
+ /**
130
+ * The start date for the export
131
+ * @type {string}
132
+ * @memberof ExportTransactionsRequest
133
+ */
134
+ 'start'?: string;
135
+ /**
136
+ * The end date for the export
137
+ * @type {string}
138
+ * @memberof ExportTransactionsRequest
139
+ */
140
+ 'end'?: string;
141
+ /**
142
+ * Include only transactions from this statement
143
+ * @type {string}
144
+ * @memberof ExportTransactionsRequest
145
+ */
146
+ 'statement'?: string;
147
+ }
148
+ /**
149
+ * Image description
150
+ * @export
151
+ * @interface Image
152
+ */
153
+ export interface Image {
154
+ /**
155
+ * Unique object identifier
156
+ * @type {string}
157
+ * @memberof Image
158
+ */
159
+ 'id'?: string;
160
+ /**
161
+ *
162
+ * @type {string}
163
+ * @memberof Image
164
+ */
165
+ 'src'?: string;
166
+ /**
167
+ *
168
+ * @type {string}
169
+ * @memberof Image
170
+ */
171
+ 'alt'?: string;
172
+ /**
173
+ * List of variant Ids
174
+ * @type {Array<string>}
175
+ * @memberof Image
176
+ */
177
+ 'variantIds'?: Array<string>;
178
+ /**
179
+ *
180
+ * @type {number}
181
+ * @memberof Image
182
+ */
183
+ 'sortOrder'?: number;
184
+ /**
185
+ *
186
+ * @type {string}
187
+ * @memberof Image
188
+ */
189
+ 'createdAt'?: string;
190
+ /**
191
+ *
192
+ * @type {string}
193
+ * @memberof Image
194
+ */
195
+ 'updatedAt'?: string;
196
+ }
197
+ /**
198
+ *
199
+ * @export
200
+ * @interface ListStatements200Response
201
+ */
202
+ export interface ListStatements200Response {
203
+ /**
204
+ *
205
+ * @type {Array<Statement>}
206
+ * @memberof ListStatements200Response
207
+ */
208
+ 'statements'?: Array<Statement>;
209
+ /**
210
+ *
211
+ * @type {number}
212
+ * @memberof ListStatements200Response
213
+ */
214
+ 'nextPageToken'?: number | null;
215
+ }
216
+ /**
217
+ *
218
+ * @export
219
+ * @interface ListTransactions200Response
220
+ */
221
+ export interface ListTransactions200Response {
222
+ /**
223
+ *
224
+ * @type {Array<Transaction>}
225
+ * @memberof ListTransactions200Response
226
+ */
227
+ 'transactions'?: Array<Transaction>;
228
+ /**
229
+ *
230
+ * @type {number}
231
+ * @memberof ListTransactions200Response
232
+ */
233
+ 'nextPageToken'?: number | null;
234
+ }
235
+ /**
236
+ *
237
+ * @export
238
+ * @interface Product
239
+ */
240
+ export interface Product {
241
+ /**
242
+ * Unique object identifier
243
+ * @type {string}
244
+ * @memberof Product
245
+ */
246
+ 'id'?: string;
247
+ /**
248
+ * A reference to the resource location
249
+ * @type {string}
250
+ * @memberof Product
251
+ */
252
+ 'ref'?: string;
253
+ /**
254
+ *
255
+ * @type {string}
256
+ * @memberof Product
257
+ */
258
+ 'title': string;
259
+ /**
260
+ *
261
+ * @type {string}
262
+ * @memberof Product
263
+ */
264
+ 'styleCode'?: string;
265
+ /**
266
+ *
267
+ * @type {string}
268
+ * @memberof Product
269
+ */
270
+ 'material'?: string;
271
+ /**
272
+ *
273
+ * @type {string}
274
+ * @memberof Product
275
+ */
276
+ 'description'?: string;
277
+ /**
278
+ *
279
+ * @type {string}
280
+ * @memberof Product
281
+ */
282
+ 'specifications'?: string;
283
+ }
284
+ /**
285
+ *
286
+ * @export
287
+ * @interface ProductsResponse
288
+ */
289
+ export interface ProductsResponse {
290
+ /**
291
+ *
292
+ * @type {Array<Product>}
293
+ * @memberof ProductsResponse
294
+ */
295
+ 'products'?: Array<Product>;
296
+ /**
297
+ *
298
+ * @type {number}
299
+ * @memberof ProductsResponse
300
+ */
301
+ 'nextPageToken'?: number;
302
+ }
303
+ /**
304
+ *
305
+ * @export
306
+ * @interface Statement
307
+ */
308
+ export interface Statement {
309
+ /**
310
+ * Unique object identifier
311
+ * @type {string}
312
+ * @memberof Statement
313
+ */
314
+ 'id': string;
315
+ /**
316
+ * A reference to the resource location
317
+ * @type {string}
318
+ * @memberof Statement
319
+ */
320
+ 'ref': string;
321
+ /**
322
+ *
323
+ * @type {number}
324
+ * @memberof Statement
325
+ */
326
+ 'total': number;
327
+ /**
328
+ *
329
+ * @type {string}
330
+ * @memberof Statement
331
+ */
332
+ 'startDate': string;
333
+ /**
334
+ *
335
+ * @type {string}
336
+ * @memberof Statement
337
+ */
338
+ 'endDate': string;
339
+ /**
340
+ *
341
+ * @type {string}
342
+ * @memberof Statement
343
+ */
344
+ 'createdAt': string;
345
+ }
346
+ /**
347
+ *
348
+ * @export
349
+ * @interface Stock
350
+ */
351
+ export interface Stock {
352
+ /**
353
+ * Current stock level
354
+ * @type {number}
355
+ * @memberof Stock
356
+ */
357
+ 'level'?: number;
358
+ }
359
+ /**
360
+ *
361
+ * @export
362
+ * @interface StockResponse
363
+ */
364
+ export interface StockResponse {
365
+ /**
366
+ *
367
+ * @type {Array<VariantStock>}
368
+ * @memberof StockResponse
369
+ */
370
+ 'variants'?: Array<VariantStock>;
371
+ /**
372
+ *
373
+ * @type {number}
374
+ * @memberof StockResponse
375
+ */
376
+ 'nextPageToken'?: number;
377
+ }
378
+ /**
379
+ *
380
+ * @export
381
+ * @interface Transaction
382
+ */
383
+ export interface Transaction {
384
+ /**
385
+ * Unique object identifier
386
+ * @type {string}
387
+ * @memberof Transaction
388
+ */
389
+ 'id': string;
390
+ /**
391
+ * A reference to the resource location
392
+ * @type {string}
393
+ * @memberof Transaction
394
+ */
395
+ 'ref': string;
396
+ /**
397
+ * A reference to the resource location
398
+ * @type {string}
399
+ * @memberof Transaction
400
+ */
401
+ 'statement'?: string;
402
+ /**
403
+ *
404
+ * @type {TransactionOrder}
405
+ * @memberof Transaction
406
+ */
407
+ 'order': TransactionOrder;
408
+ /**
409
+ *
410
+ * @type {TransactionOrder}
411
+ * @memberof Transaction
412
+ */
413
+ 'fulfillment'?: TransactionOrder;
414
+ /**
415
+ *
416
+ * @type {number}
417
+ * @memberof Transaction
418
+ */
419
+ 'total': number;
420
+ /**
421
+ *
422
+ * @type {string}
423
+ * @memberof Transaction
424
+ */
425
+ 'issuedAt': string;
426
+ }
427
+ /**
428
+ *
429
+ * @export
430
+ * @interface TransactionOrder
431
+ */
432
+ export interface TransactionOrder {
433
+ /**
434
+ * A reference to the resource location
435
+ * @type {string}
436
+ * @memberof TransactionOrder
437
+ */
438
+ 'ref': string;
439
+ /**
440
+ * A reference to the resource location
441
+ * @type {string}
442
+ * @memberof TransactionOrder
443
+ */
444
+ 'project': string;
445
+ }
446
+ /**
447
+ *
448
+ * @export
449
+ * @interface Variant
450
+ */
451
+ export interface Variant {
452
+ /**
453
+ * Unique object identifier
454
+ * @type {string}
455
+ * @memberof Variant
456
+ */
457
+ 'id'?: string;
458
+ /**
459
+ * A reference to the resource location
460
+ * @type {string}
461
+ * @memberof Variant
462
+ */
463
+ 'ref'?: string;
464
+ /**
465
+ *
466
+ * @type {VariantProduct}
467
+ * @memberof Variant
468
+ */
469
+ 'product'?: VariantProduct;
470
+ /**
471
+ *
472
+ * @type {string}
473
+ * @memberof Variant
474
+ */
475
+ 'sku': string;
476
+ /**
477
+ * Attributes associated to a variant such as Colour and Size. An attribute can have thumbnail type of `text`, `color`, or `image`. Attribute tags are intended for grouping and filtering, e.g. by a group of colours.
478
+ * @type {Array<Attribute>}
479
+ * @memberof Variant
480
+ */
481
+ 'attributes': Array<Attribute>;
482
+ /**
483
+ *
484
+ * @type {VariantManufacturerOrigin}
485
+ * @memberof Variant
486
+ */
487
+ 'manufacturerOrigin'?: VariantManufacturerOrigin;
488
+ /**
489
+ *
490
+ * @type {Stock}
491
+ * @memberof Variant
492
+ */
493
+ 'stock'?: Stock;
494
+ /**
495
+ * Images
496
+ * @type {Array<Image>}
497
+ * @memberof Variant
498
+ */
499
+ 'images'?: Array<Image>;
500
+ }
501
+ /**
502
+ * Where the product was originally produced or manufactured
503
+ * @export
504
+ * @interface VariantManufacturerOrigin
505
+ */
506
+ export interface VariantManufacturerOrigin {
507
+ /**
508
+ * Country of origin (ISO 3166-1 alpha-2).
509
+ * @type {string}
510
+ * @memberof VariantManufacturerOrigin
511
+ */
512
+ 'country'?: string;
513
+ /**
514
+ * Name of the country of origin
515
+ * @type {string}
516
+ * @memberof VariantManufacturerOrigin
517
+ */
518
+ 'name'?: string;
519
+ }
520
+ /**
521
+ *
522
+ * @export
523
+ * @interface VariantProduct
524
+ */
525
+ export interface VariantProduct {
526
+ /**
527
+ * Unique object identifier
528
+ * @type {string}
529
+ * @memberof VariantProduct
530
+ */
531
+ 'id'?: string;
532
+ /**
533
+ * A reference to the resource location
534
+ * @type {string}
535
+ * @memberof VariantProduct
536
+ */
537
+ 'ref'?: string;
538
+ }
539
+ /**
540
+ *
541
+ * @export
542
+ * @interface VariantStock
543
+ */
544
+ export interface VariantStock {
545
+ /**
546
+ * Unique object identifier
547
+ * @type {string}
548
+ * @memberof VariantStock
549
+ */
550
+ 'id'?: string;
551
+ /**
552
+ * A reference to the resource location
553
+ * @type {string}
554
+ * @memberof VariantStock
555
+ */
556
+ 'ref'?: string;
557
+ /**
558
+ * A reference to the resource location
559
+ * @type {string}
560
+ * @memberof VariantStock
561
+ */
562
+ 'productRef'?: string;
563
+ /**
564
+ *
565
+ * @type {Stock}
566
+ * @memberof VariantStock
567
+ */
568
+ 'stock'?: Stock;
569
+ }
570
+ /**
571
+ *
572
+ * @export
573
+ * @interface VariantsResponse
574
+ */
575
+ export interface VariantsResponse {
576
+ /**
577
+ *
578
+ * @type {Array<Variant>}
579
+ * @memberof VariantsResponse
580
+ */
581
+ 'variants'?: Array<Variant>;
582
+ /**
583
+ *
584
+ * @type {number}
585
+ * @memberof VariantsResponse
586
+ */
587
+ 'nextPageToken'?: number;
588
+ }
589
+
590
+ /**
591
+ * ProductsApi - axios parameter creator
592
+ * @export
593
+ */
594
+ export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {
595
+ return {
596
+ /**
597
+ * Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
598
+ * @summary List GFN products
599
+ * @param {string} project What project it is
600
+ * @param {number} [pageToken] Page reference token
601
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
602
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
603
+ * @param {string} [search] Search terms to filter based on.
604
+ * @param {*} [options] Override http request option.
605
+ * @throws {RequiredError}
606
+ */
607
+ listProducts: async (project: string, pageToken?: number, pageSize?: number, fields?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
608
+ // verify required parameter 'project' is not null or undefined
609
+ assertParamExists('listProducts', 'project', project)
610
+ const localVarPath = `/v1/gfn/catalog/products`;
611
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
612
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
613
+ let baseOptions;
614
+ if (configuration) {
615
+ baseOptions = configuration.baseOptions;
616
+ }
617
+
618
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
619
+ const localVarHeaderParameter = {} as any;
620
+ const localVarQueryParameter = {} as any;
621
+
622
+ // authentication session-oauth required
623
+ // oauth required
624
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
625
+
626
+ // authentication api-key required
627
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
628
+
629
+ if (project !== undefined) {
630
+ localVarQueryParameter['project'] = project;
631
+ }
632
+
633
+ if (pageToken !== undefined) {
634
+ localVarQueryParameter['pageToken'] = pageToken;
635
+ }
636
+
637
+ if (pageSize !== undefined) {
638
+ localVarQueryParameter['pageSize'] = pageSize;
639
+ }
640
+
641
+ if (fields !== undefined) {
642
+ localVarQueryParameter['fields'] = fields;
643
+ }
644
+
645
+ if (search !== undefined) {
646
+ localVarQueryParameter['search'] = search;
647
+ }
648
+
649
+
650
+
651
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
652
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
653
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
654
+
655
+ return {
656
+ url: toPathString(localVarUrlObj),
657
+ options: localVarRequestOptions,
658
+ };
659
+ },
660
+ }
661
+ };
662
+
663
+ /**
664
+ * ProductsApi - functional programming interface
665
+ * @export
666
+ */
667
+ export const ProductsApiFp = function(configuration?: Configuration) {
668
+ const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)
669
+ return {
670
+ /**
671
+ * Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
672
+ * @summary List GFN products
673
+ * @param {string} project What project it is
674
+ * @param {number} [pageToken] Page reference token
675
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
676
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
677
+ * @param {string} [search] Search terms to filter based on.
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ */
681
+ async listProducts(project: string, pageToken?: number, pageSize?: number, fields?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
682
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(project, pageToken, pageSize, fields, search, options);
683
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
684
+ const localVarOperationServerBasePath = operationServerMap['ProductsApi.listProducts']?.[localVarOperationServerIndex]?.url;
685
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
686
+ },
687
+ }
688
+ };
689
+
690
+ /**
691
+ * ProductsApi - factory interface
692
+ * @export
693
+ */
694
+ export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
695
+ const localVarFp = ProductsApiFp(configuration)
696
+ return {
697
+ /**
698
+ * Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
699
+ * @summary List GFN products
700
+ * @param {string} project What project it is
701
+ * @param {number} [pageToken] Page reference token
702
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
703
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
704
+ * @param {string} [search] Search terms to filter based on.
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ */
708
+ listProducts(project: string, pageToken?: number, pageSize?: number, fields?: string, search?: string, options?: any): AxiosPromise<ProductsResponse> {
709
+ return localVarFp.listProducts(project, pageToken, pageSize, fields, search, options).then((request) => request(axios, basePath));
710
+ },
711
+ };
712
+ };
713
+
714
+ /**
715
+ * ProductsApi - object-oriented interface
716
+ * @export
717
+ * @class ProductsApi
718
+ * @extends {BaseAPI}
719
+ */
720
+ export class ProductsApi extends BaseAPI {
721
+ /**
722
+ * Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
723
+ * @summary List GFN products
724
+ * @param {string} project What project it is
725
+ * @param {number} [pageToken] Page reference token
726
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
727
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
728
+ * @param {string} [search] Search terms to filter based on.
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ * @memberof ProductsApi
732
+ */
733
+ public listProducts(project: string, pageToken?: number, pageSize?: number, fields?: string, search?: string, options?: RawAxiosRequestConfig) {
734
+ return ProductsApiFp(this.configuration).listProducts(project, pageToken, pageSize, fields, search, options).then((request) => request(this.axios, this.basePath));
735
+ }
736
+ }
737
+
738
+
739
+
740
+ /**
741
+ * StatementsApi - axios parameter creator
742
+ * @export
743
+ */
744
+ export const StatementsApiAxiosParamCreator = function (configuration?: Configuration) {
745
+ return {
746
+ /**
747
+ * Gets a GFN statement by the given ID.
748
+ * @summary Get a GFN statement
749
+ * @param {string} project What project it is
750
+ * @param {string} statementId
751
+ * @param {*} [options] Override http request option.
752
+ * @throws {RequiredError}
753
+ */
754
+ getStatement: async (project: string, statementId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
755
+ // verify required parameter 'project' is not null or undefined
756
+ assertParamExists('getStatement', 'project', project)
757
+ // verify required parameter 'statementId' is not null or undefined
758
+ assertParamExists('getStatement', 'statementId', statementId)
759
+ const localVarPath = `/v1/gfn/statements/{statementId}`
760
+ .replace(`{${"statementId"}}`, encodeURIComponent(String(statementId)));
761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
762
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
763
+ let baseOptions;
764
+ if (configuration) {
765
+ baseOptions = configuration.baseOptions;
766
+ }
767
+
768
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
769
+ const localVarHeaderParameter = {} as any;
770
+ const localVarQueryParameter = {} as any;
771
+
772
+ // authentication session-oauth required
773
+ // oauth required
774
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
775
+
776
+ // authentication api-key required
777
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
778
+
779
+ if (project !== undefined) {
780
+ localVarQueryParameter['project'] = project;
781
+ }
782
+
783
+
784
+
785
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
786
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
787
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
788
+
789
+ return {
790
+ url: toPathString(localVarUrlObj),
791
+ options: localVarRequestOptions,
792
+ };
793
+ },
794
+ /**
795
+ * Lists GFN statements available to the project
796
+ * @summary List GFN statements
797
+ * @param {string} project What project it is
798
+ * @param {number} [pageToken] Page reference token
799
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
800
+ * @param {string} [search] Search term used to filter results by
801
+ * @param {*} [options] Override http request option.
802
+ * @throws {RequiredError}
803
+ */
804
+ listStatements: async (project: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
805
+ // verify required parameter 'project' is not null or undefined
806
+ assertParamExists('listStatements', 'project', project)
807
+ const localVarPath = `/v1/gfn/statements`;
808
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
809
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
810
+ let baseOptions;
811
+ if (configuration) {
812
+ baseOptions = configuration.baseOptions;
813
+ }
814
+
815
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
816
+ const localVarHeaderParameter = {} as any;
817
+ const localVarQueryParameter = {} as any;
818
+
819
+ // authentication session-oauth required
820
+ // oauth required
821
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
822
+
823
+ // authentication api-key required
824
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
825
+
826
+ if (project !== undefined) {
827
+ localVarQueryParameter['project'] = project;
828
+ }
829
+
830
+ if (pageToken !== undefined) {
831
+ localVarQueryParameter['pageToken'] = pageToken;
832
+ }
833
+
834
+ if (pageSize !== undefined) {
835
+ localVarQueryParameter['pageSize'] = pageSize;
836
+ }
837
+
838
+ if (search !== undefined) {
839
+ localVarQueryParameter['search'] = search;
840
+ }
841
+
842
+
843
+
844
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
845
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
846
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
847
+
848
+ return {
849
+ url: toPathString(localVarUrlObj),
850
+ options: localVarRequestOptions,
851
+ };
852
+ },
853
+ }
854
+ };
855
+
856
+ /**
857
+ * StatementsApi - functional programming interface
858
+ * @export
859
+ */
860
+ export const StatementsApiFp = function(configuration?: Configuration) {
861
+ const localVarAxiosParamCreator = StatementsApiAxiosParamCreator(configuration)
862
+ return {
863
+ /**
864
+ * Gets a GFN statement by the given ID.
865
+ * @summary Get a GFN statement
866
+ * @param {string} project What project it is
867
+ * @param {string} statementId
868
+ * @param {*} [options] Override http request option.
869
+ * @throws {RequiredError}
870
+ */
871
+ async getStatement(project: string, statementId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Statement>> {
872
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStatement(project, statementId, options);
873
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
874
+ const localVarOperationServerBasePath = operationServerMap['StatementsApi.getStatement']?.[localVarOperationServerIndex]?.url;
875
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
876
+ },
877
+ /**
878
+ * Lists GFN statements available to the project
879
+ * @summary List GFN statements
880
+ * @param {string} project What project it is
881
+ * @param {number} [pageToken] Page reference token
882
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
883
+ * @param {string} [search] Search term used to filter results by
884
+ * @param {*} [options] Override http request option.
885
+ * @throws {RequiredError}
886
+ */
887
+ async listStatements(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatements200Response>> {
888
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listStatements(project, pageToken, pageSize, search, options);
889
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
890
+ const localVarOperationServerBasePath = operationServerMap['StatementsApi.listStatements']?.[localVarOperationServerIndex]?.url;
891
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
892
+ },
893
+ }
894
+ };
895
+
896
+ /**
897
+ * StatementsApi - factory interface
898
+ * @export
899
+ */
900
+ export const StatementsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
901
+ const localVarFp = StatementsApiFp(configuration)
902
+ return {
903
+ /**
904
+ * Gets a GFN statement by the given ID.
905
+ * @summary Get a GFN statement
906
+ * @param {string} project What project it is
907
+ * @param {string} statementId
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ */
911
+ getStatement(project: string, statementId: string, options?: any): AxiosPromise<Statement> {
912
+ return localVarFp.getStatement(project, statementId, options).then((request) => request(axios, basePath));
913
+ },
914
+ /**
915
+ * Lists GFN statements available to the project
916
+ * @summary List GFN statements
917
+ * @param {string} project What project it is
918
+ * @param {number} [pageToken] Page reference token
919
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
920
+ * @param {string} [search] Search term used to filter results by
921
+ * @param {*} [options] Override http request option.
922
+ * @throws {RequiredError}
923
+ */
924
+ listStatements(project: string, pageToken?: number, pageSize?: number, search?: string, options?: any): AxiosPromise<ListStatements200Response> {
925
+ return localVarFp.listStatements(project, pageToken, pageSize, search, options).then((request) => request(axios, basePath));
926
+ },
927
+ };
928
+ };
929
+
930
+ /**
931
+ * StatementsApi - object-oriented interface
932
+ * @export
933
+ * @class StatementsApi
934
+ * @extends {BaseAPI}
935
+ */
936
+ export class StatementsApi extends BaseAPI {
937
+ /**
938
+ * Gets a GFN statement by the given ID.
939
+ * @summary Get a GFN statement
940
+ * @param {string} project What project it is
941
+ * @param {string} statementId
942
+ * @param {*} [options] Override http request option.
943
+ * @throws {RequiredError}
944
+ * @memberof StatementsApi
945
+ */
946
+ public getStatement(project: string, statementId: string, options?: RawAxiosRequestConfig) {
947
+ return StatementsApiFp(this.configuration).getStatement(project, statementId, options).then((request) => request(this.axios, this.basePath));
948
+ }
949
+
950
+ /**
951
+ * Lists GFN statements available to the project
952
+ * @summary List GFN statements
953
+ * @param {string} project What project it is
954
+ * @param {number} [pageToken] Page reference token
955
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
956
+ * @param {string} [search] Search term used to filter results by
957
+ * @param {*} [options] Override http request option.
958
+ * @throws {RequiredError}
959
+ * @memberof StatementsApi
960
+ */
961
+ public listStatements(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) {
962
+ return StatementsApiFp(this.configuration).listStatements(project, pageToken, pageSize, search, options).then((request) => request(this.axios, this.basePath));
963
+ }
964
+ }
965
+
966
+
967
+
968
+ /**
969
+ * TransactionsApi - axios parameter creator
970
+ * @export
971
+ */
972
+ export const TransactionsApiAxiosParamCreator = function (configuration?: Configuration) {
973
+ return {
974
+ /**
975
+ * Exports all GFN transactions available to the project
976
+ * @summary Export GFN transactions
977
+ * @param {string} project What project it is
978
+ * @param {ExportTransactionsRequest} exportTransactionsRequest Period selection data for the export
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ */
982
+ exportTransactions: async (project: string, exportTransactionsRequest: ExportTransactionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
983
+ // verify required parameter 'project' is not null or undefined
984
+ assertParamExists('exportTransactions', 'project', project)
985
+ // verify required parameter 'exportTransactionsRequest' is not null or undefined
986
+ assertParamExists('exportTransactions', 'exportTransactionsRequest', exportTransactionsRequest)
987
+ const localVarPath = `/v1/gfn/transactions/export`;
988
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
989
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
990
+ let baseOptions;
991
+ if (configuration) {
992
+ baseOptions = configuration.baseOptions;
993
+ }
994
+
995
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
996
+ const localVarHeaderParameter = {} as any;
997
+ const localVarQueryParameter = {} as any;
998
+
999
+ // authentication session-oauth required
1000
+ // oauth required
1001
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1002
+
1003
+ // authentication api-key required
1004
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1005
+
1006
+ if (project !== undefined) {
1007
+ localVarQueryParameter['project'] = project;
1008
+ }
1009
+
1010
+
1011
+
1012
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1013
+
1014
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1016
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1017
+ localVarRequestOptions.data = serializeDataIfNeeded(exportTransactionsRequest, localVarRequestOptions, configuration)
1018
+
1019
+ return {
1020
+ url: toPathString(localVarUrlObj),
1021
+ options: localVarRequestOptions,
1022
+ };
1023
+ },
1024
+ /**
1025
+ * Lists all GFN transactions available to the project
1026
+ * @summary List GFN transactions
1027
+ * @param {string} project What project it is
1028
+ * @param {number} [pageToken] Page reference token
1029
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1030
+ * @param {string} [statementId]
1031
+ * @param {*} [options] Override http request option.
1032
+ * @throws {RequiredError}
1033
+ */
1034
+ listTransactions: async (project: string, pageToken?: number, pageSize?: number, statementId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1035
+ // verify required parameter 'project' is not null or undefined
1036
+ assertParamExists('listTransactions', 'project', project)
1037
+ const localVarPath = `/v1/gfn/transactions`;
1038
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1039
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1040
+ let baseOptions;
1041
+ if (configuration) {
1042
+ baseOptions = configuration.baseOptions;
1043
+ }
1044
+
1045
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1046
+ const localVarHeaderParameter = {} as any;
1047
+ const localVarQueryParameter = {} as any;
1048
+
1049
+ // authentication session-oauth required
1050
+ // oauth required
1051
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1052
+
1053
+ // authentication api-key required
1054
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1055
+
1056
+ if (project !== undefined) {
1057
+ localVarQueryParameter['project'] = project;
1058
+ }
1059
+
1060
+ if (pageToken !== undefined) {
1061
+ localVarQueryParameter['pageToken'] = pageToken;
1062
+ }
1063
+
1064
+ if (pageSize !== undefined) {
1065
+ localVarQueryParameter['pageSize'] = pageSize;
1066
+ }
1067
+
1068
+ if (statementId !== undefined) {
1069
+ localVarQueryParameter['statementId'] = statementId;
1070
+ }
1071
+
1072
+
1073
+
1074
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1075
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1076
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1077
+
1078
+ return {
1079
+ url: toPathString(localVarUrlObj),
1080
+ options: localVarRequestOptions,
1081
+ };
1082
+ },
1083
+ }
1084
+ };
1085
+
1086
+ /**
1087
+ * TransactionsApi - functional programming interface
1088
+ * @export
1089
+ */
1090
+ export const TransactionsApiFp = function(configuration?: Configuration) {
1091
+ const localVarAxiosParamCreator = TransactionsApiAxiosParamCreator(configuration)
1092
+ return {
1093
+ /**
1094
+ * Exports all GFN transactions available to the project
1095
+ * @summary Export GFN transactions
1096
+ * @param {string} project What project it is
1097
+ * @param {ExportTransactionsRequest} exportTransactionsRequest Period selection data for the export
1098
+ * @param {*} [options] Override http request option.
1099
+ * @throws {RequiredError}
1100
+ */
1101
+ async exportTransactions(project: string, exportTransactionsRequest: ExportTransactionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
1102
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportTransactions(project, exportTransactionsRequest, options);
1103
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1104
+ const localVarOperationServerBasePath = operationServerMap['TransactionsApi.exportTransactions']?.[localVarOperationServerIndex]?.url;
1105
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1106
+ },
1107
+ /**
1108
+ * Lists all GFN transactions available to the project
1109
+ * @summary List GFN transactions
1110
+ * @param {string} project What project it is
1111
+ * @param {number} [pageToken] Page reference token
1112
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1113
+ * @param {string} [statementId]
1114
+ * @param {*} [options] Override http request option.
1115
+ * @throws {RequiredError}
1116
+ */
1117
+ async listTransactions(project: string, pageToken?: number, pageSize?: number, statementId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactions200Response>> {
1118
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(project, pageToken, pageSize, statementId, options);
1119
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1120
+ const localVarOperationServerBasePath = operationServerMap['TransactionsApi.listTransactions']?.[localVarOperationServerIndex]?.url;
1121
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1122
+ },
1123
+ }
1124
+ };
1125
+
1126
+ /**
1127
+ * TransactionsApi - factory interface
1128
+ * @export
1129
+ */
1130
+ export const TransactionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1131
+ const localVarFp = TransactionsApiFp(configuration)
1132
+ return {
1133
+ /**
1134
+ * Exports all GFN transactions available to the project
1135
+ * @summary Export GFN transactions
1136
+ * @param {string} project What project it is
1137
+ * @param {ExportTransactionsRequest} exportTransactionsRequest Period selection data for the export
1138
+ * @param {*} [options] Override http request option.
1139
+ * @throws {RequiredError}
1140
+ */
1141
+ exportTransactions(project: string, exportTransactionsRequest: ExportTransactionsRequest, options?: any): AxiosPromise<File> {
1142
+ return localVarFp.exportTransactions(project, exportTransactionsRequest, options).then((request) => request(axios, basePath));
1143
+ },
1144
+ /**
1145
+ * Lists all GFN transactions available to the project
1146
+ * @summary List GFN transactions
1147
+ * @param {string} project What project it is
1148
+ * @param {number} [pageToken] Page reference token
1149
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1150
+ * @param {string} [statementId]
1151
+ * @param {*} [options] Override http request option.
1152
+ * @throws {RequiredError}
1153
+ */
1154
+ listTransactions(project: string, pageToken?: number, pageSize?: number, statementId?: string, options?: any): AxiosPromise<ListTransactions200Response> {
1155
+ return localVarFp.listTransactions(project, pageToken, pageSize, statementId, options).then((request) => request(axios, basePath));
1156
+ },
1157
+ };
1158
+ };
1159
+
1160
+ /**
1161
+ * TransactionsApi - object-oriented interface
1162
+ * @export
1163
+ * @class TransactionsApi
1164
+ * @extends {BaseAPI}
1165
+ */
1166
+ export class TransactionsApi extends BaseAPI {
1167
+ /**
1168
+ * Exports all GFN transactions available to the project
1169
+ * @summary Export GFN transactions
1170
+ * @param {string} project What project it is
1171
+ * @param {ExportTransactionsRequest} exportTransactionsRequest Period selection data for the export
1172
+ * @param {*} [options] Override http request option.
1173
+ * @throws {RequiredError}
1174
+ * @memberof TransactionsApi
1175
+ */
1176
+ public exportTransactions(project: string, exportTransactionsRequest: ExportTransactionsRequest, options?: RawAxiosRequestConfig) {
1177
+ return TransactionsApiFp(this.configuration).exportTransactions(project, exportTransactionsRequest, options).then((request) => request(this.axios, this.basePath));
1178
+ }
1179
+
1180
+ /**
1181
+ * Lists all GFN transactions available to the project
1182
+ * @summary List GFN transactions
1183
+ * @param {string} project What project it is
1184
+ * @param {number} [pageToken] Page reference token
1185
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1186
+ * @param {string} [statementId]
1187
+ * @param {*} [options] Override http request option.
1188
+ * @throws {RequiredError}
1189
+ * @memberof TransactionsApi
1190
+ */
1191
+ public listTransactions(project: string, pageToken?: number, pageSize?: number, statementId?: string, options?: RawAxiosRequestConfig) {
1192
+ return TransactionsApiFp(this.configuration).listTransactions(project, pageToken, pageSize, statementId, options).then((request) => request(this.axios, this.basePath));
1193
+ }
1194
+ }
1195
+
1196
+
1197
+
1198
+ /**
1199
+ * VariantsApi - axios parameter creator
1200
+ * @export
1201
+ */
1202
+ export const VariantsApiAxiosParamCreator = function (configuration?: Configuration) {
1203
+ return {
1204
+ /**
1205
+ * Gets the stock level for the GFN variant with the given ID.
1206
+ * @summary Get GFN variant stock
1207
+ * @param {string} project What project it is
1208
+ * @param {string} variantId Variants unique identifier
1209
+ * @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
1210
+ * @param {*} [options] Override http request option.
1211
+ * @throws {RequiredError}
1212
+ */
1213
+ getStock: async (project: string, variantId: string, fulfillmentProjects?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1214
+ // verify required parameter 'project' is not null or undefined
1215
+ assertParamExists('getStock', 'project', project)
1216
+ // verify required parameter 'variantId' is not null or undefined
1217
+ assertParamExists('getStock', 'variantId', variantId)
1218
+ const localVarPath = `/v1/gfn/catalog/stock/{variantId}`
1219
+ .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
1220
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1221
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1222
+ let baseOptions;
1223
+ if (configuration) {
1224
+ baseOptions = configuration.baseOptions;
1225
+ }
1226
+
1227
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1228
+ const localVarHeaderParameter = {} as any;
1229
+ const localVarQueryParameter = {} as any;
1230
+
1231
+ // authentication session-oauth required
1232
+ // oauth required
1233
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1234
+
1235
+ // authentication api-key required
1236
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1237
+
1238
+ if (project !== undefined) {
1239
+ localVarQueryParameter['project'] = project;
1240
+ }
1241
+
1242
+ if (fulfillmentProjects !== undefined) {
1243
+ localVarQueryParameter['fulfillmentProjects'] = fulfillmentProjects;
1244
+ }
1245
+
1246
+
1247
+
1248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1250
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1251
+
1252
+ return {
1253
+ url: toPathString(localVarUrlObj),
1254
+ options: localVarRequestOptions,
1255
+ };
1256
+ },
1257
+ /**
1258
+ * Gets a GFN variant by the given ID.
1259
+ * @summary Get a GFN variant
1260
+ * @param {string} project What project it is
1261
+ * @param {string} variantId Variants unique identifier
1262
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1263
+ * @param {*} [options] Override http request option.
1264
+ * @throws {RequiredError}
1265
+ */
1266
+ getVariant: async (project: string, variantId: string, fields?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1267
+ // verify required parameter 'project' is not null or undefined
1268
+ assertParamExists('getVariant', 'project', project)
1269
+ // verify required parameter 'variantId' is not null or undefined
1270
+ assertParamExists('getVariant', 'variantId', variantId)
1271
+ const localVarPath = `/v1/gfn/catalog/variants/{variantId}`
1272
+ .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
1273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1274
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1275
+ let baseOptions;
1276
+ if (configuration) {
1277
+ baseOptions = configuration.baseOptions;
1278
+ }
1279
+
1280
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1281
+ const localVarHeaderParameter = {} as any;
1282
+ const localVarQueryParameter = {} as any;
1283
+
1284
+ // authentication session-oauth required
1285
+ // oauth required
1286
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1287
+
1288
+ // authentication api-key required
1289
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1290
+
1291
+ if (project !== undefined) {
1292
+ localVarQueryParameter['project'] = project;
1293
+ }
1294
+
1295
+ if (fields !== undefined) {
1296
+ localVarQueryParameter['fields'] = fields;
1297
+ }
1298
+
1299
+
1300
+
1301
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1302
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1303
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1304
+
1305
+ return {
1306
+ url: toPathString(localVarUrlObj),
1307
+ options: localVarRequestOptions,
1308
+ };
1309
+ },
1310
+ /**
1311
+ * Lists the stock levels for all GFN variants available to the project.
1312
+ * @summary List GFN variant stock
1313
+ * @param {string} project What project it is
1314
+ * @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
1315
+ * @param {number} [pageToken] Page reference token
1316
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1317
+ * @param {string} [search] Search terms to filter based on.
1318
+ * @param {*} [options] Override http request option.
1319
+ * @throws {RequiredError}
1320
+ */
1321
+ listStock: async (project: string, fulfillmentProjects?: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1322
+ // verify required parameter 'project' is not null or undefined
1323
+ assertParamExists('listStock', 'project', project)
1324
+ const localVarPath = `/v1/gfn/catalog/stock`;
1325
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1326
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1327
+ let baseOptions;
1328
+ if (configuration) {
1329
+ baseOptions = configuration.baseOptions;
1330
+ }
1331
+
1332
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1333
+ const localVarHeaderParameter = {} as any;
1334
+ const localVarQueryParameter = {} as any;
1335
+
1336
+ // authentication session-oauth required
1337
+ // oauth required
1338
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1339
+
1340
+ // authentication api-key required
1341
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1342
+
1343
+ if (project !== undefined) {
1344
+ localVarQueryParameter['project'] = project;
1345
+ }
1346
+
1347
+ if (fulfillmentProjects !== undefined) {
1348
+ localVarQueryParameter['fulfillmentProjects'] = fulfillmentProjects;
1349
+ }
1350
+
1351
+ if (pageToken !== undefined) {
1352
+ localVarQueryParameter['pageToken'] = pageToken;
1353
+ }
1354
+
1355
+ if (pageSize !== undefined) {
1356
+ localVarQueryParameter['pageSize'] = pageSize;
1357
+ }
1358
+
1359
+ if (search !== undefined) {
1360
+ localVarQueryParameter['search'] = search;
1361
+ }
1362
+
1363
+
1364
+
1365
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1366
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1367
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1368
+
1369
+ return {
1370
+ url: toPathString(localVarUrlObj),
1371
+ options: localVarRequestOptions,
1372
+ };
1373
+ },
1374
+ /**
1375
+ * Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
1376
+ * @summary List GFN variants
1377
+ * @param {string} project What project it is
1378
+ * @param {number} [pageToken] Page reference token
1379
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1380
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1381
+ * @param {string} [search] Search terms to filter based on.
1382
+ * @param {*} [options] Override http request option.
1383
+ * @throws {RequiredError}
1384
+ */
1385
+ listVariants: async (project: string, pageToken?: number, pageSize?: number, fields?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1386
+ // verify required parameter 'project' is not null or undefined
1387
+ assertParamExists('listVariants', 'project', project)
1388
+ const localVarPath = `/v1/gfn/catalog/variants`;
1389
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1390
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1391
+ let baseOptions;
1392
+ if (configuration) {
1393
+ baseOptions = configuration.baseOptions;
1394
+ }
1395
+
1396
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1397
+ const localVarHeaderParameter = {} as any;
1398
+ const localVarQueryParameter = {} as any;
1399
+
1400
+ // authentication session-oauth required
1401
+ // oauth required
1402
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1403
+
1404
+ // authentication api-key required
1405
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1406
+
1407
+ if (project !== undefined) {
1408
+ localVarQueryParameter['project'] = project;
1409
+ }
1410
+
1411
+ if (pageToken !== undefined) {
1412
+ localVarQueryParameter['pageToken'] = pageToken;
1413
+ }
1414
+
1415
+ if (pageSize !== undefined) {
1416
+ localVarQueryParameter['pageSize'] = pageSize;
1417
+ }
1418
+
1419
+ if (fields !== undefined) {
1420
+ localVarQueryParameter['fields'] = fields;
1421
+ }
1422
+
1423
+ if (search !== undefined) {
1424
+ localVarQueryParameter['search'] = search;
1425
+ }
1426
+
1427
+
1428
+
1429
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1431
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1432
+
1433
+ return {
1434
+ url: toPathString(localVarUrlObj),
1435
+ options: localVarRequestOptions,
1436
+ };
1437
+ },
1438
+ }
1439
+ };
1440
+
1441
+ /**
1442
+ * VariantsApi - functional programming interface
1443
+ * @export
1444
+ */
1445
+ export const VariantsApiFp = function(configuration?: Configuration) {
1446
+ const localVarAxiosParamCreator = VariantsApiAxiosParamCreator(configuration)
1447
+ return {
1448
+ /**
1449
+ * Gets the stock level for the GFN variant with the given ID.
1450
+ * @summary Get GFN variant stock
1451
+ * @param {string} project What project it is
1452
+ * @param {string} variantId Variants unique identifier
1453
+ * @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
1454
+ * @param {*} [options] Override http request option.
1455
+ * @throws {RequiredError}
1456
+ */
1457
+ async getStock(project: string, variantId: string, fulfillmentProjects?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariantStock>> {
1458
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStock(project, variantId, fulfillmentProjects, options);
1459
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1460
+ const localVarOperationServerBasePath = operationServerMap['VariantsApi.getStock']?.[localVarOperationServerIndex]?.url;
1461
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1462
+ },
1463
+ /**
1464
+ * Gets a GFN variant by the given ID.
1465
+ * @summary Get a GFN variant
1466
+ * @param {string} project What project it is
1467
+ * @param {string} variantId Variants unique identifier
1468
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1469
+ * @param {*} [options] Override http request option.
1470
+ * @throws {RequiredError}
1471
+ */
1472
+ async getVariant(project: string, variantId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Variant>> {
1473
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVariant(project, variantId, fields, options);
1474
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1475
+ const localVarOperationServerBasePath = operationServerMap['VariantsApi.getVariant']?.[localVarOperationServerIndex]?.url;
1476
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1477
+ },
1478
+ /**
1479
+ * Lists the stock levels for all GFN variants available to the project.
1480
+ * @summary List GFN variant stock
1481
+ * @param {string} project What project it is
1482
+ * @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
1483
+ * @param {number} [pageToken] Page reference token
1484
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1485
+ * @param {string} [search] Search terms to filter based on.
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ */
1489
+ async listStock(project: string, fulfillmentProjects?: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StockResponse>> {
1490
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listStock(project, fulfillmentProjects, pageToken, pageSize, search, options);
1491
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1492
+ const localVarOperationServerBasePath = operationServerMap['VariantsApi.listStock']?.[localVarOperationServerIndex]?.url;
1493
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1494
+ },
1495
+ /**
1496
+ * Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
1497
+ * @summary List GFN variants
1498
+ * @param {string} project What project it is
1499
+ * @param {number} [pageToken] Page reference token
1500
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1501
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1502
+ * @param {string} [search] Search terms to filter based on.
1503
+ * @param {*} [options] Override http request option.
1504
+ * @throws {RequiredError}
1505
+ */
1506
+ async listVariants(project: string, pageToken?: number, pageSize?: number, fields?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariantsResponse>> {
1507
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listVariants(project, pageToken, pageSize, fields, search, options);
1508
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1509
+ const localVarOperationServerBasePath = operationServerMap['VariantsApi.listVariants']?.[localVarOperationServerIndex]?.url;
1510
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1511
+ },
1512
+ }
1513
+ };
1514
+
1515
+ /**
1516
+ * VariantsApi - factory interface
1517
+ * @export
1518
+ */
1519
+ export const VariantsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1520
+ const localVarFp = VariantsApiFp(configuration)
1521
+ return {
1522
+ /**
1523
+ * Gets the stock level for the GFN variant with the given ID.
1524
+ * @summary Get GFN variant stock
1525
+ * @param {string} project What project it is
1526
+ * @param {string} variantId Variants unique identifier
1527
+ * @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
1528
+ * @param {*} [options] Override http request option.
1529
+ * @throws {RequiredError}
1530
+ */
1531
+ getStock(project: string, variantId: string, fulfillmentProjects?: string, options?: any): AxiosPromise<VariantStock> {
1532
+ return localVarFp.getStock(project, variantId, fulfillmentProjects, options).then((request) => request(axios, basePath));
1533
+ },
1534
+ /**
1535
+ * Gets a GFN variant by the given ID.
1536
+ * @summary Get a GFN variant
1537
+ * @param {string} project What project it is
1538
+ * @param {string} variantId Variants unique identifier
1539
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1540
+ * @param {*} [options] Override http request option.
1541
+ * @throws {RequiredError}
1542
+ */
1543
+ getVariant(project: string, variantId: string, fields?: string, options?: any): AxiosPromise<Variant> {
1544
+ return localVarFp.getVariant(project, variantId, fields, options).then((request) => request(axios, basePath));
1545
+ },
1546
+ /**
1547
+ * Lists the stock levels for all GFN variants available to the project.
1548
+ * @summary List GFN variant stock
1549
+ * @param {string} project What project it is
1550
+ * @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
1551
+ * @param {number} [pageToken] Page reference token
1552
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1553
+ * @param {string} [search] Search terms to filter based on.
1554
+ * @param {*} [options] Override http request option.
1555
+ * @throws {RequiredError}
1556
+ */
1557
+ listStock(project: string, fulfillmentProjects?: string, pageToken?: number, pageSize?: number, search?: string, options?: any): AxiosPromise<StockResponse> {
1558
+ return localVarFp.listStock(project, fulfillmentProjects, pageToken, pageSize, search, options).then((request) => request(axios, basePath));
1559
+ },
1560
+ /**
1561
+ * Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
1562
+ * @summary List GFN variants
1563
+ * @param {string} project What project it is
1564
+ * @param {number} [pageToken] Page reference token
1565
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1566
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1567
+ * @param {string} [search] Search terms to filter based on.
1568
+ * @param {*} [options] Override http request option.
1569
+ * @throws {RequiredError}
1570
+ */
1571
+ listVariants(project: string, pageToken?: number, pageSize?: number, fields?: string, search?: string, options?: any): AxiosPromise<VariantsResponse> {
1572
+ return localVarFp.listVariants(project, pageToken, pageSize, fields, search, options).then((request) => request(axios, basePath));
1573
+ },
1574
+ };
1575
+ };
1576
+
1577
+ /**
1578
+ * VariantsApi - object-oriented interface
1579
+ * @export
1580
+ * @class VariantsApi
1581
+ * @extends {BaseAPI}
1582
+ */
1583
+ export class VariantsApi extends BaseAPI {
1584
+ /**
1585
+ * Gets the stock level for the GFN variant with the given ID.
1586
+ * @summary Get GFN variant stock
1587
+ * @param {string} project What project it is
1588
+ * @param {string} variantId Variants unique identifier
1589
+ * @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
1590
+ * @param {*} [options] Override http request option.
1591
+ * @throws {RequiredError}
1592
+ * @memberof VariantsApi
1593
+ */
1594
+ public getStock(project: string, variantId: string, fulfillmentProjects?: string, options?: RawAxiosRequestConfig) {
1595
+ return VariantsApiFp(this.configuration).getStock(project, variantId, fulfillmentProjects, options).then((request) => request(this.axios, this.basePath));
1596
+ }
1597
+
1598
+ /**
1599
+ * Gets a GFN variant by the given ID.
1600
+ * @summary Get a GFN variant
1601
+ * @param {string} project What project it is
1602
+ * @param {string} variantId Variants unique identifier
1603
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1604
+ * @param {*} [options] Override http request option.
1605
+ * @throws {RequiredError}
1606
+ * @memberof VariantsApi
1607
+ */
1608
+ public getVariant(project: string, variantId: string, fields?: string, options?: RawAxiosRequestConfig) {
1609
+ return VariantsApiFp(this.configuration).getVariant(project, variantId, fields, options).then((request) => request(this.axios, this.basePath));
1610
+ }
1611
+
1612
+ /**
1613
+ * Lists the stock levels for all GFN variants available to the project.
1614
+ * @summary List GFN variant stock
1615
+ * @param {string} project What project it is
1616
+ * @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
1617
+ * @param {number} [pageToken] Page reference token
1618
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1619
+ * @param {string} [search] Search terms to filter based on.
1620
+ * @param {*} [options] Override http request option.
1621
+ * @throws {RequiredError}
1622
+ * @memberof VariantsApi
1623
+ */
1624
+ public listStock(project: string, fulfillmentProjects?: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) {
1625
+ return VariantsApiFp(this.configuration).listStock(project, fulfillmentProjects, pageToken, pageSize, search, options).then((request) => request(this.axios, this.basePath));
1626
+ }
1627
+
1628
+ /**
1629
+ * Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
1630
+ * @summary List GFN variants
1631
+ * @param {string} project What project it is
1632
+ * @param {number} [pageToken] Page reference token
1633
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1634
+ * @param {string} [fields] Filter response fields to only include a subset of the resource.
1635
+ * @param {string} [search] Search terms to filter based on.
1636
+ * @param {*} [options] Override http request option.
1637
+ * @throws {RequiredError}
1638
+ * @memberof VariantsApi
1639
+ */
1640
+ public listVariants(project: string, pageToken?: number, pageSize?: number, fields?: string, search?: string, options?: RawAxiosRequestConfig) {
1641
+ return VariantsApiFp(this.configuration).listVariants(project, pageToken, pageSize, fields, search, options).then((request) => request(this.axios, this.basePath));
1642
+ }
1643
+ }
1644
+
1645
+
1646
+