@drxsuperapp/sdk 1.1.392 → 1.1.394

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.
package/deploy.log CHANGED
@@ -804,21 +804,20 @@
804
804
  # https://opencollective.com/openapi_generator/donate #
805
805
  ################################################################################
806
806
  ✅ SDK generated
807
- On branch master
808
- Your branch is up to date with 'origin/master'.
809
-
810
- nothing to commit, working tree clean
811
- Everything up-to-date
807
+ [master d678c10] VPS: Generated API SDK
808
+ 3 files changed, 26 insertions(+)
809
+ To https://gitlab.com/drx-super/drx-sdk.git
810
+ 70264c9..d678c10 master -> master
812
811
  ✅ Changes committed and pushed
813
- v1.1.392
812
+ v1.1.394
814
813
  To https://gitlab.com/drx-super/drx-sdk.git
815
- e647e99..0736c5e master -> master
814
+ d678c10..98f7e85 master -> master
816
815
  ✅ Version bumped
817
816
 
818
- > @drxsuperapp/sdk@1.1.392 prepublishOnly
817
+ > @drxsuperapp/sdk@1.1.394 prepublishOnly
819
818
  > npm run build
820
819
 
821
820
 
822
- > @drxsuperapp/sdk@1.1.392 build
821
+ > @drxsuperapp/sdk@1.1.394 build
823
822
  > tsc
824
823
 
@@ -27,6 +27,12 @@ export interface ApiWeb3PrepareRedeemPostRequest {
27
27
  * @memberof ApiWeb3PrepareRedeemPostRequest
28
28
  */
29
29
  stockAmount: number;
30
+ /**
31
+ * Optional email for notifications
32
+ * @type {string}
33
+ * @memberof ApiWeb3PrepareRedeemPostRequest
34
+ */
35
+ notificationEmail?: string;
30
36
  }
31
37
  /**
32
38
  * Check if a given object implements the ApiWeb3PrepareRedeemPostRequest interface.
@@ -31,6 +31,7 @@ export function ApiWeb3PrepareRedeemPostRequestFromJSONTyped(json, ignoreDiscrim
31
31
  return {
32
32
  'rewardItemId': json['rewardItemId'],
33
33
  'stockAmount': json['stockAmount'],
34
+ 'notificationEmail': json['notificationEmail'] == null ? undefined : json['notificationEmail'],
34
35
  };
35
36
  }
36
37
  export function ApiWeb3PrepareRedeemPostRequestToJSON(json) {
@@ -43,5 +44,6 @@ export function ApiWeb3PrepareRedeemPostRequestToJSONTyped(value, ignoreDiscrimi
43
44
  return {
44
45
  'rewardItemId': value['rewardItemId'],
45
46
  'stockAmount': value['stockAmount'],
47
+ 'notificationEmail': value['notificationEmail'],
46
48
  };
47
49
  }
@@ -53,6 +53,12 @@ export interface ApiWeb3RedemptionGet200ResponseResponseObjectItemsInner {
53
53
  * @memberof ApiWeb3RedemptionGet200ResponseResponseObjectItemsInner
54
54
  */
55
55
  txHash: string | null;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof ApiWeb3RedemptionGet200ResponseResponseObjectItemsInner
60
+ */
61
+ notificationEmail: string | null;
56
62
  /**
57
63
  *
58
64
  * @type {Date}
@@ -29,6 +29,8 @@ export function instanceOfApiWeb3RedemptionGet200ResponseResponseObjectItemsInne
29
29
  return false;
30
30
  if (!('txHash' in value) || value['txHash'] === undefined)
31
31
  return false;
32
+ if (!('notificationEmail' in value) || value['notificationEmail'] === undefined)
33
+ return false;
32
34
  if (!('createdAt' in value) || value['createdAt'] === undefined)
33
35
  return false;
34
36
  if (!('reward' in value) || value['reward'] === undefined)
@@ -51,6 +53,7 @@ export function ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerFromJSONT
51
53
  'amountDrx': json['amountDrx'],
52
54
  'amountIdr': json['amountIdr'],
53
55
  'txHash': json['txHash'],
56
+ 'notificationEmail': json['notificationEmail'],
54
57
  'createdAt': (new Date(json['createdAt'])),
55
58
  'reward': ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerRewardFromJSON(json['reward']),
56
59
  'user': ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerUserFromJSON(json['user']),
@@ -70,6 +73,7 @@ export function ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerToJSONTyp
70
73
  'amountDrx': value['amountDrx'],
71
74
  'amountIdr': value['amountIdr'],
72
75
  'txHash': value['txHash'],
76
+ 'notificationEmail': value['notificationEmail'],
73
77
  'createdAt': ((value['createdAt']).toISOString()),
74
78
  'reward': ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerRewardToJSON(value['reward']),
75
79
  'user': ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerUserToJSON(value['user']),
@@ -52,6 +52,12 @@ export interface ApiWeb3RedemptionIdGet200ResponseResponseObject {
52
52
  * @memberof ApiWeb3RedemptionIdGet200ResponseResponseObject
53
53
  */
