@randock/nameshift-api-client 0.0.185 → 0.0.187
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 +4 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +12 -0
- package/dist/apis/AccountsApi.js +69 -0
- package/dist/apis/DomainsPublicApi.d.ts +1 -1
- package/dist/apis/DomainsPublicApi.js +2 -2
- package/dist/models/AccountSettingsInput.d.ts +3 -8
- package/dist/models/AccountSettingsInput.js +3 -4
- package/dist/models/AccountSettingsLandingDto.d.ts +12 -0
- package/dist/models/AccountSettingsLandingDto.js +8 -0
- package/dist/models/ChangeSubscriptionStatusInput.d.ts +1 -0
- package/dist/models/ChangeSubscriptionStatusInput.js +2 -1
- package/dist/models/CreateSubscriptionBillingPeriodicityInput.d.ts +46 -0
- package/dist/models/CreateSubscriptionBillingPeriodicityInput.js +63 -0
- package/dist/models/CreateSubscriptionInput.d.ts +4 -10
- package/dist/models/CreateSubscriptionInput.js +8 -13
- package/dist/models/DomainSellerDto.d.ts +12 -0
- package/dist/models/DomainSellerDto.js +8 -0
- package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.d.ts +1 -0
- package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.js +1 -0
- package/dist/models/LandingPageInput.d.ts +44 -0
- package/dist/models/LandingPageInput.js +53 -0
- package/dist/models/SubscriptionBillingPeriodicityDto.d.ts +46 -0
- package/dist/models/SubscriptionBillingPeriodicityDto.js +63 -0
- package/dist/models/SubscriptionDto.d.ts +5 -10
- package/dist/models/SubscriptionDto.js +10 -14
- package/dist/models/SubscriptionListItemDto.d.ts +1 -0
- package/dist/models/SubscriptionListItemDto.js +2 -1
- package/dist/models/UpdateSubscriptionBillingPeriodicityInput.d.ts +46 -0
- package/dist/models/UpdateSubscriptionBillingPeriodicityInput.js +59 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +4 -10
- package/dist/models/UpdateSubscriptionInput.js +5 -11
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +66 -0
- package/src/apis/DomainsPublicApi.ts +3 -3
- package/src/apis/SubscriptionsPublicApi.ts +0 -3
- package/src/models/AccountSettingsInput.ts +11 -12
- package/src/models/AccountSettingsLandingDto.ts +18 -0
- package/src/models/ChangeSubscriptionStatusInput.ts +2 -1
- package/src/models/CreateSubscriptionBillingPeriodicityInput.ts +86 -0
- package/src/models/CreateSubscriptionInput.ts +16 -17
- package/src/models/DomainSellerDto.ts +18 -0
- package/src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts +1 -0
- package/src/models/LandingPageInput.ts +81 -0
- package/src/models/SubscriptionBillingPeriodicityDto.ts +86 -0
- package/src/models/SubscriptionDto.ts +18 -18
- package/src/models/SubscriptionListItemDto.ts +2 -1
- package/src/models/UpdateSubscriptionBillingPeriodicityInput.ts +84 -0
- package/src/models/UpdateSubscriptionInput.ts +14 -17
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -61,6 +61,7 @@ src/models/CreateLeadInput.ts
|
|
|
61
61
|
src/models/CreateLeadMessageInput.ts
|
|
62
62
|
src/models/CreateManualLeadInput.ts
|
|
63
63
|
src/models/CreateOrderInput.ts
|
|
64
|
+
src/models/CreateSubscriptionBillingPeriodicityInput.ts
|
|
64
65
|
src/models/CreateSubscriptionInput.ts
|
|
65
66
|
src/models/DeleteDomainsInput.ts
|
|
66
67
|
src/models/DomainDto.ts
|
|
@@ -108,6 +109,7 @@ src/models/InvoiceItemDto.ts
|
|
|
108
109
|
src/models/InvoiceItemTaxDto.ts
|
|
109
110
|
src/models/InvoiceSellerAccountDto.ts
|
|
110
111
|
src/models/InvoiceTransactionDto.ts
|
|
112
|
+
src/models/LandingPageInput.ts
|
|
111
113
|
src/models/LeadDomainDto.ts
|
|
112
114
|
src/models/LeadDto.ts
|
|
113
115
|
src/models/LeadMessageData.ts
|
|
@@ -164,6 +166,7 @@ src/models/SetDomainTransferConfirmationInput.ts
|
|
|
164
166
|
src/models/SetNewPasswordInput.ts
|
|
165
167
|
src/models/StoreBuyerLocaleInput.ts
|
|
166
168
|
src/models/StoreUserLocaleInput.ts
|
|
169
|
+
src/models/SubscriptionBillingPeriodicityDto.ts
|
|
167
170
|
src/models/SubscriptionCompanyInfoDto.ts
|
|
168
171
|
src/models/SubscriptionCompanyTaxIdDto.ts
|
|
169
172
|
src/models/SubscriptionDomainDto.ts
|
|
@@ -181,6 +184,7 @@ src/models/UpdateDomainInput.ts
|
|
|
181
184
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
182
185
|
src/models/UpdateLeadInput.ts
|
|
183
186
|
src/models/UpdateOrderInput.ts
|
|
187
|
+
src/models/UpdateSubscriptionBillingPeriodicityInput.ts
|
|
184
188
|
src/models/UpdateSubscriptionInput.ts
|
|
185
189
|
src/models/UserPasswordResetDto.ts
|
|
186
190
|
src/models/ValidationError.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.187
|
|
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.187 --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
|
+
88a207aedf5ee1efc500e50b344a784bd8eb9ebcd6457e338cfb71234fe30998aaa3a23432b939bacb27bf5113abca6c
|
|
@@ -22,6 +22,10 @@ export interface AccountsApiPostReadAccountNotificationRequest {
|
|
|
22
22
|
accountId: string;
|
|
23
23
|
notificationId: string;
|
|
24
24
|
}
|
|
25
|
+
export interface AccountsApiPutAvatarRequest {
|
|
26
|
+
accountId: string;
|
|
27
|
+
file?: Blob | null;
|
|
28
|
+
}
|
|
25
29
|
export interface AccountsApiUpdateSettingsRequest {
|
|
26
30
|
accountId: string;
|
|
27
31
|
accountSettingsInput: AccountSettingsInput;
|
|
@@ -70,6 +74,14 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
70
74
|
*
|
|
71
75
|
*/
|
|
72
76
|
postReadAccountNotification(requestParameters: AccountsApiPostReadAccountNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
putAvatarRaw(requestParameters: AccountsApiPutAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
putAvatar(requestParameters: AccountsApiPutAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
73
85
|
/**
|
|
74
86
|
*
|
|
75
87
|
*/
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -338,6 +338,75 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
338
338
|
});
|
|
339
339
|
});
|
|
340
340
|
};
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
*/
|
|
344
|
+
AccountsApi.prototype.putAvatarRaw = function (requestParameters, initOverrides) {
|
|
345
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
346
|
+
var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
|
|
347
|
+
return __generator(this, function (_a) {
|
|
348
|
+
switch (_a.label) {
|
|
349
|
+
case 0:
|
|
350
|
+
if (requestParameters['accountId'] == null) {
|
|
351
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling putAvatar().');
|
|
352
|
+
}
|
|
353
|
+
queryParameters = {};
|
|
354
|
+
headerParameters = {};
|
|
355
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
356
|
+
token = this.configuration.accessToken;
|
|
357
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
358
|
+
case 1:
|
|
359
|
+
tokenString = _a.sent();
|
|
360
|
+
if (tokenString) {
|
|
361
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
362
|
+
}
|
|
363
|
+
_a.label = 2;
|
|
364
|
+
case 2:
|
|
365
|
+
consumes = [
|
|
366
|
+
{ contentType: 'multipart/form-data' },
|
|
367
|
+
];
|
|
368
|
+
canConsumeForm = runtime.canConsumeForm(consumes);
|
|
369
|
+
useForm = false;
|
|
370
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
371
|
+
useForm = canConsumeForm;
|
|
372
|
+
if (useForm) {
|
|
373
|
+
formParams = new FormData();
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
formParams = new URLSearchParams();
|
|
377
|
+
}
|
|
378
|
+
if (requestParameters['file'] != null) {
|
|
379
|
+
formParams.append('file', requestParameters['file']);
|
|
380
|
+
}
|
|
381
|
+
return [4 /*yield*/, this.request({
|
|
382
|
+
path: "/private/accounts/{accountId}/settings/landing/avatar".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
383
|
+
method: 'PUT',
|
|
384
|
+
headers: headerParameters,
|
|
385
|
+
query: queryParameters,
|
|
386
|
+
body: formParams,
|
|
387
|
+
}, initOverrides)];
|
|
388
|
+
case 3:
|
|
389
|
+
response = _a.sent();
|
|
390
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
*/
|
|
398
|
+
AccountsApi.prototype.putAvatar = function (requestParameters, initOverrides) {
|
|
399
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
400
|
+
return __generator(this, function (_a) {
|
|
401
|
+
switch (_a.label) {
|
|
402
|
+
case 0: return [4 /*yield*/, this.putAvatarRaw(requestParameters, initOverrides)];
|
|
403
|
+
case 1:
|
|
404
|
+
_a.sent();
|
|
405
|
+
return [2 /*return*/];
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
});
|
|
409
|
+
};
|
|
341
410
|
/**
|
|
342
411
|
*
|
|
343
412
|
*/
|
|
@@ -14,7 +14,7 @@ import type { IntersectionDomainSalesInformationDtoWithDomainStatsDto, List200Re
|
|
|
14
14
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
16
|
includeStats?: boolean;
|
|
17
|
-
|
|
17
|
+
installments?: number;
|
|
18
18
|
}
|
|
19
19
|
export interface DomainsPublicApiListRequest {
|
|
20
20
|
filter?: object;
|
|
@@ -91,8 +91,8 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
91
91
|
if (requestParameters['includeStats'] != null) {
|
|
92
92
|
queryParameters['includeStats'] = requestParameters['includeStats'];
|
|
93
93
|
}
|
|
94
|
-
if (requestParameters['
|
|
95
|
-
queryParameters['
|
|
94
|
+
if (requestParameters['installments'] != null) {
|
|
95
|
+
queryParameters['installments'] = requestParameters['installments'];
|
|
96
96
|
}
|
|
97
97
|
headerParameters = {};
|
|
98
98
|
return [4 /*yield*/, this.request({
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
import type { LandingPageInput } from './LandingPageInput';
|
|
13
14
|
import type { LeaseToOwnConfigurationInput } from './LeaseToOwnConfigurationInput';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -37,16 +38,10 @@ export interface AccountSettingsInput {
|
|
|
37
38
|
sidnIdcode?: string | null;
|
|
38
39
|
/**
|
|
39
40
|
*
|
|
40
|
-
* @type {
|
|
41
|
+
* @type {LandingPageInput}
|
|
41
42
|
* @memberof AccountSettingsInput
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {boolean}
|
|
47
|
-
* @memberof AccountSettingsInput
|
|
48
|
-
*/
|
|
49
|
-
showRelatedDomains?: boolean;
|
|
44
|
+
landingPage?: LandingPageInput;
|
|
50
45
|
/**
|
|
51
46
|
*
|
|
52
47
|
* @type {LeaseToOwnConfigurationInput}
|
|
@@ -19,6 +19,7 @@ exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
|
|
|
19
19
|
exports.AccountSettingsInputToJSON = AccountSettingsInputToJSON;
|
|
20
20
|
exports.AccountSettingsInputToJSONTyped = AccountSettingsInputToJSONTyped;
|
|
21
21
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
var LandingPageInput_1 = require("./LandingPageInput");
|
|
22
23
|
var LeaseToOwnConfigurationInput_1 = require("./LeaseToOwnConfigurationInput");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the AccountSettingsInput interface.
|
|
@@ -37,8 +38,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
|
|
38
39
|
'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
|
|
39
40
|
'sidnIdcode': json['sidnIdcode'] == null ? undefined : json['sidnIdcode'],
|
|
40
|
-
'
|
|
41
|
-
'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
|
|
41
|
+
'landingPage': json['landingPage'] == null ? undefined : (0, LandingPageInput_1.LandingPageInputFromJSON)(json['landingPage']),
|
|
42
42
|
'leaseToOwn': json['leaseToOwn'] == null ? undefined : (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputFromJSON)(json['leaseToOwn']),
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -54,8 +54,7 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
54
54
|
'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
|
|
55
55
|
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
56
56
|
'sidnIdcode': value['sidnIdcode'],
|
|
57
|
-
'
|
|
58
|
-
'showRelatedDomains': value['showRelatedDomains'],
|
|
57
|
+
'landingPage': (0, LandingPageInput_1.LandingPageInputToJSON)(value['landingPage']),
|
|
59
58
|
'leaseToOwn': (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputToJSON)(value['leaseToOwn']),
|
|
60
59
|
};
|
|
61
60
|
}
|
|
@@ -27,6 +27,18 @@ export interface AccountSettingsLandingDto {
|
|
|
27
27
|
* @memberof AccountSettingsLandingDto
|
|
28
28
|
*/
|
|
29
29
|
showRelatedDomains: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountSettingsLandingDto
|
|
34
|
+
*/
|
|
35
|
+
description: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AccountSettingsLandingDto
|
|
40
|
+
*/
|
|
41
|
+
avatar: string | null;
|
|
30
42
|
}
|
|
31
43
|
/**
|
|
32
44
|
* Check if a given object implements the AccountSettingsLandingDto interface.
|
|
@@ -26,6 +26,10 @@ function instanceOfAccountSettingsLandingDto(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('avatar' in value) || value['avatar'] === undefined)
|
|
32
|
+
return false;
|
|
29
33
|
return true;
|
|
30
34
|
}
|
|
31
35
|
function AccountSettingsLandingDtoFromJSON(json) {
|
|
@@ -38,6 +42,8 @@ function AccountSettingsLandingDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
42
|
return {
|
|
39
43
|
'anonymous': json['anonymous'],
|
|
40
44
|
'showRelatedDomains': json['showRelatedDomains'],
|
|
45
|
+
'description': json['description'],
|
|
46
|
+
'avatar': json['avatar'],
|
|
41
47
|
};
|
|
42
48
|
}
|
|
43
49
|
function AccountSettingsLandingDtoToJSON(json) {
|
|
@@ -51,5 +57,7 @@ function AccountSettingsLandingDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
57
|
return {
|
|
52
58
|
'anonymous': value['anonymous'],
|
|
53
59
|
'showRelatedDomains': value['showRelatedDomains'],
|
|
60
|
+
'description': value['description'],
|
|
61
|
+
'avatar': value['avatar'],
|
|
54
62
|
};
|
|
55
63
|
}
|
|
@@ -30,6 +30,7 @@ export declare const ChangeSubscriptionStatusInputStatusEnum: {
|
|
|
30
30
|
readonly ACTIVE: "active";
|
|
31
31
|
readonly PAUSED: "paused";
|
|
32
32
|
readonly CANCELLED: "cancelled";
|
|
33
|
+
readonly FINISHED: "finished";
|
|
33
34
|
};
|
|
34
35
|
export type ChangeSubscriptionStatusInputStatusEnum = typeof ChangeSubscriptionStatusInputStatusEnum[keyof typeof ChangeSubscriptionStatusInputStatusEnum];
|
|
35
36
|
/**
|
|
@@ -26,7 +26,8 @@ exports.ChangeSubscriptionStatusInputStatusEnum = {
|
|
|
26
26
|
DRAFT: 'draft',
|
|
27
27
|
ACTIVE: 'active',
|
|
28
28
|
PAUSED: 'paused',
|
|
29
|
-
CANCELLED: 'cancelled'
|
|
29
|
+
CANCELLED: 'cancelled',
|
|
30
|
+
FINISHED: 'finished'
|
|
30
31
|
};
|
|
31
32
|
/**
|
|
32
33
|
* Check if a given object implements the ChangeSubscriptionStatusInput interface.
|
|
@@ -0,0 +1,46 @@
|
|
|
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 CreateSubscriptionBillingPeriodicityInput
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateSubscriptionBillingPeriodicityInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreateSubscriptionBillingPeriodicityInput
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateSubscriptionBillingPeriodicityInput
|
|
28
|
+
*/
|
|
29
|
+
unit: CreateSubscriptionBillingPeriodicityInputUnitEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const CreateSubscriptionBillingPeriodicityInputUnitEnum: {
|
|
35
|
+
readonly WEEK: "week";
|
|
36
|
+
readonly MONTH: "month";
|
|
37
|
+
};
|
|
38
|
+
export type CreateSubscriptionBillingPeriodicityInputUnitEnum = typeof CreateSubscriptionBillingPeriodicityInputUnitEnum[keyof typeof CreateSubscriptionBillingPeriodicityInputUnitEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the CreateSubscriptionBillingPeriodicityInput interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfCreateSubscriptionBillingPeriodicityInput(value: object): value is CreateSubscriptionBillingPeriodicityInput;
|
|
43
|
+
export declare function CreateSubscriptionBillingPeriodicityInputFromJSON(json: any): CreateSubscriptionBillingPeriodicityInput;
|
|
44
|
+
export declare function CreateSubscriptionBillingPeriodicityInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionBillingPeriodicityInput;
|
|
45
|
+
export declare function CreateSubscriptionBillingPeriodicityInputToJSON(json: any): CreateSubscriptionBillingPeriodicityInput;
|
|
46
|
+
export declare function CreateSubscriptionBillingPeriodicityInputToJSONTyped(value?: CreateSubscriptionBillingPeriodicityInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.CreateSubscriptionBillingPeriodicityInputUnitEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateSubscriptionBillingPeriodicityInput = instanceOfCreateSubscriptionBillingPeriodicityInput;
|
|
18
|
+
exports.CreateSubscriptionBillingPeriodicityInputFromJSON = CreateSubscriptionBillingPeriodicityInputFromJSON;
|
|
19
|
+
exports.CreateSubscriptionBillingPeriodicityInputFromJSONTyped = CreateSubscriptionBillingPeriodicityInputFromJSONTyped;
|
|
20
|
+
exports.CreateSubscriptionBillingPeriodicityInputToJSON = CreateSubscriptionBillingPeriodicityInputToJSON;
|
|
21
|
+
exports.CreateSubscriptionBillingPeriodicityInputToJSONTyped = CreateSubscriptionBillingPeriodicityInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateSubscriptionBillingPeriodicityInputUnitEnum = {
|
|
26
|
+
WEEK: 'week',
|
|
27
|
+
MONTH: 'month'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the CreateSubscriptionBillingPeriodicityInput interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfCreateSubscriptionBillingPeriodicityInput(value) {
|
|
33
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('unit' in value) || value['unit'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function CreateSubscriptionBillingPeriodicityInputFromJSON(json) {
|
|
40
|
+
return CreateSubscriptionBillingPeriodicityInputFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CreateSubscriptionBillingPeriodicityInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'amount': json['amount'],
|
|
48
|
+
'unit': json['unit'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function CreateSubscriptionBillingPeriodicityInputToJSON(json) {
|
|
52
|
+
return CreateSubscriptionBillingPeriodicityInputToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function CreateSubscriptionBillingPeriodicityInputToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'amount': value['amount'],
|
|
61
|
+
'unit': value['unit'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CreateSubscriptionBillingPeriodicityInput } from './CreateSubscriptionBillingPeriodicityInput';
|
|
12
13
|
import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -27,13 +28,13 @@ export interface CreateSubscriptionInput {
|
|
|
27
28
|
* @type {number}
|
|
28
29
|
* @memberof CreateSubscriptionInput
|
|
29
30
|
*/
|
|
30
|
-
|
|
31
|
+
installments: number;
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
33
|
-
* @type {
|
|
34
|
+
* @type {CreateSubscriptionBillingPeriodicityInput}
|
|
34
35
|
* @memberof CreateSubscriptionInput
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
+
billingPeriodicity: CreateSubscriptionBillingPeriodicityInput;
|
|
37
38
|
/**
|
|
38
39
|
*
|
|
39
40
|
* @type {string}
|
|
@@ -107,13 +108,6 @@ export interface CreateSubscriptionInput {
|
|
|
107
108
|
*/
|
|
108
109
|
companyInfo?: SubscriptionCompanyInfoDto | null;
|
|
109
110
|
}
|
|
110
|
-
/**
|
|
111
|
-
* @export
|
|
112
|
-
*/
|
|
113
|
-
export declare const CreateSubscriptionInputPeriodicityUnitEnum: {
|
|
114
|
-
readonly MONTH: "month";
|
|
115
|
-
};
|
|
116
|
-
export type CreateSubscriptionInputPeriodicityUnitEnum = typeof CreateSubscriptionInputPeriodicityUnitEnum[keyof typeof CreateSubscriptionInputPeriodicityUnitEnum];
|
|
117
111
|
/**
|
|
118
112
|
* @export
|
|
119
113
|
*/
|
|
@@ -13,19 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateSubscriptionInputSubscriptionTypeEnum =
|
|
16
|
+
exports.CreateSubscriptionInputSubscriptionTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfCreateSubscriptionInput = instanceOfCreateSubscriptionInput;
|
|
18
18
|
exports.CreateSubscriptionInputFromJSON = CreateSubscriptionInputFromJSON;
|
|
19
19
|
exports.CreateSubscriptionInputFromJSONTyped = CreateSubscriptionInputFromJSONTyped;
|
|
20
20
|
exports.CreateSubscriptionInputToJSON = CreateSubscriptionInputToJSON;
|
|
21
21
|
exports.CreateSubscriptionInputToJSONTyped = CreateSubscriptionInputToJSONTyped;
|
|
22
|
+
var CreateSubscriptionBillingPeriodicityInput_1 = require("./CreateSubscriptionBillingPeriodicityInput");
|
|
22
23
|
var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.CreateSubscriptionInputPeriodicityUnitEnum = {
|
|
27
|
-
MONTH: 'month'
|
|
28
|
-
};
|
|
29
24
|
/**
|
|
30
25
|
* @export
|
|
31
26
|
*/
|
|
@@ -39,9 +34,9 @@ exports.CreateSubscriptionInputSubscriptionTypeEnum = {
|
|
|
39
34
|
function instanceOfCreateSubscriptionInput(value) {
|
|
40
35
|
if (!('locale' in value) || value['locale'] === undefined)
|
|
41
36
|
return false;
|
|
42
|
-
if (!('
|
|
37
|
+
if (!('installments' in value) || value['installments'] === undefined)
|
|
43
38
|
return false;
|
|
44
|
-
if (!('
|
|
39
|
+
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined)
|
|
45
40
|
return false;
|
|
46
41
|
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
47
42
|
return false;
|
|
@@ -58,8 +53,8 @@ function CreateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
53
|
}
|
|
59
54
|
return {
|
|
60
55
|
'locale': json['locale'],
|
|
61
|
-
'
|
|
62
|
-
'
|
|
56
|
+
'installments': json['installments'],
|
|
57
|
+
'billingPeriodicity': (0, CreateSubscriptionBillingPeriodicityInput_1.CreateSubscriptionBillingPeriodicityInputFromJSON)(json['billingPeriodicity']),
|
|
63
58
|
'domainName': json['domainName'],
|
|
64
59
|
'subscriptionType': json['subscriptionType'],
|
|
65
60
|
'email': json['email'] == null ? undefined : json['email'],
|
|
@@ -84,8 +79,8 @@ function CreateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
84
79
|
}
|
|
85
80
|
return {
|
|
86
81
|
'locale': value['locale'],
|
|
87
|
-
'
|
|
88
|
-
'
|
|
82
|
+
'installments': value['installments'],
|
|
83
|
+
'billingPeriodicity': (0, CreateSubscriptionBillingPeriodicityInput_1.CreateSubscriptionBillingPeriodicityInputToJSON)(value['billingPeriodicity']),
|
|
89
84
|
'domainName': value['domainName'],
|
|
90
85
|
'subscriptionType': value['subscriptionType'],
|
|
91
86
|
'email': value['email'],
|
|
@@ -46,6 +46,18 @@ export interface DomainSellerDto {
|
|
|
46
46
|
* @memberof DomainSellerDto
|
|
47
47
|
*/
|
|
48
48
|
name: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* The seller avatar
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof DomainSellerDto
|
|
53
|
+
*/
|
|
54
|
+
avatar: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The seller avatar
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof DomainSellerDto
|
|
59
|
+
*/
|
|
60
|
+
description: string | null;
|
|
49
61
|
/**
|
|
50
62
|
* The domain seller related domains
|
|
51
63
|
* @type {Array<RelatedSellerDomain>}
|
|
@@ -33,6 +33,10 @@ function instanceOfDomainSellerDto(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('name' in value) || value['name'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('avatar' in value) || value['avatar'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
39
|
+
return false;
|
|
36
40
|
if (!('relatedDomains' in value) || value['relatedDomains'] === undefined)
|
|
37
41
|
return false;
|
|
38
42
|
return true;
|
|
@@ -50,6 +54,8 @@ function DomainSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
54
|
'lastOnline': (new Date(json['lastOnline'])),
|
|
51
55
|
'deliversIn': json['deliversIn'],
|
|
52
56
|
'name': json['name'],
|
|
57
|
+
'avatar': json['avatar'],
|
|
58
|
+
'description': json['description'],
|
|
53
59
|
'relatedDomains': (json['relatedDomains'] == null ? null : json['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainFromJSON)),
|
|
54
60
|
};
|
|
55
61
|
}
|
|
@@ -67,6 +73,8 @@ function DomainSellerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
73
|
'lastOnline': ((value['lastOnline']).toISOString()),
|
|
68
74
|
'deliversIn': value['deliversIn'],
|
|
69
75
|
'name': value['name'],
|
|
76
|
+
'avatar': value['avatar'],
|
|
77
|
+
'description': value['description'],
|
|
70
78
|
'relatedDomains': (value['relatedDomains'] == null ? null : value['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainToJSON)),
|
|
71
79
|
};
|
|
72
80
|
}
|
|
@@ -41,6 +41,7 @@ export interface DomainTransferDetailSellerPayoutInvoiceDto {
|
|
|
41
41
|
export declare const DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum: {
|
|
42
42
|
readonly OPEN: "open";
|
|
43
43
|
readonly PAID: "paid";
|
|
44
|
+
readonly ERROR: "error";
|
|
44
45
|
readonly CANCELLED: "cancelled";
|
|
45
46
|
readonly REFUNDED: "refunded";
|
|
46
47
|
};
|
|
@@ -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 LandingPageInput
|
|
16
|
+
*/
|
|
17
|
+
export interface LandingPageInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof LandingPageInput
|
|
22
|
+
*/
|
|
23
|
+
anonymous?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof LandingPageInput
|
|
28
|
+
*/
|
|
29
|
+
showRelatedDomains?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LandingPageInput
|
|
34
|
+
*/
|
|
35
|
+
description?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the LandingPageInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfLandingPageInput(value: object): value is LandingPageInput;
|
|
41
|
+
export declare function LandingPageInputFromJSON(json: any): LandingPageInput;
|
|
42
|
+
export declare function LandingPageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LandingPageInput;
|
|
43
|
+
export declare function LandingPageInputToJSON(json: any): LandingPageInput;
|
|
44
|
+
export declare function LandingPageInputToJSONTyped(value?: LandingPageInput | null, ignoreDiscriminator?: boolean): any;
|