@randock/nameshift-api-client 0.0.460 → 0.0.461
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 +5 -0
- package/README.md +3 -3
- package/dist/apis/LeadsApi.d.ts +14 -1
- package/dist/apis/LeadsApi.js +63 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/LeadEnrichmentCompanyDto.d.ts +68 -0
- package/dist/models/LeadEnrichmentCompanyDto.js +75 -0
- package/dist/models/LeadEnrichmentDto.d.ts +72 -0
- package/dist/models/LeadEnrichmentDto.js +79 -0
- package/dist/models/LeadEnrichmentEmailDto.d.ts +44 -0
- package/dist/models/LeadEnrichmentEmailDto.js +59 -0
- package/dist/models/LeadEnrichmentIpDto.d.ts +62 -0
- package/dist/models/LeadEnrichmentIpDto.js +71 -0
- package/dist/models/LeadEnrichmentWebResultDto.d.ts +44 -0
- package/dist/models/LeadEnrichmentWebResultDto.js +59 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +54 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/LeadEnrichmentCompanyDto.ts +120 -0
- package/src/models/LeadEnrichmentDto.ts +149 -0
- package/src/models/LeadEnrichmentEmailDto.ts +84 -0
- package/src/models/LeadEnrichmentIpDto.ts +111 -0
- package/src/models/LeadEnrichmentWebResultDto.ts +84 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/index.ts +5 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -328,6 +328,11 @@ src/models/LandingPageSettingsDto.ts
|
|
|
328
328
|
src/models/LeadBuyerConfigDto.ts
|
|
329
329
|
src/models/LeadDomainDto.ts
|
|
330
330
|
src/models/LeadDto.ts
|
|
331
|
+
src/models/LeadEnrichmentCompanyDto.ts
|
|
332
|
+
src/models/LeadEnrichmentDto.ts
|
|
333
|
+
src/models/LeadEnrichmentEmailDto.ts
|
|
334
|
+
src/models/LeadEnrichmentIpDto.ts
|
|
335
|
+
src/models/LeadEnrichmentWebResultDto.ts
|
|
331
336
|
src/models/LeadLeaseToOwnAndRentConfigurationPresetsDto.ts
|
|
332
337
|
src/models/LeadLeaseToOwnConfigurationDto.ts
|
|
333
338
|
src/models/LeadMessageData.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.461
|
|
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.461 --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
|
+
f72075d7e5716d6c3536ddb9a81b0fc1464c8d3f9f3fac45d061e165a7a90ee132e9d4ad42f35b2d9efb8c091ccff506
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadOfferExpirationConfigurationInput, List200Response, ListLeadMessagesDto, ListRelatedLeads200Response, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
|
|
13
|
+
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadEnrichmentDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadOfferExpirationConfigurationInput, List200Response, ListLeadMessagesDto, ListRelatedLeads200Response, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
|
|
14
14
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -34,6 +34,9 @@ export interface LeadsApiCreateMessageRequest {
|
|
|
34
34
|
export interface LeadsApiGetLeadRequest {
|
|
35
35
|
leadId: string;
|
|
36
36
|
}
|
|
37
|
+
export interface LeadsApiGetLeadEnrichmentRequest {
|
|
38
|
+
leadId: string;
|
|
39
|
+
}
|
|
37
40
|
export interface LeadsApiGetManualLeadRequest {
|
|
38
41
|
leadId: string;
|
|
39
42
|
}
|
|
@@ -160,6 +163,16 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
160
163
|
* Get lead details
|
|
161
164
|
*/
|
|
162
165
|
getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerLeadDetails>;
|
|
166
|
+
/**
|
|
167
|
+
* Returns buyer background enrichment for a lead: web footprint, the company behind the email domain, email classification, and IP intelligence. Sections are empty while enrichment is pending. Requires account ownership. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
168
|
+
* Get lead buyer enrichment
|
|
169
|
+
*/
|
|
170
|
+
getLeadEnrichmentRaw(requestParameters: LeadsApiGetLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadEnrichmentDto>>;
|
|
171
|
+
/**
|
|
172
|
+
* Returns buyer background enrichment for a lead: web footprint, the company behind the email domain, email classification, and IP intelligence. Sections are empty while enrichment is pending. Requires account ownership. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
173
|
+
* Get lead buyer enrichment
|
|
174
|
+
*/
|
|
175
|
+
getLeadEnrichment(requestParameters: LeadsApiGetLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadEnrichmentDto>;
|
|
163
176
|
/**
|
|
164
177
|
* Returns configuration presets for lead offers. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
165
178
|
* Get lease-to-own configuration presets
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -518,6 +518,69 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
518
518
|
});
|
|
519
519
|
});
|
|
520
520
|
};
|
|
521
|
+
/**
|
|
522
|
+
* Returns buyer background enrichment for a lead: web footprint, the company behind the email domain, email classification, and IP intelligence. Sections are empty while enrichment is pending. Requires account ownership. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
523
|
+
* Get lead buyer enrichment
|
|
524
|
+
*/
|
|
525
|
+
LeadsApi.prototype.getLeadEnrichmentRaw = function (requestParameters, initOverrides) {
|
|
526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
527
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
528
|
+
return __generator(this, function (_c) {
|
|
529
|
+
switch (_c.label) {
|
|
530
|
+
case 0:
|
|
531
|
+
if (requestParameters['leadId'] == null) {
|
|
532
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLeadEnrichment().');
|
|
533
|
+
}
|
|
534
|
+
queryParameters = {};
|
|
535
|
+
headerParameters = {};
|
|
536
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
537
|
+
_a = headerParameters;
|
|
538
|
+
_b = "apikey";
|
|
539
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
540
|
+
case 1:
|
|
541
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
542
|
+
_c.label = 2;
|
|
543
|
+
case 2:
|
|
544
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
545
|
+
token = this.configuration.accessToken;
|
|
546
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
547
|
+
case 3:
|
|
548
|
+
tokenString = _c.sent();
|
|
549
|
+
if (tokenString) {
|
|
550
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
551
|
+
}
|
|
552
|
+
_c.label = 4;
|
|
553
|
+
case 4: return [4 /*yield*/, this.request({
|
|
554
|
+
path: "/private/leads/{leadId}/enrichment".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
555
|
+
method: 'GET',
|
|
556
|
+
headers: headerParameters,
|
|
557
|
+
query: queryParameters,
|
|
558
|
+
}, initOverrides)];
|
|
559
|
+
case 5:
|
|
560
|
+
response = _c.sent();
|
|
561
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadEnrichmentDtoFromJSON)(jsonValue); })];
|
|
562
|
+
}
|
|
563
|
+
});
|
|
564
|
+
});
|
|
565
|
+
};
|
|
566
|
+
/**
|
|
567
|
+
* Returns buyer background enrichment for a lead: web footprint, the company behind the email domain, email classification, and IP intelligence. Sections are empty while enrichment is pending. Requires account ownership. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
568
|
+
* Get lead buyer enrichment
|
|
569
|
+
*/
|
|
570
|
+
LeadsApi.prototype.getLeadEnrichment = function (requestParameters, initOverrides) {
|
|
571
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
572
|
+
var response;
|
|
573
|
+
return __generator(this, function (_a) {
|
|
574
|
+
switch (_a.label) {
|
|
575
|
+
case 0: return [4 /*yield*/, this.getLeadEnrichmentRaw(requestParameters, initOverrides)];
|
|
576
|
+
case 1:
|
|
577
|
+
response = _a.sent();
|
|
578
|
+
return [4 /*yield*/, response.value()];
|
|
579
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
});
|
|
583
|
+
};
|
|
521
584
|
/**
|
|
522
585
|
* Returns configuration presets for lead offers. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
523
586
|
* Get lease-to-own configuration presets
|
|
@@ -90,6 +90,7 @@ export declare const FeatureFlagListItemDtoNameEnum: {
|
|
|
90
90
|
readonly AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: "AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD";
|
|
91
91
|
readonly MARKETPLACE_ROUTING: "MARKETPLACE_ROUTING";
|
|
92
92
|
readonly AI_DOMAIN_EDIT: "AI_DOMAIN_EDIT";
|
|
93
|
+
readonly LEAD_ENRICHMENT: "LEAD_ENRICHMENT";
|
|
93
94
|
};
|
|
94
95
|
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
95
96
|
/**
|
|
@@ -50,7 +50,8 @@ exports.FeatureFlagListItemDtoNameEnum = {
|
|
|
50
50
|
USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
|
|
51
51
|
AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
|
|
52
52
|
MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
|
|
53
|
-
AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT'
|
|
53
|
+
AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
|
|
54
|
+
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT'
|
|
54
55
|
};
|
|
55
56
|
/**
|
|
56
57
|
* Check if a given object implements the FeatureFlagListItemDto interface.
|
|
@@ -133,6 +133,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
|
|
|
133
133
|
readonly AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: "AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD";
|
|
134
134
|
readonly MARKETPLACE_ROUTING: "MARKETPLACE_ROUTING";
|
|
135
135
|
readonly AI_DOMAIN_EDIT: "AI_DOMAIN_EDIT";
|
|
136
|
+
readonly LEAD_ENRICHMENT: "LEAD_ENRICHMENT";
|
|
136
137
|
};
|
|
137
138
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
138
139
|
/**
|
package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js
CHANGED
|
@@ -57,7 +57,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
|
|
|
57
57
|
USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
|
|
58
58
|
AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
|
|
59
59
|
MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
|
|
60
|
-
AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT'
|
|
60
|
+
AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
|
|
61
|
+
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT'
|
|
61
62
|
};
|
|
62
63
|
/**
|
|
63
64
|
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
|
@@ -0,0 +1,68 @@
|
|
|
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 LeadEnrichmentCompanyDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LeadEnrichmentCompanyDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LeadEnrichmentCompanyDto
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LeadEnrichmentCompanyDto
|
|
28
|
+
*/
|
|
29
|
+
legalName: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LeadEnrichmentCompanyDto
|
|
34
|
+
*/
|
|
35
|
+
tradeName: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LeadEnrichmentCompanyDto
|
|
40
|
+
*/
|
|
41
|
+
countryCode: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof LeadEnrichmentCompanyDto
|
|
46
|
+
*/
|
|
47
|
+
vatId: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof LeadEnrichmentCompanyDto
|
|
52
|
+
*/
|
|
53
|
+
registryId: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof LeadEnrichmentCompanyDto
|
|
58
|
+
*/
|
|
59
|
+
domainRegisteredAt: string | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the LeadEnrichmentCompanyDto interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfLeadEnrichmentCompanyDto(value: object): value is LeadEnrichmentCompanyDto;
|
|
65
|
+
export declare function LeadEnrichmentCompanyDtoFromJSON(json: any): LeadEnrichmentCompanyDto;
|
|
66
|
+
export declare function LeadEnrichmentCompanyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentCompanyDto;
|
|
67
|
+
export declare function LeadEnrichmentCompanyDtoToJSON(json: any): LeadEnrichmentCompanyDto;
|
|
68
|
+
export declare function LeadEnrichmentCompanyDtoToJSONTyped(value?: LeadEnrichmentCompanyDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.instanceOfLeadEnrichmentCompanyDto = instanceOfLeadEnrichmentCompanyDto;
|
|
17
|
+
exports.LeadEnrichmentCompanyDtoFromJSON = LeadEnrichmentCompanyDtoFromJSON;
|
|
18
|
+
exports.LeadEnrichmentCompanyDtoFromJSONTyped = LeadEnrichmentCompanyDtoFromJSONTyped;
|
|
19
|
+
exports.LeadEnrichmentCompanyDtoToJSON = LeadEnrichmentCompanyDtoToJSON;
|
|
20
|
+
exports.LeadEnrichmentCompanyDtoToJSONTyped = LeadEnrichmentCompanyDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LeadEnrichmentCompanyDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLeadEnrichmentCompanyDto(value) {
|
|
25
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('legalName' in value) || value['legalName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('tradeName' in value) || value['tradeName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('vatId' in value) || value['vatId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('registryId' in value) || value['registryId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('domainRegisteredAt' in value) || value['domainRegisteredAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function LeadEnrichmentCompanyDtoFromJSON(json) {
|
|
42
|
+
return LeadEnrichmentCompanyDtoFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function LeadEnrichmentCompanyDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'status': json['status'],
|
|
50
|
+
'legalName': json['legalName'],
|
|
51
|
+
'tradeName': json['tradeName'],
|
|
52
|
+
'countryCode': json['countryCode'],
|
|
53
|
+
'vatId': json['vatId'],
|
|
54
|
+
'registryId': json['registryId'],
|
|
55
|
+
'domainRegisteredAt': json['domainRegisteredAt'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function LeadEnrichmentCompanyDtoToJSON(json) {
|
|
59
|
+
return LeadEnrichmentCompanyDtoToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function LeadEnrichmentCompanyDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'status': value['status'],
|
|
68
|
+
'legalName': value['legalName'],
|
|
69
|
+
'tradeName': value['tradeName'],
|
|
70
|
+
'countryCode': value['countryCode'],
|
|
71
|
+
'vatId': value['vatId'],
|
|
72
|
+
'registryId': value['registryId'],
|
|
73
|
+
'domainRegisteredAt': value['domainRegisteredAt'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { LeadEnrichmentIpDto } from './LeadEnrichmentIpDto';
|
|
13
|
+
import type { LeadEnrichmentEmailDto } from './LeadEnrichmentEmailDto';
|
|
14
|
+
import type { LeadEnrichmentWebResultDto } from './LeadEnrichmentWebResultDto';
|
|
15
|
+
import type { LeadEnrichmentCompanyDto } from './LeadEnrichmentCompanyDto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LeadEnrichmentDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LeadEnrichmentDto {
|
|
22
|
+
/**
|
|
23
|
+
* Whether any enrichment is held for this lead yet.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof LeadEnrichmentDto
|
|
26
|
+
*/
|
|
27
|
+
available: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Enrichment lifecycle status of the lead record.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LeadEnrichmentDto
|
|
32
|
+
*/
|
|
33
|
+
status: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Summary of the buyer's public web footprint.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LeadEnrichmentDto
|
|
38
|
+
*/
|
|
39
|
+
webSummary: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<LeadEnrichmentWebResultDto>}
|
|
43
|
+
* @memberof LeadEnrichmentDto
|
|
44
|
+
*/
|
|
45
|
+
webResults: Array<LeadEnrichmentWebResultDto>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {LeadEnrichmentEmailDto}
|
|
49
|
+
* @memberof LeadEnrichmentDto
|
|
50
|
+
*/
|
|
51
|
+
email: LeadEnrichmentEmailDto | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {LeadEnrichmentCompanyDto}
|
|
55
|
+
* @memberof LeadEnrichmentDto
|
|
56
|
+
*/
|
|
57
|
+
company: LeadEnrichmentCompanyDto | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {LeadEnrichmentIpDto}
|
|
61
|
+
* @memberof LeadEnrichmentDto
|
|
62
|
+
*/
|
|
63
|
+
ip: LeadEnrichmentIpDto | null;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the LeadEnrichmentDto interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfLeadEnrichmentDto(value: object): value is LeadEnrichmentDto;
|
|
69
|
+
export declare function LeadEnrichmentDtoFromJSON(json: any): LeadEnrichmentDto;
|
|
70
|
+
export declare function LeadEnrichmentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentDto;
|
|
71
|
+
export declare function LeadEnrichmentDtoToJSON(json: any): LeadEnrichmentDto;
|
|
72
|
+
export declare function LeadEnrichmentDtoToJSONTyped(value?: LeadEnrichmentDto | 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.instanceOfLeadEnrichmentDto = instanceOfLeadEnrichmentDto;
|
|
17
|
+
exports.LeadEnrichmentDtoFromJSON = LeadEnrichmentDtoFromJSON;
|
|
18
|
+
exports.LeadEnrichmentDtoFromJSONTyped = LeadEnrichmentDtoFromJSONTyped;
|
|
19
|
+
exports.LeadEnrichmentDtoToJSON = LeadEnrichmentDtoToJSON;
|
|
20
|
+
exports.LeadEnrichmentDtoToJSONTyped = LeadEnrichmentDtoToJSONTyped;
|
|
21
|
+
var LeadEnrichmentIpDto_1 = require("./LeadEnrichmentIpDto");
|
|
22
|
+
var LeadEnrichmentEmailDto_1 = require("./LeadEnrichmentEmailDto");
|
|
23
|
+
var LeadEnrichmentWebResultDto_1 = require("./LeadEnrichmentWebResultDto");
|
|
24
|
+
var LeadEnrichmentCompanyDto_1 = require("./LeadEnrichmentCompanyDto");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the LeadEnrichmentDto interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfLeadEnrichmentDto(value) {
|
|
29
|
+
if (!('available' in value) || value['available'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('webSummary' in value) || value['webSummary'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('webResults' in value) || value['webResults'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('ip' in value) || value['ip'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function LeadEnrichmentDtoFromJSON(json) {
|
|
46
|
+
return LeadEnrichmentDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function LeadEnrichmentDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'available': json['available'],
|
|
54
|
+
'status': json['status'],
|
|
55
|
+
'webSummary': json['webSummary'],
|
|
56
|
+
'webResults': (json['webResults'].map(LeadEnrichmentWebResultDto_1.LeadEnrichmentWebResultDtoFromJSON)),
|
|
57
|
+
'email': (0, LeadEnrichmentEmailDto_1.LeadEnrichmentEmailDtoFromJSON)(json['email']),
|
|
58
|
+
'company': (0, LeadEnrichmentCompanyDto_1.LeadEnrichmentCompanyDtoFromJSON)(json['company']),
|
|
59
|
+
'ip': (0, LeadEnrichmentIpDto_1.LeadEnrichmentIpDtoFromJSON)(json['ip']),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function LeadEnrichmentDtoToJSON(json) {
|
|
63
|
+
return LeadEnrichmentDtoToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function LeadEnrichmentDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'available': value['available'],
|
|
72
|
+
'status': value['status'],
|
|
73
|
+
'webSummary': value['webSummary'],
|
|
74
|
+
'webResults': (value['webResults'].map(LeadEnrichmentWebResultDto_1.LeadEnrichmentWebResultDtoToJSON)),
|
|
75
|
+
'email': (0, LeadEnrichmentEmailDto_1.LeadEnrichmentEmailDtoToJSON)(value['email']),
|
|
76
|
+
'company': (0, LeadEnrichmentCompanyDto_1.LeadEnrichmentCompanyDtoToJSON)(value['company']),
|
|
77
|
+
'ip': (0, LeadEnrichmentIpDto_1.LeadEnrichmentIpDtoToJSON)(value['ip']),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 LeadEnrichmentEmailDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LeadEnrichmentEmailDto {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the email uses a consumer mail provider.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof LeadEnrichmentEmailDto
|
|
22
|
+
*/
|
|
23
|
+
isFreeMail: boolean | null;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the email uses a disposable/throwaway service.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof LeadEnrichmentEmailDto
|
|
28
|
+
*/
|
|
29
|
+
isDisposable: boolean | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LeadEnrichmentEmailDto
|
|
34
|
+
*/
|
|
35
|
+
webSummary: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the LeadEnrichmentEmailDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfLeadEnrichmentEmailDto(value: object): value is LeadEnrichmentEmailDto;
|
|
41
|
+
export declare function LeadEnrichmentEmailDtoFromJSON(json: any): LeadEnrichmentEmailDto;
|
|
42
|
+
export declare function LeadEnrichmentEmailDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentEmailDto;
|
|
43
|
+
export declare function LeadEnrichmentEmailDtoToJSON(json: any): LeadEnrichmentEmailDto;
|
|
44
|
+
export declare function LeadEnrichmentEmailDtoToJSONTyped(value?: LeadEnrichmentEmailDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfLeadEnrichmentEmailDto = instanceOfLeadEnrichmentEmailDto;
|
|
17
|
+
exports.LeadEnrichmentEmailDtoFromJSON = LeadEnrichmentEmailDtoFromJSON;
|
|
18
|
+
exports.LeadEnrichmentEmailDtoFromJSONTyped = LeadEnrichmentEmailDtoFromJSONTyped;
|
|
19
|
+
exports.LeadEnrichmentEmailDtoToJSON = LeadEnrichmentEmailDtoToJSON;
|
|
20
|
+
exports.LeadEnrichmentEmailDtoToJSONTyped = LeadEnrichmentEmailDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LeadEnrichmentEmailDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLeadEnrichmentEmailDto(value) {
|
|
25
|
+
if (!('isFreeMail' in value) || value['isFreeMail'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('isDisposable' in value) || value['isDisposable'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('webSummary' in value) || value['webSummary'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function LeadEnrichmentEmailDtoFromJSON(json) {
|
|
34
|
+
return LeadEnrichmentEmailDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function LeadEnrichmentEmailDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'isFreeMail': json['isFreeMail'],
|
|
42
|
+
'isDisposable': json['isDisposable'],
|
|
43
|
+
'webSummary': json['webSummary'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function LeadEnrichmentEmailDtoToJSON(json) {
|
|
47
|
+
return LeadEnrichmentEmailDtoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function LeadEnrichmentEmailDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'isFreeMail': value['isFreeMail'],
|
|
56
|
+
'isDisposable': value['isDisposable'],
|
|
57
|
+
'webSummary': value['webSummary'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 LeadEnrichmentIpDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LeadEnrichmentIpDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LeadEnrichmentIpDto
|
|
22
|
+
*/
|
|
23
|
+
org: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LeadEnrichmentIpDto
|
|
28
|
+
*/
|
|
29
|
+
asnOrg: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LeadEnrichmentIpDto
|
|
34
|
+
*/
|
|
35
|
+
countryCode: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof LeadEnrichmentIpDto
|
|
40
|
+
*/
|
|
41
|
+
isHosting: boolean | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof LeadEnrichmentIpDto
|
|
46
|
+
*/
|
|
47
|
+
isVpn: boolean | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof LeadEnrichmentIpDto
|
|
52
|
+
*/
|
|
53
|
+
isTor: boolean | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the LeadEnrichmentIpDto interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfLeadEnrichmentIpDto(value: object): value is LeadEnrichmentIpDto;
|
|
59
|
+
export declare function LeadEnrichmentIpDtoFromJSON(json: any): LeadEnrichmentIpDto;
|
|
60
|
+
export declare function LeadEnrichmentIpDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentIpDto;
|
|
61
|
+
export declare function LeadEnrichmentIpDtoToJSON(json: any): LeadEnrichmentIpDto;
|
|
62
|
+
export declare function LeadEnrichmentIpDtoToJSONTyped(value?: LeadEnrichmentIpDto | null, ignoreDiscriminator?: boolean): any;
|