@randock/nameshift-api-client 0.0.70 → 0.0.71

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.
Files changed (41) hide show
  1. package/README.md +3 -3
  2. package/dist/apis/AccountsApi.d.ts +2 -40
  3. package/dist/apis/AccountsApi.js +4 -56
  4. package/dist/apis/AccountsPublicApi.d.ts +0 -9
  5. package/dist/apis/AccountsPublicApi.js +1 -14
  6. package/dist/apis/AdminApi.d.ts +3 -39
  7. package/dist/apis/AdminApi.js +10 -59
  8. package/dist/apis/BuyersApi.d.ts +6 -53
  9. package/dist/apis/BuyersApi.js +11 -75
  10. package/dist/apis/BuyersPublicApi.d.ts +0 -18
  11. package/dist/apis/BuyersPublicApi.js +1 -27
  12. package/dist/apis/DashboardApi.d.ts +2 -13
  13. package/dist/apis/DashboardApi.js +4 -17
  14. package/dist/apis/DomainsApi.d.ts +3 -93
  15. package/dist/apis/DomainsApi.js +10 -137
  16. package/dist/apis/DomainsPublicApi.d.ts +0 -9
  17. package/dist/apis/DomainsPublicApi.js +1 -14
  18. package/dist/apis/LeadsApi.d.ts +2 -58
  19. package/dist/apis/LeadsApi.js +4 -82
  20. package/dist/apis/LeadsPublicApi.d.ts +14 -48
  21. package/dist/apis/LeadsPublicApi.js +54 -77
  22. package/dist/apis/OrdersPublicApi.d.ts +0 -27
  23. package/dist/apis/OrdersPublicApi.js +1 -40
  24. package/dist/apis/UsersApi.d.ts +3 -12
  25. package/dist/apis/UsersApi.js +5 -18
  26. package/dist/apis/UsersPublicApi.d.ts +0 -36
  27. package/dist/apis/UsersPublicApi.js +1 -53
  28. package/package.json +1 -1
  29. package/src/apis/AccountsApi.ts +3 -87
  30. package/src/apis/AccountsPublicApi.ts +0 -21
  31. package/src/apis/AdminApi.ts +3 -84
  32. package/src/apis/BuyersApi.ts +9 -113
  33. package/src/apis/BuyersPublicApi.ts +0 -41
  34. package/src/apis/DashboardApi.ts +3 -27
  35. package/src/apis/DomainsApi.ts +3 -204
  36. package/src/apis/DomainsPublicApi.ts +0 -21
  37. package/src/apis/LeadsApi.ts +3 -127
  38. package/src/apis/LeadsPublicApi.ts +43 -108
  39. package/src/apis/OrdersPublicApi.ts +0 -61
  40. package/src/apis/UsersApi.ts +5 -26
  41. package/src/apis/UsersPublicApi.ts +0 -81
@@ -12,25 +12,23 @@
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;
16
15
  createLeadInput: CreateLeadInput;
17
16
  }
17
+ export interface LeadsPublicApiGetLeadRequest {
18
+ leadId: string;
19
+ }
18
20
  export interface LeadsPublicApiGetLeadStatusRequest {
19
21
  leadId: string;
20
- xLocale: GetLeadStatusXLocaleEnum;
21
22
  }
