@randock/nameshift-api-client 0.0.89 → 0.0.91

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 (38) hide show
  1. package/.openapi-generator/FILES +3 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/dist/apis/BuyersApi.d.ts +35 -1
  5. package/dist/apis/BuyersApi.js +160 -0
  6. package/dist/models/AccountSettingsInput.d.ts +3 -3
  7. package/dist/models/AccountSettingsInput.js +3 -3
  8. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +14 -2
  9. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +8 -0
  10. package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +23 -2
  11. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +15 -0
  12. package/dist/models/LeadDomainDto.d.ts +43 -0
  13. package/dist/models/LeadDomainDto.js +54 -0
  14. package/dist/models/LeadDto.d.ts +96 -0
  15. package/dist/models/LeadDto.js +96 -0
  16. package/dist/models/LeadMessageDto.d.ts +2 -0
  17. package/dist/models/LeadMessageDto.js +2 -0
  18. package/dist/models/PutBuyerLeadOfferInput.d.ts +32 -0
  19. package/dist/models/PutBuyerLeadOfferInput.js +47 -0
  20. package/dist/models/UpdateDomainInput.d.ts +5 -5
  21. package/dist/models/UpdateDomainInput.js +5 -5
  22. package/dist/models/index.d.ts +3 -1
  23. package/dist/models/index.js +3 -1
  24. package/package.json +1 -1
  25. package/src/apis/BuyersApi.ts +150 -0
  26. package/src/apis/LeadsApi.ts +3 -0
  27. package/src/models/AccountSettingsInput.ts +9 -9
  28. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +20 -2
  29. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +37 -2
  30. package/src/models/LeadDomainDto.ts +79 -0
  31. package/src/models/LeadDto.ts +162 -0
  32. package/src/models/LeadMessageDto.ts +2 -0
  33. package/src/models/PutBuyerLeadOfferInput.ts +68 -0
  34. package/src/models/UpdateDomainInput.ts +13 -13
  35. package/src/models/index.ts +3 -1
  36. package/dist/models/MoneyInput.d.ts +0 -37
  37. package/dist/models/MoneyInput.js +0 -50
  38. package/src/models/MoneyInput.ts +0 -70
@@ -73,6 +73,8 @@ src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
73
73
  src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts
74
74
  src/models/IntersectionLeadDtoWithLeadDetailsDto.ts
75
75
  src/models/IntersectionLeadDtoWithListFieldsDto.ts
76
+ src/models/LeadDomainDto.ts
77
+ src/models/LeadDto.ts
76
78
  src/models/LeadMessageData.ts
77
79
  src/models/LeadMessageDto.ts
78
80
  src/models/LeadStatusDto.ts
@@ -84,7 +86,6 @@ src/models/ListLeadMessagesDto.ts
84
86
  src/models/LoginDto.ts
85
87
  src/models/LoginInput.ts
86
88
  src/models/MoneyDto.ts
87
- src/models/MoneyInput.ts
88
89
  src/models/NotFoundException.ts
89
90
  src/models/ObjectId.ts
90
91
  src/models/OrderDto.ts
@@ -97,6 +98,7 @@ src/models/PaginateResponseLinks.ts
97
98
  src/models/PaginateResponseMeta.ts
98
99
  src/models/PublicLeadBuyerDto.ts
99
100
  src/models/PublicLeadDto.ts
101
+ src/models/PutBuyerLeadOfferInput.ts
100
102
  src/models/PutLeadOfferInput.ts
101
103
  src/models/RegisterAccountInput.ts
102
104
  src/models/RelatedSellerDomain.ts
@@ -1 +1 @@
1
- 7.7.0-SNAPSHOT
1
+ 7.8.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.89
1
+ ## @randock/nameshift-api-client@0.0.91
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.89 --save
39
+ npm install @randock/nameshift-api-client@0.0.91 --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
- 9f65397de9dca9b95a55020d077922176a3b068750b72eeebba2590ad917b35862eea43912639c709f31f0f71ecfb2dc
47
+ a0d15bbdf71ee9d315e272e6588fdd17c6e9c6510620d6adcc9f87d6fbb34de63f6e4b372bc2cd144536d1fe7fdcfff6
@@ -10,7 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchReadBuyerLeadMessageInput, BuyerDomainTransferAuthCodeDto, BuyerUserDto, CreateBuyerLeadMessageInput, GetBuyerLeads200Response, GetBuyerTransfers200Response, LeadMessageDto, ObjectId, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
13
+ import type { BatchReadBuyerLeadMessageInput, BuyerDomainTransferAuthCodeDto, BuyerUserDto, CreateBuyerLeadMessageInput, GetBuyerLeads200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
14
+ export interface BuyersApiAcceptBuyerLeadOfferRequest {
15
+ leadId: string;
16
+ }
14
17
  export interface BuyersApiBulkReadBuyerLeadMessageRequest {
15
18
  leadId: string;
16
19
  batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
@@ -19,6 +22,9 @@ export interface BuyersApiCreateBuyerLeadMessageRequest {
19
22
  leadId: string;
20
23
  createBuyerLeadMessageInput: CreateBuyerLeadMessageInput;
21
24
  }
25
+ export interface BuyersApiGetBuyerLeadRequest {
26
+ leadId: string;
27
+ }
22
28
  export interface BuyersApiGetBuyerLeadMessagesRequest {
23
29
  leadId: string;
24
30
  }
@@ -41,6 +47,10 @@ export interface BuyersApiPatchDomainTransferConfirmationRequest {
41
47
  transferId: string;
42
48
  setDomainTransferConfirmationInput: SetDomainTransferConfirmationInput;
43
49
  }
50
+ export interface BuyersApiPutBuyerOfferRequest {
51
+ leadId: string;
52
+ putBuyerLeadOfferInput: PutBuyerLeadOfferInput;
53
+ }
44
54
  export interface BuyersApiSetLocaleRequest {
45
55
  storeBuyerLocaleInput: StoreBuyerLocaleInput;
46
56
  }
@@ -48,6 +58,14 @@ export interface BuyersApiSetLocaleRequest {
48
58
  *
49
59
  */
50
60
  export declare class BuyersApi extends runtime.BaseAPI {
61
+ /**
62
+ *
63
+ */
64
+ acceptBuyerLeadOfferRaw(requestParameters: BuyersApiAcceptBuyerLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
65
+ /**
66
+ *
67
+ */
68
+ acceptBuyerLeadOffer(requestParameters: BuyersApiAcceptBuyerLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
51
69
  /**
52
70
  *
53
71
  */
@@ -72,6 +90,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
72
90
  *
73
91
  */
74
92
  createBuyerLeadMessage(requestParameters: BuyersApiCreateBuyerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
93
+ /**
94
+ *
95
+ */
96
+ getBuyerLeadRaw(requestParameters: BuyersApiGetBuyerLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>>;
97
+ /**
98
+ *
99
+ */
100
+ getBuyerLead(requestParameters: BuyersApiGetBuyerLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto>;
75
101
  /**
76
102
  *
77
103
  */
@@ -112,6 +138,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
112
138
  *
113
139
  */
114
140
  patchDomainTransferConfirmation(requestParameters: BuyersApiPatchDomainTransferConfirmationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
141
+ /**
142
+ *
143
+ */
144
+ putBuyerOfferRaw(requestParameters: BuyersApiPutBuyerOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
145
+ /**
146
+ *
147
+ */
148
+ putBuyerOffer(requestParameters: BuyersApiPutBuyerOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
115
149
  /**
116
150
  *
117
151
  */
@@ -75,6 +75,57 @@ var BuyersApi = /** @class */ (function (_super) {
75
75
  function BuyersApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ *
80
+ */
81
+ BuyersApi.prototype.acceptBuyerLeadOfferRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, token, tokenString, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (requestParameters['leadId'] == null) {
88
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling acceptBuyerLeadOffer().');
89
+ }
90
+ queryParameters = {};
91
+ headerParameters = {};
92
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
93
+ token = this.configuration.accessToken;
94
+ return [4 /*yield*/, token("bearer", [])];
95
+ case 1:
96
+ tokenString = _a.sent();
97
+ if (tokenString) {
98
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
99
+ }
100
+ _a.label = 2;
101
+ case 2: return [4 /*yield*/, this.request({
102
+ path: "/buyers/private/lead/{leadId}/status/accept".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
103
+ method: 'PATCH',
104
+ headers: headerParameters,
105
+ query: queryParameters,
106
+ }, initOverrides)];
107
+ case 3:
108
+ response = _a.sent();
109
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
110
+ }
111
+ });
112
+ });
113
+ };
114
+ /**
115
+ *
116
+ */
117
+ BuyersApi.prototype.acceptBuyerLeadOffer = function (requestParameters, initOverrides) {
118
+ return __awaiter(this, void 0, void 0, function () {
119
+ return __generator(this, function (_a) {
120
+ switch (_a.label) {
121
+ case 0: return [4 /*yield*/, this.acceptBuyerLeadOfferRaw(requestParameters, initOverrides)];
122
+ case 1:
123
+ _a.sent();
124
+ return [2 /*return*/];
125
+ }
126
+ });
127
+ });
128
+ };
78
129
  /**
79
130
  *
80
131
  */
@@ -239,6 +290,59 @@ var BuyersApi = /** @class */ (function (_super) {
239
290
  });
240
291
  });
241
292
  };
293
+ /**
294
+ *
295
+ */
296
+ BuyersApi.prototype.getBuyerLeadRaw = function (requestParameters, initOverrides) {
297
+ return __awaiter(this, void 0, void 0, function () {
298
+ var queryParameters, headerParameters, token, tokenString, response;
299
+ return __generator(this, function (_a) {
300
+ switch (_a.label) {
301
+ case 0:
302
+ if (requestParameters['leadId'] == null) {
303
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getBuyerLead().');
304
+ }
305
+ queryParameters = {};
306
+ headerParameters = {};
307
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
308
+ token = this.configuration.accessToken;
309
+ return [4 /*yield*/, token("bearer", [])];
310
+ case 1:
311
+ tokenString = _a.sent();
312
+ if (tokenString) {
313
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
314
+ }
315
+ _a.label = 2;
316
+ case 2: return [4 /*yield*/, this.request({
317
+ path: "/buyers/private/lead/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
318
+ method: 'GET',
319
+ headers: headerParameters,
320
+ query: queryParameters,
321
+ }, initOverrides)];
322
+ case 3:
323
+ response = _a.sent();
324
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadDtoFromJSON)(jsonValue); })];
325
+ }
326
+ });
327
+ });
328
+ };
329
+ /**
330
+ *
331
+ */
332
+ BuyersApi.prototype.getBuyerLead = function (requestParameters, initOverrides) {
333
+ return __awaiter(this, void 0, void 0, function () {
334
+ var response;
335
+ return __generator(this, function (_a) {
336
+ switch (_a.label) {
337
+ case 0: return [4 /*yield*/, this.getBuyerLeadRaw(requestParameters, initOverrides)];
338
+ case 1:
339
+ response = _a.sent();
340
+ return [4 /*yield*/, response.value()];
341
+ case 2: return [2 /*return*/, _a.sent()];
342
+ }
343
+ });
344
+ });
345
+ };
242
346
  /**
243
347
  *
244
348
  */
@@ -527,6 +631,62 @@ var BuyersApi = /** @class */ (function (_super) {
527
631
  });
528
632
  });
529
633
  };
634
+ /**
635
+ *
636
+ */
637
+ BuyersApi.prototype.putBuyerOfferRaw = function (requestParameters, initOverrides) {
638
+ return __awaiter(this, void 0, void 0, function () {
639
+ var queryParameters, headerParameters, token, tokenString, response;
640
+ return __generator(this, function (_a) {
641
+ switch (_a.label) {
642
+ case 0:
643
+ if (requestParameters['leadId'] == null) {
644
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling putBuyerOffer().');
645
+ }
646
+ if (requestParameters['putBuyerLeadOfferInput'] == null) {
647
+ throw new runtime.RequiredError('putBuyerLeadOfferInput', 'Required parameter "putBuyerLeadOfferInput" was null or undefined when calling putBuyerOffer().');
648
+ }
649
+ queryParameters = {};
650
+ headerParameters = {};
651
+ headerParameters['Content-Type'] = 'application/json';
652
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
653
+ token = this.configuration.accessToken;
654
+ return [4 /*yield*/, token("bearer", [])];
655
+ case 1:
656
+ tokenString = _a.sent();
657
+ if (tokenString) {
658
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
659
+ }
660
+ _a.label = 2;
661
+ case 2: return [4 /*yield*/, this.request({
662
+ path: "/buyers/private/lead/{leadId}/offer".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
663
+ method: 'PUT',
664
+ headers: headerParameters,
665
+ query: queryParameters,
666
+ body: (0, index_1.PutBuyerLeadOfferInputToJSON)(requestParameters['putBuyerLeadOfferInput']),
667
+ }, initOverrides)];
668
+ case 3:
669
+ response = _a.sent();
670
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
671
+ }
672
+ });
673
+ });
674
+ };
675
+ /**
676
+ *
677
+ */
678
+ BuyersApi.prototype.putBuyerOffer = function (requestParameters, initOverrides) {
679
+ return __awaiter(this, void 0, void 0, function () {
680
+ return __generator(this, function (_a) {
681
+ switch (_a.label) {
682
+ case 0: return [4 /*yield*/, this.putBuyerOfferRaw(requestParameters, initOverrides)];
683
+ case 1:
684
+ _a.sent();
685
+ return [2 /*return*/];
686
+ }
687
+ });
688
+ });
689
+ };
530
690
  /**
531
691
  *
532
692
  */
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MoneyInput } from './MoneyInput';
12
+ import type { MoneyDto } from './MoneyDto';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -24,10 +24,10 @@ export interface AccountSettingsInput {
24
24
  name?: string;
25
25
  /**
26
26
  *
27
- * @type {MoneyInput}
27
+ * @type {MoneyDto}
28
28
  * @memberof AccountSettingsInput
29
29
  */
30
- defaultStartingOffer?: MoneyInput;
30
+ defaultStartingOffer?: MoneyDto;
31
31
  /**
32
32
  *
33
33
  * @type {string}
@@ -17,7 +17,7 @@ exports.instanceOfAccountSettingsInput = instanceOfAccountSettingsInput;
17
17
  exports.AccountSettingsInputFromJSON = AccountSettingsInputFromJSON;
18
18
  exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
19
19
  exports.AccountSettingsInputToJSON = AccountSettingsInputToJSON;
20
- var MoneyInput_1 = require("./MoneyInput");
20
+ var MoneyDto_1 = require("./MoneyDto");
21
21
  /**
22
22
  * Check if a given object implements the AccountSettingsInput interface.
23
23
  */
@@ -33,7 +33,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'name': json['name'] == null ? undefined : json['name'],
36
- 'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['defaultStartingOffer']),
36
+ 'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
37
37
  'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
38
38
  };
