@randock/nameshift-api-client 0.0.222 → 0.0.223
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/models/CreateManualLeadInput.d.ts +1 -0
- package/dist/models/CreateManualLeadInput.js +2 -1
- package/dist/models/SubscriptionDto.d.ts +23 -0
- package/dist/models/SubscriptionDto.js +19 -1
- package/package.json +1 -1
- package/src/models/CreateManualLeadInput.ts +2 -1
- package/src/models/SubscriptionDto.ts +30 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.223
|
|
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.223 --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
|
+
5eab3ecb69e46bb8afb84ce24bba2b03dca73cfda16938753610c0c7540d648f001cfb5000cab4af41f5f6e3b5eddcff
|
|
@@ -65,6 +65,7 @@ export interface CreateManualLeadInput {
|
|
|
65
65
|
export declare const CreateManualLeadInputTypeEnum: {
|
|
66
66
|
readonly BUY_NOW: "buy_now";
|
|
67
67
|
readonly OFFER: "offer";
|
|
68
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
68
69
|
};
|
|
69
70
|
export type CreateManualLeadInputTypeEnum = typeof CreateManualLeadInputTypeEnum[keyof typeof CreateManualLeadInputTypeEnum];
|
|
70
71
|
/**
|
|
@@ -25,7 +25,8 @@ var MoneyInput_1 = require("./MoneyInput");
|
|
|
25
25
|
*/
|
|
26
26
|
exports.CreateManualLeadInputTypeEnum = {
|
|
27
27
|
BUY_NOW: 'buy_now',
|
|
28
|
-
OFFER: 'offer'
|
|
28
|
+
OFFER: 'offer',
|
|
29
|
+
LEASE_TO_OWN: 'lease_to_own'
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the CreateManualLeadInput interface.
|
|
@@ -142,6 +142,18 @@ export interface SubscriptionDto {
|
|
|
142
142
|
* @memberof SubscriptionDto
|
|
143
143
|
*/
|
|
144
144
|
billingPeriodicity: SubscriptionBillingPeriodicityDto;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {boolean}
|
|
148
|
+
* @memberof SubscriptionDto
|
|
149
|
+
*/
|
|
150
|
+
hasLead: boolean;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof SubscriptionDto
|
|
155
|
+
*/
|
|
156
|
+
leadStatus: SubscriptionDtoLeadStatusEnum | null;
|
|
145
157
|
}
|
|
146
158
|
/**
|
|
147
159
|
* @export
|
|
@@ -162,6 +174,17 @@ export declare const SubscriptionDtoTypeEnum: {
|
|
|
162
174
|
readonly LEASE_TO_OWN: "lease_to_own";
|
|
163
175
|
};
|
|
164
176
|
export type SubscriptionDtoTypeEnum = typeof SubscriptionDtoTypeEnum[keyof typeof SubscriptionDtoTypeEnum];
|
|
177
|
+
/**
|
|
178
|
+
* @export
|
|
179
|
+
*/
|
|
180
|
+
export declare const SubscriptionDtoLeadStatusEnum: {
|
|
181
|
+
readonly UNVERIFIED: "unverified";
|
|
182
|
+
readonly ACTIVE: "active";
|
|
183
|
+
readonly ACCEPTED: "accepted";
|
|
184
|
+
readonly FINISHED: "finished";
|
|
185
|
+
readonly CLOSED: "closed";
|
|
186
|
+
};
|
|
187
|
+
export type SubscriptionDtoLeadStatusEnum = typeof SubscriptionDtoLeadStatusEnum[keyof typeof SubscriptionDtoLeadStatusEnum];
|
|
165
188
|
/**
|
|
166
189
|
* Check if a given object implements the SubscriptionDto interface.
|
|
167
190
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SubscriptionDtoTypeEnum = exports.SubscriptionDtoStatusEnum = void 0;
|
|
16
|
+
exports.SubscriptionDtoLeadStatusEnum = exports.SubscriptionDtoTypeEnum = exports.SubscriptionDtoStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfSubscriptionDto = instanceOfSubscriptionDto;
|
|
18
18
|
exports.SubscriptionDtoFromJSON = SubscriptionDtoFromJSON;
|
|
19
19
|
exports.SubscriptionDtoFromJSONTyped = SubscriptionDtoFromJSONTyped;
|
|
@@ -43,6 +43,16 @@ exports.SubscriptionDtoTypeEnum = {
|
|
|
43
43
|
RENT: 'rent',
|
|
44
44
|
LEASE_TO_OWN: 'lease_to_own'
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
exports.SubscriptionDtoLeadStatusEnum = {
|
|
50
|
+
UNVERIFIED: 'unverified',
|
|
51
|
+
ACTIVE: 'active',
|
|
52
|
+
ACCEPTED: 'accepted',
|
|
53
|
+
FINISHED: 'finished',
|
|
54
|
+
CLOSED: 'closed'
|
|
55
|
+
};
|
|
46
56
|
/**
|
|
47
57
|
* Check if a given object implements the SubscriptionDto interface.
|
|
48
58
|
*/
|
|
@@ -87,6 +97,10 @@ function instanceOfSubscriptionDto(value) {
|
|
|
87
97
|
return false;
|
|
88
98
|
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined)
|
|
89
99
|
return false;
|
|
100
|
+
if (!('hasLead' in value) || value['hasLead'] === undefined)
|
|
101
|
+
return false;
|
|
102
|
+
if (!('leadStatus' in value) || value['leadStatus'] === undefined)
|
|
103
|
+
return false;
|
|
90
104
|
return true;
|
|
91
105
|
}
|
|
92
106
|
function SubscriptionDtoFromJSON(json) {
|
|
@@ -117,6 +131,8 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
117
131
|
'currentInstallment': json['currentInstallment'],
|
|
118
132
|
'expectedInstallmentsNumber': json['expectedInstallmentsNumber'],
|
|
119
133
|
'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
|
|
134
|
+
'hasLead': json['hasLead'],
|
|
135
|
+
'leadStatus': json['leadStatus'],
|
|
120
136
|
};
|
|
121
137
|
}
|
|
122
138
|
function SubscriptionDtoToJSON(json) {
|
|
@@ -148,5 +164,7 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
148
164
|
'currentInstallment': value['currentInstallment'],
|
|
149
165
|
'expectedInstallmentsNumber': value['expectedInstallmentsNumber'],
|
|
150
166
|
'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
|
|
167
|
+
'hasLead': value['hasLead'],
|
|
168
|
+
'leadStatus': value['leadStatus'],
|
|
151
169
|
};
|
|
152
170
|
}
|
package/package.json
CHANGED
|
@@ -77,7 +77,8 @@ export interface CreateManualLeadInput {
|
|
|
77
77
|
*/
|
|
78
78
|
export const CreateManualLeadInputTypeEnum = {
|
|
79
79
|
BUY_NOW: 'buy_now',
|
|
80
|
-
OFFER: 'offer'
|
|
80
|
+
OFFER: 'offer',
|
|
81
|
+
LEASE_TO_OWN: 'lease_to_own'
|
|
81
82
|
} as const;
|
|
82
83
|
export type CreateManualLeadInputTypeEnum = typeof CreateManualLeadInputTypeEnum[keyof typeof CreateManualLeadInputTypeEnum];
|
|
83
84
|
|
|
@@ -189,6 +189,18 @@ export interface SubscriptionDto {
|
|
|
189
189
|
* @memberof SubscriptionDto
|
|
190
190
|
*/
|
|
191
191
|
billingPeriodicity: SubscriptionBillingPeriodicityDto;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @type {boolean}
|
|
195
|
+
* @memberof SubscriptionDto
|
|
196
|
+
*/
|
|
197
|
+
hasLead: boolean;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof SubscriptionDto
|
|
202
|
+
*/
|
|
203
|
+
leadStatus: SubscriptionDtoLeadStatusEnum | null;
|
|
192
204
|
}
|
|
193
205
|
|
|
194
206
|
|
|
@@ -213,6 +225,18 @@ export const SubscriptionDtoTypeEnum = {
|
|
|
213
225
|
} as const;
|
|
214
226
|
export type SubscriptionDtoTypeEnum = typeof SubscriptionDtoTypeEnum[keyof typeof SubscriptionDtoTypeEnum];
|
|
215
227
|
|
|
228
|
+
/**
|
|
229
|
+
* @export
|
|
230
|
+
*/
|
|
231
|
+
export const SubscriptionDtoLeadStatusEnum = {
|
|
232
|
+
UNVERIFIED: 'unverified',
|
|
233
|
+
ACTIVE: 'active',
|
|
234
|
+
ACCEPTED: 'accepted',
|
|
235
|
+
FINISHED: 'finished',
|
|
236
|
+
CLOSED: 'closed'
|
|
237
|
+
} as const;
|
|
238
|
+
export type SubscriptionDtoLeadStatusEnum = typeof SubscriptionDtoLeadStatusEnum[keyof typeof SubscriptionDtoLeadStatusEnum];
|
|
239
|
+
|
|
216
240
|
|
|
217
241
|
/**
|
|
218
242
|
* Check if a given object implements the SubscriptionDto interface.
|
|
@@ -238,6 +262,8 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
|
|
|
238
262
|
if (!('currentInstallment' in value) || value['currentInstallment'] === undefined) return false;
|
|
239
263
|
if (!('expectedInstallmentsNumber' in value) || value['expectedInstallmentsNumber'] === undefined) return false;
|
|
240
264
|
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
|
|
265
|
+
if (!('hasLead' in value) || value['hasLead'] === undefined) return false;
|
|
266
|
+
if (!('leadStatus' in value) || value['leadStatus'] === undefined) return false;
|
|
241
267
|
return true;
|
|
242
268
|
}
|
|
243
269
|
|
|
@@ -271,6 +297,8 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
271
297
|
'currentInstallment': json['currentInstallment'],
|
|
272
298
|
'expectedInstallmentsNumber': json['expectedInstallmentsNumber'],
|
|
273
299
|
'billingPeriodicity': SubscriptionBillingPeriodicityDtoFromJSON(json['billingPeriodicity']),
|
|
300
|
+
'hasLead': json['hasLead'],
|
|
301
|
+
'leadStatus': json['leadStatus'],
|
|
274
302
|
};
|
|
275
303
|
}
|
|
276
304
|
|
|
@@ -305,6 +333,8 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
|
|
|
305
333
|
'currentInstallment': value['currentInstallment'],
|
|
306
334
|
'expectedInstallmentsNumber': value['expectedInstallmentsNumber'],
|
|
307
335
|
'billingPeriodicity': SubscriptionBillingPeriodicityDtoToJSON(value['billingPeriodicity']),
|
|
336
|
+
'hasLead': value['hasLead'],
|
|
337
|
+
'leadStatus': value['leadStatus'],
|
|
308
338
|
};
|
|
309
339
|
}
|
|
310
340
|
|