@randock/nameshift-api-client 0.0.13 → 0.0.15
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/dist/apis/LeadsApi.d.ts +13 -1
- package/dist/apis/LeadsApi.js +58 -0
- package/dist/apis/LeadsPublicApi.d.ts +5 -3
- package/dist/apis/LeadsPublicApi.js +6 -4
- package/dist/models/CreateLeadMessageInput.d.ts +1 -22
- package/dist/models/CreateLeadMessageInput.js +1 -15
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +22 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +16 -1
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +37 -2
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +23 -1
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +32 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +51 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +37 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +53 -0
- package/dist/models/LeadDto.d.ts +22 -0
- package/dist/models/LeadDto.js +16 -1
- package/dist/models/LeadMessageDto.d.ts +6 -0
- package/dist/models/LeadMessageDto.js +3 -0
- package/dist/models/PutLeadInput.d.ts +32 -0
- package/dist/models/PutLeadInput.js +51 -0
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/package.json +2 -1
- package/src/apis/LeadsApi.ts +53 -0
- package/src/apis/LeadsPublicApi.ts +10 -5
- package/src/models/CreateLeadMessageInput.ts +1 -37
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +34 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +61 -2
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +73 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +75 -0
- package/src/models/LeadDto.ts +35 -0
- package/src/models/LeadMessageDto.ts +9 -0
- package/src/models/PutLeadInput.ts +73 -0
- package/src/models/index.ts +3 -1
|
@@ -13,6 +13,19 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { IntersectionLeadDtoWithListFieldsDtoLastMessageData } from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
|
|
17
|
+
import {
|
|
18
|
+
IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON,
|
|
19
|
+
IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped,
|
|
20
|
+
IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON,
|
|
21
|
+
} from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
|
|
22
|
+
import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
23
|
+
import {
|
|
24
|
+
IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON,
|
|
25
|
+
IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped,
|
|
26
|
+
IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON,
|
|
27
|
+
} from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
28
|
+
|
|
16
29
|
/**
|
|
17
30
|
*
|
|
18
31
|
* @export
|
|
@@ -31,6 +44,18 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
31
44
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
32
45
|
*/
|
|
33
46
|
status: IntersectionLeadDtoWithListFieldsDtoStatusEnum;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
|
|
50
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
51
|
+
*/
|
|
52
|
+
lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
57
|
+
*/
|
|
58
|
+
lastOfferBy: IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum | null;
|
|
34
59
|
/**
|
|
35
60
|
*
|
|
36
61
|
* @type {string}
|
|
@@ -43,6 +68,12 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
43
68
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
44
69
|
*/
|
|
45
70
|
lastMessageType: IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {IntersectionLeadDtoWithListFieldsDtoLastMessageData}
|
|
74
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
75
|
+
*/
|
|
76
|
+
lastMessageData: IntersectionLeadDtoWithListFieldsDtoLastMessageData | null;
|
|
46
77
|
/**
|
|
47
78
|
* Created at date
|
|
48
79
|
* @type {Date}
|
|
@@ -62,11 +93,17 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
62
93
|
*/
|
|
63
94
|
buyerInitials: string;
|
|
64
95
|
/**
|
|
65
|
-
*
|
|
96
|
+
* The message in case lastMessageType === LeadMessageTypeEnum.MESSAGE
|
|
66
97
|
* @type {string}
|
|
67
98
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
68
99
|
*/
|
|
69
|
-
lastMessageMessage: string;
|
|
100
|
+
lastMessageMessage: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* The creation date of the message
|
|
103
|
+
* @type {Date}
|
|
104
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
105
|
+
*/
|
|
106
|
+
lastMessageDate: Date;
|
|
70
107
|
}
|
|
71
108
|
|
|
72
109
|
|
|
@@ -80,6 +117,16 @@ export const IntersectionLeadDtoWithListFieldsDtoStatusEnum = {
|
|
|
80
117
|
} as const;
|
|
81
118
|
export type IntersectionLeadDtoWithListFieldsDtoStatusEnum = typeof IntersectionLeadDtoWithListFieldsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoStatusEnum];
|
|
82
119
|
|
|
120
|
+
/**
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export const IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum = {
|
|
124
|
+
BUYER: 'buyer',
|
|
125
|
+
SELLER: 'seller',
|
|
126
|
+
ADMIN: 'admin'
|
|
127
|
+
} as const;
|
|
128
|
+
export type IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum];
|
|
129
|
+
|
|
83
130
|
/**
|
|
84
131
|
* @export
|
|
85
132
|
*/
|
|
@@ -107,12 +154,16 @@ export function instanceOfIntersectionLeadDtoWithListFieldsDto(value: object): b
|
|
|
107
154
|
let isInstance = true;
|
|
108
155
|
isInstance = isInstance && "id" in value;
|
|
109
156
|
isInstance = isInstance && "status" in value;
|
|
157
|
+
isInstance = isInstance && "lastOffer" in value;
|
|
158
|
+
isInstance = isInstance && "lastOfferBy" in value;
|
|
110
159
|
isInstance = isInstance && "lastMessageFrom" in value;
|
|
111
160
|
isInstance = isInstance && "lastMessageType" in value;
|
|
161
|
+
isInstance = isInstance && "lastMessageData" in value;
|
|
112
162
|
isInstance = isInstance && "createdAt" in value;
|
|
113
163
|
isInstance = isInstance && "domainName" in value;
|
|
114
164
|
isInstance = isInstance && "buyerInitials" in value;
|
|
115
165
|
isInstance = isInstance && "lastMessageMessage" in value;
|
|
166
|
+
isInstance = isInstance && "lastMessageDate" in value;
|
|
116
167
|
|
|
117
168
|
return isInstance;
|
|
118
169
|
}
|
|
@@ -129,12 +180,16 @@ export function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json: any, ign
|
|
|
129
180
|
|
|
130
181
|
'id': json['id'],
|
|
131
182
|
'status': json['status'],
|
|
183
|
+
'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json['lastOffer']),
|
|
184
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
132
185
|
'lastMessageFrom': json['lastMessageFrom'],
|
|
133
186
|
'lastMessageType': json['lastMessageType'],
|
|
187
|
+
'lastMessageData': IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON(json['lastMessageData']),
|
|
134
188
|
'createdAt': (new Date(json['createdAt'])),
|
|
135
189
|
'domainName': json['domainName'],
|
|
136
190
|
'buyerInitials': json['buyerInitials'],
|
|
137
191
|
'lastMessageMessage': json['lastMessageMessage'],
|
|
192
|
+
'lastMessageDate': (new Date(json['lastMessageDate'])),
|
|
138
193
|
};
|
|
139
194
|
}
|
|
140
195
|
|
|
@@ -149,12 +204,16 @@ export function IntersectionLeadDtoWithListFieldsDtoToJSON(value?: IntersectionL
|
|
|
149
204
|
|
|
150
205
|
'id': value.id,
|
|
151
206
|
'status': value.status,
|
|
207
|
+
'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value.lastOffer),
|
|
208
|
+
'lastOfferBy': value.lastOfferBy,
|
|
152
209
|
'lastMessageFrom': value.lastMessageFrom,
|
|
153
210
|
'lastMessageType': value.lastMessageType,
|
|
211
|
+
'lastMessageData': IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON(value.lastMessageData),
|
|
154
212
|
'createdAt': (value.createdAt.toISOString()),
|
|
155
213
|
'domainName': value.domainName,
|
|
156
214
|
'buyerInitials': value.buyerInitials,
|
|
157
215
|
'lastMessageMessage': value.lastMessageMessage,
|
|
216
|
+
'lastMessageDate': (value.lastMessageDate.toISOString()),
|
|
158
217
|
};
|
|
159
218
|
}
|
|
160
219
|
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
} from './MoneyDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The data
|
|
25
|
+
* @export
|
|
26
|
+
* @interface IntersectionLeadDtoWithListFieldsDtoLastMessageData
|
|
27
|
+
*/
|
|
28
|
+
export interface IntersectionLeadDtoWithListFieldsDtoLastMessageData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MoneyDto}
|
|
32
|
+
* @memberof IntersectionLeadDtoWithListFieldsDtoLastMessageData
|
|
33
|
+
*/
|
|
34
|
+
price: MoneyDto;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastMessageData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "price" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON(json: any): IntersectionLeadDtoWithListFieldsDtoLastMessageData {
|
|
48
|
+
return IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithListFieldsDtoLastMessageData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'price': MoneyDtoFromJSON(json['price']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON(value?: IntersectionLeadDtoWithListFieldsDtoLastMessageData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'price': MoneyDtoToJSON(value.price),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IntersectionLeadDtoWithListFieldsDtoLastOffer
|
|
20
|
+
*/
|
|
21
|
+
export interface IntersectionLeadDtoWithListFieldsDtoLastOffer {
|
|
22
|
+
/**
|
|
23
|
+
* Monetary amount, represented as an integer without scale/decimals.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IntersectionLeadDtoWithListFieldsDtoLastOffer
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Three letter ISO currency code
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntersectionLeadDtoWithListFieldsDtoLastOffer
|
|
32
|
+
*/
|
|
33
|
+
currencyCode: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastOffer interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "amount" in value;
|
|
42
|
+
isInstance = isInstance && "currencyCode" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json: any): IntersectionLeadDtoWithListFieldsDtoLastOffer {
|
|
48
|
+
return IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithListFieldsDtoLastOffer {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'amount': json['amount'],
|
|
58
|
+
'currencyCode': json['currencyCode'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value?: IntersectionLeadDtoWithListFieldsDtoLastOffer | null): any {
|
|
63
|
+
if (value === undefined) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
if (value === null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'amount': value.amount,
|
|
72
|
+
'currencyCode': value.currencyCode,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/LeadDto.ts
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
17
|
+
import {
|
|
18
|
+
IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON,
|
|
19
|
+
IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped,
|
|
20
|
+
IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON,
|
|
21
|
+
} from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -31,6 +38,18 @@ export interface LeadDto {
|
|
|
31
38
|
* @memberof LeadDto
|
|
32
39
|
*/
|
|
33
40
|
status: LeadDtoStatusEnum;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
|
|
44
|
+
* @memberof LeadDto
|
|
45
|
+
*/
|
|
46
|
+
lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof LeadDto
|
|
51
|
+
*/
|
|
52
|
+
lastOfferBy: LeadDtoLastOfferByEnum | null;
|
|
34
53
|
/**
|
|
35
54
|
* Created at date
|
|
36
55
|
* @type {Date}
|
|
@@ -50,6 +69,16 @@ export const LeadDtoStatusEnum = {
|
|
|
50
69
|
} as const;
|
|
51
70
|
export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
|
|
52
71
|
|
|
72
|
+
/**
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export const LeadDtoLastOfferByEnum = {
|
|
76
|
+
BUYER: 'buyer',
|
|
77
|
+
SELLER: 'seller',
|
|
78
|
+
ADMIN: 'admin'
|
|
79
|
+
} as const;
|
|
80
|
+
export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
|
|
81
|
+
|
|
53
82
|
|
|
54
83
|
/**
|
|
55
84
|
* Check if a given object implements the LeadDto interface.
|
|
@@ -58,6 +87,8 @@ export function instanceOfLeadDto(value: object): boolean {
|
|
|
58
87
|
let isInstance = true;
|
|
59
88
|
isInstance = isInstance && "id" in value;
|
|
60
89
|
isInstance = isInstance && "status" in value;
|
|
90
|
+
isInstance = isInstance && "lastOffer" in value;
|
|
91
|
+
isInstance = isInstance && "lastOfferBy" in value;
|
|
61
92
|
isInstance = isInstance && "createdAt" in value;
|
|
62
93
|
|
|
63
94
|
return isInstance;
|
|
@@ -75,6 +106,8 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
|
|
|
75
106
|
|
|
76
107
|
'id': json['id'],
|
|
77
108
|
'status': json['status'],
|
|
109
|
+
'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json['lastOffer']),
|
|
110
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
78
111
|
'createdAt': (new Date(json['createdAt'])),
|
|
79
112
|
};
|
|
80
113
|
}
|
|
@@ -90,6 +123,8 @@ export function LeadDtoToJSON(value?: LeadDto | null): any {
|
|
|
90
123
|
|
|
91
124
|
'id': value.id,
|
|
92
125
|
'status': value.status,
|
|
126
|
+
'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value.lastOffer),
|
|
127
|
+
'lastOfferBy': value.lastOfferBy,
|
|
93
128
|
'createdAt': (value.createdAt.toISOString()),
|
|
94
129
|
};
|
|
95
130
|
}
|
|
@@ -56,6 +56,12 @@ export interface LeadMessageDto {
|
|
|
56
56
|
* @memberof LeadMessageDto
|
|
57
57
|
*/
|
|
58
58
|
createdAt: Date;
|
|
59
|
+
/**
|
|
60
|
+
* Initials of the buyer/seller *
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof LeadMessageDto
|
|
63
|
+
*/
|
|
64
|
+
initials: string;
|
|
59
65
|
/**
|
|
60
66
|
* Optional message *
|
|
61
67
|
* @type {string}
|
|
@@ -95,6 +101,7 @@ export function instanceOfLeadMessageDto(value: object): boolean {
|
|
|
95
101
|
isInstance = isInstance && "origin" in value;
|
|
96
102
|
isInstance = isInstance && "data" in value;
|
|
97
103
|
isInstance = isInstance && "createdAt" in value;
|
|
104
|
+
isInstance = isInstance && "initials" in value;
|
|
98
105
|
isInstance = isInstance && "message" in value;
|
|
99
106
|
|
|
100
107
|
return isInstance;
|
|
@@ -115,6 +122,7 @@ export function LeadMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
115
122
|
'origin': json['origin'],
|
|
116
123
|
'data': LeadMessageDtoDataFromJSON(json['data']),
|
|
117
124
|
'createdAt': (new Date(json['createdAt'])),
|
|
125
|
+
'initials': json['initials'],
|
|
118
126
|
'message': json['message'],
|
|
119
127
|
};
|
|
120
128
|
}
|
|
@@ -133,6 +141,7 @@ export function LeadMessageDtoToJSON(value?: LeadMessageDto | null): any {
|
|
|
133
141
|
'origin': value.origin,
|
|
134
142
|
'data': LeadMessageDtoDataToJSON(value.data),
|
|
135
143
|
'createdAt': (value.createdAt.toISOString()),
|
|
144
|
+
'initials': value.initials,
|
|
136
145
|
'message': value.message,
|
|
137
146
|
};
|
|
138
147
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { exists, 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 PutLeadInput
|
|
27
|
+
*/
|
|
28
|
+
export interface PutLeadInput {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MoneyDto}
|
|
32
|
+
* @memberof PutLeadInput
|
|
33
|
+
*/
|
|
34
|
+
offer: MoneyDto | null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PutLeadInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfPutLeadInput(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "offer" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PutLeadInputFromJSON(json: any): PutLeadInput {
|
|
48
|
+
return PutLeadInputFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PutLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLeadInput {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'offer': MoneyDtoFromJSON(json['offer']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function PutLeadInputToJSON(value?: PutLeadInput | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'offer': MoneyDtoToJSON(value.offer),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -9,7 +9,6 @@ export * from './BatchUpdate404Response';
|
|
|
9
9
|
export * from './BatchUpdateDomainsInput';
|
|
10
10
|
export * from './CreateLeadInput';
|
|
11
11
|
export * from './CreateLeadMessageInput';
|
|
12
|
-
export * from './CreateLeadMessageInputData';
|
|
13
12
|
export * from './DeleteDomainsInput';
|
|
14
13
|
export * from './DomainDto';
|
|
15
14
|
export * from './ImportDomainsDto';
|
|
@@ -20,6 +19,8 @@ export * from './IntersectionAccountDtoWithSettingsDto';
|
|
|
20
19
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
21
20
|
export * from './IntersectionLeadDtoWithLeadDetailsDto';
|
|
22
21
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
22
|
+
export * from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
|
|
23
|
+
export * from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
23
24
|
export * from './LeadDto';
|
|
24
25
|
export * from './LeadMessageData';
|
|
25
26
|
export * from './LeadMessageDto';
|
|
@@ -37,6 +38,7 @@ export * from './PaginateResponse';
|
|
|
37
38
|
export * from './PaginateResponseLinks';
|
|
38
39
|
export * from './PaginateResponseMeta';
|
|
39
40
|
export * from './PublicDomainControllerGetDomainIdentifier404Response';
|
|
41
|
+
export * from './PutLeadInput';
|
|
40
42
|
export * from './TokenDto';
|
|
41
43
|
export * from './UpdateDomainInput';
|
|
42
44
|
export * from './UpdateSettings401Response';
|