54
54
  txHash: string | null;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ApiWeb3RedemptionIdGet200ResponseResponseObject
59
+ */
60
+ notificationEmail: string | null;
55
61
  /**
56
62
  *
57
63
  * @type {Date}
@@ -28,6 +28,8 @@ export function instanceOfApiWeb3RedemptionIdGet200ResponseResponseObject(value)
28
28
  return false;
29
29
  if (!('txHash' in value) || value['txHash'] === undefined)
30
30
  return false;
31
+ if (!('notificationEmail' in value) || value['notificationEmail'] === undefined)
32
+ return false;
31
33
  if (!('reviewedAt' in value) || value['reviewedAt'] === undefined)
32
34
  return false;
33
35
  if (!('confirmedAt' in value) || value['confirmedAt'] === undefined)
@@ -58,6 +60,7 @@ export function ApiWeb3RedemptionIdGet200ResponseResponseObjectFromJSONTyped(jso
58
60
  'amountDrx': json['amountDrx'],
59
61
  'amountIdr': json['amountIdr'],
60
62
  'txHash': json['txHash'],
63
+ 'notificationEmail': json['notificationEmail'],
61
64
  'reviewedAt': (json['reviewedAt'] == null ? null : new Date(json['reviewedAt'])),
62
65
  'confirmedAt': (json['confirmedAt'] == null ? null : new Date(json['confirmedAt'])),
63
66
  'completedAt': (json['completedAt'] == null ? null : new Date(json['completedAt'])),
@@ -81,6 +84,7 @@ export function ApiWeb3RedemptionIdGet200ResponseResponseObjectToJSONTyped(value
81
84
  'amountDrx': value['amountDrx'],
82
85
  'amountIdr': value['amountIdr'],
83
86
  'txHash': value['txHash'],
87
+ 'notificationEmail': value['notificationEmail'],
84
88
  'reviewedAt': (value['reviewedAt'] == null ? null : value['reviewedAt'].toISOString()),
85
89
  'confirmedAt': (value['confirmedAt'] == null ? null : value['confirmedAt'].toISOString()),
86
90
  'completedAt': (value['completedAt'] == null ? null : value['completedAt'].toISOString()),
@@ -20,18 +20,8 @@ export interface ApiWeb3RewardCategoriesGet200ResponseResponseObject {
20
20
  * @type {Array<string>}
21
21
  * @memberof ApiWeb3RewardCategoriesGet200ResponseResponseObject
22
22
  */
23
- categories: Array<ApiWeb3RewardCategoriesGet200ResponseResponseObjectCategoriesEnum>;
23
+ categories: Array<string>;
24
24
  }
25
- /**
26
- * @export
27
- */
28
- export declare const ApiWeb3RewardCategoriesGet200ResponseResponseObjectCategoriesEnum: {
29
- readonly None: "NONE";
30
- readonly Jersey: "JERSEY";
31
- readonly MobileLegends: "MOBILE_LEGENDS";
32
- readonly ClashOfLegends: "CLASH_OF_LEGENDS";
33
- };
34
- export type ApiWeb3RewardCategoriesGet200ResponseResponseObjectCategoriesEnum = typeof ApiWeb3RewardCategoriesGet200ResponseResponseObjectCategoriesEnum[keyof typeof ApiWeb3RewardCategoriesGet200ResponseResponseObjectCategoriesEnum];
35
25
  /**
36
26
  * Check if a given object implements the ApiWeb3RewardCategoriesGet200ResponseResponseObject interface.
37
27
  */
@@ -11,15 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- /**
15
- * @export
16
- */
17
- export const ApiWeb3RewardCategoriesGet200ResponseResponseObjectCategoriesEnum = {
18
- None: 'NONE',
19
- Jersey: 'JERSEY',
20
- MobileLegends: 'MOBILE_LEGENDS',
21
- ClashOfLegends: 'CLASH_OF_LEGENDS'
22
- };
23
14
  /**
24
15
  * Check if a given object implements the ApiWeb3RewardCategoriesGet200ResponseResponseObject interface.
25
16
  */
