@drxsuperapp/sdk 1.1.510 → 1.1.512

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.
@@ -121,6 +121,7 @@ models/ApiFeatureGet200Response.ts
121
121
  models/ApiFeatureGet200ResponseResponseObjectInner.ts
122
122
  models/ApiFeatureGet200ResponseResponseObjectInnerNavigate.ts
123
123
  models/ApiFeatureGetFilterParameter.ts
124
+ models/ApiFeatureHidePutRequest.ts
124
125
  models/ApiFeaturePut200Response.ts
125
126
  models/ApiFeaturePutRequest.ts
126
127
  models/ApiFeaturePutRequestNavigate.ts
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiFeatureGet200Response,
19
19
  ApiFeatureGetFilterParameter,
20
+ ApiFeatureHidePutRequest,
20
21
  ApiFeaturePut200Response,
21
22
  ApiFeaturePutRequest,
22
23
  ApiFeatureSwitchPutRequest,
@@ -26,6 +27,8 @@ import {
26
27
  ApiFeatureGet200ResponseToJSON,
27
28
  ApiFeatureGetFilterParameterFromJSON,
28
29
  ApiFeatureGetFilterParameterToJSON,
30
+ ApiFeatureHidePutRequestFromJSON,
31
+ ApiFeatureHidePutRequestToJSON,
29
32
  ApiFeaturePut200ResponseFromJSON,
30
33
  ApiFeaturePut200ResponseToJSON,
31
34
  ApiFeaturePutRequestFromJSON,
@@ -41,6 +44,10 @@ export interface ApiFeatureGetRequest {
41
44
  filter?: ApiFeatureGetFilterParameter;
42
45
  }
43
46
 
47
+ export interface ApiFeatureHidePutOperationRequest {
48
+ apiFeatureHidePutRequest?: ApiFeatureHidePutRequest;
49
+ }
50
+
44
51
  export interface ApiFeatureIdDeleteRequest {
45
52
  id: string;
46
53
  }
@@ -116,6 +123,47 @@ export class FeatureApi extends runtime.BaseAPI {
116
123
  return await response.value();
117
124
  }
118
125
 
126
+ /**
127
+ * Hide Feature
128
+ */
129
+ async apiFeatureHidePutRaw(requestParameters: ApiFeatureHidePutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiFeatureGet200Response>> {
130
+ const queryParameters: any = {};
131
+
132
+ const headerParameters: runtime.HTTPHeaders = {};
133
+
134
+ headerParameters['Content-Type'] = 'application/json';
135
+
136
+ if (this.configuration && this.configuration.apiKey) {
137
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
138
+ }
139
+
140
+ if (this.configuration && this.configuration.accessToken) {
141
+ const token = this.configuration.accessToken;
142
+ const tokenString = await token("BearerAuth", []);
143
+
144
+ if (tokenString) {
145
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
146
+ }
147
+ }
148
+ const response = await this.request({
149
+ path: `/api/feature/hide`,
150
+ method: 'PUT',
151
+ headers: headerParameters,
152
+ query: queryParameters,
153
+ body: ApiFeatureHidePutRequestToJSON(requestParameters['apiFeatureHidePutRequest']),
154
+ }, initOverrides);
155
+
156
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiFeatureGet200ResponseFromJSON(jsonValue));
157
+ }
158
+
159
+ /**
160
+ * Hide Feature
161
+ */
162
+ async apiFeatureHidePut(requestParameters: ApiFeatureHidePutOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiFeatureGet200Response> {
163
+ const response = await this.apiFeatureHidePutRaw(requestParameters, initOverrides);
164
+ return await response.value();
165
+ }
166
+
119
167
  /**
120
168
  * Delete Feature
121
169
  */
package/deploy.log CHANGED
@@ -330,6 +330,7 @@
330
330
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_feature_put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_feature_put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_feature_put_request=NewModel,ModelA=NewModelA in CLI).
331
331
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_feature_put_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_feature_put_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_feature_put_200_response=NewModel,ModelA=NewModelA in CLI).
332
332
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_feature_switch_put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_feature_switch_put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_feature_switch_put_request=NewModel,ModelA=NewModelA in CLI).
333
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_feature_hide_put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_feature_hide_put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_feature_hide_put_request=NewModel,ModelA=NewModelA in CLI).
333
334
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_category_get_200_response_responseObject_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_category_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_category_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI).
334
335
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_category_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_category_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_category_get_200_response=NewModel,ModelA=NewModelA in CLI).
335
336
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_category_put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_category_put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_category_put_request=NewModel,ModelA=NewModelA in CLI).
@@ -439,6 +440,7 @@
439
440
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFeatureGet200ResponseResponseObjectInner.ts
440
441
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFeatureGet200ResponseResponseObjectInnerNavigate.ts
441
442
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFeatureGetFilterParameter.ts
443
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFeatureHidePutRequest.ts
442
444
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFeaturePut200Response.ts
443
445
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFeaturePutRequest.ts
444
446
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFeaturePutRequestNavigate.ts
@@ -821,6 +823,7 @@
821
823
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/feature. Renamed to auto-generated operationId: apiFeatureGet
822
824
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/feature. Renamed to auto-generated operationId: apiFeaturePut
823
825
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/feature/switch. Renamed to auto-generated operationId: apiFeatureSwitchPut
826
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/feature/hide. Renamed to auto-generated operationId: apiFeatureHidePut
824
827
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/feature/{id}. Renamed to auto-generated operationId: apiFeatureIdGet
825
828
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/feature/{id}. Renamed to auto-generated operationId: apiFeatureIdDelete
826
829
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/category. Renamed to auto-generated operationId: apiCategoryGet
@@ -914,15 +917,15 @@ Your branch is up to date with 'origin/master'.
914
917
  nothing to commit, working tree clean
