@drxsuperapp/sdk 1.1.307 → 1.1.309

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.
@@ -250,6 +250,8 @@ models/ApiUserRewardPointsPostRequestMetadata.ts
250
250
  models/ApiWalletBindPost200Response.ts
251
251
  models/ApiWalletBindPost200ResponseResponseObject.ts
252
252
  models/ApiWalletBindPostRequest.ts
253
+ models/ApiWalletUnbindPost200Response.ts
254
+ models/ApiWalletUnbindPost200ResponseResponseObject.ts
253
255
  models/ApiYoutubeDrxContentGet200Response.ts
254
256
  models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
255
257
  models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
package/apis/WalletApi.ts CHANGED
@@ -17,12 +17,15 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiWalletBindPost200Response,
19
19
  ApiWalletBindPostRequest,
20
+ ApiWalletUnbindPost200Response,
20
21
  } from '../models/index';
21
22
  import {
22
23
  ApiWalletBindPost200ResponseFromJSON,
23
24
  ApiWalletBindPost200ResponseToJSON,
24
25
  ApiWalletBindPostRequestFromJSON,
25
26
  ApiWalletBindPostRequestToJSON,
27
+ ApiWalletUnbindPost200ResponseFromJSON,
28
+ ApiWalletUnbindPost200ResponseToJSON,
26
29
  } from '../models/index';
27
30
 
28
31
  export interface ApiWalletBindPostOperationRequest {
@@ -75,4 +78,42 @@ export class WalletApi extends runtime.BaseAPI {
75
78
  return await response.value();
76
79
  }
77
80
 
81
+ /**
82
+ * Unbind Wallet
83
+ */
84
+ async apiWalletUnbindPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWalletUnbindPost200Response>> {
85
+ const queryParameters: any = {};
86
+
87
+ const headerParameters: runtime.HTTPHeaders = {};
88
+
89
+ if (this.configuration && this.configuration.apiKey) {
90
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
91
+ }
92
+
93
+ if (this.configuration && this.configuration.accessToken) {
94
+ const token = this.configuration.accessToken;
95
+ const tokenString = await token("BearerAuth", []);
96
+
97
+ if (tokenString) {
98
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
99
+ }
100
+ }
101
+ const response = await this.request({
102
+ path: `/api/wallet/unbind`,
103
+ method: 'POST',
104
+ headers: headerParameters,
105
+ query: queryParameters,
106
+ }, initOverrides);
107
+
108
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiWalletUnbindPost200ResponseFromJSON(jsonValue));
109
+ }
110
+
111
+ /**
112
+ * Unbind Wallet
113
+ */
114
+ async apiWalletUnbindPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWalletUnbindPost200Response> {
115
+ const response = await this.apiWalletUnbindPostRaw(initOverrides);
116
+ return await response.value();
117
+ }
118
+
78
119
  }
package/deploy.log CHANGED
@@ -245,6 +245,8 @@
245
245
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_wallet_bind_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_wallet_bind_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_wallet_bind_post_request=NewModel,ModelA=NewModelA in CLI).
246
246
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_wallet_bind_post_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_wallet_bind_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_wallet_bind_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
247
247
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_wallet_bind_post_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_wallet_bind_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_wallet_bind_post_200_response=NewModel,ModelA=NewModelA in CLI).
248
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_wallet_unbind_post_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_wallet_unbind_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_wallet_unbind_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
249
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_wallet_unbind_post_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_wallet_unbind_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_wallet_unbind_post_200_response=NewModel,ModelA=NewModelA in CLI).
248
250
  [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/]
249
251
  [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/]
250
252
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsGet200Response.ts
@@ -480,6 +482,8 @@
480
482
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWalletBindPost200Response.ts
481
483
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWalletBindPost200ResponseResponseObject.ts
482
484
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWalletBindPostRequest.ts
485
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWalletUnbindPost200Response.ts
486
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWalletUnbindPost200ResponseResponseObject.ts
483
487
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200Response.ts
484
488
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
485
489
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
@@ -578,6 +582,7 @@
578
582
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/notification/user. Renamed to auto-generated operationId: apiNotificationUserPost
579
583
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/notification/topic. Renamed to auto-generated operationId: apiNotificationTopicPost
580
584
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/wallet/bind. Renamed to auto-generated operationId: apiWalletBindPost
585
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/wallet/unbind. Renamed to auto-generated operationId: apiWalletUnbindPost
581
586
  [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/]
582
587
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
583
588
  [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/]
@@ -626,21 +631,22 @@
626
631
  # https://opencollective.com/openapi_generator/donate #
627
632
  ################################################################################
628
633
  ✅ SDK generated
