@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.
Files changed (245) hide show
  1. package/dist/api/billing-account.admin.api.d.ts +10 -0
  2. package/dist/api/billing-account.admin.api.js +38 -0
  3. package/dist/api/billing-addon-template.admin.api.d.ts +7 -0
  4. package/dist/api/billing-addon-template.admin.api.js +26 -0
  5. package/dist/api/billing-plan.admin.api.d.ts +6 -0
  6. package/dist/api/billing-plan.admin.api.js +20 -0
  7. package/dist/api/billing-plan.api.d.ts +4 -0
  8. package/dist/api/billing-plan.api.js +12 -0
  9. package/dist/api/index.d.ts +7 -4
  10. package/dist/api/index.js +7 -4
  11. package/dist/api/organization-billing.api.d.ts +17 -0
  12. package/dist/api/organization-billing.api.js +64 -0
  13. package/dist/api/organization-member.api.d.ts +9 -6
  14. package/dist/api/organization-member.api.js +19 -7
  15. package/dist/api/organization.api.d.ts +3 -2
  16. package/dist/api/organization.api.js +5 -1
  17. package/dist/api/project-access.admin.api.d.ts +1 -3
  18. package/dist/api/project-access.admin.api.js +1 -9
  19. package/dist/api/project-access.api.d.ts +5 -3
  20. package/dist/api/project-access.api.js +17 -9
  21. package/dist/api/project-api-key.api.d.ts +8 -0
  22. package/dist/api/project-api-key.api.js +29 -0
  23. package/dist/api/project.api.d.ts +1 -5
  24. package/dist/api/project.api.js +1 -17
  25. package/dist/api/user-billing.api.d.ts +11 -0
  26. package/dist/api/user-billing.api.js +40 -0
  27. package/dist/api/user.api.d.ts +1 -4
  28. package/dist/api/user.api.js +1 -16
  29. package/dist/index.d.ts +1 -37
  30. package/dist/index.js +1 -37
  31. package/dist/permissions/ability.d.ts +12 -0
  32. package/dist/permissions/ability.js +134 -0
  33. package/dist/permissions/index.d.ts +1 -0
  34. package/dist/{workflow → permissions}/index.js +1 -1
  35. package/dist/types/enum/abyss-application-event.enum.d.ts +17 -1
  36. package/dist/types/enum/abyss-application-event.enum.js +16 -0
  37. package/dist/types/enum/index.d.ts +1 -4
  38. package/dist/types/enum/index.js +1 -4
  39. package/dist/types/enum/onboarding-steps.enum.d.ts +5 -3
  40. package/dist/types/enum/onboarding-steps.enum.js +5 -3
  41. package/dist/types/enum/organization-billing.enum.d.ts +70 -0
  42. package/dist/types/enum/organization-billing.enum.js +82 -0
  43. package/dist/types/enum/user-type.enum.d.ts +1 -0
  44. package/dist/types/enum/user-type.enum.js +1 -0
  45. package/dist/types/interface/api/index.d.ts +13 -8
  46. package/dist/types/interface/api/index.js +13 -8
  47. package/dist/types/interface/api/requests/billing-account.admin.request.d.ts +53 -0
  48. package/dist/types/interface/api/requests/billing-addon-template.request.d.ts +32 -0
  49. package/dist/types/interface/api/requests/billing-plan.request.d.ts +37 -0
  50. package/dist/types/interface/api/requests/organization-billing.request.d.ts +95 -0
  51. package/dist/types/interface/api/requests/organization-member.request.d.ts +13 -3
  52. package/dist/types/interface/api/requests/organization.request.d.ts +10 -0
  53. package/dist/types/interface/api/requests/project-access.admin.request.d.ts +1 -20
  54. package/dist/types/interface/api/requests/project-access.request.d.ts +16 -20
  55. package/dist/types/interface/api/requests/project-api-key.request.d.ts +39 -0
  56. package/dist/types/interface/api/requests/project.request.d.ts +2 -23
  57. package/dist/types/interface/api/requests/user-billing.request.d.ts +23 -0
  58. package/dist/types/interface/api/requests/user.request.d.ts +2 -8
  59. package/dist/types/interface/api/responses/billing-account.admin.response.d.ts +38 -0
  60. package/dist/types/interface/api/responses/billing-addon-template.response.d.ts +22 -0
  61. package/dist/types/interface/api/responses/billing-plan.response.d.ts +26 -0
  62. package/dist/types/interface/api/responses/gift-code.admin.response.d.ts +0 -1
  63. package/dist/types/interface/api/responses/gift-code.response.d.ts +0 -1
  64. package/dist/types/interface/api/responses/organization-billing.response.d.ts +82 -0
  65. package/dist/types/interface/api/responses/organization-member.response.d.ts +20 -8
  66. package/dist/types/interface/api/responses/project-access.admin.response.d.ts +0 -8
  67. package/dist/types/interface/api/responses/project-access.response.d.ts +16 -8
  68. package/dist/types/interface/api/responses/project-api-key.response.d.ts +26 -0
  69. package/dist/types/interface/api/responses/project.response.d.ts +0 -14
  70. package/dist/types/interface/api/responses/report.public.response.d.ts +0 -1
  71. package/dist/types/interface/api/responses/user-billing.response.d.ts +45 -0
  72. package/dist/types/interface/index.d.ts +13 -3
  73. package/dist/types/interface/index.js +13 -3
  74. package/dist/types/interface/models/application.model.d.ts +1 -1
  75. package/dist/types/interface/models/atlas-group.model.d.ts +2 -2
  76. package/dist/types/interface/models/atlas-page.model.d.ts +2 -2
  77. package/dist/types/interface/models/atlas.model.d.ts +8 -5
  78. package/dist/types/interface/models/billing-account.model.d.ts +40 -0
  79. package/dist/types/interface/models/billing-account.model.js +2 -0
  80. package/dist/types/interface/models/billing-addon-template.model.d.ts +15 -0
  81. package/dist/types/interface/models/billing-addon-template.model.js +2 -0
  82. package/dist/types/interface/models/board-card-checklist.model.d.ts +1 -1
  83. package/dist/types/interface/models/board-card.model.d.ts +6 -6
  84. package/dist/types/interface/models/board-column.model.d.ts +1 -1
  85. package/dist/types/interface/models/board.model.d.ts +7 -4
  86. package/dist/types/interface/models/credit-transaction.model.d.ts +22 -0
  87. package/dist/types/interface/models/credit-transaction.model.js +2 -0
  88. package/dist/types/interface/models/draw.model.d.ts +3 -0
  89. package/dist/types/interface/models/gift-code-activation.model.d.ts +4 -3
  90. package/dist/types/interface/models/gift-code.model.d.ts +1 -1
  91. package/dist/types/interface/models/invoice.model.d.ts +26 -0
  92. package/dist/types/interface/models/invoice.model.js +2 -0
  93. package/dist/types/interface/models/memo.model.d.ts +3 -0
  94. package/dist/types/interface/models/organization-billing.model.d.ts +37 -0
  95. package/dist/types/interface/models/organization-billing.model.js +2 -0
  96. package/dist/types/interface/models/organization-member.model.d.ts +0 -1
  97. package/dist/types/interface/models/organization-project-quota.model.d.ts +15 -0
  98. package/dist/types/interface/models/organization-project-quota.model.js +2 -0
  99. package/dist/types/interface/models/organization-quota-alert.model.d.ts +11 -0
  100. package/dist/types/interface/models/organization-quota-alert.model.js +2 -0
  101. package/dist/types/interface/models/organization-service-quota.model.d.ts +13 -0
  102. package/dist/types/interface/models/organization-service-quota.model.js +2 -0
  103. package/dist/types/interface/models/organization.model.d.ts +7 -0
  104. package/dist/types/interface/models/plan-template.model.d.ts +29 -0
  105. package/dist/types/interface/models/plan-template.model.js +2 -0
  106. package/dist/types/interface/models/project-access.model.d.ts +5 -6
  107. package/dist/types/interface/models/project-api-key-application-access.model.d.ts +13 -0
  108. package/dist/types/interface/models/project-api-key-application-access.model.js +2 -0
  109. package/dist/types/interface/models/project-api-key.model.d.ts +15 -0
  110. package/dist/types/interface/models/project-api-key.model.js +2 -0
  111. package/dist/types/interface/models/project.model.d.ts +8 -12
  112. package/dist/types/interface/models/quota-grant.model.d.ts +20 -0
  113. package/dist/types/interface/models/quota-grant.model.js +2 -0
  114. package/dist/types/interface/models/retrospective.model.d.ts +6 -3
  115. package/dist/types/interface/models/short-link.model.d.ts +4 -1
  116. package/dist/types/interface/models/team-project-access.model.d.ts +2 -0
  117. package/dist/types/interface/models/team-project-application-access.model.d.ts +13 -0
  118. package/dist/types/interface/models/team-project-application-access.model.js +2 -0
  119. package/dist/types/interface/models/team.model.d.ts +1 -1
  120. package/dist/types/interface/models/token-history.model.d.ts +2 -0
  121. package/dist/types/interface/models/usage-record.model.d.ts +24 -0
  122. package/dist/types/interface/models/usage-record.model.js +2 -0
  123. package/dist/types/interface/models/user-ticket-message.model.d.ts +1 -1
  124. package/dist/types/interface/models/user-ticket.model.d.ts +1 -1
  125. package/dist/types/interface/models/user.model.d.ts +16 -18
  126. package/dist/types/utils/onboarding.utils.d.ts +1 -6
  127. package/dist/types/utils/onboarding.utils.js +9 -5
  128. package/dist/utils/index.d.ts +0 -1
  129. package/dist/utils/index.js +0 -1
  130. package/package.json +2 -1
  131. package/dist/api/user-credit-purchase.admin.api.d.ts +0 -7
  132. package/dist/api/user-credit-purchase.admin.api.js +0 -28
  133. package/dist/api/user-credit-purchase.api.d.ts +0 -3
  134. package/dist/api/user-credit-purchase.api.js +0 -14
  135. package/dist/api/user-transaction.admin.api.d.ts +0 -5
  136. package/dist/api/user-transaction.admin.api.js +0 -20
  137. package/dist/api/user-transaction.api.d.ts +0 -3
  138. package/dist/api/user-transaction.api.js +0 -14
  139. package/dist/expressions/index.d.ts +0 -5
  140. package/dist/expressions/index.js +0 -16
  141. package/dist/expressions/mapper.d.ts +0 -9
  142. package/dist/expressions/mapper.js +0 -90
  143. package/dist/expressions/parser.d.ts +0 -3
  144. package/dist/expressions/parser.js +0 -97
  145. package/dist/expressions/resolver.d.ts +0 -12
  146. package/dist/expressions/resolver.js +0 -88
  147. package/dist/expressions/types.d.ts +0 -36
  148. package/dist/types/enum/integration-type.enum.d.ts +0 -4
  149. package/dist/types/enum/integration-type.enum.js +0 -8
  150. package/dist/types/enum/invoice-status.enum.d.ts +0 -7
  151. package/dist/types/enum/invoice-status.enum.js +0 -11
  152. package/dist/types/enum/organization-role.enum.d.ts +0 -6
  153. package/dist/types/enum/organization-role.enum.js +0 -10
  154. package/dist/types/enum/organization-subscription-status.enum.d.ts +0 -7
  155. package/dist/types/enum/organization-subscription-status.enum.js +0 -11
  156. package/dist/types/enum/plan-billing-period.enum.d.ts +0 -4
  157. package/dist/types/enum/plan-billing-period.enum.js +0 -8
  158. package/dist/types/enum/plan-status.enum.d.ts +0 -4
  159. package/dist/types/enum/plan-status.enum.js +0 -8
  160. package/dist/types/enum/subscription-level.enum.d.ts +0 -72
  161. package/dist/types/enum/subscription-level.enum.js +0 -179
  162. package/dist/types/enum/usage-record-type.enum.d.ts +0 -8
  163. package/dist/types/enum/usage-record-type.enum.js +0 -12
  164. package/dist/types/enum/user-credit-purchase-payment-method.enum.d.ts +0 -3
  165. package/dist/types/enum/user-credit-purchase-payment-method.enum.js +0 -7
  166. package/dist/types/enum/user-credit-purchase-platform.enum.d.ts +0 -8
  167. package/dist/types/enum/user-credit-purchase-platform.enum.js +0 -12
  168. package/dist/types/enum/user-transaction-type.enum.d.ts +0 -14
  169. package/dist/types/enum/user-transaction-type.enum.js +0 -18
  170. package/dist/types/interface/api/requests/user-credit-purchase.admin.request.d.ts +0 -42
  171. package/dist/types/interface/api/requests/user-credit-purchase.request.d.ts +0 -9
  172. package/dist/types/interface/api/requests/user-transaction.admin.request.d.ts +0 -30
  173. package/dist/types/interface/api/requests/user-transaction.request.d.ts +0 -8
  174. package/dist/types/interface/api/responses/user-credit-purchase.admin.response.d.ts +0 -22
  175. package/dist/types/interface/api/responses/user-credit-purchase.response.d.ts +0 -8
  176. package/dist/types/interface/api/responses/user-transaction.admin.response.d.ts +0 -13
  177. package/dist/types/interface/api/responses/user-transaction.response.d.ts +0 -11
  178. package/dist/types/interface/models/subscription.model.d.ts +0 -16
  179. package/dist/types/interface/models/user-credit-purchase.model.d.ts +0 -22
  180. package/dist/types/interface/models/user-transaction.model.d.ts +0 -19
  181. package/dist/utils/organization-permission.utils.d.ts +0 -3
  182. package/dist/utils/organization-permission.utils.js +0 -36
  183. package/dist/utils/subscription.utils.d.ts +0 -6
  184. package/dist/utils/subscription.utils.js +0 -41
  185. package/dist/workflow/expression/expression-functions.utils.d.ts +0 -6
  186. package/dist/workflow/expression/expression-functions.utils.js +0 -61
  187. package/dist/workflow/expression/expression-mapper.d.ts +0 -11
  188. package/dist/workflow/expression/expression-mapper.js +0 -32
  189. package/dist/workflow/expression/expression-mapping.utils.d.ts +0 -4
  190. package/dist/workflow/expression/expression-mapping.utils.js +0 -43
  191. package/dist/workflow/expression/expression-resolver.utils.d.ts +0 -3
  192. package/dist/workflow/expression/expression-resolver.utils.js +0 -54
  193. package/dist/workflow/expression/expression-tokenizer.utils.d.ts +0 -4
  194. package/dist/workflow/expression/expression-tokenizer.utils.js +0 -123
  195. package/dist/workflow/expression/expression.types.d.ts +0 -33
  196. package/dist/workflow/expression/expression.types.js +0 -17
  197. package/dist/workflow/expression/index.d.ts +0 -10
  198. package/dist/workflow/expression/index.js +0 -40
  199. package/dist/workflow/expression/workflow-resolver.d.ts +0 -9
  200. package/dist/workflow/expression/workflow-resolver.js +0 -102
  201. package/dist/workflow/expressions/functions/array.d.ts +0 -2
  202. package/dist/workflow/expressions/functions/array.js +0 -252
  203. package/dist/workflow/expressions/functions/crypto.d.ts +0 -2
  204. package/dist/workflow/expressions/functions/crypto.js +0 -101
  205. package/dist/workflow/expressions/functions/datetime.d.ts +0 -2
  206. package/dist/workflow/expressions/functions/datetime.js +0 -256
  207. package/dist/workflow/expressions/functions/index.d.ts +0 -7
  208. package/dist/workflow/expressions/functions/index.js +0 -46
  209. package/dist/workflow/expressions/functions/math.d.ts +0 -2
  210. package/dist/workflow/expressions/functions/math.js +0 -174
  211. package/dist/workflow/expressions/functions/string.d.ts +0 -2
  212. package/dist/workflow/expressions/functions/string.js +0 -301
  213. package/dist/workflow/expressions/functions/utility.d.ts +0 -2
  214. package/dist/workflow/expressions/functions/utility.js +0 -230
  215. package/dist/workflow/expressions/helpers.d.ts +0 -26
  216. package/dist/workflow/expressions/helpers.js +0 -132
  217. package/dist/workflow/expressions/index.d.ts +0 -15
  218. package/dist/workflow/expressions/index.js +0 -61
  219. package/dist/workflow/expressions/parser.d.ts +0 -8
  220. package/dist/workflow/expressions/parser.js +0 -436
  221. package/dist/workflow/expressions/pipes/array-pipes.d.ts +0 -2
  222. package/dist/workflow/expressions/pipes/array-pipes.js +0 -248
  223. package/dist/workflow/expressions/pipes/index.d.ts +0 -8
  224. package/dist/workflow/expressions/pipes/index.js +0 -40
  225. package/dist/workflow/expressions/pipes/object-pipes.d.ts +0 -2
  226. package/dist/workflow/expressions/pipes/object-pipes.js +0 -243
  227. package/dist/workflow/expressions/pipes/string-pipes.d.ts +0 -9
  228. package/dist/workflow/expressions/pipes/string-pipes.js +0 -178
  229. package/dist/workflow/expressions/resolver.d.ts +0 -8
  230. package/dist/workflow/expressions/resolver.js +0 -263
  231. package/dist/workflow/expressions/types.d.ts +0 -144
  232. package/dist/workflow/expressions/types.js +0 -33
  233. package/dist/workflow/index.d.ts +0 -1
  234. /package/dist/{expressions/types.js → types/interface/api/requests/billing-account.admin.request.js} +0 -0
  235. /package/dist/types/interface/api/requests/{user-credit-purchase.admin.request.js → billing-addon-template.request.js} +0 -0
  236. /package/dist/types/interface/api/requests/{user-credit-purchase.request.js → billing-plan.request.js} +0 -0
  237. /package/dist/types/interface/api/requests/{user-transaction.admin.request.js → organization-billing.request.js} +0 -0
  238. /package/dist/types/interface/api/requests/{user-transaction.request.js → project-api-key.request.js} +0 -0
  239. /package/dist/types/interface/api/{responses/user-credit-purchase.admin.response.js → requests/user-billing.request.js} +0 -0
  240. /package/dist/types/interface/api/responses/{user-credit-purchase.response.js → billing-account.admin.response.js} +0 -0
  241. /package/dist/types/interface/api/responses/{user-transaction.admin.response.js → billing-addon-template.response.js} +0 -0
  242. /package/dist/types/interface/api/responses/{user-transaction.response.js → billing-plan.response.js} +0 -0
  243. /package/dist/types/interface/{models/subscription.model.js → api/responses/organization-billing.response.js} +0 -0
  244. /package/dist/types/interface/{models/user-credit-purchase.model.js → api/responses/project-api-key.response.js} +0 -0
  245. /package/dist/types/interface/{models/user-transaction.model.js → api/responses/user-billing.response.js} +0 -0
@@ -13,6 +13,6 @@ export interface IAtlasGroup {
13
13
  deletedAt?: Date | null;
14
14
  atlas?: IAtlas | null;
15
15
  parentAtlasGroup?: IAtlasGroup | null;
16
- atlasGroup?: IAtlasGroup[];
17
- atlasPage?: IAtlasPage[];
16
+ atlasGroups?: IAtlasGroup[];
17
+ atlasPages?: IAtlasPage[];
18
18
  }
@@ -18,6 +18,6 @@ export interface IAtlasPage {
18
18
  deletedAt?: Date;
19
19
  atlas?: IAtlas;
20
20
  atlasGroup?: IAtlasGroup | null;
21
- atlasPageContent?: IAtlasPageContent[];
22
- atlasDocument?: IAtlasDocument[];
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
- atlasGroup?: IAtlasGroup[];
19
- atlasPage?: IAtlasPage[];
20
- atlasDocument?: IAtlasDocument[];
20
+ organization?: IOrganization | null;
21
+ atlasGroups?: IAtlasGroup[];
22
+ atlasPages?: IAtlasPage[];
23
+ atlasDocuments?: IAtlasDocument[];
21
24
  }
22
25
  export interface IAtlasWithDetails extends IAtlas {
23
- atlasGroup: IAtlasGroup[];
24
- atlasPage: IAtlasPage[];
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,5 +9,5 @@ export interface IBoardCardChecklist {
9
9
  updatedAt?: Date;
10
10
  createdAt?: Date;
11
11
  boardCard: IBoardCard;
12
- boardCardChecklistRow: IBoardCardChecklistRow[];
12
+ boardCardChecklistRows: IBoardCardChecklistRow[];
13
13
  }
@@ -24,11 +24,11 @@ export interface IBoardCard {
24
24
  deletedAt?: Date | null;
25
25
  board: IBoard;
26
26
  boardColumn: IBoardColumn;
27
- boardActivity: IBoardActivity[];
28
- boardCardMember: IBoardCardMember[];
29
- boardCardDocument: IBoardCardDocument[];
30
- boardCardChecklist: IBoardCardChecklist[];
31
- boardCardComment?: IBoardCardComment[];
32
- boardCardLabel?: IBoardCardLabel[];
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
  }
@@ -10,5 +10,5 @@ export interface IBoardColumn {
10
10
  updatedAt?: Date;
11
11
  createdAt?: Date;
12
12
  board: IBoard;
13
- boardCard: IBoardCard[];
13
+ boardCards: IBoardCard[];
14
14
  }
@@ -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
- boardColumn?: IBoardColumn[];
18
- boardActivity?: IBoardActivity[];
19
- boardCard?: IBoardCard[];
19
+ boardColumns?: IBoardColumn[];
20
+ boardActivities?: IBoardActivity[];
21
+ boardCards?: IBoardCard[];
20
22
  user?: IUser | null;
21
23
  project?: IProject | null;
22
- boardLabel?: IBoardLabel[];
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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, IUserTransaction } from '..';
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
- userTransactionId: string | null;
8
+ creditTransactionId?: string | null;
8
9
  updatedAt?: Date;
9
10
  createdAt?: Date;
10
11
  user?: IUser;
11
12
  giftCode?: IGiftCode;
12
- userTransaction?: IUserTransaction;
13
+ creditTransaction?: ICreditTransaction;
13
14
  }
@@ -14,5 +14,5 @@ export interface IGiftCode {
14
14
  description: string | null;
15
15
  updatedAt?: Date;
16
16
  createdAt?: Date;
17
- giftCodeActivation?: IGiftCodeActivation[];
17
+ giftCodeActivations?: IGiftCodeActivation[];
18
18
  }
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,7 +7,6 @@ export interface IOrganizationMember {
7
7
  organizationId: string;
8
8
  userId: string;
9
9
  permissions: OrganizationPermission[];
10
- isConfirmed: boolean;
11
10
  confirmedAt: Date | null;
12
11
  joinedAt: Date;
13
12
  updatedAt?: Date;
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 { IUser } from './user.model';
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
- apiKey: string | null;
13
- userId: string | null;
12
+ organizationMemberId: string;
14
13
  projectId: string;
15
14
  name: string;
16
15
  description: string | null;
17
- isConfirmed: boolean;
16
+ confirmedAt: Date | null;
18
17
  settings: IProjectAccessSettings;
19
18
  updatedAt?: Date;
20
19
  createdAt?: Date;
21
20
  project?: IProject;
22
- user?: IUser | null;
23
- projectApplicationAccess?: IProjectApplicationAccess[];
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
- projectAccess?: IProjectAccess[];
29
- projectAuthentication?: IProjectAuthentication[];
30
- application?: IApplication[];
31
- subscription?: ISubscription | null;
32
- userTransaction?: IUserTransaction[];
33
- draw?: IDraw[];
34
- retrospective?: IRetrospective[];
35
- atlas?: IAtlas[];
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
- retrospectiveSection?: IRetrospectiveSection[];
22
- retrospectiveCard?: IRetrospectiveCard[];
23
- retrospectiveMember?: IRetrospectiveMember[];
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
- shortLinkClick?: IShortLinkClick[];
26
+ organization?: IOrganization | null;
27
+ shortLinkClicks?: IShortLinkClick[];
25
28
  }
26
29
  export interface IShortLinkWithStats extends IShortLink {
27
30
  stats?: {