@randock/nameshift-api-client 0.0.299 → 0.0.300

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.
@@ -161,6 +161,7 @@ src/models/InvoiceSellerAccountDto.ts
161
161
  src/models/InvoiceTransactionDto.ts
162
162
  src/models/LandingPageInput.ts
163
163
  src/models/LandingPageSettingsDto.ts
164
+ src/models/LeadBuyerConfigDto.ts
164
165
  src/models/LeadDomainDto.ts
165
166
  src/models/LeadDto.ts
166
167
  src/models/LeadLeaseToOwnAndRentConfigurationPresetsDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.299
1
+ ## @randock/nameshift-api-client@0.0.300
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.299 --save
39
+ npm install @randock/nameshift-api-client@0.0.300 --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
- 6d759dc128f5b65dc5e52ef3ff7b595712d90a19061fa1830da215fcd636901de9209232830df430bd7fc4642899b9ea
47
+ 0a5a297bb6220be51d974f98c4c924ab352e5e0c70e5e8a0237a5dae3d807343c45ae918297130270db90c030aa1c085
@@ -33,6 +33,18 @@ export interface BuyerDto {
33
33
  * @memberof BuyerDto
34
34
  */
35
35
  ipCountryCode: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof BuyerDto
40
+ */
41
+ companyName: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof BuyerDto
46
+ */
47
+ buyerName: string;
36
48
  }
37
49
  /**
38
50
  * Check if a given object implements the BuyerDto interface.
@@ -28,6 +28,10 @@ function instanceOfBuyerDto(value) {
28
28
  return false;
29
29
  if (!('ipCountryCode' in value) || value['ipCountryCode'] === undefined)
30
30
  return false;
31
+ if (!('companyName' in value) || value['companyName'] === undefined)
32
+ return false;
33
+ if (!('buyerName' in value) || value['buyerName'] === undefined)
34
+ return false;
31
35
  return true;
32
36
  }
33
37
  function BuyerDtoFromJSON(json) {
@@ -41,6 +45,8 @@ function BuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
41
45
  'initials': json['initials'],
42
46
  'name': json['name'],
43
47
  'ipCountryCode': json['ipCountryCode'],
48
+ 'companyName': json['companyName'],
49
+ 'buyerName': json['buyerName'],
44
50
  };
45
51
  }
46
52
  function BuyerDtoToJSON(json) {
@@ -55,5 +61,7 @@ function BuyerDtoToJSONTyped(value, ignoreDiscriminator) {
55
61
  'initials': value['initials'],
56
62
  'name': value['name'],
57
63
  'ipCountryCode': value['ipCountryCode'],
64
+ 'companyName': value['companyName'],
65
+ 'buyerName': value['buyerName'],
58
66
  };
59
67
  }
@@ -58,6 +58,18 @@ export interface CreateLeadInput {
58
58
  * @memberof CreateLeadInput
59
59
  */
60
60
  email: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof CreateLeadInput
65
+ */
66
+ companyName?: string | null;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof CreateLeadInput
71
+ */
72
+ phoneNumber?: string | null;
61
73
  }
62
74
  /**
63
75
  * @export
@@ -64,6 +64,8 @@ function CreateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
64
64
  'firstname': json['firstname'],
65
65
  'lastname': json['lastname'],
66
66
  'email': json['email'],
67
+ 'companyName': json['companyName'] == null ? undefined : json['companyName'],
68
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
67
69
  };
68
70
  }
69
71
  function CreateLeadInputToJSON(json) {
@@ -82,5 +84,7 @@ function CreateLeadInputToJSONTyped(value, ignoreDiscriminator) {
82
84
  'firstname': value['firstname'],
83
85
  'lastname': value['lastname'],
84
86
  'email': value['email'],
87
+ 'companyName': value['companyName'],
88
+ 'phoneNumber': value['phoneNumber'],
85
89
  };
86
90
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { DomainSellerDto } from './DomainSellerDto';
13
+ import type { LeadBuyerConfigDto } from './LeadBuyerConfigDto';
13
14
  import type { MoneyDto } from './MoneyDto';
14
15
  import type { DomainSalesInformationRentConfigurationDto } from './DomainSalesInformationRentConfigurationDto';
15
16
  import type { DomainStatsDto } from './DomainStatsDto';
@@ -87,6 +88,12 @@ export interface DomainSalesInformationDto {
87
88
  * @memberof DomainSalesInformationDto
88
89
  */
