@randock/nameshift-api-client 0.0.237 → 0.0.238
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/models/LeaseToOwnDto.d.ts +44 -0
- package/dist/models/LeaseToOwnDto.js +59 -0
- package/dist/models/ParsedDomainDto.d.ts +14 -0
- package/dist/models/ParsedDomainDto.js +6 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/LeaseToOwnDto.ts +84 -0
- package/src/models/ParsedDomainDto.ts +30 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -151,6 +151,7 @@ src/models/LeadStatusDto.ts
|
|
|
151
151
|
src/models/LeaseToOwnConfigurationDto.ts
|
|
152
152
|
src/models/LeaseToOwnConfigurationInput.ts
|
|
153
153
|
src/models/LeaseToOwnConfigurationPresetsDto.ts
|
|
154
|
+
src/models/LeaseToOwnDto.ts
|
|
154
155
|
src/models/List200Response.ts
|
|
155
156
|
src/models/List200Response1.ts
|
|
156
157
|
src/models/List200Response2.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.238
|
|
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.238 --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
|
+
bcefc8f7d1eb451df26fa36b4c94a2f52d5dc399af2ca5a2bd9bc08e5cbb74881a957323694a791144b2c03bd482e8ce
|
|
@@ -0,0 +1,44 @@
|
|
|
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 LeaseToOwnDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LeaseToOwnDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof LeaseToOwnDto
|
|
22
|
+
*/
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof LeaseToOwnDto
|
|
28
|
+
*/
|
|
29
|
+
minMonths: number | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LeaseToOwnDto
|
|
34
|
+
*/
|
|
35
|
+
maxMonths: number | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the LeaseToOwnDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfLeaseToOwnDto(value: object): value is LeaseToOwnDto;
|
|
41
|
+
export declare function LeaseToOwnDtoFromJSON(json: any): LeaseToOwnDto;
|
|
42
|
+
export declare function LeaseToOwnDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeaseToOwnDto;
|
|
43
|
+
export declare function LeaseToOwnDtoToJSON(json: any): LeaseToOwnDto;
|
|
44
|
+
export declare function LeaseToOwnDtoToJSONTyped(value?: LeaseToOwnDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfLeaseToOwnDto = instanceOfLeaseToOwnDto;
|
|
17
|
+
exports.LeaseToOwnDtoFromJSON = LeaseToOwnDtoFromJSON;
|
|
18
|
+
exports.LeaseToOwnDtoFromJSONTyped = LeaseToOwnDtoFromJSONTyped;
|
|
19
|
+
exports.LeaseToOwnDtoToJSON = LeaseToOwnDtoToJSON;
|
|
20
|
+
exports.LeaseToOwnDtoToJSONTyped = LeaseToOwnDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LeaseToOwnDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLeaseToOwnDto(value) {
|
|
25
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('minMonths' in value) || value['minMonths'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('maxMonths' in value) || value['maxMonths'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function LeaseToOwnDtoFromJSON(json) {
|
|
34
|
+
return LeaseToOwnDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function LeaseToOwnDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'enabled': json['enabled'],
|
|
42
|
+
'minMonths': json['minMonths'],
|
|
43
|
+
'maxMonths': json['maxMonths'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function LeaseToOwnDtoToJSON(json) {
|
|
47
|
+
return LeaseToOwnDtoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function LeaseToOwnDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'enabled': value['enabled'],
|
|
56
|
+
'minMonths': value['minMonths'],
|
|
57
|
+
'maxMonths': value['maxMonths'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
import type { LeaseToOwnDto } from './LeaseToOwnDto';
|
|
14
|
+
import type { RentDto } from './RentDto';
|
|
13
15
|
/**
|
|
14
16
|
*
|
|
15
17
|
* @export
|
|
@@ -40,6 +42,18 @@ export interface ParsedDomainDto {
|
|
|
40
42
|
* @memberof ParsedDomainDto
|
|
41
43
|
*/
|
|
42
44
|
minOffer?: MoneyDto | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {RentDto}
|
|
48
|
+
* @memberof ParsedDomainDto
|
|
49
|
+
*/
|
|
50
|
+
rent?: RentDto;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {LeaseToOwnDto}
|
|
54
|
+
* @memberof ParsedDomainDto
|
|
55
|
+
*/
|
|
56
|
+
leaseToOwn?: LeaseToOwnDto;
|
|
43
57
|
}
|
|
44
58
|
/**
|
|
45
59
|
* @export
|
|
@@ -20,6 +20,8 @@ exports.ParsedDomainDtoFromJSONTyped = ParsedDomainDtoFromJSONTyped;
|
|
|
20
20
|
exports.ParsedDomainDtoToJSON = ParsedDomainDtoToJSON;
|
|
21
21
|
exports.ParsedDomainDtoToJSONTyped = ParsedDomainDtoToJSONTyped;
|
|
22
22
|
var MoneyDto_1 = require("./MoneyDto");
|
|
23
|
+
var LeaseToOwnDto_1 = require("./LeaseToOwnDto");
|
|
24
|
+
var RentDto_1 = require("./RentDto");
|
|
23
25
|
/**
|
|
24
26
|
* @export
|
|
25
27
|
*/
|
|
@@ -50,6 +52,8 @@ function ParsedDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'name': json['name'],
|
|
51
53
|
'buyNow': json['buyNow'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
52
54
|
'minOffer': json['minOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
55
|
+
'rent': json['rent'] == null ? undefined : (0, RentDto_1.RentDtoFromJSON)(json['rent']),
|
|
56
|
+
'leaseToOwn': json['leaseToOwn'] == null ? undefined : (0, LeaseToOwnDto_1.LeaseToOwnDtoFromJSON)(json['leaseToOwn']),
|
|
53
57
|
};
|
|
54
58
|
}
|
|
55
59
|
function ParsedDomainDtoToJSON(json) {
|
|
@@ -65,5 +69,7 @@ function ParsedDomainDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
65
69
|
'name': value['name'],
|
|
66
70
|
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
67
71
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
72
|
+
'rent': (0, RentDto_1.RentDtoToJSON)(value['rent']),
|
|
73
|
+
'leaseToOwn': (0, LeaseToOwnDto_1.LeaseToOwnDtoToJSON)(value['leaseToOwn']),
|
|
68
74
|
};
|
|
69
75
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -123,6 +123,7 @@ export * from './LeadStatusDto';
|
|
|
123
123
|
export * from './LeaseToOwnConfigurationDto';
|
|
124
124
|
export * from './LeaseToOwnConfigurationInput';
|
|
125
125
|
export * from './LeaseToOwnConfigurationPresetsDto';
|
|
126
|
+
export * from './LeaseToOwnDto';
|
|
126
127
|
export * from './List200Response';
|
|
127
128
|
export * from './List200Response1';
|
|
128
129
|
export * from './List200Response2';
|
package/dist/models/index.js
CHANGED
|
@@ -141,6 +141,7 @@ __exportStar(require("./LeadStatusDto"), exports);
|
|
|
141
141
|
__exportStar(require("./LeaseToOwnConfigurationDto"), exports);
|
|
142
142
|
__exportStar(require("./LeaseToOwnConfigurationInput"), exports);
|
|
143
143
|
__exportStar(require("./LeaseToOwnConfigurationPresetsDto"), exports);
|
|
144
|
+
__exportStar(require("./LeaseToOwnDto"), exports);
|
|
144
145
|
__exportStar(require("./List200Response"), exports);
|
|
145
146
|
__exportStar(require("./List200Response1"), exports);
|
|
146
147
|
__exportStar(require("./List200Response2"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,84 @@
|
|
|
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 LeaseToOwnDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LeaseToOwnDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof LeaseToOwnDto
|
|
26
|
+
*/
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof LeaseToOwnDto
|
|
32
|
+
*/
|
|
33
|
+
minMonths: number | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof LeaseToOwnDto
|
|
38
|
+
*/
|
|
39
|
+
maxMonths: number | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the LeaseToOwnDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfLeaseToOwnDto(value: object): value is LeaseToOwnDto {
|
|
46
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
47
|
+
if (!('minMonths' in value) || value['minMonths'] === undefined) return false;
|
|
48
|
+
if (!('maxMonths' in value) || value['maxMonths'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function LeaseToOwnDtoFromJSON(json: any): LeaseToOwnDto {
|
|
53
|
+
return LeaseToOwnDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function LeaseToOwnDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeaseToOwnDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'enabled': json['enabled'],
|
|
63
|
+
'minMonths': json['minMonths'],
|
|
64
|
+
'maxMonths': json['maxMonths'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function LeaseToOwnDtoToJSON(json: any): LeaseToOwnDto {
|
|
69
|
+
return LeaseToOwnDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function LeaseToOwnDtoToJSONTyped(value?: LeaseToOwnDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'enabled': value['enabled'],
|
|
80
|
+
'minMonths': value['minMonths'],
|
|
81
|
+
'maxMonths': value['maxMonths'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -20,6 +20,20 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { LeaseToOwnDto } from './LeaseToOwnDto';
|
|
24
|
+
import {
|
|
25
|
+
LeaseToOwnDtoFromJSON,
|
|
26
|
+
LeaseToOwnDtoFromJSONTyped,
|
|
27
|
+
LeaseToOwnDtoToJSON,
|
|
28
|
+
LeaseToOwnDtoToJSONTyped,
|
|
29
|
+
} from './LeaseToOwnDto';
|
|
30
|
+
import type { RentDto } from './RentDto';
|
|
31
|
+
import {
|
|
32
|
+
RentDtoFromJSON,
|
|
33
|
+
RentDtoFromJSONTyped,
|
|
34
|
+
RentDtoToJSON,
|
|
35
|
+
RentDtoToJSONTyped,
|
|
36
|
+
} from './RentDto';
|
|
23
37
|
|
|
24
38
|
/**
|
|
25
39
|
*
|
|
@@ -51,6 +65,18 @@ export interface ParsedDomainDto {
|
|
|
51
65
|
* @memberof ParsedDomainDto
|
|
52
66
|
*/
|
|
53
67
|
minOffer?: MoneyDto | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {RentDto}
|
|
71
|
+
* @memberof ParsedDomainDto
|
|
72
|
+
*/
|
|
73
|
+
rent?: RentDto;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {LeaseToOwnDto}
|
|
77
|
+
* @memberof ParsedDomainDto
|
|
78
|
+
*/
|
|
79
|
+
leaseToOwn?: LeaseToOwnDto;
|
|
54
80
|
}
|
|
55
81
|
|
|
56
82
|
|
|
@@ -88,6 +114,8 @@ export function ParsedDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
88
114
|
'name': json['name'],
|
|
89
115
|
'buyNow': json['buyNow'] == null ? undefined : MoneyDtoFromJSON(json['buyNow']),
|
|
90
116
|
'minOffer': json['minOffer'] == null ? undefined : MoneyDtoFromJSON(json['minOffer']),
|
|
117
|
+
'rent': json['rent'] == null ? undefined : RentDtoFromJSON(json['rent']),
|
|
118
|
+
'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnDtoFromJSON(json['leaseToOwn']),
|
|
91
119
|
};
|
|
92
120
|
}
|
|
93
121
|
|
|
@@ -106,6 +134,8 @@ export function ParsedDomainDtoToJSONTyped(value?: ParsedDomainDto | null, ignor
|
|
|
106
134
|
'name': value['name'],
|
|
107
135
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
108
136
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
137
|
+
'rent': RentDtoToJSON(value['rent']),
|
|
138
|
+
'leaseToOwn': LeaseToOwnDtoToJSON(value['leaseToOwn']),
|
|
109
139
|
};
|
|
110
140
|
}
|
|
111
141
|
|
package/src/models/index.ts
CHANGED
|
@@ -125,6 +125,7 @@ export * from './LeadStatusDto';
|
|
|
125
125
|
export * from './LeaseToOwnConfigurationDto';
|
|
126
126
|
export * from './LeaseToOwnConfigurationInput';
|
|
127
127
|
export * from './LeaseToOwnConfigurationPresetsDto';
|
|
128
|
+
export * from './LeaseToOwnDto';
|
|
128
129
|
export * from './List200Response';
|
|
129
130
|
export * from './List200Response1';
|
|
130
131
|
export * from './List200Response2';
|