915
918
  Everything up-to-date
916
919
  ✅ Changes committed and pushed
917
- v1.1.510
920
+ v1.1.512
918
921
  To https://gitlab.com/drx-super/drx-sdk.git
919
- 639a3ca..6ce851f master -> master
922
+ ba2a8bc..db3bbd9 master -> master
920
923
  ✅ Version bumped
921
924
 
922
- > @drxsuperapp/sdk@1.1.510 prepublishOnly
925
+ > @drxsuperapp/sdk@1.1.512 prepublishOnly
923
926
  > npm run build
924
927
 
925
928
 
926
- > @drxsuperapp/sdk@1.1.510 build
929
+ > @drxsuperapp/sdk@1.1.512 build
927
930
  > tsc
928
931
 
@@ -10,13 +10,16 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiFeatureGet200Response, ApiFeatureGetFilterParameter, ApiFeaturePut200Response, ApiFeaturePutRequest, ApiFeatureSwitchPutRequest } from '../models/index';
13
+ import type { ApiFeatureGet200Response, ApiFeatureGetFilterParameter, ApiFeatureHidePutRequest, ApiFeaturePut200Response, ApiFeaturePutRequest, ApiFeatureSwitchPutRequest } from '../models/index';
14
14
  export interface ApiFeatureGetRequest {
15
15
  page?: number;
16
16
  pageSize?: number;
17
17
  sort?: string;
18
18
  filter?: ApiFeatureGetFilterParameter;
19
19
  }
20
+ export interface ApiFeatureHidePutOperationRequest {
21
+ apiFeatureHidePutRequest?: ApiFeatureHidePutRequest;
22
+ }
20
23
  export interface ApiFeatureIdDeleteRequest {
21
24
  id: string;
22
25
  }