629
- On branch master
630
- Your branch is up to date with 'origin/master'.
631
-
632
- nothing to commit, working tree clean
633
- Everything up-to-date
634
+ [master 50d4f10] VPS: Generated API SDK
635
+ 5 files changed, 211 insertions(+)
636
+ create mode 100644 models/ApiWalletUnbindPost200Response.ts
637
+ create mode 100644 models/ApiWalletUnbindPost200ResponseResponseObject.ts
638
+ To https://gitlab.com/drx-super/drx-sdk.git
639
+ ec4afe9..50d4f10 master -> master
634
640
  ✅ Changes committed and pushed
635
- v1.1.307
641
+ v1.1.309
636
642
  To https://gitlab.com/drx-super/drx-sdk.git
637
- f0ee9f7..4d3d5e1 master -> master
643
+ 50d4f10..7c9e1af master -> master
638
644
  ✅ Version bumped
639
645
 
640
- > @drxsuperapp/sdk@1.1.307 prepublishOnly
646
+ > @drxsuperapp/sdk@1.1.309 prepublishOnly
641
647
  > npm run build
642
648
 
643
649
 
644
- > @drxsuperapp/sdk@1.1.307 build
650
+ > @drxsuperapp/sdk@1.1.309 build
645
651
  > tsc
646
652
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiWalletBindPost200Response, ApiWalletBindPostRequest } from '../models/index';
13
+ import type { ApiWalletBindPost200Response, ApiWalletBindPostRequest, ApiWalletUnbindPost200Response } from '../models/index';
14
14
  export interface ApiWalletBindPostOperationRequest {
15
15
  apiWalletBindPostRequest?: ApiWalletBindPostRequest;
16
16
  }
@@ -26,4 +26,12 @@ export declare class WalletApi extends runtime.BaseAPI {
26
26
  * Bind Wallet
27
27
  */
28
28
  apiWalletBindPost(requestParameters?: ApiWalletBindPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWalletBindPost200Response>;
29
+ /**
30
+ * Unbind Wallet
31
+ */
32
+ apiWalletUnbindPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWalletUnbindPost200Response>>;
33
+ /**
34
+ * Unbind Wallet
35
+ */
36
+ apiWalletUnbindPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWalletUnbindPost200Response>;
29
37
  }
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiWalletBindPost200ResponseFromJSON, ApiWalletBindPostRequestToJSON, } from '../models/index';
15
+ import { ApiWalletBindPost200ResponseFromJSON, ApiWalletBindPostRequestToJSON, ApiWalletUnbindPost200ResponseFromJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
@@ -50,4 +50,35 @@ export class WalletApi extends runtime.BaseAPI {
50
50
  const response = await this.apiWalletBindPostRaw(requestParameters, initOverrides);
51
51
  return await response.value();
52
52
  }
53
+ /**
54
+ * Unbind Wallet
55
+ */
56
+ async apiWalletUnbindPostRaw(initOverrides) {
57
+ const queryParameters = {};
58
+ const headerParameters = {};
59
+ if (this.configuration && this.configuration.apiKey) {
60
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
61
+ }
62
+ if (this.configuration && this.configuration.accessToken) {
63
+ const token = this.configuration.accessToken;
64
+ const tokenString = await token("BearerAuth", []);
65
+ if (tokenString) {
66
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
67
+ }
68
+ }
69
+ const response = await this.request({
70
+ path: `/api/wallet/unbind`,
71
+ method: 'POST',
72
+ headers: headerParameters,
73
+ query: queryParameters,
74
+ }, initOverrides);
75
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiWalletUnbindPost200ResponseFromJSON(jsonValue));
76
+ }
77
+ /**
78
+ * Unbind Wallet
79
+ */
80
+ async apiWalletUnbindPost(initOverrides) {
81
+ const response = await this.apiWalletUnbindPostRaw(initOverrides);
82
+ return await response.value();
83
+ }
53
84
  }
