@randock/nameshift-api-client 0.0.89 → 0.0.91
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 +3 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +35 -1
- package/dist/apis/BuyersApi.js +160 -0
- package/dist/models/AccountSettingsInput.d.ts +3 -3
- package/dist/models/AccountSettingsInput.js +3 -3
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +14 -2
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +8 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +23 -2
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +15 -0
- package/dist/models/LeadDomainDto.d.ts +43 -0
- package/dist/models/LeadDomainDto.js +54 -0
- package/dist/models/LeadDto.d.ts +96 -0
- package/dist/models/LeadDto.js +96 -0
- package/dist/models/LeadMessageDto.d.ts +2 -0
- package/dist/models/LeadMessageDto.js +2 -0
- package/dist/models/PutBuyerLeadOfferInput.d.ts +32 -0
- package/dist/models/PutBuyerLeadOfferInput.js +47 -0
- package/dist/models/UpdateDomainInput.d.ts +5 -5
- package/dist/models/UpdateDomainInput.js +5 -5
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +150 -0
- package/src/apis/LeadsApi.ts +3 -0
- package/src/models/AccountSettingsInput.ts +9 -9
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +20 -2
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +37 -2
- package/src/models/LeadDomainDto.ts +79 -0
- package/src/models/LeadDto.ts +162 -0
- package/src/models/LeadMessageDto.ts +2 -0
- package/src/models/PutBuyerLeadOfferInput.ts +68 -0
- package/src/models/UpdateDomainInput.ts +13 -13
- package/src/models/index.ts +3 -1
- package/dist/models/MoneyInput.d.ts +0 -37
- package/dist/models/MoneyInput.js +0 -50
- package/src/models/MoneyInput.ts +0 -70
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
} from './MoneyDto';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
@@ -34,10 +34,10 @@ export interface AccountSettingsInput {
|
|
|
34
34
|
name?: string;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {
|
|
37
|
+
* @type {MoneyDto}
|
|
38
38
|
* @memberof AccountSettingsInput
|
|
39
39
|
*/
|
|
40
|
-
defaultStartingOffer?:
|
|
40
|
+
defaultStartingOffer?: MoneyDto;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {string}
|
|
@@ -64,7 +64,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
64
64
|
return {
|
|
65
65
|
|
|
66
66
|
'name': json['name'] == null ? undefined : json['name'],
|
|
67
|
-
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined :
|
|
67
|
+
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : MoneyDtoFromJSON(json['defaultStartingOffer']),
|
|
68
68
|
'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
|
|
69
69
|
};
|
|
70
70
|
}
|
|
@@ -76,7 +76,7 @@ export function AccountSettingsInputToJSON(value?: AccountSettingsInput | null):
|
|
|
76
76
|
return {
|
|
77
77
|
|
|
78
78
|
'name': value['name'],
|
|
79
|
-
'defaultStartingOffer':
|
|
79
|
+
'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
|
|
80
80
|
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
81
81
|
};
|
|
82
82
|
}
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
*/
|
|
34
34
|
export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
35
35
|
/**
|
|
36
|
-
* The
|
|
36
|
+
* The lead id
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
39
39
|
*/
|
|
@@ -45,7 +45,7 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
|
45
45
|
*/
|
|
46
46
|
status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* The lead last offer amount
|
|
49
49
|
* @type {MoneyDto}
|
|
50
50
|
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
51
51
|
*/
|
|
@@ -68,6 +68,18 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
|
68
68
|
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
69
69
|
*/
|
|
70
70
|
createdAt: Date;
|
|
71
|
+
/**
|
|
72
|
+
* Number of buyer unread messages
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
75
|
+
*/
|
|
76
|
+
unreadBuyerMessagesNumber: number;
|
|
77
|
+
/**
|
|
78
|
+
* Number of seller unread messages
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
81
|
+
*/
|
|
82
|
+
unreadSellerMessagesNumber: number;
|
|
71
83
|
}
|
|
72
84
|
|
|
73
85
|
|
|
@@ -105,6 +117,8 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value: object):
|
|
|
105
117
|
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
106
118
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
107
119
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
120
|
+
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
121
|
+
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
108
122
|
return true;
|
|
109
123
|
}
|
|
110
124
|
|
|
@@ -124,6 +138,8 @@ export function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ig
|
|
|
124
138
|
'lastOfferBy': json['lastOfferBy'],
|
|
125
139
|
'domain': IntersectionDomainDtoWithAccountDtoFromJSON(json['domain']),
|
|
126
140
|
'createdAt': (new Date(json['createdAt'])),
|
|
141
|
+
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
142
|
+
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
127
143
|
};
|
|
128
144
|
}
|
|
129
145
|
|
|
@@ -139,6 +155,8 @@ export function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value?: Intersection
|
|
|
139
155
|
'lastOfferBy': value['lastOfferBy'],
|
|
140
156
|
'domain': IntersectionDomainDtoWithAccountDtoToJSON(value['domain']),
|
|
141
157
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
158
|
+
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
159
|
+
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
142
160
|
};
|
|
143
161
|
}
|
|
144
162
|
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
LeadMessageDataFromJSONTyped,
|
|
20
20
|
LeadMessageDataToJSON,
|
|
21
21
|
} from './LeadMessageData';
|
|
22
|
+
import type { LeadDomainDto } from './LeadDomainDto';
|
|
23
|
+
import {
|
|
24
|
+
LeadDomainDtoFromJSON,
|
|
25
|
+
LeadDomainDtoFromJSONTyped,
|
|
26
|
+
LeadDomainDtoToJSON,
|
|
27
|
+
} from './LeadDomainDto';
|
|
22
28
|
import type { MoneyDto } from './MoneyDto';
|
|
23
29
|
import {
|
|
24
30
|
MoneyDtoFromJSON,
|
|
@@ -33,7 +39,7 @@ import {
|
|
|
33
39
|
*/
|
|
34
40
|
export interface IntersectionLeadDtoWithListFieldsDto {
|
|
35
41
|
/**
|
|
36
|
-
* The
|
|
42
|
+
* The lead id
|
|
37
43
|
* @type {string}
|
|
38
44
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
39
45
|
*/
|
|
@@ -45,7 +51,7 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
45
51
|
*/
|
|
46
52
|
status: IntersectionLeadDtoWithListFieldsDtoStatusEnum;
|
|
47
53
|
/**
|
|
48
|
-
*
|
|
54
|
+
* The lead last offer amount
|
|
49
55
|
* @type {MoneyDto}
|
|
50
56
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
51
57
|
*/
|
|
@@ -80,6 +86,24 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
80
86
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
81
87
|
*/
|
|
82
88
|
createdAt: Date;
|
|
89
|
+
/**
|
|
90
|
+
* Domain information
|
|
91
|
+
* @type {LeadDomainDto}
|
|
92
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
93
|
+
*/
|
|
94
|
+
domain: LeadDomainDto;
|
|
95
|
+
/**
|
|
96
|
+
* Number of buyer unread messages
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
99
|
+
*/
|
|
100
|
+
unreadBuyerMessagesNumber: number;
|
|
101
|
+
/**
|
|
102
|
+
* Number of seller unread messages
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
105
|
+
*/
|
|
106
|
+
unreadSellerMessagesNumber: number;
|
|
83
107
|
/**
|
|
84
108
|
*
|
|
85
109
|
* @type {string}
|
|
@@ -145,6 +169,8 @@ export type IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = typeof Int
|
|
|
145
169
|
*/
|
|
146
170
|
export const IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = {
|
|
147
171
|
OFFER: 'offer',
|
|
172
|
+
OFFER_WITHDRAWN: 'offer_withdrawn',
|
|
173
|
+
OFFER_REJECTED: 'offer_rejected',
|
|
148
174
|
MESSAGE: 'message'
|
|
149
175
|
} as const;
|
|
150
176
|
export type IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum];
|
|
@@ -162,6 +188,9 @@ export function instanceOfIntersectionLeadDtoWithListFieldsDto(value: object): v
|
|
|
162
188
|
if (!('lastMessageType' in value) || value['lastMessageType'] === undefined) return false;
|
|
163
189
|
if (!('lastMessageData' in value) || value['lastMessageData'] === undefined) return false;
|
|
164
190
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
191
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
192
|
+
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
193
|
+
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
165
194
|
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
166
195
|
if (!('buyerInitials' in value) || value['buyerInitials'] === undefined) return false;
|
|
167
196
|
if (!('lastMessageMessage' in value) || value['lastMessageMessage'] === undefined) return false;
|
|
@@ -187,6 +216,9 @@ export function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json: any, ign
|
|
|
187
216
|
'lastMessageType': json['lastMessageType'],
|
|
188
217
|
'lastMessageData': LeadMessageDataFromJSON(json['lastMessageData']),
|
|
189
218
|
'createdAt': (new Date(json['createdAt'])),
|
|
219
|
+
'domain': LeadDomainDtoFromJSON(json['domain']),
|
|
220
|
+
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
221
|
+
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
190
222
|
'domainName': json['domainName'],
|
|
191
223
|
'buyerInitials': json['buyerInitials'],
|
|
192
224
|
'lastMessageMessage': json['lastMessageMessage'],
|
|
@@ -208,6 +240,9 @@ export function IntersectionLeadDtoWithListFieldsDtoToJSON(value?: IntersectionL
|
|
|
208
240
|
'lastMessageType': value['lastMessageType'],
|
|
209
241
|
'lastMessageData': LeadMessageDataToJSON(value['lastMessageData']),
|
|
210
242
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
243
|
+
'domain': LeadDomainDtoToJSON(value['domain']),
|
|
244
|
+
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
245
|
+
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
211
246
|
'domainName': value['domainName'],
|
|
212
247
|
'buyerInitials': value['buyerInitials'],
|
|
213
248
|
'lastMessageMessage': value['lastMessageMessage'],
|
|
@@ -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 LeadDomainDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LeadDomainDto {
|
|
22
|
+
/**
|
|
23
|
+
* The domain id
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LeadDomainDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Domain name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LeadDomainDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Domain currency code
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LeadDomainDto
|
|
38
|
+
*/
|
|
39
|
+
currencyCode: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the LeadDomainDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfLeadDomainDto(value: object): value is LeadDomainDto {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function LeadDomainDtoFromJSON(json: any): LeadDomainDto {
|
|
53
|
+
return LeadDomainDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function LeadDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDomainDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'currencyCode': json['currencyCode'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function LeadDomainDtoToJSON(value?: LeadDomainDto | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'name': value['name'],
|
|
76
|
+
'currencyCode': value['currencyCode'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,162 @@
|
|
|
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 { LeadDomainDto } from './LeadDomainDto';
|
|
17
|
+
import {
|
|
18
|
+
LeadDomainDtoFromJSON,
|
|
19
|
+
LeadDomainDtoFromJSONTyped,
|
|
20
|
+
LeadDomainDtoToJSON,
|
|
21
|
+
} from './LeadDomainDto';
|
|
22
|
+
import type { MoneyDto } from './MoneyDto';
|
|
23
|
+
import {
|
|
24
|
+
MoneyDtoFromJSON,
|
|
25
|
+
MoneyDtoFromJSONTyped,
|
|
26
|
+
MoneyDtoToJSON,
|
|
27
|
+
} from './MoneyDto';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface LeadDto
|
|
33
|
+
*/
|
|
34
|
+
export interface LeadDto {
|
|
35
|
+
/**
|
|
36
|
+
* The lead id
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof LeadDto
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* The current lead status
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof LeadDto
|
|
45
|
+
*/
|
|
46
|
+
status: LeadDtoStatusEnum;
|
|
47
|
+
/**
|
|
48
|
+
* The lead last offer amount
|
|
49
|
+
* @type {MoneyDto}
|
|
50
|
+
* @memberof LeadDto
|
|
51
|
+
*/
|
|
52
|
+
lastOffer: MoneyDto | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof LeadDto
|
|
57
|
+
*/
|
|
58
|
+
lastOfferBy: LeadDtoLastOfferByEnum | null;
|
|
59
|
+
/**
|
|
60
|
+
* Created at date
|
|
61
|
+
* @type {Date}
|
|
62
|
+
* @memberof LeadDto
|
|
63
|
+
*/
|
|
64
|
+
createdAt: Date;
|
|
65
|
+
/**
|
|
66
|
+
* Domain information
|
|
67
|
+
* @type {LeadDomainDto}
|
|
68
|
+
* @memberof LeadDto
|
|
69
|
+
*/
|
|
70
|
+
domain: LeadDomainDto;
|
|
71
|
+
/**
|
|
72
|
+
* Number of buyer unread messages
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof LeadDto
|
|
75
|
+
*/
|
|
76
|
+
unreadBuyerMessagesNumber: number;
|
|
77
|
+
/**
|
|
78
|
+
* Number of seller unread messages
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof LeadDto
|
|
81
|
+
*/
|
|
82
|
+
unreadSellerMessagesNumber: number;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export const LeadDtoStatusEnum = {
|
|
90
|
+
UNVERIFIED: 'unverified',
|
|
91
|
+
ACTIVE: 'active',
|
|
92
|
+
ACCEPTED: 'accepted',
|
|
93
|
+
FINISHED: 'finished',
|
|
94
|
+
DELETED: 'deleted',
|
|
95
|
+
ARCHIVED: 'archived'
|
|
96
|
+
} as const;
|
|
97
|
+
export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export const LeadDtoLastOfferByEnum = {
|
|
103
|
+
BUYER: 'buyer',
|
|
104
|
+
SELLER: 'seller',
|
|
105
|
+
ADMIN: 'admin'
|
|
106
|
+
} as const;
|
|
107
|
+
export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Check if a given object implements the LeadDto interface.
|
|
112
|
+
*/
|
|
113
|
+
export function instanceOfLeadDto(value: object): value is LeadDto {
|
|
114
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
115
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
116
|
+
if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
|
|
117
|
+
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
118
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
119
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
120
|
+
if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
|
|
121
|
+
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function LeadDtoFromJSON(json: any): LeadDto {
|
|
126
|
+
return LeadDtoFromJSONTyped(json, false);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDto {
|
|
130
|
+
if (json == null) {
|
|
131
|
+
return json;
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'id': json['id'],
|
|
136
|
+
'status': json['status'],
|
|
137
|
+
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
138
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
139
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
140
|
+
'domain': LeadDomainDtoFromJSON(json['domain']),
|
|
141
|
+
'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
|
|
142
|
+
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function LeadDtoToJSON(value?: LeadDto | null): any {
|
|
147
|
+
if (value == null) {
|
|
148
|
+
return value;
|
|
149
|
+
}
|
|
150
|
+
return {
|
|
151
|
+
|
|
152
|
+
'id': value['id'],
|
|
153
|
+
'status': value['status'],
|
|
154
|
+
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
155
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
156
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
157
|
+
'domain': LeadDomainDtoToJSON(value['domain']),
|
|
158
|
+
'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
|
|
159
|
+
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
@@ -88,6 +88,8 @@ export interface LeadMessageDto {
|
|
|
88
88
|
*/
|
|
89
89
|
export const LeadMessageDtoTypeEnum = {
|
|
90
90
|
OFFER: 'offer',
|
|
91
|
+
OFFER_WITHDRAWN: 'offer_withdrawn',
|
|
92
|
+
OFFER_REJECTED: 'offer_rejected',
|
|
91
93
|
MESSAGE: 'message'
|
|
92
94
|
} as const;
|
|
93
95
|
export type LeadMessageDtoTypeEnum = typeof LeadMessageDtoTypeEnum[keyof typeof LeadMessageDtoTypeEnum];
|
|
@@ -0,0 +1,68 @@
|
|
|
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 { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
} from './MoneyDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PutBuyerLeadOfferInput
|
|
27
|
+
*/
|
|
28
|
+
export interface PutBuyerLeadOfferInput {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MoneyDto}
|
|
32
|
+
* @memberof PutBuyerLeadOfferInput
|
|
33
|
+
*/
|
|
34
|
+
offer: MoneyDto | null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PutBuyerLeadOfferInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfPutBuyerLeadOfferInput(value: object): value is PutBuyerLeadOfferInput {
|
|
41
|
+
if (!('offer' in value) || value['offer'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PutBuyerLeadOfferInputFromJSON(json: any): PutBuyerLeadOfferInput {
|
|
46
|
+
return PutBuyerLeadOfferInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PutBuyerLeadOfferInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutBuyerLeadOfferInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'offer': MoneyDtoFromJSON(json['offer']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PutBuyerLeadOfferInputToJSON(value?: PutBuyerLeadOfferInput | null): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'offer': MoneyDtoToJSON(value['offer']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
} from './MoneyDto';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
export interface UpdateDomainInput {
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {
|
|
31
|
+
* @type {MoneyDto}
|
|
32
32
|
* @memberof UpdateDomainInput
|
|
33
33
|
*/
|
|
34
|
-
bin?:
|
|
34
|
+
bin?: MoneyDto | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {
|
|
37
|
+
* @type {MoneyDto}
|
|
38
38
|
* @memberof UpdateDomainInput
|
|
39
39
|
*/
|
|
40
|
-
minOffer?:
|
|
40
|
+
minOffer?: MoneyDto | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {string}
|
|
@@ -63,8 +63,8 @@ export function UpdateDomainInputFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
65
|
|
|
66
|
-
'bin': json['bin'] == null ? undefined :
|
|
67
|
-
'minOffer': json['minOffer'] == null ? undefined :
|
|
66
|
+
'bin': json['bin'] == null ? undefined : MoneyDtoFromJSON(json['bin']),
|
|
67
|
+
'minOffer': json['minOffer'] == null ? undefined : MoneyDtoFromJSON(json['minOffer']),
|
|
68
68
|
'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
|
|
69
69
|
};
|
|
70
70
|
}
|
|
@@ -75,8 +75,8 @@ export function UpdateDomainInputToJSON(value?: UpdateDomainInput | null): any {
|
|
|
75
75
|
}
|
|
76
76
|
return {
|
|
77
77
|
|
|
78
|
-
'bin':
|
|
79
|
-
'minOffer':
|
|
78
|
+
'bin': MoneyDtoToJSON(value['bin']),
|
|
79
|
+
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
80
80
|
'currencyCode': value['currencyCode'],
|
|
81
81
|
};
|
|
82
82
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -55,6 +55,8 @@ export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
|
55
55
|
export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
|
|
56
56
|
export * from './IntersectionLeadDtoWithLeadDetailsDto';
|
|
57
57
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
58
|
+
export * from './LeadDomainDto';
|
|
59
|
+
export * from './LeadDto';
|
|
58
60
|
export * from './LeadMessageData';
|
|
59
61
|
export * from './LeadMessageDto';
|
|
60
62
|
export * from './LeadStatusDto';
|
|
@@ -66,7 +68,6 @@ export * from './ListLeadMessagesDto';
|
|
|
66
68
|
export * from './LoginDto';
|
|
67
69
|
export * from './LoginInput';
|
|
68
70
|
export * from './MoneyDto';
|
|
69
|
-
export * from './MoneyInput';
|
|
70
71
|
export * from './NotFoundException';
|
|
71
72
|
export * from './ObjectId';
|
|
72
73
|
export * from './OrderDto';
|
|
@@ -79,6 +80,7 @@ export * from './PaginateResponseLinks';
|
|
|
79
80
|
export * from './PaginateResponseMeta';
|
|
80
81
|
export * from './PublicLeadBuyerDto';
|
|
81
82
|
export * from './PublicLeadDto';
|
|
83
|
+
export * from './PutBuyerLeadOfferInput';
|
|
82
84
|
export * from './PutLeadOfferInput';
|
|
83
85
|
export * from './RegisterAccountInput';
|
|
84
86
|
export * from './RelatedSellerDomain';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Nameshift
|
|
3
|
-
* Nameshift API
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface MoneyInput
|
|
16
|
-
*/
|
|
17
|
-
export interface MoneyInput {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof MoneyInput
|
|
22
|
-
*/
|
|
23
|
-
amount: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof MoneyInput
|
|
28
|
-
*/
|
|
29
|
-
currencyCode: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the MoneyInput interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfMoneyInput(value: object): value is MoneyInput;
|
|
35
|
-
export declare function MoneyInputFromJSON(json: any): MoneyInput;
|
|
36
|
-
export declare function MoneyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyInput;
|
|
37
|
-
export declare function MoneyInputToJSON(value?: MoneyInput | null): any;
|