@randock/nameshift-api-client 0.0.557 → 0.0.559
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 +15 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +38 -1
- package/dist/apis/AdminApi.js +165 -0
- package/dist/apis/BuyersApi.d.ts +3 -2
- package/dist/apis/BuyersApi.js +5 -2
- package/dist/apis/LeadsPublicApi.d.ts +43 -1
- package/dist/apis/LeadsPublicApi.js +151 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
- package/dist/models/FeatureFlagListItemDto.js +3 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
- package/dist/models/LeadDto.d.ts +7 -0
- package/dist/models/LeadDto.js +5 -0
- package/dist/models/LeadEmailVerificationDto.d.ts +38 -0
- package/dist/models/LeadEmailVerificationDto.js +55 -0
- package/dist/models/LeadPhoneVerificationDeliveryDto.d.ts +49 -0
- package/dist/models/LeadPhoneVerificationDeliveryDto.js +66 -0
- package/dist/models/LeadPhoneVerificationDto.d.ts +80 -0
- package/dist/models/LeadPhoneVerificationDto.js +89 -0
- package/dist/models/LeadPhoneVerificationReason.d.ts +35 -0
- package/dist/models/LeadPhoneVerificationReason.js +61 -0
- package/dist/models/LeadPhoneVerificationSummaryDto.d.ts +32 -0
- package/dist/models/LeadPhoneVerificationSummaryDto.js +51 -0
- package/dist/models/LeadPhoneVerificationTooSoonOutput.d.ts +51 -0
- package/dist/models/LeadPhoneVerificationTooSoonOutput.js +64 -0
- package/dist/models/LeadPhoneVerificationUnavailableOutput.d.ts +51 -0
- package/dist/models/LeadPhoneVerificationUnavailableOutput.js +64 -0
- package/dist/models/LeadVerificationDto.d.ts +40 -0
- package/dist/models/LeadVerificationDto.js +57 -0
- package/dist/models/LeadVerificationInput.d.ts +24 -0
- package/dist/models/LeadVerificationInput.js +8 -0
- package/dist/models/LeadVerificationSettingsDto.d.ts +24 -0
- package/dist/models/LeadVerificationSettingsDto.js +16 -0
- package/dist/models/ListLeadsResultItem.d.ts +7 -0
- package/dist/models/ListLeadsResultItem.js +5 -0
- package/dist/models/ManualLeadDetails.d.ts +7 -0
- package/dist/models/ManualLeadDetails.js +5 -0
- package/dist/models/PhoneMessageDeliveryStatus.d.ts +27 -0
- package/dist/models/PhoneMessageDeliveryStatus.js +53 -0
- package/dist/models/PlatformConfigurationBlock.d.ts +25 -0
- package/dist/models/PlatformConfigurationBlock.js +51 -0
- package/dist/models/PlatformConfigurationDto.d.ts +62 -0
- package/dist/models/PlatformConfigurationDto.js +69 -0
- package/dist/models/PlatformConfigurationUpdatedByDto.d.ts +44 -0
- package/dist/models/PlatformConfigurationUpdatedByDto.js +59 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
- package/dist/models/PrivateAccountGetMeResponse.js +3 -1
- package/dist/models/PublicLeadDto.d.ts +7 -0
- package/dist/models/PublicLeadDto.js +5 -0
- package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +9 -2
- package/dist/models/RegisterAuctionBuyerPhoneInput.js +3 -3
- package/dist/models/RequestLeadPhoneVerificationCodeInput.d.ts +32 -0
- package/dist/models/RequestLeadPhoneVerificationCodeInput.js +49 -0
- package/dist/models/SellerLeadDetails.d.ts +7 -0
- package/dist/models/SellerLeadDetails.js +5 -0
- package/dist/models/UpdatePlatformConfigurationInput.d.ts +34 -0
- package/dist/models/UpdatePlatformConfigurationInput.js +51 -0
- package/dist/models/VerifyLeadPhoneInput.d.ts +32 -0
- package/dist/models/VerifyLeadPhoneInput.js +51 -0
- package/dist/models/VerifyPhoneOtpInput.d.ts +1 -1
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +149 -0
- package/src/apis/BuyersApi.ts +7 -2
- package/src/apis/LeadsPublicApi.ts +162 -0
- package/src/models/FeatureFlagListItemDto.ts +3 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
- package/src/models/LeadDto.ts +16 -0
- package/src/models/LeadEmailVerificationDto.ts +75 -0
- package/src/models/LeadPhoneVerificationDeliveryDto.ts +96 -0
- package/src/models/LeadPhoneVerificationDto.ts +132 -0
- package/src/models/LeadPhoneVerificationReason.ts +63 -0
- package/src/models/LeadPhoneVerificationSummaryDto.ts +66 -0
- package/src/models/LeadPhoneVerificationTooSoonOutput.ts +103 -0
- package/src/models/LeadPhoneVerificationUnavailableOutput.ts +103 -0
- package/src/models/LeadVerificationDto.ts +90 -0
- package/src/models/LeadVerificationInput.ts +32 -0
- package/src/models/LeadVerificationSettingsDto.ts +36 -0
- package/src/models/ListLeadsResultItem.ts +16 -0
- package/src/models/ManualLeadDetails.ts +16 -0
- package/src/models/PhoneMessageDeliveryStatus.ts +55 -0
- package/src/models/PlatformConfigurationBlock.ts +53 -0
- package/src/models/PlatformConfigurationDto.ts +119 -0
- package/src/models/PlatformConfigurationUpdatedByDto.ts +84 -0
- package/src/models/PrivateAccountGetMeResponse.ts +3 -1
- package/src/models/PublicLeadDto.ts +16 -0
- package/src/models/RegisterAuctionBuyerPhoneInput.ts +12 -4
- package/src/models/RequestLeadPhoneVerificationCodeInput.ts +65 -0
- package/src/models/SellerLeadDetails.ts +16 -0
- package/src/models/UpdatePlatformConfigurationInput.ts +66 -0
- package/src/models/VerifyLeadPhoneInput.ts +66 -0
- package/src/models/VerifyPhoneOtpInput.ts +1 -1
- package/src/models/index.ts +15 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Name of the configuration block.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PlatformConfigurationBlock = {
|
|
21
|
+
PHONE_VERIFICATION: 'phone_verification',
|
|
22
|
+
LEAD_PHONE_VERIFICATION: 'lead_phone_verification'
|
|
23
|
+
} as const;
|
|
24
|
+
export type PlatformConfigurationBlock = typeof PlatformConfigurationBlock[keyof typeof PlatformConfigurationBlock];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfPlatformConfigurationBlock(value: any): boolean {
|
|
28
|
+
for (const key in PlatformConfigurationBlock) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(PlatformConfigurationBlock, key)) {
|
|
30
|
+
if (PlatformConfigurationBlock[key as keyof typeof PlatformConfigurationBlock] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PlatformConfigurationBlockFromJSON(json: any): PlatformConfigurationBlock {
|
|
39
|
+
return PlatformConfigurationBlockFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PlatformConfigurationBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformConfigurationBlock {
|
|
43
|
+
return json as PlatformConfigurationBlock;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PlatformConfigurationBlockToJSON(value?: PlatformConfigurationBlock | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PlatformConfigurationBlockToJSONTyped(value: any, ignoreDiscriminator: boolean): PlatformConfigurationBlock {
|
|
51
|
+
return value as PlatformConfigurationBlock;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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
|
+
import type { PlatformConfigurationBlock } from './PlatformConfigurationBlock';
|
|
17
|
+
import {
|
|
18
|
+
PlatformConfigurationBlockFromJSON,
|
|
19
|
+
PlatformConfigurationBlockFromJSONTyped,
|
|
20
|
+
PlatformConfigurationBlockToJSON,
|
|
21
|
+
PlatformConfigurationBlockToJSONTyped,
|
|
22
|
+
} from './PlatformConfigurationBlock';
|
|
23
|
+
import type { PlatformConfigurationUpdatedByDto } from './PlatformConfigurationUpdatedByDto';
|
|
24
|
+
import {
|
|
25
|
+
PlatformConfigurationUpdatedByDtoFromJSON,
|
|
26
|
+
PlatformConfigurationUpdatedByDtoFromJSONTyped,
|
|
27
|
+
PlatformConfigurationUpdatedByDtoToJSON,
|
|
28
|
+
PlatformConfigurationUpdatedByDtoToJSONTyped,
|
|
29
|
+
} from './PlatformConfigurationUpdatedByDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PlatformConfigurationDto
|
|
35
|
+
*/
|
|
36
|
+
export interface PlatformConfigurationDto {
|
|
37
|
+
/**
|
|
38
|
+
* Name of the configuration block.
|
|
39
|
+
* @type {PlatformConfigurationBlock}
|
|
40
|
+
* @memberof PlatformConfigurationDto
|
|
41
|
+
*/
|
|
42
|
+
name: PlatformConfigurationBlock;
|
|
43
|
+
/**
|
|
44
|
+
* JSON Schema of the block value.
|
|
45
|
+
* @type {{ [key: string]: any; }}
|
|
46
|
+
* @memberof PlatformConfigurationDto
|
|
47
|
+
*/
|
|
48
|
+
schema: { [key: string]: any; };
|
|
49
|
+
/**
|
|
50
|
+
* Values of the block.
|
|
51
|
+
* @type {{ [key: string]: any; }}
|
|
52
|
+
* @memberof PlatformConfigurationDto
|
|
53
|
+
*/
|
|
54
|
+
value: { [key: string]: any; };
|
|
55
|
+
/**
|
|
56
|
+
* When the value last changed.
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof PlatformConfigurationDto
|
|
59
|
+
*/
|
|
60
|
+
updatedAt: Date;
|
|
61
|
+
/**
|
|
62
|
+
* Admin who saved the block last.
|
|
63
|
+
* @type {PlatformConfigurationUpdatedByDto}
|
|
64
|
+
* @memberof PlatformConfigurationDto
|
|
65
|
+
*/
|
|
66
|
+
updatedBy: PlatformConfigurationUpdatedByDto | null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the PlatformConfigurationDto interface.
|
|
73
|
+
*/
|
|
74
|
+
export function instanceOfPlatformConfigurationDto(value: object): value is PlatformConfigurationDto {
|
|
75
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
76
|
+
if (!('schema' in value) || value['schema'] === undefined) return false;
|
|
77
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
78
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
79
|
+
if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PlatformConfigurationDtoFromJSON(json: any): PlatformConfigurationDto {
|
|
84
|
+
return PlatformConfigurationDtoFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function PlatformConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformConfigurationDto {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'name': PlatformConfigurationBlockFromJSON(json['name']),
|
|
94
|
+
'schema': json['schema'],
|
|
95
|
+
'value': json['value'],
|
|
96
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
97
|
+
'updatedBy': PlatformConfigurationUpdatedByDtoFromJSON(json['updatedBy']),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function PlatformConfigurationDtoToJSON(json: any): PlatformConfigurationDto {
|
|
102
|
+
return PlatformConfigurationDtoToJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function PlatformConfigurationDtoToJSONTyped(value?: PlatformConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
106
|
+
if (value == null) {
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'name': PlatformConfigurationBlockToJSON(value['name']),
|
|
113
|
+
'schema': value['schema'],
|
|
114
|
+
'value': value['value'],
|
|
115
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
116
|
+
'updatedBy': PlatformConfigurationUpdatedByDtoToJSON(value['updatedBy']),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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 PlatformConfigurationUpdatedByDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PlatformConfigurationUpdatedByDto {
|
|
22
|
+
/**
|
|
23
|
+
* User ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PlatformConfigurationUpdatedByDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* First name.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PlatformConfigurationUpdatedByDto
|
|
32
|
+
*/
|
|
33
|
+
firstname: string;
|
|
34
|
+
/**
|
|
35
|
+
* Last name.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PlatformConfigurationUpdatedByDto
|
|
38
|
+
*/
|
|
39
|
+
lastname: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PlatformConfigurationUpdatedByDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPlatformConfigurationUpdatedByDto(value: object): value is PlatformConfigurationUpdatedByDto {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
48
|
+
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PlatformConfigurationUpdatedByDtoFromJSON(json: any): PlatformConfigurationUpdatedByDto {
|
|
53
|
+
return PlatformConfigurationUpdatedByDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PlatformConfigurationUpdatedByDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformConfigurationUpdatedByDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'firstname': json['firstname'],
|
|
64
|
+
'lastname': json['lastname'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PlatformConfigurationUpdatedByDtoToJSON(json: any): PlatformConfigurationUpdatedByDto {
|
|
69
|
+
return PlatformConfigurationUpdatedByDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PlatformConfigurationUpdatedByDtoToJSONTyped(value?: PlatformConfigurationUpdatedByDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'firstname': value['firstname'],
|
|
81
|
+
'lastname': value['lastname'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -215,7 +215,9 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
215
215
|
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF',
|
|
216
216
|
WEBHOOKS: 'WEBHOOKS',
|
|
217
217
|
CUSTOM_LANDING_PAGE_CONTENT: 'CUSTOM_LANDING_PAGE_CONTENT',
|
|
218
|
-
AUTOMATIONS: 'AUTOMATIONS'
|
|
218
|
+
AUTOMATIONS: 'AUTOMATIONS',
|
|
219
|
+
LEAD_PHONE_OTP: 'LEAD_PHONE_OTP',
|
|
220
|
+
PHONE_VERIFICATION_RECAPTCHA: 'PHONE_VERIFICATION_RECAPTCHA'
|
|
219
221
|
} as const;
|
|
220
222
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
221
223
|
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
PublicLeadBuyerDtoToJSON,
|
|
21
21
|
PublicLeadBuyerDtoToJSONTyped,
|
|
22
22
|
} from './PublicLeadBuyerDto';
|
|
23
|
+
import type { LeadVerificationDto } from './LeadVerificationDto';
|
|
24
|
+
import {
|
|
25
|
+
LeadVerificationDtoFromJSON,
|
|
26
|
+
LeadVerificationDtoFromJSONTyped,
|
|
27
|
+
LeadVerificationDtoToJSON,
|
|
28
|
+
LeadVerificationDtoToJSONTyped,
|
|
29
|
+
} from './LeadVerificationDto';
|
|
23
30
|
import type { MoneyDto } from './MoneyDto';
|
|
24
31
|
import {
|
|
25
32
|
MoneyDtoFromJSON,
|
|
@@ -64,6 +71,12 @@ export interface PublicLeadDto {
|
|
|
64
71
|
* @memberof PublicLeadDto
|
|
65
72
|
*/
|
|
66
73
|
domainName: string;
|
|
74
|
+
/**
|
|
75
|
+
* What the buyer has to confirm, and has confirmed.
|
|
76
|
+
* @type {LeadVerificationDto}
|
|
77
|
+
* @memberof PublicLeadDto
|
|
78
|
+
*/
|
|
79
|
+
verification: LeadVerificationDto;
|
|
67
80
|
}
|
|
68
81
|
|
|
69
82
|
|
|
@@ -90,6 +103,7 @@ export function instanceOfPublicLeadDto(value: object): value is PublicLeadDto {
|
|
|
90
103
|
if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
|
|
91
104
|
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
92
105
|
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
106
|
+
if (!('verification' in value) || value['verification'] === undefined) return false;
|
|
93
107
|
return true;
|
|
94
108
|
}
|
|
95
109
|
|
|
@@ -108,6 +122,7 @@ export function PublicLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
108
122
|
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
109
123
|
'buyer': PublicLeadBuyerDtoFromJSON(json['buyer']),
|
|
110
124
|
'domainName': json['domainName'],
|
|
125
|
+
'verification': LeadVerificationDtoFromJSON(json['verification']),
|
|
111
126
|
};
|
|
112
127
|
}
|
|
113
128
|
|
|
@@ -127,6 +142,7 @@ export function PublicLeadDtoToJSONTyped(value?: PublicLeadDto | null, ignoreDis
|
|
|
127
142
|
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
128
143
|
'buyer': PublicLeadBuyerDtoToJSON(value['buyer']),
|
|
129
144
|
'domainName': value['domainName'],
|
|
145
|
+
'verification': LeadVerificationDtoToJSON(value['verification']),
|
|
130
146
|
};
|
|
131
147
|
}
|
|
132
148
|
|
|
@@ -26,11 +26,18 @@ export interface RegisterAuctionBuyerPhoneInput {
|
|
|
26
26
|
*/
|
|
27
27
|
phone: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Ignored: the code goes out on the channels of the platform configuration.
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof RegisterAuctionBuyerPhoneInput
|
|
32
|
+
* @deprecated
|
|
32
33
|
*/
|
|
33
|
-
channel
|
|
34
|
+
channel?: RegisterAuctionBuyerPhoneInputChannelEnum;
|
|
35
|
+
/**
|
|
36
|
+
* Locale of the page the buyer reads (BCP 47 language tag), for the language of the code message.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RegisterAuctionBuyerPhoneInput
|
|
39
|
+
*/
|
|
40
|
+
locale?: string;
|
|
34
41
|
}
|
|
35
42
|
|
|
36
43
|
|
|
@@ -50,7 +57,6 @@ export type RegisterAuctionBuyerPhoneInputChannelEnum = typeof RegisterAuctionBu
|
|
|
50
57
|
*/
|
|
51
58
|
export function instanceOfRegisterAuctionBuyerPhoneInput(value: object): value is RegisterAuctionBuyerPhoneInput {
|
|
52
59
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
53
|
-
if (!('channel' in value) || value['channel'] === undefined) return false;
|
|
54
60
|
return true;
|
|
55
61
|
}
|
|
56
62
|
|
|
@@ -65,7 +71,8 @@ export function RegisterAuctionBuyerPhoneInputFromJSONTyped(json: any, ignoreDis
|
|
|
65
71
|
return {
|
|
66
72
|
|
|
67
73
|
'phone': json['phone'],
|
|
68
|
-
'channel': json['channel'],
|
|
74
|
+
'channel': json['channel'] == null ? undefined : json['channel'],
|
|
75
|
+
'locale': json['locale'] == null ? undefined : json['locale'],
|
|
69
76
|
};
|
|
70
77
|
}
|
|
71
78
|
|
|
@@ -82,6 +89,7 @@ export function RegisterAuctionBuyerPhoneInputToJSONTyped(value?: RegisterAuctio
|
|
|
82
89
|
|
|
83
90
|
'phone': value['phone'],
|
|
84
91
|
'channel': value['channel'],
|
|
92
|
+
'locale': value['locale'],
|
|
85
93
|
};
|
|
86
94
|
}
|
|
87
95
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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 RequestLeadPhoneVerificationCodeInput
|
|
20
|
+
*/
|
|
21
|
+
export interface RequestLeadPhoneVerificationCodeInput {
|
|
22
|
+
/**
|
|
23
|
+
* Locale of the page the buyer reads (BCP 47 language tag), for the language of the code message.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RequestLeadPhoneVerificationCodeInput
|
|
26
|
+
*/
|
|
27
|
+
locale?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RequestLeadPhoneVerificationCodeInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfRequestLeadPhoneVerificationCodeInput(value: object): value is RequestLeadPhoneVerificationCodeInput {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function RequestLeadPhoneVerificationCodeInputFromJSON(json: any): RequestLeadPhoneVerificationCodeInput {
|
|
38
|
+
return RequestLeadPhoneVerificationCodeInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function RequestLeadPhoneVerificationCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestLeadPhoneVerificationCodeInput {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'locale': json['locale'] == null ? undefined : json['locale'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function RequestLeadPhoneVerificationCodeInputToJSON(json: any): RequestLeadPhoneVerificationCodeInput {
|
|
52
|
+
return RequestLeadPhoneVerificationCodeInputToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function RequestLeadPhoneVerificationCodeInputToJSONTyped(value?: RequestLeadPhoneVerificationCodeInput | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'locale': value['locale'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON,
|
|
35
35
|
IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped,
|
|
36
36
|
} from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
|
|
37
|
+
import type { LeadPhoneVerificationSummaryDto } from './LeadPhoneVerificationSummaryDto';
|
|
38
|
+
import {
|
|
39
|
+
LeadPhoneVerificationSummaryDtoFromJSON,
|
|
40
|
+
LeadPhoneVerificationSummaryDtoFromJSONTyped,
|
|
41
|
+
LeadPhoneVerificationSummaryDtoToJSON,
|
|
42
|
+
LeadPhoneVerificationSummaryDtoToJSONTyped,
|
|
43
|
+
} from './LeadPhoneVerificationSummaryDto';
|
|
37
44
|
import type { BuyerDto } from './BuyerDto';
|
|
38
45
|
import {
|
|
39
46
|
BuyerDtoFromJSON,
|
|
@@ -220,6 +227,12 @@ export interface SellerLeadDetails {
|
|
|
220
227
|
* @memberof SellerLeadDetails
|
|
221
228
|
*/
|
|
222
229
|
awaitingSellerFirstMessage: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* How the buyer phone number was confirmed. Null when the buyer did not confirm a phone code.
|
|
232
|
+
* @type {LeadPhoneVerificationSummaryDto}
|
|
233
|
+
* @memberof SellerLeadDetails
|
|
234
|
+
*/
|
|
235
|
+
phoneVerification: LeadPhoneVerificationSummaryDto | null;
|
|
223
236
|
/**
|
|
224
237
|
* Buyer details associated with the lead.
|
|
225
238
|
* @type {BuyerDto}
|
|
@@ -316,6 +329,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
|
|
|
316
329
|
if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
|
|
317
330
|
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
|
|
318
331
|
if (!('awaitingSellerFirstMessage' in value) || value['awaitingSellerFirstMessage'] === undefined) return false;
|
|
332
|
+
if (!('phoneVerification' in value) || value['phoneVerification'] === undefined) return false;
|
|
319
333
|
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
320
334
|
if (!('isMutedForSeller' in value) || value['isMutedForSeller'] === undefined) return false;
|
|
321
335
|
if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
|
|
@@ -356,6 +370,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
356
370
|
'canBeClosedBySeller': json['canBeClosedBySeller'],
|
|
357
371
|
'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
|
|
358
372
|
'awaitingSellerFirstMessage': json['awaitingSellerFirstMessage'],
|
|
373
|
+
'phoneVerification': LeadPhoneVerificationSummaryDtoFromJSON(json['phoneVerification']),
|
|
359
374
|
'buyer': BuyerDtoFromJSON(json['buyer']),
|
|
360
375
|
'isMutedForSeller': json['isMutedForSeller'],
|
|
361
376
|
'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
|
|
@@ -397,6 +412,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
|
|
|
397
412
|
'canBeClosedBySeller': value['canBeClosedBySeller'],
|
|
398
413
|
'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
|
|
399
414
|
'awaitingSellerFirstMessage': value['awaitingSellerFirstMessage'],
|
|
415
|
+
'phoneVerification': LeadPhoneVerificationSummaryDtoToJSON(value['phoneVerification']),
|
|
400
416
|
'buyer': BuyerDtoToJSON(value['buyer']),
|
|
401
417
|
'isMutedForSeller': value['isMutedForSeller'],
|
|
402
418
|
'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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 UpdatePlatformConfigurationInput
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdatePlatformConfigurationInput {
|
|
22
|
+
/**
|
|
23
|
+
* New values of the block, as its JSON Schema describes.
|
|
24
|
+
* @type {{ [key: string]: any; }}
|
|
25
|
+
* @memberof UpdatePlatformConfigurationInput
|
|
26
|
+
*/
|
|
27
|
+
value: { [key: string]: any; };
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdatePlatformConfigurationInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdatePlatformConfigurationInput(value: object): value is UpdatePlatformConfigurationInput {
|
|
34
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UpdatePlatformConfigurationInputFromJSON(json: any): UpdatePlatformConfigurationInput {
|
|
39
|
+
return UpdatePlatformConfigurationInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UpdatePlatformConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePlatformConfigurationInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'value': json['value'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdatePlatformConfigurationInputToJSON(json: any): UpdatePlatformConfigurationInput {
|
|
53
|
+
return UpdatePlatformConfigurationInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdatePlatformConfigurationInputToJSONTyped(value?: UpdatePlatformConfigurationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'value': value['value'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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 VerifyLeadPhoneInput
|
|
20
|
+
*/
|
|
21
|
+
export interface VerifyLeadPhoneInput {
|
|
22
|
+
/**
|
|
23
|
+
* Code the buyer received by WhatsApp or SMS.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VerifyLeadPhoneInput
|
|
26
|
+
*/
|
|
27
|
+
code: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the VerifyLeadPhoneInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfVerifyLeadPhoneInput(value: object): value is VerifyLeadPhoneInput {
|
|
34
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function VerifyLeadPhoneInputFromJSON(json: any): VerifyLeadPhoneInput {
|
|
39
|
+
return VerifyLeadPhoneInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function VerifyLeadPhoneInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyLeadPhoneInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'code': json['code'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function VerifyLeadPhoneInputToJSON(json: any): VerifyLeadPhoneInput {
|
|
53
|
+
return VerifyLeadPhoneInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function VerifyLeadPhoneInputToJSONTyped(value?: VerifyLeadPhoneInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'code': value['code'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface VerifyPhoneOtpInput {
|
|
22
22
|
/**
|
|
23
|
-
* One-time password received
|
|
23
|
+
* One-time password received by Telegram, WhatsApp, SMS or a voice call
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof VerifyPhoneOtpInput
|
|
26
26
|
*/
|