@randock/nameshift-api-client 0.0.266 → 0.0.267
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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.267
|
|
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.267 --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
|
+
08fdea2782dd98108cf367dcaa7c731de03a04ed39b83606cb152323690a19bf1636d5548f2b34732a25bb7db61d6b71
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { DomainSalesInformationDto, DomainTldsDto, List200Response3, SortDto } from '../models/index';
|
|
14
|
+
export interface DomainsPublicApiGetAllTldsRequest {
|
|
15
|
+
seller?: string;
|
|
16
|
+
}
|
|
14
17
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
18
|
domainName: string;
|
|
16
19
|
includeStats?: boolean;
|
|
@@ -32,11 +35,11 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
32
35
|
/**
|
|
33
36
|
*
|
|
34
37
|
*/
|
|
35
|
-
getAllTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>>;
|
|
38
|
+
getAllTldsRaw(requestParameters: DomainsPublicApiGetAllTldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>>;
|
|
36
39
|
/**
|
|
37
40
|
*
|
|
38
41
|
*/
|
|
39
|
-
getAllTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto>;
|
|
42
|
+
getAllTlds(requestParameters?: DomainsPublicApiGetAllTldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto>;
|
|
40
43
|
/**
|
|
41
44
|
*
|
|
42
45
|
*/
|
|
@@ -78,13 +78,16 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
DomainsPublicApi.prototype.getAllTldsRaw = function (initOverrides) {
|
|
81
|
+
DomainsPublicApi.prototype.getAllTldsRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var queryParameters, headerParameters, response;
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
switch (_a.label) {
|
|
86
86
|
case 0:
|
|
87
87
|
queryParameters = {};
|
|
88
|
+
if (requestParameters['seller'] != null) {
|
|
89
|
+
queryParameters['seller'] = requestParameters['seller'];
|
|
90
|
+
}
|
|
88
91
|
headerParameters = {};
|
|
89
92
|
return [4 /*yield*/, this.request({
|
|
90
93
|
path: "/domains/tlds",
|
|
@@ -102,12 +105,13 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
102
105
|
/**
|
|
103
106
|
*
|
|
104
107
|
*/
|
|
105
|
-
DomainsPublicApi.prototype.getAllTlds = function (
|
|
106
|
-
return __awaiter(this,
|
|
108
|
+
DomainsPublicApi.prototype.getAllTlds = function () {
|
|
109
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
107
110
|
var response;
|
|
111
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
108
112
|
return __generator(this, function (_a) {
|
|
109
113
|
switch (_a.label) {
|
|
110
|
-
case 0: return [4 /*yield*/, this.getAllTldsRaw(initOverrides)];
|
|
114
|
+
case 0: return [4 /*yield*/, this.getAllTldsRaw(requestParameters, initOverrides)];
|
|
111
115
|
case 1:
|
|
112
116
|
response = _a.sent();
|
|
113
117
|
return [4 /*yield*/, response.value()];
|
package/package.json
CHANGED
|
@@ -40,6 +40,10 @@ import {
|
|
|
40
40
|
ValidationExceptionToJSON,
|
|
41
41
|
} from '../models/index';
|
|
42
42
|
|
|
43
|
+
export interface DomainsPublicApiGetAllTldsRequest {
|
|
44
|
+
seller?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
43
47
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
44
48
|
domainName: string;
|
|
45
49
|
includeStats?: boolean;
|
|
@@ -64,9 +68,13 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
64
68
|
/**
|
|
65
69
|
*
|
|
66
70
|
*/
|
|
67
|
-
async getAllTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>> {
|
|
71
|
+
async getAllTldsRaw(requestParameters: DomainsPublicApiGetAllTldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>> {
|
|
68
72
|
const queryParameters: any = {};
|
|
69
73
|
|
|
74
|
+
if (requestParameters['seller'] != null) {
|
|
75
|
+
queryParameters['seller'] = requestParameters['seller'];
|
|
76
|
+
}
|
|
77
|
+
|
|
70
78
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
71
79
|
|
|
72
80
|
const response = await this.request({
|
|
@@ -82,8 +90,8 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
82
90
|
/**
|
|
83
91
|
*
|
|
84
92
|
*/
|
|
85
|
-
async getAllTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto> {
|
|
86
|
-
const response = await this.getAllTldsRaw(initOverrides);
|
|
93
|
+
async getAllTlds(requestParameters: DomainsPublicApiGetAllTldsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto> {
|
|
94
|
+
const response = await this.getAllTldsRaw(requestParameters, initOverrides);
|
|
87
95
|
return await response.value();
|
|
88
96
|
}
|
|
89
97
|
|