@randock/nameshift-api-client 0.0.46 → 0.0.48

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 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.js +4 -4
  4. package/dist/apis/DashboardApi.js +1 -1
  5. package/dist/apis/DomainsApi.js +10 -10
  6. package/dist/apis/LeadsApi.js +6 -6
  7. package/dist/apis/LeadsPublicApi.d.ts +12 -1
  8. package/dist/apis/LeadsPublicApi.js +44 -0
  9. package/dist/models/BuyDomainInput.d.ts +16 -10
  10. package/dist/models/BuyDomainInput.js +6 -8
  11. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +1 -0
  12. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +1 -0
  13. package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +1 -0
  14. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +1 -0
  15. package/dist/models/LeadStatusDto.d.ts +1 -0
  16. package/dist/models/LeadStatusDto.js +1 -0
  17. package/dist/models/PublicLeadBuyerDto.d.ts +55 -0
  18. package/dist/models/PublicLeadBuyerDto.js +63 -0
  19. package/dist/models/PublicLeadDto.d.ts +63 -0
  20. package/dist/models/PublicLeadDto.js +72 -0
  21. package/dist/models/PublicLeadDtoLastOffer.d.ts +37 -0
  22. package/dist/models/PublicLeadDtoLastOffer.js +51 -0
  23. package/dist/models/index.d.ts +3 -0
  24. package/dist/models/index.js +3 -0
  25. package/package.json +1 -1
  26. package/src/apis/AccountsApi.ts +4 -4
  27. package/src/apis/DashboardApi.ts +1 -1
  28. package/src/apis/DomainsApi.ts +10 -10
  29. package/src/apis/LeadsApi.ts +6 -6
  30. package/src/apis/LeadsPublicApi.ts +40 -0
  31. package/src/models/BuyDomainInput.ts +22 -16
  32. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +1 -0
  33. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +1 -0
  34. package/src/models/LeadStatusDto.ts +1 -0
  35. package/src/models/PublicLeadBuyerDto.ts +97 -0
  36. package/src/models/PublicLeadDto.ts +116 -0
  37. package/src/models/PublicLeadDtoLastOffer.ts +70 -0
  38. package/src/models/index.ts +3 -0
