@randock/nameshift-api-client 0.0.374 → 0.0.375

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 (29) hide show
  1. package/README.md +3 -3
  2. package/dist/apis/LeadsApi.d.ts +11 -0
  3. package/dist/apis/LeadsApi.js +51 -0
  4. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  5. package/dist/models/BuyerNotificationDto.js +1 -0
  6. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  7. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  8. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +12 -0
  9. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +8 -0
  10. package/dist/models/LeadDto.d.ts +12 -0
  11. package/dist/models/LeadDto.js +8 -0
  12. package/dist/models/ListLeadsResultItem.d.ts +12 -0
  13. package/dist/models/ListLeadsResultItem.js +8 -0
  14. package/dist/models/SellerLeadDetails.d.ts +12 -0
  15. package/dist/models/SellerLeadDetails.js +8 -0
  16. package/dist/models/UserNotificationDto.d.ts +1 -0
  17. package/dist/models/UserNotificationDto.js +1 -0
  18. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  19. package/dist/models/UserNotificationListItemDto.js +1 -0
  20. package/package.json +1 -1
  21. package/src/apis/LeadsApi.ts +44 -0
  22. package/src/models/BuyerNotificationDto.ts +1 -0
  23. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  24. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +18 -0
  25. package/src/models/LeadDto.ts +18 -0
  26. package/src/models/ListLeadsResultItem.ts +18 -0
  27. package/src/models/SellerLeadDetails.ts +18 -0
  28. package/src/models/UserNotificationDto.ts +1 -0
  29. package/src/models/UserNotificationListItemDto.ts +1 -0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.374
1
+ ## @randock/nameshift-api-client@0.0.375
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.374 --save
39
+ npm install @randock/nameshift-api-client@0.0.375 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 19aefb41454d2d9af0a3565f87d90aace47f579ae4acd0f102a90f89a56b60ee6b4a63938d6d3c0490a36de32551a282
47
+ cb10b0aac13227359b35d753c3d4b4f552d310d24ea375464da94d530f21687672052bc51f32b159cb6172b3ca217473
@@ -21,6 +21,9 @@ export interface LeadsApiBulkReadSellerLeadMessageRequest {
21
21
  leadId: string;
22
22
  batchReadSellerLeadMessageInput: BatchReadSellerLeadMessageInput;
23
23
  }
24
+ export interface LeadsApiCloseLeadRequest {
25
+ leadId: string;
26
+ }
24
27
  export interface LeadsApiCreateManualLeadRequest {
25
28
  createManualLeadInput: CreateManualLeadInput;
26
29
  }
@@ -96,6 +99,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
96
99
  *
97
100
  */
98
101
  bulkReadSellerLeadMessage(requestParameters: LeadsApiBulkReadSellerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
102
+ /**
103
+ *
104
+ */
105
+ closeLeadRaw(requestParameters: LeadsApiCloseLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
106
+ /**
107
+ *
108
+ */
109
+ closeLead(requestParameters: LeadsApiCloseLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
99
110
  /**
100
111
  *
101
112
  */
@@ -233,6 +233,57 @@ var LeadsApi = /** @class */ (function (_super) {
233
233
  });
234
234
  });
235
235
  };
