@randock/nameshift-api-client 0.0.183 → 0.0.185
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 +20 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +9 -1
- package/dist/apis/AccountsApi.js +50 -0
- package/dist/apis/AdminApi.d.ts +27 -1
- package/dist/apis/AdminApi.js +119 -0
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +1 -1
- 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/TasksApi.d.ts +3 -3
- package/dist/apis/TasksApi.js +1 -1
- 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/ChangeSubscriptionStatusInput.d.ts +42 -0
- package/dist/models/ChangeSubscriptionStatusInput.js +61 -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/GetAllSubscriptions200Response.d.ts +47 -0
- package/dist/models/GetAllSubscriptions200Response.js +62 -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/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/List200Response2.d.ts +3 -3
- package/dist/models/List200Response2.js +3 -3
- 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/SubscriptionListItemDto.d.ts +102 -0
- package/dist/models/SubscriptionListItemDto.js +104 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +64 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.js +73 -0
- package/dist/models/SubscriptionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/SubscriptionListItemDtoDomainInformation.js +59 -0
- package/dist/models/SubscriptionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/SubscriptionListItemDtoSellerAccount.js +63 -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 +19 -0
- package/dist/models/index.js +19 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +37 -0
- package/src/apis/AdminApi.ts +118 -0
- package/src/apis/DomainsApi.ts +9 -6
- package/src/apis/DomainsPublicApi.ts +5 -0
- package/src/apis/SubscriptionsPublicApi.ts +175 -0
- package/src/apis/TasksApi.ts +6 -6
- 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/ChangeSubscriptionStatusInput.ts +79 -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/GetAllSubscriptions200Response.ts +106 -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/List200Response1.ts +10 -10
- package/src/models/List200Response2.ts +10 -10
- 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/SubscriptionListItemDto.ts +189 -0
- package/src/models/SubscriptionListItemDtoBuyerInformation.ts +126 -0
- package/src/models/SubscriptionListItemDtoDomainInformation.ts +84 -0
- package/src/models/SubscriptionListItemDtoSellerAccount.ts +93 -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 +19 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -15,6 +15,7 @@ src/apis/LeadsApi.ts
|
|
|
15
15
|
src/apis/LeadsPublicApi.ts
|
|
16
16
|
src/apis/OrdersPublicApi.ts
|
|
17
17
|
src/apis/StripePublicApi.ts
|
|
18
|
+
src/apis/SubscriptionsPublicApi.ts
|
|
18
19
|
src/apis/TasksApi.ts
|
|
19
20
|
src/apis/UsersApi.ts
|
|
20
21
|
src/apis/UsersPublicApi.ts
|
|
@@ -27,6 +28,9 @@ src/models/AccountNotificationReadStatusDto.ts
|
|
|
27
28
|
src/models/AccountPaymentProviderSessionDto.ts
|
|
28
29
|
src/models/AccountSettingsDto.ts
|
|
29
30
|
src/models/AccountSettingsInput.ts
|
|
31
|
+
src/models/AccountSettingsLandingDto.ts
|
|
32
|
+
src/models/AccountSettingsLeaseToOwnConfigurationDto.ts
|
|
33
|
+
src/models/AccountSettingsSidnDto.ts
|
|
30
34
|
src/models/AddressDto.ts
|
|
31
35
|
src/models/AdminAccountSettingsInput.ts
|
|
32
36
|
src/models/AdminGetAllDomainTransfers200Response.ts
|
|
@@ -46,6 +50,7 @@ src/models/BuyerLeadListItemDomainDto.ts
|
|
|
46
50
|
src/models/BuyerLeadListItemDto.ts
|
|
47
51
|
src/models/BuyerSecurityUserDto.ts
|
|
48
52
|
src/models/ChangeOrderStatusInput.ts
|
|
53
|
+
src/models/ChangeSubscriptionStatusInput.ts
|
|
49
54
|
src/models/ChartDataPoint.ts
|
|
50
55
|
src/models/CompanyInformationDto.ts
|
|
51
56
|
src/models/CompanyTaxIdDto.ts
|
|
@@ -56,8 +61,10 @@ src/models/CreateLeadInput.ts
|
|
|
56
61
|
src/models/CreateLeadMessageInput.ts
|
|
57
62
|
src/models/CreateManualLeadInput.ts
|
|
58
63
|
src/models/CreateOrderInput.ts
|
|
64
|
+
src/models/CreateSubscriptionInput.ts
|
|
59
65
|
src/models/DeleteDomainsInput.ts
|
|
60
66
|
src/models/DomainDto.ts
|
|
67
|
+
src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts
|
|
61
68
|
src/models/DomainSellerDto.ts
|
|
62
69
|
src/models/DomainStats.ts
|
|
63
70
|
src/models/DomainTransferAgentDto.ts
|
|
@@ -84,6 +91,7 @@ src/models/GetAllDomainTransfers200Response.ts
|
|
|
84
91
|
src/models/GetAllInvoices200Response.ts
|
|
85
92
|
src/models/GetAllOrders200Response.ts
|
|
86
93
|
src/models/GetAllOwnedDomains200Response.ts
|
|
94
|
+
src/models/GetAllSubscriptions200Response.ts
|
|
87
95
|
src/models/GetBuyerLeads200Response.ts
|
|
88
96
|
src/models/GetBuyerTransfers200Response.ts
|
|
89
97
|
src/models/HttpException.ts
|
|
@@ -105,6 +113,9 @@ src/models/LeadDto.ts
|
|
|
105
113
|
src/models/LeadMessageData.ts
|
|
106
114
|
src/models/LeadMessageDto.ts
|
|
107
115
|
src/models/LeadStatusDto.ts
|
|
116
|
+
src/models/LeaseToOwnConfigurationDto.ts
|
|
117
|
+
src/models/LeaseToOwnConfigurationInput.ts
|
|
118
|
+
src/models/LeaseToOwnConfigurationPresetsDto.ts
|
|
108
119
|
src/models/List200Response.ts
|
|
109
120
|
src/models/List200Response1.ts
|
|
110
121
|
src/models/List200Response2.ts
|
|
@@ -153,6 +164,14 @@ src/models/SetDomainTransferConfirmationInput.ts
|
|
|
153
164
|
src/models/SetNewPasswordInput.ts
|
|
154
165
|
src/models/StoreBuyerLocaleInput.ts
|
|
155
166
|
src/models/StoreUserLocaleInput.ts
|
|
167
|
+
src/models/SubscriptionCompanyInfoDto.ts
|
|
168
|
+
src/models/SubscriptionCompanyTaxIdDto.ts
|
|
169
|
+
src/models/SubscriptionDomainDto.ts
|
|
170
|
+
src/models/SubscriptionDto.ts
|
|
171
|
+
src/models/SubscriptionListItemDto.ts
|
|
172
|
+
src/models/SubscriptionListItemDtoBuyerInformation.ts
|
|
173
|
+
src/models/SubscriptionListItemDtoDomainInformation.ts
|
|
174
|
+
src/models/SubscriptionListItemDtoSellerAccount.ts
|
|
156
175
|
src/models/TaskListDomainDto.ts
|
|
157
176
|
src/models/TaskListDomainTransferDto.ts
|
|
158
177
|
src/models/TaskListLeadDto.ts
|
|
@@ -162,6 +181,7 @@ src/models/UpdateDomainInput.ts
|
|
|
162
181
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
163
182
|
src/models/UpdateLeadInput.ts
|
|
164
183
|
src/models/UpdateOrderInput.ts
|
|
184
|
+
src/models/UpdateSubscriptionInput.ts
|
|
165
185
|
src/models/UserPasswordResetDto.ts
|
|
166
186
|
src/models/ValidationError.ts
|
|
167
187
|
src/models/ValidationException.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.185
|
|
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.185 --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
|
+
49d58f68f3613dfe496592a253361942b4b63730ec97236684c936d50f1666b63a6cc77af8a0e0daa80bdcc130c58523
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountPaymentProviderSessionDto, AccountSettingsInput, IntersectionAccountDtoWithSettingsDtoWithNotificationsDto, UpdateAccountBillingInformationInput } from '../models/index';
|
|
13
|
+
import type { AccountPaymentProviderSessionDto, AccountSettingsDto, AccountSettingsInput, IntersectionAccountDtoWithSettingsDtoWithNotificationsDto, UpdateAccountBillingInformationInput } from '../models/index';
|
|
14
14
|
export interface AccountsApiGetAccountPaymentProviderSessionRequest {
|
|
15
15
|
accountId: string;
|
|
16
16
|
}
|
|
@@ -38,6 +38,14 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
40
|
getAccountPaymentProviderSession(requestParameters: AccountsApiGetAccountPaymentProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentProviderSessionDto>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
getAccountSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountSettingsDto>>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
getAccountSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSettingsDto>;
|
|
41
49
|
/**
|
|
42
50
|
*
|
|
43
51
|
*/
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -128,6 +128,56 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
130
|
};
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
AccountsApi.prototype.getAccountSettingsRaw = function (initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
136
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
137
|
+
return __generator(this, function (_a) {
|
|
138
|
+
switch (_a.label) {
|
|
139
|
+
case 0:
|
|
140
|
+
queryParameters = {};
|
|
141
|
+
headerParameters = {};
|
|
142
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
143
|
+
token = this.configuration.accessToken;
|
|
144
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
145
|
+
case 1:
|
|
146
|
+
tokenString = _a.sent();
|
|
147
|
+
if (tokenString) {
|
|
148
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
149
|
+
}
|
|
150
|
+
_a.label = 2;
|
|
151
|
+
case 2: return [4 /*yield*/, this.request({
|
|
152
|
+
path: "/private/accounts/me/settings",
|
|
153
|
+
method: 'GET',
|
|
154
|
+
headers: headerParameters,
|
|
155
|
+
query: queryParameters,
|
|
156
|
+
}, initOverrides)];
|
|
157
|
+
case 3:
|
|
158
|
+
response = _a.sent();
|
|
159
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountSettingsDtoFromJSON)(jsonValue); })];
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
AccountsApi.prototype.getAccountSettings = function (initOverrides) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
169
|
+
var response;
|
|
170
|
+
return __generator(this, function (_a) {
|
|
171
|
+
switch (_a.label) {
|
|
172
|
+
case 0: return [4 /*yield*/, this.getAccountSettingsRaw(initOverrides)];
|
|
173
|
+
case 1:
|
|
174
|
+
response = _a.sent();
|
|
175
|
+
return [4 /*yield*/, response.value()];
|
|
176
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
};
|
|
131
181
|
/**
|
|
132
182
|
*
|
|
133
183
|
*/
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountSettingsDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, ListAccounts200Response, ListDomains200Response } from '../models/index';
|
|
13
|
+
import type { AccountSettingsDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, ListAccounts200Response, ListDomains200Response } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -21,6 +21,10 @@ export interface AdminApiChangeOrderStatusRequest {
|
|
|
21
21
|
orderId: string;
|
|
22
22
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
23
23
|
}
|
|
24
|
+
export interface AdminApiChangeSubscriptionStatusRequest {
|
|
25
|
+
subscriptionId: string;
|
|
26
|
+
changeSubscriptionStatusInput: ChangeSubscriptionStatusInput;
|
|
27
|
+
}
|
|
24
28
|
export interface AdminApiDownloadInvoiceRequest {
|
|
25
29
|
invoiceId: string;
|
|
26
30
|
}
|
|
@@ -48,6 +52,12 @@ export interface AdminApiGetAllOwnedDomainsRequest {
|
|
|
48
52
|
limit?: number;
|
|
49
53
|
sortBy?: Array<string>;
|
|
50
54
|
}
|
|
55
|
+
export interface AdminApiGetAllSubscriptionsRequest {
|
|
56
|
+
filter?: object;
|
|
57
|
+
page?: number;
|
|
58
|
+
limit?: number;
|
|
59
|
+
sortBy?: Array<string>;
|
|
60
|
+
}
|
|
51
61
|
export interface AdminApiListAccountsRequest {
|
|
52
62
|
filter?: object;
|
|
53
63
|
page?: number;
|
|
@@ -99,6 +109,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
99
109
|
*
|
|
100
110
|
*/
|
|
101
111
|
changeOrderStatus(requestParameters: AdminApiChangeOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
changeSubscriptionStatusRaw(requestParameters: AdminApiChangeSubscriptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
changeSubscriptionStatus(requestParameters: AdminApiChangeSubscriptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
102
120
|
/**
|
|
103
121
|
*
|
|
104
122
|
*/
|
|
@@ -147,6 +165,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
147
165
|
*
|
|
148
166
|
*/
|
|
149
167
|
getAllOwnedDomains(requestParameters?: AdminApiGetAllOwnedDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOwnedDomains200Response>;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
*/
|
|
171
|
+
getAllSubscriptionsRaw(requestParameters: AdminApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllSubscriptions200Response>>;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
175
|
+
getAllSubscriptions(requestParameters?: AdminApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllSubscriptions200Response>;
|
|
150
176
|
/**
|
|
151
177
|
*
|
|
152
178
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -194,6 +194,62 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
196
|
};
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
*/
|
|
200
|
+
AdminApi.prototype.changeSubscriptionStatusRaw = function (requestParameters, initOverrides) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
202
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
203
|
+
return __generator(this, function (_a) {
|
|
204
|
+
switch (_a.label) {
|
|
205
|
+
case 0:
|
|
206
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
207
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling changeSubscriptionStatus().');
|
|
208
|
+
}
|
|
209
|
+
if (requestParameters['changeSubscriptionStatusInput'] == null) {
|
|
210
|
+
throw new runtime.RequiredError('changeSubscriptionStatusInput', 'Required parameter "changeSubscriptionStatusInput" was null or undefined when calling changeSubscriptionStatus().');
|
|
211
|
+
}
|
|
212
|
+
queryParameters = {};
|
|
213
|
+
headerParameters = {};
|
|
214
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
215
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
216
|
+
token = this.configuration.accessToken;
|
|
217
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
218
|
+
case 1:
|
|
219
|
+
tokenString = _a.sent();
|
|
220
|
+
if (tokenString) {
|
|
221
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
222
|
+
}
|
|
223
|
+
_a.label = 2;
|
|
224
|
+
case 2: return [4 /*yield*/, this.request({
|
|
225
|
+
path: "/admin/subscriptions/{subscriptionId}/status".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
226
|
+
method: 'PATCH',
|
|
227
|
+
headers: headerParameters,
|
|
228
|
+
query: queryParameters,
|
|
229
|
+
body: (0, index_1.ChangeSubscriptionStatusInputToJSON)(requestParameters['changeSubscriptionStatusInput']),
|
|
230
|
+
}, initOverrides)];
|
|
231
|
+
case 3:
|
|
232
|
+
response = _a.sent();
|
|
233
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
*/
|
|
241
|
+
AdminApi.prototype.changeSubscriptionStatus = function (requestParameters, initOverrides) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
243
|
+
return __generator(this, function (_a) {
|
|
244
|
+
switch (_a.label) {
|
|
245
|
+
case 0: return [4 /*yield*/, this.changeSubscriptionStatusRaw(requestParameters, initOverrides)];
|
|
246
|
+
case 1:
|
|
247
|
+
_a.sent();
|
|
248
|
+
return [2 /*return*/];
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
};
|
|
197
253
|
/**
|
|
198
254
|
*
|
|
199
255
|
*/
|
|
@@ -542,6 +598,69 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
542
598
|
});
|
|
543
599
|
});
|
|
544
600
|
};
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
*/
|
|
604
|
+
AdminApi.prototype.getAllSubscriptionsRaw = function (requestParameters, initOverrides) {
|
|
605
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
606
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
607
|
+
return __generator(this, function (_a) {
|
|
608
|
+
switch (_a.label) {
|
|
609
|
+
case 0:
|
|
610
|
+
queryParameters = {};
|
|
611
|
+
if (requestParameters['filter'] != null) {
|
|
612
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
613
|
+
}
|
|
614
|
+
if (requestParameters['page'] != null) {
|
|
615
|
+
queryParameters['page'] = requestParameters['page'];
|
|
616
|
+
}
|
|
617
|
+
if (requestParameters['limit'] != null) {
|
|
618
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
619
|
+
}
|
|
620
|
+
if (requestParameters['sortBy'] != null) {
|
|
621
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
622
|
+
}
|
|
623
|
+
headerParameters = {};
|
|
624
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
625
|
+
token = this.configuration.accessToken;
|
|
626
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
627
|
+
case 1:
|
|
628
|
+
tokenString = _a.sent();
|
|
629
|
+
if (tokenString) {
|
|
630
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
631
|
+
}
|
|
632
|
+
_a.label = 2;
|
|
633
|
+
case 2: return [4 /*yield*/, this.request({
|
|
634
|
+
path: "/admin/subscriptions",
|
|
635
|
+
method: 'GET',
|
|
636
|
+
headers: headerParameters,
|
|
637
|
+
query: queryParameters,
|
|
638
|
+
}, initOverrides)];
|
|
639
|
+
case 3:
|
|
640
|
+
response = _a.sent();
|
|
641
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllSubscriptions200ResponseFromJSON)(jsonValue); })];
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
});
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
*/
|
|
649
|
+
AdminApi.prototype.getAllSubscriptions = function () {
|
|
650
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
651
|
+
var response;
|
|
652
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
653
|
+
return __generator(this, function (_a) {
|
|
654
|
+
switch (_a.label) {
|
|
655
|
+
case 0: return [4 /*yield*/, this.getAllSubscriptionsRaw(requestParameters, initOverrides)];
|
|
656
|
+
case 1:
|
|
657
|
+
response = _a.sent();
|
|
658
|
+
return [4 /*yield*/, response.value()];
|
|
659
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
});
|
|
663
|
+
};
|
|
545
664
|
/**
|
|
546
665
|
*
|
|
547
666
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
13
|
+
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
|
|
14
14
|
export interface DomainsApiBatchImportRequest {
|
|
15
15
|
file?: Blob | null;
|
|
16
16
|
domains?: Array<string>;
|
|
@@ -143,11 +143,11 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
143
143
|
/**
|
|
144
144
|
*
|
|
145
145
|
*/
|
|
146
|
-
listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
146
|
+
listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response2>>;
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
149
|
*/
|
|
150
|
-
list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
150
|
+
list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response2>;
|
|
151
151
|
/**
|
|
152
152
|
*
|
|
153
153
|
*/
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -681,7 +681,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
681
681
|
}, initOverrides)];
|
|
682
682
|
case 3:
|
|
683
683
|
response = _a.sent();
|
|
684
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
684
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response2FromJSON)(jsonValue); })];
|
|
685
685
|
}
|
|
686
686
|
});
|
|
687
687
|
});
|
|
@@ -14,6 +14,7 @@ import type { IntersectionDomainSalesInformationDtoWithDomainStatsDto, List200Re
|
|
|
14
14
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
16
|
includeStats?: boolean;
|
|
17
|
+
subscriptionPeriodicity?: number;
|
|
17
18
|
}
|
|
18
19
|
export interface DomainsPublicApiListRequest {
|
|
19
20
|
filter?: object;
|
|
@@ -91,6 +91,9 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
91
91
|
if (requestParameters['includeStats'] != null) {
|
|
92
92
|
queryParameters['includeStats'] = requestParameters['includeStats'];
|
|
93
93
|
}
|
|
94
|
+
if (requestParameters['subscriptionPeriodicity'] != null) {
|
|
95
|
+
queryParameters['subscriptionPeriodicity'] = requestParameters['subscriptionPeriodicity'];
|
|
96
|
+
}
|
|
94
97
|
headerParameters = {};
|
|
95
98
|
return [4 /*yield*/, this.request({
|
|
96
99
|
path: "/domains/by-name/{domainName}/sales-information".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CreateSubscriptionInput, ObjectId, SubscriptionDto, UpdateSubscriptionInput } from '../models/index';
|
|
14
|
+
export interface SubscriptionsPublicApiCreateSubscriptionRequest {
|
|
15
|
+
createSubscriptionInput: CreateSubscriptionInput;
|
|
16
|
+
}
|
|
17
|
+
export interface SubscriptionsPublicApiGetSubscriptionRequest {
|
|
18
|
+
subscriptionId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
|
|
21
|
+
subscriptionId: string;
|
|
22
|
+
updateSubscriptionInput: UpdateSubscriptionInput;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
createSubscriptionRaw(requestParameters: SubscriptionsPublicApiCreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
createSubscription(requestParameters: SubscriptionsPublicApiCreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
getSubscriptionRaw(requestParameters: SubscriptionsPublicApiGetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionDto>>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
getSubscription(requestParameters: SubscriptionsPublicApiGetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDto>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
updateSubscriptionRaw(requestParameters: SubscriptionsPublicApiUpdateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
updateSubscription(requestParameters: SubscriptionsPublicApiUpdateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
52
|
+
}
|