@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/src/apis/AdminApi.ts
CHANGED
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
} from '../models/index';
|
|
42
42
|
|
|
43
43
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
44
|
+
xLocale: AdminGetAllDomainTransfersXLocaleEnum;
|
|
44
45
|
filter?: object;
|
|
45
46
|
page?: number;
|
|
46
47
|
limit?: number;
|
|
@@ -49,10 +50,12 @@ export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
|
49
50
|
|
|
50
51
|
export interface AdminApiChangeOrderStatusRequest {
|
|
51
52
|
orderId: string;
|
|
53
|
+
xLocale: ChangeOrderStatusXLocaleEnum;
|
|
52
54
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
export interface AdminApiGetAllOrdersRequest {
|
|
58
|
+
xLocale: GetAllOrdersXLocaleEnum;
|
|
56
59
|
filter?: object;
|
|
57
60
|
page?: number;
|
|
58
61
|
limit?: number;
|
|
@@ -60,6 +63,7 @@ export interface AdminApiGetAllOrdersRequest {
|
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
export interface AdminApiListAccountsRequest {
|
|
66
|
+
xLocale: ListAccountsXLocaleEnum;
|
|
63
67
|
filter?: object;
|
|
64
68
|
page?: number;
|
|
65
69
|
limit?: number;
|
|
@@ -75,6 +79,13 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
75
79
|
*
|
|
76
80
|
*/
|
|
77
81
|
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
|
+
|
|
78
89
|
const queryParameters: any = {};
|
|
79
90
|
|
|
80
91
|
if (requestParameters['filter'] != null) {
|
|
@@ -95,6 +106,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
95
106
|
|
|
96
107
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
97
108
|
|
|
109
|
+
if (requestParameters['xLocale'] != null) {
|
|
110
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
111
|
+
}
|
|
112
|
+
|
|
98
113
|
if (this.configuration && this.configuration.accessToken) {
|
|
99
114
|
const token = this.configuration.accessToken;
|
|
100
115
|
const tokenString = await token("bearer", []);
|
|
@@ -116,7 +131,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
116
131
|
/**
|
|
117
132
|
*
|
|
118
133
|
*/
|
|
119
|
-
async adminGetAllDomainTransfers(requestParameters: AdminApiAdminGetAllDomainTransfersRequest
|
|
134
|
+
async adminGetAllDomainTransfers(requestParameters: AdminApiAdminGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminGetAllDomainTransfers200Response> {
|
|
120
135
|
const response = await this.adminGetAllDomainTransfersRaw(requestParameters, initOverrides);
|
|
121
136
|
return await response.value();
|
|
122
137
|
}
|
|
@@ -132,6 +147,13 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
132
147
|
);
|
|
133
148
|
}
|
|
134
149
|
|
|
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
|
+
|
|
135
157
|
if (requestParameters['changeOrderStatusInput'] == null) {
|
|
136
158
|
throw new runtime.RequiredError(
|
|
137
159
|
'changeOrderStatusInput',
|
|
@@ -145,6 +167,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
145
167
|
|
|
146
168
|
headerParameters['Content-Type'] = 'application/json';
|
|
147
169
|
|
|
170
|
+
if (requestParameters['xLocale'] != null) {
|
|
171
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
172
|
+
}
|
|
173
|
+
|
|
148
174
|
if (this.configuration && this.configuration.accessToken) {
|
|
149
175
|
const token = this.configuration.accessToken;
|
|
150
176
|
const tokenString = await token("bearer", []);
|
|
@@ -175,6 +201,13 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
175
201
|
*
|
|
176
202
|
*/
|
|
177
203
|
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
|
+
|
|
178
211
|
const queryParameters: any = {};
|
|
179
212
|
|
|
180
213
|
if (requestParameters['filter'] != null) {
|
|
@@ -195,6 +228,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
195
228
|
|
|
196
229
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
197
230
|
|
|
231
|
+
if (requestParameters['xLocale'] != null) {
|
|
232
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
233
|
+
}
|
|
234
|
+
|
|
198
235
|
if (this.configuration && this.configuration.accessToken) {
|
|
199
236
|
const token = this.configuration.accessToken;
|
|
200
237
|
const tokenString = await token("bearer", []);
|
|
@@ -216,7 +253,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
216
253
|
/**
|
|
217
254
|
*
|
|
218
255
|
*/
|
|
219
|
-
async getAllOrders(requestParameters: AdminApiGetAllOrdersRequest
|
|
256
|
+
async getAllOrders(requestParameters: AdminApiGetAllOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOrders200Response> {
|
|
220
257
|
const response = await this.getAllOrdersRaw(requestParameters, initOverrides);
|
|
221
258
|
return await response.value();
|
|
222
259
|
}
|
|
@@ -225,6 +262,13 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
225
262
|
*
|
|
226
263
|
*/
|
|
227
264
|
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
|
+
|
|
228
272
|
const queryParameters: any = {};
|
|
229
273
|
|
|
230
274
|
if (requestParameters['filter'] != null) {
|
|
@@ -245,6 +289,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
245
289
|
|
|
246
290
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
247
291
|
|
|
292
|
+
if (requestParameters['xLocale'] != null) {
|
|
293
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
294
|
+
}
|
|
295
|
+
|
|
248
296
|
if (this.configuration && this.configuration.accessToken) {
|
|
249
297
|
const token = this.configuration.accessToken;
|
|
250
298
|
const tokenString = await token("bearer", []);
|
|
@@ -266,9 +314,42 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
266
314
|
/**
|
|
267
315
|
*
|
|
268
316
|
*/
|
|
269
|
-
async listAccounts(requestParameters: AdminApiListAccountsRequest
|
|
317
|
+
async listAccounts(requestParameters: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response> {
|
|
270
318
|
const response = await this.listAccountsRaw(requestParameters, initOverrides);
|
|
271
319
|
return await response.value();
|
|
272
320
|
}
|
|
273
321
|
|
|
274
322
|
}
|
|
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];
|
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -40,11 +40,17 @@ import {
|
|
|
40
40
|
ValidationExceptionToJSON,
|
|
41
41
|
} from '../models/index';
|
|
42
42
|
|
|
43
|
+
export interface BuyersApiBuyerMeRequest {
|
|
44
|
+
xLocale: BuyerMeXLocaleEnum;
|
|
45
|
+
}
|
|
46
|
+
|
|
43
47
|
export interface BuyersApiConfirmDomainTransferRequest {
|
|
44
48
|
transferId: string;
|
|
49
|
+
xLocale: ConfirmDomainTransferXLocaleEnum;
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
export interface BuyersApiGetBuyerTransfersRequest {
|
|
53
|
+
xLocale: GetBuyerTransfersXLocaleEnum;
|
|
48
54
|
filter?: object;
|
|
49
55
|
page?: number;
|
|
50
56
|
limit?: number;
|
|
@@ -53,9 +59,11 @@ export interface BuyersApiGetBuyerTransfersRequest {
|
|
|
53
59
|
|
|
54
60
|
export interface BuyersApiGetTransferAuthCodeRequest {
|
|
55
61
|
transferId: string;
|
|
62
|
+
xLocale: GetTransferAuthCodeXLocaleEnum;
|
|
56
63
|
}
|
|
57
64
|
|
|
58
|
-
export interface
|
|
65
|
+
export interface BuyersApiSetBuyerLocaleRequest {
|
|
66
|
+
xLocale: SetBuyerLocaleXLocaleEnum;
|
|
59
67
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
60
68
|
}
|
|
61
69
|
|
|
@@ -67,11 +75,22 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
67
75
|
/**
|
|
68
76
|
*
|
|
69
77
|
*/
|
|
70
|
-
async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerUserDto>> {
|
|
78
|
+
async buyerMeRaw(requestParameters: BuyersApiBuyerMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerUserDto>> {
|
|
79
|
+
if (requestParameters['xLocale'] == null) {
|
|
80
|
+
throw new runtime.RequiredError(
|
|
81
|
+
'xLocale',
|
|
82
|
+
'Required parameter "xLocale" was null or undefined when calling buyerMe().'
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
71
86
|
const queryParameters: any = {};
|
|
72
87
|
|
|
73
88
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
74
89
|
|
|
90
|
+
if (requestParameters['xLocale'] != null) {
|
|
91
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
92
|
+
}
|
|
93
|
+
|
|
75
94
|
if (this.configuration && this.configuration.accessToken) {
|
|
76
95
|
const token = this.configuration.accessToken;
|
|
77
96
|
const tokenString = await token("bearer", []);
|
|
@@ -93,8 +112,8 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
93
112
|
/**
|
|
94
113
|
*
|
|
95
114
|
*/
|
|
96
|
-
async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto> {
|
|
97
|
-
const response = await this.buyerMeRaw(initOverrides);
|
|
115
|
+
async buyerMe(requestParameters: BuyersApiBuyerMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto> {
|
|
116
|
+
const response = await this.buyerMeRaw(requestParameters, initOverrides);
|
|
98
117
|
return await response.value();
|
|
99
118
|
}
|
|
100
119
|
|
|
@@ -109,10 +128,21 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
109
128
|
);
|
|
110
129
|
}
|
|
111
130
|
|
|
131
|
+
if (requestParameters['xLocale'] == null) {
|
|
132
|
+
throw new runtime.RequiredError(
|
|
133
|
+
'xLocale',
|
|
134
|
+
'Required parameter "xLocale" was null or undefined when calling confirmDomainTransfer().'
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
112
138
|
const queryParameters: any = {};
|
|
113
139
|
|
|
114
140
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
115
141
|
|
|
142
|
+
if (requestParameters['xLocale'] != null) {
|
|
143
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
144
|
+
}
|
|
145
|
+
|
|
116
146
|
if (this.configuration && this.configuration.accessToken) {
|
|
117
147
|
const token = this.configuration.accessToken;
|
|
118
148
|
const tokenString = await token("bearer", []);
|
|
@@ -142,6 +172,13 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
142
172
|
*
|
|
143
173
|
*/
|
|
144
174
|
async getBuyerTransfersRaw(requestParameters: BuyersApiGetBuyerTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerTransfers200Response>> {
|
|
175
|
+
if (requestParameters['xLocale'] == null) {
|
|
176
|
+
throw new runtime.RequiredError(
|
|
177
|
+
'xLocale',
|
|
178
|
+
'Required parameter "xLocale" was null or undefined when calling getBuyerTransfers().'
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
145
182
|
const queryParameters: any = {};
|
|
146
183
|
|
|
147
184
|
if (requestParameters['filter'] != null) {
|
|
@@ -162,6 +199,10 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
162
199
|
|
|
163
200
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
164
201
|
|
|
202
|
+
if (requestParameters['xLocale'] != null) {
|
|
203
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
204
|
+
}
|
|
205
|
+
|
|
165
206
|
if (this.configuration && this.configuration.accessToken) {
|
|
166
207
|
const token = this.configuration.accessToken;
|
|
167
208
|
const tokenString = await token("bearer", []);
|
|
@@ -183,7 +224,7 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
183
224
|
/**
|
|
184
225
|
*
|
|
185
226
|
*/
|
|
186
|
-
async getBuyerTransfers(requestParameters: BuyersApiGetBuyerTransfersRequest
|
|
227
|
+
async getBuyerTransfers(requestParameters: BuyersApiGetBuyerTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerTransfers200Response> {
|
|
187
228
|
const response = await this.getBuyerTransfersRaw(requestParameters, initOverrides);
|
|
188
229
|
return await response.value();
|
|
189
230
|
}
|
|
@@ -199,10 +240,21 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
199
240
|
);
|
|
200
241
|
}
|
|
201
242
|
|
|
243
|
+
if (requestParameters['xLocale'] == null) {
|
|
244
|
+
throw new runtime.RequiredError(
|
|
245
|
+
'xLocale',
|
|
246
|
+
'Required parameter "xLocale" was null or undefined when calling getTransferAuthCode().'
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
|
|
202
250
|
const queryParameters: any = {};
|
|
203
251
|
|
|
204
252
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
205
253
|
|
|
254
|
+
if (requestParameters['xLocale'] != null) {
|
|
255
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
256
|
+
}
|
|
257
|
+
|
|
206
258
|
if (this.configuration && this.configuration.accessToken) {
|
|
207
259
|
const token = this.configuration.accessToken;
|
|
208
260
|
const tokenString = await token("bearer", []);
|
|
@@ -232,11 +284,18 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
232
284
|
/**
|
|
233
285
|
*
|
|
234
286
|
*/
|
|
235
|
-
async
|
|
287
|
+
async setBuyerLocaleRaw(requestParameters: BuyersApiSetBuyerLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
288
|
+
if (requestParameters['xLocale'] == null) {
|
|
289
|
+
throw new runtime.RequiredError(
|
|
290
|
+
'xLocale',
|
|
291
|
+
'Required parameter "xLocale" was null or undefined when calling setBuyerLocale().'
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
|
|
236
295
|
if (requestParameters['storeBuyerLocaleInput'] == null) {
|
|
237
296
|
throw new runtime.RequiredError(
|
|
238
297
|
'storeBuyerLocaleInput',
|
|
239
|
-
'Required parameter "storeBuyerLocaleInput" was null or undefined when calling
|
|
298
|
+
'Required parameter "storeBuyerLocaleInput" was null or undefined when calling setBuyerLocale().'
|
|
240
299
|
);
|
|
241
300
|
}
|
|
242
301
|
|
|
@@ -246,6 +305,10 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
246
305
|
|
|
247
306
|
headerParameters['Content-Type'] = 'application/json';
|
|
248
307
|
|
|
308
|
+
if (requestParameters['xLocale'] != null) {
|
|
309
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
310
|
+
}
|
|
311
|
+
|
|
249
312
|
if (this.configuration && this.configuration.accessToken) {
|
|
250
313
|
const token = this.configuration.accessToken;
|
|
251
314
|
const tokenString = await token("bearer", []);
|
|
@@ -268,8 +331,49 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
268
331
|
/**
|
|
269
332
|
*
|
|
270
333
|
*/
|
|
271
|
-
async
|
|
272
|
-
await this.
|
|
334
|
+
async setBuyerLocale(requestParameters: BuyersApiSetBuyerLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
335
|
+
await this.setBuyerLocaleRaw(requestParameters, initOverrides);
|
|
273
336
|
}
|
|
274
337
|
|
|
275
338
|
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* @export
|
|
342
|
+
*/
|
|
343
|
+
export const BuyerMeXLocaleEnum = {
|
|
344
|
+
NL_NL: 'nl-nl',
|
|
345
|
+
EN_GB: 'en-gb'
|
|
346
|
+
} as const;
|
|
347
|
+
export type BuyerMeXLocaleEnum = typeof BuyerMeXLocaleEnum[keyof typeof BuyerMeXLocaleEnum];
|
|
348
|
+
/**
|
|
349
|
+
* @export
|
|
350
|
+
*/
|
|
351
|
+
export const ConfirmDomainTransferXLocaleEnum = {
|
|
352
|
+
NL_NL: 'nl-nl',
|
|
353
|
+
EN_GB: 'en-gb'
|
|
354
|
+
} as const;
|
|
355
|
+
export type ConfirmDomainTransferXLocaleEnum = typeof ConfirmDomainTransferXLocaleEnum[keyof typeof ConfirmDomainTransferXLocaleEnum];
|
|
356
|
+
/**
|
|
357
|
+
* @export
|
|
358
|
+
*/
|
|
359
|
+
export const GetBuyerTransfersXLocaleEnum = {
|
|
360
|
+
NL_NL: 'nl-nl',
|
|
361
|
+
EN_GB: 'en-gb'
|
|
362
|
+
} as const;
|
|
363
|
+
export type GetBuyerTransfersXLocaleEnum = typeof GetBuyerTransfersXLocaleEnum[keyof typeof GetBuyerTransfersXLocaleEnum];
|
|
364
|
+
/**
|
|
365
|
+
* @export
|
|
366
|
+
*/
|
|
367
|
+
export const GetTransferAuthCodeXLocaleEnum = {
|
|
368
|
+
NL_NL: 'nl-nl',
|
|
369
|
+
EN_GB: 'en-gb'
|
|
370
|
+
} as const;
|
|
371
|
+
export type GetTransferAuthCodeXLocaleEnum = typeof GetTransferAuthCodeXLocaleEnum[keyof typeof GetTransferAuthCodeXLocaleEnum];
|
|
372
|
+
/**
|
|
373
|
+
* @export
|
|
374
|
+
*/
|
|
375
|
+
export const SetBuyerLocaleXLocaleEnum = {
|
|
376
|
+
NL_NL: 'nl-nl',
|
|
377
|
+
EN_GB: 'en-gb'
|
|
378
|
+
} as const;
|
|
379
|
+
export type SetBuyerLocaleXLocaleEnum = typeof SetBuyerLocaleXLocaleEnum[keyof typeof SetBuyerLocaleXLocaleEnum];
|
|
@@ -35,10 +35,12 @@ import {
|
|
|
35
35
|
} from '../models/index';
|
|
36
36
|
|
|
37
37
|
export interface BuyersPublicApiBuyerLoginRequest {
|
|
38
|
+
xLocale: BuyerLoginXLocaleEnum;
|
|
38
39
|
loginInput: LoginInput;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
export interface BuyersPublicApiRequestAccessTokenRequest {
|
|
43
|
+
xLocale: RequestAccessTokenXLocaleEnum;
|
|
42
44
|
requestAccessTokenInput: RequestAccessTokenInput;
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -51,6 +53,13 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
51
53
|
*
|
|
52
54
|
*/
|
|
53
55
|
async buyerLoginRaw(requestParameters: BuyersPublicApiBuyerLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>> {
|
|
56
|
+
if (requestParameters['xLocale'] == null) {
|
|
57
|
+
throw new runtime.RequiredError(
|
|
58
|
+
'xLocale',
|
|
59
|
+
'Required parameter "xLocale" was null or undefined when calling buyerLogin().'
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
54
63
|
if (requestParameters['loginInput'] == null) {
|
|
55
64
|
throw new runtime.RequiredError(
|
|
56
65
|
'loginInput',
|
|
@@ -64,6 +73,10 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
64
73
|
|
|
65
74
|
headerParameters['Content-Type'] = 'application/json';
|
|
66
75
|
|
|
76
|
+
if (requestParameters['xLocale'] != null) {
|
|
77
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
78
|
+
}
|
|
79
|
+
|
|
67
80
|
const response = await this.request({
|
|
68
81
|
path: `/buyers/login`,
|
|
69
82
|
method: 'POST',
|
|
@@ -87,6 +100,13 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
87
100
|
*
|
|
88
101
|
*/
|
|
89
102
|
async requestAccessTokenRaw(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
103
|
+
if (requestParameters['xLocale'] == null) {
|
|
104
|
+
throw new runtime.RequiredError(
|
|
105
|
+
'xLocale',
|
|
106
|
+
'Required parameter "xLocale" was null or undefined when calling requestAccessToken().'
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
90
110
|
if (requestParameters['requestAccessTokenInput'] == null) {
|
|
91
111
|
throw new runtime.RequiredError(
|
|
92
112
|
'requestAccessTokenInput',
|
|
@@ -100,6 +120,10 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
100
120
|
|
|
101
121
|
headerParameters['Content-Type'] = 'application/json';
|
|
102
122
|
|
|
123
|
+
if (requestParameters['xLocale'] != null) {
|
|
124
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
125
|
+
}
|
|
126
|
+
|
|
103
127
|
const response = await this.request({
|
|
104
128
|
path: `/buyers/request-access-token`,
|
|
105
129
|
method: 'POST',
|
|
@@ -119,3 +143,20 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
119
143
|
}
|
|
120
144
|
|
|
121
145
|
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @export
|
|
149
|
+
*/
|
|
150
|
+
export const BuyerLoginXLocaleEnum = {
|
|
151
|
+
NL_NL: 'nl-nl',
|
|
152
|
+
EN_GB: 'en-gb'
|
|
153
|
+
} as const;
|
|
154
|
+
export type BuyerLoginXLocaleEnum = typeof BuyerLoginXLocaleEnum[keyof typeof BuyerLoginXLocaleEnum];
|
|
155
|
+
/**
|
|
156
|
+
* @export
|
|
157
|
+
*/
|
|
158
|
+
export const RequestAccessTokenXLocaleEnum = {
|
|
159
|
+
NL_NL: 'nl-nl',
|
|
160
|
+
EN_GB: 'en-gb'
|
|
161
|
+
} as const;
|
|
162
|
+
export type RequestAccessTokenXLocaleEnum = typeof RequestAccessTokenXLocaleEnum[keyof typeof RequestAccessTokenXLocaleEnum];
|
package/src/apis/DashboardApi.ts
CHANGED
|
@@ -28,6 +28,10 @@ import {
|
|
|
28
28
|
ValidationExceptionToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
+
export interface DashboardApiStatsRequest {
|
|
32
|
+
xLocale: StatsXLocaleEnum;
|
|
33
|
+
}
|
|
34
|
+
|
|
31
35
|
/**
|
|
32
36
|
*
|
|
33
37
|
*/
|
|
@@ -36,11 +40,22 @@ export class DashboardApi extends runtime.BaseAPI {
|
|
|
36
40
|
/**
|
|
37
41
|
*
|
|
38
42
|
*/
|
|
39
|
-
async statsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DashboardStatsDto>> {
|
|
43
|
+
async statsRaw(requestParameters: DashboardApiStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DashboardStatsDto>> {
|
|
44
|
+
if (requestParameters['xLocale'] == null) {
|
|
45
|
+
throw new runtime.RequiredError(
|
|
46
|
+
'xLocale',
|
|
47
|
+
'Required parameter "xLocale" was null or undefined when calling stats().'
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
40
51
|
const queryParameters: any = {};
|
|
41
52
|
|
|
42
53
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
43
54
|
|
|
55
|
+
if (requestParameters['xLocale'] != null) {
|
|
56
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
57
|
+
}
|
|
58
|
+
|
|
44
59
|
if (this.configuration && this.configuration.accessToken) {
|
|
45
60
|
const token = this.configuration.accessToken;
|
|
46
61
|
const tokenString = await token("bearer", []);
|
|
@@ -62,9 +77,18 @@ export class DashboardApi extends runtime.BaseAPI {
|
|
|
62
77
|
/**
|
|
63
78
|
*
|
|
64
79
|
*/
|
|
65
|
-
async stats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DashboardStatsDto> {
|
|
66
|
-
const response = await this.statsRaw(initOverrides);
|
|
80
|
+
async stats(requestParameters: DashboardApiStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DashboardStatsDto> {
|
|
81
|
+
const response = await this.statsRaw(requestParameters, initOverrides);
|
|
67
82
|
return await response.value();
|
|
68
83
|
}
|
|
69
84
|
|
|
70
85
|
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export const StatsXLocaleEnum = {
|
|
91
|
+
NL_NL: 'nl-nl',
|
|
92
|
+
EN_GB: 'en-gb'
|
|
93
|
+
} as const;
|
|
94
|
+
export type StatsXLocaleEnum = typeof StatsXLocaleEnum[keyof typeof StatsXLocaleEnum];
|