@@ -83,18 +83,8 @@ export interface ApiWeb3RewardGet200ResponseResponseObjectItemsInner {
83
83
  * @type {string}
84
84
  * @memberof ApiWeb3RewardGet200ResponseResponseObjectItemsInner
85
85
  */
86
- category: ApiWeb3RewardGet200ResponseResponseObjectItemsInnerCategoryEnum;
86
+ category: string;
87
87
  }
88
- /**
89
- * @export
90
- */
91
- export declare const ApiWeb3RewardGet200ResponseResponseObjectItemsInnerCategoryEnum: {
92
- readonly None: "NONE";
93
- readonly Jersey: "JERSEY";
94
- readonly MobileLegends: "MOBILE_LEGENDS";
95
- readonly ClashOfLegends: "CLASH_OF_LEGENDS";
96
- };
97
- export type ApiWeb3RewardGet200ResponseResponseObjectItemsInnerCategoryEnum = typeof ApiWeb3RewardGet200ResponseResponseObjectItemsInnerCategoryEnum[keyof typeof ApiWeb3RewardGet200ResponseResponseObjectItemsInnerCategoryEnum];
98
88
  /**
99
89
  * Check if a given object implements the ApiWeb3RewardGet200ResponseResponseObjectItemsInner interface.
100
90
  */
@@ -12,15 +12,6 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { ApiWeb3RewardGet200ResponseResponseObjectItemsInnerRedeemableItemsInnerFromJSON, ApiWeb3RewardGet200ResponseResponseObjectItemsInnerRedeemableItemsInnerToJSON, } from './ApiWeb3RewardGet200ResponseResponseObjectItemsInnerRedeemableItemsInner';
15
- /**
16
- * @export
17
- */
18
- export const ApiWeb3RewardGet200ResponseResponseObjectItemsInnerCategoryEnum = {
19
- None: 'NONE',
20
- Jersey: 'JERSEY',
21
- MobileLegends: 'MOBILE_LEGENDS',
22
- ClashOfLegends: 'CLASH_OF_LEGENDS'
23
- };
24
15
  /**
25
16
  * Check if a given object implements the ApiWeb3RewardGet200ResponseResponseObjectItemsInner interface.
26
17
  */
@@ -65,18 +65,8 @@ export interface ApiWeb3RewardPutRequest {
65
65
  * @type {string}
66
66
  * @memberof ApiWeb3RewardPutRequest
67
67
  */
68
- category: ApiWeb3RewardPutRequestCategoryEnum;
68
+ category: string;
69
69
  }
70
- /**
71
- * @export
72
- */
73
- export declare const ApiWeb3RewardPutRequestCategoryEnum: {
74
- readonly None: "NONE";
75
- readonly Jersey: "JERSEY";
76
- readonly MobileLegends: "MOBILE_LEGENDS";
77
- readonly ClashOfLegends: "CLASH_OF_LEGENDS";
78
- };
79
- export type ApiWeb3RewardPutRequestCategoryEnum = typeof ApiWeb3RewardPutRequestCategoryEnum[keyof typeof ApiWeb3RewardPutRequestCategoryEnum];
80
70
  /**
81
71
  * Check if a given object implements the ApiWeb3RewardPutRequest interface.
82
72
  */
@@ -12,15 +12,6 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { ApiWeb3RewardPutRequestRedeemableItemsInnerFromJSON, ApiWeb3RewardPutRequestRedeemableItemsInnerToJSON, } from './ApiWeb3RewardPutRequestRedeemableItemsInner';
15
- /**
16
- * @export
17
- */
18
- export const ApiWeb3RewardPutRequestCategoryEnum = {
19
- None: 'NONE',
20
- Jersey: 'JERSEY',
21
- MobileLegends: 'MOBILE_LEGENDS',
22
- ClashOfLegends: 'CLASH_OF_LEGENDS'
23
- };
24
15
  /**
25
16
  * Check if a given object implements the ApiWeb3RewardPutRequest interface.
26
17
  */
@@ -31,6 +31,12 @@ export interface ApiWeb3PrepareRedeemPostRequest {
31
31
  * @memberof ApiWeb3PrepareRedeemPostRequest
32
32
  */
33
33
  stockAmount: number;
34
+ /**
35
+ * Optional email for notifications
36
+ * @type {string}
37
+ * @memberof ApiWeb3PrepareRedeemPostRequest
38
+ */
39
+ notificationEmail?: string;
34
40
  }
35
41
 