89
90
  stats: DomainStatsDto | null;
91
+ /**
92
+ * Lead buyer settings
93
+ * @type {LeadBuyerConfigDto}
94
+ * @memberof DomainSalesInformationDto
95
+ */
96
+ leadBuyerSettings: LeadBuyerConfigDto | null;
90
97
  }
91
98
  /**
92
99
  * Check if a given object implements the DomainSalesInformationDto interface.
@@ -19,6 +19,7 @@ exports.DomainSalesInformationDtoFromJSONTyped = DomainSalesInformationDtoFromJS
19
19
  exports.DomainSalesInformationDtoToJSON = DomainSalesInformationDtoToJSON;
20
20
  exports.DomainSalesInformationDtoToJSONTyped = DomainSalesInformationDtoToJSONTyped;
21
21
  var DomainSellerDto_1 = require("./DomainSellerDto");
22
+ var LeadBuyerConfigDto_1 = require("./LeadBuyerConfigDto");
22
23
  var MoneyDto_1 = require("./MoneyDto");
23
24
  var DomainSalesInformationRentConfigurationDto_1 = require("./DomainSalesInformationRentConfigurationDto");
24
25
  var DomainStatsDto_1 = require("./DomainStatsDto");
@@ -50,6 +51,8 @@ function instanceOfDomainSalesInformationDto(value) {
50
51
  return false;
51
52
  if (!('stats' in value) || value['stats'] === undefined)
52
53
  return false;
54
+ if (!('leadBuyerSettings' in value) || value['leadBuyerSettings'] === undefined)
55
+ return false;
53
56
  return true;
54
57
  }
55
58
  function DomainSalesInformationDtoFromJSON(json) {
@@ -71,6 +74,7 @@ function DomainSalesInformationDtoFromJSONTyped(json, ignoreDiscriminator) {
71
74
  'isPurchaseable': json['isPurchaseable'],
72
75
  'seo': (0, SeoMetricsDto_1.SeoMetricsDtoFromJSON)(json['seo']),
73
76
  'stats': (0, DomainStatsDto_1.DomainStatsDtoFromJSON)(json['stats']),
77
+ 'leadBuyerSettings': (0, LeadBuyerConfigDto_1.LeadBuyerConfigDtoFromJSON)(json['leadBuyerSettings']),
74
78
  };
75
79
  }
76
80
  function DomainSalesInformationDtoToJSON(json) {
@@ -93,5 +97,6 @@ function DomainSalesInformationDtoToJSONTyped(value, ignoreDiscriminator) {
93
97
  'isPurchaseable': value['isPurchaseable'],
94
98
  'seo': (0, SeoMetricsDto_1.SeoMetricsDtoToJSON)(value['seo']),
95
99
  'stats': (0, DomainStatsDto_1.DomainStatsDtoToJSON)(value['stats']),
100
+ 'leadBuyerSettings': (0, LeadBuyerConfigDto_1.LeadBuyerConfigDtoToJSON)(value['leadBuyerSettings']),
96
101
  };
97
102
  }
@@ -69,6 +69,18 @@ export interface LandingPageInput {
69
69
  * @memberof LandingPageInput
70
70
  */
71
71
  minDomainAuthority?: number | null;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof LandingPageInput
76
+ */
77
+ requestLeadBuyerCompanyName?: boolean | null;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof LandingPageInput
82
+ */
83
+ requestLeadBuyerPhoneNumber?: boolean | null;
72
84
  }
73
85
  /**
74
86
  * Check if a given object implements the LandingPageInput interface.
@@ -41,6 +41,8 @@ function LandingPageInputFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'seoMetrics': json['seoMetrics'] == null ? undefined : json['seoMetrics'],
42
42
  'visitorStats': json['visitorStats'] == null ? undefined : json['visitorStats'],
43
43
  'minDomainAuthority': json['minDomainAuthority'] == null ? undefined : json['minDomainAuthority'],
44
+ 'requestLeadBuyerCompanyName': json['requestLeadBuyerCompanyName'] == null ? undefined : json['requestLeadBuyerCompanyName'],
45
+ 'requestLeadBuyerPhoneNumber': json['requestLeadBuyerPhoneNumber'] == null ? undefined : json['requestLeadBuyerPhoneNumber'],
44
46
  };
45
47
  }
46
48
  function LandingPageInputToJSON(json) {
@@ -61,5 +63,7 @@ function LandingPageInputToJSONTyped(value, ignoreDiscriminator) {
61
63
  'seoMetrics': value['seoMetrics'],
62
64
  'visitorStats': value['visitorStats'],
63
65
  'minDomainAuthority': value['minDomainAuthority'],
66
+ 'requestLeadBuyerCompanyName': value['requestLeadBuyerCompanyName'],
67
+ 'requestLeadBuyerPhoneNumber': value['requestLeadBuyerPhoneNumber'],
64
68
  };
65
69
  }
@@ -69,6 +69,18 @@ export interface LandingPageSettingsDto {
69
69
  * @memberof LandingPageSettingsDto
70
70
  */
71
71
  dnssec: boolean | null;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof LandingPageSettingsDto
76
+ */
77
+ requestLeadBuyerCompanyName: boolean | null;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof LandingPageSettingsDto
82
+ */
83
+ requestLeadBuyerPhoneNumber: boolean | null;
72
84
  }
