@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
|
@@ -19,10 +19,6 @@ export interface ICreateUserProjectAccessData {
|
|
|
19
19
|
projectAccess: IProjectAccess;
|
|
20
20
|
}
|
|
21
21
|
export type ICreateUserProjectAccessResponse = IResponse<ICreateUserProjectAccessData>;
|
|
22
|
-
export interface ICreateProjectAccessData {
|
|
23
|
-
projectAccess: IProjectAccess;
|
|
24
|
-
}
|
|
25
|
-
export type ICreateProjectAccessResponse = IResponse<ICreateProjectAccessData>;
|
|
26
22
|
export interface IDeleteProjectAccessData {
|
|
27
23
|
}
|
|
28
24
|
export type IDeleteProjectAccessResponse = IResponse<IDeleteProjectAccessData>;
|
|
@@ -37,10 +33,6 @@ export type IUpsertApplicationProjectAccessResponse = IResponse<IUpsertApplicati
|
|
|
37
33
|
export interface IDeleteApplicationProjectAccessData {
|
|
38
34
|
}
|
|
39
35
|
export type IDeleteApplicationProjectAccessResponse = IResponse<IDeleteApplicationProjectAccessData>;
|
|
40
|
-
export interface IResetApiKeyProjectAccessData {
|
|
41
|
-
projectAccess: IProjectAccess;
|
|
42
|
-
}
|
|
43
|
-
export type IResetApiKeyProjectAccessResponse = IResponse<IResetApiKeyProjectAccessData>;
|
|
44
36
|
export interface IConfirmUserProjectAccessData {
|
|
45
37
|
projectAccess: IProjectAccess;
|
|
46
38
|
}
|
|
@@ -62,3 +54,19 @@ export interface IListMembersProjectAccessData {
|
|
|
62
54
|
}[];
|
|
63
55
|
}
|
|
64
56
|
export type IListMembersProjectAccessResponse = IResponse<IListMembersProjectAccessData>;
|
|
57
|
+
export interface IListMePermissionsProjectAccessData {
|
|
58
|
+
permissions: string[];
|
|
59
|
+
}
|
|
60
|
+
export type IListMePermissionsProjectAccessResponse = IResponse<IListMePermissionsProjectAccessData>;
|
|
61
|
+
export interface IListMeApplicationPermissionsProjectAccessData {
|
|
62
|
+
permissions: string[];
|
|
63
|
+
}
|
|
64
|
+
export type IListMeApplicationPermissionsProjectAccessResponse = IResponse<IListMeApplicationPermissionsProjectAccessData>;
|
|
65
|
+
export interface IListMeApiKeyPermissionsProjectAccessData {
|
|
66
|
+
permissions: string[];
|
|
67
|
+
}
|
|
68
|
+
export type IListMeApiKeyPermissionsProjectAccessResponse = IResponse<IListMeApiKeyPermissionsProjectAccessData>;
|
|
69
|
+
export interface IListMeApiKeyApplicationPermissionsProjectAccessData {
|
|
70
|
+
permissions: string[];
|
|
71
|
+
}
|
|
72
|
+
export type IListMeApiKeyApplicationPermissionsProjectAccessResponse = IResponse<IListMeApiKeyApplicationPermissionsProjectAccessData>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IProjectApiKey } from '../../models/project-api-key.model';
|
|
2
|
+
import { IResponse } from '../type-message/response';
|
|
3
|
+
export interface ICreateProjectApiKeyData {
|
|
4
|
+
projectApiKey: IProjectApiKey;
|
|
5
|
+
}
|
|
6
|
+
export type ICreateProjectApiKeyResponse = IResponse<ICreateProjectApiKeyData>;
|
|
7
|
+
export interface IGetProjectApiKeyData {
|
|
8
|
+
projectApiKey: IProjectApiKey;
|
|
9
|
+
}
|
|
10
|
+
export type IGetProjectApiKeyResponse = IResponse<IGetProjectApiKeyData>;
|
|
11
|
+
export interface IListProjectApiKeysData {
|
|
12
|
+
projectApiKeys: IProjectApiKey[];
|
|
13
|
+
}
|
|
14
|
+
export type IListProjectApiKeysResponse = IResponse<IListProjectApiKeysData>;
|
|
15
|
+
export interface IUpdateProjectApiKeyData {
|
|
16
|
+
projectApiKey: IProjectApiKey;
|
|
17
|
+
}
|
|
18
|
+
export type IUpdateProjectApiKeyResponse = IResponse<IUpdateProjectApiKeyData>;
|
|
19
|
+
export interface IDeleteProjectApiKeyData {
|
|
20
|
+
deleted: boolean;
|
|
21
|
+
}
|
|
22
|
+
export type IDeleteProjectApiKeyResponse = IResponse<IDeleteProjectApiKeyData>;
|
|
23
|
+
export interface IResetProjectApiKeyData {
|
|
24
|
+
projectApiKey: IProjectApiKey;
|
|
25
|
+
}
|
|
26
|
+
export type IResetProjectApiKeyResponse = IResponse<IResetProjectApiKeyData>;
|
|
@@ -4,7 +4,6 @@ import { Overwrite } from '../../../utils';
|
|
|
4
4
|
import { IBoard } from '../../models/board.model';
|
|
5
5
|
import { IProjectAccess } from '../../models/project-access.model';
|
|
6
6
|
import { IProject } from '../../models/project.model';
|
|
7
|
-
import { IUserTransaction } from '../../models/user-transaction.model';
|
|
8
7
|
import { IReport } from '../../models/report.model';
|
|
9
8
|
import { IResponse } from '../type-message/response';
|
|
10
9
|
export type ProjectWithoutApplication = Overwrite<IProject & IListBoardUserData, {
|
|
@@ -69,7 +68,6 @@ export interface IGetMetricsProjectData {
|
|
|
69
68
|
}
|
|
70
69
|
export type IGetMetricsProjectResponse = IResponse<IGetMetricsProjectData>;
|
|
71
70
|
export type IPaginateProjectResponse = IResponse<BasePaginate<IProject>>;
|
|
72
|
-
export type IPaginateTransactionProjectResponse = IResponse<BasePaginate<IUserTransaction>>;
|
|
73
71
|
export interface IListProjectData {
|
|
74
72
|
projects: ProjectWithoutApplication[];
|
|
75
73
|
sharedProjects: ProjectWithoutApplication[];
|
|
@@ -89,18 +87,6 @@ export type IUpdateProjectResponse = IResponse<IUpdateProjectData>;
|
|
|
89
87
|
export interface ILeaveProjectData {
|
|
90
88
|
}
|
|
91
89
|
export type ILeaveProjectResponse = IResponse<ILeaveProjectData>;
|
|
92
|
-
export interface ICreateSubscriptionProjectData {
|
|
93
|
-
project: IProject;
|
|
94
|
-
}
|
|
95
|
-
export type ICreateSubscriptionProjectResponse = IResponse<ICreateSubscriptionProjectData>;
|
|
96
|
-
export interface IRenewSubscriptionProjectData {
|
|
97
|
-
project: IProject;
|
|
98
|
-
}
|
|
99
|
-
export type IRenewSubscriptionProjectResponse = IResponse<IRenewSubscriptionProjectData>;
|
|
100
|
-
export interface IUpdateSubscriptionProjectData {
|
|
101
|
-
project: IProject;
|
|
102
|
-
}
|
|
103
|
-
export type IUpdateSubscriptionProjectResponse = IResponse<IUpdateSubscriptionProjectData>;
|
|
104
90
|
export interface ISetOwnershipProjectData {
|
|
105
91
|
project: IProject;
|
|
106
92
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ITeam } from '../../models/team.model';
|
|
2
|
+
import { ITeamMember } from '../../models/team-member.model';
|
|
3
|
+
import { ITeamProjectAccess } from '../../models/team-project-access.model';
|
|
4
|
+
import { IResponse } from '../type-message/response';
|
|
5
|
+
export interface ICreateTeamData {
|
|
6
|
+
team: ITeam;
|
|
7
|
+
}
|
|
8
|
+
export type ICreateTeamResponse = IResponse<ICreateTeamData>;
|
|
9
|
+
export interface IGetTeamData {
|
|
10
|
+
team: ITeam;
|
|
11
|
+
}
|
|
12
|
+
export type IGetTeamResponse = IResponse<IGetTeamData>;
|
|
13
|
+
export interface IListTeamsData {
|
|
14
|
+
teams: ITeam[];
|
|
15
|
+
}
|
|
16
|
+
export type IListTeamsResponse = IResponse<IListTeamsData>;
|
|
17
|
+
export interface IUpdateTeamData {
|
|
18
|
+
team: ITeam;
|
|
19
|
+
}
|
|
20
|
+
export type IUpdateTeamResponse = IResponse<IUpdateTeamData>;
|
|
21
|
+
export interface IDeleteTeamData {
|
|
22
|
+
deleted: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type IDeleteTeamResponse = IResponse<IDeleteTeamData>;
|
|
25
|
+
export interface IAddTeamMemberData {
|
|
26
|
+
teamMember: ITeamMember;
|
|
27
|
+
}
|
|
28
|
+
export type IAddTeamMemberResponse = IResponse<IAddTeamMemberData>;
|
|
29
|
+
export interface IRemoveTeamMemberData {
|
|
30
|
+
deleted: boolean;
|
|
31
|
+
}
|
|
32
|
+
export type IRemoveTeamMemberResponse = IResponse<IRemoveTeamMemberData>;
|
|
33
|
+
export interface IListTeamMembersData {
|
|
34
|
+
teamMembers: ITeamMember[];
|
|
35
|
+
}
|
|
36
|
+
export type IListTeamMembersResponse = IResponse<IListTeamMembersData>;
|
|
37
|
+
export interface IAddTeamProjectAccessData {
|
|
38
|
+
teamProjectAccess: ITeamProjectAccess;
|
|
39
|
+
}
|
|
40
|
+
export type IAddTeamProjectAccessResponse = IResponse<IAddTeamProjectAccessData>;
|
|
41
|
+
export interface IUpdateTeamProjectAccessData {
|
|
42
|
+
teamProjectAccess: ITeamProjectAccess;
|
|
43
|
+
}
|
|
44
|
+
export type IUpdateTeamProjectAccessResponse = IResponse<IUpdateTeamProjectAccessData>;
|
|
45
|
+
export interface IRemoveTeamProjectAccessData {
|
|
46
|
+
deleted: boolean;
|
|
47
|
+
}
|
|
48
|
+
export type IRemoveTeamProjectAccessResponse = IResponse<IRemoveTeamProjectAccessData>;
|
|
49
|
+
export interface IListTeamProjectAccessData {
|
|
50
|
+
teamProjectAccess: ITeamProjectAccess[];
|
|
51
|
+
}
|
|
52
|
+
export type IListTeamProjectAccessResponse = IResponse<IListTeamProjectAccessData>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IBillingAccount } from '../../models/billing-account.model';
|
|
2
|
+
import { ICreditTransaction } from '../../models/credit-transaction.model';
|
|
3
|
+
import { IInvoice } from '../../models/invoice.model';
|
|
4
|
+
import { IUsageRecord } from '../../models/usage-record.model';
|
|
5
|
+
import { IQuotaGrant } from '../../models/quota-grant.model';
|
|
6
|
+
import { IResponse } from '../type-message/response';
|
|
7
|
+
export interface IGetUserBillingData {
|
|
8
|
+
billingAccount: IBillingAccount;
|
|
9
|
+
}
|
|
10
|
+
export type IGetUserBillingResponse = IResponse<IGetUserBillingData>;
|
|
11
|
+
export interface IInitUserBillingData {
|
|
12
|
+
billingAccount: IBillingAccount;
|
|
13
|
+
}
|
|
14
|
+
export type IInitUserBillingResponse = IResponse<IInitUserBillingData>;
|
|
15
|
+
export interface IUpdateUserBillingInfoData {
|
|
16
|
+
billingAccount: IBillingAccount;
|
|
17
|
+
}
|
|
18
|
+
export type IUpdateUserBillingInfoResponse = IResponse<IUpdateUserBillingInfoData>;
|
|
19
|
+
export interface ISubscribeUserPlanData {
|
|
20
|
+
billingAccount: IBillingAccount;
|
|
21
|
+
}
|
|
22
|
+
export type ISubscribeUserPlanResponse = IResponse<ISubscribeUserPlanData>;
|
|
23
|
+
export interface IListUserInvoicesData {
|
|
24
|
+
invoices: IInvoice[];
|
|
25
|
+
}
|
|
26
|
+
export type IListUserInvoicesResponse = IResponse<IListUserInvoicesData>;
|
|
27
|
+
export interface IListUserCreditData {
|
|
28
|
+
creditTransactions: ICreditTransaction[];
|
|
29
|
+
}
|
|
30
|
+
export type IListUserCreditResponse = IResponse<IListUserCreditData>;
|
|
31
|
+
export interface IGetUserQuotaData {
|
|
32
|
+
grants: IQuotaGrant[];
|
|
33
|
+
currentUsage: IUsageRecord[];
|
|
34
|
+
}
|
|
35
|
+
export type IGetUserQuotaResponse = IResponse<IGetUserQuotaData>;
|
|
36
|
+
export interface ICheckUserQuotaData {
|
|
37
|
+
allowed: boolean;
|
|
38
|
+
current: number;
|
|
39
|
+
limit: number;
|
|
40
|
+
}
|
|
41
|
+
export type ICheckUserQuotaResponse = IResponse<ICheckUserQuotaData>;
|
|
42
|
+
export interface IRecordUsageUserData {
|
|
43
|
+
usageRecord: IUsageRecord;
|
|
44
|
+
}
|
|
45
|
+
export type IRecordUsageUserResponse = IResponse<IRecordUsageUserData>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './models/user.model';
|
|
2
|
-
export * from './models/subscription.model';
|
|
3
2
|
export * from './models/project.model';
|
|
4
3
|
export * from './models/project-access.model';
|
|
5
4
|
export * from './models/project-application-access.model';
|
|
@@ -7,7 +6,6 @@ export * from './models/project-authentication.model';
|
|
|
7
6
|
export * from './models/project-authentication-session.model';
|
|
8
7
|
export * from './models/application.model';
|
|
9
8
|
export * from './models/user-notification.model';
|
|
10
|
-
export * from './models/user-transaction.model';
|
|
11
9
|
export * from './models/user-ticket.model';
|
|
12
10
|
export * from './models/user-ticket-message.model';
|
|
13
11
|
export * from './models/user-ticket-message-attachment.model';
|
|
@@ -18,7 +16,6 @@ export * from './models/newsletter-member.model';
|
|
|
18
16
|
export * from './models/newsletter-history.model';
|
|
19
17
|
export * from './models/gift-code.model';
|
|
20
18
|
export * from './models/gift-code-activation.model';
|
|
21
|
-
export * from './models/user-credit-purchase.model';
|
|
22
19
|
export * from './api';
|
|
23
20
|
export * from './models/board.model';
|
|
24
21
|
export * from './models/board-column.model';
|
|
@@ -47,3 +44,20 @@ export * from './models/short-link-click.model';
|
|
|
47
44
|
export * from './models/report.model';
|
|
48
45
|
export * from './models/organization.model';
|
|
49
46
|
export * from './models/organization-integration.model';
|
|
47
|
+
export * from './models/organization-member.model';
|
|
48
|
+
export * from './models/plan-template.model';
|
|
49
|
+
export * from './models/billing-account.model';
|
|
50
|
+
export * from './models/organization-service-quota.model';
|
|
51
|
+
export * from './models/organization-project-quota.model';
|
|
52
|
+
export * from './models/usage-record.model';
|
|
53
|
+
export * from './models/invoice.model';
|
|
54
|
+
export * from './models/credit-transaction.model';
|
|
55
|
+
export * from './models/organization-quota-alert.model';
|
|
56
|
+
export * from './models/quota-grant.model';
|
|
57
|
+
export * from './models/billing-addon-template.model';
|
|
58
|
+
export * from './models/team.model';
|
|
59
|
+
export * from './models/team-member.model';
|
|
60
|
+
export * from './models/team-project-access.model';
|
|
61
|
+
export * from './models/team-project-application-access.model';
|
|
62
|
+
export * from './models/project-api-key.model';
|
|
63
|
+
export * from './models/project-api-key-application-access.model';
|
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./models/user.model"), exports);
|
|
18
|
-
__exportStar(require("./models/subscription.model"), exports);
|
|
19
18
|
__exportStar(require("./models/project.model"), exports);
|
|
20
19
|
__exportStar(require("./models/project-access.model"), exports);
|
|
21
20
|
__exportStar(require("./models/project-application-access.model"), exports);
|
|
@@ -23,7 +22,6 @@ __exportStar(require("./models/project-authentication.model"), exports);
|
|
|
23
22
|
__exportStar(require("./models/project-authentication-session.model"), exports);
|
|
24
23
|
__exportStar(require("./models/application.model"), exports);
|
|
25
24
|
__exportStar(require("./models/user-notification.model"), exports);
|
|
26
|
-
__exportStar(require("./models/user-transaction.model"), exports);
|
|
27
25
|
__exportStar(require("./models/user-ticket.model"), exports);
|
|
28
26
|
__exportStar(require("./models/user-ticket-message.model"), exports);
|
|
29
27
|
__exportStar(require("./models/user-ticket-message-attachment.model"), exports);
|
|
@@ -34,7 +32,6 @@ __exportStar(require("./models/newsletter-member.model"), exports);
|
|
|
34
32
|
__exportStar(require("./models/newsletter-history.model"), exports);
|
|
35
33
|
__exportStar(require("./models/gift-code.model"), exports);
|
|
36
34
|
__exportStar(require("./models/gift-code-activation.model"), exports);
|
|
37
|
-
__exportStar(require("./models/user-credit-purchase.model"), exports);
|
|
38
35
|
__exportStar(require("./api"), exports);
|
|
39
36
|
__exportStar(require("./models/board.model"), exports);
|
|
40
37
|
__exportStar(require("./models/board-column.model"), exports);
|
|
@@ -63,3 +60,20 @@ __exportStar(require("./models/short-link-click.model"), exports);
|
|
|
63
60
|
__exportStar(require("./models/report.model"), exports);
|
|
64
61
|
__exportStar(require("./models/organization.model"), exports);
|
|
65
62
|
__exportStar(require("./models/organization-integration.model"), exports);
|
|
63
|
+
__exportStar(require("./models/organization-member.model"), exports);
|
|
64
|
+
__exportStar(require("./models/plan-template.model"), exports);
|
|
65
|
+
__exportStar(require("./models/billing-account.model"), exports);
|
|
66
|
+
__exportStar(require("./models/organization-service-quota.model"), exports);
|
|
67
|
+
__exportStar(require("./models/organization-project-quota.model"), exports);
|
|
68
|
+
__exportStar(require("./models/usage-record.model"), exports);
|
|
69
|
+
__exportStar(require("./models/invoice.model"), exports);
|
|
70
|
+
__exportStar(require("./models/credit-transaction.model"), exports);
|
|
71
|
+
__exportStar(require("./models/organization-quota-alert.model"), exports);
|
|
72
|
+
__exportStar(require("./models/quota-grant.model"), exports);
|
|
73
|
+
__exportStar(require("./models/billing-addon-template.model"), exports);
|
|
74
|
+
__exportStar(require("./models/team.model"), exports);
|
|
75
|
+
__exportStar(require("./models/team-member.model"), exports);
|
|
76
|
+
__exportStar(require("./models/team-project-access.model"), exports);
|
|
77
|
+
__exportStar(require("./models/team-project-application-access.model"), exports);
|
|
78
|
+
__exportStar(require("./models/project-api-key.model"), exports);
|
|
79
|
+
__exportStar(require("./models/project-api-key-application-access.model"), exports);
|
|
@@ -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
|
}
|