@@ -0,0 +1,51 @@
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
+ import type { ApiWalletUnbindPost200ResponseResponseObject } from './ApiWalletUnbindPost200ResponseResponseObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiWalletUnbindPost200Response
17
+ */
18
+ export interface ApiWalletUnbindPost200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ApiWalletUnbindPost200Response
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiWalletUnbindPost200Response
29
+ */
30
+ message: string;
31
+ /**
32
+ *
33
+ * @type {ApiWalletUnbindPost200ResponseResponseObject}
34
+ * @memberof ApiWalletUnbindPost200Response
35
+ */
36
+ responseObject?: ApiWalletUnbindPost200ResponseResponseObject;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiWalletUnbindPost200Response
41
+ */
42
+ statusCode: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiWalletUnbindPost200Response interface.
46
+ */
47
+ export declare function instanceOfApiWalletUnbindPost200Response(value: object): value is ApiWalletUnbindPost200Response;
48
+ export declare function ApiWalletUnbindPost200ResponseFromJSON(json: any): ApiWalletUnbindPost200Response;
49
+ export declare function ApiWalletUnbindPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletUnbindPost200Response;
50
+ export declare function ApiWalletUnbindPost200ResponseToJSON(json: any): ApiWalletUnbindPost200Response;
51
+ export declare function ApiWalletUnbindPost200ResponseToJSONTyped(value?: ApiWalletUnbindPost200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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
+ import { ApiWalletUnbindPost200ResponseResponseObjectFromJSON, ApiWalletUnbindPost200ResponseResponseObjectToJSON, } from './ApiWalletUnbindPost200ResponseResponseObject';
15
+ /**
16
+ * Check if a given object implements the ApiWalletUnbindPost200Response interface.
17
+ */
18
+ export function instanceOfApiWalletUnbindPost200Response(value) {
19
+ if (!('success' in value) || value['success'] === undefined)
20
+ return false;
21
+ if (!('message' in value) || value['message'] === undefined)
22
+ return false;
23
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function ApiWalletUnbindPost200ResponseFromJSON(json) {
28
+ return ApiWalletUnbindPost200ResponseFromJSONTyped(json, false);
29
+ }
30
+ export function ApiWalletUnbindPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'success': json['success'],
36
+ 'message': json['message'],
37
+ 'responseObject': json['responseObject'] == null ? undefined : ApiWalletUnbindPost200ResponseResponseObjectFromJSON(json['responseObject']),
38
+ 'statusCode': json['statusCode'],
39
+ };
40
+ }
41
+ export function ApiWalletUnbindPost200ResponseToJSON(json) {
42
+ return ApiWalletUnbindPost200ResponseToJSONTyped(json, false);
43
+ }
44
+ export function ApiWalletUnbindPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'message': value['message'],
51
+ 'responseObject': ApiWalletUnbindPost200ResponseResponseObjectToJSON(value['responseObject']),
52
+ 'statusCode': value['statusCode'],
53
+ };
54
+ }
@@ -0,0 +1,32 @@
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 ApiWalletUnbindPost200ResponseResponseObject
16
+ */
17
+ export interface ApiWalletUnbindPost200ResponseResponseObject {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiWalletUnbindPost200ResponseResponseObject
22
+ */
23
+ message: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ApiWalletUnbindPost200ResponseResponseObject interface.
27
+ */
28
+ export declare function instanceOfApiWalletUnbindPost200ResponseResponseObject(value: object): value is ApiWalletUnbindPost200ResponseResponseObject;
29
+ export declare function ApiWalletUnbindPost200ResponseResponseObjectFromJSON(json: any): ApiWalletUnbindPost200ResponseResponseObject;
30
+ export declare function ApiWalletUnbindPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletUnbindPost200ResponseResponseObject;
31
+ export declare function ApiWalletUnbindPost200ResponseResponseObjectToJSON(json: any): ApiWalletUnbindPost200ResponseResponseObject;
32
+ export declare function ApiWalletUnbindPost200ResponseResponseObjectToJSONTyped(value?: ApiWalletUnbindPost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 ApiWalletUnbindPost200ResponseResponseObject interface.
16
+ */
17
+ export function instanceOfApiWalletUnbindPost200ResponseResponseObject(value) {
18
+ if (!('message' in value) || value['message'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ApiWalletUnbindPost200ResponseResponseObjectFromJSON(json) {
23
+ return ApiWalletUnbindPost200ResponseResponseObjectFromJSONTyped(json, false);
24
+ }
25
+ export function ApiWalletUnbindPost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'message': json['message'],
31
+ };
32
+ }
33
+ export function ApiWalletUnbindPost200ResponseResponseObjectToJSON(json) {
34
+ return ApiWalletUnbindPost200ResponseResponseObjectToJSONTyped(json, false);
35
+ }
36
+ export function ApiWalletUnbindPost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'message': value['message'],
42
+ };
43
+ }
@@ -231,6 +231,8 @@ export * from './ApiUserRewardPointsPostRequestMetadata';
231
231
  export * from './ApiWalletBindPost200Response';
232
232
  export * from './ApiWalletBindPost200ResponseResponseObject';
233
233
  export * from './ApiWalletBindPostRequest';
234
+ export * from './ApiWalletUnbindPost200Response';
235
+ export * from './ApiWalletUnbindPost200ResponseResponseObject';
234
236
  export * from './ApiYoutubeDrxContentGet200Response';
235
237
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
236
238
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
@@ -233,6 +233,8 @@ export * from './ApiUserRewardPointsPostRequestMetadata';
233
233
  export * from './ApiWalletBindPost200Response';
234
234
  export * from './ApiWalletBindPost200ResponseResponseObject';
235
235
  export * from './ApiWalletBindPostRequest';
236
+ export * from './ApiWalletUnbindPost200Response';
237
+ export * from './ApiWalletUnbindPost200ResponseResponseObject';
236
238
  export * from './ApiYoutubeDrxContentGet200Response';
237
239
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
238
240
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
@@ -0,0 +1,100 @@
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
+ import type { ApiWalletUnbindPost200ResponseResponseObject } from './ApiWalletUnbindPost200ResponseResponseObject';
17
+ import {
18
+ ApiWalletUnbindPost200ResponseResponseObjectFromJSON,
19
+ ApiWalletUnbindPost200ResponseResponseObjectFromJSONTyped,
20
+ ApiWalletUnbindPost200ResponseResponseObjectToJSON,
21
+ ApiWalletUnbindPost200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiWalletUnbindPost200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiWalletUnbindPost200Response
28
+ */
29
+ export interface ApiWalletUnbindPost200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiWalletUnbindPost200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiWalletUnbindPost200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiWalletUnbindPost200ResponseResponseObject}
45
+ * @memberof ApiWalletUnbindPost200Response
46
+ */
47
+ responseObject?: ApiWalletUnbindPost200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiWalletUnbindPost200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiWalletUnbindPost200Response interface.
58
+ */
59
+ export function instanceOfApiWalletUnbindPost200Response(value: object): value is ApiWalletUnbindPost200Response {
60
+ if (!('success' in value) || value['success'] === undefined) return false;
61
+ if (!('message' in value) || value['message'] === undefined) return false;
62
+ if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ApiWalletUnbindPost200ResponseFromJSON(json: any): ApiWalletUnbindPost200Response {
67
+ return ApiWalletUnbindPost200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiWalletUnbindPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletUnbindPost200Response {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'success': json['success'],
77
+ 'message': json['message'],
78
+ 'responseObject': json['responseObject'] == null ? undefined : ApiWalletUnbindPost200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiWalletUnbindPost200ResponseToJSON(json: any): ApiWalletUnbindPost200Response {
84
+ return ApiWalletUnbindPost200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiWalletUnbindPost200ResponseToJSONTyped(value?: ApiWalletUnbindPost200Response | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'success': value['success'],
95
+ 'message': value['message'],
96
+ 'responseObject': ApiWalletUnbindPost200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,66 @@
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 ApiWalletUnbindPost200ResponseResponseObject
20
+ */
21
+ export interface ApiWalletUnbindPost200ResponseResponseObject {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiWalletUnbindPost200ResponseResponseObject
26
+ */
27
+ message: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ApiWalletUnbindPost200ResponseResponseObject interface.
32
+ */
33
+ export function instanceOfApiWalletUnbindPost200ResponseResponseObject(value: object): value is ApiWalletUnbindPost200ResponseResponseObject {
34
+ if (!('message' in value) || value['message'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ApiWalletUnbindPost200ResponseResponseObjectFromJSON(json: any): ApiWalletUnbindPost200ResponseResponseObject {
39
+ return ApiWalletUnbindPost200ResponseResponseObjectFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ApiWalletUnbindPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletUnbindPost200ResponseResponseObject {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'message': json['message'],
49
+ };
50
+ }
51
+
52
+ export function ApiWalletUnbindPost200ResponseResponseObjectToJSON(json: any): ApiWalletUnbindPost200ResponseResponseObject {
53
+ return ApiWalletUnbindPost200ResponseResponseObjectToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ApiWalletUnbindPost200ResponseResponseObjectToJSONTyped(value?: ApiWalletUnbindPost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'message': value['message'],
64
+ };
65
+ }
66
+
package/models/index.ts CHANGED
@@ -233,6 +233,8 @@ export * from './ApiUserRewardPointsPostRequestMetadata';
233
233
  export * from './ApiWalletBindPost200Response';
234
234
  export * from './ApiWalletBindPost200ResponseResponseObject';
235
235
  export * from './ApiWalletBindPostRequest';
236
+ export * from './ApiWalletUnbindPost200Response';
237
+ export * from './ApiWalletUnbindPost200ResponseResponseObject';
236
238
  export * from './ApiYoutubeDrxContentGet200Response';
237
239
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
238
240
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.307",
3
+ "version": "1.1.309",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {