@randock/nameshift-api-client 0.0.314 → 0.0.315
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 +1 -0
- package/README.md +3 -3
- package/dist/apis/DomainsPublicApi.d.ts +12 -1
- package/dist/apis/DomainsPublicApi.js +44 -0
- package/dist/models/DomainSalesInformationDto.d.ts +18 -0
- package/dist/models/DomainSalesInformationDto.js +12 -0
- package/dist/models/DomainSellerDto.d.ts +0 -13
- package/dist/models/DomainSellerDto.js +0 -9
- package/dist/models/RelatedDomainsDto.d.ts +33 -0
- package/dist/models/RelatedDomainsDto.js +52 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/DomainsPublicApi.ts +40 -0
- package/src/models/DomainSalesInformationDto.ts +27 -0
- package/src/models/DomainSellerDto.ts +0 -26
- package/src/models/RelatedDomainsDto.ts +74 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -232,6 +232,7 @@ src/models/PublicSalesDto.ts
|
|
|
232
232
|
src/models/PutBuyerLeadOfferInput.ts
|
|
233
233
|
src/models/PutLeadOfferInput.ts
|
|
234
234
|
src/models/RegisterAccountInput.ts
|
|
235
|
+
src/models/RelatedDomainsDto.ts
|
|
235
236
|
src/models/RelatedSellerDomain.ts
|
|
236
237
|
src/models/RentConfigurationDto.ts
|
|
237
238
|
src/models/RentConfigurationInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.315
|
|
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.315 --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
|
+
bebd9db2be101337a7f30e663485e4a20811c3fc9687f5fe20322309701902d23e145f6a1c8929c19588c1ffeb8488b7
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { DomainSalesInformationDto, DomainStatsDto, DomainTldsDto, List200Response3, SortDto } from '../models/index';
|
|
13
|
+
import type { DomainSalesInformationDto, DomainStatsDto, DomainTldsDto, List200Response3, RelatedDomainsDto, SortDto } from '../models/index';
|
|
14
14
|
export interface DomainsPublicApiGetAllTldsRequest {
|
|
15
15
|
seller?: string;
|
|
16
16
|
}
|
|
17
|
+
export interface DomainsPublicApiGetDomainRelatedDomainsRequest {
|
|
18
|
+
domainName: string;
|
|
19
|
+
}
|
|
17
20
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
18
21
|
domainName: string;
|
|
19
22
|
preview?: boolean;
|
|
@@ -42,6 +45,14 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
42
45
|
*
|
|
43
46
|
*/
|
|
44
47
|
getAllTlds(requestParameters?: DomainsPublicApiGetAllTldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
getDomainRelatedDomainsRaw(requestParameters: DomainsPublicApiGetDomainRelatedDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RelatedDomainsDto>>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
getDomainRelatedDomains(requestParameters: DomainsPublicApiGetDomainRelatedDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RelatedDomainsDto>;
|
|
45
56
|
/**
|
|
46
57
|
*
|
|
47
58
|
*/
|
|
@@ -120,6 +120,50 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
};
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
DomainsPublicApi.prototype.getDomainRelatedDomainsRaw = function (requestParameters, initOverrides) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
var queryParameters, headerParameters, response;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
switch (_a.label) {
|
|
131
|
+
case 0:
|
|
132
|
+
if (requestParameters['domainName'] == null) {
|
|
133
|
+
throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getDomainRelatedDomains().');
|
|
134
|
+
}
|
|
135
|
+
queryParameters = {};
|
|
136
|
+
headerParameters = {};
|
|
137
|
+
return [4 /*yield*/, this.request({
|
|
138
|
+
path: "/domains/by-name/{domainName}/related-domains".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
|
|
139
|
+
method: 'GET',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
}, initOverrides)];
|
|
143
|
+
case 1:
|
|
144
|
+
response = _a.sent();
|
|
145
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.RelatedDomainsDtoFromJSON)(jsonValue); })];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
*/
|
|
153
|
+
DomainsPublicApi.prototype.getDomainRelatedDomains = function (requestParameters, initOverrides) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
155
|
+
var response;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0: return [4 /*yield*/, this.getDomainRelatedDomainsRaw(requestParameters, initOverrides)];
|
|
159
|
+
case 1:
|
|
160
|
+
response = _a.sent();
|
|
161
|
+
return [4 /*yield*/, response.value()];
|
|
162
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
};
|
|
123
167
|
/**
|
|
124
168
|
*
|
|
125
169
|
*/
|
|
@@ -87,6 +87,24 @@ export interface DomainSalesInformationDto {
|
|
|
87
87
|
* @memberof DomainSalesInformationDto
|
|
88
88
|
*/
|
|
89
89
|
statsEnabled: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Related domains enabled
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof DomainSalesInformationDto
|
|
94
|
+
*/
|
|
95
|
+
relatedDomainsEnabled: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Trustpilot enabled
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof DomainSalesInformationDto
|
|
100
|
+
*/
|
|
101
|
+
trustpilotEnabled: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* SEO enabled
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof DomainSalesInformationDto
|
|
106
|
+
*/
|
|
107
|
+
seoEnabled: boolean;
|
|
90
108
|
/**
|
|
91
109
|
* Lead buyer settings
|
|
92
110
|
* @type {LeadBuyerConfigDto}
|
|
@@ -50,6 +50,12 @@ function instanceOfDomainSalesInformationDto(value) {
|
|
|
50
50
|
return false;
|
|
51
51
|
if (!('statsEnabled' in value) || value['statsEnabled'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
+
if (!('relatedDomainsEnabled' in value) || value['relatedDomainsEnabled'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('trustpilotEnabled' in value) || value['trustpilotEnabled'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('seoEnabled' in value) || value['seoEnabled'] === undefined)
|
|
58
|
+
return false;
|
|
53
59
|
if (!('leadBuyerSettings' in value) || value['leadBuyerSettings'] === undefined)
|
|
54
60
|
return false;
|
|
55
61
|
return true;
|
|
@@ -73,6 +79,9 @@ function DomainSalesInformationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
73
79
|
'isPurchaseable': json['isPurchaseable'],
|
|
74
80
|
'seo': (0, SeoMetricsDto_1.SeoMetricsDtoFromJSON)(json['seo']),
|
|
75
81
|
'statsEnabled': json['statsEnabled'],
|
|
82
|
+
'relatedDomainsEnabled': json['relatedDomainsEnabled'],
|
|
83
|
+
'trustpilotEnabled': json['trustpilotEnabled'],
|
|
84
|
+
'seoEnabled': json['seoEnabled'],
|
|
76
85
|
'leadBuyerSettings': (0, LeadBuyerConfigDto_1.LeadBuyerConfigDtoFromJSON)(json['leadBuyerSettings']),
|
|
77
86
|
};
|
|
78
87
|
}
|
|
@@ -96,6 +105,9 @@ function DomainSalesInformationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
96
105
|
'isPurchaseable': value['isPurchaseable'],
|
|
97
106
|
'seo': (0, SeoMetricsDto_1.SeoMetricsDtoToJSON)(value['seo']),
|
|
98
107
|
'statsEnabled': value['statsEnabled'],
|
|
108
|
+
'relatedDomainsEnabled': value['relatedDomainsEnabled'],
|
|
109
|
+
'trustpilotEnabled': value['trustpilotEnabled'],
|
|
110
|
+
'seoEnabled': value['seoEnabled'],
|
|
99
111
|
'leadBuyerSettings': (0, LeadBuyerConfigDto_1.LeadBuyerConfigDtoToJSON)(value['leadBuyerSettings']),
|
|
100
112
|
};
|
|
101
113
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { RelatedSellerDomain } from './RelatedSellerDomain';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -34,12 +33,6 @@ export interface DomainSellerDto {
|
|
|
34
33
|
* @memberof DomainSellerDto
|
|
35
34
|
*/
|
|
36
35
|
anonymous: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Show trustpilot
|
|
39
|
-
* @type {boolean}
|
|
40
|
-
* @memberof DomainSellerDto
|
|
41
|
-
*/
|
|
42
|
-
showTrustpilot: boolean;
|
|
43
36
|
/**
|
|
44
37
|
* Last online, formatted
|
|
45
38
|
* @type {Date}
|
|
@@ -70,12 +63,6 @@ export interface DomainSellerDto {
|
|
|
70
63
|
* @memberof DomainSellerDto
|
|
71
64
|
*/
|
|
72
65
|
description: string | null;
|
|
73
|
-
/**
|
|
74
|
-
* The domain seller related domains
|
|
75
|
-
* @type {Array<RelatedSellerDomain>}
|
|
76
|
-
* @memberof DomainSellerDto
|
|
77
|
-
*/
|
|
78
|
-
relatedDomains: Array<RelatedSellerDomain> | null;
|
|
79
66
|
}
|
|
80
67
|
/**
|
|
81
68
|
* Check if a given object implements the DomainSellerDto interface.
|
|
@@ -18,7 +18,6 @@ exports.DomainSellerDtoFromJSON = DomainSellerDtoFromJSON;
|
|
|
18
18
|
exports.DomainSellerDtoFromJSONTyped = DomainSellerDtoFromJSONTyped;
|
|
19
19
|
exports.DomainSellerDtoToJSON = DomainSellerDtoToJSON;
|
|
20
20
|
exports.DomainSellerDtoToJSONTyped = DomainSellerDtoToJSONTyped;
|
|
21
|
-
var RelatedSellerDomain_1 = require("./RelatedSellerDomain");
|
|
22
21
|
/**
|
|
23
22
|
* Check if a given object implements the DomainSellerDto interface.
|
|
24
23
|
*/
|
|
@@ -29,8 +28,6 @@ function instanceOfDomainSellerDto(value) {
|
|
|
29
28
|
return false;
|
|
30
29
|
if (!('anonymous' in value) || value['anonymous'] === undefined)
|
|
31
30
|
return false;
|
|
32
|
-
if (!('showTrustpilot' in value) || value['showTrustpilot'] === undefined)
|
|
33
|
-
return false;
|
|
34
31
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined)
|
|
35
32
|
return false;
|
|
36
33
|
if (!('deliversIn' in value) || value['deliversIn'] === undefined)
|
|
@@ -41,8 +38,6 @@ function instanceOfDomainSellerDto(value) {
|
|
|
41
38
|
return false;
|
|
42
39
|
if (!('description' in value) || value['description'] === undefined)
|
|
43
40
|
return false;
|
|
44
|
-
if (!('relatedDomains' in value) || value['relatedDomains'] === undefined)
|
|
45
|
-
return false;
|
|
46
41
|
return true;
|
|
47
42
|
}
|
|
48
43
|
function DomainSellerDtoFromJSON(json) {
|
|
@@ -56,13 +51,11 @@ function DomainSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
51
|
'id': json['id'],
|
|
57
52
|
'createdAt': (new Date(json['createdAt'])),
|
|
58
53
|
'anonymous': json['anonymous'],
|
|
59
|
-
'showTrustpilot': json['showTrustpilot'],
|
|
60
54
|
'lastOnline': (json['lastOnline'] == null ? null : new Date(json['lastOnline'])),
|
|
61
55
|
'deliversIn': json['deliversIn'],
|
|
62
56
|
'name': json['name'],
|
|
63
57
|
'avatar': json['avatar'],
|
|
64
58
|
'description': json['description'],
|
|
65
|
-
'relatedDomains': (json['relatedDomains'] == null ? null : json['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainFromJSON)),
|
|
66
59
|
};
|
|
67
60
|
}
|
|
68
61
|
function DomainSellerDtoToJSON(json) {
|
|
@@ -77,12 +70,10 @@ function DomainSellerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
77
70
|
'id': value['id'],
|
|
78
71
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
79
72
|
'anonymous': value['anonymous'],
|
|
80
|
-
'showTrustpilot': value['showTrustpilot'],
|
|
81
73
|
'lastOnline': (value['lastOnline'] == null ? null : value['lastOnline'].toISOString()),
|
|
82
74
|
'deliversIn': value['deliversIn'],
|
|
83
75
|
'name': value['name'],
|
|
84
76
|
'avatar': value['avatar'],
|
|
85
77
|
'description': value['description'],
|
|
86
|
-
'relatedDomains': (value['relatedDomains'] == null ? null : value['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainToJSON)),
|
|
87
78
|
};
|
|
88
79
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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 { RelatedSellerDomain } from './RelatedSellerDomain';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RelatedDomainsDto
|
|
17
|
+
*/
|
|
18
|
+
export interface RelatedDomainsDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<RelatedSellerDomain>}
|
|
22
|
+
* @memberof RelatedDomainsDto
|
|
23
|
+
*/
|
|
24
|
+
domains: Array<RelatedSellerDomain>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the RelatedDomainsDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfRelatedDomainsDto(value: object): value is RelatedDomainsDto;
|
|
30
|
+
export declare function RelatedDomainsDtoFromJSON(json: any): RelatedDomainsDto;
|
|
31
|
+
export declare function RelatedDomainsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedDomainsDto;
|
|
32
|
+
export declare function RelatedDomainsDtoToJSON(json: any): RelatedDomainsDto;
|
|
33
|
+
export declare function RelatedDomainsDtoToJSONTyped(value?: RelatedDomainsDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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.instanceOfRelatedDomainsDto = instanceOfRelatedDomainsDto;
|
|
17
|
+
exports.RelatedDomainsDtoFromJSON = RelatedDomainsDtoFromJSON;
|
|
18
|
+
exports.RelatedDomainsDtoFromJSONTyped = RelatedDomainsDtoFromJSONTyped;
|
|
19
|
+
exports.RelatedDomainsDtoToJSON = RelatedDomainsDtoToJSON;
|
|
20
|
+
exports.RelatedDomainsDtoToJSONTyped = RelatedDomainsDtoToJSONTyped;
|
|
21
|
+
var RelatedSellerDomain_1 = require("./RelatedSellerDomain");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RelatedDomainsDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRelatedDomainsDto(value) {
|
|
26
|
+
if (!('domains' in value) || value['domains'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function RelatedDomainsDtoFromJSON(json) {
|
|
31
|
+
return RelatedDomainsDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function RelatedDomainsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'domains': (json['domains'].map(RelatedSellerDomain_1.RelatedSellerDomainFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function RelatedDomainsDtoToJSON(json) {
|
|
42
|
+
return RelatedDomainsDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function RelatedDomainsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'domains': (value['domains'].map(RelatedSellerDomain_1.RelatedSellerDomainToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -203,6 +203,7 @@ export * from './PublicSalesDto';
|
|
|
203
203
|
export * from './PutBuyerLeadOfferInput';
|
|
204
204
|
export * from './PutLeadOfferInput';
|
|
205
205
|
export * from './RegisterAccountInput';
|
|
206
|
+
export * from './RelatedDomainsDto';
|
|
206
207
|
export * from './RelatedSellerDomain';
|
|
207
208
|
export * from './RentConfigurationDto';
|
|
208
209
|
export * from './RentConfigurationInput';
|
package/dist/models/index.js
CHANGED
|
@@ -221,6 +221,7 @@ __exportStar(require("./PublicSalesDto"), exports);
|
|
|
221
221
|
__exportStar(require("./PutBuyerLeadOfferInput"), exports);
|
|
222
222
|
__exportStar(require("./PutLeadOfferInput"), exports);
|
|
223
223
|
__exportStar(require("./RegisterAccountInput"), exports);
|
|
224
|
+
__exportStar(require("./RelatedDomainsDto"), exports);
|
|
224
225
|
__exportStar(require("./RelatedSellerDomain"), exports);
|
|
225
226
|
__exportStar(require("./RentConfigurationDto"), exports);
|
|
226
227
|
__exportStar(require("./RentConfigurationInput"), exports);
|
package/package.json
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
DomainTldsDto,
|
|
21
21
|
List200Response3,
|
|
22
22
|
NotFoundException,
|
|
23
|
+
RelatedDomainsDto,
|
|
23
24
|
SortDto,
|
|
24
25
|
ThrottlerException,
|
|
25
26
|
ValidationException,
|
|
@@ -35,6 +36,8 @@ import {
|
|
|
35
36
|
List200Response3ToJSON,
|
|
36
37
|
NotFoundExceptionFromJSON,
|
|
37
38
|
NotFoundExceptionToJSON,
|
|
39
|
+
RelatedDomainsDtoFromJSON,
|
|
40
|
+
RelatedDomainsDtoToJSON,
|
|
38
41
|
SortDtoFromJSON,
|
|
39
42
|
SortDtoToJSON,
|
|
40
43
|
ThrottlerExceptionFromJSON,
|
|
@@ -47,6 +50,10 @@ export interface DomainsPublicApiGetAllTldsRequest {
|
|
|
47
50
|
seller?: string;
|
|
48
51
|
}
|
|
49
52
|
|
|
53
|
+
export interface DomainsPublicApiGetDomainRelatedDomainsRequest {
|
|
54
|
+
domainName: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
50
57
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
51
58
|
domainName: string;
|
|
52
59
|
preview?: boolean;
|
|
@@ -101,6 +108,39 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
101
108
|
return await response.value();
|
|
102
109
|
}
|
|
103
110
|
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
async getDomainRelatedDomainsRaw(requestParameters: DomainsPublicApiGetDomainRelatedDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RelatedDomainsDto>> {
|
|
115
|
+
if (requestParameters['domainName'] == null) {
|
|
116
|
+
throw new runtime.RequiredError(
|
|
117
|
+
'domainName',
|
|
118
|
+
'Required parameter "domainName" was null or undefined when calling getDomainRelatedDomains().'
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const queryParameters: any = {};
|
|
123
|
+
|
|
124
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
125
|
+
|
|
126
|
+
const response = await this.request({
|
|
127
|
+
path: `/domains/by-name/{domainName}/related-domains`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
|
|
128
|
+
method: 'GET',
|
|
129
|
+
headers: headerParameters,
|
|
130
|
+
query: queryParameters,
|
|
131
|
+
}, initOverrides);
|
|
132
|
+
|
|
133
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RelatedDomainsDtoFromJSON(jsonValue));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
async getDomainRelatedDomains(requestParameters: DomainsPublicApiGetDomainRelatedDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RelatedDomainsDto> {
|
|
140
|
+
const response = await this.getDomainRelatedDomainsRaw(requestParameters, initOverrides);
|
|
141
|
+
return await response.value();
|
|
142
|
+
}
|
|
143
|
+
|
|
104
144
|
/**
|
|
105
145
|
*
|
|
106
146
|
*/
|
|
@@ -128,6 +128,24 @@ export interface DomainSalesInformationDto {
|
|
|
128
128
|
* @memberof DomainSalesInformationDto
|
|
129
129
|
*/
|
|
130
130
|
statsEnabled: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Related domains enabled
|
|
133
|
+
* @type {boolean}
|
|
134
|
+
* @memberof DomainSalesInformationDto
|
|
135
|
+
*/
|
|
136
|
+
relatedDomainsEnabled: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Trustpilot enabled
|
|
139
|
+
* @type {boolean}
|
|
140
|
+
* @memberof DomainSalesInformationDto
|
|
141
|
+
*/
|
|
142
|
+
trustpilotEnabled: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* SEO enabled
|
|
145
|
+
* @type {boolean}
|
|
146
|
+
* @memberof DomainSalesInformationDto
|
|
147
|
+
*/
|
|
148
|
+
seoEnabled: boolean;
|
|
131
149
|
/**
|
|
132
150
|
* Lead buyer settings
|
|
133
151
|
* @type {LeadBuyerConfigDto}
|
|
@@ -151,6 +169,9 @@ export function instanceOfDomainSalesInformationDto(value: object): value is Dom
|
|
|
151
169
|
if (!('isPurchaseable' in value) || value['isPurchaseable'] === undefined) return false;
|
|
152
170
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
153
171
|
if (!('statsEnabled' in value) || value['statsEnabled'] === undefined) return false;
|
|
172
|
+
if (!('relatedDomainsEnabled' in value) || value['relatedDomainsEnabled'] === undefined) return false;
|
|
173
|
+
if (!('trustpilotEnabled' in value) || value['trustpilotEnabled'] === undefined) return false;
|
|
174
|
+
if (!('seoEnabled' in value) || value['seoEnabled'] === undefined) return false;
|
|
154
175
|
if (!('leadBuyerSettings' in value) || value['leadBuyerSettings'] === undefined) return false;
|
|
155
176
|
return true;
|
|
156
177
|
}
|
|
@@ -176,6 +197,9 @@ export function DomainSalesInformationDtoFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
176
197
|
'isPurchaseable': json['isPurchaseable'],
|
|
177
198
|
'seo': SeoMetricsDtoFromJSON(json['seo']),
|
|
178
199
|
'statsEnabled': json['statsEnabled'],
|
|
200
|
+
'relatedDomainsEnabled': json['relatedDomainsEnabled'],
|
|
201
|
+
'trustpilotEnabled': json['trustpilotEnabled'],
|
|
202
|
+
'seoEnabled': json['seoEnabled'],
|
|
179
203
|
'leadBuyerSettings': LeadBuyerConfigDtoFromJSON(json['leadBuyerSettings']),
|
|
180
204
|
};
|
|
181
205
|
}
|
|
@@ -202,6 +226,9 @@ export function DomainSalesInformationDtoToJSONTyped(value?: DomainSalesInformat
|
|
|
202
226
|
'isPurchaseable': value['isPurchaseable'],
|
|
203
227
|
'seo': SeoMetricsDtoToJSON(value['seo']),
|
|
204
228
|
'statsEnabled': value['statsEnabled'],
|
|
229
|
+
'relatedDomainsEnabled': value['relatedDomainsEnabled'],
|
|
230
|
+
'trustpilotEnabled': value['trustpilotEnabled'],
|
|
231
|
+
'seoEnabled': value['seoEnabled'],
|
|
205
232
|
'leadBuyerSettings': LeadBuyerConfigDtoToJSON(value['leadBuyerSettings']),
|
|
206
233
|
};
|
|
207
234
|
}
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { RelatedSellerDomain } from './RelatedSellerDomain';
|
|
17
|
-
import {
|
|
18
|
-
RelatedSellerDomainFromJSON,
|
|
19
|
-
RelatedSellerDomainFromJSONTyped,
|
|
20
|
-
RelatedSellerDomainToJSON,
|
|
21
|
-
RelatedSellerDomainToJSONTyped,
|
|
22
|
-
} from './RelatedSellerDomain';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -45,12 +37,6 @@ export interface DomainSellerDto {
|
|
|
45
37
|
* @memberof DomainSellerDto
|
|
46
38
|
*/
|
|
47
39
|
anonymous: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Show trustpilot
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof DomainSellerDto
|
|
52
|
-
*/
|
|
53
|
-
showTrustpilot: boolean;
|
|
54
40
|
/**
|
|
55
41
|
* Last online, formatted
|
|
56
42
|
* @type {Date}
|
|
@@ -81,12 +67,6 @@ export interface DomainSellerDto {
|
|
|
81
67
|
* @memberof DomainSellerDto
|
|
82
68
|
*/
|
|
83
69
|
description: string | null;
|
|
84
|
-
/**
|
|
85
|
-
* The domain seller related domains
|
|
86
|
-
* @type {Array<RelatedSellerDomain>}
|
|
87
|
-
* @memberof DomainSellerDto
|
|
88
|
-
*/
|
|
89
|
-
relatedDomains: Array<RelatedSellerDomain> | null;
|
|
90
70
|
}
|
|
91
71
|
|
|
92
72
|
/**
|
|
@@ -96,13 +76,11 @@ export function instanceOfDomainSellerDto(value: object): value is DomainSellerD
|
|
|
96
76
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
97
77
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
98
78
|
if (!('anonymous' in value) || value['anonymous'] === undefined) return false;
|
|
99
|
-
if (!('showTrustpilot' in value) || value['showTrustpilot'] === undefined) return false;
|
|
100
79
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
|
|
101
80
|
if (!('deliversIn' in value) || value['deliversIn'] === undefined) return false;
|
|
102
81
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
103
82
|
if (!('avatar' in value) || value['avatar'] === undefined) return false;
|
|
104
83
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
105
|
-
if (!('relatedDomains' in value) || value['relatedDomains'] === undefined) return false;
|
|
106
84
|
return true;
|
|
107
85
|
}
|
|
108
86
|
|
|
@@ -119,13 +97,11 @@ export function DomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
119
97
|
'id': json['id'],
|
|
120
98
|
'createdAt': (new Date(json['createdAt'])),
|
|
121
99
|
'anonymous': json['anonymous'],
|
|
122
|
-
'showTrustpilot': json['showTrustpilot'],
|
|
123
100
|
'lastOnline': (json['lastOnline'] == null ? null : new Date(json['lastOnline'])),
|
|
124
101
|
'deliversIn': json['deliversIn'],
|
|
125
102
|
'name': json['name'],
|
|
126
103
|
'avatar': json['avatar'],
|
|
127
104
|
'description': json['description'],
|
|
128
|
-
'relatedDomains': (json['relatedDomains'] == null ? null : (json['relatedDomains'] as Array<any>).map(RelatedSellerDomainFromJSON)),
|
|
129
105
|
};
|
|
130
106
|
}
|
|
131
107
|
|
|
@@ -143,13 +119,11 @@ export function DomainSellerDtoToJSONTyped(value?: DomainSellerDto | null, ignor
|
|
|
143
119
|
'id': value['id'],
|
|
144
120
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
145
121
|
'anonymous': value['anonymous'],
|
|
146
|
-
'showTrustpilot': value['showTrustpilot'],
|
|
147
122
|
'lastOnline': (value['lastOnline'] == null ? null : (value['lastOnline'] as any).toISOString()),
|
|
148
123
|
'deliversIn': value['deliversIn'],
|
|
149
124
|
'name': value['name'],
|
|
150
125
|
'avatar': value['avatar'],
|
|
151
126
|
'description': value['description'],
|
|
152
|
-
'relatedDomains': (value['relatedDomains'] == null ? null : (value['relatedDomains'] as Array<any>).map(RelatedSellerDomainToJSON)),
|
|
153
127
|
};
|
|
154
128
|
}
|
|
155
129
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RelatedSellerDomain } from './RelatedSellerDomain';
|
|
17
|
+
import {
|
|
18
|
+
RelatedSellerDomainFromJSON,
|
|
19
|
+
RelatedSellerDomainFromJSONTyped,
|
|
20
|
+
RelatedSellerDomainToJSON,
|
|
21
|
+
RelatedSellerDomainToJSONTyped,
|
|
22
|
+
} from './RelatedSellerDomain';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RelatedDomainsDto
|
|
28
|
+
*/
|
|
29
|
+
export interface RelatedDomainsDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<RelatedSellerDomain>}
|
|
33
|
+
* @memberof RelatedDomainsDto
|
|
34
|
+
*/
|
|
35
|
+
domains: Array<RelatedSellerDomain>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the RelatedDomainsDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfRelatedDomainsDto(value: object): value is RelatedDomainsDto {
|
|
42
|
+
if (!('domains' in value) || value['domains'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function RelatedDomainsDtoFromJSON(json: any): RelatedDomainsDto {
|
|
47
|
+
return RelatedDomainsDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function RelatedDomainsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedDomainsDto {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'domains': ((json['domains'] as Array<any>).map(RelatedSellerDomainFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function RelatedDomainsDtoToJSON(json: any): RelatedDomainsDto {
|
|
61
|
+
return RelatedDomainsDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function RelatedDomainsDtoToJSONTyped(value?: RelatedDomainsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'domains': ((value['domains'] as Array<any>).map(RelatedSellerDomainToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -205,6 +205,7 @@ export * from './PublicSalesDto';
|
|
|
205
205
|
export * from './PutBuyerLeadOfferInput';
|
|
206
206
|
export * from './PutLeadOfferInput';
|
|
207
207
|
export * from './RegisterAccountInput';
|
|
208
|
+
export * from './RelatedDomainsDto';
|
|
208
209
|
export * from './RelatedSellerDomain';
|
|
209
210
|
export * from './RentConfigurationDto';
|
|
210
211
|
export * from './RentConfigurationInput';
|