39
39
  }
@@ -43,7 +43,7 @@ function AccountSettingsInputToJSON(value) {
43
43
  }
44
44
  return {
45
45
  'name': value['name'],
46
- 'defaultStartingOffer': (0, MoneyInput_1.MoneyInputToJSON)(value['defaultStartingOffer']),
46
+ 'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
47
47
  'defaultCurrencyCode': value['defaultCurrencyCode'],
48
48
  };
49
49
  }
@@ -18,7 +18,7 @@ import type { MoneyDto } from './MoneyDto';
18
18
  */
19
19
  export interface IntersectionLeadDtoWithLeadDetailsDto {
20
20
  /**
21
- * The current id
21
+ * The lead id
22
22
  * @type {string}
23
23
  * @memberof IntersectionLeadDtoWithLeadDetailsDto
24
24
  */
@@ -30,7 +30,7 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
30
30
  */
31
31
  status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
32
32
  /**
33
- *
33
+ * The lead last offer amount
34
34
  * @type {MoneyDto}
35
35
  * @memberof IntersectionLeadDtoWithLeadDetailsDto
36
36
  */
@@ -53,6 +53,18 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
53
53
  * @memberof IntersectionLeadDtoWithLeadDetailsDto
54
54
  */
55
55
  createdAt: Date;
56
+ /**
57
+ * Number of buyer unread messages
58
+ * @type {number}
59
+ * @memberof IntersectionLeadDtoWithLeadDetailsDto
60
+ */
61
+ unreadBuyerMessagesNumber: number;
62
+ /**
63
+ * Number of seller unread messages
64
+ * @type {number}
65
+ * @memberof IntersectionLeadDtoWithLeadDetailsDto
66
+ */
67
+ unreadSellerMessagesNumber: number;
56
68
  }
