@randock/nameshift-api-client 0.0.70 → 0.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -3
- 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 +4 -12
- package/dist/apis/DomainsPublicApi.js +5 -15
- 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/dist/models/ChartDataPoint.d.ts +37 -0
- package/dist/models/ChartDataPoint.js +51 -0
- package/dist/models/DomainStats.d.ts +58 -0
- package/dist/models/DomainStats.js +67 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +65 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +71 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.d.ts +37 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.js +51 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.d.ts +37 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.js +51 -0
- package/dist/models/index.d.ts +5 -3
- package/dist/models/index.js +5 -3
- 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 +11 -27
- 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
- package/src/models/ChartDataPoint.ts +70 -0
- package/src/models/DomainStats.ts +106 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +131 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.ts +70 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.ts +70 -0
- package/src/models/index.ts +5 -3
- package/dist/models/DomainSalesInformationDto.d.ts +0 -58
- package/dist/models/DomainSalesInformationDto.js +0 -66
- package/dist/models/DomainSalesInformationDtoBuyNowPrice.d.ts +0 -37
- package/dist/models/DomainSalesInformationDtoBuyNowPrice.js +0 -51
- package/dist/models/DomainSalesInformationDtoMinOfferPrice.d.ts +0 -37
- package/dist/models/DomainSalesInformationDtoMinOfferPrice.js +0 -51
- package/src/models/DomainSalesInformationDto.ts +0 -116
- package/src/models/DomainSalesInformationDtoBuyNowPrice.ts +0 -70
- package/src/models/DomainSalesInformationDtoMinOfferPrice.ts +0 -70
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -45,32 +45,23 @@ import {
|
|
|
45
45
|
|
|
46
46
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
47
47
|
leadId: string;
|
|
48
|
-
xLocale: AcceptLeadOfferXLocaleEnum;
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
export interface LeadsApiCreateMessageRequest {
|
|
52
51
|
leadId: string;
|
|
53
|
-
xLocale: CreateMessageXLocaleEnum;
|
|
54
52
|
createLeadMessageInput: CreateLeadMessageInput;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export interface LeadsApiGetLeadRequest {
|
|
58
56
|
leadId: string;
|
|
59
|
-
xLocale: GetLeadXLocaleEnum;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
export interface LeadsApiGetMessagesRequest {
|
|
63
60
|
leadId: string;
|
|
64
|
-
xLocale: GetMessagesXLocaleEnum;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface LeadsApiListLeadsRequest {
|
|
68
|
-
xLocale: ListLeadsXLocaleEnum;
|
|
69
61
|
}
|
|
70
62
|
|
|
71
63
|
export interface LeadsApiPutOfferRequest {
|
|
72
64
|
leadId: string;
|
|
73
|
-
xLocale: PutOfferXLocaleEnum;
|
|
74
65
|
putLeadOfferInput: PutLeadOfferInput;
|
|
75
66
|
}
|
|
76
67
|
|
|
@@ -90,21 +81,10 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
90
81
|
);
|
|
91
82
|
}
|
|
92
83
|
|
|
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
|
-
|
|
100
84
|
const queryParameters: any = {};
|
|
101
85
|
|
|
102
86
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
103
87
|
|
|
104
|
-
if (requestParameters['xLocale'] != null) {
|
|
105
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
88
|
if (this.configuration && this.configuration.accessToken) {
|
|
109
89
|
const token = this.configuration.accessToken;
|
|
110
90
|
const tokenString = await token("bearer", []);
|
|
@@ -141,13 +121,6 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
141
121
|
);
|
|
142
122
|
}
|
|
143
123
|
|
|
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
|
-
|
|
151
124
|
if (requestParameters['createLeadMessageInput'] == null) {
|
|
152
125
|
throw new runtime.RequiredError(
|
|
153
126
|
'createLeadMessageInput',
|
|
@@ -161,10 +134,6 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
161
134
|
|
|
162
135
|
headerParameters['Content-Type'] = 'application/json';
|
|
163
136
|
|
|
164
|
-
if (requestParameters['xLocale'] != null) {
|
|
165
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
137
|
if (this.configuration && this.configuration.accessToken) {
|
|
169
138
|
const token = this.configuration.accessToken;
|
|
170
139
|
const tokenString = await token("bearer", []);
|
|
@@ -203,21 +172,10 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
203
172
|
);
|
|
204
173
|
}
|
|
205
174
|
|
|
206
|
-
if (requestParameters['xLocale'] == null) {
|
|
207
|
-
throw new runtime.RequiredError(
|
|
208
|
-
'xLocale',
|
|
209
|
-
'Required parameter "xLocale" was null or undefined when calling getLead().'
|
|
210
|
-
);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
175
|
const queryParameters: any = {};
|
|
214
176
|
|
|
215
177
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
216
178
|
|
|
217
|
-
if (requestParameters['xLocale'] != null) {
|
|
218
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
179
|
if (this.configuration && this.configuration.accessToken) {
|
|
222
180
|
const token = this.configuration.accessToken;
|
|
223
181
|
const tokenString = await token("bearer", []);
|
|
@@ -255,21 +213,10 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
255
213
|
);
|
|
256
214
|
}
|
|
257
215
|
|
|
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
|
-
|
|
265
216
|
const queryParameters: any = {};
|
|
266
217
|
|
|
267
218
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
268
219
|
|
|
269
|
-
if (requestParameters['xLocale'] != null) {
|
|
270
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
220
|
if (this.configuration && this.configuration.accessToken) {
|
|
274
221
|
const token = this.configuration.accessToken;
|
|
275
222
|
const tokenString = await token("bearer", []);
|
|
@@ -299,22 +246,11 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
299
246
|
/**
|
|
300
247
|
*
|
|
301
248
|
*/
|
|
302
|
-
async listLeadsRaw(
|
|
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
|
-
|
|
249
|
+
async listLeadsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IntersectionLeadDtoWithListFieldsDto>>> {
|
|
310
250
|
const queryParameters: any = {};
|
|
311
251
|
|
|
312
252
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
313
253
|
|
|
314
|
-
if (requestParameters['xLocale'] != null) {
|
|
315
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
254
|
if (this.configuration && this.configuration.accessToken) {
|
|
319
255
|
const token = this.configuration.accessToken;
|
|
320
256
|
const tokenString = await token("bearer", []);
|
|
@@ -336,8 +272,8 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
336
272
|
/**
|
|
337
273
|
*
|
|
338
274
|
*/
|
|
339
|
-
async listLeads(
|
|
340
|
-
const response = await this.listLeadsRaw(
|
|
275
|
+
async listLeads(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDtoWithListFieldsDto>> {
|
|
276
|
+
const response = await this.listLeadsRaw(initOverrides);
|
|
341
277
|
return await response.value();
|
|
342
278
|
}
|
|
343
279
|
|
|
@@ -352,13 +288,6 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
352
288
|
);
|
|
353
289
|
}
|
|
354
290
|
|
|
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
|
-
|
|
362
291
|
if (requestParameters['putLeadOfferInput'] == null) {
|
|
363
292
|
throw new runtime.RequiredError(
|
|
364
293
|
'putLeadOfferInput',
|
|
@@ -372,10 +301,6 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
372
301
|
|
|
373
302
|
headerParameters['Content-Type'] = 'application/json';
|
|
374
303
|
|
|
375
|
-
if (requestParameters['xLocale'] != null) {
|
|
376
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
377
|
-
}
|
|
378
|
-
|
|
379
304
|
if (this.configuration && this.configuration.accessToken) {
|
|
380
305
|
const token = this.configuration.accessToken;
|
|
381
306
|
const tokenString = await token("bearer", []);
|
|
@@ -403,52 +328,3 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
403
328
|
}
|
|
404
329
|
|
|
405
330
|
}
|
|
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,29 +47,28 @@ import {
|
|
|
47
47
|
} from '../models/index';
|
|
48
48
|
|
|
49
49
|
export interface LeadsPublicApiCreateLeadRequest {
|
|
50
|
-
xLocale: CreateLeadXLocaleEnum;
|
|
51
50
|
createLeadInput: CreateLeadInput;
|
|
52
51
|
}
|
|
53
52
|
|
|
53
|
+
export interface LeadsPublicApiGetLeadRequest {
|
|
54
|
+
leadId: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
54
57
|
export interface LeadsPublicApiGetLeadStatusRequest {
|
|
55
58
|
leadId: string;
|
|
56
|
-
xLocale: GetLeadStatusXLocaleEnum;
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
export interface
|
|
61
|
+
export interface LeadsPublicApiRequestVerificationCodeRequest {
|
|
60
62
|
leadId: string;
|
|
61
|
-
xLocale: GetPublicLeadXLocaleEnum;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
export interface LeadsPublicApiUpdateLeadRequest {
|
|
65
66
|
leadId: string;
|
|
66
|
-
xLocale: UpdateLeadXLocaleEnum;
|
|
67
67
|
updateLeadInput: UpdateLeadInput;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export interface LeadsPublicApiVerifyLeadRequest {
|
|
71
71
|
leadId: string;
|
|
72
|
-
xLocale: VerifyLeadXLocaleEnum;
|
|
73
72
|
verifyLeadInput: VerifyLeadInput;
|
|
74
73
|
}
|
|
75
74
|
|
|
@@ -82,13 +81,6 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
82
81
|
*
|
|
83
82
|
*/
|
|
84
83
|
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
|
-
|
|
92
84
|
if (requestParameters['createLeadInput'] == null) {
|
|
93
85
|
throw new runtime.RequiredError(
|
|
94
86
|
'createLeadInput',
|
|
@@ -102,10 +94,6 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
102
94
|
|
|
103
95
|
headerParameters['Content-Type'] = 'application/json';
|
|
104
96
|
|
|
105
|
-
if (requestParameters['xLocale'] != null) {
|
|
106
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
97
|
const response = await this.request({
|
|
110
98
|
path: `/leads`,
|
|
111
99
|
method: 'POST',
|
|
@@ -128,18 +116,44 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
128
116
|
/**
|
|
129
117
|
*
|
|
130
118
|
*/
|
|
131
|
-
async
|
|
119
|
+
async getLeadRaw(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>> {
|
|
132
120
|
if (requestParameters['leadId'] == null) {
|
|
133
121
|
throw new runtime.RequiredError(
|
|
134
122
|
'leadId',
|
|
135
|
-
'Required parameter "leadId" was null or undefined when calling
|
|
123
|
+
'Required parameter "leadId" was null or undefined when calling getLead().'
|
|
136
124
|
);
|
|
137
125
|
}
|
|
138
126
|
|
|
139
|
-
|
|
127
|
+
const queryParameters: any = {};
|
|
128
|
+
|
|
129
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
130
|
+
|
|
131
|
+
const response = await this.request({
|
|
132
|
+
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
133
|
+
method: 'GET',
|
|
134
|
+
headers: headerParameters,
|
|
135
|
+
query: queryParameters,
|
|
136
|
+
}, initOverrides);
|
|
137
|
+
|
|
138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PublicLeadDtoFromJSON(jsonValue));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
async getLead(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto> {
|
|
145
|
+
const response = await this.getLeadRaw(requestParameters, initOverrides);
|
|
146
|
+
return await response.value();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
*/
|
|
152
|
+
async getLeadStatusRaw(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadStatusDto>> {
|
|
153
|
+
if (requestParameters['leadId'] == null) {
|
|
140
154
|
throw new runtime.RequiredError(
|
|
141
|
-
'
|
|
142
|
-
'Required parameter "
|
|
155
|
+
'leadId',
|
|
156
|
+
'Required parameter "leadId" was null or undefined when calling getLeadStatus().'
|
|
143
157
|
);
|
|
144
158
|
}
|
|
145
159
|
|
|
@@ -147,10 +161,6 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
147
161
|
|
|
148
162
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
149
163
|
|
|
150
|
-
if (requestParameters['xLocale'] != null) {
|
|
151
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
164
|
const response = await this.request({
|
|
155
165
|
path: `/leads/{leadId}/status`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
156
166
|
method: 'GET',
|
|
@@ -172,18 +182,11 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
172
182
|
/**
|
|
173
183
|
*
|
|
174
184
|
*/
|
|
175
|
-
async
|
|
185
|
+
async requestVerificationCodeRaw(requestParameters: LeadsPublicApiRequestVerificationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
176
186
|
if (requestParameters['leadId'] == null) {
|
|
177
187
|
throw new runtime.RequiredError(
|
|
178
188
|
'leadId',
|
|
179
|
-
'Required parameter "leadId" was null or undefined when calling
|
|
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().'
|
|
189
|
+
'Required parameter "leadId" was null or undefined when calling requestVerificationCode().'
|
|
187
190
|
);
|
|
188
191
|
}
|
|
189
192
|
|
|
@@ -191,26 +194,21 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
191
194
|
|
|
192
195
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
193
196
|
|
|
194
|
-
if (requestParameters['xLocale'] != null) {
|
|
195
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
197
|
const response = await this.request({
|
|
199
|
-
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
200
|
-
method: '
|
|
198
|
+
path: `/leads/{leadId}/request-verification-code`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
199
|
+
method: 'POST',
|
|
201
200
|
headers: headerParameters,
|
|
202
201
|
query: queryParameters,
|
|
203
202
|
}, initOverrides);
|
|
204
203
|
|
|
205
|
-
return new runtime.
|
|
204
|
+
return new runtime.VoidApiResponse(response);
|
|
206
205
|
}
|
|
207
206
|
|
|
208
207
|
/**
|
|
209
208
|
*
|
|
210
209
|
*/
|
|
211
|
-
async
|
|
212
|
-
|
|
213
|
-
return await response.value();
|
|
210
|
+
async requestVerificationCode(requestParameters: LeadsPublicApiRequestVerificationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
211
|
+
await this.requestVerificationCodeRaw(requestParameters, initOverrides);
|
|
214
212
|
}
|
|
215
213
|
|
|
216
214
|
/**
|
|
@@ -224,13 +222,6 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
224
222
|
);
|
|
225
223
|
}
|
|
226
224
|
|
|
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
|
-
|
|
234
225
|
if (requestParameters['updateLeadInput'] == null) {
|
|
235
226
|
throw new runtime.RequiredError(
|
|
236
227
|
'updateLeadInput',
|
|
@@ -244,10 +235,6 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
244
235
|
|
|
245
236
|
headerParameters['Content-Type'] = 'application/json';
|
|
246
237
|
|
|
247
|
-
if (requestParameters['xLocale'] != null) {
|
|
248
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
238
|
const response = await this.request({
|
|
252
239
|
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
253
240
|
method: 'PUT',
|
|
@@ -277,13 +264,6 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
277
264
|
);
|
|
278
265
|
}
|
|
279
266
|
|
|
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
|
-
|
|
287
267
|
if (requestParameters['verifyLeadInput'] == null) {
|
|
288
268
|
throw new runtime.RequiredError(
|
|
289
269
|
'verifyLeadInput',
|
|
@@ -297,10 +277,6 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
297
277
|
|
|
298
278
|
headerParameters['Content-Type'] = 'application/json';
|
|
299
279
|
|
|
300
|
-
if (requestParameters['xLocale'] != null) {
|
|
301
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
280
|
const response = await this.request({
|
|
305
281
|
path: `/leads/{leadId}/verify`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
306
282
|
method: 'POST',
|
|
@@ -320,44 +296,3 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
320
296
|
}
|
|
321
297
|
|
|
322
298
|
}
|
|
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,18 +41,15 @@ import {
|
|
|
41
41
|
} from '../models/index';
|
|
42
42
|
|
|
43
43
|
export interface OrdersPublicApiCreateOrderRequest {
|
|
44
|
-
xLocale: CreateOrderXLocaleEnum;
|
|
45
44
|
createOrderInput: CreateOrderInput;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
export interface OrdersPublicApiGetOrderRequest {
|
|
49
48
|
orderId: string;
|
|
50
|
-
xLocale: GetOrderXLocaleEnum;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export interface OrdersPublicApiUpdateOrderRequest {
|
|
54
52
|
orderId: string;
|
|
55
|
-
xLocale: UpdateOrderXLocaleEnum;
|
|
56
53
|
updateOrderInput: UpdateOrderInput;
|
|
57
54
|
}
|
|
58
55
|
|
|
@@ -65,13 +62,6 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
65
62
|
*
|
|
66
63
|
*/
|
|
67
64
|
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
|
-
|
|
75
65
|
if (requestParameters['createOrderInput'] == null) {
|
|
76
66
|
throw new runtime.RequiredError(
|
|
77
67
|
'createOrderInput',
|
|
@@ -85,10 +75,6 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
85
75
|
|
|
86
76
|
headerParameters['Content-Type'] = 'application/json';
|
|
87
77
|
|
|
88
|
-
if (requestParameters['xLocale'] != null) {
|
|
89
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
78
|
const response = await this.request({
|
|
93
79
|
path: `/orders`,
|
|
94
80
|
method: 'POST',
|
|
@@ -119,21 +105,10 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
119
105
|
);
|
|
120
106
|
}
|
|
121
107
|
|
|
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
|
-
|
|
129
108
|
const queryParameters: any = {};
|
|
130
109
|
|
|
131
110
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
132
111
|
|
|
133
|
-
if (requestParameters['xLocale'] != null) {
|
|
134
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
112
|
const response = await this.request({
|
|
138
113
|
path: `/orders/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
139
114
|
method: 'GET',
|
|
@@ -163,13 +138,6 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
163
138
|
);
|
|
164
139
|
}
|
|
165
140
|
|
|
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
|
-
|
|
173
141
|
if (requestParameters['updateOrderInput'] == null) {
|
|
174
142
|
throw new runtime.RequiredError(
|
|
175
143
|
'updateOrderInput',
|
|
@@ -183,10 +151,6 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
183
151
|
|
|
184
152
|
headerParameters['Content-Type'] = 'application/json';
|
|
185
153
|
|
|
186
|
-
if (requestParameters['xLocale'] != null) {
|
|
187
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
154
|
const response = await this.request({
|
|
191
155
|
path: `/orders/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
192
156
|
method: 'PUT',
|
|
@@ -206,28 +170,3 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
206
170
|
}
|
|
207
171
|
|
|
208
172
|
}
|
|
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,8 +28,7 @@ import {
|
|
|
28
28
|
ValidationExceptionToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
-
export interface
|
|
32
|
-
xLocale: SetUserLocaleXLocaleEnum;
|
|
31
|
+
export interface UsersApiSetLocaleRequest {
|
|
33
32
|
storeUserLocaleInput: StoreUserLocaleInput;
|
|
34
33
|
}
|
|
35
34
|
|
|
@@ -41,18 +40,11 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
41
40
|
/**
|
|
42
41
|
*
|
|
43
42
|
*/
|
|
44
|
-
async
|
|
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
|
-
|
|
43
|
+
async setLocaleRaw(requestParameters: UsersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
52
44
|
if (requestParameters['storeUserLocaleInput'] == null) {
|
|
53
45
|
throw new runtime.RequiredError(
|
|
54
46
|
'storeUserLocaleInput',
|
|
55
|
-
'Required parameter "storeUserLocaleInput" was null or undefined when calling
|
|
47
|
+
'Required parameter "storeUserLocaleInput" was null or undefined when calling setLocale().'
|
|
56
48
|
);
|
|
57
49
|
}
|
|
58
50
|
|
|
@@ -62,10 +54,6 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
62
54
|
|
|
63
55
|
headerParameters['Content-Type'] = 'application/json';
|
|
64
56
|
|
|
65
|
-
if (requestParameters['xLocale'] != null) {
|
|
66
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
57
|
if (this.configuration && this.configuration.accessToken) {
|
|
70
58
|
const token = this.configuration.accessToken;
|
|
71
59
|
const tokenString = await token("bearer", []);
|
|
@@ -88,17 +76,8 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
88
76
|
/**
|
|
89
77
|
*
|
|
90
78
|
*/
|
|
91
|
-
async
|
|
92
|
-
await this.
|
|
79
|
+
async setLocale(requestParameters: UsersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
80
|
+
await this.setLocaleRaw(requestParameters, initOverrides);
|
|
93
81
|
}
|
|
94
82
|
|
|
95
83
|
}
|
|
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];
|