@teemill/gtins 0.7.1 → 0.7.4

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.
@@ -5,6 +5,13 @@ api.ts
5
5
  base.ts
6
6
  common.ts
7
7
  configuration.ts
8
+ docs/ApiError.md
9
+ docs/AssignGtinRequest.md
10
+ docs/GTIN.md
11
+ docs/GTINVariantsInner.md
12
+ docs/GTINsApi.md
13
+ docs/GTINsResponse.md
14
+ docs/ImportGtins202Response.md
8
15
  git_push.sh
9
16
  index.ts
10
17
  package.json
@@ -1 +1 @@
1
- 7.6.0
1
+ 7.22.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/gtins@0.7.1
1
+ ## @teemill/gtins@0.7.4
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.7.1 --save
39
+ npm install @teemill/gtins@0.7.4 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * GTINs API
4
+ * GTINs
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.7.1
7
+ * The version of the OpenAPI document: 0.7.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -81,7 +81,7 @@ export const GTINsApiAxiosParamCreator = function (configuration?: Configuration
81
81
  // verify required parameter 'gtin' is not null or undefined
82
82
  assertParamExists('assignGtin', 'gtin', gtin)
83
83
  const localVarPath = `/v1/gtins/{gtin}/assign`
84
- .replace(`{${"gtin"}}`, encodeURIComponent(String(gtin)));
84
+ .replace('{gtin}', encodeURIComponent(String(gtin)));
85
85
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
86
86
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
87
87
  let baseOptions;
@@ -180,7 +180,7 @@ export const GTINsApiAxiosParamCreator = function (configuration?: Configuration
180
180
  // verify required parameter 'gtin' is not null or undefined
181
181
  assertParamExists('getGtin', 'gtin', gtin)
182
182
  const localVarPath = `/v1/gtins/{gtin}`
183
- .replace(`{${"gtin"}}`, encodeURIComponent(String(gtin)));
183
+ .replace('{gtin}', encodeURIComponent(String(gtin)));
184
184
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
185
185
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
186
186
  let baseOptions;
@@ -334,7 +334,7 @@ export const GTINsApiAxiosParamCreator = function (configuration?: Configuration
334
334
  // verify required parameter 'gtin' is not null or undefined
335
335
  assertParamExists('unassignGtin', 'gtin', gtin)
336
336
  const localVarPath = `/v1/gtins/{gtin}/unassign`
337
- .replace(`{${"gtin"}}`, encodeURIComponent(String(gtin)));
337
+ .replace('{gtin}', encodeURIComponent(String(gtin)));
338
338
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
339
339
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
340
340
  let baseOptions;
package/base.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * GTINs API
4
+ * GTINs
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.7.1
7
+ * The version of the OpenAPI document: 0.7.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * GTINs API
4
+ * GTINs
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.7.1
7
+ * The version of the OpenAPI document: 0.7.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /**
3
- * GTINs API
3
+ * GTINs
4
4
  * Manage GTINs
5
5
  *
6
- * The version of the OpenAPI document: 0.7.1
6
+ * The version of the OpenAPI document: 0.7.4
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -115,7 +115,7 @@ export class Configuration {
115
115
  * @return True if the given MIME is JSON, false otherwise.
116
116
  */
117
117
  public isJsonMime(mime: string): boolean {
118
- const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
119
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
118
+ const jsonMime: RegExp = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
119
+ return mime !== null && jsonMime.test(mime);
120
120
  }
121
121
  }
package/dist/api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * GTINs API
2
+ * GTINs
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.7.1
5
+ * The version of the OpenAPI document: 0.7.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * GTINs API
5
+ * GTINs
6
6
  * Manage GTINs
7
7
  *
8
- * The version of the OpenAPI document: 0.7.1
8
+ * The version of the OpenAPI document: 0.7.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -49,7 +49,7 @@ const GTINsApiAxiosParamCreator = function (configuration) {
49
49
  // verify required parameter 'gtin' is not null or undefined
50
50
  (0, common_1.assertParamExists)('assignGtin', 'gtin', gtin);
51
51
  const localVarPath = `/v1/gtins/{gtin}/assign`
52
- .replace(`{${"gtin"}}`, encodeURIComponent(String(gtin)));
52
+ .replace('{gtin}', encodeURIComponent(String(gtin)));
53
53
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
54
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
55
55
  let baseOptions;
@@ -133,7 +133,7 @@ const GTINsApiAxiosParamCreator = function (configuration) {
133
133
  // verify required parameter 'gtin' is not null or undefined
134
134
  (0, common_1.assertParamExists)('getGtin', 'gtin', gtin);
135
135
  const localVarPath = `/v1/gtins/{gtin}`
136
- .replace(`{${"gtin"}}`, encodeURIComponent(String(gtin)));
136
+ .replace('{gtin}', encodeURIComponent(String(gtin)));
137
137
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
138
138
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
139
139
  let baseOptions;
@@ -263,7 +263,7 @@ const GTINsApiAxiosParamCreator = function (configuration) {
263
263
  // verify required parameter 'gtin' is not null or undefined
264
264
  (0, common_1.assertParamExists)('unassignGtin', 'gtin', gtin);
265
265
  const localVarPath = `/v1/gtins/{gtin}/unassign`
266
- .replace(`{${"gtin"}}`, encodeURIComponent(String(gtin)));
266
+ .replace('{gtin}', encodeURIComponent(String(gtin)));
267
267
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
268
268
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
269
269
  let baseOptions;
package/dist/base.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * GTINs API
2
+ * GTINs
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.7.1
5
+ * The version of the OpenAPI document: 0.7.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * GTINs API
5
+ * GTINs
6
6
  * Manage GTINs
7
7
  *
8
- * The version of the OpenAPI document: 0.7.1
8
+ * The version of the OpenAPI document: 0.7.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * GTINs API
2
+ * GTINs
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.7.1
5
+ * The version of the OpenAPI document: 0.7.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * GTINs API
5
+ * GTINs
6
6
  * Manage GTINs
7
7
  *
8
- * The version of the OpenAPI document: 0.7.1
8
+ * The version of the OpenAPI document: 0.7.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * GTINs API
2
+ * GTINs
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.7.1
5
+ * The version of the OpenAPI document: 0.7.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  /* tslint:disable */
3
3
  /**
4
- * GTINs API
4
+ * GTINs
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.7.1
7
+ * The version of the OpenAPI document: 0.7.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -37,8 +37,8 @@ class Configuration {
37
37
  * @return True if the given MIME is JSON, false otherwise.
38
38
  */
39
39
  isJsonMime(mime) {
40
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
41
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
40
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
41
+ return mime !== null && jsonMime.test(mime);
42
42
  }
43
43
  }
44
44
  exports.Configuration = Configuration;
package/dist/esm/api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * GTINs API
2
+ * GTINs
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.7.1
5
+ * The version of the OpenAPI document: 0.7.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * GTINs API
4
+ * GTINs
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.7.1
7
+ * The version of the OpenAPI document: 0.7.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -46,7 +46,7 @@ export const GTINsApiAxiosParamCreator = function (configuration) {
46
46
  // verify required parameter 'gtin' is not null or undefined
47
47
  assertParamExists('assignGtin', 'gtin', gtin);
48
48
  const localVarPath = `/v1/gtins/{gtin}/assign`
49
- .replace(`{${"gtin"}}`, encodeURIComponent(String(gtin)));
49
+ .replace('{gtin}', encodeURIComponent(String(gtin)));
50
50
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
51
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
52
  let baseOptions;
@@ -130,7 +130,7 @@ export const GTINsApiAxiosParamCreator = function (configuration) {
130
130
  // verify required parameter 'gtin' is not null or undefined
131
131
  assertParamExists('getGtin', 'gtin', gtin);
132
132
  const localVarPath = `/v1/gtins/{gtin}`
133
- .replace(`{${"gtin"}}`, encodeURIComponent(String(gtin)));
133
+ .replace('{gtin}', encodeURIComponent(String(gtin)));
134
134
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
135
135
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
136
136
  let baseOptions;
@@ -260,7 +260,7 @@ export const GTINsApiAxiosParamCreator = function (configuration) {
260
260
  // verify required parameter 'gtin' is not null or undefined
261
261
  assertParamExists('unassignGtin', 'gtin', gtin);
262
262
  const localVarPath = `/v1/gtins/{gtin}/unassign`
263
- .replace(`{${"gtin"}}`, encodeURIComponent(String(gtin)));
263
+ .replace('{gtin}', encodeURIComponent(String(gtin)));
264
264
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
265
265
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
266
266
  let baseOptions;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * GTINs API
2
+ * GTINs
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.7.1
5
+ * The version of the OpenAPI document: 0.7.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * GTINs API
4
+ * GTINs
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.7.1
7
+ * The version of the OpenAPI document: 0.7.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * GTINs API
2
+ * GTINs
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.7.1
5
+ * The version of the OpenAPI document: 0.7.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * GTINs API
4
+ * GTINs
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.7.1
7
+ * The version of the OpenAPI document: 0.7.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * GTINs API
2
+ * GTINs
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.7.1
5
+ * The version of the OpenAPI document: 0.7.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,9 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /**
3
- * GTINs API
3
+ * GTINs
4
4
  * Manage GTINs
5
5
  *
6
- * The version of the OpenAPI document: 0.7.1
6
+ * The version of the OpenAPI document: 0.7.4
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,7 +34,7 @@ export class Configuration {
34
34
  * @return True if the given MIME is JSON, false otherwise.
35
35
  */
36
36
  isJsonMime(mime) {
37
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
38
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
37
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
38
+ return mime !== null && jsonMime.test(mime);
39
39
  }
40
40
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
- * GTINs API
2
+ * GTINs
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.7.1
5
+ * The version of the OpenAPI document: 0.7.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * GTINs API
4
+ * GTINs
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.7.1
7
+ * The version of the OpenAPI document: 0.7.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * GTINs API
2
+ * GTINs
3
3
  * Manage GTINs
4
4
  *
5
- * The version of the OpenAPI document: 0.7.1
5
+ * The version of the OpenAPI document: 0.7.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * GTINs API
5
+ * GTINs
6
6
  * Manage GTINs
7
7
  *
8
- * The version of the OpenAPI document: 0.7.1
8
+ * The version of the OpenAPI document: 0.7.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/index.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * GTINs API
4
+ * GTINs
5
5
  * Manage GTINs
6
6
  *
7
- * The version of the OpenAPI document: 0.7.1
7
+ * The version of the OpenAPI document: 0.7.4
8
8
  *
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.7.1",
3
+ "version": "0.7.4",
4
4
  "description": "OpenAPI client for @teemill/gtins",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "prepare": "npm run build"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "1.13.5"
27
+ "axios": "^1.16.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "12.11.5 - 12.20.42",