@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.
Files changed (259) 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 +10 -4
  10. package/dist/api/index.js +10 -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 +12 -0
  14. package/dist/api/organization-member.api.js +44 -0
  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/team.api.d.ts +14 -0
  26. package/dist/api/team.api.js +52 -0
  27. package/dist/api/user-billing.api.d.ts +11 -0
  28. package/dist/api/user-billing.api.js +40 -0
  29. package/dist/api/user.api.d.ts +1 -4
  30. package/dist/api/user.api.js +1 -16
  31. package/dist/index.d.ts +1 -37
  32. package/dist/index.js +1 -37
  33. package/dist/permissions/ability.d.ts +12 -0
  34. package/dist/permissions/ability.js +134 -0
  35. package/dist/permissions/index.d.ts +1 -0
  36. package/dist/{workflow → permissions}/index.js +1 -1
  37. package/dist/types/enum/abyss-application-event.enum.d.ts +18 -1
  38. package/dist/types/enum/abyss-application-event.enum.js +17 -0
  39. package/dist/types/enum/index.d.ts +2 -4
  40. package/dist/types/enum/index.js +2 -4
  41. package/dist/types/enum/onboarding-steps.enum.d.ts +5 -3
  42. package/dist/types/enum/onboarding-steps.enum.js +5 -3
  43. package/dist/types/enum/organization-billing.enum.d.ts +70 -0
  44. package/dist/types/enum/organization-billing.enum.js +82 -0
  45. package/dist/types/enum/organization-permission.enum.d.ts +13 -1
  46. package/dist/types/enum/organization-permission.enum.js +40 -2
  47. package/dist/types/enum/user-type.enum.d.ts +1 -0
  48. package/dist/types/enum/user-type.enum.js +1 -0
  49. package/dist/types/interface/api/index.d.ts +17 -8
  50. package/dist/types/interface/api/index.js +17 -8
  51. package/dist/types/interface/api/requests/billing-account.admin.request.d.ts +53 -0
  52. package/dist/types/interface/api/requests/billing-addon-template.request.d.ts +32 -0
  53. package/dist/types/interface/api/requests/billing-plan.request.d.ts +37 -0
  54. package/dist/types/interface/api/requests/organization-billing.request.d.ts +95 -0
  55. package/dist/types/interface/api/requests/organization-member.request.d.ts +38 -0
  56. package/dist/types/interface/api/requests/organization.request.d.ts +10 -0
  57. package/dist/types/interface/api/requests/project-access.admin.request.d.ts +1 -20
  58. package/dist/types/interface/api/requests/project-access.request.d.ts +16 -20
  59. package/dist/types/interface/api/requests/project-api-key.request.d.ts +39 -0
  60. package/dist/types/interface/api/requests/project.request.d.ts +2 -23
  61. package/dist/types/interface/api/requests/team.request.d.ts +72 -0
  62. package/dist/types/interface/api/requests/user-billing.request.d.ts +23 -0
  63. package/dist/types/interface/api/requests/user.request.d.ts +2 -8
  64. package/dist/types/interface/api/responses/billing-account.admin.response.d.ts +38 -0
  65. package/dist/types/interface/api/responses/billing-addon-template.response.d.ts +22 -0
  66. package/dist/types/interface/api/responses/billing-plan.response.d.ts +26 -0
  67. package/dist/types/interface/api/responses/gift-code.admin.response.d.ts +0 -1
  68. package/dist/types/interface/api/responses/gift-code.response.d.ts +0 -1
  69. package/dist/types/interface/api/responses/organization-billing.response.d.ts +82 -0
  70. package/dist/types/interface/api/responses/organization-member.response.d.ts +42 -0
  71. package/dist/types/interface/api/responses/organization-member.response.js +2 -0
  72. package/dist/types/interface/api/responses/project-access.admin.response.d.ts +0 -8
  73. package/dist/types/interface/api/responses/project-access.response.d.ts +16 -8
  74. package/dist/types/interface/api/responses/project-api-key.response.d.ts +26 -0
  75. package/dist/types/interface/api/responses/project-api-key.response.js +2 -0
  76. package/dist/types/interface/api/responses/project.response.d.ts +0 -14
  77. package/dist/types/interface/api/responses/report.public.response.d.ts +0 -1
  78. package/dist/types/interface/api/responses/team.response.d.ts +52 -0
  79. package/dist/types/interface/api/responses/team.response.js +2 -0
  80. package/dist/types/interface/api/responses/user-billing.response.d.ts +45 -0
  81. package/dist/types/interface/api/responses/user-billing.response.js +2 -0
  82. package/dist/types/interface/index.d.ts +17 -3
  83. package/dist/types/interface/index.js +17 -3
  84. package/dist/types/interface/models/application.model.d.ts +1 -1
  85. package/dist/types/interface/models/atlas-group.model.d.ts +2 -2
  86. package/dist/types/interface/models/atlas-page.model.d.ts +2 -2
  87. package/dist/types/interface/models/atlas.model.d.ts +8 -5
  88. package/dist/types/interface/models/billing-account.model.d.ts +40 -0
  89. package/dist/types/interface/models/billing-account.model.js +2 -0
  90. package/dist/types/interface/models/billing-addon-template.model.d.ts +15 -0
  91. package/dist/types/interface/models/billing-addon-template.model.js +2 -0
  92. package/dist/types/interface/models/board-card-checklist.model.d.ts +1 -1
  93. package/dist/types/interface/models/board-card.model.d.ts +6 -6
  94. package/dist/types/interface/models/board-column.model.d.ts +1 -1
  95. package/dist/types/interface/models/board.model.d.ts +7 -4
  96. package/dist/types/interface/models/credit-transaction.model.d.ts +22 -0
  97. package/dist/types/interface/models/credit-transaction.model.js +2 -0
  98. package/dist/types/interface/models/draw.model.d.ts +3 -0
  99. package/dist/types/interface/models/gift-code-activation.model.d.ts +4 -3
  100. package/dist/types/interface/models/gift-code.model.d.ts +1 -1
  101. package/dist/types/interface/models/invoice.model.d.ts +26 -0
  102. package/dist/types/interface/models/invoice.model.js +2 -0
  103. package/dist/types/interface/models/memo.model.d.ts +3 -0
  104. package/dist/types/interface/models/organization-billing.model.d.ts +37 -0
  105. package/dist/types/interface/models/organization-billing.model.js +2 -0
  106. package/dist/types/interface/models/organization-member.model.d.ts +5 -4
  107. package/dist/types/interface/models/organization-project-quota.model.d.ts +15 -0
  108. package/dist/types/interface/models/organization-project-quota.model.js +2 -0
  109. package/dist/types/interface/models/organization-quota-alert.model.d.ts +11 -0
  110. package/dist/types/interface/models/organization-quota-alert.model.js +2 -0
  111. package/dist/types/interface/models/organization-service-quota.model.d.ts +13 -0
  112. package/dist/types/interface/models/organization-service-quota.model.js +2 -0
  113. package/dist/types/interface/models/organization.model.d.ts +13 -0
  114. package/dist/types/interface/models/plan-template.model.d.ts +29 -0
  115. package/dist/types/interface/models/plan-template.model.js +2 -0
  116. package/dist/types/interface/models/project-access.model.d.ts +5 -6
  117. package/dist/types/interface/models/project-api-key-application-access.model.d.ts +13 -0
  118. package/dist/types/interface/models/project-api-key-application-access.model.js +2 -0
  119. package/dist/types/interface/models/project-api-key.model.d.ts +15 -0
  120. package/dist/types/interface/models/project-api-key.model.js +2 -0
  121. package/dist/types/interface/models/project.model.d.ts +8 -12
  122. package/dist/types/interface/models/quota-grant.model.d.ts +20 -0
  123. package/dist/types/interface/models/quota-grant.model.js +2 -0
  124. package/dist/types/interface/models/retrospective.model.d.ts +6 -3
  125. package/dist/types/interface/models/short-link.model.d.ts +4 -1
  126. package/dist/types/interface/models/team-member.model.d.ts +11 -0
  127. package/dist/types/interface/models/team-member.model.js +2 -0
  128. package/dist/types/interface/models/team-project-access.model.d.ts +15 -0
  129. package/dist/types/interface/models/team-project-access.model.js +2 -0
  130. package/dist/types/interface/models/team-project-application-access.model.d.ts +13 -0
  131. package/dist/types/interface/models/team-project-application-access.model.js +2 -0
  132. package/dist/types/interface/models/team.model.d.ts +19 -0
  133. package/dist/types/interface/models/team.model.js +2 -0
  134. package/dist/types/interface/models/token-history.model.d.ts +9 -1
  135. package/dist/types/interface/models/usage-record.model.d.ts +24 -0
  136. package/dist/types/interface/models/usage-record.model.js +2 -0
  137. package/dist/types/interface/models/user-ticket-message.model.d.ts +1 -1
  138. package/dist/types/interface/models/user-ticket.model.d.ts +1 -1
  139. package/dist/types/interface/models/user.model.d.ts +16 -18
  140. package/dist/types/utils/onboarding.utils.d.ts +1 -6
  141. package/dist/types/utils/onboarding.utils.js +9 -5
  142. package/dist/utils/index.d.ts +0 -1
  143. package/dist/utils/index.js +0 -1
  144. package/package.json +2 -1
  145. package/dist/api/user-credit-purchase.admin.api.d.ts +0 -7
  146. package/dist/api/user-credit-purchase.admin.api.js +0 -28
  147. package/dist/api/user-credit-purchase.api.d.ts +0 -3
  148. package/dist/api/user-credit-purchase.api.js +0 -14
  149. package/dist/api/user-transaction.admin.api.d.ts +0 -5
  150. package/dist/api/user-transaction.admin.api.js +0 -20
  151. package/dist/api/user-transaction.api.d.ts +0 -3
  152. package/dist/api/user-transaction.api.js +0 -14
  153. package/dist/expressions/index.d.ts +0 -5
  154. package/dist/expressions/index.js +0 -16
  155. package/dist/expressions/mapper.d.ts +0 -9
  156. package/dist/expressions/mapper.js +0 -90
  157. package/dist/expressions/parser.d.ts +0 -3
  158. package/dist/expressions/parser.js +0 -97
  159. package/dist/expressions/resolver.d.ts +0 -12
  160. package/dist/expressions/resolver.js +0 -88
  161. package/dist/expressions/types.d.ts +0 -36
  162. package/dist/types/enum/integration-type.enum.d.ts +0 -4
  163. package/dist/types/enum/integration-type.enum.js +0 -8
  164. package/dist/types/enum/invoice-status.enum.d.ts +0 -7
  165. package/dist/types/enum/invoice-status.enum.js +0 -11
  166. package/dist/types/enum/organization-role.enum.d.ts +0 -6
  167. package/dist/types/enum/organization-role.enum.js +0 -10
  168. package/dist/types/enum/organization-subscription-status.enum.d.ts +0 -7
  169. package/dist/types/enum/organization-subscription-status.enum.js +0 -11
  170. package/dist/types/enum/plan-billing-period.enum.d.ts +0 -4
  171. package/dist/types/enum/plan-billing-period.enum.js +0 -8
  172. package/dist/types/enum/plan-status.enum.d.ts +0 -4
  173. package/dist/types/enum/plan-status.enum.js +0 -8
  174. package/dist/types/enum/subscription-level.enum.d.ts +0 -72
  175. package/dist/types/enum/subscription-level.enum.js +0 -179
  176. package/dist/types/enum/usage-record-type.enum.d.ts +0 -8
  177. package/dist/types/enum/usage-record-type.enum.js +0 -12
  178. package/dist/types/enum/user-credit-purchase-payment-method.enum.d.ts +0 -3
  179. package/dist/types/enum/user-credit-purchase-payment-method.enum.js +0 -7
  180. package/dist/types/enum/user-credit-purchase-platform.enum.d.ts +0 -8
  181. package/dist/types/enum/user-credit-purchase-platform.enum.js +0 -12
  182. package/dist/types/enum/user-transaction-type.enum.d.ts +0 -14
  183. package/dist/types/enum/user-transaction-type.enum.js +0 -18
  184. package/dist/types/interface/api/requests/user-credit-purchase.admin.request.d.ts +0 -42
  185. package/dist/types/interface/api/requests/user-credit-purchase.request.d.ts +0 -9
  186. package/dist/types/interface/api/requests/user-transaction.admin.request.d.ts +0 -30
  187. package/dist/types/interface/api/requests/user-transaction.request.d.ts +0 -8
  188. package/dist/types/interface/api/responses/user-credit-purchase.admin.response.d.ts +0 -22
  189. package/dist/types/interface/api/responses/user-credit-purchase.response.d.ts +0 -8
  190. package/dist/types/interface/api/responses/user-transaction.admin.response.d.ts +0 -13
  191. package/dist/types/interface/api/responses/user-transaction.response.d.ts +0 -11
  192. package/dist/types/interface/models/subscription.model.d.ts +0 -16
  193. package/dist/types/interface/models/user-credit-purchase.model.d.ts +0 -22
  194. package/dist/types/interface/models/user-transaction.model.d.ts +0 -19
  195. package/dist/utils/organization-permission.utils.d.ts +0 -3
  196. package/dist/utils/organization-permission.utils.js +0 -36
  197. package/dist/utils/subscription.utils.d.ts +0 -6
  198. package/dist/utils/subscription.utils.js +0 -41
  199. package/dist/workflow/expression/expression-functions.utils.d.ts +0 -6
  200. package/dist/workflow/expression/expression-functions.utils.js +0 -61
  201. package/dist/workflow/expression/expression-mapper.d.ts +0 -11
  202. package/dist/workflow/expression/expression-mapper.js +0 -32
  203. package/dist/workflow/expression/expression-mapping.utils.d.ts +0 -4
  204. package/dist/workflow/expression/expression-mapping.utils.js +0 -43
  205. package/dist/workflow/expression/expression-resolver.utils.d.ts +0 -3
  206. package/dist/workflow/expression/expression-resolver.utils.js +0 -54
  207. package/dist/workflow/expression/expression-tokenizer.utils.d.ts +0 -4
  208. package/dist/workflow/expression/expression-tokenizer.utils.js +0 -123
  209. package/dist/workflow/expression/expression.types.d.ts +0 -33
  210. package/dist/workflow/expression/expression.types.js +0 -17
  211. package/dist/workflow/expression/index.d.ts +0 -10
  212. package/dist/workflow/expression/index.js +0 -40
  213. package/dist/workflow/expression/workflow-resolver.d.ts +0 -9
  214. package/dist/workflow/expression/workflow-resolver.js +0 -102
  215. package/dist/workflow/expressions/functions/array.d.ts +0 -2
  216. package/dist/workflow/expressions/functions/array.js +0 -252
  217. package/dist/workflow/expressions/functions/crypto.d.ts +0 -2
  218. package/dist/workflow/expressions/functions/crypto.js +0 -101
  219. package/dist/workflow/expressions/functions/datetime.d.ts +0 -2
  220. package/dist/workflow/expressions/functions/datetime.js +0 -256
  221. package/dist/workflow/expressions/functions/index.d.ts +0 -7
  222. package/dist/workflow/expressions/functions/index.js +0 -46
  223. package/dist/workflow/expressions/functions/math.d.ts +0 -2
  224. package/dist/workflow/expressions/functions/math.js +0 -174
  225. package/dist/workflow/expressions/functions/string.d.ts +0 -2
  226. package/dist/workflow/expressions/functions/string.js +0 -301
  227. package/dist/workflow/expressions/functions/utility.d.ts +0 -2
  228. package/dist/workflow/expressions/functions/utility.js +0 -230
  229. package/dist/workflow/expressions/helpers.d.ts +0 -26
  230. package/dist/workflow/expressions/helpers.js +0 -132
  231. package/dist/workflow/expressions/index.d.ts +0 -15
  232. package/dist/workflow/expressions/index.js +0 -61
  233. package/dist/workflow/expressions/parser.d.ts +0 -8
  234. package/dist/workflow/expressions/parser.js +0 -436
  235. package/dist/workflow/expressions/pipes/array-pipes.d.ts +0 -2
  236. package/dist/workflow/expressions/pipes/array-pipes.js +0 -248
  237. package/dist/workflow/expressions/pipes/index.d.ts +0 -8
  238. package/dist/workflow/expressions/pipes/index.js +0 -40
  239. package/dist/workflow/expressions/pipes/object-pipes.d.ts +0 -2
  240. package/dist/workflow/expressions/pipes/object-pipes.js +0 -243
  241. package/dist/workflow/expressions/pipes/string-pipes.d.ts +0 -9
  242. package/dist/workflow/expressions/pipes/string-pipes.js +0 -178
  243. package/dist/workflow/expressions/resolver.d.ts +0 -8
  244. package/dist/workflow/expressions/resolver.js +0 -263
  245. package/dist/workflow/expressions/types.d.ts +0 -144
  246. package/dist/workflow/expressions/types.js +0 -33
  247. package/dist/workflow/index.d.ts +0 -1
  248. /package/dist/{expressions/types.js → types/interface/api/requests/billing-account.admin.request.js} +0 -0
  249. /package/dist/types/interface/api/requests/{user-credit-purchase.admin.request.js → billing-addon-template.request.js} +0 -0
  250. /package/dist/types/interface/api/requests/{user-credit-purchase.request.js → billing-plan.request.js} +0 -0
  251. /package/dist/types/interface/api/requests/{user-transaction.admin.request.js → organization-billing.request.js} +0 -0
  252. /package/dist/types/interface/api/requests/{user-transaction.request.js → organization-member.request.js} +0 -0
  253. /package/dist/types/interface/api/{responses/user-credit-purchase.admin.response.js → requests/project-api-key.request.js} +0 -0
  254. /package/dist/types/interface/api/{responses/user-credit-purchase.response.js → requests/team.request.js} +0 -0
  255. /package/dist/types/interface/api/{responses/user-transaction.admin.response.js → requests/user-billing.request.js} +0 -0
  256. /package/dist/types/interface/api/responses/{user-transaction.response.js → billing-account.admin.response.js} +0 -0
  257. /package/dist/types/interface/{models/subscription.model.js → api/responses/billing-addon-template.response.js} +0 -0
  258. /package/dist/types/interface/{models/user-credit-purchase.model.js → api/responses/billing-plan.response.js} +0 -0
  259. /package/dist/types/interface/{models/user-transaction.model.js → api/responses/organization-billing.response.js} +0 -0