22
- export interface LeadsPublicApiGetPublicLeadRequest {
23
+ export interface LeadsPublicApiRequestVerificationCodeRequest {
23
24
  leadId: string;
24
- xLocale: GetPublicLeadXLocaleEnum;
25
25
  }
26
26
  export interface LeadsPublicApiUpdateLeadRequest {
27
27
  leadId: string;
28
- xLocale: UpdateLeadXLocaleEnum;
29
28
  updateLeadInput: UpdateLeadInput;
30
29
  }
31
30
  export interface LeadsPublicApiVerifyLeadRequest {
32
31
  leadId: string;
33
- xLocale: VerifyLeadXLocaleEnum;
34
32
  verifyLeadInput: VerifyLeadInput;
35
33
  }
36
34
  /**
@@ -45,6 +43,14 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
45
43
  *
46
44
  */
47
45
  createLead(requestParameters: LeadsPublicApiCreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
46
+ /**
47
+ *
48
+ */
49
+ getLeadRaw(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>>;
50
+ /**
51
+ *
52
+ */
53
+ getLead(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto>;
48
54
  /**
49
55
  *
50
56
  */
@@ -56,11 +62,11 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
56
62
  /**
57
63
  *
58
64
  */
59
- getPublicLeadRaw(requestParameters: LeadsPublicApiGetPublicLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>>;
65
+ requestVerificationCodeRaw(requestParameters: LeadsPublicApiRequestVerificationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
60
66
  /**
61
67
  *
62
68
  */
63
- getPublicLead(requestParameters: LeadsPublicApiGetPublicLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto>;
69
+ requestVerificationCode(requestParameters: LeadsPublicApiRequestVerificationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
64
70
  /**
65
71
  *
66
72
  */
@@ -78,43 +84,3 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
78
84
  */
79
85
  verifyLead(requestParameters: LeadsPublicApiVerifyLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
80
86
  }
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.VerifyLeadXLocaleEnum = exports.UpdateLeadXLocaleEnum = exports.GetPublicLeadXLocaleEnum = exports.GetLeadStatusXLocaleEnum = exports.CreateLeadXLocaleEnum = exports.LeadsPublicApi = void 0;
67
+ exports.LeadsPublicApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var index_1 = require("../models/index");
70
70
  /**
@@ -84,18 +84,12 @@ 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
- }
90
87
  if (requestParameters['createLeadInput'] == null) {
91
88
  throw new runtime.RequiredError('createLeadInput', 'Required parameter "createLeadInput" was null or undefined when calling createLead().');
92
89
  }
93
90
  queryParameters = {};
94
91
  headerParameters = {};
95
92
  headerParameters['Content-Type'] = 'application/json';
96
- if (requestParameters['xLocale'] != null) {
97
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
98
- }
99
93
  return [4 /*yield*/, this.request({
100
94
  path: "/leads",
101
95
  method: 'POST',
@@ -127,6 +121,50 @@ var LeadsPublicApi = /** @class */ (function (_super) {
127
121
  });
128
122
  });
129
123
  };
124
+ /**
125
+ *
126
+ */
127
+ LeadsPublicApi.prototype.getLeadRaw = function (requestParameters, initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ var queryParameters, headerParameters, response;
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0:
133
+ if (requestParameters['leadId'] == null) {
134
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLead().');
135
+ }
136
+ queryParameters = {};
137
+ headerParameters = {};
138
+ return [4 /*yield*/, this.request({
139
+ path: "/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
140
+ method: 'GET',
141
+ headers: headerParameters,
142
+ query: queryParameters,
143
+ }, initOverrides)];
144
+ case 1:
145
+ response = _a.sent();
146
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PublicLeadDtoFromJSON)(jsonValue); })];
147
+ }
148
+ });
149
+ });
150
+ };
151
+ /**
152
+ *
153
+ */
154
+ LeadsPublicApi.prototype.getLead = function (requestParameters, initOverrides) {
155
+ return __awaiter(this, void 0, void 0, function () {
156
+ var response;
157
+ return __generator(this, function (_a) {
158
+ switch (_a.label) {
159
+ case 0: return [4 /*yield*/, this.getLeadRaw(requestParameters, initOverrides)];
160
+ case 1:
161
+ response = _a.sent();
162
+ return [4 /*yield*/, response.value()];
163
+ case 2: return [2 /*return*/, _a.sent()];
164
+ }
165
+ });
166
+ });
167
+ };
130
168
  /**
131
169
  *
132
170
  */
