@abyss-project/main 1.0.11 → 1.0.13

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.
@@ -35,5 +35,6 @@ export declare enum Code {
35
35
  fileNotExists = "file_no_exists",
36
36
  fileTooBig = "file_too_big",
37
37
  unsubscribeNewsletter = "unsubscribe_newsletter",
38
- unableToDeleteSpotlightProjectExist = "unable_to_delete_spotlight_project_exist"
38
+ unableToDeleteSpotlightProjectExist = "unable_to_delete_spotlight_project_exist",
39
+ unableToDeleteFormExist = "unable_to_delete_form_exist"
39
40
  }
@@ -41,4 +41,5 @@ var Code;
41
41
  Code["fileTooBig"] = "file_too_big";
42
42
  Code["unsubscribeNewsletter"] = "unsubscribe_newsletter";
43
43
  Code["unableToDeleteSpotlightProjectExist"] = "unable_to_delete_spotlight_project_exist";
44
+ Code["unableToDeleteFormExist"] = "unable_to_delete_form_exist";
44
45
  })(Code || (exports.Code = Code = {}));
@@ -39,9 +39,12 @@ export declare enum UserNotificationContentType {
39
39
  CREATE_POLL_EVENT = "create-poll-event",
40
40
  BANK_CONNECTION_EXPIRE = "bank-connection-expire",
41
41
  BANK_CONNECTION_SUCCESS = "bank-connection-success",
42
- SPOTLIGHT_PROJECT_NEW_POST = "spotlight-project-new-post"
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
46
  }
44
- export declare class UserNotificationContentTypeData implements Record<UserNotificationContentType, Record<string, string>> {
47
+ export declare class UserNotificationContentTypeData implements Record<UserNotificationContentType, Record<string, string | null>> {
45
48
  [UserNotificationContentType.USER_CREDIT_PURCHASE]: {
46
49
  amount: string;
47
50
  };
@@ -283,4 +286,30 @@ export declare class UserNotificationContentTypeData implements Record<UserNotif
283
286
  postTitle: string;
284
287
  projectSlug: string;
285
288
  };
289
+ [UserNotificationContentType.FORM_SUBMISSION_COMPLETED]: {
290
+ projectId: string | null;
291
+ formId: string;
292
+ formTitle: string;
293
+ email: string;
294
+ submissionId: string;
295
+ };
296
+ [UserNotificationContentType.FORM_WEBHOOK_UNDELIVERABLE]: {
297
+ projectId: string | null;
298
+ formId: string;
299
+ formTitle: string;
300
+ webhookId: string;
301
+ formWebhookId: string;
302
+ formWebhookName: string;
303
+ groupId: string;
304
+ totalFailureInRow: string;
305
+ };
306
+ [UserNotificationContentType.FORM_WEBHOOK_UNDELIVERABLE_DISABLE]: {
307
+ projectId: string | null;
308
+ formId: string;
309
+ formTitle: string;
310
+ webhookId: string;
311
+ formWebhookId: string;
312
+ formWebhookName: string;
313
+ totalFailureInRow: string;
314
+ };
286
315
  }
@@ -44,8 +44,11 @@ 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
50
  })(UserNotificationContentType || (exports.UserNotificationContentType = UserNotificationContentType = {}));
48
51
  class UserNotificationContentTypeData {
49
52
  }
50
53
  exports.UserNotificationContentTypeData = UserNotificationContentTypeData;
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;
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;
@@ -22,6 +22,7 @@ export interface IDeleteProjectAdminParams extends core.ParamsDictionary {
22
22
  }
23
23
  export interface IDeleteProjectAdminQuery {
24
24
  deleteSpotlightProject?: boolean;
25
+ deleteForm?: boolean;
25
26
  }
26
27
  export interface IUpdateProjectAdminParams extends core.ParamsDictionary {
27
28
  projectId: string;
@@ -25,6 +25,7 @@ export interface IDeleteProjectParams extends core.ParamsDictionary {
25
25
  }
26
26
  export interface IDeleteProjectQuery {
27
27
  deleteSpotlightProject?: boolean;
28
+ deleteForm?: boolean;
28
29
  }
29
30
  export interface IUpdateProjectParams extends core.ParamsDictionary {
30
31
  projectId: string;
@@ -5,7 +5,7 @@ export interface IUserNotification {
5
5
  service: AbyssService;
6
6
  type: UserNotificationType;
7
7
  contentType: UserNotificationContentType;
8
- data: Record<string, string>;
8
+ data: Record<string, string | null>;
9
9
  openedAt: Date | null;
10
10
  userId: string | null;
11
11
  updatedAt?: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/main",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",