@sp-api-sdk/data-kiosk-api-2023-11-15 3.0.16 → 3.0.17

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.
@@ -38,7 +38,7 @@ const DataKioskApiAxiosParamCreator = function (configuration) {
38
38
  // verify required parameter 'queryId' is not null or undefined
39
39
  (0, common_1.assertParamExists)('cancelQuery', 'queryId', queryId);
40
40
  const localVarPath = `/dataKiosk/2023-11-15/queries/{queryId}`
41
- .replace(`{${"queryId"}}`, encodeURIComponent(String(queryId)));
41
+ .replace('{queryId}', encodeURIComponent(String(queryId)));
42
42
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
43
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
44
44
  let baseOptions;
@@ -97,7 +97,7 @@ const DataKioskApiAxiosParamCreator = function (configuration) {
97
97
  // verify required parameter 'documentId' is not null or undefined
98
98
  (0, common_1.assertParamExists)('getDocument', 'documentId', documentId);
99
99
  const localVarPath = `/dataKiosk/2023-11-15/documents/{documentId}`
100
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
100
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
101
101
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
102
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
103
103
  let baseOptions;
@@ -175,7 +175,7 @@ const DataKioskApiAxiosParamCreator = function (configuration) {
175
175
  // verify required parameter 'queryId' is not null or undefined
176
176
  (0, common_1.assertParamExists)('getQuery', 'queryId', queryId);
177
177
  const localVarPath = `/dataKiosk/2023-11-15/queries/{queryId}`
178
- .replace(`{${"queryId"}}`, encodeURIComponent(String(queryId)));
178
+ .replace('{queryId}', encodeURIComponent(String(queryId)));
179
179
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
180
180
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
181
181
  let baseOptions;
@@ -380,5 +380,5 @@ exports.GetQueriesProcessingStatusesEnum = {
380
380
  Done: 'DONE',
381
381
  Fatal: 'FATAL',
382
382
  InProgress: 'IN_PROGRESS',
383
- InQueue: 'IN_QUEUE'
383
+ InQueue: 'IN_QUEUE',
384
384
  };
@@ -91,8 +91,8 @@ class Configuration {
91
91
  * @return True if the given MIME is JSON, false otherwise.
92
92
  */
93
93
  isJsonMime(mime) {
94
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
94
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
95
+ return mime !== null && jsonMime.test(mime);
96
96
  }
97
97
  }
98
98
  exports.Configuration = Configuration;
@@ -19,5 +19,5 @@ exports.QueryProcessingStatusEnum = {
19
19
  Done: 'DONE',
20
20
  Fatal: 'FATAL',
21
21
  InProgress: 'IN_PROGRESS',
22
- InQueue: 'IN_QUEUE'
22
+ InQueue: 'IN_QUEUE',
23
23
  };
@@ -32,7 +32,7 @@ export const DataKioskApiAxiosParamCreator = function (configuration) {
32
32
  // verify required parameter 'queryId' is not null or undefined
33
33
  assertParamExists('cancelQuery', 'queryId', queryId);
34
34
  const localVarPath = `/dataKiosk/2023-11-15/queries/{queryId}`
35
- .replace(`{${"queryId"}}`, encodeURIComponent(String(queryId)));
35
+ .replace('{queryId}', encodeURIComponent(String(queryId)));
36
36
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
37
37
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38
38
  let baseOptions;
@@ -91,7 +91,7 @@ export const DataKioskApiAxiosParamCreator = function (configuration) {
91
91
  // verify required parameter 'documentId' is not null or undefined
92
92
  assertParamExists('getDocument', 'documentId', documentId);
93
93
  const localVarPath = `/dataKiosk/2023-11-15/documents/{documentId}`
94
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
94
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
95
95
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
96
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
97
97
  let baseOptions;
@@ -169,7 +169,7 @@ export const DataKioskApiAxiosParamCreator = function (configuration) {
169
169
  // verify required parameter 'queryId' is not null or undefined
170
170
  assertParamExists('getQuery', 'queryId', queryId);
171
171
  const localVarPath = `/dataKiosk/2023-11-15/queries/{queryId}`
172
- .replace(`{${"queryId"}}`, encodeURIComponent(String(queryId)));
172
+ .replace('{queryId}', encodeURIComponent(String(queryId)));
173
173
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
174
174
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
175
175
  let baseOptions;
@@ -370,5 +370,5 @@ export const GetQueriesProcessingStatusesEnum = {
370
370
  Done: 'DONE',
371
371
  Fatal: 'FATAL',
372
372
  InProgress: 'IN_PROGRESS',
373
- InQueue: 'IN_QUEUE'
373
+ InQueue: 'IN_QUEUE',
374
374
  };
@@ -88,7 +88,7 @@ export class Configuration {
88
88
  * @return True if the given MIME is JSON, false otherwise.
89
89
  */
90
90
  isJsonMime(mime) {
91
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
91
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
92
+ return mime !== null && jsonMime.test(mime);
93
93
  }
94
94
  }
@@ -16,5 +16,5 @@ export const QueryProcessingStatusEnum = {
16
16
  Done: 'DONE',
17
17
  Fatal: 'FATAL',
18
18
  InProgress: 'IN_PROGRESS',
19
- InQueue: 'IN_QUEUE'
19
+ InQueue: 'IN_QUEUE',
20
20
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/data-kiosk-api-2023-11-15",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.",
5
- "version": "3.0.16",
5
+ "version": "3.0.17",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.30",
22
- "axios": "^1.13.6"
21
+ "@sp-api-sdk/common": "2.1.31",
22
+ "axios": "^1.15.2"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "data kiosk api"
42
42
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }