@randock/nameshift-api-client 0.0.409 → 0.0.411
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/.openapi-generator/FILES +2 -0
- package/README.md +3 -3
- package/dist/apis/UsersApi.d.ts +23 -1
- package/dist/apis/UsersApi.js +106 -0
- package/dist/models/AuctionBidDto.d.ts +6 -0
- package/dist/models/AuctionBidDto.js +4 -0
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/ChangeUserEmailWithOtpInput.d.ts +38 -0
- package/dist/models/ChangeUserEmailWithOtpInput.js +55 -0
- package/dist/models/RequestUserEmailChangeOtpInput.d.ts +38 -0
- package/dist/models/RequestUserEmailChangeOtpInput.js +55 -0
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/UsersApi.ts +100 -0
- package/src/models/AuctionBidDto.ts +9 -0
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/ChangeUserEmailWithOtpInput.ts +75 -0
- package/src/models/RequestUserEmailChangeOtpInput.ts +75 -0
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -155,6 +155,7 @@ src/models/CaBankAccountDetails.ts
|
|
|
155
155
|
src/models/ChallengeRewardBalanceDto.ts
|
|
156
156
|
src/models/ChangeOrderStatusInput.ts
|
|
157
157
|
src/models/ChangeSubscriptionStatusInput.ts
|
|
158
|
+
src/models/ChangeUserEmailWithOtpInput.ts
|
|
158
159
|
src/models/ChartDataPoint.ts
|
|
159
160
|
src/models/CommissionAccountDto.ts
|
|
160
161
|
src/models/CommissionAction.ts
|
|
@@ -382,6 +383,7 @@ src/models/RentConfigurationPresetsDto.ts
|
|
|
382
383
|
src/models/RentDto.ts
|
|
383
384
|
src/models/RequestAccessTokenInput.ts
|
|
384
385
|
src/models/RequestEmailOtpInput.ts
|
|
386
|
+
src/models/RequestUserEmailChangeOtpInput.ts
|
|
385
387
|
src/models/SalesCountCommissionPayloadDto.ts
|
|
386
388
|
src/models/SalesCountCommissionPayloadInput.ts
|
|
387
389
|
src/models/SalesCountCommissionReasonPayloadDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.411
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.411 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
cb3ee89449f57f68e8dc525c08dd500bc9c352d20624fdbfdc8366dbc86725c197c03cb65cd82e5fc2df3c8d55e750fc
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -10,7 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { StoreUserLocaleInput, UpdateUserNotificationSettingsInput, UserNotificationSettingsDto } from '../models/index';
|
|
13
|
+
import type { ChangeUserEmailWithOtpInput, RequestUserEmailChangeOtpInput, StoreUserLocaleInput, UpdateUserNotificationSettingsInput, UserNotificationSettingsDto } from '../models/index';
|
|
14
|
+
export interface UsersApiChangeUserEmailWithOtpRequest {
|
|
15
|
+
changeUserEmailWithOtpInput: ChangeUserEmailWithOtpInput;
|
|
16
|
+
}
|
|
17
|
+
export interface UsersApiRequestUserEmailChangeOtpRequest {
|
|
18
|
+
requestUserEmailChangeOtpInput: RequestUserEmailChangeOtpInput;
|
|
19
|
+
}
|
|
14
20
|
export interface UsersApiSetLocaleRequest {
|
|
15
21
|
storeUserLocaleInput: StoreUserLocaleInput;
|
|
16
22
|
}
|
|
@@ -21,6 +27,14 @@ export interface UsersApiUpdateUserNotificationSettingsRequest {
|
|
|
21
27
|
*
|
|
22
28
|
*/
|
|
23
29
|
export declare class UsersApi extends runtime.BaseAPI {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
changeUserEmailWithOtpRaw(requestParameters: UsersApiChangeUserEmailWithOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
changeUserEmailWithOtp(requestParameters: UsersApiChangeUserEmailWithOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
24
38
|
/**
|
|
25
39
|
*
|
|
26
40
|
*/
|
|
@@ -29,6 +43,14 @@ export declare class UsersApi extends runtime.BaseAPI {
|
|
|
29
43
|
*
|
|
30
44
|
*/
|
|
31
45
|
getUserNotificationSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserNotificationSettingsDto>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
requestUserEmailChangeOtpRaw(requestParameters: UsersApiRequestUserEmailChangeOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
requestUserEmailChangeOtp(requestParameters: UsersApiRequestUserEmailChangeOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
32
54
|
/**
|
|
33
55
|
*
|
|
34
56
|
*/
|
package/dist/apis/UsersApi.js
CHANGED
|
@@ -75,6 +75,59 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function UsersApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
UsersApi.prototype.changeUserEmailWithOtpRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['changeUserEmailWithOtpInput'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('changeUserEmailWithOtpInput', 'Required parameter "changeUserEmailWithOtpInput" was null or undefined when calling changeUserEmailWithOtp().');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
94
|
+
token = this.configuration.accessToken;
|
|
95
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
96
|
+
case 1:
|
|
97
|
+
tokenString = _a.sent();
|
|
98
|
+
if (tokenString) {
|
|
99
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
100
|
+
}
|
|
101
|
+
_a.label = 2;
|
|
102
|
+
case 2: return [4 /*yield*/, this.request({
|
|
103
|
+
path: "/private/users/email",
|
|
104
|
+
method: 'PATCH',
|
|
105
|
+
headers: headerParameters,
|
|
106
|
+
query: queryParameters,
|
|
107
|
+
body: (0, index_1.ChangeUserEmailWithOtpInputToJSON)(requestParameters['changeUserEmailWithOtpInput']),
|
|
108
|
+
}, initOverrides)];
|
|
109
|
+
case 3:
|
|
110
|
+
response = _a.sent();
|
|
111
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
UsersApi.prototype.changeUserEmailWithOtp = function (requestParameters, initOverrides) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
121
|
+
return __generator(this, function (_a) {
|
|
122
|
+
switch (_a.label) {
|
|
123
|
+
case 0: return [4 /*yield*/, this.changeUserEmailWithOtpRaw(requestParameters, initOverrides)];
|
|
124
|
+
case 1:
|
|
125
|
+
_a.sent();
|
|
126
|
+
return [2 /*return*/];
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
};
|
|
78
131
|
/**
|
|
79
132
|
*
|
|
80
133
|
*/
|
|
@@ -125,6 +178,59 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
125
178
|
});
|
|
126
179
|
});
|
|
127
180
|
};
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
*/
|
|
184
|
+
UsersApi.prototype.requestUserEmailChangeOtpRaw = function (requestParameters, initOverrides) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
186
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
187
|
+
return __generator(this, function (_a) {
|
|
188
|
+
switch (_a.label) {
|
|
189
|
+
case 0:
|
|
190
|
+
if (requestParameters['requestUserEmailChangeOtpInput'] == null) {
|
|
191
|
+
throw new runtime.RequiredError('requestUserEmailChangeOtpInput', 'Required parameter "requestUserEmailChangeOtpInput" was null or undefined when calling requestUserEmailChangeOtp().');
|
|
192
|
+
}
|
|
193
|
+
queryParameters = {};
|
|
194
|
+
headerParameters = {};
|
|
195
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
196
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
197
|
+
token = this.configuration.accessToken;
|
|
198
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
199
|
+
case 1:
|
|
200
|
+
tokenString = _a.sent();
|
|
201
|
+
if (tokenString) {
|
|
202
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
203
|
+
}
|
|
204
|
+
_a.label = 2;
|
|
205
|
+
case 2: return [4 /*yield*/, this.request({
|
|
206
|
+
path: "/private/users/email-change/request-otp",
|
|
207
|
+
method: 'POST',
|
|
208
|
+
headers: headerParameters,
|
|
209
|
+
query: queryParameters,
|
|
210
|
+
body: (0, index_1.RequestUserEmailChangeOtpInputToJSON)(requestParameters['requestUserEmailChangeOtpInput']),
|
|
211
|
+
}, initOverrides)];
|
|
212
|
+
case 3:
|
|
213
|
+
response = _a.sent();
|
|
214
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
*/
|
|
222
|
+
UsersApi.prototype.requestUserEmailChangeOtp = function (requestParameters, initOverrides) {
|
|
223
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
224
|
+
return __generator(this, function (_a) {
|
|
225
|
+
switch (_a.label) {
|
|
226
|
+
case 0: return [4 /*yield*/, this.requestUserEmailChangeOtpRaw(requestParameters, initOverrides)];
|
|
227
|
+
case 1:
|
|
228
|
+
_a.sent();
|
|
229
|
+
return [2 /*return*/];
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
};
|
|
128
234
|
/**
|
|
129
235
|
*
|
|
130
236
|
*/
|
|
@@ -47,6 +47,12 @@ export interface AuctionBidDto {
|
|
|
47
47
|
* @memberof AuctionBidDto
|
|
48
48
|
*/
|
|
49
49
|
createdAt: Date;
|
|
50
|
+
/**
|
|
51
|
+
* Soft-deletion timestamp of the underlying buyer account, if the buyer was removed
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof AuctionBidDto
|
|
54
|
+
*/
|
|
55
|
+
buyerDeletedAt: Date | null;
|
|
50
56
|
/**
|
|
51
57
|
* Auction Bid is email verified
|
|
52
58
|
* @type {boolean}
|
|
@@ -34,6 +34,8 @@ function instanceOfAuctionBidDto(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('buyerDeletedAt' in value) || value['buyerDeletedAt'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
if (!('isEmailVerified' in value) || value['isEmailVerified'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('isPhoneVerified' in value) || value['isPhoneVerified'] === undefined)
|
|
@@ -61,6 +63,7 @@ function AuctionBidDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
63
|
'amount': (0, MoneyDto_1.MoneyDtoFromJSON)(json['amount']),
|
|
62
64
|
'nickname': json['nickname'],
|
|
63
65
|
'createdAt': (new Date(json['createdAt'])),
|
|
66
|
+
'buyerDeletedAt': (json['buyerDeletedAt'] == null ? null : new Date(json['buyerDeletedAt'])),
|
|
64
67
|
'isEmailVerified': json['isEmailVerified'],
|
|
65
68
|
'isPhoneVerified': json['isPhoneVerified'],
|
|
66
69
|
'isKycCompleted': json['isKycCompleted'],
|
|
@@ -83,6 +86,7 @@ function AuctionBidDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
83
86
|
'amount': (0, MoneyDto_1.MoneyDtoToJSON)(value['amount']),
|
|
84
87
|
'nickname': value['nickname'],
|
|
85
88
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
89
|
+
'buyerDeletedAt': (value['buyerDeletedAt'] == null ? null : value['buyerDeletedAt'].toISOString()),
|
|
86
90
|
'isEmailVerified': value['isEmailVerified'],
|
|
87
91
|
'isPhoneVerified': value['isPhoneVerified'],
|
|
88
92
|
'isKycCompleted': value['isKycCompleted'],
|
|
@@ -105,6 +105,7 @@ export declare const BuyerNotificationDtoTypeEnum: {
|
|
|
105
105
|
readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
|
|
106
106
|
readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
|
|
107
107
|
readonly PASSWORD_RESET: "password_reset";
|
|
108
|
+
readonly USER_EMAIL_CHANGED: "user_email_changed";
|
|
108
109
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
109
110
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
110
111
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
@@ -66,6 +66,7 @@ exports.BuyerNotificationDtoTypeEnum = {
|
|
|
66
66
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
67
67
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
68
68
|
PASSWORD_RESET: 'password_reset',
|
|
69
|
+
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
69
70
|
BUYER_INVOICE: 'buyer_invoice',
|
|
70
71
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
71
72
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
@@ -98,6 +98,7 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
|
|
|
98
98
|
readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
|
|
99
99
|
readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
|
|
100
100
|
readonly PASSWORD_RESET: "password_reset";
|
|
101
|
+
readonly USER_EMAIL_CHANGED: "user_email_changed";
|
|
101
102
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
102
103
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
103
104
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
@@ -65,6 +65,7 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
|
|
|
65
65
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
66
66
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
67
67
|
PASSWORD_RESET: 'password_reset',
|
|
68
|
+
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
68
69
|
BUYER_INVOICE: 'buyer_invoice',
|
|
69
70
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
70
71
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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 ChangeUserEmailWithOtpInput
|
|
16
|
+
*/
|
|
17
|
+
export interface ChangeUserEmailWithOtpInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChangeUserEmailWithOtpInput
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ChangeUserEmailWithOtpInput
|
|
28
|
+
*/
|
|
29
|
+
otp: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ChangeUserEmailWithOtpInput interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfChangeUserEmailWithOtpInput(value: object): value is ChangeUserEmailWithOtpInput;
|
|
35
|
+
export declare function ChangeUserEmailWithOtpInputFromJSON(json: any): ChangeUserEmailWithOtpInput;
|
|
36
|
+
export declare function ChangeUserEmailWithOtpInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeUserEmailWithOtpInput;
|
|
37
|
+
export declare function ChangeUserEmailWithOtpInputToJSON(json: any): ChangeUserEmailWithOtpInput;
|
|
38
|
+
export declare function ChangeUserEmailWithOtpInputToJSONTyped(value?: ChangeUserEmailWithOtpInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfChangeUserEmailWithOtpInput = instanceOfChangeUserEmailWithOtpInput;
|
|
17
|
+
exports.ChangeUserEmailWithOtpInputFromJSON = ChangeUserEmailWithOtpInputFromJSON;
|
|
18
|
+
exports.ChangeUserEmailWithOtpInputFromJSONTyped = ChangeUserEmailWithOtpInputFromJSONTyped;
|
|
19
|
+
exports.ChangeUserEmailWithOtpInputToJSON = ChangeUserEmailWithOtpInputToJSON;
|
|
20
|
+
exports.ChangeUserEmailWithOtpInputToJSONTyped = ChangeUserEmailWithOtpInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ChangeUserEmailWithOtpInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfChangeUserEmailWithOtpInput(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('otp' in value) || value['otp'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ChangeUserEmailWithOtpInputFromJSON(json) {
|
|
32
|
+
return ChangeUserEmailWithOtpInputFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ChangeUserEmailWithOtpInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'email': json['email'],
|
|
40
|
+
'otp': json['otp'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ChangeUserEmailWithOtpInputToJSON(json) {
|
|
44
|
+
return ChangeUserEmailWithOtpInputToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ChangeUserEmailWithOtpInputToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'email': value['email'],
|
|
53
|
+
'otp': value['otp'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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 RequestUserEmailChangeOtpInput
|
|
16
|
+
*/
|
|
17
|
+
export interface RequestUserEmailChangeOtpInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RequestUserEmailChangeOtpInput
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RequestUserEmailChangeOtpInput
|
|
28
|
+
*/
|
|
29
|
+
locale: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RequestUserEmailChangeOtpInput interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRequestUserEmailChangeOtpInput(value: object): value is RequestUserEmailChangeOtpInput;
|
|
35
|
+
export declare function RequestUserEmailChangeOtpInputFromJSON(json: any): RequestUserEmailChangeOtpInput;
|
|
36
|
+
export declare function RequestUserEmailChangeOtpInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestUserEmailChangeOtpInput;
|
|
37
|
+
export declare function RequestUserEmailChangeOtpInputToJSON(json: any): RequestUserEmailChangeOtpInput;
|
|
38
|
+
export declare function RequestUserEmailChangeOtpInputToJSONTyped(value?: RequestUserEmailChangeOtpInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRequestUserEmailChangeOtpInput = instanceOfRequestUserEmailChangeOtpInput;
|
|
17
|
+
exports.RequestUserEmailChangeOtpInputFromJSON = RequestUserEmailChangeOtpInputFromJSON;
|
|
18
|
+
exports.RequestUserEmailChangeOtpInputFromJSONTyped = RequestUserEmailChangeOtpInputFromJSONTyped;
|
|
19
|
+
exports.RequestUserEmailChangeOtpInputToJSON = RequestUserEmailChangeOtpInputToJSON;
|
|
20
|
+
exports.RequestUserEmailChangeOtpInputToJSONTyped = RequestUserEmailChangeOtpInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RequestUserEmailChangeOtpInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRequestUserEmailChangeOtpInput(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('locale' in value) || value['locale'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function RequestUserEmailChangeOtpInputFromJSON(json) {
|
|
32
|
+
return RequestUserEmailChangeOtpInputFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function RequestUserEmailChangeOtpInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'email': json['email'],
|
|
40
|
+
'locale': json['locale'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function RequestUserEmailChangeOtpInputToJSON(json) {
|
|
44
|
+
return RequestUserEmailChangeOtpInputToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function RequestUserEmailChangeOtpInputToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'email': value['email'],
|
|
53
|
+
'locale': value['locale'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -105,6 +105,7 @@ export declare const UserNotificationDtoTypeEnum: {
|
|
|
105
105
|
readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
|
|
106
106
|
readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
|
|
107
107
|
readonly PASSWORD_RESET: "password_reset";
|
|
108
|
+
readonly USER_EMAIL_CHANGED: "user_email_changed";
|
|
108
109
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
109
110
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
110
111
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
@@ -66,6 +66,7 @@ exports.UserNotificationDtoTypeEnum = {
|
|
|
66
66
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
67
67
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
68
68
|
PASSWORD_RESET: 'password_reset',
|
|
69
|
+
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
69
70
|
BUYER_INVOICE: 'buyer_invoice',
|
|
70
71
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
71
72
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
@@ -98,6 +98,7 @@ export declare const UserNotificationListItemDtoTypeEnum: {
|
|
|
98
98
|
readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
|
|
99
99
|
readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
|
|
100
100
|
readonly PASSWORD_RESET: "password_reset";
|
|
101
|
+
readonly USER_EMAIL_CHANGED: "user_email_changed";
|
|
101
102
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
102
103
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
103
104
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
@@ -65,6 +65,7 @@ exports.UserNotificationListItemDtoTypeEnum = {
|
|
|
65
65
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
66
66
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
67
67
|
PASSWORD_RESET: 'password_reset',
|
|
68
|
+
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
68
69
|
BUYER_INVOICE: 'buyer_invoice',
|
|
69
70
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
70
71
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
package/dist/models/index.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ export * from './CaBankAccountDetails';
|
|
|
119
119
|
export * from './ChallengeRewardBalanceDto';
|
|
120
120
|
export * from './ChangeOrderStatusInput';
|
|
121
121
|
export * from './ChangeSubscriptionStatusInput';
|
|
122
|
+
export * from './ChangeUserEmailWithOtpInput';
|
|
122
123
|
export * from './ChartDataPoint';
|
|
123
124
|
export * from './CommissionAccountDto';
|
|
124
125
|
export * from './CommissionAction';
|
|
@@ -346,6 +347,7 @@ export * from './RentConfigurationPresetsDto';
|
|
|
346
347
|
export * from './RentDto';
|
|
347
348
|
export * from './RequestAccessTokenInput';
|
|
348
349
|
export * from './RequestEmailOtpInput';
|
|
350
|
+
export * from './RequestUserEmailChangeOtpInput';
|
|
349
351
|
export * from './SalesCountCommissionPayloadDto';
|
|
350
352
|
export * from './SalesCountCommissionPayloadInput';
|
|
351
353
|
export * from './SalesCountCommissionReasonPayloadDto';
|
package/dist/models/index.js
CHANGED
|
@@ -137,6 +137,7 @@ __exportStar(require("./CaBankAccountDetails"), exports);
|
|
|
137
137
|
__exportStar(require("./ChallengeRewardBalanceDto"), exports);
|
|
138
138
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
139
139
|
__exportStar(require("./ChangeSubscriptionStatusInput"), exports);
|
|
140
|
+
__exportStar(require("./ChangeUserEmailWithOtpInput"), exports);
|
|
140
141
|
__exportStar(require("./ChartDataPoint"), exports);
|
|
141
142
|
__exportStar(require("./CommissionAccountDto"), exports);
|
|
142
143
|
__exportStar(require("./CommissionAction"), exports);
|
|
@@ -364,6 +365,7 @@ __exportStar(require("./RentConfigurationPresetsDto"), exports);
|
|
|
364
365
|
__exportStar(require("./RentDto"), exports);
|
|
365
366
|
__exportStar(require("./RequestAccessTokenInput"), exports);
|
|
366
367
|
__exportStar(require("./RequestEmailOtpInput"), exports);
|
|
368
|
+
__exportStar(require("./RequestUserEmailChangeOtpInput"), exports);
|
|
367
369
|
__exportStar(require("./SalesCountCommissionPayloadDto"), exports);
|
|
368
370
|
__exportStar(require("./SalesCountCommissionPayloadInput"), exports);
|
|
369
371
|
__exportStar(require("./SalesCountCommissionReasonPayloadDto"), exports);
|
package/package.json
CHANGED
package/src/apis/UsersApi.ts
CHANGED
|
@@ -15,12 +15,18 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ChangeUserEmailWithOtpInput,
|
|
19
|
+
RequestUserEmailChangeOtpInput,
|
|
18
20
|
StoreUserLocaleInput,
|
|
19
21
|
UpdateUserNotificationSettingsInput,
|
|
20
22
|
UserNotificationSettingsDto,
|
|
21
23
|
ValidationException,
|
|
22
24
|
} from '../models/index';
|
|
23
25
|
import {
|
|
26
|
+
ChangeUserEmailWithOtpInputFromJSON,
|
|
27
|
+
ChangeUserEmailWithOtpInputToJSON,
|
|
28
|
+
RequestUserEmailChangeOtpInputFromJSON,
|
|
29
|
+
RequestUserEmailChangeOtpInputToJSON,
|
|
24
30
|
StoreUserLocaleInputFromJSON,
|
|
25
31
|
StoreUserLocaleInputToJSON,
|
|
26
32
|
UpdateUserNotificationSettingsInputFromJSON,
|
|
@@ -31,6 +37,14 @@ import {
|
|
|
31
37
|
ValidationExceptionToJSON,
|
|
32
38
|
} from '../models/index';
|
|
33
39
|
|
|
40
|
+
export interface UsersApiChangeUserEmailWithOtpRequest {
|
|
41
|
+
changeUserEmailWithOtpInput: ChangeUserEmailWithOtpInput;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface UsersApiRequestUserEmailChangeOtpRequest {
|
|
45
|
+
requestUserEmailChangeOtpInput: RequestUserEmailChangeOtpInput;
|
|
46
|
+
}
|
|
47
|
+
|
|
34
48
|
export interface UsersApiSetLocaleRequest {
|
|
35
49
|
storeUserLocaleInput: StoreUserLocaleInput;
|
|
36
50
|
}
|
|
@@ -44,6 +58,49 @@ export interface UsersApiUpdateUserNotificationSettingsRequest {
|
|
|
44
58
|
*/
|
|
45
59
|
export class UsersApi extends runtime.BaseAPI {
|
|
46
60
|
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
async changeUserEmailWithOtpRaw(requestParameters: UsersApiChangeUserEmailWithOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
65
|
+
if (requestParameters['changeUserEmailWithOtpInput'] == null) {
|
|
66
|
+
throw new runtime.RequiredError(
|
|
67
|
+
'changeUserEmailWithOtpInput',
|
|
68
|
+
'Required parameter "changeUserEmailWithOtpInput" was null or undefined when calling changeUserEmailWithOtp().'
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const queryParameters: any = {};
|
|
73
|
+
|
|
74
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
75
|
+
|
|
76
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
77
|
+
|
|
78
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
79
|
+
const token = this.configuration.accessToken;
|
|
80
|
+
const tokenString = await token("bearer", []);
|
|
81
|
+
|
|
82
|
+
if (tokenString) {
|
|
83
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
const response = await this.request({
|
|
87
|
+
path: `/private/users/email`,
|
|
88
|
+
method: 'PATCH',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
body: ChangeUserEmailWithOtpInputToJSON(requestParameters['changeUserEmailWithOtpInput']),
|
|
92
|
+
}, initOverrides);
|
|
93
|
+
|
|
94
|
+
return new runtime.VoidApiResponse(response);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
async changeUserEmailWithOtp(requestParameters: UsersApiChangeUserEmailWithOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
101
|
+
await this.changeUserEmailWithOtpRaw(requestParameters, initOverrides);
|
|
102
|
+
}
|
|
103
|
+
|
|
47
104
|
/**
|
|
48
105
|
*
|
|
49
106
|
*/
|
|
@@ -78,6 +135,49 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
78
135
|
return await response.value();
|
|
79
136
|
}
|
|
80
137
|
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
*/
|
|
141
|
+
async requestUserEmailChangeOtpRaw(requestParameters: UsersApiRequestUserEmailChangeOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
142
|
+
if (requestParameters['requestUserEmailChangeOtpInput'] == null) {
|
|
143
|
+
throw new runtime.RequiredError(
|
|
144
|
+
'requestUserEmailChangeOtpInput',
|
|
145
|
+
'Required parameter "requestUserEmailChangeOtpInput" was null or undefined when calling requestUserEmailChangeOtp().'
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const queryParameters: any = {};
|
|
150
|
+
|
|
151
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
152
|
+
|
|
153
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
154
|
+
|
|
155
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
156
|
+
const token = this.configuration.accessToken;
|
|
157
|
+
const tokenString = await token("bearer", []);
|
|
158
|
+
|
|
159
|
+
if (tokenString) {
|
|
160
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
const response = await this.request({
|
|
164
|
+
path: `/private/users/email-change/request-otp`,
|
|
165
|
+
method: 'POST',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
body: RequestUserEmailChangeOtpInputToJSON(requestParameters['requestUserEmailChangeOtpInput']),
|
|
169
|
+
}, initOverrides);
|
|
170
|
+
|
|
171
|
+
return new runtime.VoidApiResponse(response);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
*/
|
|
177
|
+
async requestUserEmailChangeOtp(requestParameters: UsersApiRequestUserEmailChangeOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
178
|
+
await this.requestUserEmailChangeOtpRaw(requestParameters, initOverrides);
|
|
179
|
+
}
|
|
180
|
+
|
|
81
181
|
/**
|
|
82
182
|
*
|
|
83
183
|
*/
|
|
@@ -64,6 +64,12 @@ export interface AuctionBidDto {
|
|
|
64
64
|
* @memberof AuctionBidDto
|
|
65
65
|
*/
|
|
66
66
|
createdAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
* Soft-deletion timestamp of the underlying buyer account, if the buyer was removed
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof AuctionBidDto
|
|
71
|
+
*/
|
|
72
|
+
buyerDeletedAt: Date | null;
|
|
67
73
|
/**
|
|
68
74
|
* Auction Bid is email verified
|
|
69
75
|
* @type {boolean}
|
|
@@ -111,6 +117,7 @@ export function instanceOfAuctionBidDto(value: object): value is AuctionBidDto {
|
|
|
111
117
|
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
112
118
|
if (!('nickname' in value) || value['nickname'] === undefined) return false;
|
|
113
119
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
120
|
+
if (!('buyerDeletedAt' in value) || value['buyerDeletedAt'] === undefined) return false;
|
|
114
121
|
if (!('isEmailVerified' in value) || value['isEmailVerified'] === undefined) return false;
|
|
115
122
|
if (!('isPhoneVerified' in value) || value['isPhoneVerified'] === undefined) return false;
|
|
116
123
|
if (!('isKycCompleted' in value) || value['isKycCompleted'] === undefined) return false;
|
|
@@ -135,6 +142,7 @@ export function AuctionBidDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
135
142
|
'amount': MoneyDtoFromJSON(json['amount']),
|
|
136
143
|
'nickname': json['nickname'],
|
|
137
144
|
'createdAt': (new Date(json['createdAt'])),
|
|
145
|
+
'buyerDeletedAt': (json['buyerDeletedAt'] == null ? null : new Date(json['buyerDeletedAt'])),
|
|
138
146
|
'isEmailVerified': json['isEmailVerified'],
|
|
139
147
|
'isPhoneVerified': json['isPhoneVerified'],
|
|
140
148
|
'isKycCompleted': json['isKycCompleted'],
|
|
@@ -160,6 +168,7 @@ export function AuctionBidDtoToJSONTyped(value?: AuctionBidDto | null, ignoreDis
|
|
|
160
168
|
'amount': MoneyDtoToJSON(value['amount']),
|
|
161
169
|
'nickname': value['nickname'],
|
|
162
170
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
171
|
+
'buyerDeletedAt': (value['buyerDeletedAt'] == null ? null : (value['buyerDeletedAt'] as any).toISOString()),
|
|
163
172
|
'isEmailVerified': value['isEmailVerified'],
|
|
164
173
|
'isPhoneVerified': value['isPhoneVerified'],
|
|
165
174
|
'isKycCompleted': value['isKycCompleted'],
|
|
@@ -118,6 +118,7 @@ export const BuyerNotificationDtoTypeEnum = {
|
|
|
118
118
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
119
119
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
120
120
|
PASSWORD_RESET: 'password_reset',
|
|
121
|
+
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
121
122
|
BUYER_INVOICE: 'buyer_invoice',
|
|
122
123
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
123
124
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
@@ -104,6 +104,7 @@ export const BuyerNotificationListItemDtoTypeEnum = {
|
|
|
104
104
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
105
105
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
106
106
|
PASSWORD_RESET: 'password_reset',
|
|
107
|
+
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
107
108
|
BUYER_INVOICE: 'buyer_invoice',
|
|
108
109
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
109
110
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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 ChangeUserEmailWithOtpInput
|
|
20
|
+
*/
|
|
21
|
+
export interface ChangeUserEmailWithOtpInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ChangeUserEmailWithOtpInput
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ChangeUserEmailWithOtpInput
|
|
32
|
+
*/
|
|
33
|
+
otp: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ChangeUserEmailWithOtpInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfChangeUserEmailWithOtpInput(value: object): value is ChangeUserEmailWithOtpInput {
|
|
40
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
41
|
+
if (!('otp' in value) || value['otp'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ChangeUserEmailWithOtpInputFromJSON(json: any): ChangeUserEmailWithOtpInput {
|
|
46
|
+
return ChangeUserEmailWithOtpInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ChangeUserEmailWithOtpInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeUserEmailWithOtpInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
'otp': json['otp'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ChangeUserEmailWithOtpInputToJSON(json: any): ChangeUserEmailWithOtpInput {
|
|
61
|
+
return ChangeUserEmailWithOtpInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ChangeUserEmailWithOtpInputToJSONTyped(value?: ChangeUserEmailWithOtpInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'email': value['email'],
|
|
72
|
+
'otp': value['otp'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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 RequestUserEmailChangeOtpInput
|
|
20
|
+
*/
|
|
21
|
+
export interface RequestUserEmailChangeOtpInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RequestUserEmailChangeOtpInput
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RequestUserEmailChangeOtpInput
|
|
32
|
+
*/
|
|
33
|
+
locale: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the RequestUserEmailChangeOtpInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfRequestUserEmailChangeOtpInput(value: object): value is RequestUserEmailChangeOtpInput {
|
|
40
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
41
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function RequestUserEmailChangeOtpInputFromJSON(json: any): RequestUserEmailChangeOtpInput {
|
|
46
|
+
return RequestUserEmailChangeOtpInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function RequestUserEmailChangeOtpInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestUserEmailChangeOtpInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
'locale': json['locale'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function RequestUserEmailChangeOtpInputToJSON(json: any): RequestUserEmailChangeOtpInput {
|
|
61
|
+
return RequestUserEmailChangeOtpInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function RequestUserEmailChangeOtpInputToJSONTyped(value?: RequestUserEmailChangeOtpInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'email': value['email'],
|
|
72
|
+
'locale': value['locale'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -118,6 +118,7 @@ export const UserNotificationDtoTypeEnum = {
|
|
|
118
118
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
119
119
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
120
120
|
PASSWORD_RESET: 'password_reset',
|
|
121
|
+
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
121
122
|
BUYER_INVOICE: 'buyer_invoice',
|
|
122
123
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
123
124
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
@@ -104,6 +104,7 @@ export const UserNotificationListItemDtoTypeEnum = {
|
|
|
104
104
|
LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
|
|
105
105
|
RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
|
|
106
106
|
PASSWORD_RESET: 'password_reset',
|
|
107
|
+
USER_EMAIL_CHANGED: 'user_email_changed',
|
|
107
108
|
BUYER_INVOICE: 'buyer_invoice',
|
|
108
109
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
109
110
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
package/src/models/index.ts
CHANGED
|
@@ -121,6 +121,7 @@ export * from './CaBankAccountDetails';
|
|
|
121
121
|
export * from './ChallengeRewardBalanceDto';
|
|
122
122
|
export * from './ChangeOrderStatusInput';
|
|
123
123
|
export * from './ChangeSubscriptionStatusInput';
|
|
124
|
+
export * from './ChangeUserEmailWithOtpInput';
|
|
124
125
|
export * from './ChartDataPoint';
|
|
125
126
|
export * from './CommissionAccountDto';
|
|
126
127
|
export * from './CommissionAction';
|
|
@@ -348,6 +349,7 @@ export * from './RentConfigurationPresetsDto';
|
|
|
348
349
|
export * from './RentDto';
|
|
349
350
|
export * from './RequestAccessTokenInput';
|
|
350
351
|
export * from './RequestEmailOtpInput';
|
|
352
|
+
export * from './RequestUserEmailChangeOtpInput';
|
|
351
353
|
export * from './SalesCountCommissionPayloadDto';
|
|
352
354
|
export * from './SalesCountCommissionPayloadInput';
|
|
353
355
|
export * from './SalesCountCommissionReasonPayloadDto';
|