@abyss-project/main 1.0.48 → 1.0.50

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.
@@ -147,6 +147,18 @@ export declare const enTranslation: {
147
147
  title: string;
148
148
  content: string;
149
149
  };
150
+ "monitor-webhook-undeliverable": {
151
+ title: string;
152
+ content: string;
153
+ };
154
+ "monitor-webhook-undeliverable-disable": {
155
+ title: string;
156
+ content: string;
157
+ };
158
+ "monitor-sentinel-check-failed": {
159
+ title: string;
160
+ content: string;
161
+ };
150
162
  };
151
163
  ABYSS_MEMORIES: {
152
164
  "invite-event": {
@@ -151,6 +151,18 @@ exports.enTranslation = {
151
151
  title: 'Scheduled task deactivation',
152
152
  content: 'Task {applicationCronTaskName} has been disabled due to multiple errors',
153
153
  },
154
+ [types_1.UserNotificationContentType.MONITOR_WEBHOOK_UNDELIVERABLE]: {
155
+ title: 'Webhook Failure',
156
+ content: 'An error occurred on the webhook "{applicationWebhookName}" ({totalFailureInRow} consecutive failures)',
157
+ },
158
+ [types_1.UserNotificationContentType.MONITOR_WEBHOOK_UNDELIVERABLE_DISABLE]: {
159
+ title: 'Webhook Disable',
160
+ content: 'Webhook {applicationWebhookName} has been disabled due to multiple errors',
161
+ },
162
+ [types_1.UserNotificationContentType.MONITOR_SENTINEL_CHECK_FAILED]: {
163
+ title: 'Sentinel Check Failed',
164
+ content: 'The sentinel "{sentinelName}" has failed',
165
+ },
154
166
  },
155
167
  [types_1.AbyssService.ABYSS_MEMORIES]: {
156
168
  [types_1.UserNotificationContentType.INVITE_EVENT]: {
@@ -147,6 +147,18 @@ export declare const frTranslation: {
147
147
  title: string;
148
148
  content: string;
149
149
  };
150
+ "monitor-webhook-undeliverable": {
151
+ title: string;
152
+ content: string;
153
+ };
154
+ "monitor-webhook-undeliverable-disable": {
155
+ title: string;
156
+ content: string;
157
+ };
158
+ "monitor-sentinel-check-failed": {
159
+ title: string;
160
+ content: string;
161
+ };
150
162
  };
151
163
  ABYSS_MEMORIES: {
152
164
  "invite-event": {
@@ -151,6 +151,18 @@ exports.frTranslation = {
151
151
  title: 'Désactivation de tâche planifiée',
152
152
  content: "La tâche {applicationCronTaskName} a été désactivé pour cause d'erreurs multiples",
153
153
  },
154
+ [types_1.UserNotificationContentType.MONITOR_WEBHOOK_UNDELIVERABLE]: {
155
+ title: 'Echec de Webhook',
156
+ content: 'Une erreur est survenue sur le Webhook "{applicationWebhookName}" ({totalFailureInRow} échec(s) consécutifs)',
157
+ },
158
+ [types_1.UserNotificationContentType.MONITOR_WEBHOOK_UNDELIVERABLE_DISABLE]: {
159
+ title: 'Désactivation du Webhook',
160
+ content: "Le Webhook {applicationWebhookName} a été désactivé pour cause d'erreurs multiples",
161
+ },
162
+ [types_1.UserNotificationContentType.MONITOR_SENTINEL_CHECK_FAILED]: {
163
+ title: 'Echec de vérification de la Sentinelle',
164
+ content: 'La sentinelle "{sentinelName}" à échoué',
165
+ },
154
166
  },
155
167
  [types_1.AbyssService.ABYSS_MEMORIES]: {
156
168
  [types_1.UserNotificationContentType.INVITE_EVENT]: {
@@ -48,7 +48,7 @@ type ProjectConfigPerService = {
48
48
  statsHistoryDays: number;
49
49
  maxStoreEntry: number;
50
50
  eventPublishLimitPerDay: number;
51
- maxSentinelCountPerProject: number;
51
+ maxSentinelCount: number;
52
52
  };
53
53
  [AbyssService.ABYSS_STORAGE]: {
54
54
  maxFileSizeMo: number;
@@ -113,7 +113,7 @@ exports.PROJECT_SUBSCRIPTION_CONFIG = {
113
113
  statsHistoryDays: 3,
114
114
  maxStoreEntry: 10,
115
115
  eventPublishLimitPerDay: 100,
116
- maxSentinelCountPerProject: 5,
116
+ maxSentinelCount: 5,
117
117
  },
118
118
  ABYSS_FORM: {
119
119
  maxDocumentPerForm: 10,
@@ -138,7 +138,7 @@ exports.PROJECT_SUBSCRIPTION_CONFIG = {
138
138
  statsHistoryDays: 7,
139
139
  maxStoreEntry: 100,
140
140
  eventPublishLimitPerDay: 1000,
141
- maxSentinelCountPerProject: 30,
141
+ maxSentinelCount: 30,
142
142
  },
143
143
  ABYSS_FORM: {
144
144
  maxDocumentPerForm: 50,
@@ -163,7 +163,7 @@ exports.PROJECT_SUBSCRIPTION_CONFIG = {
163
163
  statsHistoryDays: Infinity,
164
164
  maxStoreEntry: 500,
165
165
  eventPublishLimitPerDay: 10000,
166
- maxSentinelCountPerProject: 100,
166
+ maxSentinelCount: 100,
167
167
  },
168
168
  ABYSS_FORM: {
169
169
  maxDocumentPerForm: 100,
@@ -36,6 +36,7 @@ export declare enum UserNotificationContentType {
36
36
  CRON_TASK_DISABLED = "cron-task-disabled",
37
37
  MONITOR_WEBHOOK_UNDELIVERABLE = "monitor-webhook-undeliverable",
38
38
  MONITOR_WEBHOOK_UNDELIVERABLE_DISABLE = "monitor-webhook-undeliverable-disable",
39
+ MONITOR_SENTINEL_CHECK_FAILED = "monitor-sentinel-check-failed",
39
40
  INVITE_EVENT = "invite-event",
40
41
  CHANGE_OWNER_EVENT = "change-owner-event",
41
42
  CREATE_POLL_EVENT = "create-poll-event",
@@ -276,6 +277,15 @@ export declare class UserNotificationContentTypeData implements Record<UserNotif
276
277
  applicationWebhookName: string;
277
278
  scope: string;
278
279
  };
280
+ [UserNotificationContentType.MONITOR_SENTINEL_CHECK_FAILED]: {
281
+ projectId: string;
282
+ applicationId: string;
283
+ applicationName: string;
284
+ sentinelHistoryId: string;
285
+ sentinelName: string;
286
+ sentinelId: string;
287
+ date: string;
288
+ };
279
289
  [UserNotificationContentType.INVITE_EVENT]: {
280
290
  eventId: string;
281
291
  eventName: string;
@@ -40,6 +40,7 @@ var UserNotificationContentType;
40
40
  UserNotificationContentType["CRON_TASK_DISABLED"] = "cron-task-disabled";
41
41
  UserNotificationContentType["MONITOR_WEBHOOK_UNDELIVERABLE"] = "monitor-webhook-undeliverable";
42
42
  UserNotificationContentType["MONITOR_WEBHOOK_UNDELIVERABLE_DISABLE"] = "monitor-webhook-undeliverable-disable";
43
+ UserNotificationContentType["MONITOR_SENTINEL_CHECK_FAILED"] = "monitor-sentinel-check-failed";
43
44
  UserNotificationContentType["INVITE_EVENT"] = "invite-event";
44
45
  UserNotificationContentType["CHANGE_OWNER_EVENT"] = "change-owner-event";
45
46
  UserNotificationContentType["CREATE_POLL_EVENT"] = "create-poll-event";
@@ -55,4 +56,4 @@ var UserNotificationContentType;
55
56
  class UserNotificationContentTypeData {
56
57
  }
57
58
  exports.UserNotificationContentTypeData = UserNotificationContentTypeData;
58
- 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.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.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;
59
+ 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.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_FAILED, 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/main",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",