@abyss-project/main 1.0.79 → 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.
- package/dist/translate/en.translate.d.ts +30 -0
- package/dist/translate/en.translate.js +30 -0
- package/dist/translate/fr.translate.d.ts +30 -0
- package/dist/translate/fr.translate.js +30 -0
- package/dist/types/enum/user-notification-content-type.enum.d.ts +41 -2
- package/dist/types/enum/user-notification-content-type.enum.js +8 -1
- package/dist/types/interface/models/user-notification.model.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -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;
|
|
@@ -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;
|