@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
@@ -0,0 +1,96 @@
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
+ import type { LeadDomainDto } from './LeadDomainDto';
13
+ import type { MoneyDto } from './MoneyDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface LeadDto
18
+ */
19
+ export interface LeadDto {
20
+ /**
21
+ * The lead id
22
+ * @type {string}
23
+ * @memberof LeadDto
24
+ */
25
+ id: string;
26
+ /**
27
+ * The current lead status
28
+ * @type {string}
29
+ * @memberof LeadDto
30
+ */
31
+ status: LeadDtoStatusEnum;
32
+ /**
33
+ * The lead last offer amount
34
+ * @type {MoneyDto}
35
+ * @memberof LeadDto
36
+ */
37
+ lastOffer: MoneyDto | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof LeadDto
42
+ */
43
+ lastOfferBy: LeadDtoLastOfferByEnum | null;
44
+ /**
45
+ * Created at date
46
+ * @type {Date}
47
+ * @memberof LeadDto
48
+ */
49
+ createdAt: Date;
50
+ /**
51
+ * Domain information
52
+ * @type {LeadDomainDto}
53
+ * @memberof LeadDto
54
+ */
55
+ domain: LeadDomainDto;
56
+ /**
57
+ * Number of buyer unread messages
58
+ * @type {number}
59
+ * @memberof LeadDto
60
+ */
61
+ unreadBuyerMessagesNumber: number;
62
+ /**
63
+ * Number of seller unread messages
64
+ * @type {number}
65
+ * @memberof LeadDto
66
+ */
67
+ unreadSellerMessagesNumber: number;
68
+ }
69
+ /**
70
+ * @export
71
+ */
72
+ export declare const LeadDtoStatusEnum: {
73
+ readonly UNVERIFIED: "unverified";
74
+ readonly ACTIVE: "active";
75
+ readonly ACCEPTED: "accepted";
76
+ readonly FINISHED: "finished";
77
+ readonly DELETED: "deleted";
78
+ readonly ARCHIVED: "archived";
79
+ };
80
+ export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
81
+ /**
82
+ * @export
83
+ */
84
+ export declare const LeadDtoLastOfferByEnum: {
85
+ readonly BUYER: "buyer";
86
+ readonly SELLER: "seller";
87
+ readonly ADMIN: "admin";
88
+ };
89
+ export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
90
+ /**
91
+ * Check if a given object implements the LeadDto interface.
92
+ */
93
+ export declare function instanceOfLeadDto(value: object): value is LeadDto;
94
+ export declare function LeadDtoFromJSON(json: any): LeadDto;
95
+ export declare function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDto;
96
+ export declare function LeadDtoToJSON(value?: LeadDto | null): any;
@@ -0,0 +1,96 @@
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.LeadDtoLastOfferByEnum = exports.LeadDtoStatusEnum = void 0;
17
+ exports.instanceOfLeadDto = instanceOfLeadDto;
18
+ exports.LeadDtoFromJSON = LeadDtoFromJSON;
19
+ exports.LeadDtoFromJSONTyped = LeadDtoFromJSONTyped;
20
+ exports.LeadDtoToJSON = LeadDtoToJSON;
21
+ var LeadDomainDto_1 = require("./LeadDomainDto");
22
+ var MoneyDto_1 = require("./MoneyDto");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.LeadDtoStatusEnum = {
27
+ UNVERIFIED: 'unverified',
28
+ ACTIVE: 'active',
29
+ ACCEPTED: 'accepted',
30
+ FINISHED: 'finished',
31
+ DELETED: 'deleted',
32
+ ARCHIVED: 'archived'
33
+ };
34
+ /**
35
+ * @export
36
+ */
37
+ exports.LeadDtoLastOfferByEnum = {
38
+ BUYER: 'buyer',
39
+ SELLER: 'seller',
40
+ ADMIN: 'admin'
41
+ };
42
+ /**
43
+ * Check if a given object implements the LeadDto interface.
44
+ */
45
+ function instanceOfLeadDto(value) {
46
+ if (!('id' in value) || value['id'] === undefined)
47
+ return false;
48
+ if (!('status' in value) || value['status'] === undefined)
49
+ return false;
50
+ if (!('lastOffer' in value) || value['lastOffer'] === undefined)
51
+ return false;
52
+ if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
53
+ return false;
54
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
55
+ return false;
56
+ if (!('domain' in value) || value['domain'] === undefined)
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;
62
+ return true;
63
+ }
64
+ function LeadDtoFromJSON(json) {
65
+ return LeadDtoFromJSONTyped(json, false);
66
+ }
67
+ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+ 'id': json['id'],
73
+ 'status': json['status'],
74
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
75
+ 'lastOfferBy': json['lastOfferBy'],
76
+ 'createdAt': (new Date(json['createdAt'])),
77
+ 'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
78
+ 'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
79
+ 'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
80
+ };
81
+ }
82
+ function LeadDtoToJSON(value) {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+ return {
87
+ 'id': value['id'],
88
+ 'status': value['status'],
89
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
90
+ 'lastOfferBy': value['lastOfferBy'],
91
+ 'createdAt': ((value['createdAt']).toISOString()),
92
+ 'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
93
+ 'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
94
+ 'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
95
+ };
96
+ }
@@ -76,6 +76,8 @@ export interface LeadMessageDto {
76
76
  */
77
77
  export declare const LeadMessageDtoTypeEnum: {
78
78
  readonly OFFER: "offer";
79
+ readonly OFFER_WITHDRAWN: "offer_withdrawn";
80
+ readonly OFFER_REJECTED: "offer_rejected";
79
81
  readonly MESSAGE: "message";
80
82
  };
81
83
  export type LeadMessageDtoTypeEnum = typeof LeadMessageDtoTypeEnum[keyof typeof LeadMessageDtoTypeEnum];
@@ -24,6 +24,8 @@ var LeadMessageData_1 = require("./LeadMessageData");
24
24
  */
25
25
  exports.LeadMessageDtoTypeEnum = {
26
26
  OFFER: 'offer',
27
+ OFFER_WITHDRAWN: 'offer_withdrawn',
28
+ OFFER_REJECTED: 'offer_rejected',
27
29
  MESSAGE: 'message'
28
30
  };
29
31
  /**
@@ -0,0 +1,32 @@
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
+ import type { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PutBuyerLeadOfferInput
17
+ */
18
+ export interface PutBuyerLeadOfferInput {
19
+ /**
20
+ *
21
+ * @type {MoneyDto}
22
+ * @memberof PutBuyerLeadOfferInput
23
+ */
24
+ offer: MoneyDto | null;
25
+ }
26
+ /**
27
+ * Check if a given object implements the PutBuyerLeadOfferInput interface.
28
+ */
29
+ export declare function instanceOfPutBuyerLeadOfferInput(value: object): value is PutBuyerLeadOfferInput;
30
+ export declare function PutBuyerLeadOfferInputFromJSON(json: any): PutBuyerLeadOfferInput;
31
+ export declare function PutBuyerLeadOfferInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutBuyerLeadOfferInput;
32
+ export declare function PutBuyerLeadOfferInputToJSON(value?: PutBuyerLeadOfferInput | null): any;
@@ -0,0 +1,47 @@
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.instanceOfPutBuyerLeadOfferInput = instanceOfPutBuyerLeadOfferInput;
17
+ exports.PutBuyerLeadOfferInputFromJSON = PutBuyerLeadOfferInputFromJSON;
18
+ exports.PutBuyerLeadOfferInputFromJSONTyped = PutBuyerLeadOfferInputFromJSONTyped;
19
+ exports.PutBuyerLeadOfferInputToJSON = PutBuyerLeadOfferInputToJSON;
20
+ var MoneyDto_1 = require("./MoneyDto");
21
+ /**
22
+ * Check if a given object implements the PutBuyerLeadOfferInput interface.
23
+ */
24
+ function instanceOfPutBuyerLeadOfferInput(value) {
25
+ if (!('offer' in value) || value['offer'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PutBuyerLeadOfferInputFromJSON(json) {
30
+ return PutBuyerLeadOfferInputFromJSONTyped(json, false);
31
+ }
32
+ function PutBuyerLeadOfferInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'offer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['offer']),
38
+ };
39
+ }
40
+ function PutBuyerLeadOfferInputToJSON(value) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
46
+ };
47
+ }
@@ -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
@@ -18,16 +18,16 @@ import type { MoneyInput } from './MoneyInput';
18
18
  export interface UpdateDomainInput {
19
19
  /**
20
20
  *
21
- * @type {MoneyInput}
21
+ * @type {MoneyDto}
22
22
  * @memberof UpdateDomainInput
23
23
  */
24
- bin?: MoneyInput | null;
24
+ bin?: MoneyDto | null;
25
25
  /**
26
26
  *
27
- * @type {MoneyInput}
27
+ * @type {MoneyDto}
28
28
  * @memberof UpdateDomainInput
29
29
  */
30
- minOffer?: MoneyInput | null;
30
+ minOffer?: MoneyDto | null;
31
31
  /**
32
32
  *
33
33
  * @type {string}
@@ -17,7 +17,7 @@ exports.instanceOfUpdateDomainInput = instanceOfUpdateDomainInput;
17
17
  exports.UpdateDomainInputFromJSON = UpdateDomainInputFromJSON;
18
18
  exports.UpdateDomainInputFromJSONTyped = UpdateDomainInputFromJSONTyped;
19
19
  exports.UpdateDomainInputToJSON = UpdateDomainInputToJSON;
20
- var MoneyInput_1 = require("./MoneyInput");
20
+ var MoneyDto_1 = require("./MoneyDto");
21
21
  /**
22
22
  * Check if a given object implements the UpdateDomainInput interface.
23
23
  */
@@ -32,8 +32,8 @@ function UpdateDomainInputFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return json;
33
33
  }
