@dimrev4/fitness-v3-backend 0.0.55 → 0.0.56
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 +3 -0
- package/api.ts +175 -0
- package/dist/api.d.ts +120 -0
- package/dist/api.js +103 -1
- package/dist/esm/api.d.ts +120 -0
- package/dist/esm/api.js +98 -0
- package/docs/GetUserStatsResponseDto.md +22 -0
- package/docs/PrivilegedV1Api.md +55 -0
- package/docs/UserStatsSummaryDto.md +26 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -39,6 +39,7 @@ docs/GetIngredientsResponseDto.md
|
|
|
39
39
|
docs/GetMeResponseDto.md
|
|
40
40
|
docs/GetMealsResponseDto.md
|
|
41
41
|
docs/GetMeasurementsResponseDto.md
|
|
42
|
+
docs/GetUserStatsResponseDto.md
|
|
42
43
|
docs/GetWorkoutsResponseDto.md
|
|
43
44
|
docs/GroupDto.md
|
|
44
45
|
docs/GroupGetPresignedPostUrlRequestDto.md
|
|
@@ -53,6 +54,7 @@ docs/MeasurementDto.md
|
|
|
53
54
|
docs/MeasurementsV1Api.md
|
|
54
55
|
docs/PresignedGetDataDto.md
|
|
55
56
|
docs/PresignedPostDataDto.md
|
|
57
|
+
docs/PrivilegedV1Api.md
|
|
56
58
|
docs/PublicGetPresignedPostUrlRequestDto.md
|
|
57
59
|
docs/RefreshRequestDto.md
|
|
58
60
|
docs/RegisterRequestDto.md
|
|
@@ -74,6 +76,7 @@ docs/UserMealConsumptionDailySummeryDto.md
|
|
|
74
76
|
docs/UserMealConsumptionDetailsDto.md
|
|
75
77
|
docs/UserMealsConsumptionV1Api.md
|
|
76
78
|
docs/UserMetaDto.md
|
|
79
|
+
docs/UserStatsSummaryDto.md
|
|
77
80
|
docs/UserToGroupDetailsDto.md
|
|
78
81
|
docs/UserWorkoutCompletedDetailsDto.md
|
|
79
82
|
docs/UserWorkoutCompletedV1Api.md
|
package/api.ts
CHANGED
|
@@ -1304,6 +1304,25 @@ export interface GetMeasurementsResponseDto {
|
|
|
1304
1304
|
*/
|
|
1305
1305
|
'hasPreviousPage': boolean;
|
|
1306
1306
|
}
|
|
1307
|
+
/**
|
|
1308
|
+
*
|
|
1309
|
+
* @export
|
|
1310
|
+
* @interface GetUserStatsResponseDto
|
|
1311
|
+
*/
|
|
1312
|
+
export interface GetUserStatsResponseDto {
|
|
1313
|
+
/**
|
|
1314
|
+
* Total number of active users
|
|
1315
|
+
* @type {number}
|
|
1316
|
+
* @memberof GetUserStatsResponseDto
|
|
1317
|
+
*/
|
|
1318
|
+
'count': number;
|
|
1319
|
+
/**
|
|
1320
|
+
* Last 5 registered users (by createdAt, descending)
|
|
1321
|
+
* @type {Array<UserStatsSummaryDto>}
|
|
1322
|
+
* @memberof GetUserStatsResponseDto
|
|
1323
|
+
*/
|
|
1324
|
+
'lastRegisteredUsers': Array<UserStatsSummaryDto>;
|
|
1325
|
+
}
|
|
1307
1326
|
/**
|
|
1308
1327
|
*
|
|
1309
1328
|
* @export
|
|
@@ -3197,6 +3216,37 @@ export const UserMetaDtoGenderEnum = {
|
|
|
3197
3216
|
|
|
3198
3217
|
export type UserMetaDtoGenderEnum = typeof UserMetaDtoGenderEnum[keyof typeof UserMetaDtoGenderEnum];
|
|
3199
3218
|
|
|
3219
|
+
/**
|
|
3220
|
+
*
|
|
3221
|
+
* @export
|
|
3222
|
+
* @interface UserStatsSummaryDto
|
|
3223
|
+
*/
|
|
3224
|
+
export interface UserStatsSummaryDto {
|
|
3225
|
+
/**
|
|
3226
|
+
* User ID
|
|
3227
|
+
* @type {string}
|
|
3228
|
+
* @memberof UserStatsSummaryDto
|
|
3229
|
+
*/
|
|
3230
|
+
'id': string;
|
|
3231
|
+
/**
|
|
3232
|
+
* Username
|
|
3233
|
+
* @type {string}
|
|
3234
|
+
* @memberof UserStatsSummaryDto
|
|
3235
|
+
*/
|
|
3236
|
+
'username': string;
|
|
3237
|
+
/**
|
|
3238
|
+
* Email address
|
|
3239
|
+
* @type {string}
|
|
3240
|
+
* @memberof UserStatsSummaryDto
|
|
3241
|
+
*/
|
|
3242
|
+
'email': string;
|
|
3243
|
+
/**
|
|
3244
|
+
* Registration timestamp
|
|
3245
|
+
* @type {string}
|
|
3246
|
+
* @memberof UserStatsSummaryDto
|
|
3247
|
+
*/
|
|
3248
|
+
'createdAt': string;
|
|
3249
|
+
}
|
|
3200
3250
|
/**
|
|
3201
3251
|
*
|
|
3202
3252
|
* @export
|
|
@@ -7579,6 +7629,131 @@ export class MeasurementsV1Api extends BaseAPI implements MeasurementsV1ApiInter
|
|
|
7579
7629
|
|
|
7580
7630
|
|
|
7581
7631
|
|
|
7632
|
+
/**
|
|
7633
|
+
* PrivilegedV1Api - axios parameter creator
|
|
7634
|
+
* @export
|
|
7635
|
+
*/
|
|
7636
|
+
export const PrivilegedV1ApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7637
|
+
return {
|
|
7638
|
+
/**
|
|
7639
|
+
*
|
|
7640
|
+
* @summary Get user stats (privileged users only)
|
|
7641
|
+
* @param {*} [options] Override http request option.
|
|
7642
|
+
* @throws {RequiredError}
|
|
7643
|
+
*/
|
|
7644
|
+
privilegedV1ControllerGetUserStats: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7645
|
+
const localVarPath = `/api/privileged/v1/users/stats`;
|
|
7646
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7647
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7648
|
+
let baseOptions;
|
|
7649
|
+
if (configuration) {
|
|
7650
|
+
baseOptions = configuration.baseOptions;
|
|
7651
|
+
}
|
|
7652
|
+
|
|
7653
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7654
|
+
const localVarHeaderParameter = {} as any;
|
|
7655
|
+
const localVarQueryParameter = {} as any;
|
|
7656
|
+
|
|
7657
|
+
// authentication apiKey required
|
|
7658
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
7659
|
+
|
|
7660
|
+
// authentication bearer required
|
|
7661
|
+
// http bearer authentication required
|
|
7662
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7663
|
+
|
|
7664
|
+
|
|
7665
|
+
|
|
7666
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7667
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7668
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7669
|
+
|
|
7670
|
+
return {
|
|
7671
|
+
url: toPathString(localVarUrlObj),
|
|
7672
|
+
options: localVarRequestOptions,
|
|
7673
|
+
};
|
|
7674
|
+
},
|
|
7675
|
+
}
|
|
7676
|
+
};
|
|
7677
|
+
|
|
7678
|
+
/**
|
|
7679
|
+
* PrivilegedV1Api - functional programming interface
|
|
7680
|
+
* @export
|
|
7681
|
+
*/
|
|
7682
|
+
export const PrivilegedV1ApiFp = function(configuration?: Configuration) {
|
|
7683
|
+
const localVarAxiosParamCreator = PrivilegedV1ApiAxiosParamCreator(configuration)
|
|
7684
|
+
return {
|
|
7685
|
+
/**
|
|
7686
|
+
*
|
|
7687
|
+
* @summary Get user stats (privileged users only)
|
|
7688
|
+
* @param {*} [options] Override http request option.
|
|
7689
|
+
* @throws {RequiredError}
|
|
7690
|
+
*/
|
|
7691
|
+
async privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserStatsResponseDto>> {
|
|
7692
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.privilegedV1ControllerGetUserStats(options);
|
|
7693
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7694
|
+
const localVarOperationServerBasePath = operationServerMap['PrivilegedV1Api.privilegedV1ControllerGetUserStats']?.[localVarOperationServerIndex]?.url;
|
|
7695
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7696
|
+
},
|
|
7697
|
+
}
|
|
7698
|
+
};
|
|
7699
|
+
|
|
7700
|
+
/**
|
|
7701
|
+
* PrivilegedV1Api - factory interface
|
|
7702
|
+
* @export
|
|
7703
|
+
*/
|
|
7704
|
+
export const PrivilegedV1ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7705
|
+
const localVarFp = PrivilegedV1ApiFp(configuration)
|
|
7706
|
+
return {
|
|
7707
|
+
/**
|
|
7708
|
+
*
|
|
7709
|
+
* @summary Get user stats (privileged users only)
|
|
7710
|
+
* @param {*} [options] Override http request option.
|
|
7711
|
+
* @throws {RequiredError}
|
|
7712
|
+
*/
|
|
7713
|
+
privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig): AxiosPromise<GetUserStatsResponseDto> {
|
|
7714
|
+
return localVarFp.privilegedV1ControllerGetUserStats(options).then((request) => request(axios, basePath));
|
|
7715
|
+
},
|
|
7716
|
+
};
|
|
7717
|
+
};
|
|
7718
|
+
|
|
7719
|
+
/**
|
|
7720
|
+
* PrivilegedV1Api - interface
|
|
7721
|
+
* @export
|
|
7722
|
+
* @interface PrivilegedV1Api
|
|
7723
|
+
*/
|
|
7724
|
+
export interface PrivilegedV1ApiInterface {
|
|
7725
|
+
/**
|
|
7726
|
+
*
|
|
7727
|
+
* @summary Get user stats (privileged users only)
|
|
7728
|
+
* @param {*} [options] Override http request option.
|
|
7729
|
+
* @throws {RequiredError}
|
|
7730
|
+
* @memberof PrivilegedV1ApiInterface
|
|
7731
|
+
*/
|
|
7732
|
+
privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig): AxiosPromise<GetUserStatsResponseDto>;
|
|
7733
|
+
|
|
7734
|
+
}
|
|
7735
|
+
|
|
7736
|
+
/**
|
|
7737
|
+
* PrivilegedV1Api - object-oriented interface
|
|
7738
|
+
* @export
|
|
7739
|
+
* @class PrivilegedV1Api
|
|
7740
|
+
* @extends {BaseAPI}
|
|
7741
|
+
*/
|
|
7742
|
+
export class PrivilegedV1Api extends BaseAPI implements PrivilegedV1ApiInterface {
|
|
7743
|
+
/**
|
|
7744
|
+
*
|
|
7745
|
+
* @summary Get user stats (privileged users only)
|
|
7746
|
+
* @param {*} [options] Override http request option.
|
|
7747
|
+
* @throws {RequiredError}
|
|
7748
|
+
* @memberof PrivilegedV1Api
|
|
7749
|
+
*/
|
|
7750
|
+
public privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig) {
|
|
7751
|
+
return PrivilegedV1ApiFp(this.configuration).privilegedV1ControllerGetUserStats(options).then((request) => request(this.axios, this.basePath));
|
|
7752
|
+
}
|
|
7753
|
+
}
|
|
7754
|
+
|
|
7755
|
+
|
|
7756
|
+
|
|
7582
7757
|
/**
|
|
7583
7758
|
* SavedMealsV1Api - axios parameter creator
|
|
7584
7759
|
* @export
|
package/dist/api.d.ts
CHANGED
|
@@ -1264,6 +1264,25 @@ export interface GetMeasurementsResponseDto {
|
|
|
1264
1264
|
*/
|
|
1265
1265
|
'hasPreviousPage': boolean;
|
|
1266
1266
|
}
|
|
1267
|
+
/**
|
|
1268
|
+
*
|
|
1269
|
+
* @export
|
|
1270
|
+
* @interface GetUserStatsResponseDto
|
|
1271
|
+
*/
|
|
1272
|
+
export interface GetUserStatsResponseDto {
|
|
1273
|
+
/**
|
|
1274
|
+
* Total number of active users
|
|
1275
|
+
* @type {number}
|
|
1276
|
+
* @memberof GetUserStatsResponseDto
|
|
1277
|
+
*/
|
|
1278
|
+
'count': number;
|
|
1279
|
+
/**
|
|
1280
|
+
* Last 5 registered users (by createdAt, descending)
|
|
1281
|
+
* @type {Array<UserStatsSummaryDto>}
|
|
1282
|
+
* @memberof GetUserStatsResponseDto
|
|
1283
|
+
*/
|
|
1284
|
+
'lastRegisteredUsers': Array<UserStatsSummaryDto>;
|
|
1285
|
+
}
|
|
1267
1286
|
/**
|
|
1268
1287
|
*
|
|
1269
1288
|
* @export
|
|
@@ -3132,6 +3151,37 @@ export declare const UserMetaDtoGenderEnum: {
|
|
|
3132
3151
|
readonly Female: "FEMALE";
|
|
3133
3152
|
};
|
|
3134
3153
|
export type UserMetaDtoGenderEnum = typeof UserMetaDtoGenderEnum[keyof typeof UserMetaDtoGenderEnum];
|
|
3154
|
+
/**
|
|
3155
|
+
*
|
|
3156
|
+
* @export
|
|
3157
|
+
* @interface UserStatsSummaryDto
|
|
3158
|
+
*/
|
|
3159
|
+
export interface UserStatsSummaryDto {
|
|
3160
|
+
/**
|
|
3161
|
+
* User ID
|
|
3162
|
+
* @type {string}
|
|
3163
|
+
* @memberof UserStatsSummaryDto
|
|
3164
|
+
*/
|
|
3165
|
+
'id': string;
|
|
3166
|
+
/**
|
|
3167
|
+
* Username
|
|
3168
|
+
* @type {string}
|
|
3169
|
+
* @memberof UserStatsSummaryDto
|
|
3170
|
+
*/
|
|
3171
|
+
'username': string;
|
|
3172
|
+
/**
|
|
3173
|
+
* Email address
|
|
3174
|
+
* @type {string}
|
|
3175
|
+
* @memberof UserStatsSummaryDto
|
|
3176
|
+
*/
|
|
3177
|
+
'email': string;
|
|
3178
|
+
/**
|
|
3179
|
+
* Registration timestamp
|
|
3180
|
+
* @type {string}
|
|
3181
|
+
* @memberof UserStatsSummaryDto
|
|
3182
|
+
*/
|
|
3183
|
+
'createdAt': string;
|
|
3184
|
+
}
|
|
3135
3185
|
/**
|
|
3136
3186
|
*
|
|
3137
3187
|
* @export
|
|
@@ -5648,6 +5698,76 @@ export declare class MeasurementsV1Api extends BaseAPI implements MeasurementsV1
|
|
|
5648
5698
|
*/
|
|
5649
5699
|
measurementsV1ControllerUpdateMeasurement(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MeasurementDto, any, {}>>;
|
|
5650
5700
|
}
|
|
5701
|
+
/**
|
|
5702
|
+
* PrivilegedV1Api - axios parameter creator
|
|
5703
|
+
* @export
|
|
5704
|
+
*/
|
|
5705
|
+
export declare const PrivilegedV1ApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5706
|
+
/**
|
|
5707
|
+
*
|
|
5708
|
+
* @summary Get user stats (privileged users only)
|
|
5709
|
+
* @param {*} [options] Override http request option.
|
|
5710
|
+
* @throws {RequiredError}
|
|
5711
|
+
*/
|
|
5712
|
+
privilegedV1ControllerGetUserStats: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5713
|
+
};
|
|
5714
|
+
/**
|
|
5715
|
+
* PrivilegedV1Api - functional programming interface
|
|
5716
|
+
* @export
|
|
5717
|
+
*/
|
|
5718
|
+
export declare const PrivilegedV1ApiFp: (configuration?: Configuration) => {
|
|
5719
|
+
/**
|
|
5720
|
+
*
|
|
5721
|
+
* @summary Get user stats (privileged users only)
|
|
5722
|
+
* @param {*} [options] Override http request option.
|
|
5723
|
+
* @throws {RequiredError}
|
|
5724
|
+
*/
|
|
5725
|
+
privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserStatsResponseDto>>;
|
|
5726
|
+
};
|
|
5727
|
+
/**
|
|
5728
|
+
* PrivilegedV1Api - factory interface
|
|
5729
|
+
* @export
|
|
5730
|
+
*/
|
|
5731
|
+
export declare const PrivilegedV1ApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5732
|
+
/**
|
|
5733
|
+
*
|
|
5734
|
+
* @summary Get user stats (privileged users only)
|
|
5735
|
+
* @param {*} [options] Override http request option.
|
|
5736
|
+
* @throws {RequiredError}
|
|
5737
|
+
*/
|
|
5738
|
+
privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig): AxiosPromise<GetUserStatsResponseDto>;
|
|
5739
|
+
};
|
|
5740
|
+
/**
|
|
5741
|
+
* PrivilegedV1Api - interface
|
|
5742
|
+
* @export
|
|
5743
|
+
* @interface PrivilegedV1Api
|
|
5744
|
+
*/
|
|
5745
|
+
export interface PrivilegedV1ApiInterface {
|
|
5746
|
+
/**
|
|
5747
|
+
*
|
|
5748
|
+
* @summary Get user stats (privileged users only)
|
|
5749
|
+
* @param {*} [options] Override http request option.
|
|
5750
|
+
* @throws {RequiredError}
|
|
5751
|
+
* @memberof PrivilegedV1ApiInterface
|
|
5752
|
+
*/
|
|
5753
|
+
privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig): AxiosPromise<GetUserStatsResponseDto>;
|
|
5754
|
+
}
|
|
5755
|
+
/**
|
|
5756
|
+
* PrivilegedV1Api - object-oriented interface
|
|
5757
|
+
* @export
|
|
5758
|
+
* @class PrivilegedV1Api
|
|
5759
|
+
* @extends {BaseAPI}
|
|
5760
|
+
*/
|
|
5761
|
+
export declare class PrivilegedV1Api extends BaseAPI implements PrivilegedV1ApiInterface {
|
|
5762
|
+
/**
|
|
5763
|
+
*
|
|
5764
|
+
* @summary Get user stats (privileged users only)
|
|
5765
|
+
* @param {*} [options] Override http request option.
|
|
5766
|
+
* @throws {RequiredError}
|
|
5767
|
+
* @memberof PrivilegedV1Api
|
|
5768
|
+
*/
|
|
5769
|
+
privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserStatsResponseDto, any, {}>>;
|
|
5770
|
+
}
|
|
5651
5771
|
/**
|
|
5652
5772
|
* SavedMealsV1Api - axios parameter creator
|
|
5653
5773
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
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;
|
|
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.PrivilegedV1Api = exports.PrivilegedV1ApiFactory = exports.PrivilegedV1ApiFp = exports.PrivilegedV1ApiAxiosParamCreator = 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
|
|
@@ -3206,6 +3206,108 @@ class MeasurementsV1Api extends base_1.BaseAPI {
|
|
|
3206
3206
|
}
|
|
3207
3207
|
}
|
|
3208
3208
|
exports.MeasurementsV1Api = MeasurementsV1Api;
|
|
3209
|
+
/**
|
|
3210
|
+
* PrivilegedV1Api - axios parameter creator
|
|
3211
|
+
* @export
|
|
3212
|
+
*/
|
|
3213
|
+
const PrivilegedV1ApiAxiosParamCreator = function (configuration) {
|
|
3214
|
+
return {
|
|
3215
|
+
/**
|
|
3216
|
+
*
|
|
3217
|
+
* @summary Get user stats (privileged users only)
|
|
3218
|
+
* @param {*} [options] Override http request option.
|
|
3219
|
+
* @throws {RequiredError}
|
|
3220
|
+
*/
|
|
3221
|
+
privilegedV1ControllerGetUserStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3222
|
+
const localVarPath = `/api/privileged/v1/users/stats`;
|
|
3223
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3224
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3225
|
+
let baseOptions;
|
|
3226
|
+
if (configuration) {
|
|
3227
|
+
baseOptions = configuration.baseOptions;
|
|
3228
|
+
}
|
|
3229
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3230
|
+
const localVarHeaderParameter = {};
|
|
3231
|
+
const localVarQueryParameter = {};
|
|
3232
|
+
// authentication apiKey required
|
|
3233
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
3234
|
+
// authentication bearer required
|
|
3235
|
+
// http bearer authentication required
|
|
3236
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3237
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3239
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3240
|
+
return {
|
|
3241
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3242
|
+
options: localVarRequestOptions,
|
|
3243
|
+
};
|
|
3244
|
+
}),
|
|
3245
|
+
};
|
|
3246
|
+
};
|
|
3247
|
+
exports.PrivilegedV1ApiAxiosParamCreator = PrivilegedV1ApiAxiosParamCreator;
|
|
3248
|
+
/**
|
|
3249
|
+
* PrivilegedV1Api - functional programming interface
|
|
3250
|
+
* @export
|
|
3251
|
+
*/
|
|
3252
|
+
const PrivilegedV1ApiFp = function (configuration) {
|
|
3253
|
+
const localVarAxiosParamCreator = (0, exports.PrivilegedV1ApiAxiosParamCreator)(configuration);
|
|
3254
|
+
return {
|
|
3255
|
+
/**
|
|
3256
|
+
*
|
|
3257
|
+
* @summary Get user stats (privileged users only)
|
|
3258
|
+
* @param {*} [options] Override http request option.
|
|
3259
|
+
* @throws {RequiredError}
|
|
3260
|
+
*/
|
|
3261
|
+
privilegedV1ControllerGetUserStats(options) {
|
|
3262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3263
|
+
var _a, _b, _c;
|
|
3264
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.privilegedV1ControllerGetUserStats(options);
|
|
3265
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3266
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PrivilegedV1Api.privilegedV1ControllerGetUserStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3267
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3268
|
+
});
|
|
3269
|
+
},
|
|
3270
|
+
};
|
|
3271
|
+
};
|
|
3272
|
+
exports.PrivilegedV1ApiFp = PrivilegedV1ApiFp;
|
|
3273
|
+
/**
|
|
3274
|
+
* PrivilegedV1Api - factory interface
|
|
3275
|
+
* @export
|
|
3276
|
+
*/
|
|
3277
|
+
const PrivilegedV1ApiFactory = function (configuration, basePath, axios) {
|
|
3278
|
+
const localVarFp = (0, exports.PrivilegedV1ApiFp)(configuration);
|
|
3279
|
+
return {
|
|
3280
|
+
/**
|
|
3281
|
+
*
|
|
3282
|
+
* @summary Get user stats (privileged users only)
|
|
3283
|
+
* @param {*} [options] Override http request option.
|
|
3284
|
+
* @throws {RequiredError}
|
|
3285
|
+
*/
|
|
3286
|
+
privilegedV1ControllerGetUserStats(options) {
|
|
3287
|
+
return localVarFp.privilegedV1ControllerGetUserStats(options).then((request) => request(axios, basePath));
|
|
3288
|
+
},
|
|
3289
|
+
};
|
|
3290
|
+
};
|
|
3291
|
+
exports.PrivilegedV1ApiFactory = PrivilegedV1ApiFactory;
|
|
3292
|
+
/**
|
|
3293
|
+
* PrivilegedV1Api - object-oriented interface
|
|
3294
|
+
* @export
|
|
3295
|
+
* @class PrivilegedV1Api
|
|
3296
|
+
* @extends {BaseAPI}
|
|
3297
|
+
*/
|
|
3298
|
+
class PrivilegedV1Api extends base_1.BaseAPI {
|
|
3299
|
+
/**
|
|
3300
|
+
*
|
|
3301
|
+
* @summary Get user stats (privileged users only)
|
|
3302
|
+
* @param {*} [options] Override http request option.
|
|
3303
|
+
* @throws {RequiredError}
|
|
3304
|
+
* @memberof PrivilegedV1Api
|
|
3305
|
+
*/
|
|
3306
|
+
privilegedV1ControllerGetUserStats(options) {
|
|
3307
|
+
return (0, exports.PrivilegedV1ApiFp)(this.configuration).privilegedV1ControllerGetUserStats(options).then((request) => request(this.axios, this.basePath));
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
exports.PrivilegedV1Api = PrivilegedV1Api;
|
|
3209
3311
|
/**
|
|
3210
3312
|
* SavedMealsV1Api - axios parameter creator
|
|
3211
3313
|
* @export
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1264,6 +1264,25 @@ export interface GetMeasurementsResponseDto {
|
|
|
1264
1264
|
*/
|
|
1265
1265
|
'hasPreviousPage': boolean;
|
|
1266
1266
|
}
|
|
1267
|
+
/**
|
|
1268
|
+
*
|
|
1269
|
+
* @export
|
|
1270
|
+
* @interface GetUserStatsResponseDto
|
|
1271
|
+
*/
|
|
1272
|
+
export interface GetUserStatsResponseDto {
|
|
1273
|
+
/**
|
|
1274
|
+
* Total number of active users
|
|
1275
|
+
* @type {number}
|
|
1276
|
+
* @memberof GetUserStatsResponseDto
|
|
1277
|
+
*/
|
|
1278
|
+
'count': number;
|
|
1279
|
+
/**
|
|
1280
|
+
* Last 5 registered users (by createdAt, descending)
|
|
1281
|
+
* @type {Array<UserStatsSummaryDto>}
|
|
1282
|
+
* @memberof GetUserStatsResponseDto
|
|
1283
|
+
*/
|
|
1284
|
+
'lastRegisteredUsers': Array<UserStatsSummaryDto>;
|
|
1285
|
+
}
|
|
1267
1286
|
/**
|
|
1268
1287
|
*
|
|
1269
1288
|
* @export
|
|
@@ -3132,6 +3151,37 @@ export declare const UserMetaDtoGenderEnum: {
|
|
|
3132
3151
|
readonly Female: "FEMALE";
|
|
3133
3152
|
};
|
|
3134
3153
|
export type UserMetaDtoGenderEnum = typeof UserMetaDtoGenderEnum[keyof typeof UserMetaDtoGenderEnum];
|
|
3154
|
+
/**
|
|
3155
|
+
*
|
|
3156
|
+
* @export
|
|
3157
|
+
* @interface UserStatsSummaryDto
|
|
3158
|
+
*/
|
|
3159
|
+
export interface UserStatsSummaryDto {
|
|
3160
|
+
/**
|
|
3161
|
+
* User ID
|
|
3162
|
+
* @type {string}
|
|
3163
|
+
* @memberof UserStatsSummaryDto
|
|
3164
|
+
*/
|
|
3165
|
+
'id': string;
|
|
3166
|
+
/**
|
|
3167
|
+
* Username
|
|
3168
|
+
* @type {string}
|
|
3169
|
+
* @memberof UserStatsSummaryDto
|
|
3170
|
+
*/
|
|
3171
|
+
'username': string;
|
|
3172
|
+
/**
|
|
3173
|
+
* Email address
|
|
3174
|
+
* @type {string}
|
|
3175
|
+
* @memberof UserStatsSummaryDto
|
|
3176
|
+
*/
|
|
3177
|
+
'email': string;
|
|
3178
|
+
/**
|
|
3179
|
+
* Registration timestamp
|
|
3180
|
+
* @type {string}
|
|
3181
|
+
* @memberof UserStatsSummaryDto
|
|
3182
|
+
*/
|
|
3183
|
+
'createdAt': string;
|
|
3184
|
+
}
|
|
3135
3185
|
/**
|
|
3136
3186
|
*
|
|
3137
3187
|
* @export
|
|
@@ -5648,6 +5698,76 @@ export declare class MeasurementsV1Api extends BaseAPI implements MeasurementsV1
|
|
|
5648
5698
|
*/
|
|
5649
5699
|
measurementsV1ControllerUpdateMeasurement(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MeasurementDto, any, {}>>;
|
|
5650
5700
|
}
|
|
5701
|
+
/**
|
|
5702
|
+
* PrivilegedV1Api - axios parameter creator
|
|
5703
|
+
* @export
|
|
5704
|
+
*/
|
|
5705
|
+
export declare const PrivilegedV1ApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5706
|
+
/**
|
|
5707
|
+
*
|
|
5708
|
+
* @summary Get user stats (privileged users only)
|
|
5709
|
+
* @param {*} [options] Override http request option.
|
|
5710
|
+
* @throws {RequiredError}
|
|
5711
|
+
*/
|
|
5712
|
+
privilegedV1ControllerGetUserStats: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5713
|
+
};
|
|
5714
|
+
/**
|
|
5715
|
+
* PrivilegedV1Api - functional programming interface
|
|
5716
|
+
* @export
|
|
5717
|
+
*/
|
|
5718
|
+
export declare const PrivilegedV1ApiFp: (configuration?: Configuration) => {
|
|
5719
|
+
/**
|
|
5720
|
+
*
|
|
5721
|
+
* @summary Get user stats (privileged users only)
|
|
5722
|
+
* @param {*} [options] Override http request option.
|
|
5723
|
+
* @throws {RequiredError}
|
|
5724
|
+
*/
|
|
5725
|
+
privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserStatsResponseDto>>;
|
|
5726
|
+
};
|
|
5727
|
+
/**
|
|
5728
|
+
* PrivilegedV1Api - factory interface
|
|
5729
|
+
* @export
|
|
5730
|
+
*/
|
|
5731
|
+
export declare const PrivilegedV1ApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5732
|
+
/**
|
|
5733
|
+
*
|
|
5734
|
+
* @summary Get user stats (privileged users only)
|
|
5735
|
+
* @param {*} [options] Override http request option.
|
|
5736
|
+
* @throws {RequiredError}
|
|
5737
|
+
*/
|
|
5738
|
+
privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig): AxiosPromise<GetUserStatsResponseDto>;
|
|
5739
|
+
};
|
|
5740
|
+
/**
|
|
5741
|
+
* PrivilegedV1Api - interface
|
|
5742
|
+
* @export
|
|
5743
|
+
* @interface PrivilegedV1Api
|
|
5744
|
+
*/
|
|
5745
|
+
export interface PrivilegedV1ApiInterface {
|
|
5746
|
+
/**
|
|
5747
|
+
*
|
|
5748
|
+
* @summary Get user stats (privileged users only)
|
|
5749
|
+
* @param {*} [options] Override http request option.
|
|
5750
|
+
* @throws {RequiredError}
|
|
5751
|
+
* @memberof PrivilegedV1ApiInterface
|
|
5752
|
+
*/
|
|
5753
|
+
privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig): AxiosPromise<GetUserStatsResponseDto>;
|
|
5754
|
+
}
|
|
5755
|
+
/**
|
|
5756
|
+
* PrivilegedV1Api - object-oriented interface
|
|
5757
|
+
* @export
|
|
5758
|
+
* @class PrivilegedV1Api
|
|
5759
|
+
* @extends {BaseAPI}
|
|
5760
|
+
*/
|
|
5761
|
+
export declare class PrivilegedV1Api extends BaseAPI implements PrivilegedV1ApiInterface {
|
|
5762
|
+
/**
|
|
5763
|
+
*
|
|
5764
|
+
* @summary Get user stats (privileged users only)
|
|
5765
|
+
* @param {*} [options] Override http request option.
|
|
5766
|
+
* @throws {RequiredError}
|
|
5767
|
+
* @memberof PrivilegedV1Api
|
|
5768
|
+
*/
|
|
5769
|
+
privilegedV1ControllerGetUserStats(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserStatsResponseDto, any, {}>>;
|
|
5770
|
+
}
|
|
5651
5771
|
/**
|
|
5652
5772
|
* SavedMealsV1Api - axios parameter creator
|
|
5653
5773
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -3178,6 +3178,104 @@ export class MeasurementsV1Api extends BaseAPI {
|
|
|
3178
3178
|
return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerUpdateMeasurement(requestParameters.measurementId, requestParameters.updateMeasurementRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
3179
3179
|
}
|
|
3180
3180
|
}
|
|
3181
|
+
/**
|
|
3182
|
+
* PrivilegedV1Api - axios parameter creator
|
|
3183
|
+
* @export
|
|
3184
|
+
*/
|
|
3185
|
+
export const PrivilegedV1ApiAxiosParamCreator = function (configuration) {
|
|
3186
|
+
return {
|
|
3187
|
+
/**
|
|
3188
|
+
*
|
|
3189
|
+
* @summary Get user stats (privileged users only)
|
|
3190
|
+
* @param {*} [options] Override http request option.
|
|
3191
|
+
* @throws {RequiredError}
|
|
3192
|
+
*/
|
|
3193
|
+
privilegedV1ControllerGetUserStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3194
|
+
const localVarPath = `/api/privileged/v1/users/stats`;
|
|
3195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3196
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3197
|
+
let baseOptions;
|
|
3198
|
+
if (configuration) {
|
|
3199
|
+
baseOptions = configuration.baseOptions;
|
|
3200
|
+
}
|
|
3201
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3202
|
+
const localVarHeaderParameter = {};
|
|
3203
|
+
const localVarQueryParameter = {};
|
|
3204
|
+
// authentication apiKey required
|
|
3205
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
3206
|
+
// authentication bearer required
|
|
3207
|
+
// http bearer authentication required
|
|
3208
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3209
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3210
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3211
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3212
|
+
return {
|
|
3213
|
+
url: toPathString(localVarUrlObj),
|
|
3214
|
+
options: localVarRequestOptions,
|
|
3215
|
+
};
|
|
3216
|
+
}),
|
|
3217
|
+
};
|
|
3218
|
+
};
|
|
3219
|
+
/**
|
|
3220
|
+
* PrivilegedV1Api - functional programming interface
|
|
3221
|
+
* @export
|
|
3222
|
+
*/
|
|
3223
|
+
export const PrivilegedV1ApiFp = function (configuration) {
|
|
3224
|
+
const localVarAxiosParamCreator = PrivilegedV1ApiAxiosParamCreator(configuration);
|
|
3225
|
+
return {
|
|
3226
|
+
/**
|
|
3227
|
+
*
|
|
3228
|
+
* @summary Get user stats (privileged users only)
|
|
3229
|
+
* @param {*} [options] Override http request option.
|
|
3230
|
+
* @throws {RequiredError}
|
|
3231
|
+
*/
|
|
3232
|
+
privilegedV1ControllerGetUserStats(options) {
|
|
3233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3234
|
+
var _a, _b, _c;
|
|
3235
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.privilegedV1ControllerGetUserStats(options);
|
|
3236
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3237
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrivilegedV1Api.privilegedV1ControllerGetUserStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3238
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3239
|
+
});
|
|
3240
|
+
},
|
|
3241
|
+
};
|
|
3242
|
+
};
|
|
3243
|
+
/**
|
|
3244
|
+
* PrivilegedV1Api - factory interface
|
|
3245
|
+
* @export
|
|
3246
|
+
*/
|
|
3247
|
+
export const PrivilegedV1ApiFactory = function (configuration, basePath, axios) {
|
|
3248
|
+
const localVarFp = PrivilegedV1ApiFp(configuration);
|
|
3249
|
+
return {
|
|
3250
|
+
/**
|
|
3251
|
+
*
|
|
3252
|
+
* @summary Get user stats (privileged users only)
|
|
3253
|
+
* @param {*} [options] Override http request option.
|
|
3254
|
+
* @throws {RequiredError}
|
|
3255
|
+
*/
|
|
3256
|
+
privilegedV1ControllerGetUserStats(options) {
|
|
3257
|
+
return localVarFp.privilegedV1ControllerGetUserStats(options).then((request) => request(axios, basePath));
|
|
3258
|
+
},
|
|
3259
|
+
};
|
|
3260
|
+
};
|
|
3261
|
+
/**
|
|
3262
|
+
* PrivilegedV1Api - object-oriented interface
|
|
3263
|
+
* @export
|
|
3264
|
+
* @class PrivilegedV1Api
|
|
3265
|
+
* @extends {BaseAPI}
|
|
3266
|
+
*/
|
|
3267
|
+
export class PrivilegedV1Api extends BaseAPI {
|
|
3268
|
+
/**
|
|
3269
|
+
*
|
|
3270
|
+
* @summary Get user stats (privileged users only)
|
|
3271
|
+
* @param {*} [options] Override http request option.
|
|
3272
|
+
* @throws {RequiredError}
|
|
3273
|
+
* @memberof PrivilegedV1Api
|
|
3274
|
+
*/
|
|
3275
|
+
privilegedV1ControllerGetUserStats(options) {
|
|
3276
|
+
return PrivilegedV1ApiFp(this.configuration).privilegedV1ControllerGetUserStats(options).then((request) => request(this.axios, this.basePath));
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3181
3279
|
/**
|
|
3182
3280
|
* SavedMealsV1Api - axios parameter creator
|
|
3183
3281
|
* @export
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# GetUserStatsResponseDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**count** | **number** | Total number of active users | [default to undefined]
|
|
9
|
+
**lastRegisteredUsers** | [**Array<UserStatsSummaryDto>**](UserStatsSummaryDto.md) | Last 5 registered users (by createdAt, descending) | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { GetUserStatsResponseDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: GetUserStatsResponseDto = {
|
|
17
|
+
count,
|
|
18
|
+
lastRegisteredUsers,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# PrivilegedV1Api
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**privilegedV1ControllerGetUserStats**](#privilegedv1controllergetuserstats) | **GET** /api/privileged/v1/users/stats | Get user stats (privileged users only)|
|
|
8
|
+
|
|
9
|
+
# **privilegedV1ControllerGetUserStats**
|
|
10
|
+
> GetUserStatsResponseDto privilegedV1ControllerGetUserStats()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
PrivilegedV1Api,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@dimrev4/fitness-v3-backend-sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new PrivilegedV1Api(configuration);
|
|
23
|
+
|
|
24
|
+
const { status, data } = await apiInstance.privilegedV1ControllerGetUserStats();
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Parameters
|
|
28
|
+
This endpoint does not have any parameters.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Return type
|
|
32
|
+
|
|
33
|
+
**GetUserStatsResponseDto**
|
|
34
|
+
|
|
35
|
+
### Authorization
|
|
36
|
+
|
|
37
|
+
[apiKey](../README.md#apiKey), [bearer](../README.md#bearer)
|
|
38
|
+
|
|
39
|
+
### HTTP request headers
|
|
40
|
+
|
|
41
|
+
- **Content-Type**: Not defined
|
|
42
|
+
- **Accept**: application/json
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### HTTP response details
|
|
46
|
+
| Status code | Description | Response headers |
|
|
47
|
+
|-------------|-------------|------------------|
|
|
48
|
+
|**200** | | - |
|
|
49
|
+
|**400** | Invalid JWT payload structure or validation failed | - |
|
|
50
|
+
|**401** | JWT token is missing, expired, or invalid | - |
|
|
51
|
+
|**403** | User is not privileged | - |
|
|
52
|
+
|**500** | Internal server error during JWT validation | - |
|
|
53
|
+
|
|
54
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
55
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UserStatsSummaryDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | User ID | [default to undefined]
|
|
9
|
+
**username** | **string** | Username | [default to undefined]
|
|
10
|
+
**email** | **string** | Email address | [default to undefined]
|
|
11
|
+
**createdAt** | **string** | Registration timestamp | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UserStatsSummaryDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: UserStatsSummaryDto = {
|
|
19
|
+
id,
|
|
20
|
+
username,
|
|
21
|
+
email,
|
|
22
|
+
createdAt,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|