@teemill/gtins 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/gtins@0.4.1
1
+ ## @teemill/gtins@0.5.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/gtins@0.4.1 --save
39
+ npm install @teemill/gtins@0.5.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * GTINs API
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.4.1
7
+ * The version of the OpenAPI document: 0.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -168,10 +168,14 @@ export const GTINsApiAxiosParamCreator = function (configuration?: Configuration
168
168
  /**
169
169
  * Export a CSV of a project\'s GTINs
170
170
  * @summary Export GTINs
171
+ * @param {string} project What project it is
172
+ * @param {string} [gtins] GTINs
171
173
  * @param {*} [options] Override http request option.
172
174
  * @throws {RequiredError}
173
175
  */
174
- exportGtins: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
176
+ exportGtins: async (project: string, gtins?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
177
+ // verify required parameter 'project' is not null or undefined
178
+ assertParamExists('exportGtins', 'project', project)
175
179
  const localVarPath = `/v1/gtins/export`;
176
180
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
177
181
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -180,7 +184,7 @@ export const GTINsApiAxiosParamCreator = function (configuration?: Configuration
180
184
  baseOptions = configuration.baseOptions;
181
185
  }
182
186
 
183
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
187
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
184
188
  const localVarHeaderParameter = {} as any;
185
189
  const localVarQueryParameter = {} as any;
186
190
 
@@ -191,6 +195,14 @@ export const GTINsApiAxiosParamCreator = function (configuration?: Configuration
191
195
  // authentication api-key required
192
196
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
193
197
 
198
+ if (project !== undefined) {
199
+ localVarQueryParameter['project'] = project;
200
+ }
201
+
202
+ if (gtins !== undefined) {
203
+ localVarQueryParameter['gtins'] = gtins;
204
+ }
205
+
194
206
 
195
207
 
196
208
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -433,11 +445,13 @@ export const GTINsApiFp = function(configuration?: Configuration) {
433
445
  /**
434
446
  * Export a CSV of a project\'s GTINs
435
447
  * @summary Export GTINs
448
+ * @param {string} project What project it is
449
+ * @param {string} [gtins] GTINs
436
450
  * @param {*} [options] Override http request option.
437
451
  * @throws {RequiredError}
438
452
  */
439
- async exportGtins(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
440
- const localVarAxiosArgs = await localVarAxiosParamCreator.exportGtins(options);
453
+ async exportGtins(project: string, gtins?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
454
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportGtins(project, gtins, options);
441
455
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
442
456
  const localVarOperationServerBasePath = operationServerMap['GTINsApi.exportGtins']?.[localVarOperationServerIndex]?.url;
443
457
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -523,11 +537,12 @@ export const GTINsApiFactory = function (configuration?: Configuration, basePath
523
537
  /**
524
538
  * Export a CSV of a project\'s GTINs
525
539
  * @summary Export GTINs
540
+ * @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
526
541
  * @param {*} [options] Override http request option.
527
542
  * @throws {RequiredError}
528
543
  */
529
- exportGtins(options?: RawAxiosRequestConfig): AxiosPromise<File> {
530
- return localVarFp.exportGtins(options).then((request) => request(axios, basePath));
544
+ exportGtins(requestParameters: GTINsApiExportGtinsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
545
+ return localVarFp.exportGtins(requestParameters.project, requestParameters.gtins, options).then((request) => request(axios, basePath));
531
546
  },
532
547
  /**
533
548
  * Get a GTIN
@@ -600,6 +615,27 @@ export interface GTINsApiAssignGtinRequest {
600
615
  readonly assignGtinRequest?: AssignGtinRequest
601
616
  }
602
617
 
618
+ /**
619
+ * Request parameters for exportGtins operation in GTINsApi.
620
+ * @export
621
+ * @interface GTINsApiExportGtinsRequest
622
+ */
623
+ export interface GTINsApiExportGtinsRequest {
624
+ /**
625
+ * What project it is
626
+ * @type {string}
627
+ * @memberof GTINsApiExportGtins
628
+ */
629
+ readonly project: string
630
+
631
+ /**
632
+ * GTINs
633
+ * @type {string}
634
+ * @memberof GTINsApiExportGtins
635
+ */
636
+ readonly gtins?: string
637
+ }
638
+
603
639
  /**
604
640
  * Request parameters for getGtin operation in GTINsApi.
605
641
  * @export
@@ -720,12 +756,13 @@ export class GTINsApi extends BaseAPI {
720
756
  /**
721
757
  * Export a CSV of a project\'s GTINs
722
758
  * @summary Export GTINs
759
+ * @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
723
760
  * @param {*} [options] Override http request option.
724
761
  * @throws {RequiredError}
725
762
  * @memberof GTINsApi
726
763
  */
727
- public exportGtins(options?: RawAxiosRequestConfig) {
728
- return GTINsApiFp(this.configuration).exportGtins(options).then((request) => request(this.axios, this.basePath));
764
+ public exportGtins(requestParameters: GTINsApiExportGtinsRequest, options?: RawAxiosRequestConfig) {
765
+ return GTINsApiFp(this.configuration).exportGtins(requestParameters.project, requestParameters.gtins, options).then((request) => request(this.axios, this.basePath));
729
766
  }
730
767
 
731
768
  /**
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * GTINs API
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.4.1
7
+ * The version of the OpenAPI document: 0.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * GTINs API
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.4.1
7
+ * The version of the OpenAPI document: 0.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * GTINs API
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.4.1
7
+ * The version of the OpenAPI document: 0.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/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.4.1
5
+ * The version of the OpenAPI document: 0.5.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -114,10 +114,12 @@ export declare const GTINsApiAxiosParamCreator: (configuration?: Configuration)
114
114
  /**
115
115
  * Export a CSV of a project\'s GTINs
116
116
  * @summary Export GTINs
117
+ * @param {string} project What project it is
118
+ * @param {string} [gtins] GTINs
117
119
  * @param {*} [options] Override http request option.
118
120
  * @throws {RequiredError}
119
121
  */
120
- exportGtins: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
122
+ exportGtins: (project: string, gtins?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
121
123
  /**
122
124
  * Get a GTIN
123
125
  * @summary Get GTIN
@@ -175,10 +177,12 @@ export declare const GTINsApiFp: (configuration?: Configuration) => {
175
177
  /**
176
178
  * Export a CSV of a project\'s GTINs
177
179
  * @summary Export GTINs
180
+ * @param {string} project What project it is
181
+ * @param {string} [gtins] GTINs
178
182
  * @param {*} [options] Override http request option.
179
183
  * @throws {RequiredError}
180
184
  */
181
- exportGtins(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
185
+ exportGtins(project: string, gtins?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
182
186
  /**
183
187
  * Get a GTIN
184
188
  * @summary Get GTIN
@@ -234,10 +238,11 @@ export declare const GTINsApiFactory: (configuration?: Configuration, basePath?:
234
238
  /**
235
239
  * Export a CSV of a project\'s GTINs
236
240
  * @summary Export GTINs
241
+ * @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
237
242
  * @param {*} [options] Override http request option.
238
243
  * @throws {RequiredError}
239
244
  */
240
- exportGtins(options?: RawAxiosRequestConfig): AxiosPromise<File>;
245
+ exportGtins(requestParameters: GTINsApiExportGtinsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
241
246
  /**
242
247
  * Get a GTIN
243
248
  * @summary Get GTIN
@@ -296,6 +301,25 @@ export interface GTINsApiAssignGtinRequest {
296
301
  */
297
302
  readonly assignGtinRequest?: AssignGtinRequest;
298
303
  }
304
+ /**
305
+ * Request parameters for exportGtins operation in GTINsApi.
306
+ * @export
307
+ * @interface GTINsApiExportGtinsRequest
308
+ */
309
+ export interface GTINsApiExportGtinsRequest {
310
+ /**
311
+ * What project it is
312
+ * @type {string}
313
+ * @memberof GTINsApiExportGtins
314
+ */
315
+ readonly project: string;
316
+ /**
317
+ * GTINs
318
+ * @type {string}
319
+ * @memberof GTINsApiExportGtins
320
+ */
321
+ readonly gtins?: string;
322
+ }
299
323
  /**
300
324
  * Request parameters for getGtin operation in GTINsApi.
301
325
  * @export
@@ -403,11 +427,12 @@ export declare class GTINsApi extends BaseAPI {
403
427
  /**
404
428
  * Export a CSV of a project\'s GTINs
405
429
  * @summary Export GTINs
430
+ * @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
406
431
  * @param {*} [options] Override http request option.
407
432
  * @throws {RequiredError}
408
433
  * @memberof GTINsApi
409
434
  */
410
- exportGtins(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
435
+ exportGtins(requestParameters: GTINsApiExportGtinsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
411
436
  /**
412
437
  * Get a GTIN
413
438
  * @summary Get GTIN
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * GTINs API
6
6
  * Manage GTINs
7
7
  *
8
- * The version of the OpenAPI document: 0.4.1
8
+ * The version of the OpenAPI document: 0.5.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -81,10 +81,14 @@ const GTINsApiAxiosParamCreator = function (configuration) {
81
81
  /**
82
82
  * Export a CSV of a project\'s GTINs
83
83
  * @summary Export GTINs
84
+ * @param {string} project What project it is
85
+ * @param {string} [gtins] GTINs
84
86
  * @param {*} [options] Override http request option.
85
87
  * @throws {RequiredError}
86
88
  */
87
- exportGtins: (...args_2) => __awaiter(this, [...args_2], void 0, function* (options = {}) {
89
+ exportGtins: (project_2, gtins_1, ...args_2) => __awaiter(this, [project_2, gtins_1, ...args_2], void 0, function* (project, gtins, options = {}) {
90
+ // verify required parameter 'project' is not null or undefined
91
+ (0, common_1.assertParamExists)('exportGtins', 'project', project);
88
92
  const localVarPath = `/v1/gtins/export`;
89
93
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
90
94
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -92,7 +96,7 @@ const GTINsApiAxiosParamCreator = function (configuration) {
92
96
  if (configuration) {
93
97
  baseOptions = configuration.baseOptions;
94
98
  }
95
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
99
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
96
100
  const localVarHeaderParameter = {};
97
101
  const localVarQueryParameter = {};
98
102
  // authentication session-oauth required
@@ -100,6 +104,12 @@ const GTINsApiAxiosParamCreator = function (configuration) {
100
104
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
101
105
  // authentication api-key required
102
106
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
107
+ if (project !== undefined) {
108
+ localVarQueryParameter['project'] = project;
109
+ }
110
+ if (gtins !== undefined) {
111
+ localVarQueryParameter['gtins'] = gtins;
112
+ }
103
113
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
104
114
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
105
115
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -116,7 +126,7 @@ const GTINsApiAxiosParamCreator = function (configuration) {
116
126
  * @param {*} [options] Override http request option.
117
127
  * @throws {RequiredError}
118
128
  */
119
- getGtin: (project_2, gtin_2, ...args_3) => __awaiter(this, [project_2, gtin_2, ...args_3], void 0, function* (project, gtin, options = {}) {
129
+ getGtin: (project_3, gtin_2, ...args_3) => __awaiter(this, [project_3, gtin_2, ...args_3], void 0, function* (project, gtin, options = {}) {
120
130
  // verify required parameter 'project' is not null or undefined
121
131
  (0, common_1.assertParamExists)('getGtin', 'project', project);
122
132
  // verify required parameter 'gtin' is not null or undefined
@@ -156,7 +166,7 @@ const GTINsApiAxiosParamCreator = function (configuration) {
156
166
  * @param {*} [options] Override http request option.
157
167
  * @throws {RequiredError}
158
168
  */
159
- importGtins: (project_3, body_1, ...args_4) => __awaiter(this, [project_3, body_1, ...args_4], void 0, function* (project, body, options = {}) {
169
+ importGtins: (project_4, body_1, ...args_4) => __awaiter(this, [project_4, body_1, ...args_4], void 0, function* (project, body, options = {}) {
160
170
  // verify required parameter 'project' is not null or undefined
161
171
  (0, common_1.assertParamExists)('importGtins', 'project', project);
162
172
  const localVarPath = `/v1/gtins/import`;
@@ -197,7 +207,7 @@ const GTINsApiAxiosParamCreator = function (configuration) {
197
207
  * @param {*} [options] Override http request option.
198
208
  * @throws {RequiredError}
199
209
  */
200
- listGtins: (project_4, pageSize_1, pageToken_1, search_1, ...args_5) => __awaiter(this, [project_4, pageSize_1, pageToken_1, search_1, ...args_5], void 0, function* (project, pageSize, pageToken, search, options = {}) {
210
+ listGtins: (project_5, pageSize_1, pageToken_1, search_1, ...args_5) => __awaiter(this, [project_5, pageSize_1, pageToken_1, search_1, ...args_5], void 0, function* (project, pageSize, pageToken, search, options = {}) {
201
211
  // verify required parameter 'project' is not null or undefined
202
212
  (0, common_1.assertParamExists)('listGtins', 'project', project);
203
213
  const localVarPath = `/v1/gtins`;
@@ -243,7 +253,7 @@ const GTINsApiAxiosParamCreator = function (configuration) {
243
253
  * @param {*} [options] Override http request option.
244
254
  * @throws {RequiredError}
245
255
  */
246
- unassignGtin: (project_5, gtin_3, ...args_6) => __awaiter(this, [project_5, gtin_3, ...args_6], void 0, function* (project, gtin, options = {}) {
256
+ unassignGtin: (project_6, gtin_3, ...args_6) => __awaiter(this, [project_6, gtin_3, ...args_6], void 0, function* (project, gtin, options = {}) {
247
257
  // verify required parameter 'project' is not null or undefined
248
258
  (0, common_1.assertParamExists)('unassignGtin', 'project', project);
249
259
  // verify required parameter 'gtin' is not null or undefined
@@ -306,13 +316,15 @@ const GTINsApiFp = function (configuration) {
306
316
  /**
307
317
  * Export a CSV of a project\'s GTINs
308
318
  * @summary Export GTINs
319
+ * @param {string} project What project it is
320
+ * @param {string} [gtins] GTINs
309
321
  * @param {*} [options] Override http request option.
310
322
  * @throws {RequiredError}
311
323
  */
312
- exportGtins(options) {
324
+ exportGtins(project, gtins, options) {
313
325
  return __awaiter(this, void 0, void 0, function* () {
314
326
  var _a, _b, _c;
315
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportGtins(options);
327
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportGtins(project, gtins, options);
316
328
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
317
329
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GTINsApi.exportGtins']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
318
330
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -411,11 +423,12 @@ const GTINsApiFactory = function (configuration, basePath, axios) {
411
423
  /**
412
424
  * Export a CSV of a project\'s GTINs
413
425
  * @summary Export GTINs
426
+ * @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
414
427
  * @param {*} [options] Override http request option.
415
428
  * @throws {RequiredError}
416
429
  */
417
- exportGtins(options) {
418
- return localVarFp.exportGtins(options).then((request) => request(axios, basePath));
430
+ exportGtins(requestParameters, options) {
431
+ return localVarFp.exportGtins(requestParameters.project, requestParameters.gtins, options).then((request) => request(axios, basePath));
419
432
  },
420
433
  /**
421
434
  * Get a GTIN
@@ -481,12 +494,13 @@ class GTINsApi extends base_1.BaseAPI {
481
494
  /**
482
495
  * Export a CSV of a project\'s GTINs
483
496
  * @summary Export GTINs
497
+ * @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
484
498
  * @param {*} [options] Override http request option.
485
499
  * @throws {RequiredError}
486
500
  * @memberof GTINsApi
487
501
  */
488
- exportGtins(options) {
489
- return (0, exports.GTINsApiFp)(this.configuration).exportGtins(options).then((request) => request(this.axios, this.basePath));
502
+ exportGtins(requestParameters, options) {
503
+ return (0, exports.GTINsApiFp)(this.configuration).exportGtins(requestParameters.project, requestParameters.gtins, options).then((request) => request(this.axios, this.basePath));
490
504
  }
491
505
  /**
492
506
  * Get a GTIN
package/dist/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.4.1
5
+ * The version of the OpenAPI document: 0.5.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * GTINs API
6
6
  * Manage GTINs
7
7
  *
8
- * The version of the OpenAPI document: 0.4.1
8
+ * The version of the OpenAPI document: 0.5.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.4.1
5
+ * The version of the OpenAPI document: 0.5.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * GTINs API
6
6
  * Manage GTINs
7
7
  *
8
- * The version of the OpenAPI document: 0.4.1
8
+ * The version of the OpenAPI document: 0.5.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * GTINs API
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.4.1
5
+ * The version of the OpenAPI document: 0.5.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * GTINs API
6
6
  * Manage GTINs
7
7
  *
8
- * The version of the OpenAPI document: 0.4.1
8
+ * The version of the OpenAPI document: 0.5.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.4.1
5
+ * The version of the OpenAPI document: 0.5.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -114,10 +114,12 @@ export declare const GTINsApiAxiosParamCreator: (configuration?: Configuration)
114
114
  /**
115
115
  * Export a CSV of a project\'s GTINs
116
116
  * @summary Export GTINs
117
+ * @param {string} project What project it is
118
+ * @param {string} [gtins] GTINs
117
119
  * @param {*} [options] Override http request option.
118
120
  * @throws {RequiredError}
119
121
  */
120
- exportGtins: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
122
+ exportGtins: (project: string, gtins?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
121
123
  /**
122
124
  * Get a GTIN
123
125
  * @summary Get GTIN
@@ -175,10 +177,12 @@ export declare const GTINsApiFp: (configuration?: Configuration) => {
175
177
  /**
176
178
  * Export a CSV of a project\'s GTINs
177
179
  * @summary Export GTINs
180
+ * @param {string} project What project it is
181
+ * @param {string} [gtins] GTINs
178
182
  * @param {*} [options] Override http request option.
179
183
  * @throws {RequiredError}
180
184
  */
181
- exportGtins(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
185
+ exportGtins(project: string, gtins?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
182
186
  /**
183
187
  * Get a GTIN
184
188
  * @summary Get GTIN
@@ -234,10 +238,11 @@ export declare const GTINsApiFactory: (configuration?: Configuration, basePath?:
234
238
  /**
235
239
  * Export a CSV of a project\'s GTINs
236
240
  * @summary Export GTINs
241
+ * @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
237
242
  * @param {*} [options] Override http request option.
238
243
  * @throws {RequiredError}
239
244
  */
240
- exportGtins(options?: RawAxiosRequestConfig): AxiosPromise<File>;
245
+ exportGtins(requestParameters: GTINsApiExportGtinsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
241
246
  /**
242
247
  * Get a GTIN
243
248
  * @summary Get GTIN
@@ -296,6 +301,25 @@ export interface GTINsApiAssignGtinRequest {
296
301
  */
297
302
  readonly assignGtinRequest?: AssignGtinRequest;
298
303
  }
304
+ /**
305
+ * Request parameters for exportGtins operation in GTINsApi.
306
+ * @export
307
+ * @interface GTINsApiExportGtinsRequest
308
+ */
309
+ export interface GTINsApiExportGtinsRequest {
310
+ /**
311
+ * What project it is
312
+ * @type {string}
313
+ * @memberof GTINsApiExportGtins
314
+ */
315
+ readonly project: string;
316
+ /**
317
+ * GTINs
318
+ * @type {string}
319
+ * @memberof GTINsApiExportGtins
320
+ */
321
+ readonly gtins?: string;
322
+ }
299
323
  /**
300
324
  * Request parameters for getGtin operation in GTINsApi.
301
325
  * @export
@@ -403,11 +427,12 @@ export declare class GTINsApi extends BaseAPI {
403
427
  /**
404
428
  * Export a CSV of a project\'s GTINs
405
429
  * @summary Export GTINs
430
+ * @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
406
431
  * @param {*} [options] Override http request option.
407
432
  * @throws {RequiredError}
408
433
  * @memberof GTINsApi
409
434
  */
410
- exportGtins(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
435
+ exportGtins(requestParameters: GTINsApiExportGtinsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
411
436
  /**
412
437
  * Get a GTIN
413
438
  * @summary Get GTIN
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.4.1
7
+ * The version of the OpenAPI document: 0.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -78,10 +78,14 @@ export const GTINsApiAxiosParamCreator = function (configuration) {
78
78
  /**
79
79
  * Export a CSV of a project\'s GTINs
80
80
  * @summary Export GTINs
81
+ * @param {string} project What project it is
82
+ * @param {string} [gtins] GTINs
81
83
  * @param {*} [options] Override http request option.
82
84
  * @throws {RequiredError}
83
85
  */
84
- exportGtins: (...args_2) => __awaiter(this, [...args_2], void 0, function* (options = {}) {
86
+ exportGtins: (project_2, gtins_1, ...args_2) => __awaiter(this, [project_2, gtins_1, ...args_2], void 0, function* (project, gtins, options = {}) {
87
+ // verify required parameter 'project' is not null or undefined
88
+ assertParamExists('exportGtins', 'project', project);
85
89
  const localVarPath = `/v1/gtins/export`;
86
90
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
91
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -89,7 +93,7 @@ export const GTINsApiAxiosParamCreator = function (configuration) {
89
93
  if (configuration) {
90
94
  baseOptions = configuration.baseOptions;
91
95
  }
92
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
96
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
93
97
  const localVarHeaderParameter = {};
94
98
  const localVarQueryParameter = {};
95
99
  // authentication session-oauth required
@@ -97,6 +101,12 @@ export const GTINsApiAxiosParamCreator = function (configuration) {
97
101
  yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
98
102
  // authentication api-key required
99
103
  yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
104
+ if (project !== undefined) {
105
+ localVarQueryParameter['project'] = project;
106
+ }
107
+ if (gtins !== undefined) {
108
+ localVarQueryParameter['gtins'] = gtins;
109
+ }
100
110
  setSearchParams(localVarUrlObj, localVarQueryParameter);
101
111
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
102
112
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -113,7 +123,7 @@ export const GTINsApiAxiosParamCreator = function (configuration) {
113
123
  * @param {*} [options] Override http request option.
114
124
  * @throws {RequiredError}
115
125
  */
116
- getGtin: (project_2, gtin_2, ...args_3) => __awaiter(this, [project_2, gtin_2, ...args_3], void 0, function* (project, gtin, options = {}) {
126
+ getGtin: (project_3, gtin_2, ...args_3) => __awaiter(this, [project_3, gtin_2, ...args_3], void 0, function* (project, gtin, options = {}) {
117
127
  // verify required parameter 'project' is not null or undefined
118
128
  assertParamExists('getGtin', 'project', project);
119
129
  // verify required parameter 'gtin' is not null or undefined
@@ -153,7 +163,7 @@ export const GTINsApiAxiosParamCreator = function (configuration) {
153
163
  * @param {*} [options] Override http request option.
154
164
  * @throws {RequiredError}
155
165
  */
156
- importGtins: (project_3, body_1, ...args_4) => __awaiter(this, [project_3, body_1, ...args_4], void 0, function* (project, body, options = {}) {
166
+ importGtins: (project_4, body_1, ...args_4) => __awaiter(this, [project_4, body_1, ...args_4], void 0, function* (project, body, options = {}) {
157
167
  // verify required parameter 'project' is not null or undefined
158
168
  assertParamExists('importGtins', 'project', project);
159
169
  const localVarPath = `/v1/gtins/import`;
@@ -194,7 +204,7 @@ export const GTINsApiAxiosParamCreator = function (configuration) {
194
204
  * @param {*} [options] Override http request option.
195
205
  * @throws {RequiredError}
196
206
  */
197
- listGtins: (project_4, pageSize_1, pageToken_1, search_1, ...args_5) => __awaiter(this, [project_4, pageSize_1, pageToken_1, search_1, ...args_5], void 0, function* (project, pageSize, pageToken, search, options = {}) {
207
+ listGtins: (project_5, pageSize_1, pageToken_1, search_1, ...args_5) => __awaiter(this, [project_5, pageSize_1, pageToken_1, search_1, ...args_5], void 0, function* (project, pageSize, pageToken, search, options = {}) {
198
208
  // verify required parameter 'project' is not null or undefined
199
209
  assertParamExists('listGtins', 'project', project);
200
210
  const localVarPath = `/v1/gtins`;
@@ -240,7 +250,7 @@ export const GTINsApiAxiosParamCreator = function (configuration) {
240
250
  * @param {*} [options] Override http request option.
241
251
  * @throws {RequiredError}
242
252
  */
243
- unassignGtin: (project_5, gtin_3, ...args_6) => __awaiter(this, [project_5, gtin_3, ...args_6], void 0, function* (project, gtin, options = {}) {
253
+ unassignGtin: (project_6, gtin_3, ...args_6) => __awaiter(this, [project_6, gtin_3, ...args_6], void 0, function* (project, gtin, options = {}) {
244
254
  // verify required parameter 'project' is not null or undefined
245
255
  assertParamExists('unassignGtin', 'project', project);
246
256
  // verify required parameter 'gtin' is not null or undefined
@@ -302,13 +312,15 @@ export const GTINsApiFp = function (configuration) {
302
312
  /**
303
313
  * Export a CSV of a project\'s GTINs
304
314
  * @summary Export GTINs
315
+ * @param {string} project What project it is
316
+ * @param {string} [gtins] GTINs
305
317
  * @param {*} [options] Override http request option.
306
318
  * @throws {RequiredError}
307
319
  */
308
- exportGtins(options) {
320
+ exportGtins(project, gtins, options) {
309
321
  return __awaiter(this, void 0, void 0, function* () {
310
322
  var _a, _b, _c;
311
- const localVarAxiosArgs = yield localVarAxiosParamCreator.exportGtins(options);
323
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportGtins(project, gtins, options);
312
324
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
313
325
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GTINsApi.exportGtins']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
314
326
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -406,11 +418,12 @@ export const GTINsApiFactory = function (configuration, basePath, axios) {
406
418
  /**
407
419
  * Export a CSV of a project\'s GTINs
408
420
  * @summary Export GTINs
421
+ * @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
409
422
  * @param {*} [options] Override http request option.
410
423
  * @throws {RequiredError}
411
424
  */
412
- exportGtins(options) {
413
- return localVarFp.exportGtins(options).then((request) => request(axios, basePath));
425
+ exportGtins(requestParameters, options) {
426
+ return localVarFp.exportGtins(requestParameters.project, requestParameters.gtins, options).then((request) => request(axios, basePath));
414
427
  },
415
428
  /**
416
429
  * Get a GTIN
@@ -475,12 +488,13 @@ export class GTINsApi extends BaseAPI {
475
488
  /**
476
489
  * Export a CSV of a project\'s GTINs
477
490
  * @summary Export GTINs
491
+ * @param {GTINsApiExportGtinsRequest} requestParameters Request parameters.
478
492
  * @param {*} [options] Override http request option.
479
493
  * @throws {RequiredError}
480
494
  * @memberof GTINsApi
481
495
  */
482
- exportGtins(options) {
483
- return GTINsApiFp(this.configuration).exportGtins(options).then((request) => request(this.axios, this.basePath));
496
+ exportGtins(requestParameters, options) {
497
+ return GTINsApiFp(this.configuration).exportGtins(requestParameters.project, requestParameters.gtins, options).then((request) => request(this.axios, this.basePath));
484
498
  }
485
499
  /**
486
500
  * Get a GTIN
@@ -2,7 +2,7 @@
2
2
  * GTINs API
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.4.1
5
+ * The version of the OpenAPI document: 0.5.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.4.1
7
+ * The version of the OpenAPI document: 0.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * GTINs API
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.4.1
5
+ * The version of the OpenAPI document: 0.5.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GTINs API
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.4.1
7
+ * The version of the OpenAPI document: 0.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * GTINs API
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.4.1
5
+ * The version of the OpenAPI document: 0.5.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * GTINs API
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.4.1
7
+ * The version of the OpenAPI document: 0.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * GTINs API
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.4.1
5
+ * The version of the OpenAPI document: 0.5.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * GTINs API
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.4.1
7
+ * The version of the OpenAPI document: 0.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.4.1
5
+ * The version of the OpenAPI document: 0.5.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * GTINs API
6
6
  * Manage GTINs
7
7
  *
8
- * The version of the OpenAPI document: 0.4.1
8
+ * The version of the OpenAPI document: 0.5.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * GTINs API
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.4.1
7
+ * The version of the OpenAPI document: 0.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/gtins",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "OpenAPI client for @teemill/gtins",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {