@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/dist/apis/LeadsApi.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.LeadsApi = void 0;
|
|
67
|
+
exports.PutOfferXLocaleEnum = exports.ListLeadsXLocaleEnum = exports.GetMessagesXLocaleEnum = exports.GetLeadXLocaleEnum = exports.CreateMessageXLocaleEnum = exports.AcceptLeadOfferXLocaleEnum = exports.LeadsApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -87,8 +87,14 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
87
87
|
if (requestParameters['leadId'] == null) {
|
|
88
88
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling acceptLeadOffer().');
|
|
89
89
|
}
|
|
90
|
+
if (requestParameters['xLocale'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling acceptLeadOffer().');
|
|
92
|
+
}
|
|
90
93
|
queryParameters = {};
|
|
91
94
|
headerParameters = {};
|
|
95
|
+
if (requestParameters['xLocale'] != null) {
|
|
96
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
97
|
+
}
|
|
92
98
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
93
99
|
token = this.configuration.accessToken;
|
|
94
100
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -138,12 +144,18 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
138
144
|
if (requestParameters['leadId'] == null) {
|
|
139
145
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling createMessage().');
|
|
140
146
|
}
|
|
147
|
+
if (requestParameters['xLocale'] == null) {
|
|
148
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling createMessage().');
|
|
149
|
+
}
|
|
141
150
|
if (requestParameters['createLeadMessageInput'] == null) {
|
|
142
151
|
throw new runtime.RequiredError('createLeadMessageInput', 'Required parameter "createLeadMessageInput" was null or undefined when calling createMessage().');
|
|
143
152
|
}
|
|
144
153
|
queryParameters = {};
|
|
145
154
|
headerParameters = {};
|
|
146
155
|
headerParameters['Content-Type'] = 'application/json';
|
|
156
|
+
if (requestParameters['xLocale'] != null) {
|
|
157
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
158
|
+
}
|
|
147
159
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
148
160
|
token = this.configuration.accessToken;
|
|
149
161
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -187,17 +199,23 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
187
199
|
/**
|
|
188
200
|
*
|
|
189
201
|
*/
|
|
190
|
-
LeadsApi.prototype.
|
|
202
|
+
LeadsApi.prototype.getLeadRaw = function (requestParameters, initOverrides) {
|
|
191
203
|
return __awaiter(this, void 0, void 0, function () {
|
|
192
204
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
193
205
|
return __generator(this, function (_a) {
|
|
194
206
|
switch (_a.label) {
|
|
195
207
|
case 0:
|
|
196
208
|
if (requestParameters['leadId'] == null) {
|
|
197
|
-
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling
|
|
209
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLead().');
|
|
210
|
+
}
|
|
211
|
+
if (requestParameters['xLocale'] == null) {
|
|
212
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getLead().');
|
|
198
213
|
}
|
|
199
214
|
queryParameters = {};
|
|
200
215
|
headerParameters = {};
|
|
216
|
+
if (requestParameters['xLocale'] != null) {
|
|
217
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
218
|
+
}
|
|
201
219
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
202
220
|
token = this.configuration.accessToken;
|
|
203
221
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -223,12 +241,12 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
223
241
|
/**
|
|
224
242
|
*
|
|
225
243
|
*/
|
|
226
|
-
LeadsApi.prototype.
|
|
244
|
+
LeadsApi.prototype.getLead = function (requestParameters, initOverrides) {
|
|
227
245
|
return __awaiter(this, void 0, void 0, function () {
|
|
228
246
|
var response;
|
|
229
247
|
return __generator(this, function (_a) {
|
|
230
248
|
switch (_a.label) {
|
|
231
|
-
case 0: return [4 /*yield*/, this.
|
|
249
|
+
case 0: return [4 /*yield*/, this.getLeadRaw(requestParameters, initOverrides)];
|
|
232
250
|
case 1:
|
|
233
251
|
response = _a.sent();
|
|
234
252
|
return [4 /*yield*/, response.value()];
|
|
@@ -249,8 +267,14 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
249
267
|
if (requestParameters['leadId'] == null) {
|
|
250
268
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getMessages().');
|
|
251
269
|
}
|
|
270
|
+
if (requestParameters['xLocale'] == null) {
|
|
271
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getMessages().');
|
|
272
|
+
}
|
|
252
273
|
queryParameters = {};
|
|
253
274
|
headerParameters = {};
|
|
275
|
+
if (requestParameters['xLocale'] != null) {
|
|
276
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
277
|
+
}
|
|
254
278
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
255
279
|
token = this.configuration.accessToken;
|
|
256
280
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -293,14 +317,20 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
293
317
|
/**
|
|
294
318
|
*
|
|
295
319
|
*/
|
|
296
|
-
LeadsApi.prototype.listLeadsRaw = function (initOverrides) {
|
|
320
|
+
LeadsApi.prototype.listLeadsRaw = function (requestParameters, initOverrides) {
|
|
297
321
|
return __awaiter(this, void 0, void 0, function () {
|
|
298
322
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
299
323
|
return __generator(this, function (_a) {
|
|
300
324
|
switch (_a.label) {
|
|
301
325
|
case 0:
|
|
326
|
+
if (requestParameters['xLocale'] == null) {
|
|
327
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling listLeads().');
|
|
328
|
+
}
|
|
302
329
|
queryParameters = {};
|
|
303
330
|
headerParameters = {};
|
|
331
|
+
if (requestParameters['xLocale'] != null) {
|
|
332
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
333
|
+
}
|
|
304
334
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
305
335
|
token = this.configuration.accessToken;
|
|
306
336
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -326,12 +356,12 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
326
356
|
/**
|
|
327
357
|
*
|
|
328
358
|
*/
|
|
329
|
-
LeadsApi.prototype.listLeads = function (initOverrides) {
|
|
359
|
+
LeadsApi.prototype.listLeads = function (requestParameters, initOverrides) {
|
|
330
360
|
return __awaiter(this, void 0, void 0, function () {
|
|
331
361
|
var response;
|
|
332
362
|
return __generator(this, function (_a) {
|
|
333
363
|
switch (_a.label) {
|
|
334
|
-
case 0: return [4 /*yield*/, this.listLeadsRaw(initOverrides)];
|
|
364
|
+
case 0: return [4 /*yield*/, this.listLeadsRaw(requestParameters, initOverrides)];
|
|
335
365
|
case 1:
|
|
336
366
|
response = _a.sent();
|
|
337
367
|
return [4 /*yield*/, response.value()];
|
|
@@ -352,12 +382,18 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
352
382
|
if (requestParameters['leadId'] == null) {
|
|
353
383
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling putOffer().');
|
|
354
384
|
}
|
|
385
|
+
if (requestParameters['xLocale'] == null) {
|
|
386
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling putOffer().');
|
|
387
|
+
}
|
|
355
388
|
if (requestParameters['putLeadOfferInput'] == null) {
|
|
356
389
|
throw new runtime.RequiredError('putLeadOfferInput', 'Required parameter "putLeadOfferInput" was null or undefined when calling putOffer().');
|
|
357
390
|
}
|
|
358
391
|
queryParameters = {};
|
|
359
392
|
headerParameters = {};
|
|
360
393
|
headerParameters['Content-Type'] = 'application/json';
|
|
394
|
+
if (requestParameters['xLocale'] != null) {
|
|
395
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
396
|
+
}
|
|
361
397
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
362
398
|
token = this.configuration.accessToken;
|
|
363
399
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -399,3 +435,45 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
399
435
|
return LeadsApi;
|
|
400
436
|
}(runtime.BaseAPI));
|
|
401
437
|
exports.LeadsApi = LeadsApi;
|
|
438
|
+
/**
|
|
439
|
+
* @export
|
|
440
|
+
*/
|
|
441
|
+
exports.AcceptLeadOfferXLocaleEnum = {
|
|
442
|
+
NL_NL: 'nl-nl',
|
|
443
|
+
EN_GB: 'en-gb'
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* @export
|
|
447
|
+
*/
|
|
448
|
+
exports.CreateMessageXLocaleEnum = {
|
|
449
|
+
NL_NL: 'nl-nl',
|
|
450
|
+
EN_GB: 'en-gb'
|
|
451
|
+
};
|
|
452
|
+
/**
|
|
453
|
+
* @export
|
|
454
|
+
*/
|
|
455
|
+
exports.GetLeadXLocaleEnum = {
|
|
456
|
+
NL_NL: 'nl-nl',
|
|
457
|
+
EN_GB: 'en-gb'
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* @export
|
|
461
|
+
*/
|
|
462
|
+
exports.GetMessagesXLocaleEnum = {
|
|
463
|
+
NL_NL: 'nl-nl',
|
|
464
|
+
EN_GB: 'en-gb'
|
|
465
|
+
};
|
|
466
|
+
/**
|
|
467
|
+
* @export
|
|
468
|
+
*/
|
|
469
|
+
exports.ListLeadsXLocaleEnum = {
|
|
470
|
+
NL_NL: 'nl-nl',
|
|
471
|
+
EN_GB: 'en-gb'
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* @export
|
|
475
|
+
*/
|
|
476
|
+
exports.PutOfferXLocaleEnum = {
|
|
477
|
+
NL_NL: 'nl-nl',
|
|
478
|
+
EN_GB: 'en-gb'
|
|
479
|
+
};
|
|
@@ -12,20 +12,25 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { CreateLeadInput, LeadStatusDto, ObjectId, PublicLeadDto, UpdateLeadInput, VerifyLeadInput } from '../models/index';
|
|
14
14
|
export interface LeadsPublicApiCreateLeadRequest {
|
|
15
|
+
xLocale: CreateLeadXLocaleEnum;
|
|
15
16
|
createLeadInput: CreateLeadInput;
|
|
16
17
|
}
|
|
17
|
-
export interface
|
|
18
|
+
export interface LeadsPublicApiGetLeadStatusRequest {
|
|
18
19
|
leadId: string;
|
|
20
|
+
xLocale: GetLeadStatusXLocaleEnum;
|
|
19
21
|
}
|
|
20
|
-
export interface
|
|
22
|
+
export interface LeadsPublicApiGetPublicLeadRequest {
|
|
21
23
|
leadId: string;
|
|
24
|
+
xLocale: GetPublicLeadXLocaleEnum;
|
|
22
25
|
}
|
|
23
26
|
export interface LeadsPublicApiUpdateLeadRequest {
|
|
24
27
|
leadId: string;
|
|
28
|
+
xLocale: UpdateLeadXLocaleEnum;
|
|
25
29
|
updateLeadInput: UpdateLeadInput;
|
|
26
30
|
}
|
|
27
31
|
export interface LeadsPublicApiVerifyLeadRequest {
|
|
28
32
|
leadId: string;
|
|
33
|
+
xLocale: VerifyLeadXLocaleEnum;
|
|
29
34
|
verifyLeadInput: VerifyLeadInput;
|
|
30
35
|
}
|
|
31
36
|
/**
|
|
@@ -43,19 +48,19 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
43
48
|
/**
|
|
44
49
|
*
|
|
45
50
|
*/
|
|
46
|
-
|
|
51
|
+
getLeadStatusRaw(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadStatusDto>>;
|
|
47
52
|
/**
|
|
48
53
|
*
|
|
49
54
|
*/
|
|
50
|
-
|
|
55
|
+
getLeadStatus(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadStatusDto>;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
58
|
*/
|
|
54
|
-
|
|
59
|
+
getPublicLeadRaw(requestParameters: LeadsPublicApiGetPublicLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>>;
|
|
55
60
|
/**
|
|
56
61
|
*
|
|
57
62
|
*/
|
|
58
|
-
|
|
63
|
+
getPublicLead(requestParameters: LeadsPublicApiGetPublicLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto>;
|
|
59
64
|
/**
|
|
60
65
|
*
|
|
61
66
|
*/
|
|
@@ -73,3 +78,43 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
73
78
|
*/
|
|
74
79
|
verifyLead(requestParameters: LeadsPublicApiVerifyLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
75
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const CreateLeadXLocaleEnum: {
|
|
85
|
+
readonly NL_NL: "nl-nl";
|
|
86
|
+
readonly EN_GB: "en-gb";
|
|
87
|
+
};
|
|
88
|
+
export type CreateLeadXLocaleEnum = typeof CreateLeadXLocaleEnum[keyof typeof CreateLeadXLocaleEnum];
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export declare const GetLeadStatusXLocaleEnum: {
|
|
93
|
+
readonly NL_NL: "nl-nl";
|
|
94
|
+
readonly EN_GB: "en-gb";
|
|
95
|
+
};
|
|
96
|
+
export type GetLeadStatusXLocaleEnum = typeof GetLeadStatusXLocaleEnum[keyof typeof GetLeadStatusXLocaleEnum];
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const GetPublicLeadXLocaleEnum: {
|
|
101
|
+
readonly NL_NL: "nl-nl";
|
|
102
|
+
readonly EN_GB: "en-gb";
|
|
103
|
+
};
|
|
104
|
+
export type GetPublicLeadXLocaleEnum = typeof GetPublicLeadXLocaleEnum[keyof typeof GetPublicLeadXLocaleEnum];
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export declare const UpdateLeadXLocaleEnum: {
|
|
109
|
+
readonly NL_NL: "nl-nl";
|
|
110
|
+
readonly EN_GB: "en-gb";
|
|
111
|
+
};
|
|
112
|
+
export type UpdateLeadXLocaleEnum = typeof UpdateLeadXLocaleEnum[keyof typeof UpdateLeadXLocaleEnum];
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const VerifyLeadXLocaleEnum: {
|
|
117
|
+
readonly NL_NL: "nl-nl";
|
|
118
|
+
readonly EN_GB: "en-gb";
|
|
119
|
+
};
|
|
120
|
+
export type VerifyLeadXLocaleEnum = typeof VerifyLeadXLocaleEnum[keyof typeof VerifyLeadXLocaleEnum];
|
|
@@ -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.LeadsPublicApi = void 0;
|
|
67
|
+
exports.VerifyLeadXLocaleEnum = exports.UpdateLeadXLocaleEnum = exports.GetPublicLeadXLocaleEnum = exports.GetLeadStatusXLocaleEnum = exports.CreateLeadXLocaleEnum = exports.LeadsPublicApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -84,12 +84,18 @@ var LeadsPublicApi = /** @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 createLead().');
|
|
89
|
+
}
|
|
87
90
|
if (requestParameters['createLeadInput'] == null) {
|
|
88
91
|
throw new runtime.RequiredError('createLeadInput', 'Required parameter "createLeadInput" was null or undefined when calling createLead().');
|
|
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: "/leads",
|
|
95
101
|
method: 'POST',
|
|
@@ -124,26 +130,32 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
124
130
|
/**
|
|
125
131
|
*
|
|
126
132
|
*/
|
|
127
|
-
LeadsPublicApi.prototype.
|
|
133
|
+
LeadsPublicApi.prototype.getLeadStatusRaw = function (requestParameters, initOverrides) {
|
|
128
134
|
return __awaiter(this, void 0, void 0, function () {
|
|
129
135
|
var queryParameters, headerParameters, response;
|
|
130
136
|
return __generator(this, function (_a) {
|
|
131
137
|
switch (_a.label) {
|
|
132
138
|
case 0:
|
|
133
139
|
if (requestParameters['leadId'] == null) {
|
|
134
|
-
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling
|
|
140
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLeadStatus().');
|
|
141
|
+
}
|
|
142
|
+
if (requestParameters['xLocale'] == null) {
|
|
143
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getLeadStatus().');
|
|
135
144
|
}
|
|
136
145
|
queryParameters = {};
|
|
137
146
|
headerParameters = {};
|
|
147
|
+
if (requestParameters['xLocale'] != null) {
|
|
148
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
149
|
+
}
|
|
138
150
|
return [4 /*yield*/, this.request({
|
|
139
|
-
path: "/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
151
|
+
path: "/leads/{leadId}/status".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
140
152
|
method: 'GET',
|
|
141
153
|
headers: headerParameters,
|
|
142
154
|
query: queryParameters,
|
|
143
155
|
}, initOverrides)];
|
|
144
156
|
case 1:
|
|
145
157
|
response = _a.sent();
|
|
146
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
158
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadStatusDtoFromJSON)(jsonValue); })];
|
|
147
159
|
}
|
|
148
160
|
});
|
|
149
161
|
});
|
|
@@ -151,12 +163,12 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
151
163
|
/**
|
|
152
164
|
*
|
|
153
165
|
*/
|
|
154
|
-
LeadsPublicApi.prototype.
|
|
166
|
+
LeadsPublicApi.prototype.getLeadStatus = function (requestParameters, initOverrides) {
|
|
155
167
|
return __awaiter(this, void 0, void 0, function () {
|
|
156
168
|
var response;
|
|
157
169
|
return __generator(this, function (_a) {
|
|
158
170
|
switch (_a.label) {
|
|
159
|
-
case 0: return [4 /*yield*/, this.
|
|
171
|
+
case 0: return [4 /*yield*/, this.getLeadStatusRaw(requestParameters, initOverrides)];
|
|
160
172
|
case 1:
|
|
161
173
|
response = _a.sent();
|
|
162
174
|
return [4 /*yield*/, response.value()];
|
|
@@ -168,26 +180,32 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
168
180
|
/**
|
|
169
181
|
*
|
|
170
182
|
*/
|
|
171
|
-
LeadsPublicApi.prototype.
|
|
183
|
+
LeadsPublicApi.prototype.getPublicLeadRaw = function (requestParameters, initOverrides) {
|
|
172
184
|
return __awaiter(this, void 0, void 0, function () {
|
|
173
185
|
var queryParameters, headerParameters, response;
|
|
174
186
|
return __generator(this, function (_a) {
|
|
175
187
|
switch (_a.label) {
|
|
176
188
|
case 0:
|
|
177
189
|
if (requestParameters['leadId'] == null) {
|
|
178
|
-
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling
|
|
190
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getPublicLead().');
|
|
191
|
+
}
|
|
192
|
+
if (requestParameters['xLocale'] == null) {
|
|
193
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getPublicLead().');
|
|
179
194
|
}
|
|
180
195
|
queryParameters = {};
|
|
181
196
|
headerParameters = {};
|
|
197
|
+
if (requestParameters['xLocale'] != null) {
|
|
198
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
199
|
+
}
|
|
182
200
|
return [4 /*yield*/, this.request({
|
|
183
|
-
path: "/leads/{leadId}
|
|
201
|
+
path: "/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
184
202
|
method: 'GET',
|
|
185
203
|
headers: headerParameters,
|
|
186
204
|
query: queryParameters,
|
|
187
205
|
}, initOverrides)];
|
|
188
206
|
case 1:
|
|
189
207
|
response = _a.sent();
|
|
190
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
208
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PublicLeadDtoFromJSON)(jsonValue); })];
|
|
191
209
|
}
|
|
192
210
|
});
|
|
193
211
|
});
|
|
@@ -195,12 +213,12 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
195
213
|
/**
|
|
196
214
|
*
|
|
197
215
|
*/
|
|
198
|
-
LeadsPublicApi.prototype.
|
|
216
|
+
LeadsPublicApi.prototype.getPublicLead = function (requestParameters, initOverrides) {
|
|
199
217
|
return __awaiter(this, void 0, void 0, function () {
|
|
200
218
|
var response;
|
|
201
219
|
return __generator(this, function (_a) {
|
|
202
220
|
switch (_a.label) {
|
|
203
|
-
case 0: return [4 /*yield*/, this.
|
|
221
|
+
case 0: return [4 /*yield*/, this.getPublicLeadRaw(requestParameters, initOverrides)];
|
|
204
222
|
case 1:
|
|
205
223
|
response = _a.sent();
|
|
206
224
|
return [4 /*yield*/, response.value()];
|
|
@@ -221,12 +239,18 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
221
239
|
if (requestParameters['leadId'] == null) {
|
|
222
240
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateLead().');
|
|
223
241
|
}
|
|
242
|
+
if (requestParameters['xLocale'] == null) {
|
|
243
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling updateLead().');
|
|
244
|
+
}
|
|
224
245
|
if (requestParameters['updateLeadInput'] == null) {
|
|
225
246
|
throw new runtime.RequiredError('updateLeadInput', 'Required parameter "updateLeadInput" was null or undefined when calling updateLead().');
|
|
226
247
|
}
|
|
227
248
|
queryParameters = {};
|
|
228
249
|
headerParameters = {};
|
|
229
250
|
headerParameters['Content-Type'] = 'application/json';
|
|
251
|
+
if (requestParameters['xLocale'] != null) {
|
|
252
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
253
|
+
}
|
|
230
254
|
return [4 /*yield*/, this.request({
|
|
231
255
|
path: "/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
232
256
|
method: 'PUT',
|
|
@@ -268,12 +292,18 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
268
292
|
if (requestParameters['leadId'] == null) {
|
|
269
293
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling verifyLead().');
|
|
270
294
|
}
|
|
295
|
+
if (requestParameters['xLocale'] == null) {
|
|
296
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling verifyLead().');
|
|
297
|
+
}
|
|
271
298
|
if (requestParameters['verifyLeadInput'] == null) {
|
|
272
299
|
throw new runtime.RequiredError('verifyLeadInput', 'Required parameter "verifyLeadInput" was null or undefined when calling verifyLead().');
|
|
273
300
|
}
|
|
274
301
|
queryParameters = {};
|
|
275
302
|
headerParameters = {};
|
|
276
303
|
headerParameters['Content-Type'] = 'application/json';
|
|
304
|
+
if (requestParameters['xLocale'] != null) {
|
|
305
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
306
|
+
}
|
|
277
307
|
return [4 /*yield*/, this.request({
|
|
278
308
|
path: "/leads/{leadId}/verify".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
279
309
|
method: 'POST',
|
|
@@ -306,3 +336,38 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
306
336
|
return LeadsPublicApi;
|
|
307
337
|
}(runtime.BaseAPI));
|
|
308
338
|
exports.LeadsPublicApi = LeadsPublicApi;
|
|
339
|
+
/**
|
|
340
|
+
* @export
|
|
341
|
+
*/
|
|
342
|
+
exports.CreateLeadXLocaleEnum = {
|
|
343
|
+
NL_NL: 'nl-nl',
|
|
344
|
+
EN_GB: 'en-gb'
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* @export
|
|
348
|
+
*/
|
|
349
|
+
exports.GetLeadStatusXLocaleEnum = {
|
|
350
|
+
NL_NL: 'nl-nl',
|
|
351
|
+
EN_GB: 'en-gb'
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* @export
|
|
355
|
+
*/
|
|
356
|
+
exports.GetPublicLeadXLocaleEnum = {
|
|
357
|
+
NL_NL: 'nl-nl',
|
|
358
|
+
EN_GB: 'en-gb'
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* @export
|
|
362
|
+
*/
|
|
363
|
+
exports.UpdateLeadXLocaleEnum = {
|
|
364
|
+
NL_NL: 'nl-nl',
|
|
365
|
+
EN_GB: 'en-gb'
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* @export
|
|
369
|
+
*/
|
|
370
|
+
exports.VerifyLeadXLocaleEnum = {
|
|
371
|
+
NL_NL: 'nl-nl',
|
|
372
|
+
EN_GB: 'en-gb'
|
|
373
|
+
};
|
|
@@ -12,13 +12,16 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { CreateOrderInput, ObjectId, OrderDto, UpdateOrderInput } from '../models/index';
|
|
14
14
|
export interface OrdersPublicApiCreateOrderRequest {
|
|
15
|
+
xLocale: CreateOrderXLocaleEnum;
|
|
15
16
|
createOrderInput: CreateOrderInput;
|
|
16
17
|
}
|
|
17
18
|
export interface OrdersPublicApiGetOrderRequest {
|
|
18
19
|
orderId: string;
|
|
20
|
+
xLocale: GetOrderXLocaleEnum;
|
|
19
21
|
}
|
|
20
22
|
export interface OrdersPublicApiUpdateOrderRequest {
|
|
21
23
|
orderId: string;
|
|
24
|
+
xLocale: UpdateOrderXLocaleEnum;
|
|
22
25
|
updateOrderInput: UpdateOrderInput;
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
@@ -50,3 +53,27 @@ export declare class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
50
53
|
*/
|
|
51
54
|
updateOrder(requestParameters: OrdersPublicApiUpdateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
52
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const CreateOrderXLocaleEnum: {
|
|
60
|
+
readonly NL_NL: "nl-nl";
|
|
61
|
+
readonly EN_GB: "en-gb";
|
|
62
|
+
};
|
|
63
|
+
export type CreateOrderXLocaleEnum = typeof CreateOrderXLocaleEnum[keyof typeof CreateOrderXLocaleEnum];
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export declare const GetOrderXLocaleEnum: {
|
|
68
|
+
readonly NL_NL: "nl-nl";
|
|
69
|
+
readonly EN_GB: "en-gb";
|
|
70
|
+
};
|
|
71
|
+
export type GetOrderXLocaleEnum = typeof GetOrderXLocaleEnum[keyof typeof GetOrderXLocaleEnum];
|
|
72
|
+
/**
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export declare const UpdateOrderXLocaleEnum: {
|
|
76
|
+
readonly NL_NL: "nl-nl";
|
|
77
|
+
readonly EN_GB: "en-gb";
|
|
78
|
+
};
|
|
79
|
+
export type UpdateOrderXLocaleEnum = typeof UpdateOrderXLocaleEnum[keyof typeof UpdateOrderXLocaleEnum];
|
|
@@ -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.OrdersPublicApi = void 0;
|
|
67
|
+
exports.UpdateOrderXLocaleEnum = exports.GetOrderXLocaleEnum = exports.CreateOrderXLocaleEnum = exports.OrdersPublicApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -84,12 +84,18 @@ var OrdersPublicApi = /** @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 createOrder().');
|
|
89
|
+
}
|
|
87
90
|
if (requestParameters['createOrderInput'] == null) {
|
|
88
91
|
throw new runtime.RequiredError('createOrderInput', 'Required parameter "createOrderInput" was null or undefined when calling createOrder().');
|
|
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: "/orders",
|
|
95
101
|
method: 'POST',
|
|
@@ -133,8 +139,14 @@ var OrdersPublicApi = /** @class */ (function (_super) {
|
|
|
133
139
|
if (requestParameters['orderId'] == null) {
|
|
134
140
|
throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling getOrder().');
|
|
135
141
|
}
|
|
142
|
+
if (requestParameters['xLocale'] == null) {
|
|
143
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getOrder().');
|
|
144
|
+
}
|
|
136
145
|
queryParameters = {};
|
|
137
146
|
headerParameters = {};
|
|
147
|
+
if (requestParameters['xLocale'] != null) {
|
|
148
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
149
|
+
}
|
|
138
150
|
return [4 /*yield*/, this.request({
|
|
139
151
|
path: "/orders/{orderId}".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
|
|
140
152
|
method: 'GET',
|
|
@@ -177,12 +189,18 @@ var OrdersPublicApi = /** @class */ (function (_super) {
|
|
|
177
189
|
if (requestParameters['orderId'] == null) {
|
|
178
190
|
throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling updateOrder().');
|
|
179
191
|
}
|
|
192
|
+
if (requestParameters['xLocale'] == null) {
|
|
193
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling updateOrder().');
|
|
194
|
+
}
|
|
180
195
|
if (requestParameters['updateOrderInput'] == null) {
|
|
181
196
|
throw new runtime.RequiredError('updateOrderInput', 'Required parameter "updateOrderInput" was null or undefined when calling updateOrder().');
|
|
182
197
|
}
|
|
183
198
|
queryParameters = {};
|
|
184
199
|
headerParameters = {};
|
|
185
200
|
headerParameters['Content-Type'] = 'application/json';
|
|
201
|
+
if (requestParameters['xLocale'] != null) {
|
|
202
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
203
|
+
}
|
|
186
204
|
return [4 /*yield*/, this.request({
|
|
187
205
|
path: "/orders/{orderId}".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
|
|
188
206
|
method: 'PUT',
|
|
@@ -215,3 +233,24 @@ var OrdersPublicApi = /** @class */ (function (_super) {
|
|
|
215
233
|
return OrdersPublicApi;
|
|
216
234
|
}(runtime.BaseAPI));
|
|
217
235
|
exports.OrdersPublicApi = OrdersPublicApi;
|
|
236
|
+
/**
|
|
237
|
+
* @export
|
|
238
|
+
*/
|
|
239
|
+
exports.CreateOrderXLocaleEnum = {
|
|
240
|
+
NL_NL: 'nl-nl',
|
|
241
|
+
EN_GB: 'en-gb'
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* @export
|
|
245
|
+
*/
|
|
246
|
+
exports.GetOrderXLocaleEnum = {
|
|
247
|
+
NL_NL: 'nl-nl',
|
|
248
|
+
EN_GB: 'en-gb'
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* @export
|
|
252
|
+
*/
|
|
253
|
+
exports.UpdateOrderXLocaleEnum = {
|
|
254
|
+
NL_NL: 'nl-nl',
|
|
255
|
+
EN_GB: 'en-gb'
|
|
256
|
+
};
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { StoreUserLocaleInput } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface UsersApiSetUserLocaleRequest {
|
|
15
|
+
xLocale: SetUserLocaleXLocaleEnum;
|
|
15
16
|
storeUserLocaleInput: StoreUserLocaleInput;
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
@@ -21,9 +22,17 @@ export declare class UsersApi extends runtime.BaseAPI {
|
|
|
21
22
|
/**
|
|
22
23
|
*
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
+
setUserLocaleRaw(requestParameters: UsersApiSetUserLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
28
|
*/
|
|
28
|
-
|
|
29
|
+
setUserLocale(requestParameters: UsersApiSetUserLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
29
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const SetUserLocaleXLocaleEnum: {
|
|
35
|
+
readonly NL_NL: "nl-nl";
|
|
36
|
+
readonly EN_GB: "en-gb";
|
|
37
|
+
};
|
|
38
|
+
export type SetUserLocaleXLocaleEnum = typeof SetUserLocaleXLocaleEnum[keyof typeof SetUserLocaleXLocaleEnum];
|