@abyss-project/main 1.0.110 → 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 +7 -4
- package/dist/api/index.js +7 -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 +9 -6
- package/dist/api/organization-member.api.js +19 -7
- 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/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 +17 -1
- package/dist/types/enum/abyss-application-event.enum.js +16 -0
- package/dist/types/enum/index.d.ts +1 -4
- package/dist/types/enum/index.js +1 -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/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 +13 -8
- package/dist/types/interface/api/index.js +13 -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 +13 -3
- 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/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 +20 -8
- 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.response.d.ts +0 -14
- package/dist/types/interface/api/responses/report.public.response.d.ts +0 -1
- package/dist/types/interface/api/responses/user-billing.response.d.ts +45 -0
- package/dist/types/interface/index.d.ts +13 -3
- package/dist/types/interface/index.js +13 -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 +0 -1
- 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 +7 -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-project-access.model.d.ts +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 +1 -1
- package/dist/types/interface/models/token-history.model.d.ts +2 -0
- 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 → project-api-key.request.js} +0 -0
- /package/dist/types/interface/api/{responses/user-credit-purchase.admin.response.js → requests/user-billing.request.js} +0 -0
- /package/dist/types/interface/api/responses/{user-credit-purchase.response.js → billing-account.admin.response.js} +0 -0
- /package/dist/types/interface/api/responses/{user-transaction.admin.response.js → billing-addon-template.response.js} +0 -0
- /package/dist/types/interface/api/responses/{user-transaction.response.js → billing-plan.response.js} +0 -0
- /package/dist/types/interface/{models/subscription.model.js → api/responses/organization-billing.response.js} +0 -0
- /package/dist/types/interface/{models/user-credit-purchase.model.js → api/responses/project-api-key.response.js} +0 -0
- /package/dist/types/interface/{models/user-transaction.model.js → api/responses/user-billing.response.js} +0 -0
|
@@ -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 = {}));
|
|
@@ -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';
|
|
@@ -107,6 +99,19 @@ export * from './responses/organization.response';
|
|
|
107
99
|
export * from './requests/organization-integration-webhook.request';
|
|
108
100
|
export * from './requests/organization-member.request';
|
|
109
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';
|
|
110
111
|
export * from './requests/team.request';
|
|
111
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';
|
|
112
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);
|
|
@@ -123,6 +115,19 @@ __exportStar(require("./responses/organization.response"), exports);
|
|
|
123
115
|
__exportStar(require("./requests/organization-integration-webhook.request"), exports);
|
|
124
116
|
__exportStar(require("./requests/organization-member.request"), exports);
|
|
125
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);
|
|
126
127
|
__exportStar(require("./requests/team.request"), exports);
|
|
127
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);
|
|
128
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
|
+
}
|
|
@@ -5,8 +5,9 @@ export interface IInviteOrganizationMemberParams {
|
|
|
5
5
|
export interface IInviteOrganizationMemberBody {
|
|
6
6
|
email: string;
|
|
7
7
|
permissions: OrganizationPermission[];
|
|
8
|
+
teamIds?: string[];
|
|
8
9
|
}
|
|
9
|
-
export interface
|
|
10
|
+
export interface IListOrganizationMemberParams {
|
|
10
11
|
organizationId: string;
|
|
11
12
|
}
|
|
12
13
|
export interface IUpdateOrganizationMemberParams {
|
|
@@ -20,9 +21,18 @@ export interface IRemoveOrganizationMemberParams {
|
|
|
20
21
|
organizationId: string;
|
|
21
22
|
memberId: string;
|
|
22
23
|
}
|
|
23
|
-
export interface
|
|
24
|
+
export interface IAcceptOrganizationMemberInvitationParams {
|
|
24
25
|
memberId: string;
|
|
25
26
|
}
|
|
26
|
-
export interface
|
|
27
|
+
export interface IDeclineOrganizationMemberInvitationParams {
|
|
27
28
|
memberId: string;
|
|
28
29
|
}
|
|
30
|
+
export interface ITransferOwnershipOrganizationMemberParams {
|
|
31
|
+
organizationId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ITransferOwnershipOrganizationMemberBody {
|
|
34
|
+
targetMemberId: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IListMePermissionsOrganizationMemberParams {
|
|
37
|
+
organizationId: string;
|
|
38
|
+
}
|
|
@@ -3,6 +3,11 @@ import { OrganizationIntegrationConfig } from '../../models/organization-integra
|
|
|
3
3
|
export interface ICreateOrganizationBody {
|
|
4
4
|
name: string;
|
|
5
5
|
description?: string | null;
|
|
6
|
+
companyName?: string | null;
|
|
7
|
+
companySiren?: string | null;
|
|
8
|
+
companyCreationDate?: string | null;
|
|
9
|
+
companyWebsite?: string | null;
|
|
10
|
+
companyRole?: string | null;
|
|
6
11
|
}
|
|
7
12
|
export interface IGetOrganizationParams {
|
|
8
13
|
organizationId: string;
|
|
@@ -13,6 +18,11 @@ export interface IUpdateOrganizationParams {
|
|
|
13
18
|
export interface IUpdateOrganizationBody {
|
|
14
19
|
name?: string;
|
|
15
20
|
description?: string | null;
|
|
21
|
+
companyName?: string | null;
|
|
22
|
+
companySiren?: string | null;
|
|
23
|
+
companyCreationDate?: string | null;
|
|
24
|
+
companyWebsite?: string | null;
|
|
25
|
+
companyRole?: string | null;
|
|
16
26
|
}
|
|
17
27
|
export interface IDeleteOrganizationParams {
|
|
18
28
|
organizationId: string;
|
|
@@ -13,18 +13,6 @@ export type ICreateUserProjectAccessAdminBody = {
|
|
|
13
13
|
permission: ProjectApplicationAccessPermission[];
|
|
14
14
|
}[];
|
|
15
15
|
};
|
|
16
|
-
export interface ICreateProjectAccessAdminParams {
|
|
17
|
-
projectId: string;
|
|
18
|
-
}
|
|
19
|
-
export type ICreateProjectAccessAdminBody = {
|
|
20
|
-
name: string;
|
|
21
|
-
description?: string | null;
|
|
22
|
-
permission: ProjectAccessPermission[];
|
|
23
|
-
projectApplicationAccess: {
|
|
24
|
-
applicationId: string;
|
|
25
|
-
permission: ProjectApplicationAccessPermission[];
|
|
26
|
-
}[];
|
|
27
|
-
};
|
|
28
16
|
export interface IUpdateProjectAccessAdminParams {
|
|
29
17
|
projectAccessId: string;
|
|
30
18
|
}
|
|
@@ -44,9 +32,6 @@ export interface IDeleteApplicationProjectAccessAdminParams {
|
|
|
44
32
|
projectAccessId: string;
|
|
45
33
|
applicationId: string;
|
|
46
34
|
}
|
|
47
|
-
export interface IResetApiKeyProjectAccessAdminParams {
|
|
48
|
-
projectAccessId: string;
|
|
49
|
-
}
|
|
50
35
|
export interface IDeleteProjectAccessAdminParams {
|
|
51
36
|
projectAccessId: string;
|
|
52
37
|
}
|
|
@@ -54,15 +39,13 @@ export interface IGetProjectAccessAdminParams {
|
|
|
54
39
|
projectAccessId: string;
|
|
55
40
|
}
|
|
56
41
|
export type IPaginateProjectAccessAdminQuery = {
|
|
57
|
-
|
|
42
|
+
organizationMemberId?: string[];
|
|
58
43
|
projectId?: string[];
|
|
59
44
|
} & QueryPaginate;
|
|
60
45
|
export interface IComputeApplicationProjectAccessAdminParams {
|
|
61
46
|
applicationId: string;
|
|
62
47
|
}
|
|
63
48
|
export type IComputeApplicationProjectAccessAdminBody = {
|
|
64
|
-
apiKey: string;
|
|
65
|
-
} | {
|
|
66
49
|
userId: string;
|
|
67
50
|
};
|
|
68
51
|
export type IComputeNotificationAccessProjectAccessAdminBody = {
|
|
@@ -84,8 +67,6 @@ export interface IComputeProjectAccessAdminParams {
|
|
|
84
67
|
projectId: string;
|
|
85
68
|
}
|
|
86
69
|
export type IComputeProjectAccessAdminBody = {
|
|
87
|
-
apiKey: string;
|
|
88
|
-
} | {
|
|
89
70
|
userId: string;
|
|
90
71
|
};
|
|
91
72
|
export interface IListMembersProjectAccessAdminParams {
|
|
@@ -9,10 +9,7 @@ export type IPaginateUserAccessProjectAccessQuery = QueryPaginate;
|
|
|
9
9
|
export interface IPaginateProjectAccessParams {
|
|
10
10
|
projectId: string;
|
|
11
11
|
}
|
|
12
|
-
export type IPaginateProjectAccessQuery =
|
|
13
|
-
onlyUserAccess?: boolean;
|
|
14
|
-
onlyApiKeyAccess?: boolean;
|
|
15
|
-
} & QueryPaginate;
|
|
12
|
+
export type IPaginateProjectAccessQuery = QueryPaginate;
|
|
16
13
|
export interface ICreateUserProjectAccessParams {
|
|
17
14
|
projectId: string;
|
|
18
15
|
userId: string;
|
|
@@ -25,18 +22,7 @@ export type ICreateUserProjectAccessBody = {
|
|
|
25
22
|
applicationId: string;
|
|
26
23
|
permission: ProjectApplicationAccessPermission[];
|
|
27
24
|
}[];
|
|
28
|
-
|
|
29
|
-
export interface ICreateProjectAccessParams {
|
|
30
|
-
projectId: string;
|
|
31
|
-
}
|
|
32
|
-
export type ICreateProjectAccessBody = {
|
|
33
|
-
name: string;
|
|
34
|
-
description?: string | null;
|
|
35
|
-
permission: ProjectAccessPermission[];
|
|
36
|
-
projectApplicationAccess: {
|
|
37
|
-
applicationId: string;
|
|
38
|
-
permission: ProjectApplicationAccessPermission[];
|
|
39
|
-
}[];
|
|
25
|
+
teamIds?: string[];
|
|
40
26
|
};
|
|
41
27
|
export interface IUpdateProjectAccessParams {
|
|
42
28
|
projectId: string;
|
|
@@ -60,10 +46,6 @@ export interface IDeleteApplicationProjectAccessParams {
|
|
|
60
46
|
projectAccessId: string;
|
|
61
47
|
applicationId: string;
|
|
62
48
|
}
|
|
63
|
-
export interface IResetApiKeyProjectAccessParams {
|
|
64
|
-
projectId: string;
|
|
65
|
-
projectAccessId: string;
|
|
66
|
-
}
|
|
67
49
|
export interface IDeleteProjectAccessParams {
|
|
68
50
|
projectId: string;
|
|
69
51
|
projectAccessId: string;
|
|
@@ -86,3 +68,17 @@ export interface IListMembersProjectAccessParams {
|
|
|
86
68
|
export interface IListMembersProjectAccessQuery {
|
|
87
69
|
search?: string;
|
|
88
70
|
}
|
|
71
|
+
export interface IListMePermissionsProjectAccessParams {
|
|
72
|
+
projectId: string;
|
|
73
|
+
}
|
|
74
|
+
export interface IListMeApplicationPermissionsProjectAccessParams {
|
|
75
|
+
projectId: string;
|
|
76
|
+
applicationId: string;
|
|
77
|
+
}
|
|
78
|
+
export interface IListMeApiKeyPermissionsProjectAccessParams {
|
|
79
|
+
projectId: string;
|
|
80
|
+
}
|
|
81
|
+
export interface IListMeApiKeyApplicationPermissionsProjectAccessParams {
|
|
82
|
+
projectId: string;
|
|
83
|
+
applicationId: string;
|
|
84
|
+
}
|