@abyss-project/main 1.0.0

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 (283) hide show
  1. package/README.md +2 -0
  2. package/dist/api/application.admin.api.d.ts +8 -0
  3. package/dist/api/application.admin.api.js +35 -0
  4. package/dist/api/application.api.d.ts +7 -0
  5. package/dist/api/application.api.js +31 -0
  6. package/dist/api/auth.api.d.ts +10 -0
  7. package/dist/api/auth.api.js +57 -0
  8. package/dist/api/billing.api.d.ts +4 -0
  9. package/dist/api/billing.api.js +16 -0
  10. package/dist/api/gift-code.admin.api.d.ts +8 -0
  11. package/dist/api/gift-code.admin.api.js +34 -0
  12. package/dist/api/gift-code.api.d.ts +4 -0
  13. package/dist/api/gift-code.api.js +20 -0
  14. package/dist/api/index.d.ts +23 -0
  15. package/dist/api/index.js +39 -0
  16. package/dist/api/metrics.admin.api.d.ts +4 -0
  17. package/dist/api/metrics.admin.api.js +16 -0
  18. package/dist/api/monitor.api.d.ts +2 -0
  19. package/dist/api/monitor.api.js +8 -0
  20. package/dist/api/newsletter.admin.api.d.ts +6 -0
  21. package/dist/api/newsletter.admin.api.js +25 -0
  22. package/dist/api/project-access.admin.api.d.ts +12 -0
  23. package/dist/api/project-access.admin.api.js +48 -0
  24. package/dist/api/project-access.api.d.ts +14 -0
  25. package/dist/api/project-access.api.js +59 -0
  26. package/dist/api/project.admin.api.d.ts +6 -0
  27. package/dist/api/project.admin.api.js +28 -0
  28. package/dist/api/project.api.d.ts +14 -0
  29. package/dist/api/project.api.js +60 -0
  30. package/dist/api/user-credit-purchase.admin.api.d.ts +7 -0
  31. package/dist/api/user-credit-purchase.admin.api.js +28 -0
  32. package/dist/api/user-credit-purchase.api.d.ts +3 -0
  33. package/dist/api/user-credit-purchase.api.js +14 -0
  34. package/dist/api/user-notification.admin.api.d.ts +5 -0
  35. package/dist/api/user-notification.admin.api.js +20 -0
  36. package/dist/api/user-notification.api.d.ts +4 -0
  37. package/dist/api/user-notification.api.js +18 -0
  38. package/dist/api/user-ticket.admin.api.d.ts +11 -0
  39. package/dist/api/user-ticket.admin.api.js +49 -0
  40. package/dist/api/user-ticket.api.d.ts +10 -0
  41. package/dist/api/user-ticket.api.js +45 -0
  42. package/dist/api/user-transaction.admin.api.d.ts +5 -0
  43. package/dist/api/user-transaction.admin.api.js +20 -0
  44. package/dist/api/user-transaction.api.d.ts +3 -0
  45. package/dist/api/user-transaction.api.js +14 -0
  46. package/dist/api/user.admin.api.d.ts +10 -0
  47. package/dist/api/user.admin.api.js +41 -0
  48. package/dist/api/user.api.d.ts +19 -0
  49. package/dist/api/user.api.js +84 -0
  50. package/dist/front/index.d.ts +1 -0
  51. package/dist/front/index.js +17 -0
  52. package/dist/front/redirection.d.ts +2 -0
  53. package/dist/front/redirection.js +5 -0
  54. package/dist/index.d.ts +21 -0
  55. package/dist/index.js +89 -0
  56. package/dist/translate/en.translate.d.ts +176 -0
  57. package/dist/translate/en.translate.js +180 -0
  58. package/dist/translate/fr.translate.d.ts +176 -0
  59. package/dist/translate/fr.translate.js +180 -0
  60. package/dist/translate/index.d.ts +2 -0
  61. package/dist/translate/index.js +18 -0
  62. package/dist/types/enum/abyss-service.enum.d.ts +10 -0
  63. package/dist/types/enum/abyss-service.enum.js +14 -0
  64. package/dist/types/enum/api-error.enum.d.ts +38 -0
  65. package/dist/types/enum/api-error.enum.js +43 -0
  66. package/dist/types/enum/billing-product.enum.d.ts +8 -0
  67. package/dist/types/enum/billing-product.enum.js +12 -0
  68. package/dist/types/enum/gift-code-type.enum.d.ts +3 -0
  69. package/dist/types/enum/gift-code-type.enum.js +7 -0
  70. package/dist/types/enum/index.d.ts +18 -0
  71. package/dist/types/enum/index.js +34 -0
  72. package/dist/types/enum/newsletter-type.enum.d.ts +3 -0
  73. package/dist/types/enum/newsletter-type.enum.js +7 -0
  74. package/dist/types/enum/oauth-account-type.enum.d.ts +3 -0
  75. package/dist/types/enum/oauth-account-type.enum.js +7 -0
  76. package/dist/types/enum/project-access-permission.enum.d.ts +13 -0
  77. package/dist/types/enum/project-access-permission.enum.js +17 -0
  78. package/dist/types/enum/project-application-access-permission.enum.d.ts +38 -0
  79. package/dist/types/enum/project-application-access-permission.enum.js +42 -0
  80. package/dist/types/enum/subscription-level.enum.d.ts +54 -0
  81. package/dist/types/enum/subscription-level.enum.js +125 -0
  82. package/dist/types/enum/token-type.enum.d.ts +5 -0
  83. package/dist/types/enum/token-type.enum.js +9 -0
  84. package/dist/types/enum/user-credit-purchase-currency.enum.d.ts +5 -0
  85. package/dist/types/enum/user-credit-purchase-currency.enum.js +9 -0
  86. package/dist/types/enum/user-credit-purchase-payment-method.enum.d.ts +3 -0
  87. package/dist/types/enum/user-credit-purchase-payment-method.enum.js +7 -0
  88. package/dist/types/enum/user-credit-purchase-platform.enum.d.ts +8 -0
  89. package/dist/types/enum/user-credit-purchase-platform.enum.js +12 -0
  90. package/dist/types/enum/user-language.enum.d.ts +4 -0
  91. package/dist/types/enum/user-language.enum.js +8 -0
  92. package/dist/types/enum/user-notification-content-type.enum.d.ts +279 -0
  93. package/dist/types/enum/user-notification-content-type.enum.js +50 -0
  94. package/dist/types/enum/user-notification-type.enum.d.ts +6 -0
  95. package/dist/types/enum/user-notification-type.enum.js +10 -0
  96. package/dist/types/enum/user-ticket-category.enum.d.ts +9 -0
  97. package/dist/types/enum/user-ticket-category.enum.js +13 -0
  98. package/dist/types/enum/user-transaction-type.enum.d.ts +14 -0
  99. package/dist/types/enum/user-transaction-type.enum.js +18 -0
  100. package/dist/types/index.d.ts +9 -0
  101. package/dist/types/index.js +21 -0
  102. package/dist/types/interface/api/index.d.ts +48 -0
  103. package/dist/types/interface/api/index.js +64 -0
  104. package/dist/types/interface/api/requests/application.admin.request.d.ts +36 -0
  105. package/dist/types/interface/api/requests/application.admin.request.js +2 -0
  106. package/dist/types/interface/api/requests/application.request.d.ts +35 -0
  107. package/dist/types/interface/api/requests/application.request.js +2 -0
  108. package/dist/types/interface/api/requests/auth.request.d.ts +40 -0
  109. package/dist/types/interface/api/requests/auth.request.js +2 -0
  110. package/dist/types/interface/api/requests/billing.request.d.ts +9 -0
  111. package/dist/types/interface/api/requests/billing.request.js +2 -0
  112. package/dist/types/interface/api/requests/gift-code.admin.request.d.ts +53 -0
  113. package/dist/types/interface/api/requests/gift-code.admin.request.js +2 -0
  114. package/dist/types/interface/api/requests/gift-code.request.d.ts +12 -0
  115. package/dist/types/interface/api/requests/gift-code.request.js +2 -0
  116. package/dist/types/interface/api/requests/newsletter.admin.request.d.ts +21 -0
  117. package/dist/types/interface/api/requests/newsletter.admin.request.js +2 -0
  118. package/dist/types/interface/api/requests/project-access.admin.request.d.ts +72 -0
  119. package/dist/types/interface/api/requests/project-access.admin.request.js +2 -0
  120. package/dist/types/interface/api/requests/project-access.request.d.ts +78 -0
  121. package/dist/types/interface/api/requests/project-access.request.js +2 -0
  122. package/dist/types/interface/api/requests/project.admin.request.d.ts +26 -0
  123. package/dist/types/interface/api/requests/project.admin.request.js +2 -0
  124. package/dist/types/interface/api/requests/project.request.d.ts +57 -0
  125. package/dist/types/interface/api/requests/project.request.js +2 -0
  126. package/dist/types/interface/api/requests/user-credit-purchase.admin.request.d.ts +43 -0
  127. package/dist/types/interface/api/requests/user-credit-purchase.admin.request.js +2 -0
  128. package/dist/types/interface/api/requests/user-credit-purchase.request.d.ts +10 -0
  129. package/dist/types/interface/api/requests/user-credit-purchase.request.js +2 -0
  130. package/dist/types/interface/api/requests/user-notification.admin.request.d.ts +27 -0
  131. package/dist/types/interface/api/requests/user-notification.admin.request.js +2 -0
  132. package/dist/types/interface/api/requests/user-notification.request.d.ts +14 -0
  133. package/dist/types/interface/api/requests/user-notification.request.js +2 -0
  134. package/dist/types/interface/api/requests/user-ticket.admin.request.d.ts +61 -0
  135. package/dist/types/interface/api/requests/user-ticket.admin.request.js +2 -0
  136. package/dist/types/interface/api/requests/user-ticket.request.d.ts +50 -0
  137. package/dist/types/interface/api/requests/user-ticket.request.js +2 -0
  138. package/dist/types/interface/api/requests/user-transaction.admin.request.d.ts +31 -0
  139. package/dist/types/interface/api/requests/user-transaction.admin.request.js +2 -0
  140. package/dist/types/interface/api/requests/user-transaction.request.d.ts +8 -0
  141. package/dist/types/interface/api/requests/user-transaction.request.js +2 -0
  142. package/dist/types/interface/api/requests/user.admin.request.d.ts +50 -0
  143. package/dist/types/interface/api/requests/user.admin.request.js +2 -0
  144. package/dist/types/interface/api/requests/user.request.d.ts +85 -0
  145. package/dist/types/interface/api/requests/user.request.js +2 -0
  146. package/dist/types/interface/api/responses/application.admin.response.d.ts +28 -0
  147. package/dist/types/interface/api/responses/application.admin.response.js +2 -0
  148. package/dist/types/interface/api/responses/application.response.d.ts +25 -0
  149. package/dist/types/interface/api/responses/application.response.js +2 -0
  150. package/dist/types/interface/api/responses/auth.response.d.ts +42 -0
  151. package/dist/types/interface/api/responses/auth.response.js +2 -0
  152. package/dist/types/interface/api/responses/billing.response.d.ts +18 -0
  153. package/dist/types/interface/api/responses/billing.response.js +2 -0
  154. package/dist/types/interface/api/responses/gift-code.admin.response.d.ts +25 -0
  155. package/dist/types/interface/api/responses/gift-code.admin.response.js +2 -0
  156. package/dist/types/interface/api/responses/gift-code.response.d.ts +12 -0
  157. package/dist/types/interface/api/responses/gift-code.response.js +2 -0
  158. package/dist/types/interface/api/responses/metrics.admin.response.d.ts +40 -0
  159. package/dist/types/interface/api/responses/metrics.admin.response.js +2 -0
  160. package/dist/types/interface/api/responses/monitor.response.d.ts +7 -0
  161. package/dist/types/interface/api/responses/monitor.response.js +2 -0
  162. package/dist/types/interface/api/responses/newsletter.admin.response.d.ts +17 -0
  163. package/dist/types/interface/api/responses/newsletter.admin.response.js +2 -0
  164. package/dist/types/interface/api/responses/project-access.admin.response.d.ts +46 -0
  165. package/dist/types/interface/api/responses/project-access.admin.response.js +2 -0
  166. package/dist/types/interface/api/responses/project-access.response.d.ts +49 -0
  167. package/dist/types/interface/api/responses/project-access.response.js +2 -0
  168. package/dist/types/interface/api/responses/project.admin.response.d.ts +49 -0
  169. package/dist/types/interface/api/responses/project.admin.response.js +2 -0
  170. package/dist/types/interface/api/responses/project.response.d.ts +94 -0
  171. package/dist/types/interface/api/responses/project.response.js +2 -0
  172. package/dist/types/interface/api/responses/user-credit-purchase.admin.response.d.ts +22 -0
  173. package/dist/types/interface/api/responses/user-credit-purchase.admin.response.js +2 -0
  174. package/dist/types/interface/api/responses/user-credit-purchase.response.d.ts +8 -0
  175. package/dist/types/interface/api/responses/user-credit-purchase.response.js +2 -0
  176. package/dist/types/interface/api/responses/user-notification.admin.response.d.ts +19 -0
  177. package/dist/types/interface/api/responses/user-notification.admin.response.js +2 -0
  178. package/dist/types/interface/api/responses/user-notification.response.d.ts +13 -0
  179. package/dist/types/interface/api/responses/user-notification.response.js +2 -0
  180. package/dist/types/interface/api/responses/user-ticket.admin.response.d.ts +38 -0
  181. package/dist/types/interface/api/responses/user-ticket.admin.response.js +2 -0
  182. package/dist/types/interface/api/responses/user-ticket.response.d.ts +34 -0
  183. package/dist/types/interface/api/responses/user-ticket.response.js +2 -0
  184. package/dist/types/interface/api/responses/user-transaction.admin.response.d.ts +13 -0
  185. package/dist/types/interface/api/responses/user-transaction.admin.response.js +2 -0
  186. package/dist/types/interface/api/responses/user-transaction.response.d.ts +11 -0
  187. package/dist/types/interface/api/responses/user-transaction.response.js +2 -0
  188. package/dist/types/interface/api/responses/user.admin.response.d.ts +33 -0
  189. package/dist/types/interface/api/responses/user.admin.response.js +2 -0
  190. package/dist/types/interface/api/responses/user.response.d.ts +90 -0
  191. package/dist/types/interface/api/responses/user.response.js +2 -0
  192. package/dist/types/interface/api/type-message/api-error.d.ts +8 -0
  193. package/dist/types/interface/api/type-message/api-error.js +2 -0
  194. package/dist/types/interface/api/type-message/base-order.d.ts +4 -0
  195. package/dist/types/interface/api/type-message/base-order.js +2 -0
  196. package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -0
  197. package/dist/types/interface/api/type-message/base-paginate.js +2 -0
  198. package/dist/types/interface/api/type-message/response.d.ts +5 -0
  199. package/dist/types/interface/api/type-message/response.js +2 -0
  200. package/dist/types/interface/index.d.ts +21 -0
  201. package/dist/types/interface/index.js +37 -0
  202. package/dist/types/interface/models/application.model.d.ts +14 -0
  203. package/dist/types/interface/models/application.model.js +2 -0
  204. package/dist/types/interface/models/gift-code-activation.model.d.ts +13 -0
  205. package/dist/types/interface/models/gift-code-activation.model.js +2 -0
  206. package/dist/types/interface/models/gift-code.model.d.ts +18 -0
  207. package/dist/types/interface/models/gift-code.model.js +2 -0
  208. package/dist/types/interface/models/newsletter-history.model.d.ts +8 -0
  209. package/dist/types/interface/models/newsletter-history.model.js +2 -0
  210. package/dist/types/interface/models/newsletter-member.model.d.ts +7 -0
  211. package/dist/types/interface/models/newsletter-member.model.js +2 -0
  212. package/dist/types/interface/models/oauth-account.model.d.ts +17 -0
  213. package/dist/types/interface/models/oauth-account.model.js +2 -0
  214. package/dist/types/interface/models/project-access.model.d.ts +19 -0
  215. package/dist/types/interface/models/project-access.model.js +2 -0
  216. package/dist/types/interface/models/project-application-access.model.d.ts +13 -0
  217. package/dist/types/interface/models/project-application-access.model.js +2 -0
  218. package/dist/types/interface/models/project-authentication-session.model.d.ts +10 -0
  219. package/dist/types/interface/models/project-authentication-session.model.js +2 -0
  220. package/dist/types/interface/models/project-authentication.model.d.ts +10 -0
  221. package/dist/types/interface/models/project-authentication.model.js +2 -0
  222. package/dist/types/interface/models/project.model.d.ts +20 -0
  223. package/dist/types/interface/models/project.model.js +2 -0
  224. package/dist/types/interface/models/subscription.model.d.ts +16 -0
  225. package/dist/types/interface/models/subscription.model.js +2 -0
  226. package/dist/types/interface/models/token-history.model.d.ts +44 -0
  227. package/dist/types/interface/models/token-history.model.js +2 -0
  228. package/dist/types/interface/models/user-credit-purchase.model.d.ts +22 -0
  229. package/dist/types/interface/models/user-credit-purchase.model.js +2 -0
  230. package/dist/types/interface/models/user-notification.model.d.ts +14 -0
  231. package/dist/types/interface/models/user-notification.model.js +2 -0
  232. package/dist/types/interface/models/user-ticket-message-attachment.model.d.ts +14 -0
  233. package/dist/types/interface/models/user-ticket-message-attachment.model.js +2 -0
  234. package/dist/types/interface/models/user-ticket-message.model.d.ts +14 -0
  235. package/dist/types/interface/models/user-ticket-message.model.js +2 -0
  236. package/dist/types/interface/models/user-ticket.model.d.ts +15 -0
  237. package/dist/types/interface/models/user-ticket.model.js +2 -0
  238. package/dist/types/interface/models/user-transaction.model.d.ts +19 -0
  239. package/dist/types/interface/models/user-transaction.model.js +2 -0
  240. package/dist/types/interface/models/user.model.d.ts +34 -0
  241. package/dist/types/interface/models/user.model.js +2 -0
  242. package/dist/types/models/index.d.ts +1 -0
  243. package/dist/types/models/index.js +17 -0
  244. package/dist/types/models/transfer.model.d.ts +36 -0
  245. package/dist/types/models/transfer.model.js +73 -0
  246. package/dist/types/session.d.ts +26 -0
  247. package/dist/types/session.js +2 -0
  248. package/dist/types/utils/billing.util.d.ts +2 -0
  249. package/dist/types/utils/billing.util.js +33 -0
  250. package/dist/types/utils/convert-query.util.d.ts +2 -0
  251. package/dist/types/utils/convert-query.util.js +2 -0
  252. package/dist/types/utils/index.d.ts +6 -0
  253. package/dist/types/utils/index.js +21 -0
  254. package/dist/types/utils/notifications.type-util.d.ts +8 -0
  255. package/dist/types/utils/notifications.type-util.js +2 -0
  256. package/dist/types/utils/overwrite.util.d.ts +9 -0
  257. package/dist/types/utils/overwrite.util.js +2 -0
  258. package/dist/types/utils/require-one.util.d.ts +6 -0
  259. package/dist/types/utils/require-one.util.js +2 -0
  260. package/dist/utils/array.utils.d.ts +1 -0
  261. package/dist/utils/array.utils.js +7 -0
  262. package/dist/utils/byte.utils.d.ts +2 -0
  263. package/dist/utils/byte.utils.js +71 -0
  264. package/dist/utils/duration.utils.d.ts +1 -0
  265. package/dist/utils/duration.utils.js +10 -0
  266. package/dist/utils/enum-to-array.utils.d.ts +2 -0
  267. package/dist/utils/enum-to-array.utils.js +14 -0
  268. package/dist/utils/error.utils.d.ts +15 -0
  269. package/dist/utils/error.utils.js +24 -0
  270. package/dist/utils/import.utils.d.ts +1 -0
  271. package/dist/utils/import.utils.js +7 -0
  272. package/dist/utils/index.d.ts +9 -0
  273. package/dist/utils/index.js +25 -0
  274. package/dist/utils/is-valid-object.utils.d.ts +1 -0
  275. package/dist/utils/is-valid-object.utils.js +12 -0
  276. package/dist/utils/notification.utils.d.ts +3 -0
  277. package/dist/utils/notification.utils.js +11 -0
  278. package/dist/utils/sleep.utils.d.ts +1 -0
  279. package/dist/utils/sleep.utils.js +9 -0
  280. package/dist/utils/subscription.utils.d.ts +6 -0
  281. package/dist/utils/subscription.utils.js +41 -0
  282. package/package.json +57 -0
  283. package/tsconfig.json +105 -0
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PROJECT_SUBSCRIPTION_CONFIG = exports.USER_SUBSCRIPTION_CONFIG = exports.ProjectSubscriptionPrice = exports.UserSubscriptionPrice = exports.SubscriptionLevel = void 0;
4
+ const abyss_service_enum_1 = require("./abyss-service.enum");
5
+ var SubscriptionLevel;
6
+ (function (SubscriptionLevel) {
7
+ SubscriptionLevel["BASE"] = "BASE";
8
+ SubscriptionLevel["ADVANCED"] = "ADVANCED";
9
+ SubscriptionLevel["PREMIUM"] = "PREMIUM";
10
+ })(SubscriptionLevel = exports.SubscriptionLevel || (exports.SubscriptionLevel = {}));
11
+ var UserSubscriptionPrice;
12
+ (function (UserSubscriptionPrice) {
13
+ UserSubscriptionPrice[UserSubscriptionPrice["BASE"] = 0] = "BASE";
14
+ UserSubscriptionPrice[UserSubscriptionPrice["ADVANCED"] = 230] = "ADVANCED";
15
+ UserSubscriptionPrice[UserSubscriptionPrice["PREMIUM"] = 620] = "PREMIUM";
16
+ })(UserSubscriptionPrice = exports.UserSubscriptionPrice || (exports.UserSubscriptionPrice = {}));
17
+ var ProjectSubscriptionPrice;
18
+ (function (ProjectSubscriptionPrice) {
19
+ ProjectSubscriptionPrice[ProjectSubscriptionPrice["BASE"] = 0] = "BASE";
20
+ ProjectSubscriptionPrice[ProjectSubscriptionPrice["ADVANCED"] = 430] = "ADVANCED";
21
+ ProjectSubscriptionPrice[ProjectSubscriptionPrice["PREMIUM"] = 880] = "PREMIUM";
22
+ })(ProjectSubscriptionPrice = exports.ProjectSubscriptionPrice || (exports.ProjectSubscriptionPrice = {}));
23
+ exports.USER_SUBSCRIPTION_CONFIG = {
24
+ [SubscriptionLevel.BASE]: {
25
+ ABYSS: {
26
+ maxNumberOfProject: 2,
27
+ },
28
+ ABYSS_CLOUD: {
29
+ maxNumberOfCloud: 1,
30
+ maxStorageSizeGo: 5,
31
+ maxCloudShare: 1,
32
+ },
33
+ ABYSS_CRYPT: {
34
+ maxFileSizeMo: 20,
35
+ },
36
+ ABYSS_MEMORIES: {
37
+ maxMemberPerEvent: 8,
38
+ },
39
+ ABYSS_BANKING: {},
40
+ },
41
+ [SubscriptionLevel.ADVANCED]: {
42
+ ABYSS: {
43
+ maxNumberOfProject: 10,
44
+ },
45
+ ABYSS_CLOUD: {
46
+ maxNumberOfCloud: 3,
47
+ maxStorageSizeGo: 10,
48
+ maxCloudShare: 5,
49
+ },
50
+ ABYSS_CRYPT: {
51
+ maxFileSizeMo: 100,
52
+ },
53
+ ABYSS_MEMORIES: {
54
+ maxMemberPerEvent: Infinity,
55
+ },
56
+ ABYSS_BANKING: {},
57
+ },
58
+ [SubscriptionLevel.PREMIUM]: {
59
+ ABYSS: {
60
+ maxNumberOfProject: Infinity,
61
+ },
62
+ ABYSS_CLOUD: {
63
+ maxNumberOfCloud: 5,
64
+ maxStorageSizeGo: 20,
65
+ maxCloudShare: Infinity,
66
+ },
67
+ ABYSS_CRYPT: {
68
+ maxFileSizeMo: 100,
69
+ },
70
+ ABYSS_MEMORIES: {
71
+ maxMemberPerEvent: Infinity,
72
+ },
73
+ ABYSS_BANKING: {},
74
+ },
75
+ };
76
+ exports.PROJECT_SUBSCRIPTION_CONFIG = {
77
+ [SubscriptionLevel.BASE]: {
78
+ [abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
79
+ maxFileSizeMo: 25,
80
+ maxStorageSizeGo: 5,
81
+ maxThumbnailPerFile: 1,
82
+ maxPreSignUrlPerHour: 50,
83
+ freeFilePerDay: 3000,
84
+ creditPerFilePerDay: 0.003,
85
+ },
86
+ [abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
87
+ maxCronTask: 0,
88
+ logHistoryDays: 3,
89
+ statsHistoryDays: 3,
90
+ maxStoreEntry: 10,
91
+ },
92
+ },
93
+ [SubscriptionLevel.ADVANCED]: {
94
+ [abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
95
+ maxFileSizeMo: 50,
96
+ maxStorageSizeGo: 10,
97
+ maxThumbnailPerFile: Infinity,
98
+ maxPreSignUrlPerHour: Infinity,
99
+ freeFilePerDay: 6000,
100
+ creditPerFilePerDay: 0.002,
101
+ },
102
+ [abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
103
+ maxCronTask: 5,
104
+ logHistoryDays: 7,
105
+ statsHistoryDays: 7,
106
+ maxStoreEntry: 100,
107
+ },
108
+ },
109
+ [SubscriptionLevel.PREMIUM]: {
110
+ [abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
111
+ maxFileSizeMo: 100,
112
+ maxStorageSizeGo: 20,
113
+ maxThumbnailPerFile: Infinity,
114
+ maxPreSignUrlPerHour: Infinity,
115
+ freeFilePerDay: 20000,
116
+ creditPerFilePerDay: 0.001,
117
+ },
118
+ [abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
119
+ maxCronTask: 20,
120
+ logHistoryDays: Infinity,
121
+ statsHistoryDays: Infinity,
122
+ maxStoreEntry: 500,
123
+ },
124
+ },
125
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum TokenType {
2
+ EMAIL_VERIFICATION = "EMAIL_VERIFICATION",
3
+ PASSWORD_RESET = "PASSWORD_RESET",
4
+ USER_INVITATION = "USER_INVITATION"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TokenType = void 0;
4
+ var TokenType;
5
+ (function (TokenType) {
6
+ TokenType["EMAIL_VERIFICATION"] = "EMAIL_VERIFICATION";
7
+ TokenType["PASSWORD_RESET"] = "PASSWORD_RESET";
8
+ TokenType["USER_INVITATION"] = "USER_INVITATION";
9
+ })(TokenType = exports.TokenType || (exports.TokenType = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum UserCreditPurchaseCurrency {
2
+ EUR = "EUR",
3
+ UNKNOWN = "UNKNOWN",
4
+ OTHER = "OTHER"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserCreditPurchaseCurrency = void 0;
4
+ var UserCreditPurchaseCurrency;
5
+ (function (UserCreditPurchaseCurrency) {
6
+ UserCreditPurchaseCurrency["EUR"] = "EUR";
7
+ UserCreditPurchaseCurrency["UNKNOWN"] = "UNKNOWN";
8
+ UserCreditPurchaseCurrency["OTHER"] = "OTHER";
9
+ })(UserCreditPurchaseCurrency = exports.UserCreditPurchaseCurrency || (exports.UserCreditPurchaseCurrency = {}));
@@ -0,0 +1,3 @@
1
+ export declare enum UserCreditPurchasePaymentMethod {
2
+ PAYMENT_LINK = "PAYMENT_LINK"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserCreditPurchasePaymentMethod = void 0;
4
+ var UserCreditPurchasePaymentMethod;
5
+ (function (UserCreditPurchasePaymentMethod) {
6
+ UserCreditPurchasePaymentMethod["PAYMENT_LINK"] = "PAYMENT_LINK";
7
+ })(UserCreditPurchasePaymentMethod = exports.UserCreditPurchasePaymentMethod || (exports.UserCreditPurchasePaymentMethod = {}));
@@ -0,0 +1,8 @@
1
+ export declare enum UserCreditPurchasePlatform {
2
+ PAYPAL = "PAYPAL",
3
+ LYDIA = "LYDIA",
4
+ SKRILL = "SKRILL",
5
+ CASH = "CASH",
6
+ STRIPE = "STRIPE",
7
+ OTHER = "OTHER"
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserCreditPurchasePlatform = void 0;
4
+ var UserCreditPurchasePlatform;
5
+ (function (UserCreditPurchasePlatform) {
6
+ UserCreditPurchasePlatform["PAYPAL"] = "PAYPAL";
7
+ UserCreditPurchasePlatform["LYDIA"] = "LYDIA";
8
+ UserCreditPurchasePlatform["SKRILL"] = "SKRILL";
9
+ UserCreditPurchasePlatform["CASH"] = "CASH";
10
+ UserCreditPurchasePlatform["STRIPE"] = "STRIPE";
11
+ UserCreditPurchasePlatform["OTHER"] = "OTHER";
12
+ })(UserCreditPurchasePlatform = exports.UserCreditPurchasePlatform || (exports.UserCreditPurchasePlatform = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum UserLanguage {
2
+ FRENCH = "fr",
3
+ ENGLISH = "en"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserLanguage = void 0;
4
+ var UserLanguage;
5
+ (function (UserLanguage) {
6
+ UserLanguage["FRENCH"] = "fr";
7
+ UserLanguage["ENGLISH"] = "en";
8
+ })(UserLanguage = exports.UserLanguage || (exports.UserLanguage = {}));
@@ -0,0 +1,279 @@
1
+ export declare enum UserNotificationContentType {
2
+ USER_CREDIT_PURCHASE = "user-credit-purchase",
3
+ USER_TICKET_RESPONSE = "user-ticket-response",
4
+ INVITE_USER_PROJECT = "invite-user-project",
5
+ PROJECT_SET_OWNERSHIP = "project-set-ownership",
6
+ USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED = "user-subscription-no-funds-auto-renew-disabled",
7
+ USER_SUBSCRIPTION_EXPIRATION = "user-subscription-expiration",
8
+ USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW = "user-subscription-expiration-without-auto-renew",
9
+ USER_SUBSCRIPTION_RENEW_SUCCESS = "user-subscription-renew-success",
10
+ USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS = "user-subscription-auto-renew-success",
11
+ USER_SUBSCRIPTION_CREATE = "user-subscription-create",
12
+ USER_SUBSCRIPTION_AUTO_RENEW_ENABLED = "user-subscription-auto-renew-enabled",
13
+ USER_SUBSCRIPTION_AUTO_RENEW_DISABLED = "user-subscription-auto-renew-disabled",
14
+ USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW = "user-subscription-create-without-auto-renew",
15
+ PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED = "project-subscription-auto-renew-enabled",
16
+ PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED = "project-subscription-auto-renew-disabled",
17
+ PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED = "project-subscription-no-funds-auto-renew-disabled",
18
+ PROJECT_SUBSCRIPTION_EXPIRATION = "project-subscription-expiration",
19
+ PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW = "project-subscription-expiration-without-auto-renew",
20
+ PROJECT_SUBSCRIPTION_RENEW_SUCCESS = "project-subscription-renew-success",
21
+ PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS = "project-subscription-auto-renew-success",
22
+ PROJECT_SUBSCRIPTION_CREATE = "project-subscription-create",
23
+ PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW = "project-subscription-create-without-auto-renew",
24
+ CREATE_CLOUD_SHARE = "create-cloud-share",
25
+ DELETE_CLOUD_SHARE = "delete-cloud-share",
26
+ CREATE_CLOUD = "create-cloud",
27
+ DELETE_CLOUD = "delete-cloud",
28
+ JOIN_CLOUD_SHARE = "join-cloud-share",
29
+ DECLINE_CLOUD_SHARE = "decline-cloud-share",
30
+ LEAVE_CLOUD_SHARE = "leave-cloud-share",
31
+ ADMIN_CREATE_CLOUD = "admin-create-cloud",
32
+ ADMIN_DELETE_CLOUD = "admin-delete-cloud",
33
+ WEBHOOK_UNDELIVERABLE = "webhook-undeliverable",
34
+ WEBHOOK_UNDELIVERABLE_DISABLE = "webhook-undeliverable-disable",
35
+ CRON_TASK_FAILED = "cron-task-failed",
36
+ CRON_TASK_DISABLED = "cron-task-disabled",
37
+ INVITE_EVENT = "invite-event",
38
+ CHANGE_OWNER_EVENT = "change-owner-event",
39
+ CREATE_POLL_EVENT = "create-poll-event",
40
+ BANK_CONNECTION_EXPIRE = "bank-connection-expire",
41
+ BANK_CONNECTION_SUCCESS = "bank-connection-success"
42
+ }
43
+ export declare class UserNotificationContentTypeData implements Record<UserNotificationContentType, Record<string, string>> {
44
+ [UserNotificationContentType.USER_CREDIT_PURCHASE]: {
45
+ amount: string;
46
+ };
47
+ [UserNotificationContentType.USER_TICKET_RESPONSE]: {
48
+ ticketTitle: string;
49
+ ticketId: string;
50
+ };
51
+ [UserNotificationContentType.INVITE_USER_PROJECT]: {
52
+ projectId: string;
53
+ projectAccessId: string;
54
+ projectName: string;
55
+ userId: string;
56
+ };
57
+ [UserNotificationContentType.PROJECT_SET_OWNERSHIP]: {
58
+ projectId: string;
59
+ projectName: string;
60
+ userId: string;
61
+ };
62
+ [UserNotificationContentType.USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED]: {
63
+ missingCredit: string;
64
+ endDate: string;
65
+ renewDate: string;
66
+ level: string;
67
+ };
68
+ [UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_ENABLED]: {
69
+ endDate: string;
70
+ level: string;
71
+ };
72
+ [UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_DISABLED]: {
73
+ endDate: string;
74
+ level: string;
75
+ };
76
+ [UserNotificationContentType.PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED]: {
77
+ missingCredit: string;
78
+ endDate: string;
79
+ renewDate: string;
80
+ projectId: string;
81
+ projectName: string;
82
+ level: string;
83
+ };
84
+ [UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED]: {
85
+ endDate: string;
86
+ projectId: string;
87
+ projectName: string;
88
+ level: string;
89
+ };
90
+ [UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED]: {
91
+ endDate: string;
92
+ projectId: string;
93
+ projectName: string;
94
+ level: string;
95
+ };
96
+ [UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION]: {
97
+ endDate: string;
98
+ renewDate: string;
99
+ creditPrice: string;
100
+ level: string;
101
+ };
102
+ [UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION]: {
103
+ endDate: string;
104
+ renewDate: string;
105
+ creditPrice: string;
106
+ projectId: string;
107
+ projectName: string;
108
+ level: string;
109
+ };
110
+ [UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW]: {
111
+ endDate: string;
112
+ renewDate: string;
113
+ creditPrice: string;
114
+ level: string;
115
+ };
116
+ [UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW]: {
117
+ endDate: string;
118
+ renewDate: string;
119
+ creditPrice: string;
120
+ projectId: string;
121
+ projectName: string;
122
+ level: string;
123
+ };
124
+ [UserNotificationContentType.USER_SUBSCRIPTION_RENEW_SUCCESS]: {
125
+ newEndDate: string;
126
+ renewDate: string;
127
+ renewCreditPrice: string;
128
+ level: string;
129
+ };
130
+ [UserNotificationContentType.PROJECT_SUBSCRIPTION_RENEW_SUCCESS]: {
131
+ newEndDate: string;
132
+ renewDate: string;
133
+ renewCreditPrice: string;
134
+ projectId: string;
135
+ projectName: string;
136
+ level: string;
137
+ usernameRenew: string;
138
+ };
139
+ [UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS]: {
140
+ newEndDate: string;
141
+ renewDate: string;
142
+ renewCreditPrice: string;
143
+ level: string;
144
+ };
145
+ [UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS]: {
146
+ newEndDate: string;
147
+ renewDate: string;
148
+ renewCreditPrice: string;
149
+ projectId: string;
150
+ projectName: string;
151
+ level: string;
152
+ usernameRenew: string;
153
+ };
154
+ [UserNotificationContentType.USER_SUBSCRIPTION_CREATE]: {
155
+ endDate: string;
156
+ level: string;
157
+ creditPrice: string;
158
+ };
159
+ [UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE]: {
160
+ endDate: string;
161
+ level: string;
162
+ creditPrice: string;
163
+ projectId: string;
164
+ projectName: string;
165
+ usernameRenew: string;
166
+ };
167
+ [UserNotificationContentType.USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW]: {
168
+ endDate: string;
169
+ level: string;
170
+ creditPrice: string;
171
+ };
172
+ [UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW]: {
173
+ endDate: string;
174
+ level: string;
175
+ creditPrice: string;
176
+ projectId: string;
177
+ projectName: string;
178
+ usernameRenew: string;
179
+ };
180
+ [UserNotificationContentType.CREATE_CLOUD_SHARE]: {
181
+ cloudName: string;
182
+ userId: string;
183
+ cloudId: string;
184
+ cloudShareId: string;
185
+ cloudShareName: string;
186
+ };
187
+ [UserNotificationContentType.DELETE_CLOUD_SHARE]: {
188
+ cloudName: string;
189
+ userId: string;
190
+ cloudId: string;
191
+ cloudShareName: string;
192
+ };
193
+ [UserNotificationContentType.CREATE_CLOUD]: {
194
+ cloudName: string;
195
+ cloudId: string;
196
+ };
197
+ [UserNotificationContentType.DELETE_CLOUD]: {
198
+ cloudName: string;
199
+ };
200
+ [UserNotificationContentType.ADMIN_CREATE_CLOUD]: {
201
+ cloudName: string;
202
+ cloudId: string;
203
+ };
204
+ [UserNotificationContentType.ADMIN_DELETE_CLOUD]: {
205
+ cloudName: string;
206
+ };
207
+ [UserNotificationContentType.JOIN_CLOUD_SHARE]: {
208
+ userId: string;
209
+ cloudName: string;
210
+ cloudId: string;
211
+ };
212
+ [UserNotificationContentType.DECLINE_CLOUD_SHARE]: {
213
+ userId: string;
214
+ cloudName: string;
215
+ cloudId: string;
216
+ };
217
+ [UserNotificationContentType.LEAVE_CLOUD_SHARE]: {
218
+ userId: string;
219
+ cloudName: string;
220
+ cloudId: string;
221
+ };
222
+ [UserNotificationContentType.WEBHOOK_UNDELIVERABLE]: {
223
+ projectId: string;
224
+ applicationId: string;
225
+ webhookId: string;
226
+ applicationWebhookId: string;
227
+ applicationWebhookName: string;
228
+ groupId: string;
229
+ totalFailureInRow: string;
230
+ };
231
+ [UserNotificationContentType.WEBHOOK_UNDELIVERABLE_DISABLE]: {
232
+ projectId: string;
233
+ applicationId: string;
234
+ webhookId: string;
235
+ applicationWebhookId: string;
236
+ applicationWebhookName: string;
237
+ };
238
+ [UserNotificationContentType.CRON_TASK_FAILED]: {
239
+ projectId: string;
240
+ applicationId: string;
241
+ applicationCronTaskId: string;
242
+ applicationCronTaskHistoryId: string;
243
+ applicationCronTaskName: string;
244
+ totalFailureInRow: string;
245
+ };
246
+ [UserNotificationContentType.CRON_TASK_DISABLED]: {
247
+ projectId: string;
248
+ applicationId: string;
249
+ applicationCronTaskId: string;
250
+ applicationCronTaskHistoryId: string;
251
+ applicationCronTaskName: string;
252
+ };
253
+ [UserNotificationContentType.INVITE_EVENT]: {
254
+ eventId: string;
255
+ eventName: string;
256
+ userId: string;
257
+ };
258
+ [UserNotificationContentType.CHANGE_OWNER_EVENT]: {
259
+ eventId: string;
260
+ eventName: string;
261
+ userId: string;
262
+ };
263
+ [UserNotificationContentType.CREATE_POLL_EVENT]: {
264
+ eventId: string;
265
+ eventName: string;
266
+ eventPollId: string;
267
+ evenPollOwnerId: string;
268
+ };
269
+ [UserNotificationContentType.BANK_CONNECTION_SUCCESS]: {
270
+ bankConnectionId: string;
271
+ bankName: string;
272
+ logoUrl?: string;
273
+ };
274
+ [UserNotificationContentType.BANK_CONNECTION_EXPIRE]: {
275
+ bankConnectionId: string;
276
+ bankName: string;
277
+ logoUrl?: string;
278
+ };
279
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserNotificationContentTypeData = exports.UserNotificationContentType = void 0;
4
+ var UserNotificationContentType;
5
+ (function (UserNotificationContentType) {
6
+ UserNotificationContentType["USER_CREDIT_PURCHASE"] = "user-credit-purchase";
7
+ UserNotificationContentType["USER_TICKET_RESPONSE"] = "user-ticket-response";
8
+ UserNotificationContentType["INVITE_USER_PROJECT"] = "invite-user-project";
9
+ UserNotificationContentType["PROJECT_SET_OWNERSHIP"] = "project-set-ownership";
10
+ UserNotificationContentType["USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED"] = "user-subscription-no-funds-auto-renew-disabled";
11
+ UserNotificationContentType["USER_SUBSCRIPTION_EXPIRATION"] = "user-subscription-expiration";
12
+ UserNotificationContentType["USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW"] = "user-subscription-expiration-without-auto-renew";
13
+ UserNotificationContentType["USER_SUBSCRIPTION_RENEW_SUCCESS"] = "user-subscription-renew-success";
14
+ UserNotificationContentType["USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS"] = "user-subscription-auto-renew-success";
15
+ UserNotificationContentType["USER_SUBSCRIPTION_CREATE"] = "user-subscription-create";
16
+ UserNotificationContentType["USER_SUBSCRIPTION_AUTO_RENEW_ENABLED"] = "user-subscription-auto-renew-enabled";
17
+ UserNotificationContentType["USER_SUBSCRIPTION_AUTO_RENEW_DISABLED"] = "user-subscription-auto-renew-disabled";
18
+ UserNotificationContentType["USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW"] = "user-subscription-create-without-auto-renew";
19
+ UserNotificationContentType["PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED"] = "project-subscription-auto-renew-enabled";
20
+ UserNotificationContentType["PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED"] = "project-subscription-auto-renew-disabled";
21
+ UserNotificationContentType["PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED"] = "project-subscription-no-funds-auto-renew-disabled";
22
+ UserNotificationContentType["PROJECT_SUBSCRIPTION_EXPIRATION"] = "project-subscription-expiration";
23
+ UserNotificationContentType["PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW"] = "project-subscription-expiration-without-auto-renew";
24
+ UserNotificationContentType["PROJECT_SUBSCRIPTION_RENEW_SUCCESS"] = "project-subscription-renew-success";
25
+ UserNotificationContentType["PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS"] = "project-subscription-auto-renew-success";
26
+ UserNotificationContentType["PROJECT_SUBSCRIPTION_CREATE"] = "project-subscription-create";
27
+ UserNotificationContentType["PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW"] = "project-subscription-create-without-auto-renew";
28
+ UserNotificationContentType["CREATE_CLOUD_SHARE"] = "create-cloud-share";
29
+ UserNotificationContentType["DELETE_CLOUD_SHARE"] = "delete-cloud-share";
30
+ UserNotificationContentType["CREATE_CLOUD"] = "create-cloud";
31
+ UserNotificationContentType["DELETE_CLOUD"] = "delete-cloud";
32
+ UserNotificationContentType["JOIN_CLOUD_SHARE"] = "join-cloud-share";
33
+ UserNotificationContentType["DECLINE_CLOUD_SHARE"] = "decline-cloud-share";
34
+ UserNotificationContentType["LEAVE_CLOUD_SHARE"] = "leave-cloud-share";
35
+ UserNotificationContentType["ADMIN_CREATE_CLOUD"] = "admin-create-cloud";
36
+ UserNotificationContentType["ADMIN_DELETE_CLOUD"] = "admin-delete-cloud";
37
+ UserNotificationContentType["WEBHOOK_UNDELIVERABLE"] = "webhook-undeliverable";
38
+ UserNotificationContentType["WEBHOOK_UNDELIVERABLE_DISABLE"] = "webhook-undeliverable-disable";
39
+ UserNotificationContentType["CRON_TASK_FAILED"] = "cron-task-failed";
40
+ UserNotificationContentType["CRON_TASK_DISABLED"] = "cron-task-disabled";
41
+ UserNotificationContentType["INVITE_EVENT"] = "invite-event";
42
+ UserNotificationContentType["CHANGE_OWNER_EVENT"] = "change-owner-event";
43
+ UserNotificationContentType["CREATE_POLL_EVENT"] = "create-poll-event";
44
+ UserNotificationContentType["BANK_CONNECTION_EXPIRE"] = "bank-connection-expire";
45
+ UserNotificationContentType["BANK_CONNECTION_SUCCESS"] = "bank-connection-success";
46
+ })(UserNotificationContentType = exports.UserNotificationContentType || (exports.UserNotificationContentType = {}));
47
+ class UserNotificationContentTypeData {
48
+ }
49
+ exports.UserNotificationContentTypeData = UserNotificationContentTypeData;
50
+ UserNotificationContentType.USER_CREDIT_PURCHASE, UserNotificationContentType.USER_TICKET_RESPONSE, UserNotificationContentType.INVITE_USER_PROJECT, UserNotificationContentType.PROJECT_SET_OWNERSHIP, UserNotificationContentType.USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_ENABLED, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_DISABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED, UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION, UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION, UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW, UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW, UserNotificationContentType.USER_SUBSCRIPTION_RENEW_SUCCESS, UserNotificationContentType.PROJECT_SUBSCRIPTION_RENEW_SUCCESS, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS, UserNotificationContentType.USER_SUBSCRIPTION_CREATE, UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE, UserNotificationContentType.USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW, UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW, UserNotificationContentType.CREATE_CLOUD_SHARE, UserNotificationContentType.DELETE_CLOUD_SHARE, UserNotificationContentType.CREATE_CLOUD, UserNotificationContentType.DELETE_CLOUD, UserNotificationContentType.ADMIN_CREATE_CLOUD, UserNotificationContentType.ADMIN_DELETE_CLOUD, UserNotificationContentType.JOIN_CLOUD_SHARE, UserNotificationContentType.DECLINE_CLOUD_SHARE, UserNotificationContentType.LEAVE_CLOUD_SHARE, UserNotificationContentType.WEBHOOK_UNDELIVERABLE, UserNotificationContentType.WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.CRON_TASK_FAILED, UserNotificationContentType.CRON_TASK_DISABLED, UserNotificationContentType.INVITE_EVENT, UserNotificationContentType.CHANGE_OWNER_EVENT, UserNotificationContentType.CREATE_POLL_EVENT, UserNotificationContentType.BANK_CONNECTION_SUCCESS, UserNotificationContentType.BANK_CONNECTION_EXPIRE;
@@ -0,0 +1,6 @@
1
+ export declare enum UserNotificationType {
2
+ DEFAULT = 1,
3
+ ERROR = 2,
4
+ WARNING = 3,
5
+ INFORMATION = 4
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserNotificationType = void 0;
4
+ var UserNotificationType;
5
+ (function (UserNotificationType) {
6
+ UserNotificationType[UserNotificationType["DEFAULT"] = 1] = "DEFAULT";
7
+ UserNotificationType[UserNotificationType["ERROR"] = 2] = "ERROR";
8
+ UserNotificationType[UserNotificationType["WARNING"] = 3] = "WARNING";
9
+ UserNotificationType[UserNotificationType["INFORMATION"] = 4] = "INFORMATION";
10
+ })(UserNotificationType = exports.UserNotificationType || (exports.UserNotificationType = {}));
@@ -0,0 +1,9 @@
1
+ export declare enum UserTicketCategory {
2
+ BILLING = "BILLING",
3
+ BUG = "BUG",
4
+ HELP_PACKAGE_API = "HELP_PACKAGE_API",
5
+ PARTNERSHIP = "PARTNERSHIP",
6
+ PROJECT_FINANCING = "PROJECT_PARTNERSHIP",
7
+ ACCOUNT_MANAGEMENT = "ACCOUNT_MANAGEMENT",
8
+ OTHER = "OTHER"
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserTicketCategory = void 0;
4
+ var UserTicketCategory;
5
+ (function (UserTicketCategory) {
6
+ UserTicketCategory["BILLING"] = "BILLING";
7
+ UserTicketCategory["BUG"] = "BUG";
8
+ UserTicketCategory["HELP_PACKAGE_API"] = "HELP_PACKAGE_API";
9
+ UserTicketCategory["PARTNERSHIP"] = "PARTNERSHIP";
10
+ UserTicketCategory["PROJECT_FINANCING"] = "PROJECT_PARTNERSHIP";
11
+ UserTicketCategory["ACCOUNT_MANAGEMENT"] = "ACCOUNT_MANAGEMENT";
12
+ UserTicketCategory["OTHER"] = "OTHER";
13
+ })(UserTicketCategory = exports.UserTicketCategory || (exports.UserTicketCategory = {}));
@@ -0,0 +1,14 @@
1
+ export declare enum UserTransactionType {
2
+ SUBSCRIPTION_CREATE = 10,
3
+ SUBSCRIPTION_RENEW = 11,
4
+ SUBSCRIPTION_UPGRADE = 12,
5
+ SUBSCRIPTION_DOWNGRADE = 13,
6
+ SUBSCRIPTION_REFUND = 14,
7
+ SUBSCRIPTION_STORAGE_FILE_DAILY = 20,
8
+ GIFT_CODE_ACTIVATION = 30,
9
+ USER_CREDIT_PURCHASE = 40,
10
+ USER_CREDIT_PURCHASE_REFUND = 41,
11
+ SIGNUP_SPONSOR = 50,
12
+ SIGNUP_SPONSORED = 51,
13
+ OTHER = 100
14
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserTransactionType = void 0;
4
+ var UserTransactionType;
5
+ (function (UserTransactionType) {
6
+ UserTransactionType[UserTransactionType["SUBSCRIPTION_CREATE"] = 10] = "SUBSCRIPTION_CREATE";
7
+ UserTransactionType[UserTransactionType["SUBSCRIPTION_RENEW"] = 11] = "SUBSCRIPTION_RENEW";
8
+ UserTransactionType[UserTransactionType["SUBSCRIPTION_UPGRADE"] = 12] = "SUBSCRIPTION_UPGRADE";
9
+ UserTransactionType[UserTransactionType["SUBSCRIPTION_DOWNGRADE"] = 13] = "SUBSCRIPTION_DOWNGRADE";
10
+ UserTransactionType[UserTransactionType["SUBSCRIPTION_REFUND"] = 14] = "SUBSCRIPTION_REFUND";
11
+ UserTransactionType[UserTransactionType["SUBSCRIPTION_STORAGE_FILE_DAILY"] = 20] = "SUBSCRIPTION_STORAGE_FILE_DAILY";
12
+ UserTransactionType[UserTransactionType["GIFT_CODE_ACTIVATION"] = 30] = "GIFT_CODE_ACTIVATION";
13
+ UserTransactionType[UserTransactionType["USER_CREDIT_PURCHASE"] = 40] = "USER_CREDIT_PURCHASE";
14
+ UserTransactionType[UserTransactionType["USER_CREDIT_PURCHASE_REFUND"] = 41] = "USER_CREDIT_PURCHASE_REFUND";
15
+ UserTransactionType[UserTransactionType["SIGNUP_SPONSOR"] = 50] = "SIGNUP_SPONSOR";
16
+ UserTransactionType[UserTransactionType["SIGNUP_SPONSORED"] = 51] = "SIGNUP_SPONSORED";
17
+ UserTransactionType[UserTransactionType["OTHER"] = 100] = "OTHER";
18
+ })(UserTransactionType = exports.UserTransactionType || (exports.UserTransactionType = {}));
@@ -0,0 +1,9 @@
1
+ export * from './interface';
2
+ export * from './enum';
3
+ export * from './session';
4
+ export * from './utils';
5
+ export * from './models';
6
+ export type BaseEntity<T> = Omit<T, 'createdAt' | 'deletedAt' | 'updatedAt'>;
7
+ export type WithRequired<T, K extends keyof T> = T & {
8
+ [P in K]-?: T[P];
9
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interface"), exports);
18
+ __exportStar(require("./enum"), exports);
19
+ __exportStar(require("./session"), exports);
20
+ __exportStar(require("./utils"), exports);
21
+ __exportStar(require("./models"), exports);