@randock/nameshift-api-client 0.0.39 → 0.0.41
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 +5 -2
- package/README.md +3 -3
- package/dist/apis/AccountsPublicApi.d.ts +1 -46
- package/dist/apis/AccountsPublicApi.js +0 -181
- package/dist/apis/AdminApi.d.ts +13 -13
- package/dist/apis/AdminApi.js +43 -43
- package/dist/apis/DomainsApi.d.ts +15 -1
- package/dist/apis/DomainsApi.js +63 -0
- package/dist/apis/UsersPublicApi.d.ts +63 -0
- package/dist/apis/UsersPublicApi.js +261 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AdminGetAllDomainTransfers200Response.d.ts +46 -0
- package/dist/models/AdminGetAllDomainTransfers200Response.js +58 -0
- package/dist/models/GetAllDomainTransfers200Response.d.ts +3 -3
- package/dist/models/GetAllDomainTransfers200Response.js +3 -3
- package/dist/models/LoginDto.d.ts +37 -0
- package/dist/models/LoginDto.js +51 -0
- package/dist/models/SellerDomainTransferDomainDto.d.ts +43 -0
- package/dist/models/SellerDomainTransferDomainDto.js +55 -0
- package/dist/models/SellerDomainTransferDto.d.ts +74 -0
- package/dist/models/SellerDomainTransferDto.js +80 -0
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +0 -3
- package/src/apis/AccountsPublicApi.ts +0 -184
- package/src/apis/AdminApi.ts +56 -56
- package/src/apis/DomainsApi.ts +60 -3
- package/src/apis/UsersPublicApi.ts +214 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AdminGetAllDomainTransfers200Response.ts +98 -0
- package/src/models/GetAllDomainTransfers200Response.ts +9 -9
- package/src/models/{TokenDto.ts → LoginDto.ts} +18 -9
- package/src/models/SellerDomainTransferDomainDto.ts +79 -0
- package/src/models/SellerDomainTransferDto.ts +126 -0
- package/src/models/index.ts +4 -2
- package/dist/models/TokenDto.d.ts +0 -31
- package/dist/models/TokenDto.js +0 -47
- package/dist/models/UnauthorizedException.d.ts +0 -43
- package/dist/models/UnauthorizedException.js +0 -55
- package/src/models/UnauthorizedException.ts +0 -79
package/.openapi-generator/FILES
CHANGED
|
@@ -11,6 +11,7 @@ src/apis/DomainsApi.ts
|
|
|
11
11
|
src/apis/DomainsPublicApi.ts
|
|
12
12
|
src/apis/LeadsApi.ts
|
|
13
13
|
src/apis/LeadsPublicApi.ts
|
|
14
|
+
src/apis/UsersPublicApi.ts
|
|
14
15
|
src/apis/index.ts
|
|
15
16
|
src/index.ts
|
|
16
17
|
src/models/AccountAddressDto.ts
|
|
@@ -18,6 +19,7 @@ src/models/AccountAddressInput.ts
|
|
|
18
19
|
src/models/AccountDto.ts
|
|
19
20
|
src/models/AccountFinancialInput.ts
|
|
20
21
|
src/models/AccountSettingsInput.ts
|
|
22
|
+
src/models/AdminGetAllDomainTransfers200Response.ts
|
|
21
23
|
src/models/BatchUpdateDomainsInput.ts
|
|
22
24
|
src/models/BuyDomainInput.ts
|
|
23
25
|
src/models/ChangeOrderStatusInput.ts
|
|
@@ -53,6 +55,7 @@ src/models/List200Response.ts
|
|
|
53
55
|
src/models/ListAccountDto.ts
|
|
54
56
|
src/models/ListAccounts200Response.ts
|
|
55
57
|
src/models/ListLeadMessagesDto.ts
|
|
58
|
+
src/models/LoginDto.ts
|
|
56
59
|
src/models/LoginInput.ts
|
|
57
60
|
src/models/MoneyDto.ts
|
|
58
61
|
src/models/MoneyInput.ts
|
|
@@ -65,10 +68,10 @@ src/models/PutLeadInput.ts
|
|
|
65
68
|
src/models/RegisterAccountInput.ts
|
|
66
69
|
src/models/RelatedSellerDomain.ts
|
|
67
70
|
src/models/SecurityUserDto.ts
|
|
71
|
+
src/models/SellerDomainTransferDomainDto.ts
|
|
72
|
+
src/models/SellerDomainTransferDto.ts
|
|
68
73
|
src/models/SetNewPasswordInput.ts
|
|
69
74
|
src/models/ThrottlerException.ts
|
|
70
|
-
src/models/TokenDto.ts
|
|
71
|
-
src/models/UnauthorizedException.ts
|
|
72
75
|
src/models/UpdateDomainInput.ts
|
|
73
76
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
74
77
|
src/models/UserPasswordResetDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.41
|
|
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.41 --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
|
+
4a98b8c4bbdfab54b517cad838e4f3bbdef1a3c894532a6a80916d78f1aa6e7e003a3af1debb9cffc65cf93579bc6db6
|
|
@@ -10,20 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface AccountsPublicApiForgotPasswordRequestRequest {
|
|
15
|
-
forgotPasswordRequestInput: ForgotPasswordRequestInput;
|
|
16
|
-
}
|
|
17
|
-
export interface AccountsPublicApiGetForgotPasswordRequestRequest {
|
|
18
|
-
passwordRequestId: string;
|
|
19
|
-
}
|
|
20
|
-
export interface AccountsPublicApiLoginRequest {
|
|
21
|
-
loginInput: LoginInput;
|
|
22
|
-
}
|
|
23
|
-
export interface AccountsPublicApiPostNewPasswordRequest {
|
|
24
|
-
passwordRequestId: string;
|
|
25
|
-
setNewPasswordInput: SetNewPasswordInput;
|
|
26
|
-
}
|
|
13
|
+
import type { RegisterAccountInput } from '../models/index';
|
|
27
14
|
export interface AccountsPublicApiRegisterRequest {
|
|
28
15
|
registerAccountInput: RegisterAccountInput;
|
|
29
16
|
}
|
|
@@ -31,38 +18,6 @@ export interface AccountsPublicApiRegisterRequest {
|
|
|
31
18
|
*
|
|
32
19
|
*/
|
|
33
20
|
export declare class AccountsPublicApi extends runtime.BaseAPI {
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
forgotPasswordRequestRaw(requestParameters: AccountsPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
forgotPasswordRequest(requestParameters: AccountsPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
getForgotPasswordRequestRaw(requestParameters: AccountsPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserPasswordResetDto>>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
getForgotPasswordRequest(requestParameters: AccountsPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPasswordResetDto>;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
loginRaw(requestParameters: AccountsPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenDto>>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
|
-
login(requestParameters: AccountsPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenDto>;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
*/
|
|
61
|
-
postNewPasswordRaw(requestParameters: AccountsPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
|
-
postNewPassword(requestParameters: AccountsPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
66
21
|
/**
|
|
67
22
|
*
|
|
68
23
|
*/
|
|
@@ -75,187 +75,6 @@ var AccountsPublicApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function AccountsPublicApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
|
-
AccountsPublicApi.prototype.forgotPasswordRequestRaw = function (requestParameters, initOverrides) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, response;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
if (requestParameters['forgotPasswordRequestInput'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('forgotPasswordRequestInput', 'Required parameter "forgotPasswordRequestInput" was null or undefined when calling forgotPasswordRequest().');
|
|
89
|
-
}
|
|
90
|
-
queryParameters = {};
|
|
91
|
-
headerParameters = {};
|
|
92
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
-
return [4 /*yield*/, this.request({
|
|
94
|
-
path: "/accounts/forgot-password-request",
|
|
95
|
-
method: 'POST',
|
|
96
|
-
headers: headerParameters,
|
|
97
|
-
query: queryParameters,
|
|
98
|
-
body: (0, index_1.ForgotPasswordRequestInputToJSON)(requestParameters['forgotPasswordRequestInput']),
|
|
99
|
-
}, initOverrides)];
|
|
100
|
-
case 1:
|
|
101
|
-
response = _a.sent();
|
|
102
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
*/
|
|
110
|
-
AccountsPublicApi.prototype.forgotPasswordRequest = function (requestParameters, initOverrides) {
|
|
111
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
-
return __generator(this, function (_a) {
|
|
113
|
-
switch (_a.label) {
|
|
114
|
-
case 0: return [4 /*yield*/, this.forgotPasswordRequestRaw(requestParameters, initOverrides)];
|
|
115
|
-
case 1:
|
|
116
|
-
_a.sent();
|
|
117
|
-
return [2 /*return*/];
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
*
|
|
124
|
-
*/
|
|
125
|
-
AccountsPublicApi.prototype.getForgotPasswordRequestRaw = function (requestParameters, initOverrides) {
|
|
126
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
127
|
-
var queryParameters, headerParameters, response;
|
|
128
|
-
return __generator(this, function (_a) {
|
|
129
|
-
switch (_a.label) {
|
|
130
|
-
case 0:
|
|
131
|
-
if (requestParameters['passwordRequestId'] == null) {
|
|
132
|
-
throw new runtime.RequiredError('passwordRequestId', 'Required parameter "passwordRequestId" was null or undefined when calling getForgotPasswordRequest().');
|
|
133
|
-
}
|
|
134
|
-
queryParameters = {};
|
|
135
|
-
headerParameters = {};
|
|
136
|
-
return [4 /*yield*/, this.request({
|
|
137
|
-
path: "/accounts/forgot-password-request/{passwordRequestId}".replace("{".concat("passwordRequestId", "}"), encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
138
|
-
method: 'GET',
|
|
139
|
-
headers: headerParameters,
|
|
140
|
-
query: queryParameters,
|
|
141
|
-
}, initOverrides)];
|
|
142
|
-
case 1:
|
|
143
|
-
response = _a.sent();
|
|
144
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserPasswordResetDtoFromJSON)(jsonValue); })];
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
*
|
|
151
|
-
*/
|
|
152
|
-
AccountsPublicApi.prototype.getForgotPasswordRequest = function (requestParameters, initOverrides) {
|
|
153
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
154
|
-
var response;
|
|
155
|
-
return __generator(this, function (_a) {
|
|
156
|
-
switch (_a.label) {
|
|
157
|
-
case 0: return [4 /*yield*/, this.getForgotPasswordRequestRaw(requestParameters, initOverrides)];
|
|
158
|
-
case 1:
|
|
159
|
-
response = _a.sent();
|
|
160
|
-
return [4 /*yield*/, response.value()];
|
|
161
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
*/
|
|
169
|
-
AccountsPublicApi.prototype.loginRaw = function (requestParameters, initOverrides) {
|
|
170
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
171
|
-
var queryParameters, headerParameters, response;
|
|
172
|
-
return __generator(this, function (_a) {
|
|
173
|
-
switch (_a.label) {
|
|
174
|
-
case 0:
|
|
175
|
-
if (requestParameters['loginInput'] == null) {
|
|
176
|
-
throw new runtime.RequiredError('loginInput', 'Required parameter "loginInput" was null or undefined when calling login().');
|
|
177
|
-
}
|
|
178
|
-
queryParameters = {};
|
|
179
|
-
headerParameters = {};
|
|
180
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
181
|
-
return [4 /*yield*/, this.request({
|
|
182
|
-
path: "/accounts/login",
|
|
183
|
-
method: 'POST',
|
|
184
|
-
headers: headerParameters,
|
|
185
|
-
query: queryParameters,
|
|
186
|
-
body: (0, index_1.LoginInputToJSON)(requestParameters['loginInput']),
|
|
187
|
-
}, initOverrides)];
|
|
188
|
-
case 1:
|
|
189
|
-
response = _a.sent();
|
|
190
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TokenDtoFromJSON)(jsonValue); })];
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
*
|
|
197
|
-
*/
|
|
198
|
-
AccountsPublicApi.prototype.login = function (requestParameters, initOverrides) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
-
var response;
|
|
201
|
-
return __generator(this, function (_a) {
|
|
202
|
-
switch (_a.label) {
|
|
203
|
-
case 0: return [4 /*yield*/, this.loginRaw(requestParameters, initOverrides)];
|
|
204
|
-
case 1:
|
|
205
|
-
response = _a.sent();
|
|
206
|
-
return [4 /*yield*/, response.value()];
|
|
207
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
*
|
|
214
|
-
*/
|
|
215
|
-
AccountsPublicApi.prototype.postNewPasswordRaw = function (requestParameters, initOverrides) {
|
|
216
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
217
|
-
var queryParameters, headerParameters, response;
|
|
218
|
-
return __generator(this, function (_a) {
|
|
219
|
-
switch (_a.label) {
|
|
220
|
-
case 0:
|
|
221
|
-
if (requestParameters['passwordRequestId'] == null) {
|
|
222
|
-
throw new runtime.RequiredError('passwordRequestId', 'Required parameter "passwordRequestId" was null or undefined when calling postNewPassword().');
|
|
223
|
-
}
|
|
224
|
-
if (requestParameters['setNewPasswordInput'] == null) {
|
|
225
|
-
throw new runtime.RequiredError('setNewPasswordInput', 'Required parameter "setNewPasswordInput" was null or undefined when calling postNewPassword().');
|
|
226
|
-
}
|
|
227
|
-
queryParameters = {};
|
|
228
|
-
headerParameters = {};
|
|
229
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
230
|
-
return [4 /*yield*/, this.request({
|
|
231
|
-
path: "/accounts/forgot-password-request/{passwordRequestId}".replace("{".concat("passwordRequestId", "}"), encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
232
|
-
method: 'POST',
|
|
233
|
-
headers: headerParameters,
|
|
234
|
-
query: queryParameters,
|
|
235
|
-
body: (0, index_1.SetNewPasswordInputToJSON)(requestParameters['setNewPasswordInput']),
|
|
236
|
-
}, initOverrides)];
|
|
237
|
-
case 1:
|
|
238
|
-
response = _a.sent();
|
|
239
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
/**
|
|
245
|
-
*
|
|
246
|
-
*/
|
|
247
|
-
AccountsPublicApi.prototype.postNewPassword = function (requestParameters, initOverrides) {
|
|
248
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
249
|
-
return __generator(this, function (_a) {
|
|
250
|
-
switch (_a.label) {
|
|
251
|
-
case 0: return [4 /*yield*/, this.postNewPasswordRaw(requestParameters, initOverrides)];
|
|
252
|
-
case 1:
|
|
253
|
-
_a.sent();
|
|
254
|
-
return [2 /*return*/];
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
});
|
|
258
|
-
};
|
|
259
78
|
/**
|
|
260
79
|
*
|
|
261
80
|
*/
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface
|
|
13
|
+
import type { AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ListAccounts200Response, UpdateDomainTransferAuthCodeInput } from '../models/index';
|
|
14
|
+
export interface AdminApiAdminChangeDomainTransferAuthCodeRequest {
|
|
15
15
|
domainId: string;
|
|
16
16
|
transferId: string;
|
|
17
17
|
updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
20
|
-
orderId: string;
|
|
21
|
-
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
22
|
-
}
|
|
23
|
-
export interface AdminApiGetAllDomainTransfersRequest {
|
|
19
|
+
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
24
20
|
filter?: object;
|
|
25
21
|
page?: number;
|
|
26
22
|
limit?: number;
|
|
27
23
|
sortBy?: Array<string>;
|
|
28
24
|
}
|
|
25
|
+
export interface AdminApiChangeOrderStatusRequest {
|
|
26
|
+
orderId: string;
|
|
27
|
+
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
28
|
+
}
|
|
29
29
|
export interface AdminApiListAccountsRequest {
|
|
30
30
|
filter?: object;
|
|
31
31
|
page?: number;
|
|
@@ -39,27 +39,27 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
adminChangeDomainTransferAuthCodeRaw(requestParameters: AdminApiAdminChangeDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
adminChangeDomainTransferAuthCode(requestParameters: AdminApiAdminChangeDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
adminGetAllDomainTransfersRaw(requestParameters: AdminApiAdminGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminGetAllDomainTransfers200Response>>;
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
adminGetAllDomainTransfers(requestParameters?: AdminApiAdminGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminGetAllDomainTransfers200Response>;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
changeOrderStatusRaw(requestParameters: AdminApiChangeOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
changeOrderStatus(requestParameters: AdminApiChangeOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -78,20 +78,20 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
AdminApi.prototype.
|
|
81
|
+
AdminApi.prototype.adminChangeDomainTransferAuthCodeRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
switch (_a.label) {
|
|
86
86
|
case 0:
|
|
87
87
|
if (requestParameters['domainId'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling
|
|
88
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling adminChangeDomainTransferAuthCode().');
|
|
89
89
|
}
|
|
90
90
|
if (requestParameters['transferId'] == null) {
|
|
91
|
-
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling
|
|
91
|
+
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling adminChangeDomainTransferAuthCode().');
|
|
92
92
|
}
|
|
93
93
|
if (requestParameters['updateDomainTransferAuthCodeInput'] == null) {
|
|
94
|
-
throw new runtime.RequiredError('updateDomainTransferAuthCodeInput', 'Required parameter "updateDomainTransferAuthCodeInput" was null or undefined when calling
|
|
94
|
+
throw new runtime.RequiredError('updateDomainTransferAuthCodeInput', 'Required parameter "updateDomainTransferAuthCodeInput" was null or undefined when calling adminChangeDomainTransferAuthCode().');
|
|
95
95
|
}
|
|
96
96
|
queryParameters = {};
|
|
97
97
|
headerParameters = {};
|
|
@@ -122,11 +122,11 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
122
122
|
/**
|
|
123
123
|
*
|
|
124
124
|
*/
|
|
125
|
-
AdminApi.prototype.
|
|
125
|
+
AdminApi.prototype.adminChangeDomainTransferAuthCode = function (requestParameters, initOverrides) {
|
|
126
126
|
return __awaiter(this, void 0, void 0, function () {
|
|
127
127
|
return __generator(this, function (_a) {
|
|
128
128
|
switch (_a.label) {
|
|
129
|
-
case 0: return [4 /*yield*/, this.
|
|
129
|
+
case 0: return [4 /*yield*/, this.adminChangeDomainTransferAuthCodeRaw(requestParameters, initOverrides)];
|
|
130
130
|
case 1:
|
|
131
131
|
_a.sent();
|
|
132
132
|
return [2 /*return*/];
|
|
@@ -137,21 +137,26 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
137
137
|
/**
|
|
138
138
|
*
|
|
139
139
|
*/
|
|
140
|
-
AdminApi.prototype.
|
|
140
|
+
AdminApi.prototype.adminGetAllDomainTransfersRaw = function (requestParameters, initOverrides) {
|
|
141
141
|
return __awaiter(this, void 0, void 0, function () {
|
|
142
142
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
143
143
|
return __generator(this, function (_a) {
|
|
144
144
|
switch (_a.label) {
|
|
145
145
|
case 0:
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
queryParameters = {};
|
|
147
|
+
if (requestParameters['filter'] != null) {
|
|
148
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
148
149
|
}
|
|
149
|
-
if (requestParameters['
|
|
150
|
-
|
|
150
|
+
if (requestParameters['page'] != null) {
|
|
151
|
+
queryParameters['page'] = requestParameters['page'];
|
|
152
|
+
}
|
|
153
|
+
if (requestParameters['limit'] != null) {
|
|
154
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
155
|
+
}
|
|
156
|
+
if (requestParameters['sortBy'] != null) {
|
|
157
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
151
158
|
}
|
|
152
|
-
queryParameters = {};
|
|
153
159
|
headerParameters = {};
|
|
154
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
155
160
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
156
161
|
token = this.configuration.accessToken;
|
|
157
162
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -162,15 +167,14 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
162
167
|
}
|
|
163
168
|
_a.label = 2;
|
|
164
169
|
case 2: return [4 /*yield*/, this.request({
|
|
165
|
-
path: "/admin/
|
|
166
|
-
method: '
|
|
170
|
+
path: "/admin/domains/transfers",
|
|
171
|
+
method: 'GET',
|
|
167
172
|
headers: headerParameters,
|
|
168
173
|
query: queryParameters,
|
|
169
|
-
body: (0, index_1.ChangeOrderStatusInputToJSON)(requestParameters['changeOrderStatusInput']),
|
|
170
174
|
}, initOverrides)];
|
|
171
175
|
case 3:
|
|
172
176
|
response = _a.sent();
|
|
173
|
-
return [2 /*return*/, new runtime.
|
|
177
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AdminGetAllDomainTransfers200ResponseFromJSON)(jsonValue); })];
|
|
174
178
|
}
|
|
175
179
|
});
|
|
176
180
|
});
|
|
@@ -178,14 +182,17 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
178
182
|
/**
|
|
179
183
|
*
|
|
180
184
|
*/
|
|
181
|
-
AdminApi.prototype.
|
|
185
|
+
AdminApi.prototype.adminGetAllDomainTransfers = function (requestParameters, initOverrides) {
|
|
186
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
182
187
|
return __awaiter(this, void 0, void 0, function () {
|
|
188
|
+
var response;
|
|
183
189
|
return __generator(this, function (_a) {
|
|
184
190
|
switch (_a.label) {
|
|
185
|
-
case 0: return [4 /*yield*/, this.
|
|
191
|
+
case 0: return [4 /*yield*/, this.adminGetAllDomainTransfersRaw(requestParameters, initOverrides)];
|
|
186
192
|
case 1:
|
|
187
|
-
_a.sent();
|
|
188
|
-
return [
|
|
193
|
+
response = _a.sent();
|
|
194
|
+
return [4 /*yield*/, response.value()];
|
|
195
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
189
196
|
}
|
|
190
197
|
});
|
|
191
198
|
});
|
|
@@ -193,26 +200,21 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
193
200
|
/**
|
|
194
201
|
*
|
|
195
202
|
*/
|
|
196
|
-
AdminApi.prototype.
|
|
203
|
+
AdminApi.prototype.changeOrderStatusRaw = function (requestParameters, initOverrides) {
|
|
197
204
|
return __awaiter(this, void 0, void 0, function () {
|
|
198
205
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
199
206
|
return __generator(this, function (_a) {
|
|
200
207
|
switch (_a.label) {
|
|
201
208
|
case 0:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
queryParameters['filter'] = requestParameters['filter'];
|
|
205
|
-
}
|
|
206
|
-
if (requestParameters['page'] != null) {
|
|
207
|
-
queryParameters['page'] = requestParameters['page'];
|
|
208
|
-
}
|
|
209
|
-
if (requestParameters['limit'] != null) {
|
|
210
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
209
|
+
if (requestParameters['orderId'] == null) {
|
|
210
|
+
throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling changeOrderStatus().');
|
|
211
211
|
}
|
|
212
|
-
if (requestParameters['
|
|
213
|
-
|
|
212
|
+
if (requestParameters['changeOrderStatusInput'] == null) {
|
|
213
|
+
throw new runtime.RequiredError('changeOrderStatusInput', 'Required parameter "changeOrderStatusInput" was null or undefined when calling changeOrderStatus().');
|
|
214
214
|
}
|
|
215
|
+
queryParameters = {};
|
|
215
216
|
headerParameters = {};
|
|
217
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
216
218
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
217
219
|
token = this.configuration.accessToken;
|
|
218
220
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -223,14 +225,15 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
223
225
|
}
|
|
224
226
|
_a.label = 2;
|
|
225
227
|
case 2: return [4 /*yield*/, this.request({
|
|
226
|
-
path: "/admin/
|
|
227
|
-
method: '
|
|
228
|
+
path: "/admin/orders/{orderId}/status".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
|
|
229
|
+
method: 'PATCH',
|
|
228
230
|
headers: headerParameters,
|
|
229
231
|
query: queryParameters,
|
|
232
|
+
body: (0, index_1.ChangeOrderStatusInputToJSON)(requestParameters['changeOrderStatusInput']),
|
|
230
233
|
}, initOverrides)];
|
|
231
234
|
case 3:
|
|
232
235
|
response = _a.sent();
|
|
233
|
-
return [2 /*return*/, new runtime.
|
|
236
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
234
237
|
}
|
|
235
238
|
});
|
|
236
239
|
});
|
|
@@ -238,17 +241,14 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
238
241
|
/**
|
|
239
242
|
*
|
|
240
243
|
*/
|
|
241
|
-
AdminApi.prototype.
|
|
242
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
244
|
+
AdminApi.prototype.changeOrderStatus = function (requestParameters, initOverrides) {
|
|
243
245
|
return __awaiter(this, void 0, void 0, function () {
|
|
244
|
-
var response;
|
|
245
246
|
return __generator(this, function (_a) {
|
|
246
247
|
switch (_a.label) {
|
|
247
|
-
case 0: return [4 /*yield*/, this.
|
|
248
|
+
case 0: return [4 /*yield*/, this.changeOrderStatusRaw(requestParameters, initOverrides)];
|
|
248
249
|
case 1:
|
|
249
|
-
|
|
250
|
-
return [
|
|
251
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
250
|
+
_a.sent();
|
|
251
|
+
return [2 /*return*/];
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
});
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response, UpdateDomainInput } from '../models/index';
|
|
13
|
+
import type { BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response, UpdateDomainInput } from '../models/index';
|
|
14
14
|
export interface DomainsApiBatchImportRequest {
|
|
15
15
|
file?: Blob;
|
|
16
16
|
domains?: Array<string>;
|
|
@@ -27,6 +27,12 @@ export interface DomainsApiDeleteDomainsRequest {
|
|
|
27
27
|
export interface DomainsApiGetRequest {
|
|
28
28
|
domainId: string;
|
|
29
29
|
}
|
|
30
|
+
export interface DomainsApiGetAllDomainTransfersRequest {
|
|
31
|
+
filter?: object;
|
|
32
|
+
page?: number;
|
|
33
|
+
limit?: number;
|
|
34
|
+
sortBy?: Array<string>;
|
|
35
|
+
}
|
|
30
36
|
export interface DomainsApiListRequest {
|
|
31
37
|
filter?: object;
|
|
32
38
|
page?: number;
|
|
@@ -81,6 +87,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
81
87
|
*
|
|
82
88
|
*/
|
|
83
89
|
get(requestParameters: DomainsApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainDtoWithHijackerDtoWithAccountDto>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
getAllDomainTransfersRaw(requestParameters: DomainsApiGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllDomainTransfers200Response>>;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
getAllDomainTransfers(requestParameters?: DomainsApiGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllDomainTransfers200Response>;
|
|
84
98
|
/**
|
|
85
99
|
*
|
|
86
100
|
*/
|