@randock/nameshift-api-client 0.0.182 → 0.0.184
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 +14 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +9 -1
- package/dist/apis/AccountsApi.js +50 -0
- package/dist/apis/DomainsPublicApi.d.ts +1 -0
- package/dist/apis/DomainsPublicApi.js +3 -0
- package/dist/apis/SubscriptionsPublicApi.d.ts +52 -0
- package/dist/apis/SubscriptionsPublicApi.js +217 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountSettingsDto.d.ts +21 -0
- package/dist/models/AccountSettingsDto.js +15 -0
- package/dist/models/AccountSettingsInput.d.ts +7 -0
- package/dist/models/AccountSettingsInput.js +3 -0
- package/dist/models/AccountSettingsLandingDto.d.ts +38 -0
- package/dist/models/AccountSettingsLandingDto.js +55 -0
- package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.d.ts +51 -0
- package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.js +64 -0
- package/dist/models/AccountSettingsSidnDto.d.ts +32 -0
- package/dist/models/AccountSettingsSidnDto.js +51 -0
- package/dist/models/CreateSubscriptionInput.d.ts +132 -0
- package/dist/models/CreateSubscriptionInput.js +102 -0
- package/dist/models/DomainDto.d.ts +7 -0
- package/dist/models/DomainDto.js +5 -0
- package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.d.ts +57 -0
- package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.js +68 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -0
- package/dist/models/LeaseToOwnConfigurationDto.d.ts +51 -0
- package/dist/models/LeaseToOwnConfigurationDto.js +64 -0
- package/dist/models/LeaseToOwnConfigurationInput.d.ts +44 -0
- package/dist/models/LeaseToOwnConfigurationInput.js +53 -0
- package/dist/models/LeaseToOwnConfigurationPresetsDto.d.ts +44 -0
- package/dist/models/LeaseToOwnConfigurationPresetsDto.js +59 -0
- package/dist/models/SubscriptionCompanyInfoDto.d.ts +39 -0
- package/dist/models/SubscriptionCompanyInfoDto.js +56 -0
- package/dist/models/SubscriptionCompanyTaxIdDto.d.ts +44 -0
- package/dist/models/SubscriptionCompanyTaxIdDto.js +59 -0
- package/dist/models/SubscriptionDomainDto.d.ts +38 -0
- package/dist/models/SubscriptionDomainDto.js +55 -0
- package/dist/models/SubscriptionDto.d.ts +165 -0
- package/dist/models/SubscriptionDto.js +148 -0
- package/dist/models/UpdateDomainInput.d.ts +7 -0
- package/dist/models/UpdateDomainInput.js +3 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +112 -0
- package/dist/models/UpdateSubscriptionInput.js +81 -0
- package/dist/models/WithSettingsInner.d.ts +7 -0
- package/dist/models/WithSettingsInner.js +5 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +37 -0
- package/src/apis/DomainsApi.ts +3 -0
- package/src/apis/DomainsPublicApi.ts +5 -0
- package/src/apis/SubscriptionsPublicApi.ts +175 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountSettingsDto.ts +48 -0
- package/src/models/AccountSettingsInput.ts +15 -0
- package/src/models/AccountSettingsLandingDto.ts +75 -0
- package/src/models/AccountSettingsLeaseToOwnConfigurationDto.ts +101 -0
- package/src/models/AccountSettingsSidnDto.ts +66 -0
- package/src/models/CreateSubscriptionInput.ts +209 -0
- package/src/models/DomainDto.ts +16 -0
- package/src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts +110 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +16 -0
- package/src/models/LeaseToOwnConfigurationDto.ts +101 -0
- package/src/models/LeaseToOwnConfigurationInput.ts +81 -0
- package/src/models/LeaseToOwnConfigurationPresetsDto.ts +84 -0
- package/src/models/SubscriptionCompanyInfoDto.ts +83 -0
- package/src/models/SubscriptionCompanyTaxIdDto.ts +84 -0
- package/src/models/SubscriptionDomainDto.ts +75 -0
- package/src/models/SubscriptionDto.ts +292 -0
- package/src/models/UpdateDomainInput.ts +15 -0
- package/src/models/UpdateSubscriptionInput.ts +179 -0
- package/src/models/WithSettingsInner.ts +16 -0
- package/src/models/index.ts +13 -0
|
@@ -0,0 +1,81 @@
|
|
|
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.UpdateSubscriptionInputPeriodicityUnitEnum = void 0;
|
|
17
|
+
exports.instanceOfUpdateSubscriptionInput = instanceOfUpdateSubscriptionInput;
|
|
18
|
+
exports.UpdateSubscriptionInputFromJSON = UpdateSubscriptionInputFromJSON;
|
|
19
|
+
exports.UpdateSubscriptionInputFromJSONTyped = UpdateSubscriptionInputFromJSONTyped;
|
|
20
|
+
exports.UpdateSubscriptionInputToJSON = UpdateSubscriptionInputToJSON;
|
|
21
|
+
exports.UpdateSubscriptionInputToJSONTyped = UpdateSubscriptionInputToJSONTyped;
|
|
22
|
+
var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.UpdateSubscriptionInputPeriodicityUnitEnum = {
|
|
27
|
+
MONTH: 'month'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the UpdateSubscriptionInput interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfUpdateSubscriptionInput(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function UpdateSubscriptionInputFromJSON(json) {
|
|
36
|
+
return UpdateSubscriptionInputFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function UpdateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'locale': json['locale'] == null ? undefined : json['locale'],
|
|
44
|
+
'periodicity': json['periodicity'] == null ? undefined : json['periodicity'],
|
|
45
|
+
'periodicityUnit': json['periodicityUnit'] == null ? undefined : json['periodicityUnit'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
47
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
48
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
49
|
+
'addressCountryCode': json['addressCountryCode'] == null ? undefined : json['addressCountryCode'],
|
|
50
|
+
'addressStateCode': json['addressStateCode'] == null ? undefined : json['addressStateCode'],
|
|
51
|
+
'addressLine1': json['addressLine1'] == null ? undefined : json['addressLine1'],
|
|
52
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
53
|
+
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
54
|
+
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
55
|
+
'companyInfo': json['companyInfo'] == null ? undefined : (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function UpdateSubscriptionInputToJSON(json) {
|
|
59
|
+
return UpdateSubscriptionInputToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function UpdateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'locale': value['locale'],
|
|
68
|
+
'periodicity': value['periodicity'],
|
|
69
|
+
'periodicityUnit': value['periodicityUnit'],
|
|
70
|
+
'email': value['email'],
|
|
71
|
+
'firstName': value['firstName'],
|
|
72
|
+
'lastName': value['lastName'],
|
|
73
|
+
'addressCountryCode': value['addressCountryCode'],
|
|
74
|
+
'addressStateCode': value['addressStateCode'],
|
|
75
|
+
'addressLine1': value['addressLine1'],
|
|
76
|
+
'addressLine2': value['addressLine2'],
|
|
77
|
+
'addressPostalCode': value['addressPostalCode'],
|
|
78
|
+
'addressCity': value['addressCity'],
|
|
79
|
+
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -46,6 +47,12 @@ export interface WithSettingsInner {
|
|
|
46
47
|
* @memberof WithSettingsInner
|
|
47
48
|
*/
|
|
48
49
|
sidnIdcode: string | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {AccountSettingsLeaseToOwnConfigurationDto}
|
|
53
|
+
* @memberof WithSettingsInner
|
|
54
|
+
*/
|
|
55
|
+
leaseToOwn: AccountSettingsLeaseToOwnConfigurationDto;
|
|
49
56
|
}
|
|
50
57
|
/**
|
|
51
58
|
* Check if a given object implements the WithSettingsInner interface.
|
|
@@ -19,6 +19,7 @@ exports.WithSettingsInnerFromJSONTyped = WithSettingsInnerFromJSONTyped;
|
|
|
19
19
|
exports.WithSettingsInnerToJSON = WithSettingsInnerToJSON;
|
|
20
20
|
exports.WithSettingsInnerToJSONTyped = WithSettingsInnerToJSONTyped;
|
|
21
21
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the WithSettingsInner interface.
|
|
24
25
|
*/
|
|
@@ -33,6 +34,8 @@ function instanceOfWithSettingsInner(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('sidnIdcode' in value) || value['sidnIdcode'] === undefined)
|
|
35
36
|
return false;
|
|
37
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
|
|
38
|
+
return false;
|
|
36
39
|
return true;
|
|
37
40
|
}
|
|
38
41
|
function WithSettingsInnerFromJSON(json) {
|
|
@@ -48,6 +51,7 @@ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
51
|
'anonymous': json['anonymous'],
|
|
49
52
|
'showRelatedDomains': json['showRelatedDomains'],
|
|
50
53
|
'sidnIdcode': json['sidnIdcode'],
|
|
54
|
+
'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
function WithSettingsInnerToJSON(json) {
|
|
@@ -64,5 +68,6 @@ function WithSettingsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
|
64
68
|
'anonymous': value['anonymous'],
|
|
65
69
|
'showRelatedDomains': value['showRelatedDomains'],
|
|
66
70
|
'sidnIdcode': value['sidnIdcode'],
|
|
71
|
+
'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
|
|
67
72
|
};
|
|
68
73
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export * from './AccountNotificationReadStatusDto';
|
|
|
5
5
|
export * from './AccountPaymentProviderSessionDto';
|
|
6
6
|
export * from './AccountSettingsDto';
|
|
7
7
|
export * from './AccountSettingsInput';
|
|
8
|
+
export * from './AccountSettingsLandingDto';
|
|
9
|
+
export * from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
10
|
+
export * from './AccountSettingsSidnDto';
|
|
8
11
|
export * from './AddressDto';
|
|
9
12
|
export * from './AdminAccountSettingsInput';
|
|
10
13
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
@@ -34,8 +37,10 @@ export * from './CreateLeadInput';
|
|
|
34
37
|
export * from './CreateLeadMessageInput';
|
|
35
38
|
export * from './CreateManualLeadInput';
|
|
36
39
|
export * from './CreateOrderInput';
|
|
40
|
+
export * from './CreateSubscriptionInput';
|
|
37
41
|
export * from './DeleteDomainsInput';
|
|
38
42
|
export * from './DomainDto';
|
|
43
|
+
export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
|
39
44
|
export * from './DomainSellerDto';
|
|
40
45
|
export * from './DomainStats';
|
|
41
46
|
export * from './DomainTransferAgentDto';
|
|
@@ -83,6 +88,9 @@ export * from './LeadDto';
|
|
|
83
88
|
export * from './LeadMessageData';
|
|
84
89
|
export * from './LeadMessageDto';
|
|
85
90
|
export * from './LeadStatusDto';
|
|
91
|
+
export * from './LeaseToOwnConfigurationDto';
|
|
92
|
+
export * from './LeaseToOwnConfigurationInput';
|
|
93
|
+
export * from './LeaseToOwnConfigurationPresetsDto';
|
|
86
94
|
export * from './List200Response';
|
|
87
95
|
export * from './List200Response1';
|
|
88
96
|
export * from './List200Response2';
|
|
@@ -131,6 +139,10 @@ export * from './SetDomainTransferConfirmationInput';
|
|
|
131
139
|
export * from './SetNewPasswordInput';
|
|
132
140
|
export * from './StoreBuyerLocaleInput';
|
|
133
141
|
export * from './StoreUserLocaleInput';
|
|
142
|
+
export * from './SubscriptionCompanyInfoDto';
|
|
143
|
+
export * from './SubscriptionCompanyTaxIdDto';
|
|
144
|
+
export * from './SubscriptionDomainDto';
|
|
145
|
+
export * from './SubscriptionDto';
|
|
134
146
|
export * from './TaskListDomainDto';
|
|
135
147
|
export * from './TaskListDomainTransferDto';
|
|
136
148
|
export * from './TaskListLeadDto';
|
|
@@ -140,6 +152,7 @@ export * from './UpdateDomainInput';
|
|
|
140
152
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
141
153
|
export * from './UpdateLeadInput';
|
|
142
154
|
export * from './UpdateOrderInput';
|
|
155
|
+
export * from './UpdateSubscriptionInput';
|
|
143
156
|
export * from './UserPasswordResetDto';
|
|
144
157
|
export * from './ValidationError';
|
|
145
158
|
export * from './ValidationException';
|
package/dist/models/index.js
CHANGED
|
@@ -23,6 +23,9 @@ __exportStar(require("./AccountNotificationReadStatusDto"), exports);
|
|
|
23
23
|
__exportStar(require("./AccountPaymentProviderSessionDto"), exports);
|
|
24
24
|
__exportStar(require("./AccountSettingsDto"), exports);
|
|
25
25
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
26
|
+
__exportStar(require("./AccountSettingsLandingDto"), exports);
|
|
27
|
+
__exportStar(require("./AccountSettingsLeaseToOwnConfigurationDto"), exports);
|
|
28
|
+
__exportStar(require("./AccountSettingsSidnDto"), exports);
|
|
26
29
|
__exportStar(require("./AddressDto"), exports);
|
|
27
30
|
__exportStar(require("./AdminAccountSettingsInput"), exports);
|
|
28
31
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
@@ -52,8 +55,10 @@ __exportStar(require("./CreateLeadInput"), exports);
|
|
|
52
55
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
53
56
|
__exportStar(require("./CreateManualLeadInput"), exports);
|
|
54
57
|
__exportStar(require("./CreateOrderInput"), exports);
|
|
58
|
+
__exportStar(require("./CreateSubscriptionInput"), exports);
|
|
55
59
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
56
60
|
__exportStar(require("./DomainDto"), exports);
|
|
61
|
+
__exportStar(require("./DomainSalesInformationLeaseToOwnConfigurationDto"), exports);
|
|
57
62
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
58
63
|
__exportStar(require("./DomainStats"), exports);
|
|
59
64
|
__exportStar(require("./DomainTransferAgentDto"), exports);
|
|
@@ -101,6 +106,9 @@ __exportStar(require("./LeadDto"), exports);
|
|
|
101
106
|
__exportStar(require("./LeadMessageData"), exports);
|
|
102
107
|
__exportStar(require("./LeadMessageDto"), exports);
|
|
103
108
|
__exportStar(require("./LeadStatusDto"), exports);
|
|
109
|
+
__exportStar(require("./LeaseToOwnConfigurationDto"), exports);
|
|
110
|
+
__exportStar(require("./LeaseToOwnConfigurationInput"), exports);
|
|
111
|
+
__exportStar(require("./LeaseToOwnConfigurationPresetsDto"), exports);
|
|
104
112
|
__exportStar(require("./List200Response"), exports);
|
|
105
113
|
__exportStar(require("./List200Response1"), exports);
|
|
106
114
|
__exportStar(require("./List200Response2"), exports);
|
|
@@ -149,6 +157,10 @@ __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
|
149
157
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
150
158
|
__exportStar(require("./StoreBuyerLocaleInput"), exports);
|
|
151
159
|
__exportStar(require("./StoreUserLocaleInput"), exports);
|
|
160
|
+
__exportStar(require("./SubscriptionCompanyInfoDto"), exports);
|
|
161
|
+
__exportStar(require("./SubscriptionCompanyTaxIdDto"), exports);
|
|
162
|
+
__exportStar(require("./SubscriptionDomainDto"), exports);
|
|
163
|
+
__exportStar(require("./SubscriptionDto"), exports);
|
|
152
164
|
__exportStar(require("./TaskListDomainDto"), exports);
|
|
153
165
|
__exportStar(require("./TaskListDomainTransferDto"), exports);
|
|
154
166
|
__exportStar(require("./TaskListLeadDto"), exports);
|
|
@@ -158,6 +170,7 @@ __exportStar(require("./UpdateDomainInput"), exports);
|
|
|
158
170
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
159
171
|
__exportStar(require("./UpdateLeadInput"), exports);
|
|
160
172
|
__exportStar(require("./UpdateOrderInput"), exports);
|
|
173
|
+
__exportStar(require("./UpdateSubscriptionInput"), exports);
|
|
161
174
|
__exportStar(require("./UserPasswordResetDto"), exports);
|
|
162
175
|
__exportStar(require("./ValidationError"), exports);
|
|
163
176
|
__exportStar(require("./ValidationException"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AccountPaymentProviderSessionDto,
|
|
19
|
+
AccountSettingsDto,
|
|
19
20
|
AccountSettingsInput,
|
|
20
21
|
BadRequestException,
|
|
21
22
|
IntersectionAccountDtoWithSettingsDtoWithNotificationsDto,
|
|
@@ -27,6 +28,8 @@ import type {
|
|
|
27
28
|
import {
|
|
28
29
|
AccountPaymentProviderSessionDtoFromJSON,
|
|
29
30
|
AccountPaymentProviderSessionDtoToJSON,
|
|
31
|
+
AccountSettingsDtoFromJSON,
|
|
32
|
+
AccountSettingsDtoToJSON,
|
|
30
33
|
AccountSettingsInputFromJSON,
|
|
31
34
|
AccountSettingsInputToJSON,
|
|
32
35
|
BadRequestExceptionFromJSON,
|
|
@@ -108,6 +111,40 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
108
111
|
return await response.value();
|
|
109
112
|
}
|
|
110
113
|
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
async getAccountSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountSettingsDto>> {
|
|
118
|
+
const queryParameters: any = {};
|
|
119
|
+
|
|
120
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
121
|
+
|
|
122
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
123
|
+
const token = this.configuration.accessToken;
|
|
124
|
+
const tokenString = await token("bearer", []);
|
|
125
|
+
|
|
126
|
+
if (tokenString) {
|
|
127
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const response = await this.request({
|
|
131
|
+
path: `/private/accounts/me/settings`,
|
|
132
|
+
method: 'GET',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
}, initOverrides);
|
|
136
|
+
|
|
137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountSettingsDtoFromJSON(jsonValue));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
async getAccountSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSettingsDto> {
|
|
144
|
+
const response = await this.getAccountSettingsRaw(initOverrides);
|
|
145
|
+
return await response.value();
|
|
146
|
+
}
|
|
147
|
+
|
|
111
148
|
/**
|
|
112
149
|
*
|
|
113
150
|
*/
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
BadRequestException,
|
|
18
19
|
BatchImportPreviewDto,
|
|
19
20
|
BatchUpdateDomainsInput,
|
|
20
21
|
DeleteDomainsInput,
|
|
@@ -31,6 +32,8 @@ import type {
|
|
|
31
32
|
ValidationException,
|
|
32
33
|
} from '../models/index';
|
|
33
34
|
import {
|
|
35
|
+
BadRequestExceptionFromJSON,
|
|
36
|
+
BadRequestExceptionToJSON,
|
|
34
37
|
BatchImportPreviewDtoFromJSON,
|
|
35
38
|
BatchImportPreviewDtoToJSON,
|
|
36
39
|
BatchUpdateDomainsInputFromJSON,
|
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
38
38
|
domainName: string;
|
|
39
39
|
includeStats?: boolean;
|
|
40
|
+
subscriptionPeriodicity?: number;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
export interface DomainsPublicApiListRequest {
|
|
@@ -68,6 +69,10 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
68
69
|
queryParameters['includeStats'] = requestParameters['includeStats'];
|
|
69
70
|
}
|
|
70
71
|
|
|
72
|
+
if (requestParameters['subscriptionPeriodicity'] != null) {
|
|
73
|
+
queryParameters['subscriptionPeriodicity'] = requestParameters['subscriptionPeriodicity'];
|
|
74
|
+
}
|
|
75
|
+
|
|
71
76
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
72
77
|
|
|
73
78
|
const response = await this.request({
|
|
@@ -0,0 +1,175 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
BadRequestException,
|
|
19
|
+
CreateSubscriptionInput,
|
|
20
|
+
NotFoundException,
|
|
21
|
+
ObjectId,
|
|
22
|
+
SubscriptionDto,
|
|
23
|
+
ThrottlerException,
|
|
24
|
+
UpdateSubscriptionInput,
|
|
25
|
+
ValidationException,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
import {
|
|
28
|
+
BadRequestExceptionFromJSON,
|
|
29
|
+
BadRequestExceptionToJSON,
|
|
30
|
+
CreateSubscriptionInputFromJSON,
|
|
31
|
+
CreateSubscriptionInputToJSON,
|
|
32
|
+
NotFoundExceptionFromJSON,
|
|
33
|
+
NotFoundExceptionToJSON,
|
|
34
|
+
ObjectIdFromJSON,
|
|
35
|
+
ObjectIdToJSON,
|
|
36
|
+
SubscriptionDtoFromJSON,
|
|
37
|
+
SubscriptionDtoToJSON,
|
|
38
|
+
ThrottlerExceptionFromJSON,
|
|
39
|
+
ThrottlerExceptionToJSON,
|
|
40
|
+
UpdateSubscriptionInputFromJSON,
|
|
41
|
+
UpdateSubscriptionInputToJSON,
|
|
42
|
+
ValidationExceptionFromJSON,
|
|
43
|
+
ValidationExceptionToJSON,
|
|
44
|
+
} from '../models/index';
|
|
45
|
+
|
|
46
|
+
export interface SubscriptionsPublicApiCreateSubscriptionRequest {
|
|
47
|
+
createSubscriptionInput: CreateSubscriptionInput;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface SubscriptionsPublicApiGetSubscriptionRequest {
|
|
51
|
+
subscriptionId: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
|
|
55
|
+
subscriptionId: string;
|
|
56
|
+
updateSubscriptionInput: UpdateSubscriptionInput;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
async createSubscriptionRaw(requestParameters: SubscriptionsPublicApiCreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
68
|
+
if (requestParameters['createSubscriptionInput'] == null) {
|
|
69
|
+
throw new runtime.RequiredError(
|
|
70
|
+
'createSubscriptionInput',
|
|
71
|
+
'Required parameter "createSubscriptionInput" was null or undefined when calling createSubscription().'
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const queryParameters: any = {};
|
|
76
|
+
|
|
77
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
78
|
+
|
|
79
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
80
|
+
|
|
81
|
+
const response = await this.request({
|
|
82
|
+
path: `/subscriptions`,
|
|
83
|
+
method: 'POST',
|
|
84
|
+
headers: headerParameters,
|
|
85
|
+
query: queryParameters,
|
|
86
|
+
body: CreateSubscriptionInputToJSON(requestParameters['createSubscriptionInput']),
|
|
87
|
+
}, initOverrides);
|
|
88
|
+
|
|
89
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
async createSubscription(requestParameters: SubscriptionsPublicApiCreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId> {
|
|
96
|
+
const response = await this.createSubscriptionRaw(requestParameters, initOverrides);
|
|
97
|
+
return await response.value();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
async getSubscriptionRaw(requestParameters: SubscriptionsPublicApiGetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionDto>> {
|
|
104
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
105
|
+
throw new runtime.RequiredError(
|
|
106
|
+
'subscriptionId',
|
|
107
|
+
'Required parameter "subscriptionId" was null or undefined when calling getSubscription().'
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const queryParameters: any = {};
|
|
112
|
+
|
|
113
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
114
|
+
|
|
115
|
+
const response = await this.request({
|
|
116
|
+
path: `/subscriptions/{subscriptionId}`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
117
|
+
method: 'GET',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
}, initOverrides);
|
|
121
|
+
|
|
122
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionDtoFromJSON(jsonValue));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
async getSubscription(requestParameters: SubscriptionsPublicApiGetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDto> {
|
|
129
|
+
const response = await this.getSubscriptionRaw(requestParameters, initOverrides);
|
|
130
|
+
return await response.value();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
async updateSubscriptionRaw(requestParameters: SubscriptionsPublicApiUpdateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
137
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
138
|
+
throw new runtime.RequiredError(
|
|
139
|
+
'subscriptionId',
|
|
140
|
+
'Required parameter "subscriptionId" was null or undefined when calling updateSubscription().'
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (requestParameters['updateSubscriptionInput'] == null) {
|
|
145
|
+
throw new runtime.RequiredError(
|
|
146
|
+
'updateSubscriptionInput',
|
|
147
|
+
'Required parameter "updateSubscriptionInput" was null or undefined when calling updateSubscription().'
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const queryParameters: any = {};
|
|
152
|
+
|
|
153
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
154
|
+
|
|
155
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
156
|
+
|
|
157
|
+
const response = await this.request({
|
|
158
|
+
path: `/subscriptions/{subscriptionId}`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
159
|
+
method: 'PATCH',
|
|
160
|
+
headers: headerParameters,
|
|
161
|
+
query: queryParameters,
|
|
162
|
+
body: UpdateSubscriptionInputToJSON(requestParameters['updateSubscriptionInput']),
|
|
163
|
+
}, initOverrides);
|
|
164
|
+
|
|
165
|
+
return new runtime.VoidApiResponse(response);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
*/
|
|
171
|
+
async updateSubscription(requestParameters: SubscriptionsPublicApiUpdateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
172
|
+
await this.updateSubscriptionRaw(requestParameters, initOverrides);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './LeadsApi';
|
|
|
12
12
|
export * from './LeadsPublicApi';
|
|
13
13
|
export * from './OrdersPublicApi';
|
|
14
14
|
export * from './StripePublicApi';
|
|
15
|
+
export * from './SubscriptionsPublicApi';
|
|
15
16
|
export * from './TasksApi';
|
|
16
17
|
export * from './UsersApi';
|
|
17
18
|
export * from './UsersPublicApi';
|
|
@@ -20,6 +20,27 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { AccountSettingsSidnDto } from './AccountSettingsSidnDto';
|
|
24
|
+
import {
|
|
25
|
+
AccountSettingsSidnDtoFromJSON,
|
|
26
|
+
AccountSettingsSidnDtoFromJSONTyped,
|
|
27
|
+
AccountSettingsSidnDtoToJSON,
|
|
28
|
+
AccountSettingsSidnDtoToJSONTyped,
|
|
29
|
+
} from './AccountSettingsSidnDto';
|
|
30
|
+
import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
31
|
+
import {
|
|
32
|
+
AccountSettingsLeaseToOwnConfigurationDtoFromJSON,
|
|
33
|
+
AccountSettingsLeaseToOwnConfigurationDtoFromJSONTyped,
|
|
34
|
+
AccountSettingsLeaseToOwnConfigurationDtoToJSON,
|
|
35
|
+
AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped,
|
|
36
|
+
} from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
37
|
+
import type { AccountSettingsLandingDto } from './AccountSettingsLandingDto';
|
|
38
|
+
import {
|
|
39
|
+
AccountSettingsLandingDtoFromJSON,
|
|
40
|
+
AccountSettingsLandingDtoFromJSONTyped,
|
|
41
|
+
AccountSettingsLandingDtoToJSON,
|
|
42
|
+
AccountSettingsLandingDtoToJSONTyped,
|
|
43
|
+
} from './AccountSettingsLandingDto';
|
|
23
44
|
|
|
24
45
|
/**
|
|
25
46
|
*
|
|
@@ -51,6 +72,24 @@ export interface AccountSettingsDto {
|
|
|
51
72
|
* @memberof AccountSettingsDto
|
|
52
73
|
*/
|
|
53
74
|
automaticPayouts: boolean;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {AccountSettingsLeaseToOwnConfigurationDto}
|
|
78
|
+
* @memberof AccountSettingsDto
|
|
79
|
+
*/
|
|
80
|
+
leaseToOwn: AccountSettingsLeaseToOwnConfigurationDto;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {AccountSettingsLandingDto}
|
|
84
|
+
* @memberof AccountSettingsDto
|
|
85
|
+
*/
|
|
86
|
+
landing: AccountSettingsLandingDto;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {AccountSettingsSidnDto}
|
|
90
|
+
* @memberof AccountSettingsDto
|
|
91
|
+
*/
|
|
92
|
+
sidn: AccountSettingsSidnDto;
|
|
54
93
|
}
|
|
55
94
|
|
|
56
95
|
/**
|
|
@@ -61,6 +100,9 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
|
|
|
61
100
|
if (!('minBuyNow' in value) || value['minBuyNow'] === undefined) return false;
|
|
62
101
|
if (!('defaultCurrencyCode' in value) || value['defaultCurrencyCode'] === undefined) return false;
|
|
63
102
|
if (!('automaticPayouts' in value) || value['automaticPayouts'] === undefined) return false;
|
|
103
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
104
|
+
if (!('landing' in value) || value['landing'] === undefined) return false;
|
|
105
|
+
if (!('sidn' in value) || value['sidn'] === undefined) return false;
|
|
64
106
|
return true;
|
|
65
107
|
}
|
|
66
108
|
|
|
@@ -78,6 +120,9 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
78
120
|
'minBuyNow': MoneyDtoFromJSON(json['minBuyNow']),
|
|
79
121
|
'defaultCurrencyCode': json['defaultCurrencyCode'],
|
|
80
122
|
'automaticPayouts': json['automaticPayouts'],
|
|
123
|
+
'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
124
|
+
'landing': AccountSettingsLandingDtoFromJSON(json['landing']),
|
|
125
|
+
'sidn': AccountSettingsSidnDtoFromJSON(json['sidn']),
|
|
81
126
|
};
|
|
82
127
|
}
|
|
83
128
|
|
|
@@ -96,6 +141,9 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
|
|
|
96
141
|
'minBuyNow': MoneyDtoToJSON(value['minBuyNow']),
|
|
97
142
|
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
98
143
|
'automaticPayouts': value['automaticPayouts'],
|
|
144
|
+
'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
145
|
+
'landing': AccountSettingsLandingDtoToJSON(value['landing']),
|
|
146
|
+
'sidn': AccountSettingsSidnDtoToJSON(value['sidn']),
|
|
99
147
|
};
|
|
100
148
|
}
|
|
101
149
|
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { LeaseToOwnConfigurationInput } from './LeaseToOwnConfigurationInput';
|
|
24
|
+
import {
|
|
25
|
+
LeaseToOwnConfigurationInputFromJSON,
|
|
26
|
+
LeaseToOwnConfigurationInputFromJSONTyped,
|
|
27
|
+
LeaseToOwnConfigurationInputToJSON,
|
|
28
|
+
LeaseToOwnConfigurationInputToJSONTyped,
|
|
29
|
+
} from './LeaseToOwnConfigurationInput';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -57,6 +64,12 @@ export interface AccountSettingsInput {
|
|
|
57
64
|
* @memberof AccountSettingsInput
|
|
58
65
|
*/
|
|
59
66
|
showRelatedDomains?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {LeaseToOwnConfigurationInput}
|
|
70
|
+
* @memberof AccountSettingsInput
|
|
71
|
+
*/
|
|
72
|
+
leaseToOwn?: LeaseToOwnConfigurationInput;
|
|
60
73
|
}
|
|
61
74
|
|
|
62
75
|
/**
|
|
@@ -81,6 +94,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
81
94
|
'sidnIdcode': json['sidnIdcode'] == null ? undefined : json['sidnIdcode'],
|
|
82
95
|
'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
|
|
83
96
|
'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
|
|
97
|
+
'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnConfigurationInputFromJSON(json['leaseToOwn']),
|
|
84
98
|
};
|
|
85
99
|
}
|
|
86
100
|
|
|
@@ -100,6 +114,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
|
|
|
100
114
|
'sidnIdcode': value['sidnIdcode'],
|
|
101
115
|
'anonymous': value['anonymous'],
|
|
102
116
|
'showRelatedDomains': value['showRelatedDomains'],
|
|
117
|
+
'leaseToOwn': LeaseToOwnConfigurationInputToJSON(value['leaseToOwn']),
|
|
103
118
|
};
|
|
104
119
|
}
|
|
105
120
|
|