@teemill/gtins 0.6.4 → 0.6.6
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 +3 -3
- package/api.ts +4 -123
- package/base.ts +1 -25
- package/common.ts +1 -2
- package/configuration.ts +1 -18
- package/dist/api.d.ts +10 -129
- package/dist/api.js +1 -13
- 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 +10 -129
- package/dist/esm/api.js +1 -13
- 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/GTINsApi.md +2 -2
- package/docs/ImportGtins202Response.md +20 -0
- package/index.ts +1 -1
- package/package.json +2 -2
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GTINs API
|
|
3
3
|
* Manage GTINs
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.6.
|
|
5
|
+
* The version of the OpenAPI document: 0.6.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,111 +13,45 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ApiError
|
|
20
|
-
*/
|
|
21
16
|
export interface ApiError {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ApiError
|
|
26
|
-
*/
|
|
27
17
|
'code'?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ApiError
|
|
32
|
-
*/
|
|
33
18
|
'message': string;
|
|
34
19
|
}
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface AssignGtinRequest
|
|
39
|
-
*/
|
|
40
20
|
export interface AssignGtinRequest {
|
|
41
21
|
/**
|
|
42
22
|
* A reference to the resource location
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof AssignGtinRequest
|
|
45
23
|
*/
|
|
46
24
|
'variantRef': string;
|
|
47
25
|
}
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @export
|
|
51
|
-
* @interface GTIN
|
|
52
|
-
*/
|
|
53
26
|
export interface GTIN {
|
|
54
27
|
/**
|
|
55
28
|
* The GTIN
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof GTIN
|
|
58
29
|
*/
|
|
59
30
|
'number': string;
|
|
60
31
|
/**
|
|
61
32
|
* A reference to the resource location
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof GTIN
|
|
64
33
|
*/
|
|
65
34
|
'variantRef': string;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {Array<GTINVariantsInner>}
|
|
69
|
-
* @memberof GTIN
|
|
70
|
-
*/
|
|
71
35
|
'variants': Array<GTINVariantsInner>;
|
|
72
36
|
}
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @export
|
|
76
|
-
* @interface GTINVariantsInner
|
|
77
|
-
*/
|
|
78
37
|
export interface GTINVariantsInner {
|
|
79
38
|
/**
|
|
80
39
|
* A reference to the resource location
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof GTINVariantsInner
|
|
83
40
|
*/
|
|
84
41
|
'ref': string;
|
|
85
42
|
}
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @export
|
|
89
|
-
* @interface GTINsResponse
|
|
90
|
-
*/
|
|
91
43
|
export interface GTINsResponse {
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {Array<GTIN>}
|
|
95
|
-
* @memberof GTINsResponse
|
|
96
|
-
*/
|
|
97
44
|
'gtins'?: Array<GTIN>;
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
* @type {number}
|
|
101
|
-
* @memberof GTINsResponse
|
|
102
|
-
*/
|
|
103
45
|
'nextPageToken'?: number | null;
|
|
104
46
|
}
|
|
105
|
-
|
|
106
|
-
*
|
|
107
|
-
* @export
|
|
108
|
-
* @interface InlineObject
|
|
109
|
-
*/
|
|
110
|
-
export interface InlineObject {
|
|
47
|
+
export interface ImportGtins202Response {
|
|
111
48
|
/**
|
|
112
49
|
* Id of the GTINs import
|
|
113
|
-
* @type {string}
|
|
114
|
-
* @memberof InlineObject
|
|
115
50
|
*/
|
|
116
51
|
'importId'?: string;
|
|
117
52
|
}
|
|
118
53
|
/**
|
|
119
54
|
* GTINsApi - axios parameter creator
|
|
120
|
-
* @export
|
|
121
55
|
*/
|
|
122
56
|
export declare const GTINsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
123
57
|
/**
|
|
@@ -180,7 +114,6 @@ export declare const GTINsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
180
114
|
};
|
|
181
115
|
/**
|
|
182
116
|
* GTINsApi - functional programming interface
|
|
183
|
-
* @export
|
|
184
117
|
*/
|
|
185
118
|
export declare const GTINsApiFp: (configuration?: Configuration) => {
|
|
186
119
|
/**
|
|
@@ -219,7 +152,7 @@ export declare const GTINsApiFp: (configuration?: Configuration) => {
|
|
|
219
152
|
* @param {*} [options] Override http request option.
|
|
220
153
|
* @throws {RequiredError}
|
|
221
154
|
*/
|
|
222
|
-
importGtins(project: string, body?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
155
|
+
importGtins(project: string, body?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportGtins202Response>>;
|
|
223
156
|
/**
|
|
224
157
|
* List GTINs
|
|
225
158
|
* @summary List gtins
|
|
@@ -243,7 +176,6 @@ export declare const GTINsApiFp: (configuration?: Configuration) => {
|
|
|
243
176
|
};
|
|
244
177
|
/**
|
|
245
178
|
* GTINsApi - factory interface
|
|
246
|
-
* @export
|
|
247
179
|
*/
|
|
248
180
|
export declare const GTINsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
249
181
|
/**
|
|
@@ -277,7 +209,7 @@ export declare const GTINsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
277
209
|
* @param {*} [options] Override http request option.
|
|
278
210
|
* @throws {RequiredError}
|
|
279
211
|
*/
|
|
280
|
-
importGtins(requestParameters: GTINsApiImportGtinsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
212
|
+
importGtins(requestParameters: GTINsApiImportGtinsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImportGtins202Response>;
|
|
281
213
|
/**
|
|
282
214
|
* List GTINs
|
|
283
215
|
* @summary List gtins
|
|
@@ -297,141 +229,96 @@ export declare const GTINsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
297
229
|
};
|
|
298
230
|
/**
|
|
299
231
|
* Request parameters for assignGtin operation in GTINsApi.
|
|
300
|
-
* @export
|
|
301
|
-
* @interface GTINsApiAssignGtinRequest
|
|
302
232
|
*/
|
|
303
233
|
export interface GTINsApiAssignGtinRequest {
|
|
304
234
|
/**
|
|
305
235
|
* What project it is
|
|
306
|
-
* @type {string}
|
|
307
|
-
* @memberof GTINsApiAssignGtin
|
|
308
236
|
*/
|
|
309
237
|
readonly project: string;
|
|
310
238
|
/**
|
|
311
239
|
* GTIN
|
|
312
|
-
* @type {string}
|
|
313
|
-
* @memberof GTINsApiAssignGtin
|
|
314
240
|
*/
|
|
315
241
|
readonly gtin: string;
|
|
316
242
|
/**
|
|
317
243
|
* Assign a GTIN to a variant
|
|
318
|
-
* @type {AssignGtinRequest}
|
|
319
|
-
* @memberof GTINsApiAssignGtin
|
|
320
244
|
*/
|
|
321
245
|
readonly assignGtinRequest?: AssignGtinRequest;
|
|
322
246
|
}
|
|
323
247
|
/**
|
|
324
248
|
* Request parameters for exportGtins operation in GTINsApi.
|
|
325
|
-
* @export
|
|
326
|
-
* @interface GTINsApiExportGtinsRequest
|
|
327
249
|
*/
|
|
328
250
|
export interface GTINsApiExportGtinsRequest {
|
|
329
251
|
/**
|
|
330
252
|
* What project it is
|
|
331
|
-
* @type {string}
|
|
332
|
-
* @memberof GTINsApiExportGtins
|
|
333
253
|
*/
|
|
334
254
|
readonly project: string;
|
|
335
255
|
/**
|
|
336
256
|
* GTINs
|
|
337
|
-
* @type {string}
|
|
338
|
-
* @memberof GTINsApiExportGtins
|
|
339
257
|
*/
|
|
340
258
|
readonly gtins?: string;
|
|
341
259
|
}
|
|
342
260
|
/**
|
|
343
261
|
* Request parameters for getGtin operation in GTINsApi.
|
|
344
|
-
* @export
|
|
345
|
-
* @interface GTINsApiGetGtinRequest
|
|
346
262
|
*/
|
|
347
263
|
export interface GTINsApiGetGtinRequest {
|
|
348
264
|
/**
|
|
349
265
|
* What project it is
|
|
350
|
-
* @type {string}
|
|
351
|
-
* @memberof GTINsApiGetGtin
|
|
352
266
|
*/
|
|
353
267
|
readonly project: string;
|
|
354
268
|
/**
|
|
355
269
|
* GTIN
|
|
356
|
-
* @type {string}
|
|
357
|
-
* @memberof GTINsApiGetGtin
|
|
358
270
|
*/
|
|
359
271
|
readonly gtin: string;
|
|
360
272
|
}
|
|
361
273
|
/**
|
|
362
274
|
* Request parameters for importGtins operation in GTINsApi.
|
|
363
|
-
* @export
|
|
364
|
-
* @interface GTINsApiImportGtinsRequest
|
|
365
275
|
*/
|
|
366
276
|
export interface GTINsApiImportGtinsRequest {
|
|
367
277
|
/**
|
|
368
278
|
* What project it is
|
|
369
|
-
* @type {string}
|
|
370
|
-
* @memberof GTINsApiImportGtins
|
|
371
279
|
*/
|
|
372
280
|
readonly project: string;
|
|
373
281
|
/**
|
|
374
282
|
* A base64 data URL of a CSV file containing GTINs
|
|
375
|
-
* @type {string}
|
|
376
|
-
* @memberof GTINsApiImportGtins
|
|
377
283
|
*/
|
|
378
284
|
readonly body?: string;
|
|
379
285
|
}
|
|
380
286
|
/**
|
|
381
287
|
* Request parameters for listGtins operation in GTINsApi.
|
|
382
|
-
* @export
|
|
383
|
-
* @interface GTINsApiListGtinsRequest
|
|
384
288
|
*/
|
|
385
289
|
export interface GTINsApiListGtinsRequest {
|
|
386
290
|
/**
|
|
387
291
|
* What project it is
|
|
388
|
-
* @type {string}
|
|
389
|
-
* @memberof GTINsApiListGtins
|
|
390
292
|
*/
|
|
391
293
|
readonly project: string;
|
|
392
294
|
/**
|
|
393
295
|
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
394
|
-
* @type {number}
|
|
395
|
-
* @memberof GTINsApiListGtins
|
|
396
296
|
*/
|
|
397
297
|
readonly pageSize?: number;
|
|
398
298
|
/**
|
|
399
299
|
* Page reference token
|
|
400
|
-
* @type {number}
|
|
401
|
-
* @memberof GTINsApiListGtins
|
|
402
300
|
*/
|
|
403
301
|
readonly pageToken?: number;
|
|
404
302
|
/**
|
|
405
303
|
* Search term to filter based on GTIN based on the GTIN
|
|
406
|
-
* @type {string}
|
|
407
|
-
* @memberof GTINsApiListGtins
|
|
408
304
|
*/
|
|
409
305
|
readonly search?: string;
|
|
410
306
|
}
|
|
411
307
|
/**
|
|
412
308
|
* Request parameters for unassignGtin operation in GTINsApi.
|
|
413
|
-
* @export
|
|
414
|
-
* @interface GTINsApiUnassignGtinRequest
|
|
415
309
|
*/
|
|
416
310
|
export interface GTINsApiUnassignGtinRequest {
|
|
417
311
|
/**
|
|
418
312
|
* What project it is
|
|
419
|
-
* @type {string}
|
|
420
|
-
* @memberof GTINsApiUnassignGtin
|
|
421
313
|
*/
|
|
422
314
|
readonly project: string;
|
|
423
315
|
/**
|
|
424
316
|
* GTIN
|
|
425
|
-
* @type {string}
|
|
426
|
-
* @memberof GTINsApiUnassignGtin
|
|
427
317
|
*/
|
|
428
318
|
readonly gtin: string;
|
|
429
319
|
}
|
|
430
320
|
/**
|
|
431
321
|
* GTINsApi - object-oriented interface
|
|
432
|
-
* @export
|
|
433
|
-
* @class GTINsApi
|
|
434
|
-
* @extends {BaseAPI}
|
|
435
322
|
*/
|
|
436
323
|
export declare class GTINsApi extends BaseAPI {
|
|
437
324
|
/**
|
|
@@ -440,52 +327,46 @@ export declare class GTINsApi extends BaseAPI {
|
|
|
440
327
|
* @param {GTINsApiAssignGtinRequest} requestParameters Request parameters.
|
|
441
328
|
* @param {*} [options] Override http request option.
|
|
442
329
|
* @throws {RequiredError}
|
|
443
|
-
* @memberof GTINsApi
|
|
444
330
|
*/
|
|
445
|
-
assignGtin(requestParameters: GTINsApiAssignGtinRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GTIN, any>>;
|
|
331
|
+
assignGtin(requestParameters: GTINsApiAssignGtinRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GTIN, any, {}>>;
|
|
446
332
|
/**
|
|
447
333
|
* Export a CSV of a project\'s GTINs
|
|
448
334
|
* @summary Export GTINs
|
|
449
335
|
* @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
|
|
450
336
|
* @param {*} [options] Override http request option.
|
|
451
337
|
* @throws {RequiredError}
|
|
452
|
-
* @memberof GTINsApi
|
|
453
338
|
*/
|
|
454
|
-
exportGtins(requestParameters: GTINsApiExportGtinsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
339
|
+
exportGtins(requestParameters: GTINsApiExportGtinsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
455
340
|
/**
|
|
456
341
|
* Get a GTIN
|
|
457
342
|
* @summary Get GTIN
|
|
458
343
|
* @param {GTINsApiGetGtinRequest} requestParameters Request parameters.
|
|
459
344
|
* @param {*} [options] Override http request option.
|
|
460
345
|
* @throws {RequiredError}
|
|
461
|
-
* @memberof GTINsApi
|
|
462
346
|
*/
|
|
463
|
-
getGtin(requestParameters: GTINsApiGetGtinRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GTIN, any>>;
|
|
347
|
+
getGtin(requestParameters: GTINsApiGetGtinRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GTIN, any, {}>>;
|
|
464
348
|
/**
|
|
465
349
|
* Initiates a GTINs import from a CSV file. The result will be available as a notification in the dashboard.
|
|
466
350
|
* @summary Import GTINs
|
|
467
351
|
* @param {GTINsApiImportGtinsRequest} requestParameters Request parameters.
|
|
468
352
|
* @param {*} [options] Override http request option.
|
|
469
353
|
* @throws {RequiredError}
|
|
470
|
-
* @memberof GTINsApi
|
|
471
354
|
*/
|
|
472
|
-
importGtins(requestParameters: GTINsApiImportGtinsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
355
|
+
importGtins(requestParameters: GTINsApiImportGtinsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportGtins202Response, any, {}>>;
|
|
473
356
|
/**
|
|
474
357
|
* List GTINs
|
|
475
358
|
* @summary List gtins
|
|
476
359
|
* @param {GTINsApiListGtinsRequest} requestParameters Request parameters.
|
|
477
360
|
* @param {*} [options] Override http request option.
|
|
478
361
|
* @throws {RequiredError}
|
|
479
|
-
* @memberof GTINsApi
|
|
480
362
|
*/
|
|
481
|
-
listGtins(requestParameters: GTINsApiListGtinsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GTINsResponse, any>>;
|
|
363
|
+
listGtins(requestParameters: GTINsApiListGtinsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GTINsResponse, any, {}>>;
|
|
482
364
|
/**
|
|
483
365
|
* Unassign a GTIN from a variant
|
|
484
366
|
* @summary Unassign GTIN
|
|
485
367
|
* @param {GTINsApiUnassignGtinRequest} requestParameters Request parameters.
|
|
486
368
|
* @param {*} [options] Override http request option.
|
|
487
369
|
* @throws {RequiredError}
|
|
488
|
-
* @memberof GTINsApi
|
|
489
370
|
*/
|
|
490
|
-
unassignGtin(requestParameters: GTINsApiUnassignGtinRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
371
|
+
unassignGtin(requestParameters: GTINsApiUnassignGtinRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
491
372
|
}
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GTINs API
|
|
5
5
|
* Manage GTINs
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.6.
|
|
7
|
+
* The version of the OpenAPI document: 0.6.6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,7 +28,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject,
|
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
29
|
/**
|
|
30
30
|
* GTINsApi - axios parameter creator
|
|
31
|
-
* @export
|
|
32
31
|
*/
|
|
33
32
|
export const GTINsApiAxiosParamCreator = function (configuration) {
|
|
34
33
|
return {
|
|
@@ -286,7 +285,6 @@ export const GTINsApiAxiosParamCreator = function (configuration) {
|
|
|
286
285
|
};
|
|
287
286
|
/**
|
|
288
287
|
* GTINsApi - functional programming interface
|
|
289
|
-
* @export
|
|
290
288
|
*/
|
|
291
289
|
export const GTINsApiFp = function (configuration) {
|
|
292
290
|
const localVarAxiosParamCreator = GTINsApiAxiosParamCreator(configuration);
|
|
@@ -400,7 +398,6 @@ export const GTINsApiFp = function (configuration) {
|
|
|
400
398
|
};
|
|
401
399
|
/**
|
|
402
400
|
* GTINsApi - factory interface
|
|
403
|
-
* @export
|
|
404
401
|
*/
|
|
405
402
|
export const GTINsApiFactory = function (configuration, basePath, axios) {
|
|
406
403
|
const localVarFp = GTINsApiFp(configuration);
|
|
@@ -469,9 +466,6 @@ export const GTINsApiFactory = function (configuration, basePath, axios) {
|
|
|
469
466
|
};
|
|
470
467
|
/**
|
|
471
468
|
* GTINsApi - object-oriented interface
|
|
472
|
-
* @export
|
|
473
|
-
* @class GTINsApi
|
|
474
|
-
* @extends {BaseAPI}
|
|
475
469
|
*/
|
|
476
470
|
export class GTINsApi extends BaseAPI {
|
|
477
471
|
/**
|
|
@@ -480,7 +474,6 @@ export class GTINsApi extends BaseAPI {
|
|
|
480
474
|
* @param {GTINsApiAssignGtinRequest} requestParameters Request parameters.
|
|
481
475
|
* @param {*} [options] Override http request option.
|
|
482
476
|
* @throws {RequiredError}
|
|
483
|
-
* @memberof GTINsApi
|
|
484
477
|
*/
|
|
485
478
|
assignGtin(requestParameters, options) {
|
|
486
479
|
return GTINsApiFp(this.configuration).assignGtin(requestParameters.project, requestParameters.gtin, requestParameters.assignGtinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -491,7 +484,6 @@ export class GTINsApi extends BaseAPI {
|
|
|
491
484
|
* @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
|
|
492
485
|
* @param {*} [options] Override http request option.
|
|
493
486
|
* @throws {RequiredError}
|
|
494
|
-
* @memberof GTINsApi
|
|
495
487
|
*/
|
|
496
488
|
exportGtins(requestParameters, options) {
|
|
497
489
|
return GTINsApiFp(this.configuration).exportGtins(requestParameters.project, requestParameters.gtins, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -502,7 +494,6 @@ export class GTINsApi extends BaseAPI {
|
|
|
502
494
|
* @param {GTINsApiGetGtinRequest} requestParameters Request parameters.
|
|
503
495
|
* @param {*} [options] Override http request option.
|
|
504
496
|
* @throws {RequiredError}
|
|
505
|
-
* @memberof GTINsApi
|
|
506
497
|
*/
|
|
507
498
|
getGtin(requestParameters, options) {
|
|
508
499
|
return GTINsApiFp(this.configuration).getGtin(requestParameters.project, requestParameters.gtin, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -513,7 +504,6 @@ export class GTINsApi extends BaseAPI {
|
|
|
513
504
|
* @param {GTINsApiImportGtinsRequest} requestParameters Request parameters.
|
|
514
505
|
* @param {*} [options] Override http request option.
|
|
515
506
|
* @throws {RequiredError}
|
|
516
|
-
* @memberof GTINsApi
|
|
517
507
|
*/
|
|
518
508
|
importGtins(requestParameters, options) {
|
|
519
509
|
return GTINsApiFp(this.configuration).importGtins(requestParameters.project, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -524,7 +514,6 @@ export class GTINsApi extends BaseAPI {
|
|
|
524
514
|
* @param {GTINsApiListGtinsRequest} requestParameters Request parameters.
|
|
525
515
|
* @param {*} [options] Override http request option.
|
|
526
516
|
* @throws {RequiredError}
|
|
527
|
-
* @memberof GTINsApi
|
|
528
517
|
*/
|
|
529
518
|
listGtins(requestParameters, options) {
|
|
530
519
|
return GTINsApiFp(this.configuration).listGtins(requestParameters.project, requestParameters.pageSize, requestParameters.pageToken, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -535,7 +524,6 @@ export class GTINsApi extends BaseAPI {
|
|
|
535
524
|
* @param {GTINsApiUnassignGtinRequest} requestParameters Request parameters.
|
|
536
525
|
* @param {*} [options] Override http request option.
|
|
537
526
|
* @throws {RequiredError}
|
|
538
|
-
* @memberof GTINsApi
|
|
539
527
|
*/
|
|
540
528
|
unassignGtin(requestParameters, options) {
|
|
541
529
|
return GTINsApiFp(this.configuration).unassignGtin(requestParameters.project, requestParameters.gtin, options).then((request) => request(this.axios, this.basePath));
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GTINs API
|
|
3
3
|
* Manage GTINs
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.6.
|
|
5
|
+
* The version of the OpenAPI document: 0.6.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GTINs API
|
|
5
5
|
* Manage GTINs
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.6.
|
|
7
|
+
* The version of the OpenAPI document: 0.6.6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,21 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
15
|
export const BASE_PATH = "https://api.podos.io".replace(/\/+$/, "");
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
16
|
export const COLLECTION_FORMATS = {
|
|
21
17
|
csv: ",",
|
|
22
18
|
ssv: " ",
|
|
23
19
|
tsv: "\t",
|
|
24
20
|
pipes: "|",
|
|
25
21
|
};
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @class BaseAPI
|
|
30
|
-
*/
|
|
31
22
|
export class BaseAPI {
|
|
32
23
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
24
|
var _a;
|
|
@@ -40,12 +31,6 @@ export class BaseAPI {
|
|
|
40
31
|
}
|
|
41
32
|
}
|
|
42
33
|
;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @export
|
|
46
|
-
* @class RequiredError
|
|
47
|
-
* @extends {Error}
|
|
48
|
-
*/
|
|
49
34
|
export class RequiredError extends Error {
|
|
50
35
|
constructor(field, msg) {
|
|
51
36
|
super(msg);
|
|
@@ -53,8 +38,4 @@ export class RequiredError extends Error {
|
|
|
53
38
|
this.name = "RequiredError";
|
|
54
39
|
}
|
|
55
40
|
}
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
41
|
export const operationServerMap = {};
|
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GTINs API
|
|
3
3
|
* Manage GTINs
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.6.
|
|
5
|
+
* The version of the OpenAPI document: 0.6.6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,49 +23,32 @@ export declare class Configuration {
|
|
|
23
23
|
/**
|
|
24
24
|
* parameter for apiKey security
|
|
25
25
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
26
|
*/
|
|
28
27
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
28
|
/**
|
|
30
29
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
30
|
*/
|
|
35
31
|
username?: string;
|
|
36
32
|
/**
|
|
37
33
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
34
|
*/
|
|
42
35
|
password?: string;
|
|
43
36
|
/**
|
|
44
37
|
* parameter for oauth2 security
|
|
45
38
|
* @param name security name
|
|
46
39
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
40
|
*/
|
|
49
41
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
42
|
/**
|
|
51
43
|
* override base path
|
|
52
|
-
*
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof Configuration
|
|
55
44
|
*/
|
|
56
45
|
basePath?: string;
|
|
57
46
|
/**
|
|
58
47
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
48
|
*/
|
|
63
49
|
serverIndex?: number;
|
|
64
50
|
/**
|
|
65
51
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
52
|
*/
|
|
70
53
|
baseOptions?: any;
|
|
71
54
|
/**
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED