@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
package/dist/index.js ADDED
@@ -0,0 +1,89 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.AbyssCore = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_PROJECT_HEADER = void 0;
33
+ const axios_1 = __importDefault(require("axios"));
34
+ const axios_retry_1 = __importStar(require("axios-retry"));
35
+ __exportStar(require("./api"), exports);
36
+ __exportStar(require("./types"), exports);
37
+ __exportStar(require("./utils"), exports);
38
+ __exportStar(require("./front"), exports);
39
+ __exportStar(require("./translate"), exports);
40
+ const MONITOR_DEFAULT_BASE_URL = 'https://app-api.abyss-project.fr/api/';
41
+ exports.API_KEY_PROJECT_HEADER = 'abyss-main-project-api-key';
42
+ exports.ADMIN_TOKEN_HEADER = 'abyss-admin-token';
43
+ const NUMBER_RETRY_API = 10;
44
+ const BASE_DELAY_BETWEEN_RETRY = 5000;
45
+ const RETRY_CODES = [
46
+ 502,
47
+ 503,
48
+ ];
49
+ class AbyssCore {
50
+ static enableAxiosRetry(axiosRetryConfig) {
51
+ (0, axios_retry_1.default)(AbyssCore.axios, {
52
+ retries: NUMBER_RETRY_API,
53
+ retryDelay: (retryCount) => retryCount * BASE_DELAY_BETWEEN_RETRY,
54
+ retryCondition: (error) => {
55
+ var _a;
56
+ return (0, axios_retry_1.isNetworkOrIdempotentRequestError)(error) ||
57
+ RETRY_CODES.includes(((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) || 502);
58
+ },
59
+ ...axiosRetryConfig,
60
+ });
61
+ }
62
+ static setConfig(config) {
63
+ AbyssCore.config = { ...AbyssCore.config, ...config };
64
+ if (config.baseURL) {
65
+ AbyssCore.axios.defaults.baseURL = config.baseURL;
66
+ }
67
+ if (config.token) {
68
+ AbyssCore.axios.defaults.headers.common.Authorization = `Bearer ${config.token}`;
69
+ }
70
+ if (config.projectApiKey) {
71
+ AbyssCore.axios.defaults.headers.common[exports.API_KEY_PROJECT_HEADER] = `${config.projectApiKey}`;
72
+ }
73
+ if (config.adminToken) {
74
+ AbyssCore.axios.defaults.headers.common[exports.ADMIN_TOKEN_HEADER] = `${config.adminToken}`;
75
+ }
76
+ }
77
+ static getConfig() {
78
+ return AbyssCore.config;
79
+ }
80
+ }
81
+ exports.AbyssCore = AbyssCore;
82
+ AbyssCore.config = {
83
+ token: '',
84
+ apiKeyApplication: '',
85
+ applicationId: '',
86
+ adminToken: '',
87
+ baseURL: MONITOR_DEFAULT_BASE_URL,
88
+ };
89
+ AbyssCore.axios = axios_1.default.create({ baseURL: `` });
@@ -0,0 +1,176 @@
1
+ export declare const enTranslation: {
2
+ notifications: {
3
+ ABYSS: {
4
+ "user-credit-purchase": {
5
+ title: string;
6
+ content: string;
7
+ };
8
+ "user-ticket-response": {
9
+ title: string;
10
+ content: string;
11
+ };
12
+ "invite-user-project": {
13
+ title: string;
14
+ content: string;
15
+ };
16
+ "project-set-ownership": {
17
+ title: string;
18
+ content: string;
19
+ };
20
+ "user-subscription-no-funds-auto-renew-disabled": {
21
+ title: string;
22
+ content: string;
23
+ };
24
+ "user-subscription-auto-renew-disabled": {
25
+ title: string;
26
+ content: string;
27
+ };
28
+ "user-subscription-auto-renew-enabled": {
29
+ title: string;
30
+ content: string;
31
+ };
32
+ "user-subscription-expiration": {
33
+ title: string;
34
+ content: string;
35
+ };
36
+ "user-subscription-expiration-without-auto-renew": {
37
+ title: string;
38
+ content: string;
39
+ };
40
+ "user-subscription-renew-success": {
41
+ title: string;
42
+ content: string;
43
+ };
44
+ "user-subscription-auto-renew-success": {
45
+ title: string;
46
+ content: string;
47
+ };
48
+ "user-subscription-create": {
49
+ title: string;
50
+ content: string;
51
+ };
52
+ "user-subscription-create-without-auto-renew": {
53
+ title: string;
54
+ content: string;
55
+ };
56
+ "project-subscription-no-funds-auto-renew-disabled": {
57
+ title: string;
58
+ content: string;
59
+ };
60
+ "project-subscription-auto-renew-disabled": {
61
+ title: string;
62
+ content: string;
63
+ };
64
+ "project-subscription-auto-renew-enabled": {
65
+ title: string;
66
+ content: string;
67
+ };
68
+ "project-subscription-expiration": {
69
+ title: string;
70
+ content: string;
71
+ };
72
+ "project-subscription-expiration-without-auto-renew": {
73
+ title: string;
74
+ content: string;
75
+ };
76
+ "project-subscription-renew-success": {
77
+ title: string;
78
+ content: string;
79
+ };
80
+ "project-subscription-auto-renew-success": {
81
+ title: string;
82
+ content: string;
83
+ };
84
+ "project-subscription-create": {
85
+ title: string;
86
+ content: string;
87
+ };
88
+ "project-subscription-create-without-auto-renew": {
89
+ title: string;
90
+ content: string;
91
+ };
92
+ };
93
+ ABYSS_CLOUD: {
94
+ "create-cloud-share": {
95
+ title: string;
96
+ content: string;
97
+ };
98
+ "delete-cloud-share": {
99
+ title: string;
100
+ content: string;
101
+ };
102
+ "create-cloud": {
103
+ title: string;
104
+ content: string;
105
+ };
106
+ "delete-cloud": {
107
+ title: string;
108
+ content: string;
109
+ };
110
+ "admin-create-cloud": {
111
+ title: string;
112
+ content: string;
113
+ };
114
+ "admin-delete-cloud": {
115
+ title: string;
116
+ content: string;
117
+ };
118
+ "join-cloud-share": {
119
+ title: string;
120
+ content: string;
121
+ };
122
+ "decline-cloud-share": {
123
+ title: string;
124
+ content: string;
125
+ };
126
+ "leave-cloud-share": {
127
+ title: string;
128
+ content: string;
129
+ };
130
+ };
131
+ ABYSS_STORAGE: {
132
+ "webhook-undeliverable": {
133
+ title: string;
134
+ content: string;
135
+ };
136
+ "webhook-undeliverable-disable": {
137
+ title: string;
138
+ content: string;
139
+ };
140
+ };
141
+ ABYSS_MONITOR: {
142
+ "cron-task-failed": {
143
+ title: string;
144
+ content: string;
145
+ };
146
+ "cron-task-disabled": {
147
+ title: string;
148
+ content: string;
149
+ };
150
+ };
151
+ ABYSS_MEMORIES: {
152
+ "invite-event": {
153
+ title: string;
154
+ content: string;
155
+ };
156
+ "change-owner-event": {
157
+ title: string;
158
+ content: string;
159
+ };
160
+ "create-poll-event": {
161
+ title: string;
162
+ content: string;
163
+ };
164
+ };
165
+ ABYSS_BANKING: {
166
+ "bank-connection-success": {
167
+ title: string;
168
+ content: string;
169
+ };
170
+ "bank-connection-expire": {
171
+ title: string;
172
+ content: string;
173
+ };
174
+ };
175
+ };
176
+ };
@@ -0,0 +1,180 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.enTranslation = void 0;
4
+ const types_1 = require("../types");
5
+ exports.enTranslation = {
6
+ notifications: {
7
+ [types_1.AbyssService.ABYSS]: {
8
+ [types_1.UserNotificationContentType.USER_CREDIT_PURCHASE]: {
9
+ title: 'Purchase of credit',
10
+ content: 'Your account has been credited with {amount} credits',
11
+ },
12
+ [types_1.UserNotificationContentType.USER_TICKET_RESPONSE]: {
13
+ title: 'Ticket response',
14
+ content: 'You have received a response to your ticket "{ticketTitle}"',
15
+ },
16
+ [types_1.UserNotificationContentType.INVITE_USER_PROJECT]: {
17
+ title: 'New project invitation',
18
+ content: '{alias} invited you to join the project "{projectName}"',
19
+ },
20
+ [types_1.UserNotificationContentType.PROJECT_SET_OWNERSHIP]: {
21
+ title: 'Project transfer',
22
+ content: '{alias} has made you the owner of project {projectName}',
23
+ },
24
+ [types_1.UserNotificationContentType.USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED]: {
25
+ title: 'Abyss subscription auto-renewal failed',
26
+ content: 'Your {level} subscription will expire on {endDate} ({missingCredit} missing credits).',
27
+ },
28
+ [types_1.UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_DISABLED]: {
29
+ title: 'Disabling automatic Abyss subscription renewal',
30
+ content: 'Automatic renewal of your {level} subscription has been turned off and will expire on {endDate}.',
31
+ },
32
+ [types_1.UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_ENABLED]: {
33
+ title: 'Activation of automatic renewal of Abyss subscription',
34
+ content: 'Automatic renewal of your {level} subscription has been enabled. It will be automatically renewed before {endDate}.',
35
+ },
36
+ [types_1.UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION]: {
37
+ title: 'Your {level} subscription expires on {endDate}',
38
+ content: 'It will automatically renew on {renewDate} and you will be charged {creditPrice} credits.',
39
+ },
40
+ [types_1.UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW]: {
41
+ title: 'Your {level} subscription expires on {endDate}',
42
+ content: 'You have not configured automatic renewal. You can now renew the subscription manually.',
43
+ },
44
+ [types_1.UserNotificationContentType.USER_SUBSCRIPTION_RENEW_SUCCESS]: {
45
+ title: 'Renewing your {level} subscription',
46
+ content: 'Your {level} subscription was renewed on {renewDate} and will expire on {newEndDate}. You have been charged {renewCreditPrice} credits.',
47
+ },
48
+ [types_1.UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS]: {
49
+ title: 'Automatic renewal of your {level} subscription',
50
+ content: 'Your {level} subscription was automatically renewed on {renewDate} and will expire on {newEndDate}. You have been automatically charged {renewCreditPrice} credits.',
51
+ },
52
+ [types_1.UserNotificationContentType.USER_SUBSCRIPTION_CREATE]: {
53
+ title: 'New Subscription {level}',
54
+ content: 'A new subscription {level} has been added to your account. You have been charged {creditPrice} credits. It will be automatically renewed.',
55
+ },
56
+ [types_1.UserNotificationContentType.USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW]: {
57
+ title: 'New Subscription {level}',
58
+ content: 'A new subscription {level} has been added to your account. You have been charged {creditPrice} credits. It will not be automatically renewed.',
59
+ },
60
+ [types_1.UserNotificationContentType.PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED]: {
61
+ title: 'Project subscription auto-renewal failed',
62
+ content: 'Subscription {level} of project {projectName} will expire on {endDate} ({missingCredit} credits missing).',
63
+ },
64
+ [types_1.UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED]: {
65
+ title: 'Disabling project subscription auto-renewal',
66
+ content: 'Auto-renewal of {level} subscription for project {projectName} has been disabled and will expire on {endDate}',
67
+ },
68
+ [types_1.UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED]: {
69
+ title: 'Enabling automatic project subscription renewal',
70
+ content: 'Automatic renewal of {level} subscription for project {projectName} has been enabled. It will be automatically renewed before {endDate}',
71
+ },
72
+ [types_1.UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION]: {
73
+ title: 'Subscription {level} of project {projectName} expires on {endDate}',
74
+ content: 'It will be automatically renewed on {renewDate} and it will be debited for {creditPrice} credits.',
75
+ },
76
+ [types_1.UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW]: {
77
+ title: 'Subscription {level} of project {projectName} expires on {endDate}',
78
+ content: 'You have not configured automatic renewal. You can now renew the subscription manually.',
79
+ },
80
+ [types_1.UserNotificationContentType.PROJECT_SUBSCRIPTION_RENEW_SUCCESS]: {
81
+ title: 'Renewal of {level} subscription of project {projectName}',
82
+ content: 'The {level} subscription for project {projectName} was successfully renewed on {renewDate} and will expire on {newEndDate}. User {usernameRenew} has been charged {renewCreditPrice} credits.',
83
+ },
84
+ [types_1.UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS]: {
85
+ title: 'Automatic renewal of {level} subscription of project {projectName}',
86
+ content: 'The {level} subscription of the {projectName} project was automatically renewed on {renewDate} and will expire on {newEndDate}. The owner was automatically debited for {renewCreditPrice} credits.',
87
+ },
88
+ [types_1.UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE]: {
89
+ title: 'New subscription {level} for project {projectName}',
90
+ content: 'A new subscription {level} has been added to project {projectName}. User {usernameRenew} has been charged {creditPrice} credits. It will be automatically renewed.',
91
+ },
92
+ [types_1.UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW]: {
93
+ title: 'New subscription {level} for project {projectName}',
94
+ content: 'A new subscription {level} has been added to project {projectName}. User {usernameRenew} has been charged {creditPrice} credits. It will not be automatically renewed.',
95
+ },
96
+ },
97
+ [types_1.AbyssService.ABYSS_CLOUD]: {
98
+ [types_1.UserNotificationContentType.CREATE_CLOUD_SHARE]: {
99
+ title: 'New cloud access',
100
+ content: '{alias} shared his Cloud "{cloudName}" with you',
101
+ },
102
+ [types_1.UserNotificationContentType.DELETE_CLOUD_SHARE]: {
103
+ title: 'Cloud access removed',
104
+ content: '{alias} deleted the share to his Cloud "{cloudName}"',
105
+ },
106
+ [types_1.UserNotificationContentType.CREATE_CLOUD]: {
107
+ title: 'New cloud',
108
+ content: 'You have created a new Cloud "{cloudName}"',
109
+ },
110
+ [types_1.UserNotificationContentType.DELETE_CLOUD]: {
111
+ title: 'Cloud deleted',
112
+ content: 'You have deleted your Cloud "{cloudName}"',
113
+ },
114
+ [types_1.UserNotificationContentType.ADMIN_CREATE_CLOUD]: {
115
+ title: 'New cloud',
116
+ content: 'An administrator has created a new Cloud "{cloudName}"',
117
+ },
118
+ [types_1.UserNotificationContentType.ADMIN_DELETE_CLOUD]: {
119
+ title: 'Cloud deleted',
120
+ content: 'An administrator has deleted the Cloud "{cloudName}"',
121
+ },
122
+ [types_1.UserNotificationContentType.JOIN_CLOUD_SHARE]: {
123
+ title: 'Cloud Share',
124
+ content: `User {alias} has joined the Cloud "{cloudName}"`,
125
+ },
126
+ [types_1.UserNotificationContentType.DECLINE_CLOUD_SHARE]: {
127
+ title: 'Cloud Share',
128
+ content: `User {alias} declined cloud invite "{cloudName}"`,
129
+ },
130
+ [types_1.UserNotificationContentType.LEAVE_CLOUD_SHARE]: {
131
+ title: 'Cloud Share',
132
+ content: `User {alias} left cloud "{cloudName}"`,
133
+ },
134
+ },
135
+ [types_1.AbyssService.ABYSS_STORAGE]: {
136
+ [types_1.UserNotificationContentType.WEBHOOK_UNDELIVERABLE]: {
137
+ title: 'Webhook Failed',
138
+ content: 'An error occurred on Webhook "{applicationWebhookName}" ({totalFailureInRow} consecutive failure)',
139
+ },
140
+ [types_1.UserNotificationContentType.WEBHOOK_UNDELIVERABLE_DISABLE]: {
141
+ title: 'Disabling Webhook',
142
+ content: 'Webhook {applicationWebhookName} has been disabled due to multiple errors',
143
+ },
144
+ },
145
+ [types_1.AbyssService.ABYSS_MONITOR]: {
146
+ [types_1.UserNotificationContentType.CRON_TASK_FAILED]: {
147
+ title: 'Scheduled task failure',
148
+ content: 'An error occurred on scheduled task "{applicationCronTaskName}" ({totalFailureInRow} consecutive failure)',
149
+ },
150
+ [types_1.UserNotificationContentType.CRON_TASK_DISABLED]: {
151
+ title: 'Scheduled task deactivation',
152
+ content: 'Task {applicationCronTaskName} has been disabled due to multiple errors',
153
+ },
154
+ },
155
+ [types_1.AbyssService.ABYSS_MEMORIES]: {
156
+ [types_1.UserNotificationContentType.INVITE_EVENT]: {
157
+ title: 'New event invitation',
158
+ content: '{user} invited you to join event {eventName}',
159
+ },
160
+ [types_1.UserNotificationContentType.CHANGE_OWNER_EVENT]: {
161
+ title: 'Event transfer',
162
+ content: '{user} transferred ownership of event {eventName} to you',
163
+ },
164
+ [types_1.UserNotificationContentType.CREATE_POLL_EVENT]: {
165
+ title: 'New survey',
166
+ content: '{user} created a new poll in {eventName}',
167
+ },
168
+ },
169
+ [types_1.AbyssService.ABYSS_BANKING]: {
170
+ [types_1.UserNotificationContentType.BANK_CONNECTION_SUCCESS]: {
171
+ title: 'Bank connection successful',
172
+ content: `The connection with the bank "{bankName}" is operational!`,
173
+ },
174
+ [types_1.UserNotificationContentType.BANK_CONNECTION_EXPIRE]: {
175
+ title: 'Bank connection expired',
176
+ content: `The connection with bank "{bankName}" has expired!`,
177
+ },
178
+ },
179
+ },
180
+ };
@@ -0,0 +1,176 @@
1
+ export declare const frTranslation: {
2
+ notifications: {
3
+ ABYSS: {
4
+ "user-credit-purchase": {
5
+ title: string;
6
+ content: string;
7
+ };
8
+ "user-ticket-response": {
9
+ title: string;
10
+ content: string;
11
+ };
12
+ "invite-user-project": {
13
+ title: string;
14
+ content: string;
15
+ };
16
+ "project-set-ownership": {
17
+ title: string;
18
+ content: string;
19
+ };
20
+ "user-subscription-no-funds-auto-renew-disabled": {
21
+ title: string;
22
+ content: string;
23
+ };
24
+ "user-subscription-auto-renew-disabled": {
25
+ title: string;
26
+ content: string;
27
+ };
28
+ "user-subscription-auto-renew-enabled": {
29
+ title: string;
30
+ content: string;
31
+ };
32
+ "user-subscription-expiration": {
33
+ title: string;
34
+ content: string;
35
+ };
36
+ "user-subscription-expiration-without-auto-renew": {
37
+ title: string;
38
+ content: string;
39
+ };
40
+ "user-subscription-renew-success": {
41
+ title: string;
42
+ content: string;
43
+ };
44
+ "user-subscription-auto-renew-success": {
45
+ title: string;
46
+ content: string;
47
+ };
48
+ "user-subscription-create": {
49
+ title: string;
50
+ content: string;
51
+ };
52
+ "user-subscription-create-without-auto-renew": {
53
+ title: string;
54
+ content: string;
55
+ };
56
+ "project-subscription-no-funds-auto-renew-disabled": {
57
+ title: string;
58
+ content: string;
59
+ };
60
+ "project-subscription-auto-renew-disabled": {
61
+ title: string;
62
+ content: string;
63
+ };
64
+ "project-subscription-auto-renew-enabled": {
65
+ title: string;
66
+ content: string;
67
+ };
68
+ "project-subscription-expiration": {
69
+ title: string;
70
+ content: string;
71
+ };
72
+ "project-subscription-expiration-without-auto-renew": {
73
+ title: string;
74
+ content: string;
75
+ };
76
+ "project-subscription-renew-success": {
77
+ title: string;
78
+ content: string;
79
+ };
80
+ "project-subscription-auto-renew-success": {
81
+ title: string;
82
+ content: string;
83
+ };
84
+ "project-subscription-create": {
85
+ title: string;
86
+ content: string;
87
+ };
88
+ "project-subscription-create-without-auto-renew": {
89
+ title: string;
90
+ content: string;
91
+ };
92
+ };
93
+ ABYSS_CLOUD: {
94
+ "create-cloud-share": {
95
+ title: string;
96
+ content: string;
97
+ };
98
+ "delete-cloud-share": {
99
+ title: string;
100
+ content: string;
101
+ };
102
+ "create-cloud": {
103
+ title: string;
104
+ content: string;
105
+ };
106
+ "delete-cloud": {
107
+ title: string;
108
+ content: string;
109
+ };
110
+ "admin-create-cloud": {
111
+ title: string;
112
+ content: string;
113
+ };
114
+ "admin-delete-cloud": {
115
+ title: string;
116
+ content: string;
117
+ };
118
+ "join-cloud-share": {
119
+ title: string;
120
+ content: string;
121
+ };
122
+ "decline-cloud-share": {
123
+ title: string;
124
+ content: string;
125
+ };
126
+ "leave-cloud-share": {
127
+ title: string;
128
+ content: string;
129
+ };
130
+ };
131
+ ABYSS_STORAGE: {
132
+ "webhook-undeliverable": {
133
+ title: string;
134
+ content: string;
135
+ };
136
+ "webhook-undeliverable-disable": {
137
+ title: string;
138
+ content: string;
139
+ };
140
+ };
141
+ ABYSS_MONITOR: {
142
+ "cron-task-failed": {
143
+ title: string;
144
+ content: string;
145
+ };
146
+ "cron-task-disabled": {
147
+ title: string;
148
+ content: string;
149
+ };
150
+ };
151
+ ABYSS_MEMORIES: {
152
+ "invite-event": {
153
+ title: string;
154
+ content: string;
155
+ };
156
+ "change-owner-event": {
157
+ title: string;
158
+ content: string;
159
+ };
160
+ "create-poll-event": {
161
+ title: string;
162
+ content: string;
163
+ };
164
+ };
165
+ ABYSS_BANKING: {
166
+ "bank-connection-success": {
167
+ title: string;
168
+ content: string;
169
+ };
170
+ "bank-connection-expire": {
171
+ title: string;
172
+ content: string;
173
+ };
174
+ };
175
+ };
176
+ };