hevy-shared 1.0.668 → 1.0.670
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/built/index.d.ts +12 -1
- package/built/index.js +12 -0
- package/package.json +1 -1
package/built/index.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ export interface UserAccountResponse {
|
|
|
105
105
|
birthday?: string;
|
|
106
106
|
sex?: Sex;
|
|
107
107
|
email_consent: boolean;
|
|
108
|
+
email_verified: boolean;
|
|
108
109
|
}
|
|
109
110
|
export interface CoachAppPushTarget {
|
|
110
111
|
type: 'android' | 'ios';
|
|
@@ -1617,7 +1618,9 @@ export interface CancelSubscriptionFeedback extends BaseFeedback {
|
|
|
1617
1618
|
};
|
|
1618
1619
|
}
|
|
1619
1620
|
export type Feedback = GeneralFeedback | FeatureRequestFeedback | BugReportFeedback | GetHelpFeedback | ReportCommentFeedback | ReportWorkoutFeedback | ReportProfileFeedback | RatingPromptFeedback | CancelSubscriptionFeedback;
|
|
1620
|
-
|
|
1621
|
+
declare const _suggestedUserSources: readonly ["popular", "local", "contact", "mutual_follows", "follows_you", "featured", "hyper_local"];
|
|
1622
|
+
export type SuggestedUserSource = Lookup<typeof _suggestedUserSources>;
|
|
1623
|
+
export declare const isSuggestedUserSource: (source: string) => source is SuggestedUserSource;
|
|
1621
1624
|
export type SuggestedUserLabel = 'contact' | 'mutual_friends' | 'follows_you' | 'featured';
|
|
1622
1625
|
export interface SuggestedUser {
|
|
1623
1626
|
id: string;
|
|
@@ -1630,6 +1633,14 @@ export interface SuggestedUser {
|
|
|
1630
1633
|
source?: SuggestedUserSource;
|
|
1631
1634
|
label: SuggestedUserLabel;
|
|
1632
1635
|
}
|
|
1636
|
+
export type FollowRate = {
|
|
1637
|
+
source: SuggestedUserSource;
|
|
1638
|
+
follows: number;
|
|
1639
|
+
total: number;
|
|
1640
|
+
};
|
|
1641
|
+
export interface BackofficeSuggestedUsersFollowRateResponse {
|
|
1642
|
+
follow_rates: FollowRate[];
|
|
1643
|
+
}
|
|
1633
1644
|
export type BackofficeFeedback = {
|
|
1634
1645
|
user_id: string;
|
|
1635
1646
|
platform: string;
|
package/built/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.isValidUserWorkoutMetricsType = exports.isBodyMeasurementKey = exports.measurementsList = exports.isWorkoutBiometrics = exports.isHeartRateSamples = exports.isPublicWorkout = exports.isSetType = exports.isRPE = exports.validRpeValues = exports.isSetPersonalRecordType = exports.supportedInstructionsLanguages = exports.exerciseCategories = exports.trainingLevels = exports.trainingGoals = exports.isCustomExerciseType = exports.customExericseTypes = exports.isExerciseType = exports.exerciseTypes = exports.isExerciseRepType = exports.exerciseRepTypes = exports.isEquipmentFilter = exports.equipmentFilters = exports.isEquipment = exports.equipments = exports.isMuscleGroupFilter = exports.muscleGroupFilters = exports.isMuscleGroup = exports.muscleGroups = exports.isSimplifiedMuscleGroup = exports.simplifiedMuscleGroups = exports.miscellaneousMuscles = exports.chestMuscles = exports.backMuscles = exports.legMuscles = exports.armMuscles = exports.shoulderMuscles = exports.coreMuscles = exports.DefaultClientConfiguration = exports.isCoachRole = exports.isErrorResponse = exports.isLivePRVolumeOption = exports.isTimerVolumeOption = exports.isWeekday = exports.orderedWeekdays = exports.isBodyMeasurementUnit = exports.isDistanceUnitShort = exports.isDistanceUnit = exports.isWeightUnit = exports.isLanguage = exports.supportedLanguages = void 0;
|
|
18
|
+
exports.isSuggestedUserSource = void 0;
|
|
18
19
|
const typeUtils_1 = require("./typeUtils");
|
|
19
20
|
__exportStar(require("./constants"), exports);
|
|
20
21
|
__exportStar(require("./utils"), exports);
|
|
@@ -292,3 +293,14 @@ exports.isBodyMeasurementKey = isBodyMeasurementKey;
|
|
|
292
293
|
const _validUserWorkoutMetricsTypes = ['duration', 'reps'];
|
|
293
294
|
const isValidUserWorkoutMetricsType = (x) => (0, typeUtils_1.isInArray)(x, _validUserWorkoutMetricsTypes);
|
|
294
295
|
exports.isValidUserWorkoutMetricsType = isValidUserWorkoutMetricsType;
|
|
296
|
+
const _suggestedUserSources = [
|
|
297
|
+
'popular',
|
|
298
|
+
'local',
|
|
299
|
+
'contact',
|
|
300
|
+
'mutual_follows',
|
|
301
|
+
'follows_you',
|
|
302
|
+
'featured',
|
|
303
|
+
'hyper_local',
|
|
304
|
+
];
|
|
305
|
+
const isSuggestedUserSource = (source) => (0, typeUtils_1.isInArray)(source, _suggestedUserSources);
|
|
306
|
+
exports.isSuggestedUserSource = isSuggestedUserSource;
|