@@ -0,0 +1,63 @@
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 { PublicLeadBuyerDto } from './PublicLeadBuyerDto';
13
+ import type { PublicLeadDtoLastOffer } from './PublicLeadDtoLastOffer';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PublicLeadDto
18
+ */
19
+ export interface PublicLeadDto {
20
+ /**
21
+ * The current id
22
+ * @type {string}
23
+ * @memberof PublicLeadDto
24
+ */
25
+ id: string;
26
+ /**
27
+ * The current lead status
28
+ * @type {string}
29
+ * @memberof PublicLeadDto
30
+ */
31
+ status: PublicLeadDtoStatusEnum;
32
+ /**
33
+ *
34
+ * @type {PublicLeadDtoLastOffer}
35
+ * @memberof PublicLeadDto
36
+ */
37
+ lastOffer: PublicLeadDtoLastOffer | null;
38
+ /**
39
+ * The buyer information
40
+ * @type {PublicLeadBuyerDto}
41
+ * @memberof PublicLeadDto
42
+ */
43
+ buyer: PublicLeadBuyerDto;
44
+ }
45
+ /**
46
+ * @export
47
+ */
48
+ export declare const PublicLeadDtoStatusEnum: {
49
+ readonly UNVERIFIED: "unverified";
50
+ readonly ACTIVE: "active";
51
+ readonly ACCEPTED: "accepted";
52
+ readonly FINISHED: "finished";
53
+ readonly DELETED: "deleted";
54
+ readonly ARCHIVED: "archived";
55
+ };
56
+ export type PublicLeadDtoStatusEnum = typeof PublicLeadDtoStatusEnum[keyof typeof PublicLeadDtoStatusEnum];
57
+ /**
58
+ * Check if a given object implements the PublicLeadDto interface.
59
+ */
60
+ export declare function instanceOfPublicLeadDto(value: object): value is PublicLeadDto;
61
+ export declare function PublicLeadDtoFromJSON(json: any): PublicLeadDto;
62
+ export declare function PublicLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLeadDto;
63
+ export declare function PublicLeadDtoToJSON(value?: PublicLeadDto | null): any;
@@ -0,0 +1,72 @@
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.PublicLeadDtoToJSON = exports.PublicLeadDtoFromJSONTyped = exports.PublicLeadDtoFromJSON = exports.instanceOfPublicLeadDto = exports.PublicLeadDtoStatusEnum = void 0;
17
+ var PublicLeadBuyerDto_1 = require("./PublicLeadBuyerDto");
18
+ var PublicLeadDtoLastOffer_1 = require("./PublicLeadDtoLastOffer");
19
+ /**
20
+ * @export
21
+ */
22
+ exports.PublicLeadDtoStatusEnum = {
23
+ UNVERIFIED: 'unverified',
24
+ ACTIVE: 'active',
25
+ ACCEPTED: 'accepted',
26
+ FINISHED: 'finished',
27
+ DELETED: 'deleted',
28
+ ARCHIVED: 'archived'
29
+ };
30
+ /**
31
+ * Check if a given object implements the PublicLeadDto interface.
32
+ */
33
+ function instanceOfPublicLeadDto(value) {
34
+ if (!('id' in value) || value['id'] === undefined)
35
+ return false;
36
+ if (!('status' in value) || value['status'] === undefined)
37
+ return false;
38
+ if (!('lastOffer' in value) || value['lastOffer'] === undefined)
39
+ return false;
40
+ if (!('buyer' in value) || value['buyer'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ exports.instanceOfPublicLeadDto = instanceOfPublicLeadDto;
45
+ function PublicLeadDtoFromJSON(json) {
46
+ return PublicLeadDtoFromJSONTyped(json, false);
47
+ }
48
+ exports.PublicLeadDtoFromJSON = PublicLeadDtoFromJSON;
49
+ function PublicLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'id': json['id'],
55
+ 'status': json['status'],
56
+ 'lastOffer': (0, PublicLeadDtoLastOffer_1.PublicLeadDtoLastOfferFromJSON)(json['lastOffer']),
57
+ 'buyer': (0, PublicLeadBuyerDto_1.PublicLeadBuyerDtoFromJSON)(json['buyer']),
58
+ };
59
+ }
60
+ exports.PublicLeadDtoFromJSONTyped = PublicLeadDtoFromJSONTyped;
61
+ function PublicLeadDtoToJSON(value) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'status': value['status'],
68
+ 'lastOffer': (0, PublicLeadDtoLastOffer_1.PublicLeadDtoLastOfferToJSON)(value['lastOffer']),
69
+ 'buyer': (0, PublicLeadBuyerDto_1.PublicLeadBuyerDtoToJSON)(value['buyer']),
70
+ };
71
+ }
72
+ exports.PublicLeadDtoToJSON = PublicLeadDtoToJSON;
@@ -0,0 +1,37 @@
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
+ * The last offer price
14
+ * @export
15
+ * @interface PublicLeadDtoLastOffer
16
+ */
17
+ export interface PublicLeadDtoLastOffer {
18
+ /**
19
+ * Monetary amount, represented as an integer without scale/decimals.
20
+ * @type {number}
21
+ * @memberof PublicLeadDtoLastOffer
22
+ */
23
+ amount: number;
24
+ /**
25
+ * Three letter ISO currency code
26
+ * @type {string}
27
+ * @memberof PublicLeadDtoLastOffer
28
+ */
29
+ currencyCode: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PublicLeadDtoLastOffer interface.
33
+ */
34
+ export declare function instanceOfPublicLeadDtoLastOffer(value: object): value is PublicLeadDtoLastOffer;
35
+ export declare function PublicLeadDtoLastOfferFromJSON(json: any): PublicLeadDtoLastOffer;
36
+ export declare function PublicLeadDtoLastOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLeadDtoLastOffer;
37
+ export declare function PublicLeadDtoLastOfferToJSON(value?: PublicLeadDtoLastOffer | null): any;
@@ -0,0 +1,51 @@
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.PublicLeadDtoLastOfferToJSON = exports.PublicLeadDtoLastOfferFromJSONTyped = exports.PublicLeadDtoLastOfferFromJSON = exports.instanceOfPublicLeadDtoLastOffer = void 0;
17
+ /**
18
+ * Check if a given object implements the PublicLeadDtoLastOffer interface.
19
+ */
20
+ function instanceOfPublicLeadDtoLastOffer(value) {
21
+ if (!('amount' in value) || value['amount'] === undefined)
22
+ return false;
23
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfPublicLeadDtoLastOffer = instanceOfPublicLeadDtoLastOffer;
28
+ function PublicLeadDtoLastOfferFromJSON(json) {
29
+ return PublicLeadDtoLastOfferFromJSONTyped(json, false);
30
+ }
31
+ exports.PublicLeadDtoLastOfferFromJSON = PublicLeadDtoLastOfferFromJSON;
32
+ function PublicLeadDtoLastOfferFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'amount': json['amount'],
38
+ 'currencyCode': json['currencyCode'],
39
+ };
40
+ }
41
+ exports.PublicLeadDtoLastOfferFromJSONTyped = PublicLeadDtoLastOfferFromJSONTyped;
42
+ function PublicLeadDtoLastOfferToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'amount': value['amount'],
48
+ 'currencyCode': value['currencyCode'],
49
+ };
50
+ }
51
+ exports.PublicLeadDtoLastOfferToJSON = PublicLeadDtoLastOfferToJSON;
@@ -47,6 +47,9 @@ export * from './ObjectId';
47
47
  export * from './PaginateResponse';