@@ -41,6 +44,14 @@ export declare class FeatureApi extends runtime.BaseAPI {
41
44
  * Get All Features
42
45
  */
43
46
  apiFeatureGet(requestParameters?: ApiFeatureGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiFeatureGet200Response>;
47
+ /**
48
+ * Hide Feature
49
+ */
50
+ apiFeatureHidePutRaw(requestParameters: ApiFeatureHidePutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiFeatureGet200Response>>;
51
+ /**
52
+ * Hide Feature
53
+ */
54
+ apiFeatureHidePut(requestParameters?: ApiFeatureHidePutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiFeatureGet200Response>;
44
55
  /**
45
56
  * Delete Feature
46
57
  */
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiFeatureGet200ResponseFromJSON, ApiFeaturePut200ResponseFromJSON, ApiFeaturePutRequestToJSON, ApiFeatureSwitchPutRequestToJSON, } from '../models/index';
15
+ import { ApiFeatureGet200ResponseFromJSON, ApiFeatureHidePutRequestToJSON, ApiFeaturePut200ResponseFromJSON, ApiFeaturePutRequestToJSON, ApiFeatureSwitchPutRequestToJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
@@ -60,6 +60,39 @@ export class FeatureApi extends runtime.BaseAPI {
60
60
  const response = await this.apiFeatureGetRaw(requestParameters, initOverrides);
61
61
  return await response.value();
62
62
  }
63
+ /**
64
+ * Hide Feature
65
+ */
66
+ async apiFeatureHidePutRaw(requestParameters, initOverrides) {
67
+ const queryParameters = {};
68
+ const headerParameters = {};
69
+ headerParameters['Content-Type'] = 'application/json';
70
+ if (this.configuration && this.configuration.apiKey) {
71
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
72
+ }
73
+ if (this.configuration && this.configuration.accessToken) {
74
+ const token = this.configuration.accessToken;
75
+ const tokenString = await token("BearerAuth", []);
76
+ if (tokenString) {
77
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
78
+ }
79
+ }
80
+ const response = await this.request({
81
+ path: `/api/feature/hide`,
82
+ method: 'PUT',
83
+ headers: headerParameters,
84
+ query: queryParameters,
85
+ body: ApiFeatureHidePutRequestToJSON(requestParameters['apiFeatureHidePutRequest']),
86
+ }, initOverrides);
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiFeatureGet200ResponseFromJSON(jsonValue));
88
+ }
89
+ /**
90
+ * Hide Feature
91
+ */
92
+ async apiFeatureHidePut(requestParameters = {}, initOverrides) {
93
+ const response = await this.apiFeatureHidePutRaw(requestParameters, initOverrides);
94
+ return await response.value();
95
+ }
63
96
  /**
64
97
  * Delete Feature
65
98
  */
@@ -0,0 +1,38 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ApiFeatureHidePutRequest
16
+ */
17
+ export interface ApiFeatureHidePutRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiFeatureHidePutRequest
22
+ */
23
+ feature_id: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof ApiFeatureHidePutRequest
28
+ */
29
+ hide: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ApiFeatureHidePutRequest interface.
33
+ */
34
+ export declare function instanceOfApiFeatureHidePutRequest(value: object): value is ApiFeatureHidePutRequest;
35
+ export declare function ApiFeatureHidePutRequestFromJSON(json: any): ApiFeatureHidePutRequest;
36
+ export declare function ApiFeatureHidePutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFeatureHidePutRequest;
37
+ export declare function ApiFeatureHidePutRequestToJSON(json: any): ApiFeatureHidePutRequest;
38
+ export declare function ApiFeatureHidePutRequestToJSONTyped(value?: ApiFeatureHidePutRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ApiFeatureHidePutRequest interface.
16
+ */
17
+ export function instanceOfApiFeatureHidePutRequest(value) {
18
+ if (!('feature_id' in value) || value['feature_id'] === undefined)
19
+ return false;
20
+ if (!('hide' in value) || value['hide'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ApiFeatureHidePutRequestFromJSON(json) {
25
+ return ApiFeatureHidePutRequestFromJSONTyped(json, false);
26
+ }
27
+ export function ApiFeatureHidePutRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'feature_id': json['feature_id'],
33
+ 'hide': json['hide'],
34
+ };
35
+ }
36
+ export function ApiFeatureHidePutRequestToJSON(json) {
37
+ return ApiFeatureHidePutRequestToJSONTyped(json, false);
38
+ }
39
+ export function ApiFeatureHidePutRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'feature_id': value['feature_id'],
45
+ 'hide': value['hide'],
46
+ };
47
+ }
@@ -92,6 +92,7 @@ export * from './ApiFeatureGet200Response';
92
92
  export * from './ApiFeatureGet200ResponseResponseObjectInner';
93
93
  export * from './ApiFeatureGet200ResponseResponseObjectInnerNavigate';
94
94
  export * from './ApiFeatureGetFilterParameter';
95
+ export * from './ApiFeatureHidePutRequest';
95
96
  export * from './ApiFeaturePut200Response';
96
97
  export * from './ApiFeaturePutRequest';
97
98
  export * from './ApiFeaturePutRequestNavigate';
@@ -94,6 +94,7 @@ export * from './ApiFeatureGet200Response';
94
94
  export * from './ApiFeatureGet200ResponseResponseObjectInner';
95
95
  export * from './ApiFeatureGet200ResponseResponseObjectInnerNavigate';
96
96
  export * from './ApiFeatureGetFilterParameter';
97
+ export * from './ApiFeatureHidePutRequest';
97
98
  export * from './ApiFeaturePut200Response';
98
99
  export * from './ApiFeaturePutRequest';
99
100
  export * from './ApiFeaturePutRequestNavigate';
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiFeatureHidePutRequest
20
+ */
21
+ export interface ApiFeatureHidePutRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiFeatureHidePutRequest
26
+ */
27
+ feature_id: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof ApiFeatureHidePutRequest
32
+ */
33
+ hide: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApiFeatureHidePutRequest interface.
38
+ */
39
+ export function instanceOfApiFeatureHidePutRequest(value: object): value is ApiFeatureHidePutRequest {
40
+ if (!('feature_id' in value) || value['feature_id'] === undefined) return false;
41
+ if (!('hide' in value) || value['hide'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ApiFeatureHidePutRequestFromJSON(json: any): ApiFeatureHidePutRequest {
46
+ return ApiFeatureHidePutRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ApiFeatureHidePutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFeatureHidePutRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'feature_id': json['feature_id'],
56
+ 'hide': json['hide'],
57
+ };
58
+ }
59
+
60
+ export function ApiFeatureHidePutRequestToJSON(json: any): ApiFeatureHidePutRequest {
61
+ return ApiFeatureHidePutRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApiFeatureHidePutRequestToJSONTyped(value?: ApiFeatureHidePutRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'feature_id': value['feature_id'],
72
+ 'hide': value['hide'],
73
+ };
74
+ }
75
+
package/models/index.ts CHANGED
@@ -94,6 +94,7 @@ export * from './ApiFeatureGet200Response';
94
94
  export * from './ApiFeatureGet200ResponseResponseObjectInner';
95
95
  export * from './ApiFeatureGet200ResponseResponseObjectInnerNavigate';
96
96
  export * from './ApiFeatureGetFilterParameter';
97
+ export * from './ApiFeatureHidePutRequest';
97
98
  export * from './ApiFeaturePut200Response';
98
99
  export * from './ApiFeaturePutRequest';
99
100
  export * from './ApiFeaturePutRequestNavigate';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.510",
3
+ "version": "1.1.512",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {