@sokol111/ecommerce-category-query-service-api 1.0.2 → 1.0.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/dist/api.d.ts +9 -55
- package/dist/api.js +15 -81
- 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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Category API
|
|
3
3
|
* API for querying categories
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.4
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -64,19 +64,11 @@ export interface ErrorResponse {
|
|
|
64
64
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
|
-
* @summary Get a list of all categories
|
|
67
|
+
* @summary Get a list of all active categories
|
|
68
68
|
* @param {*} [options] Override http request option.
|
|
69
69
|
* @throws {RequiredError}
|
|
70
70
|
*/
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @summary Get a category by ID
|
|
75
|
-
* @param {string} id
|
|
76
|
-
* @param {*} [options] Override http request option.
|
|
77
|
-
* @throws {RequiredError}
|
|
78
|
-
*/
|
|
79
|
-
getCategoryById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
|
+
getAllActiveCategories: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
80
72
|
};
|
|
81
73
|
/**
|
|
82
74
|
* DefaultApi - functional programming interface
|
|
@@ -85,19 +77,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
85
77
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
86
78
|
/**
|
|
87
79
|
*
|
|
88
|
-
* @summary Get a list of all categories
|
|
80
|
+
* @summary Get a list of all active categories
|
|
89
81
|
* @param {*} [options] Override http request option.
|
|
90
82
|
* @throws {RequiredError}
|
|
91
83
|
*/
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @summary Get a category by ID
|
|
96
|
-
* @param {string} id
|
|
97
|
-
* @param {*} [options] Override http request option.
|
|
98
|
-
* @throws {RequiredError}
|
|
99
|
-
*/
|
|
100
|
-
getCategoryById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryResponse>>;
|
|
84
|
+
getAllActiveCategories(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CategoryResponse>>>;
|
|
101
85
|
};
|
|
102
86
|
/**
|
|
103
87
|
* DefaultApi - factory interface
|
|
@@ -106,33 +90,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
106
90
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
107
91
|
/**
|
|
108
92
|
*
|
|
109
|
-
* @summary Get a list of all categories
|
|
110
|
-
* @param {*} [options] Override http request option.
|
|
111
|
-
* @throws {RequiredError}
|
|
112
|
-
*/
|
|
113
|
-
getAll(options?: RawAxiosRequestConfig): AxiosPromise<Array<CategoryResponse>>;
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @summary Get a category by ID
|
|
117
|
-
* @param {DefaultApiGetCategoryByIdRequest} requestParameters Request parameters.
|
|
93
|
+
* @summary Get a list of all active categories
|
|
118
94
|
* @param {*} [options] Override http request option.
|
|
119
95
|
* @throws {RequiredError}
|
|
120
96
|
*/
|
|
121
|
-
|
|
97
|
+
getAllActiveCategories(options?: RawAxiosRequestConfig): AxiosPromise<Array<CategoryResponse>>;
|
|
122
98
|
};
|
|
123
|
-
/**
|
|
124
|
-
* Request parameters for getCategoryById operation in DefaultApi.
|
|
125
|
-
* @export
|
|
126
|
-
* @interface DefaultApiGetCategoryByIdRequest
|
|
127
|
-
*/
|
|
128
|
-
export interface DefaultApiGetCategoryByIdRequest {
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @type {string}
|
|
132
|
-
* @memberof DefaultApiGetCategoryById
|
|
133
|
-
*/
|
|
134
|
-
readonly id: string;
|
|
135
|
-
}
|
|
136
99
|
/**
|
|
137
100
|
* DefaultApi - object-oriented interface
|
|
138
101
|
* @export
|
|
@@ -142,19 +105,10 @@ export interface DefaultApiGetCategoryByIdRequest {
|
|
|
142
105
|
export declare class DefaultApi extends BaseAPI {
|
|
143
106
|
/**
|
|
144
107
|
*
|
|
145
|
-
* @summary Get a list of all categories
|
|
146
|
-
* @param {*} [options] Override http request option.
|
|
147
|
-
* @throws {RequiredError}
|
|
148
|
-
* @memberof DefaultApi
|
|
149
|
-
*/
|
|
150
|
-
getAll(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CategoryResponse[], any>>;
|
|
151
|
-
/**
|
|
152
|
-
*
|
|
153
|
-
* @summary Get a category by ID
|
|
154
|
-
* @param {DefaultApiGetCategoryByIdRequest} requestParameters Request parameters.
|
|
108
|
+
* @summary Get a list of all active categories
|
|
155
109
|
* @param {*} [options] Override http request option.
|
|
156
110
|
* @throws {RequiredError}
|
|
157
111
|
* @memberof DefaultApi
|
|
158
112
|
*/
|
|
159
|
-
|
|
113
|
+
getAllActiveCategories(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CategoryResponse[], any>>;
|
|
160
114
|
}
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Category API
|
|
5
5
|
* API for querying categories
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.4
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import globalAxios from 'axios';
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL,
|
|
26
|
+
import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
29
|
/**
|
|
@@ -34,41 +34,12 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
34
34
|
return {
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @summary Get a list of all categories
|
|
37
|
+
* @summary Get a list of all active categories
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
39
39
|
* @throws {RequiredError}
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
const localVarPath = `/category/list`;
|
|
43
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45
|
-
let baseOptions;
|
|
46
|
-
if (configuration) {
|
|
47
|
-
baseOptions = configuration.baseOptions;
|
|
48
|
-
}
|
|
49
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
50
|
-
const localVarHeaderParameter = {};
|
|
51
|
-
const localVarQueryParameter = {};
|
|
52
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
55
|
-
return {
|
|
56
|
-
url: toPathString(localVarUrlObj),
|
|
57
|
-
options: localVarRequestOptions,
|
|
58
|
-
};
|
|
59
|
-
}),
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @summary Get a category by ID
|
|
63
|
-
* @param {string} id
|
|
64
|
-
* @param {*} [options] Override http request option.
|
|
65
|
-
* @throws {RequiredError}
|
|
66
|
-
*/
|
|
67
|
-
getCategoryById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
68
|
-
// verify required parameter 'id' is not null or undefined
|
|
69
|
-
assertParamExists('getCategoryById', 'id', id);
|
|
70
|
-
const localVarPath = `/category/get/{id}`
|
|
71
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
41
|
+
getAllActiveCategories: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
42
|
+
const localVarPath = `/category/list-active-categories`;
|
|
72
43
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
73
44
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
74
45
|
let baseOptions;
|
|
@@ -97,32 +68,16 @@ export const DefaultApiFp = function (configuration) {
|
|
|
97
68
|
return {
|
|
98
69
|
/**
|
|
99
70
|
*
|
|
100
|
-
* @summary Get a list of all categories
|
|
101
|
-
* @param {*} [options] Override http request option.
|
|
102
|
-
* @throws {RequiredError}
|
|
103
|
-
*/
|
|
104
|
-
getAll(options) {
|
|
105
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
-
var _a, _b, _c;
|
|
107
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAll(options);
|
|
108
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
109
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.getAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
110
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
111
|
-
});
|
|
112
|
-
},
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @summary Get a category by ID
|
|
116
|
-
* @param {string} id
|
|
71
|
+
* @summary Get a list of all active categories
|
|
117
72
|
* @param {*} [options] Override http request option.
|
|
118
73
|
* @throws {RequiredError}
|
|
119
74
|
*/
|
|
120
|
-
|
|
75
|
+
getAllActiveCategories(options) {
|
|
121
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
77
|
var _a, _b, _c;
|
|
123
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
78
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllActiveCategories(options);
|
|
124
79
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
125
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.
|
|
80
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.getAllActiveCategories']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
126
81
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
127
82
|
});
|
|
128
83
|
},
|
|
@@ -137,22 +92,12 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
137
92
|
return {
|
|
138
93
|
/**
|
|
139
94
|
*
|
|
140
|
-
* @summary Get a list of all categories
|
|
95
|
+
* @summary Get a list of all active categories
|
|
141
96
|
* @param {*} [options] Override http request option.
|
|
142
97
|
* @throws {RequiredError}
|
|
143
98
|
*/
|
|
144
|
-
|
|
145
|
-
return localVarFp.
|
|
146
|
-
},
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @summary Get a category by ID
|
|
150
|
-
* @param {DefaultApiGetCategoryByIdRequest} requestParameters Request parameters.
|
|
151
|
-
* @param {*} [options] Override http request option.
|
|
152
|
-
* @throws {RequiredError}
|
|
153
|
-
*/
|
|
154
|
-
getCategoryById(requestParameters, options) {
|
|
155
|
-
return localVarFp.getCategoryById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
99
|
+
getAllActiveCategories(options) {
|
|
100
|
+
return localVarFp.getAllActiveCategories(options).then((request) => request(axios, basePath));
|
|
156
101
|
},
|
|
157
102
|
};
|
|
158
103
|
};
|
|
@@ -165,23 +110,12 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
165
110
|
export class DefaultApi extends BaseAPI {
|
|
166
111
|
/**
|
|
167
112
|
*
|
|
168
|
-
* @summary Get a list of all categories
|
|
169
|
-
* @param {*} [options] Override http request option.
|
|
170
|
-
* @throws {RequiredError}
|
|
171
|
-
* @memberof DefaultApi
|
|
172
|
-
*/
|
|
173
|
-
getAll(options) {
|
|
174
|
-
return DefaultApiFp(this.configuration).getAll(options).then((request) => request(this.axios, this.basePath));
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
*
|
|
178
|
-
* @summary Get a category by ID
|
|
179
|
-
* @param {DefaultApiGetCategoryByIdRequest} requestParameters Request parameters.
|
|
113
|
+
* @summary Get a list of all active categories
|
|
180
114
|
* @param {*} [options] Override http request option.
|
|
181
115
|
* @throws {RequiredError}
|
|
182
116
|
* @memberof DefaultApi
|
|
183
117
|
*/
|
|
184
|
-
|
|
185
|
-
return DefaultApiFp(this.configuration).
|
|
118
|
+
getAllActiveCategories(options) {
|
|
119
|
+
return DefaultApiFp(this.configuration).getAllActiveCategories(options).then((request) => request(this.axios, this.basePath));
|
|
186
120
|
}
|
|
187
121
|
}
|
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
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sokol111/ecommerce-category-query-service-api",
|
|
3
3
|
"description": "Generated TypeScript Axios client from OpenAPI for ecommerce-category-query-service-api",
|
|
4
|
-
"version": "v1.0.
|
|
4
|
+
"version": "v1.0.4",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"module": "dist/index.js",
|