73
85
  /**
74
86
  * Check if a given object implements the LandingPageSettingsDto interface.
@@ -40,6 +40,10 @@ function instanceOfLandingPageSettingsDto(value) {
40
40
  return false;
41
41
  if (!('dnssec' in value) || value['dnssec'] === undefined)
42
42
  return false;
43
+ if (!('requestLeadBuyerCompanyName' in value) || value['requestLeadBuyerCompanyName'] === undefined)
44
+ return false;
45
+ if (!('requestLeadBuyerPhoneNumber' in value) || value['requestLeadBuyerPhoneNumber'] === undefined)
46
+ return false;
43
47
  return true;
44
48
  }
45
49
  function LandingPageSettingsDtoFromJSON(json) {
@@ -59,6 +63,8 @@ function LandingPageSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
59
63
  'showDeliversIn': json['showDeliversIn'],
60
64
  'showTrustpilot': json['showTrustpilot'],
61
65
  'dnssec': json['dnssec'],
66
+ 'requestLeadBuyerCompanyName': json['requestLeadBuyerCompanyName'],
67
+ 'requestLeadBuyerPhoneNumber': json['requestLeadBuyerPhoneNumber'],
62
68
  };
63
69
  }
64
70
  function LandingPageSettingsDtoToJSON(json) {
@@ -79,5 +85,7 @@ function LandingPageSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
79
85
  'showDeliversIn': value['showDeliversIn'],
80
86
  'showTrustpilot': value['showTrustpilot'],
81
87
  'dnssec': value['dnssec'],
88
+ 'requestLeadBuyerCompanyName': value['requestLeadBuyerCompanyName'],
89
+ 'requestLeadBuyerPhoneNumber': value['requestLeadBuyerPhoneNumber'],
82
90
  };
83
91
  }
@@ -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 LeadBuyerConfigDto
16
+ */
17
+ export interface LeadBuyerConfigDto {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof LeadBuyerConfigDto
22
+ */
23
+ requestLeadBuyerCompanyName: boolean;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof LeadBuyerConfigDto
28
+ */
29
+ requestLeadBuyerPhoneNumber: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LeadBuyerConfigDto interface.
33
+ */
34
+ export declare function instanceOfLeadBuyerConfigDto(value: object): value is LeadBuyerConfigDto;
35
+ export declare function LeadBuyerConfigDtoFromJSON(json: any): LeadBuyerConfigDto;
36
+ export declare function LeadBuyerConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadBuyerConfigDto;
37
+ export declare function LeadBuyerConfigDtoToJSON(json: any): LeadBuyerConfigDto;
38
+ export declare function LeadBuyerConfigDtoToJSONTyped(value?: LeadBuyerConfigDto | 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.instanceOfLeadBuyerConfigDto = instanceOfLeadBuyerConfigDto;
17
+ exports.LeadBuyerConfigDtoFromJSON = LeadBuyerConfigDtoFromJSON;
18
+ exports.LeadBuyerConfigDtoFromJSONTyped = LeadBuyerConfigDtoFromJSONTyped;
19
+ exports.LeadBuyerConfigDtoToJSON = LeadBuyerConfigDtoToJSON;
20
+ exports.LeadBuyerConfigDtoToJSONTyped = LeadBuyerConfigDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LeadBuyerConfigDto interface.
23
+ */
24
+ function instanceOfLeadBuyerConfigDto(value) {
25
+ if (!('requestLeadBuyerCompanyName' in value) || value['requestLeadBuyerCompanyName'] === undefined)
26
+ return false;
27
+ if (!('requestLeadBuyerPhoneNumber' in value) || value['requestLeadBuyerPhoneNumber'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function LeadBuyerConfigDtoFromJSON(json) {
32
+ return LeadBuyerConfigDtoFromJSONTyped(json, false);
33
+ }
34
+ function LeadBuyerConfigDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'requestLeadBuyerCompanyName': json['requestLeadBuyerCompanyName'],
40
+ 'requestLeadBuyerPhoneNumber': json['requestLeadBuyerPhoneNumber'],
41
+ };
42
+ }
43
+ function LeadBuyerConfigDtoToJSON(json) {
44
+ return LeadBuyerConfigDtoToJSONTyped(json, false);
45
+ }
46
+ function LeadBuyerConfigDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'requestLeadBuyerCompanyName': value['requestLeadBuyerCompanyName'],
53
+ 'requestLeadBuyerPhoneNumber': value['requestLeadBuyerPhoneNumber'],
54
+ };
55
+ }
@@ -39,6 +39,12 @@ export interface PublicLeadBuyerDto {
39
39
  * @memberof PublicLeadBuyerDto
40
40
  */
41
41
  companyName: string | null;
42
+ /**
43
+ * Lead buyer phone number
44
+ * @type {string}
45
+ * @memberof PublicLeadBuyerDto
46
+ */
47
+ phoneNumber: string | null;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the PublicLeadBuyerDto interface.
@@ -30,6 +30,8 @@ function instanceOfPublicLeadBuyerDto(value) {
30
30
  return false;
31
31
  if (!('companyName' in value) || value['companyName'] === undefined)
32
32
  return false;
33
+ if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
34
+ return false;
33
35
  return true;
34
36
  }
35
37
  function PublicLeadBuyerDtoFromJSON(json) {
@@ -44,6 +46,7 @@ function PublicLeadBuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'lastname': json['lastname'],
45
47
  'email': json['email'],
46
48
  'companyName': json['companyName'],
49
+ 'phoneNumber': json['phoneNumber'],
47
50
  };
48
51
  }
49
52
  function PublicLeadBuyerDtoToJSON(json) {
@@ -59,5 +62,6 @@ function PublicLeadBuyerDtoToJSONTyped(value, ignoreDiscriminator) {
59
62
  'lastname': value['lastname'],
60
63
  'email': value['email'],
61
64
  'companyName': value['companyName'],
65
+ 'phoneNumber': value['phoneNumber'],
62
66
  };
63
67
  }
@@ -33,6 +33,18 @@ export interface UpdateLeadInput {
33
33
  * @memberof UpdateLeadInput
34
34
  */
35
35
  email: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof UpdateLeadInput
40
+ */
41
+ companyName?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof UpdateLeadInput
46
+ */
47
+ phoneNumber?: string | null;
36
48
  }
37
49
  /**
38
50
  * Check if a given object implements the UpdateLeadInput interface.
@@ -41,6 +41,8 @@ function UpdateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'firstname': json['firstname'],
42
42
  'lastname': json['lastname'],
43
43
  'email': json['email'],
44
+ 'companyName': json['companyName'] == null ? undefined : json['companyName'],
45
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
44
46
  };
45
47
  }
46
48
  function UpdateLeadInputToJSON(json) {
@@ -55,5 +57,7 @@ function UpdateLeadInputToJSONTyped(value, ignoreDiscriminator) {
55
57
  'firstname': value['firstname'],
56
58
  'lastname': value['lastname'],
57
59
  'email': value['email'],
60
+ 'companyName': value['companyName'],
61
+ 'phoneNumber': value['phoneNumber'],
58
62
  };
59
63
  }
@@ -133,6 +133,7 @@ export * from './InvoiceSellerAccountDto';
133
133
  export * from './InvoiceTransactionDto';
134
134
  export * from './LandingPageInput';
135
135
  export * from './LandingPageSettingsDto';
136
+ export * from './LeadBuyerConfigDto';
136
137
  export * from './LeadDomainDto';
137
138
  export * from './LeadDto';
138
139
  export * from './LeadLeaseToOwnAndRentConfigurationPresetsDto';
@@ -151,6 +151,7 @@ __exportStar(require("./InvoiceSellerAccountDto"), exports);
151
151
  __exportStar(require("./InvoiceTransactionDto"), exports);
152
152
  __exportStar(require("./LandingPageInput"), exports);
153
153
  __exportStar(require("./LandingPageSettingsDto"), exports);
154
+ __exportStar(require("./LeadBuyerConfigDto"), exports);
154
155
  __exportStar(require("./LeadDomainDto"), exports);
155
156
  __exportStar(require("./LeadDto"), exports);
156
157
  __exportStar(require("./LeadLeaseToOwnAndRentConfigurationPresetsDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.299",
3
+ "version": "0.0.300",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -37,6 +37,18 @@ export interface BuyerDto {
37
37
  * @memberof BuyerDto
38
38
  */
39
39
  ipCountryCode: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof BuyerDto
44
+ */
45
+ companyName: string | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof BuyerDto
50
+ */
51
+ buyerName: string;
40
52
  }
