@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
package/dist/types/enum/index.js
CHANGED
|
@@ -19,10 +19,7 @@ __exportStar(require("./oauth-account-type.enum"), exports);
|
|
|
19
19
|
__exportStar(require("./abyss-service.enum"), exports);
|
|
20
20
|
__exportStar(require("./user-notification-type.enum"), exports);
|
|
21
21
|
__exportStar(require("./user-notification-content-type.enum"), exports);
|
|
22
|
-
__exportStar(require("./user-transaction-type.enum"), exports);
|
|
23
22
|
__exportStar(require("./gift-code-type.enum"), exports);
|
|
24
|
-
__exportStar(require("./user-credit-purchase-platform.enum"), exports);
|
|
25
|
-
__exportStar(require("./user-credit-purchase-payment-method.enum"), exports);
|
|
26
23
|
__exportStar(require("./user-credit-purchase-currency.enum"), exports);
|
|
27
24
|
__exportStar(require("./token-type.enum"), exports);
|
|
28
25
|
__exportStar(require("./user-language.enum"), exports);
|
|
@@ -30,7 +27,6 @@ __exportStar(require("./user-ticket-category.enum"), exports);
|
|
|
30
27
|
__exportStar(require("./project-access-permission.enum"), exports);
|
|
31
28
|
__exportStar(require("./project-application-access-permission.enum"), exports);
|
|
32
29
|
__exportStar(require("./billing-product.enum"), exports);
|
|
33
|
-
__exportStar(require("./subscription-level.enum"), exports);
|
|
34
30
|
__exportStar(require("./newsletter-type.enum"), exports);
|
|
35
31
|
__exportStar(require("./project-status.enum"), exports);
|
|
36
32
|
__exportStar(require("./abyss-application-event.enum"), exports);
|
|
@@ -43,3 +39,5 @@ __exportStar(require("./measurement-unit.enum"), exports);
|
|
|
43
39
|
__exportStar(require("./organization-integration-type.enum"), exports);
|
|
44
40
|
__exportStar(require("./slack-webhook.enum"), exports);
|
|
45
41
|
__exportStar(require("./discord-webhook.enum"), exports);
|
|
42
|
+
__exportStar(require("./organization-permission.enum"), exports);
|
|
43
|
+
__exportStar(require("./organization-billing.enum"), exports);
|
|
@@ -2,14 +2,16 @@ export declare enum OnboardingSteps {
|
|
|
2
2
|
LANDING = "LANDING",
|
|
3
3
|
USER_DETAILS = "USER_DETAILS",
|
|
4
4
|
USER_TYPE = "USER_TYPE",
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
ORG_CREATE = "ORG_CREATE",
|
|
6
|
+
ORG_INVITE_MEMBERS = "ORG_INVITE_MEMBERS",
|
|
7
|
+
ORG_DISCOVER_TOOLS = "ORG_DISCOVER_TOOLS",
|
|
8
|
+
ORG_DISCOVER_PROJECT_TOOLS = "ORG_DISCOVER_PROJECT_TOOLS",
|
|
8
9
|
USER_FEATURE_SELECT = "USER_FEATURE_SELECT",
|
|
9
10
|
USER_CREATE_CLOUD = "USER_CREATE_CLOUD",
|
|
10
11
|
USER_CONNECT_BANK = "USER_CONNECT_BANK",
|
|
11
12
|
USER_CREATE_MEMORIES = "USER_CREATE_MEMORIES",
|
|
12
13
|
USER_CREATE_FORM = "USER_CREATE_FORM",
|
|
13
14
|
USER_CREATE_SPOTLIGHT = "USER_CREATE_SPOTLIGHT",
|
|
15
|
+
USER_DISCOVER_TRAINING = "USER_DISCOVER_TRAINING",
|
|
14
16
|
END = "END"
|
|
15
17
|
}
|
|
@@ -6,14 +6,16 @@ var OnboardingSteps;
|
|
|
6
6
|
OnboardingSteps["LANDING"] = "LANDING";
|
|
7
7
|
OnboardingSteps["USER_DETAILS"] = "USER_DETAILS";
|
|
8
8
|
OnboardingSteps["USER_TYPE"] = "USER_TYPE";
|
|
9
|
-
OnboardingSteps["
|
|
10
|
-
OnboardingSteps["
|
|
11
|
-
OnboardingSteps["
|
|
9
|
+
OnboardingSteps["ORG_CREATE"] = "ORG_CREATE";
|
|
10
|
+
OnboardingSteps["ORG_INVITE_MEMBERS"] = "ORG_INVITE_MEMBERS";
|
|
11
|
+
OnboardingSteps["ORG_DISCOVER_TOOLS"] = "ORG_DISCOVER_TOOLS";
|
|
12
|
+
OnboardingSteps["ORG_DISCOVER_PROJECT_TOOLS"] = "ORG_DISCOVER_PROJECT_TOOLS";
|
|
12
13
|
OnboardingSteps["USER_FEATURE_SELECT"] = "USER_FEATURE_SELECT";
|
|
13
14
|
OnboardingSteps["USER_CREATE_CLOUD"] = "USER_CREATE_CLOUD";
|
|
14
15
|
OnboardingSteps["USER_CONNECT_BANK"] = "USER_CONNECT_BANK";
|
|
15
16
|
OnboardingSteps["USER_CREATE_MEMORIES"] = "USER_CREATE_MEMORIES";
|
|
16
17
|
OnboardingSteps["USER_CREATE_FORM"] = "USER_CREATE_FORM";
|
|
17
18
|
OnboardingSteps["USER_CREATE_SPOTLIGHT"] = "USER_CREATE_SPOTLIGHT";
|
|
19
|
+
OnboardingSteps["USER_DISCOVER_TRAINING"] = "USER_DISCOVER_TRAINING";
|
|
18
20
|
OnboardingSteps["END"] = "END";
|
|
19
21
|
})(OnboardingSteps || (exports.OnboardingSteps = OnboardingSteps = {}));
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare enum PlanTier {
|
|
2
|
+
FREEMIUM = "FREEMIUM",
|
|
3
|
+
STARTER = "STARTER",
|
|
4
|
+
PRO = "PRO",
|
|
5
|
+
ENTERPRISE = "ENTERPRISE",
|
|
6
|
+
CUSTOM = "CUSTOM",
|
|
7
|
+
INTERNAL = "INTERNAL"
|
|
8
|
+
}
|
|
9
|
+
export declare enum BillingService {
|
|
10
|
+
ABYSS_STORAGE = "ABYSS_STORAGE",
|
|
11
|
+
ABYSS_MONITOR = "ABYSS_MONITOR",
|
|
12
|
+
ABYSS_CLOUD = "ABYSS_CLOUD",
|
|
13
|
+
ABYSS_PLATFORM = "ABYSS_PLATFORM"
|
|
14
|
+
}
|
|
15
|
+
export declare enum BillingMetric {
|
|
16
|
+
STORAGE_GB = "STORAGE_GB",
|
|
17
|
+
FILES_COUNT = "FILES_COUNT",
|
|
18
|
+
PRESIGNED_URLS = "PRESIGNED_URLS",
|
|
19
|
+
BANDWIDTH_GB = "BANDWIDTH_GB",
|
|
20
|
+
LOG_EVENTS = "LOG_EVENTS",
|
|
21
|
+
RETENTION_DAYS = "RETENTION_DAYS",
|
|
22
|
+
APPLICATIONS = "APPLICATIONS",
|
|
23
|
+
CLOUD_INSTANCE_COUNT = "CLOUD_INSTANCE_COUNT",
|
|
24
|
+
CLOUD_STORAGE_GB = "CLOUD_STORAGE_GB",
|
|
25
|
+
PROJECTS_COUNT = "PROJECTS_COUNT",
|
|
26
|
+
MEMBERS_COUNT = "MEMBERS_COUNT",
|
|
27
|
+
TEAM_COUNT = "TEAM_COUNT",
|
|
28
|
+
API_KEYS_COUNT = "API_KEYS_COUNT"
|
|
29
|
+
}
|
|
30
|
+
export declare enum QuotaGrantScope {
|
|
31
|
+
SELF = "SELF",
|
|
32
|
+
ORG_MEMBERS = "ORG_MEMBERS",
|
|
33
|
+
ORG_SHARED = "ORG_SHARED",
|
|
34
|
+
TEAM_MEMBERS = "TEAM_MEMBERS",
|
|
35
|
+
TEAM_SHARED = "TEAM_SHARED"
|
|
36
|
+
}
|
|
37
|
+
export declare enum UsagePoolType {
|
|
38
|
+
ORG_SHARED = "ORG_SHARED",
|
|
39
|
+
TEAM_SHARED = "TEAM_SHARED"
|
|
40
|
+
}
|
|
41
|
+
export declare enum InvoiceStatus {
|
|
42
|
+
DRAFT = "DRAFT",
|
|
43
|
+
OPEN = "OPEN",
|
|
44
|
+
PAID = "PAID",
|
|
45
|
+
VOID = "VOID",
|
|
46
|
+
UNCOLLECTIBLE = "UNCOLLECTIBLE"
|
|
47
|
+
}
|
|
48
|
+
export declare enum BillingAccountStatus {
|
|
49
|
+
ACTIVE = "ACTIVE",
|
|
50
|
+
GRACE = "GRACE",
|
|
51
|
+
SUSPENDED = "SUSPENDED",
|
|
52
|
+
CANCELLED = "CANCELLED"
|
|
53
|
+
}
|
|
54
|
+
export declare enum PaymentMode {
|
|
55
|
+
CREDITS = "CREDITS",
|
|
56
|
+
STRIPE = "STRIPE",
|
|
57
|
+
HYBRID = "HYBRID"
|
|
58
|
+
}
|
|
59
|
+
export declare enum CreditTransactionType {
|
|
60
|
+
PURCHASE = "PURCHASE",
|
|
61
|
+
PURCHASE_REFUND = "PURCHASE_REFUND",
|
|
62
|
+
USAGE_DEDUCTION = "USAGE_DEDUCTION",
|
|
63
|
+
OVERAGE_DEDUCTION = "OVERAGE_DEDUCTION",
|
|
64
|
+
REFUND = "REFUND",
|
|
65
|
+
ADMIN_ADJUSTMENT = "ADMIN_ADJUSTMENT",
|
|
66
|
+
INVOICE_PAYMENT = "INVOICE_PAYMENT",
|
|
67
|
+
GIFT_CODE = "GIFT_CODE",
|
|
68
|
+
BONUS_SPONSOR = "BONUS_SPONSOR",
|
|
69
|
+
BONUS_SPONSORED = "BONUS_SPONSORED"
|
|
70
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditTransactionType = exports.PaymentMode = exports.BillingAccountStatus = exports.InvoiceStatus = exports.UsagePoolType = exports.QuotaGrantScope = exports.BillingMetric = exports.BillingService = exports.PlanTier = void 0;
|
|
4
|
+
var PlanTier;
|
|
5
|
+
(function (PlanTier) {
|
|
6
|
+
PlanTier["FREEMIUM"] = "FREEMIUM";
|
|
7
|
+
PlanTier["STARTER"] = "STARTER";
|
|
8
|
+
PlanTier["PRO"] = "PRO";
|
|
9
|
+
PlanTier["ENTERPRISE"] = "ENTERPRISE";
|
|
10
|
+
PlanTier["CUSTOM"] = "CUSTOM";
|
|
11
|
+
PlanTier["INTERNAL"] = "INTERNAL";
|
|
12
|
+
})(PlanTier || (exports.PlanTier = PlanTier = {}));
|
|
13
|
+
var BillingService;
|
|
14
|
+
(function (BillingService) {
|
|
15
|
+
BillingService["ABYSS_STORAGE"] = "ABYSS_STORAGE";
|
|
16
|
+
BillingService["ABYSS_MONITOR"] = "ABYSS_MONITOR";
|
|
17
|
+
BillingService["ABYSS_CLOUD"] = "ABYSS_CLOUD";
|
|
18
|
+
BillingService["ABYSS_PLATFORM"] = "ABYSS_PLATFORM";
|
|
19
|
+
})(BillingService || (exports.BillingService = BillingService = {}));
|
|
20
|
+
var BillingMetric;
|
|
21
|
+
(function (BillingMetric) {
|
|
22
|
+
BillingMetric["STORAGE_GB"] = "STORAGE_GB";
|
|
23
|
+
BillingMetric["FILES_COUNT"] = "FILES_COUNT";
|
|
24
|
+
BillingMetric["PRESIGNED_URLS"] = "PRESIGNED_URLS";
|
|
25
|
+
BillingMetric["BANDWIDTH_GB"] = "BANDWIDTH_GB";
|
|
26
|
+
BillingMetric["LOG_EVENTS"] = "LOG_EVENTS";
|
|
27
|
+
BillingMetric["RETENTION_DAYS"] = "RETENTION_DAYS";
|
|
28
|
+
BillingMetric["APPLICATIONS"] = "APPLICATIONS";
|
|
29
|
+
BillingMetric["CLOUD_INSTANCE_COUNT"] = "CLOUD_INSTANCE_COUNT";
|
|
30
|
+
BillingMetric["CLOUD_STORAGE_GB"] = "CLOUD_STORAGE_GB";
|
|
31
|
+
BillingMetric["PROJECTS_COUNT"] = "PROJECTS_COUNT";
|
|
32
|
+
BillingMetric["MEMBERS_COUNT"] = "MEMBERS_COUNT";
|
|
33
|
+
BillingMetric["TEAM_COUNT"] = "TEAM_COUNT";
|
|
34
|
+
BillingMetric["API_KEYS_COUNT"] = "API_KEYS_COUNT";
|
|
35
|
+
})(BillingMetric || (exports.BillingMetric = BillingMetric = {}));
|
|
36
|
+
var QuotaGrantScope;
|
|
37
|
+
(function (QuotaGrantScope) {
|
|
38
|
+
QuotaGrantScope["SELF"] = "SELF";
|
|
39
|
+
QuotaGrantScope["ORG_MEMBERS"] = "ORG_MEMBERS";
|
|
40
|
+
QuotaGrantScope["ORG_SHARED"] = "ORG_SHARED";
|
|
41
|
+
QuotaGrantScope["TEAM_MEMBERS"] = "TEAM_MEMBERS";
|
|
42
|
+
QuotaGrantScope["TEAM_SHARED"] = "TEAM_SHARED";
|
|
43
|
+
})(QuotaGrantScope || (exports.QuotaGrantScope = QuotaGrantScope = {}));
|
|
44
|
+
var UsagePoolType;
|
|
45
|
+
(function (UsagePoolType) {
|
|
46
|
+
UsagePoolType["ORG_SHARED"] = "ORG_SHARED";
|
|
47
|
+
UsagePoolType["TEAM_SHARED"] = "TEAM_SHARED";
|
|
48
|
+
})(UsagePoolType || (exports.UsagePoolType = UsagePoolType = {}));
|
|
49
|
+
var InvoiceStatus;
|
|
50
|
+
(function (InvoiceStatus) {
|
|
51
|
+
InvoiceStatus["DRAFT"] = "DRAFT";
|
|
52
|
+
InvoiceStatus["OPEN"] = "OPEN";
|
|
53
|
+
InvoiceStatus["PAID"] = "PAID";
|
|
54
|
+
InvoiceStatus["VOID"] = "VOID";
|
|
55
|
+
InvoiceStatus["UNCOLLECTIBLE"] = "UNCOLLECTIBLE";
|
|
56
|
+
})(InvoiceStatus || (exports.InvoiceStatus = InvoiceStatus = {}));
|
|
57
|
+
var BillingAccountStatus;
|
|
58
|
+
(function (BillingAccountStatus) {
|
|
59
|
+
BillingAccountStatus["ACTIVE"] = "ACTIVE";
|
|
60
|
+
BillingAccountStatus["GRACE"] = "GRACE";
|
|
61
|
+
BillingAccountStatus["SUSPENDED"] = "SUSPENDED";
|
|
62
|
+
BillingAccountStatus["CANCELLED"] = "CANCELLED";
|
|
63
|
+
})(BillingAccountStatus || (exports.BillingAccountStatus = BillingAccountStatus = {}));
|
|
64
|
+
var PaymentMode;
|
|
65
|
+
(function (PaymentMode) {
|
|
66
|
+
PaymentMode["CREDITS"] = "CREDITS";
|
|
67
|
+
PaymentMode["STRIPE"] = "STRIPE";
|
|
68
|
+
PaymentMode["HYBRID"] = "HYBRID";
|
|
69
|
+
})(PaymentMode || (exports.PaymentMode = PaymentMode = {}));
|
|
70
|
+
var CreditTransactionType;
|
|
71
|
+
(function (CreditTransactionType) {
|
|
72
|
+
CreditTransactionType["PURCHASE"] = "PURCHASE";
|
|
73
|
+
CreditTransactionType["PURCHASE_REFUND"] = "PURCHASE_REFUND";
|
|
74
|
+
CreditTransactionType["USAGE_DEDUCTION"] = "USAGE_DEDUCTION";
|
|
75
|
+
CreditTransactionType["OVERAGE_DEDUCTION"] = "OVERAGE_DEDUCTION";
|
|
76
|
+
CreditTransactionType["REFUND"] = "REFUND";
|
|
77
|
+
CreditTransactionType["ADMIN_ADJUSTMENT"] = "ADMIN_ADJUSTMENT";
|
|
78
|
+
CreditTransactionType["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
|
|
79
|
+
CreditTransactionType["GIFT_CODE"] = "GIFT_CODE";
|
|
80
|
+
CreditTransactionType["BONUS_SPONSOR"] = "BONUS_SPONSOR";
|
|
81
|
+
CreditTransactionType["BONUS_SPONSORED"] = "BONUS_SPONSORED";
|
|
82
|
+
})(CreditTransactionType || (exports.CreditTransactionType = CreditTransactionType = {}));
|
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
export declare enum OrganizationPermission {
|
|
2
|
+
ORG_FULL_ACCESS = "ORG_FULL_ACCESS",
|
|
2
3
|
ORG_UPDATE = "ORG_UPDATE",
|
|
3
4
|
ORG_DELETE = "ORG_DELETE",
|
|
5
|
+
ORG_TRANSFER_OWNERSHIP = "ORG_TRANSFER_OWNERSHIP",
|
|
4
6
|
ORG_BILLING_READ = "ORG_BILLING_READ",
|
|
5
7
|
ORG_BILLING_MANAGE = "ORG_BILLING_MANAGE",
|
|
6
8
|
MEMBER_INVITE = "MEMBER_INVITE",
|
|
7
9
|
MEMBER_REMOVE = "MEMBER_REMOVE",
|
|
8
|
-
|
|
10
|
+
MEMBER_UPDATE_PERMISSIONS = "MEMBER_UPDATE_PERMISSIONS",
|
|
11
|
+
MEMBER_VIEW = "MEMBER_VIEW",
|
|
9
12
|
TEAM_CREATE = "TEAM_CREATE",
|
|
10
13
|
TEAM_UPDATE = "TEAM_UPDATE",
|
|
11
14
|
TEAM_DELETE = "TEAM_DELETE",
|
|
15
|
+
TEAM_MANAGE_MEMBERS = "TEAM_MANAGE_MEMBERS",
|
|
12
16
|
PROJECT_CREATE = "PROJECT_CREATE",
|
|
13
17
|
PROJECT_DELETE = "PROJECT_DELETE",
|
|
18
|
+
PROJECT_VIEW_ALL = "PROJECT_VIEW_ALL",
|
|
19
|
+
INTEGRATION_MANAGE = "INTEGRATION_MANAGE",
|
|
14
20
|
TICKET_READ = "TICKET_READ",
|
|
15
21
|
TICKET_CREATE = "TICKET_CREATE",
|
|
16
22
|
TICKET_MANAGE = "TICKET_MANAGE"
|
|
17
23
|
}
|
|
24
|
+
export declare const ORGANIZATION_PERMISSION_PRESETS: {
|
|
25
|
+
readonly OWNER: OrganizationPermission[];
|
|
26
|
+
readonly ADMIN: OrganizationPermission[];
|
|
27
|
+
readonly MEMBER: OrganizationPermission[];
|
|
28
|
+
readonly VIEWER: OrganizationPermission[];
|
|
29
|
+
};
|
|
@@ -1,21 +1,59 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationPermission = void 0;
|
|
3
|
+
exports.ORGANIZATION_PERMISSION_PRESETS = exports.OrganizationPermission = void 0;
|
|
4
4
|
var OrganizationPermission;
|
|
5
5
|
(function (OrganizationPermission) {
|
|
6
|
+
OrganizationPermission["ORG_FULL_ACCESS"] = "ORG_FULL_ACCESS";
|
|
6
7
|
OrganizationPermission["ORG_UPDATE"] = "ORG_UPDATE";
|
|
7
8
|
OrganizationPermission["ORG_DELETE"] = "ORG_DELETE";
|
|
9
|
+
OrganizationPermission["ORG_TRANSFER_OWNERSHIP"] = "ORG_TRANSFER_OWNERSHIP";
|
|
8
10
|
OrganizationPermission["ORG_BILLING_READ"] = "ORG_BILLING_READ";
|
|
9
11
|
OrganizationPermission["ORG_BILLING_MANAGE"] = "ORG_BILLING_MANAGE";
|
|
10
12
|
OrganizationPermission["MEMBER_INVITE"] = "MEMBER_INVITE";
|
|
11
13
|
OrganizationPermission["MEMBER_REMOVE"] = "MEMBER_REMOVE";
|
|
12
|
-
OrganizationPermission["
|
|
14
|
+
OrganizationPermission["MEMBER_UPDATE_PERMISSIONS"] = "MEMBER_UPDATE_PERMISSIONS";
|
|
15
|
+
OrganizationPermission["MEMBER_VIEW"] = "MEMBER_VIEW";
|
|
13
16
|
OrganizationPermission["TEAM_CREATE"] = "TEAM_CREATE";
|
|
14
17
|
OrganizationPermission["TEAM_UPDATE"] = "TEAM_UPDATE";
|
|
15
18
|
OrganizationPermission["TEAM_DELETE"] = "TEAM_DELETE";
|
|
19
|
+
OrganizationPermission["TEAM_MANAGE_MEMBERS"] = "TEAM_MANAGE_MEMBERS";
|
|
16
20
|
OrganizationPermission["PROJECT_CREATE"] = "PROJECT_CREATE";
|
|
17
21
|
OrganizationPermission["PROJECT_DELETE"] = "PROJECT_DELETE";
|
|
22
|
+
OrganizationPermission["PROJECT_VIEW_ALL"] = "PROJECT_VIEW_ALL";
|
|
23
|
+
OrganizationPermission["INTEGRATION_MANAGE"] = "INTEGRATION_MANAGE";
|
|
18
24
|
OrganizationPermission["TICKET_READ"] = "TICKET_READ";
|
|
19
25
|
OrganizationPermission["TICKET_CREATE"] = "TICKET_CREATE";
|
|
20
26
|
OrganizationPermission["TICKET_MANAGE"] = "TICKET_MANAGE";
|
|
21
27
|
})(OrganizationPermission || (exports.OrganizationPermission = OrganizationPermission = {}));
|
|
28
|
+
exports.ORGANIZATION_PERMISSION_PRESETS = {
|
|
29
|
+
OWNER: Object.values(OrganizationPermission),
|
|
30
|
+
ADMIN: [
|
|
31
|
+
OrganizationPermission.ORG_UPDATE,
|
|
32
|
+
OrganizationPermission.ORG_BILLING_READ,
|
|
33
|
+
OrganizationPermission.MEMBER_INVITE,
|
|
34
|
+
OrganizationPermission.MEMBER_REMOVE,
|
|
35
|
+
OrganizationPermission.MEMBER_UPDATE_PERMISSIONS,
|
|
36
|
+
OrganizationPermission.MEMBER_VIEW,
|
|
37
|
+
OrganizationPermission.TEAM_CREATE,
|
|
38
|
+
OrganizationPermission.TEAM_UPDATE,
|
|
39
|
+
OrganizationPermission.TEAM_DELETE,
|
|
40
|
+
OrganizationPermission.TEAM_MANAGE_MEMBERS,
|
|
41
|
+
OrganizationPermission.PROJECT_CREATE,
|
|
42
|
+
OrganizationPermission.PROJECT_DELETE,
|
|
43
|
+
OrganizationPermission.PROJECT_VIEW_ALL,
|
|
44
|
+
OrganizationPermission.INTEGRATION_MANAGE,
|
|
45
|
+
OrganizationPermission.TICKET_READ,
|
|
46
|
+
OrganizationPermission.TICKET_CREATE,
|
|
47
|
+
OrganizationPermission.TICKET_MANAGE,
|
|
48
|
+
],
|
|
49
|
+
MEMBER: [
|
|
50
|
+
OrganizationPermission.MEMBER_VIEW,
|
|
51
|
+
OrganizationPermission.PROJECT_CREATE,
|
|
52
|
+
OrganizationPermission.TICKET_READ,
|
|
53
|
+
OrganizationPermission.TICKET_CREATE,
|
|
54
|
+
],
|
|
55
|
+
VIEWER: [
|
|
56
|
+
OrganizationPermission.MEMBER_VIEW,
|
|
57
|
+
OrganizationPermission.TICKET_READ,
|
|
58
|
+
],
|
|
59
|
+
};
|
|
@@ -9,10 +9,6 @@ export * from './requests/user-notification.request';
|
|
|
9
9
|
export * from './requests/user-notification.admin.request';
|
|
10
10
|
export * from './requests/gift-code.request';
|
|
11
11
|
export * from './requests/gift-code.admin.request';
|
|
12
|
-
export * from './requests/user-transaction.request';
|
|
13
|
-
export * from './requests/user-transaction.admin.request';
|
|
14
|
-
export * from './requests/user-credit-purchase.request';
|
|
15
|
-
export * from './requests/user-credit-purchase.admin.request';
|
|
16
12
|
export * from './requests/user-ticket.admin.request';
|
|
17
13
|
export * from './requests/user-ticket.request';
|
|
18
14
|
export * from './requests/application.request';
|
|
@@ -55,12 +51,8 @@ export * from './responses/user.response';
|
|
|
55
51
|
export * from './responses/user.admin.response';
|
|
56
52
|
export * from './responses/user-notification.response';
|
|
57
53
|
export * from './responses/user-notification.admin.response';
|
|
58
|
-
export * from './responses/user-transaction.response';
|
|
59
|
-
export * from './responses/user-transaction.admin.response';
|
|
60
54
|
export * from './responses/gift-code.response';
|
|
61
55
|
export * from './responses/gift-code.admin.response';
|
|
62
|
-
export * from './responses/user-credit-purchase.response';
|
|
63
|
-
export * from './responses/user-credit-purchase.admin.response';
|
|
64
56
|
export * from './responses/metrics.admin.response';
|
|
65
57
|
export * from './responses/monitor.response';
|
|
66
58
|
export * from './responses/user-ticket.admin.response';
|
|
@@ -105,4 +97,21 @@ export * from './responses/organization.admin.response';
|
|
|
105
97
|
export * from './requests/organization.request';
|
|
106
98
|
export * from './responses/organization.response';
|
|
107
99
|
export * from './requests/organization-integration-webhook.request';
|
|
100
|
+
export * from './requests/organization-member.request';
|
|
101
|
+
export * from './responses/organization-member.response';
|
|
102
|
+
export * from './requests/organization-billing.request';
|
|
103
|
+
export * from './responses/organization-billing.response';
|
|
104
|
+
export * from './requests/billing-plan.request';
|
|
105
|
+
export * from './responses/billing-plan.response';
|
|
106
|
+
export * from './requests/billing-account.admin.request';
|
|
107
|
+
export * from './responses/billing-account.admin.response';
|
|
108
|
+
export * from './requests/billing-addon-template.request';
|
|
109
|
+
export * from './responses/billing-addon-template.response';
|
|
110
|
+
export * from './responses/project-access.response';
|
|
111
|
+
export * from './requests/team.request';
|
|
112
|
+
export * from './responses/team.response';
|
|
113
|
+
export * from './requests/project-api-key.request';
|
|
114
|
+
export * from './responses/project-api-key.response';
|
|
115
|
+
export * from './requests/user-billing.request';
|
|
116
|
+
export * from './responses/user-billing.response';
|
|
108
117
|
export * from './responses/config.admin.response';
|
|
@@ -25,10 +25,6 @@ __exportStar(require("./requests/user-notification.request"), exports);
|
|
|
25
25
|
__exportStar(require("./requests/user-notification.admin.request"), exports);
|
|
26
26
|
__exportStar(require("./requests/gift-code.request"), exports);
|
|
27
27
|
__exportStar(require("./requests/gift-code.admin.request"), exports);
|
|
28
|
-
__exportStar(require("./requests/user-transaction.request"), exports);
|
|
29
|
-
__exportStar(require("./requests/user-transaction.admin.request"), exports);
|
|
30
|
-
__exportStar(require("./requests/user-credit-purchase.request"), exports);
|
|
31
|
-
__exportStar(require("./requests/user-credit-purchase.admin.request"), exports);
|
|
32
28
|
__exportStar(require("./requests/user-ticket.admin.request"), exports);
|
|
33
29
|
__exportStar(require("./requests/user-ticket.request"), exports);
|
|
34
30
|
__exportStar(require("./requests/application.request"), exports);
|
|
@@ -71,12 +67,8 @@ __exportStar(require("./responses/user.response"), exports);
|
|
|
71
67
|
__exportStar(require("./responses/user.admin.response"), exports);
|
|
72
68
|
__exportStar(require("./responses/user-notification.response"), exports);
|
|
73
69
|
__exportStar(require("./responses/user-notification.admin.response"), exports);
|
|
74
|
-
__exportStar(require("./responses/user-transaction.response"), exports);
|
|
75
|
-
__exportStar(require("./responses/user-transaction.admin.response"), exports);
|
|
76
70
|
__exportStar(require("./responses/gift-code.response"), exports);
|
|
77
71
|
__exportStar(require("./responses/gift-code.admin.response"), exports);
|
|
78
|
-
__exportStar(require("./responses/user-credit-purchase.response"), exports);
|
|
79
|
-
__exportStar(require("./responses/user-credit-purchase.admin.response"), exports);
|
|
80
72
|
__exportStar(require("./responses/metrics.admin.response"), exports);
|
|
81
73
|
__exportStar(require("./responses/monitor.response"), exports);
|
|
82
74
|
__exportStar(require("./responses/user-ticket.admin.response"), exports);
|
|
@@ -121,4 +113,21 @@ __exportStar(require("./responses/organization.admin.response"), exports);
|
|
|
121
113
|
__exportStar(require("./requests/organization.request"), exports);
|
|
122
114
|
__exportStar(require("./responses/organization.response"), exports);
|
|
123
115
|
__exportStar(require("./requests/organization-integration-webhook.request"), exports);
|
|
116
|
+
__exportStar(require("./requests/organization-member.request"), exports);
|
|
117
|
+
__exportStar(require("./responses/organization-member.response"), exports);
|
|
118
|
+
__exportStar(require("./requests/organization-billing.request"), exports);
|
|
119
|
+
__exportStar(require("./responses/organization-billing.response"), exports);
|
|
120
|
+
__exportStar(require("./requests/billing-plan.request"), exports);
|
|
121
|
+
__exportStar(require("./responses/billing-plan.response"), exports);
|
|
122
|
+
__exportStar(require("./requests/billing-account.admin.request"), exports);
|
|
123
|
+
__exportStar(require("./responses/billing-account.admin.response"), exports);
|
|
124
|
+
__exportStar(require("./requests/billing-addon-template.request"), exports);
|
|
125
|
+
__exportStar(require("./responses/billing-addon-template.response"), exports);
|
|
126
|
+
__exportStar(require("./responses/project-access.response"), exports);
|
|
127
|
+
__exportStar(require("./requests/team.request"), exports);
|
|
128
|
+
__exportStar(require("./responses/team.response"), exports);
|
|
129
|
+
__exportStar(require("./requests/project-api-key.request"), exports);
|
|
130
|
+
__exportStar(require("./responses/project-api-key.response"), exports);
|
|
131
|
+
__exportStar(require("./requests/user-billing.request"), exports);
|
|
132
|
+
__exportStar(require("./responses/user-billing.response"), exports);
|
|
124
133
|
__exportStar(require("./responses/config.admin.response"), exports);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BillingMetric, BillingService, CreditTransactionType, InvoiceStatus } from '../../../enum';
|
|
2
|
+
import { IBillingAddress } from '../../models/billing-account.model';
|
|
3
|
+
export interface IListAccountsAdminBillingQuery {
|
|
4
|
+
limit?: number;
|
|
5
|
+
offset?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IGetAccountAdminBillingParams {
|
|
8
|
+
billingAccountId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IUpdateAccountAdminBillingParams {
|
|
11
|
+
billingAccountId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IUpdateAccountAdminBillingBody {
|
|
14
|
+
billingEmail?: string | null;
|
|
15
|
+
billingName?: string | null;
|
|
16
|
+
billingAddress?: IBillingAddress | null;
|
|
17
|
+
planTemplateId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IOverrideQuotaAdminBillingParams {
|
|
20
|
+
billingAccountId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IOverrideQuotaAdminBillingBody {
|
|
23
|
+
service: BillingService;
|
|
24
|
+
metric: BillingMetric;
|
|
25
|
+
limit: number;
|
|
26
|
+
}
|
|
27
|
+
export interface IRemoveQuotaOverrideAdminBillingParams {
|
|
28
|
+
billingAccountId: string;
|
|
29
|
+
service: string;
|
|
30
|
+
metric: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IAdjustCreditAdminBillingParams {
|
|
33
|
+
billingAccountId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IAdjustCreditAdminBillingBody {
|
|
36
|
+
amount: number;
|
|
37
|
+
type: CreditTransactionType;
|
|
38
|
+
description: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IListInvoicesAdminBillingParams {
|
|
41
|
+
billingAccountId: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IUpdateInvoiceAdminBillingParams {
|
|
44
|
+
billingAccountId: string;
|
|
45
|
+
invoiceId: string;
|
|
46
|
+
}
|
|
47
|
+
export interface IUpdateInvoiceAdminBillingBody {
|
|
48
|
+
status?: InvoiceStatus;
|
|
49
|
+
paidAt?: Date | null;
|
|
50
|
+
dueDate?: Date | null;
|
|
51
|
+
stripeInvoiceId?: string | null;
|
|
52
|
+
stripeInvoiceUrl?: string | null;
|
|
53
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BillingMetric, BillingService, QuotaGrantScope } from '../../../enum';
|
|
2
|
+
export interface IListAddonTemplatesAdminBillingQuery {
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface IGetAddonTemplateAdminBillingParams {
|
|
6
|
+
addonTemplateId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ICreateAddonTemplateAdminBillingBody {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
service: BillingService;
|
|
12
|
+
metric: BillingMetric;
|
|
13
|
+
unitLabel: string;
|
|
14
|
+
defaultSizePerUnit?: number;
|
|
15
|
+
pricePerUnit: number;
|
|
16
|
+
allowedScopes: QuotaGrantScope[];
|
|
17
|
+
}
|
|
18
|
+
export interface IUpdateAddonTemplateAdminBillingParams {
|
|
19
|
+
addonTemplateId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IUpdateAddonTemplateAdminBillingBody {
|
|
22
|
+
name?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
unitLabel?: string;
|
|
25
|
+
defaultSizePerUnit?: number;
|
|
26
|
+
pricePerUnit?: number;
|
|
27
|
+
allowedScopes?: QuotaGrantScope[];
|
|
28
|
+
isActive?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface IDeleteAddonTemplateAdminBillingParams {
|
|
31
|
+
addonTemplateId: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PaymentMode, PlanTier } from '../../../enum';
|
|
2
|
+
import { IPlanOveragePricing, IPlanServiceQuota } from '../../models/plan-template.model';
|
|
3
|
+
export interface IListPlansBillingQuery {
|
|
4
|
+
isPublic?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface IGetPlanBillingParams {
|
|
7
|
+
planTemplateId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ICreatePlanAdminBillingBody {
|
|
10
|
+
tier: PlanTier;
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string | null;
|
|
13
|
+
isPublic?: boolean;
|
|
14
|
+
monthlyPriceEur: number;
|
|
15
|
+
defaultPaymentMode: PaymentMode;
|
|
16
|
+
gracePeriodDays?: number;
|
|
17
|
+
quotas?: IPlanServiceQuota[];
|
|
18
|
+
overagePricing?: IPlanOveragePricing[];
|
|
19
|
+
quotaAlertThresholds?: number[];
|
|
20
|
+
}
|
|
21
|
+
export interface IUpdatePlanAdminBillingParams {
|
|
22
|
+
planTemplateId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IUpdatePlanAdminBillingBody {
|
|
25
|
+
name?: string;
|
|
26
|
+
description?: string | null;
|
|
27
|
+
isPublic?: boolean;
|
|
28
|
+
isArchived?: boolean;
|
|
29
|
+
monthlyPriceEur?: number;
|
|
30
|
+
gracePeriodDays?: number;
|
|
31
|
+
quotas?: IPlanServiceQuota[];
|
|
32
|
+
overagePricing?: IPlanOveragePricing[];
|
|
33
|
+
quotaAlertThresholds?: number[];
|
|
34
|
+
}
|
|
35
|
+
export interface IDeletePlanAdminBillingParams {
|
|
36
|
+
planTemplateId: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { BillingMetric, BillingService, QuotaGrantScope } from '../../../enum';
|
|
2
|
+
import { IBillingAddress } from '../../models/billing-account.model';
|
|
3
|
+
export interface IGetBillingOrganizationParams {
|
|
4
|
+
organizationId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IGetQuotaOrganizationParams {
|
|
7
|
+
organizationId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IInitBillingOrganizationParams {
|
|
10
|
+
organizationId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IUpdateBillingInfoOrganizationParams {
|
|
13
|
+
organizationId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IUpdateBillingInfoOrganizationBody {
|
|
16
|
+
billingEmail?: string | null;
|
|
17
|
+
billingName?: string | null;
|
|
18
|
+
billingAddress?: IBillingAddress | null;
|
|
19
|
+
}
|
|
20
|
+
export interface ISubscribePlanOrganizationParams {
|
|
21
|
+
organizationId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ISubscribePlanOrganizationBody {
|
|
24
|
+
planTemplateId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IListInvoicesOrganizationParams {
|
|
27
|
+
organizationId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IListCreditOrganizationParams {
|
|
30
|
+
organizationId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ICheckQuotaOrganizationParams {
|
|
33
|
+
organizationId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ICheckQuotaOrganizationBody {
|
|
36
|
+
service: BillingService;
|
|
37
|
+
metric: BillingMetric;
|
|
38
|
+
projectId?: string;
|
|
39
|
+
teamId?: string;
|
|
40
|
+
userId?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface IRecordUsageOrganizationParams {
|
|
43
|
+
organizationId: string;
|
|
44
|
+
}
|
|
45
|
+
export interface IRecordUsageOrganizationBody {
|
|
46
|
+
service: BillingService;
|
|
47
|
+
metric: BillingMetric;
|
|
48
|
+
quantity: number;
|
|
49
|
+
projectId?: string;
|
|
50
|
+
teamId?: string;
|
|
51
|
+
userId?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface IGetProjectQuotaOrganizationParams {
|
|
54
|
+
organizationId: string;
|
|
55
|
+
projectId: string;
|
|
56
|
+
}
|
|
57
|
+
export interface IListGrantsOrganizationParams {
|
|
58
|
+
organizationId: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ICreateGrantOrganizationParams {
|
|
61
|
+
organizationId: string;
|
|
62
|
+
}
|
|
63
|
+
export interface ICreateGrantOrganizationBody {
|
|
64
|
+
service: BillingService;
|
|
65
|
+
metric: BillingMetric;
|
|
66
|
+
scope: QuotaGrantScope;
|
|
67
|
+
teamId?: string;
|
|
68
|
+
quantityPerRecipient: number;
|
|
69
|
+
sizePerUnit?: number;
|
|
70
|
+
freeUnits?: number;
|
|
71
|
+
includedInPlan?: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface IUpdateGrantOrganizationParams {
|
|
74
|
+
organizationId: string;
|
|
75
|
+
grantId: string;
|
|
76
|
+
}
|
|
77
|
+
export interface IUpdateGrantOrganizationBody {
|
|
78
|
+
quantityPerRecipient?: number;
|
|
79
|
+
sizePerUnit?: number;
|
|
80
|
+
freeUnits?: number;
|
|
81
|
+
isActive?: boolean;
|
|
82
|
+
}
|
|
83
|
+
export interface IDeleteGrantOrganizationParams {
|
|
84
|
+
organizationId: string;
|
|
85
|
+
grantId: string;
|
|
86
|
+
}
|
|
87
|
+
export interface IResolveQuotaOrganizationParams {
|
|
88
|
+
organizationId: string;
|
|
89
|
+
}
|
|
90
|
+
export interface IResolveQuotaOrganizationBody {
|
|
91
|
+
service: BillingService;
|
|
92
|
+
metric: BillingMetric;
|
|
93
|
+
userId: string;
|
|
94
|
+
teamIds?: string[];
|
|
95
|
+
}
|