@randock/nameshift-api-client 0.0.12 → 0.0.14
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 +11 -1
- package/dist/apis/LeadsApi.d.ts +38 -3
- package/dist/apis/LeadsApi.js +170 -1
- package/dist/models/CreateLeadMessageInput.d.ts +31 -0
- package/dist/models/CreateLeadMessageInput.js +50 -0
- package/dist/models/CreateLeadMessageInputData.d.ts +32 -0
- package/dist/models/CreateLeadMessageInputData.js +51 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +75 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +73 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +81 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +83 -0
- 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/LeadMessageData.d.ts +32 -0
- package/dist/models/LeadMessageData.js +51 -0
- package/dist/models/LeadMessageDto.d.ts +85 -0
- package/dist/models/LeadMessageDto.js +84 -0
- package/dist/models/LeadMessageDtoData.d.ts +32 -0
- package/dist/models/LeadMessageDtoData.js +51 -0
- package/dist/models/ListLeadMessagesDto.d.ts +32 -0
- package/dist/models/ListLeadMessagesDto.js +51 -0
- package/dist/models/PutLeadInput.d.ts +32 -0
- package/dist/models/PutLeadInput.js +51 -0
- package/dist/models/index.d.ts +11 -1
- package/dist/models/index.js +11 -1
- package/package.json +2 -1
- package/src/apis/LeadsApi.ts +160 -6
- package/src/models/CreateLeadMessageInput.ts +66 -0
- package/src/models/CreateLeadMessageInputData.ts +73 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +142 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +146 -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/LeadMessageData.ts +73 -0
- package/src/models/LeadMessageDto.ts +148 -0
- package/src/models/LeadMessageDtoData.ts +73 -0
- package/src/models/ListLeadMessagesDto.ts +73 -0
- package/src/models/PutLeadInput.ts +73 -0
- package/src/models/index.ts +11 -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
|
}
|
|
@@ -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 LeadMessageData
|
|
27
|
+
*/
|
|
28
|
+
export interface LeadMessageData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MoneyDto}
|
|
32
|
+
* @memberof LeadMessageData
|
|
33
|
+
*/
|
|
34
|
+
price: MoneyDto;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the LeadMessageData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfLeadMessageData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "price" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function LeadMessageDataFromJSON(json: any): LeadMessageData {
|
|
48
|
+
return LeadMessageDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function LeadMessageDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'price': MoneyDtoFromJSON(json['price']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function LeadMessageDataToJSON(value?: LeadMessageData | 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,148 @@
|
|
|
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 { LeadMessageDtoData } from './LeadMessageDtoData';
|
|
17
|
+
import {
|
|
18
|
+
LeadMessageDtoDataFromJSON,
|
|
19
|
+
LeadMessageDtoDataFromJSONTyped,
|
|
20
|
+
LeadMessageDtoDataToJSON,
|
|
21
|
+
} from './LeadMessageDtoData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface LeadMessageDto
|
|
27
|
+
*/
|
|
28
|
+
export interface LeadMessageDto {
|
|
29
|
+
/**
|
|
30
|
+
* The current id
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof LeadMessageDto
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The message type
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof LeadMessageDto
|
|
39
|
+
*/
|
|
40
|
+
type: LeadMessageDtoTypeEnum;
|
|
41
|
+
/**
|
|
42
|
+
* The message origin
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof LeadMessageDto
|
|
45
|
+
*/
|
|
46
|
+
origin: LeadMessageDtoOriginEnum;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {LeadMessageDtoData}
|
|
50
|
+
* @memberof LeadMessageDto
|
|
51
|
+
*/
|
|
52
|
+
data: LeadMessageDtoData | null;
|
|
53
|
+
/**
|
|
54
|
+
* Created at date
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @memberof LeadMessageDto
|
|
57
|
+
*/
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
/**
|
|
60
|
+
* Initials of the buyer/seller *
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof LeadMessageDto
|
|
63
|
+
*/
|
|
64
|
+
initials: string;
|
|
65
|
+
/**
|
|
66
|
+
* Optional message *
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof LeadMessageDto
|
|
69
|
+
*/
|
|
70
|
+
message: string | null;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export const LeadMessageDtoTypeEnum = {
|
|
78
|
+
OFFER: 'offer',
|
|
79
|
+
MESSAGE: 'message'
|
|
80
|
+
} as const;
|
|
81
|
+
export type LeadMessageDtoTypeEnum = typeof LeadMessageDtoTypeEnum[keyof typeof LeadMessageDtoTypeEnum];
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @export
|
|
85
|
+
*/
|
|
86
|
+
export const LeadMessageDtoOriginEnum = {
|
|
87
|
+
BUYER: 'buyer',
|
|
88
|
+
SELLER: 'seller',
|
|
89
|
+
ADMIN: 'admin'
|
|
90
|
+
} as const;
|
|
91
|
+
export type LeadMessageDtoOriginEnum = typeof LeadMessageDtoOriginEnum[keyof typeof LeadMessageDtoOriginEnum];
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the LeadMessageDto interface.
|
|
96
|
+
*/
|
|
97
|
+
export function instanceOfLeadMessageDto(value: object): boolean {
|
|
98
|
+
let isInstance = true;
|
|
99
|
+
isInstance = isInstance && "id" in value;
|
|
100
|
+
isInstance = isInstance && "type" in value;
|
|
101
|
+
isInstance = isInstance && "origin" in value;
|
|
102
|
+
isInstance = isInstance && "data" in value;
|
|
103
|
+
isInstance = isInstance && "createdAt" in value;
|
|
104
|
+
isInstance = isInstance && "initials" in value;
|
|
105
|
+
isInstance = isInstance && "message" in value;
|
|
106
|
+
|
|
107
|
+
return isInstance;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function LeadMessageDtoFromJSON(json: any): LeadMessageDto {
|
|
111
|
+
return LeadMessageDtoFromJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function LeadMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDto {
|
|
115
|
+
if ((json === undefined) || (json === null)) {
|
|
116
|
+
return json;
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'id': json['id'],
|
|
121
|
+
'type': json['type'],
|
|
122
|
+
'origin': json['origin'],
|
|
123
|
+
'data': LeadMessageDtoDataFromJSON(json['data']),
|
|
124
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
125
|
+
'initials': json['initials'],
|
|
126
|
+
'message': json['message'],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function LeadMessageDtoToJSON(value?: LeadMessageDto | null): any {
|
|
131
|
+
if (value === undefined) {
|
|
132
|
+
return undefined;
|
|
133
|
+
}
|
|
134
|
+
if (value === null) {
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
return {
|
|
138
|
+
|
|
139
|
+
'id': value.id,
|
|
140
|
+
'type': value.type,
|
|
141
|
+
'origin': value.origin,
|
|
142
|
+
'data': LeadMessageDtoDataToJSON(value.data),
|
|
143
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
144
|
+
'initials': value.initials,
|
|
145
|
+
'message': value.message,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
@@ -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
|
+
* Optional data *
|
|
25
|
+
* @export
|
|
26
|
+
* @interface LeadMessageDtoData
|
|
27
|
+
*/
|
|
28
|
+
export interface LeadMessageDtoData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MoneyDto}
|
|
32
|
+
* @memberof LeadMessageDtoData
|
|
33
|
+
*/
|
|
34
|
+
price: MoneyDto;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the LeadMessageDtoData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfLeadMessageDtoData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "price" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function LeadMessageDtoDataFromJSON(json: any): LeadMessageDtoData {
|
|
48
|
+
return LeadMessageDtoDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function LeadMessageDtoDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDtoData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'price': MoneyDtoFromJSON(json['price']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function LeadMessageDtoDataToJSON(value?: LeadMessageDtoData | 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
|
+
|