41
53
 
42
54
  /**
@@ -46,6 +58,8 @@ export function instanceOfBuyerDto(value: object): value is BuyerDto {
46
58
  if (!('initials' in value) || value['initials'] === undefined) return false;
47
59
  if (!('name' in value) || value['name'] === undefined) return false;
48
60
  if (!('ipCountryCode' in value) || value['ipCountryCode'] === undefined) return false;
61
+ if (!('companyName' in value) || value['companyName'] === undefined) return false;
62
+ if (!('buyerName' in value) || value['buyerName'] === undefined) return false;
49
63
  return true;
50
64
  }
51
65
 
@@ -62,6 +76,8 @@ export function BuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
62
76
  'initials': json['initials'],
63
77
  'name': json['name'],
64
78
  'ipCountryCode': json['ipCountryCode'],
79
+ 'companyName': json['companyName'],
80
+ 'buyerName': json['buyerName'],
65
81
  };
66
82
  }
67
83
 
@@ -79,6 +95,8 @@ export function BuyerDtoToJSONTyped(value?: BuyerDto | null, ignoreDiscriminator
79
95
  'initials': value['initials'],
80
96
  'name': value['name'],
81
97
  'ipCountryCode': value['ipCountryCode'],
98
+ 'companyName': value['companyName'],
99
+ 'buyerName': value['buyerName'],
82
100
  };
83
101
  }
84
102
 
@@ -69,6 +69,18 @@ export interface CreateLeadInput {
69
69
  * @memberof CreateLeadInput
70
70
  */
71
71
  email: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof CreateLeadInput
76
+ */
77
+ companyName?: string | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof CreateLeadInput
82
+ */
83
+ phoneNumber?: string | null;
72
84
  }
73
85
 
74
86
 
@@ -115,6 +127,8 @@ export function CreateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boo
115
127
  'firstname': json['firstname'],
116
128
  'lastname': json['lastname'],
117
129
  'email': json['email'],
130
+ 'companyName': json['companyName'] == null ? undefined : json['companyName'],
131
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
118
132
  };
119
133
  }
120
134
 
@@ -136,6 +150,8 @@ export function CreateLeadInputToJSONTyped(value?: CreateLeadInput | null, ignor
136
150
  'firstname': value['firstname'],
137
151
  'lastname': value['lastname'],
138
152
  'email': value['email'],
153
+ 'companyName': value['companyName'],
154
+ 'phoneNumber': value['phoneNumber'],
139
155
  };