@@ -139,14 +177,8 @@ var LeadsPublicApi = /** @class */ (function (_super) {
139
177
  if (requestParameters['leadId'] == null) {
140
178
  throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLeadStatus().');
141
179
  }
142
- if (requestParameters['xLocale'] == null) {
143
- throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getLeadStatus().');
144
- }
145
180
  queryParameters = {};
146
181
  headerParameters = {};
147
- if (requestParameters['xLocale'] != null) {
148
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
149
- }
150
182
  return [4 /*yield*/, this.request({
151
183
  path: "/leads/{leadId}/status".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
152
184
  method: 'GET',
@@ -180,32 +212,26 @@ var LeadsPublicApi = /** @class */ (function (_super) {
180
212
  /**
181
213
  *
182
214
  */
183
- LeadsPublicApi.prototype.getPublicLeadRaw = function (requestParameters, initOverrides) {
215
+ LeadsPublicApi.prototype.requestVerificationCodeRaw = function (requestParameters, initOverrides) {
184
216
  return __awaiter(this, void 0, void 0, function () {
185
217
  var queryParameters, headerParameters, response;
186
218
  return __generator(this, function (_a) {
187
219
  switch (_a.label) {
188
220
  case 0:
189
221
  if (requestParameters['leadId'] == null) {
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().');
222
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling requestVerificationCode().');
194
223
  }
195
224
  queryParameters = {};
196
225
  headerParameters = {};
197
- if (requestParameters['xLocale'] != null) {
198
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
199
- }
200
226
  return [4 /*yield*/, this.request({
201
- path: "/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
202
- method: 'GET',
227
+ path: "/leads/{leadId}/request-verification-code".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
228
+ method: 'POST',
203
229
  headers: headerParameters,
204
230
  query: queryParameters,
205
231
  }, initOverrides)];
206
232
  case 1:
207
233
  response = _a.sent();
208
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PublicLeadDtoFromJSON)(jsonValue); })];
234
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
209
235
  }
210
236
  });
211
237
  });
@@ -213,16 +239,14 @@ var LeadsPublicApi = /** @class */ (function (_super) {
213
239
  /**
214
240
  *
215
241
  */
216
- LeadsPublicApi.prototype.getPublicLead = function (requestParameters, initOverrides) {
242
+ LeadsPublicApi.prototype.requestVerificationCode = function (requestParameters, initOverrides) {
217
243
  return __awaiter(this, void 0, void 0, function () {
218
- var response;
219
244
  return __generator(this, function (_a) {
220
245
  switch (_a.label) {
221
- case 0: return [4 /*yield*/, this.getPublicLeadRaw(requestParameters, initOverrides)];
246
+ case 0: return [4 /*yield*/, this.requestVerificationCodeRaw(requestParameters, initOverrides)];
222
247
  case 1:
223
- response = _a.sent();
224
- return [4 /*yield*/, response.value()];
225
- case 2: return [2 /*return*/, _a.sent()];
248
+ _a.sent();
249
+ return [2 /*return*/];
226
250
  }
227
251
  });
228
252
  });
@@ -239,18 +263,12 @@ var LeadsPublicApi = /** @class */ (function (_super) {
239
263
  if (requestParameters['leadId'] == null) {
240
264
  throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateLead().');
241
265
  }
242
- if (requestParameters['xLocale'] == null) {
243
- throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling updateLead().');
244
- }
245
266
  if (requestParameters['updateLeadInput'] == null) {
246
267
  throw new runtime.RequiredError('updateLeadInput', 'Required parameter "updateLeadInput" was null or undefined when calling updateLead().');
247
268
  }
248
269
  queryParameters = {};
249
270
  headerParameters = {};
250
271
  headerParameters['Content-Type'] = 'application/json';
251
- if (requestParameters['xLocale'] != null) {
252
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
253
- }
254
272
  return [4 /*yield*/, this.request({
255
273
  path: "/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
256
274
  method: 'PUT',
@@ -292,18 +310,12 @@ var LeadsPublicApi = /** @class */ (function (_super) {
292
310
  if (requestParameters['leadId'] == null) {
293
311
  throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling verifyLead().');
294
312
  }
295
- if (requestParameters['xLocale'] == null) {
296
- throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling verifyLead().');
297
- }
298
313
  if (requestParameters['verifyLeadInput'] == null) {
299
314
  throw new runtime.RequiredError('verifyLeadInput', 'Required parameter "verifyLeadInput" was null or undefined when calling verifyLead().');
300
315
  }
301
316
  queryParameters = {};
302
317
  headerParameters = {};
303
318
  headerParameters['Content-Type'] = 'application/json';
304
- if (requestParameters['xLocale'] != null) {
305
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
306
- }
307
319
  return [4 /*yield*/, this.request({
308
320
  path: "/leads/{leadId}/verify".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
309
321
  method: 'POST',
@@ -336,38 +348,3 @@ var LeadsPublicApi = /** @class */ (function (_super) {
336
348
  return LeadsPublicApi;
337
349
  }(runtime.BaseAPI));
338
350
  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,16 +12,13 @@
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;
16
15
  createOrderInput: CreateOrderInput;
17
16
  }
18
17
  export interface OrdersPublicApiGetOrderRequest {
19
18
  orderId: string;
20
- xLocale: GetOrderXLocaleEnum;
21
19
  }
22
20
  export interface OrdersPublicApiUpdateOrderRequest {
23
21
  orderId: string;
24
- xLocale: UpdateOrderXLocaleEnum;
25
22
  updateOrderInput: UpdateOrderInput;
26
23
  }
27
24
  /**
@@ -53,27 +50,3 @@ export declare class OrdersPublicApi extends runtime.BaseAPI {
53
50
  */
54
51
  updateOrder(requestParameters: OrdersPublicApiUpdateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
55
52
  }
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.UpdateOrderXLocaleEnum = exports.GetOrderXLocaleEnum = exports.CreateOrderXLocaleEnum = exports.OrdersPublicApi = void 0;
67
+ exports.OrdersPublicApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var index_1 = require("../models/index");
70
70
  /**
@@ -84,18 +84,12 @@ 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
- }
90
87
  if (requestParameters['createOrderInput'] == null) {
91
88
  throw new runtime.RequiredError('createOrderInput', 'Required parameter "createOrderInput" was null or undefined when calling createOrder().');
92
89
  }
93
90
  queryParameters = {};
94
91
  headerParameters = {};
95
92
  headerParameters['Content-Type'] = 'application/json';
96
- if (requestParameters['xLocale'] != null) {
97
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
98
- }
99
93
  return [4 /*yield*/, this.request({
100
94
  path: "/orders",
101
95
  method: 'POST',
@@ -139,14 +133,8 @@ var OrdersPublicApi = /** @class */ (function (_super) {
139
133
  if (requestParameters['orderId'] == null) {
140
134
  throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling getOrder().');
141
135
  }
142
- if (requestParameters['xLocale'] == null) {
143
- throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getOrder().');
144
- }
145
136
  queryParameters = {};
146
137
  headerParameters = {};
147
- if (requestParameters['xLocale'] != null) {
148
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
149
- }
150
138
  return [4 /*yield*/, this.request({
151
139
  path: "/orders/{orderId}".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
152
140
  method: 'GET',
@@ -189,18 +177,12 @@ var OrdersPublicApi = /** @class */ (function (_super) {
189
177
  if (requestParameters['orderId'] == null) {
190
178
  throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling updateOrder().');
191
179
  }
192
- if (requestParameters['xLocale'] == null) {
193
- throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling updateOrder().');
194
- }
195
180
  if (requestParameters['updateOrderInput'] == null) {
196
181
  throw new runtime.RequiredError('updateOrderInput', 'Required parameter "updateOrderInput" was null or undefined when calling updateOrder().');
197
182
  }
198
183
  queryParameters = {};
199
184
  headerParameters = {};
200
185
  headerParameters['Content-Type'] = 'application/json';
201
- if (requestParameters['xLocale'] != null) {
202
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
203
- }
204
186
  return [4 /*yield*/, this.request({
205
187
  path: "/orders/{orderId}".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
206
188
  method: 'PUT',
@@ -233,24 +215,3 @@ var OrdersPublicApi = /** @class */ (function (_super) {
233
215
  return OrdersPublicApi;
234
216
  }(runtime.BaseAPI));
235
217
  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
- };
@@ -11,8 +11,7 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { StoreUserLocaleInput } from '../models/index';
14
- export interface UsersApiSetUserLocaleRequest {
15
- xLocale: SetUserLocaleXLocaleEnum;
14
+ export interface UsersApiSetLocaleRequest {
16
15
  storeUserLocaleInput: StoreUserLocaleInput;
17
16
  }
18
17
  /**
@@ -22,17 +21,9 @@ export declare class UsersApi extends runtime.BaseAPI {
22
21
  /**
23
22
  *
24
23
  */
25
- setUserLocaleRaw(requestParameters: UsersApiSetUserLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
24
+ setLocaleRaw(requestParameters: UsersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
26
25
  /**
27
26
  *
28
27
  */
29
- setUserLocale(requestParameters: UsersApiSetUserLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
28
+ setLocale(requestParameters: UsersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
30
29
  }
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];
@@ -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.SetUserLocaleXLocaleEnum = exports.UsersApi = void 0;
67
+ exports.UsersApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var index_1 = require("../models/index");
70
70
  /**
@@ -78,24 +78,18 @@ var UsersApi = /** @class */ (function (_super) {
78
78
  /**
79
79
  *
80
80
  */
81
- UsersApi.prototype.setUserLocaleRaw = function (requestParameters, initOverrides) {
81
+ UsersApi.prototype.setLocaleRaw = function (requestParameters, initOverrides) {
82
82
  return __awaiter(this, void 0, void 0, function () {
83
83
  var queryParameters, headerParameters, token, tokenString, response;
84
84
  return __generator(this, function (_a) {
85
85
  switch (_a.label) {
86
86
  case 0:
87
- if (requestParameters['xLocale'] == null) {
88
- throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling setUserLocale().');
89
- }
90
87
  if (requestParameters['storeUserLocaleInput'] == null) {
91
- throw new runtime.RequiredError('storeUserLocaleInput', 'Required parameter "storeUserLocaleInput" was null or undefined when calling setUserLocale().');
88
+ throw new runtime.RequiredError('storeUserLocaleInput', 'Required parameter "storeUserLocaleInput" was null or undefined when calling setLocale().');
92
89
  }
93
90
  queryParameters = {};
94
91
  headerParameters = {};
95
92
  headerParameters['Content-Type'] = 'application/json';
96
- if (requestParameters['xLocale'] != null) {
97
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
98
- }
99
93
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
100
94
  token = this.configuration.accessToken;
101
95
  return [4 /*yield*/, token("bearer", [])];
@@ -122,11 +116,11 @@ var UsersApi = /** @class */ (function (_super) {
122
116
  /**
123
117
  *
124
118
  */
125
- UsersApi.prototype.setUserLocale = function (requestParameters, initOverrides) {
119
+ UsersApi.prototype.setLocale = function (requestParameters, initOverrides) {
126
120
  return __awaiter(this, void 0, void 0, function () {
127
121
  return __generator(this, function (_a) {
128
122
  switch (_a.label) {
129
- case 0: return [4 /*yield*/, this.setUserLocaleRaw(requestParameters, initOverrides)];
123
+ case 0: return [4 /*yield*/, this.setLocaleRaw(requestParameters, initOverrides)];
130
124
  case 1:
131
125
  _a.sent();
132
126
  return [2 /*return*/];
@@ -137,10 +131,3 @@ var UsersApi = /** @class */ (function (_super) {
137
131
  return UsersApi;
138
132
  }(runtime.BaseAPI));
139
133
  exports.UsersApi = UsersApi;
140
- /**
141
- * @export
142
- */
143
- exports.SetUserLocaleXLocaleEnum = {
144
- NL_NL: 'nl-nl',
145
- EN_GB: 'en-gb'
146
- };
@@ -12,20 +12,16 @@
12
12
  import * as runtime from '../runtime';
13
13
  import type { ForgotPasswordRequestInput, LoginDto, LoginInput, SetNewPasswordInput, UserPasswordResetDto } from '../models/index';
14
14
  export interface UsersPublicApiForgotPasswordRequestRequest {
15
- xLocale: ForgotPasswordRequestXLocaleEnum;
16
15
  forgotPasswordRequestInput: ForgotPasswordRequestInput;
17
16
  }
18
17
  export interface UsersPublicApiGetForgotPasswordRequestRequest {
19
18
  passwordRequestId: string;
20
- xLocale: GetForgotPasswordRequestXLocaleEnum;
21
19
  }
22
20
  export interface UsersPublicApiLoginRequest {
23
- xLocale: LoginXLocaleEnum;
24
21
  loginInput: LoginInput;
25
22
  }
26
23
  export interface UsersPublicApiPostNewPasswordRequest {
27
24
  passwordRequestId: string;
28
- xLocale: PostNewPasswordXLocaleEnum;
29
25
  setNewPasswordInput: SetNewPasswordInput;
30
26
  }
31
27
  /**
@@ -65,35 +61,3 @@ export declare class UsersPublicApi extends runtime.BaseAPI {
65
61
  */
66
62
  postNewPassword(requestParameters: UsersPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
67
63
  }
68
- /**
69
- * @export
70
- */
71
- export declare const ForgotPasswordRequestXLocaleEnum: {
72
- readonly NL_NL: "nl-nl";
73
- readonly EN_GB: "en-gb";
74
- };
75
- export type ForgotPasswordRequestXLocaleEnum = typeof ForgotPasswordRequestXLocaleEnum[keyof typeof ForgotPasswordRequestXLocaleEnum];
76
- /**
77
- * @export
78
- */
79
- export declare const GetForgotPasswordRequestXLocaleEnum: {
80
- readonly NL_NL: "nl-nl";
81
- readonly EN_GB: "en-gb";
82
- };
83
- export type GetForgotPasswordRequestXLocaleEnum = typeof GetForgotPasswordRequestXLocaleEnum[keyof typeof GetForgotPasswordRequestXLocaleEnum];
84
- /**
85
- * @export
86
- */
87
- export declare const LoginXLocaleEnum: {
88
- readonly NL_NL: "nl-nl";
89
- readonly EN_GB: "en-gb";
90
- };
91
- export type LoginXLocaleEnum = typeof LoginXLocaleEnum[keyof typeof LoginXLocaleEnum];
92
- /**
93
- * @export
94
- */
95
- export declare const PostNewPasswordXLocaleEnum: {
96
- readonly NL_NL: "nl-nl";
97
- readonly EN_GB: "en-gb";
98
- };
99
- export type PostNewPasswordXLocaleEnum = typeof PostNewPasswordXLocaleEnum[keyof typeof PostNewPasswordXLocaleEnum];