@randock/nameshift-api-client 0.0.70 → 0.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +2 -40
- package/dist/apis/AccountsApi.js +4 -56
- package/dist/apis/AccountsPublicApi.d.ts +0 -9
- package/dist/apis/AccountsPublicApi.js +1 -14
- package/dist/apis/AdminApi.d.ts +3 -39
- package/dist/apis/AdminApi.js +10 -59
- package/dist/apis/BuyersApi.d.ts +6 -53
- package/dist/apis/BuyersApi.js +11 -75
- package/dist/apis/BuyersPublicApi.d.ts +0 -18
- package/dist/apis/BuyersPublicApi.js +1 -27
- package/dist/apis/DashboardApi.d.ts +2 -13
- package/dist/apis/DashboardApi.js +4 -17
- package/dist/apis/DomainsApi.d.ts +3 -93
- package/dist/apis/DomainsApi.js +10 -137
- package/dist/apis/DomainsPublicApi.d.ts +0 -9
- package/dist/apis/DomainsPublicApi.js +1 -14
- package/dist/apis/LeadsApi.d.ts +2 -58
- package/dist/apis/LeadsApi.js +4 -82
- package/dist/apis/LeadsPublicApi.d.ts +14 -48
- package/dist/apis/LeadsPublicApi.js +54 -77
- package/dist/apis/OrdersPublicApi.d.ts +0 -27
- package/dist/apis/OrdersPublicApi.js +1 -40
- package/dist/apis/UsersApi.d.ts +3 -12
- package/dist/apis/UsersApi.js +5 -18
- package/dist/apis/UsersPublicApi.d.ts +0 -36
- package/dist/apis/UsersPublicApi.js +1 -53
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +3 -87
- package/src/apis/AccountsPublicApi.ts +0 -21
- package/src/apis/AdminApi.ts +3 -84
- package/src/apis/BuyersApi.ts +9 -113
- package/src/apis/BuyersPublicApi.ts +0 -41
- package/src/apis/DashboardApi.ts +3 -27
- package/src/apis/DomainsApi.ts +3 -204
- package/src/apis/DomainsPublicApi.ts +0 -21
- package/src/apis/LeadsApi.ts +3 -127
- package/src/apis/LeadsPublicApi.ts +43 -108
- package/src/apis/OrdersPublicApi.ts +0 -61
- package/src/apis/UsersApi.ts +5 -26
- package/src/apis/UsersPublicApi.ts +0 -81
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.UsersPublicApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -84,18 +84,12 @@ var UsersPublicApi = /** @class */ (function (_super) {
|
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
switch (_a.label) {
|
|
86
86
|
case 0:
|
|
87
|
-
if (requestParameters['xLocale'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling forgotPasswordRequest().');
|
|
89
|
-
}
|
|
90
87
|
if (requestParameters['forgotPasswordRequestInput'] == null) {
|
|
91
88
|
throw new runtime.RequiredError('forgotPasswordRequestInput', 'Required parameter "forgotPasswordRequestInput" was null or undefined when calling forgotPasswordRequest().');
|
|
92
89
|
}
|
|
93
90
|
queryParameters = {};
|
|
94
91
|
headerParameters = {};
|
|
95
92
|
headerParameters['Content-Type'] = 'application/json';
|
|
96
|
-
if (requestParameters['xLocale'] != null) {
|
|
97
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
98
|
-
}
|
|
99
93
|
return [4 /*yield*/, this.request({
|
|
100
94
|
path: "/users/forgot-password-request",
|
|
101
95
|
method: 'POST',
|
|
@@ -137,14 +131,8 @@ var UsersPublicApi = /** @class */ (function (_super) {
|
|
|
137
131
|
if (requestParameters['passwordRequestId'] == null) {
|
|
138
132
|
throw new runtime.RequiredError('passwordRequestId', 'Required parameter "passwordRequestId" was null or undefined when calling getForgotPasswordRequest().');
|
|
139
133
|
}
|
|
140
|
-
if (requestParameters['xLocale'] == null) {
|
|
141
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getForgotPasswordRequest().');
|
|
142
|
-
}
|
|
143
134
|
queryParameters = {};
|
|
144
135
|
headerParameters = {};
|
|
145
|
-
if (requestParameters['xLocale'] != null) {
|
|
146
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
147
|
-
}
|
|
148
136
|
return [4 /*yield*/, this.request({
|
|
149
137
|
path: "/users/forgot-password-request/{passwordRequestId}".replace("{".concat("passwordRequestId", "}"), encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
150
138
|
method: 'GET',
|
|
@@ -184,18 +172,12 @@ var UsersPublicApi = /** @class */ (function (_super) {
|
|
|
184
172
|
return __generator(this, function (_a) {
|
|
185
173
|
switch (_a.label) {
|
|
186
174
|
case 0:
|
|
187
|
-
if (requestParameters['xLocale'] == null) {
|
|
188
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling login().');
|
|
189
|
-
}
|
|
190
175
|
if (requestParameters['loginInput'] == null) {
|
|
191
176
|
throw new runtime.RequiredError('loginInput', 'Required parameter "loginInput" was null or undefined when calling login().');
|
|
192
177
|
}
|
|
193
178
|
queryParameters = {};
|
|
194
179
|
headerParameters = {};
|
|
195
180
|
headerParameters['Content-Type'] = 'application/json';
|
|
196
|
-
if (requestParameters['xLocale'] != null) {
|
|
197
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
198
|
-
}
|
|
199
181
|
return [4 /*yield*/, this.request({
|
|
200
182
|
path: "/users/login",
|
|
201
183
|
method: 'POST',
|
|
@@ -239,18 +221,12 @@ var UsersPublicApi = /** @class */ (function (_super) {
|
|
|
239
221
|
if (requestParameters['passwordRequestId'] == null) {
|
|
240
222
|
throw new runtime.RequiredError('passwordRequestId', 'Required parameter "passwordRequestId" was null or undefined when calling postNewPassword().');
|
|
241
223
|
}
|
|
242
|
-
if (requestParameters['xLocale'] == null) {
|
|
243
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling postNewPassword().');
|
|
244
|
-
}
|
|
245
224
|
if (requestParameters['setNewPasswordInput'] == null) {
|
|
246
225
|
throw new runtime.RequiredError('setNewPasswordInput', 'Required parameter "setNewPasswordInput" was null or undefined when calling postNewPassword().');
|
|
247
226
|
}
|
|
248
227
|
queryParameters = {};
|
|
249
228
|
headerParameters = {};
|
|
250
229
|
headerParameters['Content-Type'] = 'application/json';
|
|
251
|
-
if (requestParameters['xLocale'] != null) {
|
|
252
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
253
|
-
}
|
|
254
230
|
return [4 /*yield*/, this.request({
|
|
255
231
|
path: "/users/forgot-password-request/{passwordRequestId}".replace("{".concat("passwordRequestId", "}"), encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
256
232
|
method: 'POST',
|
|
@@ -283,31 +259,3 @@ var UsersPublicApi = /** @class */ (function (_super) {
|
|
|
283
259
|
return UsersPublicApi;
|
|
284
260
|
}(runtime.BaseAPI));
|
|
285
261
|
exports.UsersPublicApi = UsersPublicApi;
|
|
286
|
-
/**
|
|
287
|
-
* @export
|
|
288
|
-
*/
|
|
289
|
-
exports.ForgotPasswordRequestXLocaleEnum = {
|
|
290
|
-
NL_NL: 'nl-nl',
|
|
291
|
-
EN_GB: 'en-gb'
|
|
292
|
-
};
|
|
293
|
-
/**
|
|
294
|
-
* @export
|
|
295
|
-
*/
|
|
296
|
-
exports.GetForgotPasswordRequestXLocaleEnum = {
|
|
297
|
-
NL_NL: 'nl-nl',
|
|
298
|
-
EN_GB: 'en-gb'
|
|
299
|
-
};
|
|
300
|
-
/**
|
|
301
|
-
* @export
|
|
302
|
-
*/
|
|
303
|
-
exports.LoginXLocaleEnum = {
|
|
304
|
-
NL_NL: 'nl-nl',
|
|
305
|
-
EN_GB: 'en-gb'
|
|
306
|
-
};
|
|
307
|
-
/**
|
|
308
|
-
* @export
|
|
309
|
-
*/
|
|
310
|
-
exports.PostNewPasswordXLocaleEnum = {
|
|
311
|
-
NL_NL: 'nl-nl',
|
|
312
|
-
EN_GB: 'en-gb'
|
|
313
|
-
};
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -37,25 +37,18 @@ import {
|
|
|
37
37
|
ValidationExceptionToJSON,
|
|
38
38
|
} from '../models/index';
|
|
39
39
|
|
|
40
|
-
export interface AccountsApiMeRequest {
|
|
41
|
-
xLocale: MeXLocaleEnum;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
40
|
export interface AccountsApiUpdateAddressRequest {
|
|
45
41
|
accountId: string;
|
|
46
|
-
xLocale: UpdateAddressXLocaleEnum;
|
|
47
42
|
accountAddressInput: AccountAddressInput;
|
|
48
43
|
}
|
|
49
44
|
|
|
50
45
|
export interface AccountsApiUpdateFinancialRequest {
|
|
51
46
|
accountId: string;
|
|
52
|
-
xLocale: UpdateFinancialXLocaleEnum;
|
|
53
47
|
accountFinancialInput: AccountFinancialInput;
|
|
54
48
|
}
|
|
55
49
|
|
|
56
50
|
export interface AccountsApiUpdateSettingsRequest {
|
|
57
51
|
accountId: string;
|
|
58
|
-
xLocale: UpdateSettingsXLocaleEnum;
|
|
59
52
|
accountSettingsInput: AccountSettingsInput;
|
|
60
53
|
}
|
|
61
54
|
|
|
@@ -67,22 +60,11 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
67
60
|
/**
|
|
68
61
|
*
|
|
69
62
|
*/
|
|
70
|
-
async meRaw(
|
|
71
|
-
if (requestParameters['xLocale'] == null) {
|
|
72
|
-
throw new runtime.RequiredError(
|
|
73
|
-
'xLocale',
|
|
74
|
-
'Required parameter "xLocale" was null or undefined when calling me().'
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
63
|
+
async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>> {
|
|
78
64
|
const queryParameters: any = {};
|
|
79
65
|
|
|
80
66
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
81
67
|
|
|
82
|
-
if (requestParameters['xLocale'] != null) {
|
|
83
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
68
|
if (this.configuration && this.configuration.accessToken) {
|
|
87
69
|
const token = this.configuration.accessToken;
|
|
88
70
|
const tokenString = await token("bearer", []);
|
|
@@ -104,8 +86,8 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
104
86
|
/**
|
|
105
87
|
*
|
|
106
88
|
*/
|
|
107
|
-
async me(
|
|
108
|
-
const response = await this.meRaw(
|
|
89
|
+
async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto> {
|
|
90
|
+
const response = await this.meRaw(initOverrides);
|
|
109
91
|
return await response.value();
|
|
110
92
|
}
|
|
111
93
|
|
|
@@ -120,13 +102,6 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
120
102
|
);
|
|
121
103
|
}
|
|
122
104
|
|
|
123
|
-
if (requestParameters['xLocale'] == null) {
|
|
124
|
-
throw new runtime.RequiredError(
|
|
125
|
-
'xLocale',
|
|
126
|
-
'Required parameter "xLocale" was null or undefined when calling updateAddress().'
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
105
|
if (requestParameters['accountAddressInput'] == null) {
|
|
131
106
|
throw new runtime.RequiredError(
|
|
132
107
|
'accountAddressInput',
|
|
@@ -140,10 +115,6 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
140
115
|
|
|
141
116
|
headerParameters['Content-Type'] = 'application/json';
|
|
142
117
|
|
|
143
|
-
if (requestParameters['xLocale'] != null) {
|
|
144
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
118
|
if (this.configuration && this.configuration.accessToken) {
|
|
148
119
|
const token = this.configuration.accessToken;
|
|
149
120
|
const tokenString = await token("bearer", []);
|
|
@@ -181,13 +152,6 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
181
152
|
);
|
|
182
153
|
}
|
|
183
154
|
|
|
184
|
-
if (requestParameters['xLocale'] == null) {
|
|
185
|
-
throw new runtime.RequiredError(
|
|
186
|
-
'xLocale',
|
|
187
|
-
'Required parameter "xLocale" was null or undefined when calling updateFinancial().'
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
155
|
if (requestParameters['accountFinancialInput'] == null) {
|
|
192
156
|
throw new runtime.RequiredError(
|
|
193
157
|
'accountFinancialInput',
|
|
@@ -201,10 +165,6 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
201
165
|
|
|
202
166
|
headerParameters['Content-Type'] = 'application/json';
|
|
203
167
|
|
|
204
|
-
if (requestParameters['xLocale'] != null) {
|
|
205
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
168
|
if (this.configuration && this.configuration.accessToken) {
|
|
209
169
|
const token = this.configuration.accessToken;
|
|
210
170
|
const tokenString = await token("bearer", []);
|
|
@@ -242,13 +202,6 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
242
202
|
);
|
|
243
203
|
}
|
|
244
204
|
|
|
245
|
-
if (requestParameters['xLocale'] == null) {
|
|
246
|
-
throw new runtime.RequiredError(
|
|
247
|
-
'xLocale',
|
|
248
|
-
'Required parameter "xLocale" was null or undefined when calling updateSettings().'
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
205
|
if (requestParameters['accountSettingsInput'] == null) {
|
|
253
206
|
throw new runtime.RequiredError(
|
|
254
207
|
'accountSettingsInput',
|
|
@@ -262,10 +215,6 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
262
215
|
|
|
263
216
|
headerParameters['Content-Type'] = 'application/json';
|
|
264
217
|
|
|
265
|
-
if (requestParameters['xLocale'] != null) {
|
|
266
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
218
|
if (this.configuration && this.configuration.accessToken) {
|
|
270
219
|
const token = this.configuration.accessToken;
|
|
271
220
|
const tokenString = await token("bearer", []);
|
|
@@ -293,36 +242,3 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
293
242
|
}
|
|
294
243
|
|
|
295
244
|
}
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* @export
|
|
299
|
-
*/
|
|
300
|
-
export const MeXLocaleEnum = {
|
|
301
|
-
NL_NL: 'nl-nl',
|
|
302
|
-
EN_GB: 'en-gb'
|
|
303
|
-
} as const;
|
|
304
|
-
export type MeXLocaleEnum = typeof MeXLocaleEnum[keyof typeof MeXLocaleEnum];
|
|
305
|
-
/**
|
|
306
|
-
* @export
|
|
307
|
-
*/
|
|
308
|
-
export const UpdateAddressXLocaleEnum = {
|
|
309
|
-
NL_NL: 'nl-nl',
|
|
310
|
-
EN_GB: 'en-gb'
|
|
311
|
-
} as const;
|
|
312
|
-
export type UpdateAddressXLocaleEnum = typeof UpdateAddressXLocaleEnum[keyof typeof UpdateAddressXLocaleEnum];
|
|
313
|
-
/**
|
|
314
|
-
* @export
|
|
315
|
-
*/
|
|
316
|
-
export const UpdateFinancialXLocaleEnum = {
|
|
317
|
-
NL_NL: 'nl-nl',
|
|
318
|
-
EN_GB: 'en-gb'
|
|
319
|
-
} as const;
|
|
320
|
-
export type UpdateFinancialXLocaleEnum = typeof UpdateFinancialXLocaleEnum[keyof typeof UpdateFinancialXLocaleEnum];
|
|
321
|
-
/**
|
|
322
|
-
* @export
|
|
323
|
-
*/
|
|
324
|
-
export const UpdateSettingsXLocaleEnum = {
|
|
325
|
-
NL_NL: 'nl-nl',
|
|
326
|
-
EN_GB: 'en-gb'
|
|
327
|
-
} as const;
|
|
328
|
-
export type UpdateSettingsXLocaleEnum = typeof UpdateSettingsXLocaleEnum[keyof typeof UpdateSettingsXLocaleEnum];
|
|
@@ -32,7 +32,6 @@ import {
|
|
|
32
32
|
} from '../models/index';
|
|
33
33
|
|
|
34
34
|
export interface AccountsPublicApiRegisterRequest {
|
|
35
|
-
xLocale: RegisterXLocaleEnum;
|
|
36
35
|
registerAccountInput: RegisterAccountInput;
|
|
37
36
|
}
|
|
38
37
|
|
|
@@ -45,13 +44,6 @@ export class AccountsPublicApi extends runtime.BaseAPI {
|
|
|
45
44
|
*
|
|
46
45
|
*/
|
|
47
46
|
async registerRaw(requestParameters: AccountsPublicApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
48
|
-
if (requestParameters['xLocale'] == null) {
|
|
49
|
-
throw new runtime.RequiredError(
|
|
50
|
-
'xLocale',
|
|
51
|
-
'Required parameter "xLocale" was null or undefined when calling register().'
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
47
|
if (requestParameters['registerAccountInput'] == null) {
|
|
56
48
|
throw new runtime.RequiredError(
|
|
57
49
|
'registerAccountInput',
|
|
@@ -65,10 +57,6 @@ export class AccountsPublicApi extends runtime.BaseAPI {
|
|
|
65
57
|
|
|
66
58
|
headerParameters['Content-Type'] = 'application/json';
|
|
67
59
|
|
|
68
|
-
if (requestParameters['xLocale'] != null) {
|
|
69
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
60
|
const response = await this.request({
|
|
73
61
|
path: `/accounts/register`,
|
|
74
62
|
method: 'POST',
|
|
@@ -88,12 +76,3 @@ export class AccountsPublicApi extends runtime.BaseAPI {
|
|
|
88
76
|
}
|
|
89
77
|
|
|
90
78
|
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @export
|
|
94
|
-
*/
|
|
95
|
-
export const RegisterXLocaleEnum = {
|
|
96
|
-
NL_NL: 'nl-nl',
|
|
97
|
-
EN_GB: 'en-gb'
|
|
98
|
-
} as const;
|
|
99
|
-
export type RegisterXLocaleEnum = typeof RegisterXLocaleEnum[keyof typeof RegisterXLocaleEnum];
|
package/src/apis/AdminApi.ts
CHANGED
|
@@ -41,7 +41,6 @@ import {
|
|
|
41
41
|
} from '../models/index';
|
|
42
42
|
|
|
43
43
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
44
|
-
xLocale: AdminGetAllDomainTransfersXLocaleEnum;
|
|
45
44
|
filter?: object;
|
|
46
45
|
page?: number;
|
|
47
46
|
limit?: number;
|
|
@@ -50,12 +49,10 @@ export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
|
50
49
|
|
|
51
50
|
export interface AdminApiChangeOrderStatusRequest {
|
|
52
51
|
orderId: string;
|
|
53
|
-
xLocale: ChangeOrderStatusXLocaleEnum;
|
|
54
52
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export interface AdminApiGetAllOrdersRequest {
|
|
58
|
-
xLocale: GetAllOrdersXLocaleEnum;
|
|
59
56
|
filter?: object;
|
|
60
57
|
page?: number;
|
|
61
58
|
limit?: number;
|
|
@@ -63,7 +60,6 @@ export interface AdminApiGetAllOrdersRequest {
|
|
|
63
60
|
}
|
|
64
61
|
|
|
65
62
|
export interface AdminApiListAccountsRequest {
|
|
66
|
-
xLocale: ListAccountsXLocaleEnum;
|
|
67
63
|
filter?: object;
|
|
68
64
|
page?: number;
|
|
69
65
|
limit?: number;
|
|
@@ -79,13 +75,6 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
79
75
|
*
|
|
80
76
|
*/
|
|
81
77
|
async adminGetAllDomainTransfersRaw(requestParameters: AdminApiAdminGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminGetAllDomainTransfers200Response>> {
|
|
82
|
-
if (requestParameters['xLocale'] == null) {
|
|
83
|
-
throw new runtime.RequiredError(
|
|
84
|
-
'xLocale',
|
|
85
|
-
'Required parameter "xLocale" was null or undefined when calling adminGetAllDomainTransfers().'
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
78
|
const queryParameters: any = {};
|
|
90
79
|
|
|
91
80
|
if (requestParameters['filter'] != null) {
|
|
@@ -106,10 +95,6 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
106
95
|
|
|
107
96
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
108
97
|
|
|
109
|
-
if (requestParameters['xLocale'] != null) {
|
|
110
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
98
|
if (this.configuration && this.configuration.accessToken) {
|
|
114
99
|
const token = this.configuration.accessToken;
|
|
115
100
|
const tokenString = await token("bearer", []);
|
|
@@ -131,7 +116,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
131
116
|
/**
|
|
132
117
|
*
|
|
133
118
|
*/
|
|
134
|
-
async adminGetAllDomainTransfers(requestParameters: AdminApiAdminGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminGetAllDomainTransfers200Response> {
|
|
119
|
+
async adminGetAllDomainTransfers(requestParameters: AdminApiAdminGetAllDomainTransfersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminGetAllDomainTransfers200Response> {
|
|
135
120
|
const response = await this.adminGetAllDomainTransfersRaw(requestParameters, initOverrides);
|
|
136
121
|
return await response.value();
|
|
137
122
|
}
|
|
@@ -147,13 +132,6 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
147
132
|
);
|
|
148
133
|
}
|
|
149
134
|
|
|
150
|
-
if (requestParameters['xLocale'] == null) {
|
|
151
|
-
throw new runtime.RequiredError(
|
|
152
|
-
'xLocale',
|
|
153
|
-
'Required parameter "xLocale" was null or undefined when calling changeOrderStatus().'
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
135
|
if (requestParameters['changeOrderStatusInput'] == null) {
|
|
158
136
|
throw new runtime.RequiredError(
|
|
159
137
|
'changeOrderStatusInput',
|
|
@@ -167,10 +145,6 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
167
145
|
|
|
168
146
|
headerParameters['Content-Type'] = 'application/json';
|
|
169
147
|
|
|
170
|
-
if (requestParameters['xLocale'] != null) {
|
|
171
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
148
|
if (this.configuration && this.configuration.accessToken) {
|
|
175
149
|
const token = this.configuration.accessToken;
|
|
176
150
|
const tokenString = await token("bearer", []);
|
|
@@ -201,13 +175,6 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
201
175
|
*
|
|
202
176
|
*/
|
|
203
177
|
async getAllOrdersRaw(requestParameters: AdminApiGetAllOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllOrders200Response>> {
|
|
204
|
-
if (requestParameters['xLocale'] == null) {
|
|
205
|
-
throw new runtime.RequiredError(
|
|
206
|
-
'xLocale',
|
|
207
|
-
'Required parameter "xLocale" was null or undefined when calling getAllOrders().'
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
178
|
const queryParameters: any = {};
|
|
212
179
|
|
|
213
180
|
if (requestParameters['filter'] != null) {
|
|
@@ -228,10 +195,6 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
228
195
|
|
|
229
196
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
230
197
|
|
|
231
|
-
if (requestParameters['xLocale'] != null) {
|
|
232
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
198
|
if (this.configuration && this.configuration.accessToken) {
|
|
236
199
|
const token = this.configuration.accessToken;
|
|
237
200
|
const tokenString = await token("bearer", []);
|
|
@@ -253,7 +216,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
253
216
|
/**
|
|
254
217
|
*
|
|
255
218
|
*/
|
|
256
|
-
async getAllOrders(requestParameters: AdminApiGetAllOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOrders200Response> {
|
|
219
|
+
async getAllOrders(requestParameters: AdminApiGetAllOrdersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOrders200Response> {
|
|
257
220
|
const response = await this.getAllOrdersRaw(requestParameters, initOverrides);
|
|
258
221
|
return await response.value();
|
|
259
222
|
}
|
|
@@ -262,13 +225,6 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
262
225
|
*
|
|
263
226
|
*/
|
|
264
227
|
async listAccountsRaw(requestParameters: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAccounts200Response>> {
|
|
265
|
-
if (requestParameters['xLocale'] == null) {
|
|
266
|
-
throw new runtime.RequiredError(
|
|
267
|
-
'xLocale',
|
|
268
|
-
'Required parameter "xLocale" was null or undefined when calling listAccounts().'
|
|
269
|
-
);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
228
|
const queryParameters: any = {};
|
|
273
229
|
|
|
274
230
|
if (requestParameters['filter'] != null) {
|
|
@@ -289,10 +245,6 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
289
245
|
|
|
290
246
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
291
247
|
|
|
292
|
-
if (requestParameters['xLocale'] != null) {
|
|
293
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
248
|
if (this.configuration && this.configuration.accessToken) {
|
|
297
249
|
const token = this.configuration.accessToken;
|
|
298
250
|
const tokenString = await token("bearer", []);
|
|
@@ -314,42 +266,9 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
314
266
|
/**
|
|
315
267
|
*
|
|
316
268
|
*/
|
|
317
|
-
async listAccounts(requestParameters: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response> {
|
|
269
|
+
async listAccounts(requestParameters: AdminApiListAccountsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response> {
|
|
318
270
|
const response = await this.listAccountsRaw(requestParameters, initOverrides);
|
|
319
271
|
return await response.value();
|
|
320
272
|
}
|
|
321
273
|
|
|
322
274
|
}
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* @export
|
|
326
|
-
*/
|
|
327
|
-
export const AdminGetAllDomainTransfersXLocaleEnum = {
|
|
328
|
-
NL_NL: 'nl-nl',
|
|
329
|
-
EN_GB: 'en-gb'
|
|
330
|
-
} as const;
|
|
331
|
-
export type AdminGetAllDomainTransfersXLocaleEnum = typeof AdminGetAllDomainTransfersXLocaleEnum[keyof typeof AdminGetAllDomainTransfersXLocaleEnum];
|
|
332
|
-
/**
|
|
333
|
-
* @export
|
|
334
|
-
*/
|
|
335
|
-
export const ChangeOrderStatusXLocaleEnum = {
|
|
336
|
-
NL_NL: 'nl-nl',
|
|
337
|
-
EN_GB: 'en-gb'
|
|
338
|
-
} as const;
|
|
339
|
-
export type ChangeOrderStatusXLocaleEnum = typeof ChangeOrderStatusXLocaleEnum[keyof typeof ChangeOrderStatusXLocaleEnum];
|
|
340
|
-
/**
|
|
341
|
-
* @export
|
|
342
|
-
*/
|
|
343
|
-
export const GetAllOrdersXLocaleEnum = {
|
|
344
|
-
NL_NL: 'nl-nl',
|
|
345
|
-
EN_GB: 'en-gb'
|
|
346
|
-
} as const;
|
|
347
|
-
export type GetAllOrdersXLocaleEnum = typeof GetAllOrdersXLocaleEnum[keyof typeof GetAllOrdersXLocaleEnum];
|
|
348
|
-
/**
|
|
349
|
-
* @export
|
|
350
|
-
*/
|
|
351
|
-
export const ListAccountsXLocaleEnum = {
|
|
352
|
-
NL_NL: 'nl-nl',
|
|
353
|
-
EN_GB: 'en-gb'
|
|
354
|
-
} as const;
|
|
355
|
-
export type ListAccountsXLocaleEnum = typeof ListAccountsXLocaleEnum[keyof typeof ListAccountsXLocaleEnum];
|