34
34
  return {
35
- 'bin': json['bin'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['bin']),
36
- 'minOffer': json['minOffer'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['minOffer']),
35
+ 'bin': json['bin'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['bin']),
36
+ 'minOffer': json['minOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
37
37
  'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
38
38
  };
39
39
  }
@@ -42,8 +42,8 @@ function UpdateDomainInputToJSON(value) {
42
42
  return value;
43
43
  }
44
44
  return {
45
- 'bin': (0, MoneyInput_1.MoneyInputToJSON)(value['bin']),
46
- 'minOffer': (0, MoneyInput_1.MoneyInputToJSON)(value['minOffer']),
45
+ 'bin': (0, MoneyDto_1.MoneyDtoToJSON)(value['bin']),
46
+ 'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
47
47
  'currencyCode': value['currencyCode'],
48
48
  };
49
49
  }
@@ -53,6 +53,8 @@ export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
53
53
  export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
54
54
  export * from './IntersectionLeadDtoWithLeadDetailsDto';
55
55
  export * from './IntersectionLeadDtoWithListFieldsDto';
56
+ export * from './LeadDomainDto';
57
+ export * from './LeadDto';
56
58
  export * from './LeadMessageData';
57
59
  export * from './LeadMessageDto';
58
60
  export * from './LeadStatusDto';
@@ -64,7 +66,6 @@ export * from './ListLeadMessagesDto';
64
66
  export * from './LoginDto';
65
67
  export * from './LoginInput';
66
68
  export * from './MoneyDto';
67
- export * from './MoneyInput';
68
69
  export * from './NotFoundException';
69
70
  export * from './ObjectId';
70
71
  export * from './OrderDto';
@@ -77,6 +78,7 @@ export * from './PaginateResponseLinks';
77
78
  export * from './PaginateResponseMeta';
78
79
  export * from './PublicLeadBuyerDto';
79
80
  export * from './PublicLeadDto';
81
+ export * from './PutBuyerLeadOfferInput';
80
82
  export * from './PutLeadOfferInput';
81
83
  export * from './RegisterAccountInput';
82
84
  export * from './RelatedSellerDomain';
@@ -71,6 +71,8 @@ __exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), ex
71
71
  __exportStar(require("./IntersectionDomainSalesInformationDtoWithDomainStatsDto"), exports);
72
72
  __exportStar(require("./IntersectionLeadDtoWithLeadDetailsDto"), exports);
73
73
  __exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
74
+ __exportStar(require("./LeadDomainDto"), exports);
75
+ __exportStar(require("./LeadDto"), exports);
74
76
  __exportStar(require("./LeadMessageData"), exports);
75
77
  __exportStar(require("./LeadMessageDto"), exports);
76
78
  __exportStar(require("./LeadStatusDto"), exports);
@@ -82,7 +84,6 @@ __exportStar(require("./ListLeadMessagesDto"), exports);
82
84
  __exportStar(require("./LoginDto"), exports);
83
85
  __exportStar(require("./LoginInput"), exports);
84
86
  __exportStar(require("./MoneyDto"), exports);
85
- __exportStar(require("./MoneyInput"), exports);
86
87
  __exportStar(require("./NotFoundException"), exports);
87
88
  __exportStar(require("./ObjectId"), exports);
88
89
  __exportStar(require("./OrderDto"), exports);
@@ -95,6 +96,7 @@ __exportStar(require("./PaginateResponseLinks"), exports);
95
96
  __exportStar(require("./PaginateResponseMeta"), exports);
96
97
  __exportStar(require("./PublicLeadBuyerDto"), exports);
97
98
  __exportStar(require("./PublicLeadDto"), exports);
99
+ __exportStar(require("./PutBuyerLeadOfferInput"), exports);
98
100
  __exportStar(require("./PutLeadOfferInput"), exports);