140
156
  }
141
157
 
@@ -20,6 +20,13 @@ import {
20
20
  DomainSellerDtoToJSON,
21
21
  DomainSellerDtoToJSONTyped,
22
22
  } from './DomainSellerDto';
23
+ import type { LeadBuyerConfigDto } from './LeadBuyerConfigDto';
24
+ import {
25
+ LeadBuyerConfigDtoFromJSON,
26
+ LeadBuyerConfigDtoFromJSONTyped,
27
+ LeadBuyerConfigDtoToJSON,
28
+ LeadBuyerConfigDtoToJSONTyped,
29
+ } from './LeadBuyerConfigDto';
23
30
  import type { MoneyDto } from './MoneyDto';
24
31
  import {
25
32
  MoneyDtoFromJSON,
@@ -128,6 +135,12 @@ export interface DomainSalesInformationDto {
128
135
  * @memberof DomainSalesInformationDto
129
136
  */
130
137
  stats: DomainStatsDto | null;
138
+ /**
139
+ * Lead buyer settings
140
+ * @type {LeadBuyerConfigDto}
141
+ * @memberof DomainSalesInformationDto
142
+ */
143
+ leadBuyerSettings: LeadBuyerConfigDto | null;
131
144
  }
132
145
 
133
146
  /**
@@ -145,6 +158,7 @@ export function instanceOfDomainSalesInformationDto(value: object): value is Dom
145
158
  if (!('isPurchaseable' in value) || value['isPurchaseable'] === undefined) return false;
146
159
  if (!('seo' in value) || value['seo'] === undefined) return false;
147
160
  if (!('stats' in value) || value['stats'] === undefined) return false;
161
+ if (!('leadBuyerSettings' in value) || value['leadBuyerSettings'] === undefined) return false;
148
162
  return true;
149
163
  }
150
164
 
@@ -169,6 +183,7 @@ export function DomainSalesInformationDtoFromJSONTyped(json: any, ignoreDiscrimi
169
183
  'isPurchaseable': json['isPurchaseable'],
170
184
  'seo': SeoMetricsDtoFromJSON(json['seo']),
171
185
  'stats': DomainStatsDtoFromJSON(json['stats']),
186
+ 'leadBuyerSettings': LeadBuyerConfigDtoFromJSON(json['leadBuyerSettings']),
172
187
  };
173
188
  }
174
189
 
@@ -194,6 +209,7 @@ export function DomainSalesInformationDtoToJSONTyped(value?: DomainSalesInformat
194
209
  'isPurchaseable': value['isPurchaseable'],
195
210
  'seo': SeoMetricsDtoToJSON(value['seo']),
196
211
  'stats': DomainStatsDtoToJSON(value['stats']),
212
+ 'leadBuyerSettings': LeadBuyerConfigDtoToJSON(value['leadBuyerSettings']),
197
213
  };
198
214
  }
199
215
 
@@ -73,6 +73,18 @@ export interface LandingPageInput {
73
73
  * @memberof LandingPageInput
74
74
  */
75
75
  minDomainAuthority?: number | null;
76
+ /**
77
+ *
78
+ * @type {boolean}
79
+ * @memberof LandingPageInput
80
+ */
81
+ requestLeadBuyerCompanyName?: boolean | null;
82
+ /**
83
+ *
84
+ * @type {boolean}
85
+ * @memberof LandingPageInput
86
+ */
87
+ requestLeadBuyerPhoneNumber?: boolean | null;
76
88
  }
77
89
 
78
90
  /**
@@ -101,6 +113,8 @@ export function LandingPageInputFromJSONTyped(json: any, ignoreDiscriminator: bo
101
113
  'seoMetrics': json['seoMetrics'] == null ? undefined : json['seoMetrics'],
102
114
  'visitorStats': json['visitorStats'] == null ? undefined : json['visitorStats'],
103
115
  'minDomainAuthority': json['minDomainAuthority'] == null ? undefined : json['minDomainAuthority'],
116
+ 'requestLeadBuyerCompanyName': json['requestLeadBuyerCompanyName'] == null ? undefined : json['requestLeadBuyerCompanyName'],
117
+ 'requestLeadBuyerPhoneNumber': json['requestLeadBuyerPhoneNumber'] == null ? undefined : json['requestLeadBuyerPhoneNumber'],
104
118
  };
105
119
  }
106
120
 
@@ -124,6 +138,8 @@ export function LandingPageInputToJSONTyped(value?: LandingPageInput | null, ign
124
138
  'seoMetrics': value['seoMetrics'],
125
139
  'visitorStats': value['visitorStats'],
126
140
  'minDomainAuthority': value['minDomainAuthority'],
141
+ 'requestLeadBuyerCompanyName': value['requestLeadBuyerCompanyName'],
142
+ 'requestLeadBuyerPhoneNumber': value['requestLeadBuyerPhoneNumber'],
127
143
  };
128
144
  }
129
145
 
@@ -73,6 +73,18 @@ export interface LandingPageSettingsDto {
73
73
  * @memberof LandingPageSettingsDto
74
74
  */
75
75
  dnssec: boolean | null;
76
+ /**
77
+ *
78
+ * @type {boolean}
79
+ * @memberof LandingPageSettingsDto
80
+ */
81
+ requestLeadBuyerCompanyName: boolean | null;
82
+ /**
83
+ *
84
+ * @type {boolean}
85
+ * @memberof LandingPageSettingsDto
86
+ */
87
+ requestLeadBuyerPhoneNumber: boolean | null;
76
88
  }
77
89
 
