@randock/nameshift-api-client 0.0.88 → 0.0.90

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.
Files changed (105) hide show
  1. package/.openapi-generator/FILES +9 -11
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/dist/apis/BuyersApi.d.ts +84 -1
  5. package/dist/apis/BuyersApi.js +390 -0
  6. package/dist/apis/LeadsApi.d.ts +13 -1
  7. package/dist/apis/LeadsApi.js +56 -0
  8. package/dist/models/AccountSettingsInput.d.ts +3 -3
  9. package/dist/models/AccountSettingsInput.js +3 -3
  10. package/dist/models/BatchReadBuyerLeadMessageInput.d.ts +31 -0
  11. package/dist/models/BatchReadBuyerLeadMessageInput.js +46 -0
  12. package/dist/models/BatchReadSellerLeadMessageInput.d.ts +31 -0
  13. package/dist/models/BatchReadSellerLeadMessageInput.js +46 -0
  14. package/dist/models/BuyerLeadListItemDomainDto.d.ts +43 -0
  15. package/dist/models/BuyerLeadListItemDomainDto.js +54 -0
  16. package/dist/models/BuyerLeadListItemDto.d.ts +84 -0
  17. package/dist/models/BuyerLeadListItemDto.js +88 -0
  18. package/dist/models/CreateBuyerLeadMessageInput.d.ts +31 -0
  19. package/dist/models/CreateBuyerLeadMessageInput.js +46 -0
  20. package/dist/models/DomainTransferDetailsDto.d.ts +4 -4
  21. package/dist/models/DomainTransferDetailsDto.js +3 -3
  22. package/dist/models/DomainTransferDto.d.ts +4 -4
  23. package/dist/models/DomainTransferDto.js +3 -3
  24. package/dist/models/GetBuyerLeads200Response.d.ts +46 -0
  25. package/dist/models/GetBuyerLeads200Response.js +57 -0
  26. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -8
  27. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -6
  28. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +5 -5
  29. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +3 -3
  30. package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +18 -9
  31. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +13 -6
  32. package/dist/models/LeadDomainDto.d.ts +43 -0
  33. package/dist/models/{DomainTransferDtoAgent.js → LeadDomainDto.js} +14 -10
  34. package/dist/models/LeadDto.d.ts +84 -0
  35. package/dist/models/LeadDto.js +88 -0
  36. package/dist/models/LeadMessageDto.d.ts +24 -10
  37. package/dist/models/LeadMessageDto.js +16 -6
  38. package/dist/models/OrderListItemDto.d.ts +4 -4
  39. package/dist/models/OrderListItemDto.js +3 -3
  40. package/dist/models/PublicLeadDto.d.ts +4 -4
  41. package/dist/models/PublicLeadDto.js +3 -3
  42. package/dist/models/PutBuyerLeadOfferInput.d.ts +32 -0
  43. package/dist/models/PutBuyerLeadOfferInput.js +47 -0
  44. package/dist/models/SellerDomainTransferDto.d.ts +4 -4
  45. package/dist/models/SellerDomainTransferDto.js +3 -3
  46. package/dist/models/UpdateDomainInput.d.ts +5 -5
  47. package/dist/models/UpdateDomainInput.js +5 -5
  48. package/dist/models/index.d.ts +9 -11
  49. package/dist/models/index.js +9 -11
  50. package/package.json +1 -1
  51. package/src/apis/BuyersApi.ts +378 -0
  52. package/src/apis/LeadsApi.ts +61 -0
  53. package/src/models/AccountSettingsInput.ts +9 -9
  54. package/src/models/BatchReadBuyerLeadMessageInput.ts +61 -0
  55. package/src/models/BatchReadSellerLeadMessageInput.ts +61 -0
  56. package/src/models/BuyerLeadListItemDomainDto.ts +79 -0
  57. package/src/models/BuyerLeadListItemDto.ts +144 -0
  58. package/src/models/CreateBuyerLeadMessageInput.ts +61 -0
  59. package/src/models/DomainTransferDetailsDto.ts +11 -11
  60. package/src/models/DomainTransferDto.ts +10 -10
  61. package/src/models/GetBuyerLeads200Response.ts +98 -0
  62. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +15 -21
  63. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +11 -11
  64. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +38 -21
  65. package/src/models/LeadDomainDto.ts +79 -0
  66. package/src/models/LeadDto.ts +144 -0
  67. package/src/models/LeadMessageDto.ts +39 -19
  68. package/src/models/OrderListItemDto.ts +11 -11
  69. package/src/models/PublicLeadDto.ts +10 -10
  70. package/src/models/PutBuyerLeadOfferInput.ts +68 -0
  71. package/src/models/SellerDomainTransferDto.ts +10 -10
  72. package/src/models/UpdateDomainInput.ts +13 -13
  73. package/src/models/index.ts +9 -11
  74. package/dist/models/DomainTransferDetailsDtoAuthCode.d.ts +0 -37
  75. package/dist/models/DomainTransferDetailsDtoAuthCode.js +0 -50
  76. package/dist/models/DomainTransferDtoAgent.d.ts +0 -37
  77. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.d.ts +0 -37
  78. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.js +0 -50
  79. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.d.ts +0 -37
  80. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.js +0 -50
  81. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +0 -32
  82. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +0 -47
  83. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +0 -37
  84. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +0 -50
  85. package/dist/models/LeadMessageDtoData.d.ts +0 -32
  86. package/dist/models/LeadMessageDtoData.js +0 -47
  87. package/dist/models/MoneyInput.d.ts +0 -37
  88. package/dist/models/MoneyInput.js +0 -50
  89. package/dist/models/OrderListItemDtoBasePrice.d.ts +0 -37
  90. package/dist/models/OrderListItemDtoBasePrice.js +0 -50
  91. package/dist/models/PublicLeadDtoLastOffer.d.ts +0 -37
  92. package/dist/models/PublicLeadDtoLastOffer.js +0 -50
  93. package/dist/models/SellerDomainTransferDtoAuthCode.d.ts +0 -37
  94. package/dist/models/SellerDomainTransferDtoAuthCode.js +0 -50
  95. package/src/models/DomainTransferDetailsDtoAuthCode.ts +0 -70
  96. package/src/models/DomainTransferDtoAgent.ts +0 -70
  97. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.ts +0 -70
  98. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.ts +0 -70
  99. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +0 -68
  100. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +0 -70
  101. package/src/models/LeadMessageDtoData.ts +0 -68
  102. package/src/models/MoneyInput.ts +0 -70
  103. package/src/models/OrderListItemDtoBasePrice.ts +0 -70
  104. package/src/models/PublicLeadDtoLastOffer.ts +0 -70
  105. package/src/models/SellerDomainTransferDtoAuthCode.ts +0 -70