48
48
  export * from './PaginateResponseLinks';
49
49
  export * from './PaginateResponseMeta';
50
+ export * from './PublicLeadBuyerDto';
51
+ export * from './PublicLeadDto';
52
+ export * from './PublicLeadDtoLastOffer';
50
53
  export * from './PutLeadInput';
51
54
  export * from './RegisterAccountInput';
52
55
  export * from './RelatedSellerDomain';
@@ -65,6 +65,9 @@ __exportStar(require("./ObjectId"), exports);
65
65
  __exportStar(require("./PaginateResponse"), exports);
66
66
  __exportStar(require("./PaginateResponseLinks"), exports);
67
67
  __exportStar(require("./PaginateResponseMeta"), exports);
68
+ __exportStar(require("./PublicLeadBuyerDto"), exports);
69
+ __exportStar(require("./PublicLeadDto"), exports);
70
+ __exportStar(require("./PublicLeadDtoLastOffer"), exports);
68
71
  __exportStar(require("./PutLeadInput"), exports);
69
72
  __exportStar(require("./RegisterAccountInput"), exports);
70
73
  __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.46",
3
+ "version": "0.0.48",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -74,7 +74,7 @@ export class AccountsApi extends runtime.BaseAPI {
74
74
  }
75
75
  }
76
76
  const response = await this.request({
77
- path: `/accounts/me`,
77
+ path: `/private/accounts/me`,
78
78
  method: 'GET',
79
79
  headers: headerParameters,
80
80
  query: queryParameters,
@@ -124,7 +124,7 @@ export class AccountsApi extends runtime.BaseAPI {
124
124
  }
125
125
  }
126
126
  const response = await this.request({
127
- path: `/accounts/{accountId}/addresses`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
127
+ path: `/private/accounts/{accountId}/addresses`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
128
128
  method: 'PUT',
129
129
  headers: headerParameters,
130
130
  query: queryParameters,
@@ -174,7 +174,7 @@ export class AccountsApi extends runtime.BaseAPI {
174
174
  }
175
175
  }
176
176
  const response = await this.request({
177
- path: `/accounts/{accountId}/financial`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
177
+ path: `/private/accounts/{accountId}/financial`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
178
178
  method: 'PUT',
179
179
  headers: headerParameters,
180
180
  query: queryParameters,
@@ -224,7 +224,7 @@ export class AccountsApi extends runtime.BaseAPI {
224
224
  }
225
225
  }
226
226
  const response = await this.request({
227
- path: `/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
227
+ path: `/private/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
228
228
  method: 'PUT',
229
229
  headers: headerParameters,
230
230
  query: queryParameters,
@@ -50,7 +50,7 @@ export class DashboardApi extends runtime.BaseAPI {
50
50
  }
51
51
  }
52
52
  const response = await this.request({
53
- path: `/dashboard/stats`,
53
+ path: `/private/dashboard/stats`,
54
54
  method: 'GET',
55
55
  headers: headerParameters,
56
56
  query: queryParameters,
@@ -150,7 +150,7 @@ export class DomainsApi extends runtime.BaseAPI {
150
150
  }
151
151
 
152
152
  const response = await this.request({
153
- path: `/domains`,
153
+ path: `/private/domains`,
154
154
  method: 'POST',
155
155
  headers: headerParameters,
156
156
  query: queryParameters,
@@ -193,7 +193,7 @@ export class DomainsApi extends runtime.BaseAPI {
193
193
  }
194
194
  }
195
195
  const response = await this.request({
196
- path: `/domains`,
196
+ path: `/private/domains`,
197
197
  method: 'PUT',
198
198
  headers: headerParameters,
199
199
  query: queryParameters,
@@ -234,7 +234,7 @@ export class DomainsApi extends runtime.BaseAPI {
234
234
  }
235
235
  }
236
236
  const response = await this.request({
237
- path: `/domains/{domainId}/check_ns`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
237
+ path: `/private/domains/{domainId}/check_ns`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
238
238
  method: 'POST',
239
239
  headers: headerParameters,
240
240
  query: queryParameters,
@@ -276,7 +276,7 @@ export class DomainsApi extends runtime.BaseAPI {
276
276
  }
277
277
  }
278
278
  const response = await this.request({
279
- path: `/domains`,
279
+ path: `/private/domains`,
280
280
  method: 'DELETE',
281
281
  headers: headerParameters,
282
282
  query: queryParameters,
@@ -317,7 +317,7 @@ export class DomainsApi extends runtime.BaseAPI {
317
317
  }
318
318
  }
319
319
  const response = await this.request({
320
- path: `/domains/{domainId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
320
+ path: `/private/domains/{domainId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
321
321
  method: 'GET',
322
322
  headers: headerParameters,
323
323
  query: queryParameters,
@@ -367,7 +367,7 @@ export class DomainsApi extends runtime.BaseAPI {
367
367
  }
368
368
  }
369
369
  const response = await this.request({
370
- path: `/domains/transfers`,
370
+ path: `/private/domains/transfers`,
371
371
  method: 'GET',
372
372
  headers: headerParameters,
373
373
  query: queryParameters,
@@ -408,7 +408,7 @@ export class DomainsApi extends runtime.BaseAPI {
408
408
  }
409
409
  }
410
410
  const response = await this.request({
411
- path: `/domains/transfers/{transferId}`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
411
+ path: `/private/domains/transfers/{transferId}`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
412
412
  method: 'GET',
413
413
  headers: headerParameters,
414
414
  query: queryParameters,
@@ -458,7 +458,7 @@ export class DomainsApi extends runtime.BaseAPI {
458
458
  }
459
459
  }
460
460
  const response = await this.request({
461
- path: `/domains`,
461
+ path: `/private/domains`,
462
462
  method: 'GET',
463
463
  headers: headerParameters,
464
464
  query: queryParameters,
@@ -508,7 +508,7 @@ export class DomainsApi extends runtime.BaseAPI {
508
508
  }
509
509
  }
510
510
  const response = await this.request({
511
- path: `/domains/{domainId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
511
+ path: `/private/domains/{domainId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
512
512
  method: 'PUT',
513
513
  headers: headerParameters,
514
514
  query: queryParameters,
@@ -559,7 +559,7 @@ export class DomainsApi extends runtime.BaseAPI {
559
559
  }
560
560
  }
561
561
  const response = await this.request({
562
- path: `/domains/transfers/{transferId}/auth-code`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
562
+ path: `/private/domains/transfers/{transferId}/auth-code`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
563
563
  method: 'PATCH',
564
564
  headers: headerParameters,
565
565
  query: queryParameters,
@@ -94,7 +94,7 @@ export class LeadsApi extends runtime.BaseAPI {
94
94
  }
95
95
  }
96
96
  const response = await this.request({
97
- path: `/leads/{leadId}/status/accept`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
97
+ path: `/private/leads/{leadId}/status/accept`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
98
98
  method: 'PATCH',
99
99
  headers: headerParameters,
100
100
  query: queryParameters,
@@ -143,7 +143,7 @@ export class LeadsApi extends runtime.BaseAPI {
143
143
  }
144
144
  }
145
145
  const response = await this.request({
146
- path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
146
+ path: `/private/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
147
147
  method: 'POST',
148
148
  headers: headerParameters,
149
149
  query: queryParameters,
@@ -185,7 +185,7 @@ export class LeadsApi extends runtime.BaseAPI {
185
185
  }
186
186
  }
187
187
  const response = await this.request({
188
- path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
188
+ path: `/private/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
189
189
  method: 'GET',
190
190
  headers: headerParameters,
191
191
  query: queryParameters,
@@ -226,7 +226,7 @@ export class LeadsApi extends runtime.BaseAPI {
226
226
  }
227
227
  }
228
228
  const response = await this.request({
229
- path: `/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
229
+ path: `/private/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
230
230
  method: 'GET',
231
231
  headers: headerParameters,
232
232
  query: queryParameters,
@@ -260,7 +260,7 @@ export class LeadsApi extends runtime.BaseAPI {
260
260
  }
261
261
  }
262
262
  const response = await this.request({
263
- path: `/leads`,
263
+ path: `/private/leads`,
264
264
  method: 'GET',
265
265
  headers: headerParameters,
266
266
  query: queryParameters,
@@ -310,7 +310,7 @@ export class LeadsApi extends runtime.BaseAPI {
310
310
  }
311
311
  }
312
312
  const response = await this.request({
313
- path: `/leads/{leadId}/offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
313
+ path: `/private/leads/{leadId}/offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
314
314
  method: 'PUT',
315
315
  headers: headerParameters,
316
316
  query: queryParameters,
@@ -19,6 +19,7 @@ import type {
19
19
  LeadStatusDto,
20
20
  NotFoundException,
21
21
  ObjectId,
22
+ PublicLeadDto,
22
23
  ThrottlerException,
23
24
  ValidationException,
24
25
  VerifyLeadInput,
@@ -32,6 +33,8 @@ import {
32
33
  NotFoundExceptionToJSON,
33
34
  ObjectIdFromJSON,
34
35
  ObjectIdToJSON,
36
+ PublicLeadDtoFromJSON,
37
+ PublicLeadDtoToJSON,
35
38
  ThrottlerExceptionFromJSON,
36
39
  ThrottlerExceptionToJSON,
37
40
  ValidationExceptionFromJSON,
@@ -44,6 +47,10 @@ export interface LeadsPublicApiCreateLeadRequest {
44
47
  createLeadInput: CreateLeadInput;
45
48
  }
46
49
 
50
+ export interface LeadsPublicApiGetLeadRequest {
51
+ leadId: string;
52
+ }
53
+
47
54
  export interface LeadsPublicApiGetLeadStatusRequest {
48
55
  leadId: string;
49
56
  }
@@ -94,6 +101,39 @@ export class LeadsPublicApi extends runtime.BaseAPI {
94
101
  return await response.value();
95
102
  }
96
103
 
104
+ /**
105
+ *
106
+ */
107
+ async getLeadRaw(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>> {
108
+ if (requestParameters['leadId'] == null) {
109
+ throw new runtime.RequiredError(
110
+ 'leadId',
111
+ 'Required parameter "leadId" was null or undefined when calling getLead().'
112
+ );
113
+ }
114
+
115
+ const queryParameters: any = {};
116
+
117
+ const headerParameters: runtime.HTTPHeaders = {};
118
+
119
+ const response = await this.request({
120
+ path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
121
+ method: 'GET',
122
+ headers: headerParameters,
123
+ query: queryParameters,
124
+ }, initOverrides);
125
+
126
+ return new runtime.JSONApiResponse(response, (jsonValue) => PublicLeadDtoFromJSON(jsonValue));
127
+ }
128
+
129
+ /**
130
+ *
131
+ */
132
+ async getLead(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto> {
133
+ const response = await this.getLeadRaw(requestParameters, initOverrides);
134
+ return await response.value();
135
+ }
136
+
97
137
  /**
98
138
  *
99
139
  */
@@ -24,61 +24,67 @@ export interface BuyDomainInput {
24
24
  * @type {string}
25
25
  * @memberof BuyDomainInput
26
26
  */
27
- firstname: string;
27
+ companyName?: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof BuyDomainInput
32
32
  */
33
- lastname: string;
33
+ companyVatNumber?: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
37
  * @memberof BuyDomainInput
38
38
  */
39
- email: string;
39
+ leadId?: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
43
  * @memberof BuyDomainInput
44
44
  */
45
- phone: string;
45
+ firstname: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
49
49
  * @memberof BuyDomainInput
50
50
  */
51
- country: string;
51
+ lastname: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
55
55
  * @memberof BuyDomainInput
56
56
  */
57
- city: string;
57
+ email: string;
58
58
  /**
59
59
  *
60
60
  * @type {string}
61
61
  * @memberof BuyDomainInput
62
62
  */
63
- postalCode: string;
63
+ phone: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
67
67
  * @memberof BuyDomainInput
68
68
  */
69
- address: string;
69
+ country: string;
70
70
  /**
71
71
  *
72
72
  * @type {string}
73
73
  * @memberof BuyDomainInput
74
74
  */
75
- companyName: string | null;
75
+ city: string;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof BuyDomainInput
80
+ */
81
+ postalCode: string;
76
82
  /**
77
83
  *
78
84
  * @type {string}
79
85
  * @memberof BuyDomainInput
80
86
  */
81
- companyVatNumber: string | null;
87
+ address: string;
82
88
  }
83
89
 
84
90
  /**
@@ -93,8 +99,6 @@ export function instanceOfBuyDomainInput(value: object): value is BuyDomainInput
93
99
  if (!('city' in value) || value['city'] === undefined) return false;
94
100
  if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
95
101
  if (!('address' in value) || value['address'] === undefined) return false;
96
- if (!('companyName' in value) || value['companyName'] === undefined) return false;
97
- if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined) return false;
98
102
  return true;
99
103
  }
100
104
 
@@ -108,6 +112,9 @@ export function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: bool
108
112
  }
109
113
  return {
110
114
 
115
+ 'companyName': json['companyName'] == null ? undefined : json['companyName'],
116
+ 'companyVatNumber': json['companyVatNumber'] == null ? undefined : json['companyVatNumber'],
117
+ 'leadId': json['leadId'] == null ? undefined : json['leadId'],
111
118
  'firstname': json['firstname'],
112
119
  'lastname': json['lastname'],
113
120
  'email': json['email'],
@@ -116,8 +123,6 @@ export function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: bool
116
123
  'city': json['city'],
117
124
  'postalCode': json['postalCode'],
118
125
  'address': json['address'],
119
- 'companyName': json['companyName'],
120
- 'companyVatNumber': json['companyVatNumber'],
121
126
  };
122
127
  }
123
128
 
@@ -127,6 +132,9 @@ export function BuyDomainInputToJSON(value?: BuyDomainInput | null): any {
127
132
  }
128
133
  return {
129
134
 
135
+ 'companyName': value['companyName'],
136
+ 'companyVatNumber': value['companyVatNumber'],
137
+ 'leadId': value['leadId'],
130
138
  'firstname': value['firstname'],
131
139
  'lastname': value['lastname'],
132
140
  'email': value['email'],
@@ -135,8 +143,6 @@ export function BuyDomainInputToJSON(value?: BuyDomainInput | null): any {
135
143
  'city': value['city'],
136
144
  'postalCode': value['postalCode'],
137
145
  'address': value['address'],
138
- 'companyName': value['companyName'],
139
- 'companyVatNumber': value['companyVatNumber'],
140
146
  };
141
147
  }
142
148
 
@@ -78,6 +78,7 @@ export const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
78
78
  UNVERIFIED: 'unverified',
79
79
  ACTIVE: 'active',
80
80
  ACCEPTED: 'accepted',
81
+ FINISHED: 'finished',
81
82
  DELETED: 'deleted',
82
83
  ARCHIVED: 'archived'
83
84
  } as const;
@@ -114,6 +114,7 @@ export const IntersectionLeadDtoWithListFieldsDtoStatusEnum = {
114
114
  UNVERIFIED: 'unverified',
115
115
  ACTIVE: 'active',
116
116
  ACCEPTED: 'accepted',
117
+ FINISHED: 'finished',
117
118
  DELETED: 'deleted',
118
119
  ARCHIVED: 'archived'
119
120
  } as const;
@@ -35,6 +35,7 @@ export const LeadStatusDtoStatusEnum = {
35
35
  UNVERIFIED: 'unverified',
36
36
  ACTIVE: 'active',
37
37
  ACCEPTED: 'accepted',
38
+ FINISHED: 'finished',
38
39
  DELETED: 'deleted',
39
40
  ARCHIVED: 'archived'
40
41
  } as const;