@teemill/gtins 0.7.2 → 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.
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/api.ts +4 -4
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +3 -3
- package/dist/api.d.ts +1 -1
- package/dist/api.js +4 -4
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +4 -4
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +3 -3
- 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/index.ts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.22.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/gtins@0.7.
|
|
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.
|
|
39
|
+
npm install @teemill/gtins@0.7.4 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GTINs
|
|
5
5
|
* Manage GTINs
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.7.
|
|
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(
|
|
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(
|
|
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(
|
|
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
package/common.ts
CHANGED
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* GTINs
|
|
4
4
|
* Manage GTINs
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 0.7.
|
|
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 =
|
|
119
|
-
return mime !== null &&
|
|
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
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* GTINs
|
|
6
6
|
* Manage GTINs
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.7.
|
|
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(
|
|
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(
|
|
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(
|
|
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
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GTINs
|
|
5
5
|
* Manage GTINs
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.7.
|
|
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 =
|
|
41
|
-
return mime !== null &&
|
|
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
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GTINs
|
|
5
5
|
* Manage GTINs
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.7.
|
|
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(
|
|
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(
|
|
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(
|
|
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;
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* GTINs
|
|
4
4
|
* Manage GTINs
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 0.7.
|
|
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 =
|
|
38
|
-
return mime !== null &&
|
|
37
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
38
|
+
return mime !== null && jsonMime.test(mime);
|
|
39
39
|
}
|
|
40
40
|
}
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teemill/gtins",
|
|
3
|
-
"version": "0.7.
|
|
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.
|
|
27
|
+
"axios": "^1.16.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "12.11.5 - 12.20.42",
|