@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
@@ -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 LeadsPublicApiGetPublicLeadRequest {
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 getLeadStatusRaw(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadStatusDto>> {
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 getLeadStatus().'
123
+ 'Required parameter "leadId" was null or undefined when calling getLead().'
136
124
  );
137
125
  }
138
126
 
139
- if (requestParameters['xLocale'] == null) {
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
- 'xLocale',
142
- 'Required parameter "xLocale" was null or undefined when calling getLeadStatus().'
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 getPublicLeadRaw(requestParameters: LeadsPublicApiGetPublicLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>> {
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 getPublicLead().'
180
- );
181
- }
182
-
183
- if (requestParameters['xLocale'] == null) {
184
- throw new runtime.RequiredError(
185
- 'xLocale',
186
- 'Required parameter "xLocale" was null or undefined when calling getPublicLead().'
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: 'GET',
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.JSONApiResponse(response, (jsonValue) => PublicLeadDtoFromJSON(jsonValue));
204
+ return new runtime.VoidApiResponse(response);
206
205
  }
207
206
 
208
207
  /**
209
208
  *
210
209
  */
211
- async getPublicLead(requestParameters: LeadsPublicApiGetPublicLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto> {
212
- const response = await this.getPublicLeadRaw(requestParameters, initOverrides);
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];
@@ -28,8 +28,7 @@ import {
28
28
  ValidationExceptionToJSON,
29
29
  } from '../models/index';
30
30
 
31
- export interface UsersApiSetUserLocaleRequest {
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 setUserLocaleRaw(requestParameters: UsersApiSetUserLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
45
- if (requestParameters['xLocale'] == null) {
46
- throw new runtime.RequiredError(
47
- 'xLocale',
48
- 'Required parameter "xLocale" was null or undefined when calling setUserLocale().'
49
- );
50
- }
51
-
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 setUserLocale().'
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 setUserLocale(requestParameters: UsersApiSetUserLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
92
- await this.setUserLocaleRaw(requestParameters, initOverrides);
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];
@@ -44,23 +44,19 @@ import {
44
44
  } from '../models/index';
45
45
 
46
46
  export interface UsersPublicApiForgotPasswordRequestRequest {
47
- xLocale: ForgotPasswordRequestXLocaleEnum;
48
47
  forgotPasswordRequestInput: ForgotPasswordRequestInput;
49
48
  }
50
49
 
51
50
  export interface UsersPublicApiGetForgotPasswordRequestRequest {
52
51
  passwordRequestId: string;
53
- xLocale: GetForgotPasswordRequestXLocaleEnum;
54
52
  }
55
53
 
56
54
  export interface UsersPublicApiLoginRequest {
57
- xLocale: LoginXLocaleEnum;
58
55
  loginInput: LoginInput;
59
56
  }
60
57
 
61
58
  export interface UsersPublicApiPostNewPasswordRequest {
62
59
  passwordRequestId: string;
63
- xLocale: PostNewPasswordXLocaleEnum;
64
60
  setNewPasswordInput: SetNewPasswordInput;
65
61
  }
66
62
 
@@ -73,13 +69,6 @@ export class UsersPublicApi extends runtime.BaseAPI {
73
69
  *
74
70
  */
75
71
  async forgotPasswordRequestRaw(requestParameters: UsersPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
76
- if (requestParameters['xLocale'] == null) {
77
- throw new runtime.RequiredError(
78
- 'xLocale',
79
- 'Required parameter "xLocale" was null or undefined when calling forgotPasswordRequest().'
80
- );
81
- }
82
-
83
72
  if (requestParameters['forgotPasswordRequestInput'] == null) {
84
73
  throw new runtime.RequiredError(
85
74
  'forgotPasswordRequestInput',
@@ -93,10 +82,6 @@ export class UsersPublicApi extends runtime.BaseAPI {
93
82
 
94
83
  headerParameters['Content-Type'] = 'application/json';
95
84
 
96
- if (requestParameters['xLocale'] != null) {
97
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
98
- }
99
-
100
85
  const response = await this.request({
101
86
  path: `/users/forgot-password-request`,
102
87
  method: 'POST',
@@ -126,21 +111,10 @@ export class UsersPublicApi extends runtime.BaseAPI {
126
111
  );
127
112
  }
128
113
 
129
- if (requestParameters['xLocale'] == null) {
130
- throw new runtime.RequiredError(
131
- 'xLocale',
132
- 'Required parameter "xLocale" was null or undefined when calling getForgotPasswordRequest().'
133
- );
134
- }
135
-
136
114
  const queryParameters: any = {};
137
115
 
138
116
  const headerParameters: runtime.HTTPHeaders = {};
139
117
 
140
- if (requestParameters['xLocale'] != null) {
141
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
142
- }
143
-
144
118
  const response = await this.request({
145
119
  path: `/users/forgot-password-request/{passwordRequestId}`.replace(`{${"passwordRequestId"}}`, encodeURIComponent(String(requestParameters['passwordRequestId']))),
146
120
  method: 'GET',
@@ -163,13 +137,6 @@ export class UsersPublicApi extends runtime.BaseAPI {
163
137
  *
164
138
  */
165
139
  async loginRaw(requestParameters: UsersPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>> {
166
- if (requestParameters['xLocale'] == null) {
167
- throw new runtime.RequiredError(
168
- 'xLocale',
169
- 'Required parameter "xLocale" was null or undefined when calling login().'
170
- );
171
- }
172
-
173
140
  if (requestParameters['loginInput'] == null) {
174
141
  throw new runtime.RequiredError(
175
142
  'loginInput',
@@ -183,10 +150,6 @@ export class UsersPublicApi extends runtime.BaseAPI {
183
150
 
184
151
  headerParameters['Content-Type'] = 'application/json';
185
152
 
186
- if (requestParameters['xLocale'] != null) {
187
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
188
- }
189
-
190
153
  const response = await this.request({
191
154
  path: `/users/login`,
192
155
  method: 'POST',
@@ -217,13 +180,6 @@ export class UsersPublicApi extends runtime.BaseAPI {
217
180
  );
218
181
  }
219
182
 
220
- if (requestParameters['xLocale'] == null) {
221
- throw new runtime.RequiredError(
222
- 'xLocale',
223
- 'Required parameter "xLocale" was null or undefined when calling postNewPassword().'
224
- );
225
- }
226
-
227
183
  if (requestParameters['setNewPasswordInput'] == null) {
228
184
  throw new runtime.RequiredError(
229
185
  'setNewPasswordInput',
@@ -237,10 +193,6 @@ export class UsersPublicApi extends runtime.BaseAPI {
237
193
 
238
194
  headerParameters['Content-Type'] = 'application/json';
239
195
 
240
- if (requestParameters['xLocale'] != null) {
241
- headerParameters['x-locale'] = String(requestParameters['xLocale']);
242
- }
243
-
244
196
  const response = await this.request({
245
197
  path: `/users/forgot-password-request/{passwordRequestId}`.replace(`{${"passwordRequestId"}}`, encodeURIComponent(String(requestParameters['passwordRequestId']))),
246
198
  method: 'POST',
@@ -260,36 +212,3 @@ export class UsersPublicApi extends runtime.BaseAPI {
260
212
  }
261
213
 
262
214
  }
263
-
264
- /**
265
- * @export
266
- */
267
- export const ForgotPasswordRequestXLocaleEnum = {
268
- NL_NL: 'nl-nl',
269
- EN_GB: 'en-gb'
270
- } as const;
271
- export type ForgotPasswordRequestXLocaleEnum = typeof ForgotPasswordRequestXLocaleEnum[keyof typeof ForgotPasswordRequestXLocaleEnum];
272
- /**
273
- * @export
274
- */
275
- export const GetForgotPasswordRequestXLocaleEnum = {
276
- NL_NL: 'nl-nl',
277
- EN_GB: 'en-gb'
278
- } as const;
279
- export type GetForgotPasswordRequestXLocaleEnum = typeof GetForgotPasswordRequestXLocaleEnum[keyof typeof GetForgotPasswordRequestXLocaleEnum];
280
- /**
281
- * @export
282
- */
283
- export const LoginXLocaleEnum = {
284
- NL_NL: 'nl-nl',
285
- EN_GB: 'en-gb'
286
- } as const;
287
- export type LoginXLocaleEnum = typeof LoginXLocaleEnum[keyof typeof LoginXLocaleEnum];
288
- /**
289
- * @export
290
- */
291
- export const PostNewPasswordXLocaleEnum = {
292
- NL_NL: 'nl-nl',
293
- EN_GB: 'en-gb'
294
- } as const;
295
- export type PostNewPasswordXLocaleEnum = typeof PostNewPasswordXLocaleEnum[keyof typeof PostNewPasswordXLocaleEnum];