@randock/nameshift-api-client 0.0.463 → 0.0.464
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.
- package/.openapi-generator/FILES +3 -0
- package/README.md +3 -3
- package/dist/models/LeadEnrichmentDomainDto.d.ts +39 -0
- package/dist/models/LeadEnrichmentDomainDto.js +56 -0
- package/dist/models/LeadEnrichmentDomainVariantDto.d.ts +74 -0
- package/dist/models/LeadEnrichmentDomainVariantDto.js +79 -0
- package/dist/models/LeadEnrichmentDto.d.ts +16 -2
- package/dist/models/LeadEnrichmentDto.js +10 -0
- package/dist/models/LeadEnrichmentEmailDto.d.ts +0 -6
- package/dist/models/LeadEnrichmentEmailDto.js +0 -4
- package/dist/models/LeadEnrichmentPersonDto.d.ts +69 -0
- package/dist/models/LeadEnrichmentPersonDto.js +80 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/models/LeadEnrichmentDomainDto.ts +83 -0
- package/src/models/LeadEnrichmentDomainVariantDto.ts +129 -0
- package/src/models/LeadEnrichmentDto.ts +34 -2
- package/src/models/LeadEnrichmentEmailDto.ts +0 -9
- package/src/models/LeadEnrichmentPersonDto.ts +125 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -332,9 +332,12 @@ src/models/LeadBuyerConfigDto.ts
|
|
|
332
332
|
src/models/LeadDomainDto.ts
|
|
333
333
|
src/models/LeadDto.ts
|
|
334
334
|
src/models/LeadEnrichmentCompanyDto.ts
|
|
335
|
+
src/models/LeadEnrichmentDomainDto.ts
|
|
336
|
+
src/models/LeadEnrichmentDomainVariantDto.ts
|
|
335
337
|
src/models/LeadEnrichmentDto.ts
|
|
336
338
|
src/models/LeadEnrichmentEmailDto.ts
|
|
337
339
|
src/models/LeadEnrichmentIpDto.ts
|
|
340
|
+
src/models/LeadEnrichmentPersonDto.ts
|
|
338
341
|
src/models/LeadEnrichmentWebResultDto.ts
|
|
339
342
|
src/models/LeadLeaseToOwnAndRentConfigurationPresetsDto.ts
|
|
340
343
|
src/models/LeadLeaseToOwnConfigurationDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.464
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.464 --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
|
-
|
|
47
|
+
05aae47b3839e9992711183c6c49497893deb1a29a48ec7a128d64773844c19fa446f89861fdff28bf6dda8fa3a547a8
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { LeadEnrichmentDomainVariantDto } from './LeadEnrichmentDomainVariantDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LeadEnrichmentDomainDto
|
|
17
|
+
*/
|
|
18
|
+
export interface LeadEnrichmentDomainDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LeadEnrichmentDomainDto
|
|
23
|
+
*/
|
|
24
|
+
status: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<LeadEnrichmentDomainVariantDto>}
|
|
28
|
+
* @memberof LeadEnrichmentDomainDto
|
|
29
|
+
*/
|
|
30
|
+
variants: Array<LeadEnrichmentDomainVariantDto>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the LeadEnrichmentDomainDto interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfLeadEnrichmentDomainDto(value: object): value is LeadEnrichmentDomainDto;
|
|
36
|
+
export declare function LeadEnrichmentDomainDtoFromJSON(json: any): LeadEnrichmentDomainDto;
|
|
37
|
+
export declare function LeadEnrichmentDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentDomainDto;
|
|
38
|
+
export declare function LeadEnrichmentDomainDtoToJSON(json: any): LeadEnrichmentDomainDto;
|
|
39
|
+
export declare function LeadEnrichmentDomainDtoToJSONTyped(value?: LeadEnrichmentDomainDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfLeadEnrichmentDomainDto = instanceOfLeadEnrichmentDomainDto;
|
|
17
|
+
exports.LeadEnrichmentDomainDtoFromJSON = LeadEnrichmentDomainDtoFromJSON;
|
|
18
|
+
exports.LeadEnrichmentDomainDtoFromJSONTyped = LeadEnrichmentDomainDtoFromJSONTyped;
|
|
19
|
+
exports.LeadEnrichmentDomainDtoToJSON = LeadEnrichmentDomainDtoToJSON;
|
|
20
|
+
exports.LeadEnrichmentDomainDtoToJSONTyped = LeadEnrichmentDomainDtoToJSONTyped;
|
|
21
|
+
var LeadEnrichmentDomainVariantDto_1 = require("./LeadEnrichmentDomainVariantDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LeadEnrichmentDomainDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLeadEnrichmentDomainDto(value) {
|
|
26
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('variants' in value) || value['variants'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function LeadEnrichmentDomainDtoFromJSON(json) {
|
|
33
|
+
return LeadEnrichmentDomainDtoFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function LeadEnrichmentDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'status': json['status'],
|
|
41
|
+
'variants': (json['variants'].map(LeadEnrichmentDomainVariantDto_1.LeadEnrichmentDomainVariantDtoFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function LeadEnrichmentDomainDtoToJSON(json) {
|
|
45
|
+
return LeadEnrichmentDomainDtoToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function LeadEnrichmentDomainDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'status': value['status'],
|
|
54
|
+
'variants': (value['variants'].map(LeadEnrichmentDomainVariantDto_1.LeadEnrichmentDomainVariantDtoToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 LeadEnrichmentDomainVariantDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LeadEnrichmentDomainVariantDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
22
|
+
*/
|
|
23
|
+
domain: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
28
|
+
*/
|
|
29
|
+
registered: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
34
|
+
*/
|
|
35
|
+
websiteReachable: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the variant's nameservers match the sale domain's.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
40
|
+
*/
|
|
41
|
+
sameNameservers: boolean | null;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the variant is openly for sale (marketplace parking or a _for-sale record).
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
46
|
+
*/
|
|
47
|
+
forSale: boolean | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
52
|
+
*/
|
|
53
|
+
forSaleMarketplace: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
58
|
+
*/
|
|
59
|
+
forSalePriceAmount: number | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
64
|
+
*/
|
|
65
|
+
forSalePriceCurrency: string | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the LeadEnrichmentDomainVariantDto interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfLeadEnrichmentDomainVariantDto(value: object): value is LeadEnrichmentDomainVariantDto;
|
|
71
|
+
export declare function LeadEnrichmentDomainVariantDtoFromJSON(json: any): LeadEnrichmentDomainVariantDto;
|
|
72
|
+
export declare function LeadEnrichmentDomainVariantDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentDomainVariantDto;
|
|
73
|
+
export declare function LeadEnrichmentDomainVariantDtoToJSON(json: any): LeadEnrichmentDomainVariantDto;
|
|
74
|
+
export declare function LeadEnrichmentDomainVariantDtoToJSONTyped(value?: LeadEnrichmentDomainVariantDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfLeadEnrichmentDomainVariantDto = instanceOfLeadEnrichmentDomainVariantDto;
|
|
17
|
+
exports.LeadEnrichmentDomainVariantDtoFromJSON = LeadEnrichmentDomainVariantDtoFromJSON;
|
|
18
|
+
exports.LeadEnrichmentDomainVariantDtoFromJSONTyped = LeadEnrichmentDomainVariantDtoFromJSONTyped;
|
|
19
|
+
exports.LeadEnrichmentDomainVariantDtoToJSON = LeadEnrichmentDomainVariantDtoToJSON;
|
|
20
|
+
exports.LeadEnrichmentDomainVariantDtoToJSONTyped = LeadEnrichmentDomainVariantDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LeadEnrichmentDomainVariantDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLeadEnrichmentDomainVariantDto(value) {
|
|
25
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('registered' in value) || value['registered'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('websiteReachable' in value) || value['websiteReachable'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('sameNameservers' in value) || value['sameNameservers'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('forSale' in value) || value['forSale'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('forSaleMarketplace' in value) || value['forSaleMarketplace'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('forSalePriceAmount' in value) || value['forSalePriceAmount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('forSalePriceCurrency' in value) || value['forSalePriceCurrency'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function LeadEnrichmentDomainVariantDtoFromJSON(json) {
|
|
44
|
+
return LeadEnrichmentDomainVariantDtoFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function LeadEnrichmentDomainVariantDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'domain': json['domain'],
|
|
52
|
+
'registered': json['registered'],
|
|
53
|
+
'websiteReachable': json['websiteReachable'],
|
|
54
|
+
'sameNameservers': json['sameNameservers'],
|
|
55
|
+
'forSale': json['forSale'],
|
|
56
|
+
'forSaleMarketplace': json['forSaleMarketplace'],
|
|
57
|
+
'forSalePriceAmount': json['forSalePriceAmount'],
|
|
58
|
+
'forSalePriceCurrency': json['forSalePriceCurrency'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function LeadEnrichmentDomainVariantDtoToJSON(json) {
|
|
62
|
+
return LeadEnrichmentDomainVariantDtoToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function LeadEnrichmentDomainVariantDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
65
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'domain': value['domain'],
|
|
71
|
+
'registered': value['registered'],
|
|
72
|
+
'websiteReachable': value['websiteReachable'],
|
|
73
|
+
'sameNameservers': value['sameNameservers'],
|
|
74
|
+
'forSale': value['forSale'],
|
|
75
|
+
'forSaleMarketplace': value['forSaleMarketplace'],
|
|
76
|
+
'forSalePriceAmount': value['forSalePriceAmount'],
|
|
77
|
+
'forSalePriceCurrency': value['forSalePriceCurrency'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LeadEnrichmentPersonDto } from './LeadEnrichmentPersonDto';
|
|
12
13
|
import type { LeadEnrichmentIpDto } from './LeadEnrichmentIpDto';
|
|
13
14
|
import type { LeadEnrichmentEmailDto } from './LeadEnrichmentEmailDto';
|
|
14
15
|
import type { LeadEnrichmentWebResultDto } from './LeadEnrichmentWebResultDto';
|
|
15
16
|
import type { LeadEnrichmentCompanyDto } from './LeadEnrichmentCompanyDto';
|
|
17
|
+
import type { LeadEnrichmentDomainDto } from './LeadEnrichmentDomainDto';
|
|
16
18
|
/**
|
|
17
19
|
*
|
|
18
20
|
* @export
|
|
@@ -32,13 +34,13 @@ export interface LeadEnrichmentDto {
|
|
|
32
34
|
*/
|
|
33
35
|
status: string | null;
|
|
34
36
|
/**
|
|
35
|
-
*
|
|
37
|
+
* What publicly ties this buyer to the domain they want. Who the buyer is lives on `person`.
|
|
36
38
|
* @type {string}
|
|
37
39
|
* @memberof LeadEnrichmentDto
|
|
38
40
|
*/
|
|
39
41
|
webSummary: string | null;
|
|
40
42
|
/**
|
|
41
|
-
*
|
|
43
|
+
* Sources behind `webSummary`.
|
|
42
44
|
* @type {Array<LeadEnrichmentWebResultDto>}
|
|
43
45
|
* @memberof LeadEnrichmentDto
|
|
44
46
|
*/
|
|
@@ -49,6 +51,12 @@ export interface LeadEnrichmentDto {
|
|
|
49
51
|
* @memberof LeadEnrichmentDto
|
|
50
52
|
*/
|
|
51
53
|
email: LeadEnrichmentEmailDto | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {LeadEnrichmentPersonDto}
|
|
57
|
+
* @memberof LeadEnrichmentDto
|
|
58
|
+
*/
|
|
59
|
+
person: LeadEnrichmentPersonDto | null;
|
|
52
60
|
/**
|
|
53
61
|
*
|
|
54
62
|
* @type {LeadEnrichmentCompanyDto}
|
|
@@ -61,6 +69,12 @@ export interface LeadEnrichmentDto {
|
|
|
61
69
|
* @memberof LeadEnrichmentDto
|
|
62
70
|
*/
|
|
63
71
|
ip: LeadEnrichmentIpDto | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {LeadEnrichmentDomainDto}
|
|
75
|
+
* @memberof LeadEnrichmentDto
|
|
76
|
+
*/
|
|
77
|
+
domain: LeadEnrichmentDomainDto | null;
|
|
64
78
|
}
|
|
65
79
|
/**
|
|
66
80
|
* Check if a given object implements the LeadEnrichmentDto interface.
|
|
@@ -18,10 +18,12 @@ exports.LeadEnrichmentDtoFromJSON = LeadEnrichmentDtoFromJSON;
|
|
|
18
18
|
exports.LeadEnrichmentDtoFromJSONTyped = LeadEnrichmentDtoFromJSONTyped;
|
|
19
19
|
exports.LeadEnrichmentDtoToJSON = LeadEnrichmentDtoToJSON;
|
|
20
20
|
exports.LeadEnrichmentDtoToJSONTyped = LeadEnrichmentDtoToJSONTyped;
|
|
21
|
+
var LeadEnrichmentPersonDto_1 = require("./LeadEnrichmentPersonDto");
|
|
21
22
|
var LeadEnrichmentIpDto_1 = require("./LeadEnrichmentIpDto");
|
|
22
23
|
var LeadEnrichmentEmailDto_1 = require("./LeadEnrichmentEmailDto");
|
|
23
24
|
var LeadEnrichmentWebResultDto_1 = require("./LeadEnrichmentWebResultDto");
|
|
24
25
|
var LeadEnrichmentCompanyDto_1 = require("./LeadEnrichmentCompanyDto");
|
|
26
|
+
var LeadEnrichmentDomainDto_1 = require("./LeadEnrichmentDomainDto");
|
|
25
27
|
/**
|
|
26
28
|
* Check if a given object implements the LeadEnrichmentDto interface.
|
|
27
29
|
*/
|
|
@@ -36,10 +38,14 @@ function instanceOfLeadEnrichmentDto(value) {
|
|
|
36
38
|
return false;
|
|
37
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
38
40
|
return false;
|
|
41
|
+
if (!('person' in value) || value['person'] === undefined)
|
|
42
|
+
return false;
|
|
39
43
|
if (!('company' in value) || value['company'] === undefined)
|
|
40
44
|
return false;
|
|
41
45
|
if (!('ip' in value) || value['ip'] === undefined)
|
|
42
46
|
return false;
|
|
47
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
48
|
+
return false;
|
|
43
49
|
return true;
|
|
44
50
|
}
|
|
45
51
|
function LeadEnrichmentDtoFromJSON(json) {
|
|
@@ -55,8 +61,10 @@ function LeadEnrichmentDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
61
|
'webSummary': json['webSummary'],
|
|
56
62
|
'webResults': (json['webResults'].map(LeadEnrichmentWebResultDto_1.LeadEnrichmentWebResultDtoFromJSON)),
|
|
57
63
|
'email': (0, LeadEnrichmentEmailDto_1.LeadEnrichmentEmailDtoFromJSON)(json['email']),
|
|
64
|
+
'person': (0, LeadEnrichmentPersonDto_1.LeadEnrichmentPersonDtoFromJSON)(json['person']),
|
|
58
65
|
'company': (0, LeadEnrichmentCompanyDto_1.LeadEnrichmentCompanyDtoFromJSON)(json['company']),
|
|
59
66
|
'ip': (0, LeadEnrichmentIpDto_1.LeadEnrichmentIpDtoFromJSON)(json['ip']),
|
|
67
|
+
'domain': (0, LeadEnrichmentDomainDto_1.LeadEnrichmentDomainDtoFromJSON)(json['domain']),
|
|
60
68
|
};
|
|
61
69
|
}
|
|
62
70
|
function LeadEnrichmentDtoToJSON(json) {
|
|
@@ -73,7 +81,9 @@ function LeadEnrichmentDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
81
|
'webSummary': value['webSummary'],
|
|
74
82
|
'webResults': (value['webResults'].map(LeadEnrichmentWebResultDto_1.LeadEnrichmentWebResultDtoToJSON)),
|
|
75
83
|
'email': (0, LeadEnrichmentEmailDto_1.LeadEnrichmentEmailDtoToJSON)(value['email']),
|
|
84
|
+
'person': (0, LeadEnrichmentPersonDto_1.LeadEnrichmentPersonDtoToJSON)(value['person']),
|
|
76
85
|
'company': (0, LeadEnrichmentCompanyDto_1.LeadEnrichmentCompanyDtoToJSON)(value['company']),
|
|
77
86
|
'ip': (0, LeadEnrichmentIpDto_1.LeadEnrichmentIpDtoToJSON)(value['ip']),
|
|
87
|
+
'domain': (0, LeadEnrichmentDomainDto_1.LeadEnrichmentDomainDtoToJSON)(value['domain']),
|
|
78
88
|
};
|
|
79
89
|
}
|
|
@@ -27,12 +27,6 @@ export interface LeadEnrichmentEmailDto {
|
|
|
27
27
|
* @memberof LeadEnrichmentEmailDto
|
|
28
28
|
*/
|
|
29
29
|
isDisposable: boolean | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof LeadEnrichmentEmailDto
|
|
34
|
-
*/
|
|
35
|
-
webSummary: string | null;
|
|
36
30
|
}
|
|
37
31
|
/**
|
|
38
32
|
* Check if a given object implements the LeadEnrichmentEmailDto interface.
|
|
@@ -26,8 +26,6 @@ function instanceOfLeadEnrichmentEmailDto(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('isDisposable' in value) || value['isDisposable'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('webSummary' in value) || value['webSummary'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
return true;
|
|
32
30
|
}
|
|
33
31
|
function LeadEnrichmentEmailDtoFromJSON(json) {
|
|
@@ -40,7 +38,6 @@ function LeadEnrichmentEmailDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
38
|
return {
|
|
41
39
|
'isFreeMail': json['isFreeMail'],
|
|
42
40
|
'isDisposable': json['isDisposable'],
|
|
43
|
-
'webSummary': json['webSummary'],
|
|
44
41
|
};
|
|
45
42
|
}
|
|
46
43
|
function LeadEnrichmentEmailDtoToJSON(json) {
|
|
@@ -54,6 +51,5 @@ function LeadEnrichmentEmailDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
54
51
|
return {
|
|
55
52
|
'isFreeMail': value['isFreeMail'],
|
|
56
53
|
'isDisposable': value['isDisposable'],
|
|
57
|
-
'webSummary': value['webSummary'],
|
|
58
54
|
};
|
|
59
55
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { LeadEnrichmentWebResultDto } from './LeadEnrichmentWebResultDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LeadEnrichmentPersonDto
|
|
17
|
+
*/
|
|
18
|
+
export interface LeadEnrichmentPersonDto {
|
|
19
|
+
/**
|
|
20
|
+
* Lifecycle of the person record. "awaiting" means the mailbox classification has not yet settled whether this buyer is worth researching — not a failure. "not_found" covers both a search that surfaced nothing and a mailbox skipped as disposable.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LeadEnrichmentPersonDto
|
|
23
|
+
*/
|
|
24
|
+
status: LeadEnrichmentPersonDtoStatusEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Buyer-stated name the search ran on; unverified.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LeadEnrichmentPersonDto
|
|
29
|
+
*/
|
|
30
|
+
statedName: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Buyer-stated company; unverified.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof LeadEnrichmentPersonDto
|
|
35
|
+
*/
|
|
36
|
+
statedCompany: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Summary of the buyer's public web footprint; null until researched, or when nothing surfaced.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof LeadEnrichmentPersonDto
|
|
41
|
+
*/
|
|
42
|
+
webSummary: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Sources behind `webSummary`.
|
|
45
|
+
* @type {Array<LeadEnrichmentWebResultDto>}
|
|
46
|
+
* @memberof LeadEnrichmentPersonDto
|
|
47
|
+
*/
|
|
48
|
+
webResults: Array<LeadEnrichmentWebResultDto>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const LeadEnrichmentPersonDtoStatusEnum: {
|
|
54
|
+
readonly AWAITING: "awaiting";
|
|
55
|
+
readonly PENDING: "pending";
|
|
56
|
+
readonly ENRICHING: "enriching";
|
|
57
|
+
readonly ENRICHED: "enriched";
|
|
58
|
+
readonly NOT_FOUND: "not_found";
|
|
59
|
+
readonly FAILED: "failed";
|
|
60
|
+
};
|
|
61
|
+
export type LeadEnrichmentPersonDtoStatusEnum = typeof LeadEnrichmentPersonDtoStatusEnum[keyof typeof LeadEnrichmentPersonDtoStatusEnum];
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the LeadEnrichmentPersonDto interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfLeadEnrichmentPersonDto(value: object): value is LeadEnrichmentPersonDto;
|
|
66
|
+
export declare function LeadEnrichmentPersonDtoFromJSON(json: any): LeadEnrichmentPersonDto;
|
|
67
|
+
export declare function LeadEnrichmentPersonDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentPersonDto;
|
|
68
|
+
export declare function LeadEnrichmentPersonDtoToJSON(json: any): LeadEnrichmentPersonDto;
|
|
69
|
+
export declare function LeadEnrichmentPersonDtoToJSONTyped(value?: LeadEnrichmentPersonDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.LeadEnrichmentPersonDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfLeadEnrichmentPersonDto = instanceOfLeadEnrichmentPersonDto;
|
|
18
|
+
exports.LeadEnrichmentPersonDtoFromJSON = LeadEnrichmentPersonDtoFromJSON;
|
|
19
|
+
exports.LeadEnrichmentPersonDtoFromJSONTyped = LeadEnrichmentPersonDtoFromJSONTyped;
|
|
20
|
+
exports.LeadEnrichmentPersonDtoToJSON = LeadEnrichmentPersonDtoToJSON;
|
|
21
|
+
exports.LeadEnrichmentPersonDtoToJSONTyped = LeadEnrichmentPersonDtoToJSONTyped;
|
|
22
|
+
var LeadEnrichmentWebResultDto_1 = require("./LeadEnrichmentWebResultDto");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.LeadEnrichmentPersonDtoStatusEnum = {
|
|
27
|
+
AWAITING: 'awaiting',
|
|
28
|
+
PENDING: 'pending',
|
|
29
|
+
ENRICHING: 'enriching',
|
|
30
|
+
ENRICHED: 'enriched',
|
|
31
|
+
NOT_FOUND: 'not_found',
|
|
32
|
+
FAILED: 'failed'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the LeadEnrichmentPersonDto interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfLeadEnrichmentPersonDto(value) {
|
|
38
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('statedName' in value) || value['statedName'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('statedCompany' in value) || value['statedCompany'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('webSummary' in value) || value['webSummary'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('webResults' in value) || value['webResults'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function LeadEnrichmentPersonDtoFromJSON(json) {
|
|
51
|
+
return LeadEnrichmentPersonDtoFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function LeadEnrichmentPersonDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'status': json['status'],
|
|
59
|
+
'statedName': json['statedName'],
|
|
60
|
+
'statedCompany': json['statedCompany'],
|
|
61
|
+
'webSummary': json['webSummary'],
|
|
62
|
+
'webResults': (json['webResults'].map(LeadEnrichmentWebResultDto_1.LeadEnrichmentWebResultDtoFromJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function LeadEnrichmentPersonDtoToJSON(json) {
|
|
66
|
+
return LeadEnrichmentPersonDtoToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function LeadEnrichmentPersonDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
69
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'status': value['status'],
|
|
75
|
+
'statedName': value['statedName'],
|
|
76
|
+
'statedCompany': value['statedCompany'],
|
|
77
|
+
'webSummary': value['webSummary'],
|
|
78
|
+
'webResults': (value['webResults'].map(LeadEnrichmentWebResultDto_1.LeadEnrichmentWebResultDtoToJSON)),
|
|
79
|
+
};
|
|
80
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -292,9 +292,12 @@ export * from './LeadBuyerConfigDto';
|
|
|
292
292
|
export * from './LeadDomainDto';
|
|
293
293
|
export * from './LeadDto';
|
|
294
294
|
export * from './LeadEnrichmentCompanyDto';
|
|
295
|
+
export * from './LeadEnrichmentDomainDto';
|
|
296
|
+
export * from './LeadEnrichmentDomainVariantDto';
|
|
295
297
|
export * from './LeadEnrichmentDto';
|
|
296
298
|
export * from './LeadEnrichmentEmailDto';
|
|
297
299
|
export * from './LeadEnrichmentIpDto';
|
|
300
|
+
export * from './LeadEnrichmentPersonDto';
|
|
298
301
|
export * from './LeadEnrichmentWebResultDto';
|
|
299
302
|
export * from './LeadLeaseToOwnAndRentConfigurationPresetsDto';
|
|
300
303
|
export * from './LeadLeaseToOwnConfigurationDto';
|
package/dist/models/index.js
CHANGED
|
@@ -310,9 +310,12 @@ __exportStar(require("./LeadBuyerConfigDto"), exports);
|
|
|
310
310
|
__exportStar(require("./LeadDomainDto"), exports);
|
|
311
311
|
__exportStar(require("./LeadDto"), exports);
|
|
312
312
|
__exportStar(require("./LeadEnrichmentCompanyDto"), exports);
|
|
313
|
+
__exportStar(require("./LeadEnrichmentDomainDto"), exports);
|
|
314
|
+
__exportStar(require("./LeadEnrichmentDomainVariantDto"), exports);
|
|
313
315
|
__exportStar(require("./LeadEnrichmentDto"), exports);
|
|
314
316
|
__exportStar(require("./LeadEnrichmentEmailDto"), exports);
|
|
315
317
|
__exportStar(require("./LeadEnrichmentIpDto"), exports);
|
|
318
|
+
__exportStar(require("./LeadEnrichmentPersonDto"), exports);
|
|
316
319
|
__exportStar(require("./LeadEnrichmentWebResultDto"), exports);
|
|
317
320
|
__exportStar(require("./LeadLeaseToOwnAndRentConfigurationPresetsDto"), exports);
|
|
318
321
|
__exportStar(require("./LeadLeaseToOwnConfigurationDto"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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
|
+
import type { LeadEnrichmentDomainVariantDto } from './LeadEnrichmentDomainVariantDto';
|
|
17
|
+
import {
|
|
18
|
+
LeadEnrichmentDomainVariantDtoFromJSON,
|
|
19
|
+
LeadEnrichmentDomainVariantDtoFromJSONTyped,
|
|
20
|
+
LeadEnrichmentDomainVariantDtoToJSON,
|
|
21
|
+
LeadEnrichmentDomainVariantDtoToJSONTyped,
|
|
22
|
+
} from './LeadEnrichmentDomainVariantDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LeadEnrichmentDomainDto
|
|
28
|
+
*/
|
|
29
|
+
export interface LeadEnrichmentDomainDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LeadEnrichmentDomainDto
|
|
34
|
+
*/
|
|
35
|
+
status: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<LeadEnrichmentDomainVariantDto>}
|
|
39
|
+
* @memberof LeadEnrichmentDomainDto
|
|
40
|
+
*/
|
|
41
|
+
variants: Array<LeadEnrichmentDomainVariantDto>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the LeadEnrichmentDomainDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfLeadEnrichmentDomainDto(value: object): value is LeadEnrichmentDomainDto {
|
|
48
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
49
|
+
if (!('variants' in value) || value['variants'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function LeadEnrichmentDomainDtoFromJSON(json: any): LeadEnrichmentDomainDto {
|
|
54
|
+
return LeadEnrichmentDomainDtoFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function LeadEnrichmentDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentDomainDto {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'status': json['status'],
|
|
64
|
+
'variants': ((json['variants'] as Array<any>).map(LeadEnrichmentDomainVariantDtoFromJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function LeadEnrichmentDomainDtoToJSON(json: any): LeadEnrichmentDomainDto {
|
|
69
|
+
return LeadEnrichmentDomainDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function LeadEnrichmentDomainDtoToJSONTyped(value?: LeadEnrichmentDomainDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'status': value['status'],
|
|
80
|
+
'variants': ((value['variants'] as Array<any>).map(LeadEnrichmentDomainVariantDtoToJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 LeadEnrichmentDomainVariantDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LeadEnrichmentDomainVariantDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
26
|
+
*/
|
|
27
|
+
domain: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
32
|
+
*/
|
|
33
|
+
registered: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
38
|
+
*/
|
|
39
|
+
websiteReachable: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the variant's nameservers match the sale domain's.
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
44
|
+
*/
|
|
45
|
+
sameNameservers: boolean | null;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the variant is openly for sale (marketplace parking or a _for-sale record).
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
50
|
+
*/
|
|
51
|
+
forSale: boolean | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
56
|
+
*/
|
|
57
|
+
forSaleMarketplace: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
62
|
+
*/
|
|
63
|
+
forSalePriceAmount: number | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof LeadEnrichmentDomainVariantDto
|
|
68
|
+
*/
|
|
69
|
+
forSalePriceCurrency: string | null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the LeadEnrichmentDomainVariantDto interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfLeadEnrichmentDomainVariantDto(value: object): value is LeadEnrichmentDomainVariantDto {
|
|
76
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
77
|
+
if (!('registered' in value) || value['registered'] === undefined) return false;
|
|
78
|
+
if (!('websiteReachable' in value) || value['websiteReachable'] === undefined) return false;
|
|
79
|
+
if (!('sameNameservers' in value) || value['sameNameservers'] === undefined) return false;
|
|
80
|
+
if (!('forSale' in value) || value['forSale'] === undefined) return false;
|
|
81
|
+
if (!('forSaleMarketplace' in value) || value['forSaleMarketplace'] === undefined) return false;
|
|
82
|
+
if (!('forSalePriceAmount' in value) || value['forSalePriceAmount'] === undefined) return false;
|
|
83
|
+
if (!('forSalePriceCurrency' in value) || value['forSalePriceCurrency'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function LeadEnrichmentDomainVariantDtoFromJSON(json: any): LeadEnrichmentDomainVariantDto {
|
|
88
|
+
return LeadEnrichmentDomainVariantDtoFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function LeadEnrichmentDomainVariantDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentDomainVariantDto {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'domain': json['domain'],
|
|
98
|
+
'registered': json['registered'],
|
|
99
|
+
'websiteReachable': json['websiteReachable'],
|
|
100
|
+
'sameNameservers': json['sameNameservers'],
|
|
101
|
+
'forSale': json['forSale'],
|
|
102
|
+
'forSaleMarketplace': json['forSaleMarketplace'],
|
|
103
|
+
'forSalePriceAmount': json['forSalePriceAmount'],
|
|
104
|
+
'forSalePriceCurrency': json['forSalePriceCurrency'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function LeadEnrichmentDomainVariantDtoToJSON(json: any): LeadEnrichmentDomainVariantDto {
|
|
109
|
+
return LeadEnrichmentDomainVariantDtoToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function LeadEnrichmentDomainVariantDtoToJSONTyped(value?: LeadEnrichmentDomainVariantDto | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'domain': value['domain'],
|
|
120
|
+
'registered': value['registered'],
|
|
121
|
+
'websiteReachable': value['websiteReachable'],
|
|
122
|
+
'sameNameservers': value['sameNameservers'],
|
|
123
|
+
'forSale': value['forSale'],
|
|
124
|
+
'forSaleMarketplace': value['forSaleMarketplace'],
|
|
125
|
+
'forSalePriceAmount': value['forSalePriceAmount'],
|
|
126
|
+
'forSalePriceCurrency': value['forSalePriceCurrency'],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LeadEnrichmentPersonDto } from './LeadEnrichmentPersonDto';
|
|
17
|
+
import {
|
|
18
|
+
LeadEnrichmentPersonDtoFromJSON,
|
|
19
|
+
LeadEnrichmentPersonDtoFromJSONTyped,
|
|
20
|
+
LeadEnrichmentPersonDtoToJSON,
|
|
21
|
+
LeadEnrichmentPersonDtoToJSONTyped,
|
|
22
|
+
} from './LeadEnrichmentPersonDto';
|
|
16
23
|
import type { LeadEnrichmentIpDto } from './LeadEnrichmentIpDto';
|
|
17
24
|
import {
|
|
18
25
|
LeadEnrichmentIpDtoFromJSON,
|
|
@@ -41,6 +48,13 @@ import {
|
|
|
41
48
|
LeadEnrichmentCompanyDtoToJSON,
|
|
42
49
|
LeadEnrichmentCompanyDtoToJSONTyped,
|
|
43
50
|
} from './LeadEnrichmentCompanyDto';
|
|
51
|
+
import type { LeadEnrichmentDomainDto } from './LeadEnrichmentDomainDto';
|
|
52
|
+
import {
|
|
53
|
+
LeadEnrichmentDomainDtoFromJSON,
|
|
54
|
+
LeadEnrichmentDomainDtoFromJSONTyped,
|
|
55
|
+
LeadEnrichmentDomainDtoToJSON,
|
|
56
|
+
LeadEnrichmentDomainDtoToJSONTyped,
|
|
57
|
+
} from './LeadEnrichmentDomainDto';
|
|
44
58
|
|
|
45
59
|
/**
|
|
46
60
|
*
|
|
@@ -61,13 +75,13 @@ export interface LeadEnrichmentDto {
|
|
|
61
75
|
*/
|
|
62
76
|
status: string | null;
|
|
63
77
|
/**
|
|
64
|
-
*
|
|
78
|
+
* What publicly ties this buyer to the domain they want. Who the buyer is lives on `person`.
|
|
65
79
|
* @type {string}
|
|
66
80
|
* @memberof LeadEnrichmentDto
|
|
67
81
|
*/
|
|
68
82
|
webSummary: string | null;
|
|
69
83
|
/**
|
|
70
|
-
*
|
|
84
|
+
* Sources behind `webSummary`.
|
|
71
85
|
* @type {Array<LeadEnrichmentWebResultDto>}
|
|
72
86
|
* @memberof LeadEnrichmentDto
|
|
73
87
|
*/
|
|
@@ -78,6 +92,12 @@ export interface LeadEnrichmentDto {
|
|
|
78
92
|
* @memberof LeadEnrichmentDto
|
|
79
93
|
*/
|
|
80
94
|
email: LeadEnrichmentEmailDto | null;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {LeadEnrichmentPersonDto}
|
|
98
|
+
* @memberof LeadEnrichmentDto
|
|
99
|
+
*/
|
|
100
|
+
person: LeadEnrichmentPersonDto | null;
|
|
81
101
|
/**
|
|
82
102
|
*
|
|
83
103
|
* @type {LeadEnrichmentCompanyDto}
|
|
@@ -90,6 +110,12 @@ export interface LeadEnrichmentDto {
|
|
|
90
110
|
* @memberof LeadEnrichmentDto
|
|
91
111
|
*/
|
|
92
112
|
ip: LeadEnrichmentIpDto | null;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {LeadEnrichmentDomainDto}
|
|
116
|
+
* @memberof LeadEnrichmentDto
|
|
117
|
+
*/
|
|
118
|
+
domain: LeadEnrichmentDomainDto | null;
|
|
93
119
|
}
|
|
94
120
|
|
|
95
121
|
/**
|
|
@@ -101,8 +127,10 @@ export function instanceOfLeadEnrichmentDto(value: object): value is LeadEnrichm
|
|
|
101
127
|
if (!('webSummary' in value) || value['webSummary'] === undefined) return false;
|
|
102
128
|
if (!('webResults' in value) || value['webResults'] === undefined) return false;
|
|
103
129
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
130
|
+
if (!('person' in value) || value['person'] === undefined) return false;
|
|
104
131
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
105
132
|
if (!('ip' in value) || value['ip'] === undefined) return false;
|
|
133
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
106
134
|
return true;
|
|
107
135
|
}
|
|
108
136
|
|
|
@@ -121,8 +149,10 @@ export function LeadEnrichmentDtoFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
121
149
|
'webSummary': json['webSummary'],
|
|
122
150
|
'webResults': ((json['webResults'] as Array<any>).map(LeadEnrichmentWebResultDtoFromJSON)),
|
|
123
151
|
'email': LeadEnrichmentEmailDtoFromJSON(json['email']),
|
|
152
|
+
'person': LeadEnrichmentPersonDtoFromJSON(json['person']),
|
|
124
153
|
'company': LeadEnrichmentCompanyDtoFromJSON(json['company']),
|
|
125
154
|
'ip': LeadEnrichmentIpDtoFromJSON(json['ip']),
|
|
155
|
+
'domain': LeadEnrichmentDomainDtoFromJSON(json['domain']),
|
|
126
156
|
};
|
|
127
157
|
}
|
|
128
158
|
|
|
@@ -142,8 +172,10 @@ export function LeadEnrichmentDtoToJSONTyped(value?: LeadEnrichmentDto | null, i
|
|
|
142
172
|
'webSummary': value['webSummary'],
|
|
143
173
|
'webResults': ((value['webResults'] as Array<any>).map(LeadEnrichmentWebResultDtoToJSON)),
|
|
144
174
|
'email': LeadEnrichmentEmailDtoToJSON(value['email']),
|
|
175
|
+
'person': LeadEnrichmentPersonDtoToJSON(value['person']),
|
|
145
176
|
'company': LeadEnrichmentCompanyDtoToJSON(value['company']),
|
|
146
177
|
'ip': LeadEnrichmentIpDtoToJSON(value['ip']),
|
|
178
|
+
'domain': LeadEnrichmentDomainDtoToJSON(value['domain']),
|
|
147
179
|
};
|
|
148
180
|
}
|
|
149
181
|
|
|
@@ -31,12 +31,6 @@ export interface LeadEnrichmentEmailDto {
|
|
|
31
31
|
* @memberof LeadEnrichmentEmailDto
|
|
32
32
|
*/
|
|
33
33
|
isDisposable: boolean | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof LeadEnrichmentEmailDto
|
|
38
|
-
*/
|
|
39
|
-
webSummary: string | null;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
/**
|
|
@@ -45,7 +39,6 @@ export interface LeadEnrichmentEmailDto {
|
|
|
45
39
|
export function instanceOfLeadEnrichmentEmailDto(value: object): value is LeadEnrichmentEmailDto {
|
|
46
40
|
if (!('isFreeMail' in value) || value['isFreeMail'] === undefined) return false;
|
|
47
41
|
if (!('isDisposable' in value) || value['isDisposable'] === undefined) return false;
|
|
48
|
-
if (!('webSummary' in value) || value['webSummary'] === undefined) return false;
|
|
49
42
|
return true;
|
|
50
43
|
}
|
|
51
44
|
|
|
@@ -61,7 +54,6 @@ export function LeadEnrichmentEmailDtoFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
61
54
|
|
|
62
55
|
'isFreeMail': json['isFreeMail'],
|
|
63
56
|
'isDisposable': json['isDisposable'],
|
|
64
|
-
'webSummary': json['webSummary'],
|
|
65
57
|
};
|
|
66
58
|
}
|
|
67
59
|
|
|
@@ -78,7 +70,6 @@ export function LeadEnrichmentEmailDtoToJSONTyped(value?: LeadEnrichmentEmailDto
|
|
|
78
70
|
|
|
79
71
|
'isFreeMail': value['isFreeMail'],
|
|
80
72
|
'isDisposable': value['isDisposable'],
|
|
81
|
-
'webSummary': value['webSummary'],
|
|
82
73
|
};
|
|
83
74
|
}
|
|
84
75
|
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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
|
+
import type { LeadEnrichmentWebResultDto } from './LeadEnrichmentWebResultDto';
|
|
17
|
+
import {
|
|
18
|
+
LeadEnrichmentWebResultDtoFromJSON,
|
|
19
|
+
LeadEnrichmentWebResultDtoFromJSONTyped,
|
|
20
|
+
LeadEnrichmentWebResultDtoToJSON,
|
|
21
|
+
LeadEnrichmentWebResultDtoToJSONTyped,
|
|
22
|
+
} from './LeadEnrichmentWebResultDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LeadEnrichmentPersonDto
|
|
28
|
+
*/
|
|
29
|
+
export interface LeadEnrichmentPersonDto {
|
|
30
|
+
/**
|
|
31
|
+
* Lifecycle of the person record. "awaiting" means the mailbox classification has not yet settled whether this buyer is worth researching — not a failure. "not_found" covers both a search that surfaced nothing and a mailbox skipped as disposable.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LeadEnrichmentPersonDto
|
|
34
|
+
*/
|
|
35
|
+
status: LeadEnrichmentPersonDtoStatusEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Buyer-stated name the search ran on; unverified.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LeadEnrichmentPersonDto
|
|
40
|
+
*/
|
|
41
|
+
statedName: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Buyer-stated company; unverified.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof LeadEnrichmentPersonDto
|
|
46
|
+
*/
|
|
47
|
+
statedCompany: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Summary of the buyer's public web footprint; null until researched, or when nothing surfaced.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof LeadEnrichmentPersonDto
|
|
52
|
+
*/
|
|
53
|
+
webSummary: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Sources behind `webSummary`.
|
|
56
|
+
* @type {Array<LeadEnrichmentWebResultDto>}
|
|
57
|
+
* @memberof LeadEnrichmentPersonDto
|
|
58
|
+
*/
|
|
59
|
+
webResults: Array<LeadEnrichmentWebResultDto>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export const LeadEnrichmentPersonDtoStatusEnum = {
|
|
67
|
+
AWAITING: 'awaiting',
|
|
68
|
+
PENDING: 'pending',
|
|
69
|
+
ENRICHING: 'enriching',
|
|
70
|
+
ENRICHED: 'enriched',
|
|
71
|
+
NOT_FOUND: 'not_found',
|
|
72
|
+
FAILED: 'failed'
|
|
73
|
+
} as const;
|
|
74
|
+
export type LeadEnrichmentPersonDtoStatusEnum = typeof LeadEnrichmentPersonDtoStatusEnum[keyof typeof LeadEnrichmentPersonDtoStatusEnum];
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the LeadEnrichmentPersonDto interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfLeadEnrichmentPersonDto(value: object): value is LeadEnrichmentPersonDto {
|
|
81
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
82
|
+
if (!('statedName' in value) || value['statedName'] === undefined) return false;
|
|
83
|
+
if (!('statedCompany' in value) || value['statedCompany'] === undefined) return false;
|
|
84
|
+
if (!('webSummary' in value) || value['webSummary'] === undefined) return false;
|
|
85
|
+
if (!('webResults' in value) || value['webResults'] === undefined) return false;
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function LeadEnrichmentPersonDtoFromJSON(json: any): LeadEnrichmentPersonDto {
|
|
90
|
+
return LeadEnrichmentPersonDtoFromJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function LeadEnrichmentPersonDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentPersonDto {
|
|
94
|
+
if (json == null) {
|
|
95
|
+
return json;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'status': json['status'],
|
|
100
|
+
'statedName': json['statedName'],
|
|
101
|
+
'statedCompany': json['statedCompany'],
|
|
102
|
+
'webSummary': json['webSummary'],
|
|
103
|
+
'webResults': ((json['webResults'] as Array<any>).map(LeadEnrichmentWebResultDtoFromJSON)),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function LeadEnrichmentPersonDtoToJSON(json: any): LeadEnrichmentPersonDto {
|
|
108
|
+
return LeadEnrichmentPersonDtoToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function LeadEnrichmentPersonDtoToJSONTyped(value?: LeadEnrichmentPersonDto | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'status': value['status'],
|
|
119
|
+
'statedName': value['statedName'],
|
|
120
|
+
'statedCompany': value['statedCompany'],
|
|
121
|
+
'webSummary': value['webSummary'],
|
|
122
|
+
'webResults': ((value['webResults'] as Array<any>).map(LeadEnrichmentWebResultDtoToJSON)),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -294,9 +294,12 @@ export * from './LeadBuyerConfigDto';
|
|
|
294
294
|
export * from './LeadDomainDto';
|
|
295
295
|
export * from './LeadDto';
|
|
296
296
|
export * from './LeadEnrichmentCompanyDto';
|
|
297
|
+
export * from './LeadEnrichmentDomainDto';
|
|
298
|
+
export * from './LeadEnrichmentDomainVariantDto';
|
|
297
299
|
export * from './LeadEnrichmentDto';
|
|
298
300
|
export * from './LeadEnrichmentEmailDto';
|
|
299
301
|
export * from './LeadEnrichmentIpDto';
|
|
302
|
+
export * from './LeadEnrichmentPersonDto';
|
|
300
303
|
export * from './LeadEnrichmentWebResultDto';
|
|
301
304
|
export * from './LeadLeaseToOwnAndRentConfigurationPresetsDto';
|
|
302
305
|
export * from './LeadLeaseToOwnConfigurationDto';
|