236
+ /**
237
+ *
238
+ */
239
+ LeadsApi.prototype.closeLeadRaw = function (requestParameters, initOverrides) {
240
+ return __awaiter(this, void 0, void 0, function () {
241
+ var queryParameters, headerParameters, token, tokenString, response;
242
+ return __generator(this, function (_a) {
243
+ switch (_a.label) {
244
+ case 0:
245
+ if (requestParameters['leadId'] == null) {
246
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling closeLead().');
247
+ }
248
+ queryParameters = {};
249
+ headerParameters = {};
250
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
251
+ token = this.configuration.accessToken;
252
+ return [4 /*yield*/, token("bearer", [])];
253
+ case 1:
254
+ tokenString = _a.sent();
255
+ if (tokenString) {
256
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
257
+ }
258
+ _a.label = 2;
259
+ case 2: return [4 /*yield*/, this.request({
260
+ path: "/private/leads/{leadId}/status/close".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
261
+ method: 'POST',
262
+ headers: headerParameters,
263
+ query: queryParameters,
264
+ }, initOverrides)];
265
+ case 3:
266
+ response = _a.sent();
267
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
268
+ }
269
+ });
270
+ });
271
+ };
272
+ /**
273
+ *
274
+ */
275
+ LeadsApi.prototype.closeLead = function (requestParameters, initOverrides) {
276
+ return __awaiter(this, void 0, void 0, function () {
277
+ return __generator(this, function (_a) {
278
+ switch (_a.label) {
279
+ case 0: return [4 /*yield*/, this.closeLeadRaw(requestParameters, initOverrides)];
280
+ case 1:
281
+ _a.sent();
282
+ return [2 /*return*/];
283
+ }
284
+ });
285
+ });
286
+ };
236
287
  /**
237
288
  *
238
289
  */
@@ -115,6 +115,7 @@ export declare const BuyerNotificationDtoTypeEnum: {
115
115
  readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
116
116
  readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
117
117
  readonly LEAD_CLOSED_BUYER: "lead.closed.buyer";
118
+ readonly LEAD_CLOSED_BY_SELLER_BUYER: "lead.closed.by_seller.buyer";
118
119
  readonly DOMAIN_SOLD_SELLER_NOTIFICATION: "domain_sold_seller_notification";
119
120
  readonly DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: "domain_sold_by_lease_to_own_seller_notification";
120
121
  readonly DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: "domain_sold_by_rent_seller_notification";
@@ -76,6 +76,7 @@ exports.BuyerNotificationDtoTypeEnum = {
76
76
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
77
77
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
78
78
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
79
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
79
80
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
80
81
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
81
82
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
@@ -108,6 +108,7 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
108
108
  readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
109
109
  readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
110
110
  readonly LEAD_CLOSED_BUYER: "lead.closed.buyer";
111
+ readonly LEAD_CLOSED_BY_SELLER_BUYER: "lead.closed.by_seller.buyer";
111
112
  readonly DOMAIN_SOLD_SELLER_NOTIFICATION: "domain_sold_seller_notification";
112
113
  readonly DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: "domain_sold_by_lease_to_own_seller_notification";
113
114
  readonly DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: "domain_sold_by_rent_seller_notification";
@@ -75,6 +75,7 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
75
75
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
76
76
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
77
77
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
78
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
78
79
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
79
80
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
80
81
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
@@ -52,6 +52,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
52
52
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
53
53
  */
54
54
  lastOfferType: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum | null;
55
+ /**
56
+ * Whether the lead can be closed by the seller
57
+ * @type {boolean}
58
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
59
+ */
60
+ canBeClosedBySeller: boolean;
55
61
  /**
56
62
  *
57
63
  * @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
@@ -148,6 +154,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
148
154
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
149
155
  */
150
156
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
157
+ /**
158
+ * Accepted at date
159
+ * @type {Date}
160
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
161
+ */
162
+ acceptedAt: Date | null;
151
163
  }
152
164
  /**
153
165
  * @export
@@ -77,6 +77,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetai
77
77
  return false;
78
78
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
79
79
  return false;
80
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined)
81
+ return false;
80
82
  if (!('domain' in value) || value['domain'] === undefined)
81
83
  return false;
82
84
  if (!('manualType' in value) || value['manualType'] === undefined)
@@ -109,6 +111,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetai
109
111
  return false;
110
112
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined)
111
113
  return false;
114
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
115
+ return false;
112
116
  return true;
113
117
  }
114
118
  function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON(json) {
@@ -124,6 +128,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
124
128
  'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
125
129
  'lastOfferBy': json['lastOfferBy'],
126
130
  'lastOfferType': json['lastOfferType'],
131
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
127
132
  'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON)(json['domain']),
128
133
  'manualType': json['manualType'],
129
134
  'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoFromJSON)(json['buyer']),
@@ -140,6 +145,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
140
145
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
141
146
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
142
147
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
148
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
143
149
  };
144
150
  }
145
151
  function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON(json) {
@@ -156,6 +162,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
156
162
  'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
157
163
  'lastOfferBy': value['lastOfferBy'],
158
164
  'lastOfferType': value['lastOfferType'],
165
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
159
166
  'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON)(value['domain']),
160
167
  'manualType': value['manualType'],
161
168
  'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoToJSON)(value['buyer']),
@@ -172,5 +179,6 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
172
179
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
173
180
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
174
181
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
182
+ 'acceptedAt': (value['acceptedAt'] == null ? null : value['acceptedAt'].toISOString()),
175
183
  };
176
184
  }
@@ -51,6 +51,12 @@ export interface LeadDto {
51
51
  * @memberof LeadDto
52
52
  */
53
53
  lastOfferType: LeadDtoLastOfferTypeEnum | null;
54
+ /**
55
+ * Whether the lead can be closed by the seller
56
+ * @type {boolean}
57
+ * @memberof LeadDto
58
+ */
59
+ canBeClosedBySeller: boolean;
54
60
  /**
55
61
  * Archived status
56
62
  * @type {boolean}
@@ -141,6 +147,12 @@ export interface LeadDto {
141
147
  * @memberof LeadDto
142
148
  */
143
149
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
150
+ /**
151
+ * Accepted at date
152
+ * @type {Date}
153
+ * @memberof LeadDto
154
+ */
155
+ acceptedAt: Date | null;
144
156
  }
