@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.
Files changed (30) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +3 -3
  3. package/dist/apis/LeadsPublicApi.d.ts +15 -1
  4. package/dist/apis/LeadsPublicApi.js +49 -0
  5. package/dist/models/AdminLeadListItemBuyerDto.d.ts +6 -0
  6. package/dist/models/AdminLeadListItemBuyerDto.js +4 -0
  7. package/dist/models/AssociateLeadVisitorInput.d.ts +32 -0
  8. package/dist/models/AssociateLeadVisitorInput.js +51 -0
  9. package/dist/models/LeadEnrichmentDomainDto.d.ts +39 -0
  10. package/dist/models/LeadEnrichmentDomainDto.js +56 -0
  11. package/dist/models/LeadEnrichmentDomainVariantDto.d.ts +74 -0
  12. package/dist/models/LeadEnrichmentDomainVariantDto.js +79 -0
  13. package/dist/models/LeadEnrichmentDto.d.ts +16 -2
  14. package/dist/models/LeadEnrichmentDto.js +10 -0
  15. package/dist/models/LeadEnrichmentEmailDto.d.ts +0 -6
  16. package/dist/models/LeadEnrichmentEmailDto.js +0 -4
  17. package/dist/models/LeadEnrichmentPersonDto.d.ts +69 -0
  18. package/dist/models/LeadEnrichmentPersonDto.js +80 -0
  19. package/dist/models/index.d.ts +4 -0
  20. package/dist/models/index.js +4 -0
  21. package/package.json +1 -1
  22. package/src/apis/LeadsPublicApi.ts +52 -0
  23. package/src/models/AdminLeadListItemBuyerDto.ts +9 -0
  24. package/src/models/AssociateLeadVisitorInput.ts +66 -0
  25. package/src/models/LeadEnrichmentDomainDto.ts +83 -0
  26. package/src/models/LeadEnrichmentDomainVariantDto.ts +129 -0
  27. package/src/models/LeadEnrichmentDto.ts +34 -2
  28. package/src/models/LeadEnrichmentEmailDto.ts +0 -9
  29. package/src/models/LeadEnrichmentPersonDto.ts +125 -0
  30. package/src/models/index.ts +4 -0
@@ -114,6 +114,7 @@ src/models/AirwallexDepositDtoFee.ts
114
114
  src/models/ApiKeyDto.ts
115
115
  src/models/ApiKeyScopeDto.ts
116
116
  src/models/ApplyDomainEditInput.ts
117
+ src/models/AssociateLeadVisitorInput.ts
117
118
  src/models/AuBankAccountDetails.ts
118
119
  src/models/AuctionBidDto.ts
119
120
  src/models/AuctionBidInput.ts
@@ -332,9 +333,12 @@ src/models/LeadBuyerConfigDto.ts
332
333
  src/models/LeadDomainDto.ts
333
334
  src/models/LeadDto.ts
334
335
  src/models/LeadEnrichmentCompanyDto.ts
336
+ src/models/LeadEnrichmentDomainDto.ts
337
+ src/models/LeadEnrichmentDomainVariantDto.ts
335
338
  src/models/LeadEnrichmentDto.ts
336
339
  src/models/LeadEnrichmentEmailDto.ts
337
340
  src/models/LeadEnrichmentIpDto.ts
341
+ src/models/LeadEnrichmentPersonDto.ts
338
342
  src/models/LeadEnrichmentWebResultDto.ts
339
343
  src/models/LeadLeaseToOwnAndRentConfigurationPresetsDto.ts
340
344
  src/models/LeadLeaseToOwnConfigurationDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.463
1
+ ## @randock/nameshift-api-client@0.0.465
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.463 --save
39
+ npm install @randock/nameshift-api-client@0.0.465 --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
- ef515a5a3d74a65a729e66504944c596d93e46f19efad6cc063991b5f3115d471b1faa39aab12de1b47ce2436943e989
47
+ b76ba30a67215108475376354d7648b28a5f1352611594e2eb85dbf91f32353832b3918d51181bf979808a957c21005d
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateLeadInput, LeadStatusDto, ObjectId, PublicLeadDto, UpdateLeadInput, VerifyLeadInput } from '../models/index';
13
+ import type { AssociateLeadVisitorInput, CreateLeadInput, LeadStatusDto, ObjectId, PublicLeadDto, UpdateLeadInput, VerifyLeadInput } from '../models/index';
14
+ export interface LeadsPublicApiAssociateLeadVisitorRequest {
15
+ leadId: string;
16
+ associateLeadVisitorInput: AssociateLeadVisitorInput;
17
+ }
14
18
  export interface LeadsPublicApiCreateLeadRequest {
15
19
  createLeadInput: CreateLeadInput;
16
20
  }
@@ -35,6 +39,16 @@ export interface LeadsPublicApiVerifyLeadRequest {
35
39
  *
36
40
  */
37
41
  export declare class LeadsPublicApi extends runtime.BaseAPI {
42
+ /**
43
+ * 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.
44
+ * Associate a visitor with a lead buyer
45
+ */
46
+ associateLeadVisitorRaw(requestParameters: LeadsPublicApiAssociateLeadVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
47
+ /**
48
+ * 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.
49
+ * Associate a visitor with a lead buyer
50
+ */
51
+ associateLeadVisitor(requestParameters: LeadsPublicApiAssociateLeadVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
38
52
  /**
39
53
  * Submits a purchase inquiry for a domain. No authentication required. May be processed synchronously or asynchronously.
40
54
  * Create a lead
@@ -75,6 +75,55 @@ var LeadsPublicApi = /** @class */ (function (_super) {
75
75
  function LeadsPublicApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ * 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.
80
+ * Associate a visitor with a lead buyer
81
+ */
82
+ LeadsPublicApi.prototype.associateLeadVisitorRaw = function (requestParameters, initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, response;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0:
88
+ if (requestParameters['leadId'] == null) {
89
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling associateLeadVisitor().');
90
+ }
91
+ if (requestParameters['associateLeadVisitorInput'] == null) {
92
+ throw new runtime.RequiredError('associateLeadVisitorInput', 'Required parameter "associateLeadVisitorInput" was null or undefined when calling associateLeadVisitor().');
93
+ }
94
+ queryParameters = {};
95
+ headerParameters = {};
96
+ headerParameters['Content-Type'] = 'application/json';
97
+ return [4 /*yield*/, this.request({
98
+ path: "/leads/{leadId}/visitor".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
99
+ method: 'POST',
100
+ headers: headerParameters,
101
+ query: queryParameters,
102
+ body: (0, index_1.AssociateLeadVisitorInputToJSON)(requestParameters['associateLeadVisitorInput']),
103
+ }, initOverrides)];
104
+ case 1:
105
+ response = _a.sent();
106
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
107
+ }
108
+ });
109
+ });
110
+ };
111
+ /**
112
+ * 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.
113
+ * Associate a visitor with a lead buyer
114
+ */
115
+ LeadsPublicApi.prototype.associateLeadVisitor = function (requestParameters, initOverrides) {
116
+ return __awaiter(this, void 0, void 0, function () {
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0: return [4 /*yield*/, this.associateLeadVisitorRaw(requestParameters, initOverrides)];
120
+ case 1:
121
+ _a.sent();
122
+ return [2 /*return*/];
123
+ }
124
+ });
125
+ });
126
+ };
78
127
  /**
79
128
  * Submits a purchase inquiry for a domain. No authentication required. May be processed synchronously or asynchronously.
80
129
  * Create a lead
@@ -57,6 +57,12 @@ export interface AdminLeadListItemBuyerDto {
57
57
  * @memberof AdminLeadListItemBuyerDto
58
58
  */
59
59
  phoneNumber: string | null;
60
+ /**
61
+ * Umami session ids collected for this buyer, for cross-referencing analytics.
62
+ * @type {Array<string>}
63
+ * @memberof AdminLeadListItemBuyerDto
64
+ */
65
+ visitorIds: Array<string>;
60
66
  }
