@randock/nameshift-api-client 0.0.265 → 0.0.266
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 +11 -2
- package/dist/apis/DomainsPublicApi.js +49 -3
- package/dist/models/DomainTldsDto.d.ts +32 -0
- package/dist/models/DomainTldsDto.js +51 -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 +42 -1
- package/src/models/DomainTldsDto.ts +66 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -101,6 +101,7 @@ src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts
|
|
|
101
101
|
src/models/DomainSalesInformationRentConfigurationDto.ts
|
|
102
102
|
src/models/DomainSellerDto.ts
|
|
103
103
|
src/models/DomainStatsDto.ts
|
|
104
|
+
src/models/DomainTldsDto.ts
|
|
104
105
|
src/models/DomainTransferAgentDto.ts
|
|
105
106
|
src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts
|
|
106
107
|
src/models/DomainTransferDetailWorkflowStepActionDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.266
|
|
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.266 --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
|
+
f8566b38e2ef07550df50b5eb1bd37ddabb63452674501c0c6e1c1e24bc4c87e98ce3e3ca3d3646c717e8bb40ed73854
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { DomainSalesInformationDto, List200Response3, SortDto } from '../models/index';
|
|
13
|
+
import type { DomainSalesInformationDto, DomainTldsDto, List200Response3, SortDto } from '../models/index';
|
|
14
14
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
16
|
includeStats?: boolean;
|
|
@@ -18,6 +18,7 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
|
18
18
|
installments?: number;
|
|
19
19
|
}
|
|
20
20
|
export interface DomainsPublicApiListRequest {
|
|
21
|
+
fuzzy: boolean;
|
|
21
22
|
limit?: number;
|
|
22
23
|
sort?: Array<SortDto>;
|
|
23
24
|
filter?: string;
|
|
@@ -28,6 +29,14 @@ export interface DomainsPublicApiListRequest {
|
|
|
28
29
|
*
|
|
29
30
|
*/
|
|
30
31
|
export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
getAllTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
getAllTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto>;
|
|
31
40
|
/**
|
|
32
41
|
*
|
|
33
42
|
*/
|
|
@@ -43,5 +52,5 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
43
52
|
/**
|
|
44
53
|
*
|
|
45
54
|
*/
|
|
46
|
-
list(requestParameters
|
|
55
|
+
list(requestParameters: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3>;
|
|
47
56
|
}
|
|
@@ -75,6 +75,47 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function DomainsPublicApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
DomainsPublicApi.prototype.getAllTldsRaw = function (initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
headerParameters = {};
|
|
89
|
+
return [4 /*yield*/, this.request({
|
|
90
|
+
path: "/domains/tlds",
|
|
91
|
+
method: 'GET',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
}, initOverrides)];
|
|
95
|
+
case 1:
|
|
96
|
+
response = _a.sent();
|
|
97
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainTldsDtoFromJSON)(jsonValue); })];
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
DomainsPublicApi.prototype.getAllTlds = function (initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
+
var response;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
110
|
+
case 0: return [4 /*yield*/, this.getAllTldsRaw(initOverrides)];
|
|
111
|
+
case 1:
|
|
112
|
+
response = _a.sent();
|
|
113
|
+
return [4 /*yield*/, response.value()];
|
|
114
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
};
|
|
78
119
|
/**
|
|
79
120
|
*
|
|
80
121
|
*/
|
|
@@ -137,7 +178,13 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
137
178
|
return __generator(this, function (_a) {
|
|
138
179
|
switch (_a.label) {
|
|
139
180
|
case 0:
|
|
181
|
+
if (requestParameters['fuzzy'] == null) {
|
|
182
|
+
throw new runtime.RequiredError('fuzzy', 'Required parameter "fuzzy" was null or undefined when calling list().');
|
|
183
|
+
}
|
|
140
184
|
queryParameters = {};
|
|
185
|
+
if (requestParameters['fuzzy'] != null) {
|
|
186
|
+
queryParameters['fuzzy'] = requestParameters['fuzzy'];
|
|
187
|
+
}
|
|
141
188
|
if (requestParameters['limit'] != null) {
|
|
142
189
|
queryParameters['limit'] = requestParameters['limit'];
|
|
143
190
|
}
|
|
@@ -170,10 +217,9 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
170
217
|
/**
|
|
171
218
|
*
|
|
172
219
|
*/
|
|
173
|
-
DomainsPublicApi.prototype.list = function () {
|
|
174
|
-
return __awaiter(this,
|
|
220
|
+
DomainsPublicApi.prototype.list = function (requestParameters, initOverrides) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
175
222
|
var response;
|
|
176
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
177
223
|
return __generator(this, function (_a) {
|
|
178
224
|
switch (_a.label) {
|
|
179
225
|
case 0: return [4 /*yield*/, this.listRaw(requestParameters, initOverrides)];
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DomainTldsDto
|
|
16
|
+
*/
|
|
17
|
+
export interface DomainTldsDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof DomainTldsDto
|
|
22
|
+
*/
|
|
23
|
+
tlds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DomainTldsDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDomainTldsDto(value: object): value is DomainTldsDto;
|
|
29
|
+
export declare function DomainTldsDtoFromJSON(json: any): DomainTldsDto;
|
|
30
|
+
export declare function DomainTldsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTldsDto;
|
|
31
|
+
export declare function DomainTldsDtoToJSON(json: any): DomainTldsDto;
|
|
32
|
+
export declare function DomainTldsDtoToJSONTyped(value?: DomainTldsDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfDomainTldsDto = instanceOfDomainTldsDto;
|
|
17
|
+
exports.DomainTldsDtoFromJSON = DomainTldsDtoFromJSON;
|
|
18
|
+
exports.DomainTldsDtoFromJSONTyped = DomainTldsDtoFromJSONTyped;
|
|
19
|
+
exports.DomainTldsDtoToJSON = DomainTldsDtoToJSON;
|
|
20
|
+
exports.DomainTldsDtoToJSONTyped = DomainTldsDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DomainTldsDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDomainTldsDto(value) {
|
|
25
|
+
if (!('tlds' in value) || value['tlds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DomainTldsDtoFromJSON(json) {
|
|
30
|
+
return DomainTldsDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DomainTldsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'tlds': json['tlds'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DomainTldsDtoToJSON(json) {
|
|
41
|
+
return DomainTldsDtoToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DomainTldsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'tlds': value['tlds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
|
|
74
74
|
export * from './DomainSalesInformationRentConfigurationDto';
|
|
75
75
|
export * from './DomainSellerDto';
|
|
76
76
|
export * from './DomainStatsDto';
|
|
77
|
+
export * from './DomainTldsDto';
|
|
77
78
|
export * from './DomainTransferAgentDto';
|
|
78
79
|
export * from './DomainTransferDetailSellerPayoutInvoiceDto';
|
|
79
80
|
export * from './DomainTransferDetailWorkflowStepActionDto';
|
package/dist/models/index.js
CHANGED
|
@@ -92,6 +92,7 @@ __exportStar(require("./DomainSalesInformationLeaseToOwnConfigurationDto"), expo
|
|
|
92
92
|
__exportStar(require("./DomainSalesInformationRentConfigurationDto"), exports);
|
|
93
93
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
94
94
|
__exportStar(require("./DomainStatsDto"), exports);
|
|
95
|
+
__exportStar(require("./DomainTldsDto"), exports);
|
|
95
96
|
__exportStar(require("./DomainTransferAgentDto"), exports);
|
|
96
97
|
__exportStar(require("./DomainTransferDetailSellerPayoutInvoiceDto"), exports);
|
|
97
98
|
__exportStar(require("./DomainTransferDetailWorkflowStepActionDto"), exports);
|
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
DomainSalesInformationDto,
|
|
19
|
+
DomainTldsDto,
|
|
19
20
|
List200Response3,
|
|
20
21
|
NotFoundException,
|
|
21
22
|
SortDto,
|
|
@@ -25,6 +26,8 @@ import type {
|
|
|
25
26
|
import {
|
|
26
27
|
DomainSalesInformationDtoFromJSON,
|
|
27
28
|
DomainSalesInformationDtoToJSON,
|
|
29
|
+
DomainTldsDtoFromJSON,
|
|
30
|
+
DomainTldsDtoToJSON,
|
|
28
31
|
List200Response3FromJSON,
|
|
29
32
|
List200Response3ToJSON,
|
|
30
33
|
NotFoundExceptionFromJSON,
|
|
@@ -45,6 +48,7 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
export interface DomainsPublicApiListRequest {
|
|
51
|
+
fuzzy: boolean;
|
|
48
52
|
limit?: number;
|
|
49
53
|
sort?: Array<SortDto>;
|
|
50
54
|
filter?: string;
|
|
@@ -57,6 +61,32 @@ export interface DomainsPublicApiListRequest {
|
|
|
57
61
|
*/
|
|
58
62
|
export class DomainsPublicApi extends runtime.BaseAPI {
|
|
59
63
|
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
async getAllTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>> {
|
|
68
|
+
const queryParameters: any = {};
|
|
69
|
+
|
|
70
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
71
|
+
|
|
72
|
+
const response = await this.request({
|
|
73
|
+
path: `/domains/tlds`,
|
|
74
|
+
method: 'GET',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
}, initOverrides);
|
|
78
|
+
|
|
79
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DomainTldsDtoFromJSON(jsonValue));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
async getAllTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto> {
|
|
86
|
+
const response = await this.getAllTldsRaw(initOverrides);
|
|
87
|
+
return await response.value();
|
|
88
|
+
}
|
|
89
|
+
|
|
60
90
|
/**
|
|
61
91
|
*
|
|
62
92
|
*/
|
|
@@ -106,8 +136,19 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
106
136
|
*
|
|
107
137
|
*/
|
|
108
138
|
async listRaw(requestParameters: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response3>> {
|
|
139
|
+
if (requestParameters['fuzzy'] == null) {
|
|
140
|
+
throw new runtime.RequiredError(
|
|
141
|
+
'fuzzy',
|
|
142
|
+
'Required parameter "fuzzy" was null or undefined when calling list().'
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
109
146
|
const queryParameters: any = {};
|
|
110
147
|
|
|
148
|
+
if (requestParameters['fuzzy'] != null) {
|
|
149
|
+
queryParameters['fuzzy'] = requestParameters['fuzzy'];
|
|
150
|
+
}
|
|
151
|
+
|
|
111
152
|
if (requestParameters['limit'] != null) {
|
|
112
153
|
queryParameters['limit'] = requestParameters['limit'];
|
|
113
154
|
}
|
|
@@ -143,7 +184,7 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
143
184
|
/**
|
|
144
185
|
*
|
|
145
186
|
*/
|
|
146
|
-
async list(requestParameters: DomainsPublicApiListRequest
|
|
187
|
+
async list(requestParameters: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3> {
|
|
147
188
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
148
189
|
return await response.value();
|
|
149
190
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DomainTldsDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainTldsDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof DomainTldsDto
|
|
26
|
+
*/
|
|
27
|
+
tlds: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DomainTldsDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDomainTldsDto(value: object): value is DomainTldsDto {
|
|
34
|
+
if (!('tlds' in value) || value['tlds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DomainTldsDtoFromJSON(json: any): DomainTldsDto {
|
|
39
|
+
return DomainTldsDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DomainTldsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTldsDto {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'tlds': json['tlds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DomainTldsDtoToJSON(json: any): DomainTldsDto {
|
|
53
|
+
return DomainTldsDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DomainTldsDtoToJSONTyped(value?: DomainTldsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'tlds': value['tlds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -76,6 +76,7 @@ export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
|
|
76
76
|
export * from './DomainSalesInformationRentConfigurationDto';
|
|
77
77
|
export * from './DomainSellerDto';
|
|
78
78
|
export * from './DomainStatsDto';
|
|
79
|
+
export * from './DomainTldsDto';
|
|
79
80
|
export * from './DomainTransferAgentDto';
|
|
80
81
|
export * from './DomainTransferDetailSellerPayoutInvoiceDto';
|
|
81
82
|
export * from './DomainTransferDetailWorkflowStepActionDto';
|