@randock/nameshift-api-client 0.0.486 → 0.0.488
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 +10 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +38 -3
- package/dist/apis/AdminApi.js +132 -2
- package/dist/apis/BuyersApi.d.ts +33 -1
- package/dist/apis/BuyersApi.js +121 -0
- package/dist/apis/DomainAppraisalRequestsApi.d.ts +50 -0
- package/dist/apis/DomainAppraisalRequestsApi.js +217 -0
- package/dist/apis/DomainAppraisalRequestsPublicApi.d.ts +86 -0
- package/dist/apis/DomainAppraisalRequestsPublicApi.js +321 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountAliasDto.d.ts +18 -3
- package/dist/models/AccountAliasDto.js +13 -0
- package/dist/models/AccountSettingsAliasDto.d.ts +18 -3
- package/dist/models/AccountSettingsAliasDto.js +13 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +118 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.js +109 -0
- package/dist/models/AdminListAccountDto.d.ts +16 -1
- package/dist/models/AdminListAccountDto.js +13 -1
- package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.d.ts +268 -0
- package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.js +237 -0
- package/dist/models/BuyerInvoiceDto.d.ts +2 -2
- 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/BuyerSessionDto.d.ts +6 -0
- package/dist/models/BuyerSessionDto.js +4 -0
- package/dist/models/CreateAccountPaymentInput.d.ts +1 -0
- package/dist/models/CreateAccountPaymentInput.js +2 -1
- package/dist/models/CreateBuyerDomainAppraisalRequestInput.d.ts +44 -0
- package/dist/models/CreateBuyerDomainAppraisalRequestInput.js +59 -0
- package/dist/models/CustomerSuccessListAccountDto.d.ts +16 -1
- package/dist/models/CustomerSuccessListAccountDto.js +13 -1
- package/dist/models/DomainAppraisalRequestListItemDto.d.ts +82 -0
- package/dist/models/DomainAppraisalRequestListItemDto.js +85 -0
- package/dist/models/DomainAppraisalRequestStatus.d.ts +27 -0
- package/dist/models/DomainAppraisalRequestStatus.js +53 -0
- package/dist/models/DomainAppraisalRequester.d.ts +25 -0
- package/dist/models/DomainAppraisalRequester.js +51 -0
- package/dist/models/DomainSalesInformationDto.d.ts +6 -0
- package/dist/models/DomainSalesInformationDto.js +4 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/GetAdminDomainAppraisalRequests200Response.d.ts +47 -0
- package/dist/models/GetAdminDomainAppraisalRequests200Response.js +62 -0
- package/dist/models/GetBuyerDomainAppraisalRequests200Response.d.ts +47 -0
- package/dist/models/GetBuyerDomainAppraisalRequests200Response.js +62 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/InvoiceDto.d.ts +2 -2
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- 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 +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +130 -2
- package/src/apis/BuyersApi.ts +113 -0
- package/src/apis/DomainAppraisalRequestsApi.ts +157 -0
- package/src/apis/DomainAppraisalRequestsPublicApi.ts +271 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AccountAliasDto.ts +24 -3
- package/src/models/AccountSettingsAliasDto.ts +24 -3
- package/src/models/AdminDomainAppraisalRequestListItemDto.ts +209 -0
- package/src/models/AdminListAccountDto.ts +20 -1
- package/src/models/BuyerDomainAppraisalRequestCheckoutDto.ts +411 -0
- package/src/models/BuyerInvoiceDto.ts +2 -2
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/BuyerSessionDto.ts +9 -0
- package/src/models/CreateAccountPaymentInput.ts +2 -1
- package/src/models/CreateBuyerDomainAppraisalRequestInput.ts +84 -0
- package/src/models/CustomerSuccessListAccountDto.ts +20 -1
- package/src/models/DomainAppraisalRequestListItemDto.ts +155 -0
- package/src/models/DomainAppraisalRequestStatus.ts +55 -0
- package/src/models/DomainAppraisalRequester.ts +53 -0
- package/src/models/DomainSalesInformationDto.ts +9 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/GetAdminDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/GetBuyerDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/InvoiceDto.ts +2 -2
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +8 -0
|
@@ -16,18 +16,33 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface AccountAliasDto {
|
|
18
18
|
/**
|
|
19
|
-
* Account alias string.
|
|
19
|
+
* Account alias string; null when no alias is set.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AccountAliasDto
|
|
22
22
|
*/
|
|
23
|
-
alias: string;
|
|
23
|
+
alias: string | null;
|
|
24
24
|
/**
|
|
25
|
-
* Whether the alias has been verified.
|
|
25
|
+
* Deprecated, use status. Whether the alias has been verified.
|
|
26
26
|
* @type {boolean}
|
|
27
27
|
* @memberof AccountAliasDto
|
|
28
28
|
*/
|
|
29
29
|
verified: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Review status of the alias: pending review, verified (shown on the landing pages) or rejected by an admin. Null when no alias is set.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountAliasDto
|
|
34
|
+
*/
|
|
35
|
+
status: AccountAliasDtoStatusEnum | null;
|
|
30
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const AccountAliasDtoStatusEnum: {
|
|
41
|
+
readonly PENDING: "pending";
|
|
42
|
+
readonly VERIFIED: "verified";
|
|
43
|
+
readonly REJECTED: "rejected";
|
|
44
|
+
};
|
|
45
|
+
export type AccountAliasDtoStatusEnum = typeof AccountAliasDtoStatusEnum[keyof typeof AccountAliasDtoStatusEnum];
|
|
31
46
|
/**
|
|
32
47
|
* Check if a given object implements the AccountAliasDto interface.
|
|
33
48
|
*/
|
|
@@ -13,11 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccountAliasDtoStatusEnum = void 0;
|
|
16
17
|
exports.instanceOfAccountAliasDto = instanceOfAccountAliasDto;
|
|
17
18
|
exports.AccountAliasDtoFromJSON = AccountAliasDtoFromJSON;
|
|
18
19
|
exports.AccountAliasDtoFromJSONTyped = AccountAliasDtoFromJSONTyped;
|
|
19
20
|
exports.AccountAliasDtoToJSON = AccountAliasDtoToJSON;
|
|
20
21
|
exports.AccountAliasDtoToJSONTyped = AccountAliasDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AccountAliasDtoStatusEnum = {
|
|
26
|
+
PENDING: 'pending',
|
|
27
|
+
VERIFIED: 'verified',
|
|
28
|
+
REJECTED: 'rejected'
|
|
29
|
+
};
|
|
21
30
|
/**
|
|
22
31
|
* Check if a given object implements the AccountAliasDto interface.
|
|
23
32
|
*/
|
|
@@ -26,6 +35,8 @@ function instanceOfAccountAliasDto(value) {
|
|
|
26
35
|
return false;
|
|
27
36
|
if (!('verified' in value) || value['verified'] === undefined)
|
|
28
37
|
return false;
|
|
38
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
+
return false;
|
|
29
40
|
return true;
|
|
30
41
|
}
|
|
31
42
|
function AccountAliasDtoFromJSON(json) {
|
|
@@ -38,6 +49,7 @@ function AccountAliasDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
49
|
return {
|
|
39
50
|
'alias': json['alias'],
|
|
40
51
|
'verified': json['verified'],
|
|
52
|
+
'status': json['status'],
|
|
41
53
|
};
|
|
42
54
|
}
|
|
43
55
|
function AccountAliasDtoToJSON(json) {
|
|
@@ -51,5 +63,6 @@ function AccountAliasDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
63
|
return {
|
|
52
64
|
'alias': value['alias'],
|
|
53
65
|
'verified': value['verified'],
|
|
66
|
+
'status': value['status'],
|
|
54
67
|
};
|
|
55
68
|
}
|
|
@@ -16,18 +16,33 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface AccountSettingsAliasDto {
|
|
18
18
|
/**
|
|
19
|
-
* Account alias string.
|
|
19
|
+
* Account alias string; null when no alias is set.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AccountSettingsAliasDto
|
|
22
22
|
*/
|
|
23
|
-
alias: string;
|
|
23
|
+
alias: string | null;
|
|
24
24
|
/**
|
|
25
|
-
* Whether the alias has been verified.
|
|
25
|
+
* Deprecated, use status. Whether the alias has been verified.
|
|
26
26
|
* @type {boolean}
|
|
27
27
|
* @memberof AccountSettingsAliasDto
|
|
28
28
|
*/
|
|
29
29
|
verified: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Review status of the alias: pending review, verified (shown on the landing pages) or rejected by an admin. Null when no alias is set.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountSettingsAliasDto
|
|
34
|
+
*/
|
|
35
|
+
status: AccountSettingsAliasDtoStatusEnum | null;
|
|
30
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const AccountSettingsAliasDtoStatusEnum: {
|
|
41
|
+
readonly PENDING: "pending";
|
|
42
|
+
readonly VERIFIED: "verified";
|
|
43
|
+
readonly REJECTED: "rejected";
|
|
44
|
+
};
|
|
45
|
+
export type AccountSettingsAliasDtoStatusEnum = typeof AccountSettingsAliasDtoStatusEnum[keyof typeof AccountSettingsAliasDtoStatusEnum];
|
|
31
46
|
/**
|
|
32
47
|
* Check if a given object implements the AccountSettingsAliasDto interface.
|
|
33
48
|
*/
|
|
@@ -13,11 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccountSettingsAliasDtoStatusEnum = void 0;
|
|
16
17
|
exports.instanceOfAccountSettingsAliasDto = instanceOfAccountSettingsAliasDto;
|
|
17
18
|
exports.AccountSettingsAliasDtoFromJSON = AccountSettingsAliasDtoFromJSON;
|
|
18
19
|
exports.AccountSettingsAliasDtoFromJSONTyped = AccountSettingsAliasDtoFromJSONTyped;
|
|
19
20
|
exports.AccountSettingsAliasDtoToJSON = AccountSettingsAliasDtoToJSON;
|
|
20
21
|
exports.AccountSettingsAliasDtoToJSONTyped = AccountSettingsAliasDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AccountSettingsAliasDtoStatusEnum = {
|
|
26
|
+
PENDING: 'pending',
|
|
27
|
+
VERIFIED: 'verified',
|
|
28
|
+
REJECTED: 'rejected'
|
|
29
|
+
};
|
|
21
30
|
/**
|
|
22
31
|
* Check if a given object implements the AccountSettingsAliasDto interface.
|
|
23
32
|
*/
|
|
@@ -26,6 +35,8 @@ function instanceOfAccountSettingsAliasDto(value) {
|
|
|
26
35
|
return false;
|
|
27
36
|
if (!('verified' in value) || value['verified'] === undefined)
|
|
28
37
|
return false;
|
|
38
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
+
return false;
|
|
29
40
|
return true;
|
|
30
41
|
}
|
|
31
42
|
function AccountSettingsAliasDtoFromJSON(json) {
|
|
@@ -38,6 +49,7 @@ function AccountSettingsAliasDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
49
|
return {
|
|
39
50
|
'alias': json['alias'],
|
|
40
51
|
'verified': json['verified'],
|
|
52
|
+
'status': json['status'],
|
|
41
53
|
};
|
|
42
54
|
}
|
|
43
55
|
function AccountSettingsAliasDtoToJSON(json) {
|
|
@@ -51,5 +63,6 @@ function AccountSettingsAliasDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
63
|
return {
|
|
52
64
|
'alias': value['alias'],
|
|
53
65
|
'verified': value['verified'],
|
|
66
|
+
'status': value['status'],
|
|
54
67
|
};
|
|
55
68
|
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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
|
+
import type { DomainAppraisalRequester } from './DomainAppraisalRequester';
|
|
13
|
+
import type { DomainAppraisalRequestStatus } from './DomainAppraisalRequestStatus';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AdminDomainAppraisalRequestListItemDto
|
|
18
|
+
*/
|
|
19
|
+
export interface AdminDomainAppraisalRequestListItemDto {
|
|
20
|
+
/**
|
|
21
|
+
* Domain appraisal request identifier.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Appraised domain identifier.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
30
|
+
*/
|
|
31
|
+
domainId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Appraised domain name (Unicode).
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
36
|
+
*/
|
|
37
|
+
domainName: string;
|
|
38
|
+
/**
|
|
39
|
+
* Whether a buyer or the seller of the domain requested it.
|
|
40
|
+
* @type {DomainAppraisalRequester}
|
|
41
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
42
|
+
*/
|
|
43
|
+
requester: DomainAppraisalRequester;
|
|
44
|
+
/**
|
|
45
|
+
* Domain appraisal request status.
|
|
46
|
+
* @type {DomainAppraisalRequestStatus}
|
|
47
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
48
|
+
*/
|
|
49
|
+
status: DomainAppraisalRequestStatus;
|
|
50
|
+
/**
|
|
51
|
+
* Appraised amount in EUR, once appraised.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
54
|
+
*/
|
|
55
|
+
appraisedAmountEur: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* When it was appraised.
|
|
58
|
+
* @type {Date}
|
|
59
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
60
|
+
*/
|
|
61
|
+
appraisedAt: Date | null;
|
|
62
|
+
/**
|
|
63
|
+
* When it was sent to be appraised, after payment.
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
66
|
+
*/
|
|
67
|
+
requestedAt: Date | null;
|
|
68
|
+
/**
|
|
69
|
+
* When it was created.
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
72
|
+
*/
|
|
73
|
+
createdAt: Date;
|
|
74
|
+
/**
|
|
75
|
+
* Buyer that requested it, if a buyer did.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
78
|
+
*/
|
|
79
|
+
buyerId: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Email of the buyer that requested it, if a buyer did.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
84
|
+
*/
|
|
85
|
+
buyerEmail: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Account of the seller that requested it, if a seller did.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
90
|
+
*/
|
|
91
|
+
accountId: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Identifier of the account of the seller that requested it, if a seller did.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
96
|
+
*/
|
|
97
|
+
accountIdentifier: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Billing name of the account of the seller that requested it, if a seller did and it has billing information.
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
102
|
+
*/
|
|
103
|
+
accountName: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Identifier of the domain appraisal request in the domain appraisals API.
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
108
|
+
*/
|
|
109
|
+
externalId: string | null;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Check if a given object implements the AdminDomainAppraisalRequestListItemDto interface.
|
|
113
|
+
*/
|
|
114
|
+
export declare function instanceOfAdminDomainAppraisalRequestListItemDto(value: object): value is AdminDomainAppraisalRequestListItemDto;
|
|
115
|
+
export declare function AdminDomainAppraisalRequestListItemDtoFromJSON(json: any): AdminDomainAppraisalRequestListItemDto;
|
|
116
|
+
export declare function AdminDomainAppraisalRequestListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminDomainAppraisalRequestListItemDto;
|
|
117
|
+
export declare function AdminDomainAppraisalRequestListItemDtoToJSON(json: any): AdminDomainAppraisalRequestListItemDto;
|
|
118
|
+
export declare function AdminDomainAppraisalRequestListItemDtoToJSONTyped(value?: AdminDomainAppraisalRequestListItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfAdminDomainAppraisalRequestListItemDto = instanceOfAdminDomainAppraisalRequestListItemDto;
|
|
17
|
+
exports.AdminDomainAppraisalRequestListItemDtoFromJSON = AdminDomainAppraisalRequestListItemDtoFromJSON;
|
|
18
|
+
exports.AdminDomainAppraisalRequestListItemDtoFromJSONTyped = AdminDomainAppraisalRequestListItemDtoFromJSONTyped;
|
|
19
|
+
exports.AdminDomainAppraisalRequestListItemDtoToJSON = AdminDomainAppraisalRequestListItemDtoToJSON;
|
|
20
|
+
exports.AdminDomainAppraisalRequestListItemDtoToJSONTyped = AdminDomainAppraisalRequestListItemDtoToJSONTyped;
|
|
21
|
+
var DomainAppraisalRequester_1 = require("./DomainAppraisalRequester");
|
|
22
|
+
var DomainAppraisalRequestStatus_1 = require("./DomainAppraisalRequestStatus");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AdminDomainAppraisalRequestListItemDto interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAdminDomainAppraisalRequestListItemDto(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('domainId' in value) || value['domainId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('requester' in value) || value['requester'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('appraisedAmountEur' in value) || value['appraisedAmountEur'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('appraisedAt' in value) || value['appraisedAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('requestedAt' in value) || value['requestedAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('buyerId' in value) || value['buyerId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('buyerEmail' in value) || value['buyerEmail'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('accountIdentifier' in value) || value['accountIdentifier'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('accountName' in value) || value['accountName'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
function AdminDomainAppraisalRequestListItemDtoFromJSON(json) {
|
|
60
|
+
return AdminDomainAppraisalRequestListItemDtoFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function AdminDomainAppraisalRequestListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': json['id'],
|
|
68
|
+
'domainId': json['domainId'],
|
|
69
|
+
'domainName': json['domainName'],
|
|
70
|
+
'requester': (0, DomainAppraisalRequester_1.DomainAppraisalRequesterFromJSON)(json['requester']),
|
|
71
|
+
'status': (0, DomainAppraisalRequestStatus_1.DomainAppraisalRequestStatusFromJSON)(json['status']),
|
|
72
|
+
'appraisedAmountEur': json['appraisedAmountEur'],
|
|
73
|
+
'appraisedAt': (json['appraisedAt'] == null ? null : new Date(json['appraisedAt'])),
|
|
74
|
+
'requestedAt': (json['requestedAt'] == null ? null : new Date(json['requestedAt'])),
|
|
75
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
76
|
+
'buyerId': json['buyerId'],
|
|
77
|
+
'buyerEmail': json['buyerEmail'],
|
|
78
|
+
'accountId': json['accountId'],
|
|
79
|
+
'accountIdentifier': json['accountIdentifier'],
|
|
80
|
+
'accountName': json['accountName'],
|
|
81
|
+
'externalId': json['externalId'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function AdminDomainAppraisalRequestListItemDtoToJSON(json) {
|
|
85
|
+
return AdminDomainAppraisalRequestListItemDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
function AdminDomainAppraisalRequestListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
88
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
'id': value['id'],
|
|
94
|
+
'domainId': value['domainId'],
|
|
95
|
+
'domainName': value['domainName'],
|
|
96
|
+
'requester': (0, DomainAppraisalRequester_1.DomainAppraisalRequesterToJSON)(value['requester']),
|
|
97
|
+
'status': (0, DomainAppraisalRequestStatus_1.DomainAppraisalRequestStatusToJSON)(value['status']),
|
|
98
|
+
'appraisedAmountEur': value['appraisedAmountEur'],
|
|
99
|
+
'appraisedAt': (value['appraisedAt'] == null ? null : value['appraisedAt'].toISOString()),
|
|
100
|
+
'requestedAt': (value['requestedAt'] == null ? null : value['requestedAt'].toISOString()),
|
|
101
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
102
|
+
'buyerId': value['buyerId'],
|
|
103
|
+
'buyerEmail': value['buyerEmail'],
|
|
104
|
+
'accountId': value['accountId'],
|
|
105
|
+
'accountIdentifier': value['accountIdentifier'],
|
|
106
|
+
'accountName': value['accountName'],
|
|
107
|
+
'externalId': value['externalId'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
@@ -75,11 +75,17 @@ export interface AdminListAccountDto {
|
|
|
75
75
|
*/
|
|
76
76
|
alias: string | null;
|
|
77
77
|
/**
|
|
78
|
-
* Whether the alias is verified.
|
|
78
|
+
* Deprecated, use aliasStatus. Whether the alias is verified.
|
|
79
79
|
* @type {boolean}
|
|
80
80
|
* @memberof AdminListAccountDto
|
|
81
81
|
*/
|
|
82
82
|
aliasVerified: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Review status of the alias: pending review, verified or rejected. Null when no alias is set.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof AdminListAccountDto
|
|
87
|
+
*/
|
|
88
|
+
aliasStatus: AdminListAccountDtoAliasStatusEnum | null;
|
|
83
89
|
/**
|
|
84
90
|
* Account metrics.
|
|
85
91
|
* @type {ListAccountMetricsDto}
|
|
@@ -147,6 +153,15 @@ export interface AdminListAccountDto {
|
|
|
147
153
|
*/
|
|
148
154
|
challengeRewardBalance: ChallengeRewardBalanceDto;
|
|
149
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* @export
|
|
158
|
+
*/
|
|
159
|
+
export declare const AdminListAccountDtoAliasStatusEnum: {
|
|
160
|
+
readonly PENDING: "pending";
|
|
161
|
+
readonly VERIFIED: "verified";
|
|
162
|
+
readonly REJECTED: "rejected";
|
|
163
|
+
};
|
|
164
|
+
export type AdminListAccountDtoAliasStatusEnum = typeof AdminListAccountDtoAliasStatusEnum[keyof typeof AdminListAccountDtoAliasStatusEnum];
|
|
150
165
|
/**
|
|
151
166
|
* @export
|
|
152
167
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AdminListAccountDtoPayoutProviderEnum = exports.AdminListAccountDtoOnboardingStatusEnum = exports.AdminListAccountDtoOnboardingProviderEnum = void 0;
|
|
16
|
+
exports.AdminListAccountDtoPayoutProviderEnum = exports.AdminListAccountDtoOnboardingStatusEnum = exports.AdminListAccountDtoOnboardingProviderEnum = exports.AdminListAccountDtoAliasStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfAdminListAccountDto = instanceOfAdminListAccountDto;
|
|
18
18
|
exports.AdminListAccountDtoFromJSON = AdminListAccountDtoFromJSON;
|
|
19
19
|
exports.AdminListAccountDtoFromJSONTyped = AdminListAccountDtoFromJSONTyped;
|
|
@@ -24,6 +24,14 @@ var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
|
|
|
24
24
|
var AccountBankAccountSummaryDto_1 = require("./AccountBankAccountSummaryDto");
|
|
25
25
|
var ListAccountPortfolioSizeDto_1 = require("./ListAccountPortfolioSizeDto");
|
|
26
26
|
var ListAccountUserDto_1 = require("./ListAccountUserDto");
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
exports.AdminListAccountDtoAliasStatusEnum = {
|
|
31
|
+
PENDING: 'pending',
|
|
32
|
+
VERIFIED: 'verified',
|
|
33
|
+
REJECTED: 'rejected'
|
|
34
|
+
};
|
|
27
35
|
/**
|
|
28
36
|
* @export
|
|
29
37
|
*/
|
|
@@ -70,6 +78,8 @@ function instanceOfAdminListAccountDto(value) {
|
|
|
70
78
|
return false;
|
|
71
79
|
if (!('aliasVerified' in value) || value['aliasVerified'] === undefined)
|
|
72
80
|
return false;
|
|
81
|
+
if (!('aliasStatus' in value) || value['aliasStatus'] === undefined)
|
|
82
|
+
return false;
|
|
73
83
|
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
74
84
|
return false;
|
|
75
85
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined)
|
|
@@ -112,6 +122,7 @@ function AdminListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
112
122
|
'type': json['type'],
|
|
113
123
|
'alias': json['alias'],
|
|
114
124
|
'aliasVerified': json['aliasVerified'],
|
|
125
|
+
'aliasStatus': json['aliasStatus'],
|
|
115
126
|
'metrics': (0, ListAccountMetricsDto_1.ListAccountMetricsDtoFromJSON)(json['metrics']),
|
|
116
127
|
'lastOnline': (new Date(json['lastOnline'])),
|
|
117
128
|
'users': (json['users'].map(ListAccountUserDto_1.ListAccountUserDtoFromJSON)),
|
|
@@ -144,6 +155,7 @@ function AdminListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
144
155
|
'type': value['type'],
|
|
145
156
|
'alias': value['alias'],
|
|
146
157
|
'aliasVerified': value['aliasVerified'],
|
|
158
|
+
'aliasStatus': value['aliasStatus'],
|
|
147
159
|
'metrics': (0, ListAccountMetricsDto_1.ListAccountMetricsDtoToJSON)(value['metrics']),
|
|
148
160
|
'lastOnline': ((value['lastOnline']).toISOString()),
|
|
149
161
|
'users': (value['users'].map(ListAccountUserDto_1.ListAccountUserDtoToJSON)),
|