@randock/nameshift-api-client 0.0.374 → 0.0.376

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 (45) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +3 -3
  3. package/dist/apis/LeadsApi.d.ts +11 -0
  4. package/dist/apis/LeadsApi.js +51 -0
  5. package/dist/models/AdminListAccountDto.d.ts +13 -0
  6. package/dist/models/AdminListAccountDto.js +9 -0
  7. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  8. package/dist/models/BuyerNotificationDto.js +1 -0
  9. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  10. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  11. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +12 -0
  12. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +8 -0
  13. package/dist/models/LeadDto.d.ts +12 -0
  14. package/dist/models/LeadDto.js +8 -0
  15. package/dist/models/ListAccountPortfolioSizeDto.d.ts +38 -0
  16. package/dist/models/ListAccountPortfolioSizeDto.js +55 -0
  17. package/dist/models/ListLeadsResultItem.d.ts +12 -0
  18. package/dist/models/ListLeadsResultItem.js +8 -0
  19. package/dist/models/RegisterAccountInput.d.ts +13 -0
  20. package/dist/models/RegisterAccountInput.js +5 -0
  21. package/dist/models/RegisterAccountPortfolioSizeInput.d.ts +38 -0
  22. package/dist/models/RegisterAccountPortfolioSizeInput.js +53 -0
  23. package/dist/models/SellerLeadDetails.d.ts +12 -0
  24. package/dist/models/SellerLeadDetails.js +8 -0
  25. package/dist/models/UserNotificationDto.d.ts +1 -0
  26. package/dist/models/UserNotificationDto.js +1 -0
  27. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  28. package/dist/models/UserNotificationListItemDto.js +1 -0
  29. package/dist/models/index.d.ts +2 -0
  30. package/dist/models/index.js +2 -0
  31. package/package.json +1 -1
  32. package/src/apis/LeadsApi.ts +44 -0
  33. package/src/models/AdminListAccountDto.ts +25 -0
  34. package/src/models/BuyerNotificationDto.ts +1 -0
  35. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  36. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +18 -0
  37. package/src/models/LeadDto.ts +18 -0
  38. package/src/models/ListAccountPortfolioSizeDto.ts +75 -0
  39. package/src/models/ListLeadsResultItem.ts +18 -0
  40. package/src/models/RegisterAccountInput.ts +24 -0
  41. package/src/models/RegisterAccountPortfolioSizeInput.ts +74 -0
  42. package/src/models/SellerLeadDetails.ts +18 -0
  43. package/src/models/UserNotificationDto.ts +1 -0
  44. package/src/models/UserNotificationListItemDto.ts +1 -0
  45. package/src/models/index.ts +2 -0
@@ -284,6 +284,7 @@ src/models/List200Response2.ts
284
284
  src/models/List200Response3.ts
285
285
  src/models/List200Response4.ts
286
286
  src/models/ListAccountMetricsDto.ts
287
+ src/models/ListAccountPortfolioSizeDto.ts
287
288
  src/models/ListAccountUserDto.ts
288
289
  src/models/ListAccounts200Response.ts
289
290
  src/models/ListAuctions200Response.ts
@@ -344,6 +345,7 @@ src/models/PublicSalesDto.ts
344
345
  src/models/PutBuyerLeadOfferInput.ts
345
346
  src/models/PutLeadOfferInput.ts
346
347
  src/models/RegisterAccountInput.ts
348
+ src/models/RegisterAccountPortfolioSizeInput.ts
347
349
  src/models/RegisterAuctionBuyerPhoneInput.ts
348
350
  src/models/RegisterInput.ts
349
351
  src/models/RelatedDomainsDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.374
1
+ ## @randock/nameshift-api-client@0.0.376
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.376 --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
+ 9b2b6fa462b02b8f6f9a9b3b4dbb2ef13a6356e01799551df0fc0335b9c9c65c15a4c5faccaf952bf581ee6b3492f747
@@ -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
  */
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ListAccountMetricsDto } from './ListAccountMetricsDto';
13
+ import type { ListAccountPortfolioSizeDto } from './ListAccountPortfolioSizeDto';
13
14
  import type { ListAccountUserDto } from './ListAccountUserDto';
14
15
  /**
15
16
  *
@@ -59,6 +60,18 @@ export interface AdminListAccountDto {
59
60
  * @memberof AdminListAccountDto
60
61
  */
61
62
  affiliateId: string | null;
63
+ /**
64
+ *
65
+ * @type {ListAccountPortfolioSizeDto}
66
+ * @memberof AdminListAccountDto
67
+ */
68
+ portfolioSize: ListAccountPortfolioSizeDto | null;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof AdminListAccountDto
73
+ */
74
+ companyName: string | null;
62
75
  /**
63
76
  *
64
77
  * @type {string}
@@ -20,6 +20,7 @@ exports.AdminListAccountDtoFromJSONTyped = AdminListAccountDtoFromJSONTyped;
20
20
  exports.AdminListAccountDtoToJSON = AdminListAccountDtoToJSON;
21
21
  exports.AdminListAccountDtoToJSONTyped = AdminListAccountDtoToJSONTyped;
22
22
  var ListAccountMetricsDto_1 = require("./ListAccountMetricsDto");
23
+ var ListAccountPortfolioSizeDto_1 = require("./ListAccountPortfolioSizeDto");
23
24
  var ListAccountUserDto_1 = require("./ListAccountUserDto");
24
25
  /**
25
26
  * @export
@@ -61,6 +62,10 @@ function instanceOfAdminListAccountDto(value) {
61
62
  return false;
62
63
  if (!('affiliateId' in value) || value['affiliateId'] === undefined)
63
64
  return false;
65
+ if (!('portfolioSize' in value) || value['portfolioSize'] === undefined)
66
+ return false;
67
+ if (!('companyName' in value) || value['companyName'] === undefined)
68
+ return false;
64
69
  if (!('identifier' in value) || value['identifier'] === undefined)
65
70
  return false;
66
71
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -92,6 +97,8 @@ function AdminListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
92
97
  'onboardingStatus': json['onboardingStatus'],
93
98
  'payoutProvider': json['payoutProvider'],
94
99
  'affiliateId': json['affiliateId'],
100
+ 'portfolioSize': (0, ListAccountPortfolioSizeDto_1.ListAccountPortfolioSizeDtoFromJSON)(json['portfolioSize']),
101
+ 'companyName': json['companyName'],
95
102
  'identifier': json['identifier'],
96
103
  'createdAt': (new Date(json['createdAt'])),
97
104
  'name': json['name'],
@@ -117,6 +124,8 @@ function AdminListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
117
124
  'onboardingStatus': value['onboardingStatus'],
118
125
  'payoutProvider': value['payoutProvider'],
119
126
  'affiliateId': value['affiliateId'],
127
+ 'portfolioSize': (0, ListAccountPortfolioSizeDto_1.ListAccountPortfolioSizeDtoToJSON)(value['portfolioSize']),
128
+ 'companyName': value['companyName'],
120
129
  'identifier': value['identifier'],
121
130
  'createdAt': ((value['createdAt']).toISOString()),
122
131
  'name': value['name'],
@@ -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
  }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ListAccountPortfolioSizeDto
16
+ */
17
+ export interface ListAccountPortfolioSizeDto {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ListAccountPortfolioSizeDto
22
+ */
23
+ from: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ListAccountPortfolioSizeDto
28
+ */
29
+ to: number | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ListAccountPortfolioSizeDto interface.
33
+ */
34
+ export declare function instanceOfListAccountPortfolioSizeDto(value: object): value is ListAccountPortfolioSizeDto;
35
+ export declare function ListAccountPortfolioSizeDtoFromJSON(json: any): ListAccountPortfolioSizeDto;
36
+ export declare function ListAccountPortfolioSizeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccountPortfolioSizeDto;
37
+ export declare function ListAccountPortfolioSizeDtoToJSON(json: any): ListAccountPortfolioSizeDto;
38
+ export declare function ListAccountPortfolioSizeDtoToJSONTyped(value?: ListAccountPortfolioSizeDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfListAccountPortfolioSizeDto = instanceOfListAccountPortfolioSizeDto;
17
+ exports.ListAccountPortfolioSizeDtoFromJSON = ListAccountPortfolioSizeDtoFromJSON;
18
+ exports.ListAccountPortfolioSizeDtoFromJSONTyped = ListAccountPortfolioSizeDtoFromJSONTyped;
19
+ exports.ListAccountPortfolioSizeDtoToJSON = ListAccountPortfolioSizeDtoToJSON;
20
+ exports.ListAccountPortfolioSizeDtoToJSONTyped = ListAccountPortfolioSizeDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ListAccountPortfolioSizeDto interface.
23
+ */
24
+ function instanceOfListAccountPortfolioSizeDto(value) {
25
+ if (!('from' in value) || value['from'] === undefined)
26
+ return false;
27
+ if (!('to' in value) || value['to'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ListAccountPortfolioSizeDtoFromJSON(json) {
32
+ return ListAccountPortfolioSizeDtoFromJSONTyped(json, false);
33
+ }
34
+ function ListAccountPortfolioSizeDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'from': json['from'],
40
+ 'to': json['to'],
41
+ };
42
+ }
43
+ function ListAccountPortfolioSizeDtoToJSON(json) {
44
+ return ListAccountPortfolioSizeDtoToJSONTyped(json, false);
45
+ }
46
+ function ListAccountPortfolioSizeDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'from': value['from'],
53
+ 'to': value['to'],
54
+ };
55
+ }
@@ -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
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { RegisterAccountPortfolioSizeInput } from './RegisterAccountPortfolioSizeInput';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -21,6 +22,18 @@ export interface RegisterAccountInput {
21
22
  * @memberof RegisterAccountInput
22
23
  */
23
24
  affiliateIdentifier?: string | null;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof RegisterAccountInput
29
+ */
30
+ companyName?: string | null;
31
+ /**
32
+ *
33
+ * @type {RegisterAccountPortfolioSizeInput}
34
+ * @memberof RegisterAccountInput
35
+ */
36
+ portfolioSize?: RegisterAccountPortfolioSizeInput | null;
24
37
  /**
25
38
  *
26
39
  * @type {string}
@@ -19,6 +19,7 @@ exports.RegisterAccountInputFromJSON = RegisterAccountInputFromJSON;
19
19
  exports.RegisterAccountInputFromJSONTyped = RegisterAccountInputFromJSONTyped;
20
20
  exports.RegisterAccountInputToJSON = RegisterAccountInputToJSON;
21
21
  exports.RegisterAccountInputToJSONTyped = RegisterAccountInputToJSONTyped;
22
+ var RegisterAccountPortfolioSizeInput_1 = require("./RegisterAccountPortfolioSizeInput");
22
23
  /**
23
24
  * @export
24
25
  */
@@ -52,6 +53,8 @@ function RegisterAccountInputFromJSONTyped(json, ignoreDiscriminator) {
52
53
  }
53
54
  return {
54
55
  'affiliateIdentifier': json['affiliateIdentifier'] == null ? undefined : json['affiliateIdentifier'],
56
+ 'companyName': json['companyName'] == null ? undefined : json['companyName'],
57
+ 'portfolioSize': json['portfolioSize'] == null ? undefined : (0, RegisterAccountPortfolioSizeInput_1.RegisterAccountPortfolioSizeInputFromJSON)(json['portfolioSize']),
55
58
  'locale': json['locale'],
56
59
  'firstname': json['firstname'],
57
60
  'lastname': json['lastname'],
@@ -73,6 +76,8 @@ function RegisterAccountInputToJSONTyped(value, ignoreDiscriminator) {
73
76
  }
74
77
  return {
75
78
  'affiliateIdentifier': value['affiliateIdentifier'],
79
+ 'companyName': value['companyName'],
80
+ 'portfolioSize': (0, RegisterAccountPortfolioSizeInput_1.RegisterAccountPortfolioSizeInputToJSON)(value['portfolioSize']),
76
81
  'locale': value['locale'],
77
82
  'firstname': value['firstname'],
78
83
  'lastname': value['lastname'],
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RegisterAccountPortfolioSizeInput
16
+ */
17
+ export interface RegisterAccountPortfolioSizeInput {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof RegisterAccountPortfolioSizeInput
22
+ */
23
+ from: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof RegisterAccountPortfolioSizeInput
28
+ */
29
+ to?: number | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the RegisterAccountPortfolioSizeInput interface.
33
+ */
34
+ export declare function instanceOfRegisterAccountPortfolioSizeInput(value: object): value is RegisterAccountPortfolioSizeInput;
35
+ export declare function RegisterAccountPortfolioSizeInputFromJSON(json: any): RegisterAccountPortfolioSizeInput;
36
+ export declare function RegisterAccountPortfolioSizeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterAccountPortfolioSizeInput;
37
+ export declare function RegisterAccountPortfolioSizeInputToJSON(json: any): RegisterAccountPortfolioSizeInput;
38
+ export declare function RegisterAccountPortfolioSizeInputToJSONTyped(value?: RegisterAccountPortfolioSizeInput | null, ignoreDiscriminator?: boolean): any;