@randock/nameshift-api-client 0.0.87 → 0.0.89
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 +7 -10
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +50 -1
- package/dist/apis/BuyersApi.js +230 -0
- package/dist/apis/LeadsApi.d.ts +13 -1
- package/dist/apis/LeadsApi.js +56 -0
- package/dist/models/BadRequestException.d.ts +49 -0
- package/dist/models/BadRequestException.js +58 -0
- package/dist/models/BatchReadBuyerLeadMessageInput.d.ts +31 -0
- package/dist/models/BatchReadBuyerLeadMessageInput.js +46 -0
- package/dist/models/BatchReadSellerLeadMessageInput.d.ts +31 -0
- package/dist/models/BatchReadSellerLeadMessageInput.js +46 -0
- package/dist/models/BuyerLeadListItemDomainDto.d.ts +43 -0
- package/dist/models/BuyerLeadListItemDomainDto.js +54 -0
- package/dist/models/BuyerLeadListItemDto.d.ts +84 -0
- package/dist/models/BuyerLeadListItemDto.js +88 -0
- package/dist/models/CreateBuyerLeadMessageInput.d.ts +31 -0
- package/dist/models/CreateBuyerLeadMessageInput.js +46 -0
- package/dist/models/DomainTransferDetailsDto.d.ts +4 -4
- package/dist/models/DomainTransferDetailsDto.js +3 -3
- package/dist/models/DomainTransferDto.d.ts +4 -4
- package/dist/models/DomainTransferDto.js +3 -3
- package/dist/models/GetBuyerLeads200Response.d.ts +46 -0
- package/dist/models/GetBuyerLeads200Response.js +57 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -8
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -6
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +3 -3
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +3 -3
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +7 -7
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +6 -6
- package/dist/models/LeadMessageDto.d.ts +22 -10
- package/dist/models/LeadMessageDto.js +14 -6
- package/dist/models/OrderListItemDto.d.ts +4 -4
- package/dist/models/OrderListItemDto.js +3 -3
- package/dist/models/PublicLeadDto.d.ts +4 -4
- package/dist/models/PublicLeadDto.js +3 -3
- package/dist/models/SellerDomainTransferDto.d.ts +4 -4
- package/dist/models/SellerDomainTransferDto.js +3 -3
- package/dist/models/index.d.ts +7 -10
- package/dist/models/index.js +7 -10
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +3 -0
- package/src/apis/BuyersApi.ts +231 -0
- package/src/apis/LeadsApi.ts +58 -0
- package/src/apis/LeadsPublicApi.ts +3 -0
- package/src/apis/OrdersPublicApi.ts +3 -0
- package/src/models/BadRequestException.ts +88 -0
- package/src/models/BatchReadBuyerLeadMessageInput.ts +61 -0
- package/src/models/BatchReadSellerLeadMessageInput.ts +61 -0
- package/src/models/BuyerLeadListItemDomainDto.ts +79 -0
- package/src/models/BuyerLeadListItemDto.ts +144 -0
- package/src/models/CreateBuyerLeadMessageInput.ts +61 -0
- package/src/models/DomainTransferDetailsDto.ts +11 -11
- package/src/models/DomainTransferDto.ts +10 -10
- package/src/models/GetBuyerLeads200Response.ts +98 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +15 -21
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +9 -9
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +19 -19
- package/src/models/LeadMessageDto.ts +37 -19
- package/src/models/OrderListItemDto.ts +11 -11
- package/src/models/PublicLeadDto.ts +10 -10
- package/src/models/SellerDomainTransferDto.ts +10 -10
- package/src/models/index.ts +7 -10
- package/dist/models/DomainTransferDetailsDtoAuthCode.d.ts +0 -37
- package/dist/models/DomainTransferDetailsDtoAuthCode.js +0 -50
- package/dist/models/DomainTransferDtoAgent.d.ts +0 -37
- package/dist/models/DomainTransferDtoAgent.js +0 -50
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.d.ts +0 -37
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.js +0 -50
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.d.ts +0 -37
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.js +0 -50
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +0 -32
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +0 -47
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +0 -37
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +0 -50
- package/dist/models/LeadMessageDtoData.d.ts +0 -32
- package/dist/models/LeadMessageDtoData.js +0 -47
- package/dist/models/OrderListItemDtoBasePrice.d.ts +0 -37
- package/dist/models/OrderListItemDtoBasePrice.js +0 -50
- package/dist/models/PublicLeadDtoLastOffer.d.ts +0 -37
- package/dist/models/PublicLeadDtoLastOffer.js +0 -50
- package/dist/models/SellerDomainTransferDtoAuthCode.d.ts +0 -37
- package/dist/models/SellerDomainTransferDtoAuthCode.js +0 -50
- package/src/models/DomainTransferDetailsDtoAuthCode.ts +0 -70
- package/src/models/DomainTransferDtoAgent.ts +0 -70
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.ts +0 -70
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.ts +0 -70
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +0 -68
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +0 -70
- package/src/models/LeadMessageDtoData.ts +0 -68
- package/src/models/OrderListItemDtoBasePrice.ts +0 -70
- package/src/models/PublicLeadDtoLastOffer.ts +0 -70
- package/src/models/SellerDomainTransferDtoAuthCode.ts +0 -70
|
@@ -0,0 +1,61 @@
|
|
|
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 BatchReadSellerLeadMessageInput
|
|
20
|
+
*/
|
|
21
|
+
export interface BatchReadSellerLeadMessageInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof BatchReadSellerLeadMessageInput
|
|
26
|
+
*/
|
|
27
|
+
leadMessageIds: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the BatchReadSellerLeadMessageInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfBatchReadSellerLeadMessageInput(value: object): value is BatchReadSellerLeadMessageInput {
|
|
34
|
+
if (!('leadMessageIds' in value) || value['leadMessageIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function BatchReadSellerLeadMessageInputFromJSON(json: any): BatchReadSellerLeadMessageInput {
|
|
39
|
+
return BatchReadSellerLeadMessageInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function BatchReadSellerLeadMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchReadSellerLeadMessageInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'leadMessageIds': json['leadMessageIds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BatchReadSellerLeadMessageInputToJSON(value?: BatchReadSellerLeadMessageInput | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'leadMessageIds': value['leadMessageIds'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
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 BuyerLeadListItemDomainDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerLeadListItemDomainDto {
|
|
22
|
+
/**
|
|
23
|
+
* The buyer domain ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerLeadListItemDomainDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The lead domain name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerLeadListItemDomainDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* The lead domain TLD
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerLeadListItemDomainDto
|
|
38
|
+
*/
|
|
39
|
+
tld: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the BuyerLeadListItemDomainDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfBuyerLeadListItemDomainDto(value: object): value is BuyerLeadListItemDomainDto {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BuyerLeadListItemDomainDtoFromJSON(json: any): BuyerLeadListItemDomainDto {
|
|
53
|
+
return BuyerLeadListItemDomainDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BuyerLeadListItemDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerLeadListItemDomainDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'tld': json['tld'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function BuyerLeadListItemDomainDtoToJSON(value?: BuyerLeadListItemDomainDto | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'name': value['name'],
|
|
76
|
+
'tld': value['tld'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
import type { BuyerLeadListItemDomainDto } from './BuyerLeadListItemDomainDto';
|
|
17
|
+
import {
|
|
18
|
+
BuyerLeadListItemDomainDtoFromJSON,
|
|
19
|
+
BuyerLeadListItemDomainDtoFromJSONTyped,
|
|
20
|
+
BuyerLeadListItemDomainDtoToJSON,
|
|
21
|
+
} from './BuyerLeadListItemDomainDto';
|
|
22
|
+
import type { MoneyDto } from './MoneyDto';
|
|
23
|
+
import {
|
|
24
|
+
MoneyDtoFromJSON,
|
|
25
|
+
MoneyDtoFromJSONTyped,
|
|
26
|
+
MoneyDtoToJSON,
|
|
27
|
+
} from './MoneyDto';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface BuyerLeadListItemDto
|
|
33
|
+
*/
|
|
34
|
+
export interface BuyerLeadListItemDto {
|
|
35
|
+
/**
|
|
36
|
+
* The lead ID
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof BuyerLeadListItemDto
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* The current lead status
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof BuyerLeadListItemDto
|
|
45
|
+
*/
|
|
46
|
+
status: BuyerLeadListItemDtoStatusEnum;
|
|
47
|
+
/**
|
|
48
|
+
* The last offer amount
|
|
49
|
+
* @type {MoneyDto}
|
|
50
|
+
* @memberof BuyerLeadListItemDto
|
|
51
|
+
*/
|
|
52
|
+
lastOffer: MoneyDto | null;
|
|
53
|
+
/**
|
|
54
|
+
* The last offer offerer
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof BuyerLeadListItemDto
|
|
57
|
+
*/
|
|
58
|
+
lastOfferBy: BuyerLeadListItemDtoLastOfferByEnum | null;
|
|
59
|
+
/**
|
|
60
|
+
* Created at date
|
|
61
|
+
* @type {Date}
|
|
62
|
+
* @memberof BuyerLeadListItemDto
|
|
63
|
+
*/
|
|
64
|
+
createdAt: Date;
|
|
65
|
+
/**
|
|
66
|
+
* The lead domain information
|
|
67
|
+
* @type {BuyerLeadListItemDomainDto}
|
|
68
|
+
* @memberof BuyerLeadListItemDto
|
|
69
|
+
*/
|
|
70
|
+
domain: BuyerLeadListItemDomainDto;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export const BuyerLeadListItemDtoStatusEnum = {
|
|
78
|
+
UNVERIFIED: 'unverified',
|
|
79
|
+
ACTIVE: 'active',
|
|
80
|
+
ACCEPTED: 'accepted',
|
|
81
|
+
FINISHED: 'finished',
|
|
82
|
+
DELETED: 'deleted',
|
|
83
|
+
ARCHIVED: 'archived'
|
|
84
|
+
} as const;
|
|
85
|
+
export type BuyerLeadListItemDtoStatusEnum = typeof BuyerLeadListItemDtoStatusEnum[keyof typeof BuyerLeadListItemDtoStatusEnum];
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export const BuyerLeadListItemDtoLastOfferByEnum = {
|
|
91
|
+
BUYER: 'buyer',
|
|
92
|
+
SELLER: 'seller',
|
|
93
|
+
ADMIN: 'admin'
|
|
94
|
+
} as const;
|
|
95
|
+
export type BuyerLeadListItemDtoLastOfferByEnum = typeof BuyerLeadListItemDtoLastOfferByEnum[keyof typeof BuyerLeadListItemDtoLastOfferByEnum];
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the BuyerLeadListItemDto interface.
|
|
100
|
+
*/
|
|
101
|
+
export function instanceOfBuyerLeadListItemDto(value: object): value is BuyerLeadListItemDto {
|
|
102
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
104
|
+
if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
|
|
105
|
+
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
106
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
107
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function BuyerLeadListItemDtoFromJSON(json: any): BuyerLeadListItemDto {
|
|
112
|
+
return BuyerLeadListItemDtoFromJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function BuyerLeadListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerLeadListItemDto {
|
|
116
|
+
if (json == null) {
|
|
117
|
+
return json;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'id': json['id'],
|
|
122
|
+
'status': json['status'],
|
|
123
|
+
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
124
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
125
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
126
|
+
'domain': BuyerLeadListItemDomainDtoFromJSON(json['domain']),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function BuyerLeadListItemDtoToJSON(value?: BuyerLeadListItemDto | null): any {
|
|
131
|
+
if (value == null) {
|
|
132
|
+
return value;
|
|
133
|
+
}
|
|
134
|
+
return {
|
|
135
|
+
|
|
136
|
+
'id': value['id'],
|
|
137
|
+
'status': value['status'],
|
|
138
|
+
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
139
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
140
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
141
|
+
'domain': BuyerLeadListItemDomainDtoToJSON(value['domain']),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
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 CreateBuyerLeadMessageInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateBuyerLeadMessageInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateBuyerLeadMessageInput
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateBuyerLeadMessageInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCreateBuyerLeadMessageInput(value: object): value is CreateBuyerLeadMessageInput {
|
|
34
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function CreateBuyerLeadMessageInputFromJSON(json: any): CreateBuyerLeadMessageInput {
|
|
39
|
+
return CreateBuyerLeadMessageInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CreateBuyerLeadMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBuyerLeadMessageInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'message': json['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CreateBuyerLeadMessageInputToJSON(value?: CreateBuyerLeadMessageInput | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'message': value['message'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -13,12 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { DomainTransferDetailsDtoAuthCode } from './DomainTransferDetailsDtoAuthCode';
|
|
17
|
-
import {
|
|
18
|
-
DomainTransferDetailsDtoAuthCodeFromJSON,
|
|
19
|
-
DomainTransferDetailsDtoAuthCodeFromJSONTyped,
|
|
20
|
-
DomainTransferDetailsDtoAuthCodeToJSON,
|
|
21
|
-
} from './DomainTransferDetailsDtoAuthCode';
|
|
22
16
|
import type { DomainTransferDetailsOrderDto } from './DomainTransferDetailsOrderDto';
|
|
23
17
|
import {
|
|
24
18
|
DomainTransferDetailsOrderDtoFromJSON,
|
|
@@ -37,6 +31,12 @@ import {
|
|
|
37
31
|
DomainTransferDetailWorkflowStepDtoFromJSONTyped,
|
|
38
32
|
DomainTransferDetailWorkflowStepDtoToJSON,
|
|
39
33
|
} from './DomainTransferDetailWorkflowStepDto';
|
|
34
|
+
import type { DomainTransferDetailsAuthCodeDto } from './DomainTransferDetailsAuthCodeDto';
|
|
35
|
+
import {
|
|
36
|
+
DomainTransferDetailsAuthCodeDtoFromJSON,
|
|
37
|
+
DomainTransferDetailsAuthCodeDtoFromJSONTyped,
|
|
38
|
+
DomainTransferDetailsAuthCodeDtoToJSON,
|
|
39
|
+
} from './DomainTransferDetailsAuthCodeDto';
|
|
40
40
|
import type { DomainTransferDetailsDomainDto } from './DomainTransferDetailsDomainDto';
|
|
41
41
|
import {
|
|
42
42
|
DomainTransferDetailsDomainDtoFromJSON,
|
|
@@ -81,11 +81,11 @@ export interface DomainTransferDetailsDto {
|
|
|
81
81
|
*/
|
|
82
82
|
status: DomainTransferDetailsDtoStatusEnum;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {
|
|
84
|
+
* The domain transfer auth code
|
|
85
|
+
* @type {DomainTransferDetailsAuthCodeDto}
|
|
86
86
|
* @memberof DomainTransferDetailsDto
|
|
87
87
|
*/
|
|
88
|
-
authCode:
|
|
88
|
+
authCode: DomainTransferDetailsAuthCodeDto | null;
|
|
89
89
|
/**
|
|
90
90
|
* The domain transfer validations
|
|
91
91
|
* @type {Array<DomainTransferDetailsValidationDto>}
|
|
@@ -151,7 +151,7 @@ export function DomainTransferDetailsDtoFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
151
151
|
'domain': DomainTransferDetailsDomainDtoFromJSON(json['domain']),
|
|
152
152
|
'order': DomainTransferDetailsOrderDtoFromJSON(json['order']),
|
|
153
153
|
'status': json['status'],
|
|
154
|
-
'authCode':
|
|
154
|
+
'authCode': DomainTransferDetailsAuthCodeDtoFromJSON(json['authCode']),
|
|
155
155
|
'validations': ((json['validations'] as Array<any>).map(DomainTransferDetailsValidationDtoFromJSON)),
|
|
156
156
|
'createdAt': (new Date(json['createdAt'])),
|
|
157
157
|
'workflow': ((json['workflow'] as Array<any>).map(DomainTransferDetailWorkflowStepDtoFromJSON)),
|
|
@@ -169,7 +169,7 @@ export function DomainTransferDetailsDtoToJSON(value?: DomainTransferDetailsDto
|
|
|
169
169
|
'domain': DomainTransferDetailsDomainDtoToJSON(value['domain']),
|
|
170
170
|
'order': DomainTransferDetailsOrderDtoToJSON(value['order']),
|
|
171
171
|
'status': value['status'],
|
|
172
|
-
'authCode':
|
|
172
|
+
'authCode': DomainTransferDetailsAuthCodeDtoToJSON(value['authCode']),
|
|
173
173
|
'validations': ((value['validations'] as Array<any>).map(DomainTransferDetailsValidationDtoToJSON)),
|
|
174
174
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
175
175
|
'workflow': ((value['workflow'] as Array<any>).map(DomainTransferDetailWorkflowStepDtoToJSON)),
|
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
DomainTransferOrderDtoFromJSONTyped,
|
|
26
26
|
DomainTransferOrderDtoToJSON,
|
|
27
27
|
} from './DomainTransferOrderDto';
|
|
28
|
-
import type {
|
|
28
|
+
import type { DomainTransferAgentDto } from './DomainTransferAgentDto';
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} from './
|
|
30
|
+
DomainTransferAgentDtoFromJSON,
|
|
31
|
+
DomainTransferAgentDtoFromJSONTyped,
|
|
32
|
+
DomainTransferAgentDtoToJSON,
|
|
33
|
+
} from './DomainTransferAgentDto';
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
@@ -63,11 +63,11 @@ export interface DomainTransferDto {
|
|
|
63
63
|
*/
|
|
64
64
|
order: DomainTransferOrderDto;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {
|
|
66
|
+
* The domain transfer order
|
|
67
|
+
* @type {DomainTransferAgentDto}
|
|
68
68
|
* @memberof DomainTransferDto
|
|
69
69
|
*/
|
|
70
|
-
agent:
|
|
70
|
+
agent: DomainTransferAgentDto | null;
|
|
71
71
|
/**
|
|
72
72
|
* The domain transfer creation date
|
|
73
73
|
* @type {Date}
|
|
@@ -117,7 +117,7 @@ export function DomainTransferDtoFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
117
117
|
'domain': DomainTransferDomainDtoFromJSON(json['domain']),
|
|
118
118
|
'status': json['status'],
|
|
119
119
|
'order': DomainTransferOrderDtoFromJSON(json['order']),
|
|
120
|
-
'agent':
|
|
120
|
+
'agent': DomainTransferAgentDtoFromJSON(json['agent']),
|
|
121
121
|
'createdAt': (new Date(json['createdAt'])),
|
|
122
122
|
};
|
|
123
123
|
}
|
|
@@ -132,7 +132,7 @@ export function DomainTransferDtoToJSON(value?: DomainTransferDto | null): any {
|
|
|
132
132
|
'domain': DomainTransferDomainDtoToJSON(value['domain']),
|
|
133
133
|
'status': value['status'],
|
|
134
134
|
'order': DomainTransferOrderDtoToJSON(value['order']),
|
|
135
|
-
'agent':
|
|
135
|
+
'agent': DomainTransferAgentDtoToJSON(value['agent']),
|
|
136
136
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
137
137
|
};
|
|
138
138
|
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
} from './PaginateResponseLinks';
|
|
22
|
+
import type { BuyerLeadListItemDto } from './BuyerLeadListItemDto';
|
|
23
|
+
import {
|
|
24
|
+
BuyerLeadListItemDtoFromJSON,
|
|
25
|
+
BuyerLeadListItemDtoFromJSONTyped,
|
|
26
|
+
BuyerLeadListItemDtoToJSON,
|
|
27
|
+
} from './BuyerLeadListItemDto';
|
|
28
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
|
+
import {
|
|
30
|
+
PaginateResponseMetaFromJSON,
|
|
31
|
+
PaginateResponseMetaFromJSONTyped,
|
|
32
|
+
PaginateResponseMetaToJSON,
|
|
33
|
+
} from './PaginateResponseMeta';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface GetBuyerLeads200Response
|
|
39
|
+
*/
|
|
40
|
+
export interface GetBuyerLeads200Response {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<BuyerLeadListItemDto>}
|
|
44
|
+
* @memberof GetBuyerLeads200Response
|
|
45
|
+
*/
|
|
46
|
+
data: Array<BuyerLeadListItemDto>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {PaginateResponseMeta}
|
|
50
|
+
* @memberof GetBuyerLeads200Response
|
|
51
|
+
*/
|
|
52
|
+
meta: PaginateResponseMeta;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {PaginateResponseLinks}
|
|
56
|
+
* @memberof GetBuyerLeads200Response
|
|
57
|
+
*/
|
|
58
|
+
links: PaginateResponseLinks;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the GetBuyerLeads200Response interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfGetBuyerLeads200Response(value: object): value is GetBuyerLeads200Response {
|
|
65
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
66
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
67
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function GetBuyerLeads200ResponseFromJSON(json: any): GetBuyerLeads200Response {
|
|
72
|
+
return GetBuyerLeads200ResponseFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function GetBuyerLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetBuyerLeads200Response {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(BuyerLeadListItemDtoFromJSON)),
|
|
82
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function GetBuyerLeads200ResponseToJSON(value?: GetBuyerLeads200Response | null): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(BuyerLeadListItemDtoToJSON)),
|
|
94
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -13,12 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice } from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice';
|
|
17
|
-
import {
|
|
18
|
-
IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceFromJSON,
|
|
19
|
-
IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceFromJSONTyped,
|
|
20
|
-
IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceToJSON,
|
|
21
|
-
} from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice';
|
|
22
16
|
import type { DomainSellerDto } from './DomainSellerDto';
|
|
23
17
|
import {
|
|
24
18
|
DomainSellerDtoFromJSON,
|
|
@@ -31,12 +25,12 @@ import {
|
|
|
31
25
|
DomainStatsFromJSONTyped,
|
|
32
26
|
DomainStatsToJSON,
|
|
33
27
|
} from './DomainStats';
|
|
34
|
-
import type {
|
|
28
|
+
import type { MoneyDto } from './MoneyDto';
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from './
|
|
30
|
+
MoneyDtoFromJSON,
|
|
31
|
+
MoneyDtoFromJSONTyped,
|
|
32
|
+
MoneyDtoToJSON,
|
|
33
|
+
} from './MoneyDto';
|
|
40
34
|
|
|
41
35
|
/**
|
|
42
36
|
*
|
|
@@ -63,17 +57,17 @@ export interface IntersectionDomainSalesInformationDtoWithDomainStatsDto {
|
|
|
63
57
|
*/
|
|
64
58
|
domainDisplayName: string;
|
|
65
59
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {
|
|
60
|
+
* Buy now price or null if buy now is not enabled
|
|
61
|
+
* @type {MoneyDto}
|
|
68
62
|
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
|
|
69
63
|
*/
|
|
70
|
-
buyNowPrice:
|
|
64
|
+
buyNowPrice: MoneyDto | null;
|
|
71
65
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {
|
|
66
|
+
* min offer price or null if offers are not enabled
|
|
67
|
+
* @type {MoneyDto}
|
|
74
68
|
* @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
|
|
75
69
|
*/
|
|
76
|
-
minOfferPrice:
|
|
70
|
+
minOfferPrice: MoneyDto | null;
|
|
77
71
|
/**
|
|
78
72
|
* The domain seller information
|
|
79
73
|
* @type {DomainSellerDto}
|
|
@@ -108,8 +102,8 @@ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONT
|
|
|
108
102
|
'stats': DomainStatsFromJSON(json['stats']),
|
|
109
103
|
'domain': json['domain'],
|
|
110
104
|
'domainDisplayName': json['domainDisplayName'],
|
|
111
|
-
'buyNowPrice':
|
|
112
|
-
'minOfferPrice':
|
|
105
|
+
'buyNowPrice': MoneyDtoFromJSON(json['buyNowPrice']),
|
|
106
|
+
'minOfferPrice': MoneyDtoFromJSON(json['minOfferPrice']),
|
|
113
107
|
'seller': DomainSellerDtoFromJSON(json['seller']),
|
|
114
108
|
};
|
|
115
109
|
}
|
|
@@ -123,8 +117,8 @@ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON(va
|
|
|
123
117
|
'stats': DomainStatsToJSON(value['stats']),
|
|
124
118
|
'domain': value['domain'],
|
|
125
119
|
'domainDisplayName': value['domainDisplayName'],
|
|
126
|
-
'buyNowPrice':
|
|
127
|
-
'minOfferPrice':
|
|
120
|
+
'buyNowPrice': MoneyDtoToJSON(value['buyNowPrice']),
|
|
121
|
+
'minOfferPrice': MoneyDtoToJSON(value['minOfferPrice']),
|
|
128
122
|
'seller': DomainSellerDtoToJSON(value['seller']),
|
|
129
123
|
};
|
|
130
124
|
}
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
IntersectionDomainDtoWithAccountDtoFromJSONTyped,
|
|
20
20
|
IntersectionDomainDtoWithAccountDtoToJSON,
|
|
21
21
|
} from './IntersectionDomainDtoWithAccountDto';
|
|
22
|
-
import type {
|
|
22
|
+
import type { MoneyDto } from './MoneyDto';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from './
|
|
24
|
+
MoneyDtoFromJSON,
|
|
25
|
+
MoneyDtoFromJSONTyped,
|
|
26
|
+
MoneyDtoToJSON,
|
|
27
|
+
} from './MoneyDto';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
@@ -46,10 +46,10 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
|
46
46
|
status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {
|
|
49
|
+
* @type {MoneyDto}
|
|
50
50
|
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
51
51
|
*/
|
|
52
|
-
lastOffer:
|
|
52
|
+
lastOffer: MoneyDto | null;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {string}
|
|
@@ -120,7 +120,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ig
|
|
|
120
120
|
|
|
121
121
|
'id': json['id'],
|
|
122
122
|
'status': json['status'],
|
|
123
|
-
'lastOffer':
|
|
123
|
+
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
124
124
|
'lastOfferBy': json['lastOfferBy'],
|
|
125
125
|
'domain': IntersectionDomainDtoWithAccountDtoFromJSON(json['domain']),
|
|
126
126
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -135,7 +135,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value?: Intersection
|
|
|
135
135
|
|
|
136
136
|
'id': value['id'],
|
|
137
137
|
'status': value['status'],
|
|
138
|
-
'lastOffer':
|
|
138
|
+
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
139
139
|
'lastOfferBy': value['lastOfferBy'],
|
|
140
140
|
'domain': IntersectionDomainDtoWithAccountDtoToJSON(value['domain']),
|
|
141
141
|
'createdAt': ((value['createdAt']).toISOString()),
|