@randock/nameshift-api-client 0.0.69 → 0.0.70
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 +40 -2
- package/dist/apis/AccountsApi.js +56 -4
- package/dist/apis/AccountsPublicApi.d.ts +9 -0
- package/dist/apis/AccountsPublicApi.js +14 -1
- package/dist/apis/AdminApi.d.ts +39 -3
- package/dist/apis/AdminApi.js +59 -10
- package/dist/apis/BuyersApi.d.ts +53 -6
- package/dist/apis/BuyersApi.js +75 -11
- package/dist/apis/BuyersPublicApi.d.ts +18 -0
- package/dist/apis/BuyersPublicApi.js +27 -1
- package/dist/apis/DashboardApi.d.ts +13 -2
- package/dist/apis/DashboardApi.js +17 -4
- package/dist/apis/DomainsApi.d.ts +98 -9
- package/dist/apis/DomainsApi.js +156 -34
- package/dist/apis/DomainsPublicApi.d.ts +9 -1
- package/dist/apis/DomainsPublicApi.js +13 -6
- package/dist/apis/LeadsApi.d.ts +61 -5
- package/dist/apis/LeadsApi.js +86 -8
- package/dist/apis/LeadsPublicApi.d.ts +51 -6
- package/dist/apis/LeadsPublicApi.js +78 -13
- package/dist/apis/OrdersPublicApi.d.ts +27 -0
- package/dist/apis/OrdersPublicApi.js +40 -1
- package/dist/apis/UsersApi.d.ts +12 -3
- package/dist/apis/UsersApi.js +18 -5
- package/dist/apis/UsersPublicApi.d.ts +36 -0
- package/dist/apis/UsersPublicApi.js +53 -1
- package/dist/models/DomainSellerDto.d.ts +15 -3
- package/dist/models/DomainSellerDto.js +11 -3
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +87 -3
- package/src/apis/AccountsPublicApi.ts +21 -0
- package/src/apis/AdminApi.ts +84 -3
- package/src/apis/BuyersApi.ts +113 -9
- package/src/apis/BuyersPublicApi.ts +41 -0
- package/src/apis/DashboardApi.ts +27 -3
- package/src/apis/DomainsApi.ts +228 -39
- package/src/apis/DomainsPublicApi.ts +17 -8
- package/src/apis/LeadsApi.ts +132 -8
- package/src/apis/LeadsPublicApi.ts +115 -14
- package/src/apis/OrdersPublicApi.ts +61 -0
- package/src/apis/UsersApi.ts +26 -5
- package/src/apis/UsersPublicApi.ts +81 -0
- package/src/models/DomainSellerDto.ts +24 -6
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.70
|
|
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.70 --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
|
+
cab2db7506772257585eda56e3021e07ab45a0339f83e3d9252609099ce10c735205aa950c8ebf62bd5acae09af073c6
|
|
@@ -11,16 +11,22 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { AccountAddressInput, AccountFinancialInput, AccountSettingsInput, IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto } from '../models/index';
|
|
14
|
+
export interface AccountsApiMeRequest {
|
|
15
|
+
xLocale: MeXLocaleEnum;
|
|
16
|
+
}
|
|
14
17
|
export interface AccountsApiUpdateAddressRequest {
|
|
15
18
|
accountId: string;
|
|
19
|
+
xLocale: UpdateAddressXLocaleEnum;
|
|
16
20
|
accountAddressInput: AccountAddressInput;
|
|
17
21
|
}
|
|
18
22
|
export interface AccountsApiUpdateFinancialRequest {
|
|
19
23
|
accountId: string;
|
|
24
|
+
xLocale: UpdateFinancialXLocaleEnum;
|
|
20
25
|
accountFinancialInput: AccountFinancialInput;
|
|
21
26
|
}
|
|
22
27
|
export interface AccountsApiUpdateSettingsRequest {
|
|
23
28
|
accountId: string;
|
|
29
|
+
xLocale: UpdateSettingsXLocaleEnum;
|
|
24
30
|
accountSettingsInput: AccountSettingsInput;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
@@ -30,11 +36,11 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
*/
|
|
33
|
-
meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>>;
|
|
39
|
+
meRaw(requestParameters: AccountsApiMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>>;
|
|
34
40
|
/**
|
|
35
41
|
*
|
|
36
42
|
*/
|
|
37
|
-
me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>;
|
|
43
|
+
me(requestParameters: AccountsApiMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>;
|
|
38
44
|
/**
|
|
39
45
|
*
|
|
40
46
|
*/
|
|
@@ -60,3 +66,35 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
60
66
|
*/
|
|
61
67
|
updateSettings(requestParameters: AccountsApiUpdateSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
62
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const MeXLocaleEnum: {
|
|
73
|
+
readonly NL_NL: "nl-nl";
|
|
74
|
+
readonly EN_GB: "en-gb";
|
|
75
|
+
};
|
|
76
|
+
export type MeXLocaleEnum = typeof MeXLocaleEnum[keyof typeof MeXLocaleEnum];
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export declare const UpdateAddressXLocaleEnum: {
|
|
81
|
+
readonly NL_NL: "nl-nl";
|
|
82
|
+
readonly EN_GB: "en-gb";
|
|
83
|
+
};
|
|
84
|
+
export type UpdateAddressXLocaleEnum = typeof UpdateAddressXLocaleEnum[keyof typeof UpdateAddressXLocaleEnum];
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const UpdateFinancialXLocaleEnum: {
|
|
89
|
+
readonly NL_NL: "nl-nl";
|
|
90
|
+
readonly EN_GB: "en-gb";
|
|
91
|
+
};
|
|
92
|
+
export type UpdateFinancialXLocaleEnum = typeof UpdateFinancialXLocaleEnum[keyof typeof UpdateFinancialXLocaleEnum];
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export declare const UpdateSettingsXLocaleEnum: {
|
|
97
|
+
readonly NL_NL: "nl-nl";
|
|
98
|
+
readonly EN_GB: "en-gb";
|
|
99
|
+
};
|
|
100
|
+
export type UpdateSettingsXLocaleEnum = typeof UpdateSettingsXLocaleEnum[keyof typeof UpdateSettingsXLocaleEnum];
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -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.AccountsApi = void 0;
|
|
67
|
+
exports.UpdateSettingsXLocaleEnum = exports.UpdateFinancialXLocaleEnum = exports.UpdateAddressXLocaleEnum = exports.MeXLocaleEnum = exports.AccountsApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -78,14 +78,20 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
AccountsApi.prototype.meRaw = function (initOverrides) {
|
|
81
|
+
AccountsApi.prototype.meRaw = 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
|
+
if (requestParameters['xLocale'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling me().');
|
|
89
|
+
}
|
|
87
90
|
queryParameters = {};
|
|
88
91
|
headerParameters = {};
|
|
92
|
+
if (requestParameters['xLocale'] != null) {
|
|
93
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
94
|
+
}
|
|
89
95
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
90
96
|
token = this.configuration.accessToken;
|
|
91
97
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -111,12 +117,12 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
111
117
|
/**
|
|
112
118
|
*
|
|
113
119
|
*/
|
|
114
|
-
AccountsApi.prototype.me = function (initOverrides) {
|
|
120
|
+
AccountsApi.prototype.me = function (requestParameters, initOverrides) {
|
|
115
121
|
return __awaiter(this, void 0, void 0, function () {
|
|
116
122
|
var response;
|
|
117
123
|
return __generator(this, function (_a) {
|
|
118
124
|
switch (_a.label) {
|
|
119
|
-
case 0: return [4 /*yield*/, this.meRaw(initOverrides)];
|
|
125
|
+
case 0: return [4 /*yield*/, this.meRaw(requestParameters, initOverrides)];
|
|
120
126
|
case 1:
|
|
121
127
|
response = _a.sent();
|
|
122
128
|
return [4 /*yield*/, response.value()];
|
|
@@ -137,12 +143,18 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
137
143
|
if (requestParameters['accountId'] == null) {
|
|
138
144
|
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling updateAddress().');
|
|
139
145
|
}
|
|
146
|
+
if (requestParameters['xLocale'] == null) {
|
|
147
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling updateAddress().');
|
|
148
|
+
}
|
|
140
149
|
if (requestParameters['accountAddressInput'] == null) {
|
|
141
150
|
throw new runtime.RequiredError('accountAddressInput', 'Required parameter "accountAddressInput" was null or undefined when calling updateAddress().');
|
|
142
151
|
}
|
|
143
152
|
queryParameters = {};
|
|
144
153
|
headerParameters = {};
|
|
145
154
|
headerParameters['Content-Type'] = 'application/json';
|
|
155
|
+
if (requestParameters['xLocale'] != null) {
|
|
156
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
157
|
+
}
|
|
146
158
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
147
159
|
token = this.configuration.accessToken;
|
|
148
160
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -193,12 +205,18 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
193
205
|
if (requestParameters['accountId'] == null) {
|
|
194
206
|
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling updateFinancial().');
|
|
195
207
|
}
|
|
208
|
+
if (requestParameters['xLocale'] == null) {
|
|
209
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling updateFinancial().');
|
|
210
|
+
}
|
|
196
211
|
if (requestParameters['accountFinancialInput'] == null) {
|
|
197
212
|
throw new runtime.RequiredError('accountFinancialInput', 'Required parameter "accountFinancialInput" was null or undefined when calling updateFinancial().');
|
|
198
213
|
}
|
|
199
214
|
queryParameters = {};
|
|
200
215
|
headerParameters = {};
|
|
201
216
|
headerParameters['Content-Type'] = 'application/json';
|
|
217
|
+
if (requestParameters['xLocale'] != null) {
|
|
218
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
219
|
+
}
|
|
202
220
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
203
221
|
token = this.configuration.accessToken;
|
|
204
222
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -249,12 +267,18 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
249
267
|
if (requestParameters['accountId'] == null) {
|
|
250
268
|
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling updateSettings().');
|
|
251
269
|
}
|
|
270
|
+
if (requestParameters['xLocale'] == null) {
|
|
271
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling updateSettings().');
|
|
272
|
+
}
|
|
252
273
|
if (requestParameters['accountSettingsInput'] == null) {
|
|
253
274
|
throw new runtime.RequiredError('accountSettingsInput', 'Required parameter "accountSettingsInput" was null or undefined when calling updateSettings().');
|
|
254
275
|
}
|
|
255
276
|
queryParameters = {};
|
|
256
277
|
headerParameters = {};
|
|
257
278
|
headerParameters['Content-Type'] = 'application/json';
|
|
279
|
+
if (requestParameters['xLocale'] != null) {
|
|
280
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
281
|
+
}
|
|
258
282
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
259
283
|
token = this.configuration.accessToken;
|
|
260
284
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -296,3 +320,31 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
296
320
|
return AccountsApi;
|
|
297
321
|
}(runtime.BaseAPI));
|
|
298
322
|
exports.AccountsApi = AccountsApi;
|
|
323
|
+
/**
|
|
324
|
+
* @export
|
|
325
|
+
*/
|
|
326
|
+
exports.MeXLocaleEnum = {
|
|
327
|
+
NL_NL: 'nl-nl',
|
|
328
|
+
EN_GB: 'en-gb'
|
|
329
|
+
};
|
|
330
|
+
/**
|
|
331
|
+
* @export
|
|
332
|
+
*/
|
|
333
|
+
exports.UpdateAddressXLocaleEnum = {
|
|
334
|
+
NL_NL: 'nl-nl',
|
|
335
|
+
EN_GB: 'en-gb'
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* @export
|
|
339
|
+
*/
|
|
340
|
+
exports.UpdateFinancialXLocaleEnum = {
|
|
341
|
+
NL_NL: 'nl-nl',
|
|
342
|
+
EN_GB: 'en-gb'
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* @export
|
|
346
|
+
*/
|
|
347
|
+
exports.UpdateSettingsXLocaleEnum = {
|
|
348
|
+
NL_NL: 'nl-nl',
|
|
349
|
+
EN_GB: 'en-gb'
|
|
350
|
+
};
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { RegisterAccountInput } from '../models/index';
|
|
14
14
|
export interface AccountsPublicApiRegisterRequest {
|
|
15
|
+
xLocale: RegisterXLocaleEnum;
|
|
15
16
|
registerAccountInput: RegisterAccountInput;
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
@@ -27,3 +28,11 @@ export declare class AccountsPublicApi extends runtime.BaseAPI {
|
|
|
27
28
|
*/
|
|
28
29
|
register(requestParameters: AccountsPublicApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
29
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const RegisterXLocaleEnum: {
|
|
35
|
+
readonly NL_NL: "nl-nl";
|
|
36
|
+
readonly EN_GB: "en-gb";
|
|
37
|
+
};
|
|
38
|
+
export type RegisterXLocaleEnum = typeof RegisterXLocaleEnum[keyof typeof RegisterXLocaleEnum];
|
|
@@ -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.AccountsPublicApi = void 0;
|
|
67
|
+
exports.RegisterXLocaleEnum = exports.AccountsPublicApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -84,12 +84,18 @@ var AccountsPublicApi = /** @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 register().');
|
|
89
|
+
}
|
|
87
90
|
if (requestParameters['registerAccountInput'] == null) {
|
|
88
91
|
throw new runtime.RequiredError('registerAccountInput', 'Required parameter "registerAccountInput" was null or undefined when calling register().');
|
|
89
92
|
}
|
|
90
93
|
queryParameters = {};
|
|
91
94
|
headerParameters = {};
|
|
92
95
|
headerParameters['Content-Type'] = 'application/json';
|
|
96
|
+
if (requestParameters['xLocale'] != null) {
|
|
97
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
98
|
+
}
|
|
93
99
|
return [4 /*yield*/, this.request({
|
|
94
100
|
path: "/accounts/register",
|
|
95
101
|
method: 'POST',
|
|
@@ -122,3 +128,10 @@ var AccountsPublicApi = /** @class */ (function (_super) {
|
|
|
122
128
|
return AccountsPublicApi;
|
|
123
129
|
}(runtime.BaseAPI));
|
|
124
130
|
exports.AccountsPublicApi = AccountsPublicApi;
|
|
131
|
+
/**
|
|
132
|
+
* @export
|
|
133
|
+
*/
|
|
134
|
+
exports.RegisterXLocaleEnum = {
|
|
135
|
+
NL_NL: 'nl-nl',
|
|
136
|
+
EN_GB: 'en-gb'
|
|
137
|
+
};
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, GetAllOrders200Response, ListAccounts200Response } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
|
+
xLocale: AdminGetAllDomainTransfersXLocaleEnum;
|
|
15
16
|
filter?: object;
|
|
16
17
|
page?: number;
|
|
17
18
|
limit?: number;
|
|
@@ -19,15 +20,18 @@ export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
|
19
20
|
}
|
|
20
21
|
export interface AdminApiChangeOrderStatusRequest {
|
|
21
22
|
orderId: string;
|
|
23
|
+
xLocale: ChangeOrderStatusXLocaleEnum;
|
|
22
24
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
23
25
|
}
|
|
24
26
|
export interface AdminApiGetAllOrdersRequest {
|
|
27
|
+
xLocale: GetAllOrdersXLocaleEnum;
|
|
25
28
|
filter?: object;
|
|
26
29
|
page?: number;
|
|
27
30
|
limit?: number;
|
|
28
31
|
sortBy?: Array<string>;
|
|
29
32
|
}
|
|
30
33
|
export interface AdminApiListAccountsRequest {
|
|
34
|
+
xLocale: ListAccountsXLocaleEnum;
|
|
31
35
|
filter?: object;
|
|
32
36
|
page?: number;
|
|
33
37
|
limit?: number;
|
|
@@ -44,7 +48,7 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
44
48
|
/**
|
|
45
49
|
*
|
|
46
50
|
*/
|
|
47
|
-
adminGetAllDomainTransfers(requestParameters
|
|
51
|
+
adminGetAllDomainTransfers(requestParameters: AdminApiAdminGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminGetAllDomainTransfers200Response>;
|
|
48
52
|
/**
|
|
49
53
|
*
|
|
50
54
|
*/
|
|
@@ -60,7 +64,7 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
60
64
|
/**
|
|
61
65
|
*
|
|
62
66
|
*/
|
|
63
|
-
getAllOrders(requestParameters
|
|
67
|
+
getAllOrders(requestParameters: AdminApiGetAllOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOrders200Response>;
|
|
64
68
|
/**
|
|
65
69
|
*
|
|
66
70
|
*/
|
|
@@ -68,5 +72,37 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
68
72
|
/**
|
|
69
73
|
*
|
|
70
74
|
*/
|
|
71
|
-
listAccounts(requestParameters
|
|
75
|
+
listAccounts(requestParameters: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
|
|
72
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export declare const AdminGetAllDomainTransfersXLocaleEnum: {
|
|
81
|
+
readonly NL_NL: "nl-nl";
|
|
82
|
+
readonly EN_GB: "en-gb";
|
|
83
|
+
};
|
|
84
|
+
export type AdminGetAllDomainTransfersXLocaleEnum = typeof AdminGetAllDomainTransfersXLocaleEnum[keyof typeof AdminGetAllDomainTransfersXLocaleEnum];
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const ChangeOrderStatusXLocaleEnum: {
|
|
89
|
+
readonly NL_NL: "nl-nl";
|
|
90
|
+
readonly EN_GB: "en-gb";
|
|
91
|
+
};
|
|
92
|
+
export type ChangeOrderStatusXLocaleEnum = typeof ChangeOrderStatusXLocaleEnum[keyof typeof ChangeOrderStatusXLocaleEnum];
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export declare const GetAllOrdersXLocaleEnum: {
|
|
97
|
+
readonly NL_NL: "nl-nl";
|
|
98
|
+
readonly EN_GB: "en-gb";
|
|
99
|
+
};
|
|
100
|
+
export type GetAllOrdersXLocaleEnum = typeof GetAllOrdersXLocaleEnum[keyof typeof GetAllOrdersXLocaleEnum];
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export declare const ListAccountsXLocaleEnum: {
|
|
105
|
+
readonly NL_NL: "nl-nl";
|
|
106
|
+
readonly EN_GB: "en-gb";
|
|
107
|
+
};
|
|
108
|
+
export type ListAccountsXLocaleEnum = typeof ListAccountsXLocaleEnum[keyof typeof ListAccountsXLocaleEnum];
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -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.AdminApi = void 0;
|
|
67
|
+
exports.ListAccountsXLocaleEnum = exports.GetAllOrdersXLocaleEnum = exports.ChangeOrderStatusXLocaleEnum = exports.AdminGetAllDomainTransfersXLocaleEnum = exports.AdminApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -84,6 +84,9 @@ var AdminApi = /** @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 adminGetAllDomainTransfers().');
|
|
89
|
+
}
|
|
87
90
|
queryParameters = {};
|
|
88
91
|
if (requestParameters['filter'] != null) {
|
|
89
92
|
queryParameters['filter'] = requestParameters['filter'];
|
|
@@ -98,6 +101,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
98
101
|
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
99
102
|
}
|
|
100
103
|
headerParameters = {};
|
|
104
|
+
if (requestParameters['xLocale'] != null) {
|
|
105
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
106
|
+
}
|
|
101
107
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
102
108
|
token = this.configuration.accessToken;
|
|
103
109
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -123,10 +129,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
123
129
|
/**
|
|
124
130
|
*
|
|
125
131
|
*/
|
|
126
|
-
AdminApi.prototype.adminGetAllDomainTransfers = function () {
|
|
127
|
-
return __awaiter(this,
|
|
132
|
+
AdminApi.prototype.adminGetAllDomainTransfers = function (requestParameters, initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
134
|
var response;
|
|
129
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
130
135
|
return __generator(this, function (_a) {
|
|
131
136
|
switch (_a.label) {
|
|
132
137
|
case 0: return [4 /*yield*/, this.adminGetAllDomainTransfersRaw(requestParameters, initOverrides)];
|
|
@@ -150,12 +155,18 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
150
155
|
if (requestParameters['orderId'] == null) {
|
|
151
156
|
throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling changeOrderStatus().');
|
|
152
157
|
}
|
|
158
|
+
if (requestParameters['xLocale'] == null) {
|
|
159
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling changeOrderStatus().');
|
|
160
|
+
}
|
|
153
161
|
if (requestParameters['changeOrderStatusInput'] == null) {
|
|
154
162
|
throw new runtime.RequiredError('changeOrderStatusInput', 'Required parameter "changeOrderStatusInput" was null or undefined when calling changeOrderStatus().');
|
|
155
163
|
}
|
|
156
164
|
queryParameters = {};
|
|
157
165
|
headerParameters = {};
|
|
158
166
|
headerParameters['Content-Type'] = 'application/json';
|
|
167
|
+
if (requestParameters['xLocale'] != null) {
|
|
168
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
169
|
+
}
|
|
159
170
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
160
171
|
token = this.configuration.accessToken;
|
|
161
172
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -203,6 +214,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
203
214
|
return __generator(this, function (_a) {
|
|
204
215
|
switch (_a.label) {
|
|
205
216
|
case 0:
|
|
217
|
+
if (requestParameters['xLocale'] == null) {
|
|
218
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getAllOrders().');
|
|
219
|
+
}
|
|
206
220
|
queryParameters = {};
|
|
207
221
|
if (requestParameters['filter'] != null) {
|
|
208
222
|
queryParameters['filter'] = requestParameters['filter'];
|
|
@@ -217,6 +231,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
217
231
|
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
218
232
|
}
|
|
219
233
|
headerParameters = {};
|
|
234
|
+
if (requestParameters['xLocale'] != null) {
|
|
235
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
236
|
+
}
|
|
220
237
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
221
238
|
token = this.configuration.accessToken;
|
|
222
239
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -242,10 +259,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
242
259
|
/**
|
|
243
260
|
*
|
|
244
261
|
*/
|
|
245
|
-
AdminApi.prototype.getAllOrders = function () {
|
|
246
|
-
return __awaiter(this,
|
|
262
|
+
AdminApi.prototype.getAllOrders = function (requestParameters, initOverrides) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
247
264
|
var response;
|
|
248
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
249
265
|
return __generator(this, function (_a) {
|
|
250
266
|
switch (_a.label) {
|
|
251
267
|
case 0: return [4 /*yield*/, this.getAllOrdersRaw(requestParameters, initOverrides)];
|
|
@@ -266,6 +282,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
266
282
|
return __generator(this, function (_a) {
|
|
267
283
|
switch (_a.label) {
|
|
268
284
|
case 0:
|
|
285
|
+
if (requestParameters['xLocale'] == null) {
|
|
286
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling listAccounts().');
|
|
287
|
+
}
|
|
269
288
|
queryParameters = {};
|
|
270
289
|
if (requestParameters['filter'] != null) {
|
|
271
290
|
queryParameters['filter'] = requestParameters['filter'];
|
|
@@ -280,6 +299,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
280
299
|
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
281
300
|
}
|
|
282
301
|
headerParameters = {};
|
|
302
|
+
if (requestParameters['xLocale'] != null) {
|
|
303
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
304
|
+
}
|
|
283
305
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
284
306
|
token = this.configuration.accessToken;
|
|
285
307
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -305,10 +327,9 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
305
327
|
/**
|
|
306
328
|
*
|
|
307
329
|
*/
|
|
308
|
-
AdminApi.prototype.listAccounts = function () {
|
|
309
|
-
return __awaiter(this,
|
|
330
|
+
AdminApi.prototype.listAccounts = function (requestParameters, initOverrides) {
|
|
331
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
310
332
|
var response;
|
|
311
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
312
333
|
return __generator(this, function (_a) {
|
|
313
334
|
switch (_a.label) {
|
|
314
335
|
case 0: return [4 /*yield*/, this.listAccountsRaw(requestParameters, initOverrides)];
|
|
@@ -323,3 +344,31 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
323
344
|
return AdminApi;
|
|
324
345
|
}(runtime.BaseAPI));
|
|
325
346
|
exports.AdminApi = AdminApi;
|
|
347
|
+
/**
|
|
348
|
+
* @export
|
|
349
|
+
*/
|
|
350
|
+
exports.AdminGetAllDomainTransfersXLocaleEnum = {
|
|
351
|
+
NL_NL: 'nl-nl',
|
|
352
|
+
EN_GB: 'en-gb'
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* @export
|
|
356
|
+
*/
|
|
357
|
+
exports.ChangeOrderStatusXLocaleEnum = {
|
|
358
|
+
NL_NL: 'nl-nl',
|
|
359
|
+
EN_GB: 'en-gb'
|
|
360
|
+
};
|
|
361
|
+
/**
|
|
362
|
+
* @export
|
|
363
|
+
*/
|
|
364
|
+
exports.GetAllOrdersXLocaleEnum = {
|
|
365
|
+
NL_NL: 'nl-nl',
|
|
366
|
+
EN_GB: 'en-gb'
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* @export
|
|
370
|
+
*/
|
|
371
|
+
exports.ListAccountsXLocaleEnum = {
|
|
372
|
+
NL_NL: 'nl-nl',
|
|
373
|
+
EN_GB: 'en-gb'
|
|
374
|
+
};
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -11,10 +11,15 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { BuyerDomainTransferAuthCodeDto, BuyerUserDto, GetBuyerTransfers200Response, StoreBuyerLocaleInput } from '../models/index';
|
|
14
|
+
export interface BuyersApiBuyerMeRequest {
|
|
15
|
+
xLocale: BuyerMeXLocaleEnum;
|
|
16
|
+
}
|
|
14
17
|
export interface BuyersApiConfirmDomainTransferRequest {
|
|
15
18
|
transferId: string;
|
|
19
|
+
xLocale: ConfirmDomainTransferXLocaleEnum;
|
|
16
20
|
}
|
|
17
21
|
export interface BuyersApiGetBuyerTransfersRequest {
|
|
22
|
+
xLocale: GetBuyerTransfersXLocaleEnum;
|
|
18
23
|
filter?: object;
|
|
19
24
|
page?: number;
|
|
20
25
|
limit?: number;
|
|
@@ -22,8 +27,10 @@ export interface BuyersApiGetBuyerTransfersRequest {
|
|
|
22
27
|
}
|
|
23
28
|
export interface BuyersApiGetTransferAuthCodeRequest {
|
|
24
29
|
transferId: string;
|
|
30
|
+
xLocale: GetTransferAuthCodeXLocaleEnum;
|
|
25
31
|
}
|
|
26
|
-
export interface
|
|
32
|
+
export interface BuyersApiSetBuyerLocaleRequest {
|
|
33
|
+
xLocale: SetBuyerLocaleXLocaleEnum;
|
|
27
34
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
28
35
|
}
|
|
29
36
|
/**
|
|
@@ -33,11 +40,11 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
33
40
|
/**
|
|
34
41
|
*
|
|
35
42
|
*/
|
|
36
|
-
buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerUserDto>>;
|
|
43
|
+
buyerMeRaw(requestParameters: BuyersApiBuyerMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerUserDto>>;
|
|
37
44
|
/**
|
|
38
45
|
*
|
|
39
46
|
*/
|
|
40
|
-
buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto>;
|
|
47
|
+
buyerMe(requestParameters: BuyersApiBuyerMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto>;
|
|
41
48
|
/**
|
|
42
49
|
*
|
|
43
50
|
*/
|
|
@@ -53,7 +60,7 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
53
60
|
/**
|
|
54
61
|
*
|
|
55
62
|
*/
|
|
56
|
-
getBuyerTransfers(requestParameters
|
|
63
|
+
getBuyerTransfers(requestParameters: BuyersApiGetBuyerTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerTransfers200Response>;
|
|
57
64
|
/**
|
|
58
65
|
*
|
|
59
66
|
*/
|
|
@@ -65,9 +72,49 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
65
72
|
/**
|
|
66
73
|
*
|
|
67
74
|
*/
|
|
68
|
-
|
|
75
|
+
setBuyerLocaleRaw(requestParameters: BuyersApiSetBuyerLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
69
76
|
/**
|
|
70
77
|
*
|
|
71
78
|
*/
|
|
72
|
-
|
|
79
|
+
setBuyerLocale(requestParameters: BuyersApiSetBuyerLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
73
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const BuyerMeXLocaleEnum: {
|
|
85
|
+
readonly NL_NL: "nl-nl";
|
|
86
|
+
readonly EN_GB: "en-gb";
|
|
87
|
+
};
|
|
88
|
+
export type BuyerMeXLocaleEnum = typeof BuyerMeXLocaleEnum[keyof typeof BuyerMeXLocaleEnum];
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export declare const ConfirmDomainTransferXLocaleEnum: {
|
|
93
|
+
readonly NL_NL: "nl-nl";
|
|
94
|
+
readonly EN_GB: "en-gb";
|
|
95
|
+
};
|
|
96
|
+
export type ConfirmDomainTransferXLocaleEnum = typeof ConfirmDomainTransferXLocaleEnum[keyof typeof ConfirmDomainTransferXLocaleEnum];
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const GetBuyerTransfersXLocaleEnum: {
|
|
101
|
+
readonly NL_NL: "nl-nl";
|
|
102
|
+
readonly EN_GB: "en-gb";
|
|
103
|
+
};
|
|
104
|
+
export type GetBuyerTransfersXLocaleEnum = typeof GetBuyerTransfersXLocaleEnum[keyof typeof GetBuyerTransfersXLocaleEnum];
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export declare const GetTransferAuthCodeXLocaleEnum: {
|
|
109
|
+
readonly NL_NL: "nl-nl";
|
|
110
|
+
readonly EN_GB: "en-gb";
|
|
111
|
+
};
|
|
112
|
+
export type GetTransferAuthCodeXLocaleEnum = typeof GetTransferAuthCodeXLocaleEnum[keyof typeof GetTransferAuthCodeXLocaleEnum];
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const SetBuyerLocaleXLocaleEnum: {
|
|
117
|
+
readonly NL_NL: "nl-nl";
|
|
118
|
+
readonly EN_GB: "en-gb";
|
|
119
|
+
};
|
|
120
|
+
export type SetBuyerLocaleXLocaleEnum = typeof SetBuyerLocaleXLocaleEnum[keyof typeof SetBuyerLocaleXLocaleEnum];
|