@randock/nameshift-api-client 0.0.460 → 0.0.462
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 +8 -0
- package/README.md +3 -3
- package/dist/apis/LeadsApi.d.ts +14 -1
- package/dist/apis/LeadsApi.js +63 -0
- package/dist/models/BuyerAcceptanceEnum.d.ts +27 -0
- package/dist/models/BuyerAcceptanceEnum.js +53 -0
- package/dist/models/BuyerDto.d.ts +27 -0
- package/dist/models/BuyerDto.js +19 -0
- package/dist/models/BuyerExperienceEnum.d.ts +26 -0
- package/dist/models/BuyerExperienceEnum.js +52 -0
- package/dist/models/BuyerPaymentEnum.d.ts +27 -0
- package/dist/models/BuyerPaymentEnum.js +53 -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 +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +54 -0
- package/src/models/BuyerAcceptanceEnum.ts +55 -0
- package/src/models/BuyerDto.ts +60 -0
- package/src/models/BuyerExperienceEnum.ts +54 -0
- package/src/models/BuyerPaymentEnum.ts +55 -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 +8 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -142,6 +142,7 @@ src/models/BulkDownloadInvoicesInput.ts
|
|
|
142
142
|
src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts
|
|
143
143
|
src/models/BulkMarkNotificationsAsReadInputDto.ts
|
|
144
144
|
src/models/BulkUpdateDomainsWithFiltersInput.ts
|
|
145
|
+
src/models/BuyerAcceptanceEnum.ts
|
|
145
146
|
src/models/BuyerAccessTokenDto.ts
|
|
146
147
|
src/models/BuyerAuctionDetailDto.ts
|
|
147
148
|
src/models/BuyerAuctionDetailDtoDomain.ts
|
|
@@ -155,6 +156,7 @@ src/models/BuyerDomainTransferAuthCodeDto.ts
|
|
|
155
156
|
src/models/BuyerDomainTransferListItemDomainDto.ts
|
|
156
157
|
src/models/BuyerDomainTransferListItemDto.ts
|
|
157
158
|
src/models/BuyerDto.ts
|
|
159
|
+
src/models/BuyerExperienceEnum.ts
|
|
158
160
|
src/models/BuyerInvoiceDomainDto.ts
|
|
159
161
|
src/models/BuyerInvoiceDto.ts
|
|
160
162
|
src/models/BuyerInvoiceSellerAccountDto.ts
|
|
@@ -164,6 +166,7 @@ src/models/BuyerNotificationAttachmentDto.ts
|
|
|
164
166
|
src/models/BuyerNotificationDto.ts
|
|
165
167
|
src/models/BuyerNotificationListItemDto.ts
|
|
166
168
|
src/models/BuyerNotificationSettingsDto.ts
|
|
169
|
+
src/models/BuyerPaymentEnum.ts
|
|
167
170
|
src/models/BuyerSecurityUserDto.ts
|
|
168
171
|
src/models/BuyerSessionDto.ts
|
|
169
172
|
src/models/BuyerSubscriptionListItemDto.ts
|
|
@@ -328,6 +331,11 @@ src/models/LandingPageSettingsDto.ts
|
|
|
328
331
|
src/models/LeadBuyerConfigDto.ts
|
|
329
332
|
src/models/LeadDomainDto.ts
|
|
330
333
|
src/models/LeadDto.ts
|
|
334
|
+
src/models/LeadEnrichmentCompanyDto.ts
|
|
335
|
+
src/models/LeadEnrichmentDto.ts
|
|
336
|
+
src/models/LeadEnrichmentEmailDto.ts
|
|
337
|
+
src/models/LeadEnrichmentIpDto.ts
|
|
338
|
+
src/models/LeadEnrichmentWebResultDto.ts
|
|
331
339
|
src/models/LeadLeaseToOwnAndRentConfigurationPresetsDto.ts
|
|
332
340
|
src/models/LeadLeaseToOwnConfigurationDto.ts
|
|
333
341
|
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.462
|
|
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.462 --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
|
+
e453c45be2904b56ff930cd6fb9033472b3c9b31e6662891dbdc642d7d456d9a48962a7ba847074505a91a5cac3cbee4
|
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
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* Share of the leads the buyer started that ever reached an accepted deal: accepts_nothing (below 25%), normal (25-75%), accepts_anything (75% and up), or unknown when the buyer has a single lead and no accepted deal yet.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const BuyerAcceptanceEnum: {
|
|
17
|
+
readonly UNKNOWN: "unknown";
|
|
18
|
+
readonly ACCEPTS_NOTHING: "accepts_nothing";
|
|
19
|
+
readonly NORMAL: "normal";
|
|
20
|
+
readonly ACCEPTS_ANYTHING: "accepts_anything";
|
|
21
|
+
};
|
|
22
|
+
export type BuyerAcceptanceEnum = typeof BuyerAcceptanceEnum[keyof typeof BuyerAcceptanceEnum];
|
|
23
|
+
export declare function instanceOfBuyerAcceptanceEnum(value: any): boolean;
|
|
24
|
+
export declare function BuyerAcceptanceEnumFromJSON(json: any): BuyerAcceptanceEnum;
|
|
25
|
+
export declare function BuyerAcceptanceEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAcceptanceEnum;
|
|
26
|
+
export declare function BuyerAcceptanceEnumToJSON(value?: BuyerAcceptanceEnum | null): any;
|
|
27
|
+
export declare function BuyerAcceptanceEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BuyerAcceptanceEnum;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.BuyerAcceptanceEnum = void 0;
|
|
17
|
+
exports.instanceOfBuyerAcceptanceEnum = instanceOfBuyerAcceptanceEnum;
|
|
18
|
+
exports.BuyerAcceptanceEnumFromJSON = BuyerAcceptanceEnumFromJSON;
|
|
19
|
+
exports.BuyerAcceptanceEnumFromJSONTyped = BuyerAcceptanceEnumFromJSONTyped;
|
|
20
|
+
exports.BuyerAcceptanceEnumToJSON = BuyerAcceptanceEnumToJSON;
|
|
21
|
+
exports.BuyerAcceptanceEnumToJSONTyped = BuyerAcceptanceEnumToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Share of the leads the buyer started that ever reached an accepted deal: accepts_nothing (below 25%), normal (25-75%), accepts_anything (75% and up), or unknown when the buyer has a single lead and no accepted deal yet.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.BuyerAcceptanceEnum = {
|
|
27
|
+
UNKNOWN: 'unknown',
|
|
28
|
+
ACCEPTS_NOTHING: 'accepts_nothing',
|
|
29
|
+
NORMAL: 'normal',
|
|
30
|
+
ACCEPTS_ANYTHING: 'accepts_anything'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfBuyerAcceptanceEnum(value) {
|
|
33
|
+
for (var key in exports.BuyerAcceptanceEnum) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.BuyerAcceptanceEnum, key)) {
|
|
35
|
+
if (exports.BuyerAcceptanceEnum[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function BuyerAcceptanceEnumFromJSON(json) {
|
|
43
|
+
return BuyerAcceptanceEnumFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function BuyerAcceptanceEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function BuyerAcceptanceEnumToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function BuyerAcceptanceEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { BuyerPaymentEnum } from './BuyerPaymentEnum';
|
|
13
|
+
import type { BuyerAcceptanceEnum } from './BuyerAcceptanceEnum';
|
|
14
|
+
import type { BuyerExperienceEnum } from './BuyerExperienceEnum';
|
|
12
15
|
/**
|
|
13
16
|
*
|
|
14
17
|
* @export
|
|
@@ -57,6 +60,30 @@ export interface BuyerDto {
|
|
|
57
60
|
* @memberof BuyerDto
|
|
58
61
|
*/
|
|
59
62
|
phoneNumber: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {BuyerExperienceEnum}
|
|
66
|
+
* @memberof BuyerDto
|
|
67
|
+
*/
|
|
68
|
+
experience: BuyerExperienceEnum;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {BuyerAcceptanceEnum}
|
|
72
|
+
* @memberof BuyerDto
|
|
73
|
+
*/
|
|
74
|
+
accepted: BuyerAcceptanceEnum;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {BuyerPaymentEnum}
|
|
78
|
+
* @memberof BuyerDto
|
|
79
|
+
*/
|
|
80
|
+
payment: BuyerPaymentEnum;
|
|
81
|
+
/**
|
|
82
|
+
* Warning that the buyer started fewer than 4 leads, so the buyer classifications are based on little data.
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof BuyerDto
|
|
85
|
+
*/
|
|
86
|
+
limitedData: boolean;
|
|
60
87
|
}
|
|
61
88
|
/**
|
|
62
89
|
* Check if a given object implements the BuyerDto interface.
|
package/dist/models/BuyerDto.js
CHANGED
|
@@ -18,6 +18,9 @@ exports.BuyerDtoFromJSON = BuyerDtoFromJSON;
|
|
|
18
18
|
exports.BuyerDtoFromJSONTyped = BuyerDtoFromJSONTyped;
|
|
19
19
|
exports.BuyerDtoToJSON = BuyerDtoToJSON;
|
|
20
20
|
exports.BuyerDtoToJSONTyped = BuyerDtoToJSONTyped;
|
|
21
|
+
var BuyerPaymentEnum_1 = require("./BuyerPaymentEnum");
|
|
22
|
+
var BuyerAcceptanceEnum_1 = require("./BuyerAcceptanceEnum");
|
|
23
|
+
var BuyerExperienceEnum_1 = require("./BuyerExperienceEnum");
|
|
21
24
|
/**
|
|
22
25
|
* Check if a given object implements the BuyerDto interface.
|
|
23
26
|
*/
|
|
@@ -36,6 +39,14 @@ function instanceOfBuyerDto(value) {
|
|
|
36
39
|
return false;
|
|
37
40
|
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
|
|
38
41
|
return false;
|
|
42
|
+
if (!('experience' in value) || value['experience'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('accepted' in value) || value['accepted'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('payment' in value) || value['payment'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('limitedData' in value) || value['limitedData'] === undefined)
|
|
49
|
+
return false;
|
|
39
50
|
return true;
|
|
40
51
|
}
|
|
41
52
|
function BuyerDtoFromJSON(json) {
|
|
@@ -53,6 +64,10 @@ function BuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
64
|
'buyerName': json['buyerName'],
|
|
54
65
|
'emailDomain': json['emailDomain'],
|
|
55
66
|
'phoneNumber': json['phoneNumber'],
|
|
67
|
+
'experience': (0, BuyerExperienceEnum_1.BuyerExperienceEnumFromJSON)(json['experience']),
|
|
68
|
+
'accepted': (0, BuyerAcceptanceEnum_1.BuyerAcceptanceEnumFromJSON)(json['accepted']),
|
|
69
|
+
'payment': (0, BuyerPaymentEnum_1.BuyerPaymentEnumFromJSON)(json['payment']),
|
|
70
|
+
'limitedData': json['limitedData'],
|
|
56
71
|
};
|
|
57
72
|
}
|
|
58
73
|
function BuyerDtoToJSON(json) {
|
|
@@ -71,5 +86,9 @@ function BuyerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
86
|
'buyerName': value['buyerName'],
|
|
72
87
|
'emailDomain': value['emailDomain'],
|
|
73
88
|
'phoneNumber': value['phoneNumber'],
|
|
89
|
+
'experience': (0, BuyerExperienceEnum_1.BuyerExperienceEnumToJSON)(value['experience']),
|
|
90
|
+
'accepted': (0, BuyerAcceptanceEnum_1.BuyerAcceptanceEnumToJSON)(value['accepted']),
|
|
91
|
+
'payment': (0, BuyerPaymentEnum_1.BuyerPaymentEnumToJSON)(value['payment']),
|
|
92
|
+
'limitedData': value['limitedData'],
|
|
74
93
|
};
|
|
75
94
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* Experience level based on the number of domains the buyer bought: none (0), active (1-3), expert (4+).
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const BuyerExperienceEnum: {
|
|
17
|
+
readonly NONE: "none";
|
|
18
|
+
readonly ACTIVE: "active";
|
|
19
|
+
readonly EXPERT: "expert";
|
|
20
|
+
};
|
|
21
|
+
export type BuyerExperienceEnum = typeof BuyerExperienceEnum[keyof typeof BuyerExperienceEnum];
|
|
22
|
+
export declare function instanceOfBuyerExperienceEnum(value: any): boolean;
|
|
23
|
+
export declare function BuyerExperienceEnumFromJSON(json: any): BuyerExperienceEnum;
|
|
24
|
+
export declare function BuyerExperienceEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerExperienceEnum;
|
|
25
|
+
export declare function BuyerExperienceEnumToJSON(value?: BuyerExperienceEnum | null): any;
|
|
26
|
+
export declare function BuyerExperienceEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BuyerExperienceEnum;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.BuyerExperienceEnum = void 0;
|
|
17
|
+
exports.instanceOfBuyerExperienceEnum = instanceOfBuyerExperienceEnum;
|
|
18
|
+
exports.BuyerExperienceEnumFromJSON = BuyerExperienceEnumFromJSON;
|
|
19
|
+
exports.BuyerExperienceEnumFromJSONTyped = BuyerExperienceEnumFromJSONTyped;
|
|
20
|
+
exports.BuyerExperienceEnumToJSON = BuyerExperienceEnumToJSON;
|
|
21
|
+
exports.BuyerExperienceEnumToJSONTyped = BuyerExperienceEnumToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Experience level based on the number of domains the buyer bought: none (0), active (1-3), expert (4+).
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.BuyerExperienceEnum = {
|
|
27
|
+
NONE: 'none',
|
|
28
|
+
ACTIVE: 'active',
|
|
29
|
+
EXPERT: 'expert'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfBuyerExperienceEnum(value) {
|
|
32
|
+
for (var key in exports.BuyerExperienceEnum) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.BuyerExperienceEnum, key)) {
|
|
34
|
+
if (exports.BuyerExperienceEnum[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function BuyerExperienceEnumFromJSON(json) {
|
|
42
|
+
return BuyerExperienceEnumFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function BuyerExperienceEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function BuyerExperienceEnumToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function BuyerExperienceEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* Share of the leads the buyer started that were actually paid: pays_nothing (below 25%), normal (25-75%), pays_everything (75% and up), or unknown when the buyer has a single lead and no purchase yet.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const BuyerPaymentEnum: {
|
|
17
|
+
readonly UNKNOWN: "unknown";
|
|
18
|
+
readonly PAYS_NOTHING: "pays_nothing";
|
|
19
|
+
readonly NORMAL: "normal";
|
|
20
|
+
readonly PAYS_EVERYTHING: "pays_everything";
|
|
21
|
+
};
|
|
22
|
+
export type BuyerPaymentEnum = typeof BuyerPaymentEnum[keyof typeof BuyerPaymentEnum];
|
|
23
|
+
export declare function instanceOfBuyerPaymentEnum(value: any): boolean;
|
|
24
|
+
export declare function BuyerPaymentEnumFromJSON(json: any): BuyerPaymentEnum;
|
|
25
|
+
export declare function BuyerPaymentEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerPaymentEnum;
|
|
26
|
+
export declare function BuyerPaymentEnumToJSON(value?: BuyerPaymentEnum | null): any;
|
|
27
|
+
export declare function BuyerPaymentEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BuyerPaymentEnum;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.BuyerPaymentEnum = void 0;
|
|
17
|
+
exports.instanceOfBuyerPaymentEnum = instanceOfBuyerPaymentEnum;
|
|
18
|
+
exports.BuyerPaymentEnumFromJSON = BuyerPaymentEnumFromJSON;
|
|
19
|
+
exports.BuyerPaymentEnumFromJSONTyped = BuyerPaymentEnumFromJSONTyped;
|
|
20
|
+
exports.BuyerPaymentEnumToJSON = BuyerPaymentEnumToJSON;
|
|
21
|
+
exports.BuyerPaymentEnumToJSONTyped = BuyerPaymentEnumToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Share of the leads the buyer started that were actually paid: pays_nothing (below 25%), normal (25-75%), pays_everything (75% and up), or unknown when the buyer has a single lead and no purchase yet.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.BuyerPaymentEnum = {
|
|
27
|
+
UNKNOWN: 'unknown',
|
|
28
|
+
PAYS_NOTHING: 'pays_nothing',
|
|
29
|
+
NORMAL: 'normal',
|
|
30
|
+
PAYS_EVERYTHING: 'pays_everything'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfBuyerPaymentEnum(value) {
|
|
33
|
+
for (var key in exports.BuyerPaymentEnum) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.BuyerPaymentEnum, key)) {
|
|
35
|
+
if (exports.BuyerPaymentEnum[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function BuyerPaymentEnumFromJSON(json) {
|
|
43
|
+
return BuyerPaymentEnumFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function BuyerPaymentEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function BuyerPaymentEnumToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function BuyerPaymentEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -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;
|