@drxsuperapp/sdk 1.1.163 → 1.1.170

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.
Files changed (121) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/apis/AppConfigApi.ts +119 -0
  3. package/apis/AuthenticationApi.ts +166 -0
  4. package/apis/PadelApi.ts +0 -5
  5. package/apis/TennisApi.ts +0 -15
  6. package/apis/TournamentApi.ts +0 -5
  7. package/apis/UserAffiliateApi.ts +186 -0
  8. package/apis/UserApi.ts +0 -46
  9. package/apis/UserPointsApi.ts +176 -0
  10. package/apis/index.ts +4 -0
  11. package/deploy.log +216 -7
  12. package/dist/apis/AppConfigApi.d.ts +37 -0
  13. package/dist/apis/AppConfigApi.js +84 -0
  14. package/dist/apis/AuthenticationApi.d.ts +51 -0
  15. package/dist/apis/AuthenticationApi.js +121 -0
  16. package/dist/apis/PadelApi.d.ts +0 -1
  17. package/dist/apis/PadelApi.js +0 -3
  18. package/dist/apis/TennisApi.d.ts +0 -3
  19. package/dist/apis/TennisApi.js +0 -9
  20. package/dist/apis/TournamentApi.d.ts +0 -1
  21. package/dist/apis/TournamentApi.js +0 -3
  22. package/dist/apis/UserAffiliateApi.d.ts +51 -0
  23. package/dist/apis/UserAffiliateApi.js +127 -0
  24. package/dist/apis/UserApi.d.ts +1 -10
  25. package/dist/apis/UserApi.js +1 -35
  26. package/dist/apis/UserPointsApi.d.ts +48 -0
  27. package/dist/apis/UserPointsApi.js +125 -0
  28. package/dist/apis/index.d.ts +4 -0
  29. package/dist/apis/index.js +4 -0
  30. package/dist/models/ApiAuthLoginPost200Response.d.ts +51 -0
  31. package/dist/models/ApiAuthLoginPost200Response.js +54 -0
  32. package/dist/models/ApiAuthRefreshPost200Response.d.ts +51 -0
  33. package/dist/models/ApiAuthRefreshPost200Response.js +54 -0
  34. package/dist/models/ApiTournamentGetFilterParameter.d.ts +0 -6
  35. package/dist/models/ApiTournamentGetFilterParameter.js +0 -2
  36. package/dist/models/ApiUserAffiliateGet200Response.d.ts +51 -0
  37. package/dist/models/ApiUserAffiliateGet200Response.js +54 -0
  38. package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.d.ts +63 -0
  39. package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.js +64 -0
  40. package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.d.ts +50 -0
  41. package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.js +55 -0
  42. package/dist/models/ApiUserApplyAffiliateCodePost200Response.d.ts +51 -0
  43. package/dist/models/ApiUserApplyAffiliateCodePost200Response.js +54 -0
  44. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.d.ts +51 -0
  45. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.js +54 -0
  46. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.d.ts +38 -0
  47. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.js +47 -0
  48. package/dist/models/ApiUserApplyAffiliateCodePostRequest.d.ts +32 -0
  49. package/dist/models/ApiUserApplyAffiliateCodePostRequest.js +43 -0
  50. package/dist/models/ApiUserPointRewardsGet200Response.d.ts +51 -0
  51. package/dist/models/ApiUserPointRewardsGet200Response.js +54 -0
  52. package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.d.ts +68 -0
  53. package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.js +67 -0
  54. package/dist/models/ApiUserPointRewardsPut200Response.d.ts +51 -0
  55. package/dist/models/ApiUserPointRewardsPut200Response.js +54 -0
  56. package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.d.ts +50 -0
  57. package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.js +55 -0
  58. package/dist/models/ApiUserPointRewardsPutRequest.d.ts +51 -0
  59. package/dist/models/ApiUserPointRewardsPutRequest.js +59 -0
  60. package/dist/models/ApiUserPointsGet200Response.d.ts +51 -0
  61. package/dist/models/ApiUserPointsGet200Response.js +54 -0
  62. package/dist/models/ApiUserPointsGet200ResponseResponseObject.d.ts +56 -0
  63. package/dist/models/ApiUserPointsGet200ResponseResponseObject.js +59 -0
  64. package/dist/models/ApiUserPointsHistoryGet200Response.d.ts +51 -0
  65. package/dist/models/ApiUserPointsHistoryGet200Response.js +54 -0
  66. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.d.ts +57 -0
  67. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.js +60 -0
  68. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.d.ts +103 -0
  69. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.js +96 -0
  70. package/dist/models/ApiUserPointsHistoryGetFilterParameter.d.ts +52 -0
  71. package/dist/models/ApiUserPointsHistoryGetFilterParameter.js +49 -0
  72. package/dist/models/ApiUserRecentReferralsGet200Response.d.ts +51 -0
  73. package/dist/models/ApiUserRecentReferralsGet200Response.js +54 -0
  74. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.d.ts +57 -0
  75. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.js +60 -0
  76. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.d.ts +56 -0
  77. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.js +59 -0
  78. package/dist/models/ApiUserRecentReferralsGetFilterParameter.d.ts +46 -0
  79. package/dist/models/ApiUserRecentReferralsGetFilterParameter.js +47 -0
  80. package/dist/models/LoginRequest.d.ts +38 -0
  81. package/dist/models/LoginRequest.js +47 -0
  82. package/dist/models/LoginResponse.d.ts +45 -0
  83. package/dist/models/LoginResponse.js +52 -0
  84. package/dist/models/LoginResponseUser.d.ts +56 -0
  85. package/dist/models/LoginResponseUser.js +59 -0
  86. package/dist/models/RefreshTokenResponse.d.ts +38 -0
  87. package/dist/models/RefreshTokenResponse.js +47 -0
  88. package/dist/models/index.d.ts +28 -0
  89. package/dist/models/index.js +28 -0
  90. package/models/ApiAuthLoginPost200Response.ts +100 -0
  91. package/models/ApiAuthRefreshPost200Response.ts +100 -0
  92. package/models/ApiTournamentGetFilterParameter.ts +0 -8
  93. package/models/ApiUserAffiliateGet200Response.ts +100 -0
  94. package/models/ApiUserAffiliateGet200ResponseResponseObject.ts +119 -0
  95. package/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.ts +93 -0
  96. package/models/ApiUserApplyAffiliateCodePost200Response.ts +100 -0
  97. package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.ts +100 -0
  98. package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.ts +75 -0
  99. package/models/ApiUserApplyAffiliateCodePostRequest.ts +66 -0
  100. package/models/ApiUserPointRewardsGet200Response.ts +100 -0
  101. package/models/ApiUserPointRewardsGet200ResponseResponseObject.ts +120 -0
  102. package/models/ApiUserPointRewardsPut200Response.ts +100 -0
  103. package/models/ApiUserPointRewardsPut200ResponseResponseObject.ts +93 -0
  104. package/models/ApiUserPointRewardsPutRequest.ts +91 -0
  105. package/models/ApiUserPointsGet200Response.ts +100 -0
  106. package/models/ApiUserPointsGet200ResponseResponseObject.ts +102 -0
  107. package/models/ApiUserPointsHistoryGet200Response.ts +100 -0
  108. package/models/ApiUserPointsHistoryGet200ResponseResponseObject.ts +110 -0
  109. package/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.ts +160 -0
  110. package/models/ApiUserPointsHistoryGetFilterParameter.ts +104 -0
  111. package/models/ApiUserRecentReferralsGet200Response.ts +100 -0
  112. package/models/ApiUserRecentReferralsGet200ResponseResponseObject.ts +110 -0
  113. package/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.ts +102 -0
  114. package/models/ApiUserRecentReferralsGetFilterParameter.ts +96 -0
  115. package/models/LoginRequest.ts +75 -0
  116. package/models/LoginResponse.ts +92 -0
  117. package/models/LoginResponseUser.ts +102 -0
  118. package/models/RefreshTokenResponse.ts +75 -0
  119. package/models/index.ts +28 -0
  120. package/package.json +1 -1
  121. package/workflow.sh +2 -2
