@drxsuperapp/sdk 1.1.398 → 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,10 @@ import {
28
28
  ApiCategoryPutRequestToJSON,
29
29
  } from '../models/index';
30
30
 
31
+ export interface ApiCategoryIdDeleteRequest {
32
+ id: string;
33
+ }
34
+
31
35
  export interface ApiCategoryIdGetRequest {
32
36
  id: string;
33
37
  }
@@ -81,6 +85,53 @@ export class CategoryManagementApi extends runtime.BaseAPI {
81
85
  return await response.value();
82
86
  }
83
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
+
84
135
  /**
85
136
  * Get Category By Id
86
137
  * Get Category By Id
package/deploy.log CHANGED
@@ -753,6 +753,7 @@
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
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
756
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/]
757
758
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigurationApi.ts
758
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/]
@@ -817,20 +818,20 @@
817
818
  # https://opencollective.com/openapi_generator/donate #
818
819
  ################################################################################
819
820
  ✅ SDK generated
820
- [master 76aeabf] VPS: Generated API SDK
821
+ [master 1e4ce31] VPS: Generated API SDK
821
822
  1 file changed, 51 insertions(+)
822
823
  To https://gitlab.com/drx-super/drx-sdk.git
823
- 1a4e412..76aeabf master -> master
824
+ af8a28c..1e4ce31 master -> master
824
825
  ✅ Changes committed and pushed
825
- v1.1.398
826
+ v1.1.399
826
827
  To https://gitlab.com/drx-super/drx-sdk.git
827
- 76aeabf..af8a28c master -> master
828
+ 1e4ce31..01d428b master -> master
828
829
  ✅ Version bumped
829
830
 
830
- > @drxsuperapp/sdk@1.1.398 prepublishOnly
831
+ > @drxsuperapp/sdk@1.1.399 prepublishOnly
831
832
  > npm run build
832
833
 
833
834
 
834
- > @drxsuperapp/sdk@1.1.398 build
835
+ > @drxsuperapp/sdk@1.1.399 build
835
836
  > tsc
836
837
 
@@ -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 ApiCategoryIdDeleteRequest {
15
+ id: string;
16
+ }
14
17
  export interface ApiCategoryIdGetRequest {
15
18
  id: string;
16
19
  }
@@ -31,6 +34,16 @@ export declare class CategoryManagementApi extends runtime.BaseAPI {
31
34
  * Get All Categories
32
35
  */
33
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>;
34
47
  /**
35
48
  * Get Category By Id
36
49
  * Get Category By Id
@@ -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
+ * 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
+ }
53
89
  /**
54
90
  * Get Category By Id
55
91
  * Get Category By Id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.398",
3
+ "version": "1.1.399",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {