@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
|
@@ -18,6 +18,6 @@ export interface IAtlasPage {
|
|
|
18
18
|
deletedAt?: Date;
|
|
19
19
|
atlas?: IAtlas;
|
|
20
20
|
atlasGroup?: IAtlasGroup | null;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
atlasPageContents?: IAtlasPageContent[];
|
|
22
|
+
atlasDocuments?: IAtlasDocument[];
|
|
23
23
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IAtlasDocument } from './atlas-document.model';
|
|
2
2
|
import { IAtlasGroup } from './atlas-group.model';
|
|
3
3
|
import { IAtlasPage } from './atlas-page.model';
|
|
4
|
+
import { IOrganization } from './organization.model';
|
|
4
5
|
import { IProject } from './project.model';
|
|
5
6
|
import { IUser } from './user.model';
|
|
6
7
|
export interface IAtlas {
|
|
@@ -9,17 +10,19 @@ export interface IAtlas {
|
|
|
9
10
|
description: string | null;
|
|
10
11
|
userId: string | null;
|
|
11
12
|
projectId: string | null;
|
|
13
|
+
organizationId: string | null;
|
|
12
14
|
publicAccessToken: string | null;
|
|
13
15
|
createdAt?: Date;
|
|
14
16
|
updatedAt?: Date;
|
|
15
17
|
deletedAt?: Date | null;
|
|
16
18
|
user?: IUser | null;
|
|
17
19
|
project?: IProject | null;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
organization?: IOrganization | null;
|
|
21
|
+
atlasGroups?: IAtlasGroup[];
|
|
22
|
+
atlasPages?: IAtlasPage[];
|
|
23
|
+
atlasDocuments?: IAtlasDocument[];
|
|
21
24
|
}
|
|
22
25
|
export interface IAtlasWithDetails extends IAtlas {
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
atlasGroups: IAtlasGroup[];
|
|
27
|
+
atlasPages: IAtlasPage[];
|
|
25
28
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BillingAccountStatus, PaymentMode } from '../../enum';
|
|
2
|
+
import { IOrganization } from './organization.model';
|
|
3
|
+
import { IUser } from './user.model';
|
|
4
|
+
import { IPlanTemplate } from './plan-template.model';
|
|
5
|
+
import { IInvoice } from './invoice.model';
|
|
6
|
+
import { ICreditTransaction } from './credit-transaction.model';
|
|
7
|
+
export interface IBillingAddress {
|
|
8
|
+
line1: string;
|
|
9
|
+
line2: string | null;
|
|
10
|
+
city: string;
|
|
11
|
+
postalCode: string;
|
|
12
|
+
country: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IBillingAccount {
|
|
15
|
+
id?: string;
|
|
16
|
+
userId: string | null;
|
|
17
|
+
organizationId: string | null;
|
|
18
|
+
planTemplateId: string;
|
|
19
|
+
paymentMode: PaymentMode;
|
|
20
|
+
status: BillingAccountStatus;
|
|
21
|
+
creditBalance: number;
|
|
22
|
+
stripeCustomerId: string | null;
|
|
23
|
+
stripeSubscriptionId: string | null;
|
|
24
|
+
stripePaymentMethodId: string | null;
|
|
25
|
+
billingCycleStartDay: number;
|
|
26
|
+
currentPeriodStart: Date;
|
|
27
|
+
currentPeriodEnd: Date;
|
|
28
|
+
gracePeriodEndsAt: Date | null;
|
|
29
|
+
gracePeriodDays: number;
|
|
30
|
+
billingEmail: string | null;
|
|
31
|
+
billingName: string | null;
|
|
32
|
+
billingAddress: IBillingAddress | null;
|
|
33
|
+
updatedAt?: Date;
|
|
34
|
+
createdAt?: Date;
|
|
35
|
+
user?: IUser | null;
|
|
36
|
+
organization?: IOrganization | null;
|
|
37
|
+
planTemplate?: IPlanTemplate;
|
|
38
|
+
invoices?: IInvoice[];
|
|
39
|
+
creditTransactions?: ICreditTransaction[];
|
|
40
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BillingMetric, BillingService, QuotaGrantScope } from '../../enum';
|
|
2
|
+
export interface IBillingAddonTemplate {
|
|
3
|
+
id?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string | null;
|
|
6
|
+
service: BillingService;
|
|
7
|
+
metric: BillingMetric;
|
|
8
|
+
unitLabel: string;
|
|
9
|
+
defaultSizePerUnit: number | null;
|
|
10
|
+
pricePerUnit: number;
|
|
11
|
+
allowedScopes: QuotaGrantScope[];
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
updatedAt?: Date;
|
|
14
|
+
createdAt?: Date;
|
|
15
|
+
}
|
|
@@ -24,11 +24,11 @@ export interface IBoardCard {
|
|
|
24
24
|
deletedAt?: Date | null;
|
|
25
25
|
board: IBoard;
|
|
26
26
|
boardColumn: IBoardColumn;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
boardActivities: IBoardActivity[];
|
|
28
|
+
boardCardMembers: IBoardCardMember[];
|
|
29
|
+
boardCardDocuments: IBoardCardDocument[];
|
|
30
|
+
boardCardChecklists: IBoardCardChecklist[];
|
|
31
|
+
boardCardComments?: IBoardCardComment[];
|
|
32
|
+
boardCardLabels?: IBoardCardLabel[];
|
|
33
33
|
banner?: IBoardCardDocument | null;
|
|
34
34
|
}
|
|
@@ -3,6 +3,7 @@ import { IBoardCardDocument } from './board-card-document.model';
|
|
|
3
3
|
import { IBoardCard } from './board-card.model';
|
|
4
4
|
import { IBoardColumn } from './board-column.model';
|
|
5
5
|
import { IBoardLabel } from './board-label.model';
|
|
6
|
+
import { IOrganization } from './organization.model';
|
|
6
7
|
import { IProject } from './project.model';
|
|
7
8
|
import { IUser } from './user.model';
|
|
8
9
|
export interface IBoard {
|
|
@@ -11,14 +12,16 @@ export interface IBoard {
|
|
|
11
12
|
title: string;
|
|
12
13
|
userId: string | null;
|
|
13
14
|
projectId: string | null;
|
|
15
|
+
organizationId: string | null;
|
|
14
16
|
archivedAt: Date | null;
|
|
15
17
|
updatedAt?: Date;
|
|
16
18
|
createdAt?: Date;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
boardColumns?: IBoardColumn[];
|
|
20
|
+
boardActivities?: IBoardActivity[];
|
|
21
|
+
boardCards?: IBoardCard[];
|
|
20
22
|
user?: IUser | null;
|
|
21
23
|
project?: IProject | null;
|
|
22
|
-
|
|
24
|
+
organization?: IOrganization | null;
|
|
25
|
+
boardLabels?: IBoardLabel[];
|
|
23
26
|
boardCardDocument?: IBoardCardDocument[];
|
|
24
27
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CreditTransactionType } from '../../enum';
|
|
2
|
+
import { IBillingAccount } from './billing-account.model';
|
|
3
|
+
import { IInvoice } from './invoice.model';
|
|
4
|
+
import { IUser } from './user.model';
|
|
5
|
+
export interface ICreditTransaction {
|
|
6
|
+
id?: string;
|
|
7
|
+
billingAccountId: string;
|
|
8
|
+
type: CreditTransactionType;
|
|
9
|
+
amount: number;
|
|
10
|
+
balanceAfter: number;
|
|
11
|
+
description: string | null;
|
|
12
|
+
invoiceId: string | null;
|
|
13
|
+
adminId: string | null;
|
|
14
|
+
stripePaymentIntentId: string | null;
|
|
15
|
+
amountEur: number | null;
|
|
16
|
+
metadata: Record<string, unknown>;
|
|
17
|
+
updatedAt?: Date;
|
|
18
|
+
createdAt?: Date;
|
|
19
|
+
billingAccount?: IBillingAccount;
|
|
20
|
+
invoice?: IInvoice | null;
|
|
21
|
+
admin?: IUser | null;
|
|
22
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IOrganization } from './organization.model';
|
|
1
2
|
import { IProject } from './project.model';
|
|
2
3
|
import { IUser } from './user.model';
|
|
3
4
|
export interface IDraw {
|
|
@@ -6,6 +7,7 @@ export interface IDraw {
|
|
|
6
7
|
content: string;
|
|
7
8
|
userId: string | null;
|
|
8
9
|
projectId: string | null;
|
|
10
|
+
organizationId: string | null;
|
|
9
11
|
publicReadAccess: string | null;
|
|
10
12
|
publicWriteAccess: string | null;
|
|
11
13
|
fileId: string | null;
|
|
@@ -17,4 +19,5 @@ export interface IDraw {
|
|
|
17
19
|
createdAt?: Date;
|
|
18
20
|
user?: IUser | null;
|
|
19
21
|
project?: IProject | null;
|
|
22
|
+
organization?: IOrganization | null;
|
|
20
23
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { IUser
|
|
1
|
+
import { IUser } from '..';
|
|
2
2
|
import { IGiftCode } from './gift-code.model';
|
|
3
|
+
import { ICreditTransaction } from './credit-transaction.model';
|
|
3
4
|
export interface IGiftCodeActivation {
|
|
4
5
|
id?: string;
|
|
5
6
|
userId: string;
|
|
6
7
|
giftCodeId: string;
|
|
7
|
-
|
|
8
|
+
creditTransactionId?: string | null;
|
|
8
9
|
updatedAt?: Date;
|
|
9
10
|
createdAt?: Date;
|
|
10
11
|
user?: IUser;
|
|
11
12
|
giftCode?: IGiftCode;
|
|
12
|
-
|
|
13
|
+
creditTransaction?: ICreditTransaction;
|
|
13
14
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { InvoiceStatus, PaymentMode } from '../../enum';
|
|
2
|
+
import { IBillingAccount } from './billing-account.model';
|
|
3
|
+
import { IUsageRecord } from './usage-record.model';
|
|
4
|
+
export interface IInvoice {
|
|
5
|
+
id?: string;
|
|
6
|
+
billingAccountId: string;
|
|
7
|
+
invoiceNumber: string;
|
|
8
|
+
status: InvoiceStatus;
|
|
9
|
+
paymentMode: PaymentMode;
|
|
10
|
+
periodStart: Date;
|
|
11
|
+
periodEnd: Date;
|
|
12
|
+
subtotalEur: number;
|
|
13
|
+
overageTotalEur: number;
|
|
14
|
+
totalEur: number;
|
|
15
|
+
creditUsed: number;
|
|
16
|
+
creditUsedEur: number;
|
|
17
|
+
stripeInvoiceId: string | null;
|
|
18
|
+
stripeInvoiceUrl: string | null;
|
|
19
|
+
dueDate: Date | null;
|
|
20
|
+
paidAt: Date | null;
|
|
21
|
+
metadata: Record<string, unknown>;
|
|
22
|
+
updatedAt?: Date;
|
|
23
|
+
createdAt?: Date;
|
|
24
|
+
billingAccount?: IBillingAccount;
|
|
25
|
+
usageRecords?: IUsageRecord[];
|
|
26
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IOrganization } from './organization.model';
|
|
1
2
|
import { IProject } from './project.model';
|
|
2
3
|
import { IUser } from './user.model';
|
|
3
4
|
export interface IMemo {
|
|
@@ -6,9 +7,11 @@ export interface IMemo {
|
|
|
6
7
|
content: string;
|
|
7
8
|
userId: string | null;
|
|
8
9
|
projectId: string | null;
|
|
10
|
+
organizationId: string | null;
|
|
9
11
|
archivedAt?: Date | null;
|
|
10
12
|
updatedAt?: Date;
|
|
11
13
|
createdAt?: Date;
|
|
12
14
|
user?: IUser | null;
|
|
13
15
|
project?: IProject | null;
|
|
16
|
+
organization?: IOrganization | null;
|
|
14
17
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BillingAccountStatus, PaymentMode } from '../../enum';
|
|
2
|
+
import { IOrganization } from './organization.model';
|
|
3
|
+
import { IPlanTemplate } from './plan-template.model';
|
|
4
|
+
import { IInvoice } from './invoice.model';
|
|
5
|
+
import { ICreditTransaction } from './credit-transaction.model';
|
|
6
|
+
export interface IBillingAddress {
|
|
7
|
+
line1: string;
|
|
8
|
+
line2: string | null;
|
|
9
|
+
city: string;
|
|
10
|
+
postalCode: string;
|
|
11
|
+
country: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IOrganizationBilling {
|
|
14
|
+
id?: string;
|
|
15
|
+
organizationId: string;
|
|
16
|
+
planTemplateId: string;
|
|
17
|
+
paymentMode: PaymentMode;
|
|
18
|
+
status: BillingAccountStatus;
|
|
19
|
+
creditBalance: number;
|
|
20
|
+
stripeCustomerId: string | null;
|
|
21
|
+
stripeSubscriptionId: string | null;
|
|
22
|
+
stripePaymentMethodId: string | null;
|
|
23
|
+
billingCycleStartDay: number;
|
|
24
|
+
currentPeriodStart: Date;
|
|
25
|
+
currentPeriodEnd: Date;
|
|
26
|
+
gracePeriodEndsAt: Date | null;
|
|
27
|
+
gracePeriodDays: number;
|
|
28
|
+
billingEmail: string | null;
|
|
29
|
+
billingName: string | null;
|
|
30
|
+
billingAddress: IBillingAddress | null;
|
|
31
|
+
updatedAt?: Date;
|
|
32
|
+
createdAt?: Date;
|
|
33
|
+
organization?: IOrganization;
|
|
34
|
+
planTemplate?: IPlanTemplate;
|
|
35
|
+
invoices?: IInvoice[];
|
|
36
|
+
creditTransactions?: ICreditTransaction[];
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BillingMetric, BillingService } from '../../enum';
|
|
2
|
+
import { IBillingAccount } from './billing-account.model';
|
|
3
|
+
import { IProject } from './project.model';
|
|
4
|
+
export interface IProjectQuota {
|
|
5
|
+
id?: string;
|
|
6
|
+
billingAccountId: string;
|
|
7
|
+
projectId: string;
|
|
8
|
+
service: BillingService;
|
|
9
|
+
metric: BillingMetric;
|
|
10
|
+
limit: number | null;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
billingAccount?: IBillingAccount;
|
|
14
|
+
project?: IProject;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BillingMetric, BillingService } from '../../enum';
|
|
2
|
+
export interface IQuotaAlert {
|
|
3
|
+
id?: string;
|
|
4
|
+
billingAccountId: string;
|
|
5
|
+
service: BillingService;
|
|
6
|
+
metric: BillingMetric;
|
|
7
|
+
threshold: number;
|
|
8
|
+
billingPeriod: string;
|
|
9
|
+
sentAt: Date;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BillingMetric, BillingService } from '../../enum';
|
|
2
|
+
import { IBillingAccount } from './billing-account.model';
|
|
3
|
+
export interface IServiceQuota {
|
|
4
|
+
id?: string;
|
|
5
|
+
billingAccountId: string;
|
|
6
|
+
service: BillingService;
|
|
7
|
+
metric: BillingMetric;
|
|
8
|
+
limit: number;
|
|
9
|
+
isOverridden: boolean;
|
|
10
|
+
updatedAt?: Date;
|
|
11
|
+
createdAt?: Date;
|
|
12
|
+
billingAccount?: IBillingAccount;
|
|
13
|
+
}
|
|
@@ -2,6 +2,7 @@ import { IProject } from './project.model';
|
|
|
2
2
|
import { IOrganizationIntegration } from './organization-integration.model';
|
|
3
3
|
import { IOrganizationMember } from './organization-member.model';
|
|
4
4
|
import { ITeam } from './team.model';
|
|
5
|
+
import { IBillingAccount } from './billing-account.model';
|
|
5
6
|
export interface IOrganization {
|
|
6
7
|
id?: string;
|
|
7
8
|
name: string;
|
|
@@ -11,10 +12,16 @@ export interface IOrganization {
|
|
|
11
12
|
pictureThumbnailId: string | null;
|
|
12
13
|
bannerId: string | null;
|
|
13
14
|
bannerThumbnailId: string | null;
|
|
15
|
+
companyName: string | null;
|
|
16
|
+
companySiren: string | null;
|
|
17
|
+
companyCreationDate: string | null;
|
|
18
|
+
companyWebsite: string | null;
|
|
19
|
+
companyRole: string | null;
|
|
14
20
|
updatedAt?: Date;
|
|
15
21
|
createdAt?: Date;
|
|
16
22
|
projects?: IProject[];
|
|
17
23
|
organizationIntegrations?: IOrganizationIntegration[];
|
|
18
24
|
organizationMembers?: IOrganizationMember[];
|
|
19
25
|
teams?: ITeam[];
|
|
26
|
+
billingAccount?: IBillingAccount;
|
|
20
27
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BillingMetric, BillingService, PaymentMode, PlanTier } from '../../enum';
|
|
2
|
+
export interface IPlanServiceQuota {
|
|
3
|
+
service: BillingService;
|
|
4
|
+
metric: BillingMetric;
|
|
5
|
+
limit: number;
|
|
6
|
+
unit: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IPlanOveragePricing {
|
|
9
|
+
service: BillingService;
|
|
10
|
+
metric: BillingMetric;
|
|
11
|
+
pricePerUnit: number;
|
|
12
|
+
unit: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IPlanTemplate {
|
|
15
|
+
id?: string;
|
|
16
|
+
tier: PlanTier;
|
|
17
|
+
name: string;
|
|
18
|
+
description: string | null;
|
|
19
|
+
isPublic: boolean;
|
|
20
|
+
isArchived: boolean;
|
|
21
|
+
monthlyPriceEur: number;
|
|
22
|
+
defaultPaymentMode: PaymentMode;
|
|
23
|
+
quotas: IPlanServiceQuota[];
|
|
24
|
+
gracePeriodDays: number;
|
|
25
|
+
overagePricing: IPlanOveragePricing[];
|
|
26
|
+
quotaAlertThresholds: number[];
|
|
27
|
+
updatedAt?: Date;
|
|
28
|
+
createdAt?: Date;
|
|
29
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProjectAccessPermission } from '../../enum';
|
|
2
2
|
import { IProjectApplicationAccess } from './project-application-access.model';
|
|
3
3
|
import { IProject } from './project.model';
|
|
4
|
-
import {
|
|
4
|
+
import { IOrganizationMember } from './organization-member.model';
|
|
5
5
|
export interface IProjectAccessSettings {
|
|
6
6
|
dailyReportEmailEnabled?: boolean;
|
|
7
7
|
annualReportEmailEnabled?: boolean;
|
|
@@ -9,16 +9,15 @@ export interface IProjectAccessSettings {
|
|
|
9
9
|
export interface IProjectAccess {
|
|
10
10
|
id?: string;
|
|
11
11
|
permission: ProjectAccessPermission[];
|
|
12
|
-
|
|
13
|
-
userId: string | null;
|
|
12
|
+
organizationMemberId: string;
|
|
14
13
|
projectId: string;
|
|
15
14
|
name: string;
|
|
16
15
|
description: string | null;
|
|
17
|
-
|
|
16
|
+
confirmedAt: Date | null;
|
|
18
17
|
settings: IProjectAccessSettings;
|
|
19
18
|
updatedAt?: Date;
|
|
20
19
|
createdAt?: Date;
|
|
21
20
|
project?: IProject;
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
organizationMember?: IOrganizationMember;
|
|
22
|
+
projectApplicationAccesses?: IProjectApplicationAccess[];
|
|
24
23
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ProjectApplicationAccessPermission } from '../../enum';
|
|
2
|
+
import { IProjectApiKey } from './project-api-key.model';
|
|
3
|
+
import { IApplication } from './application.model';
|
|
4
|
+
export interface IProjectApiKeyApplicationAccess {
|
|
5
|
+
id?: string;
|
|
6
|
+
permission: ProjectApplicationAccessPermission[];
|
|
7
|
+
projectApiKeyId: string;
|
|
8
|
+
applicationId: string;
|
|
9
|
+
updatedAt?: Date;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
projectApiKey?: IProjectApiKey;
|
|
12
|
+
application?: IApplication;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProjectAccessPermission } from '../../enum';
|
|
2
|
+
import { IProject } from './project.model';
|
|
3
|
+
import { IProjectApiKeyApplicationAccess } from './project-api-key-application-access.model';
|
|
4
|
+
export interface IProjectApiKey {
|
|
5
|
+
id?: string;
|
|
6
|
+
apiKey: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string | null;
|
|
9
|
+
permission: ProjectAccessPermission[];
|
|
10
|
+
projectId: string;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
project?: IProject;
|
|
14
|
+
projectApiKeyApplicationAccesses?: IProjectApiKeyApplicationAccess[];
|
|
15
|
+
}
|
|
@@ -2,8 +2,6 @@ import { IUser } from './user.model';
|
|
|
2
2
|
import { IProjectAuthentication } from './project-authentication.model';
|
|
3
3
|
import { IProjectAccess, IProjectAccessSettings } from './project-access.model';
|
|
4
4
|
import { IApplication } from './application.model';
|
|
5
|
-
import { ISubscription } from './subscription.model';
|
|
6
|
-
import { IUserTransaction } from './user-transaction.model';
|
|
7
5
|
import { ProjectStatus } from '../../enum';
|
|
8
6
|
import { IDraw } from './draw.model';
|
|
9
7
|
import { IAtlas } from './atlas.model';
|
|
@@ -25,14 +23,12 @@ export interface IProject {
|
|
|
25
23
|
createdAt?: Date;
|
|
26
24
|
organization?: IOrganization;
|
|
27
25
|
user?: IUser;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
memo?: IMemo[];
|
|
37
|
-
shortLink?: IShortLink[];
|
|
26
|
+
projectAccesses?: IProjectAccess[];
|
|
27
|
+
projectAuthentications?: IProjectAuthentication[];
|
|
28
|
+
applications?: IApplication[];
|
|
29
|
+
draws?: IDraw[];
|
|
30
|
+
retrospectives?: IRetrospective[];
|
|
31
|
+
atlases?: IAtlas[];
|
|
32
|
+
memos?: IMemo[];
|
|
33
|
+
shortLinks?: IShortLink[];
|
|
38
34
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BillingMetric, BillingService, QuotaGrantScope } from '../../enum';
|
|
2
|
+
import { IBillingAccount } from './billing-account.model';
|
|
3
|
+
import { ITeam } from './team.model';
|
|
4
|
+
export interface IQuotaGrant {
|
|
5
|
+
id?: string;
|
|
6
|
+
billingAccountId: string;
|
|
7
|
+
service: BillingService;
|
|
8
|
+
metric: BillingMetric;
|
|
9
|
+
scope: QuotaGrantScope;
|
|
10
|
+
teamId: string | null;
|
|
11
|
+
quantityPerRecipient: number;
|
|
12
|
+
sizePerUnit: number | null;
|
|
13
|
+
freeUnits: number;
|
|
14
|
+
includedInPlan: boolean;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
updatedAt?: Date;
|
|
17
|
+
createdAt?: Date;
|
|
18
|
+
billingAccount?: IBillingAccount;
|
|
19
|
+
team?: ITeam | null;
|
|
20
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IOrganization } from './organization.model';
|
|
1
2
|
import { IProject } from './project.model';
|
|
2
3
|
import { IRetrospectiveCard } from './retrospective-card.model';
|
|
3
4
|
import { IRetrospectiveMember } from './retrospective-member.model';
|
|
@@ -12,13 +13,15 @@ export interface IRetrospective {
|
|
|
12
13
|
completedAt: Date | null;
|
|
13
14
|
userId: string | null;
|
|
14
15
|
projectId: string | null;
|
|
16
|
+
organizationId: string | null;
|
|
15
17
|
archivedAt: Date | null;
|
|
16
18
|
publicAccessToken: string | null;
|
|
17
19
|
updatedAt?: Date;
|
|
18
20
|
createdAt?: Date;
|
|
19
21
|
user?: IUser | null;
|
|
20
22
|
project?: IProject | null;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
organization?: IOrganization | null;
|
|
24
|
+
retrospectiveSections?: IRetrospectiveSection[];
|
|
25
|
+
retrospectiveCards?: IRetrospectiveCard[];
|
|
26
|
+
retrospectiveMembers?: IRetrospectiveMember[];
|
|
24
27
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IOrganization } from './organization.model';
|
|
1
2
|
import { IUser } from './user.model';
|
|
2
3
|
import { IProject } from './project.model';
|
|
3
4
|
import { IShortLinkClick } from './short-link-click.model';
|
|
@@ -9,6 +10,7 @@ export interface IShortLink {
|
|
|
9
10
|
description: string | null;
|
|
10
11
|
userId: string | null;
|
|
11
12
|
projectId: string | null;
|
|
13
|
+
organizationId: string | null;
|
|
12
14
|
isActive: boolean;
|
|
13
15
|
clickCount: number;
|
|
14
16
|
uniqueClickCount: number;
|
|
@@ -21,7 +23,8 @@ export interface IShortLink {
|
|
|
21
23
|
deletedAt?: Date | null;
|
|
22
24
|
user?: IUser | null;
|
|
23
25
|
project?: IProject | null;
|
|
24
|
-
|
|
26
|
+
organization?: IOrganization | null;
|
|
27
|
+
shortLinkClicks?: IShortLinkClick[];
|
|
25
28
|
}
|
|
26
29
|
export interface IShortLinkWithStats extends IShortLink {
|
|
27
30
|
stats?: {
|