145
157
  /**
146
158
  * @export
@@ -76,6 +76,8 @@ function instanceOfLeadDto(value) {
76
76
  return false;
77
77
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
78
78
  return false;
79
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined)
80
+ return false;
79
81
  if (!('archived' in value) || value['archived'] === undefined)
80
82
  return false;
81
83
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -106,6 +108,8 @@ function instanceOfLeadDto(value) {
106
108
  return false;
107
109
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined)
108
110
  return false;
111
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
112
+ return false;
109
113
  return true;
110
114
  }
111
115
  function LeadDtoFromJSON(json) {
@@ -121,6 +125,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
121
125
  'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
122
126
  'lastOfferBy': json['lastOfferBy'],
123
127
  'lastOfferType': json['lastOfferType'],
128
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
124
129
  'archived': json['archived'],
125
130
  'createdAt': (new Date(json['createdAt'])),
126
131
  'updatedAt': (new Date(json['updatedAt'])),
@@ -136,6 +141,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
136
141
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
137
142
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
138
143
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
144
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
139
145
  };
140
146
  }
141
147
  function LeadDtoToJSON(json) {
@@ -152,6 +158,7 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
152
158
  'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
153
159
  'lastOfferBy': value['lastOfferBy'],
154
160
  'lastOfferType': value['lastOfferType'],
161
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
155
162
  'archived': value['archived'],
156
163
  'createdAt': ((value['createdAt']).toISOString()),
157
164
  'updatedAt': ((value['updatedAt']).toISOString()),
@@ -167,5 +174,6 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
167
174
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
168
175
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
169
176
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
177
+ 'acceptedAt': (value['acceptedAt'] == null ? null : value['acceptedAt'].toISOString()),
170
178
  };
171
179
  }
@@ -52,6 +52,12 @@ export interface ListLeadsResultItem {
52
52
  * @memberof ListLeadsResultItem
53
53
  */
54
54
  lastOfferType: ListLeadsResultItemLastOfferTypeEnum | null;
55
+ /**
56
+ * Whether the lead can be closed by the seller
57
+ * @type {boolean}
58
+ * @memberof ListLeadsResultItem
59
+ */
60
+ canBeClosedBySeller: boolean;
55
61
  /**
56
62
  *
57
63
  * @type {string}
@@ -178,6 +184,12 @@ export interface ListLeadsResultItem {
178
184
  * @memberof ListLeadsResultItem
179
185
  */
