@abyss-project/main 1.0.7 → 1.0.9

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.
@@ -172,5 +172,11 @@ export declare const enTranslation: {
172
172
  content: string;
173
173
  };
174
174
  };
175
+ ABYSS_SPOTLIGHT: {
176
+ "spotlight-project-new-post": {
177
+ title: string;
178
+ content: string;
179
+ };
180
+ };
175
181
  };
176
182
  };
@@ -176,5 +176,11 @@ exports.enTranslation = {
176
176
  content: `The connection with bank "{bankName}" has expired!`,
177
177
  },
178
178
  },
179
+ [types_1.AbyssService.ABYSS_SPOTLIGHT]: {
180
+ [types_1.UserNotificationContentType.SPOTLIGHT_PROJECT_NEW_POST]: {
181
+ title: 'New post',
182
+ content: 'A new post has been published in the project "{projectName}"',
183
+ },
184
+ },
179
185
  },
180
186
  };
@@ -172,5 +172,11 @@ export declare const frTranslation: {
172
172
  content: string;
173
173
  };
174
174
  };
175
+ ABYSS_SPOTLIGHT: {
176
+ "spotlight-project-new-post": {
177
+ title: string;
178
+ content: string;
179
+ };
180
+ };
175
181
  };
176
182
  };
@@ -176,5 +176,11 @@ exports.frTranslation = {
176
176
  content: `La connexion avec la banque "{bankName}" a expiré !`,
177
177
  },
178
178
  },
179
+ [types_1.AbyssService.ABYSS_SPOTLIGHT]: {
180
+ [types_1.UserNotificationContentType.SPOTLIGHT_PROJECT_NEW_POST]: {
181
+ title: 'Nouveau post',
182
+ content: 'Un nouveau post a été publié dans le projet "{projectName}"',
183
+ },
184
+ },
179
185
  },
180
186
  };
@@ -1,3 +1,4 @@
1
1
  export declare enum NewsletterType {
2
- ABYSS_BANKING_LAUNCH_ANNOUNCEMENT = "ABYSS_BANKING_LAUNCH_ANNOUNCEMENT"
2
+ ABYSS_BANKING_LAUNCH_ANNOUNCEMENT = "ABYSS_BANKING_LAUNCH_ANNOUNCEMENT",
3
+ ABYSS_SPOTLIGHT_LAUNCH_ANNOUNCEMENT = "ABYSS_SPOTLIGHT_LAUNCH_ANNOUNCEMENT"
3
4
  }
@@ -4,4 +4,5 @@ exports.NewsletterType = void 0;
4
4
  var NewsletterType;
5
5
  (function (NewsletterType) {
6
6
  NewsletterType["ABYSS_BANKING_LAUNCH_ANNOUNCEMENT"] = "ABYSS_BANKING_LAUNCH_ANNOUNCEMENT";
7
+ NewsletterType["ABYSS_SPOTLIGHT_LAUNCH_ANNOUNCEMENT"] = "ABYSS_SPOTLIGHT_LAUNCH_ANNOUNCEMENT";
7
8
  })(NewsletterType = exports.NewsletterType || (exports.NewsletterType = {}));
@@ -38,7 +38,8 @@ export declare enum UserNotificationContentType {
38
38
  CHANGE_OWNER_EVENT = "change-owner-event",
39
39
  CREATE_POLL_EVENT = "create-poll-event",
40
40
  BANK_CONNECTION_EXPIRE = "bank-connection-expire",
41
- BANK_CONNECTION_SUCCESS = "bank-connection-success"
41
+ BANK_CONNECTION_SUCCESS = "bank-connection-success",
42
+ SPOTLIGHT_PROJECT_NEW_POST = "spotlight-project-new-post"
42
43
  }
43
44
  export declare class UserNotificationContentTypeData implements Record<UserNotificationContentType, Record<string, string>> {
44
45
  [UserNotificationContentType.USER_CREDIT_PURCHASE]: {
@@ -276,4 +277,10 @@ export declare class UserNotificationContentTypeData implements Record<UserNotif
276
277
  bankName: string;
277
278
  logoUrl?: string;
278
279
  };
280
+ [UserNotificationContentType.SPOTLIGHT_PROJECT_NEW_POST]: {
281
+ projectId: string;
282
+ projectName: string;
283
+ postTitle: string;
284
+ projectSlug: string;
285
+ };
279
286
  }
@@ -43,8 +43,9 @@ var UserNotificationContentType;
43
43
  UserNotificationContentType["CREATE_POLL_EVENT"] = "create-poll-event";
44
44
  UserNotificationContentType["BANK_CONNECTION_EXPIRE"] = "bank-connection-expire";
45
45
  UserNotificationContentType["BANK_CONNECTION_SUCCESS"] = "bank-connection-success";
46
+ UserNotificationContentType["SPOTLIGHT_PROJECT_NEW_POST"] = "spotlight-project-new-post";
46
47
  })(UserNotificationContentType = exports.UserNotificationContentType || (exports.UserNotificationContentType = {}));
47
48
  class UserNotificationContentTypeData {
48
49
  }
49
50
  exports.UserNotificationContentTypeData = UserNotificationContentTypeData;
50
- 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;
51
+ 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/main",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",