@@ -19,12 +19,12 @@ import {
19
19
  IntersectionDomainDtoWithAccountDtoFromJSONTyped,
20
20
  IntersectionDomainDtoWithAccountDtoToJSON,
21
21
  } from './IntersectionDomainDtoWithAccountDto';
22
- import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
22
+ import type { MoneyDto } from './MoneyDto';
23
23
  import {
24
- IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON,
25
- IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped,
26
- IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON,
27
- } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
24
+ MoneyDtoFromJSON,
25
+ MoneyDtoFromJSONTyped,
26
+ MoneyDtoToJSON,
27
+ } from './MoneyDto';
28
28
 
29
29
  /**
30
30
  *
@@ -33,7 +33,7 @@ import {
33
33
  */
34
34
  export interface IntersectionLeadDtoWithLeadDetailsDto {
35
35
  /**
36
- * The current id
36
+ * The lead id
37
37
  * @type {string}
38
38
  * @memberof IntersectionLeadDtoWithLeadDetailsDto
39
39
  */
@@ -45,11 +45,11 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
45
45
  */
46
46
  status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
47
47
  /**
48
- *
49
- * @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
48
+ * The lead last offer amount
49
+ * @type {MoneyDto}
50
50
  * @memberof IntersectionLeadDtoWithLeadDetailsDto
51
51
  */
52
- lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
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': IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json['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': IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value['lastOffer']),
138
+ 'lastOffer': MoneyDtoToJSON(value['lastOffer']),
139
139
  'lastOfferBy': value['lastOfferBy'],
140
140
  'domain': IntersectionDomainDtoWithAccountDtoToJSON(value['domain']),
141
141
  'createdAt': ((value['createdAt']).toISOString()),
@@ -13,18 +13,24 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { IntersectionLeadDtoWithListFieldsDtoLastMessageData } from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
16
+ import type { LeadMessageData } from './LeadMessageData';
17
17
  import {
18
- IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON,
19
- IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped,
20
- IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON,
21
- } from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
22
- import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
18
+ LeadMessageDataFromJSON,
19
+ LeadMessageDataFromJSONTyped,
20
+ LeadMessageDataToJSON,
21
+ } from './LeadMessageData';
22
+ import type { LeadDomainDto } from './LeadDomainDto';
23
23
  import {
24
- IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON,
25
- IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped,
26
- IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON,
27
- } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
24
+ LeadDomainDtoFromJSON,
25
+ LeadDomainDtoFromJSONTyped,
26
+ LeadDomainDtoToJSON,
27
+ } from './LeadDomainDto';
28
+ import type { MoneyDto } from './MoneyDto';
29
+ import {
30
+ MoneyDtoFromJSON,
31
+ MoneyDtoFromJSONTyped,
32
+ MoneyDtoToJSON,
33
+ } from './MoneyDto';
28
34
 
29
35
  /**
30
36
  *
@@ -33,7 +39,7 @@ import {
33
39
  */
34
40
  export interface IntersectionLeadDtoWithListFieldsDto {
35
41
  /**
36
- * The current id
42
+ * The lead id
37
43
  * @type {string}
38
44
  * @memberof IntersectionLeadDtoWithListFieldsDto
39
45
  */
@@ -45,11 +51,11 @@ export interface IntersectionLeadDtoWithListFieldsDto {
45
51
  */
46
52
  status: IntersectionLeadDtoWithListFieldsDtoStatusEnum;
47
53
  /**
48
- *
49
- * @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
54
+ * The lead last offer amount
55
+ * @type {MoneyDto}
50
56
  * @memberof IntersectionLeadDtoWithListFieldsDto
51
57
  */
52
- lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
58
+ lastOffer: MoneyDto | null;
53
59
  /**
54
60
  *
55
61
  * @type {string}
@@ -69,17 +75,23 @@ export interface IntersectionLeadDtoWithListFieldsDto {
69
75
  */
70
76
  lastMessageType: IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum;
71
77
  /**
72
- *
73
- * @type {IntersectionLeadDtoWithListFieldsDtoLastMessageData}
78
+ * The data
79
+ * @type {LeadMessageData}
74
80
  * @memberof IntersectionLeadDtoWithListFieldsDto
75
81
  */
76
- lastMessageData: IntersectionLeadDtoWithListFieldsDtoLastMessageData | null;
82
+ lastMessageData: LeadMessageData | null;
77
83
  /**
78
84
  * Created at date
79
85
  * @type {Date}
80
86
  * @memberof IntersectionLeadDtoWithListFieldsDto
81
87
  */
82
88
  createdAt: Date;
89
+ /**
90
+ * Domain information
91
+ * @type {LeadDomainDto}
92
+ * @memberof IntersectionLeadDtoWithListFieldsDto
93
+ */
94
+ domain: LeadDomainDto;
83
95
  /**
84
96
  *
85
97
  * @type {string}
@@ -145,6 +157,8 @@ export type IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = typeof Int
145
157
  */
146
158
  export const IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = {
147
159
  OFFER: 'offer',
160
+ OFFER_WITHDRAWN: 'offer_withdrawn',
161
+ OFFER_REJECTED: 'offer_rejected',
148
162
  MESSAGE: 'message'
149
163
  } as const;
150
164
  export type IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum];
@@ -162,6 +176,7 @@ export function instanceOfIntersectionLeadDtoWithListFieldsDto(value: object): v
162
176
  if (!('lastMessageType' in value) || value['lastMessageType'] === undefined) return false;
163
177
  if (!('lastMessageData' in value) || value['lastMessageData'] === undefined) return false;
164
178
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
179
+ if (!('domain' in value) || value['domain'] === undefined) return false;
165
180
  if (!('domainName' in value) || value['domainName'] === undefined) return false;
166
181
  if (!('buyerInitials' in value) || value['buyerInitials'] === undefined) return false;
167
182
  if (!('lastMessageMessage' in value) || value['lastMessageMessage'] === undefined) return false;
@@ -181,12 +196,13 @@ export function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json: any, ign
181
196
 
182
197
  'id': json['id'],
183
198
  'status': json['status'],
184
- 'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json['lastOffer']),
199
+ 'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
185
200
  'lastOfferBy': json['lastOfferBy'],
186
201
  'lastMessageFrom': json['lastMessageFrom'],
187
202
  'lastMessageType': json['lastMessageType'],
188
- 'lastMessageData': IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON(json['lastMessageData']),
203
+ 'lastMessageData': LeadMessageDataFromJSON(json['lastMessageData']),
189
204
  'createdAt': (new Date(json['createdAt'])),
205
+ 'domain': LeadDomainDtoFromJSON(json['domain']),
190
206
  'domainName': json['domainName'],
191
207
  'buyerInitials': json['buyerInitials'],
192
208
  'lastMessageMessage': json['lastMessageMessage'],
@@ -202,12 +218,13 @@ export function IntersectionLeadDtoWithListFieldsDtoToJSON(value?: IntersectionL
202
218
 
203
219
  'id': value['id'],
204
220
  'status': value['status'],
205
- 'lastOffer': IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value['lastOffer']),
221
+ 'lastOffer': MoneyDtoToJSON(value['lastOffer']),
206
222
  'lastOfferBy': value['lastOfferBy'],
207
223
  'lastMessageFrom': value['lastMessageFrom'],
208
224
  'lastMessageType': value['lastMessageType'],
209
- 'lastMessageData': IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON(value['lastMessageData']),
225
+ 'lastMessageData': LeadMessageDataToJSON(value['lastMessageData']),
210
226
  'createdAt': ((value['createdAt']).toISOString()),
227
+ 'domain': LeadDomainDtoToJSON(value['domain']),
211
228
  'domainName': value['domainName'],
212
229
  'buyerInitials': value['buyerInitials'],
213
230
  '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,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 { 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
+
73
+
74
+ /**
75
+ * @export
76
+ */
77
+ export const LeadDtoStatusEnum = {
78
+ UNVERIFIED: 'unverified',
79
+ ACTIVE: 'active',
80
+ ACCEPTED: 'accepted',
81
+ FINISHED: 'finished',
82
+ DELETED: 'deleted',
83
+ ARCHIVED: 'archived'
84
+ } as const;
85
+ export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
86
+
87
+ /**
88
+ * @export
89
+ */
90
+ export const LeadDtoLastOfferByEnum = {
91
+ BUYER: 'buyer',
92
+ SELLER: 'seller',
93
+ ADMIN: 'admin'
94
+ } as const;
95
+ export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
96
+
97
+
98
+ /**
99
+ * Check if a given object implements the LeadDto interface.
100
+ */
101
+ export function instanceOfLeadDto(value: object): value is LeadDto {
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 LeadDtoFromJSON(json: any): LeadDto {
112
+ return LeadDtoFromJSONTyped(json, false);
113
+ }
114
+
115
+ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDto {
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': LeadDomainDtoFromJSON(json['domain']),
127
+ };
128
+ }
129
+
130
+ export function LeadDtoToJSON(value?: LeadDto | 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': LeadDomainDtoToJSON(value['domain']),
142
+ };
143
+ }
144
+
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { LeadMessageDtoData } from './LeadMessageDtoData';
16
+ import type { LeadMessageData } from './LeadMessageData';
17
17
  import {
18
- LeadMessageDtoDataFromJSON,
19
- LeadMessageDtoDataFromJSONTyped,
20
- LeadMessageDtoDataToJSON,
21
- } from './LeadMessageDtoData';
18
+ LeadMessageDataFromJSON,
19
+ LeadMessageDataFromJSONTyped,
20
+ LeadMessageDataToJSON,
21
+ } from './LeadMessageData';
22
22
 
23
23
  /**
24
24
  *
@@ -27,29 +27,35 @@ import {
27
27
  */
28
28
  export interface LeadMessageDto {
29
29
  /**
30
- * The current id
30
+ * The lead message id
31
31
  * @type {string}
32
32
  * @memberof LeadMessageDto
33
33
  */
34
34
  id: string;
35
35
  /**
36
- * The message type
36
+ * The lead message type
37
37
  * @type {string}
38
38
  * @memberof LeadMessageDto
39
39
  */
40
40
  type: LeadMessageDtoTypeEnum;
41
41
  /**
42
- * The message origin
42
+ * The lead message origin
43
43
  * @type {string}
44
44
  * @memberof LeadMessageDto
45
45
  */
46
46
  origin: LeadMessageDtoOriginEnum;
47
47
  /**
48
- *
49
- * @type {LeadMessageDtoData}
48
+ * Optional data
49
+ * @type {LeadMessageData}
50
50
  * @memberof LeadMessageDto
51
51
  */
52
- data: LeadMessageDtoData | null;
52
+ data: LeadMessageData | null;
53
+ /**
54
+ * The lead message text
55
+ * @type {string}
56
+ * @memberof LeadMessageDto
57
+ */
58
+ message: string | null;
53
59
  /**
54
60
  * Created at date
55
61
  * @type {Date}
@@ -63,11 +69,17 @@ export interface LeadMessageDto {
63
69
  */
64
70
  initials: string;
65
71
  /**
66
- * Optional message *
67
- * @type {string}
72
+ * Seller read indicator *
73
+ * @type {boolean}
68
74
  * @memberof LeadMessageDto
69
75
  */
70
- message: string | null;
76
+ readBySeller: boolean;
77
+ /**
78
+ * Buyer read indicator *
79
+ * @type {boolean}
80
+ * @memberof LeadMessageDto
81
+ */
82
+ readByBuyer: boolean;
71
83
  }
72
84
 
73
85
 
@@ -76,6 +88,8 @@ export interface LeadMessageDto {
76
88
  */
77
89
  export const LeadMessageDtoTypeEnum = {
78
90
  OFFER: 'offer',
91
+ OFFER_WITHDRAWN: 'offer_withdrawn',
92
+ OFFER_REJECTED: 'offer_rejected',
79
93
  MESSAGE: 'message'
80
94
  } as const;
81
95
  export type LeadMessageDtoTypeEnum = typeof LeadMessageDtoTypeEnum[keyof typeof LeadMessageDtoTypeEnum];
@@ -99,9 +113,11 @@ export function instanceOfLeadMessageDto(value: object): value is LeadMessageDto
99
113
  if (!('type' in value) || value['type'] === undefined) return false;
100
114
  if (!('origin' in value) || value['origin'] === undefined) return false;
101
115
  if (!('data' in value) || value['data'] === undefined) return false;
116
+ if (!('message' in value) || value['message'] === undefined) return false;
102
117
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
103
118
  if (!('initials' in value) || value['initials'] === undefined) return false;
104
- if (!('message' in value) || value['message'] === undefined) return false;
119
+ if (!('readBySeller' in value) || value['readBySeller'] === undefined) return false;
120
+ if (!('readByBuyer' in value) || value['readByBuyer'] === undefined) return false;
105
121
  return true;
106
122
  }
107
123
 
@@ -118,10 +134,12 @@ export function LeadMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: bool
118
134
  'id': json['id'],
119
135
  'type': json['type'],
120
136
  'origin': json['origin'],
121
- 'data': LeadMessageDtoDataFromJSON(json['data']),
137
+ 'data': LeadMessageDataFromJSON(json['data']),
138
+ 'message': json['message'],
122
139
  'createdAt': (new Date(json['createdAt'])),
123
140
  'initials': json['initials'],
124
- 'message': json['message'],
141
+ 'readBySeller': json['readBySeller'],
142
+ 'readByBuyer': json['readByBuyer'],
125
143
  };
126
144
  }
127
145
 
@@ -134,10 +152,12 @@ export function LeadMessageDtoToJSON(value?: LeadMessageDto | null): any {
134
152
  'id': value['id'],
135
153
  'type': value['type'],
136
154
  'origin': value['origin'],
137
- 'data': LeadMessageDtoDataToJSON(value['data']),
155
+ 'data': LeadMessageDataToJSON(value['data']),
156
+ 'message': value['message'],
138
157
  'createdAt': ((value['createdAt']).toISOString()),
139
158
  'initials': value['initials'],
140
- 'message': value['message'],
159
+ 'readBySeller': value['readBySeller'],
160
+ 'readByBuyer': value['readByBuyer'],
141
161
  };
142
162
  }
143
163
 
@@ -13,18 +13,18 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { OrderListItemDtoBasePrice } from './OrderListItemDtoBasePrice';
17
- import {
18
- OrderListItemDtoBasePriceFromJSON,
19
- OrderListItemDtoBasePriceFromJSONTyped,
20
- OrderListItemDtoBasePriceToJSON,
21
- } from './OrderListItemDtoBasePrice';
22
16
  import type { OrderListItemDtoDomainInformation } from './OrderListItemDtoDomainInformation';
23
17
  import {
24
18
  OrderListItemDtoDomainInformationFromJSON,
25
19
  OrderListItemDtoDomainInformationFromJSONTyped,
26
20
  OrderListItemDtoDomainInformationToJSON,
27
21
  } from './OrderListItemDtoDomainInformation';
22
+ import type { MoneyDto } from './MoneyDto';
23
+ import {
24
+ MoneyDtoFromJSON,
25
+ MoneyDtoFromJSONTyped,
26
+ MoneyDtoToJSON,
27
+ } from './MoneyDto';
28
28
  import type { OrderListItemDtoBuyerInformation } from './OrderListItemDtoBuyerInformation';
29
29
  import {
30
30
  OrderListItemDtoBuyerInformationFromJSON,
@@ -81,11 +81,11 @@ export interface OrderListItemDto {
81
81
  */
82
82
  buyerInformation: OrderListItemDtoBuyerInformation;
83
83
  /**
84
- *
85
- * @type {OrderListItemDtoBasePrice}
84
+ * The order base price
85
+ * @type {MoneyDto}
86
86
  * @memberof OrderListItemDto
87
87
  */
88
- basePrice: OrderListItemDtoBasePrice | null;
88
+ basePrice: MoneyDto | null;
89
89
  }
90
90
 
91
91
 
@@ -129,7 +129,7 @@ export function OrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
129
129
  'domain': OrderListItemDtoDomainInformationFromJSON(json['domain']),
130
130
  'sellerAccount': OrderListItemDtoSellerAccountFromJSON(json['sellerAccount']),
131
131
  'buyerInformation': OrderListItemDtoBuyerInformationFromJSON(json['buyerInformation']),
132
- 'basePrice': OrderListItemDtoBasePriceFromJSON(json['basePrice']),
132
+ 'basePrice': MoneyDtoFromJSON(json['basePrice']),
133
133
  };
134
134
  }
135
135
 
@@ -145,7 +145,7 @@ export function OrderListItemDtoToJSON(value?: OrderListItemDto | null): any {
145
145
  'domain': OrderListItemDtoDomainInformationToJSON(value['domain']),
146
146
  'sellerAccount': OrderListItemDtoSellerAccountToJSON(value['sellerAccount']),
147
147
  'buyerInformation': OrderListItemDtoBuyerInformationToJSON(value['buyerInformation']),
148
- 'basePrice': OrderListItemDtoBasePriceToJSON(value['basePrice']),
148
+ 'basePrice': MoneyDtoToJSON(value['basePrice']),
149
149
  };
150
150
  }
151
151
 
@@ -19,12 +19,12 @@ import {
19
19
  PublicLeadBuyerDtoFromJSONTyped,
20
20
  PublicLeadBuyerDtoToJSON,
21
21
  } from './PublicLeadBuyerDto';
22
- import type { PublicLeadDtoLastOffer } from './PublicLeadDtoLastOffer';
22
+ import type { MoneyDto } from './MoneyDto';
23
23
  import {
24
- PublicLeadDtoLastOfferFromJSON,
25
- PublicLeadDtoLastOfferFromJSONTyped,
26
- PublicLeadDtoLastOfferToJSON,
27
- } from './PublicLeadDtoLastOffer';
24
+ MoneyDtoFromJSON,
25
+ MoneyDtoFromJSONTyped,
26
+ MoneyDtoToJSON,
27
+ } from './MoneyDto';
28
28
 
29
29
  /**
30
30
  *
@@ -45,11 +45,11 @@ export interface PublicLeadDto {
45
45
  */
46
46
  status: PublicLeadDtoStatusEnum;
47
47
  /**
48
- *
49
- * @type {PublicLeadDtoLastOffer}
48
+ * The last offer price
49
+ * @type {MoneyDto}
50
50
  * @memberof PublicLeadDto
51
51
  */
52
- lastOffer: PublicLeadDtoLastOffer | null;
52
+ lastOffer: MoneyDto | null;
53
53
  /**
54
54
  * The buyer information
55
55
  * @type {PublicLeadBuyerDto}
@@ -103,7 +103,7 @@ export function PublicLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
103
103
 
104
104
  'id': json['id'],
105
105
  'status': json['status'],
106
- 'lastOffer': PublicLeadDtoLastOfferFromJSON(json['lastOffer']),
106
+ 'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
107
107
  'buyer': PublicLeadBuyerDtoFromJSON(json['buyer']),
108
108
  'domainName': json['domainName'],
109
109
  };
@@ -117,7 +117,7 @@ export function PublicLeadDtoToJSON(value?: PublicLeadDto | null): any {
117
117
 
118
118
  'id': value['id'],
119
119
  'status': value['status'],
120
- 'lastOffer': PublicLeadDtoLastOfferToJSON(value['lastOffer']),
120
+ 'lastOffer': MoneyDtoToJSON(value['lastOffer']),
121
121
  'buyer': PublicLeadBuyerDtoToJSON(value['buyer']),
122
122
  'domainName': value['domainName'],
123
123
  };