@drxsuperapp/sdk 1.1.303 → 1.1.304

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.
@@ -13,6 +13,7 @@ apis/UserAffiliateApi.ts
13
13
  apis/UserApi.ts
14
14
  apis/UserNotificationsApi.ts
15
15
  apis/UserPointsApi.ts
16
+ apis/WalletApi.ts
16
17
  apis/YoutubeApi.ts
17
18
  apis/index.ts
18
19
  index.ts
@@ -246,6 +247,9 @@ models/ApiUserRewardPointsPost200Response.ts
246
247
  models/ApiUserRewardPointsPost200ResponseResponseObject.ts
247
248
  models/ApiUserRewardPointsPostRequest.ts
248
249
  models/ApiUserRewardPointsPostRequestMetadata.ts
250
+ models/ApiWalletBindPost200Response.ts
251
+ models/ApiWalletBindPost200ResponseResponseObject.ts
252
+ models/ApiWalletBindPostRequest.ts
249
253
  models/ApiYoutubeDrxContentGet200Response.ts
250
254
  models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
251
255
  models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
@@ -0,0 +1,78 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ApiWalletBindPost200Response,
19
+ ApiWalletBindPostRequest,
20
+ } from '../models/index';
21
+ import {
22
+ ApiWalletBindPost200ResponseFromJSON,
23
+ ApiWalletBindPost200ResponseToJSON,
24
+ ApiWalletBindPostRequestFromJSON,
25
+ ApiWalletBindPostRequestToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface ApiWalletBindPostOperationRequest {
29
+ apiWalletBindPostRequest?: ApiWalletBindPostRequest;
30
+ }
31
+
32
+ /**
33
+ *
34
+ */
35
+ export class WalletApi extends runtime.BaseAPI {
36
+
37
+ /**
38
+ * Bind Wallet
39
+ */
40
+ async apiWalletBindPostRaw(requestParameters: ApiWalletBindPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWalletBindPost200Response>> {
41
+ const queryParameters: any = {};
42
+
43
+ const headerParameters: runtime.HTTPHeaders = {};
44
+
45
+ headerParameters['Content-Type'] = 'application/json';
46
+
47
+ if (this.configuration && this.configuration.apiKey) {
48
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
49
+ }
50
+
51
+ if (this.configuration && this.configuration.accessToken) {
52
+ const token = this.configuration.accessToken;
53
+ const tokenString = await token("BearerAuth", []);
54
+
55
+ if (tokenString) {
56
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
57
+ }
58
+ }
59
+ const response = await this.request({
60
+ path: `/api/wallet/bind`,
61
+ method: 'POST',
62
+ headers: headerParameters,
63
+ query: queryParameters,
64
+ body: ApiWalletBindPostRequestToJSON(requestParameters['apiWalletBindPostRequest']),
65
+ }, initOverrides);
66
+
67
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiWalletBindPost200ResponseFromJSON(jsonValue));
68
+ }
69
+
70
+ /**
71
+ * Bind Wallet
72
+ */
73
+ async apiWalletBindPost(requestParameters: ApiWalletBindPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWalletBindPost200Response> {
74
+ const response = await this.apiWalletBindPostRaw(requestParameters, initOverrides);
75
+ return await response.value();
76
+ }
77
+
78
+ }
package/apis/index.ts CHANGED
@@ -15,4 +15,5 @@ export * from './UserApi';
15
15
  export * from './UserAffiliateApi';
16
16
  export * from './UserNotificationsApi';
17
17
  export * from './UserPointsApi';
18
+ export * from './WalletApi';
18
19
  export * from './YoutubeApi';
package/deploy.log CHANGED
@@ -242,6 +242,9 @@
242
242
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_user_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_notification_user_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_user_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
243
243
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_user_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_notification_user_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_user_post_200_response=NewModel,ModelA=NewModelA in CLI).
244
244
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_topic_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_notification_topic_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_topic_post_request=NewModel,ModelA=NewModelA in CLI).
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
+ [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
+ [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).
245
248
  [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/]
246
249
  [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/]
247
250
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsGet200Response.ts
@@ -474,6 +477,9 @@
474
477
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserRewardPointsPost200ResponseResponseObject.ts
475
478
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserRewardPointsPostRequest.ts
476
479
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserRewardPointsPostRequestMetadata.ts
480
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWalletBindPost200Response.ts
481
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWalletBindPost200ResponseResponseObject.ts
482
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWalletBindPostRequest.ts
477
483
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200Response.ts
478
484
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
479
485
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
@@ -571,6 +577,7 @@
571
577
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/mma/events/{id}. Renamed to auto-generated operationId: apiMmaEventsIdGet
572
578
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/notification/user. Renamed to auto-generated operationId: apiNotificationUserPost
573
579
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/notification/topic. Renamed to auto-generated operationId: apiNotificationTopicPost
580
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/wallet/bind. Renamed to auto-generated operationId: apiWalletBindPost
574
581
  [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/]
575
582
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
576
583
  [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/]
@@ -602,6 +609,8 @@
602
609
  [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/]
603
610
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/UserPointsApi.ts
604
611
  [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/]
612
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/WalletApi.ts
613
+ [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/]
605
614
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/YoutubeApi.ts
606
615
  [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/]
607
616
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./index.ts
@@ -617,21 +626,24 @@
617
626
  # https://opencollective.com/openapi_generator/donate #
618
627
  ################################################################################
619
628
  ✅ SDK generated
620
- On branch master
621
- Your branch is up to date with 'origin/master'.
622
-
623
- nothing to commit, working tree clean
624
- Everything up-to-date
629
+ [master 0b86f8c] VPS: Generated API SDK
630
+ 7 files changed, 370 insertions(+)
631
+ create mode 100644 apis/WalletApi.ts
632
+ create mode 100644 models/ApiWalletBindPost200Response.ts
633
+ create mode 100644 models/ApiWalletBindPost200ResponseResponseObject.ts
634
+ create mode 100644 models/ApiWalletBindPostRequest.ts
635
+ To https://gitlab.com/drx-super/drx-sdk.git
636
+ a089dd6..0b86f8c master -> master
625
637
  ✅ Changes committed and pushed
626
- v1.1.303
638
+ v1.1.304
627
639
  To https://gitlab.com/drx-super/drx-sdk.git
628
- f87aaa9..a089dd6 master -> master
640
+ 0b86f8c..b11a598 master -> master
629
641
  ✅ Version bumped
630
642
 
631
- > @drxsuperapp/sdk@1.1.303 prepublishOnly
643
+ > @drxsuperapp/sdk@1.1.304 prepublishOnly
632
644
  > npm run build
633
645
 
634
646
 
635
- > @drxsuperapp/sdk@1.1.303 build
647
+ > @drxsuperapp/sdk@1.1.304 build
636
648
  > tsc
637
649
 
@@ -0,0 +1,29 @@
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 * as runtime from '../runtime';
13
+ import type { ApiWalletBindPost200Response, ApiWalletBindPostRequest } from '../models/index';
14
+ export interface ApiWalletBindPostOperationRequest {
15
+ apiWalletBindPostRequest?: ApiWalletBindPostRequest;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class WalletApi extends runtime.BaseAPI {
21
+ /**
22
+ * Bind Wallet
23
+ */
24
+ apiWalletBindPostRaw(requestParameters: ApiWalletBindPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWalletBindPost200Response>>;
25
+ /**
26
+ * Bind Wallet
27
+ */
28
+ apiWalletBindPost(requestParameters?: ApiWalletBindPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWalletBindPost200Response>;
29
+ }
@@ -0,0 +1,53 @@
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 * as runtime from '../runtime';
15
+ import { ApiWalletBindPost200ResponseFromJSON, ApiWalletBindPostRequestToJSON, } from '../models/index';
16
+ /**
17
+ *
18
+ */
19
+ export class WalletApi extends runtime.BaseAPI {
20
+ /**
21
+ * Bind Wallet
22
+ */
23
+ async apiWalletBindPostRaw(requestParameters, initOverrides) {
24
+ const queryParameters = {};
25
+ const headerParameters = {};
26
+ headerParameters['Content-Type'] = 'application/json';
27
+ if (this.configuration && this.configuration.apiKey) {
28
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
29
+ }
30
+ if (this.configuration && this.configuration.accessToken) {
31
+ const token = this.configuration.accessToken;
32
+ const tokenString = await token("BearerAuth", []);
33
+ if (tokenString) {
34
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
35
+ }
36
+ }
37
+ const response = await this.request({
38
+ path: `/api/wallet/bind`,
39
+ method: 'POST',
40
+ headers: headerParameters,
41
+ query: queryParameters,
42
+ body: ApiWalletBindPostRequestToJSON(requestParameters['apiWalletBindPostRequest']),
43
+ }, initOverrides);
44
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiWalletBindPost200ResponseFromJSON(jsonValue));
45
+ }
46
+ /**
47
+ * Bind Wallet
48
+ */
49
+ async apiWalletBindPost(requestParameters = {}, initOverrides) {
50
+ const response = await this.apiWalletBindPostRaw(requestParameters, initOverrides);
51
+ return await response.value();
52
+ }
53
+ }
@@ -13,4 +13,5 @@ export * from './UserApi';
13
13
  export * from './UserAffiliateApi';
14
14
  export * from './UserNotificationsApi';
15
15
  export * from './UserPointsApi';
16
+ export * from './WalletApi';
16
17
  export * from './YoutubeApi';
@@ -15,4 +15,5 @@ export * from './UserApi';
15
15
  export * from './UserAffiliateApi';
16
16
  export * from './UserNotificationsApi';
17
17
  export * from './UserPointsApi';
18
+ export * from './WalletApi';
18
19
  export * from './YoutubeApi';
@@ -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 { ApiWalletBindPost200ResponseResponseObject } from './ApiWalletBindPost200ResponseResponseObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiWalletBindPost200Response
17
+ */
18
+ export interface ApiWalletBindPost200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ApiWalletBindPost200Response
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiWalletBindPost200Response
29
+ */
30
+ message: string;
31
+ /**
32
+ *
33
+ * @type {ApiWalletBindPost200ResponseResponseObject}
34
+ * @memberof ApiWalletBindPost200Response
35
+ */
36
+ responseObject?: ApiWalletBindPost200ResponseResponseObject;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiWalletBindPost200Response
41
+ */
42
+ statusCode: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiWalletBindPost200Response interface.
46
+ */
47
+ export declare function instanceOfApiWalletBindPost200Response(value: object): value is ApiWalletBindPost200Response;
48
+ export declare function ApiWalletBindPost200ResponseFromJSON(json: any): ApiWalletBindPost200Response;
49
+ export declare function ApiWalletBindPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletBindPost200Response;
50
+ export declare function ApiWalletBindPost200ResponseToJSON(json: any): ApiWalletBindPost200Response;
51
+ export declare function ApiWalletBindPost200ResponseToJSONTyped(value?: ApiWalletBindPost200Response | 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 { ApiWalletBindPost200ResponseResponseObjectFromJSON, ApiWalletBindPost200ResponseResponseObjectToJSON, } from './ApiWalletBindPost200ResponseResponseObject';
15
+ /**
16
+ * Check if a given object implements the ApiWalletBindPost200Response interface.
17
+ */
18
+ export function instanceOfApiWalletBindPost200Response(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 ApiWalletBindPost200ResponseFromJSON(json) {
28
+ return ApiWalletBindPost200ResponseFromJSONTyped(json, false);
29
+ }
30
+ export function ApiWalletBindPost200ResponseFromJSONTyped(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 : ApiWalletBindPost200ResponseResponseObjectFromJSON(json['responseObject']),
38
+ 'statusCode': json['statusCode'],
39
+ };
40
+ }
41
+ export function ApiWalletBindPost200ResponseToJSON(json) {
42
+ return ApiWalletBindPost200ResponseToJSONTyped(json, false);
43
+ }
44
+ export function ApiWalletBindPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'message': value['message'],
51
+ 'responseObject': ApiWalletBindPost200ResponseResponseObjectToJSON(value['responseObject']),
52
+ 'statusCode': value['statusCode'],
53
+ };
54
+ }
@@ -0,0 +1,68 @@
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 ApiWalletBindPost200ResponseResponseObject
16
+ */
17
+ export interface ApiWalletBindPost200ResponseResponseObject {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiWalletBindPost200ResponseResponseObject
22
+ */
23
+ wallet_address?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApiWalletBindPost200ResponseResponseObject
28
+ */
29
+ id: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ApiWalletBindPost200ResponseResponseObject
34
+ */
35
+ user_id: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiWalletBindPost200ResponseResponseObject
40
+ */
41
+ network?: string;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof ApiWalletBindPost200ResponseResponseObject
46
+ */
47
+ is_active: boolean;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ApiWalletBindPost200ResponseResponseObject
52
+ */
53
+ binded_at: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof ApiWalletBindPost200ResponseResponseObject
58
+ */
59
+ unbinded_at: string;
60
+ }
61
+ /**
62
+ * Check if a given object implements the ApiWalletBindPost200ResponseResponseObject interface.
63
+ */
64
+ export declare function instanceOfApiWalletBindPost200ResponseResponseObject(value: object): value is ApiWalletBindPost200ResponseResponseObject;
65
+ export declare function ApiWalletBindPost200ResponseResponseObjectFromJSON(json: any): ApiWalletBindPost200ResponseResponseObject;
66
+ export declare function ApiWalletBindPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletBindPost200ResponseResponseObject;
67
+ export declare function ApiWalletBindPost200ResponseResponseObjectToJSON(json: any): ApiWalletBindPost200ResponseResponseObject;
68
+ export declare function ApiWalletBindPost200ResponseResponseObjectToJSONTyped(value?: ApiWalletBindPost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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 ApiWalletBindPost200ResponseResponseObject interface.
16
+ */
17
+ export function instanceOfApiWalletBindPost200ResponseResponseObject(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('user_id' in value) || value['user_id'] === undefined)
21
+ return false;
22
+ if (!('is_active' in value) || value['is_active'] === undefined)
23
+ return false;
24
+ if (!('binded_at' in value) || value['binded_at'] === undefined)
25
+ return false;
26
+ if (!('unbinded_at' in value) || value['unbinded_at'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function ApiWalletBindPost200ResponseResponseObjectFromJSON(json) {
31
+ return ApiWalletBindPost200ResponseResponseObjectFromJSONTyped(json, false);
32
+ }
33
+ export function ApiWalletBindPost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'wallet_address': json['wallet_address'] == null ? undefined : json['wallet_address'],
39
+ 'id': json['id'],
40
+ 'user_id': json['user_id'],
41
+ 'network': json['network'] == null ? undefined : json['network'],
42
+ 'is_active': json['is_active'],
43
+ 'binded_at': json['binded_at'],
44
+ 'unbinded_at': json['unbinded_at'],
45
+ };
46
+ }
47
+ export function ApiWalletBindPost200ResponseResponseObjectToJSON(json) {
48
+ return ApiWalletBindPost200ResponseResponseObjectToJSONTyped(json, false);
49
+ }
50
+ export function ApiWalletBindPost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'wallet_address': value['wallet_address'],
56
+ 'id': value['id'],
57
+ 'user_id': value['user_id'],
58
+ 'network': value['network'],
59
+ 'is_active': value['is_active'],
60
+ 'binded_at': value['binded_at'],
61
+ 'unbinded_at': value['unbinded_at'],
62
+ };
63
+ }
@@ -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 ApiWalletBindPostRequest
16
+ */
17
+ export interface ApiWalletBindPostRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiWalletBindPostRequest
22
+ */
23
+ wallet_address: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ApiWalletBindPostRequest interface.
27
+ */
28
+ export declare function instanceOfApiWalletBindPostRequest(value: object): value is ApiWalletBindPostRequest;
29
+ export declare function ApiWalletBindPostRequestFromJSON(json: any): ApiWalletBindPostRequest;
30
+ export declare function ApiWalletBindPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletBindPostRequest;
31
+ export declare function ApiWalletBindPostRequestToJSON(json: any): ApiWalletBindPostRequest;
32
+ export declare function ApiWalletBindPostRequestToJSONTyped(value?: ApiWalletBindPostRequest | 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 ApiWalletBindPostRequest interface.
16
+ */
17
+ export function instanceOfApiWalletBindPostRequest(value) {
18
+ if (!('wallet_address' in value) || value['wallet_address'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ApiWalletBindPostRequestFromJSON(json) {
23
+ return ApiWalletBindPostRequestFromJSONTyped(json, false);
24
+ }
25
+ export function ApiWalletBindPostRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'wallet_address': json['wallet_address'],
31
+ };
32
+ }
33
+ export function ApiWalletBindPostRequestToJSON(json) {
34
+ return ApiWalletBindPostRequestToJSONTyped(json, false);
35
+ }
36
+ export function ApiWalletBindPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'wallet_address': value['wallet_address'],
42
+ };
43
+ }
@@ -228,6 +228,9 @@ export * from './ApiUserRewardPointsPost200Response';
228
228
  export * from './ApiUserRewardPointsPost200ResponseResponseObject';
229
229
  export * from './ApiUserRewardPointsPostRequest';
230
230
  export * from './ApiUserRewardPointsPostRequestMetadata';
231
+ export * from './ApiWalletBindPost200Response';
232
+ export * from './ApiWalletBindPost200ResponseResponseObject';
233
+ export * from './ApiWalletBindPostRequest';
231
234
  export * from './ApiYoutubeDrxContentGet200Response';
232
235
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
233
236
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
@@ -230,6 +230,9 @@ export * from './ApiUserRewardPointsPost200Response';
230
230
  export * from './ApiUserRewardPointsPost200ResponseResponseObject';
231
231
  export * from './ApiUserRewardPointsPostRequest';
232
232
  export * from './ApiUserRewardPointsPostRequestMetadata';
233
+ export * from './ApiWalletBindPost200Response';
234
+ export * from './ApiWalletBindPost200ResponseResponseObject';
235
+ export * from './ApiWalletBindPostRequest';
233
236
  export * from './ApiYoutubeDrxContentGet200Response';
234
237
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
235
238
  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 { ApiWalletBindPost200ResponseResponseObject } from './ApiWalletBindPost200ResponseResponseObject';
17
+ import {
18
+ ApiWalletBindPost200ResponseResponseObjectFromJSON,
19
+ ApiWalletBindPost200ResponseResponseObjectFromJSONTyped,
20
+ ApiWalletBindPost200ResponseResponseObjectToJSON,
21
+ ApiWalletBindPost200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiWalletBindPost200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiWalletBindPost200Response
28
+ */
29
+ export interface ApiWalletBindPost200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiWalletBindPost200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiWalletBindPost200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiWalletBindPost200ResponseResponseObject}
45
+ * @memberof ApiWalletBindPost200Response
46
+ */
47
+ responseObject?: ApiWalletBindPost200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiWalletBindPost200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiWalletBindPost200Response interface.
58
+ */
59
+ export function instanceOfApiWalletBindPost200Response(value: object): value is ApiWalletBindPost200Response {
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 ApiWalletBindPost200ResponseFromJSON(json: any): ApiWalletBindPost200Response {
67
+ return ApiWalletBindPost200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiWalletBindPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletBindPost200Response {
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 : ApiWalletBindPost200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiWalletBindPost200ResponseToJSON(json: any): ApiWalletBindPost200Response {
84
+ return ApiWalletBindPost200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiWalletBindPost200ResponseToJSONTyped(value?: ApiWalletBindPost200Response | 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': ApiWalletBindPost200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,118 @@
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 ApiWalletBindPost200ResponseResponseObject
20
+ */
21
+ export interface ApiWalletBindPost200ResponseResponseObject {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiWalletBindPost200ResponseResponseObject
26
+ */
27
+ wallet_address?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiWalletBindPost200ResponseResponseObject
32
+ */
33
+ id: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiWalletBindPost200ResponseResponseObject
38
+ */
39
+ user_id: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ApiWalletBindPost200ResponseResponseObject
44
+ */
45
+ network?: string;
46
+ /**
47
+ *
48
+ * @type {boolean}
49
+ * @memberof ApiWalletBindPost200ResponseResponseObject
50
+ */
51
+ is_active: boolean;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof ApiWalletBindPost200ResponseResponseObject
56
+ */
57
+ binded_at: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof ApiWalletBindPost200ResponseResponseObject
62
+ */
63
+ unbinded_at: string;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the ApiWalletBindPost200ResponseResponseObject interface.
68
+ */
69
+ export function instanceOfApiWalletBindPost200ResponseResponseObject(value: object): value is ApiWalletBindPost200ResponseResponseObject {
70
+ if (!('id' in value) || value['id'] === undefined) return false;
71
+ if (!('user_id' in value) || value['user_id'] === undefined) return false;
72
+ if (!('is_active' in value) || value['is_active'] === undefined) return false;
73
+ if (!('binded_at' in value) || value['binded_at'] === undefined) return false;
74
+ if (!('unbinded_at' in value) || value['unbinded_at'] === undefined) return false;
75
+ return true;
76
+ }
77
+
78
+ export function ApiWalletBindPost200ResponseResponseObjectFromJSON(json: any): ApiWalletBindPost200ResponseResponseObject {
79
+ return ApiWalletBindPost200ResponseResponseObjectFromJSONTyped(json, false);
80
+ }
81
+
82
+ export function ApiWalletBindPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletBindPost200ResponseResponseObject {
83
+ if (json == null) {
84
+ return json;
85
+ }
86
+ return {
87
+
88
+ 'wallet_address': json['wallet_address'] == null ? undefined : json['wallet_address'],
89
+ 'id': json['id'],
90
+ 'user_id': json['user_id'],
91
+ 'network': json['network'] == null ? undefined : json['network'],
92
+ 'is_active': json['is_active'],
93
+ 'binded_at': json['binded_at'],
94
+ 'unbinded_at': json['unbinded_at'],
95
+ };
96
+ }
97
+
98
+ export function ApiWalletBindPost200ResponseResponseObjectToJSON(json: any): ApiWalletBindPost200ResponseResponseObject {
99
+ return ApiWalletBindPost200ResponseResponseObjectToJSONTyped(json, false);
100
+ }
101
+
102
+ export function ApiWalletBindPost200ResponseResponseObjectToJSONTyped(value?: ApiWalletBindPost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
103
+ if (value == null) {
104
+ return value;
105
+ }
106
+
107
+ return {
108
+
109
+ 'wallet_address': value['wallet_address'],
110
+ 'id': value['id'],
111
+ 'user_id': value['user_id'],
112
+ 'network': value['network'],
113
+ 'is_active': value['is_active'],
114
+ 'binded_at': value['binded_at'],
115
+ 'unbinded_at': value['unbinded_at'],
116
+ };
117
+ }
118
+
@@ -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 ApiWalletBindPostRequest
20
+ */
21
+ export interface ApiWalletBindPostRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiWalletBindPostRequest
26
+ */
27
+ wallet_address: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ApiWalletBindPostRequest interface.
32
+ */
33
+ export function instanceOfApiWalletBindPostRequest(value: object): value is ApiWalletBindPostRequest {
34
+ if (!('wallet_address' in value) || value['wallet_address'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ApiWalletBindPostRequestFromJSON(json: any): ApiWalletBindPostRequest {
39
+ return ApiWalletBindPostRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ApiWalletBindPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletBindPostRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'wallet_address': json['wallet_address'],
49
+ };
50
+ }
51
+
52
+ export function ApiWalletBindPostRequestToJSON(json: any): ApiWalletBindPostRequest {
53
+ return ApiWalletBindPostRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ApiWalletBindPostRequestToJSONTyped(value?: ApiWalletBindPostRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'wallet_address': value['wallet_address'],
64
+ };
65
+ }
66
+
package/models/index.ts CHANGED
@@ -230,6 +230,9 @@ export * from './ApiUserRewardPointsPost200Response';
230
230
  export * from './ApiUserRewardPointsPost200ResponseResponseObject';
231
231
  export * from './ApiUserRewardPointsPostRequest';
232
232
  export * from './ApiUserRewardPointsPostRequestMetadata';
233
+ export * from './ApiWalletBindPost200Response';
234
+ export * from './ApiWalletBindPost200ResponseResponseObject';
235
+ export * from './ApiWalletBindPostRequest';
233
236
  export * from './ApiYoutubeDrxContentGet200Response';
234
237
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
235
238
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.303",
3
+ "version": "1.1.304",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {