@drxsuperapp/sdk 1.1.397 → 1.1.398
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,10 @@ import {
|
|
|
28
28
|
ApiCategoryPutRequestToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
+
export interface ApiCategoryIdGetRequest {
|
|
32
|
+
id: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
31
35
|
export interface ApiCategoryPutOperationRequest {
|
|
32
36
|
apiCategoryPutRequest?: ApiCategoryPutRequest;
|
|
33
37
|
}
|
|
@@ -77,6 +81,53 @@ export class CategoryManagementApi extends runtime.BaseAPI {
|
|
|
77
81
|
return await response.value();
|
|
78
82
|
}
|
|
79
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Get Category By Id
|
|
86
|
+
* Get Category By Id
|
|
87
|
+
*/
|
|
88
|
+
async apiCategoryIdGetRaw(requestParameters: ApiCategoryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiCategoryPut200Response>> {
|
|
89
|
+
if (requestParameters['id'] == null) {
|
|
90
|
+
throw new runtime.RequiredError(
|
|
91
|
+
'id',
|
|
92
|
+
'Required parameter "id" was null or undefined when calling apiCategoryIdGet().'
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const queryParameters: any = {};
|
|
97
|
+
|
|
98
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
99
|
+
|
|
100
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
105
|
+
const token = this.configuration.accessToken;
|
|
106
|
+
const tokenString = await token("BearerAuth", []);
|
|
107
|
+
|
|
108
|
+
if (tokenString) {
|
|
109
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
const response = await this.request({
|
|
113
|
+
path: `/api/category/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
114
|
+
method: 'GET',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiCategoryPut200ResponseFromJSON(jsonValue));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Get Category By Id
|
|
124
|
+
* Get Category By Id
|
|
125
|
+
*/
|
|
126
|
+
async apiCategoryIdGet(requestParameters: ApiCategoryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiCategoryPut200Response> {
|
|
127
|
+
const response = await this.apiCategoryIdGetRaw(requestParameters, initOverrides);
|
|
128
|
+
return await response.value();
|
|
129
|
+
}
|
|
130
|
+
|
|
80
131
|
/**
|
|
81
132
|
* Create or Update Category
|
|
82
133
|
* Create or Update Category
|
package/deploy.log
CHANGED
|
@@ -752,6 +752,7 @@
|
|
|
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
|
|
755
756
|
[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
757
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigurationApi.ts
|
|
757
758
|
[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 +817,20 @@
|
|
|
816
817
|
# https://opencollective.com/openapi_generator/donate #
|
|
817
818
|
################################################################################
|
|
818
819
|
✅ 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
|
|
820
|
+
[master 76aeabf] VPS: Generated API SDK
|
|
821
|
+
1 file changed, 51 insertions(+)
|
|
826
822
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
827
|
-
|
|
823
|
+
1a4e412..76aeabf master -> master
|
|
828
824
|
✅ Changes committed and pushed
|
|
829
|
-
v1.1.
|
|
825
|
+
v1.1.398
|
|
830
826
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
831
|
-
|
|
827
|
+
76aeabf..af8a28c master -> master
|
|
832
828
|
✅ Version bumped
|
|
833
829
|
|
|
834
|
-
> @drxsuperapp/sdk@1.1.
|
|
830
|
+
> @drxsuperapp/sdk@1.1.398 prepublishOnly
|
|
835
831
|
> npm run build
|
|
836
832
|
|
|
837
833
|
|
|
838
|
-
> @drxsuperapp/sdk@1.1.
|
|
834
|
+
> @drxsuperapp/sdk@1.1.398 build
|
|
839
835
|
> tsc
|
|
840
836
|
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { ApiCategoryGet200Response, ApiCategoryPut200Response, ApiCategoryPutRequest } from '../models/index';
|
|
14
|
+
export interface ApiCategoryIdGetRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
14
17
|
export interface ApiCategoryPutOperationRequest {
|
|
15
18
|
apiCategoryPutRequest?: ApiCategoryPutRequest;
|
|
16
19
|
}
|
|
@@ -28,6 +31,16 @@ export declare class CategoryManagementApi extends runtime.BaseAPI {
|
|
|
28
31
|
* Get All Categories
|
|
29
32
|
*/
|
|
30
33
|
apiCategoryGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiCategoryGet200Response>;
|
|
34
|
+
/**
|
|
35
|
+
* Get Category By Id
|
|
36
|
+
* Get Category By Id
|
|
37
|
+
*/
|
|
38
|
+
apiCategoryIdGetRaw(requestParameters: ApiCategoryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiCategoryPut200Response>>;
|
|
39
|
+
/**
|
|
40
|
+
* Get Category By Id
|
|
41
|
+
* Get Category By Id
|
|
42
|
+
*/
|
|
43
|
+
apiCategoryIdGet(requestParameters: ApiCategoryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiCategoryPut200Response>;
|
|
31
44
|
/**
|
|
32
45
|
* Create or Update Category
|
|
33
46
|
* Create or Update Category
|
|
@@ -50,6 +50,42 @@ export class CategoryManagementApi extends runtime.BaseAPI {
|
|
|
50
50
|
const response = await this.apiCategoryGetRaw(initOverrides);
|
|
51
51
|
return await response.value();
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Get Category By Id
|
|
55
|
+
* Get Category By Id
|
|
56
|
+
*/
|
|
57
|
+
async apiCategoryIdGetRaw(requestParameters, initOverrides) {
|
|
58
|
+
if (requestParameters['id'] == null) {
|
|
59
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiCategoryIdGet().');
|
|
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: 'GET',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiCategoryPut200ResponseFromJSON(jsonValue));
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get Category By Id
|
|
83
|
+
* Get Category By Id
|
|
84
|
+
*/
|
|
85
|
+
async apiCategoryIdGet(requestParameters, initOverrides) {
|
|
86
|
+
const response = await this.apiCategoryIdGetRaw(requestParameters, initOverrides);
|
|
87
|
+
return await response.value();
|
|
88
|
+
}
|
|
53
89
|
/**
|
|
54
90
|
* Create or Update Category
|
|
55
91
|
* Create or Update Category
|