@abyss-project/main 1.0.12 → 1.0.14
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.
- package/dist/types/enum/project-application-access-permission.enum.d.ts +1 -1
- package/dist/types/enum/project-application-access-permission.enum.js +1 -1
- package/dist/types/enum/subscription-level.enum.d.ts +1 -0
- package/dist/types/enum/subscription-level.enum.js +3 -0
- package/dist/types/enum/user-notification-content-type.enum.d.ts +31 -2
- package/dist/types/enum/user-notification-content-type.enum.js +4 -1
- package/dist/types/interface/models/user-notification.model.d.ts +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ export declare enum ProjectApplicationAccessPermission {
|
|
|
15
15
|
MONITOR_STORE_UPDATE = "MONITOR_STORE_UPDATE",
|
|
16
16
|
MONITOR_STORE_DELETE = "MONITOR_STORE_DELETE",
|
|
17
17
|
MONITOR_STORE_CREATE = "MONITOR_STORE_CREATE",
|
|
18
|
-
STORAGE_FULL_ACCESS = "
|
|
18
|
+
STORAGE_FULL_ACCESS = "STORAGE_FULL_ACCESS",
|
|
19
19
|
STORAGE_READ = "STORAGE_READ",
|
|
20
20
|
STORAGE_FILE_READ = "STORAGE_FILE_READ",
|
|
21
21
|
STORAGE_FILE_DUPLICATE = "STORAGE_FILE_DUPLICATE",
|
|
@@ -19,7 +19,7 @@ var ProjectApplicationAccessPermission;
|
|
|
19
19
|
ProjectApplicationAccessPermission["MONITOR_STORE_UPDATE"] = "MONITOR_STORE_UPDATE";
|
|
20
20
|
ProjectApplicationAccessPermission["MONITOR_STORE_DELETE"] = "MONITOR_STORE_DELETE";
|
|
21
21
|
ProjectApplicationAccessPermission["MONITOR_STORE_CREATE"] = "MONITOR_STORE_CREATE";
|
|
22
|
-
ProjectApplicationAccessPermission["STORAGE_FULL_ACCESS"] = "
|
|
22
|
+
ProjectApplicationAccessPermission["STORAGE_FULL_ACCESS"] = "STORAGE_FULL_ACCESS";
|
|
23
23
|
ProjectApplicationAccessPermission["STORAGE_READ"] = "STORAGE_READ";
|
|
24
24
|
ProjectApplicationAccessPermission["STORAGE_FILE_READ"] = "STORAGE_FILE_READ";
|
|
25
25
|
ProjectApplicationAccessPermission["STORAGE_FILE_DUPLICATE"] = "STORAGE_FILE_DUPLICATE";
|
|
@@ -31,6 +31,7 @@ type UserConfigPerService = {
|
|
|
31
31
|
};
|
|
32
32
|
[AbyssService.ABYSS_BANKING]: {};
|
|
33
33
|
[AbyssService.ABYSS_SPOTLIGHT]: {};
|
|
34
|
+
[AbyssService.ABYSS_FORM]: {};
|
|
34
35
|
};
|
|
35
36
|
export type UserSubscriptionConfig = Record<SubscriptionLevel, UserConfigPerService>;
|
|
36
37
|
export declare const USER_SUBSCRIPTION_CONFIG: UserSubscriptionConfig;
|
|
@@ -38,6 +38,7 @@ exports.USER_SUBSCRIPTION_CONFIG = {
|
|
|
38
38
|
},
|
|
39
39
|
ABYSS_BANKING: {},
|
|
40
40
|
ABYSS_SPOTLIGHT: {},
|
|
41
|
+
ABYSS_FORM: {},
|
|
41
42
|
},
|
|
42
43
|
[SubscriptionLevel.ADVANCED]: {
|
|
43
44
|
ABYSS: {
|
|
@@ -56,6 +57,7 @@ exports.USER_SUBSCRIPTION_CONFIG = {
|
|
|
56
57
|
},
|
|
57
58
|
ABYSS_BANKING: {},
|
|
58
59
|
ABYSS_SPOTLIGHT: {},
|
|
60
|
+
ABYSS_FORM: {},
|
|
59
61
|
},
|
|
60
62
|
[SubscriptionLevel.PREMIUM]: {
|
|
61
63
|
ABYSS: {
|
|
@@ -74,6 +76,7 @@ exports.USER_SUBSCRIPTION_CONFIG = {
|
|
|
74
76
|
},
|
|
75
77
|
ABYSS_BANKING: {},
|
|
76
78
|
ABYSS_SPOTLIGHT: {},
|
|
79
|
+
ABYSS_FORM: {},
|
|
77
80
|
},
|
|
78
81
|
};
|
|
79
82
|
exports.PROJECT_SUBSCRIPTION_CONFIG = {
|
|
@@ -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;
|