180
186
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
187
+ /**
188
+ * Accepted at date
189
+ * @type {Date}
190
+ * @memberof ListLeadsResultItem
191
+ */
192
+ acceptedAt: Date | null;
181
193
  /**
182
194
  * The message in case lastMessageType === LeadMessageTypeEnum.MESSAGE
183
195
  * @type {string}
@@ -96,6 +96,8 @@ function instanceOfListLeadsResultItem(value) {
96
96
  return false;
97
97
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
98
98
  return false;
99
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined)
100
+ return false;
99
101
  if (!('buyerInitials' in value) || value['buyerInitials'] === undefined)
100
102
  return false;
101
103
  if (!('buyerIpCountryCode' in value) || value['buyerIpCountryCode'] === undefined)
@@ -138,6 +140,8 @@ function instanceOfListLeadsResultItem(value) {
138
140
  return false;
139
141
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined)
140
142
  return false;
143
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
144
+ return false;
141
145
  if (!('lastMessageMessage' in value) || value['lastMessageMessage'] === undefined)
142
146
  return false;
143
147
  if (!('lastMessageDate' in value) || value['lastMessageDate'] === undefined)
@@ -157,6 +161,7 @@ function ListLeadsResultItemFromJSONTyped(json, ignoreDiscriminator) {
157
161
  'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
158
162
  'lastOfferBy': json['lastOfferBy'],
159
163
  'lastOfferType': json['lastOfferType'],
164
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
160
165
  'buyerInitials': json['buyerInitials'],
161
166
  'buyerIpCountryCode': json['buyerIpCountryCode'],
162
167
  'lastMessageFrom': json['lastMessageFrom'],
@@ -178,6 +183,7 @@ function ListLeadsResultItemFromJSONTyped(json, ignoreDiscriminator) {
178
183
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
179
184
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
180
185
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
186
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
181
187
  'lastMessageMessage': json['lastMessageMessage'],
182
188
  'lastMessageDate': (new Date(json['lastMessageDate'])),
183
189
  };
@@ -196,6 +202,7 @@ function ListLeadsResultItemToJSONTyped(value, ignoreDiscriminator) {
196
202
  'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
197
203
  'lastOfferBy': value['lastOfferBy'],
198
204
  'lastOfferType': value['lastOfferType'],
205
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
199
206
  'buyerInitials': value['buyerInitials'],
200
207
  'buyerIpCountryCode': value['buyerIpCountryCode'],
201
208
  'lastMessageFrom': value['lastMessageFrom'],
@@ -217,6 +224,7 @@ function ListLeadsResultItemToJSONTyped(value, ignoreDiscriminator) {
217
224
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
218
225
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
219
226
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
227
+ 'acceptedAt': (value['acceptedAt'] == null ? null : value['acceptedAt'].toISOString()),
220
228
  'lastMessageMessage': value['lastMessageMessage'],
221
229
  'lastMessageDate': ((value['lastMessageDate']).toISOString()),
222
230
  };
@@ -53,6 +53,12 @@ export interface SellerLeadDetails {
53
53
  * @memberof SellerLeadDetails
54
54
  */
55
55
  lastOfferType: SellerLeadDetailsLastOfferTypeEnum | null;
56
+ /**
57
+ * Whether the lead can be closed by the seller
58
+ * @type {boolean}
59
+ * @memberof SellerLeadDetails
60
+ */
61
+ canBeClosedBySeller: boolean;
56
62
  /**
57
63
  *
58
64
  * @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
@@ -161,6 +167,12 @@ export interface SellerLeadDetails {
161
167
  * @memberof SellerLeadDetails
162
168
  */
163
169
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
170
+ /**
171
+ * Accepted at date
172
+ * @type {Date}
173
+ * @memberof SellerLeadDetails
174
+ */
175
+ acceptedAt: Date | null;
164
176
  }
165
177
  /**
166
178
  * @export
@@ -78,6 +78,8 @@ function instanceOfSellerLeadDetails(value) {
78
78
  return false;
79
79
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
80
80
  return false;
81
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined)
82
+ return false;
81
83
  if (!('domain' in value) || value['domain'] === undefined)
82
84
  return false;
83
85
  if (!('manualType' in value) || value['manualType'] === undefined)
@@ -114,6 +116,8 @@ function instanceOfSellerLeadDetails(value) {
114
116
  return false;
115
117
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined)
116
118
  return false;
119
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
120
+ return false;
117
121
  return true;
118
122
  }
119
123
  function SellerLeadDetailsFromJSON(json) {
@@ -129,6 +133,7 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
129
133
  'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
130
134
  'lastOfferBy': json['lastOfferBy'],
131
135
  'lastOfferType': json['lastOfferType'],
136
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
132
137
  'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON)(json['domain']),
133
138
  'manualType': json['manualType'],
134
139
  'buyer': (0, BuyerDto_1.BuyerDtoFromJSON)(json['buyer']),
@@ -147,6 +152,7 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
147
152
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
148
153
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
149
154
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
155
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
150
156
  };
151
157
  }
152
158
  function SellerLeadDetailsToJSON(json) {
@@ -163,6 +169,7 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
163
169
  'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
164
170
  'lastOfferBy': value['lastOfferBy'],
165
171
  'lastOfferType': value['lastOfferType'],
172
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
166
173
  'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON)(value['domain']),
167
174
  'manualType': value['manualType'],
168
175
  'buyer': (0, BuyerDto_1.BuyerDtoToJSON)(value['buyer']),
@@ -181,5 +188,6 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
181
188
  'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
182
189
  'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
183
190
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
191
+ 'acceptedAt': (value['acceptedAt'] == null ? null : value['acceptedAt'].toISOString()),
184
192
  };
185
193
  }
@@ -115,6 +115,7 @@ export declare const UserNotificationDtoTypeEnum: {
115
115
  readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
116
116
  readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
117
117
  readonly LEAD_CLOSED_BUYER: "lead.closed.buyer";
118
+ readonly LEAD_CLOSED_BY_SELLER_BUYER: "lead.closed.by_seller.buyer";
118
119
  readonly DOMAIN_SOLD_SELLER_NOTIFICATION: "domain_sold_seller_notification";
119
120
  readonly DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: "domain_sold_by_lease_to_own_seller_notification";
120
121
  readonly DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: "domain_sold_by_rent_seller_notification";
@@ -76,6 +76,7 @@ exports.UserNotificationDtoTypeEnum = {
76
76
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
77
77
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
78
78
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
79
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
79
80
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
80
81
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
81
82
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
@@ -108,6 +108,7 @@ export declare const UserNotificationListItemDtoTypeEnum: {
108
108
  readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
109
109
  readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
110
110
  readonly LEAD_CLOSED_BUYER: "lead.closed.buyer";
111
+ readonly LEAD_CLOSED_BY_SELLER_BUYER: "lead.closed.by_seller.buyer";
111
112
  readonly DOMAIN_SOLD_SELLER_NOTIFICATION: "domain_sold_seller_notification";
112
113
  readonly DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: "domain_sold_by_lease_to_own_seller_notification";
113
114
  readonly DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: "domain_sold_by_rent_seller_notification";
@@ -75,6 +75,7 @@ exports.UserNotificationListItemDtoTypeEnum = {
75
75
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
76
76
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
77
77
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
78
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
78
79
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
79
80
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
80
81
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.374",
3
+ "version": "0.0.375",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -77,6 +77,10 @@ export interface LeadsApiBulkReadSellerLeadMessageRequest {
77
77
  batchReadSellerLeadMessageInput: BatchReadSellerLeadMessageInput;
78
78
  }
79
79
 
80
+ export interface LeadsApiCloseLeadRequest {
81
+ leadId: string;
82
+ }
83
+
80
84
  export interface LeadsApiCreateManualLeadRequest {
81
85
  createManualLeadInput: CreateManualLeadInput;
82
86
  }
@@ -272,6 +276,46 @@ export class LeadsApi extends runtime.BaseAPI {
272
276
  await this.bulkReadSellerLeadMessageRaw(requestParameters, initOverrides);
273
277
  }
274
278
 
279
+ /**
280
+ *
281
+ */
282
+ async closeLeadRaw(requestParameters: LeadsApiCloseLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
283
+ if (requestParameters['leadId'] == null) {
284
+ throw new runtime.RequiredError(
285
+ 'leadId',
286
+ 'Required parameter "leadId" was null or undefined when calling closeLead().'
287
+ );
288
+ }
289
+
290
+ const queryParameters: any = {};
291
+
292
+ const headerParameters: runtime.HTTPHeaders = {};
293
+
294
+ if (this.configuration && this.configuration.accessToken) {
295
+ const token = this.configuration.accessToken;
296
+ const tokenString = await token("bearer", []);
297
+
298
+ if (tokenString) {
299
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
300
+ }
301
+ }
302
+ const response = await this.request({
303
+ path: `/private/leads/{leadId}/status/close`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
304
+ method: 'POST',
305
+ headers: headerParameters,
306
+ query: queryParameters,
307
+ }, initOverrides);
308
+
309
+ return new runtime.VoidApiResponse(response);
310
+ }
311
+
312
+ /**
313
+ *
314
+ */
315
+ async closeLead(requestParameters: LeadsApiCloseLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
316
+ await this.closeLeadRaw(requestParameters, initOverrides);
317
+ }
318
+
275
319
  /**
276
320
  *
277
321
  */