57
69
  /**
58
70
  * @export
@@ -55,6 +55,10 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value) {
55
55
  return false;
56
56
  if (!('createdAt' in value) || value['createdAt'] === undefined)
57
57
  return false;
58
+ if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined)
59
+ return false;
60
+ if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
61
+ return false;
58
62
  return true;
59
63
  }
60
64
  function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json) {
@@ -71,6 +75,8 @@ function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, ignoreDiscrimi
71
75
  'lastOfferBy': json['lastOfferBy'],
72
76
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
73
77
  'createdAt': (new Date(json['createdAt'])),
78
+ 'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
79
+ 'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
74
80
  };
75
81
  }
76
82
  function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value) {
@@ -84,5 +90,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value) {
84
90
  'lastOfferBy': value['lastOfferBy'],
85
91
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value['domain']),
86
92
  'createdAt': ((value['createdAt']).toISOString()),
93
+ 'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
94
+ 'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
87
95
  };
88
96
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { LeadMessageData } from './LeadMessageData';
13
+ import type { LeadDomainDto } from './LeadDomainDto';
13
14
  import type { MoneyDto } from './MoneyDto';
14
15
  /**
15
16
  *
@@ -18,7 +19,7 @@ import type { MoneyDto } from './MoneyDto';
18
19
  */