36
42
  /**
@@ -54,6 +60,7 @@ export function ApiWeb3PrepareRedeemPostRequestFromJSONTyped(json: any, ignoreDi
54
60
 
55
61
  'rewardItemId': json['rewardItemId'],
56
62
  'stockAmount': json['stockAmount'],
63
+ 'notificationEmail': json['notificationEmail'] == null ? undefined : json['notificationEmail'],
57
64
  };
58
65
  }
59
66
 
@@ -70,6 +77,7 @@ export function ApiWeb3PrepareRedeemPostRequestToJSONTyped(value?: ApiWeb3Prepar
70
77
 
71
78
  'rewardItemId': value['rewardItemId'],
72
79
  'stockAmount': value['stockAmount'],
80
+ 'notificationEmail': value['notificationEmail'],
73
81
  };
74
82
  }
75
83
 
@@ -70,6 +70,12 @@ export interface ApiWeb3RedemptionGet200ResponseResponseObjectItemsInner {
70
70
  * @memberof ApiWeb3RedemptionGet200ResponseResponseObjectItemsInner
71
71
  */
72
72
  txHash: string | null;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof ApiWeb3RedemptionGet200ResponseResponseObjectItemsInner
77
+ */
78
+ notificationEmail: string | null;
73
79
  /**
74
80
  *
75
81
  * @type {Date}
@@ -100,6 +106,7 @@ export function instanceOfApiWeb3RedemptionGet200ResponseResponseObjectItemsInne
100
106
  if (!('amountDrx' in value) || value['amountDrx'] === undefined) return false;
101
107
  if (!('amountIdr' in value) || value['amountIdr'] === undefined) return false;
102
108
  if (!('txHash' in value) || value['txHash'] === undefined) return false;
109
+ if (!('notificationEmail' in value) || value['notificationEmail'] === undefined) return false;
103
110
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
104
111
  if (!('reward' in value) || value['reward'] === undefined) return false;
105
112
  if (!('user' in value) || value['user'] === undefined) return false;
@@ -122,6 +129,7 @@ export function ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerFromJSONT
122
129
  'amountDrx': json['amountDrx'],
123
130
  'amountIdr': json['amountIdr'],
124
131
  'txHash': json['txHash'],
132
+ 'notificationEmail': json['notificationEmail'],
125
133
  'createdAt': (new Date(json['createdAt'])),
126
134
  'reward': ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerRewardFromJSON(json['reward']),
127
135
  'user': ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerUserFromJSON(json['user']),
@@ -145,6 +153,7 @@ export function ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerToJSONTyp
145
153
  'amountDrx': value['amountDrx'],
146
154
  'amountIdr': value['amountIdr'],
147
155
  'txHash': value['txHash'],
156
+ 'notificationEmail': value['notificationEmail'],
148
157
  'createdAt': ((value['createdAt']).toISOString()),
149
158
  'reward': ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerRewardToJSON(value['reward']),
150
159
  'user': ApiWeb3RedemptionGet200ResponseResponseObjectItemsInnerUserToJSON(value['user']),
@@ -63,6 +63,12 @@ export interface ApiWeb3RedemptionIdGet200ResponseResponseObject {
63
63
  * @memberof ApiWeb3RedemptionIdGet200ResponseResponseObject
64
64
  */
65
65
  txHash: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof ApiWeb3RedemptionIdGet200ResponseResponseObject
70
+ */
71
+ notificationEmail: string | null;
66
72
  /**
67
73
  *
68
74
  * @type {Date}
@@ -117,6 +123,7 @@ export function instanceOfApiWeb3RedemptionIdGet200ResponseResponseObject(value:
117
123
  if (!('amountDrx' in value) || value['amountDrx'] === undefined) return false;
118
124
  if (!('amountIdr' in value) || value['amountIdr'] === undefined) return false;
119
125
  if (!('txHash' in value) || value['txHash'] === undefined) return false;
126
+ if (!('notificationEmail' in value) || value['notificationEmail'] === undefined) return false;
120
127
  if (!('reviewedAt' in value) || value['reviewedAt'] === undefined) return false;
121
128
  if (!('confirmedAt' in value) || value['confirmedAt'] === undefined) return false;
122
129
  if (!('completedAt' in value) || value['completedAt'] === undefined) return false;
@@ -143,6 +150,7 @@ export function ApiWeb3RedemptionIdGet200ResponseResponseObjectFromJSONTyped(jso
143
150
  'amountDrx': json['amountDrx'],
144
151
  'amountIdr': json['amountIdr'],
145
152
  'txHash': json['txHash'],
153
+ 'notificationEmail': json['notificationEmail'],
146
154
  'reviewedAt': (json['reviewedAt'] == null ? null : new Date(json['reviewedAt'])),
147
155
  'confirmedAt': (json['confirmedAt'] == null ? null : new Date(json['confirmedAt'])),
148
156
  'completedAt': (json['completedAt'] == null ? null : new Date(json['completedAt'])),
@@ -170,6 +178,7 @@ export function ApiWeb3RedemptionIdGet200ResponseResponseObjectToJSONTyped(value
170
178
  'amountDrx': value['amountDrx'],
171
179
  'amountIdr': value['amountIdr'],
172
180
  'txHash': value['txHash'],
181
+ 'notificationEmail': value['notificationEmail'],
173
182
  'reviewedAt': (value['reviewedAt'] == null ? null : (value['reviewedAt'] as any).toISOString()),
174
183
  'confirmedAt': (value['confirmedAt'] == null ? null : (value['confirmedAt'] as any).toISOString()),
175
184
  'completedAt': (value['completedAt'] == null ? null : (value['completedAt'] as any).toISOString()),
@@ -24,22 +24,9 @@ export interface ApiWeb3RewardCategoriesGet200ResponseResponseObject {
24
24
  * @type {Array<string>}
25
25
  * @memberof ApiWeb3RewardCategoriesGet200ResponseResponseObject
26
26
  */
