@dimrev4/fitness-v3-backend 0.0.54 → 0.0.55

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.
@@ -5,10 +5,6 @@ api.ts
5
5
  base.ts
6
6
  common.ts
7
7
  configuration.ts
8
- docs/AdminContentStatsDto.md
9
- docs/AdminRecentUserDto.md
10
- docs/AdminStatsResponseDto.md
11
- docs/AdminV1Api.md
12
8
  docs/AuthV1Api.md
13
9
  docs/ConfirmOtpRequestDto.md
14
10
  docs/CreateExerciseRequestDto.md
package/api.ts CHANGED
@@ -23,93 +23,6 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
- /**
27
- *
28
- * @export
29
- * @interface AdminContentStatsDto
30
- */
31
- export interface AdminContentStatsDto {
32
- /**
33
- *
34
- * @type {number}
35
- * @memberof AdminContentStatsDto
36
- */
37
- 'totalExercises': number;
38
- /**
39
- *
40
- * @type {number}
41
- * @memberof AdminContentStatsDto
42
- */
43
- 'totalIngredients': number;
44
- /**
45
- *
46
- * @type {number}
47
- * @memberof AdminContentStatsDto
48
- */
49
- 'totalMeals': number;
50
- }
51
- /**
52
- *
53
- * @export
54
- * @interface AdminRecentUserDto
55
- */
56
- export interface AdminRecentUserDto {
57
- /**
58
- *
59
- * @type {string}
60
- * @memberof AdminRecentUserDto
61
- */
62
- 'id': string;
63
- /**
64
- *
65
- * @type {string}
66
- * @memberof AdminRecentUserDto
67
- */
68
- 'email': string;
69
- /**
70
- *
71
- * @type {string}
72
- * @memberof AdminRecentUserDto
73
- */
74
- 'firstName': string;
75
- /**
76
- *
77
- * @type {string}
78
- * @memberof AdminRecentUserDto
79
- */
80
- 'lastName': string;
81
- /**
82
- *
83
- * @type {string}
84
- * @memberof AdminRecentUserDto
85
- */
86
- 'createdAt': string;
87
- }
88
- /**
89
- *
90
- * @export
91
- * @interface AdminStatsResponseDto
92
- */
93
- export interface AdminStatsResponseDto {
94
- /**
95
- *
96
- * @type {number}
97
- * @memberof AdminStatsResponseDto
98
- */
99
- 'totalUsers': number;
100
- /**
101
- *
102
- * @type {Array<AdminRecentUserDto>}
103
- * @memberof AdminStatsResponseDto
104
- */
105
- 'recentUsers': Array<AdminRecentUserDto>;
106
- /**
107
- *
108
- * @type {AdminContentStatsDto}
109
- * @memberof AdminStatsResponseDto
110
- */
111
- 'contentStats': AdminContentStatsDto;
112
- }
113
26
  /**
114
27
  *
115
28
  * @export
@@ -3444,131 +3357,6 @@ export interface WorkoutMetaDto {
3444
3357
  'sets': Array<ExerciseSetsDto>;
3445
3358
  }
3446
3359
 
3447
- /**
3448
- * AdminV1Api - axios parameter creator
3449
- * @export
3450
- */
3451
- export const AdminV1ApiAxiosParamCreator = function (configuration?: Configuration) {
3452
- return {
3453
- /**
3454
- *
3455
- * @summary Get admin stats
3456
- * @param {*} [options] Override http request option.
3457
- * @throws {RequiredError}
3458
- */
3459
- adminV1ControllerGetAdminStats: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3460
- const localVarPath = `/api/admin/v1/stats`;
3461
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3462
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3463
- let baseOptions;
3464
- if (configuration) {
3465
- baseOptions = configuration.baseOptions;
3466
- }
3467
-
3468
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3469
- const localVarHeaderParameter = {} as any;
3470
- const localVarQueryParameter = {} as any;
3471
-
3472
- // authentication apiKey required
3473
- await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
3474
-
3475
- // authentication bearer required
3476
- // http bearer authentication required
3477
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
3478
-
3479
-
3480
-
3481
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3482
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3483
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3484
-
3485
- return {
3486
- url: toPathString(localVarUrlObj),
3487
- options: localVarRequestOptions,
3488
- };
3489
- },
3490
- }
3491
- };
3492
-
3493
- /**
3494
- * AdminV1Api - functional programming interface
3495
- * @export
3496
- */
3497
- export const AdminV1ApiFp = function(configuration?: Configuration) {
3498
- const localVarAxiosParamCreator = AdminV1ApiAxiosParamCreator(configuration)
3499
- return {
3500
- /**
3501
- *
3502
- * @summary Get admin stats
3503
- * @param {*} [options] Override http request option.
3504
- * @throws {RequiredError}
3505
- */
3506
- async adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminStatsResponseDto>> {
3507
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1ControllerGetAdminStats(options);
3508
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3509
- const localVarOperationServerBasePath = operationServerMap['AdminV1Api.adminV1ControllerGetAdminStats']?.[localVarOperationServerIndex]?.url;
3510
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3511
- },
3512
- }
3513
- };
3514
-
3515
- /**
3516
- * AdminV1Api - factory interface
3517
- * @export
3518
- */
3519
- export const AdminV1ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3520
- const localVarFp = AdminV1ApiFp(configuration)
3521
- return {
3522
- /**
3523
- *
3524
- * @summary Get admin stats
3525
- * @param {*} [options] Override http request option.
3526
- * @throws {RequiredError}
3527
- */
3528
- adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig): AxiosPromise<AdminStatsResponseDto> {
3529
- return localVarFp.adminV1ControllerGetAdminStats(options).then((request) => request(axios, basePath));
3530
- },
3531
- };
3532
- };
3533
-
3534
- /**
3535
- * AdminV1Api - interface
3536
- * @export
3537
- * @interface AdminV1Api
3538
- */
3539
- export interface AdminV1ApiInterface {
3540
- /**
3541
- *
3542
- * @summary Get admin stats
3543
- * @param {*} [options] Override http request option.
3544
- * @throws {RequiredError}
3545
- * @memberof AdminV1ApiInterface
3546
- */
3547
- adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig): AxiosPromise<AdminStatsResponseDto>;
3548
-
3549
- }
3550
-
3551
- /**
3552
- * AdminV1Api - object-oriented interface
3553
- * @export
3554
- * @class AdminV1Api
3555
- * @extends {BaseAPI}
3556
- */
3557
- export class AdminV1Api extends BaseAPI implements AdminV1ApiInterface {
3558
- /**
3559
- *
3560
- * @summary Get admin stats
3561
- * @param {*} [options] Override http request option.
3562
- * @throws {RequiredError}
3563
- * @memberof AdminV1Api
3564
- */
3565
- public adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig) {
3566
- return AdminV1ApiFp(this.configuration).adminV1ControllerGetAdminStats(options).then((request) => request(this.axios, this.basePath));
3567
- }
3568
- }
3569
-
3570
-
3571
-
3572
3360
  /**
3573
3361
  * AuthV1Api - axios parameter creator
3574
3362
  * @export
package/dist/api.d.ts CHANGED
@@ -13,93 +13,6 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
- /**
17
- *
18
- * @export
19
- * @interface AdminContentStatsDto
20
- */
21
- export interface AdminContentStatsDto {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof AdminContentStatsDto
26
- */
27
- 'totalExercises': number;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof AdminContentStatsDto
32
- */
33
- 'totalIngredients': number;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof AdminContentStatsDto
38
- */
39
- 'totalMeals': number;
40
- }
41
- /**
42
- *
43
- * @export
44
- * @interface AdminRecentUserDto
45
- */
46
- export interface AdminRecentUserDto {
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof AdminRecentUserDto
51
- */
52
- 'id': string;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof AdminRecentUserDto
57
- */
58
- 'email': string;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof AdminRecentUserDto
63
- */
64
- 'firstName': string;
65
- /**
66
- *
67
- * @type {string}
68
- * @memberof AdminRecentUserDto
69
- */
70
- 'lastName': string;
71
- /**
72
- *
73
- * @type {string}
74
- * @memberof AdminRecentUserDto
75
- */
76
- 'createdAt': string;
77
- }
78
- /**
79
- *
80
- * @export
81
- * @interface AdminStatsResponseDto
82
- */
83
- export interface AdminStatsResponseDto {
84
- /**
85
- *
86
- * @type {number}
87
- * @memberof AdminStatsResponseDto
88
- */
89
- 'totalUsers': number;
90
- /**
91
- *
92
- * @type {Array<AdminRecentUserDto>}
93
- * @memberof AdminStatsResponseDto
94
- */
95
- 'recentUsers': Array<AdminRecentUserDto>;
96
- /**
97
- *
98
- * @type {AdminContentStatsDto}
99
- * @memberof AdminStatsResponseDto
100
- */
101
- 'contentStats': AdminContentStatsDto;
102
- }
103
16
  /**
104
17
  *
105
18
  * @export
@@ -3378,76 +3291,6 @@ export interface WorkoutMetaDto {
3378
3291
  */
3379
3292
  'sets': Array<ExerciseSetsDto>;
3380
3293
  }
3381
- /**
3382
- * AdminV1Api - axios parameter creator
3383
- * @export
3384
- */
3385
- export declare const AdminV1ApiAxiosParamCreator: (configuration?: Configuration) => {
3386
- /**
3387
- *
3388
- * @summary Get admin stats
3389
- * @param {*} [options] Override http request option.
3390
- * @throws {RequiredError}
3391
- */
3392
- adminV1ControllerGetAdminStats: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3393
- };
3394
- /**
3395
- * AdminV1Api - functional programming interface
3396
- * @export
3397
- */
3398
- export declare const AdminV1ApiFp: (configuration?: Configuration) => {
3399
- /**
3400
- *
3401
- * @summary Get admin stats
3402
- * @param {*} [options] Override http request option.
3403
- * @throws {RequiredError}
3404
- */
3405
- adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminStatsResponseDto>>;
3406
- };
3407
- /**
3408
- * AdminV1Api - factory interface
3409
- * @export
3410
- */
3411
- export declare const AdminV1ApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3412
- /**
3413
- *
3414
- * @summary Get admin stats
3415
- * @param {*} [options] Override http request option.
3416
- * @throws {RequiredError}
3417
- */
3418
- adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig): AxiosPromise<AdminStatsResponseDto>;
3419
- };
3420
- /**
3421
- * AdminV1Api - interface
3422
- * @export
3423
- * @interface AdminV1Api
3424
- */
3425
- export interface AdminV1ApiInterface {
3426
- /**
3427
- *
3428
- * @summary Get admin stats
3429
- * @param {*} [options] Override http request option.
3430
- * @throws {RequiredError}
3431
- * @memberof AdminV1ApiInterface
3432
- */
3433
- adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig): AxiosPromise<AdminStatsResponseDto>;
3434
- }
3435
- /**
3436
- * AdminV1Api - object-oriented interface
3437
- * @export
3438
- * @class AdminV1Api
3439
- * @extends {BaseAPI}
3440
- */
3441
- export declare class AdminV1Api extends BaseAPI implements AdminV1ApiInterface {
3442
- /**
3443
- *
3444
- * @summary Get admin stats
3445
- * @param {*} [options] Override http request option.
3446
- * @throws {RequiredError}
3447
- * @memberof AdminV1Api
3448
- */
3449
- adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminStatsResponseDto, any, {}>>;
3450
- }
3451
3294
  /**
3452
3295
  * AuthV1Api - axios parameter creator
3453
3296
  * @export
package/dist/api.js CHANGED
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.IngredientsV1ApiFactory = exports.IngredientsV1ApiFp = exports.IngredientsV1ApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.FilesV1Api = exports.FilesV1ApiFactory = exports.FilesV1ApiFp = exports.FilesV1ApiAxiosParamCreator = exports.ExercisesV1Api = exports.ExercisesV1ApiFactory = exports.ExercisesV1ApiFp = exports.ExercisesV1ApiAxiosParamCreator = exports.AuthV1Api = exports.AuthV1ApiFactory = exports.AuthV1ApiFp = exports.AuthV1ApiAxiosParamCreator = exports.AdminV1Api = exports.AdminV1ApiFactory = exports.AdminV1ApiFp = exports.AdminV1ApiAxiosParamCreator = exports.UserMetaDtoGenderEnum = exports.SavedWorkoutDtoResourceTypeEnum = exports.SavedWorkoutDetailsDtoResourceTypeEnum = exports.SavedMealDtoResourceTypeEnum = exports.SavedMealDtoFoodCategoryEnum = exports.SavedMealDtoMealTypeEnum = exports.SavedMealDetailsDtoResourceTypeEnum = exports.SavedMealDetailsDtoFoodCategoryEnum = exports.SavedMealDetailsDtoMealTypeEnum = exports.IngredientQuantityDtoFoodCategoryEnum = exports.IngredientDtoFoodCategoryEnum = exports.ExerciseWithSetsDtoDifficultyEnum = exports.ExerciseWithSetsDtoEquipmentEnum = exports.ExerciseWithSetsDtoBodyPartsEnum = exports.ExerciseWithSetsDtoTypeEnum = exports.ExerciseDtoDifficultyEnum = exports.ExerciseDtoEquipmentEnum = exports.ExerciseDtoBodyPartsEnum = exports.ExerciseDtoTypeEnum = exports.CreateWorkoutRequestDtoResourceTypeEnum = exports.CreateUserMetaRequestDtoGenderEnum = exports.CreateMealRequestDtoResourceTypeEnum = exports.CreateIngredientRequestDtoFoodCategoryEnum = exports.CreateExerciseRequestDtoDifficultyEnum = exports.CreateExerciseRequestDtoEquipmentEnum = exports.CreateExerciseRequestDtoBodyPartsEnum = exports.CreateExerciseRequestDtoTypeEnum = void 0;
26
- exports.UserWorkoutCompletedV1Api = exports.UserWorkoutCompletedV1ApiFactory = exports.UserWorkoutCompletedV1ApiFp = exports.UserWorkoutCompletedV1ApiAxiosParamCreator = exports.UserMealsConsumptionV1Api = exports.UserMealsConsumptionV1ApiFactory = exports.UserMealsConsumptionV1ApiFp = exports.UserMealsConsumptionV1ApiAxiosParamCreator = exports.SavedWorkoutsV1Api = exports.SavedWorkoutsV1ApiFactory = exports.SavedWorkoutsV1ApiFp = exports.SavedWorkoutsV1ApiAxiosParamCreator = exports.SavedMealsV1ControllerGetSavedMealsPaginatedTypesEnum = exports.SavedMealsV1ControllerGetSavedMealsPaginatedFoodCategoriesEnum = exports.SavedMealsV1ControllerGetSavedMealsPaginatedMealTypesEnum = exports.SavedMealsV1ControllerGetAllSavedMealsTypesEnum = exports.SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum = exports.SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum = exports.SavedMealsV1Api = exports.SavedMealsV1ApiFactory = exports.SavedMealsV1ApiFp = exports.SavedMealsV1ApiAxiosParamCreator = exports.MeasurementsV1Api = exports.MeasurementsV1ApiFactory = exports.MeasurementsV1ApiFp = exports.MeasurementsV1ApiAxiosParamCreator = exports.IngredientsV1Api = void 0;
25
+ exports.MeasurementsV1ApiFactory = exports.MeasurementsV1ApiFp = exports.MeasurementsV1ApiAxiosParamCreator = exports.IngredientsV1Api = exports.IngredientsV1ApiFactory = exports.IngredientsV1ApiFp = exports.IngredientsV1ApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.FilesV1Api = exports.FilesV1ApiFactory = exports.FilesV1ApiFp = exports.FilesV1ApiAxiosParamCreator = exports.ExercisesV1Api = exports.ExercisesV1ApiFactory = exports.ExercisesV1ApiFp = exports.ExercisesV1ApiAxiosParamCreator = exports.AuthV1Api = exports.AuthV1ApiFactory = exports.AuthV1ApiFp = exports.AuthV1ApiAxiosParamCreator = exports.UserMetaDtoGenderEnum = exports.SavedWorkoutDtoResourceTypeEnum = exports.SavedWorkoutDetailsDtoResourceTypeEnum = exports.SavedMealDtoResourceTypeEnum = exports.SavedMealDtoFoodCategoryEnum = exports.SavedMealDtoMealTypeEnum = exports.SavedMealDetailsDtoResourceTypeEnum = exports.SavedMealDetailsDtoFoodCategoryEnum = exports.SavedMealDetailsDtoMealTypeEnum = exports.IngredientQuantityDtoFoodCategoryEnum = exports.IngredientDtoFoodCategoryEnum = exports.ExerciseWithSetsDtoDifficultyEnum = exports.ExerciseWithSetsDtoEquipmentEnum = exports.ExerciseWithSetsDtoBodyPartsEnum = exports.ExerciseWithSetsDtoTypeEnum = exports.ExerciseDtoDifficultyEnum = exports.ExerciseDtoEquipmentEnum = exports.ExerciseDtoBodyPartsEnum = exports.ExerciseDtoTypeEnum = exports.CreateWorkoutRequestDtoResourceTypeEnum = exports.CreateUserMetaRequestDtoGenderEnum = exports.CreateMealRequestDtoResourceTypeEnum = exports.CreateIngredientRequestDtoFoodCategoryEnum = exports.CreateExerciseRequestDtoDifficultyEnum = exports.CreateExerciseRequestDtoEquipmentEnum = exports.CreateExerciseRequestDtoBodyPartsEnum = exports.CreateExerciseRequestDtoTypeEnum = void 0;
26
+ exports.UserWorkoutCompletedV1Api = exports.UserWorkoutCompletedV1ApiFactory = exports.UserWorkoutCompletedV1ApiFp = exports.UserWorkoutCompletedV1ApiAxiosParamCreator = exports.UserMealsConsumptionV1Api = exports.UserMealsConsumptionV1ApiFactory = exports.UserMealsConsumptionV1ApiFp = exports.UserMealsConsumptionV1ApiAxiosParamCreator = exports.SavedWorkoutsV1Api = exports.SavedWorkoutsV1ApiFactory = exports.SavedWorkoutsV1ApiFp = exports.SavedWorkoutsV1ApiAxiosParamCreator = exports.SavedMealsV1ControllerGetSavedMealsPaginatedTypesEnum = exports.SavedMealsV1ControllerGetSavedMealsPaginatedFoodCategoriesEnum = exports.SavedMealsV1ControllerGetSavedMealsPaginatedMealTypesEnum = exports.SavedMealsV1ControllerGetAllSavedMealsTypesEnum = exports.SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum = exports.SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum = exports.SavedMealsV1Api = exports.SavedMealsV1ApiFactory = exports.SavedMealsV1ApiFp = exports.SavedMealsV1ApiAxiosParamCreator = exports.MeasurementsV1Api = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -284,108 +284,6 @@ exports.UserMetaDtoGenderEnum = {
284
284
  Male: 'MALE',
285
285
  Female: 'FEMALE'
286
286
  };
287
- /**
288
- * AdminV1Api - axios parameter creator
289
- * @export
290
- */
291
- const AdminV1ApiAxiosParamCreator = function (configuration) {
292
- return {
293
- /**
294
- *
295
- * @summary Get admin stats
296
- * @param {*} [options] Override http request option.
297
- * @throws {RequiredError}
298
- */
299
- adminV1ControllerGetAdminStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
300
- const localVarPath = `/api/admin/v1/stats`;
301
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
302
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
303
- let baseOptions;
304
- if (configuration) {
305
- baseOptions = configuration.baseOptions;
306
- }
307
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
308
- const localVarHeaderParameter = {};
309
- const localVarQueryParameter = {};
310
- // authentication apiKey required
311
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
312
- // authentication bearer required
313
- // http bearer authentication required
314
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
315
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
316
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
317
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
318
- return {
319
- url: (0, common_1.toPathString)(localVarUrlObj),
320
- options: localVarRequestOptions,
321
- };
322
- }),
323
- };
324
- };
325
- exports.AdminV1ApiAxiosParamCreator = AdminV1ApiAxiosParamCreator;
326
- /**
327
- * AdminV1Api - functional programming interface
328
- * @export
329
- */
330
- const AdminV1ApiFp = function (configuration) {
331
- const localVarAxiosParamCreator = (0, exports.AdminV1ApiAxiosParamCreator)(configuration);
332
- return {
333
- /**
334
- *
335
- * @summary Get admin stats
336
- * @param {*} [options] Override http request option.
337
- * @throws {RequiredError}
338
- */
339
- adminV1ControllerGetAdminStats(options) {
340
- return __awaiter(this, void 0, void 0, function* () {
341
- var _a, _b, _c;
342
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1ControllerGetAdminStats(options);
343
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
344
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminV1Api.adminV1ControllerGetAdminStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
345
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
346
- });
347
- },
348
- };
349
- };
350
- exports.AdminV1ApiFp = AdminV1ApiFp;
351
- /**
352
- * AdminV1Api - factory interface
353
- * @export
354
- */
355
- const AdminV1ApiFactory = function (configuration, basePath, axios) {
356
- const localVarFp = (0, exports.AdminV1ApiFp)(configuration);
357
- return {
358
- /**
359
- *
360
- * @summary Get admin stats
361
- * @param {*} [options] Override http request option.
362
- * @throws {RequiredError}
363
- */
364
- adminV1ControllerGetAdminStats(options) {
365
- return localVarFp.adminV1ControllerGetAdminStats(options).then((request) => request(axios, basePath));
366
- },
367
- };
368
- };
369
- exports.AdminV1ApiFactory = AdminV1ApiFactory;
370
- /**
371
- * AdminV1Api - object-oriented interface
372
- * @export
373
- * @class AdminV1Api
374
- * @extends {BaseAPI}
375
- */
376
- class AdminV1Api extends base_1.BaseAPI {
377
- /**
378
- *
379
- * @summary Get admin stats
380
- * @param {*} [options] Override http request option.
381
- * @throws {RequiredError}
382
- * @memberof AdminV1Api
383
- */
384
- adminV1ControllerGetAdminStats(options) {
385
- return (0, exports.AdminV1ApiFp)(this.configuration).adminV1ControllerGetAdminStats(options).then((request) => request(this.axios, this.basePath));
386
- }
387
- }
388
- exports.AdminV1Api = AdminV1Api;
389
287
  /**
390
288
  * AuthV1Api - axios parameter creator
391
289
  * @export
package/dist/esm/api.d.ts CHANGED
@@ -13,93 +13,6 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
- /**
17
- *
18
- * @export
19
- * @interface AdminContentStatsDto
20
- */
21
- export interface AdminContentStatsDto {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof AdminContentStatsDto
26
- */
27
- 'totalExercises': number;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof AdminContentStatsDto
32
- */
33
- 'totalIngredients': number;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof AdminContentStatsDto
38
- */
39
- 'totalMeals': number;
40
- }
41
- /**
42
- *
43
- * @export
44
- * @interface AdminRecentUserDto
45
- */
46
- export interface AdminRecentUserDto {
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof AdminRecentUserDto
51
- */
52
- 'id': string;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof AdminRecentUserDto
57
- */
58
- 'email': string;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof AdminRecentUserDto
63
- */
64
- 'firstName': string;
65
- /**
66
- *
67
- * @type {string}
68
- * @memberof AdminRecentUserDto
69
- */
70
- 'lastName': string;
71
- /**
72
- *
73
- * @type {string}
74
- * @memberof AdminRecentUserDto
75
- */
76
- 'createdAt': string;
77
- }
78
- /**
79
- *
80
- * @export
81
- * @interface AdminStatsResponseDto
82
- */
83
- export interface AdminStatsResponseDto {
84
- /**
85
- *
86
- * @type {number}
87
- * @memberof AdminStatsResponseDto
88
- */
89
- 'totalUsers': number;
90
- /**
91
- *
92
- * @type {Array<AdminRecentUserDto>}
93
- * @memberof AdminStatsResponseDto
94
- */
95
- 'recentUsers': Array<AdminRecentUserDto>;
96
- /**
97
- *
98
- * @type {AdminContentStatsDto}
99
- * @memberof AdminStatsResponseDto
100
- */
101
- 'contentStats': AdminContentStatsDto;
102
- }
103
16
  /**
104
17
  *
105
18
  * @export
@@ -3378,76 +3291,6 @@ export interface WorkoutMetaDto {
3378
3291
  */
3379
3292
  'sets': Array<ExerciseSetsDto>;
3380
3293
  }
3381
- /**
3382
- * AdminV1Api - axios parameter creator
3383
- * @export
3384
- */
3385
- export declare const AdminV1ApiAxiosParamCreator: (configuration?: Configuration) => {
3386
- /**
3387
- *
3388
- * @summary Get admin stats
3389
- * @param {*} [options] Override http request option.
3390
- * @throws {RequiredError}
3391
- */
3392
- adminV1ControllerGetAdminStats: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3393
- };
3394
- /**
3395
- * AdminV1Api - functional programming interface
3396
- * @export
3397
- */
3398
- export declare const AdminV1ApiFp: (configuration?: Configuration) => {
3399
- /**
3400
- *
3401
- * @summary Get admin stats
3402
- * @param {*} [options] Override http request option.
3403
- * @throws {RequiredError}
3404
- */
3405
- adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminStatsResponseDto>>;
3406
- };
3407
- /**
3408
- * AdminV1Api - factory interface
3409
- * @export
3410
- */
3411
- export declare const AdminV1ApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3412
- /**
3413
- *
3414
- * @summary Get admin stats
3415
- * @param {*} [options] Override http request option.
3416
- * @throws {RequiredError}
3417
- */
3418
- adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig): AxiosPromise<AdminStatsResponseDto>;
3419
- };
3420
- /**
3421
- * AdminV1Api - interface
3422
- * @export
3423
- * @interface AdminV1Api
3424
- */
3425
- export interface AdminV1ApiInterface {
3426
- /**
3427
- *
3428
- * @summary Get admin stats
3429
- * @param {*} [options] Override http request option.
3430
- * @throws {RequiredError}
3431
- * @memberof AdminV1ApiInterface
3432
- */
3433
- adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig): AxiosPromise<AdminStatsResponseDto>;
3434
- }
3435
- /**
3436
- * AdminV1Api - object-oriented interface
3437
- * @export
3438
- * @class AdminV1Api
3439
- * @extends {BaseAPI}
3440
- */
3441
- export declare class AdminV1Api extends BaseAPI implements AdminV1ApiInterface {
3442
- /**
3443
- *
3444
- * @summary Get admin stats
3445
- * @param {*} [options] Override http request option.
3446
- * @throws {RequiredError}
3447
- * @memberof AdminV1Api
3448
- */
3449
- adminV1ControllerGetAdminStats(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminStatsResponseDto, any, {}>>;
3450
- }
3451
3294
  /**
3452
3295
  * AuthV1Api - axios parameter creator
3453
3296
  * @export
package/dist/esm/api.js CHANGED
@@ -280,104 +280,6 @@ export const UserMetaDtoGenderEnum = {
280
280
  Male: 'MALE',
281
281
  Female: 'FEMALE'
282
282
  };
283
- /**
284
- * AdminV1Api - axios parameter creator
285
- * @export
286
- */
287
- export const AdminV1ApiAxiosParamCreator = function (configuration) {
288
- return {
289
- /**
290
- *
291
- * @summary Get admin stats
292
- * @param {*} [options] Override http request option.
293
- * @throws {RequiredError}
294
- */
295
- adminV1ControllerGetAdminStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
296
- const localVarPath = `/api/admin/v1/stats`;
297
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
298
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
299
- let baseOptions;
300
- if (configuration) {
301
- baseOptions = configuration.baseOptions;
302
- }
303
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
304
- const localVarHeaderParameter = {};
305
- const localVarQueryParameter = {};
306
- // authentication apiKey required
307
- yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
308
- // authentication bearer required
309
- // http bearer authentication required
310
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
311
- setSearchParams(localVarUrlObj, localVarQueryParameter);
312
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
313
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
314
- return {
315
- url: toPathString(localVarUrlObj),
316
- options: localVarRequestOptions,
317
- };
318
- }),
319
- };
320
- };
321
- /**
322
- * AdminV1Api - functional programming interface
323
- * @export
324
- */
325
- export const AdminV1ApiFp = function (configuration) {
326
- const localVarAxiosParamCreator = AdminV1ApiAxiosParamCreator(configuration);
327
- return {
328
- /**
329
- *
330
- * @summary Get admin stats
331
- * @param {*} [options] Override http request option.
332
- * @throws {RequiredError}
333
- */
334
- adminV1ControllerGetAdminStats(options) {
335
- return __awaiter(this, void 0, void 0, function* () {
336
- var _a, _b, _c;
337
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1ControllerGetAdminStats(options);
338
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
339
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminV1Api.adminV1ControllerGetAdminStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
340
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
341
- });
342
- },
343
- };
344
- };
345
- /**
346
- * AdminV1Api - factory interface
347
- * @export
348
- */
349
- export const AdminV1ApiFactory = function (configuration, basePath, axios) {
350
- const localVarFp = AdminV1ApiFp(configuration);
351
- return {
352
- /**
353
- *
354
- * @summary Get admin stats
355
- * @param {*} [options] Override http request option.
356
- * @throws {RequiredError}
357
- */
358
- adminV1ControllerGetAdminStats(options) {
359
- return localVarFp.adminV1ControllerGetAdminStats(options).then((request) => request(axios, basePath));
360
- },
361
- };
362
- };
363
- /**
364
- * AdminV1Api - object-oriented interface
365
- * @export
366
- * @class AdminV1Api
367
- * @extends {BaseAPI}
368
- */
369
- export class AdminV1Api extends BaseAPI {
370
- /**
371
- *
372
- * @summary Get admin stats
373
- * @param {*} [options] Override http request option.
374
- * @throws {RequiredError}
375
- * @memberof AdminV1Api
376
- */
377
- adminV1ControllerGetAdminStats(options) {
378
- return AdminV1ApiFp(this.configuration).adminV1ControllerGetAdminStats(options).then((request) => request(this.axios, this.basePath));
379
- }
380
- }
381
283
  /**
382
284
  * AuthV1Api - axios parameter creator
383
285
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimrev4/fitness-v3-backend",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "OpenAPI client for @dimrev4/fitness-v3-backend",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {