@randock/nameshift-api-client 0.0.463 → 0.0.465
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 +4 -0
- package/README.md +3 -3
- package/dist/apis/LeadsPublicApi.d.ts +15 -1
- package/dist/apis/LeadsPublicApi.js +49 -0
- package/dist/models/AdminLeadListItemBuyerDto.d.ts +6 -0
- package/dist/models/AdminLeadListItemBuyerDto.js +4 -0
- package/dist/models/AssociateLeadVisitorInput.d.ts +32 -0
- package/dist/models/AssociateLeadVisitorInput.js +51 -0
- 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 +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/LeadsPublicApi.ts +52 -0
- package/src/models/AdminLeadListItemBuyerDto.ts +9 -0
- package/src/models/AssociateLeadVisitorInput.ts +66 -0
- 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 +4 -0
|
@@ -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
|
@@ -74,6 +74,7 @@ export * from './AirwallexDepositDtoFee';
|
|
|
74
74
|
export * from './ApiKeyDto';
|
|
75
75
|
export * from './ApiKeyScopeDto';
|
|
76
76
|
export * from './ApplyDomainEditInput';
|
|
77
|
+
export * from './AssociateLeadVisitorInput';
|
|
77
78
|
export * from './AuBankAccountDetails';
|
|
78
79
|
export * from './AuctionBidDto';
|
|
79
80
|
export * from './AuctionBidInput';
|
|
@@ -292,9 +293,12 @@ export * from './LeadBuyerConfigDto';
|
|
|
292
293
|
export * from './LeadDomainDto';
|
|
293
294
|
export * from './LeadDto';
|
|
294
295
|
export * from './LeadEnrichmentCompanyDto';
|
|
296
|
+
export * from './LeadEnrichmentDomainDto';
|
|
297
|
+
export * from './LeadEnrichmentDomainVariantDto';
|
|
295
298
|
export * from './LeadEnrichmentDto';
|
|
296
299
|
export * from './LeadEnrichmentEmailDto';
|
|
297
300
|
export * from './LeadEnrichmentIpDto';
|
|
301
|
+
export * from './LeadEnrichmentPersonDto';
|
|
298
302
|
export * from './LeadEnrichmentWebResultDto';
|
|
299
303
|
export * from './LeadLeaseToOwnAndRentConfigurationPresetsDto';
|
|
300
304
|
export * from './LeadLeaseToOwnConfigurationDto';
|
package/dist/models/index.js
CHANGED
|
@@ -92,6 +92,7 @@ __exportStar(require("./AirwallexDepositDtoFee"), exports);
|
|
|
92
92
|
__exportStar(require("./ApiKeyDto"), exports);
|
|
93
93
|
__exportStar(require("./ApiKeyScopeDto"), exports);
|
|
94
94
|
__exportStar(require("./ApplyDomainEditInput"), exports);
|
|
95
|
+
__exportStar(require("./AssociateLeadVisitorInput"), exports);
|
|
95
96
|
__exportStar(require("./AuBankAccountDetails"), exports);
|
|
96
97
|
__exportStar(require("./AuctionBidDto"), exports);
|
|
97
98
|
__exportStar(require("./AuctionBidInput"), exports);
|
|
@@ -310,9 +311,12 @@ __exportStar(require("./LeadBuyerConfigDto"), exports);
|
|
|
310
311
|
__exportStar(require("./LeadDomainDto"), exports);
|
|
311
312
|
__exportStar(require("./LeadDto"), exports);
|
|
312
313
|
__exportStar(require("./LeadEnrichmentCompanyDto"), exports);
|
|
314
|
+
__exportStar(require("./LeadEnrichmentDomainDto"), exports);
|
|
315
|
+
__exportStar(require("./LeadEnrichmentDomainVariantDto"), exports);
|
|
313
316
|
__exportStar(require("./LeadEnrichmentDto"), exports);
|
|
314
317
|
__exportStar(require("./LeadEnrichmentEmailDto"), exports);
|
|
315
318
|
__exportStar(require("./LeadEnrichmentIpDto"), exports);
|
|
319
|
+
__exportStar(require("./LeadEnrichmentPersonDto"), exports);
|
|
316
320
|
__exportStar(require("./LeadEnrichmentWebResultDto"), exports);
|
|
317
321
|
__exportStar(require("./LeadLeaseToOwnAndRentConfigurationPresetsDto"), exports);
|
|
318
322
|
__exportStar(require("./LeadLeaseToOwnConfigurationDto"), exports);
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AssociateLeadVisitorInput,
|
|
18
19
|
BadRequestException,
|
|
19
20
|
CreateLeadInput,
|
|
20
21
|
LeadStatusDto,
|
|
@@ -26,6 +27,8 @@ import type {
|
|
|
26
27
|
VerifyLeadInput,
|
|
27
28
|
} from '../models/index';
|
|
28
29
|
import {
|
|
30
|
+
AssociateLeadVisitorInputFromJSON,
|
|
31
|
+
AssociateLeadVisitorInputToJSON,
|
|
29
32
|
BadRequestExceptionFromJSON,
|
|
30
33
|
BadRequestExceptionToJSON,
|
|
31
34
|
CreateLeadInputFromJSON,
|
|
@@ -46,6 +49,11 @@ import {
|
|
|
46
49
|
VerifyLeadInputToJSON,
|
|
47
50
|
} from '../models/index';
|
|
48
51
|
|
|
52
|
+
export interface LeadsPublicApiAssociateLeadVisitorRequest {
|
|
53
|
+
leadId: string;
|
|
54
|
+
associateLeadVisitorInput: AssociateLeadVisitorInput;
|
|
55
|
+
}
|
|
56
|
+
|
|
49
57
|
export interface LeadsPublicApiCreateLeadRequest {
|
|
50
58
|
createLeadInput: CreateLeadInput;
|
|
51
59
|
}
|
|
@@ -77,6 +85,50 @@ export interface LeadsPublicApiVerifyLeadRequest {
|
|
|
77
85
|
*/
|
|
78
86
|
export class LeadsPublicApi extends runtime.BaseAPI {
|
|
79
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Links an umami session to the buyer behind this lead, so their analytics sessions can be cross-referenced once their email is known. Safe to call repeatedly; the same session is only stored once. No authentication required.
|
|
90
|
+
* Associate a visitor with a lead buyer
|
|
91
|
+
*/
|
|
92
|
+
async associateLeadVisitorRaw(requestParameters: LeadsPublicApiAssociateLeadVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
93
|
+
if (requestParameters['leadId'] == null) {
|
|
94
|
+
throw new runtime.RequiredError(
|
|
95
|
+
'leadId',
|
|
96
|
+
'Required parameter "leadId" was null or undefined when calling associateLeadVisitor().'
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (requestParameters['associateLeadVisitorInput'] == null) {
|
|
101
|
+
throw new runtime.RequiredError(
|
|
102
|
+
'associateLeadVisitorInput',
|
|
103
|
+
'Required parameter "associateLeadVisitorInput" was null or undefined when calling associateLeadVisitor().'
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const queryParameters: any = {};
|
|
108
|
+
|
|
109
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
110
|
+
|
|
111
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
112
|
+
|
|
113
|
+
const response = await this.request({
|
|
114
|
+
path: `/leads/{leadId}/visitor`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
115
|
+
method: 'POST',
|
|
116
|
+
headers: headerParameters,
|
|
117
|
+
query: queryParameters,
|
|
118
|
+
body: AssociateLeadVisitorInputToJSON(requestParameters['associateLeadVisitorInput']),
|
|
119
|
+
}, initOverrides);
|
|
120
|
+
|
|
121
|
+
return new runtime.VoidApiResponse(response);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Links an umami session to the buyer behind this lead, so their analytics sessions can be cross-referenced once their email is known. Safe to call repeatedly; the same session is only stored once. No authentication required.
|
|
126
|
+
* Associate a visitor with a lead buyer
|
|
127
|
+
*/
|
|
128
|
+
async associateLeadVisitor(requestParameters: LeadsPublicApiAssociateLeadVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
129
|
+
await this.associateLeadVisitorRaw(requestParameters, initOverrides);
|
|
130
|
+
}
|
|
131
|
+
|
|
80
132
|
/**
|
|
81
133
|
* Submits a purchase inquiry for a domain. No authentication required. May be processed synchronously or asynchronously.
|
|
82
134
|
* Create a lead
|
|
@@ -61,6 +61,12 @@ export interface AdminLeadListItemBuyerDto {
|
|
|
61
61
|
* @memberof AdminLeadListItemBuyerDto
|
|
62
62
|
*/
|
|
63
63
|
phoneNumber: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* Umami session ids collected for this buyer, for cross-referencing analytics.
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof AdminLeadListItemBuyerDto
|
|
68
|
+
*/
|
|
69
|
+
visitorIds: Array<string>;
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
/**
|
|
@@ -74,6 +80,7 @@ export function instanceOfAdminLeadListItemBuyerDto(value: object): value is Adm
|
|
|
74
80
|
if (!('ipCountryCode' in value) || value['ipCountryCode'] === undefined) return false;
|
|
75
81
|
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
76
82
|
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
|
|
83
|
+
if (!('visitorIds' in value) || value['visitorIds'] === undefined) return false;
|
|
77
84
|
return true;
|
|
78
85
|
}
|
|
79
86
|
|
|
@@ -94,6 +101,7 @@ export function AdminLeadListItemBuyerDtoFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
94
101
|
'ipCountryCode': json['ipCountryCode'],
|
|
95
102
|
'companyName': json['companyName'],
|
|
96
103
|
'phoneNumber': json['phoneNumber'],
|
|
104
|
+
'visitorIds': json['visitorIds'],
|
|
97
105
|
};
|
|
98
106
|
}
|
|
99
107
|
|
|
@@ -115,6 +123,7 @@ export function AdminLeadListItemBuyerDtoToJSONTyped(value?: AdminLeadListItemBu
|
|
|
115
123
|
'ipCountryCode': value['ipCountryCode'],
|
|
116
124
|
'companyName': value['companyName'],
|
|
117
125
|
'phoneNumber': value['phoneNumber'],
|
|
126
|
+
'visitorIds': value['visitorIds'],
|
|
118
127
|
};
|
|
119
128
|
}
|
|
120
129
|
|
|
@@ -0,0 +1,66 @@
|
|
|
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 AssociateLeadVisitorInput
|
|
20
|
+
*/
|
|
21
|
+
export interface AssociateLeadVisitorInput {
|
|
22
|
+
/**
|
|
23
|
+
* Umami session id of the visitor, as reported by the tracker on the page the buyer is using.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AssociateLeadVisitorInput
|
|
26
|
+
*/
|
|
27
|
+
visitorId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AssociateLeadVisitorInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAssociateLeadVisitorInput(value: object): value is AssociateLeadVisitorInput {
|
|
34
|
+
if (!('visitorId' in value) || value['visitorId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AssociateLeadVisitorInputFromJSON(json: any): AssociateLeadVisitorInput {
|
|
39
|
+
return AssociateLeadVisitorInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AssociateLeadVisitorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssociateLeadVisitorInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'visitorId': json['visitorId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AssociateLeadVisitorInputToJSON(json: any): AssociateLeadVisitorInput {
|
|
53
|
+
return AssociateLeadVisitorInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AssociateLeadVisitorInputToJSONTyped(value?: AssociateLeadVisitorInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'visitorId': value['visitorId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -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
|
+
|