99
101
  __exportStar(require("./RegisterAccountInput"), exports);
100
102
  __exportStar(require("./RelatedSellerDomain"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.89",
3
+ "version": "0.0.91",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -22,9 +22,11 @@ import type {
22
22
  CreateBuyerLeadMessageInput,
23
23
  GetBuyerLeads200Response,
24
24
  GetBuyerTransfers200Response,
25
+ LeadDto,
25
26
  LeadMessageDto,
26
27
  NotFoundException,
27
28
  ObjectId,
29
+ PutBuyerLeadOfferInput,
28
30
  SetDomainTransferConfirmationInput,
29
31
  StoreBuyerLocaleInput,
30
32
  ThrottlerException,
@@ -45,12 +47,16 @@ import {
45
47
  GetBuyerLeads200ResponseToJSON,
46
48
  GetBuyerTransfers200ResponseFromJSON,
47
49
  GetBuyerTransfers200ResponseToJSON,
50
+ LeadDtoFromJSON,
51
+ LeadDtoToJSON,
48
52
  LeadMessageDtoFromJSON,
49
53
  LeadMessageDtoToJSON,
50
54
  NotFoundExceptionFromJSON,
51
55
  NotFoundExceptionToJSON,
52
56
  ObjectIdFromJSON,
53
57
  ObjectIdToJSON,
58
+ PutBuyerLeadOfferInputFromJSON,
59
+ PutBuyerLeadOfferInputToJSON,
54
60
  SetDomainTransferConfirmationInputFromJSON,
55
61
  SetDomainTransferConfirmationInputToJSON,
56
62
  StoreBuyerLocaleInputFromJSON,
@@ -61,6 +67,10 @@ import {
61
67
  ValidationExceptionToJSON,
62
68
  } from '../models/index';
63
69
 
70
+ export interface BuyersApiAcceptBuyerLeadOfferRequest {
71
+ leadId: string;
72
+ }
73
+
64
74
  export interface BuyersApiBulkReadBuyerLeadMessageRequest {
65
75
  leadId: string;
66
76
  batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
@@ -71,6 +81,10 @@ export interface BuyersApiCreateBuyerLeadMessageRequest {
71
81
  createBuyerLeadMessageInput: CreateBuyerLeadMessageInput;
72
82
  }
73
83
 
84
+ export interface BuyersApiGetBuyerLeadRequest {
85
+ leadId: string;
86
+ }
87
+
74
88
  export interface BuyersApiGetBuyerLeadMessagesRequest {
75
89
  leadId: string;
76
90
  }
@@ -98,6 +112,11 @@ export interface BuyersApiPatchDomainTransferConfirmationRequest {
98
112
  setDomainTransferConfirmationInput: SetDomainTransferConfirmationInput;
99
113
  }
100
114
 
115
+ export interface BuyersApiPutBuyerOfferRequest {
116
+ leadId: string;
117
+ putBuyerLeadOfferInput: PutBuyerLeadOfferInput;
118
+ }
119
+
101
120
  export interface BuyersApiSetLocaleRequest {
102
121
  storeBuyerLocaleInput: StoreBuyerLocaleInput;
103
122
  }
@@ -107,6 +126,46 @@ export interface BuyersApiSetLocaleRequest {
107
126
  */
108
127
  export class BuyersApi extends runtime.BaseAPI {
109
128
 
129
+ /**
130
+ *
131
+ */
132
+ async acceptBuyerLeadOfferRaw(requestParameters: BuyersApiAcceptBuyerLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
133
+ if (requestParameters['leadId'] == null) {
134
+ throw new runtime.RequiredError(
135
+ 'leadId',
136
+ 'Required parameter "leadId" was null or undefined when calling acceptBuyerLeadOffer().'
137
+ );
138
+ }
139
+
140
+ const queryParameters: any = {};
141
+
142
+ const headerParameters: runtime.HTTPHeaders = {};
143
+
144
+ if (this.configuration && this.configuration.accessToken) {
145
+ const token = this.configuration.accessToken;
146
+ const tokenString = await token("bearer", []);
147
+
148
+ if (tokenString) {
149
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
150
+ }
151
+ }
152
+ const response = await this.request({
153
+ path: `/buyers/private/lead/{leadId}/status/accept`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
154
+ method: 'PATCH',
155
+ headers: headerParameters,
156
+ query: queryParameters,
157
+ }, initOverrides);
158
+
159
+ return new runtime.VoidApiResponse(response);
160
+ }
161
+
162
+ /**
163
+ *
164
+ */
165
+ async acceptBuyerLeadOffer(requestParameters: BuyersApiAcceptBuyerLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
166
+ await this.acceptBuyerLeadOfferRaw(requestParameters, initOverrides);
167
+ }
168
+
110
169
  /**
111
170
  *
112
171
  */
@@ -242,6 +301,47 @@ export class BuyersApi extends runtime.BaseAPI {
242
301
  return await response.value();
243
302
  }
244
303
 
304
+ /**
305
+ *
306
+ */
307
+ async getBuyerLeadRaw(requestParameters: BuyersApiGetBuyerLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>> {
308
+ if (requestParameters['leadId'] == null) {
309
+ throw new runtime.RequiredError(
310
+ 'leadId',
311
+ 'Required parameter "leadId" was null or undefined when calling getBuyerLead().'
312
+ );
313
+ }
314
+
315
+ const queryParameters: any = {};
316
+
317
+ const headerParameters: runtime.HTTPHeaders = {};
318
+
319
+ if (this.configuration && this.configuration.accessToken) {
320
+ const token = this.configuration.accessToken;
321
+ const tokenString = await token("bearer", []);
322
+
323
+ if (tokenString) {
324
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
325
+ }
326
+ }
327
+ const response = await this.request({
328
+ path: `/buyers/private/lead/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
329
+ method: 'GET',
330
+ headers: headerParameters,
331
+ query: queryParameters,
332
+ }, initOverrides);
333
+
334
+ return new runtime.JSONApiResponse(response, (jsonValue) => LeadDtoFromJSON(jsonValue));
335
+ }
336
+
337
+ /**
338
+ *
339
+ */
340
+ async getBuyerLead(requestParameters: BuyersApiGetBuyerLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto> {
341
+ const response = await this.getBuyerLeadRaw(requestParameters, initOverrides);
342
+ return await response.value();
343
+ }
344
+
245
345
  /**
246
346
  *
247
347
  */
@@ -474,6 +574,56 @@ export class BuyersApi extends runtime.BaseAPI {
474
574
  await this.patchDomainTransferConfirmationRaw(requestParameters, initOverrides);
475
575
  }
476
576
 
577
+ /**
578
+ *
579
+ */
580
+ async putBuyerOfferRaw(requestParameters: BuyersApiPutBuyerOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
581
+ if (requestParameters['leadId'] == null) {
582
+ throw new runtime.RequiredError(
583
+ 'leadId',
584
+ 'Required parameter "leadId" was null or undefined when calling putBuyerOffer().'
585
+ );
586
+ }
587
+
588
+ if (requestParameters['putBuyerLeadOfferInput'] == null) {
589
+ throw new runtime.RequiredError(
590
+ 'putBuyerLeadOfferInput',
591
+ 'Required parameter "putBuyerLeadOfferInput" was null or undefined when calling putBuyerOffer().'
592
+ );
593
+ }
594
+
595
+ const queryParameters: any = {};
596
+
597
+ const headerParameters: runtime.HTTPHeaders = {};
598
+
599
+ headerParameters['Content-Type'] = 'application/json';
600
+
601
+ if (this.configuration && this.configuration.accessToken) {
602
+ const token = this.configuration.accessToken;
603
+ const tokenString = await token("bearer", []);
604
+
605
+ if (tokenString) {
606
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
607
+ }
608
+ }
609
+ const response = await this.request({
610
+ path: `/buyers/private/lead/{leadId}/offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
611
+ method: 'PUT',
612
+ headers: headerParameters,
613
+ query: queryParameters,
614
+ body: PutBuyerLeadOfferInputToJSON(requestParameters['putBuyerLeadOfferInput']),
615
+ }, initOverrides);
616
+
617
+ return new runtime.VoidApiResponse(response);
618
+ }
619
+
620
+ /**
621
+ *
622
+ */
623
+ async putBuyerOffer(requestParameters: BuyersApiPutBuyerOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
624
+ await this.putBuyerOfferRaw(requestParameters, initOverrides);
625
+ }
626
+
477
627
  /**
478
628
  *
479
629
  */
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ BadRequestException,
18
19
  BatchReadSellerLeadMessageInput,
19
20
  CreateLeadMessageInput,
20
21
  IntersectionLeadDtoWithLeadDetailsDto,
@@ -26,6 +27,8 @@ import type {
26
27
  ValidationException,
27
28
  } from '../models/index';
28
29
  import {
30
+ BadRequestExceptionFromJSON,
31
+ BadRequestExceptionToJSON,
29
32
  BatchReadSellerLeadMessageInputFromJSON,
30
33
  BatchReadSellerLeadMessageInputToJSON,
31
34
  CreateLeadMessageInputFromJSON,