@@ -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 { ApiUserApplyAffiliateCodePost200ResponseResponseObject } from './ApiUserApplyAffiliateCodePost200ResponseResponseObject';
17
+ import {
18
+ ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSON,
19
+ ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSONTyped,
20
+ ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSON,
21
+ ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiUserApplyAffiliateCodePost200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiUserApplyAffiliateCodePost200Response
28
+ */
29
+ export interface ApiUserApplyAffiliateCodePost200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiUserApplyAffiliateCodePost200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiUserApplyAffiliateCodePost200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiUserApplyAffiliateCodePost200ResponseResponseObject}
45
+ * @memberof ApiUserApplyAffiliateCodePost200Response
46
+ */
47
+ responseObject?: ApiUserApplyAffiliateCodePost200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiUserApplyAffiliateCodePost200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiUserApplyAffiliateCodePost200Response interface.
58
+ */
59
+ export function instanceOfApiUserApplyAffiliateCodePost200Response(value: object): value is ApiUserApplyAffiliateCodePost200Response {
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 ApiUserApplyAffiliateCodePost200ResponseFromJSON(json: any): ApiUserApplyAffiliateCodePost200Response {
67
+ return ApiUserApplyAffiliateCodePost200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiUserApplyAffiliateCodePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserApplyAffiliateCodePost200Response {
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 : ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiUserApplyAffiliateCodePost200ResponseToJSON(json: any): ApiUserApplyAffiliateCodePost200Response {
84
+ return ApiUserApplyAffiliateCodePost200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiUserApplyAffiliateCodePost200ResponseToJSONTyped(value?: ApiUserApplyAffiliateCodePost200Response | 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': ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -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 { ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer } from './ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer';
17
+ import {
18
+ ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSON,
19
+ ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSONTyped,
20
+ ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSON,
21
+ ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSONTyped,
22
+ } from './ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiUserApplyAffiliateCodePost200ResponseResponseObject
28
+ */
29
+ export interface ApiUserApplyAffiliateCodePost200ResponseResponseObject {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
46
+ */
47
+ pointsAwarded: number;
48
+ /**
49
+ *
50
+ * @type {ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer}
51
+ * @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
52
+ */
53
+ referrer?: ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiUserApplyAffiliateCodePost200ResponseResponseObject interface.
58
+ */
59
+ export function instanceOfApiUserApplyAffiliateCodePost200ResponseResponseObject(value: object): value is ApiUserApplyAffiliateCodePost200ResponseResponseObject {
60
+ if (!('success' in value) || value['success'] === undefined) return false;
61
+ if (!('message' in value) || value['message'] === undefined) return false;
62
+ if (!('pointsAwarded' in value) || value['pointsAwarded'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObject {
67
+ return ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserApplyAffiliateCodePost200ResponseResponseObject {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'success': json['success'],
77
+ 'message': json['message'],
78
+ 'pointsAwarded': json['pointsAwarded'],
79
+ 'referrer': json['referrer'] == null ? undefined : ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSON(json['referrer']),
80
+ };
81
+ }
82
+
83
+ export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObject {
84
+ return ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSONTyped(value?: ApiUserApplyAffiliateCodePost200ResponseResponseObject | 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
+ 'pointsAwarded': value['pointsAwarded'],
97
+ 'referrer': ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSON(value['referrer']),
98
+ };
99
+ }
100
+
@@ -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 ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer
20
+ */
21
+ export interface ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer
32
+ */
33
+ name: string | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer interface.
38
+ */
39
+ export function instanceOfApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer(value: object): value is ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer {
46
+ return ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer {
61
+ return ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSONTyped(value?: ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -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 ApiUserApplyAffiliateCodePostRequest
20
+ */
21
+ export interface ApiUserApplyAffiliateCodePostRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiUserApplyAffiliateCodePostRequest
26
+ */
27
+ affiliateCode: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ApiUserApplyAffiliateCodePostRequest interface.
32
+ */
33
+ export function instanceOfApiUserApplyAffiliateCodePostRequest(value: object): value is ApiUserApplyAffiliateCodePostRequest {
34
+ if (!('affiliateCode' in value) || value['affiliateCode'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ApiUserApplyAffiliateCodePostRequestFromJSON(json: any): ApiUserApplyAffiliateCodePostRequest {
39
+ return ApiUserApplyAffiliateCodePostRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ApiUserApplyAffiliateCodePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserApplyAffiliateCodePostRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'affiliateCode': json['affiliate_code'],
49
+ };
50
+ }
51
+
52
+ export function ApiUserApplyAffiliateCodePostRequestToJSON(json: any): ApiUserApplyAffiliateCodePostRequest {
53
+ return ApiUserApplyAffiliateCodePostRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ApiUserApplyAffiliateCodePostRequestToJSONTyped(value?: ApiUserApplyAffiliateCodePostRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'affiliate_code': value['affiliateCode'],
64
+ };
65
+ }
66
+
@@ -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 { ApiUserPointRewardsGet200ResponseResponseObject } from './ApiUserPointRewardsGet200ResponseResponseObject';
17
+ import {
18
+ ApiUserPointRewardsGet200ResponseResponseObjectFromJSON,
19
+ ApiUserPointRewardsGet200ResponseResponseObjectFromJSONTyped,
20
+ ApiUserPointRewardsGet200ResponseResponseObjectToJSON,
21
+ ApiUserPointRewardsGet200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiUserPointRewardsGet200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiUserPointRewardsGet200Response
28
+ */
29
+ export interface ApiUserPointRewardsGet200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiUserPointRewardsGet200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiUserPointRewardsGet200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiUserPointRewardsGet200ResponseResponseObject}
45
+ * @memberof ApiUserPointRewardsGet200Response
46
+ */
47
+ responseObject?: ApiUserPointRewardsGet200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiUserPointRewardsGet200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiUserPointRewardsGet200Response interface.
58
+ */
59
+ export function instanceOfApiUserPointRewardsGet200Response(value: object): value is ApiUserPointRewardsGet200Response {
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 ApiUserPointRewardsGet200ResponseFromJSON(json: any): ApiUserPointRewardsGet200Response {
67
+ return ApiUserPointRewardsGet200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiUserPointRewardsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserPointRewardsGet200Response {
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 : ApiUserPointRewardsGet200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiUserPointRewardsGet200ResponseToJSON(json: any): ApiUserPointRewardsGet200Response {
84
+ return ApiUserPointRewardsGet200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiUserPointRewardsGet200ResponseToJSONTyped(value?: ApiUserPointRewardsGet200Response | 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': ApiUserPointRewardsGet200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,120 @@
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 ApiUserPointRewardsGet200ResponseResponseObject
20
+ */
21
+ export interface ApiUserPointRewardsGet200ResponseResponseObject {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ApiUserPointRewardsGet200ResponseResponseObject
26
+ */
27
+ sIGNUP: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ApiUserPointRewardsGet200ResponseResponseObject
32
+ */
33
+ rEFERRAL: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof ApiUserPointRewardsGet200ResponseResponseObject
38
+ */
39
+ nFCSCAN: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ApiUserPointRewardsGet200ResponseResponseObject
44
+ */
45
+ fIRSTGAME: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof ApiUserPointRewardsGet200ResponseResponseObject
50
+ */
51
+ dAILYLOGIN: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof ApiUserPointRewardsGet200ResponseResponseObject
56
+ */
57
+ tOURNAMENTWIN: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof ApiUserPointRewardsGet200ResponseResponseObject
62
+ */
63
+ aDMINBONUS: number;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the ApiUserPointRewardsGet200ResponseResponseObject interface.
68
+ */
69
+ export function instanceOfApiUserPointRewardsGet200ResponseResponseObject(value: object): value is ApiUserPointRewardsGet200ResponseResponseObject {
70
+ if (!('sIGNUP' in value) || value['sIGNUP'] === undefined) return false;
71
+ if (!('rEFERRAL' in value) || value['rEFERRAL'] === undefined) return false;
72
+ if (!('nFCSCAN' in value) || value['nFCSCAN'] === undefined) return false;
73
+ if (!('fIRSTGAME' in value) || value['fIRSTGAME'] === undefined) return false;
74
+ if (!('dAILYLOGIN' in value) || value['dAILYLOGIN'] === undefined) return false;
75
+ if (!('tOURNAMENTWIN' in value) || value['tOURNAMENTWIN'] === undefined) return false;
76
+ if (!('aDMINBONUS' in value) || value['aDMINBONUS'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function ApiUserPointRewardsGet200ResponseResponseObjectFromJSON(json: any): ApiUserPointRewardsGet200ResponseResponseObject {
81
+ return ApiUserPointRewardsGet200ResponseResponseObjectFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function ApiUserPointRewardsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserPointRewardsGet200ResponseResponseObject {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'sIGNUP': json['SIGNUP'],
91
+ 'rEFERRAL': json['REFERRAL'],
92
+ 'nFCSCAN': json['NFC_SCAN'],
93
+ 'fIRSTGAME': json['FIRST_GAME'],
94
+ 'dAILYLOGIN': json['DAILY_LOGIN'],
95
+ 'tOURNAMENTWIN': json['TOURNAMENT_WIN'],
96
+ 'aDMINBONUS': json['ADMIN_BONUS'],
97
+ };
98
+ }
99
+
100
+ export function ApiUserPointRewardsGet200ResponseResponseObjectToJSON(json: any): ApiUserPointRewardsGet200ResponseResponseObject {
101
+ return ApiUserPointRewardsGet200ResponseResponseObjectToJSONTyped(json, false);
102
+ }
103
+
104
+ export function ApiUserPointRewardsGet200ResponseResponseObjectToJSONTyped(value?: ApiUserPointRewardsGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'SIGNUP': value['sIGNUP'],
112
+ 'REFERRAL': value['rEFERRAL'],
113
+ 'NFC_SCAN': value['nFCSCAN'],
114
+ 'FIRST_GAME': value['fIRSTGAME'],
115
+ 'DAILY_LOGIN': value['dAILYLOGIN'],
116
+ 'TOURNAMENT_WIN': value['tOURNAMENTWIN'],
117
+ 'ADMIN_BONUS': value['aDMINBONUS'],
118
+ };
119
+ }
120
+
@@ -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 { ApiUserPointRewardsPut200ResponseResponseObject } from './ApiUserPointRewardsPut200ResponseResponseObject';
17
+ import {
18
+ ApiUserPointRewardsPut200ResponseResponseObjectFromJSON,
19
+ ApiUserPointRewardsPut200ResponseResponseObjectFromJSONTyped,
20
+ ApiUserPointRewardsPut200ResponseResponseObjectToJSON,
21
+ ApiUserPointRewardsPut200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiUserPointRewardsPut200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiUserPointRewardsPut200Response
28
+ */
29
+ export interface ApiUserPointRewardsPut200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiUserPointRewardsPut200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiUserPointRewardsPut200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiUserPointRewardsPut200ResponseResponseObject}
45
+ * @memberof ApiUserPointRewardsPut200Response
46
+ */
47
+ responseObject?: ApiUserPointRewardsPut200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiUserPointRewardsPut200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiUserPointRewardsPut200Response interface.
58
+ */
59
+ export function instanceOfApiUserPointRewardsPut200Response(value: object): value is ApiUserPointRewardsPut200Response {
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 ApiUserPointRewardsPut200ResponseFromJSON(json: any): ApiUserPointRewardsPut200Response {
67
+ return ApiUserPointRewardsPut200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiUserPointRewardsPut200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserPointRewardsPut200Response {
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 : ApiUserPointRewardsPut200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiUserPointRewardsPut200ResponseToJSON(json: any): ApiUserPointRewardsPut200Response {
84
+ return ApiUserPointRewardsPut200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiUserPointRewardsPut200ResponseToJSONTyped(value?: ApiUserPointRewardsPut200Response | 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': ApiUserPointRewardsPut200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+