@randock/nameshift-api-client 0.0.148 → 0.0.149
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 +2 -0
- package/README.md +3 -3
- package/dist/apis/DomainsPublicApi.d.ts +13 -1
- package/dist/apis/DomainsPublicApi.js +52 -0
- package/dist/models/PublicDomainControllerListDomains200Response.d.ts +47 -0
- package/dist/models/PublicDomainControllerListDomains200Response.js +62 -0
- package/dist/models/PublicDomainDto.d.ts +76 -0
- package/dist/models/PublicDomainDto.js +80 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/DomainsPublicApi.ts +50 -0
- package/src/models/PublicDomainControllerListDomains200Response.ts +106 -0
- package/src/models/PublicDomainDto.ts +138 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -124,6 +124,8 @@ src/models/PaginateResponseLinks.ts
|
|
|
124
124
|
src/models/PaginateResponseMeta.ts
|
|
125
125
|
src/models/ParsedDomainDto.ts
|
|
126
126
|
src/models/PaymentProviderDto.ts
|
|
127
|
+
src/models/PublicDomainControllerListDomains200Response.ts
|
|
128
|
+
src/models/PublicDomainDto.ts
|
|
127
129
|
src/models/PublicLeadBuyerDto.ts
|
|
128
130
|
src/models/PublicLeadDto.ts
|
|
129
131
|
src/models/PutBuyerLeadOfferInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.149
|
|
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.149 --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
|
+
416444bb4c9cdb0ef56e44bb204f09a46f9aef2b23bbd0aa6685b2122a5b3643aad76420bea437d688ca26f8c80b06a5
|
|
@@ -10,11 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { IntersectionDomainSalesInformationDtoWithDomainStatsDto } from '../models/index';
|
|
13
|
+
import type { IntersectionDomainSalesInformationDtoWithDomainStatsDto, PublicDomainControllerListDomains200Response } from '../models/index';
|
|
14
14
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
16
|
includeStats?: boolean;
|
|
17
17
|
}
|
|
18
|
+
export interface DomainsPublicApiPublicDomainControllerListDomainsRequest {
|
|
19
|
+
filter?: object;
|
|
20
|
+
page?: number;
|
|
21
|
+
limit?: number;
|
|
22
|
+
sortBy?: Array<string>;
|
|
23
|
+
}
|
|
18
24
|
/**
|
|
19
25
|
*
|
|
20
26
|
*/
|
|
@@ -27,4 +33,10 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
27
33
|
*
|
|
28
34
|
*/
|
|
29
35
|
getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainSalesInformationDtoWithDomainStatsDto>;
|
|
36
|
+
/**
|
|
37
|
+
*/
|
|
38
|
+
publicDomainControllerListDomainsRaw(requestParameters: DomainsPublicApiPublicDomainControllerListDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicDomainControllerListDomains200Response>>;
|
|
39
|
+
/**
|
|
40
|
+
*/
|
|
41
|
+
publicDomainControllerListDomains(requestParameters?: DomainsPublicApiPublicDomainControllerListDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicDomainControllerListDomains200Response>;
|
|
30
42
|
}
|
|
@@ -122,6 +122,58 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
*/
|
|
127
|
+
DomainsPublicApi.prototype.publicDomainControllerListDomainsRaw = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var queryParameters, headerParameters, response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0:
|
|
133
|
+
queryParameters = {};
|
|
134
|
+
if (requestParameters['filter'] != null) {
|
|
135
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
136
|
+
}
|
|
137
|
+
if (requestParameters['page'] != null) {
|
|
138
|
+
queryParameters['page'] = requestParameters['page'];
|
|
139
|
+
}
|
|
140
|
+
if (requestParameters['limit'] != null) {
|
|
141
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
142
|
+
}
|
|
143
|
+
if (requestParameters['sortBy'] != null) {
|
|
144
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
145
|
+
}
|
|
146
|
+
headerParameters = {};
|
|
147
|
+
return [4 /*yield*/, this.request({
|
|
148
|
+
path: "/domains",
|
|
149
|
+
method: 'GET',
|
|
150
|
+
headers: headerParameters,
|
|
151
|
+
query: queryParameters,
|
|
152
|
+
}, initOverrides)];
|
|
153
|
+
case 1:
|
|
154
|
+
response = _a.sent();
|
|
155
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PublicDomainControllerListDomains200ResponseFromJSON)(jsonValue); })];
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
*/
|
|
162
|
+
DomainsPublicApi.prototype.publicDomainControllerListDomains = function () {
|
|
163
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
164
|
+
var response;
|
|
165
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
166
|
+
return __generator(this, function (_a) {
|
|
167
|
+
switch (_a.label) {
|
|
168
|
+
case 0: return [4 /*yield*/, this.publicDomainControllerListDomainsRaw(requestParameters, initOverrides)];
|
|
169
|
+
case 1:
|
|
170
|
+
response = _a.sent();
|
|
171
|
+
return [4 /*yield*/, response.value()];
|
|
172
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
};
|
|
125
177
|
return DomainsPublicApi;
|
|
126
178
|
}(runtime.BaseAPI));
|
|
127
179
|
exports.DomainsPublicApi = DomainsPublicApi;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { PublicDomainDto } from './PublicDomainDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface PublicDomainControllerListDomains200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface PublicDomainControllerListDomains200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<PublicDomainDto>}
|
|
24
|
+
* @memberof PublicDomainControllerListDomains200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<PublicDomainDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof PublicDomainControllerListDomains200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof PublicDomainControllerListDomains200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the PublicDomainControllerListDomains200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfPublicDomainControllerListDomains200Response(value: object): value is PublicDomainControllerListDomains200Response;
|
|
44
|
+
export declare function PublicDomainControllerListDomains200ResponseFromJSON(json: any): PublicDomainControllerListDomains200Response;
|
|
45
|
+
export declare function PublicDomainControllerListDomains200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainControllerListDomains200Response;
|
|
46
|
+
export declare function PublicDomainControllerListDomains200ResponseToJSON(json: any): PublicDomainControllerListDomains200Response;
|
|
47
|
+
export declare function PublicDomainControllerListDomains200ResponseToJSONTyped(value?: PublicDomainControllerListDomains200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfPublicDomainControllerListDomains200Response = instanceOfPublicDomainControllerListDomains200Response;
|
|
17
|
+
exports.PublicDomainControllerListDomains200ResponseFromJSON = PublicDomainControllerListDomains200ResponseFromJSON;
|
|
18
|
+
exports.PublicDomainControllerListDomains200ResponseFromJSONTyped = PublicDomainControllerListDomains200ResponseFromJSONTyped;
|
|
19
|
+
exports.PublicDomainControllerListDomains200ResponseToJSON = PublicDomainControllerListDomains200ResponseToJSON;
|
|
20
|
+
exports.PublicDomainControllerListDomains200ResponseToJSONTyped = PublicDomainControllerListDomains200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var PublicDomainDto_1 = require("./PublicDomainDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the PublicDomainControllerListDomains200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfPublicDomainControllerListDomains200Response(value) {
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function PublicDomainControllerListDomains200ResponseFromJSON(json) {
|
|
37
|
+
return PublicDomainControllerListDomains200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PublicDomainControllerListDomains200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(PublicDomainDto_1.PublicDomainDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function PublicDomainControllerListDomains200ResponseToJSON(json) {
|
|
50
|
+
return PublicDomainControllerListDomains200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function PublicDomainControllerListDomains200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(PublicDomainDto_1.PublicDomainDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { MoneyDto } from './MoneyDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PublicDomainDto
|
|
17
|
+
*/
|
|
18
|
+
export interface PublicDomainDto {
|
|
19
|
+
/**
|
|
20
|
+
* The uuid for this domain.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PublicDomainDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The buy url
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PublicDomainDto
|
|
29
|
+
*/
|
|
30
|
+
url: string;
|
|
31
|
+
/**
|
|
32
|
+
* The TLD for this domain.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PublicDomainDto
|
|
35
|
+
*/
|
|
36
|
+
tld: string;
|
|
37
|
+
/**
|
|
38
|
+
* The ASCII domain name (example.com, xn--maana-pta.com)
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PublicDomainDto
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* The unicode domain name (example.com, mañana.com)
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PublicDomainDto
|
|
47
|
+
*/
|
|
48
|
+
displayName: string;
|
|
49
|
+
/**
|
|
50
|
+
* /**
|
|
51
|
+
* The domain's currency code (ISO 4217)
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PublicDomainDto
|
|
54
|
+
*/
|
|
55
|
+
currencyCode: string;
|
|
56
|
+
/**
|
|
57
|
+
* The BIN
|
|
58
|
+
* @type {MoneyDto}
|
|
59
|
+
* @memberof PublicDomainDto
|
|
60
|
+
*/
|
|
61
|
+
buyNow: MoneyDto;
|
|
62
|
+
/**
|
|
63
|
+
* The minimum offer
|
|
64
|
+
* @type {MoneyDto}
|
|
65
|
+
* @memberof PublicDomainDto
|
|
66
|
+
*/
|
|
67
|
+
minOffer: MoneyDto;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the PublicDomainDto interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfPublicDomainDto(value: object): value is PublicDomainDto;
|
|
73
|
+
export declare function PublicDomainDtoFromJSON(json: any): PublicDomainDto;
|
|
74
|
+
export declare function PublicDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainDto;
|
|
75
|
+
export declare function PublicDomainDtoToJSON(json: any): PublicDomainDto;
|
|
76
|
+
export declare function PublicDomainDtoToJSONTyped(value?: PublicDomainDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
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.instanceOfPublicDomainDto = instanceOfPublicDomainDto;
|
|
17
|
+
exports.PublicDomainDtoFromJSON = PublicDomainDtoFromJSON;
|
|
18
|
+
exports.PublicDomainDtoFromJSONTyped = PublicDomainDtoFromJSONTyped;
|
|
19
|
+
exports.PublicDomainDtoToJSON = PublicDomainDtoToJSON;
|
|
20
|
+
exports.PublicDomainDtoToJSONTyped = PublicDomainDtoToJSONTyped;
|
|
21
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PublicDomainDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPublicDomainDto(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('buyNow' in value) || value['buyNow'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function PublicDomainDtoFromJSON(json) {
|
|
45
|
+
return PublicDomainDtoFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function PublicDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'url': json['url'],
|
|
54
|
+
'tld': json['tld'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'displayName': json['displayName'],
|
|
57
|
+
'currencyCode': json['currencyCode'],
|
|
58
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
59
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function PublicDomainDtoToJSON(json) {
|
|
63
|
+
return PublicDomainDtoToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function PublicDomainDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'url': value['url'],
|
|
73
|
+
'tld': value['tld'],
|
|
74
|
+
'name': value['name'],
|
|
75
|
+
'displayName': value['displayName'],
|
|
76
|
+
'currencyCode': value['currencyCode'],
|
|
77
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
78
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
79
|
+
};
|
|
80
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -102,6 +102,8 @@ export * from './PaginateResponseLinks';
|
|
|
102
102
|
export * from './PaginateResponseMeta';
|
|
103
103
|
export * from './ParsedDomainDto';
|
|
104
104
|
export * from './PaymentProviderDto';
|
|
105
|
+
export * from './PublicDomainControllerListDomains200Response';
|
|
106
|
+
export * from './PublicDomainDto';
|
|
105
107
|
export * from './PublicLeadBuyerDto';
|
|
106
108
|
export * from './PublicLeadDto';
|
|
107
109
|
export * from './PutBuyerLeadOfferInput';
|
package/dist/models/index.js
CHANGED
|
@@ -120,6 +120,8 @@ __exportStar(require("./PaginateResponseLinks"), exports);
|
|
|
120
120
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
121
121
|
__exportStar(require("./ParsedDomainDto"), exports);
|
|
122
122
|
__exportStar(require("./PaymentProviderDto"), exports);
|
|
123
|
+
__exportStar(require("./PublicDomainControllerListDomains200Response"), exports);
|
|
124
|
+
__exportStar(require("./PublicDomainDto"), exports);
|
|
123
125
|
__exportStar(require("./PublicLeadBuyerDto"), exports);
|
|
124
126
|
__exportStar(require("./PublicLeadDto"), exports);
|
|
125
127
|
__exportStar(require("./PutBuyerLeadOfferInput"), exports);
|
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
IntersectionDomainSalesInformationDtoWithDomainStatsDto,
|
|
19
19
|
NotFoundException,
|
|
20
|
+
PublicDomainControllerListDomains200Response,
|
|
20
21
|
ThrottlerException,
|
|
21
22
|
ValidationException,
|
|
22
23
|
} from '../models/index';
|
|
@@ -25,6 +26,8 @@ import {
|
|
|
25
26
|
IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON,
|
|
26
27
|
NotFoundExceptionFromJSON,
|
|
27
28
|
NotFoundExceptionToJSON,
|
|
29
|
+
PublicDomainControllerListDomains200ResponseFromJSON,
|
|
30
|
+
PublicDomainControllerListDomains200ResponseToJSON,
|
|
28
31
|
ThrottlerExceptionFromJSON,
|
|
29
32
|
ThrottlerExceptionToJSON,
|
|
30
33
|
ValidationExceptionFromJSON,
|
|
@@ -36,6 +39,13 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
|
36
39
|
includeStats?: boolean;
|
|
37
40
|
}
|
|
38
41
|
|
|
42
|
+
export interface DomainsPublicApiPublicDomainControllerListDomainsRequest {
|
|
43
|
+
filter?: object;
|
|
44
|
+
page?: number;
|
|
45
|
+
limit?: number;
|
|
46
|
+
sortBy?: Array<string>;
|
|
47
|
+
}
|
|
48
|
+
|
|
39
49
|
/**
|
|
40
50
|
*
|
|
41
51
|
*/
|
|
@@ -78,4 +88,44 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
78
88
|
return await response.value();
|
|
79
89
|
}
|
|
80
90
|
|
|
91
|
+
/**
|
|
92
|
+
*/
|
|
93
|
+
async publicDomainControllerListDomainsRaw(requestParameters: DomainsPublicApiPublicDomainControllerListDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicDomainControllerListDomains200Response>> {
|
|
94
|
+
const queryParameters: any = {};
|
|
95
|
+
|
|
96
|
+
if (requestParameters['filter'] != null) {
|
|
97
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (requestParameters['page'] != null) {
|
|
101
|
+
queryParameters['page'] = requestParameters['page'];
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (requestParameters['limit'] != null) {
|
|
105
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (requestParameters['sortBy'] != null) {
|
|
109
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
113
|
+
|
|
114
|
+
const response = await this.request({
|
|
115
|
+
path: `/domains`,
|
|
116
|
+
method: 'GET',
|
|
117
|
+
headers: headerParameters,
|
|
118
|
+
query: queryParameters,
|
|
119
|
+
}, initOverrides);
|
|
120
|
+
|
|
121
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PublicDomainControllerListDomains200ResponseFromJSON(jsonValue));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
*/
|
|
126
|
+
async publicDomainControllerListDomains(requestParameters: DomainsPublicApiPublicDomainControllerListDomainsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicDomainControllerListDomains200Response> {
|
|
127
|
+
const response = await this.publicDomainControllerListDomainsRaw(requestParameters, initOverrides);
|
|
128
|
+
return await response.value();
|
|
129
|
+
}
|
|
130
|
+
|
|
81
131
|
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { PublicDomainDto } from './PublicDomainDto';
|
|
24
|
+
import {
|
|
25
|
+
PublicDomainDtoFromJSON,
|
|
26
|
+
PublicDomainDtoFromJSONTyped,
|
|
27
|
+
PublicDomainDtoToJSON,
|
|
28
|
+
PublicDomainDtoToJSONTyped,
|
|
29
|
+
} from './PublicDomainDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface PublicDomainControllerListDomains200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface PublicDomainControllerListDomains200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<PublicDomainDto>}
|
|
47
|
+
* @memberof PublicDomainControllerListDomains200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<PublicDomainDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof PublicDomainControllerListDomains200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof PublicDomainControllerListDomains200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the PublicDomainControllerListDomains200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfPublicDomainControllerListDomains200Response(value: object): value is PublicDomainControllerListDomains200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function PublicDomainControllerListDomains200ResponseFromJSON(json: any): PublicDomainControllerListDomains200Response {
|
|
75
|
+
return PublicDomainControllerListDomains200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function PublicDomainControllerListDomains200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainControllerListDomains200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(PublicDomainDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function PublicDomainControllerListDomains200ResponseToJSON(json: any): PublicDomainControllerListDomains200Response {
|
|
91
|
+
return PublicDomainControllerListDomains200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function PublicDomainControllerListDomains200ResponseToJSONTyped(value?: PublicDomainControllerListDomains200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(PublicDomainDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,138 @@
|
|
|
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 { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PublicDomainDto
|
|
28
|
+
*/
|
|
29
|
+
export interface PublicDomainDto {
|
|
30
|
+
/**
|
|
31
|
+
* The uuid for this domain.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PublicDomainDto
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* The buy url
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PublicDomainDto
|
|
40
|
+
*/
|
|
41
|
+
url: string;
|
|
42
|
+
/**
|
|
43
|
+
* The TLD for this domain.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PublicDomainDto
|
|
46
|
+
*/
|
|
47
|
+
tld: string;
|
|
48
|
+
/**
|
|
49
|
+
* The ASCII domain name (example.com, xn--maana-pta.com)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PublicDomainDto
|
|
52
|
+
*/
|
|
53
|
+
name: string;
|
|
54
|
+
/**
|
|
55
|
+
* The unicode domain name (example.com, mañana.com)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PublicDomainDto
|
|
58
|
+
*/
|
|
59
|
+
displayName: string;
|
|
60
|
+
/**
|
|
61
|
+
* /**
|
|
62
|
+
* The domain's currency code (ISO 4217)
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PublicDomainDto
|
|
65
|
+
*/
|
|
66
|
+
currencyCode: string;
|
|
67
|
+
/**
|
|
68
|
+
* The BIN
|
|
69
|
+
* @type {MoneyDto}
|
|
70
|
+
* @memberof PublicDomainDto
|
|
71
|
+
*/
|
|
72
|
+
buyNow: MoneyDto;
|
|
73
|
+
/**
|
|
74
|
+
* The minimum offer
|
|
75
|
+
* @type {MoneyDto}
|
|
76
|
+
* @memberof PublicDomainDto
|
|
77
|
+
*/
|
|
78
|
+
minOffer: MoneyDto;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the PublicDomainDto interface.
|
|
83
|
+
*/
|
|
84
|
+
export function instanceOfPublicDomainDto(value: object): value is PublicDomainDto {
|
|
85
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
86
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
87
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
88
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
89
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
90
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
91
|
+
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
92
|
+
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function PublicDomainDtoFromJSON(json: any): PublicDomainDto {
|
|
97
|
+
return PublicDomainDtoFromJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function PublicDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainDto {
|
|
101
|
+
if (json == null) {
|
|
102
|
+
return json;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'id': json['id'],
|
|
107
|
+
'url': json['url'],
|
|
108
|
+
'tld': json['tld'],
|
|
109
|
+
'name': json['name'],
|
|
110
|
+
'displayName': json['displayName'],
|
|
111
|
+
'currencyCode': json['currencyCode'],
|
|
112
|
+
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
113
|
+
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function PublicDomainDtoToJSON(json: any): PublicDomainDto {
|
|
118
|
+
return PublicDomainDtoToJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function PublicDomainDtoToJSONTyped(value?: PublicDomainDto | null, ignoreDiscriminator: boolean = false): any {
|
|
122
|
+
if (value == null) {
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'id': value['id'],
|
|
129
|
+
'url': value['url'],
|
|
130
|
+
'tld': value['tld'],
|
|
131
|
+
'name': value['name'],
|
|
132
|
+
'displayName': value['displayName'],
|
|
133
|
+
'currencyCode': value['currencyCode'],
|
|
134
|
+
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
135
|
+
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -104,6 +104,8 @@ export * from './PaginateResponseLinks';
|
|
|
104
104
|
export * from './PaginateResponseMeta';
|
|
105
105
|
export * from './ParsedDomainDto';
|
|
106
106
|
export * from './PaymentProviderDto';
|
|
107
|
+
export * from './PublicDomainControllerListDomains200Response';
|
|
108
|
+
export * from './PublicDomainDto';
|
|
107
109
|
export * from './PublicLeadBuyerDto';
|
|
108
110
|
export * from './PublicLeadDto';
|
|
109
111
|
export * from './PutBuyerLeadOfferInput';
|