@drxsuperapp/sdk 1.1.397 → 1.1.399
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.
|
@@ -28,6 +28,14 @@ import {
|
|
|
28
28
|
ApiCategoryPutRequestToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
+
export interface ApiCategoryIdDeleteRequest {
|
|
32
|
+
id: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface ApiCategoryIdGetRequest {
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
31
39
|
export interface ApiCategoryPutOperationRequest {
|
|
32
40
|
apiCategoryPutRequest?: ApiCategoryPutRequest;
|
|
33
41
|
}
|
|
@@ -77,6 +85,100 @@ export class CategoryManagementApi extends runtime.BaseAPI {
|
|
|
77
85
|
return await response.value();
|
|
78
86
|
}
|
|
79
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Delete Category By Id
|
|
90
|
+
* Delete Category By Id
|
|
91
|
+
*/
|
|
92
|
+
async apiCategoryIdDeleteRaw(requestParameters: ApiCategoryIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiCategoryPut200Response>> {
|
|
93
|
+
if (requestParameters['id'] == null) {
|
|
94
|
+
throw new runtime.RequiredError(
|
|
95
|
+
'id',
|
|
96
|
+
'Required parameter "id" was null or undefined when calling apiCategoryIdDelete().'
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const queryParameters: any = {};
|
|
101
|
+
|
|
102
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
103
|
+
|
|
104
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
105
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
109
|
+
const token = this.configuration.accessToken;
|
|
110
|
+
const tokenString = await token("BearerAuth", []);
|
|
111
|
+
|
|
112
|
+
if (tokenString) {
|
|
113
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
const response = await this.request({
|
|
117
|
+
path: `/api/category/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
118
|
+
method: 'DELETE',
|
|
119
|
+
headers: headerParameters,
|
|
120
|
+
query: queryParameters,
|
|
121
|
+
}, initOverrides);
|
|
122
|
+
|
|
123
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiCategoryPut200ResponseFromJSON(jsonValue));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Delete Category By Id
|
|
128
|
+
* Delete Category By Id
|
|
129
|
+
*/
|
|
130
|
+
async apiCategoryIdDelete(requestParameters: ApiCategoryIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiCategoryPut200Response> {
|
|
131
|
+
const response = await this.apiCategoryIdDeleteRaw(requestParameters, initOverrides);
|
|
132
|
+
return await response.value();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Get Category By Id
|
|
137
|
+
* Get Category By Id
|
|
138
|
+
*/
|
|
139
|
+
async apiCategoryIdGetRaw(requestParameters: ApiCategoryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiCategoryPut200Response>> {
|
|
140
|
+
if (requestParameters['id'] == null) {
|
|
141
|
+
throw new runtime.RequiredError(
|
|
142
|
+
'id',
|
|
143
|
+
'Required parameter "id" was null or undefined when calling apiCategoryIdGet().'
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const queryParameters: any = {};
|
|
148
|
+
|
|
149
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
150
|
+
|
|
151
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
152
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
156
|
+
const token = this.configuration.accessToken;
|
|
157
|
+
const tokenString = await token("BearerAuth", []);
|
|
158
|
+
|
|
159
|
+
if (tokenString) {
|
|
160
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
const response = await this.request({
|
|
164
|
+
path: `/api/category/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
165
|
+
method: 'GET',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
}, initOverrides);
|
|
169
|
+
|
|
170
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiCategoryPut200ResponseFromJSON(jsonValue));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Get Category By Id
|
|
175
|
+
* Get Category By Id
|
|
176
|
+
*/
|
|
177
|
+
async apiCategoryIdGet(requestParameters: ApiCategoryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiCategoryPut200Response> {
|
|
178
|
+
const response = await this.apiCategoryIdGetRaw(requestParameters, initOverrides);
|
|
179
|
+
return await response.value();
|
|
180
|
+
}
|
|
181
|
+
|
|
80
182
|
/**
|
|
81
183
|
* Create or Update Category
|
|
82
184
|
* Create or Update Category
|
package/deploy.log
CHANGED
|
@@ -752,6 +752,8 @@
|
|
|
752
752
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/feature/{id}. Renamed to auto-generated operationId: apiFeatureIdDelete
|
|
753
753
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/category. Renamed to auto-generated operationId: apiCategoryGet
|
|
754
754
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/category. Renamed to auto-generated operationId: apiCategoryPut
|
|
755
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/category/{id}. Renamed to auto-generated operationId: apiCategoryIdGet
|
|
756
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/category/{id}. Renamed to auto-generated operationId: apiCategoryIdDelete
|
|
755
757
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
756
758
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigurationApi.ts
|
|
757
759
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
@@ -816,25 +818,20 @@
|
|
|
816
818
|
# https://opencollective.com/openapi_generator/donate #
|
|
817
819
|
################################################################################
|
|
818
820
|
✅ SDK generated
|
|
819
|
-
[master
|
|
820
|
-
|
|
821
|
-
create mode 100644 apis/CategoryManagementApi.ts
|
|
822
|
-
create mode 100644 models/ApiCategoryGet200Response.ts
|
|
823
|
-
create mode 100644 models/ApiCategoryGet200ResponseResponseObjectInner.ts
|
|
824
|
-
create mode 100644 models/ApiCategoryPut200Response.ts
|
|
825
|
-
create mode 100644 models/ApiCategoryPutRequest.ts
|
|
821
|
+
[master 1e4ce31] VPS: Generated API SDK
|
|
822
|
+
1 file changed, 51 insertions(+)
|
|
826
823
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
827
|
-
|
|
824
|
+
af8a28c..1e4ce31 master -> master
|
|
828
825
|
✅ Changes committed and pushed
|
|
829
|
-
v1.1.
|
|
826
|
+
v1.1.399
|
|
830
827
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
831
|
-
|
|
828
|
+
1e4ce31..01d428b master -> master
|
|
832
829
|
✅ Version bumped
|
|
833
830
|
|
|
834
|
-
> @drxsuperapp/sdk@1.1.
|
|
831
|
+
> @drxsuperapp/sdk@1.1.399 prepublishOnly
|
|
835
832
|
> npm run build
|
|
836
833
|
|
|
837
834
|
|
|
838
|
-
> @drxsuperapp/sdk@1.1.
|
|
835
|
+
> @drxsuperapp/sdk@1.1.399 build
|
|
839
836
|
> tsc
|
|
840
837
|
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { ApiCategoryGet200Response, ApiCategoryPut200Response, ApiCategoryPutRequest } from '../models/index';
|
|
14
|
+
export interface ApiCategoryIdDeleteRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiCategoryIdGetRequest {
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
14
20
|
export interface ApiCategoryPutOperationRequest {
|
|
15
21
|
apiCategoryPutRequest?: ApiCategoryPutRequest;
|
|
16
22
|
}
|
|
@@ -28,6 +34,26 @@ export declare class CategoryManagementApi extends runtime.BaseAPI {
|
|
|
28
34
|
* Get All Categories
|
|
29
35
|
*/
|
|
30
36
|
apiCategoryGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiCategoryGet200Response>;
|
|
37
|
+
/**
|
|
38
|
+
* Delete Category By Id
|
|
39
|
+
* Delete Category By Id
|
|
40
|
+
*/
|
|
41
|
+
apiCategoryIdDeleteRaw(requestParameters: ApiCategoryIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiCategoryPut200Response>>;
|
|
42
|
+
/**
|
|
43
|
+
* Delete Category By Id
|
|
44
|
+
* Delete Category By Id
|
|
45
|
+
*/
|
|
46
|
+
apiCategoryIdDelete(requestParameters: ApiCategoryIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiCategoryPut200Response>;
|
|
47
|
+
/**
|
|
48
|
+
* Get Category By Id
|
|
49
|
+
* Get Category By Id
|
|
50
|
+
*/
|
|
51
|
+
apiCategoryIdGetRaw(requestParameters: ApiCategoryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiCategoryPut200Response>>;
|
|
52
|
+
/**
|
|
53
|
+
* Get Category By Id
|
|
54
|
+
* Get Category By Id
|
|
55
|
+
*/
|
|
56
|
+
apiCategoryIdGet(requestParameters: ApiCategoryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiCategoryPut200Response>;
|
|
31
57
|
/**
|
|
32
58
|
* Create or Update Category
|
|
33
59
|
* Create or Update Category
|
|
@@ -50,6 +50,78 @@ export class CategoryManagementApi extends runtime.BaseAPI {
|
|
|
50
50
|
const response = await this.apiCategoryGetRaw(initOverrides);
|
|
51
51
|
return await response.value();
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Delete Category By Id
|
|
55
|
+
* Delete Category By Id
|
|
56
|
+
*/
|
|
57
|
+
async apiCategoryIdDeleteRaw(requestParameters, initOverrides) {
|
|
58
|
+
if (requestParameters['id'] == null) {
|
|
59
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiCategoryIdDelete().');
|
|
60
|
+
}
|
|
61
|
+
const queryParameters = {};
|
|
62
|
+
const headerParameters = {};
|
|
63
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
65
|
+
}
|
|
66
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
67
|
+
const token = this.configuration.accessToken;
|
|
68
|
+
const tokenString = await token("BearerAuth", []);
|
|
69
|
+
if (tokenString) {
|
|
70
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/api/category/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
75
|
+
method: 'DELETE',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiCategoryPut200ResponseFromJSON(jsonValue));
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Delete Category By Id
|
|
83
|
+
* Delete Category By Id
|
|
84
|
+
*/
|
|
85
|
+
async apiCategoryIdDelete(requestParameters, initOverrides) {
|
|
86
|
+
const response = await this.apiCategoryIdDeleteRaw(requestParameters, initOverrides);
|
|
87
|
+
return await response.value();
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Get Category By Id
|
|
91
|
+
* Get Category By Id
|
|
92
|
+
*/
|
|
93
|
+
async apiCategoryIdGetRaw(requestParameters, initOverrides) {
|
|
94
|
+
if (requestParameters['id'] == null) {
|
|
95
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiCategoryIdGet().');
|
|
96
|
+
}
|
|
97
|
+
const queryParameters = {};
|
|
98
|
+
const headerParameters = {};
|
|
99
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
100
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
101
|
+
}
|
|
102
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
103
|
+
const token = this.configuration.accessToken;
|
|
104
|
+
const tokenString = await token("BearerAuth", []);
|
|
105
|
+
if (tokenString) {
|
|
106
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
const response = await this.request({
|
|
110
|
+
path: `/api/category/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
111
|
+
method: 'GET',
|
|
112
|
+
headers: headerParameters,
|
|
113
|
+
query: queryParameters,
|
|
114
|
+
}, initOverrides);
|
|
115
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiCategoryPut200ResponseFromJSON(jsonValue));
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Get Category By Id
|
|
119
|
+
* Get Category By Id
|
|
120
|
+
*/
|
|
121
|
+
async apiCategoryIdGet(requestParameters, initOverrides) {
|
|
122
|
+
const response = await this.apiCategoryIdGetRaw(requestParameters, initOverrides);
|
|
123
|
+
return await response.value();
|
|
124
|
+
}
|
|
53
125
|
/**
|
|
54
126
|
* Create or Update Category
|
|
55
127
|
* Create or Update Category
|