@abyss-project/main 1.0.78 → 1.0.80

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.
@@ -228,5 +228,35 @@ export declare const enTranslation: {
228
228
  content: string;
229
229
  };
230
230
  };
231
+ ABYSS_TRAINING: {
232
+ "training-inactivity-7-days": {
233
+ title: string;
234
+ content: string;
235
+ };
236
+ "training-inactivity-5-days": {
237
+ title: string;
238
+ content: string;
239
+ };
240
+ "training-inactivity-2-days": {
241
+ title: string;
242
+ content: string;
243
+ };
244
+ "training-never-trained": {
245
+ title: string;
246
+ content: string;
247
+ };
248
+ "training-today-workout-reminder-morning": {
249
+ title: string;
250
+ content: string;
251
+ };
252
+ "training-today-workout-reminder-afternoon": {
253
+ title: string;
254
+ content: string;
255
+ };
256
+ "training-today-workout-reminder-evening": {
257
+ title: string;
258
+ content: string;
259
+ };
260
+ };
231
261
  };
232
262
  };
@@ -232,5 +232,35 @@ exports.enTranslation = {
232
232
  content: 'The submission limit ({limitReachedCount}) for form "{formTitle}" has been reached',
233
233
  },
234
234
  },
235
+ [types_1.AbyssService.ABYSS_TRAINING]: {
236
+ [types_1.UserNotificationContentType.TRAINING_INACTIVITY_7_DAYS]: {
237
+ title: 'We miss you!',
238
+ content: "It's been over 7 days since your last workout. Come back!",
239
+ },
240
+ [types_1.UserNotificationContentType.TRAINING_INACTIVITY_5_DAYS]: {
241
+ title: 'Ready to get back?',
242
+ content: "It's been 5-6 days without training. How about a quick session?",
243
+ },
244
+ [types_1.UserNotificationContentType.TRAINING_INACTIVITY_2_DAYS]: {
245
+ title: "Let's get back to it!",
246
+ content: "It's been a few days without training. Keep the momentum going!",
247
+ },
248
+ [types_1.UserNotificationContentType.TRAINING_NEVER_TRAINED]: {
249
+ title: 'Ready to start?',
250
+ content: "You haven't completed your first session yet. Let's go!",
251
+ },
252
+ [types_1.UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_MORNING]: {
253
+ title: "Today's Schedule",
254
+ content: 'You have {scheduledWorkoutsCount} session(s) planned: {workoutName}. Plan your day!',
255
+ },
256
+ [types_1.UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_AFTERNOON]: {
257
+ title: "Don't forget your session",
258
+ content: 'You still have {scheduledWorkoutsCount} session(s) today: {workoutName}. Now is the time!',
259
+ },
260
+ [types_1.UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_EVENING]: {
261
+ title: 'Final stretch',
262
+ content: 'Just a few hours left for your session: {workoutName}. You got this!',
263
+ },
264
+ },
235
265
  },
236
266
  };
@@ -228,5 +228,35 @@ export declare const frTranslation: {
228
228
  content: string;
229
229
  };
230
230
  };
231
+ ABYSS_TRAINING: {
232
+ "training-inactivity-7-days": {
233
+ title: string;
234
+ content: string;
235
+ };
236
+ "training-inactivity-5-days": {
237
+ title: string;
238
+ content: string;
239
+ };
240
+ "training-inactivity-2-days": {
241
+ title: string;
242
+ content: string;
243
+ };
244
+ "training-never-trained": {
245
+ title: string;
246
+ content: string;
247
+ };
248
+ "training-today-workout-reminder-morning": {
249
+ title: string;
250
+ content: string;
251
+ };
252
+ "training-today-workout-reminder-afternoon": {
253
+ title: string;
254
+ content: string;
255
+ };
256
+ "training-today-workout-reminder-evening": {
257
+ title: string;
258
+ content: string;
259
+ };
260
+ };
231
261
  };
232
262
  };
@@ -232,5 +232,35 @@ exports.frTranslation = {
232
232
  content: 'La limite de soumission ({limitReachedCount}) pour le formulaire "{formTitle}" a été atteinte',
233
233
  },
234
234
  },
235
+ [types_1.AbyssService.ABYSS_TRAINING]: {
236
+ [types_1.UserNotificationContentType.TRAINING_INACTIVITY_7_DAYS]: {
237
+ title: 'Tu nous manques !',
238
+ content: "Cela fait plus de 7 jours que tu ne t'es pas entraîné. Reviens vite !",
239
+ },
240
+ [types_1.UserNotificationContentType.TRAINING_INACTIVITY_5_DAYS]: {
241
+ title: 'Prêt à reprendre ?',
242
+ content: 'Cela fait 5-6 jours sans entraînement. Une petite séance ?',
243
+ },
244
+ [types_1.UserNotificationContentType.TRAINING_INACTIVITY_2_DAYS]: {
245
+ title: 'On reprend ?',
246
+ content: 'Cela fait quelques jours sans entraînement. Garde le rythme !',
247
+ },
248
+ [types_1.UserNotificationContentType.TRAINING_NEVER_TRAINED]: {
249
+ title: 'Prêt à commencer ?',
250
+ content: "Tu n'as pas encore effectué ta première séance. Lance-toi !",
251
+ },
252
+ [types_1.UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_MORNING]: {
253
+ title: 'Programme du jour',
254
+ content: 'Tu as {scheduledWorkoutsCount} séance(s) prévue(s) : {workoutName}. Organise ta journée !',
255
+ },
256
+ [types_1.UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_AFTERNOON]: {
257
+ title: "N'oublie pas ta séance",
258
+ content: "Il te reste {scheduledWorkoutsCount} séance(s) aujourd'hui : {workoutName}. C'est le moment !",
259
+ },
260
+ [types_1.UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_EVENING]: {
261
+ title: 'Dernière ligne droite',
262
+ content: 'Plus que quelques heures pour ta séance : {workoutName}. Tu peux le faire !',
263
+ },
264
+ },
235
265
  },
236
266
  };
@@ -23,3 +23,4 @@ export * from './onboarding-steps.enum';
23
23
  export * from './board-column-type.enum';
24
24
  export * from './board-activity.enum';
25
25
  export * from './user-agent.enum';
26
+ export * from './measurement-unit.enum';
@@ -39,3 +39,4 @@ __exportStar(require("./onboarding-steps.enum"), exports);
39
39
  __exportStar(require("./board-column-type.enum"), exports);
40
40
  __exportStar(require("./board-activity.enum"), exports);
41
41
  __exportStar(require("./user-agent.enum"), exports);
42
+ __exportStar(require("./measurement-unit.enum"), exports);
@@ -0,0 +1,32 @@
1
+ export declare enum MeasurementSystem {
2
+ METRIC = "METRIC",
3
+ IMPERIAL = "IMPERIAL"
4
+ }
5
+ export declare enum TimeUnit {
6
+ SECONDS = "SECONDS",
7
+ MINUTES = "MINUTES",
8
+ HOURS = "HOURS"
9
+ }
10
+ export declare enum DistanceUnit {
11
+ METERS = "METERS",
12
+ KILOMETERS = "KILOMETERS",
13
+ MILES = "MILES"
14
+ }
15
+ export declare enum WeightUnit {
16
+ KILOGRAMS = "KILOGRAMS",
17
+ POUNDS = "POUNDS"
18
+ }
19
+ export declare const getUnitsFromMeasurementSystem: (system?: MeasurementSystem) => {
20
+ distance: DistanceUnit[];
21
+ weight: WeightUnit[];
22
+ };
23
+ export declare const convertToBaseUnit: {
24
+ time: (value: number, unit: TimeUnit) => number;
25
+ distance: (value: number, unit: DistanceUnit) => number;
26
+ weight: (value: number, unit: WeightUnit) => number;
27
+ };
28
+ export declare const convertFromBaseUnit: {
29
+ time: (value: number, unit: TimeUnit) => number;
30
+ distance: (value: number, unit: DistanceUnit) => number;
31
+ weight: (value: number, unit: WeightUnit) => number;
32
+ };
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.convertFromBaseUnit = exports.convertToBaseUnit = exports.getUnitsFromMeasurementSystem = exports.WeightUnit = exports.DistanceUnit = exports.TimeUnit = exports.MeasurementSystem = void 0;
4
+ var MeasurementSystem;
5
+ (function (MeasurementSystem) {
6
+ MeasurementSystem["METRIC"] = "METRIC";
7
+ MeasurementSystem["IMPERIAL"] = "IMPERIAL";
8
+ })(MeasurementSystem || (exports.MeasurementSystem = MeasurementSystem = {}));
9
+ var TimeUnit;
10
+ (function (TimeUnit) {
11
+ TimeUnit["SECONDS"] = "SECONDS";
12
+ TimeUnit["MINUTES"] = "MINUTES";
13
+ TimeUnit["HOURS"] = "HOURS";
14
+ })(TimeUnit || (exports.TimeUnit = TimeUnit = {}));
15
+ var DistanceUnit;
16
+ (function (DistanceUnit) {
17
+ DistanceUnit["METERS"] = "METERS";
18
+ DistanceUnit["KILOMETERS"] = "KILOMETERS";
19
+ DistanceUnit["MILES"] = "MILES";
20
+ })(DistanceUnit || (exports.DistanceUnit = DistanceUnit = {}));
21
+ var WeightUnit;
22
+ (function (WeightUnit) {
23
+ WeightUnit["KILOGRAMS"] = "KILOGRAMS";
24
+ WeightUnit["POUNDS"] = "POUNDS";
25
+ })(WeightUnit || (exports.WeightUnit = WeightUnit = {}));
26
+ const getUnitsFromMeasurementSystem = (system = MeasurementSystem.METRIC) => ({
27
+ distance: system === MeasurementSystem.METRIC
28
+ ? [DistanceUnit.METERS, DistanceUnit.KILOMETERS]
29
+ : [DistanceUnit.MILES],
30
+ weight: system === MeasurementSystem.METRIC ? [WeightUnit.KILOGRAMS] : [WeightUnit.POUNDS],
31
+ });
32
+ exports.getUnitsFromMeasurementSystem = getUnitsFromMeasurementSystem;
33
+ exports.convertToBaseUnit = {
34
+ time: (value, unit) => {
35
+ switch (unit) {
36
+ case TimeUnit.MINUTES:
37
+ return value * 60;
38
+ case TimeUnit.HOURS:
39
+ return value * 3600;
40
+ case TimeUnit.SECONDS:
41
+ default:
42
+ return value;
43
+ }
44
+ },
45
+ distance: (value, unit) => {
46
+ switch (unit) {
47
+ case DistanceUnit.KILOMETERS:
48
+ return value * 1000;
49
+ case DistanceUnit.MILES:
50
+ return value * 1609.34;
51
+ case DistanceUnit.METERS:
52
+ default:
53
+ return value;
54
+ }
55
+ },
56
+ weight: (value, unit) => {
57
+ switch (unit) {
58
+ case WeightUnit.POUNDS:
59
+ return value * 0.453592;
60
+ case WeightUnit.KILOGRAMS:
61
+ default:
62
+ return value;
63
+ }
64
+ },
65
+ };
66
+ exports.convertFromBaseUnit = {
67
+ time: (value, unit) => {
68
+ switch (unit) {
69
+ case TimeUnit.MINUTES:
70
+ return value / 60;
71
+ case TimeUnit.HOURS:
72
+ return value / 3600;
73
+ case TimeUnit.SECONDS:
74
+ default:
75
+ return value;
76
+ }
77
+ },
78
+ distance: (value, unit) => {
79
+ switch (unit) {
80
+ case DistanceUnit.KILOMETERS:
81
+ return value / 1000;
82
+ case DistanceUnit.MILES:
83
+ return value / 1609.34;
84
+ case DistanceUnit.METERS:
85
+ default:
86
+ return value;
87
+ }
88
+ },
89
+ weight: (value, unit) => {
90
+ switch (unit) {
91
+ case WeightUnit.POUNDS:
92
+ return value / 0.453592;
93
+ case WeightUnit.KILOGRAMS:
94
+ default:
95
+ return value;
96
+ }
97
+ },
98
+ };
@@ -38,6 +38,7 @@ export type UserConfigPerService = {
38
38
  maxSubmissionPerForm: number;
39
39
  allowSubmissionDocument: boolean;
40
40
  };
41
+ [AbyssService.ABYSS_TRAINING]: {};
41
42
  };
42
43
  export type UserSubscriptionConfig = Record<SubscriptionLevel, UserConfigPerService>;
43
44
  export declare const USER_SUBSCRIPTION_CONFIG: UserSubscriptionConfig;
@@ -45,6 +45,7 @@ exports.USER_SUBSCRIPTION_CONFIG = {
45
45
  maxSubmissionPerForm: 2000,
46
46
  allowSubmissionDocument: false,
47
47
  },
48
+ ABYSS_TRAINING: {},
48
49
  },
49
50
  [SubscriptionLevel.ADVANCED]: {
50
51
  ABYSS: {
@@ -70,6 +71,7 @@ exports.USER_SUBSCRIPTION_CONFIG = {
70
71
  maxSubmissionPerForm: Infinity,
71
72
  allowSubmissionDocument: true,
72
73
  },
74
+ ABYSS_TRAINING: {},
73
75
  },
74
76
  [SubscriptionLevel.PREMIUM]: {
75
77
  ABYSS: {
@@ -95,6 +97,7 @@ exports.USER_SUBSCRIPTION_CONFIG = {
95
97
  maxSubmissionPerForm: Infinity,
96
98
  allowSubmissionDocument: true,
97
99
  },
100
+ ABYSS_TRAINING: {},
98
101
  },
99
102
  };
100
103
  exports.PROJECT_SUBSCRIPTION_CONFIG = {
@@ -51,9 +51,16 @@ export declare enum UserNotificationContentType {
51
51
  FORM_DAILY_SUBMISSION_LIMIT_REACHED = "form-daily-submission-limit-reached",
52
52
  FORM_SUBMISSION_LIMIT_REACHED = "form-submission-limit-reached",
53
53
  FORM_WEBHOOK_UNDELIVERABLE = "form-webhook-undeliverable",
54
- FORM_WEBHOOK_UNDELIVERABLE_DISABLE = "form-webhook-undeliverable-disable"
54
+ FORM_WEBHOOK_UNDELIVERABLE_DISABLE = "form-webhook-undeliverable-disable",
55
+ TRAINING_INACTIVITY_7_DAYS = "training-inactivity-7-days",
56
+ TRAINING_INACTIVITY_5_DAYS = "training-inactivity-5-days",
57
+ TRAINING_INACTIVITY_2_DAYS = "training-inactivity-2-days",
58
+ TRAINING_NEVER_TRAINED = "training-never-trained",
59
+ TRAINING_TODAY_WORKOUT_REMINDER_MORNING = "training-today-workout-reminder-morning",
60
+ TRAINING_TODAY_WORKOUT_REMINDER_AFTERNOON = "training-today-workout-reminder-afternoon",
61
+ TRAINING_TODAY_WORKOUT_REMINDER_EVENING = "training-today-workout-reminder-evening"
55
62
  }
56
- export declare class UserNotificationContentTypeData implements Record<UserNotificationContentType, Record<string, string | null>> {
63
+ export declare class UserNotificationContentTypeData implements Record<UserNotificationContentType, Record<string, string | null | boolean>> {
57
64
  [UserNotificationContentType.USER_CREDIT_PURCHASE]: {
58
65
  amount: string;
59
66
  };
@@ -392,4 +399,36 @@ export declare class UserNotificationContentTypeData implements Record<UserNotif
392
399
  formTitle: string;
393
400
  limitReachedCount: string;
394
401
  };
402
+ [UserNotificationContentType.TRAINING_INACTIVITY_7_DAYS]: {
403
+ daysSinceLastWorkout: string;
404
+ totalCompletedSessions: string;
405
+ firstCompletedAt: string;
406
+ hasActivePrograms: boolean;
407
+ };
408
+ [UserNotificationContentType.TRAINING_INACTIVITY_5_DAYS]: {
409
+ daysSinceLastWorkout: string;
410
+ hasActivePrograms: boolean;
411
+ };
412
+ [UserNotificationContentType.TRAINING_INACTIVITY_2_DAYS]: {
413
+ daysSinceLastWorkout: string;
414
+ hasActivePrograms: boolean;
415
+ };
416
+ [UserNotificationContentType.TRAINING_NEVER_TRAINED]: {
417
+ hasActivePrograms: boolean;
418
+ };
419
+ [UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_MORNING]: {
420
+ programName: string;
421
+ workoutName: string;
422
+ scheduledWorkoutsCount: string;
423
+ };
424
+ [UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_AFTERNOON]: {
425
+ programName: string;
426
+ workoutName: string;
427
+ scheduledWorkoutsCount: string;
428
+ };
429
+ [UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_EVENING]: {
430
+ programName: string;
431
+ workoutName: string;
432
+ scheduledWorkoutsCount: string;
433
+ };
395
434
  }
@@ -56,8 +56,15 @@ var UserNotificationContentType;
56
56
  UserNotificationContentType["FORM_SUBMISSION_LIMIT_REACHED"] = "form-submission-limit-reached";
57
57
  UserNotificationContentType["FORM_WEBHOOK_UNDELIVERABLE"] = "form-webhook-undeliverable";
58
58
  UserNotificationContentType["FORM_WEBHOOK_UNDELIVERABLE_DISABLE"] = "form-webhook-undeliverable-disable";
59
+ UserNotificationContentType["TRAINING_INACTIVITY_7_DAYS"] = "training-inactivity-7-days";
60
+ UserNotificationContentType["TRAINING_INACTIVITY_5_DAYS"] = "training-inactivity-5-days";
61
+ UserNotificationContentType["TRAINING_INACTIVITY_2_DAYS"] = "training-inactivity-2-days";
62
+ UserNotificationContentType["TRAINING_NEVER_TRAINED"] = "training-never-trained";
63
+ UserNotificationContentType["TRAINING_TODAY_WORKOUT_REMINDER_MORNING"] = "training-today-workout-reminder-morning";
64
+ UserNotificationContentType["TRAINING_TODAY_WORKOUT_REMINDER_AFTERNOON"] = "training-today-workout-reminder-afternoon";
65
+ UserNotificationContentType["TRAINING_TODAY_WORKOUT_REMINDER_EVENING"] = "training-today-workout-reminder-evening";
59
66
  })(UserNotificationContentType || (exports.UserNotificationContentType = UserNotificationContentType = {}));
60
67
  class UserNotificationContentTypeData {
61
68
  }
62
69
  exports.UserNotificationContentTypeData = UserNotificationContentTypeData;
63
- UserNotificationContentType.USER_CREDIT_PURCHASE, UserNotificationContentType.USER_TICKET_RESPONSE, UserNotificationContentType.INVITE_USER_PROJECT, UserNotificationContentType.PROJECT_SET_OWNERSHIP, UserNotificationContentType.USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_ENABLED, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_DISABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED, UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION, UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION, UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW, UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW, UserNotificationContentType.USER_SUBSCRIPTION_RENEW_SUCCESS, UserNotificationContentType.PROJECT_SUBSCRIPTION_RENEW_SUCCESS, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS, UserNotificationContentType.USER_SUBSCRIPTION_CREATE, UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE, UserNotificationContentType.USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW, UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW, UserNotificationContentType.BOARD_CARD_LATE, UserNotificationContentType.BOARD_CARD_ALMOST_LATE, UserNotificationContentType.CREATE_CLOUD_SHARE, UserNotificationContentType.DELETE_CLOUD_SHARE, UserNotificationContentType.CREATE_CLOUD, UserNotificationContentType.DELETE_CLOUD, UserNotificationContentType.ADMIN_CREATE_CLOUD, UserNotificationContentType.ADMIN_DELETE_CLOUD, UserNotificationContentType.JOIN_CLOUD_SHARE, UserNotificationContentType.DECLINE_CLOUD_SHARE, UserNotificationContentType.LEAVE_CLOUD_SHARE, UserNotificationContentType.WEBHOOK_UNDELIVERABLE, UserNotificationContentType.WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.CRON_TASK_FAILED, UserNotificationContentType.CRON_TASK_DISABLED, UserNotificationContentType.MONITOR_WEBHOOK_UNDELIVERABLE, UserNotificationContentType.MONITOR_WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.MONITOR_SENTINEL_CHECK_SUCCESS, UserNotificationContentType.MONITOR_SENTINEL_CHECK_FAILED, UserNotificationContentType.MONITOR_SENTINEL_DISABLE_ON_FAILURE, UserNotificationContentType.INVITE_EVENT, UserNotificationContentType.CHANGE_OWNER_EVENT, UserNotificationContentType.CREATE_POLL_EVENT, UserNotificationContentType.BANK_CONNECTION_SUCCESS, UserNotificationContentType.BANK_CONNECTION_EXPIRE, UserNotificationContentType.SPOTLIGHT_PROJECT_NEW_POST, UserNotificationContentType.FORM_SUBMISSION_COMPLETED, UserNotificationContentType.FORM_WEBHOOK_UNDELIVERABLE, UserNotificationContentType.FORM_WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.FORM_DAILY_SUBMISSION_LIMIT_REACHED, UserNotificationContentType.FORM_SUBMISSION_LIMIT_REACHED;
70
+ UserNotificationContentType.USER_CREDIT_PURCHASE, UserNotificationContentType.USER_TICKET_RESPONSE, UserNotificationContentType.INVITE_USER_PROJECT, UserNotificationContentType.PROJECT_SET_OWNERSHIP, UserNotificationContentType.USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_ENABLED, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_DISABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED, UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION, UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION, UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW, UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW, UserNotificationContentType.USER_SUBSCRIPTION_RENEW_SUCCESS, UserNotificationContentType.PROJECT_SUBSCRIPTION_RENEW_SUCCESS, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS, UserNotificationContentType.USER_SUBSCRIPTION_CREATE, UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE, UserNotificationContentType.USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW, UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW, UserNotificationContentType.BOARD_CARD_LATE, UserNotificationContentType.BOARD_CARD_ALMOST_LATE, UserNotificationContentType.CREATE_CLOUD_SHARE, UserNotificationContentType.DELETE_CLOUD_SHARE, UserNotificationContentType.CREATE_CLOUD, UserNotificationContentType.DELETE_CLOUD, UserNotificationContentType.ADMIN_CREATE_CLOUD, UserNotificationContentType.ADMIN_DELETE_CLOUD, UserNotificationContentType.JOIN_CLOUD_SHARE, UserNotificationContentType.DECLINE_CLOUD_SHARE, UserNotificationContentType.LEAVE_CLOUD_SHARE, UserNotificationContentType.WEBHOOK_UNDELIVERABLE, UserNotificationContentType.WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.CRON_TASK_FAILED, UserNotificationContentType.CRON_TASK_DISABLED, UserNotificationContentType.MONITOR_WEBHOOK_UNDELIVERABLE, UserNotificationContentType.MONITOR_WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.MONITOR_SENTINEL_CHECK_SUCCESS, UserNotificationContentType.MONITOR_SENTINEL_CHECK_FAILED, UserNotificationContentType.MONITOR_SENTINEL_DISABLE_ON_FAILURE, UserNotificationContentType.INVITE_EVENT, UserNotificationContentType.CHANGE_OWNER_EVENT, UserNotificationContentType.CREATE_POLL_EVENT, UserNotificationContentType.BANK_CONNECTION_SUCCESS, UserNotificationContentType.BANK_CONNECTION_EXPIRE, UserNotificationContentType.SPOTLIGHT_PROJECT_NEW_POST, UserNotificationContentType.FORM_SUBMISSION_COMPLETED, UserNotificationContentType.FORM_WEBHOOK_UNDELIVERABLE, UserNotificationContentType.FORM_WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.FORM_DAILY_SUBMISSION_LIMIT_REACHED, UserNotificationContentType.FORM_SUBMISSION_LIMIT_REACHED, UserNotificationContentType.TRAINING_INACTIVITY_7_DAYS, UserNotificationContentType.TRAINING_INACTIVITY_5_DAYS, UserNotificationContentType.TRAINING_INACTIVITY_2_DAYS, UserNotificationContentType.TRAINING_NEVER_TRAINED, UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_MORNING, UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_AFTERNOON, UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_EVENING;
@@ -1,4 +1,4 @@
1
- import { SubscriptionLevel, UserCreditPurchaseCurrency, UserLanguage } from '../../../enum';
1
+ import { MeasurementSystem, SubscriptionLevel, UserCreditPurchaseCurrency, UserLanguage } from '../../../enum';
2
2
  import { TokenHistoryMetadataUserInvitation } from '../../models/token-history.model';
3
3
  import { UserOnboardingStatus } from '../../models/user.model';
4
4
  import { QueryPaginate } from '../type-message/base-paginate';
@@ -28,6 +28,10 @@ export interface IUpdateSettingsUserBody {
28
28
  currency?: UserCreditPurchaseCurrency;
29
29
  onboardingStatus?: UserOnboardingStatus;
30
30
  enableSoundNotification?: boolean;
31
+ units?: {
32
+ length?: MeasurementSystem;
33
+ weight?: MeasurementSystem;
34
+ };
31
35
  }
32
36
  export interface ICreateSubscriptionUserBody {
33
37
  level: SubscriptionLevel;
@@ -5,7 +5,7 @@ export interface IUserNotification {
5
5
  service: AbyssService;
6
6
  type: UserNotificationType;
7
7
  contentType: UserNotificationContentType;
8
- data: Record<string, string | null>;
8
+ data: Record<string, string | null | boolean>;
9
9
  openedAt: Date | null;
10
10
  userId: string | null;
11
11
  updatedAt?: Date;
@@ -1,5 +1,5 @@
1
1
  import { IAtlas, IBoard, IGiftCodeActivation, IMemo, IOAuthAccount, IProject, IRetrospective, IShortLink, IUserTransaction } from '..';
2
- import { AbyssService, OnboardingSteps, UserCreditPurchaseCurrency, UserLanguage, UserType } from '../../enum';
2
+ import { AbyssService, MeasurementSystem, OnboardingSteps, UserCreditPurchaseCurrency, UserLanguage, UserType } from '../../enum';
3
3
  import { OnboardingData } from '../../utils';
4
4
  import { IBoardCardComment } from './board-card-comment.model';
5
5
  import { IDraw } from './draw.model';
@@ -11,6 +11,10 @@ export interface IUserSetting {
11
11
  onboardingStatus?: UserOnboardingStatus | null;
12
12
  userType?: UserType;
13
13
  enableSoundNotification?: boolean;
14
+ units?: {
15
+ length?: MeasurementSystem;
16
+ weight?: MeasurementSystem;
17
+ };
14
18
  }
15
19
  export interface IUser {
16
20
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/main",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",