@randock/nameshift-api-client 0.0.148 → 0.0.150
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 +15 -1
- package/dist/apis/DomainsPublicApi.js +54 -0
- package/dist/models/List200Response3.d.ts +47 -0
- package/dist/models/List200Response3.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 +52 -0
- package/src/models/List200Response3.ts +106 -0
- package/src/models/PublicDomainDto.ts +138 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -103,6 +103,7 @@ src/models/LeadStatusDto.ts
|
|
|
103
103
|
src/models/List200Response.ts
|
|
104
104
|
src/models/List200Response1.ts
|
|
105
105
|
src/models/List200Response2.ts
|
|
106
|
+
src/models/List200Response3.ts
|
|
106
107
|
src/models/ListAccountDto.ts
|
|
107
108
|
src/models/ListAccounts200Response.ts
|
|
108
109
|
src/models/ListLeadMessagesDto.ts
|
|
@@ -124,6 +125,7 @@ src/models/PaginateResponseLinks.ts
|
|
|
124
125
|
src/models/PaginateResponseMeta.ts
|
|
125
126
|
src/models/ParsedDomainDto.ts
|
|
126
127
|
src/models/PaymentProviderDto.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.150
|
|
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.150 --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
|
+
8082eab6a04e2786e811d65371081899eeb52a18c383b72b374c07f3b9268739579f437e93cf047b999fdacbaa4ae67a
|
|
@@ -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, List200Response3 } from '../models/index';
|
|
14
14
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
16
|
includeStats?: boolean;
|
|
17
17
|
}
|
|
18
|
+
export interface DomainsPublicApiList2Request {
|
|
19
|
+
filter?: object;
|
|
20
|
+
page?: number;
|
|
21
|
+
limit?: number;
|
|
22
|
+
sortBy?: Array<string>;
|
|
23
|
+
}
|
|
18
24
|
/**
|
|
19
25
|
*
|
|
20
26
|
*/
|
|
@@ -27,4 +33,12 @@ 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
|
+
*/
|
|
39
|
+
listRaw(requestParameters: DomainsPublicApiList2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response3>>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
list(requestParameters?: DomainsPublicApiList2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3>;
|
|
30
44
|
}
|
|
@@ -122,6 +122,60 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
DomainsPublicApi.prototype.listRaw = function (requestParameters, initOverrides) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
130
|
+
var queryParameters, headerParameters, response;
|
|
131
|
+
return __generator(this, function (_a) {
|
|
132
|
+
switch (_a.label) {
|
|
133
|
+
case 0:
|
|
134
|
+
queryParameters = {};
|
|
135
|
+
if (requestParameters['filter'] != null) {
|
|
136
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
137
|
+
}
|
|
138
|
+
if (requestParameters['page'] != null) {
|
|
139
|
+
queryParameters['page'] = requestParameters['page'];
|
|
140
|
+
}
|
|
141
|
+
if (requestParameters['limit'] != null) {
|
|
142
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
143
|
+
}
|
|
144
|
+
if (requestParameters['sortBy'] != null) {
|
|
145
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
146
|
+
}
|
|
147
|
+
headerParameters = {};
|
|
148
|
+
return [4 /*yield*/, this.request({
|
|
149
|
+
path: "/domains",
|
|
150
|
+
method: 'GET',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
}, initOverrides)];
|
|
154
|
+
case 1:
|
|
155
|
+
response = _a.sent();
|
|
156
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response3FromJSON)(jsonValue); })];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
*/
|
|
164
|
+
DomainsPublicApi.prototype.list = function () {
|
|
165
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
166
|
+
var response;
|
|
167
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
168
|
+
return __generator(this, function (_a) {
|
|
169
|
+
switch (_a.label) {
|
|
170
|
+
case 0: return [4 /*yield*/, this.listRaw(requestParameters, initOverrides)];
|
|
171
|
+
case 1:
|
|
172
|
+
response = _a.sent();
|
|
173
|
+
return [4 /*yield*/, response.value()];
|
|
174
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
};
|
|
125
179
|
return DomainsPublicApi;
|
|
126
180
|
}(runtime.BaseAPI));
|
|
127
181
|
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 List200Response3
|
|
19
|
+
*/
|
|
20
|
+
export interface List200Response3 {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<PublicDomainDto>}
|
|
24
|
+
* @memberof List200Response3
|
|
25
|
+
*/
|
|
26
|
+
data: Array<PublicDomainDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof List200Response3
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof List200Response3
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the List200Response3 interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfList200Response3(value: object): value is List200Response3;
|
|
44
|
+
export declare function List200Response3FromJSON(json: any): List200Response3;
|
|
45
|
+
export declare function List200Response3FromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response3;
|
|
46
|
+
export declare function List200Response3ToJSON(json: any): List200Response3;
|
|
47
|
+
export declare function List200Response3ToJSONTyped(value?: List200Response3 | 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.instanceOfList200Response3 = instanceOfList200Response3;
|
|
17
|
+
exports.List200Response3FromJSON = List200Response3FromJSON;
|
|
18
|
+
exports.List200Response3FromJSONTyped = List200Response3FromJSONTyped;
|
|
19
|
+
exports.List200Response3ToJSON = List200Response3ToJSON;
|
|
20
|
+
exports.List200Response3ToJSONTyped = List200Response3ToJSONTyped;
|
|
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 List200Response3 interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfList200Response3(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 List200Response3FromJSON(json) {
|
|
37
|
+
return List200Response3FromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function List200Response3FromJSONTyped(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 List200Response3ToJSON(json) {
|
|
50
|
+
return List200Response3ToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function List200Response3ToJSONTyped(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
|
@@ -81,6 +81,7 @@ export * from './LeadStatusDto';
|
|
|
81
81
|
export * from './List200Response';
|
|
82
82
|
export * from './List200Response1';
|
|
83
83
|
export * from './List200Response2';
|
|
84
|
+
export * from './List200Response3';
|
|
84
85
|
export * from './ListAccountDto';
|
|
85
86
|
export * from './ListAccounts200Response';
|
|
86
87
|
export * from './ListLeadMessagesDto';
|
|
@@ -102,6 +103,7 @@ export * from './PaginateResponseLinks';
|
|
|
102
103
|
export * from './PaginateResponseMeta';
|
|
103
104
|
export * from './ParsedDomainDto';
|
|
104
105
|
export * from './PaymentProviderDto';
|
|
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
|
@@ -99,6 +99,7 @@ __exportStar(require("./LeadStatusDto"), exports);
|
|
|
99
99
|
__exportStar(require("./List200Response"), exports);
|
|
100
100
|
__exportStar(require("./List200Response1"), exports);
|
|
101
101
|
__exportStar(require("./List200Response2"), exports);
|
|
102
|
+
__exportStar(require("./List200Response3"), exports);
|
|
102
103
|
__exportStar(require("./ListAccountDto"), exports);
|
|
103
104
|
__exportStar(require("./ListAccounts200Response"), exports);
|
|
104
105
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
@@ -120,6 +121,7 @@ __exportStar(require("./PaginateResponseLinks"), exports);
|
|
|
120
121
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
121
122
|
__exportStar(require("./ParsedDomainDto"), exports);
|
|
122
123
|
__exportStar(require("./PaymentProviderDto"), 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
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
IntersectionDomainSalesInformationDtoWithDomainStatsDto,
|
|
19
|
+
List200Response3,
|
|
19
20
|
NotFoundException,
|
|
20
21
|
ThrottlerException,
|
|
21
22
|
ValidationException,
|
|
@@ -23,6 +24,8 @@ import type {
|
|
|
23
24
|
import {
|
|
24
25
|
IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON,
|
|
25
26
|
IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON,
|
|
27
|
+
List200Response3FromJSON,
|
|
28
|
+
List200Response3ToJSON,
|
|
26
29
|
NotFoundExceptionFromJSON,
|
|
27
30
|
NotFoundExceptionToJSON,
|
|
28
31
|
ThrottlerExceptionFromJSON,
|
|
@@ -36,6 +39,13 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
|
36
39
|
includeStats?: boolean;
|
|
37
40
|
}
|
|
38
41
|
|
|
42
|
+
export interface DomainsPublicApiList2Request {
|
|
43
|
+
filter?: object;
|
|
44
|
+
page?: number;
|
|
45
|
+
limit?: number;
|
|
46
|
+
sortBy?: Array<string>;
|
|
47
|
+
}
|
|
48
|
+
|
|
39
49
|
/**
|
|
40
50
|
*
|
|
41
51
|
*/
|
|
@@ -78,4 +88,46 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
78
88
|
return await response.value();
|
|
79
89
|
}
|
|
80
90
|
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
async listRaw(requestParameters: DomainsPublicApiList2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response3>> {
|
|
95
|
+
const queryParameters: any = {};
|
|
96
|
+
|
|
97
|
+
if (requestParameters['filter'] != null) {
|
|
98
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (requestParameters['page'] != null) {
|
|
102
|
+
queryParameters['page'] = requestParameters['page'];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (requestParameters['limit'] != null) {
|
|
106
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (requestParameters['sortBy'] != null) {
|
|
110
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
114
|
+
|
|
115
|
+
const response = await this.request({
|
|
116
|
+
path: `/domains`,
|
|
117
|
+
method: 'GET',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
}, initOverrides);
|
|
121
|
+
|
|
122
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => List200Response3FromJSON(jsonValue));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
async list(requestParameters: DomainsPublicApiList2Request = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3> {
|
|
129
|
+
const response = await this.listRaw(requestParameters, initOverrides);
|
|
130
|
+
return await response.value();
|
|
131
|
+
}
|
|
132
|
+
|
|
81
133
|
}
|
|
@@ -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 List200Response3
|
|
42
|
+
*/
|
|
43
|
+
export interface List200Response3 {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<PublicDomainDto>}
|
|
47
|
+
* @memberof List200Response3
|
|
48
|
+
*/
|
|
49
|
+
data: Array<PublicDomainDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof List200Response3
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof List200Response3
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the List200Response3 interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfList200Response3(value: object): value is List200Response3 {
|
|
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 List200Response3FromJSON(json: any): List200Response3 {
|
|
75
|
+
return List200Response3FromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function List200Response3FromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response3 {
|
|
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 List200Response3ToJSON(json: any): List200Response3 {
|
|
91
|
+
return List200Response3ToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function List200Response3ToJSONTyped(value?: List200Response3 | 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
|
@@ -83,6 +83,7 @@ export * from './LeadStatusDto';
|
|
|
83
83
|
export * from './List200Response';
|
|
84
84
|
export * from './List200Response1';
|
|
85
85
|
export * from './List200Response2';
|
|
86
|
+
export * from './List200Response3';
|
|
86
87
|
export * from './ListAccountDto';
|
|
87
88
|
export * from './ListAccounts200Response';
|
|
88
89
|
export * from './ListLeadMessagesDto';
|
|
@@ -104,6 +105,7 @@ export * from './PaginateResponseLinks';
|
|
|
104
105
|
export * from './PaginateResponseMeta';
|
|
105
106
|
export * from './ParsedDomainDto';
|
|
106
107
|
export * from './PaymentProviderDto';
|
|
108
|
+
export * from './PublicDomainDto';
|
|
107
109
|
export * from './PublicLeadBuyerDto';
|
|
108
110
|
export * from './PublicLeadDto';
|
|
109
111
|
export * from './PutBuyerLeadOfferInput';
|