@@ -128,6 +128,7 @@ export const BuyerNotificationDtoTypeEnum = {
128
128
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
129
129
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
130
130
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
131
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
131
132
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
132
133
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
133
134
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
@@ -114,6 +114,7 @@ export const BuyerNotificationListItemDtoTypeEnum = {
114
114
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
115
115
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
116
116
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
117
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
117
118
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
118
119
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
119
120
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
@@ -99,6 +99,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
99
99
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
100
100
  */
101
101
  lastOfferType: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum | null;
102
+ /**
103
+ * Whether the lead can be closed by the seller
104
+ * @type {boolean}
105
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
106
+ */
107
+ canBeClosedBySeller: boolean;
102
108
  /**
103
109
  *
104
110
  * @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
@@ -195,6 +201,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
195
201
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
196
202
  */
197
203
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
204
+ /**
205
+ * Accepted at date
206
+ * @type {Date}
207
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
208
+ */
209
+ acceptedAt: Date | null;
198
210
  }
199
211
 
200
212
 
@@ -253,6 +265,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
253
265
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
254
266
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
255
267
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
268
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
256
269
  if (!('domain' in value) || value['domain'] === undefined) return false;
257
270
  if (!('manualType' in value) || value['manualType'] === undefined) return false;
258
271
  if (!('buyer' in value) || value['buyer'] === undefined) return false;
@@ -269,6 +282,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
269
282
  if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
270
283
  if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
271
284
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
285
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
272
286
  return true;
273
287
  }
274
288
 
@@ -287,6 +301,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
287
301
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
288
302
  'lastOfferBy': json['lastOfferBy'],
289
303
  'lastOfferType': json['lastOfferType'],
304
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
290
305
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
291
306
  'manualType': json['manualType'],
292
307
  'buyer': ManualLeadBuyerDtoFromJSON(json['buyer']),
@@ -303,6 +318,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
303
318
  'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
304
319
  'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
305
320
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
321
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
306
322
  };
307
323
  }
308
324
 
@@ -322,6 +338,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
322
338
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
323
339
  'lastOfferBy': value['lastOfferBy'],
324
340
  'lastOfferType': value['lastOfferType'],
341
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
325
342
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
326
343
  'manualType': value['manualType'],
327
344
  'buyer': ManualLeadBuyerDtoToJSON(value['buyer']),
@@ -338,6 +355,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
338
355
  'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
339
356
  'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
340
357
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
358
+ 'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
341
359
  };
342
360
  }
343
361
 
@@ -92,6 +92,12 @@ export interface LeadDto {
92
92
  * @memberof LeadDto
93
93
  */
94
94
  lastOfferType: LeadDtoLastOfferTypeEnum | null;
95
+ /**
96
+ * Whether the lead can be closed by the seller
97
+ * @type {boolean}
98
+ * @memberof LeadDto
99
+ */
100
+ canBeClosedBySeller: boolean;
95
101
  /**
96
102
  * Archived status
97
103
  * @type {boolean}
@@ -182,6 +188,12 @@ export interface LeadDto {
182
188
  * @memberof LeadDto
183
189
  */
184
190
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
191
+ /**
192
+ * Accepted at date
193
+ * @type {Date}
194
+ * @memberof LeadDto
195
+ */
196
+ acceptedAt: Date | null;
185
197
  }
186
198
 
187
199
 
@@ -240,6 +252,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
240
252
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
241
253
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
242
254
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
255
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
243
256
  if (!('archived' in value) || value['archived'] === undefined) return false;
244
257
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
245
258
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
@@ -255,6 +268,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
255
268
  if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
256
269
  if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
257
270
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
271
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
258
272
  return true;
259
273
  }
260
274
 
@@ -273,6 +287,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
273
287
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
274
288
  'lastOfferBy': json['lastOfferBy'],
275
289
  'lastOfferType': json['lastOfferType'],
290
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
276
291
  'archived': json['archived'],
277
292
  'createdAt': (new Date(json['createdAt'])),
278
293
  'updatedAt': (new Date(json['updatedAt'])),
@@ -288,6 +303,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
288
303
  'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
289
304
  'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
290
305
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
306
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
291
307
  };
292
308
  }
293
309
 
@@ -307,6 +323,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
307
323
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
308
324
  'lastOfferBy': value['lastOfferBy'],
309
325
  'lastOfferType': value['lastOfferType'],
326
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
310
327
  'archived': value['archived'],
311
328
  'createdAt': ((value['createdAt']).toISOString()),
312
329
  'updatedAt': ((value['updatedAt']).toISOString()),
@@ -322,6 +339,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
322
339
  'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
323
340
  'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
324
341
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
342
+ 'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
325
343
  };
326
344
  }
327
345
 
@@ -99,6 +99,12 @@ export interface ListLeadsResultItem {
99
99
  * @memberof ListLeadsResultItem
100
100
  */
101
101
  lastOfferType: ListLeadsResultItemLastOfferTypeEnum | null;
102
+ /**
103
+ * Whether the lead can be closed by the seller
104
+ * @type {boolean}
105
+ * @memberof ListLeadsResultItem
106
+ */
107
+ canBeClosedBySeller: boolean;
102
108
  /**
103
109
  *
104
110
  * @type {string}
@@ -225,6 +231,12 @@ export interface ListLeadsResultItem {
225
231
  * @memberof ListLeadsResultItem
226
232
  */
227
233
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
234
+ /**
235
+ * Accepted at date
236
+ * @type {Date}
237
+ * @memberof ListLeadsResultItem
238
+ */
239
+ acceptedAt: Date | null;
228
240
  /**
229
241
  * The message in case lastMessageType === LeadMessageTypeEnum.MESSAGE
230
242
  * @type {string}
@@ -318,6 +330,7 @@ export function instanceOfListLeadsResultItem(value: object): value is ListLeads
318
330
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
319
331
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
320
332
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
333
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
321
334
  if (!('buyerInitials' in value) || value['buyerInitials'] === undefined) return false;
322
335
  if (!('buyerIpCountryCode' in value) || value['buyerIpCountryCode'] === undefined) return false;
323
336
  if (!('lastMessageFrom' in value) || value['lastMessageFrom'] === undefined) return false;
@@ -339,6 +352,7 @@ export function instanceOfListLeadsResultItem(value: object): value is ListLeads
339
352
  if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
340
353
  if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
341
354
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
355
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
342
356
  if (!('lastMessageMessage' in value) || value['lastMessageMessage'] === undefined) return false;
343
357
  if (!('lastMessageDate' in value) || value['lastMessageDate'] === undefined) return false;
344
358
  return true;
@@ -359,6 +373,7 @@ export function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator:
359
373
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
360
374
  'lastOfferBy': json['lastOfferBy'],
361
375
  'lastOfferType': json['lastOfferType'],
376
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
362
377
  'buyerInitials': json['buyerInitials'],
363
378
  'buyerIpCountryCode': json['buyerIpCountryCode'],
364
379
  'lastMessageFrom': json['lastMessageFrom'],
@@ -380,6 +395,7 @@ export function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator:
380
395
  'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
381
396
  'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
382
397
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
398
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
383
399
  'lastMessageMessage': json['lastMessageMessage'],
384
400
  'lastMessageDate': (new Date(json['lastMessageDate'])),
385
401
  };
@@ -401,6 +417,7 @@ export function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | nul
401
417
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
402
418
  'lastOfferBy': value['lastOfferBy'],
403
419
  'lastOfferType': value['lastOfferType'],
420
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
404
421
  'buyerInitials': value['buyerInitials'],
405
422
  'buyerIpCountryCode': value['buyerIpCountryCode'],
406
423
  'lastMessageFrom': value['lastMessageFrom'],
@@ -422,6 +439,7 @@ export function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | nul
422
439
  'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
423
440
  'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
424
441
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
442
+ 'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
425
443
  'lastMessageMessage': value['lastMessageMessage'],
426
444
  'lastMessageDate': ((value['lastMessageDate']).toISOString()),
427
445
  };
@@ -106,6 +106,12 @@ export interface SellerLeadDetails {
106
106
  * @memberof SellerLeadDetails
107
107
  */
108
108
  lastOfferType: SellerLeadDetailsLastOfferTypeEnum | null;
109
+ /**
110
+ * Whether the lead can be closed by the seller
111
+ * @type {boolean}
112
+ * @memberof SellerLeadDetails
113
+ */
114
+ canBeClosedBySeller: boolean;
109
115
  /**
110
116
  *
111
117
  * @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
@@ -214,6 +220,12 @@ export interface SellerLeadDetails {
214
220
  * @memberof SellerLeadDetails
215
221
  */
216
222
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
223
+ /**
224
+ * Accepted at date
225
+ * @type {Date}
226
+ * @memberof SellerLeadDetails
227
+ */
228
+ acceptedAt: Date | null;
217
229
  }