78
90
  /**
@@ -88,6 +100,8 @@ export function instanceOfLandingPageSettingsDto(value: object): value is Landin
88
100
  if (!('showDeliversIn' in value) || value['showDeliversIn'] === undefined) return false;
89
101
  if (!('showTrustpilot' in value) || value['showTrustpilot'] === undefined) return false;
90
102
  if (!('dnssec' in value) || value['dnssec'] === undefined) return false;
103
+ if (!('requestLeadBuyerCompanyName' in value) || value['requestLeadBuyerCompanyName'] === undefined) return false;
104
+ if (!('requestLeadBuyerPhoneNumber' in value) || value['requestLeadBuyerPhoneNumber'] === undefined) return false;
91
105
  return true;
92
106
  }
93
107
 
@@ -110,6 +124,8 @@ export function LandingPageSettingsDtoFromJSONTyped(json: any, ignoreDiscriminat
110
124
  'showDeliversIn': json['showDeliversIn'],
111
125
  'showTrustpilot': json['showTrustpilot'],
112
126
  'dnssec': json['dnssec'],
127
+ 'requestLeadBuyerCompanyName': json['requestLeadBuyerCompanyName'],
128
+ 'requestLeadBuyerPhoneNumber': json['requestLeadBuyerPhoneNumber'],
113
129
  };
114
130
  }
115
131
 
@@ -133,6 +149,8 @@ export function LandingPageSettingsDtoToJSONTyped(value?: LandingPageSettingsDto
133
149
  'showDeliversIn': value['showDeliversIn'],
134
150
  'showTrustpilot': value['showTrustpilot'],
135
151
  'dnssec': value['dnssec'],
152
+ 'requestLeadBuyerCompanyName': value['requestLeadBuyerCompanyName'],
153
+ 'requestLeadBuyerPhoneNumber': value['requestLeadBuyerPhoneNumber'],
136
154
  };
137
155
  }
138
156
 
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface LeadBuyerConfigDto
20
+ */
21
+ export interface LeadBuyerConfigDto {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof LeadBuyerConfigDto
26
+ */
27
+ requestLeadBuyerCompanyName: boolean;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof LeadBuyerConfigDto
32
+ */
33
+ requestLeadBuyerPhoneNumber: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the LeadBuyerConfigDto interface.
38
+ */
39
+ export function instanceOfLeadBuyerConfigDto(value: object): value is LeadBuyerConfigDto {
40
+ if (!('requestLeadBuyerCompanyName' in value) || value['requestLeadBuyerCompanyName'] === undefined) return false;
41
+ if (!('requestLeadBuyerPhoneNumber' in value) || value['requestLeadBuyerPhoneNumber'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function LeadBuyerConfigDtoFromJSON(json: any): LeadBuyerConfigDto {
46
+ return LeadBuyerConfigDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function LeadBuyerConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadBuyerConfigDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'requestLeadBuyerCompanyName': json['requestLeadBuyerCompanyName'],
56
+ 'requestLeadBuyerPhoneNumber': json['requestLeadBuyerPhoneNumber'],
57
+ };
58
+ }
59
+
60
+ export function LeadBuyerConfigDtoToJSON(json: any): LeadBuyerConfigDto {
61
+ return LeadBuyerConfigDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function LeadBuyerConfigDtoToJSONTyped(value?: LeadBuyerConfigDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'requestLeadBuyerCompanyName': value['requestLeadBuyerCompanyName'],
72
+ 'requestLeadBuyerPhoneNumber': value['requestLeadBuyerPhoneNumber'],
73
+ };
74
+ }
75
+
@@ -43,6 +43,12 @@ export interface PublicLeadBuyerDto {
43
43
  * @memberof PublicLeadBuyerDto
44
44
  */
45
45
  companyName: string | null;
46
+ /**
47
+ * Lead buyer phone number
48
+ * @type {string}
49
+ * @memberof PublicLeadBuyerDto
50
+ */
51
+ phoneNumber: string | null;
46
52
  }
47
53
 
48
54
  /**
@@ -53,6 +59,7 @@ export function instanceOfPublicLeadBuyerDto(value: object): value is PublicLead
53
59
  if (!('lastname' in value) || value['lastname'] === undefined) return false;
54
60
  if (!('email' in value) || value['email'] === undefined) return false;
55
61
  if (!('companyName' in value) || value['companyName'] === undefined) return false;
62
+ if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
56
63
  return true;
57
64
  }
58
65
 
@@ -70,6 +77,7 @@ export function PublicLeadBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator:
70
77
  'lastname': json['lastname'],
71
78
  'email': json['email'],
72
79
  'companyName': json['companyName'],
80
+ 'phoneNumber': json['phoneNumber'],
73
81
  };
74
82
  }
75
83
 
@@ -88,6 +96,7 @@ export function PublicLeadBuyerDtoToJSONTyped(value?: PublicLeadBuyerDto | null,
88
96
  'lastname': value['lastname'],
89
97
  'email': value['email'],
90
98
  'companyName': value['companyName'],
99
+ 'phoneNumber': value['phoneNumber'],
91
100
  };
92
101
  }
93
102
 
@@ -37,6 +37,18 @@ export interface UpdateLeadInput {
37
37
  * @memberof UpdateLeadInput
38
38
  */
39
39
  email: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof UpdateLeadInput
44
+ */
45
+ companyName?: string | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof UpdateLeadInput
50
+ */
51
+ phoneNumber?: string | null;
40
52
  }
41
53
 
42
54
  /**
@@ -62,6 +74,8 @@ export function UpdateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boo
62
74
  'firstname': json['firstname'],
63
75
  'lastname': json['lastname'],
64
76
  'email': json['email'],
77
+ 'companyName': json['companyName'] == null ? undefined : json['companyName'],
78
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
65
79
  };
66
80
  }
67
81
 
@@ -79,6 +93,8 @@ export function UpdateLeadInputToJSONTyped(value?: UpdateLeadInput | null, ignor
79
93
  'firstname': value['firstname'],
80
94
  'lastname': value['lastname'],
81
95
  'email': value['email'],
96
+ 'companyName': value['companyName'],
97
+ 'phoneNumber': value['phoneNumber'],
82
98
  };
83
99
  }
84
100
 
@@ -135,6 +135,7 @@ export * from './InvoiceSellerAccountDto';
135
135
  export * from './InvoiceTransactionDto';
136
136
  export * from './LandingPageInput';
137
137
  export * from './LandingPageSettingsDto';
138
+ export * from './LeadBuyerConfigDto';
138
139
  export * from './LeadDomainDto';
139
140
  export * from './LeadDto';
140
141
  export * from './LeadLeaseToOwnAndRentConfigurationPresetsDto';