@abyss-project/main 1.0.0
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/README.md +2 -0
- package/dist/api/application.admin.api.d.ts +8 -0
- package/dist/api/application.admin.api.js +35 -0
- package/dist/api/application.api.d.ts +7 -0
- package/dist/api/application.api.js +31 -0
- package/dist/api/auth.api.d.ts +10 -0
- package/dist/api/auth.api.js +57 -0
- package/dist/api/billing.api.d.ts +4 -0
- package/dist/api/billing.api.js +16 -0
- package/dist/api/gift-code.admin.api.d.ts +8 -0
- package/dist/api/gift-code.admin.api.js +34 -0
- package/dist/api/gift-code.api.d.ts +4 -0
- package/dist/api/gift-code.api.js +20 -0
- package/dist/api/index.d.ts +23 -0
- package/dist/api/index.js +39 -0
- package/dist/api/metrics.admin.api.d.ts +4 -0
- package/dist/api/metrics.admin.api.js +16 -0
- package/dist/api/monitor.api.d.ts +2 -0
- package/dist/api/monitor.api.js +8 -0
- package/dist/api/newsletter.admin.api.d.ts +6 -0
- package/dist/api/newsletter.admin.api.js +25 -0
- package/dist/api/project-access.admin.api.d.ts +12 -0
- package/dist/api/project-access.admin.api.js +48 -0
- package/dist/api/project-access.api.d.ts +14 -0
- package/dist/api/project-access.api.js +59 -0
- package/dist/api/project.admin.api.d.ts +6 -0
- package/dist/api/project.admin.api.js +28 -0
- package/dist/api/project.api.d.ts +14 -0
- package/dist/api/project.api.js +60 -0
- package/dist/api/user-credit-purchase.admin.api.d.ts +7 -0
- package/dist/api/user-credit-purchase.admin.api.js +28 -0
- package/dist/api/user-credit-purchase.api.d.ts +3 -0
- package/dist/api/user-credit-purchase.api.js +14 -0
- package/dist/api/user-notification.admin.api.d.ts +5 -0
- package/dist/api/user-notification.admin.api.js +20 -0
- package/dist/api/user-notification.api.d.ts +4 -0
- package/dist/api/user-notification.api.js +18 -0
- package/dist/api/user-ticket.admin.api.d.ts +11 -0
- package/dist/api/user-ticket.admin.api.js +49 -0
- package/dist/api/user-ticket.api.d.ts +10 -0
- package/dist/api/user-ticket.api.js +45 -0
- package/dist/api/user-transaction.admin.api.d.ts +5 -0
- package/dist/api/user-transaction.admin.api.js +20 -0
- package/dist/api/user-transaction.api.d.ts +3 -0
- package/dist/api/user-transaction.api.js +14 -0
- package/dist/api/user.admin.api.d.ts +10 -0
- package/dist/api/user.admin.api.js +41 -0
- package/dist/api/user.api.d.ts +19 -0
- package/dist/api/user.api.js +84 -0
- package/dist/front/index.d.ts +1 -0
- package/dist/front/index.js +17 -0
- package/dist/front/redirection.d.ts +2 -0
- package/dist/front/redirection.js +5 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +89 -0
- package/dist/translate/en.translate.d.ts +176 -0
- package/dist/translate/en.translate.js +180 -0
- package/dist/translate/fr.translate.d.ts +176 -0
- package/dist/translate/fr.translate.js +180 -0
- package/dist/translate/index.d.ts +2 -0
- package/dist/translate/index.js +18 -0
- package/dist/types/enum/abyss-service.enum.d.ts +10 -0
- package/dist/types/enum/abyss-service.enum.js +14 -0
- package/dist/types/enum/api-error.enum.d.ts +38 -0
- package/dist/types/enum/api-error.enum.js +43 -0
- package/dist/types/enum/billing-product.enum.d.ts +8 -0
- package/dist/types/enum/billing-product.enum.js +12 -0
- package/dist/types/enum/gift-code-type.enum.d.ts +3 -0
- package/dist/types/enum/gift-code-type.enum.js +7 -0
- package/dist/types/enum/index.d.ts +18 -0
- package/dist/types/enum/index.js +34 -0
- package/dist/types/enum/newsletter-type.enum.d.ts +3 -0
- package/dist/types/enum/newsletter-type.enum.js +7 -0
- package/dist/types/enum/oauth-account-type.enum.d.ts +3 -0
- package/dist/types/enum/oauth-account-type.enum.js +7 -0
- package/dist/types/enum/project-access-permission.enum.d.ts +13 -0
- package/dist/types/enum/project-access-permission.enum.js +17 -0
- package/dist/types/enum/project-application-access-permission.enum.d.ts +38 -0
- package/dist/types/enum/project-application-access-permission.enum.js +42 -0
- package/dist/types/enum/subscription-level.enum.d.ts +54 -0
- package/dist/types/enum/subscription-level.enum.js +125 -0
- package/dist/types/enum/token-type.enum.d.ts +5 -0
- package/dist/types/enum/token-type.enum.js +9 -0
- package/dist/types/enum/user-credit-purchase-currency.enum.d.ts +5 -0
- package/dist/types/enum/user-credit-purchase-currency.enum.js +9 -0
- package/dist/types/enum/user-credit-purchase-payment-method.enum.d.ts +3 -0
- package/dist/types/enum/user-credit-purchase-payment-method.enum.js +7 -0
- package/dist/types/enum/user-credit-purchase-platform.enum.d.ts +8 -0
- package/dist/types/enum/user-credit-purchase-platform.enum.js +12 -0
- package/dist/types/enum/user-language.enum.d.ts +4 -0
- package/dist/types/enum/user-language.enum.js +8 -0
- package/dist/types/enum/user-notification-content-type.enum.d.ts +279 -0
- package/dist/types/enum/user-notification-content-type.enum.js +50 -0
- package/dist/types/enum/user-notification-type.enum.d.ts +6 -0
- package/dist/types/enum/user-notification-type.enum.js +10 -0
- package/dist/types/enum/user-ticket-category.enum.d.ts +9 -0
- package/dist/types/enum/user-ticket-category.enum.js +13 -0
- package/dist/types/enum/user-transaction-type.enum.d.ts +14 -0
- package/dist/types/enum/user-transaction-type.enum.js +18 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.js +21 -0
- package/dist/types/interface/api/index.d.ts +48 -0
- package/dist/types/interface/api/index.js +64 -0
- package/dist/types/interface/api/requests/application.admin.request.d.ts +36 -0
- package/dist/types/interface/api/requests/application.admin.request.js +2 -0
- package/dist/types/interface/api/requests/application.request.d.ts +35 -0
- package/dist/types/interface/api/requests/application.request.js +2 -0
- package/dist/types/interface/api/requests/auth.request.d.ts +40 -0
- package/dist/types/interface/api/requests/auth.request.js +2 -0
- package/dist/types/interface/api/requests/billing.request.d.ts +9 -0
- package/dist/types/interface/api/requests/billing.request.js +2 -0
- package/dist/types/interface/api/requests/gift-code.admin.request.d.ts +53 -0
- package/dist/types/interface/api/requests/gift-code.admin.request.js +2 -0
- package/dist/types/interface/api/requests/gift-code.request.d.ts +12 -0
- package/dist/types/interface/api/requests/gift-code.request.js +2 -0
- package/dist/types/interface/api/requests/newsletter.admin.request.d.ts +21 -0
- package/dist/types/interface/api/requests/newsletter.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project-access.admin.request.d.ts +72 -0
- package/dist/types/interface/api/requests/project-access.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project-access.request.d.ts +78 -0
- package/dist/types/interface/api/requests/project-access.request.js +2 -0
- package/dist/types/interface/api/requests/project.admin.request.d.ts +26 -0
- package/dist/types/interface/api/requests/project.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project.request.d.ts +57 -0
- package/dist/types/interface/api/requests/project.request.js +2 -0
- package/dist/types/interface/api/requests/user-credit-purchase.admin.request.d.ts +43 -0
- package/dist/types/interface/api/requests/user-credit-purchase.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user-credit-purchase.request.d.ts +10 -0
- package/dist/types/interface/api/requests/user-credit-purchase.request.js +2 -0
- package/dist/types/interface/api/requests/user-notification.admin.request.d.ts +27 -0
- package/dist/types/interface/api/requests/user-notification.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user-notification.request.d.ts +14 -0
- package/dist/types/interface/api/requests/user-notification.request.js +2 -0
- package/dist/types/interface/api/requests/user-ticket.admin.request.d.ts +61 -0
- package/dist/types/interface/api/requests/user-ticket.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user-ticket.request.d.ts +50 -0
- package/dist/types/interface/api/requests/user-ticket.request.js +2 -0
- package/dist/types/interface/api/requests/user-transaction.admin.request.d.ts +31 -0
- package/dist/types/interface/api/requests/user-transaction.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user-transaction.request.d.ts +8 -0
- package/dist/types/interface/api/requests/user-transaction.request.js +2 -0
- package/dist/types/interface/api/requests/user.admin.request.d.ts +50 -0
- package/dist/types/interface/api/requests/user.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user.request.d.ts +85 -0
- package/dist/types/interface/api/requests/user.request.js +2 -0
- package/dist/types/interface/api/responses/application.admin.response.d.ts +28 -0
- package/dist/types/interface/api/responses/application.admin.response.js +2 -0
- package/dist/types/interface/api/responses/application.response.d.ts +25 -0
- package/dist/types/interface/api/responses/application.response.js +2 -0
- package/dist/types/interface/api/responses/auth.response.d.ts +42 -0
- package/dist/types/interface/api/responses/auth.response.js +2 -0
- package/dist/types/interface/api/responses/billing.response.d.ts +18 -0
- package/dist/types/interface/api/responses/billing.response.js +2 -0
- package/dist/types/interface/api/responses/gift-code.admin.response.d.ts +25 -0
- package/dist/types/interface/api/responses/gift-code.admin.response.js +2 -0
- package/dist/types/interface/api/responses/gift-code.response.d.ts +12 -0
- package/dist/types/interface/api/responses/gift-code.response.js +2 -0
- package/dist/types/interface/api/responses/metrics.admin.response.d.ts +40 -0
- package/dist/types/interface/api/responses/metrics.admin.response.js +2 -0
- package/dist/types/interface/api/responses/monitor.response.d.ts +7 -0
- package/dist/types/interface/api/responses/monitor.response.js +2 -0
- package/dist/types/interface/api/responses/newsletter.admin.response.d.ts +17 -0
- package/dist/types/interface/api/responses/newsletter.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project-access.admin.response.d.ts +46 -0
- package/dist/types/interface/api/responses/project-access.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project-access.response.d.ts +49 -0
- package/dist/types/interface/api/responses/project-access.response.js +2 -0
- package/dist/types/interface/api/responses/project.admin.response.d.ts +49 -0
- package/dist/types/interface/api/responses/project.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project.response.d.ts +94 -0
- package/dist/types/interface/api/responses/project.response.js +2 -0
- package/dist/types/interface/api/responses/user-credit-purchase.admin.response.d.ts +22 -0
- package/dist/types/interface/api/responses/user-credit-purchase.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user-credit-purchase.response.d.ts +8 -0
- package/dist/types/interface/api/responses/user-credit-purchase.response.js +2 -0
- package/dist/types/interface/api/responses/user-notification.admin.response.d.ts +19 -0
- package/dist/types/interface/api/responses/user-notification.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user-notification.response.d.ts +13 -0
- package/dist/types/interface/api/responses/user-notification.response.js +2 -0
- package/dist/types/interface/api/responses/user-ticket.admin.response.d.ts +38 -0
- package/dist/types/interface/api/responses/user-ticket.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user-ticket.response.d.ts +34 -0
- package/dist/types/interface/api/responses/user-ticket.response.js +2 -0
- package/dist/types/interface/api/responses/user-transaction.admin.response.d.ts +13 -0
- package/dist/types/interface/api/responses/user-transaction.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user-transaction.response.d.ts +11 -0
- package/dist/types/interface/api/responses/user-transaction.response.js +2 -0
- package/dist/types/interface/api/responses/user.admin.response.d.ts +33 -0
- package/dist/types/interface/api/responses/user.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user.response.d.ts +90 -0
- package/dist/types/interface/api/responses/user.response.js +2 -0
- package/dist/types/interface/api/type-message/api-error.d.ts +8 -0
- package/dist/types/interface/api/type-message/api-error.js +2 -0
- package/dist/types/interface/api/type-message/base-order.d.ts +4 -0
- package/dist/types/interface/api/type-message/base-order.js +2 -0
- package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -0
- package/dist/types/interface/api/type-message/base-paginate.js +2 -0
- package/dist/types/interface/api/type-message/response.d.ts +5 -0
- package/dist/types/interface/api/type-message/response.js +2 -0
- package/dist/types/interface/index.d.ts +21 -0
- package/dist/types/interface/index.js +37 -0
- package/dist/types/interface/models/application.model.d.ts +14 -0
- package/dist/types/interface/models/application.model.js +2 -0
- package/dist/types/interface/models/gift-code-activation.model.d.ts +13 -0
- package/dist/types/interface/models/gift-code-activation.model.js +2 -0
- package/dist/types/interface/models/gift-code.model.d.ts +18 -0
- package/dist/types/interface/models/gift-code.model.js +2 -0
- package/dist/types/interface/models/newsletter-history.model.d.ts +8 -0
- package/dist/types/interface/models/newsletter-history.model.js +2 -0
- package/dist/types/interface/models/newsletter-member.model.d.ts +7 -0
- package/dist/types/interface/models/newsletter-member.model.js +2 -0
- package/dist/types/interface/models/oauth-account.model.d.ts +17 -0
- package/dist/types/interface/models/oauth-account.model.js +2 -0
- package/dist/types/interface/models/project-access.model.d.ts +19 -0
- package/dist/types/interface/models/project-access.model.js +2 -0
- package/dist/types/interface/models/project-application-access.model.d.ts +13 -0
- package/dist/types/interface/models/project-application-access.model.js +2 -0
- package/dist/types/interface/models/project-authentication-session.model.d.ts +10 -0
- package/dist/types/interface/models/project-authentication-session.model.js +2 -0
- package/dist/types/interface/models/project-authentication.model.d.ts +10 -0
- package/dist/types/interface/models/project-authentication.model.js +2 -0
- package/dist/types/interface/models/project.model.d.ts +20 -0
- package/dist/types/interface/models/project.model.js +2 -0
- package/dist/types/interface/models/subscription.model.d.ts +16 -0
- package/dist/types/interface/models/subscription.model.js +2 -0
- package/dist/types/interface/models/token-history.model.d.ts +44 -0
- package/dist/types/interface/models/token-history.model.js +2 -0
- package/dist/types/interface/models/user-credit-purchase.model.d.ts +22 -0
- package/dist/types/interface/models/user-credit-purchase.model.js +2 -0
- package/dist/types/interface/models/user-notification.model.d.ts +14 -0
- package/dist/types/interface/models/user-notification.model.js +2 -0
- package/dist/types/interface/models/user-ticket-message-attachment.model.d.ts +14 -0
- package/dist/types/interface/models/user-ticket-message-attachment.model.js +2 -0
- package/dist/types/interface/models/user-ticket-message.model.d.ts +14 -0
- package/dist/types/interface/models/user-ticket-message.model.js +2 -0
- package/dist/types/interface/models/user-ticket.model.d.ts +15 -0
- package/dist/types/interface/models/user-ticket.model.js +2 -0
- package/dist/types/interface/models/user-transaction.model.d.ts +19 -0
- package/dist/types/interface/models/user-transaction.model.js +2 -0
- package/dist/types/interface/models/user.model.d.ts +34 -0
- package/dist/types/interface/models/user.model.js +2 -0
- package/dist/types/models/index.d.ts +1 -0
- package/dist/types/models/index.js +17 -0
- package/dist/types/models/transfer.model.d.ts +36 -0
- package/dist/types/models/transfer.model.js +73 -0
- package/dist/types/session.d.ts +26 -0
- package/dist/types/session.js +2 -0
- package/dist/types/utils/billing.util.d.ts +2 -0
- package/dist/types/utils/billing.util.js +33 -0
- package/dist/types/utils/convert-query.util.d.ts +2 -0
- package/dist/types/utils/convert-query.util.js +2 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/index.js +21 -0
- package/dist/types/utils/notifications.type-util.d.ts +8 -0
- package/dist/types/utils/notifications.type-util.js +2 -0
- package/dist/types/utils/overwrite.util.d.ts +9 -0
- package/dist/types/utils/overwrite.util.js +2 -0
- package/dist/types/utils/require-one.util.d.ts +6 -0
- package/dist/types/utils/require-one.util.js +2 -0
- package/dist/utils/array.utils.d.ts +1 -0
- package/dist/utils/array.utils.js +7 -0
- package/dist/utils/byte.utils.d.ts +2 -0
- package/dist/utils/byte.utils.js +71 -0
- package/dist/utils/duration.utils.d.ts +1 -0
- package/dist/utils/duration.utils.js +10 -0
- package/dist/utils/enum-to-array.utils.d.ts +2 -0
- package/dist/utils/enum-to-array.utils.js +14 -0
- package/dist/utils/error.utils.d.ts +15 -0
- package/dist/utils/error.utils.js +24 -0
- package/dist/utils/import.utils.d.ts +1 -0
- package/dist/utils/import.utils.js +7 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.js +25 -0
- package/dist/utils/is-valid-object.utils.d.ts +1 -0
- package/dist/utils/is-valid-object.utils.js +12 -0
- package/dist/utils/notification.utils.d.ts +3 -0
- package/dist/utils/notification.utils.js +11 -0
- package/dist/utils/sleep.utils.d.ts +1 -0
- package/dist/utils/sleep.utils.js +9 -0
- package/dist/utils/subscription.utils.d.ts +6 -0
- package/dist/utils/subscription.utils.js +41 -0
- package/package.json +57 -0
- package/tsconfig.json +105 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PROJECT_SUBSCRIPTION_CONFIG = exports.USER_SUBSCRIPTION_CONFIG = exports.ProjectSubscriptionPrice = exports.UserSubscriptionPrice = exports.SubscriptionLevel = void 0;
|
|
4
|
+
const abyss_service_enum_1 = require("./abyss-service.enum");
|
|
5
|
+
var SubscriptionLevel;
|
|
6
|
+
(function (SubscriptionLevel) {
|
|
7
|
+
SubscriptionLevel["BASE"] = "BASE";
|
|
8
|
+
SubscriptionLevel["ADVANCED"] = "ADVANCED";
|
|
9
|
+
SubscriptionLevel["PREMIUM"] = "PREMIUM";
|
|
10
|
+
})(SubscriptionLevel = exports.SubscriptionLevel || (exports.SubscriptionLevel = {}));
|
|
11
|
+
var UserSubscriptionPrice;
|
|
12
|
+
(function (UserSubscriptionPrice) {
|
|
13
|
+
UserSubscriptionPrice[UserSubscriptionPrice["BASE"] = 0] = "BASE";
|
|
14
|
+
UserSubscriptionPrice[UserSubscriptionPrice["ADVANCED"] = 230] = "ADVANCED";
|
|
15
|
+
UserSubscriptionPrice[UserSubscriptionPrice["PREMIUM"] = 620] = "PREMIUM";
|
|
16
|
+
})(UserSubscriptionPrice = exports.UserSubscriptionPrice || (exports.UserSubscriptionPrice = {}));
|
|
17
|
+
var ProjectSubscriptionPrice;
|
|
18
|
+
(function (ProjectSubscriptionPrice) {
|
|
19
|
+
ProjectSubscriptionPrice[ProjectSubscriptionPrice["BASE"] = 0] = "BASE";
|
|
20
|
+
ProjectSubscriptionPrice[ProjectSubscriptionPrice["ADVANCED"] = 430] = "ADVANCED";
|
|
21
|
+
ProjectSubscriptionPrice[ProjectSubscriptionPrice["PREMIUM"] = 880] = "PREMIUM";
|
|
22
|
+
})(ProjectSubscriptionPrice = exports.ProjectSubscriptionPrice || (exports.ProjectSubscriptionPrice = {}));
|
|
23
|
+
exports.USER_SUBSCRIPTION_CONFIG = {
|
|
24
|
+
[SubscriptionLevel.BASE]: {
|
|
25
|
+
ABYSS: {
|
|
26
|
+
maxNumberOfProject: 2,
|
|
27
|
+
},
|
|
28
|
+
ABYSS_CLOUD: {
|
|
29
|
+
maxNumberOfCloud: 1,
|
|
30
|
+
maxStorageSizeGo: 5,
|
|
31
|
+
maxCloudShare: 1,
|
|
32
|
+
},
|
|
33
|
+
ABYSS_CRYPT: {
|
|
34
|
+
maxFileSizeMo: 20,
|
|
35
|
+
},
|
|
36
|
+
ABYSS_MEMORIES: {
|
|
37
|
+
maxMemberPerEvent: 8,
|
|
38
|
+
},
|
|
39
|
+
ABYSS_BANKING: {},
|
|
40
|
+
},
|
|
41
|
+
[SubscriptionLevel.ADVANCED]: {
|
|
42
|
+
ABYSS: {
|
|
43
|
+
maxNumberOfProject: 10,
|
|
44
|
+
},
|
|
45
|
+
ABYSS_CLOUD: {
|
|
46
|
+
maxNumberOfCloud: 3,
|
|
47
|
+
maxStorageSizeGo: 10,
|
|
48
|
+
maxCloudShare: 5,
|
|
49
|
+
},
|
|
50
|
+
ABYSS_CRYPT: {
|
|
51
|
+
maxFileSizeMo: 100,
|
|
52
|
+
},
|
|
53
|
+
ABYSS_MEMORIES: {
|
|
54
|
+
maxMemberPerEvent: Infinity,
|
|
55
|
+
},
|
|
56
|
+
ABYSS_BANKING: {},
|
|
57
|
+
},
|
|
58
|
+
[SubscriptionLevel.PREMIUM]: {
|
|
59
|
+
ABYSS: {
|
|
60
|
+
maxNumberOfProject: Infinity,
|
|
61
|
+
},
|
|
62
|
+
ABYSS_CLOUD: {
|
|
63
|
+
maxNumberOfCloud: 5,
|
|
64
|
+
maxStorageSizeGo: 20,
|
|
65
|
+
maxCloudShare: Infinity,
|
|
66
|
+
},
|
|
67
|
+
ABYSS_CRYPT: {
|
|
68
|
+
maxFileSizeMo: 100,
|
|
69
|
+
},
|
|
70
|
+
ABYSS_MEMORIES: {
|
|
71
|
+
maxMemberPerEvent: Infinity,
|
|
72
|
+
},
|
|
73
|
+
ABYSS_BANKING: {},
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
exports.PROJECT_SUBSCRIPTION_CONFIG = {
|
|
77
|
+
[SubscriptionLevel.BASE]: {
|
|
78
|
+
[abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
|
|
79
|
+
maxFileSizeMo: 25,
|
|
80
|
+
maxStorageSizeGo: 5,
|
|
81
|
+
maxThumbnailPerFile: 1,
|
|
82
|
+
maxPreSignUrlPerHour: 50,
|
|
83
|
+
freeFilePerDay: 3000,
|
|
84
|
+
creditPerFilePerDay: 0.003,
|
|
85
|
+
},
|
|
86
|
+
[abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
|
|
87
|
+
maxCronTask: 0,
|
|
88
|
+
logHistoryDays: 3,
|
|
89
|
+
statsHistoryDays: 3,
|
|
90
|
+
maxStoreEntry: 10,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
[SubscriptionLevel.ADVANCED]: {
|
|
94
|
+
[abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
|
|
95
|
+
maxFileSizeMo: 50,
|
|
96
|
+
maxStorageSizeGo: 10,
|
|
97
|
+
maxThumbnailPerFile: Infinity,
|
|
98
|
+
maxPreSignUrlPerHour: Infinity,
|
|
99
|
+
freeFilePerDay: 6000,
|
|
100
|
+
creditPerFilePerDay: 0.002,
|
|
101
|
+
},
|
|
102
|
+
[abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
|
|
103
|
+
maxCronTask: 5,
|
|
104
|
+
logHistoryDays: 7,
|
|
105
|
+
statsHistoryDays: 7,
|
|
106
|
+
maxStoreEntry: 100,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
[SubscriptionLevel.PREMIUM]: {
|
|
110
|
+
[abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
|
|
111
|
+
maxFileSizeMo: 100,
|
|
112
|
+
maxStorageSizeGo: 20,
|
|
113
|
+
maxThumbnailPerFile: Infinity,
|
|
114
|
+
maxPreSignUrlPerHour: Infinity,
|
|
115
|
+
freeFilePerDay: 20000,
|
|
116
|
+
creditPerFilePerDay: 0.001,
|
|
117
|
+
},
|
|
118
|
+
[abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
|
|
119
|
+
maxCronTask: 20,
|
|
120
|
+
logHistoryDays: Infinity,
|
|
121
|
+
statsHistoryDays: Infinity,
|
|
122
|
+
maxStoreEntry: 500,
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TokenType = void 0;
|
|
4
|
+
var TokenType;
|
|
5
|
+
(function (TokenType) {
|
|
6
|
+
TokenType["EMAIL_VERIFICATION"] = "EMAIL_VERIFICATION";
|
|
7
|
+
TokenType["PASSWORD_RESET"] = "PASSWORD_RESET";
|
|
8
|
+
TokenType["USER_INVITATION"] = "USER_INVITATION";
|
|
9
|
+
})(TokenType = exports.TokenType || (exports.TokenType = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserCreditPurchaseCurrency = void 0;
|
|
4
|
+
var UserCreditPurchaseCurrency;
|
|
5
|
+
(function (UserCreditPurchaseCurrency) {
|
|
6
|
+
UserCreditPurchaseCurrency["EUR"] = "EUR";
|
|
7
|
+
UserCreditPurchaseCurrency["UNKNOWN"] = "UNKNOWN";
|
|
8
|
+
UserCreditPurchaseCurrency["OTHER"] = "OTHER";
|
|
9
|
+
})(UserCreditPurchaseCurrency = exports.UserCreditPurchaseCurrency || (exports.UserCreditPurchaseCurrency = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserCreditPurchasePaymentMethod = void 0;
|
|
4
|
+
var UserCreditPurchasePaymentMethod;
|
|
5
|
+
(function (UserCreditPurchasePaymentMethod) {
|
|
6
|
+
UserCreditPurchasePaymentMethod["PAYMENT_LINK"] = "PAYMENT_LINK";
|
|
7
|
+
})(UserCreditPurchasePaymentMethod = exports.UserCreditPurchasePaymentMethod || (exports.UserCreditPurchasePaymentMethod = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserCreditPurchasePlatform = void 0;
|
|
4
|
+
var UserCreditPurchasePlatform;
|
|
5
|
+
(function (UserCreditPurchasePlatform) {
|
|
6
|
+
UserCreditPurchasePlatform["PAYPAL"] = "PAYPAL";
|
|
7
|
+
UserCreditPurchasePlatform["LYDIA"] = "LYDIA";
|
|
8
|
+
UserCreditPurchasePlatform["SKRILL"] = "SKRILL";
|
|
9
|
+
UserCreditPurchasePlatform["CASH"] = "CASH";
|
|
10
|
+
UserCreditPurchasePlatform["STRIPE"] = "STRIPE";
|
|
11
|
+
UserCreditPurchasePlatform["OTHER"] = "OTHER";
|
|
12
|
+
})(UserCreditPurchasePlatform = exports.UserCreditPurchasePlatform || (exports.UserCreditPurchasePlatform = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserLanguage = void 0;
|
|
4
|
+
var UserLanguage;
|
|
5
|
+
(function (UserLanguage) {
|
|
6
|
+
UserLanguage["FRENCH"] = "fr";
|
|
7
|
+
UserLanguage["ENGLISH"] = "en";
|
|
8
|
+
})(UserLanguage = exports.UserLanguage || (exports.UserLanguage = {}));
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
export declare enum UserNotificationContentType {
|
|
2
|
+
USER_CREDIT_PURCHASE = "user-credit-purchase",
|
|
3
|
+
USER_TICKET_RESPONSE = "user-ticket-response",
|
|
4
|
+
INVITE_USER_PROJECT = "invite-user-project",
|
|
5
|
+
PROJECT_SET_OWNERSHIP = "project-set-ownership",
|
|
6
|
+
USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED = "user-subscription-no-funds-auto-renew-disabled",
|
|
7
|
+
USER_SUBSCRIPTION_EXPIRATION = "user-subscription-expiration",
|
|
8
|
+
USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW = "user-subscription-expiration-without-auto-renew",
|
|
9
|
+
USER_SUBSCRIPTION_RENEW_SUCCESS = "user-subscription-renew-success",
|
|
10
|
+
USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS = "user-subscription-auto-renew-success",
|
|
11
|
+
USER_SUBSCRIPTION_CREATE = "user-subscription-create",
|
|
12
|
+
USER_SUBSCRIPTION_AUTO_RENEW_ENABLED = "user-subscription-auto-renew-enabled",
|
|
13
|
+
USER_SUBSCRIPTION_AUTO_RENEW_DISABLED = "user-subscription-auto-renew-disabled",
|
|
14
|
+
USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW = "user-subscription-create-without-auto-renew",
|
|
15
|
+
PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED = "project-subscription-auto-renew-enabled",
|
|
16
|
+
PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED = "project-subscription-auto-renew-disabled",
|
|
17
|
+
PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED = "project-subscription-no-funds-auto-renew-disabled",
|
|
18
|
+
PROJECT_SUBSCRIPTION_EXPIRATION = "project-subscription-expiration",
|
|
19
|
+
PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW = "project-subscription-expiration-without-auto-renew",
|
|
20
|
+
PROJECT_SUBSCRIPTION_RENEW_SUCCESS = "project-subscription-renew-success",
|
|
21
|
+
PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS = "project-subscription-auto-renew-success",
|
|
22
|
+
PROJECT_SUBSCRIPTION_CREATE = "project-subscription-create",
|
|
23
|
+
PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW = "project-subscription-create-without-auto-renew",
|
|
24
|
+
CREATE_CLOUD_SHARE = "create-cloud-share",
|
|
25
|
+
DELETE_CLOUD_SHARE = "delete-cloud-share",
|
|
26
|
+
CREATE_CLOUD = "create-cloud",
|
|
27
|
+
DELETE_CLOUD = "delete-cloud",
|
|
28
|
+
JOIN_CLOUD_SHARE = "join-cloud-share",
|
|
29
|
+
DECLINE_CLOUD_SHARE = "decline-cloud-share",
|
|
30
|
+
LEAVE_CLOUD_SHARE = "leave-cloud-share",
|
|
31
|
+
ADMIN_CREATE_CLOUD = "admin-create-cloud",
|
|
32
|
+
ADMIN_DELETE_CLOUD = "admin-delete-cloud",
|
|
33
|
+
WEBHOOK_UNDELIVERABLE = "webhook-undeliverable",
|
|
34
|
+
WEBHOOK_UNDELIVERABLE_DISABLE = "webhook-undeliverable-disable",
|
|
35
|
+
CRON_TASK_FAILED = "cron-task-failed",
|
|
36
|
+
CRON_TASK_DISABLED = "cron-task-disabled",
|
|
37
|
+
INVITE_EVENT = "invite-event",
|
|
38
|
+
CHANGE_OWNER_EVENT = "change-owner-event",
|
|
39
|
+
CREATE_POLL_EVENT = "create-poll-event",
|
|
40
|
+
BANK_CONNECTION_EXPIRE = "bank-connection-expire",
|
|
41
|
+
BANK_CONNECTION_SUCCESS = "bank-connection-success"
|
|
42
|
+
}
|
|
43
|
+
export declare class UserNotificationContentTypeData implements Record<UserNotificationContentType, Record<string, string>> {
|
|
44
|
+
[UserNotificationContentType.USER_CREDIT_PURCHASE]: {
|
|
45
|
+
amount: string;
|
|
46
|
+
};
|
|
47
|
+
[UserNotificationContentType.USER_TICKET_RESPONSE]: {
|
|
48
|
+
ticketTitle: string;
|
|
49
|
+
ticketId: string;
|
|
50
|
+
};
|
|
51
|
+
[UserNotificationContentType.INVITE_USER_PROJECT]: {
|
|
52
|
+
projectId: string;
|
|
53
|
+
projectAccessId: string;
|
|
54
|
+
projectName: string;
|
|
55
|
+
userId: string;
|
|
56
|
+
};
|
|
57
|
+
[UserNotificationContentType.PROJECT_SET_OWNERSHIP]: {
|
|
58
|
+
projectId: string;
|
|
59
|
+
projectName: string;
|
|
60
|
+
userId: string;
|
|
61
|
+
};
|
|
62
|
+
[UserNotificationContentType.USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED]: {
|
|
63
|
+
missingCredit: string;
|
|
64
|
+
endDate: string;
|
|
65
|
+
renewDate: string;
|
|
66
|
+
level: string;
|
|
67
|
+
};
|
|
68
|
+
[UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_ENABLED]: {
|
|
69
|
+
endDate: string;
|
|
70
|
+
level: string;
|
|
71
|
+
};
|
|
72
|
+
[UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_DISABLED]: {
|
|
73
|
+
endDate: string;
|
|
74
|
+
level: string;
|
|
75
|
+
};
|
|
76
|
+
[UserNotificationContentType.PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED]: {
|
|
77
|
+
missingCredit: string;
|
|
78
|
+
endDate: string;
|
|
79
|
+
renewDate: string;
|
|
80
|
+
projectId: string;
|
|
81
|
+
projectName: string;
|
|
82
|
+
level: string;
|
|
83
|
+
};
|
|
84
|
+
[UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED]: {
|
|
85
|
+
endDate: string;
|
|
86
|
+
projectId: string;
|
|
87
|
+
projectName: string;
|
|
88
|
+
level: string;
|
|
89
|
+
};
|
|
90
|
+
[UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED]: {
|
|
91
|
+
endDate: string;
|
|
92
|
+
projectId: string;
|
|
93
|
+
projectName: string;
|
|
94
|
+
level: string;
|
|
95
|
+
};
|
|
96
|
+
[UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION]: {
|
|
97
|
+
endDate: string;
|
|
98
|
+
renewDate: string;
|
|
99
|
+
creditPrice: string;
|
|
100
|
+
level: string;
|
|
101
|
+
};
|
|
102
|
+
[UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION]: {
|
|
103
|
+
endDate: string;
|
|
104
|
+
renewDate: string;
|
|
105
|
+
creditPrice: string;
|
|
106
|
+
projectId: string;
|
|
107
|
+
projectName: string;
|
|
108
|
+
level: string;
|
|
109
|
+
};
|
|
110
|
+
[UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW]: {
|
|
111
|
+
endDate: string;
|
|
112
|
+
renewDate: string;
|
|
113
|
+
creditPrice: string;
|
|
114
|
+
level: string;
|
|
115
|
+
};
|
|
116
|
+
[UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW]: {
|
|
117
|
+
endDate: string;
|
|
118
|
+
renewDate: string;
|
|
119
|
+
creditPrice: string;
|
|
120
|
+
projectId: string;
|
|
121
|
+
projectName: string;
|
|
122
|
+
level: string;
|
|
123
|
+
};
|
|
124
|
+
[UserNotificationContentType.USER_SUBSCRIPTION_RENEW_SUCCESS]: {
|
|
125
|
+
newEndDate: string;
|
|
126
|
+
renewDate: string;
|
|
127
|
+
renewCreditPrice: string;
|
|
128
|
+
level: string;
|
|
129
|
+
};
|
|
130
|
+
[UserNotificationContentType.PROJECT_SUBSCRIPTION_RENEW_SUCCESS]: {
|
|
131
|
+
newEndDate: string;
|
|
132
|
+
renewDate: string;
|
|
133
|
+
renewCreditPrice: string;
|
|
134
|
+
projectId: string;
|
|
135
|
+
projectName: string;
|
|
136
|
+
level: string;
|
|
137
|
+
usernameRenew: string;
|
|
138
|
+
};
|
|
139
|
+
[UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS]: {
|
|
140
|
+
newEndDate: string;
|
|
141
|
+
renewDate: string;
|
|
142
|
+
renewCreditPrice: string;
|
|
143
|
+
level: string;
|
|
144
|
+
};
|
|
145
|
+
[UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS]: {
|
|
146
|
+
newEndDate: string;
|
|
147
|
+
renewDate: string;
|
|
148
|
+
renewCreditPrice: string;
|
|
149
|
+
projectId: string;
|
|
150
|
+
projectName: string;
|
|
151
|
+
level: string;
|
|
152
|
+
usernameRenew: string;
|
|
153
|
+
};
|
|
154
|
+
[UserNotificationContentType.USER_SUBSCRIPTION_CREATE]: {
|
|
155
|
+
endDate: string;
|
|
156
|
+
level: string;
|
|
157
|
+
creditPrice: string;
|
|
158
|
+
};
|
|
159
|
+
[UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE]: {
|
|
160
|
+
endDate: string;
|
|
161
|
+
level: string;
|
|
162
|
+
creditPrice: string;
|
|
163
|
+
projectId: string;
|
|
164
|
+
projectName: string;
|
|
165
|
+
usernameRenew: string;
|
|
166
|
+
};
|
|
167
|
+
[UserNotificationContentType.USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW]: {
|
|
168
|
+
endDate: string;
|
|
169
|
+
level: string;
|
|
170
|
+
creditPrice: string;
|
|
171
|
+
};
|
|
172
|
+
[UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW]: {
|
|
173
|
+
endDate: string;
|
|
174
|
+
level: string;
|
|
175
|
+
creditPrice: string;
|
|
176
|
+
projectId: string;
|
|
177
|
+
projectName: string;
|
|
178
|
+
usernameRenew: string;
|
|
179
|
+
};
|
|
180
|
+
[UserNotificationContentType.CREATE_CLOUD_SHARE]: {
|
|
181
|
+
cloudName: string;
|
|
182
|
+
userId: string;
|
|
183
|
+
cloudId: string;
|
|
184
|
+
cloudShareId: string;
|
|
185
|
+
cloudShareName: string;
|
|
186
|
+
};
|
|
187
|
+
[UserNotificationContentType.DELETE_CLOUD_SHARE]: {
|
|
188
|
+
cloudName: string;
|
|
189
|
+
userId: string;
|
|
190
|
+
cloudId: string;
|
|
191
|
+
cloudShareName: string;
|
|
192
|
+
};
|
|
193
|
+
[UserNotificationContentType.CREATE_CLOUD]: {
|
|
194
|
+
cloudName: string;
|
|
195
|
+
cloudId: string;
|
|
196
|
+
};
|
|
197
|
+
[UserNotificationContentType.DELETE_CLOUD]: {
|
|
198
|
+
cloudName: string;
|
|
199
|
+
};
|
|
200
|
+
[UserNotificationContentType.ADMIN_CREATE_CLOUD]: {
|
|
201
|
+
cloudName: string;
|
|
202
|
+
cloudId: string;
|
|
203
|
+
};
|
|
204
|
+
[UserNotificationContentType.ADMIN_DELETE_CLOUD]: {
|
|
205
|
+
cloudName: string;
|
|
206
|
+
};
|
|
207
|
+
[UserNotificationContentType.JOIN_CLOUD_SHARE]: {
|
|
208
|
+
userId: string;
|
|
209
|
+
cloudName: string;
|
|
210
|
+
cloudId: string;
|
|
211
|
+
};
|
|
212
|
+
[UserNotificationContentType.DECLINE_CLOUD_SHARE]: {
|
|
213
|
+
userId: string;
|
|
214
|
+
cloudName: string;
|
|
215
|
+
cloudId: string;
|
|
216
|
+
};
|
|
217
|
+
[UserNotificationContentType.LEAVE_CLOUD_SHARE]: {
|
|
218
|
+
userId: string;
|
|
219
|
+
cloudName: string;
|
|
220
|
+
cloudId: string;
|
|
221
|
+
};
|
|
222
|
+
[UserNotificationContentType.WEBHOOK_UNDELIVERABLE]: {
|
|
223
|
+
projectId: string;
|
|
224
|
+
applicationId: string;
|
|
225
|
+
webhookId: string;
|
|
226
|
+
applicationWebhookId: string;
|
|
227
|
+
applicationWebhookName: string;
|
|
228
|
+
groupId: string;
|
|
229
|
+
totalFailureInRow: string;
|
|
230
|
+
};
|
|
231
|
+
[UserNotificationContentType.WEBHOOK_UNDELIVERABLE_DISABLE]: {
|
|
232
|
+
projectId: string;
|
|
233
|
+
applicationId: string;
|
|
234
|
+
webhookId: string;
|
|
235
|
+
applicationWebhookId: string;
|
|
236
|
+
applicationWebhookName: string;
|
|
237
|
+
};
|
|
238
|
+
[UserNotificationContentType.CRON_TASK_FAILED]: {
|
|
239
|
+
projectId: string;
|
|
240
|
+
applicationId: string;
|
|
241
|
+
applicationCronTaskId: string;
|
|
242
|
+
applicationCronTaskHistoryId: string;
|
|
243
|
+
applicationCronTaskName: string;
|
|
244
|
+
totalFailureInRow: string;
|
|
245
|
+
};
|
|
246
|
+
[UserNotificationContentType.CRON_TASK_DISABLED]: {
|
|
247
|
+
projectId: string;
|
|
248
|
+
applicationId: string;
|
|
249
|
+
applicationCronTaskId: string;
|
|
250
|
+
applicationCronTaskHistoryId: string;
|
|
251
|
+
applicationCronTaskName: string;
|
|
252
|
+
};
|
|
253
|
+
[UserNotificationContentType.INVITE_EVENT]: {
|
|
254
|
+
eventId: string;
|
|
255
|
+
eventName: string;
|
|
256
|
+
userId: string;
|
|
257
|
+
};
|
|
258
|
+
[UserNotificationContentType.CHANGE_OWNER_EVENT]: {
|
|
259
|
+
eventId: string;
|
|
260
|
+
eventName: string;
|
|
261
|
+
userId: string;
|
|
262
|
+
};
|
|
263
|
+
[UserNotificationContentType.CREATE_POLL_EVENT]: {
|
|
264
|
+
eventId: string;
|
|
265
|
+
eventName: string;
|
|
266
|
+
eventPollId: string;
|
|
267
|
+
evenPollOwnerId: string;
|
|
268
|
+
};
|
|
269
|
+
[UserNotificationContentType.BANK_CONNECTION_SUCCESS]: {
|
|
270
|
+
bankConnectionId: string;
|
|
271
|
+
bankName: string;
|
|
272
|
+
logoUrl?: string;
|
|
273
|
+
};
|
|
274
|
+
[UserNotificationContentType.BANK_CONNECTION_EXPIRE]: {
|
|
275
|
+
bankConnectionId: string;
|
|
276
|
+
bankName: string;
|
|
277
|
+
logoUrl?: string;
|
|
278
|
+
};
|
|
279
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserNotificationContentTypeData = exports.UserNotificationContentType = void 0;
|
|
4
|
+
var UserNotificationContentType;
|
|
5
|
+
(function (UserNotificationContentType) {
|
|
6
|
+
UserNotificationContentType["USER_CREDIT_PURCHASE"] = "user-credit-purchase";
|
|
7
|
+
UserNotificationContentType["USER_TICKET_RESPONSE"] = "user-ticket-response";
|
|
8
|
+
UserNotificationContentType["INVITE_USER_PROJECT"] = "invite-user-project";
|
|
9
|
+
UserNotificationContentType["PROJECT_SET_OWNERSHIP"] = "project-set-ownership";
|
|
10
|
+
UserNotificationContentType["USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED"] = "user-subscription-no-funds-auto-renew-disabled";
|
|
11
|
+
UserNotificationContentType["USER_SUBSCRIPTION_EXPIRATION"] = "user-subscription-expiration";
|
|
12
|
+
UserNotificationContentType["USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW"] = "user-subscription-expiration-without-auto-renew";
|
|
13
|
+
UserNotificationContentType["USER_SUBSCRIPTION_RENEW_SUCCESS"] = "user-subscription-renew-success";
|
|
14
|
+
UserNotificationContentType["USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS"] = "user-subscription-auto-renew-success";
|
|
15
|
+
UserNotificationContentType["USER_SUBSCRIPTION_CREATE"] = "user-subscription-create";
|
|
16
|
+
UserNotificationContentType["USER_SUBSCRIPTION_AUTO_RENEW_ENABLED"] = "user-subscription-auto-renew-enabled";
|
|
17
|
+
UserNotificationContentType["USER_SUBSCRIPTION_AUTO_RENEW_DISABLED"] = "user-subscription-auto-renew-disabled";
|
|
18
|
+
UserNotificationContentType["USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW"] = "user-subscription-create-without-auto-renew";
|
|
19
|
+
UserNotificationContentType["PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED"] = "project-subscription-auto-renew-enabled";
|
|
20
|
+
UserNotificationContentType["PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED"] = "project-subscription-auto-renew-disabled";
|
|
21
|
+
UserNotificationContentType["PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED"] = "project-subscription-no-funds-auto-renew-disabled";
|
|
22
|
+
UserNotificationContentType["PROJECT_SUBSCRIPTION_EXPIRATION"] = "project-subscription-expiration";
|
|
23
|
+
UserNotificationContentType["PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW"] = "project-subscription-expiration-without-auto-renew";
|
|
24
|
+
UserNotificationContentType["PROJECT_SUBSCRIPTION_RENEW_SUCCESS"] = "project-subscription-renew-success";
|
|
25
|
+
UserNotificationContentType["PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS"] = "project-subscription-auto-renew-success";
|
|
26
|
+
UserNotificationContentType["PROJECT_SUBSCRIPTION_CREATE"] = "project-subscription-create";
|
|
27
|
+
UserNotificationContentType["PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW"] = "project-subscription-create-without-auto-renew";
|
|
28
|
+
UserNotificationContentType["CREATE_CLOUD_SHARE"] = "create-cloud-share";
|
|
29
|
+
UserNotificationContentType["DELETE_CLOUD_SHARE"] = "delete-cloud-share";
|
|
30
|
+
UserNotificationContentType["CREATE_CLOUD"] = "create-cloud";
|
|
31
|
+
UserNotificationContentType["DELETE_CLOUD"] = "delete-cloud";
|
|
32
|
+
UserNotificationContentType["JOIN_CLOUD_SHARE"] = "join-cloud-share";
|
|
33
|
+
UserNotificationContentType["DECLINE_CLOUD_SHARE"] = "decline-cloud-share";
|
|
34
|
+
UserNotificationContentType["LEAVE_CLOUD_SHARE"] = "leave-cloud-share";
|
|
35
|
+
UserNotificationContentType["ADMIN_CREATE_CLOUD"] = "admin-create-cloud";
|
|
36
|
+
UserNotificationContentType["ADMIN_DELETE_CLOUD"] = "admin-delete-cloud";
|
|
37
|
+
UserNotificationContentType["WEBHOOK_UNDELIVERABLE"] = "webhook-undeliverable";
|
|
38
|
+
UserNotificationContentType["WEBHOOK_UNDELIVERABLE_DISABLE"] = "webhook-undeliverable-disable";
|
|
39
|
+
UserNotificationContentType["CRON_TASK_FAILED"] = "cron-task-failed";
|
|
40
|
+
UserNotificationContentType["CRON_TASK_DISABLED"] = "cron-task-disabled";
|
|
41
|
+
UserNotificationContentType["INVITE_EVENT"] = "invite-event";
|
|
42
|
+
UserNotificationContentType["CHANGE_OWNER_EVENT"] = "change-owner-event";
|
|
43
|
+
UserNotificationContentType["CREATE_POLL_EVENT"] = "create-poll-event";
|
|
44
|
+
UserNotificationContentType["BANK_CONNECTION_EXPIRE"] = "bank-connection-expire";
|
|
45
|
+
UserNotificationContentType["BANK_CONNECTION_SUCCESS"] = "bank-connection-success";
|
|
46
|
+
})(UserNotificationContentType = exports.UserNotificationContentType || (exports.UserNotificationContentType = {}));
|
|
47
|
+
class UserNotificationContentTypeData {
|
|
48
|
+
}
|
|
49
|
+
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserNotificationType = void 0;
|
|
4
|
+
var UserNotificationType;
|
|
5
|
+
(function (UserNotificationType) {
|
|
6
|
+
UserNotificationType[UserNotificationType["DEFAULT"] = 1] = "DEFAULT";
|
|
7
|
+
UserNotificationType[UserNotificationType["ERROR"] = 2] = "ERROR";
|
|
8
|
+
UserNotificationType[UserNotificationType["WARNING"] = 3] = "WARNING";
|
|
9
|
+
UserNotificationType[UserNotificationType["INFORMATION"] = 4] = "INFORMATION";
|
|
10
|
+
})(UserNotificationType = exports.UserNotificationType || (exports.UserNotificationType = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserTicketCategory = void 0;
|
|
4
|
+
var UserTicketCategory;
|
|
5
|
+
(function (UserTicketCategory) {
|
|
6
|
+
UserTicketCategory["BILLING"] = "BILLING";
|
|
7
|
+
UserTicketCategory["BUG"] = "BUG";
|
|
8
|
+
UserTicketCategory["HELP_PACKAGE_API"] = "HELP_PACKAGE_API";
|
|
9
|
+
UserTicketCategory["PARTNERSHIP"] = "PARTNERSHIP";
|
|
10
|
+
UserTicketCategory["PROJECT_FINANCING"] = "PROJECT_PARTNERSHIP";
|
|
11
|
+
UserTicketCategory["ACCOUNT_MANAGEMENT"] = "ACCOUNT_MANAGEMENT";
|
|
12
|
+
UserTicketCategory["OTHER"] = "OTHER";
|
|
13
|
+
})(UserTicketCategory = exports.UserTicketCategory || (exports.UserTicketCategory = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum UserTransactionType {
|
|
2
|
+
SUBSCRIPTION_CREATE = 10,
|
|
3
|
+
SUBSCRIPTION_RENEW = 11,
|
|
4
|
+
SUBSCRIPTION_UPGRADE = 12,
|
|
5
|
+
SUBSCRIPTION_DOWNGRADE = 13,
|
|
6
|
+
SUBSCRIPTION_REFUND = 14,
|
|
7
|
+
SUBSCRIPTION_STORAGE_FILE_DAILY = 20,
|
|
8
|
+
GIFT_CODE_ACTIVATION = 30,
|
|
9
|
+
USER_CREDIT_PURCHASE = 40,
|
|
10
|
+
USER_CREDIT_PURCHASE_REFUND = 41,
|
|
11
|
+
SIGNUP_SPONSOR = 50,
|
|
12
|
+
SIGNUP_SPONSORED = 51,
|
|
13
|
+
OTHER = 100
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserTransactionType = void 0;
|
|
4
|
+
var UserTransactionType;
|
|
5
|
+
(function (UserTransactionType) {
|
|
6
|
+
UserTransactionType[UserTransactionType["SUBSCRIPTION_CREATE"] = 10] = "SUBSCRIPTION_CREATE";
|
|
7
|
+
UserTransactionType[UserTransactionType["SUBSCRIPTION_RENEW"] = 11] = "SUBSCRIPTION_RENEW";
|
|
8
|
+
UserTransactionType[UserTransactionType["SUBSCRIPTION_UPGRADE"] = 12] = "SUBSCRIPTION_UPGRADE";
|
|
9
|
+
UserTransactionType[UserTransactionType["SUBSCRIPTION_DOWNGRADE"] = 13] = "SUBSCRIPTION_DOWNGRADE";
|
|
10
|
+
UserTransactionType[UserTransactionType["SUBSCRIPTION_REFUND"] = 14] = "SUBSCRIPTION_REFUND";
|
|
11
|
+
UserTransactionType[UserTransactionType["SUBSCRIPTION_STORAGE_FILE_DAILY"] = 20] = "SUBSCRIPTION_STORAGE_FILE_DAILY";
|
|
12
|
+
UserTransactionType[UserTransactionType["GIFT_CODE_ACTIVATION"] = 30] = "GIFT_CODE_ACTIVATION";
|
|
13
|
+
UserTransactionType[UserTransactionType["USER_CREDIT_PURCHASE"] = 40] = "USER_CREDIT_PURCHASE";
|
|
14
|
+
UserTransactionType[UserTransactionType["USER_CREDIT_PURCHASE_REFUND"] = 41] = "USER_CREDIT_PURCHASE_REFUND";
|
|
15
|
+
UserTransactionType[UserTransactionType["SIGNUP_SPONSOR"] = 50] = "SIGNUP_SPONSOR";
|
|
16
|
+
UserTransactionType[UserTransactionType["SIGNUP_SPONSORED"] = 51] = "SIGNUP_SPONSORED";
|
|
17
|
+
UserTransactionType[UserTransactionType["OTHER"] = 100] = "OTHER";
|
|
18
|
+
})(UserTransactionType = exports.UserTransactionType || (exports.UserTransactionType = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './interface';
|
|
2
|
+
export * from './enum';
|
|
3
|
+
export * from './session';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export * from './models';
|
|
6
|
+
export type BaseEntity<T> = Omit<T, 'createdAt' | 'deletedAt' | 'updatedAt'>;
|
|
7
|
+
export type WithRequired<T, K extends keyof T> = T & {
|
|
8
|
+
[P in K]-?: T[P];
|
|
9
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./interface"), exports);
|
|
18
|
+
__exportStar(require("./enum"), exports);
|
|
19
|
+
__exportStar(require("./session"), exports);
|
|
20
|
+
__exportStar(require("./utils"), exports);
|
|
21
|
+
__exportStar(require("./models"), exports);
|