@abyss-project/main 1.0.109 → 1.0.111
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/api/billing-account.admin.api.d.ts +10 -0
- package/dist/api/billing-account.admin.api.js +38 -0
- package/dist/api/billing-addon-template.admin.api.d.ts +7 -0
- package/dist/api/billing-addon-template.admin.api.js +26 -0
- package/dist/api/billing-plan.admin.api.d.ts +6 -0
- package/dist/api/billing-plan.admin.api.js +20 -0
- package/dist/api/billing-plan.api.d.ts +4 -0
- package/dist/api/billing-plan.api.js +12 -0
- package/dist/api/index.d.ts +10 -4
- package/dist/api/index.js +10 -4
- package/dist/api/organization-billing.api.d.ts +17 -0
- package/dist/api/organization-billing.api.js +64 -0
- package/dist/api/organization-member.api.d.ts +12 -0
- package/dist/api/organization-member.api.js +44 -0
- package/dist/api/organization.api.d.ts +3 -2
- package/dist/api/organization.api.js +5 -1
- package/dist/api/project-access.admin.api.d.ts +1 -3
- package/dist/api/project-access.admin.api.js +1 -9
- package/dist/api/project-access.api.d.ts +5 -3
- package/dist/api/project-access.api.js +17 -9
- package/dist/api/project-api-key.api.d.ts +8 -0
- package/dist/api/project-api-key.api.js +29 -0
- package/dist/api/project.api.d.ts +1 -5
- package/dist/api/project.api.js +1 -17
- package/dist/api/team.api.d.ts +14 -0
- package/dist/api/team.api.js +52 -0
- package/dist/api/user-billing.api.d.ts +11 -0
- package/dist/api/user-billing.api.js +40 -0
- package/dist/api/user.api.d.ts +1 -4
- package/dist/api/user.api.js +1 -16
- package/dist/index.d.ts +1 -37
- package/dist/index.js +1 -37
- package/dist/permissions/ability.d.ts +12 -0
- package/dist/permissions/ability.js +134 -0
- package/dist/permissions/index.d.ts +1 -0
- package/dist/{workflow → permissions}/index.js +1 -1
- package/dist/types/enum/abyss-application-event.enum.d.ts +18 -1
- package/dist/types/enum/abyss-application-event.enum.js +17 -0
- package/dist/types/enum/index.d.ts +2 -4
- package/dist/types/enum/index.js +2 -4
- package/dist/types/enum/onboarding-steps.enum.d.ts +5 -3
- package/dist/types/enum/onboarding-steps.enum.js +5 -3
- package/dist/types/enum/organization-billing.enum.d.ts +70 -0
- package/dist/types/enum/organization-billing.enum.js +82 -0
- package/dist/types/enum/organization-permission.enum.d.ts +13 -1
- package/dist/types/enum/organization-permission.enum.js +40 -2
- package/dist/types/enum/user-type.enum.d.ts +1 -0
- package/dist/types/enum/user-type.enum.js +1 -0
- package/dist/types/interface/api/index.d.ts +17 -8
- package/dist/types/interface/api/index.js +17 -8
- package/dist/types/interface/api/requests/billing-account.admin.request.d.ts +53 -0
- package/dist/types/interface/api/requests/billing-addon-template.request.d.ts +32 -0
- package/dist/types/interface/api/requests/billing-plan.request.d.ts +37 -0
- package/dist/types/interface/api/requests/organization-billing.request.d.ts +95 -0
- package/dist/types/interface/api/requests/organization-member.request.d.ts +38 -0
- package/dist/types/interface/api/requests/organization.request.d.ts +10 -0
- package/dist/types/interface/api/requests/project-access.admin.request.d.ts +1 -20
- package/dist/types/interface/api/requests/project-access.request.d.ts +16 -20
- package/dist/types/interface/api/requests/project-api-key.request.d.ts +39 -0
- package/dist/types/interface/api/requests/project.request.d.ts +2 -23
- package/dist/types/interface/api/requests/team.request.d.ts +72 -0
- package/dist/types/interface/api/requests/user-billing.request.d.ts +23 -0
- package/dist/types/interface/api/requests/user.request.d.ts +2 -8
- package/dist/types/interface/api/responses/billing-account.admin.response.d.ts +38 -0
- package/dist/types/interface/api/responses/billing-addon-template.response.d.ts +22 -0
- package/dist/types/interface/api/responses/billing-plan.response.d.ts +26 -0
- package/dist/types/interface/api/responses/gift-code.admin.response.d.ts +0 -1
- package/dist/types/interface/api/responses/gift-code.response.d.ts +0 -1
- package/dist/types/interface/api/responses/organization-billing.response.d.ts +82 -0
- package/dist/types/interface/api/responses/organization-member.response.d.ts +42 -0
- package/dist/types/interface/api/responses/organization-member.response.js +2 -0
- package/dist/types/interface/api/responses/project-access.admin.response.d.ts +0 -8
- package/dist/types/interface/api/responses/project-access.response.d.ts +16 -8
- package/dist/types/interface/api/responses/project-api-key.response.d.ts +26 -0
- package/dist/types/interface/api/responses/project-api-key.response.js +2 -0
- package/dist/types/interface/api/responses/project.response.d.ts +0 -14
- package/dist/types/interface/api/responses/report.public.response.d.ts +0 -1
- package/dist/types/interface/api/responses/team.response.d.ts +52 -0
- package/dist/types/interface/api/responses/team.response.js +2 -0
- package/dist/types/interface/api/responses/user-billing.response.d.ts +45 -0
- package/dist/types/interface/api/responses/user-billing.response.js +2 -0
- package/dist/types/interface/index.d.ts +17 -3
- package/dist/types/interface/index.js +17 -3
- package/dist/types/interface/models/application.model.d.ts +1 -1
- package/dist/types/interface/models/atlas-group.model.d.ts +2 -2
- package/dist/types/interface/models/atlas-page.model.d.ts +2 -2
- package/dist/types/interface/models/atlas.model.d.ts +8 -5
- package/dist/types/interface/models/billing-account.model.d.ts +40 -0
- package/dist/types/interface/models/billing-account.model.js +2 -0
- package/dist/types/interface/models/billing-addon-template.model.d.ts +15 -0
- package/dist/types/interface/models/billing-addon-template.model.js +2 -0
- package/dist/types/interface/models/board-card-checklist.model.d.ts +1 -1
- package/dist/types/interface/models/board-card.model.d.ts +6 -6
- package/dist/types/interface/models/board-column.model.d.ts +1 -1
- package/dist/types/interface/models/board.model.d.ts +7 -4
- package/dist/types/interface/models/credit-transaction.model.d.ts +22 -0
- package/dist/types/interface/models/credit-transaction.model.js +2 -0
- package/dist/types/interface/models/draw.model.d.ts +3 -0
- package/dist/types/interface/models/gift-code-activation.model.d.ts +4 -3
- package/dist/types/interface/models/gift-code.model.d.ts +1 -1
- package/dist/types/interface/models/invoice.model.d.ts +26 -0
- package/dist/types/interface/models/invoice.model.js +2 -0
- package/dist/types/interface/models/memo.model.d.ts +3 -0
- package/dist/types/interface/models/organization-billing.model.d.ts +37 -0
- package/dist/types/interface/models/organization-billing.model.js +2 -0
- package/dist/types/interface/models/organization-member.model.d.ts +5 -4
- package/dist/types/interface/models/organization-project-quota.model.d.ts +15 -0
- package/dist/types/interface/models/organization-project-quota.model.js +2 -0
- package/dist/types/interface/models/organization-quota-alert.model.d.ts +11 -0
- package/dist/types/interface/models/organization-quota-alert.model.js +2 -0
- package/dist/types/interface/models/organization-service-quota.model.d.ts +13 -0
- package/dist/types/interface/models/organization-service-quota.model.js +2 -0
- package/dist/types/interface/models/organization.model.d.ts +13 -0
- package/dist/types/interface/models/plan-template.model.d.ts +29 -0
- package/dist/types/interface/models/plan-template.model.js +2 -0
- package/dist/types/interface/models/project-access.model.d.ts +5 -6
- package/dist/types/interface/models/project-api-key-application-access.model.d.ts +13 -0
- package/dist/types/interface/models/project-api-key-application-access.model.js +2 -0
- package/dist/types/interface/models/project-api-key.model.d.ts +15 -0
- package/dist/types/interface/models/project-api-key.model.js +2 -0
- package/dist/types/interface/models/project.model.d.ts +8 -12
- package/dist/types/interface/models/quota-grant.model.d.ts +20 -0
- package/dist/types/interface/models/quota-grant.model.js +2 -0
- package/dist/types/interface/models/retrospective.model.d.ts +6 -3
- package/dist/types/interface/models/short-link.model.d.ts +4 -1
- package/dist/types/interface/models/team-member.model.d.ts +11 -0
- package/dist/types/interface/models/team-member.model.js +2 -0
- package/dist/types/interface/models/team-project-access.model.d.ts +15 -0
- package/dist/types/interface/models/team-project-access.model.js +2 -0
- package/dist/types/interface/models/team-project-application-access.model.d.ts +13 -0
- package/dist/types/interface/models/team-project-application-access.model.js +2 -0
- package/dist/types/interface/models/team.model.d.ts +19 -0
- package/dist/types/interface/models/team.model.js +2 -0
- package/dist/types/interface/models/token-history.model.d.ts +9 -1
- package/dist/types/interface/models/usage-record.model.d.ts +24 -0
- package/dist/types/interface/models/usage-record.model.js +2 -0
- package/dist/types/interface/models/user-ticket-message.model.d.ts +1 -1
- package/dist/types/interface/models/user-ticket.model.d.ts +1 -1
- package/dist/types/interface/models/user.model.d.ts +16 -18
- package/dist/types/utils/onboarding.utils.d.ts +1 -6
- package/dist/types/utils/onboarding.utils.js +9 -5
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/package.json +2 -1
- package/dist/api/user-credit-purchase.admin.api.d.ts +0 -7
- package/dist/api/user-credit-purchase.admin.api.js +0 -28
- package/dist/api/user-credit-purchase.api.d.ts +0 -3
- package/dist/api/user-credit-purchase.api.js +0 -14
- package/dist/api/user-transaction.admin.api.d.ts +0 -5
- package/dist/api/user-transaction.admin.api.js +0 -20
- package/dist/api/user-transaction.api.d.ts +0 -3
- package/dist/api/user-transaction.api.js +0 -14
- package/dist/expressions/index.d.ts +0 -5
- package/dist/expressions/index.js +0 -16
- package/dist/expressions/mapper.d.ts +0 -9
- package/dist/expressions/mapper.js +0 -90
- package/dist/expressions/parser.d.ts +0 -3
- package/dist/expressions/parser.js +0 -97
- package/dist/expressions/resolver.d.ts +0 -12
- package/dist/expressions/resolver.js +0 -88
- package/dist/expressions/types.d.ts +0 -36
- package/dist/types/enum/integration-type.enum.d.ts +0 -4
- package/dist/types/enum/integration-type.enum.js +0 -8
- package/dist/types/enum/invoice-status.enum.d.ts +0 -7
- package/dist/types/enum/invoice-status.enum.js +0 -11
- package/dist/types/enum/organization-role.enum.d.ts +0 -6
- package/dist/types/enum/organization-role.enum.js +0 -10
- package/dist/types/enum/organization-subscription-status.enum.d.ts +0 -7
- package/dist/types/enum/organization-subscription-status.enum.js +0 -11
- package/dist/types/enum/plan-billing-period.enum.d.ts +0 -4
- package/dist/types/enum/plan-billing-period.enum.js +0 -8
- package/dist/types/enum/plan-status.enum.d.ts +0 -4
- package/dist/types/enum/plan-status.enum.js +0 -8
- package/dist/types/enum/subscription-level.enum.d.ts +0 -72
- package/dist/types/enum/subscription-level.enum.js +0 -179
- package/dist/types/enum/usage-record-type.enum.d.ts +0 -8
- package/dist/types/enum/usage-record-type.enum.js +0 -12
- package/dist/types/enum/user-credit-purchase-payment-method.enum.d.ts +0 -3
- package/dist/types/enum/user-credit-purchase-payment-method.enum.js +0 -7
- package/dist/types/enum/user-credit-purchase-platform.enum.d.ts +0 -8
- package/dist/types/enum/user-credit-purchase-platform.enum.js +0 -12
- package/dist/types/enum/user-transaction-type.enum.d.ts +0 -14
- package/dist/types/enum/user-transaction-type.enum.js +0 -18
- package/dist/types/interface/api/requests/user-credit-purchase.admin.request.d.ts +0 -42
- package/dist/types/interface/api/requests/user-credit-purchase.request.d.ts +0 -9
- package/dist/types/interface/api/requests/user-transaction.admin.request.d.ts +0 -30
- package/dist/types/interface/api/requests/user-transaction.request.d.ts +0 -8
- package/dist/types/interface/api/responses/user-credit-purchase.admin.response.d.ts +0 -22
- package/dist/types/interface/api/responses/user-credit-purchase.response.d.ts +0 -8
- package/dist/types/interface/api/responses/user-transaction.admin.response.d.ts +0 -13
- package/dist/types/interface/api/responses/user-transaction.response.d.ts +0 -11
- package/dist/types/interface/models/subscription.model.d.ts +0 -16
- package/dist/types/interface/models/user-credit-purchase.model.d.ts +0 -22
- package/dist/types/interface/models/user-transaction.model.d.ts +0 -19
- package/dist/utils/organization-permission.utils.d.ts +0 -3
- package/dist/utils/organization-permission.utils.js +0 -36
- package/dist/utils/subscription.utils.d.ts +0 -6
- package/dist/utils/subscription.utils.js +0 -41
- package/dist/workflow/expression/expression-functions.utils.d.ts +0 -6
- package/dist/workflow/expression/expression-functions.utils.js +0 -61
- package/dist/workflow/expression/expression-mapper.d.ts +0 -11
- package/dist/workflow/expression/expression-mapper.js +0 -32
- package/dist/workflow/expression/expression-mapping.utils.d.ts +0 -4
- package/dist/workflow/expression/expression-mapping.utils.js +0 -43
- package/dist/workflow/expression/expression-resolver.utils.d.ts +0 -3
- package/dist/workflow/expression/expression-resolver.utils.js +0 -54
- package/dist/workflow/expression/expression-tokenizer.utils.d.ts +0 -4
- package/dist/workflow/expression/expression-tokenizer.utils.js +0 -123
- package/dist/workflow/expression/expression.types.d.ts +0 -33
- package/dist/workflow/expression/expression.types.js +0 -17
- package/dist/workflow/expression/index.d.ts +0 -10
- package/dist/workflow/expression/index.js +0 -40
- package/dist/workflow/expression/workflow-resolver.d.ts +0 -9
- package/dist/workflow/expression/workflow-resolver.js +0 -102
- package/dist/workflow/expressions/functions/array.d.ts +0 -2
- package/dist/workflow/expressions/functions/array.js +0 -252
- package/dist/workflow/expressions/functions/crypto.d.ts +0 -2
- package/dist/workflow/expressions/functions/crypto.js +0 -101
- package/dist/workflow/expressions/functions/datetime.d.ts +0 -2
- package/dist/workflow/expressions/functions/datetime.js +0 -256
- package/dist/workflow/expressions/functions/index.d.ts +0 -7
- package/dist/workflow/expressions/functions/index.js +0 -46
- package/dist/workflow/expressions/functions/math.d.ts +0 -2
- package/dist/workflow/expressions/functions/math.js +0 -174
- package/dist/workflow/expressions/functions/string.d.ts +0 -2
- package/dist/workflow/expressions/functions/string.js +0 -301
- package/dist/workflow/expressions/functions/utility.d.ts +0 -2
- package/dist/workflow/expressions/functions/utility.js +0 -230
- package/dist/workflow/expressions/helpers.d.ts +0 -26
- package/dist/workflow/expressions/helpers.js +0 -132
- package/dist/workflow/expressions/index.d.ts +0 -15
- package/dist/workflow/expressions/index.js +0 -61
- package/dist/workflow/expressions/parser.d.ts +0 -8
- package/dist/workflow/expressions/parser.js +0 -436
- package/dist/workflow/expressions/pipes/array-pipes.d.ts +0 -2
- package/dist/workflow/expressions/pipes/array-pipes.js +0 -248
- package/dist/workflow/expressions/pipes/index.d.ts +0 -8
- package/dist/workflow/expressions/pipes/index.js +0 -40
- package/dist/workflow/expressions/pipes/object-pipes.d.ts +0 -2
- package/dist/workflow/expressions/pipes/object-pipes.js +0 -243
- package/dist/workflow/expressions/pipes/string-pipes.d.ts +0 -9
- package/dist/workflow/expressions/pipes/string-pipes.js +0 -178
- package/dist/workflow/expressions/resolver.d.ts +0 -8
- package/dist/workflow/expressions/resolver.js +0 -263
- package/dist/workflow/expressions/types.d.ts +0 -144
- package/dist/workflow/expressions/types.js +0 -33
- package/dist/workflow/index.d.ts +0 -1
- /package/dist/{expressions/types.js → types/interface/api/requests/billing-account.admin.request.js} +0 -0
- /package/dist/types/interface/api/requests/{user-credit-purchase.admin.request.js → billing-addon-template.request.js} +0 -0
- /package/dist/types/interface/api/requests/{user-credit-purchase.request.js → billing-plan.request.js} +0 -0
- /package/dist/types/interface/api/requests/{user-transaction.admin.request.js → organization-billing.request.js} +0 -0
- /package/dist/types/interface/api/requests/{user-transaction.request.js → organization-member.request.js} +0 -0
- /package/dist/types/interface/api/{responses/user-credit-purchase.admin.response.js → requests/project-api-key.request.js} +0 -0
- /package/dist/types/interface/api/{responses/user-credit-purchase.response.js → requests/team.request.js} +0 -0
- /package/dist/types/interface/api/{responses/user-transaction.admin.response.js → requests/user-billing.request.js} +0 -0
- /package/dist/types/interface/api/responses/{user-transaction.response.js → billing-account.admin.response.js} +0 -0
- /package/dist/types/interface/{models/subscription.model.js → api/responses/billing-addon-template.response.js} +0 -0
- /package/dist/types/interface/{models/user-credit-purchase.model.js → api/responses/billing-plan.response.js} +0 -0
- /package/dist/types/interface/{models/user-transaction.model.js → api/responses/organization-billing.response.js} +0 -0
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { AbyssService } from './abyss-service.enum';
|
|
2
|
-
export declare enum SubscriptionLevel {
|
|
3
|
-
BASE = "BASE",
|
|
4
|
-
ADVANCED = "ADVANCED",
|
|
5
|
-
PREMIUM = "PREMIUM"
|
|
6
|
-
}
|
|
7
|
-
export declare enum UserSubscriptionPrice {
|
|
8
|
-
BASE = 0,
|
|
9
|
-
ADVANCED = 230,
|
|
10
|
-
PREMIUM = 620
|
|
11
|
-
}
|
|
12
|
-
export declare enum ProjectSubscriptionPrice {
|
|
13
|
-
BASE = 0,
|
|
14
|
-
ADVANCED = 430,
|
|
15
|
-
PREMIUM = 880
|
|
16
|
-
}
|
|
17
|
-
export type UserConfigPerService = {
|
|
18
|
-
[AbyssService.ABYSS]: {
|
|
19
|
-
maxNumberOfProject: number;
|
|
20
|
-
};
|
|
21
|
-
[AbyssService.ABYSS_CLOUD]: {
|
|
22
|
-
maxNumberOfCloud: number;
|
|
23
|
-
maxStorageSizeGo: number;
|
|
24
|
-
maxCloudShare: number;
|
|
25
|
-
};
|
|
26
|
-
[AbyssService.ABYSS_CRYPT]: {
|
|
27
|
-
maxFileSizeMo: number;
|
|
28
|
-
};
|
|
29
|
-
[AbyssService.ABYSS_MEMORIES]: {
|
|
30
|
-
maxMemberPerEvent: number;
|
|
31
|
-
};
|
|
32
|
-
[AbyssService.ABYSS_BANKING]: {};
|
|
33
|
-
[AbyssService.ABYSS_SPOTLIGHT]: {};
|
|
34
|
-
[AbyssService.ABYSS_FORM]: {
|
|
35
|
-
maxDocumentPerForm: number;
|
|
36
|
-
maxDocumentSizeMo: number;
|
|
37
|
-
maxSubmissionPerFormPerDay: number;
|
|
38
|
-
maxSubmissionPerForm: number;
|
|
39
|
-
allowSubmissionDocument: boolean;
|
|
40
|
-
};
|
|
41
|
-
[AbyssService.ABYSS_TRAINING]: {};
|
|
42
|
-
};
|
|
43
|
-
export type UserSubscriptionConfig = Record<SubscriptionLevel, UserConfigPerService>;
|
|
44
|
-
export declare const USER_SUBSCRIPTION_CONFIG: UserSubscriptionConfig;
|
|
45
|
-
type ProjectConfigPerService = {
|
|
46
|
-
[AbyssService.ABYSS_MONITOR]: {
|
|
47
|
-
maxCronTask: number;
|
|
48
|
-
logHistoryDays: number;
|
|
49
|
-
statsHistoryDays: number;
|
|
50
|
-
eventPublishLimitPerDay: number;
|
|
51
|
-
maxSentinelCount: number;
|
|
52
|
-
};
|
|
53
|
-
[AbyssService.ABYSS_STORAGE]: {
|
|
54
|
-
maxFileSizeMo: number;
|
|
55
|
-
maxStorageSizeGo: number;
|
|
56
|
-
maxThumbnailPerFile: number;
|
|
57
|
-
maxPreSignUrlPerHour: number;
|
|
58
|
-
freeFilePerDay: number;
|
|
59
|
-
creditPerFilePerDay: number;
|
|
60
|
-
maxStoreEntry: number;
|
|
61
|
-
};
|
|
62
|
-
[AbyssService.ABYSS_FORM]: {
|
|
63
|
-
maxDocumentPerForm: number;
|
|
64
|
-
maxDocumentSizeMo: number;
|
|
65
|
-
maxSubmissionPerFormPerDay: number;
|
|
66
|
-
maxSubmissionPerForm: number;
|
|
67
|
-
allowSubmissionDocument: boolean;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
export type ProjectSubscriptionConfig = Record<SubscriptionLevel, ProjectConfigPerService>;
|
|
71
|
-
export declare const PROJECT_SUBSCRIPTION_CONFIG: ProjectSubscriptionConfig;
|
|
72
|
-
export {};
|
|
@@ -1,179 +0,0 @@
|
|
|
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 = 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 = 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 = 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
|
-
ABYSS_SPOTLIGHT: {},
|
|
41
|
-
ABYSS_FORM: {
|
|
42
|
-
maxDocumentPerForm: 10,
|
|
43
|
-
maxDocumentSizeMo: 10,
|
|
44
|
-
maxSubmissionPerFormPerDay: 100,
|
|
45
|
-
maxSubmissionPerForm: 2000,
|
|
46
|
-
allowSubmissionDocument: false,
|
|
47
|
-
},
|
|
48
|
-
ABYSS_TRAINING: {},
|
|
49
|
-
},
|
|
50
|
-
[SubscriptionLevel.ADVANCED]: {
|
|
51
|
-
ABYSS: {
|
|
52
|
-
maxNumberOfProject: 10,
|
|
53
|
-
},
|
|
54
|
-
ABYSS_CLOUD: {
|
|
55
|
-
maxNumberOfCloud: 3,
|
|
56
|
-
maxStorageSizeGo: 10,
|
|
57
|
-
maxCloudShare: 5,
|
|
58
|
-
},
|
|
59
|
-
ABYSS_CRYPT: {
|
|
60
|
-
maxFileSizeMo: 100,
|
|
61
|
-
},
|
|
62
|
-
ABYSS_MEMORIES: {
|
|
63
|
-
maxMemberPerEvent: Infinity,
|
|
64
|
-
},
|
|
65
|
-
ABYSS_BANKING: {},
|
|
66
|
-
ABYSS_SPOTLIGHT: {},
|
|
67
|
-
ABYSS_FORM: {
|
|
68
|
-
maxDocumentPerForm: 50,
|
|
69
|
-
maxDocumentSizeMo: 20,
|
|
70
|
-
maxSubmissionPerFormPerDay: Infinity,
|
|
71
|
-
maxSubmissionPerForm: Infinity,
|
|
72
|
-
allowSubmissionDocument: true,
|
|
73
|
-
},
|
|
74
|
-
ABYSS_TRAINING: {},
|
|
75
|
-
},
|
|
76
|
-
[SubscriptionLevel.PREMIUM]: {
|
|
77
|
-
ABYSS: {
|
|
78
|
-
maxNumberOfProject: Infinity,
|
|
79
|
-
},
|
|
80
|
-
ABYSS_CLOUD: {
|
|
81
|
-
maxNumberOfCloud: 5,
|
|
82
|
-
maxStorageSizeGo: 20,
|
|
83
|
-
maxCloudShare: Infinity,
|
|
84
|
-
},
|
|
85
|
-
ABYSS_CRYPT: {
|
|
86
|
-
maxFileSizeMo: 100,
|
|
87
|
-
},
|
|
88
|
-
ABYSS_MEMORIES: {
|
|
89
|
-
maxMemberPerEvent: Infinity,
|
|
90
|
-
},
|
|
91
|
-
ABYSS_BANKING: {},
|
|
92
|
-
ABYSS_SPOTLIGHT: {},
|
|
93
|
-
ABYSS_FORM: {
|
|
94
|
-
maxDocumentPerForm: 100,
|
|
95
|
-
maxDocumentSizeMo: 50,
|
|
96
|
-
maxSubmissionPerFormPerDay: Infinity,
|
|
97
|
-
maxSubmissionPerForm: Infinity,
|
|
98
|
-
allowSubmissionDocument: true,
|
|
99
|
-
},
|
|
100
|
-
ABYSS_TRAINING: {},
|
|
101
|
-
},
|
|
102
|
-
};
|
|
103
|
-
exports.PROJECT_SUBSCRIPTION_CONFIG = {
|
|
104
|
-
[SubscriptionLevel.BASE]: {
|
|
105
|
-
[abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
|
|
106
|
-
maxFileSizeMo: 25,
|
|
107
|
-
maxStorageSizeGo: 5,
|
|
108
|
-
maxThumbnailPerFile: 1,
|
|
109
|
-
maxPreSignUrlPerHour: 50,
|
|
110
|
-
freeFilePerDay: 3000,
|
|
111
|
-
creditPerFilePerDay: 0.003,
|
|
112
|
-
maxStoreEntry: 10,
|
|
113
|
-
},
|
|
114
|
-
[abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
|
|
115
|
-
maxCronTask: 0,
|
|
116
|
-
logHistoryDays: 3,
|
|
117
|
-
statsHistoryDays: 3,
|
|
118
|
-
eventPublishLimitPerDay: 100,
|
|
119
|
-
maxSentinelCount: 5,
|
|
120
|
-
},
|
|
121
|
-
ABYSS_FORM: {
|
|
122
|
-
maxDocumentPerForm: 10,
|
|
123
|
-
maxDocumentSizeMo: 10,
|
|
124
|
-
maxSubmissionPerFormPerDay: 100,
|
|
125
|
-
maxSubmissionPerForm: 2000,
|
|
126
|
-
allowSubmissionDocument: false,
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
[SubscriptionLevel.ADVANCED]: {
|
|
130
|
-
[abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
|
|
131
|
-
maxFileSizeMo: 50,
|
|
132
|
-
maxStorageSizeGo: 10,
|
|
133
|
-
maxThumbnailPerFile: Infinity,
|
|
134
|
-
maxPreSignUrlPerHour: Infinity,
|
|
135
|
-
freeFilePerDay: 6000,
|
|
136
|
-
creditPerFilePerDay: 0.002,
|
|
137
|
-
maxStoreEntry: 100,
|
|
138
|
-
},
|
|
139
|
-
[abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
|
|
140
|
-
maxCronTask: 5,
|
|
141
|
-
logHistoryDays: 7,
|
|
142
|
-
statsHistoryDays: 7,
|
|
143
|
-
eventPublishLimitPerDay: 1000,
|
|
144
|
-
maxSentinelCount: 30,
|
|
145
|
-
},
|
|
146
|
-
ABYSS_FORM: {
|
|
147
|
-
maxDocumentPerForm: 50,
|
|
148
|
-
maxDocumentSizeMo: 20,
|
|
149
|
-
maxSubmissionPerFormPerDay: Infinity,
|
|
150
|
-
maxSubmissionPerForm: Infinity,
|
|
151
|
-
allowSubmissionDocument: true,
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
[SubscriptionLevel.PREMIUM]: {
|
|
155
|
-
[abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
|
|
156
|
-
maxFileSizeMo: 100,
|
|
157
|
-
maxStorageSizeGo: 20,
|
|
158
|
-
maxThumbnailPerFile: Infinity,
|
|
159
|
-
maxPreSignUrlPerHour: Infinity,
|
|
160
|
-
freeFilePerDay: 20000,
|
|
161
|
-
creditPerFilePerDay: 0.001,
|
|
162
|
-
maxStoreEntry: 500,
|
|
163
|
-
},
|
|
164
|
-
[abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
|
|
165
|
-
maxCronTask: 20,
|
|
166
|
-
logHistoryDays: Infinity,
|
|
167
|
-
statsHistoryDays: Infinity,
|
|
168
|
-
eventPublishLimitPerDay: 10000,
|
|
169
|
-
maxSentinelCount: 100,
|
|
170
|
-
},
|
|
171
|
-
ABYSS_FORM: {
|
|
172
|
-
maxDocumentPerForm: 100,
|
|
173
|
-
maxDocumentSizeMo: 50,
|
|
174
|
-
maxSubmissionPerFormPerDay: Infinity,
|
|
175
|
-
maxSubmissionPerForm: Infinity,
|
|
176
|
-
allowSubmissionDocument: true,
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare enum UsageRecordType {
|
|
2
|
-
STORAGE_FILE_COUNT = "STORAGE_FILE_COUNT",
|
|
3
|
-
STORAGE_SIZE_BYTES = "STORAGE_SIZE_BYTES",
|
|
4
|
-
MONITOR_LOG_COUNT = "MONITOR_LOG_COUNT",
|
|
5
|
-
MONITOR_EVENT_COUNT = "MONITOR_EVENT_COUNT",
|
|
6
|
-
WORKFLOW_EXECUTION_COUNT = "WORKFLOW_EXECUTION_COUNT",
|
|
7
|
-
INTERNAL_TICKET_COUNT = "INTERNAL_TICKET_COUNT"
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UsageRecordType = void 0;
|
|
4
|
-
var UsageRecordType;
|
|
5
|
-
(function (UsageRecordType) {
|
|
6
|
-
UsageRecordType["STORAGE_FILE_COUNT"] = "STORAGE_FILE_COUNT";
|
|
7
|
-
UsageRecordType["STORAGE_SIZE_BYTES"] = "STORAGE_SIZE_BYTES";
|
|
8
|
-
UsageRecordType["MONITOR_LOG_COUNT"] = "MONITOR_LOG_COUNT";
|
|
9
|
-
UsageRecordType["MONITOR_EVENT_COUNT"] = "MONITOR_EVENT_COUNT";
|
|
10
|
-
UsageRecordType["WORKFLOW_EXECUTION_COUNT"] = "WORKFLOW_EXECUTION_COUNT";
|
|
11
|
-
UsageRecordType["INTERNAL_TICKET_COUNT"] = "INTERNAL_TICKET_COUNT";
|
|
12
|
-
})(UsageRecordType || (exports.UsageRecordType = UsageRecordType = {}));
|
|
@@ -1,7 +0,0 @@
|
|
|
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 = UserCreditPurchasePaymentMethod = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
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 = UserCreditPurchasePlatform = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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 = UserTransactionType = {}));
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { QueryPaginate } from '..';
|
|
2
|
-
import { UserCreditPurchaseCurrency, UserCreditPurchasePaymentMethod, UserCreditPurchasePlatform } from '../../../enum';
|
|
3
|
-
export type IPaginateUserCreditPurchaseAdminQuery = {
|
|
4
|
-
platform?: UserCreditPurchasePlatform[];
|
|
5
|
-
paymentMethod?: UserCreditPurchasePaymentMethod[];
|
|
6
|
-
currency?: UserCreditPurchaseCurrency[];
|
|
7
|
-
userId?: string[];
|
|
8
|
-
adminId?: string[];
|
|
9
|
-
} & QueryPaginate;
|
|
10
|
-
export interface IGetUserCreditPurchaseAdminParams {
|
|
11
|
-
userCreditPurchaseId: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ICreateUserCreditPurchaseAdminParams {
|
|
14
|
-
userId: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ICreateUserCreditPurchaseAdminBody {
|
|
17
|
-
commentary?: string | null;
|
|
18
|
-
paymentMethod: UserCreditPurchasePaymentMethod;
|
|
19
|
-
platform: UserCreditPurchasePlatform;
|
|
20
|
-
currency: UserCreditPurchaseCurrency;
|
|
21
|
-
amount: number;
|
|
22
|
-
creditAmount: number;
|
|
23
|
-
externalId?: string | null;
|
|
24
|
-
}
|
|
25
|
-
export interface IUpdateUserCreditPurchaseAdminParams {
|
|
26
|
-
userCreditPurchaseId: string;
|
|
27
|
-
}
|
|
28
|
-
export interface IUpdateUserCreditPurchaseAdminBody {
|
|
29
|
-
commentary?: string | null;
|
|
30
|
-
paymentMethod?: UserCreditPurchasePaymentMethod;
|
|
31
|
-
platform?: UserCreditPurchasePlatform;
|
|
32
|
-
currency?: UserCreditPurchaseCurrency;
|
|
33
|
-
amount?: number;
|
|
34
|
-
creditAmount?: number;
|
|
35
|
-
externalId?: string | null;
|
|
36
|
-
}
|
|
37
|
-
export interface IDeleteUserCreditPurchaseAdminParams {
|
|
38
|
-
userCreditPurchaseId: string;
|
|
39
|
-
}
|
|
40
|
-
export interface IRefundUserCreditPurchaseAdminParams {
|
|
41
|
-
userCreditPurchaseId: string;
|
|
42
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { QueryPaginate } from '..';
|
|
2
|
-
import { UserCreditPurchaseCurrency, UserCreditPurchasePlatform } from '../../../enum';
|
|
3
|
-
export type IPaginateUserCreditPurchaseQuery = {
|
|
4
|
-
method?: UserCreditPurchasePlatform[];
|
|
5
|
-
currency?: UserCreditPurchaseCurrency[];
|
|
6
|
-
} & QueryPaginate;
|
|
7
|
-
export interface IGetUserCreditPurchaseParams {
|
|
8
|
-
creditPurchaseId: string;
|
|
9
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { UserTransactionType } from '../../../enum';
|
|
2
|
-
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
-
export type IPaginateUserTransactionAdminQuery = {
|
|
4
|
-
minAmount?: number;
|
|
5
|
-
maxAmount?: number;
|
|
6
|
-
type?: UserTransactionType[];
|
|
7
|
-
userId?: string[];
|
|
8
|
-
projectId?: string[];
|
|
9
|
-
userTransactionId?: string[];
|
|
10
|
-
} & QueryPaginate;
|
|
11
|
-
export interface ICreateUserTransactionAdminParams {
|
|
12
|
-
userId: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ICreateUserTransactionAdminBody {
|
|
15
|
-
amount: number;
|
|
16
|
-
type: UserTransactionType;
|
|
17
|
-
description?: string;
|
|
18
|
-
projectId?: string;
|
|
19
|
-
shouldFailOnNegative?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface IDeleteUserTransactionAdminParams {
|
|
22
|
-
userTransactionId: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IUpdateUserTransactionAdminParams {
|
|
25
|
-
userTransactionId: string;
|
|
26
|
-
}
|
|
27
|
-
export interface IUpdateUserTransactionAdminBody {
|
|
28
|
-
type?: UserTransactionType;
|
|
29
|
-
description?: string;
|
|
30
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { UserTransactionType } from '../../../enum';
|
|
2
|
-
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
-
export type IPaginateUserTransactionQuery = {
|
|
4
|
-
minAmount?: number;
|
|
5
|
-
maxAmount?: number;
|
|
6
|
-
type?: UserTransactionType[];
|
|
7
|
-
userTransactionId?: string[];
|
|
8
|
-
} & QueryPaginate;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IUserCreditPurchase } from '../../models/user-credit-purchase.model';
|
|
2
|
-
import { BasePaginate } from '../type-message/base-paginate';
|
|
3
|
-
import { IResponse } from '../type-message/response';
|
|
4
|
-
export interface IGetUserCreditPurchaseAdminData {
|
|
5
|
-
userCreditPurchase: IUserCreditPurchase;
|
|
6
|
-
}
|
|
7
|
-
export type IGetUserCreditPurchaseAdminResponse = IResponse<IGetUserCreditPurchaseAdminData>;
|
|
8
|
-
export type IPaginateUserCreditPurchaseAdminResponse = IResponse<BasePaginate<IUserCreditPurchase>>;
|
|
9
|
-
export interface ICreateUserCreditPurchaseAdminData {
|
|
10
|
-
userCreditPurchase: IUserCreditPurchase;
|
|
11
|
-
}
|
|
12
|
-
export type ICreateUserCreditPurchaseAdminResponse = IResponse<ICreateUserCreditPurchaseAdminData>;
|
|
13
|
-
export interface IUpdateUserCreditPurchaseAdminData {
|
|
14
|
-
userCreditPurchase: IUserCreditPurchase;
|
|
15
|
-
}
|
|
16
|
-
export type IUpdateUserCreditPurchaseAdminResponse = IResponse<IUpdateUserCreditPurchaseAdminData>;
|
|
17
|
-
export type IDeleteUserCreditPurchaseAdminData = Record<string, never>;
|
|
18
|
-
export type IDeleteUserCreditPurchaseAdminResponse = IResponse<IDeleteUserCreditPurchaseAdminData>;
|
|
19
|
-
export interface IRefundUserCreditPurchaseAdminData {
|
|
20
|
-
userCreditPurchase: IUserCreditPurchase;
|
|
21
|
-
}
|
|
22
|
-
export type IRefundUserCreditPurchaseAdminResponse = IResponse<IRefundUserCreditPurchaseAdminData>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IUserCreditPurchase } from '../../models/user-credit-purchase.model';
|
|
2
|
-
import { BasePaginate } from '../type-message/base-paginate';
|
|
3
|
-
import { IResponse } from '../type-message/response';
|
|
4
|
-
export interface IGetUserCreditPurchaseData {
|
|
5
|
-
userCreditPurchase: IUserCreditPurchase;
|
|
6
|
-
}
|
|
7
|
-
export type IGetUserCreditPurchaseResponse = IResponse<IGetUserCreditPurchaseData>;
|
|
8
|
-
export type IPaginateUserCreditPurchaseResponse = IResponse<BasePaginate<IUserCreditPurchase>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BasePaginate, IResponse } from '..';
|
|
2
|
-
import { IUserTransaction } from '../..';
|
|
3
|
-
export type IPaginateUserTransactionAdminResponse = IResponse<BasePaginate<IUserTransaction>>;
|
|
4
|
-
export interface ICreateUserTransactionAdminData {
|
|
5
|
-
userTransaction: IUserTransaction;
|
|
6
|
-
}
|
|
7
|
-
export type ICreateUserTransactionAdminResponse = IResponse<ICreateUserTransactionAdminData>;
|
|
8
|
-
export interface IUpdateUserTransactionAdminData {
|
|
9
|
-
userTransaction: IUserTransaction;
|
|
10
|
-
}
|
|
11
|
-
export type IUpdateUserTransactionAdminResponse = IResponse<IUpdateUserTransactionAdminData>;
|
|
12
|
-
export type IDeleteUserTransactionAdminData = Record<string, never>;
|
|
13
|
-
export type IDeleteUserTransactionAdminResponse = IResponse<IDeleteUserTransactionAdminData>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BasePaginate, IResponse } from '..';
|
|
2
|
-
import { IUserTransaction } from '../..';
|
|
3
|
-
export type IPaginateUserTransactionResponse = IResponse<BasePaginate<IUserTransaction>>;
|
|
4
|
-
export interface IGetAggregateUserTransactionData {
|
|
5
|
-
dateWithAmounts: {
|
|
6
|
-
date: Date;
|
|
7
|
-
amount: number;
|
|
8
|
-
}[];
|
|
9
|
-
totalTransactions: number;
|
|
10
|
-
}
|
|
11
|
-
export type IGetAggregateUserTransactionResponse = IResponse<IGetAggregateUserTransactionData>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SubscriptionLevel } from '../../enum';
|
|
2
|
-
import { IProject } from './project.model';
|
|
3
|
-
import { IUser } from './user.model';
|
|
4
|
-
export interface ISubscription {
|
|
5
|
-
id?: string;
|
|
6
|
-
level: SubscriptionLevel;
|
|
7
|
-
userId: string | null;
|
|
8
|
-
projectId: string | null;
|
|
9
|
-
isAutoRenewEnabled: boolean;
|
|
10
|
-
lastRenewDate: Date | null;
|
|
11
|
-
endDate: Date;
|
|
12
|
-
updatedAt?: Date;
|
|
13
|
-
createdAt?: Date;
|
|
14
|
-
project?: IProject | null;
|
|
15
|
-
user?: IUser | null;
|
|
16
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { UserCreditPurchaseCurrency, UserCreditPurchasePaymentMethod, UserCreditPurchasePlatform } from '../../enum';
|
|
2
|
-
import { IUserTransaction } from './user-transaction.model';
|
|
3
|
-
import { IUser } from './user.model';
|
|
4
|
-
export interface IUserCreditPurchase {
|
|
5
|
-
id?: string;
|
|
6
|
-
commentary: string | null;
|
|
7
|
-
platform: UserCreditPurchasePlatform;
|
|
8
|
-
paymentMethod: UserCreditPurchasePaymentMethod;
|
|
9
|
-
currency: UserCreditPurchaseCurrency;
|
|
10
|
-
amount: number;
|
|
11
|
-
metadata: Record<string, unknown>;
|
|
12
|
-
adminId: string | null;
|
|
13
|
-
userId: string;
|
|
14
|
-
userTransactionId: string;
|
|
15
|
-
refundUserTransactionId: string;
|
|
16
|
-
updatedAt?: Date;
|
|
17
|
-
createdAt?: Date;
|
|
18
|
-
user?: IUser;
|
|
19
|
-
admin?: IUser;
|
|
20
|
-
userTransaction?: IUserTransaction;
|
|
21
|
-
refundUserTransaction?: IUserTransaction;
|
|
22
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { UserTransactionType } from '../../enum';
|
|
2
|
-
import { IProject } from './project.model';
|
|
3
|
-
import { IUserCreditPurchase } from './user-credit-purchase.model';
|
|
4
|
-
import { IUser } from './user.model';
|
|
5
|
-
export interface IUserTransaction {
|
|
6
|
-
id?: string;
|
|
7
|
-
userId: string;
|
|
8
|
-
amount: number;
|
|
9
|
-
type: UserTransactionType;
|
|
10
|
-
description: string;
|
|
11
|
-
adminId: string | null;
|
|
12
|
-
projectId: string | null;
|
|
13
|
-
updatedAt?: Date;
|
|
14
|
-
createdAt?: Date;
|
|
15
|
-
user?: IUser;
|
|
16
|
-
admin?: IUser | null;
|
|
17
|
-
project?: IProject | null;
|
|
18
|
-
userCreditPurchase?: IUserCreditPurchase[];
|
|
19
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { OrganizationPermission, OrganizationRole } from '../types/enum';
|
|
2
|
-
export declare const ORGANIZATION_ROLE_PERMISSIONS: Record<OrganizationRole, OrganizationPermission[]>;
|
|
3
|
-
export declare function getEffectiveOrgPermissions(role: OrganizationRole, customPermissions: OrganizationPermission[] | null): OrganizationPermission[];
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEffectiveOrgPermissions = exports.ORGANIZATION_ROLE_PERMISSIONS = void 0;
|
|
4
|
-
const enum_1 = require("../types/enum");
|
|
5
|
-
exports.ORGANIZATION_ROLE_PERMISSIONS = {
|
|
6
|
-
[enum_1.OrganizationRole.OWNER]: Object.values(enum_1.OrganizationPermission),
|
|
7
|
-
[enum_1.OrganizationRole.ADMIN]: [
|
|
8
|
-
enum_1.OrganizationPermission.ORG_UPDATE,
|
|
9
|
-
enum_1.OrganizationPermission.ORG_BILLING_READ,
|
|
10
|
-
enum_1.OrganizationPermission.ORG_BILLING_MANAGE,
|
|
11
|
-
enum_1.OrganizationPermission.MEMBER_INVITE,
|
|
12
|
-
enum_1.OrganizationPermission.MEMBER_REMOVE,
|
|
13
|
-
enum_1.OrganizationPermission.MEMBER_UPDATE_ROLE,
|
|
14
|
-
enum_1.OrganizationPermission.TEAM_CREATE,
|
|
15
|
-
enum_1.OrganizationPermission.TEAM_UPDATE,
|
|
16
|
-
enum_1.OrganizationPermission.TEAM_DELETE,
|
|
17
|
-
enum_1.OrganizationPermission.PROJECT_CREATE,
|
|
18
|
-
enum_1.OrganizationPermission.PROJECT_DELETE,
|
|
19
|
-
enum_1.OrganizationPermission.TICKET_READ,
|
|
20
|
-
enum_1.OrganizationPermission.TICKET_CREATE,
|
|
21
|
-
enum_1.OrganizationPermission.TICKET_MANAGE,
|
|
22
|
-
],
|
|
23
|
-
[enum_1.OrganizationRole.MEMBER]: [
|
|
24
|
-
enum_1.OrganizationPermission.PROJECT_CREATE,
|
|
25
|
-
enum_1.OrganizationPermission.TICKET_READ,
|
|
26
|
-
enum_1.OrganizationPermission.TICKET_CREATE,
|
|
27
|
-
],
|
|
28
|
-
[enum_1.OrganizationRole.VIEWER]: [enum_1.OrganizationPermission.TICKET_READ],
|
|
29
|
-
};
|
|
30
|
-
function getEffectiveOrgPermissions(role, customPermissions) {
|
|
31
|
-
if (customPermissions !== null) {
|
|
32
|
-
return customPermissions;
|
|
33
|
-
}
|
|
34
|
-
return exports.ORGANIZATION_ROLE_PERMISSIONS[role];
|
|
35
|
-
}
|
|
36
|
-
exports.getEffectiveOrgPermissions = getEffectiveOrgPermissions;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ISubscription, ProjectSubscriptionConfig, SubscriptionLevel, UserSubscriptionConfig } from '../types';
|
|
2
|
-
export declare const isSubscriptionExpired: (endDate: Date) => boolean;
|
|
3
|
-
export declare const getUserSubscriptionConfig: (subscription?: ISubscription | null) => UserSubscriptionConfig['BASE'];
|
|
4
|
-
export declare const getProjectSubscriptionConfig: (subscription?: ISubscription | null) => ProjectSubscriptionConfig['BASE'];
|
|
5
|
-
export declare const subscriptionLevelToExplicit: (level: SubscriptionLevel) => string;
|
|
6
|
-
export declare const storagePrice: (level: SubscriptionLevel, amountFile: number) => number;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.storagePrice = exports.subscriptionLevelToExplicit = exports.getProjectSubscriptionConfig = exports.getUserSubscriptionConfig = exports.isSubscriptionExpired = void 0;
|
|
4
|
-
const date_fns_1 = require("date-fns");
|
|
5
|
-
const types_1 = require("../types");
|
|
6
|
-
const isSubscriptionExpired = (endDate) => {
|
|
7
|
-
return (0, date_fns_1.isAfter)(new Date(), new Date(endDate));
|
|
8
|
-
};
|
|
9
|
-
exports.isSubscriptionExpired = isSubscriptionExpired;
|
|
10
|
-
const getUserSubscriptionConfig = (subscription) => {
|
|
11
|
-
if (subscription && !(0, exports.isSubscriptionExpired)(subscription.endDate)) {
|
|
12
|
-
return types_1.USER_SUBSCRIPTION_CONFIG[subscription.level];
|
|
13
|
-
}
|
|
14
|
-
return types_1.USER_SUBSCRIPTION_CONFIG[types_1.SubscriptionLevel.BASE];
|
|
15
|
-
};
|
|
16
|
-
exports.getUserSubscriptionConfig = getUserSubscriptionConfig;
|
|
17
|
-
const getProjectSubscriptionConfig = (subscription) => {
|
|
18
|
-
if (subscription && !(0, exports.isSubscriptionExpired)(subscription.endDate)) {
|
|
19
|
-
return types_1.PROJECT_SUBSCRIPTION_CONFIG[subscription.level];
|
|
20
|
-
}
|
|
21
|
-
return types_1.PROJECT_SUBSCRIPTION_CONFIG[types_1.SubscriptionLevel.BASE];
|
|
22
|
-
};
|
|
23
|
-
exports.getProjectSubscriptionConfig = getProjectSubscriptionConfig;
|
|
24
|
-
const subscriptionLevelToExplicit = (level) => {
|
|
25
|
-
switch (level) {
|
|
26
|
-
case types_1.SubscriptionLevel.BASE:
|
|
27
|
-
return types_1.SubscriptionLevel.BASE;
|
|
28
|
-
case types_1.SubscriptionLevel.ADVANCED:
|
|
29
|
-
return types_1.SubscriptionLevel.ADVANCED;
|
|
30
|
-
case types_1.SubscriptionLevel.PREMIUM:
|
|
31
|
-
return types_1.SubscriptionLevel.PREMIUM;
|
|
32
|
-
default:
|
|
33
|
-
return types_1.SubscriptionLevel.BASE;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.subscriptionLevelToExplicit = subscriptionLevelToExplicit;
|
|
37
|
-
const storagePrice = (level, amountFile) => {
|
|
38
|
-
return Math.floor(Math.max(0, amountFile - types_1.PROJECT_SUBSCRIPTION_CONFIG[level].ABYSS_STORAGE.freeFilePerDay) *
|
|
39
|
-
types_1.PROJECT_SUBSCRIPTION_CONFIG[level].ABYSS_STORAGE.creditPerFilePerDay);
|
|
40
|
-
};
|
|
41
|
-
exports.storagePrice = storagePrice;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function uuid(): string;
|
|
2
|
-
export declare function random(min: number, max: number): number;
|
|
3
|
-
export declare function now(): number;
|
|
4
|
-
export declare function isoDate(): string;
|
|
5
|
-
export declare const PIPE_OPERATIONS: Record<string, (value: unknown, ...args: unknown[]) => unknown>;
|
|
6
|
-
export declare const BUILT_IN_FUNCTIONS: Record<string, (...args: unknown[]) => unknown>;
|