@randock/nameshift-api-client 0.0.256 → 0.0.257
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 +3 -3
- package/dist/apis/SalesPublicApi.d.ts +10 -0
- package/dist/apis/SalesPublicApi.js +14 -1
- package/dist/models/PublicSaleDto.d.ts +6 -0
- package/dist/models/PublicSaleDto.js +4 -0
- package/package.json +1 -1
- package/src/apis/SalesPublicApi.ts +19 -0
- package/src/models/PublicSaleDto.ts +9 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.257
|
|
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.257 --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
|
+
0546c915244c70e32db433260c3ebf0e44720a380db786268eca9c84ef400c855008349c2745dbfcc868bd2cad7f052e
|
|
@@ -13,6 +13,8 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { PublicSalesDto } from '../models/index';
|
|
14
14
|
export interface SalesPublicApiGetSalesRequest {
|
|
15
15
|
tlds?: Array<string>;
|
|
16
|
+
output?: GetSalesOutputEnum;
|
|
17
|
+
locale?: string;
|
|
16
18
|
}
|
|
17
19
|
/**
|
|
18
20
|
*
|
|
@@ -27,3 +29,11 @@ export declare class SalesPublicApi extends runtime.BaseAPI {
|
|
|
27
29
|
*/
|
|
28
30
|
getSales(requestParameters?: SalesPublicApiGetSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicSalesDto>;
|
|
29
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const GetSalesOutputEnum: {
|
|
36
|
+
readonly JSON: "json";
|
|
37
|
+
readonly RSS: "rss";
|
|
38
|
+
};
|
|
39
|
+
export type GetSalesOutputEnum = typeof GetSalesOutputEnum[keyof typeof GetSalesOutputEnum];
|
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.SalesPublicApi = void 0;
|
|
67
|
+
exports.GetSalesOutputEnum = exports.SalesPublicApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -88,6 +88,12 @@ var SalesPublicApi = /** @class */ (function (_super) {
|
|
|
88
88
|
if (requestParameters['tlds'] != null) {
|
|
89
89
|
queryParameters['tlds'] = requestParameters['tlds'];
|
|
90
90
|
}
|
|
91
|
+
if (requestParameters['output'] != null) {
|
|
92
|
+
queryParameters['output'] = requestParameters['output'];
|
|
93
|
+
}
|
|
94
|
+
if (requestParameters['locale'] != null) {
|
|
95
|
+
queryParameters['locale'] = requestParameters['locale'];
|
|
96
|
+
}
|
|
91
97
|
headerParameters = {};
|
|
92
98
|
return [4 /*yield*/, this.request({
|
|
93
99
|
path: "/sales",
|
|
@@ -123,3 +129,10 @@ var SalesPublicApi = /** @class */ (function (_super) {
|
|
|
123
129
|
return SalesPublicApi;
|
|
124
130
|
}(runtime.BaseAPI));
|
|
125
131
|
exports.SalesPublicApi = SalesPublicApi;
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
exports.GetSalesOutputEnum = {
|
|
136
|
+
JSON: 'json',
|
|
137
|
+
RSS: 'rss'
|
|
138
|
+
};
|
|
@@ -31,6 +31,8 @@ exports.PublicSaleDtoTypeEnum = {
|
|
|
31
31
|
* Check if a given object implements the PublicSaleDto interface.
|
|
32
32
|
*/
|
|
33
33
|
function instanceOfPublicSaleDto(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
34
36
|
if (!('type' in value) || value['type'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -51,6 +53,7 @@ function PublicSaleDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
53
|
return json;
|
|
52
54
|
}
|
|
53
55
|
return {
|
|
56
|
+
'id': json['id'],
|
|
54
57
|
'type': json['type'],
|
|
55
58
|
'name': json['name'],
|
|
56
59
|
'price': json['price'],
|
|
@@ -67,6 +70,7 @@ function PublicSaleDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
70
|
return value;
|
|
68
71
|
}
|
|
69
72
|
return {
|
|
73
|
+
'id': value['id'],
|
|
70
74
|
'type': value['type'],
|
|
71
75
|
'name': value['name'],
|
|
72
76
|
'price': value['price'],
|
package/package.json
CHANGED
|
@@ -24,6 +24,8 @@ import {
|
|
|
24
24
|
|
|
25
25
|
export interface SalesPublicApiGetSalesRequest {
|
|
26
26
|
tlds?: Array<string>;
|
|
27
|
+
output?: GetSalesOutputEnum;
|
|
28
|
+
locale?: string;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -41,6 +43,14 @@ export class SalesPublicApi extends runtime.BaseAPI {
|
|
|
41
43
|
queryParameters['tlds'] = requestParameters['tlds'];
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
if (requestParameters['output'] != null) {
|
|
47
|
+
queryParameters['output'] = requestParameters['output'];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (requestParameters['locale'] != null) {
|
|
51
|
+
queryParameters['locale'] = requestParameters['locale'];
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
45
55
|
|
|
46
56
|
const response = await this.request({
|
|
@@ -62,3 +72,12 @@ export class SalesPublicApi extends runtime.BaseAPI {
|
|
|
62
72
|
}
|
|
63
73
|
|
|
64
74
|
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export const GetSalesOutputEnum = {
|
|
80
|
+
JSON: 'json',
|
|
81
|
+
RSS: 'rss'
|
|
82
|
+
} as const;
|
|
83
|
+
export type GetSalesOutputEnum = typeof GetSalesOutputEnum[keyof typeof GetSalesOutputEnum];
|
|
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface PublicSaleDto
|
|
20
20
|
*/
|
|
21
21
|
export interface PublicSaleDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PublicSaleDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {string}
|
|
@@ -67,6 +73,7 @@ export type PublicSaleDtoTypeEnum = typeof PublicSaleDtoTypeEnum[keyof typeof Pu
|
|
|
67
73
|
* Check if a given object implements the PublicSaleDto interface.
|
|
68
74
|
*/
|
|
69
75
|
export function instanceOfPublicSaleDto(value: object): value is PublicSaleDto {
|
|
76
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
70
77
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
71
78
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
72
79
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
@@ -85,6 +92,7 @@ export function PublicSaleDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
85
92
|
}
|
|
86
93
|
return {
|
|
87
94
|
|
|
95
|
+
'id': json['id'],
|
|
88
96
|
'type': json['type'],
|
|
89
97
|
'name': json['name'],
|
|
90
98
|
'price': json['price'],
|
|
@@ -104,6 +112,7 @@ export function PublicSaleDtoToJSONTyped(value?: PublicSaleDto | null, ignoreDis
|
|
|
104
112
|
|
|
105
113
|
return {
|
|
106
114
|
|
|
115
|
+
'id': value['id'],
|
|
107
116
|
'type': value['type'],
|
|
108
117
|
'name': value['name'],
|
|
109
118
|
'price': value['price'],
|