@abyss-project/main 1.0.20 → 1.0.22

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.
@@ -179,15 +179,23 @@ export declare const enTranslation: {
179
179
  };
180
180
  };
181
181
  ABYSS_FORM: {
182
- FORM_SUBMISSION_COMPLETED: {
182
+ "form-submission-completed": {
183
183
  title: string;
184
184
  content: string;
185
185
  };
186
- FORM_WEBHOOK_UNDELIVERABLE: {
186
+ "form-webhook-undeliverable": {
187
187
  title: string;
188
188
  content: string;
189
189
  };
190
- FORM_WEBHOOK_UNDELIVERABLE_DISABLE: {
190
+ "form-webhook-undeliverable-disable": {
191
+ title: string;
192
+ content: string;
193
+ };
194
+ "form-daily-submission-limit-reached": {
195
+ title: string;
196
+ content: string;
197
+ };
198
+ "form-submission-limit-reached": {
191
199
  title: string;
192
200
  content: string;
193
201
  };
@@ -195,6 +195,14 @@ exports.enTranslation = {
195
195
  title: 'Webhook Disabled',
196
196
  content: `The webhook {formWebhookName} of the form "{formTitle}" has been disabled due to multiple errors`,
197
197
  },
198
+ [types_1.UserNotificationContentType.FORM_DAILY_SUBMISSION_LIMIT_REACHED]: {
199
+ title: 'Daily Submission Limit Reached',
200
+ content: 'The daily submission limit ({limitReachedCount}) for form "{formTitle}" has been reached',
201
+ },
202
+ [types_1.UserNotificationContentType.FORM_SUBMISSION_LIMIT_REACHED]: {
203
+ title: 'Submission Limit Reached',
204
+ content: 'The submission limit ({limitReachedCount}) for form "{formTitle}" has been reached',
205
+ },
198
206
  },
199
207
  },
200
208
  };
@@ -179,15 +179,23 @@ export declare const frTranslation: {
179
179
  };
180
180
  };
181
181
  ABYSS_FORM: {
182
- FORM_SUBMISSION_COMPLETED: {
182
+ "form-submission-completed": {
183
183
  title: string;
184
184
  content: string;
185
185
  };
186
- FORM_WEBHOOK_UNDELIVERABLE: {
186
+ "form-webhook-undeliverable": {
187
187
  title: string;
188
188
  content: string;
189
189
  };
190
- FORM_WEBHOOK_UNDELIVERABLE_DISABLE: {
190
+ "form-webhook-undeliverable-disable": {
191
+ title: string;
192
+ content: string;
193
+ };
194
+ "form-daily-submission-limit-reached": {
195
+ title: string;
196
+ content: string;
197
+ };
198
+ "form-submission-limit-reached": {
191
199
  title: string;
192
200
  content: string;
193
201
  };
@@ -195,6 +195,14 @@ exports.frTranslation = {
195
195
  title: 'Désactivation du Webhook',
196
196
  content: `Le Webhook {formWebhookName} du formulaire "{formTitle}" a été désactivé pour cause d'erreurs multiples`,
197
197
  },
198
+ [types_1.UserNotificationContentType.FORM_DAILY_SUBMISSION_LIMIT_REACHED]: {
199
+ title: 'Limite de soumission quotidienne atteinte',
200
+ content: 'La limite de soumission quotidienne ({limitReachedCount}) pour le formulaire "{formTitle}" a été atteinte',
201
+ },
202
+ [types_1.UserNotificationContentType.FORM_SUBMISSION_LIMIT_REACHED]: {
203
+ title: 'Limite de soumission atteinte',
204
+ content: 'La limite de soumission ({limitReachedCount}) pour le formulaire "{formTitle}" a été atteinte',
205
+ },
198
206
  },
199
207
  },
200
208
  };
@@ -40,9 +40,11 @@ export declare enum UserNotificationContentType {
40
40
  BANK_CONNECTION_EXPIRE = "bank-connection-expire",
41
41
  BANK_CONNECTION_SUCCESS = "bank-connection-success",
42
42
  SPOTLIGHT_PROJECT_NEW_POST = "spotlight-project-new-post",
43
- FORM_SUBMISSION_COMPLETED = "FORM_SUBMISSION_COMPLETED",
44
- FORM_WEBHOOK_UNDELIVERABLE = "FORM_WEBHOOK_UNDELIVERABLE",
45
- FORM_WEBHOOK_UNDELIVERABLE_DISABLE = "FORM_WEBHOOK_UNDELIVERABLE_DISABLE"
43
+ FORM_SUBMISSION_COMPLETED = "form-submission-completed",
44
+ FORM_DAILY_SUBMISSION_LIMIT_REACHED = "form-daily-submission-limit-reached",
45
+ FORM_SUBMISSION_LIMIT_REACHED = "form-submission-limit-reached",
46
+ FORM_WEBHOOK_UNDELIVERABLE = "form-webhook-undeliverable",
47
+ FORM_WEBHOOK_UNDELIVERABLE_DISABLE = "form-webhook-undeliverable-disable"
46
48
  }
47
49
  export declare class UserNotificationContentTypeData implements Record<UserNotificationContentType, Record<string, string | null>> {
48
50
  [UserNotificationContentType.USER_CREDIT_PURCHASE]: {
@@ -311,4 +313,16 @@ export declare class UserNotificationContentTypeData implements Record<UserNotif
311
313
  formWebhookId: string;
312
314
  formWebhookName: string;
313
315
  };
316
+ [UserNotificationContentType.FORM_DAILY_SUBMISSION_LIMIT_REACHED]: {
317
+ projectId: string | null;
318
+ formId: string;
319
+ formTitle: string;
320
+ limitReachedCount: string;
321
+ };
322
+ [UserNotificationContentType.FORM_SUBMISSION_LIMIT_REACHED]: {
323
+ projectId: string | null;
324
+ formId: string;
325
+ formTitle: string;
326
+ limitReachedCount: string;
327
+ };
314
328
  }
@@ -44,11 +44,13 @@ var UserNotificationContentType;
44
44
  UserNotificationContentType["BANK_CONNECTION_EXPIRE"] = "bank-connection-expire";
45
45
  UserNotificationContentType["BANK_CONNECTION_SUCCESS"] = "bank-connection-success";
46
46
  UserNotificationContentType["SPOTLIGHT_PROJECT_NEW_POST"] = "spotlight-project-new-post";
47
- UserNotificationContentType["FORM_SUBMISSION_COMPLETED"] = "FORM_SUBMISSION_COMPLETED";
48
- UserNotificationContentType["FORM_WEBHOOK_UNDELIVERABLE"] = "FORM_WEBHOOK_UNDELIVERABLE";
49
- UserNotificationContentType["FORM_WEBHOOK_UNDELIVERABLE_DISABLE"] = "FORM_WEBHOOK_UNDELIVERABLE_DISABLE";
47
+ UserNotificationContentType["FORM_SUBMISSION_COMPLETED"] = "form-submission-completed";
48
+ UserNotificationContentType["FORM_DAILY_SUBMISSION_LIMIT_REACHED"] = "form-daily-submission-limit-reached";
49
+ UserNotificationContentType["FORM_SUBMISSION_LIMIT_REACHED"] = "form-submission-limit-reached";
50
+ UserNotificationContentType["FORM_WEBHOOK_UNDELIVERABLE"] = "form-webhook-undeliverable";
51
+ UserNotificationContentType["FORM_WEBHOOK_UNDELIVERABLE_DISABLE"] = "form-webhook-undeliverable-disable";
50
52
  })(UserNotificationContentType || (exports.UserNotificationContentType = UserNotificationContentType = {}));
51
53
  class UserNotificationContentTypeData {
52
54
  }
53
55
  exports.UserNotificationContentTypeData = UserNotificationContentTypeData;
54
- 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.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;
56
+ 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.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.20",
3
+ "version": "1.0.22",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",