@drxsuperapp/sdk 1.1.374 → 1.1.376

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.
@@ -35,6 +35,10 @@ export interface ApiFeatureIdDeleteRequest {
35
35
  id: string;
36
36
  }
37
37
 
38
+ export interface ApiFeatureIdGetRequest {
39
+ id: string;
40
+ }
41
+
38
42
  export interface ApiFeaturePutOperationRequest {
39
43
  apiFeaturePutRequest?: ApiFeaturePutRequest;
40
44
  }
@@ -131,6 +135,51 @@ export class FeatureApi extends runtime.BaseAPI {
131
135
  return await response.value();
132
136
  }
133
137
 
138
+ /**
139
+ * Get Feature By Id
140
+ */
141
+ async apiFeatureIdGetRaw(requestParameters: ApiFeatureIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiFeaturePut200Response>> {
142
+ if (requestParameters['id'] == null) {
143
+ throw new runtime.RequiredError(
144
+ 'id',
145
+ 'Required parameter "id" was null or undefined when calling apiFeatureIdGet().'
146
+ );
147
+ }
148
+
149
+ const queryParameters: any = {};
150
+
151
+ const headerParameters: runtime.HTTPHeaders = {};
152
+
153
+ if (this.configuration && this.configuration.apiKey) {
154
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
155
+ }
156
+
157
+ if (this.configuration && this.configuration.accessToken) {
158
+ const token = this.configuration.accessToken;
159
+ const tokenString = await token("BearerAuth", []);
160
+
161
+ if (tokenString) {
162
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
163
+ }
164
+ }
165
+ const response = await this.request({
166
+ path: `/api/feature/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
167
+ method: 'GET',
168
+ headers: headerParameters,
169
+ query: queryParameters,
170
+ }, initOverrides);
171
+
172
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiFeaturePut200ResponseFromJSON(jsonValue));
173
+ }
174
+
175
+ /**
176
+ * Get Feature By Id
177
+ */
178
+ async apiFeatureIdGet(requestParameters: ApiFeatureIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiFeaturePut200Response> {
179
+ const response = await this.apiFeatureIdGetRaw(requestParameters, initOverrides);
180
+ return await response.value();
181
+ }
182
+
134
183
  /**
135
184
  * Create or Update Feature
136
185
  */
package/deploy.log CHANGED
@@ -694,6 +694,7 @@
694
694
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/feature. Renamed to auto-generated operationId: apiFeatureGet
695
695
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/feature. Renamed to auto-generated operationId: apiFeaturePut
696
696
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/feature/switch. Renamed to auto-generated operationId: apiFeatureSwitchPut
697
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/feature/{id}. Renamed to auto-generated operationId: apiFeatureIdGet
697
698
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/feature/{id}. Renamed to auto-generated operationId: apiFeatureIdDelete
698
699
  [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/]
699
700
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigurationApi.ts
@@ -759,15 +760,15 @@ Your branch is up to date with 'origin/master'.
759
760
  nothing to commit, working tree clean
760
761
  Everything up-to-date
761
762
  ✅ Changes committed and pushed
762
- v1.1.374
763
+ v1.1.376
763
764
  To https://gitlab.com/drx-super/drx-sdk.git
764
- a532b03..6b9fa48 master -> master
765
+ 4cfbd33..93a5739 master -> master
765
766
  ✅ Version bumped
766
767
 
767
- > @drxsuperapp/sdk@1.1.374 prepublishOnly
768
+ > @drxsuperapp/sdk@1.1.376 prepublishOnly
768
769
  > npm run build
769
770
 
770
771
 
771
- > @drxsuperapp/sdk@1.1.374 build
772
+ > @drxsuperapp/sdk@1.1.376 build
772
773
  > tsc
773
774
 
@@ -14,6 +14,9 @@ import type { ApiFeatureGet200Response, ApiFeaturePut200Response, ApiFeaturePutR
14
14
  export interface ApiFeatureIdDeleteRequest {
15
15
  id: string;
16
16
  }
17
+ export interface ApiFeatureIdGetRequest {
18
+ id: string;
19
+ }
17
20
  export interface ApiFeaturePutOperationRequest {
18
21
  apiFeaturePutRequest?: ApiFeaturePutRequest;
19
22
  }
@@ -40,6 +43,14 @@ export declare class FeatureApi extends runtime.BaseAPI {
40
43
  * Delete Feature
41
44
  */
42
45
  apiFeatureIdDelete(requestParameters: ApiFeatureIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiFeaturePut200Response>;
46
+ /**
47
+ * Get Feature By Id
48
+ */
49
+ apiFeatureIdGetRaw(requestParameters: ApiFeatureIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiFeaturePut200Response>>;
50
+ /**
51
+ * Get Feature By Id
52
+ */
53
+ apiFeatureIdGet(requestParameters: ApiFeatureIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiFeaturePut200Response>;
43
54
  /**
44
55
  * Create or Update Feature
45
56
  */
@@ -82,6 +82,40 @@ export class FeatureApi extends runtime.BaseAPI {
82
82
  const response = await this.apiFeatureIdDeleteRaw(requestParameters, initOverrides);
83
83
  return await response.value();
84
84
  }
85
+ /**
86
+ * Get Feature By Id
87
+ */
88
+ async apiFeatureIdGetRaw(requestParameters, initOverrides) {
89
+ if (requestParameters['id'] == null) {
90
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiFeatureIdGet().');
91
+ }
92
+ const queryParameters = {};
93
+ const headerParameters = {};
94
+ if (this.configuration && this.configuration.apiKey) {
95
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
96
+ }
97
+ if (this.configuration && this.configuration.accessToken) {
98
+ const token = this.configuration.accessToken;
99
+ const tokenString = await token("BearerAuth", []);
100
+ if (tokenString) {
101
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
102
+ }
103
+ }
104
+ const response = await this.request({
105
+ path: `/api/feature/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
106
+ method: 'GET',
107
+ headers: headerParameters,
108
+ query: queryParameters,
109
+ }, initOverrides);
110
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiFeaturePut200ResponseFromJSON(jsonValue));
111
+ }
112
+ /**
113
+ * Get Feature By Id
114
+ */
115
+ async apiFeatureIdGet(requestParameters, initOverrides) {
116
+ const response = await this.apiFeatureIdGetRaw(requestParameters, initOverrides);
117
+ return await response.value();
118
+ }
85
119
  /**
86
120
  * Create or Update Feature
87
121
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.374",
3
+ "version": "1.1.376",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {