@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/LeadsApi.ts
CHANGED
|
@@ -45,23 +45,32 @@ import {
|
|
|
45
45
|
|
|
46
46
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
47
47
|
leadId: string;
|
|
48
|
+
xLocale: AcceptLeadOfferXLocaleEnum;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
export interface LeadsApiCreateMessageRequest {
|
|
51
52
|
leadId: string;
|
|
53
|
+
xLocale: CreateMessageXLocaleEnum;
|
|
52
54
|
createLeadMessageInput: CreateLeadMessageInput;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
export interface
|
|
57
|
+
export interface LeadsApiGetLeadRequest {
|
|
56
58
|
leadId: string;
|
|
59
|
+
xLocale: GetLeadXLocaleEnum;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
export interface LeadsApiGetMessagesRequest {
|
|
60
63
|
leadId: string;
|
|
64
|
+
xLocale: GetMessagesXLocaleEnum;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface LeadsApiListLeadsRequest {
|
|
68
|
+
xLocale: ListLeadsXLocaleEnum;
|
|
61
69
|
}
|
|
62
70
|
|
|
63
71
|
export interface LeadsApiPutOfferRequest {
|
|
64
72
|
leadId: string;
|
|
73
|
+
xLocale: PutOfferXLocaleEnum;
|
|
65
74
|
putLeadOfferInput: PutLeadOfferInput;
|
|
66
75
|
}
|
|
67
76
|
|
|
@@ -81,10 +90,21 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
81
90
|
);
|
|
82
91
|
}
|
|
83
92
|
|
|
93
|
+
if (requestParameters['xLocale'] == null) {
|
|
94
|
+
throw new runtime.RequiredError(
|
|
95
|
+
'xLocale',
|
|
96
|
+
'Required parameter "xLocale" was null or undefined when calling acceptLeadOffer().'
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
84
100
|
const queryParameters: any = {};
|
|
85
101
|
|
|
86
102
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
87
103
|
|
|
104
|
+
if (requestParameters['xLocale'] != null) {
|
|
105
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
106
|
+
}
|
|
107
|
+
|
|
88
108
|
if (this.configuration && this.configuration.accessToken) {
|
|
89
109
|
const token = this.configuration.accessToken;
|
|
90
110
|
const tokenString = await token("bearer", []);
|
|
@@ -121,6 +141,13 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
121
141
|
);
|
|
122
142
|
}
|
|
123
143
|
|
|
144
|
+
if (requestParameters['xLocale'] == null) {
|
|
145
|
+
throw new runtime.RequiredError(
|
|
146
|
+
'xLocale',
|
|
147
|
+
'Required parameter "xLocale" was null or undefined when calling createMessage().'
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
124
151
|
if (requestParameters['createLeadMessageInput'] == null) {
|
|
125
152
|
throw new runtime.RequiredError(
|
|
126
153
|
'createLeadMessageInput',
|
|
@@ -134,6 +161,10 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
134
161
|
|
|
135
162
|
headerParameters['Content-Type'] = 'application/json';
|
|
136
163
|
|
|
164
|
+
if (requestParameters['xLocale'] != null) {
|
|
165
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
166
|
+
}
|
|
167
|
+
|
|
137
168
|
if (this.configuration && this.configuration.accessToken) {
|
|
138
169
|
const token = this.configuration.accessToken;
|
|
139
170
|
const tokenString = await token("bearer", []);
|
|
@@ -164,11 +195,18 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
164
195
|
/**
|
|
165
196
|
*
|
|
166
197
|
*/
|
|
167
|
-
async
|
|
198
|
+
async getLeadRaw(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDto>> {
|
|
168
199
|
if (requestParameters['leadId'] == null) {
|
|
169
200
|
throw new runtime.RequiredError(
|
|
170
201
|
'leadId',
|
|
171
|
-
'Required parameter "leadId" was null or undefined when calling
|
|
202
|
+
'Required parameter "leadId" was null or undefined when calling getLead().'
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
if (requestParameters['xLocale'] == null) {
|
|
207
|
+
throw new runtime.RequiredError(
|
|
208
|
+
'xLocale',
|
|
209
|
+
'Required parameter "xLocale" was null or undefined when calling getLead().'
|
|
172
210
|
);
|
|
173
211
|
}
|
|
174
212
|
|
|
@@ -176,6 +214,10 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
176
214
|
|
|
177
215
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
178
216
|
|
|
217
|
+
if (requestParameters['xLocale'] != null) {
|
|
218
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
219
|
+
}
|
|
220
|
+
|
|
179
221
|
if (this.configuration && this.configuration.accessToken) {
|
|
180
222
|
const token = this.configuration.accessToken;
|
|
181
223
|
const tokenString = await token("bearer", []);
|
|
@@ -197,8 +239,8 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
197
239
|
/**
|
|
198
240
|
*
|
|
199
241
|
*/
|
|
200
|
-
async
|
|
201
|
-
const response = await this.
|
|
242
|
+
async getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDto> {
|
|
243
|
+
const response = await this.getLeadRaw(requestParameters, initOverrides);
|
|
202
244
|
return await response.value();
|
|
203
245
|
}
|
|
204
246
|
|
|
@@ -213,10 +255,21 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
213
255
|
);
|
|
214
256
|
}
|
|
215
257
|
|
|
258
|
+
if (requestParameters['xLocale'] == null) {
|
|
259
|
+
throw new runtime.RequiredError(
|
|
260
|
+
'xLocale',
|
|
261
|
+
'Required parameter "xLocale" was null or undefined when calling getMessages().'
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
216
265
|
const queryParameters: any = {};
|
|
217
266
|
|
|
218
267
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
219
268
|
|
|
269
|
+
if (requestParameters['xLocale'] != null) {
|
|
270
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
271
|
+
}
|
|
272
|
+
|
|
220
273
|
if (this.configuration && this.configuration.accessToken) {
|
|
221
274
|
const token = this.configuration.accessToken;
|
|
222
275
|
const tokenString = await token("bearer", []);
|
|
@@ -246,11 +299,22 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
246
299
|
/**
|
|
247
300
|
*
|
|
248
301
|
*/
|
|
249
|
-
async listLeadsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IntersectionLeadDtoWithListFieldsDto>>> {
|
|
302
|
+
async listLeadsRaw(requestParameters: LeadsApiListLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IntersectionLeadDtoWithListFieldsDto>>> {
|
|
303
|
+
if (requestParameters['xLocale'] == null) {
|
|
304
|
+
throw new runtime.RequiredError(
|
|
305
|
+
'xLocale',
|
|
306
|
+
'Required parameter "xLocale" was null or undefined when calling listLeads().'
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
250
310
|
const queryParameters: any = {};
|
|
251
311
|
|
|
252
312
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
253
313
|
|
|
314
|
+
if (requestParameters['xLocale'] != null) {
|
|
315
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
316
|
+
}
|
|
317
|
+
|
|
254
318
|
if (this.configuration && this.configuration.accessToken) {
|
|
255
319
|
const token = this.configuration.accessToken;
|
|
256
320
|
const tokenString = await token("bearer", []);
|
|
@@ -272,8 +336,8 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
272
336
|
/**
|
|
273
337
|
*
|
|
274
338
|
*/
|
|
275
|
-
async listLeads(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDtoWithListFieldsDto>> {
|
|
276
|
-
const response = await this.listLeadsRaw(initOverrides);
|
|
339
|
+
async listLeads(requestParameters: LeadsApiListLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDtoWithListFieldsDto>> {
|
|
340
|
+
const response = await this.listLeadsRaw(requestParameters, initOverrides);
|
|
277
341
|
return await response.value();
|
|
278
342
|
}
|
|
279
343
|
|
|
@@ -288,6 +352,13 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
288
352
|
);
|
|
289
353
|
}
|
|
290
354
|
|
|
355
|
+
if (requestParameters['xLocale'] == null) {
|
|
356
|
+
throw new runtime.RequiredError(
|
|
357
|
+
'xLocale',
|
|
358
|
+
'Required parameter "xLocale" was null or undefined when calling putOffer().'
|
|
359
|
+
);
|
|
360
|
+
}
|
|
361
|
+
|
|
291
362
|
if (requestParameters['putLeadOfferInput'] == null) {
|
|
292
363
|
throw new runtime.RequiredError(
|
|
293
364
|
'putLeadOfferInput',
|
|
@@ -301,6 +372,10 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
301
372
|
|
|
302
373
|
headerParameters['Content-Type'] = 'application/json';
|
|
303
374
|
|
|
375
|
+
if (requestParameters['xLocale'] != null) {
|
|
376
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
377
|
+
}
|
|
378
|
+
|
|
304
379
|
if (this.configuration && this.configuration.accessToken) {
|
|
305
380
|
const token = this.configuration.accessToken;
|
|
306
381
|
const tokenString = await token("bearer", []);
|
|
@@ -328,3 +403,52 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
328
403
|
}
|
|
329
404
|
|
|
330
405
|
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* @export
|
|
409
|
+
*/
|
|
410
|
+
export const AcceptLeadOfferXLocaleEnum = {
|
|
411
|
+
NL_NL: 'nl-nl',
|
|
412
|
+
EN_GB: 'en-gb'
|
|
413
|
+
} as const;
|
|
414
|
+
export type AcceptLeadOfferXLocaleEnum = typeof AcceptLeadOfferXLocaleEnum[keyof typeof AcceptLeadOfferXLocaleEnum];
|
|
415
|
+
/**
|
|
416
|
+
* @export
|
|
417
|
+
*/
|
|
418
|
+
export const CreateMessageXLocaleEnum = {
|
|
419
|
+
NL_NL: 'nl-nl',
|
|
420
|
+
EN_GB: 'en-gb'
|
|
421
|
+
} as const;
|
|
422
|
+
export type CreateMessageXLocaleEnum = typeof CreateMessageXLocaleEnum[keyof typeof CreateMessageXLocaleEnum];
|
|
423
|
+
/**
|
|
424
|
+
* @export
|
|
425
|
+
*/
|
|
426
|
+
export const GetLeadXLocaleEnum = {
|
|
427
|
+
NL_NL: 'nl-nl',
|
|
428
|
+
EN_GB: 'en-gb'
|
|
429
|
+
} as const;
|
|
430
|
+
export type GetLeadXLocaleEnum = typeof GetLeadXLocaleEnum[keyof typeof GetLeadXLocaleEnum];
|
|
431
|
+
/**
|
|
432
|
+
* @export
|
|
433
|
+
*/
|
|
434
|
+
export const GetMessagesXLocaleEnum = {
|
|
435
|
+
NL_NL: 'nl-nl',
|
|
436
|
+
EN_GB: 'en-gb'
|
|
437
|
+
} as const;
|
|
438
|
+
export type GetMessagesXLocaleEnum = typeof GetMessagesXLocaleEnum[keyof typeof GetMessagesXLocaleEnum];
|
|
439
|
+
/**
|
|
440
|
+
* @export
|
|
441
|
+
*/
|
|
442
|
+
export const ListLeadsXLocaleEnum = {
|
|
443
|
+
NL_NL: 'nl-nl',
|
|
444
|
+
EN_GB: 'en-gb'
|
|
445
|
+
} as const;
|
|
446
|
+
export type ListLeadsXLocaleEnum = typeof ListLeadsXLocaleEnum[keyof typeof ListLeadsXLocaleEnum];
|
|
447
|
+
/**
|
|
448
|
+
* @export
|
|
449
|
+
*/
|
|
450
|
+
export const PutOfferXLocaleEnum = {
|
|
451
|
+
NL_NL: 'nl-nl',
|
|
452
|
+
EN_GB: 'en-gb'
|
|
453
|
+
} as const;
|
|
454
|
+
export type PutOfferXLocaleEnum = typeof PutOfferXLocaleEnum[keyof typeof PutOfferXLocaleEnum];
|
|
@@ -47,24 +47,29 @@ import {
|
|
|
47
47
|
} from '../models/index';
|
|
48
48
|
|
|
49
49
|
export interface LeadsPublicApiCreateLeadRequest {
|
|
50
|
+
xLocale: CreateLeadXLocaleEnum;
|
|
50
51
|
createLeadInput: CreateLeadInput;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
export interface
|
|
54
|
+
export interface LeadsPublicApiGetLeadStatusRequest {
|
|
54
55
|
leadId: string;
|
|
56
|
+
xLocale: GetLeadStatusXLocaleEnum;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
export interface
|
|
59
|
+
export interface LeadsPublicApiGetPublicLeadRequest {
|
|
58
60
|
leadId: string;
|
|
61
|
+
xLocale: GetPublicLeadXLocaleEnum;
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
export interface LeadsPublicApiUpdateLeadRequest {
|
|
62
65
|
leadId: string;
|
|
66
|
+
xLocale: UpdateLeadXLocaleEnum;
|
|
63
67
|
updateLeadInput: UpdateLeadInput;
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
export interface LeadsPublicApiVerifyLeadRequest {
|
|
67
71
|
leadId: string;
|
|
72
|
+
xLocale: VerifyLeadXLocaleEnum;
|
|
68
73
|
verifyLeadInput: VerifyLeadInput;
|
|
69
74
|
}
|
|
70
75
|
|
|
@@ -77,6 +82,13 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
77
82
|
*
|
|
78
83
|
*/
|
|
79
84
|
async createLeadRaw(requestParameters: LeadsPublicApiCreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
85
|
+
if (requestParameters['xLocale'] == null) {
|
|
86
|
+
throw new runtime.RequiredError(
|
|
87
|
+
'xLocale',
|
|
88
|
+
'Required parameter "xLocale" was null or undefined when calling createLead().'
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
80
92
|
if (requestParameters['createLeadInput'] == null) {
|
|
81
93
|
throw new runtime.RequiredError(
|
|
82
94
|
'createLeadInput',
|
|
@@ -90,6 +102,10 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
90
102
|
|
|
91
103
|
headerParameters['Content-Type'] = 'application/json';
|
|
92
104
|
|
|
105
|
+
if (requestParameters['xLocale'] != null) {
|
|
106
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
107
|
+
}
|
|
108
|
+
|
|
93
109
|
const response = await this.request({
|
|
94
110
|
path: `/leads`,
|
|
95
111
|
method: 'POST',
|
|
@@ -112,11 +128,18 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
112
128
|
/**
|
|
113
129
|
*
|
|
114
130
|
*/
|
|
115
|
-
async
|
|
131
|
+
async getLeadStatusRaw(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadStatusDto>> {
|
|
116
132
|
if (requestParameters['leadId'] == null) {
|
|
117
133
|
throw new runtime.RequiredError(
|
|
118
134
|
'leadId',
|
|
119
|
-
'Required parameter "leadId" was null or undefined when calling
|
|
135
|
+
'Required parameter "leadId" was null or undefined when calling getLeadStatus().'
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (requestParameters['xLocale'] == null) {
|
|
140
|
+
throw new runtime.RequiredError(
|
|
141
|
+
'xLocale',
|
|
142
|
+
'Required parameter "xLocale" was null or undefined when calling getLeadStatus().'
|
|
120
143
|
);
|
|
121
144
|
}
|
|
122
145
|
|
|
@@ -124,32 +147,43 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
124
147
|
|
|
125
148
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
126
149
|
|
|
150
|
+
if (requestParameters['xLocale'] != null) {
|
|
151
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
152
|
+
}
|
|
153
|
+
|
|
127
154
|
const response = await this.request({
|
|
128
|
-
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
155
|
+
path: `/leads/{leadId}/status`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
129
156
|
method: 'GET',
|
|
130
157
|
headers: headerParameters,
|
|
131
158
|
query: queryParameters,
|
|
132
159
|
}, initOverrides);
|
|
133
160
|
|
|
134
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
161
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LeadStatusDtoFromJSON(jsonValue));
|
|
135
162
|
}
|
|
136
163
|
|
|
137
164
|
/**
|
|
138
165
|
*
|
|
139
166
|
*/
|
|
140
|
-
async
|
|
141
|
-
const response = await this.
|
|
167
|
+
async getLeadStatus(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadStatusDto> {
|
|
168
|
+
const response = await this.getLeadStatusRaw(requestParameters, initOverrides);
|
|
142
169
|
return await response.value();
|
|
143
170
|
}
|
|
144
171
|
|
|
145
172
|
/**
|
|
146
173
|
*
|
|
147
174
|
*/
|
|
148
|
-
async
|
|
175
|
+
async getPublicLeadRaw(requestParameters: LeadsPublicApiGetPublicLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>> {
|
|
149
176
|
if (requestParameters['leadId'] == null) {
|
|
150
177
|
throw new runtime.RequiredError(
|
|
151
178
|
'leadId',
|
|
152
|
-
'Required parameter "leadId" was null or undefined when calling
|
|
179
|
+
'Required parameter "leadId" was null or undefined when calling getPublicLead().'
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (requestParameters['xLocale'] == null) {
|
|
184
|
+
throw new runtime.RequiredError(
|
|
185
|
+
'xLocale',
|
|
186
|
+
'Required parameter "xLocale" was null or undefined when calling getPublicLead().'
|
|
153
187
|
);
|
|
154
188
|
}
|
|
155
189
|
|
|
@@ -157,21 +191,25 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
157
191
|
|
|
158
192
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
159
193
|
|
|
194
|
+
if (requestParameters['xLocale'] != null) {
|
|
195
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
196
|
+
}
|
|
197
|
+
|
|
160
198
|
const response = await this.request({
|
|
161
|
-
path: `/leads/{leadId}
|
|
199
|
+
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
162
200
|
method: 'GET',
|
|
163
201
|
headers: headerParameters,
|
|
164
202
|
query: queryParameters,
|
|
165
203
|
}, initOverrides);
|
|
166
204
|
|
|
167
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
205
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PublicLeadDtoFromJSON(jsonValue));
|
|
168
206
|
}
|
|
169
207
|
|
|
170
208
|
/**
|
|
171
209
|
*
|
|
172
210
|
*/
|
|
173
|
-
async
|
|
174
|
-
const response = await this.
|
|
211
|
+
async getPublicLead(requestParameters: LeadsPublicApiGetPublicLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto> {
|
|
212
|
+
const response = await this.getPublicLeadRaw(requestParameters, initOverrides);
|
|
175
213
|
return await response.value();
|
|
176
214
|
}
|
|
177
215
|
|
|
@@ -186,6 +224,13 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
186
224
|
);
|
|
187
225
|
}
|
|
188
226
|
|
|
227
|
+
if (requestParameters['xLocale'] == null) {
|
|
228
|
+
throw new runtime.RequiredError(
|
|
229
|
+
'xLocale',
|
|
230
|
+
'Required parameter "xLocale" was null or undefined when calling updateLead().'
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
189
234
|
if (requestParameters['updateLeadInput'] == null) {
|
|
190
235
|
throw new runtime.RequiredError(
|
|
191
236
|
'updateLeadInput',
|
|
@@ -199,6 +244,10 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
199
244
|
|
|
200
245
|
headerParameters['Content-Type'] = 'application/json';
|
|
201
246
|
|
|
247
|
+
if (requestParameters['xLocale'] != null) {
|
|
248
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
249
|
+
}
|
|
250
|
+
|
|
202
251
|
const response = await this.request({
|
|
203
252
|
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
204
253
|
method: 'PUT',
|
|
@@ -228,6 +277,13 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
228
277
|
);
|
|
229
278
|
}
|
|
230
279
|
|
|
280
|
+
if (requestParameters['xLocale'] == null) {
|
|
281
|
+
throw new runtime.RequiredError(
|
|
282
|
+
'xLocale',
|
|
283
|
+
'Required parameter "xLocale" was null or undefined when calling verifyLead().'
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
|
|
231
287
|
if (requestParameters['verifyLeadInput'] == null) {
|
|
232
288
|
throw new runtime.RequiredError(
|
|
233
289
|
'verifyLeadInput',
|
|
@@ -241,6 +297,10 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
241
297
|
|
|
242
298
|
headerParameters['Content-Type'] = 'application/json';
|
|
243
299
|
|
|
300
|
+
if (requestParameters['xLocale'] != null) {
|
|
301
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
302
|
+
}
|
|
303
|
+
|
|
244
304
|
const response = await this.request({
|
|
245
305
|
path: `/leads/{leadId}/verify`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
246
306
|
method: 'POST',
|
|
@@ -260,3 +320,44 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
260
320
|
}
|
|
261
321
|
|
|
262
322
|
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* @export
|
|
326
|
+
*/
|
|
327
|
+
export const CreateLeadXLocaleEnum = {
|
|
328
|
+
NL_NL: 'nl-nl',
|
|
329
|
+
EN_GB: 'en-gb'
|
|
330
|
+
} as const;
|
|
331
|
+
export type CreateLeadXLocaleEnum = typeof CreateLeadXLocaleEnum[keyof typeof CreateLeadXLocaleEnum];
|
|
332
|
+
/**
|
|
333
|
+
* @export
|
|
334
|
+
*/
|
|
335
|
+
export const GetLeadStatusXLocaleEnum = {
|
|
336
|
+
NL_NL: 'nl-nl',
|
|
337
|
+
EN_GB: 'en-gb'
|
|
338
|
+
} as const;
|
|
339
|
+
export type GetLeadStatusXLocaleEnum = typeof GetLeadStatusXLocaleEnum[keyof typeof GetLeadStatusXLocaleEnum];
|
|
340
|
+
/**
|
|
341
|
+
* @export
|
|
342
|
+
*/
|
|
343
|
+
export const GetPublicLeadXLocaleEnum = {
|
|
344
|
+
NL_NL: 'nl-nl',
|
|
345
|
+
EN_GB: 'en-gb'
|
|
346
|
+
} as const;
|
|
347
|
+
export type GetPublicLeadXLocaleEnum = typeof GetPublicLeadXLocaleEnum[keyof typeof GetPublicLeadXLocaleEnum];
|
|
348
|
+
/**
|
|
349
|
+
* @export
|
|
350
|
+
*/
|
|
351
|
+
export const UpdateLeadXLocaleEnum = {
|
|
352
|
+
NL_NL: 'nl-nl',
|
|
353
|
+
EN_GB: 'en-gb'
|
|
354
|
+
} as const;
|
|
355
|
+
export type UpdateLeadXLocaleEnum = typeof UpdateLeadXLocaleEnum[keyof typeof UpdateLeadXLocaleEnum];
|
|
356
|
+
/**
|
|
357
|
+
* @export
|
|
358
|
+
*/
|
|
359
|
+
export const VerifyLeadXLocaleEnum = {
|
|
360
|
+
NL_NL: 'nl-nl',
|
|
361
|
+
EN_GB: 'en-gb'
|
|
362
|
+
} as const;
|
|
363
|
+
export type VerifyLeadXLocaleEnum = typeof VerifyLeadXLocaleEnum[keyof typeof VerifyLeadXLocaleEnum];
|
|
@@ -41,15 +41,18 @@ import {
|
|
|
41
41
|
} from '../models/index';
|
|
42
42
|
|
|
43
43
|
export interface OrdersPublicApiCreateOrderRequest {
|
|
44
|
+
xLocale: CreateOrderXLocaleEnum;
|
|
44
45
|
createOrderInput: CreateOrderInput;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
export interface OrdersPublicApiGetOrderRequest {
|
|
48
49
|
orderId: string;
|
|
50
|
+
xLocale: GetOrderXLocaleEnum;
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
export interface OrdersPublicApiUpdateOrderRequest {
|
|
52
54
|
orderId: string;
|
|
55
|
+
xLocale: UpdateOrderXLocaleEnum;
|
|
53
56
|
updateOrderInput: UpdateOrderInput;
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -62,6 +65,13 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
62
65
|
*
|
|
63
66
|
*/
|
|
64
67
|
async createOrderRaw(requestParameters: OrdersPublicApiCreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
68
|
+
if (requestParameters['xLocale'] == null) {
|
|
69
|
+
throw new runtime.RequiredError(
|
|
70
|
+
'xLocale',
|
|
71
|
+
'Required parameter "xLocale" was null or undefined when calling createOrder().'
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
65
75
|
if (requestParameters['createOrderInput'] == null) {
|
|
66
76
|
throw new runtime.RequiredError(
|
|
67
77
|
'createOrderInput',
|
|
@@ -75,6 +85,10 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
75
85
|
|
|
76
86
|
headerParameters['Content-Type'] = 'application/json';
|
|
77
87
|
|
|
88
|
+
if (requestParameters['xLocale'] != null) {
|
|
89
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
90
|
+
}
|
|
91
|
+
|
|
78
92
|
const response = await this.request({
|
|
79
93
|
path: `/orders`,
|
|
80
94
|
method: 'POST',
|
|
@@ -105,10 +119,21 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
105
119
|
);
|
|
106
120
|
}
|
|
107
121
|
|
|
122
|
+
if (requestParameters['xLocale'] == null) {
|
|
123
|
+
throw new runtime.RequiredError(
|
|
124
|
+
'xLocale',
|
|
125
|
+
'Required parameter "xLocale" was null or undefined when calling getOrder().'
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
108
129
|
const queryParameters: any = {};
|
|
109
130
|
|
|
110
131
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
111
132
|
|
|
133
|
+
if (requestParameters['xLocale'] != null) {
|
|
134
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
135
|
+
}
|
|
136
|
+
|
|
112
137
|
const response = await this.request({
|
|
113
138
|
path: `/orders/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
114
139
|
method: 'GET',
|
|
@@ -138,6 +163,13 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
138
163
|
);
|
|
139
164
|
}
|
|
140
165
|
|
|
166
|
+
if (requestParameters['xLocale'] == null) {
|
|
167
|
+
throw new runtime.RequiredError(
|
|
168
|
+
'xLocale',
|
|
169
|
+
'Required parameter "xLocale" was null or undefined when calling updateOrder().'
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
141
173
|
if (requestParameters['updateOrderInput'] == null) {
|
|
142
174
|
throw new runtime.RequiredError(
|
|
143
175
|
'updateOrderInput',
|
|
@@ -151,6 +183,10 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
151
183
|
|
|
152
184
|
headerParameters['Content-Type'] = 'application/json';
|
|
153
185
|
|
|
186
|
+
if (requestParameters['xLocale'] != null) {
|
|
187
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
188
|
+
}
|
|
189
|
+
|
|
154
190
|
const response = await this.request({
|
|
155
191
|
path: `/orders/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
156
192
|
method: 'PUT',
|
|
@@ -170,3 +206,28 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
170
206
|
}
|
|
171
207
|
|
|
172
208
|
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @export
|
|
212
|
+
*/
|
|
213
|
+
export const CreateOrderXLocaleEnum = {
|
|
214
|
+
NL_NL: 'nl-nl',
|
|
215
|
+
EN_GB: 'en-gb'
|
|
216
|
+
} as const;
|
|
217
|
+
export type CreateOrderXLocaleEnum = typeof CreateOrderXLocaleEnum[keyof typeof CreateOrderXLocaleEnum];
|
|
218
|
+
/**
|
|
219
|
+
* @export
|
|
220
|
+
*/
|
|
221
|
+
export const GetOrderXLocaleEnum = {
|
|
222
|
+
NL_NL: 'nl-nl',
|
|
223
|
+
EN_GB: 'en-gb'
|
|
224
|
+
} as const;
|
|
225
|
+
export type GetOrderXLocaleEnum = typeof GetOrderXLocaleEnum[keyof typeof GetOrderXLocaleEnum];
|
|
226
|
+
/**
|
|
227
|
+
* @export
|
|
228
|
+
*/
|
|
229
|
+
export const UpdateOrderXLocaleEnum = {
|
|
230
|
+
NL_NL: 'nl-nl',
|
|
231
|
+
EN_GB: 'en-gb'
|
|
232
|
+
} as const;
|
|
233
|
+
export type UpdateOrderXLocaleEnum = typeof UpdateOrderXLocaleEnum[keyof typeof UpdateOrderXLocaleEnum];
|
package/src/apis/UsersApi.ts
CHANGED
|
@@ -28,7 +28,8 @@ import {
|
|
|
28
28
|
ValidationExceptionToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
-
export interface
|
|
31
|
+
export interface UsersApiSetUserLocaleRequest {
|
|
32
|
+
xLocale: SetUserLocaleXLocaleEnum;
|
|
32
33
|
storeUserLocaleInput: StoreUserLocaleInput;
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -40,11 +41,18 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
40
41
|
/**
|
|
41
42
|
*
|
|
42
43
|
*/
|
|
43
|
-
async
|
|
44
|
+
async setUserLocaleRaw(requestParameters: UsersApiSetUserLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
45
|
+
if (requestParameters['xLocale'] == null) {
|
|
46
|
+
throw new runtime.RequiredError(
|
|
47
|
+
'xLocale',
|
|
48
|
+
'Required parameter "xLocale" was null or undefined when calling setUserLocale().'
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
44
52
|
if (requestParameters['storeUserLocaleInput'] == null) {
|
|
45
53
|
throw new runtime.RequiredError(
|
|
46
54
|
'storeUserLocaleInput',
|
|
47
|
-
'Required parameter "storeUserLocaleInput" was null or undefined when calling
|
|
55
|
+
'Required parameter "storeUserLocaleInput" was null or undefined when calling setUserLocale().'
|
|
48
56
|
);
|
|
49
57
|
}
|
|
50
58
|
|
|
@@ -54,6 +62,10 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
54
62
|
|
|
55
63
|
headerParameters['Content-Type'] = 'application/json';
|
|
56
64
|
|
|
65
|
+
if (requestParameters['xLocale'] != null) {
|
|
66
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
67
|
+
}
|
|
68
|
+
|
|
57
69
|
if (this.configuration && this.configuration.accessToken) {
|
|
58
70
|
const token = this.configuration.accessToken;
|
|
59
71
|
const tokenString = await token("bearer", []);
|
|
@@ -76,8 +88,17 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
76
88
|
/**
|
|
77
89
|
*
|
|
78
90
|
*/
|
|
79
|
-
async
|
|
80
|
-
await this.
|
|
91
|
+
async setUserLocale(requestParameters: UsersApiSetUserLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
92
|
+
await this.setUserLocaleRaw(requestParameters, initOverrides);
|
|
81
93
|
}
|
|
82
94
|
|
|
83
95
|
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export const SetUserLocaleXLocaleEnum = {
|
|
101
|
+
NL_NL: 'nl-nl',
|
|
102
|
+
EN_GB: 'en-gb'
|
|
103
|
+
} as const;
|
|
104
|
+
export type SetUserLocaleXLocaleEnum = typeof SetUserLocaleXLocaleEnum[keyof typeof SetUserLocaleXLocaleEnum];
|