@@ -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 });
@@ -1,16 +1,17 @@
1
- import { OrganizationPermission, OrganizationRole } from '../../enum';
1
+ import { OrganizationPermission } from '../../enum';
2
2
  import { IOrganization } from './organization.model';
3
3
  import { IUser } from './user.model';
4
+ import { ITeamMember } from './team-member.model';
4
5
  export interface IOrganizationMember {
5
6
  id?: string;
6
7
  organizationId: string;
7
8
  userId: string;
8
- role: OrganizationRole;
9
- customPermissions: OrganizationPermission[] | null;
10
- isConfirmed: boolean;
9
+ permissions: OrganizationPermission[];
10
+ confirmedAt: Date | null;
11
11
  joinedAt: Date;
12
12
  updatedAt?: Date;
13
13
  createdAt?: Date;
14
14
  organization?: IOrganization;
15
15
  user?: IUser;
16
+ teamMembers?: ITeamMember[];
16
17
  }
@@ -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 });
@@ -1,5 +1,8 @@
1
1
  import { IProject } from './project.model';
2
2
  import { IOrganizationIntegration } from './organization-integration.model';
3
+ import { IOrganizationMember } from './organization-member.model';
4
+ import { ITeam } from './team.model';
5
+ import { IBillingAccount } from './billing-account.model';
3
6
  export interface IOrganization {
4
7
  id?: string;
5
8
  name: string;
@@ -7,8 +10,18 @@ export interface IOrganization {
7
10
  description: string | null;
8
11
  pictureId: string | null;
9
12
  pictureThumbnailId: string | null;
13
+ bannerId: string | null;
14
+ bannerThumbnailId: string | null;
15
+ companyName: string | null;
16
+ companySiren: string | null;
17
+ companyCreationDate: string | null;
18
+ companyWebsite: string | null;
19
+ companyRole: string | null;
10
20
  updatedAt?: Date;
11
21
  createdAt?: Date;
12
22
  projects?: IProject[];
13
23
  organizationIntegrations?: IOrganizationIntegration[];
24
+ organizationMembers?: IOrganizationMember[];
25
+ teams?: ITeam[];
26
+ billingAccount?: IBillingAccount;
14
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?: {
@@ -0,0 +1,11 @@
1
+ import { ITeam } from './team.model';
2
+ import { IOrganizationMember } from './organization-member.model';
3
+ export interface ITeamMember {
4
+ id?: string;
5
+ teamId: string;
6
+ organizationMemberId: string;
7
+ updatedAt?: Date;
8
+ createdAt?: Date;
9
+ team?: ITeam;
10
+ organizationMember?: IOrganizationMember;
11
+ }
@@ -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 { ITeam } from './team.model';
3
+ import { IProject } from './project.model';
4
+ import { ITeamProjectApplicationAccess } from './team-project-application-access.model';
5
+ export interface ITeamProjectAccess {
6
+ id?: string;
7
+ teamId: string;
8
+ projectId: string;
9
+ permission: ProjectAccessPermission[];
10
+ updatedAt?: Date;
11
+ createdAt?: Date;
12
+ team?: ITeam;
13
+ project?: IProject;
14
+ teamProjectApplicationAccesses?: ITeamProjectApplicationAccess[];
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { ProjectApplicationAccessPermission } from '../../enum';
2
+ import { ITeamProjectAccess } from './team-project-access.model';
3
+ import { IApplication } from './application.model';
4
+ export interface ITeamProjectApplicationAccess {
5
+ id?: string;
6
+ permission: ProjectApplicationAccessPermission[];
7
+ teamProjectAccessId: string;
8
+ applicationId: string;
9
+ updatedAt?: Date;
10
+ createdAt?: Date;
11
+ teamProjectAccess?: ITeamProjectAccess;
12
+ application?: IApplication;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { OrganizationPermission } from '../../enum';
2
+ import { IOrganization } from './organization.model';
3
+ import { ITeamMember } from './team-member.model';
4
+ import { ITeamProjectAccess } from './team-project-access.model';
5
+ export interface ITeam {
6
+ id?: string;
7
+ organizationId: string;
8
+ name: string;
9
+ description: string | null;
10
+ color: string | null;
11
+ pictureId: string | null;
12
+ pictureThumbnailId: string | null;
13
+ permissions: OrganizationPermission[];
14
+ updatedAt?: Date;
15
+ createdAt?: Date;
16
+ organization?: IOrganization;
17
+ teamMembers?: ITeamMember[];
18
+ teamProjectAccesses?: ITeamProjectAccess[];
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { ProjectAccessPermission, ProjectApplicationAccessPermission, TokenType } from '../../enum';
1
+ import { ProjectAccessPermission, ProjectApplicationAccessPermission, TokenType, OrganizationPermission } from '../../enum';
2
2
  export interface ITokenHistory {
3
3
  id?: string;
4
4
  token: string;
@@ -12,12 +12,14 @@ export type TokenHistoryMetadataUserInvitationInternal = {
12
12
  projectInvitation?: TokenHistoryMetadataProject & TokenHistoryMetadataExtendsUserInvitation;
13
13
  cloudInvitation?: TokenHistoryMetadataCloud & TokenHistoryMetadataExtendsUserInvitation;
14
14
  eventInvitation?: TokenHistoryMetadataEvent & TokenHistoryMetadataExtendsUserInvitation;
15
+ organizationInvitation?: TokenHistoryMetadataOrganization & TokenHistoryMetadataExtendsUserInvitation;
15
16
  publicMailVerification?: TokenHistoryMetadataPublicEmailVerification;
16
17
  };
17
18
  export type TokenHistoryMetadataUserInvitation = {
18
19
  projectInvitation?: TokenHistoryMetadataProject;
19
20
  cloudInvitation?: TokenHistoryMetadataCloud;
20
21
  eventInvitation?: TokenHistoryMetadataEvent;
22
+ organizationInvitation?: TokenHistoryMetadataOrganization;
21
23
  publicMailVerification?: TokenHistoryMetadataPublicEmailVerification;
22
24
  };
23
25
  export type TokenHistoryMetadataProject = {
@@ -29,6 +31,7 @@ export type TokenHistoryMetadataProject = {
29
31
  permission: ProjectApplicationAccessPermission[];
30
32
  applicationId: string;
31
33
  }[];
34
+ teamIds?: string[];
32
35
  };
33
36
  export type TokenHistoryMetadataCloud = {
34
37
  cloudId: string;
@@ -44,6 +47,11 @@ export type TokenHistoryMetadataEvent = {
44
47
  export type TokenHistoryMetadataExtendsUserInvitation = {
45
48
  inviterId: string;
46
49
  };
50
+ export type TokenHistoryMetadataOrganization = {
51
+ organizationId: string;
52
+ permissions: OrganizationPermission[];
53
+ teamIds?: string[];
54
+ };
47
55
  export type TokenHistoryMetadataPublicEmailVerification = {
48
56
  email: string;
49
57
  code: string;
@@ -0,0 +1,24 @@
1
+ import { BillingMetric, BillingService, UsagePoolType } from '../../enum';
2
+ import { IBillingAccount } from './billing-account.model';
3
+ import { IInvoice } from './invoice.model';
4
+ import { IProject } from './project.model';
5
+ export interface IUsageRecord {
6
+ id?: string;
7
+ billingAccountId: string;
8
+ projectId: string | null;
9
+ service: BillingService;
10
+ metric: BillingMetric;
11
+ poolType: UsagePoolType | null;
12
+ poolId: string | null;
13
+ quantity: number;
14
+ periodStart: Date;
15
+ periodEnd: Date;
16
+ overageQuantity: number;
17
+ overageAmountEur: number;
18
+ invoiceId: string | null;
19
+ updatedAt?: Date;
20
+ createdAt?: Date;
21
+ billingAccount?: IBillingAccount;
22
+ project?: IProject | null;
23
+ invoice?: IInvoice | null;
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,5 +10,5 @@ export interface IUserTicketMessage {
10
10
  createdAt?: Date;
11
11
  user?: IUser;
12
12
  userTicket?: IUserTicket;
13
- userTicketMessageAttachment?: IUserTicketMessageAttachment[];
13
+ userTicketMessageAttachments?: IUserTicketMessageAttachment[];
14
14
  }
@@ -11,5 +11,5 @@ export interface IUserTicket {
11
11
  updatedAt?: Date;
12
12
  createdAt?: Date;
13
13
  user?: IUser;
14
- userTicketMessage?: IUserTicketMessage[];
14
+ userTicketMessages?: IUserTicketMessage[];
15
15
  }
@@ -1,17 +1,18 @@
1
- import { IAtlas, IBoard, IGiftCodeActivation, IMemo, IOAuthAccount, IProject, IRetrospective, IShortLink, IUserTransaction } from '..';
2
- import { AbyssService, MeasurementSystem, OnboardingSteps, UserCreditPurchaseCurrency, UserLanguage, UserType } from '../../enum';
1
+ import { IAtlas, IBoard, IGiftCodeActivation, IMemo, IOAuthAccount, IProject, IRetrospective, IShortLink } from '..';
2
+ import { MeasurementSystem, OnboardingSteps, UserLanguage, UserType } from '../../enum';
3
3
  import { OnboardingData } from '../../utils';
4
4
  import { IBoardCardComment } from './board-card-comment.model';
5
5
  import { IDraw } from './draw.model';
6
- import { ISubscription } from './subscription.model';
6
+ import { IBillingAccount } from './billing-account.model';
7
7
  import { IUserNotification } from './user-notification.model';
8
8
  export interface IUserSetting {
9
9
  language?: UserLanguage;
10
- currency?: UserCreditPurchaseCurrency | null;
10
+ currency?: string | null;
11
11
  onboardingStatus?: UserOnboardingStatus | null;
12
12
  userType?: UserType;
13
13
  enableSoundNotification?: boolean;
14
14
  annualReportEmailEnabled?: boolean;
15
+ newsletterDismissedAt?: Date | null;
15
16
  abyssConsoleFirstVisitDate?: Date | null;
16
17
  units?: {
17
18
  length?: MeasurementSystem;
@@ -28,8 +29,6 @@ export interface IUser {
28
29
  name: string | null;
29
30
  familyName: string | null;
30
31
  sponsorId: string | null;
31
- enabledService: AbyssService[];
32
- balance: number;
33
32
  emailVerifiedAt: Date | null;
34
33
  settings: IUserSetting;
35
34
  profilePictureId: string | null;
@@ -40,19 +39,18 @@ export interface IUser {
40
39
  updatedAt?: Date;
41
40
  createdAt?: Date;
42
41
  sponsor?: IUser | null;
43
- oauthAccount?: IOAuthAccount[];
44
- userNotification?: IUserNotification[];
45
- userTransaction?: IUserTransaction[];
42
+ oauthAccounts?: IOAuthAccount[];
43
+ userNotifications?: IUserNotification[];
46
44
  giftCodeActivation?: IGiftCodeActivation[];
47
- subscription?: ISubscription | null;
48
- project?: IProject[];
49
- boardCardComment?: IBoardCardComment[];
50
- board?: IBoard[];
51
- draw?: IDraw[];
52
- retrospective?: IRetrospective[];
53
- atlas?: IAtlas[];
54
- memo?: IMemo[];
55
- shortLink?: IShortLink[];
45
+ billingAccount?: IBillingAccount;
46
+ projects?: IProject[];
47
+ boardCardComments?: IBoardCardComment[];
48
+ boards?: IBoard[];
49
+ draws?: IDraw[];
50
+ retrospectives?: IRetrospective[];
51
+ atlases?: IAtlas[];
52
+ memos?: IMemo[];
53
+ shortLinks?: IShortLink[];
56
54
  }
57
55
  export type UserOnboardingStatus = {
58
56
  completedAt?: Date | null;
@@ -9,12 +9,6 @@ export type OnboardingData = {
9
9
  name: string;
10
10
  familyName: string;
11
11
  email: string;
12
- signupAsCompany: boolean;
13
- companyName?: string;
14
- companySiren?: string;
15
- companyCreationDate?: string;
16
- companyRole?: string;
17
- companyWebsite?: string;
18
12
  };
19
13
  userType: {
20
14
  type: UserType | null;
@@ -25,6 +19,7 @@ export type OnboardingData = {
25
19
  memories: boolean;
26
20
  form: boolean;
27
21
  spotlight: boolean;
22
+ training: boolean;
28
23
  };
29
24
  };
30
25
  export declare const getOnboardingProgression: (currentStep: OnboardingSteps, onboardingData: OnboardingData) => {
@@ -12,14 +12,15 @@ exports.COMMONS_STEPS = [
12
12
  enum_1.OnboardingSteps.USER_TYPE,
13
13
  ];
14
14
  const getOnboardingProgression = (currentStep, onboardingData) => {
15
- var _a, _b, _c, _d, _e, _f, _g, _h;
15
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
16
16
  const allSteps = [
17
17
  ...exports.COMMONS_STEPS,
18
- ...(((_a = onboardingData.userType) === null || _a === void 0 ? void 0 : _a.type) === enum_1.UserType.DEVELOPER
18
+ ...(((_a = onboardingData.userType) === null || _a === void 0 ? void 0 : _a.type) === enum_1.UserType.ORGANIZATION
19
19
  ? [
20
- enum_1.OnboardingSteps.DEVELOPER_CREATE_PROJECT,
21
- enum_1.OnboardingSteps.DEVELOPER_DISCOVER_MONITOR,
22
- enum_1.OnboardingSteps.DEVELOPER_DISCOVER_STORAGE,
20
+ enum_1.OnboardingSteps.ORG_CREATE,
21
+ enum_1.OnboardingSteps.ORG_INVITE_MEMBERS,
22
+ enum_1.OnboardingSteps.ORG_DISCOVER_TOOLS,
23
+ enum_1.OnboardingSteps.ORG_DISCOVER_PROJECT_TOOLS,
23
24
  ]
24
25
  : []),
25
26
  ...(((_b = onboardingData.userType) === null || _b === void 0 ? void 0 : _b.type) === enum_1.UserType.USER
@@ -34,6 +35,9 @@ const getOnboardingProgression = (currentStep, onboardingData) => {
34
35
  ...(((_h = onboardingData.userFeatures) === null || _h === void 0 ? void 0 : _h.spotlight)
35
36
  ? [enum_1.OnboardingSteps.USER_CREATE_SPOTLIGHT]
36
37
  : []),
38
+ ...(((_j = onboardingData.userFeatures) === null || _j === void 0 ? void 0 : _j.training)
39
+ ? [enum_1.OnboardingSteps.USER_DISCOVER_TRAINING]
40
+ : []),
37
41
  ]
38
42
  : []),
39
43
  enum_1.OnboardingSteps.END,
@@ -5,7 +5,6 @@ export * from './byte.utils';
5
5
  export * from './import.utils';
6
6
  export * from './notification.utils';
7
7
  export * from './sleep.utils';
8
- export * from './subscription.utils';
9
8
  export * from './array.utils';
10
9
  export * from './abyss.utils';
11
10
  export * from './color.utils';