19
20
  export interface IntersectionLeadDtoWithListFieldsDto {
20
21
  /**
21
- * The current id
22
+ * The lead id
22
23
  * @type {string}
23
24
  * @memberof IntersectionLeadDtoWithListFieldsDto
24
25
  */
@@ -30,7 +31,7 @@ export interface IntersectionLeadDtoWithListFieldsDto {
30
31
  */
31
32
  status: IntersectionLeadDtoWithListFieldsDtoStatusEnum;
32
33
  /**
33
- *
34
+ * The lead last offer amount
34
35
  * @type {MoneyDto}
35
36
  * @memberof IntersectionLeadDtoWithListFieldsDto
36
37
  */
@@ -65,6 +66,24 @@ export interface IntersectionLeadDtoWithListFieldsDto {
65
66
  * @memberof IntersectionLeadDtoWithListFieldsDto
66
67
  */
67
68
  createdAt: Date;
69
+ /**
70
+ * Domain information
71
+ * @type {LeadDomainDto}
72
+ * @memberof IntersectionLeadDtoWithListFieldsDto
73
+ */
74
+ domain: LeadDomainDto;
75
+ /**
76
+ * Number of buyer unread messages
77
+ * @type {number}
78
+ * @memberof IntersectionLeadDtoWithListFieldsDto
79
+ */
80
+ unreadBuyerMessagesNumber: number;
81
+ /**
82
+ * Number of seller unread messages
83
+ * @type {number}
84
+ * @memberof IntersectionLeadDtoWithListFieldsDto
85
+ */
86
+ unreadSellerMessagesNumber: number;
68
87
  /**
69
88
  *
70
89
  * @type {string}
@@ -125,6 +144,8 @@ export type IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = typeof Int
125
144
  */
126
145
  export declare const IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum: {
127
146
  readonly OFFER: "offer";
147
+ readonly OFFER_WITHDRAWN: "offer_withdrawn";
148
+ readonly OFFER_REJECTED: "offer_rejected";
128
149
  readonly MESSAGE: "message";
129
150
  };
130
151
  export type IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum];
@@ -19,6 +19,7 @@ exports.IntersectionLeadDtoWithListFieldsDtoFromJSON = IntersectionLeadDtoWithLi
19
19
  exports.IntersectionLeadDtoWithListFieldsDtoFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoFromJSONTyped;
20
20
  exports.IntersectionLeadDtoWithListFieldsDtoToJSON = IntersectionLeadDtoWithListFieldsDtoToJSON;
21
21
  var LeadMessageData_1 = require("./LeadMessageData");
22
+ var LeadDomainDto_1 = require("./LeadDomainDto");
22
23
  var MoneyDto_1 = require("./MoneyDto");
23
24
  /**
24
25
  * @export
@@ -52,6 +53,8 @@ exports.IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = {
52
53
  */
53
54
  exports.IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = {
54
55
  OFFER: 'offer',
56
+ OFFER_WITHDRAWN: 'offer_withdrawn',
57
+ OFFER_REJECTED: 'offer_rejected',
55
58
  MESSAGE: 'message'
56
59
  };
57
60
  /**
@@ -74,6 +77,12 @@ function instanceOfIntersectionLeadDtoWithListFieldsDto(value) {
74
77
  return false;
75
78
  if (!('createdAt' in value) || value['createdAt'] === undefined)
76
79
  return false;
80
+ if (!('domain' in value) || value['domain'] === undefined)
81
+ return false;
82
+ if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined)
83
+ return false;
84
+ if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
85
+ return false;
77
86
  if (!('domainName' in value) || value['domainName'] === undefined)
78
87
  return false;
79
88
  if (!('buyerInitials' in value) || value['buyerInitials'] === undefined)
@@ -100,6 +109,9 @@ function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json, ignoreDiscrimin
100
109
  'lastMessageType': json['lastMessageType'],
101
110
  'lastMessageData': (0, LeadMessageData_1.LeadMessageDataFromJSON)(json['lastMessageData']),
102
111
  'createdAt': (new Date(json['createdAt'])),
112
+ 'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
113
+ 'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
114
+ 'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
103
115
  'domainName': json['domainName'],
104
116
  'buyerInitials': json['buyerInitials'],
105
117
  'lastMessageMessage': json['lastMessageMessage'],
@@ -119,6 +131,9 @@ function IntersectionLeadDtoWithListFieldsDtoToJSON(value) {
119
131
  'lastMessageType': value['lastMessageType'],
120
132
  'lastMessageData': (0, LeadMessageData_1.LeadMessageDataToJSON)(value['lastMessageData']),
121
133
  'createdAt': ((value['createdAt']).toISOString()),
134
+ 'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
135
+ 'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
136
+ 'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
122
137
  'domainName': value['domainName'],
123
138
  'buyerInitials': value['buyerInitials'],
124
139
  'lastMessageMessage': value['lastMessageMessage'],
@@ -0,0 +1,43 @@
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 LeadDomainDto
16
+ */
17
+ export interface LeadDomainDto {
18
+ /**
19
+ * The domain id
20
+ * @type {string}
21
+ * @memberof LeadDomainDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * Domain name
26
+ * @type {string}
27
+ * @memberof LeadDomainDto
28
+ */
29
+ name: string;
30
+ /**
31
+ * Domain currency code
32
+ * @type {string}
33
+ * @memberof LeadDomainDto
34
+ */
35
+ currencyCode: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the LeadDomainDto interface.
39
+ */
40
+ export declare function instanceOfLeadDomainDto(value: object): value is LeadDomainDto;
41
+ export declare function LeadDomainDtoFromJSON(json: any): LeadDomainDto;
42
+ export declare function LeadDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDomainDto;
43
+ export declare function LeadDomainDtoToJSON(value?: LeadDomainDto | null): any;
@@ -0,0 +1,54 @@
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.instanceOfLeadDomainDto = instanceOfLeadDomainDto;
17
+ exports.LeadDomainDtoFromJSON = LeadDomainDtoFromJSON;
18
+ exports.LeadDomainDtoFromJSONTyped = LeadDomainDtoFromJSONTyped;
19
+ exports.LeadDomainDtoToJSON = LeadDomainDtoToJSON;
20
+ /**
21
+ * Check if a given object implements the LeadDomainDto interface.
22
+ */
23
+ function instanceOfLeadDomainDto(value) {
24
+ if (!('id' in value) || value['id'] === undefined)
25
+ return false;
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function LeadDomainDtoFromJSON(json) {
33
+ return LeadDomainDtoFromJSONTyped(json, false);
34
+ }
35
+ function LeadDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'name': json['name'],
42
+ 'currencyCode': json['currencyCode'],
43
+ };
44
+ }
45
+ function LeadDomainDtoToJSON(value) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'id': value['id'],
51
+ 'name': value['name'],
52
+ 'currencyCode': value['currencyCode'],
53
+ };
54
+ }