@randock/nameshift-api-client 0.0.177 → 0.0.178
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.178
|
|
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.178 --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
|
+
d0131ecc2f6d46d09a22a6211db45c2668d1620605dc0866aa29a88a049856dbce53678b429213b20a7401b243ac1bb0
|
|
@@ -16,6 +16,12 @@ import type { MoneyDto } from './MoneyDto';
|
|
|
16
16
|
* @interface ParsedDomainDto
|
|
17
17
|
*/
|
|
18
18
|
export interface ParsedDomainDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ParsedDomainDto
|
|
23
|
+
*/
|
|
24
|
+
action: ParsedDomainDtoActionEnum;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -35,6 +41,15 @@ export interface ParsedDomainDto {
|
|
|
35
41
|
*/
|
|
36
42
|
minOffer?: MoneyDto | null;
|
|
37
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const ParsedDomainDtoActionEnum: {
|
|
48
|
+
readonly INSERT: "insert";
|
|
49
|
+
readonly UPSERT: "upsert";
|
|
50
|
+
readonly DELETE: "delete";
|
|
51
|
+
};
|
|
52
|
+
export type ParsedDomainDtoActionEnum = typeof ParsedDomainDtoActionEnum[keyof typeof ParsedDomainDtoActionEnum];
|
|
38
53
|
/**
|
|
39
54
|
* Check if a given object implements the ParsedDomainDto interface.
|
|
40
55
|
*/
|
|
@@ -13,16 +13,27 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ParsedDomainDtoActionEnum = void 0;
|
|
16
17
|
exports.instanceOfParsedDomainDto = instanceOfParsedDomainDto;
|
|
17
18
|
exports.ParsedDomainDtoFromJSON = ParsedDomainDtoFromJSON;
|
|
18
19
|
exports.ParsedDomainDtoFromJSONTyped = ParsedDomainDtoFromJSONTyped;
|
|
19
20
|
exports.ParsedDomainDtoToJSON = ParsedDomainDtoToJSON;
|
|
20
21
|
exports.ParsedDomainDtoToJSONTyped = ParsedDomainDtoToJSONTyped;
|
|
21
22
|
var MoneyDto_1 = require("./MoneyDto");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ParsedDomainDtoActionEnum = {
|
|
27
|
+
INSERT: 'insert',
|
|
28
|
+
UPSERT: 'upsert',
|
|
29
|
+
DELETE: 'delete'
|
|
30
|
+
};
|
|
22
31
|
/**
|
|
23
32
|
* Check if a given object implements the ParsedDomainDto interface.
|
|
24
33
|
*/
|
|
25
34
|
function instanceOfParsedDomainDto(value) {
|
|
35
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
36
|
+
return false;
|
|
26
37
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
38
|
return false;
|
|
28
39
|
return true;
|
|
@@ -35,6 +46,7 @@ function ParsedDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
46
|
return json;
|
|
36
47
|
}
|
|
37
48
|
return {
|
|
49
|
+
'action': json['action'],
|
|
38
50
|
'name': json['name'],
|
|
39
51
|
'buyNow': json['buyNow'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
40
52
|
'minOffer': json['minOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
@@ -49,6 +61,7 @@ function ParsedDomainDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
49
61
|
return value;
|
|
50
62
|
}
|
|
51
63
|
return {
|
|
64
|
+
'action': value['action'],
|
|
52
65
|
'name': value['name'],
|
|
53
66
|
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
54
67
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
package/package.json
CHANGED
|
@@ -27,6 +27,12 @@ import {
|
|
|
27
27
|
* @interface ParsedDomainDto
|
|
28
28
|
*/
|
|
29
29
|
export interface ParsedDomainDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ParsedDomainDto
|
|
34
|
+
*/
|
|
35
|
+
action: ParsedDomainDtoActionEnum;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
@@ -47,10 +53,23 @@ export interface ParsedDomainDto {
|
|
|
47
53
|
minOffer?: MoneyDto | null;
|
|
48
54
|
}
|
|
49
55
|
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export const ParsedDomainDtoActionEnum = {
|
|
61
|
+
INSERT: 'insert',
|
|
62
|
+
UPSERT: 'upsert',
|
|
63
|
+
DELETE: 'delete'
|
|
64
|
+
} as const;
|
|
65
|
+
export type ParsedDomainDtoActionEnum = typeof ParsedDomainDtoActionEnum[keyof typeof ParsedDomainDtoActionEnum];
|
|
66
|
+
|
|
67
|
+
|
|
50
68
|
/**
|
|
51
69
|
* Check if a given object implements the ParsedDomainDto interface.
|
|
52
70
|
*/
|
|
53
71
|
export function instanceOfParsedDomainDto(value: object): value is ParsedDomainDto {
|
|
72
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
54
73
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
55
74
|
return true;
|
|
56
75
|
}
|
|
@@ -65,6 +84,7 @@ export function ParsedDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
65
84
|
}
|
|
66
85
|
return {
|
|
67
86
|
|
|
87
|
+
'action': json['action'],
|
|
68
88
|
'name': json['name'],
|
|
69
89
|
'buyNow': json['buyNow'] == null ? undefined : MoneyDtoFromJSON(json['buyNow']),
|
|
70
90
|
'minOffer': json['minOffer'] == null ? undefined : MoneyDtoFromJSON(json['minOffer']),
|
|
@@ -82,6 +102,7 @@ export function ParsedDomainDtoToJSONTyped(value?: ParsedDomainDto | null, ignor
|
|
|
82
102
|
|
|
83
103
|
return {
|
|
84
104
|
|
|
105
|
+
'action': value['action'],
|
|
85
106
|
'name': value['name'],
|
|
86
107
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
87
108
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|