218
230
 
219
231
 
@@ -272,6 +284,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
272
284
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
273
285
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
274
286
  if (!('lastOfferType' in value) || value['lastOfferType'] === undefined) return false;
287
+ if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
275
288
  if (!('domain' in value) || value['domain'] === undefined) return false;
276
289
  if (!('manualType' in value) || value['manualType'] === undefined) return false;
277
290
  if (!('buyer' in value) || value['buyer'] === undefined) return false;
@@ -290,6 +303,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
290
303
  if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
291
304
  if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
292
305
  if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
306
+ if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
293
307
  return true;
294
308
  }
295
309
 
@@ -308,6 +322,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
308
322
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
309
323
  'lastOfferBy': json['lastOfferBy'],
310
324
  'lastOfferType': json['lastOfferType'],
325
+ 'canBeClosedBySeller': json['canBeClosedBySeller'],
311
326
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
312
327
  'manualType': json['manualType'],
313
328
  'buyer': BuyerDtoFromJSON(json['buyer']),
@@ -326,6 +341,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
326
341
  'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
327
342
  'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
328
343
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
344
+ 'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
329
345
  };
330
346
  }
331
347
 
@@ -345,6 +361,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
345
361
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
346
362
  'lastOfferBy': value['lastOfferBy'],
347
363
  'lastOfferType': value['lastOfferType'],
364
+ 'canBeClosedBySeller': value['canBeClosedBySeller'],
348
365
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
349
366
  'manualType': value['manualType'],
350
367
  'buyer': BuyerDtoToJSON(value['buyer']),
@@ -363,6 +380,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
363
380
  'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
364
381
  'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
365
382
  'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
383
+ 'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
366
384
  };
367
385
  }
368
386
 
@@ -128,6 +128,7 @@ export const UserNotificationDtoTypeEnum = {
128
128
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
129
129
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
130
130
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
131
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
131
132
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
132
133
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
133
134
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
@@ -114,6 +114,7 @@ export const UserNotificationListItemDtoTypeEnum = {
114
114
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
115
115
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
116
116
  LEAD_CLOSED_BUYER: 'lead.closed.buyer',
117
+ LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
117
118
  DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
118
119
  DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
119
120
  DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',