61
67
  /**
62
68
  * Check if a given object implements the AdminLeadListItemBuyerDto interface.
@@ -36,6 +36,8 @@ function instanceOfAdminLeadListItemBuyerDto(value) {
36
36
  return false;
37
37
  if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
38
38
  return false;
39
+ if (!('visitorIds' in value) || value['visitorIds'] === undefined)
40
+ return false;
39
41
  return true;
40
42
  }
41
43
  function AdminLeadListItemBuyerDtoFromJSON(json) {
@@ -53,6 +55,7 @@ function AdminLeadListItemBuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'ipCountryCode': json['ipCountryCode'],
54
56
  'companyName': json['companyName'],
55
57
  'phoneNumber': json['phoneNumber'],
58
+ 'visitorIds': json['visitorIds'],
56
59
  };
57
60
  }
58
61
  function AdminLeadListItemBuyerDtoToJSON(json) {
@@ -71,5 +74,6 @@ function AdminLeadListItemBuyerDtoToJSONTyped(value, ignoreDiscriminator) {
71
74
  'ipCountryCode': value['ipCountryCode'],
72
75
  'companyName': value['companyName'],
73
76
  'phoneNumber': value['phoneNumber'],
77
+ 'visitorIds': value['visitorIds'],
74
78
  };
75
79
  }
@@ -0,0 +1,32 @@
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 AssociateLeadVisitorInput
16
+ */
17
+ export interface AssociateLeadVisitorInput {
18
+ /**
19
+ * Umami session id of the visitor, as reported by the tracker on the page the buyer is using.
20
+ * @type {string}
21
+ * @memberof AssociateLeadVisitorInput
22
+ */
23
+ visitorId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AssociateLeadVisitorInput interface.
27
+ */
28
+ export declare function instanceOfAssociateLeadVisitorInput(value: object): value is AssociateLeadVisitorInput;
29
+ export declare function AssociateLeadVisitorInputFromJSON(json: any): AssociateLeadVisitorInput;
30
+ export declare function AssociateLeadVisitorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssociateLeadVisitorInput;
31
+ export declare function AssociateLeadVisitorInputToJSON(json: any): AssociateLeadVisitorInput;
32
+ export declare function AssociateLeadVisitorInputToJSONTyped(value?: AssociateLeadVisitorInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfAssociateLeadVisitorInput = instanceOfAssociateLeadVisitorInput;
17
+ exports.AssociateLeadVisitorInputFromJSON = AssociateLeadVisitorInputFromJSON;
18
+ exports.AssociateLeadVisitorInputFromJSONTyped = AssociateLeadVisitorInputFromJSONTyped;
19
+ exports.AssociateLeadVisitorInputToJSON = AssociateLeadVisitorInputToJSON;
20
+ exports.AssociateLeadVisitorInputToJSONTyped = AssociateLeadVisitorInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AssociateLeadVisitorInput interface.
23
+ */
24
+ function instanceOfAssociateLeadVisitorInput(value) {
25
+ if (!('visitorId' in value) || value['visitorId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AssociateLeadVisitorInputFromJSON(json) {
30
+ return AssociateLeadVisitorInputFromJSONTyped(json, false);
31
+ }
32
+ function AssociateLeadVisitorInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'visitorId': json['visitorId'],
38
+ };
39
+ }
40
+ function AssociateLeadVisitorInputToJSON(json) {
41
+ return AssociateLeadVisitorInputToJSONTyped(json, false);
42
+ }
43
+ function AssociateLeadVisitorInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'visitorId': value['visitorId'],
50
+ };
51
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { LeadEnrichmentDomainVariantDto } from './LeadEnrichmentDomainVariantDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LeadEnrichmentDomainDto
17
+ */
18
+ export interface LeadEnrichmentDomainDto {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof LeadEnrichmentDomainDto
23
+ */
24
+ status: string;
25
+ /**
26
+ *
27
+ * @type {Array<LeadEnrichmentDomainVariantDto>}
28
+ * @memberof LeadEnrichmentDomainDto
29
+ */
30
+ variants: Array<LeadEnrichmentDomainVariantDto>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the LeadEnrichmentDomainDto interface.
34
+ */
35
+ export declare function instanceOfLeadEnrichmentDomainDto(value: object): value is LeadEnrichmentDomainDto;
36
+ export declare function LeadEnrichmentDomainDtoFromJSON(json: any): LeadEnrichmentDomainDto;
37
+ export declare function LeadEnrichmentDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentDomainDto;
38
+ export declare function LeadEnrichmentDomainDtoToJSON(json: any): LeadEnrichmentDomainDto;
39
+ export declare function LeadEnrichmentDomainDtoToJSONTyped(value?: LeadEnrichmentDomainDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfLeadEnrichmentDomainDto = instanceOfLeadEnrichmentDomainDto;
17
+ exports.LeadEnrichmentDomainDtoFromJSON = LeadEnrichmentDomainDtoFromJSON;
18
+ exports.LeadEnrichmentDomainDtoFromJSONTyped = LeadEnrichmentDomainDtoFromJSONTyped;
19
+ exports.LeadEnrichmentDomainDtoToJSON = LeadEnrichmentDomainDtoToJSON;
20
+ exports.LeadEnrichmentDomainDtoToJSONTyped = LeadEnrichmentDomainDtoToJSONTyped;
21
+ var LeadEnrichmentDomainVariantDto_1 = require("./LeadEnrichmentDomainVariantDto");
22
+ /**
23
+ * Check if a given object implements the LeadEnrichmentDomainDto interface.
24
+ */
25
+ function instanceOfLeadEnrichmentDomainDto(value) {
26
+ if (!('status' in value) || value['status'] === undefined)
27
+ return false;
28
+ if (!('variants' in value) || value['variants'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function LeadEnrichmentDomainDtoFromJSON(json) {
33
+ return LeadEnrichmentDomainDtoFromJSONTyped(json, false);
34
+ }
35
+ function LeadEnrichmentDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'status': json['status'],
41
+ 'variants': (json['variants'].map(LeadEnrichmentDomainVariantDto_1.LeadEnrichmentDomainVariantDtoFromJSON)),
42
+ };
43
+ }
44
+ function LeadEnrichmentDomainDtoToJSON(json) {
45
+ return LeadEnrichmentDomainDtoToJSONTyped(json, false);
46
+ }
47
+ function LeadEnrichmentDomainDtoToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'status': value['status'],
54
+ 'variants': (value['variants'].map(LeadEnrichmentDomainVariantDto_1.LeadEnrichmentDomainVariantDtoToJSON)),
55
+ };
56
+ }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface LeadEnrichmentDomainVariantDto
16
+ */
17
+ export interface LeadEnrichmentDomainVariantDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LeadEnrichmentDomainVariantDto
22
+ */
23
+ domain: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof LeadEnrichmentDomainVariantDto
28
+ */
29
+ registered: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof LeadEnrichmentDomainVariantDto
34
+ */
35
+ websiteReachable: boolean;
36
+ /**
37
+ * Whether the variant's nameservers match the sale domain's.
38
+ * @type {boolean}
39
+ * @memberof LeadEnrichmentDomainVariantDto
40
+ */
41
+ sameNameservers: boolean | null;
42
+ /**
43
+ * Whether the variant is openly for sale (marketplace parking or a _for-sale record).
44
+ * @type {boolean}
45
+ * @memberof LeadEnrichmentDomainVariantDto
46
+ */
47
+ forSale: boolean | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof LeadEnrichmentDomainVariantDto
52
+ */
53
+ forSaleMarketplace: string | null;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof LeadEnrichmentDomainVariantDto
58
+ */
59
+ forSalePriceAmount: number | null;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof LeadEnrichmentDomainVariantDto
64
+ */
65
+ forSalePriceCurrency: string | null;
66
+ }
67
+ /**
68
+ * Check if a given object implements the LeadEnrichmentDomainVariantDto interface.
69
+ */
70
+ export declare function instanceOfLeadEnrichmentDomainVariantDto(value: object): value is LeadEnrichmentDomainVariantDto;
71
+ export declare function LeadEnrichmentDomainVariantDtoFromJSON(json: any): LeadEnrichmentDomainVariantDto;
72
+ export declare function LeadEnrichmentDomainVariantDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentDomainVariantDto;
73
+ export declare function LeadEnrichmentDomainVariantDtoToJSON(json: any): LeadEnrichmentDomainVariantDto;
74
+ export declare function LeadEnrichmentDomainVariantDtoToJSONTyped(value?: LeadEnrichmentDomainVariantDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfLeadEnrichmentDomainVariantDto = instanceOfLeadEnrichmentDomainVariantDto;
17
+ exports.LeadEnrichmentDomainVariantDtoFromJSON = LeadEnrichmentDomainVariantDtoFromJSON;
18
+ exports.LeadEnrichmentDomainVariantDtoFromJSONTyped = LeadEnrichmentDomainVariantDtoFromJSONTyped;
19
+ exports.LeadEnrichmentDomainVariantDtoToJSON = LeadEnrichmentDomainVariantDtoToJSON;
20
+ exports.LeadEnrichmentDomainVariantDtoToJSONTyped = LeadEnrichmentDomainVariantDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LeadEnrichmentDomainVariantDto interface.
23
+ */
24
+ function instanceOfLeadEnrichmentDomainVariantDto(value) {
25
+ if (!('domain' in value) || value['domain'] === undefined)
26
+ return false;
27
+ if (!('registered' in value) || value['registered'] === undefined)
28
+ return false;
29
+ if (!('websiteReachable' in value) || value['websiteReachable'] === undefined)
30
+ return false;
31
+ if (!('sameNameservers' in value) || value['sameNameservers'] === undefined)
32
+ return false;
33
+ if (!('forSale' in value) || value['forSale'] === undefined)
34
+ return false;
35
+ if (!('forSaleMarketplace' in value) || value['forSaleMarketplace'] === undefined)
36
+ return false;
37
+ if (!('forSalePriceAmount' in value) || value['forSalePriceAmount'] === undefined)
38
+ return false;
39
+ if (!('forSalePriceCurrency' in value) || value['forSalePriceCurrency'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function LeadEnrichmentDomainVariantDtoFromJSON(json) {
44
+ return LeadEnrichmentDomainVariantDtoFromJSONTyped(json, false);
45
+ }
46
+ function LeadEnrichmentDomainVariantDtoFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'domain': json['domain'],
52
+ 'registered': json['registered'],
53
+ 'websiteReachable': json['websiteReachable'],
54
+ 'sameNameservers': json['sameNameservers'],
55
+ 'forSale': json['forSale'],
56
+ 'forSaleMarketplace': json['forSaleMarketplace'],
57
+ 'forSalePriceAmount': json['forSalePriceAmount'],
58
+ 'forSalePriceCurrency': json['forSalePriceCurrency'],
59
+ };
60
+ }
61
+ function LeadEnrichmentDomainVariantDtoToJSON(json) {
62
+ return LeadEnrichmentDomainVariantDtoToJSONTyped(json, false);
63
+ }
64
+ function LeadEnrichmentDomainVariantDtoToJSONTyped(value, ignoreDiscriminator) {
65
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'domain': value['domain'],
71
+ 'registered': value['registered'],
72
+ 'websiteReachable': value['websiteReachable'],
73
+ 'sameNameservers': value['sameNameservers'],
74
+ 'forSale': value['forSale'],
75
+ 'forSaleMarketplace': value['forSaleMarketplace'],
76
+ 'forSalePriceAmount': value['forSalePriceAmount'],
77
+ 'forSalePriceCurrency': value['forSalePriceCurrency'],
78
+ };
79
+ }
@@ -9,10 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LeadEnrichmentPersonDto } from './LeadEnrichmentPersonDto';
12
13
  import type { LeadEnrichmentIpDto } from './LeadEnrichmentIpDto';
13
14
  import type { LeadEnrichmentEmailDto } from './LeadEnrichmentEmailDto';
14
15
  import type { LeadEnrichmentWebResultDto } from './LeadEnrichmentWebResultDto';
15
16
  import type { LeadEnrichmentCompanyDto } from './LeadEnrichmentCompanyDto';
17
+ import type { LeadEnrichmentDomainDto } from './LeadEnrichmentDomainDto';
16
18
  /**
17
19
  *
18
20
  * @export
@@ -32,13 +34,13 @@ export interface LeadEnrichmentDto {
32
34
  */
33
35
  status: string | null;
34
36
  /**
35
- * Summary of the buyer's public web footprint.
37
+ * What publicly ties this buyer to the domain they want. Who the buyer is lives on `person`.
36
38
  * @type {string}
37
39
  * @memberof LeadEnrichmentDto
38
40
  */
39
41
  webSummary: string | null;
40
42
  /**
41
- *
43
+ * Sources behind `webSummary`.
42
44
  * @type {Array<LeadEnrichmentWebResultDto>}
43
45
  * @memberof LeadEnrichmentDto
44
46
  */
@@ -49,6 +51,12 @@ export interface LeadEnrichmentDto {
49
51
  * @memberof LeadEnrichmentDto
50
52
  */
51
53
  email: LeadEnrichmentEmailDto | null;
54
+ /**
55
+ *
56
+ * @type {LeadEnrichmentPersonDto}
57
+ * @memberof LeadEnrichmentDto
58
+ */
59
+ person: LeadEnrichmentPersonDto | null;
52
60
  /**
53
61
  *
54
62
  * @type {LeadEnrichmentCompanyDto}
@@ -61,6 +69,12 @@ export interface LeadEnrichmentDto {
61
69
  * @memberof LeadEnrichmentDto
62
70
  */
63
71
  ip: LeadEnrichmentIpDto | null;
72
+ /**
73
+ *
74
+ * @type {LeadEnrichmentDomainDto}
75
+ * @memberof LeadEnrichmentDto
76
+ */
77
+ domain: LeadEnrichmentDomainDto | null;
64
78
  }
65
79
  /**
66
80
  * Check if a given object implements the LeadEnrichmentDto interface.
@@ -18,10 +18,12 @@ exports.LeadEnrichmentDtoFromJSON = LeadEnrichmentDtoFromJSON;
18
18
  exports.LeadEnrichmentDtoFromJSONTyped = LeadEnrichmentDtoFromJSONTyped;
19
19
  exports.LeadEnrichmentDtoToJSON = LeadEnrichmentDtoToJSON;
20
20
  exports.LeadEnrichmentDtoToJSONTyped = LeadEnrichmentDtoToJSONTyped;
21
+ var LeadEnrichmentPersonDto_1 = require("./LeadEnrichmentPersonDto");
21
22
  var LeadEnrichmentIpDto_1 = require("./LeadEnrichmentIpDto");
22
23
  var LeadEnrichmentEmailDto_1 = require("./LeadEnrichmentEmailDto");
23
24
  var LeadEnrichmentWebResultDto_1 = require("./LeadEnrichmentWebResultDto");
24
25
  var LeadEnrichmentCompanyDto_1 = require("./LeadEnrichmentCompanyDto");
26
+ var LeadEnrichmentDomainDto_1 = require("./LeadEnrichmentDomainDto");
25
27
  /**
26
28
  * Check if a given object implements the LeadEnrichmentDto interface.
27
29
  */
@@ -36,10 +38,14 @@ function instanceOfLeadEnrichmentDto(value) {
36
38
  return false;
37
39
  if (!('email' in value) || value['email'] === undefined)
38
40
  return false;
41
+ if (!('person' in value) || value['person'] === undefined)
42
+ return false;
39
43
  if (!('company' in value) || value['company'] === undefined)
40
44
  return false;
41
45
  if (!('ip' in value) || value['ip'] === undefined)
42
46
  return false;
47
+ if (!('domain' in value) || value['domain'] === undefined)
48
+ return false;
43
49
  return true;
44
50
  }
45
51
  function LeadEnrichmentDtoFromJSON(json) {
@@ -55,8 +61,10 @@ function LeadEnrichmentDtoFromJSONTyped(json, ignoreDiscriminator) {
55
61
  'webSummary': json['webSummary'],
56
62
  'webResults': (json['webResults'].map(LeadEnrichmentWebResultDto_1.LeadEnrichmentWebResultDtoFromJSON)),
57
63
  'email': (0, LeadEnrichmentEmailDto_1.LeadEnrichmentEmailDtoFromJSON)(json['email']),
64
+ 'person': (0, LeadEnrichmentPersonDto_1.LeadEnrichmentPersonDtoFromJSON)(json['person']),
58
65
  'company': (0, LeadEnrichmentCompanyDto_1.LeadEnrichmentCompanyDtoFromJSON)(json['company']),
59
66
  'ip': (0, LeadEnrichmentIpDto_1.LeadEnrichmentIpDtoFromJSON)(json['ip']),
67
+ 'domain': (0, LeadEnrichmentDomainDto_1.LeadEnrichmentDomainDtoFromJSON)(json['domain']),
60
68
  };
61
69
  }
62
70
  function LeadEnrichmentDtoToJSON(json) {
@@ -73,7 +81,9 @@ function LeadEnrichmentDtoToJSONTyped(value, ignoreDiscriminator) {
73
81
  'webSummary': value['webSummary'],
74
82
  'webResults': (value['webResults'].map(LeadEnrichmentWebResultDto_1.LeadEnrichmentWebResultDtoToJSON)),
75
83
  'email': (0, LeadEnrichmentEmailDto_1.LeadEnrichmentEmailDtoToJSON)(value['email']),
84
+ 'person': (0, LeadEnrichmentPersonDto_1.LeadEnrichmentPersonDtoToJSON)(value['person']),
76
85
  'company': (0, LeadEnrichmentCompanyDto_1.LeadEnrichmentCompanyDtoToJSON)(value['company']),
77
86
  'ip': (0, LeadEnrichmentIpDto_1.LeadEnrichmentIpDtoToJSON)(value['ip']),
87
+ 'domain': (0, LeadEnrichmentDomainDto_1.LeadEnrichmentDomainDtoToJSON)(value['domain']),
78
88
  };
79
89
  }
@@ -27,12 +27,6 @@ export interface LeadEnrichmentEmailDto {
27
27
  * @memberof LeadEnrichmentEmailDto
28
28
  */
29
29
  isDisposable: boolean | null;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof LeadEnrichmentEmailDto
34
- */
35
- webSummary: string | null;
36
30
  }
37
31
  /**
38
32
  * Check if a given object implements the LeadEnrichmentEmailDto interface.
@@ -26,8 +26,6 @@ function instanceOfLeadEnrichmentEmailDto(value) {
26
26
  return false;
27
27
  if (!('isDisposable' in value) || value['isDisposable'] === undefined)
28
28
  return false;
29
- if (!('webSummary' in value) || value['webSummary'] === undefined)
30
- return false;
31
29
  return true;
32
30
  }
33
31
  function LeadEnrichmentEmailDtoFromJSON(json) {
@@ -40,7 +38,6 @@ function LeadEnrichmentEmailDtoFromJSONTyped(json, ignoreDiscriminator) {
40
38
  return {
41
39
  'isFreeMail': json['isFreeMail'],
42
40
  'isDisposable': json['isDisposable'],
43
- 'webSummary': json['webSummary'],
44
41
  };
45
42
  }
46
43
  function LeadEnrichmentEmailDtoToJSON(json) {
@@ -54,6 +51,5 @@ function LeadEnrichmentEmailDtoToJSONTyped(value, ignoreDiscriminator) {
54
51
  return {
55
52
  'isFreeMail': value['isFreeMail'],
56
53
  'isDisposable': value['isDisposable'],
57
- 'webSummary': value['webSummary'],
58
54
  };
59
55
  }