@ahomevilla-hotel/node-sdk 1.0.0
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 +8 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +1 -0
- package/api.ts +3560 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +30 -0
- package/tsconfig.json +12 -0
package/api.ts
ADDED
|
@@ -0,0 +1,3560 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* VVintage documentation
|
|
5
|
+
* This is VVintage\'s APIs description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface Branch
|
|
30
|
+
*/
|
|
31
|
+
export interface Branch {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Branch
|
|
36
|
+
*/
|
|
37
|
+
'id': string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof Branch
|
|
42
|
+
*/
|
|
43
|
+
'createdAt': string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof Branch
|
|
48
|
+
*/
|
|
49
|
+
'updatedAt': string;
|
|
50
|
+
/**
|
|
51
|
+
* Branch\'s thumbnail image
|
|
52
|
+
* @type {Image}
|
|
53
|
+
* @memberof Branch
|
|
54
|
+
*/
|
|
55
|
+
'thumbnail': Image;
|
|
56
|
+
/**
|
|
57
|
+
* Branch\'s image gallery
|
|
58
|
+
* @type {Array<Image>}
|
|
59
|
+
* @memberof Branch
|
|
60
|
+
*/
|
|
61
|
+
'images': Array<Image>;
|
|
62
|
+
/**
|
|
63
|
+
* Branch\'s name
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof Branch
|
|
66
|
+
*/
|
|
67
|
+
'name': string;
|
|
68
|
+
/**
|
|
69
|
+
* Branch\'s description
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof Branch
|
|
72
|
+
*/
|
|
73
|
+
'description': string;
|
|
74
|
+
/**
|
|
75
|
+
* Branch\'s contact phone number
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof Branch
|
|
78
|
+
*/
|
|
79
|
+
'phone': string;
|
|
80
|
+
/**
|
|
81
|
+
* Branch\'s active status
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof Branch
|
|
84
|
+
*/
|
|
85
|
+
'is_active': boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Branch\'s physical address
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof Branch
|
|
90
|
+
*/
|
|
91
|
+
'address': string;
|
|
92
|
+
/**
|
|
93
|
+
* Branch\'s geographical location
|
|
94
|
+
* @type {object}
|
|
95
|
+
* @memberof Branch
|
|
96
|
+
*/
|
|
97
|
+
'location': object;
|
|
98
|
+
/**
|
|
99
|
+
* Branch\'s rating
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof Branch
|
|
102
|
+
*/
|
|
103
|
+
'rating': number;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @export
|
|
108
|
+
* @interface BranchesPaginationResultDto
|
|
109
|
+
*/
|
|
110
|
+
export interface BranchesPaginationResultDto {
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {Array<object>}
|
|
114
|
+
* @memberof BranchesPaginationResultDto
|
|
115
|
+
*/
|
|
116
|
+
'data': Array<object>;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {UsersPaginationResultDtoMeta}
|
|
120
|
+
* @memberof BranchesPaginationResultDto
|
|
121
|
+
*/
|
|
122
|
+
'meta': UsersPaginationResultDtoMeta;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @export
|
|
127
|
+
* @interface CreateBranchDto
|
|
128
|
+
*/
|
|
129
|
+
export interface CreateBranchDto {
|
|
130
|
+
/**
|
|
131
|
+
* ID of the province where this branch is located
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof CreateBranchDto
|
|
134
|
+
*/
|
|
135
|
+
'provinceId': string;
|
|
136
|
+
/**
|
|
137
|
+
* The branch\'s thumbnail image.
|
|
138
|
+
* @type {Image}
|
|
139
|
+
* @memberof CreateBranchDto
|
|
140
|
+
*/
|
|
141
|
+
'thumbnail': Image;
|
|
142
|
+
/**
|
|
143
|
+
* The branch\'s images.
|
|
144
|
+
* @type {Array<Image>}
|
|
145
|
+
* @memberof CreateBranchDto
|
|
146
|
+
*/
|
|
147
|
+
'images': Array<Image>;
|
|
148
|
+
/**
|
|
149
|
+
* The branch\'s name.
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof CreateBranchDto
|
|
152
|
+
*/
|
|
153
|
+
'name': string;
|
|
154
|
+
/**
|
|
155
|
+
* The branch\'s description.
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof CreateBranchDto
|
|
158
|
+
*/
|
|
159
|
+
'description': string;
|
|
160
|
+
/**
|
|
161
|
+
* The branch\'s phone number.
|
|
162
|
+
* @type {string}
|
|
163
|
+
* @memberof CreateBranchDto
|
|
164
|
+
*/
|
|
165
|
+
'phone': string;
|
|
166
|
+
/**
|
|
167
|
+
* The branch\'s active status.
|
|
168
|
+
* @type {boolean}
|
|
169
|
+
* @memberof CreateBranchDto
|
|
170
|
+
*/
|
|
171
|
+
'is_active': boolean;
|
|
172
|
+
/**
|
|
173
|
+
* The branch\'s address.
|
|
174
|
+
* @type {string}
|
|
175
|
+
* @memberof CreateBranchDto
|
|
176
|
+
*/
|
|
177
|
+
'address': string;
|
|
178
|
+
/**
|
|
179
|
+
* Branch\'s geographical location
|
|
180
|
+
* @type {LocationDto}
|
|
181
|
+
* @memberof CreateBranchDto
|
|
182
|
+
*/
|
|
183
|
+
'location': LocationDto;
|
|
184
|
+
/**
|
|
185
|
+
* The branch\'s rating.
|
|
186
|
+
* @type {number}
|
|
187
|
+
* @memberof CreateBranchDto
|
|
188
|
+
*/
|
|
189
|
+
'rating': number;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @export
|
|
194
|
+
* @interface CreateProvinceDto
|
|
195
|
+
*/
|
|
196
|
+
export interface CreateProvinceDto {
|
|
197
|
+
/**
|
|
198
|
+
* Name of the province
|
|
199
|
+
* @type {string}
|
|
200
|
+
* @memberof CreateProvinceDto
|
|
201
|
+
*/
|
|
202
|
+
'name': string;
|
|
203
|
+
/**
|
|
204
|
+
* ZIP/Postal code of the province
|
|
205
|
+
* @type {string}
|
|
206
|
+
* @memberof CreateProvinceDto
|
|
207
|
+
*/
|
|
208
|
+
'zip_code': string;
|
|
209
|
+
/**
|
|
210
|
+
* URL-friendly slug of the province name
|
|
211
|
+
* @type {string}
|
|
212
|
+
* @memberof CreateProvinceDto
|
|
213
|
+
*/
|
|
214
|
+
'slug': string;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @export
|
|
219
|
+
* @interface CreateUserDto
|
|
220
|
+
*/
|
|
221
|
+
export interface CreateUserDto {
|
|
222
|
+
/**
|
|
223
|
+
* The user\'s email address.
|
|
224
|
+
* @type {string}
|
|
225
|
+
* @memberof CreateUserDto
|
|
226
|
+
*/
|
|
227
|
+
'email': string;
|
|
228
|
+
/**
|
|
229
|
+
* The user\'s phone number.
|
|
230
|
+
* @type {string}
|
|
231
|
+
* @memberof CreateUserDto
|
|
232
|
+
*/
|
|
233
|
+
'phone': string;
|
|
234
|
+
/**
|
|
235
|
+
* The user\'s password.
|
|
236
|
+
* @type {string}
|
|
237
|
+
* @memberof CreateUserDto
|
|
238
|
+
*/
|
|
239
|
+
'password': string;
|
|
240
|
+
/**
|
|
241
|
+
* The user\'s name.
|
|
242
|
+
* @type {string}
|
|
243
|
+
* @memberof CreateUserDto
|
|
244
|
+
*/
|
|
245
|
+
'name': string;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @export
|
|
250
|
+
* @interface Image
|
|
251
|
+
*/
|
|
252
|
+
export interface Image {
|
|
253
|
+
/**
|
|
254
|
+
* The image\'s URL.
|
|
255
|
+
* @type {string}
|
|
256
|
+
* @memberof Image
|
|
257
|
+
*/
|
|
258
|
+
'url': string;
|
|
259
|
+
/**
|
|
260
|
+
* The image\'s public ID in Cloudinary.
|
|
261
|
+
* @type {string}
|
|
262
|
+
* @memberof Image
|
|
263
|
+
*/
|
|
264
|
+
'publicId': string;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @export
|
|
269
|
+
* @interface ImageUploadResponseDto
|
|
270
|
+
*/
|
|
271
|
+
export interface ImageUploadResponseDto {
|
|
272
|
+
/**
|
|
273
|
+
* The image\'s URL.
|
|
274
|
+
* @type {string}
|
|
275
|
+
* @memberof ImageUploadResponseDto
|
|
276
|
+
*/
|
|
277
|
+
'url': string;
|
|
278
|
+
/**
|
|
279
|
+
* The image\'s public ID in Cloudinary.
|
|
280
|
+
* @type {string}
|
|
281
|
+
* @memberof ImageUploadResponseDto
|
|
282
|
+
*/
|
|
283
|
+
'publicId': string;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @export
|
|
288
|
+
* @interface LocationDto
|
|
289
|
+
*/
|
|
290
|
+
export interface LocationDto {
|
|
291
|
+
/**
|
|
292
|
+
* Latitude coordinate
|
|
293
|
+
* @type {number}
|
|
294
|
+
* @memberof LocationDto
|
|
295
|
+
*/
|
|
296
|
+
'latitude': number;
|
|
297
|
+
/**
|
|
298
|
+
* Longitude coordinate
|
|
299
|
+
* @type {number}
|
|
300
|
+
* @memberof LocationDto
|
|
301
|
+
*/
|
|
302
|
+
'longitude': number;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @export
|
|
307
|
+
* @interface LoginDto
|
|
308
|
+
*/
|
|
309
|
+
export interface LoginDto {
|
|
310
|
+
/**
|
|
311
|
+
* The user\'s email address or phone number.
|
|
312
|
+
* @type {string}
|
|
313
|
+
* @memberof LoginDto
|
|
314
|
+
*/
|
|
315
|
+
'emailOrPhone': string;
|
|
316
|
+
/**
|
|
317
|
+
* The user\'s password.
|
|
318
|
+
* @type {string}
|
|
319
|
+
* @memberof LoginDto
|
|
320
|
+
*/
|
|
321
|
+
'password': string;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* @export
|
|
326
|
+
* @interface LoginResponseDto
|
|
327
|
+
*/
|
|
328
|
+
export interface LoginResponseDto {
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @type {string}
|
|
332
|
+
* @memberof LoginResponseDto
|
|
333
|
+
*/
|
|
334
|
+
'accessToken': string;
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @type {number}
|
|
338
|
+
* @memberof LoginResponseDto
|
|
339
|
+
*/
|
|
340
|
+
'accessTokenExpires': number;
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
* @type {string}
|
|
344
|
+
* @memberof LoginResponseDto
|
|
345
|
+
*/
|
|
346
|
+
'refreshToken': string;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @export
|
|
351
|
+
* @interface Province
|
|
352
|
+
*/
|
|
353
|
+
export interface Province {
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @type {string}
|
|
357
|
+
* @memberof Province
|
|
358
|
+
*/
|
|
359
|
+
'id': string;
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @type {string}
|
|
363
|
+
* @memberof Province
|
|
364
|
+
*/
|
|
365
|
+
'createdAt': string;
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @type {string}
|
|
369
|
+
* @memberof Province
|
|
370
|
+
*/
|
|
371
|
+
'updatedAt': string;
|
|
372
|
+
/**
|
|
373
|
+
* Name of the province
|
|
374
|
+
* @type {string}
|
|
375
|
+
* @memberof Province
|
|
376
|
+
*/
|
|
377
|
+
'name': string;
|
|
378
|
+
/**
|
|
379
|
+
* ZIP/Postal code of the province
|
|
380
|
+
* @type {string}
|
|
381
|
+
* @memberof Province
|
|
382
|
+
*/
|
|
383
|
+
'zip_code': string;
|
|
384
|
+
/**
|
|
385
|
+
* Slug of the province
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof Province
|
|
388
|
+
*/
|
|
389
|
+
'slug': string;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @export
|
|
394
|
+
* @interface ProvincePaginationResultDto
|
|
395
|
+
*/
|
|
396
|
+
export interface ProvincePaginationResultDto {
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @type {Array<object>}
|
|
400
|
+
* @memberof ProvincePaginationResultDto
|
|
401
|
+
*/
|
|
402
|
+
'data': Array<object>;
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @type {UsersPaginationResultDtoMeta}
|
|
406
|
+
* @memberof ProvincePaginationResultDto
|
|
407
|
+
*/
|
|
408
|
+
'meta': UsersPaginationResultDtoMeta;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @export
|
|
413
|
+
* @interface RegisterResponseDto
|
|
414
|
+
*/
|
|
415
|
+
export interface RegisterResponseDto {
|
|
416
|
+
/**
|
|
417
|
+
* The user\'s email address
|
|
418
|
+
* @type {string}
|
|
419
|
+
* @memberof RegisterResponseDto
|
|
420
|
+
*/
|
|
421
|
+
'email'?: string;
|
|
422
|
+
/**
|
|
423
|
+
* The user\'s phone number
|
|
424
|
+
* @type {string}
|
|
425
|
+
* @memberof RegisterResponseDto
|
|
426
|
+
*/
|
|
427
|
+
'phone'?: string;
|
|
428
|
+
/**
|
|
429
|
+
* The type of identifier used for registration
|
|
430
|
+
* @type {string}
|
|
431
|
+
* @memberof RegisterResponseDto
|
|
432
|
+
*/
|
|
433
|
+
'identifier_type': RegisterResponseDtoIdentifierTypeEnum;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export const RegisterResponseDtoIdentifierTypeEnum = {
|
|
437
|
+
Email: 'EMAIL',
|
|
438
|
+
Phone: 'PHONE'
|
|
439
|
+
} as const;
|
|
440
|
+
|
|
441
|
+
export type RegisterResponseDtoIdentifierTypeEnum = typeof RegisterResponseDtoIdentifierTypeEnum[keyof typeof RegisterResponseDtoIdentifierTypeEnum];
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @export
|
|
446
|
+
* @interface UpdateBranchDto
|
|
447
|
+
*/
|
|
448
|
+
export interface UpdateBranchDto {
|
|
449
|
+
/**
|
|
450
|
+
* ID of the province where this branch is located
|
|
451
|
+
* @type {string}
|
|
452
|
+
* @memberof UpdateBranchDto
|
|
453
|
+
*/
|
|
454
|
+
'provinceId'?: string;
|
|
455
|
+
/**
|
|
456
|
+
* The branch\'s thumbnail image.
|
|
457
|
+
* @type {Image}
|
|
458
|
+
* @memberof UpdateBranchDto
|
|
459
|
+
*/
|
|
460
|
+
'thumbnail'?: Image;
|
|
461
|
+
/**
|
|
462
|
+
* The branch\'s images.
|
|
463
|
+
* @type {Array<Image>}
|
|
464
|
+
* @memberof UpdateBranchDto
|
|
465
|
+
*/
|
|
466
|
+
'images'?: Array<Image>;
|
|
467
|
+
/**
|
|
468
|
+
* The branch\'s name.
|
|
469
|
+
* @type {string}
|
|
470
|
+
* @memberof UpdateBranchDto
|
|
471
|
+
*/
|
|
472
|
+
'name'?: string;
|
|
473
|
+
/**
|
|
474
|
+
* The branch\'s description.
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof UpdateBranchDto
|
|
477
|
+
*/
|
|
478
|
+
'description'?: string;
|
|
479
|
+
/**
|
|
480
|
+
* The branch\'s phone number.
|
|
481
|
+
* @type {string}
|
|
482
|
+
* @memberof UpdateBranchDto
|
|
483
|
+
*/
|
|
484
|
+
'phone'?: string;
|
|
485
|
+
/**
|
|
486
|
+
* The branch\'s active status.
|
|
487
|
+
* @type {boolean}
|
|
488
|
+
* @memberof UpdateBranchDto
|
|
489
|
+
*/
|
|
490
|
+
'is_active'?: boolean;
|
|
491
|
+
/**
|
|
492
|
+
* The branch\'s address.
|
|
493
|
+
* @type {string}
|
|
494
|
+
* @memberof UpdateBranchDto
|
|
495
|
+
*/
|
|
496
|
+
'address'?: string;
|
|
497
|
+
/**
|
|
498
|
+
* Branch\'s geographical location
|
|
499
|
+
* @type {LocationDto}
|
|
500
|
+
* @memberof UpdateBranchDto
|
|
501
|
+
*/
|
|
502
|
+
'location'?: LocationDto;
|
|
503
|
+
/**
|
|
504
|
+
* The branch\'s rating.
|
|
505
|
+
* @type {number}
|
|
506
|
+
* @memberof UpdateBranchDto
|
|
507
|
+
*/
|
|
508
|
+
'rating'?: number;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @export
|
|
513
|
+
* @interface UpdateProvinceDto
|
|
514
|
+
*/
|
|
515
|
+
export interface UpdateProvinceDto {
|
|
516
|
+
/**
|
|
517
|
+
* Name of the province
|
|
518
|
+
* @type {string}
|
|
519
|
+
* @memberof UpdateProvinceDto
|
|
520
|
+
*/
|
|
521
|
+
'name'?: string;
|
|
522
|
+
/**
|
|
523
|
+
* ZIP/Postal code of the province
|
|
524
|
+
* @type {string}
|
|
525
|
+
* @memberof UpdateProvinceDto
|
|
526
|
+
*/
|
|
527
|
+
'zip_code'?: string;
|
|
528
|
+
/**
|
|
529
|
+
* URL-friendly slug of the province name
|
|
530
|
+
* @type {string}
|
|
531
|
+
* @memberof UpdateProvinceDto
|
|
532
|
+
*/
|
|
533
|
+
'slug'?: string;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
*
|
|
537
|
+
* @export
|
|
538
|
+
* @interface User
|
|
539
|
+
*/
|
|
540
|
+
export interface User {
|
|
541
|
+
/**
|
|
542
|
+
*
|
|
543
|
+
* @type {string}
|
|
544
|
+
* @memberof User
|
|
545
|
+
*/
|
|
546
|
+
'id': string;
|
|
547
|
+
/**
|
|
548
|
+
*
|
|
549
|
+
* @type {string}
|
|
550
|
+
* @memberof User
|
|
551
|
+
*/
|
|
552
|
+
'createdAt': string;
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @type {string}
|
|
556
|
+
* @memberof User
|
|
557
|
+
*/
|
|
558
|
+
'updatedAt': string;
|
|
559
|
+
/**
|
|
560
|
+
*
|
|
561
|
+
* @type {string}
|
|
562
|
+
* @memberof User
|
|
563
|
+
*/
|
|
564
|
+
'email': string;
|
|
565
|
+
/**
|
|
566
|
+
*
|
|
567
|
+
* @type {string}
|
|
568
|
+
* @memberof User
|
|
569
|
+
*/
|
|
570
|
+
'phone': string;
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @type {boolean}
|
|
574
|
+
* @memberof User
|
|
575
|
+
*/
|
|
576
|
+
'verified_email': boolean;
|
|
577
|
+
/**
|
|
578
|
+
*
|
|
579
|
+
* @type {boolean}
|
|
580
|
+
* @memberof User
|
|
581
|
+
*/
|
|
582
|
+
'verified_phone': boolean;
|
|
583
|
+
/**
|
|
584
|
+
*
|
|
585
|
+
* @type {boolean}
|
|
586
|
+
* @memberof User
|
|
587
|
+
*/
|
|
588
|
+
'is_blocked': boolean;
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @type {string}
|
|
592
|
+
* @memberof User
|
|
593
|
+
*/
|
|
594
|
+
'name': string;
|
|
595
|
+
/**
|
|
596
|
+
*
|
|
597
|
+
* @type {string}
|
|
598
|
+
* @memberof User
|
|
599
|
+
*/
|
|
600
|
+
'role': UserRoleEnum;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
export const UserRoleEnum = {
|
|
604
|
+
User: 'USER',
|
|
605
|
+
Staff: 'STAFF',
|
|
606
|
+
Admin: 'ADMIN'
|
|
607
|
+
} as const;
|
|
608
|
+
|
|
609
|
+
export type UserRoleEnum = typeof UserRoleEnum[keyof typeof UserRoleEnum];
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @export
|
|
614
|
+
* @interface UsersPaginationResultDto
|
|
615
|
+
*/
|
|
616
|
+
export interface UsersPaginationResultDto {
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @type {Array<User>}
|
|
620
|
+
* @memberof UsersPaginationResultDto
|
|
621
|
+
*/
|
|
622
|
+
'data': Array<User>;
|
|
623
|
+
/**
|
|
624
|
+
*
|
|
625
|
+
* @type {UsersPaginationResultDtoMeta}
|
|
626
|
+
* @memberof UsersPaginationResultDto
|
|
627
|
+
*/
|
|
628
|
+
'meta': UsersPaginationResultDtoMeta;
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
*
|
|
632
|
+
* @export
|
|
633
|
+
* @interface UsersPaginationResultDtoMeta
|
|
634
|
+
*/
|
|
635
|
+
export interface UsersPaginationResultDtoMeta {
|
|
636
|
+
/**
|
|
637
|
+
*
|
|
638
|
+
* @type {number}
|
|
639
|
+
* @memberof UsersPaginationResultDtoMeta
|
|
640
|
+
*/
|
|
641
|
+
'total'?: number;
|
|
642
|
+
/**
|
|
643
|
+
*
|
|
644
|
+
* @type {number}
|
|
645
|
+
* @memberof UsersPaginationResultDtoMeta
|
|
646
|
+
*/
|
|
647
|
+
'page'?: number;
|
|
648
|
+
/**
|
|
649
|
+
*
|
|
650
|
+
* @type {number}
|
|
651
|
+
* @memberof UsersPaginationResultDtoMeta
|
|
652
|
+
*/
|
|
653
|
+
'pageSize'?: number;
|
|
654
|
+
/**
|
|
655
|
+
*
|
|
656
|
+
* @type {number}
|
|
657
|
+
* @memberof UsersPaginationResultDtoMeta
|
|
658
|
+
*/
|
|
659
|
+
'totalPages'?: number;
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @export
|
|
664
|
+
* @interface VerificationEmailDto
|
|
665
|
+
*/
|
|
666
|
+
export interface VerificationEmailDto {
|
|
667
|
+
/**
|
|
668
|
+
* Email address to send verification code
|
|
669
|
+
* @type {string}
|
|
670
|
+
* @memberof VerificationEmailDto
|
|
671
|
+
*/
|
|
672
|
+
'to': string;
|
|
673
|
+
/**
|
|
674
|
+
* Verification code to be sent
|
|
675
|
+
* @type {string}
|
|
676
|
+
* @memberof VerificationEmailDto
|
|
677
|
+
*/
|
|
678
|
+
'code': string;
|
|
679
|
+
/**
|
|
680
|
+
* Language for email template
|
|
681
|
+
* @type {string}
|
|
682
|
+
* @memberof VerificationEmailDto
|
|
683
|
+
*/
|
|
684
|
+
'lang'?: VerificationEmailDtoLangEnum;
|
|
685
|
+
/**
|
|
686
|
+
* Type of verification email
|
|
687
|
+
* @type {string}
|
|
688
|
+
* @memberof VerificationEmailDto
|
|
689
|
+
*/
|
|
690
|
+
'type': VerificationEmailDtoTypeEnum;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
export const VerificationEmailDtoLangEnum = {
|
|
694
|
+
En: 'en',
|
|
695
|
+
Vi: 'vi'
|
|
696
|
+
} as const;
|
|
697
|
+
|
|
698
|
+
export type VerificationEmailDtoLangEnum = typeof VerificationEmailDtoLangEnum[keyof typeof VerificationEmailDtoLangEnum];
|
|
699
|
+
export const VerificationEmailDtoTypeEnum = {
|
|
700
|
+
VerifyAccount: 'VERIFY_ACCOUNT',
|
|
701
|
+
ForgotPassword: 'FORGOT_PASSWORD'
|
|
702
|
+
} as const;
|
|
703
|
+
|
|
704
|
+
export type VerificationEmailDtoTypeEnum = typeof VerificationEmailDtoTypeEnum[keyof typeof VerificationEmailDtoTypeEnum];
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
*
|
|
708
|
+
* @export
|
|
709
|
+
* @interface VerifyCodeDto
|
|
710
|
+
*/
|
|
711
|
+
export interface VerifyCodeDto {
|
|
712
|
+
/**
|
|
713
|
+
* User ID
|
|
714
|
+
* @type {string}
|
|
715
|
+
* @memberof VerifyCodeDto
|
|
716
|
+
*/
|
|
717
|
+
'userId': string;
|
|
718
|
+
/**
|
|
719
|
+
* Account type
|
|
720
|
+
* @type {string}
|
|
721
|
+
* @memberof VerifyCodeDto
|
|
722
|
+
*/
|
|
723
|
+
'type': string;
|
|
724
|
+
/**
|
|
725
|
+
* Verification code
|
|
726
|
+
* @type {string}
|
|
727
|
+
* @memberof VerifyCodeDto
|
|
728
|
+
*/
|
|
729
|
+
'code': string;
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
*
|
|
733
|
+
* @export
|
|
734
|
+
* @interface VerifyCodeResponseDto
|
|
735
|
+
*/
|
|
736
|
+
export interface VerifyCodeResponseDto {
|
|
737
|
+
/**
|
|
738
|
+
* Verification status
|
|
739
|
+
* @type {boolean}
|
|
740
|
+
* @memberof VerifyCodeResponseDto
|
|
741
|
+
*/
|
|
742
|
+
'success': boolean;
|
|
743
|
+
/**
|
|
744
|
+
* User ID
|
|
745
|
+
* @type {string}
|
|
746
|
+
* @memberof VerifyCodeResponseDto
|
|
747
|
+
*/
|
|
748
|
+
'userId': string;
|
|
749
|
+
/**
|
|
750
|
+
* Type of verification
|
|
751
|
+
* @type {string}
|
|
752
|
+
* @memberof VerifyCodeResponseDto
|
|
753
|
+
*/
|
|
754
|
+
'type': VerifyCodeResponseDtoTypeEnum;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
export const VerifyCodeResponseDtoTypeEnum = {
|
|
758
|
+
Email: 'EMAIL',
|
|
759
|
+
Phone: 'PHONE'
|
|
760
|
+
} as const;
|
|
761
|
+
|
|
762
|
+
export type VerifyCodeResponseDtoTypeEnum = typeof VerifyCodeResponseDtoTypeEnum[keyof typeof VerifyCodeResponseDtoTypeEnum];
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
*
|
|
766
|
+
* @export
|
|
767
|
+
* @interface VerifyEmailDto
|
|
768
|
+
*/
|
|
769
|
+
export interface VerifyEmailDto {
|
|
770
|
+
/**
|
|
771
|
+
* User ID
|
|
772
|
+
* @type {string}
|
|
773
|
+
* @memberof VerifyEmailDto
|
|
774
|
+
*/
|
|
775
|
+
'userId': string;
|
|
776
|
+
/**
|
|
777
|
+
* Verification code sent to email
|
|
778
|
+
* @type {string}
|
|
779
|
+
* @memberof VerifyEmailDto
|
|
780
|
+
*/
|
|
781
|
+
'code': string;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* AmenitiesApi - axios parameter creator
|
|
786
|
+
* @export
|
|
787
|
+
*/
|
|
788
|
+
export const AmenitiesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
789
|
+
return {
|
|
790
|
+
/**
|
|
791
|
+
*
|
|
792
|
+
* @param {string} [name]
|
|
793
|
+
* @param {string} [slug]
|
|
794
|
+
* @param {AmenitiesControllerCreateTypeEnum} [type]
|
|
795
|
+
* @param {File} [icon]
|
|
796
|
+
* @param {*} [options] Override http request option.
|
|
797
|
+
* @throws {RequiredError}
|
|
798
|
+
*/
|
|
799
|
+
amenitiesControllerCreate: async (name?: string, slug?: string, type?: AmenitiesControllerCreateTypeEnum, icon?: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
800
|
+
const localVarPath = `/api/amenities`;
|
|
801
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
802
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
803
|
+
let baseOptions;
|
|
804
|
+
if (configuration) {
|
|
805
|
+
baseOptions = configuration.baseOptions;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
809
|
+
const localVarHeaderParameter = {} as any;
|
|
810
|
+
const localVarQueryParameter = {} as any;
|
|
811
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
if (name !== undefined) {
|
|
815
|
+
localVarFormParams.append('name', name as any);
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
if (slug !== undefined) {
|
|
819
|
+
localVarFormParams.append('slug', slug as any);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
if (type !== undefined) {
|
|
823
|
+
localVarFormParams.append('type', type as any);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
if (icon !== undefined) {
|
|
827
|
+
localVarFormParams.append('icon', icon as any);
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
832
|
+
|
|
833
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
834
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
835
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
836
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
837
|
+
|
|
838
|
+
return {
|
|
839
|
+
url: toPathString(localVarUrlObj),
|
|
840
|
+
options: localVarRequestOptions,
|
|
841
|
+
};
|
|
842
|
+
},
|
|
843
|
+
/**
|
|
844
|
+
*
|
|
845
|
+
* @param {number} [page]
|
|
846
|
+
* @param {number} [pageSize]
|
|
847
|
+
* @param {string} [filters] JSON string
|
|
848
|
+
* @param {string} [sort] JSON string
|
|
849
|
+
* @param {*} [options] Override http request option.
|
|
850
|
+
* @throws {RequiredError}
|
|
851
|
+
*/
|
|
852
|
+
amenitiesControllerFindAll: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
853
|
+
const localVarPath = `/api/amenities`;
|
|
854
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
855
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
856
|
+
let baseOptions;
|
|
857
|
+
if (configuration) {
|
|
858
|
+
baseOptions = configuration.baseOptions;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
862
|
+
const localVarHeaderParameter = {} as any;
|
|
863
|
+
const localVarQueryParameter = {} as any;
|
|
864
|
+
|
|
865
|
+
if (page !== undefined) {
|
|
866
|
+
localVarQueryParameter['page'] = page;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
if (pageSize !== undefined) {
|
|
870
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
if (filters !== undefined) {
|
|
874
|
+
localVarQueryParameter['filters'] = filters;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
if (sort !== undefined) {
|
|
878
|
+
localVarQueryParameter['sort'] = sort;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
885
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
886
|
+
|
|
887
|
+
return {
|
|
888
|
+
url: toPathString(localVarUrlObj),
|
|
889
|
+
options: localVarRequestOptions,
|
|
890
|
+
};
|
|
891
|
+
},
|
|
892
|
+
/**
|
|
893
|
+
*
|
|
894
|
+
* @param {string} id
|
|
895
|
+
* @param {*} [options] Override http request option.
|
|
896
|
+
* @throws {RequiredError}
|
|
897
|
+
*/
|
|
898
|
+
amenitiesControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
899
|
+
// verify required parameter 'id' is not null or undefined
|
|
900
|
+
assertParamExists('amenitiesControllerFindOne', 'id', id)
|
|
901
|
+
const localVarPath = `/api/amenities/{id}`
|
|
902
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
903
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
904
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
905
|
+
let baseOptions;
|
|
906
|
+
if (configuration) {
|
|
907
|
+
baseOptions = configuration.baseOptions;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
911
|
+
const localVarHeaderParameter = {} as any;
|
|
912
|
+
const localVarQueryParameter = {} as any;
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
917
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
918
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
919
|
+
|
|
920
|
+
return {
|
|
921
|
+
url: toPathString(localVarUrlObj),
|
|
922
|
+
options: localVarRequestOptions,
|
|
923
|
+
};
|
|
924
|
+
},
|
|
925
|
+
/**
|
|
926
|
+
*
|
|
927
|
+
* @param {string} id
|
|
928
|
+
* @param {*} [options] Override http request option.
|
|
929
|
+
* @throws {RequiredError}
|
|
930
|
+
*/
|
|
931
|
+
amenitiesControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
932
|
+
// verify required parameter 'id' is not null or undefined
|
|
933
|
+
assertParamExists('amenitiesControllerRemove', 'id', id)
|
|
934
|
+
const localVarPath = `/api/amenities/{id}`
|
|
935
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
936
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
937
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
938
|
+
let baseOptions;
|
|
939
|
+
if (configuration) {
|
|
940
|
+
baseOptions = configuration.baseOptions;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
944
|
+
const localVarHeaderParameter = {} as any;
|
|
945
|
+
const localVarQueryParameter = {} as any;
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
950
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
951
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
952
|
+
|
|
953
|
+
return {
|
|
954
|
+
url: toPathString(localVarUrlObj),
|
|
955
|
+
options: localVarRequestOptions,
|
|
956
|
+
};
|
|
957
|
+
},
|
|
958
|
+
/**
|
|
959
|
+
*
|
|
960
|
+
* @param {string} id
|
|
961
|
+
* @param {string} [name] The name of the amenity
|
|
962
|
+
* @param {string} [slug] URL-friendly version of the name (lowercase, hyphenated)
|
|
963
|
+
* @param {AmenitiesControllerUpdateTypeEnum} [type] Type of amenity (ROOM, PROPERTY, or SERVICE)
|
|
964
|
+
* @param {*} [options] Override http request option.
|
|
965
|
+
* @throws {RequiredError}
|
|
966
|
+
*/
|
|
967
|
+
amenitiesControllerUpdate: async (id: string, name?: string, slug?: string, type?: AmenitiesControllerUpdateTypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
968
|
+
// verify required parameter 'id' is not null or undefined
|
|
969
|
+
assertParamExists('amenitiesControllerUpdate', 'id', id)
|
|
970
|
+
const localVarPath = `/api/amenities/{id}`
|
|
971
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
972
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
973
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
974
|
+
let baseOptions;
|
|
975
|
+
if (configuration) {
|
|
976
|
+
baseOptions = configuration.baseOptions;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
980
|
+
const localVarHeaderParameter = {} as any;
|
|
981
|
+
const localVarQueryParameter = {} as any;
|
|
982
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
if (name !== undefined) {
|
|
986
|
+
localVarFormParams.append('name', name as any);
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
if (slug !== undefined) {
|
|
990
|
+
localVarFormParams.append('slug', slug as any);
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
if (type !== undefined) {
|
|
994
|
+
localVarFormParams.append('type', type as any);
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
999
|
+
|
|
1000
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1002
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1003
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1004
|
+
|
|
1005
|
+
return {
|
|
1006
|
+
url: toPathString(localVarUrlObj),
|
|
1007
|
+
options: localVarRequestOptions,
|
|
1008
|
+
};
|
|
1009
|
+
},
|
|
1010
|
+
}
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* AmenitiesApi - functional programming interface
|
|
1015
|
+
* @export
|
|
1016
|
+
*/
|
|
1017
|
+
export const AmenitiesApiFp = function(configuration?: Configuration) {
|
|
1018
|
+
const localVarAxiosParamCreator = AmenitiesApiAxiosParamCreator(configuration)
|
|
1019
|
+
return {
|
|
1020
|
+
/**
|
|
1021
|
+
*
|
|
1022
|
+
* @param {string} [name]
|
|
1023
|
+
* @param {string} [slug]
|
|
1024
|
+
* @param {AmenitiesControllerCreateTypeEnum} [type]
|
|
1025
|
+
* @param {File} [icon]
|
|
1026
|
+
* @param {*} [options] Override http request option.
|
|
1027
|
+
* @throws {RequiredError}
|
|
1028
|
+
*/
|
|
1029
|
+
async amenitiesControllerCreate(name?: string, slug?: string, type?: AmenitiesControllerCreateTypeEnum, icon?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1030
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerCreate(name, slug, type, icon, options);
|
|
1031
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1032
|
+
const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
1033
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1034
|
+
},
|
|
1035
|
+
/**
|
|
1036
|
+
*
|
|
1037
|
+
* @param {number} [page]
|
|
1038
|
+
* @param {number} [pageSize]
|
|
1039
|
+
* @param {string} [filters] JSON string
|
|
1040
|
+
* @param {string} [sort] JSON string
|
|
1041
|
+
* @param {*} [options] Override http request option.
|
|
1042
|
+
* @throws {RequiredError}
|
|
1043
|
+
*/
|
|
1044
|
+
async amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1045
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerFindAll(page, pageSize, filters, sort, options);
|
|
1046
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1047
|
+
const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerFindAll']?.[localVarOperationServerIndex]?.url;
|
|
1048
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1049
|
+
},
|
|
1050
|
+
/**
|
|
1051
|
+
*
|
|
1052
|
+
* @param {string} id
|
|
1053
|
+
* @param {*} [options] Override http request option.
|
|
1054
|
+
* @throws {RequiredError}
|
|
1055
|
+
*/
|
|
1056
|
+
async amenitiesControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1057
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerFindOne(id, options);
|
|
1058
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1059
|
+
const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerFindOne']?.[localVarOperationServerIndex]?.url;
|
|
1060
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1061
|
+
},
|
|
1062
|
+
/**
|
|
1063
|
+
*
|
|
1064
|
+
* @param {string} id
|
|
1065
|
+
* @param {*} [options] Override http request option.
|
|
1066
|
+
* @throws {RequiredError}
|
|
1067
|
+
*/
|
|
1068
|
+
async amenitiesControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1069
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerRemove(id, options);
|
|
1070
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1071
|
+
const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerRemove']?.[localVarOperationServerIndex]?.url;
|
|
1072
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1073
|
+
},
|
|
1074
|
+
/**
|
|
1075
|
+
*
|
|
1076
|
+
* @param {string} id
|
|
1077
|
+
* @param {string} [name] The name of the amenity
|
|
1078
|
+
* @param {string} [slug] URL-friendly version of the name (lowercase, hyphenated)
|
|
1079
|
+
* @param {AmenitiesControllerUpdateTypeEnum} [type] Type of amenity (ROOM, PROPERTY, or SERVICE)
|
|
1080
|
+
* @param {*} [options] Override http request option.
|
|
1081
|
+
* @throws {RequiredError}
|
|
1082
|
+
*/
|
|
1083
|
+
async amenitiesControllerUpdate(id: string, name?: string, slug?: string, type?: AmenitiesControllerUpdateTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1084
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.amenitiesControllerUpdate(id, name, slug, type, options);
|
|
1085
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1086
|
+
const localVarOperationServerBasePath = operationServerMap['AmenitiesApi.amenitiesControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
1087
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1088
|
+
},
|
|
1089
|
+
}
|
|
1090
|
+
};
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* AmenitiesApi - factory interface
|
|
1094
|
+
* @export
|
|
1095
|
+
*/
|
|
1096
|
+
export const AmenitiesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1097
|
+
const localVarFp = AmenitiesApiFp(configuration)
|
|
1098
|
+
return {
|
|
1099
|
+
/**
|
|
1100
|
+
*
|
|
1101
|
+
* @param {string} [name]
|
|
1102
|
+
* @param {string} [slug]
|
|
1103
|
+
* @param {AmenitiesControllerCreateTypeEnum} [type]
|
|
1104
|
+
* @param {File} [icon]
|
|
1105
|
+
* @param {*} [options] Override http request option.
|
|
1106
|
+
* @throws {RequiredError}
|
|
1107
|
+
*/
|
|
1108
|
+
amenitiesControllerCreate(name?: string, slug?: string, type?: AmenitiesControllerCreateTypeEnum, icon?: File, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1109
|
+
return localVarFp.amenitiesControllerCreate(name, slug, type, icon, options).then((request) => request(axios, basePath));
|
|
1110
|
+
},
|
|
1111
|
+
/**
|
|
1112
|
+
*
|
|
1113
|
+
* @param {number} [page]
|
|
1114
|
+
* @param {number} [pageSize]
|
|
1115
|
+
* @param {string} [filters] JSON string
|
|
1116
|
+
* @param {string} [sort] JSON string
|
|
1117
|
+
* @param {*} [options] Override http request option.
|
|
1118
|
+
* @throws {RequiredError}
|
|
1119
|
+
*/
|
|
1120
|
+
amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1121
|
+
return localVarFp.amenitiesControllerFindAll(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
|
|
1122
|
+
},
|
|
1123
|
+
/**
|
|
1124
|
+
*
|
|
1125
|
+
* @param {string} id
|
|
1126
|
+
* @param {*} [options] Override http request option.
|
|
1127
|
+
* @throws {RequiredError}
|
|
1128
|
+
*/
|
|
1129
|
+
amenitiesControllerFindOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1130
|
+
return localVarFp.amenitiesControllerFindOne(id, options).then((request) => request(axios, basePath));
|
|
1131
|
+
},
|
|
1132
|
+
/**
|
|
1133
|
+
*
|
|
1134
|
+
* @param {string} id
|
|
1135
|
+
* @param {*} [options] Override http request option.
|
|
1136
|
+
* @throws {RequiredError}
|
|
1137
|
+
*/
|
|
1138
|
+
amenitiesControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1139
|
+
return localVarFp.amenitiesControllerRemove(id, options).then((request) => request(axios, basePath));
|
|
1140
|
+
},
|
|
1141
|
+
/**
|
|
1142
|
+
*
|
|
1143
|
+
* @param {string} id
|
|
1144
|
+
* @param {string} [name] The name of the amenity
|
|
1145
|
+
* @param {string} [slug] URL-friendly version of the name (lowercase, hyphenated)
|
|
1146
|
+
* @param {AmenitiesControllerUpdateTypeEnum} [type] Type of amenity (ROOM, PROPERTY, or SERVICE)
|
|
1147
|
+
* @param {*} [options] Override http request option.
|
|
1148
|
+
* @throws {RequiredError}
|
|
1149
|
+
*/
|
|
1150
|
+
amenitiesControllerUpdate(id: string, name?: string, slug?: string, type?: AmenitiesControllerUpdateTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1151
|
+
return localVarFp.amenitiesControllerUpdate(id, name, slug, type, options).then((request) => request(axios, basePath));
|
|
1152
|
+
},
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* AmenitiesApi - object-oriented interface
|
|
1158
|
+
* @export
|
|
1159
|
+
* @class AmenitiesApi
|
|
1160
|
+
* @extends {BaseAPI}
|
|
1161
|
+
*/
|
|
1162
|
+
export class AmenitiesApi extends BaseAPI {
|
|
1163
|
+
/**
|
|
1164
|
+
*
|
|
1165
|
+
* @param {string} [name]
|
|
1166
|
+
* @param {string} [slug]
|
|
1167
|
+
* @param {AmenitiesControllerCreateTypeEnum} [type]
|
|
1168
|
+
* @param {File} [icon]
|
|
1169
|
+
* @param {*} [options] Override http request option.
|
|
1170
|
+
* @throws {RequiredError}
|
|
1171
|
+
* @memberof AmenitiesApi
|
|
1172
|
+
*/
|
|
1173
|
+
public amenitiesControllerCreate(name?: string, slug?: string, type?: AmenitiesControllerCreateTypeEnum, icon?: File, options?: RawAxiosRequestConfig) {
|
|
1174
|
+
return AmenitiesApiFp(this.configuration).amenitiesControllerCreate(name, slug, type, icon, options).then((request) => request(this.axios, this.basePath));
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
*
|
|
1179
|
+
* @param {number} [page]
|
|
1180
|
+
* @param {number} [pageSize]
|
|
1181
|
+
* @param {string} [filters] JSON string
|
|
1182
|
+
* @param {string} [sort] JSON string
|
|
1183
|
+
* @param {*} [options] Override http request option.
|
|
1184
|
+
* @throws {RequiredError}
|
|
1185
|
+
* @memberof AmenitiesApi
|
|
1186
|
+
*/
|
|
1187
|
+
public amenitiesControllerFindAll(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
|
|
1188
|
+
return AmenitiesApiFp(this.configuration).amenitiesControllerFindAll(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
*
|
|
1193
|
+
* @param {string} id
|
|
1194
|
+
* @param {*} [options] Override http request option.
|
|
1195
|
+
* @throws {RequiredError}
|
|
1196
|
+
* @memberof AmenitiesApi
|
|
1197
|
+
*/
|
|
1198
|
+
public amenitiesControllerFindOne(id: string, options?: RawAxiosRequestConfig) {
|
|
1199
|
+
return AmenitiesApiFp(this.configuration).amenitiesControllerFindOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
*
|
|
1204
|
+
* @param {string} id
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
* @memberof AmenitiesApi
|
|
1208
|
+
*/
|
|
1209
|
+
public amenitiesControllerRemove(id: string, options?: RawAxiosRequestConfig) {
|
|
1210
|
+
return AmenitiesApiFp(this.configuration).amenitiesControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
*
|
|
1215
|
+
* @param {string} id
|
|
1216
|
+
* @param {string} [name] The name of the amenity
|
|
1217
|
+
* @param {string} [slug] URL-friendly version of the name (lowercase, hyphenated)
|
|
1218
|
+
* @param {AmenitiesControllerUpdateTypeEnum} [type] Type of amenity (ROOM, PROPERTY, or SERVICE)
|
|
1219
|
+
* @param {*} [options] Override http request option.
|
|
1220
|
+
* @throws {RequiredError}
|
|
1221
|
+
* @memberof AmenitiesApi
|
|
1222
|
+
*/
|
|
1223
|
+
public amenitiesControllerUpdate(id: string, name?: string, slug?: string, type?: AmenitiesControllerUpdateTypeEnum, options?: RawAxiosRequestConfig) {
|
|
1224
|
+
return AmenitiesApiFp(this.configuration).amenitiesControllerUpdate(id, name, slug, type, options).then((request) => request(this.axios, this.basePath));
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* @export
|
|
1230
|
+
*/
|
|
1231
|
+
export const AmenitiesControllerCreateTypeEnum = {
|
|
1232
|
+
Room: 'ROOM',
|
|
1233
|
+
Property: 'PROPERTY',
|
|
1234
|
+
Service: 'SERVICE'
|
|
1235
|
+
} as const;
|
|
1236
|
+
export type AmenitiesControllerCreateTypeEnum = typeof AmenitiesControllerCreateTypeEnum[keyof typeof AmenitiesControllerCreateTypeEnum];
|
|
1237
|
+
/**
|
|
1238
|
+
* @export
|
|
1239
|
+
*/
|
|
1240
|
+
export const AmenitiesControllerUpdateTypeEnum = {
|
|
1241
|
+
Room: 'ROOM',
|
|
1242
|
+
Property: 'PROPERTY',
|
|
1243
|
+
Service: 'SERVICE'
|
|
1244
|
+
} as const;
|
|
1245
|
+
export type AmenitiesControllerUpdateTypeEnum = typeof AmenitiesControllerUpdateTypeEnum[keyof typeof AmenitiesControllerUpdateTypeEnum];
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* AppApi - axios parameter creator
|
|
1250
|
+
* @export
|
|
1251
|
+
*/
|
|
1252
|
+
export const AppApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1253
|
+
return {
|
|
1254
|
+
/**
|
|
1255
|
+
*
|
|
1256
|
+
* @param {*} [options] Override http request option.
|
|
1257
|
+
* @throws {RequiredError}
|
|
1258
|
+
*/
|
|
1259
|
+
appControllerGetHello: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1260
|
+
const localVarPath = `/`;
|
|
1261
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1262
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1263
|
+
let baseOptions;
|
|
1264
|
+
if (configuration) {
|
|
1265
|
+
baseOptions = configuration.baseOptions;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1269
|
+
const localVarHeaderParameter = {} as any;
|
|
1270
|
+
const localVarQueryParameter = {} as any;
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1276
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1277
|
+
|
|
1278
|
+
return {
|
|
1279
|
+
url: toPathString(localVarUrlObj),
|
|
1280
|
+
options: localVarRequestOptions,
|
|
1281
|
+
};
|
|
1282
|
+
},
|
|
1283
|
+
}
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* AppApi - functional programming interface
|
|
1288
|
+
* @export
|
|
1289
|
+
*/
|
|
1290
|
+
export const AppApiFp = function(configuration?: Configuration) {
|
|
1291
|
+
const localVarAxiosParamCreator = AppApiAxiosParamCreator(configuration)
|
|
1292
|
+
return {
|
|
1293
|
+
/**
|
|
1294
|
+
*
|
|
1295
|
+
* @param {*} [options] Override http request option.
|
|
1296
|
+
* @throws {RequiredError}
|
|
1297
|
+
*/
|
|
1298
|
+
async appControllerGetHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.appControllerGetHello(options);
|
|
1300
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1301
|
+
const localVarOperationServerBasePath = operationServerMap['AppApi.appControllerGetHello']?.[localVarOperationServerIndex]?.url;
|
|
1302
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1303
|
+
},
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* AppApi - factory interface
|
|
1309
|
+
* @export
|
|
1310
|
+
*/
|
|
1311
|
+
export const AppApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1312
|
+
const localVarFp = AppApiFp(configuration)
|
|
1313
|
+
return {
|
|
1314
|
+
/**
|
|
1315
|
+
*
|
|
1316
|
+
* @param {*} [options] Override http request option.
|
|
1317
|
+
* @throws {RequiredError}
|
|
1318
|
+
*/
|
|
1319
|
+
appControllerGetHello(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1320
|
+
return localVarFp.appControllerGetHello(options).then((request) => request(axios, basePath));
|
|
1321
|
+
},
|
|
1322
|
+
};
|
|
1323
|
+
};
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* AppApi - object-oriented interface
|
|
1327
|
+
* @export
|
|
1328
|
+
* @class AppApi
|
|
1329
|
+
* @extends {BaseAPI}
|
|
1330
|
+
*/
|
|
1331
|
+
export class AppApi extends BaseAPI {
|
|
1332
|
+
/**
|
|
1333
|
+
*
|
|
1334
|
+
* @param {*} [options] Override http request option.
|
|
1335
|
+
* @throws {RequiredError}
|
|
1336
|
+
* @memberof AppApi
|
|
1337
|
+
*/
|
|
1338
|
+
public appControllerGetHello(options?: RawAxiosRequestConfig) {
|
|
1339
|
+
return AppApiFp(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* AuthApi - axios parameter creator
|
|
1347
|
+
* @export
|
|
1348
|
+
*/
|
|
1349
|
+
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1350
|
+
return {
|
|
1351
|
+
/**
|
|
1352
|
+
*
|
|
1353
|
+
* @param {*} [options] Override http request option.
|
|
1354
|
+
* @throws {RequiredError}
|
|
1355
|
+
*/
|
|
1356
|
+
authControllerGetActiveSessions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1357
|
+
const localVarPath = `/api/auth/sessions`;
|
|
1358
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1359
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1360
|
+
let baseOptions;
|
|
1361
|
+
if (configuration) {
|
|
1362
|
+
baseOptions = configuration.baseOptions;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1366
|
+
const localVarHeaderParameter = {} as any;
|
|
1367
|
+
const localVarQueryParameter = {} as any;
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1372
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1373
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1374
|
+
|
|
1375
|
+
return {
|
|
1376
|
+
url: toPathString(localVarUrlObj),
|
|
1377
|
+
options: localVarRequestOptions,
|
|
1378
|
+
};
|
|
1379
|
+
},
|
|
1380
|
+
/**
|
|
1381
|
+
*
|
|
1382
|
+
* @param {string} userId
|
|
1383
|
+
* @param {*} [options] Override http request option.
|
|
1384
|
+
* @throws {RequiredError}
|
|
1385
|
+
*/
|
|
1386
|
+
authControllerGetSessionAnalytics: async (userId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1387
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1388
|
+
assertParamExists('authControllerGetSessionAnalytics', 'userId', userId)
|
|
1389
|
+
const localVarPath = `/api/auth/sessions/analytics`;
|
|
1390
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1391
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1392
|
+
let baseOptions;
|
|
1393
|
+
if (configuration) {
|
|
1394
|
+
baseOptions = configuration.baseOptions;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1398
|
+
const localVarHeaderParameter = {} as any;
|
|
1399
|
+
const localVarQueryParameter = {} as any;
|
|
1400
|
+
|
|
1401
|
+
if (userId !== undefined) {
|
|
1402
|
+
localVarQueryParameter['userId'] = userId;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1408
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1409
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1410
|
+
|
|
1411
|
+
return {
|
|
1412
|
+
url: toPathString(localVarUrlObj),
|
|
1413
|
+
options: localVarRequestOptions,
|
|
1414
|
+
};
|
|
1415
|
+
},
|
|
1416
|
+
/**
|
|
1417
|
+
*
|
|
1418
|
+
* @param {string} userId
|
|
1419
|
+
* @param {*} [options] Override http request option.
|
|
1420
|
+
* @throws {RequiredError}
|
|
1421
|
+
*/
|
|
1422
|
+
authControllerGetSuspiciousActivities: async (userId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1423
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1424
|
+
assertParamExists('authControllerGetSuspiciousActivities', 'userId', userId)
|
|
1425
|
+
const localVarPath = `/api/auth/users/{userId}/suspicious-activities`
|
|
1426
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
1427
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1428
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1429
|
+
let baseOptions;
|
|
1430
|
+
if (configuration) {
|
|
1431
|
+
baseOptions = configuration.baseOptions;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1435
|
+
const localVarHeaderParameter = {} as any;
|
|
1436
|
+
const localVarQueryParameter = {} as any;
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1441
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1442
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1443
|
+
|
|
1444
|
+
return {
|
|
1445
|
+
url: toPathString(localVarUrlObj),
|
|
1446
|
+
options: localVarRequestOptions,
|
|
1447
|
+
};
|
|
1448
|
+
},
|
|
1449
|
+
/**
|
|
1450
|
+
*
|
|
1451
|
+
* @summary Initiate forgot password process
|
|
1452
|
+
* @param {object} body
|
|
1453
|
+
* @param {*} [options] Override http request option.
|
|
1454
|
+
* @throws {RequiredError}
|
|
1455
|
+
*/
|
|
1456
|
+
authControllerInitiateForgotPassword: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1457
|
+
// verify required parameter 'body' is not null or undefined
|
|
1458
|
+
assertParamExists('authControllerInitiateForgotPassword', 'body', body)
|
|
1459
|
+
const localVarPath = `/api/auth/forgot-password/email/initiate`;
|
|
1460
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1461
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1462
|
+
let baseOptions;
|
|
1463
|
+
if (configuration) {
|
|
1464
|
+
baseOptions = configuration.baseOptions;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1468
|
+
const localVarHeaderParameter = {} as any;
|
|
1469
|
+
const localVarQueryParameter = {} as any;
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1474
|
+
|
|
1475
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1476
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1477
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1478
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1479
|
+
|
|
1480
|
+
return {
|
|
1481
|
+
url: toPathString(localVarUrlObj),
|
|
1482
|
+
options: localVarRequestOptions,
|
|
1483
|
+
};
|
|
1484
|
+
},
|
|
1485
|
+
/**
|
|
1486
|
+
*
|
|
1487
|
+
* @param {string} userAgent
|
|
1488
|
+
* @param {LoginDto} loginDto
|
|
1489
|
+
* @param {*} [options] Override http request option.
|
|
1490
|
+
* @throws {RequiredError}
|
|
1491
|
+
*/
|
|
1492
|
+
authControllerLogin: async (userAgent: string, loginDto: LoginDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1493
|
+
// verify required parameter 'userAgent' is not null or undefined
|
|
1494
|
+
assertParamExists('authControllerLogin', 'userAgent', userAgent)
|
|
1495
|
+
// verify required parameter 'loginDto' is not null or undefined
|
|
1496
|
+
assertParamExists('authControllerLogin', 'loginDto', loginDto)
|
|
1497
|
+
const localVarPath = `/api/auth/login`;
|
|
1498
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1499
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1500
|
+
let baseOptions;
|
|
1501
|
+
if (configuration) {
|
|
1502
|
+
baseOptions = configuration.baseOptions;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1506
|
+
const localVarHeaderParameter = {} as any;
|
|
1507
|
+
const localVarQueryParameter = {} as any;
|
|
1508
|
+
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1512
|
+
|
|
1513
|
+
if (userAgent != null) {
|
|
1514
|
+
localVarHeaderParameter['user-agent'] = String(userAgent);
|
|
1515
|
+
}
|
|
1516
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1517
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1518
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1519
|
+
localVarRequestOptions.data = serializeDataIfNeeded(loginDto, localVarRequestOptions, configuration)
|
|
1520
|
+
|
|
1521
|
+
return {
|
|
1522
|
+
url: toPathString(localVarUrlObj),
|
|
1523
|
+
options: localVarRequestOptions,
|
|
1524
|
+
};
|
|
1525
|
+
},
|
|
1526
|
+
/**
|
|
1527
|
+
*
|
|
1528
|
+
* @param {*} [options] Override http request option.
|
|
1529
|
+
* @throws {RequiredError}
|
|
1530
|
+
*/
|
|
1531
|
+
authControllerLogout: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1532
|
+
const localVarPath = `/api/auth/logout`;
|
|
1533
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1534
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1535
|
+
let baseOptions;
|
|
1536
|
+
if (configuration) {
|
|
1537
|
+
baseOptions = configuration.baseOptions;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1541
|
+
const localVarHeaderParameter = {} as any;
|
|
1542
|
+
const localVarQueryParameter = {} as any;
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
|
|
1546
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1547
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1548
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1549
|
+
|
|
1550
|
+
return {
|
|
1551
|
+
url: toPathString(localVarUrlObj),
|
|
1552
|
+
options: localVarRequestOptions,
|
|
1553
|
+
};
|
|
1554
|
+
},
|
|
1555
|
+
/**
|
|
1556
|
+
*
|
|
1557
|
+
* @param {*} [options] Override http request option.
|
|
1558
|
+
* @throws {RequiredError}
|
|
1559
|
+
*/
|
|
1560
|
+
authControllerRefreshTokens: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1561
|
+
const localVarPath = `/api/auth/refresh`;
|
|
1562
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1563
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1564
|
+
let baseOptions;
|
|
1565
|
+
if (configuration) {
|
|
1566
|
+
baseOptions = configuration.baseOptions;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1570
|
+
const localVarHeaderParameter = {} as any;
|
|
1571
|
+
const localVarQueryParameter = {} as any;
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1576
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1577
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1578
|
+
|
|
1579
|
+
return {
|
|
1580
|
+
url: toPathString(localVarUrlObj),
|
|
1581
|
+
options: localVarRequestOptions,
|
|
1582
|
+
};
|
|
1583
|
+
},
|
|
1584
|
+
/**
|
|
1585
|
+
*
|
|
1586
|
+
* @param {CreateUserDto} createUserDto
|
|
1587
|
+
* @param {*} [options] Override http request option.
|
|
1588
|
+
* @throws {RequiredError}
|
|
1589
|
+
*/
|
|
1590
|
+
authControllerRegister: async (createUserDto: CreateUserDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1591
|
+
// verify required parameter 'createUserDto' is not null or undefined
|
|
1592
|
+
assertParamExists('authControllerRegister', 'createUserDto', createUserDto)
|
|
1593
|
+
const localVarPath = `/api/auth/register`;
|
|
1594
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1595
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1596
|
+
let baseOptions;
|
|
1597
|
+
if (configuration) {
|
|
1598
|
+
baseOptions = configuration.baseOptions;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1602
|
+
const localVarHeaderParameter = {} as any;
|
|
1603
|
+
const localVarQueryParameter = {} as any;
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1608
|
+
|
|
1609
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1610
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1611
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1612
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
|
|
1613
|
+
|
|
1614
|
+
return {
|
|
1615
|
+
url: toPathString(localVarUrlObj),
|
|
1616
|
+
options: localVarRequestOptions,
|
|
1617
|
+
};
|
|
1618
|
+
},
|
|
1619
|
+
/**
|
|
1620
|
+
*
|
|
1621
|
+
* @summary Reset password using OTP
|
|
1622
|
+
* @param {object} body
|
|
1623
|
+
* @param {*} [options] Override http request option.
|
|
1624
|
+
* @throws {RequiredError}
|
|
1625
|
+
*/
|
|
1626
|
+
authControllerResetPasswordWithOTP: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1627
|
+
// verify required parameter 'body' is not null or undefined
|
|
1628
|
+
assertParamExists('authControllerResetPasswordWithOTP', 'body', body)
|
|
1629
|
+
const localVarPath = `/api/auth/forgot-password/email/reset`;
|
|
1630
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1631
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1632
|
+
let baseOptions;
|
|
1633
|
+
if (configuration) {
|
|
1634
|
+
baseOptions = configuration.baseOptions;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1638
|
+
const localVarHeaderParameter = {} as any;
|
|
1639
|
+
const localVarQueryParameter = {} as any;
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1644
|
+
|
|
1645
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1646
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1647
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1648
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1649
|
+
|
|
1650
|
+
return {
|
|
1651
|
+
url: toPathString(localVarUrlObj),
|
|
1652
|
+
options: localVarRequestOptions,
|
|
1653
|
+
};
|
|
1654
|
+
},
|
|
1655
|
+
/**
|
|
1656
|
+
*
|
|
1657
|
+
* @param {string} sessionId
|
|
1658
|
+
* @param {*} [options] Override http request option.
|
|
1659
|
+
* @throws {RequiredError}
|
|
1660
|
+
*/
|
|
1661
|
+
authControllerRevokeSession: async (sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1662
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
1663
|
+
assertParamExists('authControllerRevokeSession', 'sessionId', sessionId)
|
|
1664
|
+
const localVarPath = `/api/auth/sessions/{sessionId}/revoke`
|
|
1665
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
1666
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1667
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1668
|
+
let baseOptions;
|
|
1669
|
+
if (configuration) {
|
|
1670
|
+
baseOptions = configuration.baseOptions;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1674
|
+
const localVarHeaderParameter = {} as any;
|
|
1675
|
+
const localVarQueryParameter = {} as any;
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1681
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1682
|
+
|
|
1683
|
+
return {
|
|
1684
|
+
url: toPathString(localVarUrlObj),
|
|
1685
|
+
options: localVarRequestOptions,
|
|
1686
|
+
};
|
|
1687
|
+
},
|
|
1688
|
+
/**
|
|
1689
|
+
*
|
|
1690
|
+
* @summary Verify email with OTP code
|
|
1691
|
+
* @param {VerifyEmailDto} verifyEmailDto
|
|
1692
|
+
* @param {*} [options] Override http request option.
|
|
1693
|
+
* @throws {RequiredError}
|
|
1694
|
+
*/
|
|
1695
|
+
authControllerVerifyEmail: async (verifyEmailDto: VerifyEmailDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1696
|
+
// verify required parameter 'verifyEmailDto' is not null or undefined
|
|
1697
|
+
assertParamExists('authControllerVerifyEmail', 'verifyEmailDto', verifyEmailDto)
|
|
1698
|
+
const localVarPath = `/api/auth/verify-email`;
|
|
1699
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1700
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1701
|
+
let baseOptions;
|
|
1702
|
+
if (configuration) {
|
|
1703
|
+
baseOptions = configuration.baseOptions;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1707
|
+
const localVarHeaderParameter = {} as any;
|
|
1708
|
+
const localVarQueryParameter = {} as any;
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1713
|
+
|
|
1714
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1715
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1716
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1717
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailDto, localVarRequestOptions, configuration)
|
|
1718
|
+
|
|
1719
|
+
return {
|
|
1720
|
+
url: toPathString(localVarUrlObj),
|
|
1721
|
+
options: localVarRequestOptions,
|
|
1722
|
+
};
|
|
1723
|
+
},
|
|
1724
|
+
}
|
|
1725
|
+
};
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* AuthApi - functional programming interface
|
|
1729
|
+
* @export
|
|
1730
|
+
*/
|
|
1731
|
+
export const AuthApiFp = function(configuration?: Configuration) {
|
|
1732
|
+
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
|
|
1733
|
+
return {
|
|
1734
|
+
/**
|
|
1735
|
+
*
|
|
1736
|
+
* @param {*} [options] Override http request option.
|
|
1737
|
+
* @throws {RequiredError}
|
|
1738
|
+
*/
|
|
1739
|
+
async authControllerGetActiveSessions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1740
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGetActiveSessions(options);
|
|
1741
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1742
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerGetActiveSessions']?.[localVarOperationServerIndex]?.url;
|
|
1743
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1744
|
+
},
|
|
1745
|
+
/**
|
|
1746
|
+
*
|
|
1747
|
+
* @param {string} userId
|
|
1748
|
+
* @param {*} [options] Override http request option.
|
|
1749
|
+
* @throws {RequiredError}
|
|
1750
|
+
*/
|
|
1751
|
+
async authControllerGetSessionAnalytics(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1752
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGetSessionAnalytics(userId, options);
|
|
1753
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1754
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerGetSessionAnalytics']?.[localVarOperationServerIndex]?.url;
|
|
1755
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1756
|
+
},
|
|
1757
|
+
/**
|
|
1758
|
+
*
|
|
1759
|
+
* @param {string} userId
|
|
1760
|
+
* @param {*} [options] Override http request option.
|
|
1761
|
+
* @throws {RequiredError}
|
|
1762
|
+
*/
|
|
1763
|
+
async authControllerGetSuspiciousActivities(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1764
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGetSuspiciousActivities(userId, options);
|
|
1765
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1766
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerGetSuspiciousActivities']?.[localVarOperationServerIndex]?.url;
|
|
1767
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1768
|
+
},
|
|
1769
|
+
/**
|
|
1770
|
+
*
|
|
1771
|
+
* @summary Initiate forgot password process
|
|
1772
|
+
* @param {object} body
|
|
1773
|
+
* @param {*} [options] Override http request option.
|
|
1774
|
+
* @throws {RequiredError}
|
|
1775
|
+
*/
|
|
1776
|
+
async authControllerInitiateForgotPassword(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1777
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerInitiateForgotPassword(body, options);
|
|
1778
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1779
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerInitiateForgotPassword']?.[localVarOperationServerIndex]?.url;
|
|
1780
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1781
|
+
},
|
|
1782
|
+
/**
|
|
1783
|
+
*
|
|
1784
|
+
* @param {string} userAgent
|
|
1785
|
+
* @param {LoginDto} loginDto
|
|
1786
|
+
* @param {*} [options] Override http request option.
|
|
1787
|
+
* @throws {RequiredError}
|
|
1788
|
+
*/
|
|
1789
|
+
async authControllerLogin(userAgent: string, loginDto: LoginDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
|
|
1790
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogin(userAgent, loginDto, options);
|
|
1791
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1792
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerLogin']?.[localVarOperationServerIndex]?.url;
|
|
1793
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1794
|
+
},
|
|
1795
|
+
/**
|
|
1796
|
+
*
|
|
1797
|
+
* @param {*} [options] Override http request option.
|
|
1798
|
+
* @throws {RequiredError}
|
|
1799
|
+
*/
|
|
1800
|
+
async authControllerLogout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1801
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogout(options);
|
|
1802
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1803
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerLogout']?.[localVarOperationServerIndex]?.url;
|
|
1804
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1805
|
+
},
|
|
1806
|
+
/**
|
|
1807
|
+
*
|
|
1808
|
+
* @param {*} [options] Override http request option.
|
|
1809
|
+
* @throws {RequiredError}
|
|
1810
|
+
*/
|
|
1811
|
+
async authControllerRefreshTokens(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1812
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerRefreshTokens(options);
|
|
1813
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1814
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerRefreshTokens']?.[localVarOperationServerIndex]?.url;
|
|
1815
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1816
|
+
},
|
|
1817
|
+
/**
|
|
1818
|
+
*
|
|
1819
|
+
* @param {CreateUserDto} createUserDto
|
|
1820
|
+
* @param {*} [options] Override http request option.
|
|
1821
|
+
* @throws {RequiredError}
|
|
1822
|
+
*/
|
|
1823
|
+
async authControllerRegister(createUserDto: CreateUserDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterResponseDto>> {
|
|
1824
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerRegister(createUserDto, options);
|
|
1825
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1826
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerRegister']?.[localVarOperationServerIndex]?.url;
|
|
1827
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1828
|
+
},
|
|
1829
|
+
/**
|
|
1830
|
+
*
|
|
1831
|
+
* @summary Reset password using OTP
|
|
1832
|
+
* @param {object} body
|
|
1833
|
+
* @param {*} [options] Override http request option.
|
|
1834
|
+
* @throws {RequiredError}
|
|
1835
|
+
*/
|
|
1836
|
+
async authControllerResetPasswordWithOTP(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1837
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResetPasswordWithOTP(body, options);
|
|
1838
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1839
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResetPasswordWithOTP']?.[localVarOperationServerIndex]?.url;
|
|
1840
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1841
|
+
},
|
|
1842
|
+
/**
|
|
1843
|
+
*
|
|
1844
|
+
* @param {string} sessionId
|
|
1845
|
+
* @param {*} [options] Override http request option.
|
|
1846
|
+
* @throws {RequiredError}
|
|
1847
|
+
*/
|
|
1848
|
+
async authControllerRevokeSession(sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1849
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerRevokeSession(sessionId, options);
|
|
1850
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1851
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerRevokeSession']?.[localVarOperationServerIndex]?.url;
|
|
1852
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1853
|
+
},
|
|
1854
|
+
/**
|
|
1855
|
+
*
|
|
1856
|
+
* @summary Verify email with OTP code
|
|
1857
|
+
* @param {VerifyEmailDto} verifyEmailDto
|
|
1858
|
+
* @param {*} [options] Override http request option.
|
|
1859
|
+
* @throws {RequiredError}
|
|
1860
|
+
*/
|
|
1861
|
+
async authControllerVerifyEmail(verifyEmailDto: VerifyEmailDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1862
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerVerifyEmail(verifyEmailDto, options);
|
|
1863
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1864
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerVerifyEmail']?.[localVarOperationServerIndex]?.url;
|
|
1865
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1866
|
+
},
|
|
1867
|
+
}
|
|
1868
|
+
};
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* AuthApi - factory interface
|
|
1872
|
+
* @export
|
|
1873
|
+
*/
|
|
1874
|
+
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1875
|
+
const localVarFp = AuthApiFp(configuration)
|
|
1876
|
+
return {
|
|
1877
|
+
/**
|
|
1878
|
+
*
|
|
1879
|
+
* @param {*} [options] Override http request option.
|
|
1880
|
+
* @throws {RequiredError}
|
|
1881
|
+
*/
|
|
1882
|
+
authControllerGetActiveSessions(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1883
|
+
return localVarFp.authControllerGetActiveSessions(options).then((request) => request(axios, basePath));
|
|
1884
|
+
},
|
|
1885
|
+
/**
|
|
1886
|
+
*
|
|
1887
|
+
* @param {string} userId
|
|
1888
|
+
* @param {*} [options] Override http request option.
|
|
1889
|
+
* @throws {RequiredError}
|
|
1890
|
+
*/
|
|
1891
|
+
authControllerGetSessionAnalytics(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1892
|
+
return localVarFp.authControllerGetSessionAnalytics(userId, options).then((request) => request(axios, basePath));
|
|
1893
|
+
},
|
|
1894
|
+
/**
|
|
1895
|
+
*
|
|
1896
|
+
* @param {string} userId
|
|
1897
|
+
* @param {*} [options] Override http request option.
|
|
1898
|
+
* @throws {RequiredError}
|
|
1899
|
+
*/
|
|
1900
|
+
authControllerGetSuspiciousActivities(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1901
|
+
return localVarFp.authControllerGetSuspiciousActivities(userId, options).then((request) => request(axios, basePath));
|
|
1902
|
+
},
|
|
1903
|
+
/**
|
|
1904
|
+
*
|
|
1905
|
+
* @summary Initiate forgot password process
|
|
1906
|
+
* @param {object} body
|
|
1907
|
+
* @param {*} [options] Override http request option.
|
|
1908
|
+
* @throws {RequiredError}
|
|
1909
|
+
*/
|
|
1910
|
+
authControllerInitiateForgotPassword(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1911
|
+
return localVarFp.authControllerInitiateForgotPassword(body, options).then((request) => request(axios, basePath));
|
|
1912
|
+
},
|
|
1913
|
+
/**
|
|
1914
|
+
*
|
|
1915
|
+
* @param {string} userAgent
|
|
1916
|
+
* @param {LoginDto} loginDto
|
|
1917
|
+
* @param {*} [options] Override http request option.
|
|
1918
|
+
* @throws {RequiredError}
|
|
1919
|
+
*/
|
|
1920
|
+
authControllerLogin(userAgent: string, loginDto: LoginDto, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponseDto> {
|
|
1921
|
+
return localVarFp.authControllerLogin(userAgent, loginDto, options).then((request) => request(axios, basePath));
|
|
1922
|
+
},
|
|
1923
|
+
/**
|
|
1924
|
+
*
|
|
1925
|
+
* @param {*} [options] Override http request option.
|
|
1926
|
+
* @throws {RequiredError}
|
|
1927
|
+
*/
|
|
1928
|
+
authControllerLogout(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1929
|
+
return localVarFp.authControllerLogout(options).then((request) => request(axios, basePath));
|
|
1930
|
+
},
|
|
1931
|
+
/**
|
|
1932
|
+
*
|
|
1933
|
+
* @param {*} [options] Override http request option.
|
|
1934
|
+
* @throws {RequiredError}
|
|
1935
|
+
*/
|
|
1936
|
+
authControllerRefreshTokens(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1937
|
+
return localVarFp.authControllerRefreshTokens(options).then((request) => request(axios, basePath));
|
|
1938
|
+
},
|
|
1939
|
+
/**
|
|
1940
|
+
*
|
|
1941
|
+
* @param {CreateUserDto} createUserDto
|
|
1942
|
+
* @param {*} [options] Override http request option.
|
|
1943
|
+
* @throws {RequiredError}
|
|
1944
|
+
*/
|
|
1945
|
+
authControllerRegister(createUserDto: CreateUserDto, options?: RawAxiosRequestConfig): AxiosPromise<RegisterResponseDto> {
|
|
1946
|
+
return localVarFp.authControllerRegister(createUserDto, options).then((request) => request(axios, basePath));
|
|
1947
|
+
},
|
|
1948
|
+
/**
|
|
1949
|
+
*
|
|
1950
|
+
* @summary Reset password using OTP
|
|
1951
|
+
* @param {object} body
|
|
1952
|
+
* @param {*} [options] Override http request option.
|
|
1953
|
+
* @throws {RequiredError}
|
|
1954
|
+
*/
|
|
1955
|
+
authControllerResetPasswordWithOTP(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1956
|
+
return localVarFp.authControllerResetPasswordWithOTP(body, options).then((request) => request(axios, basePath));
|
|
1957
|
+
},
|
|
1958
|
+
/**
|
|
1959
|
+
*
|
|
1960
|
+
* @param {string} sessionId
|
|
1961
|
+
* @param {*} [options] Override http request option.
|
|
1962
|
+
* @throws {RequiredError}
|
|
1963
|
+
*/
|
|
1964
|
+
authControllerRevokeSession(sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1965
|
+
return localVarFp.authControllerRevokeSession(sessionId, options).then((request) => request(axios, basePath));
|
|
1966
|
+
},
|
|
1967
|
+
/**
|
|
1968
|
+
*
|
|
1969
|
+
* @summary Verify email with OTP code
|
|
1970
|
+
* @param {VerifyEmailDto} verifyEmailDto
|
|
1971
|
+
* @param {*} [options] Override http request option.
|
|
1972
|
+
* @throws {RequiredError}
|
|
1973
|
+
*/
|
|
1974
|
+
authControllerVerifyEmail(verifyEmailDto: VerifyEmailDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1975
|
+
return localVarFp.authControllerVerifyEmail(verifyEmailDto, options).then((request) => request(axios, basePath));
|
|
1976
|
+
},
|
|
1977
|
+
};
|
|
1978
|
+
};
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* AuthApi - object-oriented interface
|
|
1982
|
+
* @export
|
|
1983
|
+
* @class AuthApi
|
|
1984
|
+
* @extends {BaseAPI}
|
|
1985
|
+
*/
|
|
1986
|
+
export class AuthApi extends BaseAPI {
|
|
1987
|
+
/**
|
|
1988
|
+
*
|
|
1989
|
+
* @param {*} [options] Override http request option.
|
|
1990
|
+
* @throws {RequiredError}
|
|
1991
|
+
* @memberof AuthApi
|
|
1992
|
+
*/
|
|
1993
|
+
public authControllerGetActiveSessions(options?: RawAxiosRequestConfig) {
|
|
1994
|
+
return AuthApiFp(this.configuration).authControllerGetActiveSessions(options).then((request) => request(this.axios, this.basePath));
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
/**
|
|
1998
|
+
*
|
|
1999
|
+
* @param {string} userId
|
|
2000
|
+
* @param {*} [options] Override http request option.
|
|
2001
|
+
* @throws {RequiredError}
|
|
2002
|
+
* @memberof AuthApi
|
|
2003
|
+
*/
|
|
2004
|
+
public authControllerGetSessionAnalytics(userId: string, options?: RawAxiosRequestConfig) {
|
|
2005
|
+
return AuthApiFp(this.configuration).authControllerGetSessionAnalytics(userId, options).then((request) => request(this.axios, this.basePath));
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
*
|
|
2010
|
+
* @param {string} userId
|
|
2011
|
+
* @param {*} [options] Override http request option.
|
|
2012
|
+
* @throws {RequiredError}
|
|
2013
|
+
* @memberof AuthApi
|
|
2014
|
+
*/
|
|
2015
|
+
public authControllerGetSuspiciousActivities(userId: string, options?: RawAxiosRequestConfig) {
|
|
2016
|
+
return AuthApiFp(this.configuration).authControllerGetSuspiciousActivities(userId, options).then((request) => request(this.axios, this.basePath));
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
*
|
|
2021
|
+
* @summary Initiate forgot password process
|
|
2022
|
+
* @param {object} body
|
|
2023
|
+
* @param {*} [options] Override http request option.
|
|
2024
|
+
* @throws {RequiredError}
|
|
2025
|
+
* @memberof AuthApi
|
|
2026
|
+
*/
|
|
2027
|
+
public authControllerInitiateForgotPassword(body: object, options?: RawAxiosRequestConfig) {
|
|
2028
|
+
return AuthApiFp(this.configuration).authControllerInitiateForgotPassword(body, options).then((request) => request(this.axios, this.basePath));
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
*
|
|
2033
|
+
* @param {string} userAgent
|
|
2034
|
+
* @param {LoginDto} loginDto
|
|
2035
|
+
* @param {*} [options] Override http request option.
|
|
2036
|
+
* @throws {RequiredError}
|
|
2037
|
+
* @memberof AuthApi
|
|
2038
|
+
*/
|
|
2039
|
+
public authControllerLogin(userAgent: string, loginDto: LoginDto, options?: RawAxiosRequestConfig) {
|
|
2040
|
+
return AuthApiFp(this.configuration).authControllerLogin(userAgent, loginDto, options).then((request) => request(this.axios, this.basePath));
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
*
|
|
2045
|
+
* @param {*} [options] Override http request option.
|
|
2046
|
+
* @throws {RequiredError}
|
|
2047
|
+
* @memberof AuthApi
|
|
2048
|
+
*/
|
|
2049
|
+
public authControllerLogout(options?: RawAxiosRequestConfig) {
|
|
2050
|
+
return AuthApiFp(this.configuration).authControllerLogout(options).then((request) => request(this.axios, this.basePath));
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
*
|
|
2055
|
+
* @param {*} [options] Override http request option.
|
|
2056
|
+
* @throws {RequiredError}
|
|
2057
|
+
* @memberof AuthApi
|
|
2058
|
+
*/
|
|
2059
|
+
public authControllerRefreshTokens(options?: RawAxiosRequestConfig) {
|
|
2060
|
+
return AuthApiFp(this.configuration).authControllerRefreshTokens(options).then((request) => request(this.axios, this.basePath));
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
*
|
|
2065
|
+
* @param {CreateUserDto} createUserDto
|
|
2066
|
+
* @param {*} [options] Override http request option.
|
|
2067
|
+
* @throws {RequiredError}
|
|
2068
|
+
* @memberof AuthApi
|
|
2069
|
+
*/
|
|
2070
|
+
public authControllerRegister(createUserDto: CreateUserDto, options?: RawAxiosRequestConfig) {
|
|
2071
|
+
return AuthApiFp(this.configuration).authControllerRegister(createUserDto, options).then((request) => request(this.axios, this.basePath));
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
*
|
|
2076
|
+
* @summary Reset password using OTP
|
|
2077
|
+
* @param {object} body
|
|
2078
|
+
* @param {*} [options] Override http request option.
|
|
2079
|
+
* @throws {RequiredError}
|
|
2080
|
+
* @memberof AuthApi
|
|
2081
|
+
*/
|
|
2082
|
+
public authControllerResetPasswordWithOTP(body: object, options?: RawAxiosRequestConfig) {
|
|
2083
|
+
return AuthApiFp(this.configuration).authControllerResetPasswordWithOTP(body, options).then((request) => request(this.axios, this.basePath));
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
*
|
|
2088
|
+
* @param {string} sessionId
|
|
2089
|
+
* @param {*} [options] Override http request option.
|
|
2090
|
+
* @throws {RequiredError}
|
|
2091
|
+
* @memberof AuthApi
|
|
2092
|
+
*/
|
|
2093
|
+
public authControllerRevokeSession(sessionId: string, options?: RawAxiosRequestConfig) {
|
|
2094
|
+
return AuthApiFp(this.configuration).authControllerRevokeSession(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
/**
|
|
2098
|
+
*
|
|
2099
|
+
* @summary Verify email with OTP code
|
|
2100
|
+
* @param {VerifyEmailDto} verifyEmailDto
|
|
2101
|
+
* @param {*} [options] Override http request option.
|
|
2102
|
+
* @throws {RequiredError}
|
|
2103
|
+
* @memberof AuthApi
|
|
2104
|
+
*/
|
|
2105
|
+
public authControllerVerifyEmail(verifyEmailDto: VerifyEmailDto, options?: RawAxiosRequestConfig) {
|
|
2106
|
+
return AuthApiFp(this.configuration).authControllerVerifyEmail(verifyEmailDto, options).then((request) => request(this.axios, this.basePath));
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
|
|
2111
|
+
|
|
2112
|
+
/**
|
|
2113
|
+
* BranchesApi - axios parameter creator
|
|
2114
|
+
* @export
|
|
2115
|
+
*/
|
|
2116
|
+
export const BranchesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2117
|
+
return {
|
|
2118
|
+
/**
|
|
2119
|
+
*
|
|
2120
|
+
* @summary Create a new branch
|
|
2121
|
+
* @param {CreateBranchDto} createBranchDto
|
|
2122
|
+
* @param {*} [options] Override http request option.
|
|
2123
|
+
* @throws {RequiredError}
|
|
2124
|
+
*/
|
|
2125
|
+
branchControllerCreate: async (createBranchDto: CreateBranchDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2126
|
+
// verify required parameter 'createBranchDto' is not null or undefined
|
|
2127
|
+
assertParamExists('branchControllerCreate', 'createBranchDto', createBranchDto)
|
|
2128
|
+
const localVarPath = `/api/branch`;
|
|
2129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2131
|
+
let baseOptions;
|
|
2132
|
+
if (configuration) {
|
|
2133
|
+
baseOptions = configuration.baseOptions;
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2137
|
+
const localVarHeaderParameter = {} as any;
|
|
2138
|
+
const localVarQueryParameter = {} as any;
|
|
2139
|
+
|
|
2140
|
+
|
|
2141
|
+
|
|
2142
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2143
|
+
|
|
2144
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2146
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2147
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBranchDto, localVarRequestOptions, configuration)
|
|
2148
|
+
|
|
2149
|
+
return {
|
|
2150
|
+
url: toPathString(localVarUrlObj),
|
|
2151
|
+
options: localVarRequestOptions,
|
|
2152
|
+
};
|
|
2153
|
+
},
|
|
2154
|
+
/**
|
|
2155
|
+
*
|
|
2156
|
+
* @summary Get all branches with pagination and filters
|
|
2157
|
+
* @param {number} [page]
|
|
2158
|
+
* @param {number} [pageSize]
|
|
2159
|
+
* @param {string} [filters] JSON string
|
|
2160
|
+
* @param {string} [sort] JSON string
|
|
2161
|
+
* @param {*} [options] Override http request option.
|
|
2162
|
+
* @throws {RequiredError}
|
|
2163
|
+
*/
|
|
2164
|
+
branchControllerFindMany: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2165
|
+
const localVarPath = `/api/branch`;
|
|
2166
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2167
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2168
|
+
let baseOptions;
|
|
2169
|
+
if (configuration) {
|
|
2170
|
+
baseOptions = configuration.baseOptions;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2174
|
+
const localVarHeaderParameter = {} as any;
|
|
2175
|
+
const localVarQueryParameter = {} as any;
|
|
2176
|
+
|
|
2177
|
+
if (page !== undefined) {
|
|
2178
|
+
localVarQueryParameter['page'] = page;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
if (pageSize !== undefined) {
|
|
2182
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
if (filters !== undefined) {
|
|
2186
|
+
localVarQueryParameter['filters'] = filters;
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
if (sort !== undefined) {
|
|
2190
|
+
localVarQueryParameter['sort'] = sort;
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2197
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2198
|
+
|
|
2199
|
+
return {
|
|
2200
|
+
url: toPathString(localVarUrlObj),
|
|
2201
|
+
options: localVarRequestOptions,
|
|
2202
|
+
};
|
|
2203
|
+
},
|
|
2204
|
+
/**
|
|
2205
|
+
*
|
|
2206
|
+
* @summary Get branches with infinite scroll for client app
|
|
2207
|
+
* @param {number} [page]
|
|
2208
|
+
* @param {number} [pageSize]
|
|
2209
|
+
* @param {string} [filters] JSON string
|
|
2210
|
+
* @param {string} [sort] JSON string
|
|
2211
|
+
* @param {*} [options] Override http request option.
|
|
2212
|
+
* @throws {RequiredError}
|
|
2213
|
+
*/
|
|
2214
|
+
branchControllerFindManyInfinite: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2215
|
+
const localVarPath = `/api/branch/infinite`;
|
|
2216
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2217
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2218
|
+
let baseOptions;
|
|
2219
|
+
if (configuration) {
|
|
2220
|
+
baseOptions = configuration.baseOptions;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2224
|
+
const localVarHeaderParameter = {} as any;
|
|
2225
|
+
const localVarQueryParameter = {} as any;
|
|
2226
|
+
|
|
2227
|
+
if (page !== undefined) {
|
|
2228
|
+
localVarQueryParameter['page'] = page;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
if (pageSize !== undefined) {
|
|
2232
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
if (filters !== undefined) {
|
|
2236
|
+
localVarQueryParameter['filters'] = filters;
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
if (sort !== undefined) {
|
|
2240
|
+
localVarQueryParameter['sort'] = sort;
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
|
|
2244
|
+
|
|
2245
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2246
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2247
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2248
|
+
|
|
2249
|
+
return {
|
|
2250
|
+
url: toPathString(localVarUrlObj),
|
|
2251
|
+
options: localVarRequestOptions,
|
|
2252
|
+
};
|
|
2253
|
+
},
|
|
2254
|
+
/**
|
|
2255
|
+
*
|
|
2256
|
+
* @summary Get branch by ID
|
|
2257
|
+
* @param {string} id
|
|
2258
|
+
* @param {*} [options] Override http request option.
|
|
2259
|
+
* @throws {RequiredError}
|
|
2260
|
+
*/
|
|
2261
|
+
branchControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2262
|
+
// verify required parameter 'id' is not null or undefined
|
|
2263
|
+
assertParamExists('branchControllerFindOne', 'id', id)
|
|
2264
|
+
const localVarPath = `/api/branch/{id}`
|
|
2265
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2266
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2267
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2268
|
+
let baseOptions;
|
|
2269
|
+
if (configuration) {
|
|
2270
|
+
baseOptions = configuration.baseOptions;
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2274
|
+
const localVarHeaderParameter = {} as any;
|
|
2275
|
+
const localVarQueryParameter = {} as any;
|
|
2276
|
+
|
|
2277
|
+
|
|
2278
|
+
|
|
2279
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2280
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2281
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2282
|
+
|
|
2283
|
+
return {
|
|
2284
|
+
url: toPathString(localVarUrlObj),
|
|
2285
|
+
options: localVarRequestOptions,
|
|
2286
|
+
};
|
|
2287
|
+
},
|
|
2288
|
+
/**
|
|
2289
|
+
*
|
|
2290
|
+
* @summary Delete a branch
|
|
2291
|
+
* @param {string} id
|
|
2292
|
+
* @param {*} [options] Override http request option.
|
|
2293
|
+
* @throws {RequiredError}
|
|
2294
|
+
*/
|
|
2295
|
+
branchControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2296
|
+
// verify required parameter 'id' is not null or undefined
|
|
2297
|
+
assertParamExists('branchControllerRemove', 'id', id)
|
|
2298
|
+
const localVarPath = `/api/branch/{id}`
|
|
2299
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2300
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2301
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2302
|
+
let baseOptions;
|
|
2303
|
+
if (configuration) {
|
|
2304
|
+
baseOptions = configuration.baseOptions;
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2308
|
+
const localVarHeaderParameter = {} as any;
|
|
2309
|
+
const localVarQueryParameter = {} as any;
|
|
2310
|
+
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2314
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2315
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2316
|
+
|
|
2317
|
+
return {
|
|
2318
|
+
url: toPathString(localVarUrlObj),
|
|
2319
|
+
options: localVarRequestOptions,
|
|
2320
|
+
};
|
|
2321
|
+
},
|
|
2322
|
+
/**
|
|
2323
|
+
*
|
|
2324
|
+
* @summary Update a branch
|
|
2325
|
+
* @param {string} id
|
|
2326
|
+
* @param {UpdateBranchDto} updateBranchDto
|
|
2327
|
+
* @param {*} [options] Override http request option.
|
|
2328
|
+
* @throws {RequiredError}
|
|
2329
|
+
*/
|
|
2330
|
+
branchControllerUpdate: async (id: string, updateBranchDto: UpdateBranchDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2331
|
+
// verify required parameter 'id' is not null or undefined
|
|
2332
|
+
assertParamExists('branchControllerUpdate', 'id', id)
|
|
2333
|
+
// verify required parameter 'updateBranchDto' is not null or undefined
|
|
2334
|
+
assertParamExists('branchControllerUpdate', 'updateBranchDto', updateBranchDto)
|
|
2335
|
+
const localVarPath = `/api/branch/{id}`
|
|
2336
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2337
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2338
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2339
|
+
let baseOptions;
|
|
2340
|
+
if (configuration) {
|
|
2341
|
+
baseOptions = configuration.baseOptions;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
2345
|
+
const localVarHeaderParameter = {} as any;
|
|
2346
|
+
const localVarQueryParameter = {} as any;
|
|
2347
|
+
|
|
2348
|
+
|
|
2349
|
+
|
|
2350
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2351
|
+
|
|
2352
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2353
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2354
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2355
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBranchDto, localVarRequestOptions, configuration)
|
|
2356
|
+
|
|
2357
|
+
return {
|
|
2358
|
+
url: toPathString(localVarUrlObj),
|
|
2359
|
+
options: localVarRequestOptions,
|
|
2360
|
+
};
|
|
2361
|
+
},
|
|
2362
|
+
}
|
|
2363
|
+
};
|
|
2364
|
+
|
|
2365
|
+
/**
|
|
2366
|
+
* BranchesApi - functional programming interface
|
|
2367
|
+
* @export
|
|
2368
|
+
*/
|
|
2369
|
+
export const BranchesApiFp = function(configuration?: Configuration) {
|
|
2370
|
+
const localVarAxiosParamCreator = BranchesApiAxiosParamCreator(configuration)
|
|
2371
|
+
return {
|
|
2372
|
+
/**
|
|
2373
|
+
*
|
|
2374
|
+
* @summary Create a new branch
|
|
2375
|
+
* @param {CreateBranchDto} createBranchDto
|
|
2376
|
+
* @param {*} [options] Override http request option.
|
|
2377
|
+
* @throws {RequiredError}
|
|
2378
|
+
*/
|
|
2379
|
+
async branchControllerCreate(createBranchDto: CreateBranchDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Branch>> {
|
|
2380
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerCreate(createBranchDto, options);
|
|
2381
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2382
|
+
const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
2383
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2384
|
+
},
|
|
2385
|
+
/**
|
|
2386
|
+
*
|
|
2387
|
+
* @summary Get all branches with pagination and filters
|
|
2388
|
+
* @param {number} [page]
|
|
2389
|
+
* @param {number} [pageSize]
|
|
2390
|
+
* @param {string} [filters] JSON string
|
|
2391
|
+
* @param {string} [sort] JSON string
|
|
2392
|
+
* @param {*} [options] Override http request option.
|
|
2393
|
+
* @throws {RequiredError}
|
|
2394
|
+
*/
|
|
2395
|
+
async branchControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BranchesPaginationResultDto>> {
|
|
2396
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerFindMany(page, pageSize, filters, sort, options);
|
|
2397
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2398
|
+
const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerFindMany']?.[localVarOperationServerIndex]?.url;
|
|
2399
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2400
|
+
},
|
|
2401
|
+
/**
|
|
2402
|
+
*
|
|
2403
|
+
* @summary Get branches with infinite scroll for client app
|
|
2404
|
+
* @param {number} [page]
|
|
2405
|
+
* @param {number} [pageSize]
|
|
2406
|
+
* @param {string} [filters] JSON string
|
|
2407
|
+
* @param {string} [sort] JSON string
|
|
2408
|
+
* @param {*} [options] Override http request option.
|
|
2409
|
+
* @throws {RequiredError}
|
|
2410
|
+
*/
|
|
2411
|
+
async branchControllerFindManyInfinite(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Branch>>> {
|
|
2412
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerFindManyInfinite(page, pageSize, filters, sort, options);
|
|
2413
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2414
|
+
const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerFindManyInfinite']?.[localVarOperationServerIndex]?.url;
|
|
2415
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2416
|
+
},
|
|
2417
|
+
/**
|
|
2418
|
+
*
|
|
2419
|
+
* @summary Get branch by ID
|
|
2420
|
+
* @param {string} id
|
|
2421
|
+
* @param {*} [options] Override http request option.
|
|
2422
|
+
* @throws {RequiredError}
|
|
2423
|
+
*/
|
|
2424
|
+
async branchControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Branch>> {
|
|
2425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerFindOne(id, options);
|
|
2426
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2427
|
+
const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerFindOne']?.[localVarOperationServerIndex]?.url;
|
|
2428
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2429
|
+
},
|
|
2430
|
+
/**
|
|
2431
|
+
*
|
|
2432
|
+
* @summary Delete a branch
|
|
2433
|
+
* @param {string} id
|
|
2434
|
+
* @param {*} [options] Override http request option.
|
|
2435
|
+
* @throws {RequiredError}
|
|
2436
|
+
*/
|
|
2437
|
+
async branchControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2438
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerRemove(id, options);
|
|
2439
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2440
|
+
const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerRemove']?.[localVarOperationServerIndex]?.url;
|
|
2441
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2442
|
+
},
|
|
2443
|
+
/**
|
|
2444
|
+
*
|
|
2445
|
+
* @summary Update a branch
|
|
2446
|
+
* @param {string} id
|
|
2447
|
+
* @param {UpdateBranchDto} updateBranchDto
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
*/
|
|
2451
|
+
async branchControllerUpdate(id: string, updateBranchDto: UpdateBranchDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Branch>> {
|
|
2452
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.branchControllerUpdate(id, updateBranchDto, options);
|
|
2453
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2454
|
+
const localVarOperationServerBasePath = operationServerMap['BranchesApi.branchControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
2455
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2456
|
+
},
|
|
2457
|
+
}
|
|
2458
|
+
};
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
* BranchesApi - factory interface
|
|
2462
|
+
* @export
|
|
2463
|
+
*/
|
|
2464
|
+
export const BranchesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2465
|
+
const localVarFp = BranchesApiFp(configuration)
|
|
2466
|
+
return {
|
|
2467
|
+
/**
|
|
2468
|
+
*
|
|
2469
|
+
* @summary Create a new branch
|
|
2470
|
+
* @param {CreateBranchDto} createBranchDto
|
|
2471
|
+
* @param {*} [options] Override http request option.
|
|
2472
|
+
* @throws {RequiredError}
|
|
2473
|
+
*/
|
|
2474
|
+
branchControllerCreate(createBranchDto: CreateBranchDto, options?: RawAxiosRequestConfig): AxiosPromise<Branch> {
|
|
2475
|
+
return localVarFp.branchControllerCreate(createBranchDto, options).then((request) => request(axios, basePath));
|
|
2476
|
+
},
|
|
2477
|
+
/**
|
|
2478
|
+
*
|
|
2479
|
+
* @summary Get all branches with pagination and filters
|
|
2480
|
+
* @param {number} [page]
|
|
2481
|
+
* @param {number} [pageSize]
|
|
2482
|
+
* @param {string} [filters] JSON string
|
|
2483
|
+
* @param {string} [sort] JSON string
|
|
2484
|
+
* @param {*} [options] Override http request option.
|
|
2485
|
+
* @throws {RequiredError}
|
|
2486
|
+
*/
|
|
2487
|
+
branchControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<BranchesPaginationResultDto> {
|
|
2488
|
+
return localVarFp.branchControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
|
|
2489
|
+
},
|
|
2490
|
+
/**
|
|
2491
|
+
*
|
|
2492
|
+
* @summary Get branches with infinite scroll for client app
|
|
2493
|
+
* @param {number} [page]
|
|
2494
|
+
* @param {number} [pageSize]
|
|
2495
|
+
* @param {string} [filters] JSON string
|
|
2496
|
+
* @param {string} [sort] JSON string
|
|
2497
|
+
* @param {*} [options] Override http request option.
|
|
2498
|
+
* @throws {RequiredError}
|
|
2499
|
+
*/
|
|
2500
|
+
branchControllerFindManyInfinite(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Branch>> {
|
|
2501
|
+
return localVarFp.branchControllerFindManyInfinite(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
|
|
2502
|
+
},
|
|
2503
|
+
/**
|
|
2504
|
+
*
|
|
2505
|
+
* @summary Get branch by ID
|
|
2506
|
+
* @param {string} id
|
|
2507
|
+
* @param {*} [options] Override http request option.
|
|
2508
|
+
* @throws {RequiredError}
|
|
2509
|
+
*/
|
|
2510
|
+
branchControllerFindOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Branch> {
|
|
2511
|
+
return localVarFp.branchControllerFindOne(id, options).then((request) => request(axios, basePath));
|
|
2512
|
+
},
|
|
2513
|
+
/**
|
|
2514
|
+
*
|
|
2515
|
+
* @summary Delete a branch
|
|
2516
|
+
* @param {string} id
|
|
2517
|
+
* @param {*} [options] Override http request option.
|
|
2518
|
+
* @throws {RequiredError}
|
|
2519
|
+
*/
|
|
2520
|
+
branchControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2521
|
+
return localVarFp.branchControllerRemove(id, options).then((request) => request(axios, basePath));
|
|
2522
|
+
},
|
|
2523
|
+
/**
|
|
2524
|
+
*
|
|
2525
|
+
* @summary Update a branch
|
|
2526
|
+
* @param {string} id
|
|
2527
|
+
* @param {UpdateBranchDto} updateBranchDto
|
|
2528
|
+
* @param {*} [options] Override http request option.
|
|
2529
|
+
* @throws {RequiredError}
|
|
2530
|
+
*/
|
|
2531
|
+
branchControllerUpdate(id: string, updateBranchDto: UpdateBranchDto, options?: RawAxiosRequestConfig): AxiosPromise<Branch> {
|
|
2532
|
+
return localVarFp.branchControllerUpdate(id, updateBranchDto, options).then((request) => request(axios, basePath));
|
|
2533
|
+
},
|
|
2534
|
+
};
|
|
2535
|
+
};
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* BranchesApi - object-oriented interface
|
|
2539
|
+
* @export
|
|
2540
|
+
* @class BranchesApi
|
|
2541
|
+
* @extends {BaseAPI}
|
|
2542
|
+
*/
|
|
2543
|
+
export class BranchesApi extends BaseAPI {
|
|
2544
|
+
/**
|
|
2545
|
+
*
|
|
2546
|
+
* @summary Create a new branch
|
|
2547
|
+
* @param {CreateBranchDto} createBranchDto
|
|
2548
|
+
* @param {*} [options] Override http request option.
|
|
2549
|
+
* @throws {RequiredError}
|
|
2550
|
+
* @memberof BranchesApi
|
|
2551
|
+
*/
|
|
2552
|
+
public branchControllerCreate(createBranchDto: CreateBranchDto, options?: RawAxiosRequestConfig) {
|
|
2553
|
+
return BranchesApiFp(this.configuration).branchControllerCreate(createBranchDto, options).then((request) => request(this.axios, this.basePath));
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
*
|
|
2558
|
+
* @summary Get all branches with pagination and filters
|
|
2559
|
+
* @param {number} [page]
|
|
2560
|
+
* @param {number} [pageSize]
|
|
2561
|
+
* @param {string} [filters] JSON string
|
|
2562
|
+
* @param {string} [sort] JSON string
|
|
2563
|
+
* @param {*} [options] Override http request option.
|
|
2564
|
+
* @throws {RequiredError}
|
|
2565
|
+
* @memberof BranchesApi
|
|
2566
|
+
*/
|
|
2567
|
+
public branchControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
|
|
2568
|
+
return BranchesApiFp(this.configuration).branchControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
/**
|
|
2572
|
+
*
|
|
2573
|
+
* @summary Get branches with infinite scroll for client app
|
|
2574
|
+
* @param {number} [page]
|
|
2575
|
+
* @param {number} [pageSize]
|
|
2576
|
+
* @param {string} [filters] JSON string
|
|
2577
|
+
* @param {string} [sort] JSON string
|
|
2578
|
+
* @param {*} [options] Override http request option.
|
|
2579
|
+
* @throws {RequiredError}
|
|
2580
|
+
* @memberof BranchesApi
|
|
2581
|
+
*/
|
|
2582
|
+
public branchControllerFindManyInfinite(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
|
|
2583
|
+
return BranchesApiFp(this.configuration).branchControllerFindManyInfinite(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
/**
|
|
2587
|
+
*
|
|
2588
|
+
* @summary Get branch by ID
|
|
2589
|
+
* @param {string} id
|
|
2590
|
+
* @param {*} [options] Override http request option.
|
|
2591
|
+
* @throws {RequiredError}
|
|
2592
|
+
* @memberof BranchesApi
|
|
2593
|
+
*/
|
|
2594
|
+
public branchControllerFindOne(id: string, options?: RawAxiosRequestConfig) {
|
|
2595
|
+
return BranchesApiFp(this.configuration).branchControllerFindOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
/**
|
|
2599
|
+
*
|
|
2600
|
+
* @summary Delete a branch
|
|
2601
|
+
* @param {string} id
|
|
2602
|
+
* @param {*} [options] Override http request option.
|
|
2603
|
+
* @throws {RequiredError}
|
|
2604
|
+
* @memberof BranchesApi
|
|
2605
|
+
*/
|
|
2606
|
+
public branchControllerRemove(id: string, options?: RawAxiosRequestConfig) {
|
|
2607
|
+
return BranchesApiFp(this.configuration).branchControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
/**
|
|
2611
|
+
*
|
|
2612
|
+
* @summary Update a branch
|
|
2613
|
+
* @param {string} id
|
|
2614
|
+
* @param {UpdateBranchDto} updateBranchDto
|
|
2615
|
+
* @param {*} [options] Override http request option.
|
|
2616
|
+
* @throws {RequiredError}
|
|
2617
|
+
* @memberof BranchesApi
|
|
2618
|
+
*/
|
|
2619
|
+
public branchControllerUpdate(id: string, updateBranchDto: UpdateBranchDto, options?: RawAxiosRequestConfig) {
|
|
2620
|
+
return BranchesApiFp(this.configuration).branchControllerUpdate(id, updateBranchDto, options).then((request) => request(this.axios, this.basePath));
|
|
2621
|
+
}
|
|
2622
|
+
}
|
|
2623
|
+
|
|
2624
|
+
|
|
2625
|
+
|
|
2626
|
+
/**
|
|
2627
|
+
* EmailApi - axios parameter creator
|
|
2628
|
+
* @export
|
|
2629
|
+
*/
|
|
2630
|
+
export const EmailApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2631
|
+
return {
|
|
2632
|
+
/**
|
|
2633
|
+
*
|
|
2634
|
+
* @summary Send verification email
|
|
2635
|
+
* @param {VerificationEmailDto} verificationEmailDto
|
|
2636
|
+
* @param {*} [options] Override http request option.
|
|
2637
|
+
* @throws {RequiredError}
|
|
2638
|
+
*/
|
|
2639
|
+
emailControllerSendVerificationEmail: async (verificationEmailDto: VerificationEmailDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2640
|
+
// verify required parameter 'verificationEmailDto' is not null or undefined
|
|
2641
|
+
assertParamExists('emailControllerSendVerificationEmail', 'verificationEmailDto', verificationEmailDto)
|
|
2642
|
+
const localVarPath = `/api/email/send-verification`;
|
|
2643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2644
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2645
|
+
let baseOptions;
|
|
2646
|
+
if (configuration) {
|
|
2647
|
+
baseOptions = configuration.baseOptions;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2651
|
+
const localVarHeaderParameter = {} as any;
|
|
2652
|
+
const localVarQueryParameter = {} as any;
|
|
2653
|
+
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2657
|
+
|
|
2658
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2659
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2660
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2661
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verificationEmailDto, localVarRequestOptions, configuration)
|
|
2662
|
+
|
|
2663
|
+
return {
|
|
2664
|
+
url: toPathString(localVarUrlObj),
|
|
2665
|
+
options: localVarRequestOptions,
|
|
2666
|
+
};
|
|
2667
|
+
},
|
|
2668
|
+
}
|
|
2669
|
+
};
|
|
2670
|
+
|
|
2671
|
+
/**
|
|
2672
|
+
* EmailApi - functional programming interface
|
|
2673
|
+
* @export
|
|
2674
|
+
*/
|
|
2675
|
+
export const EmailApiFp = function(configuration?: Configuration) {
|
|
2676
|
+
const localVarAxiosParamCreator = EmailApiAxiosParamCreator(configuration)
|
|
2677
|
+
return {
|
|
2678
|
+
/**
|
|
2679
|
+
*
|
|
2680
|
+
* @summary Send verification email
|
|
2681
|
+
* @param {VerificationEmailDto} verificationEmailDto
|
|
2682
|
+
* @param {*} [options] Override http request option.
|
|
2683
|
+
* @throws {RequiredError}
|
|
2684
|
+
*/
|
|
2685
|
+
async emailControllerSendVerificationEmail(verificationEmailDto: VerificationEmailDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2686
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailControllerSendVerificationEmail(verificationEmailDto, options);
|
|
2687
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2688
|
+
const localVarOperationServerBasePath = operationServerMap['EmailApi.emailControllerSendVerificationEmail']?.[localVarOperationServerIndex]?.url;
|
|
2689
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2690
|
+
},
|
|
2691
|
+
}
|
|
2692
|
+
};
|
|
2693
|
+
|
|
2694
|
+
/**
|
|
2695
|
+
* EmailApi - factory interface
|
|
2696
|
+
* @export
|
|
2697
|
+
*/
|
|
2698
|
+
export const EmailApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2699
|
+
const localVarFp = EmailApiFp(configuration)
|
|
2700
|
+
return {
|
|
2701
|
+
/**
|
|
2702
|
+
*
|
|
2703
|
+
* @summary Send verification email
|
|
2704
|
+
* @param {VerificationEmailDto} verificationEmailDto
|
|
2705
|
+
* @param {*} [options] Override http request option.
|
|
2706
|
+
* @throws {RequiredError}
|
|
2707
|
+
*/
|
|
2708
|
+
emailControllerSendVerificationEmail(verificationEmailDto: VerificationEmailDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2709
|
+
return localVarFp.emailControllerSendVerificationEmail(verificationEmailDto, options).then((request) => request(axios, basePath));
|
|
2710
|
+
},
|
|
2711
|
+
};
|
|
2712
|
+
};
|
|
2713
|
+
|
|
2714
|
+
/**
|
|
2715
|
+
* EmailApi - object-oriented interface
|
|
2716
|
+
* @export
|
|
2717
|
+
* @class EmailApi
|
|
2718
|
+
* @extends {BaseAPI}
|
|
2719
|
+
*/
|
|
2720
|
+
export class EmailApi extends BaseAPI {
|
|
2721
|
+
/**
|
|
2722
|
+
*
|
|
2723
|
+
* @summary Send verification email
|
|
2724
|
+
* @param {VerificationEmailDto} verificationEmailDto
|
|
2725
|
+
* @param {*} [options] Override http request option.
|
|
2726
|
+
* @throws {RequiredError}
|
|
2727
|
+
* @memberof EmailApi
|
|
2728
|
+
*/
|
|
2729
|
+
public emailControllerSendVerificationEmail(verificationEmailDto: VerificationEmailDto, options?: RawAxiosRequestConfig) {
|
|
2730
|
+
return EmailApiFp(this.configuration).emailControllerSendVerificationEmail(verificationEmailDto, options).then((request) => request(this.axios, this.basePath));
|
|
2731
|
+
}
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
|
|
2735
|
+
|
|
2736
|
+
/**
|
|
2737
|
+
* ImagesApi - axios parameter creator
|
|
2738
|
+
* @export
|
|
2739
|
+
*/
|
|
2740
|
+
export const ImagesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2741
|
+
return {
|
|
2742
|
+
/**
|
|
2743
|
+
*
|
|
2744
|
+
* @summary Get image by public id
|
|
2745
|
+
* @param {string} publicId Public ID of the image
|
|
2746
|
+
* @param {*} [options] Override http request option.
|
|
2747
|
+
* @throws {RequiredError}
|
|
2748
|
+
*/
|
|
2749
|
+
imagesControllerGetImageByPublicId: async (publicId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2750
|
+
// verify required parameter 'publicId' is not null or undefined
|
|
2751
|
+
assertParamExists('imagesControllerGetImageByPublicId', 'publicId', publicId)
|
|
2752
|
+
const localVarPath = `/api/images/{publicId}`
|
|
2753
|
+
.replace(`{${"publicId"}}`, encodeURIComponent(String(publicId)));
|
|
2754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2755
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2756
|
+
let baseOptions;
|
|
2757
|
+
if (configuration) {
|
|
2758
|
+
baseOptions = configuration.baseOptions;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2762
|
+
const localVarHeaderParameter = {} as any;
|
|
2763
|
+
const localVarQueryParameter = {} as any;
|
|
2764
|
+
|
|
2765
|
+
|
|
2766
|
+
|
|
2767
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2768
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2769
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2770
|
+
|
|
2771
|
+
return {
|
|
2772
|
+
url: toPathString(localVarUrlObj),
|
|
2773
|
+
options: localVarRequestOptions,
|
|
2774
|
+
};
|
|
2775
|
+
},
|
|
2776
|
+
/**
|
|
2777
|
+
*
|
|
2778
|
+
* @param {*} [options] Override http request option.
|
|
2779
|
+
* @throws {RequiredError}
|
|
2780
|
+
*/
|
|
2781
|
+
imagesControllerUploadImages: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2782
|
+
const localVarPath = `/api/images`;
|
|
2783
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2784
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2785
|
+
let baseOptions;
|
|
2786
|
+
if (configuration) {
|
|
2787
|
+
baseOptions = configuration.baseOptions;
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2791
|
+
const localVarHeaderParameter = {} as any;
|
|
2792
|
+
const localVarQueryParameter = {} as any;
|
|
2793
|
+
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2797
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2798
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2799
|
+
|
|
2800
|
+
return {
|
|
2801
|
+
url: toPathString(localVarUrlObj),
|
|
2802
|
+
options: localVarRequestOptions,
|
|
2803
|
+
};
|
|
2804
|
+
},
|
|
2805
|
+
}
|
|
2806
|
+
};
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* ImagesApi - functional programming interface
|
|
2810
|
+
* @export
|
|
2811
|
+
*/
|
|
2812
|
+
export const ImagesApiFp = function(configuration?: Configuration) {
|
|
2813
|
+
const localVarAxiosParamCreator = ImagesApiAxiosParamCreator(configuration)
|
|
2814
|
+
return {
|
|
2815
|
+
/**
|
|
2816
|
+
*
|
|
2817
|
+
* @summary Get image by public id
|
|
2818
|
+
* @param {string} publicId Public ID of the image
|
|
2819
|
+
* @param {*} [options] Override http request option.
|
|
2820
|
+
* @throws {RequiredError}
|
|
2821
|
+
*/
|
|
2822
|
+
async imagesControllerGetImageByPublicId(publicId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageUploadResponseDto>> {
|
|
2823
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.imagesControllerGetImageByPublicId(publicId, options);
|
|
2824
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2825
|
+
const localVarOperationServerBasePath = operationServerMap['ImagesApi.imagesControllerGetImageByPublicId']?.[localVarOperationServerIndex]?.url;
|
|
2826
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2827
|
+
},
|
|
2828
|
+
/**
|
|
2829
|
+
*
|
|
2830
|
+
* @param {*} [options] Override http request option.
|
|
2831
|
+
* @throws {RequiredError}
|
|
2832
|
+
*/
|
|
2833
|
+
async imagesControllerUploadImages(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2834
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.imagesControllerUploadImages(options);
|
|
2835
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2836
|
+
const localVarOperationServerBasePath = operationServerMap['ImagesApi.imagesControllerUploadImages']?.[localVarOperationServerIndex]?.url;
|
|
2837
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2838
|
+
},
|
|
2839
|
+
}
|
|
2840
|
+
};
|
|
2841
|
+
|
|
2842
|
+
/**
|
|
2843
|
+
* ImagesApi - factory interface
|
|
2844
|
+
* @export
|
|
2845
|
+
*/
|
|
2846
|
+
export const ImagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2847
|
+
const localVarFp = ImagesApiFp(configuration)
|
|
2848
|
+
return {
|
|
2849
|
+
/**
|
|
2850
|
+
*
|
|
2851
|
+
* @summary Get image by public id
|
|
2852
|
+
* @param {string} publicId Public ID of the image
|
|
2853
|
+
* @param {*} [options] Override http request option.
|
|
2854
|
+
* @throws {RequiredError}
|
|
2855
|
+
*/
|
|
2856
|
+
imagesControllerGetImageByPublicId(publicId: string, options?: RawAxiosRequestConfig): AxiosPromise<ImageUploadResponseDto> {
|
|
2857
|
+
return localVarFp.imagesControllerGetImageByPublicId(publicId, options).then((request) => request(axios, basePath));
|
|
2858
|
+
},
|
|
2859
|
+
/**
|
|
2860
|
+
*
|
|
2861
|
+
* @param {*} [options] Override http request option.
|
|
2862
|
+
* @throws {RequiredError}
|
|
2863
|
+
*/
|
|
2864
|
+
imagesControllerUploadImages(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2865
|
+
return localVarFp.imagesControllerUploadImages(options).then((request) => request(axios, basePath));
|
|
2866
|
+
},
|
|
2867
|
+
};
|
|
2868
|
+
};
|
|
2869
|
+
|
|
2870
|
+
/**
|
|
2871
|
+
* ImagesApi - object-oriented interface
|
|
2872
|
+
* @export
|
|
2873
|
+
* @class ImagesApi
|
|
2874
|
+
* @extends {BaseAPI}
|
|
2875
|
+
*/
|
|
2876
|
+
export class ImagesApi extends BaseAPI {
|
|
2877
|
+
/**
|
|
2878
|
+
*
|
|
2879
|
+
* @summary Get image by public id
|
|
2880
|
+
* @param {string} publicId Public ID of the image
|
|
2881
|
+
* @param {*} [options] Override http request option.
|
|
2882
|
+
* @throws {RequiredError}
|
|
2883
|
+
* @memberof ImagesApi
|
|
2884
|
+
*/
|
|
2885
|
+
public imagesControllerGetImageByPublicId(publicId: string, options?: RawAxiosRequestConfig) {
|
|
2886
|
+
return ImagesApiFp(this.configuration).imagesControllerGetImageByPublicId(publicId, options).then((request) => request(this.axios, this.basePath));
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
*
|
|
2891
|
+
* @param {*} [options] Override http request option.
|
|
2892
|
+
* @throws {RequiredError}
|
|
2893
|
+
* @memberof ImagesApi
|
|
2894
|
+
*/
|
|
2895
|
+
public imagesControllerUploadImages(options?: RawAxiosRequestConfig) {
|
|
2896
|
+
return ImagesApiFp(this.configuration).imagesControllerUploadImages(options).then((request) => request(this.axios, this.basePath));
|
|
2897
|
+
}
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
|
|
2901
|
+
|
|
2902
|
+
/**
|
|
2903
|
+
* ProvincesApi - axios parameter creator
|
|
2904
|
+
* @export
|
|
2905
|
+
*/
|
|
2906
|
+
export const ProvincesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2907
|
+
return {
|
|
2908
|
+
/**
|
|
2909
|
+
*
|
|
2910
|
+
* @summary Create a new province
|
|
2911
|
+
* @param {CreateProvinceDto} createProvinceDto
|
|
2912
|
+
* @param {*} [options] Override http request option.
|
|
2913
|
+
* @throws {RequiredError}
|
|
2914
|
+
*/
|
|
2915
|
+
provincesControllerCreate: async (createProvinceDto: CreateProvinceDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2916
|
+
// verify required parameter 'createProvinceDto' is not null or undefined
|
|
2917
|
+
assertParamExists('provincesControllerCreate', 'createProvinceDto', createProvinceDto)
|
|
2918
|
+
const localVarPath = `/api/provinces`;
|
|
2919
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2920
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2921
|
+
let baseOptions;
|
|
2922
|
+
if (configuration) {
|
|
2923
|
+
baseOptions = configuration.baseOptions;
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2927
|
+
const localVarHeaderParameter = {} as any;
|
|
2928
|
+
const localVarQueryParameter = {} as any;
|
|
2929
|
+
|
|
2930
|
+
|
|
2931
|
+
|
|
2932
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2933
|
+
|
|
2934
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2936
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2937
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createProvinceDto, localVarRequestOptions, configuration)
|
|
2938
|
+
|
|
2939
|
+
return {
|
|
2940
|
+
url: toPathString(localVarUrlObj),
|
|
2941
|
+
options: localVarRequestOptions,
|
|
2942
|
+
};
|
|
2943
|
+
},
|
|
2944
|
+
/**
|
|
2945
|
+
*
|
|
2946
|
+
* @summary Get all provinces with pagination and filters
|
|
2947
|
+
* @param {number} [page]
|
|
2948
|
+
* @param {number} [pageSize]
|
|
2949
|
+
* @param {string} [filters] JSON string
|
|
2950
|
+
* @param {string} [sort] JSON string
|
|
2951
|
+
* @param {*} [options] Override http request option.
|
|
2952
|
+
* @throws {RequiredError}
|
|
2953
|
+
*/
|
|
2954
|
+
provincesControllerFindMany: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2955
|
+
const localVarPath = `/api/provinces`;
|
|
2956
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2957
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2958
|
+
let baseOptions;
|
|
2959
|
+
if (configuration) {
|
|
2960
|
+
baseOptions = configuration.baseOptions;
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2963
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2964
|
+
const localVarHeaderParameter = {} as any;
|
|
2965
|
+
const localVarQueryParameter = {} as any;
|
|
2966
|
+
|
|
2967
|
+
if (page !== undefined) {
|
|
2968
|
+
localVarQueryParameter['page'] = page;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
if (pageSize !== undefined) {
|
|
2972
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
if (filters !== undefined) {
|
|
2976
|
+
localVarQueryParameter['filters'] = filters;
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2979
|
+
if (sort !== undefined) {
|
|
2980
|
+
localVarQueryParameter['sort'] = sort;
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
|
|
2984
|
+
|
|
2985
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2986
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2987
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2988
|
+
|
|
2989
|
+
return {
|
|
2990
|
+
url: toPathString(localVarUrlObj),
|
|
2991
|
+
options: localVarRequestOptions,
|
|
2992
|
+
};
|
|
2993
|
+
},
|
|
2994
|
+
/**
|
|
2995
|
+
*
|
|
2996
|
+
* @summary Get province by ID
|
|
2997
|
+
* @param {string} id
|
|
2998
|
+
* @param {*} [options] Override http request option.
|
|
2999
|
+
* @throws {RequiredError}
|
|
3000
|
+
*/
|
|
3001
|
+
provincesControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3002
|
+
// verify required parameter 'id' is not null or undefined
|
|
3003
|
+
assertParamExists('provincesControllerFindOne', 'id', id)
|
|
3004
|
+
const localVarPath = `/api/provinces/{id}`
|
|
3005
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3006
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3007
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3008
|
+
let baseOptions;
|
|
3009
|
+
if (configuration) {
|
|
3010
|
+
baseOptions = configuration.baseOptions;
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3014
|
+
const localVarHeaderParameter = {} as any;
|
|
3015
|
+
const localVarQueryParameter = {} as any;
|
|
3016
|
+
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3020
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3021
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3022
|
+
|
|
3023
|
+
return {
|
|
3024
|
+
url: toPathString(localVarUrlObj),
|
|
3025
|
+
options: localVarRequestOptions,
|
|
3026
|
+
};
|
|
3027
|
+
},
|
|
3028
|
+
/**
|
|
3029
|
+
*
|
|
3030
|
+
* @summary Delete a province
|
|
3031
|
+
* @param {string} id
|
|
3032
|
+
* @param {*} [options] Override http request option.
|
|
3033
|
+
* @throws {RequiredError}
|
|
3034
|
+
*/
|
|
3035
|
+
provincesControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3036
|
+
// verify required parameter 'id' is not null or undefined
|
|
3037
|
+
assertParamExists('provincesControllerRemove', 'id', id)
|
|
3038
|
+
const localVarPath = `/api/provinces/{id}`
|
|
3039
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3040
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3041
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3042
|
+
let baseOptions;
|
|
3043
|
+
if (configuration) {
|
|
3044
|
+
baseOptions = configuration.baseOptions;
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3048
|
+
const localVarHeaderParameter = {} as any;
|
|
3049
|
+
const localVarQueryParameter = {} as any;
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
|
|
3053
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3054
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3055
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3056
|
+
|
|
3057
|
+
return {
|
|
3058
|
+
url: toPathString(localVarUrlObj),
|
|
3059
|
+
options: localVarRequestOptions,
|
|
3060
|
+
};
|
|
3061
|
+
},
|
|
3062
|
+
/**
|
|
3063
|
+
*
|
|
3064
|
+
* @summary Update a province
|
|
3065
|
+
* @param {string} id
|
|
3066
|
+
* @param {UpdateProvinceDto} updateProvinceDto
|
|
3067
|
+
* @param {*} [options] Override http request option.
|
|
3068
|
+
* @throws {RequiredError}
|
|
3069
|
+
*/
|
|
3070
|
+
provincesControllerUpdate: async (id: string, updateProvinceDto: UpdateProvinceDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3071
|
+
// verify required parameter 'id' is not null or undefined
|
|
3072
|
+
assertParamExists('provincesControllerUpdate', 'id', id)
|
|
3073
|
+
// verify required parameter 'updateProvinceDto' is not null or undefined
|
|
3074
|
+
assertParamExists('provincesControllerUpdate', 'updateProvinceDto', updateProvinceDto)
|
|
3075
|
+
const localVarPath = `/api/provinces/{id}`
|
|
3076
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3077
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3078
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3079
|
+
let baseOptions;
|
|
3080
|
+
if (configuration) {
|
|
3081
|
+
baseOptions = configuration.baseOptions;
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3085
|
+
const localVarHeaderParameter = {} as any;
|
|
3086
|
+
const localVarQueryParameter = {} as any;
|
|
3087
|
+
|
|
3088
|
+
|
|
3089
|
+
|
|
3090
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3091
|
+
|
|
3092
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3093
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3094
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3095
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateProvinceDto, localVarRequestOptions, configuration)
|
|
3096
|
+
|
|
3097
|
+
return {
|
|
3098
|
+
url: toPathString(localVarUrlObj),
|
|
3099
|
+
options: localVarRequestOptions,
|
|
3100
|
+
};
|
|
3101
|
+
},
|
|
3102
|
+
}
|
|
3103
|
+
};
|
|
3104
|
+
|
|
3105
|
+
/**
|
|
3106
|
+
* ProvincesApi - functional programming interface
|
|
3107
|
+
* @export
|
|
3108
|
+
*/
|
|
3109
|
+
export const ProvincesApiFp = function(configuration?: Configuration) {
|
|
3110
|
+
const localVarAxiosParamCreator = ProvincesApiAxiosParamCreator(configuration)
|
|
3111
|
+
return {
|
|
3112
|
+
/**
|
|
3113
|
+
*
|
|
3114
|
+
* @summary Create a new province
|
|
3115
|
+
* @param {CreateProvinceDto} createProvinceDto
|
|
3116
|
+
* @param {*} [options] Override http request option.
|
|
3117
|
+
* @throws {RequiredError}
|
|
3118
|
+
*/
|
|
3119
|
+
async provincesControllerCreate(createProvinceDto: CreateProvinceDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Province>> {
|
|
3120
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.provincesControllerCreate(createProvinceDto, options);
|
|
3121
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3122
|
+
const localVarOperationServerBasePath = operationServerMap['ProvincesApi.provincesControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
3123
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3124
|
+
},
|
|
3125
|
+
/**
|
|
3126
|
+
*
|
|
3127
|
+
* @summary Get all provinces with pagination and filters
|
|
3128
|
+
* @param {number} [page]
|
|
3129
|
+
* @param {number} [pageSize]
|
|
3130
|
+
* @param {string} [filters] JSON string
|
|
3131
|
+
* @param {string} [sort] JSON string
|
|
3132
|
+
* @param {*} [options] Override http request option.
|
|
3133
|
+
* @throws {RequiredError}
|
|
3134
|
+
*/
|
|
3135
|
+
async provincesControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvincePaginationResultDto>> {
|
|
3136
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.provincesControllerFindMany(page, pageSize, filters, sort, options);
|
|
3137
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3138
|
+
const localVarOperationServerBasePath = operationServerMap['ProvincesApi.provincesControllerFindMany']?.[localVarOperationServerIndex]?.url;
|
|
3139
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3140
|
+
},
|
|
3141
|
+
/**
|
|
3142
|
+
*
|
|
3143
|
+
* @summary Get province by ID
|
|
3144
|
+
* @param {string} id
|
|
3145
|
+
* @param {*} [options] Override http request option.
|
|
3146
|
+
* @throws {RequiredError}
|
|
3147
|
+
*/
|
|
3148
|
+
async provincesControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Province>> {
|
|
3149
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.provincesControllerFindOne(id, options);
|
|
3150
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3151
|
+
const localVarOperationServerBasePath = operationServerMap['ProvincesApi.provincesControllerFindOne']?.[localVarOperationServerIndex]?.url;
|
|
3152
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3153
|
+
},
|
|
3154
|
+
/**
|
|
3155
|
+
*
|
|
3156
|
+
* @summary Delete a province
|
|
3157
|
+
* @param {string} id
|
|
3158
|
+
* @param {*} [options] Override http request option.
|
|
3159
|
+
* @throws {RequiredError}
|
|
3160
|
+
*/
|
|
3161
|
+
async provincesControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.provincesControllerRemove(id, options);
|
|
3163
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3164
|
+
const localVarOperationServerBasePath = operationServerMap['ProvincesApi.provincesControllerRemove']?.[localVarOperationServerIndex]?.url;
|
|
3165
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3166
|
+
},
|
|
3167
|
+
/**
|
|
3168
|
+
*
|
|
3169
|
+
* @summary Update a province
|
|
3170
|
+
* @param {string} id
|
|
3171
|
+
* @param {UpdateProvinceDto} updateProvinceDto
|
|
3172
|
+
* @param {*} [options] Override http request option.
|
|
3173
|
+
* @throws {RequiredError}
|
|
3174
|
+
*/
|
|
3175
|
+
async provincesControllerUpdate(id: string, updateProvinceDto: UpdateProvinceDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Province>> {
|
|
3176
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.provincesControllerUpdate(id, updateProvinceDto, options);
|
|
3177
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3178
|
+
const localVarOperationServerBasePath = operationServerMap['ProvincesApi.provincesControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
3179
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3180
|
+
},
|
|
3181
|
+
}
|
|
3182
|
+
};
|
|
3183
|
+
|
|
3184
|
+
/**
|
|
3185
|
+
* ProvincesApi - factory interface
|
|
3186
|
+
* @export
|
|
3187
|
+
*/
|
|
3188
|
+
export const ProvincesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3189
|
+
const localVarFp = ProvincesApiFp(configuration)
|
|
3190
|
+
return {
|
|
3191
|
+
/**
|
|
3192
|
+
*
|
|
3193
|
+
* @summary Create a new province
|
|
3194
|
+
* @param {CreateProvinceDto} createProvinceDto
|
|
3195
|
+
* @param {*} [options] Override http request option.
|
|
3196
|
+
* @throws {RequiredError}
|
|
3197
|
+
*/
|
|
3198
|
+
provincesControllerCreate(createProvinceDto: CreateProvinceDto, options?: RawAxiosRequestConfig): AxiosPromise<Province> {
|
|
3199
|
+
return localVarFp.provincesControllerCreate(createProvinceDto, options).then((request) => request(axios, basePath));
|
|
3200
|
+
},
|
|
3201
|
+
/**
|
|
3202
|
+
*
|
|
3203
|
+
* @summary Get all provinces with pagination and filters
|
|
3204
|
+
* @param {number} [page]
|
|
3205
|
+
* @param {number} [pageSize]
|
|
3206
|
+
* @param {string} [filters] JSON string
|
|
3207
|
+
* @param {string} [sort] JSON string
|
|
3208
|
+
* @param {*} [options] Override http request option.
|
|
3209
|
+
* @throws {RequiredError}
|
|
3210
|
+
*/
|
|
3211
|
+
provincesControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProvincePaginationResultDto> {
|
|
3212
|
+
return localVarFp.provincesControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
|
|
3213
|
+
},
|
|
3214
|
+
/**
|
|
3215
|
+
*
|
|
3216
|
+
* @summary Get province by ID
|
|
3217
|
+
* @param {string} id
|
|
3218
|
+
* @param {*} [options] Override http request option.
|
|
3219
|
+
* @throws {RequiredError}
|
|
3220
|
+
*/
|
|
3221
|
+
provincesControllerFindOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Province> {
|
|
3222
|
+
return localVarFp.provincesControllerFindOne(id, options).then((request) => request(axios, basePath));
|
|
3223
|
+
},
|
|
3224
|
+
/**
|
|
3225
|
+
*
|
|
3226
|
+
* @summary Delete a province
|
|
3227
|
+
* @param {string} id
|
|
3228
|
+
* @param {*} [options] Override http request option.
|
|
3229
|
+
* @throws {RequiredError}
|
|
3230
|
+
*/
|
|
3231
|
+
provincesControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3232
|
+
return localVarFp.provincesControllerRemove(id, options).then((request) => request(axios, basePath));
|
|
3233
|
+
},
|
|
3234
|
+
/**
|
|
3235
|
+
*
|
|
3236
|
+
* @summary Update a province
|
|
3237
|
+
* @param {string} id
|
|
3238
|
+
* @param {UpdateProvinceDto} updateProvinceDto
|
|
3239
|
+
* @param {*} [options] Override http request option.
|
|
3240
|
+
* @throws {RequiredError}
|
|
3241
|
+
*/
|
|
3242
|
+
provincesControllerUpdate(id: string, updateProvinceDto: UpdateProvinceDto, options?: RawAxiosRequestConfig): AxiosPromise<Province> {
|
|
3243
|
+
return localVarFp.provincesControllerUpdate(id, updateProvinceDto, options).then((request) => request(axios, basePath));
|
|
3244
|
+
},
|
|
3245
|
+
};
|
|
3246
|
+
};
|
|
3247
|
+
|
|
3248
|
+
/**
|
|
3249
|
+
* ProvincesApi - object-oriented interface
|
|
3250
|
+
* @export
|
|
3251
|
+
* @class ProvincesApi
|
|
3252
|
+
* @extends {BaseAPI}
|
|
3253
|
+
*/
|
|
3254
|
+
export class ProvincesApi extends BaseAPI {
|
|
3255
|
+
/**
|
|
3256
|
+
*
|
|
3257
|
+
* @summary Create a new province
|
|
3258
|
+
* @param {CreateProvinceDto} createProvinceDto
|
|
3259
|
+
* @param {*} [options] Override http request option.
|
|
3260
|
+
* @throws {RequiredError}
|
|
3261
|
+
* @memberof ProvincesApi
|
|
3262
|
+
*/
|
|
3263
|
+
public provincesControllerCreate(createProvinceDto: CreateProvinceDto, options?: RawAxiosRequestConfig) {
|
|
3264
|
+
return ProvincesApiFp(this.configuration).provincesControllerCreate(createProvinceDto, options).then((request) => request(this.axios, this.basePath));
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
/**
|
|
3268
|
+
*
|
|
3269
|
+
* @summary Get all provinces with pagination and filters
|
|
3270
|
+
* @param {number} [page]
|
|
3271
|
+
* @param {number} [pageSize]
|
|
3272
|
+
* @param {string} [filters] JSON string
|
|
3273
|
+
* @param {string} [sort] JSON string
|
|
3274
|
+
* @param {*} [options] Override http request option.
|
|
3275
|
+
* @throws {RequiredError}
|
|
3276
|
+
* @memberof ProvincesApi
|
|
3277
|
+
*/
|
|
3278
|
+
public provincesControllerFindMany(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
|
|
3279
|
+
return ProvincesApiFp(this.configuration).provincesControllerFindMany(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
/**
|
|
3283
|
+
*
|
|
3284
|
+
* @summary Get province by ID
|
|
3285
|
+
* @param {string} id
|
|
3286
|
+
* @param {*} [options] Override http request option.
|
|
3287
|
+
* @throws {RequiredError}
|
|
3288
|
+
* @memberof ProvincesApi
|
|
3289
|
+
*/
|
|
3290
|
+
public provincesControllerFindOne(id: string, options?: RawAxiosRequestConfig) {
|
|
3291
|
+
return ProvincesApiFp(this.configuration).provincesControllerFindOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
*
|
|
3296
|
+
* @summary Delete a province
|
|
3297
|
+
* @param {string} id
|
|
3298
|
+
* @param {*} [options] Override http request option.
|
|
3299
|
+
* @throws {RequiredError}
|
|
3300
|
+
* @memberof ProvincesApi
|
|
3301
|
+
*/
|
|
3302
|
+
public provincesControllerRemove(id: string, options?: RawAxiosRequestConfig) {
|
|
3303
|
+
return ProvincesApiFp(this.configuration).provincesControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3306
|
+
/**
|
|
3307
|
+
*
|
|
3308
|
+
* @summary Update a province
|
|
3309
|
+
* @param {string} id
|
|
3310
|
+
* @param {UpdateProvinceDto} updateProvinceDto
|
|
3311
|
+
* @param {*} [options] Override http request option.
|
|
3312
|
+
* @throws {RequiredError}
|
|
3313
|
+
* @memberof ProvincesApi
|
|
3314
|
+
*/
|
|
3315
|
+
public provincesControllerUpdate(id: string, updateProvinceDto: UpdateProvinceDto, options?: RawAxiosRequestConfig) {
|
|
3316
|
+
return ProvincesApiFp(this.configuration).provincesControllerUpdate(id, updateProvinceDto, options).then((request) => request(this.axios, this.basePath));
|
|
3317
|
+
}
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
|
|
3321
|
+
|
|
3322
|
+
/**
|
|
3323
|
+
* UsersApi - axios parameter creator
|
|
3324
|
+
* @export
|
|
3325
|
+
*/
|
|
3326
|
+
export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3327
|
+
return {
|
|
3328
|
+
/**
|
|
3329
|
+
*
|
|
3330
|
+
* @param {number} [page]
|
|
3331
|
+
* @param {number} [pageSize]
|
|
3332
|
+
* @param {string} [filters] JSON string of FilterUserDto
|
|
3333
|
+
* @param {string} [sort] JSON string of SortUserDto[]
|
|
3334
|
+
* @param {*} [options] Override http request option.
|
|
3335
|
+
* @throws {RequiredError}
|
|
3336
|
+
*/
|
|
3337
|
+
usersControllerGetUsers: async (page?: number, pageSize?: number, filters?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3338
|
+
const localVarPath = `/api/users`;
|
|
3339
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3340
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3341
|
+
let baseOptions;
|
|
3342
|
+
if (configuration) {
|
|
3343
|
+
baseOptions = configuration.baseOptions;
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3347
|
+
const localVarHeaderParameter = {} as any;
|
|
3348
|
+
const localVarQueryParameter = {} as any;
|
|
3349
|
+
|
|
3350
|
+
if (page !== undefined) {
|
|
3351
|
+
localVarQueryParameter['page'] = page;
|
|
3352
|
+
}
|
|
3353
|
+
|
|
3354
|
+
if (pageSize !== undefined) {
|
|
3355
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3358
|
+
if (filters !== undefined) {
|
|
3359
|
+
localVarQueryParameter['filters'] = filters;
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3362
|
+
if (sort !== undefined) {
|
|
3363
|
+
localVarQueryParameter['sort'] = sort;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
|
|
3367
|
+
|
|
3368
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3369
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3370
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3371
|
+
|
|
3372
|
+
return {
|
|
3373
|
+
url: toPathString(localVarUrlObj),
|
|
3374
|
+
options: localVarRequestOptions,
|
|
3375
|
+
};
|
|
3376
|
+
},
|
|
3377
|
+
}
|
|
3378
|
+
};
|
|
3379
|
+
|
|
3380
|
+
/**
|
|
3381
|
+
* UsersApi - functional programming interface
|
|
3382
|
+
* @export
|
|
3383
|
+
*/
|
|
3384
|
+
export const UsersApiFp = function(configuration?: Configuration) {
|
|
3385
|
+
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
|
|
3386
|
+
return {
|
|
3387
|
+
/**
|
|
3388
|
+
*
|
|
3389
|
+
* @param {number} [page]
|
|
3390
|
+
* @param {number} [pageSize]
|
|
3391
|
+
* @param {string} [filters] JSON string of FilterUserDto
|
|
3392
|
+
* @param {string} [sort] JSON string of SortUserDto[]
|
|
3393
|
+
* @param {*} [options] Override http request option.
|
|
3394
|
+
* @throws {RequiredError}
|
|
3395
|
+
*/
|
|
3396
|
+
async usersControllerGetUsers(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UsersPaginationResultDto>> {
|
|
3397
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerGetUsers(page, pageSize, filters, sort, options);
|
|
3398
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3399
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerGetUsers']?.[localVarOperationServerIndex]?.url;
|
|
3400
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3401
|
+
},
|
|
3402
|
+
}
|
|
3403
|
+
};
|
|
3404
|
+
|
|
3405
|
+
/**
|
|
3406
|
+
* UsersApi - factory interface
|
|
3407
|
+
* @export
|
|
3408
|
+
*/
|
|
3409
|
+
export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3410
|
+
const localVarFp = UsersApiFp(configuration)
|
|
3411
|
+
return {
|
|
3412
|
+
/**
|
|
3413
|
+
*
|
|
3414
|
+
* @param {number} [page]
|
|
3415
|
+
* @param {number} [pageSize]
|
|
3416
|
+
* @param {string} [filters] JSON string of FilterUserDto
|
|
3417
|
+
* @param {string} [sort] JSON string of SortUserDto[]
|
|
3418
|
+
* @param {*} [options] Override http request option.
|
|
3419
|
+
* @throws {RequiredError}
|
|
3420
|
+
*/
|
|
3421
|
+
usersControllerGetUsers(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<UsersPaginationResultDto> {
|
|
3422
|
+
return localVarFp.usersControllerGetUsers(page, pageSize, filters, sort, options).then((request) => request(axios, basePath));
|
|
3423
|
+
},
|
|
3424
|
+
};
|
|
3425
|
+
};
|
|
3426
|
+
|
|
3427
|
+
/**
|
|
3428
|
+
* UsersApi - object-oriented interface
|
|
3429
|
+
* @export
|
|
3430
|
+
* @class UsersApi
|
|
3431
|
+
* @extends {BaseAPI}
|
|
3432
|
+
*/
|
|
3433
|
+
export class UsersApi extends BaseAPI {
|
|
3434
|
+
/**
|
|
3435
|
+
*
|
|
3436
|
+
* @param {number} [page]
|
|
3437
|
+
* @param {number} [pageSize]
|
|
3438
|
+
* @param {string} [filters] JSON string of FilterUserDto
|
|
3439
|
+
* @param {string} [sort] JSON string of SortUserDto[]
|
|
3440
|
+
* @param {*} [options] Override http request option.
|
|
3441
|
+
* @throws {RequiredError}
|
|
3442
|
+
* @memberof UsersApi
|
|
3443
|
+
*/
|
|
3444
|
+
public usersControllerGetUsers(page?: number, pageSize?: number, filters?: string, sort?: string, options?: RawAxiosRequestConfig) {
|
|
3445
|
+
return UsersApiFp(this.configuration).usersControllerGetUsers(page, pageSize, filters, sort, options).then((request) => request(this.axios, this.basePath));
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
|
|
3449
|
+
|
|
3450
|
+
|
|
3451
|
+
/**
|
|
3452
|
+
* VerificationApi - axios parameter creator
|
|
3453
|
+
* @export
|
|
3454
|
+
*/
|
|
3455
|
+
export const VerificationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3456
|
+
return {
|
|
3457
|
+
/**
|
|
3458
|
+
*
|
|
3459
|
+
* @summary Verify a code
|
|
3460
|
+
* @param {VerifyCodeDto} verifyCodeDto
|
|
3461
|
+
* @param {*} [options] Override http request option.
|
|
3462
|
+
* @throws {RequiredError}
|
|
3463
|
+
*/
|
|
3464
|
+
verificationControllerVerifyCode: async (verifyCodeDto: VerifyCodeDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3465
|
+
// verify required parameter 'verifyCodeDto' is not null or undefined
|
|
3466
|
+
assertParamExists('verificationControllerVerifyCode', 'verifyCodeDto', verifyCodeDto)
|
|
3467
|
+
const localVarPath = `/api/verification/verify`;
|
|
3468
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3469
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3470
|
+
let baseOptions;
|
|
3471
|
+
if (configuration) {
|
|
3472
|
+
baseOptions = configuration.baseOptions;
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3475
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3476
|
+
const localVarHeaderParameter = {} as any;
|
|
3477
|
+
const localVarQueryParameter = {} as any;
|
|
3478
|
+
|
|
3479
|
+
|
|
3480
|
+
|
|
3481
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3482
|
+
|
|
3483
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3484
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3485
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3486
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyCodeDto, localVarRequestOptions, configuration)
|
|
3487
|
+
|
|
3488
|
+
return {
|
|
3489
|
+
url: toPathString(localVarUrlObj),
|
|
3490
|
+
options: localVarRequestOptions,
|
|
3491
|
+
};
|
|
3492
|
+
},
|
|
3493
|
+
}
|
|
3494
|
+
};
|
|
3495
|
+
|
|
3496
|
+
/**
|
|
3497
|
+
* VerificationApi - functional programming interface
|
|
3498
|
+
* @export
|
|
3499
|
+
*/
|
|
3500
|
+
export const VerificationApiFp = function(configuration?: Configuration) {
|
|
3501
|
+
const localVarAxiosParamCreator = VerificationApiAxiosParamCreator(configuration)
|
|
3502
|
+
return {
|
|
3503
|
+
/**
|
|
3504
|
+
*
|
|
3505
|
+
* @summary Verify a code
|
|
3506
|
+
* @param {VerifyCodeDto} verifyCodeDto
|
|
3507
|
+
* @param {*} [options] Override http request option.
|
|
3508
|
+
* @throws {RequiredError}
|
|
3509
|
+
*/
|
|
3510
|
+
async verificationControllerVerifyCode(verifyCodeDto: VerifyCodeDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyCodeResponseDto>> {
|
|
3511
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verificationControllerVerifyCode(verifyCodeDto, options);
|
|
3512
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3513
|
+
const localVarOperationServerBasePath = operationServerMap['VerificationApi.verificationControllerVerifyCode']?.[localVarOperationServerIndex]?.url;
|
|
3514
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3515
|
+
},
|
|
3516
|
+
}
|
|
3517
|
+
};
|
|
3518
|
+
|
|
3519
|
+
/**
|
|
3520
|
+
* VerificationApi - factory interface
|
|
3521
|
+
* @export
|
|
3522
|
+
*/
|
|
3523
|
+
export const VerificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3524
|
+
const localVarFp = VerificationApiFp(configuration)
|
|
3525
|
+
return {
|
|
3526
|
+
/**
|
|
3527
|
+
*
|
|
3528
|
+
* @summary Verify a code
|
|
3529
|
+
* @param {VerifyCodeDto} verifyCodeDto
|
|
3530
|
+
* @param {*} [options] Override http request option.
|
|
3531
|
+
* @throws {RequiredError}
|
|
3532
|
+
*/
|
|
3533
|
+
verificationControllerVerifyCode(verifyCodeDto: VerifyCodeDto, options?: RawAxiosRequestConfig): AxiosPromise<VerifyCodeResponseDto> {
|
|
3534
|
+
return localVarFp.verificationControllerVerifyCode(verifyCodeDto, options).then((request) => request(axios, basePath));
|
|
3535
|
+
},
|
|
3536
|
+
};
|
|
3537
|
+
};
|
|
3538
|
+
|
|
3539
|
+
/**
|
|
3540
|
+
* VerificationApi - object-oriented interface
|
|
3541
|
+
* @export
|
|
3542
|
+
* @class VerificationApi
|
|
3543
|
+
* @extends {BaseAPI}
|
|
3544
|
+
*/
|
|
3545
|
+
export class VerificationApi extends BaseAPI {
|
|
3546
|
+
/**
|
|
3547
|
+
*
|
|
3548
|
+
* @summary Verify a code
|
|
3549
|
+
* @param {VerifyCodeDto} verifyCodeDto
|
|
3550
|
+
* @param {*} [options] Override http request option.
|
|
3551
|
+
* @throws {RequiredError}
|
|
3552
|
+
* @memberof VerificationApi
|
|
3553
|
+
*/
|
|
3554
|
+
public verificationControllerVerifyCode(verifyCodeDto: VerifyCodeDto, options?: RawAxiosRequestConfig) {
|
|
3555
|
+
return VerificationApiFp(this.configuration).verificationControllerVerifyCode(verifyCodeDto, options).then((request) => request(this.axios, this.basePath));
|
|
3556
|
+
}
|
|
3557
|
+
}
|
|
3558
|
+
|
|
3559
|
+
|
|
3560
|
+
|