27
- categories: Array<ApiWeb3RewardCategoriesGet200ResponseResponseObjectCategoriesEnum>;
27
+ categories: Array<string>;
28
28
  }
29
29
 
30
-
31
- /**
32
- * @export
33
- */
34
- export const ApiWeb3RewardCategoriesGet200ResponseResponseObjectCategoriesEnum = {
35
- None: 'NONE',
36
- Jersey: 'JERSEY',
37
- MobileLegends: 'MOBILE_LEGENDS',
38
- ClashOfLegends: 'CLASH_OF_LEGENDS'
39
- } as const;
40
- export type ApiWeb3RewardCategoriesGet200ResponseResponseObjectCategoriesEnum = typeof ApiWeb3RewardCategoriesGet200ResponseResponseObjectCategoriesEnum[keyof typeof ApiWeb3RewardCategoriesGet200ResponseResponseObjectCategoriesEnum];
41
-
42
-
43
30
  /**
44
31
  * Check if a given object implements the ApiWeb3RewardCategoriesGet200ResponseResponseObject interface.
45
32
  */
@@ -92,22 +92,9 @@ export interface ApiWeb3RewardGet200ResponseResponseObjectItemsInner {
92
92
  * @type {string}
93
93
  * @memberof ApiWeb3RewardGet200ResponseResponseObjectItemsInner
94
94
  */
95
- category: ApiWeb3RewardGet200ResponseResponseObjectItemsInnerCategoryEnum;
95
+ category: string;
96
96
  }
97
97
 
98
-
99
- /**
100
- * @export
101
- */
102
- export const ApiWeb3RewardGet200ResponseResponseObjectItemsInnerCategoryEnum = {
103
- None: 'NONE',
104
- Jersey: 'JERSEY',
105
- MobileLegends: 'MOBILE_LEGENDS',
106
- ClashOfLegends: 'CLASH_OF_LEGENDS'
107
- } as const;
108
- export type ApiWeb3RewardGet200ResponseResponseObjectItemsInnerCategoryEnum = typeof ApiWeb3RewardGet200ResponseResponseObjectItemsInnerCategoryEnum[keyof typeof ApiWeb3RewardGet200ResponseResponseObjectItemsInnerCategoryEnum];
109
-
110
-
111
98
  /**
112
99
  * Check if a given object implements the ApiWeb3RewardGet200ResponseResponseObjectItemsInner interface.
113
100
  */
@@ -74,22 +74,9 @@ export interface ApiWeb3RewardPutRequest {
74
74
  * @type {string}
75
75
  * @memberof ApiWeb3RewardPutRequest
76
76
  */
77
- category: ApiWeb3RewardPutRequestCategoryEnum;
77
+ category: string;
78
78
  }
79
79
 
80
-
81
- /**
82
- * @export
83
- */
84
- export const ApiWeb3RewardPutRequestCategoryEnum = {
85
- None: 'NONE',
86
- Jersey: 'JERSEY',
87
- MobileLegends: 'MOBILE_LEGENDS',
88
- ClashOfLegends: 'CLASH_OF_LEGENDS'
89
- } as const;
90
- export type ApiWeb3RewardPutRequestCategoryEnum = typeof ApiWeb3RewardPutRequestCategoryEnum[keyof typeof ApiWeb3RewardPutRequestCategoryEnum];
91
-
92
-
93
80
  /**
94
81
  * Check if a given object implements the ApiWeb3RewardPutRequest interface.
95
82
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.392",
3
+ "version": "1.1.394",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {