@abyss-project/main 1.0.12 → 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.
|
@@ -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;
|
|
@@ -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;
|