@trm-market-pulse/shared-types 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 (238) hide show
  1. package/README.md +131 -0
  2. package/dist/enums/audit-types.d.ts +19 -0
  3. package/dist/enums/audit-types.d.ts.map +1 -0
  4. package/dist/enums/audit-types.js +23 -0
  5. package/dist/enums/audit-types.js.map +1 -0
  6. package/dist/enums/cache-keys.d.ts +12 -0
  7. package/dist/enums/cache-keys.d.ts.map +1 -0
  8. package/dist/enums/cache-keys.js +16 -0
  9. package/dist/enums/cache-keys.js.map +1 -0
  10. package/dist/enums/collections.d.ts +16 -0
  11. package/dist/enums/collections.d.ts.map +1 -0
  12. package/dist/enums/collections.js +20 -0
  13. package/dist/enums/collections.js.map +1 -0
  14. package/dist/enums/currencies.d.ts +5 -0
  15. package/dist/enums/currencies.d.ts.map +1 -0
  16. package/dist/enums/currencies.js +9 -0
  17. package/dist/enums/currencies.js.map +1 -0
  18. package/dist/enums/errors.d.ts +17 -0
  19. package/dist/enums/errors.d.ts.map +1 -0
  20. package/dist/enums/errors.js +21 -0
  21. package/dist/enums/errors.js.map +1 -0
  22. package/dist/enums/news-filter-types.d.ts +5 -0
  23. package/dist/enums/news-filter-types.d.ts.map +1 -0
  24. package/dist/enums/news-filter-types.js +9 -0
  25. package/dist/enums/news-filter-types.js.map +1 -0
  26. package/dist/enums/notification-method.d.ts +6 -0
  27. package/dist/enums/notification-method.d.ts.map +1 -0
  28. package/dist/enums/notification-method.js +10 -0
  29. package/dist/enums/notification-method.js.map +1 -0
  30. package/dist/enums/rate-source.d.ts +8 -0
  31. package/dist/enums/rate-source.d.ts.map +1 -0
  32. package/dist/enums/rate-source.js +12 -0
  33. package/dist/enums/rate-source.js.map +1 -0
  34. package/dist/enums/roles.d.ts +5 -0
  35. package/dist/enums/roles.d.ts.map +1 -0
  36. package/dist/enums/roles.js +9 -0
  37. package/dist/enums/roles.js.map +1 -0
  38. package/dist/enums/subscriptions.d.ts +6 -0
  39. package/dist/enums/subscriptions.d.ts.map +1 -0
  40. package/dist/enums/subscriptions.js +10 -0
  41. package/dist/enums/subscriptions.js.map +1 -0
  42. package/dist/enums/treshold-condition.d.ts +6 -0
  43. package/dist/enums/treshold-condition.d.ts.map +1 -0
  44. package/dist/enums/treshold-condition.js +10 -0
  45. package/dist/enums/treshold-condition.js.map +1 -0
  46. package/dist/enums/trm-filter-date.d.ts +11 -0
  47. package/dist/enums/trm-filter-date.d.ts.map +1 -0
  48. package/dist/enums/trm-filter-date.js +15 -0
  49. package/dist/enums/trm-filter-date.js.map +1 -0
  50. package/dist/errors/BaseError.d.ts +8 -0
  51. package/dist/errors/BaseError.d.ts.map +1 -0
  52. package/dist/errors/BaseError.js +13 -0
  53. package/dist/errors/BaseError.js.map +1 -0
  54. package/dist/errors/BusinessError.d.ts +6 -0
  55. package/dist/errors/BusinessError.d.ts.map +1 -0
  56. package/dist/errors/BusinessError.js +17 -0
  57. package/dist/errors/BusinessError.js.map +1 -0
  58. package/dist/errors/ForbiddenError.d.ts +6 -0
  59. package/dist/errors/ForbiddenError.d.ts.map +1 -0
  60. package/dist/errors/ForbiddenError.js +17 -0
  61. package/dist/errors/ForbiddenError.js.map +1 -0
  62. package/dist/errors/NotFoundError.d.ts +6 -0
  63. package/dist/errors/NotFoundError.d.ts.map +1 -0
  64. package/dist/errors/NotFoundError.js +17 -0
  65. package/dist/errors/NotFoundError.js.map +1 -0
  66. package/dist/errors/ServerError.d.ts +6 -0
  67. package/dist/errors/ServerError.d.ts.map +1 -0
  68. package/dist/errors/ServerError.js +17 -0
  69. package/dist/errors/ServerError.js.map +1 -0
  70. package/dist/errors/UnauthorizedError.d.ts +6 -0
  71. package/dist/errors/UnauthorizedError.d.ts.map +1 -0
  72. package/dist/errors/UnauthorizedError.js +17 -0
  73. package/dist/errors/UnauthorizedError.js.map +1 -0
  74. package/dist/index.d.ts +59 -0
  75. package/dist/index.d.ts.map +1 -0
  76. package/dist/index.js +85 -0
  77. package/dist/index.js.map +1 -0
  78. package/dist/interfaces/entities/IAuditHistory.interface.d.ts +22 -0
  79. package/dist/interfaces/entities/IAuditHistory.interface.d.ts.map +1 -0
  80. package/dist/interfaces/entities/IAuditHistory.interface.js +3 -0
  81. package/dist/interfaces/entities/IAuditHistory.interface.js.map +1 -0
  82. package/dist/interfaces/entities/INew.interface.d.ts +25 -0
  83. package/dist/interfaces/entities/INew.interface.d.ts.map +1 -0
  84. package/dist/interfaces/entities/INew.interface.js +3 -0
  85. package/dist/interfaces/entities/INew.interface.js.map +1 -0
  86. package/dist/interfaces/entities/INewLike.interface.d.ts +7 -0
  87. package/dist/interfaces/entities/INewLike.interface.d.ts.map +1 -0
  88. package/dist/interfaces/entities/INewLike.interface.js +3 -0
  89. package/dist/interfaces/entities/INewLike.interface.js.map +1 -0
  90. package/dist/interfaces/entities/INotificationHistory.interface.d.ts +14 -0
  91. package/dist/interfaces/entities/INotificationHistory.interface.d.ts.map +1 -0
  92. package/dist/interfaces/entities/INotificationHistory.interface.js +3 -0
  93. package/dist/interfaces/entities/INotificationHistory.interface.js.map +1 -0
  94. package/dist/interfaces/entities/ISnapshotHistory.interface.d.ts +17 -0
  95. package/dist/interfaces/entities/ISnapshotHistory.interface.d.ts.map +1 -0
  96. package/dist/interfaces/entities/ISnapshotHistory.interface.js +3 -0
  97. package/dist/interfaces/entities/ISnapshotHistory.interface.js.map +1 -0
  98. package/dist/interfaces/entities/ISnapshotRate.inteface.d.ts +15 -0
  99. package/dist/interfaces/entities/ISnapshotRate.inteface.d.ts.map +1 -0
  100. package/dist/interfaces/entities/ISnapshotRate.inteface.js +3 -0
  101. package/dist/interfaces/entities/ISnapshotRate.inteface.js.map +1 -0
  102. package/dist/interfaces/entities/ISyncNewsChangelog.interface.d.ts +9 -0
  103. package/dist/interfaces/entities/ISyncNewsChangelog.interface.d.ts.map +1 -0
  104. package/dist/interfaces/entities/ISyncNewsChangelog.interface.js +3 -0
  105. package/dist/interfaces/entities/ISyncNewsChangelog.interface.js.map +1 -0
  106. package/dist/interfaces/entities/ISyncSnapshotRate.interface.d.ts +8 -0
  107. package/dist/interfaces/entities/ISyncSnapshotRate.interface.d.ts.map +1 -0
  108. package/dist/interfaces/entities/ISyncSnapshotRate.interface.js +3 -0
  109. package/dist/interfaces/entities/ISyncSnapshotRate.interface.js.map +1 -0
  110. package/dist/interfaces/entities/ISyncTrmChangelog.interface.d.ts +13 -0
  111. package/dist/interfaces/entities/ISyncTrmChangelog.interface.d.ts.map +1 -0
  112. package/dist/interfaces/entities/ISyncTrmChangelog.interface.js +3 -0
  113. package/dist/interfaces/entities/ISyncTrmChangelog.interface.js.map +1 -0
  114. package/dist/interfaces/entities/IThreshold.interface.d.ts +20 -0
  115. package/dist/interfaces/entities/IThreshold.interface.d.ts.map +1 -0
  116. package/dist/interfaces/entities/IThreshold.interface.js +3 -0
  117. package/dist/interfaces/entities/IThreshold.interface.js.map +1 -0
  118. package/dist/interfaces/entities/IThresholdSubscription.interface.d.ts +14 -0
  119. package/dist/interfaces/entities/IThresholdSubscription.interface.d.ts.map +1 -0
  120. package/dist/interfaces/entities/IThresholdSubscription.interface.js +3 -0
  121. package/dist/interfaces/entities/IThresholdSubscription.interface.js.map +1 -0
  122. package/dist/interfaces/entities/ITrmRate.interface.d.ts +14 -0
  123. package/dist/interfaces/entities/ITrmRate.interface.d.ts.map +1 -0
  124. package/dist/interfaces/entities/ITrmRate.interface.js +3 -0
  125. package/dist/interfaces/entities/ITrmRate.interface.js.map +1 -0
  126. package/dist/interfaces/entities/IUser.interface.d.ts +21 -0
  127. package/dist/interfaces/entities/IUser.interface.d.ts.map +1 -0
  128. package/dist/interfaces/entities/IUser.interface.js +3 -0
  129. package/dist/interfaces/entities/IUser.interface.js.map +1 -0
  130. package/dist/interfaces/general/IApiResponse.d.ts +9 -0
  131. package/dist/interfaces/general/IApiResponse.d.ts.map +1 -0
  132. package/dist/interfaces/general/IApiResponse.js +3 -0
  133. package/dist/interfaces/general/IApiResponse.js.map +1 -0
  134. package/dist/interfaces/general/IConfigServer.d.ts +22 -0
  135. package/dist/interfaces/general/IConfigServer.d.ts.map +1 -0
  136. package/dist/interfaces/general/IConfigServer.js +3 -0
  137. package/dist/interfaces/general/IConfigServer.js.map +1 -0
  138. package/dist/interfaces/general/ICrypt.d.ts +5 -0
  139. package/dist/interfaces/general/ICrypt.d.ts.map +1 -0
  140. package/dist/interfaces/general/ICrypt.js +3 -0
  141. package/dist/interfaces/general/ICrypt.js.map +1 -0
  142. package/dist/interfaces/general/IEmail.d.ts +23 -0
  143. package/dist/interfaces/general/IEmail.d.ts.map +1 -0
  144. package/dist/interfaces/general/IEmail.js +3 -0
  145. package/dist/interfaces/general/IEmail.js.map +1 -0
  146. package/dist/interfaces/general/IEmailTemplateOptions.d.ts +14 -0
  147. package/dist/interfaces/general/IEmailTemplateOptions.d.ts.map +1 -0
  148. package/dist/interfaces/general/IEmailTemplateOptions.js +3 -0
  149. package/dist/interfaces/general/IEmailTemplateOptions.js.map +1 -0
  150. package/dist/interfaces/general/IHealthCheckResponse.d.ts +6 -0
  151. package/dist/interfaces/general/IHealthCheckResponse.d.ts.map +1 -0
  152. package/dist/interfaces/general/IHealthCheckResponse.js +3 -0
  153. package/dist/interfaces/general/IHealthCheckResponse.js.map +1 -0
  154. package/dist/interfaces/general/IOtp.d.ts +4 -0
  155. package/dist/interfaces/general/IOtp.d.ts.map +1 -0
  156. package/dist/interfaces/general/IOtp.js +3 -0
  157. package/dist/interfaces/general/IOtp.js.map +1 -0
  158. package/dist/interfaces/general/IPaginatedResponse.d.ts +6 -0
  159. package/dist/interfaces/general/IPaginatedResponse.d.ts.map +1 -0
  160. package/dist/interfaces/general/IPaginatedResponse.js +3 -0
  161. package/dist/interfaces/general/IPaginatedResponse.js.map +1 -0
  162. package/dist/interfaces/general/IPagination.d.ts +7 -0
  163. package/dist/interfaces/general/IPagination.d.ts.map +1 -0
  164. package/dist/interfaces/general/IPagination.js +3 -0
  165. package/dist/interfaces/general/IPagination.js.map +1 -0
  166. package/dist/interfaces/general/IServerInit.d.ts +9 -0
  167. package/dist/interfaces/general/IServerInit.d.ts.map +1 -0
  168. package/dist/interfaces/general/IServerInit.js +3 -0
  169. package/dist/interfaces/general/IServerInit.js.map +1 -0
  170. package/dist/interfaces/general/IUuid.d.ts +4 -0
  171. package/dist/interfaces/general/IUuid.d.ts.map +1 -0
  172. package/dist/interfaces/general/IUuid.js +3 -0
  173. package/dist/interfaces/general/IUuid.js.map +1 -0
  174. package/dist/interfaces/repositories/IAudit-history.repository.d.ts +6 -0
  175. package/dist/interfaces/repositories/IAudit-history.repository.d.ts.map +1 -0
  176. package/dist/interfaces/repositories/IAudit-history.repository.js +3 -0
  177. package/dist/interfaces/repositories/IAudit-history.repository.js.map +1 -0
  178. package/dist/interfaces/repositories/INew-like.repository.d.ts +11 -0
  179. package/dist/interfaces/repositories/INew-like.repository.d.ts.map +1 -0
  180. package/dist/interfaces/repositories/INew-like.repository.js +3 -0
  181. package/dist/interfaces/repositories/INew-like.repository.js.map +1 -0
  182. package/dist/interfaces/repositories/INew.repository.d.ts +20 -0
  183. package/dist/interfaces/repositories/INew.repository.d.ts.map +1 -0
  184. package/dist/interfaces/repositories/INew.repository.js +3 -0
  185. package/dist/interfaces/repositories/INew.repository.js.map +1 -0
  186. package/dist/interfaces/repositories/INotification-history.repository.d.ts +5 -0
  187. package/dist/interfaces/repositories/INotification-history.repository.d.ts.map +1 -0
  188. package/dist/interfaces/repositories/INotification-history.repository.js +3 -0
  189. package/dist/interfaces/repositories/INotification-history.repository.js.map +1 -0
  190. package/dist/interfaces/repositories/ISnapshot-history.repository.d.ts +10 -0
  191. package/dist/interfaces/repositories/ISnapshot-history.repository.d.ts.map +1 -0
  192. package/dist/interfaces/repositories/ISnapshot-history.repository.js +3 -0
  193. package/dist/interfaces/repositories/ISnapshot-history.repository.js.map +1 -0
  194. package/dist/interfaces/repositories/ISnapshot-rate.repository.d.ts +21 -0
  195. package/dist/interfaces/repositories/ISnapshot-rate.repository.d.ts.map +1 -0
  196. package/dist/interfaces/repositories/ISnapshot-rate.repository.js +3 -0
  197. package/dist/interfaces/repositories/ISnapshot-rate.repository.js.map +1 -0
  198. package/dist/interfaces/repositories/ITreshold-subscription.repository.d.ts +17 -0
  199. package/dist/interfaces/repositories/ITreshold-subscription.repository.d.ts.map +1 -0
  200. package/dist/interfaces/repositories/ITreshold-subscription.repository.js +3 -0
  201. package/dist/interfaces/repositories/ITreshold-subscription.repository.js.map +1 -0
  202. package/dist/interfaces/repositories/ITreshold.repository.d.ts +14 -0
  203. package/dist/interfaces/repositories/ITreshold.repository.d.ts.map +1 -0
  204. package/dist/interfaces/repositories/ITreshold.repository.js +3 -0
  205. package/dist/interfaces/repositories/ITreshold.repository.js.map +1 -0
  206. package/dist/interfaces/repositories/ITrm-rate.repository.d.ts +15 -0
  207. package/dist/interfaces/repositories/ITrm-rate.repository.d.ts.map +1 -0
  208. package/dist/interfaces/repositories/ITrm-rate.repository.js +3 -0
  209. package/dist/interfaces/repositories/ITrm-rate.repository.js.map +1 -0
  210. package/dist/interfaces/repositories/IUser.repository.d.ts +11 -0
  211. package/dist/interfaces/repositories/IUser.repository.d.ts.map +1 -0
  212. package/dist/interfaces/repositories/IUser.repository.js +3 -0
  213. package/dist/interfaces/repositories/IUser.repository.js.map +1 -0
  214. package/dist/interfaces/services/IAuth.service.d.ts +18 -0
  215. package/dist/interfaces/services/IAuth.service.d.ts.map +1 -0
  216. package/dist/interfaces/services/IAuth.service.js +3 -0
  217. package/dist/interfaces/services/IAuth.service.js.map +1 -0
  218. package/dist/interfaces/services/INew.service.d.ts +32 -0
  219. package/dist/interfaces/services/INew.service.d.ts.map +1 -0
  220. package/dist/interfaces/services/INew.service.js +3 -0
  221. package/dist/interfaces/services/INew.service.js.map +1 -0
  222. package/dist/interfaces/services/ISnapshotRate.service.d.ts +8 -0
  223. package/dist/interfaces/services/ISnapshotRate.service.d.ts.map +1 -0
  224. package/dist/interfaces/services/ISnapshotRate.service.js +3 -0
  225. package/dist/interfaces/services/ISnapshotRate.service.js.map +1 -0
  226. package/dist/interfaces/services/ITreshold.service.d.ts +28 -0
  227. package/dist/interfaces/services/ITreshold.service.d.ts.map +1 -0
  228. package/dist/interfaces/services/ITreshold.service.js +3 -0
  229. package/dist/interfaces/services/ITreshold.service.js.map +1 -0
  230. package/dist/interfaces/services/ITrmRate.service.d.ts +20 -0
  231. package/dist/interfaces/services/ITrmRate.service.d.ts.map +1 -0
  232. package/dist/interfaces/services/ITrmRate.service.js +3 -0
  233. package/dist/interfaces/services/ITrmRate.service.js.map +1 -0
  234. package/dist/interfaces/services/IUser.service.d.ts +13 -0
  235. package/dist/interfaces/services/IUser.service.d.ts.map +1 -0
  236. package/dist/interfaces/services/IUser.service.js +3 -0
  237. package/dist/interfaces/services/IUser.service.js.map +1 -0
  238. package/package.json +37 -0
package/README.md ADDED
@@ -0,0 +1,131 @@
1
+ # @trm-market-pulse/shared-types
2
+
3
+ Shared types, enums, and interfaces for TRM Market Pulse projects.
4
+
5
+ ## Installation
6
+
7
+ This is a private package. You can install it using one of the following methods:
8
+
9
+ ### Option 1: Install from Git Repository (Recommended for Serverless Functions)
10
+
11
+ If you have a private Git repository (GitHub, GitLab, Bitbucket), you can install directly from it:
12
+
13
+ ```bash
14
+ # Using npm
15
+ npm install git+https://github.com/your-org/shared-types.git
16
+
17
+ # Using pnpm
18
+ pnpm add git+https://github.com/your-org/shared-types.git
19
+
20
+ # Using yarn
21
+ yarn add git+https://github.com/your-org/shared-types.git
22
+
23
+ # For a specific branch or tag
24
+ pnpm add git+https://github.com/your-org/shared-types.git#branch-name
25
+ pnpm add git+https://github.com/your-org/shared-types.git#v1.0.0
26
+ ```
27
+
28
+ **For serverless functions**, this is the recommended approach as it works seamlessly during deployment.
29
+
30
+ ### Option 2: Install from Private npm Registry
31
+
32
+ If you're using a private npm registry (GitHub Packages, npm Enterprise, etc.):
33
+
34
+ 1. **Publish the package** to your registry:
35
+ ```bash
36
+ npm publish --registry=https://npm.pkg.github.com
37
+ ```
38
+
39
+ 2. **Configure authentication** in your `.npmrc` or serverless environment:
40
+ ```
41
+ @trm-market-pulse:registry=https://npm.pkg.github.com
42
+ //npm.pkg.github.com/:_authToken=YOUR_TOKEN
43
+ ```
44
+
45
+ 3. **Install the package**:
46
+ ```bash
47
+ npm install @trm-market-pulse/shared-types
48
+ ```
49
+
50
+ ### Option 3: Install from Local Path (Development)
51
+
52
+ For local development, you can link the package:
53
+
54
+ ```bash
55
+ # In the shared-types package directory
56
+ pnpm link
57
+
58
+ # In your project directory
59
+ pnpm link @trm-market-pulse/shared-types
60
+ ```
61
+
62
+ ## Usage
63
+
64
+ ```typescript
65
+ // Import everything
66
+ import {
67
+ Currencies,
68
+ RateSource,
69
+ IUser,
70
+ ITrmRate,
71
+ BaseError,
72
+ BusinessError
73
+ } from '@trm-market-pulse/shared-types';
74
+
75
+ // Or import specific modules
76
+ import { Currencies } from '@trm-market-pulse/shared-types';
77
+ import { IUser } from '@trm-market-pulse/shared-types';
78
+ ```
79
+
80
+ ## Development
81
+
82
+ ### Building
83
+
84
+ ```bash
85
+ pnpm install
86
+ pnpm build
87
+ ```
88
+
89
+ This will compile TypeScript files to the `dist` directory.
90
+
91
+ ### Publishing
92
+
93
+ Before publishing, make sure to:
94
+
95
+ 1. Update the version in `package.json`
96
+ 2. Build the package: `pnpm build`
97
+ 3. Publish to your registry or push to Git
98
+
99
+ ## Structure
100
+
101
+ - `enums/` - TypeScript enums
102
+ - `errors/` - Custom error classes
103
+ - `interfaces/entities/` - Entity interfaces
104
+ - `interfaces/general/` - General utility interfaces
105
+ - `interfaces/repositories/` - Repository interfaces
106
+ - `interfaces/services/` - Service interfaces
107
+
108
+ ## Serverless Functions Setup
109
+
110
+ For serverless functions (AWS Lambda, Vercel, etc.), ensure your deployment configuration can access the Git repository:
111
+
112
+ ### AWS Lambda / Serverless Framework
113
+
114
+ Add to your `serverless.yml`:
115
+ ```yaml
116
+ package:
117
+ patterns:
118
+ - '!node_modules/**'
119
+ - 'node_modules/@trm-market-pulse/shared-types/**'
120
+ ```
121
+
122
+ ### Vercel
123
+
124
+ Vercel automatically installs dependencies from Git during build. Make sure your repository is accessible and the build has the necessary permissions.
125
+
126
+ ### Environment Variables
127
+
128
+ If using a private npm registry, set these in your serverless environment:
129
+ - `NPM_TOKEN` - Your npm authentication token
130
+ - `NPM_REGISTRY` - Your private registry URL (if different from default)
131
+
@@ -0,0 +1,19 @@
1
+ export declare enum AuditTypes {
2
+ USER_EMAIL_VERIFIED = "USER_EMAIL_VERIFIED",
3
+ USER_CREATED = "USER_CREATED",
4
+ USER_UPDATED = "USER_UPDATED",
5
+ USER_DELETED = "USER_DELETED",
6
+ USER_PASSWORD_UPDATED = "USER_PASSWORD_UPDATED",
7
+ USER_PASSWORD_RECOVERY = "USER_PASSWORD_RECOVERY",
8
+ USER_PASSWORD_RECOVERY_VERIFIED = "USER_PASSWORD_RECOVERY_VERIFIED",
9
+ USER_PASSWORD_RECOVERY_FAILED = "USER_PASSWORD_RECOVERY_FAILED",
10
+ USER_PASSWORD_RECOVERY_EXPIRED = "USER_PASSWORD_RECOVERY_EXPIRED",
11
+ USER_PASSWORD_RECOVERY_NOT_FOUND = "USER_PASSWORD_RECOVERY_NOT_FOUND",
12
+ USER_SIGN_UP_FAILED = "USER_SIGN_UP_FAILED",
13
+ USER_SIGN_IN_FAILED = "USER_SIGN_IN_FAILED",
14
+ USER_SIGN_OUT_FAILED = "USER_SIGN_OUT_FAILED",
15
+ USER_SIGN_UP_SUCCESS = "USER_SIGN_UP_SUCCESS",
16
+ USER_SIGN_IN_SUCCESS = "USER_SIGN_IN_SUCCESS",
17
+ USER_SIGN_OUT_SUCCESS = "USER_SIGN_OUT_SUCCESS"
18
+ }
19
+ //# sourceMappingURL=audit-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-types.d.ts","sourceRoot":"","sources":["../../src/enums/audit-types.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,mBAAmB,wBAAwB;IAC3C,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,qBAAqB,0BAA0B;IAC/C,sBAAsB,2BAA2B;IACjD,+BAA+B,oCAAoC;IACnE,6BAA6B,kCAAkC;IAC/D,8BAA8B,mCAAmC;IACjE,gCAAgC,qCAAqC;IACrE,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAC3C,oBAAoB,yBAAyB;IAC7C,oBAAoB,yBAAyB;IAC7C,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;CAChD"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuditTypes = void 0;
4
+ var AuditTypes;
5
+ (function (AuditTypes) {
6
+ AuditTypes["USER_EMAIL_VERIFIED"] = "USER_EMAIL_VERIFIED";
7
+ AuditTypes["USER_CREATED"] = "USER_CREATED";
8
+ AuditTypes["USER_UPDATED"] = "USER_UPDATED";
9
+ AuditTypes["USER_DELETED"] = "USER_DELETED";
10
+ AuditTypes["USER_PASSWORD_UPDATED"] = "USER_PASSWORD_UPDATED";
11
+ AuditTypes["USER_PASSWORD_RECOVERY"] = "USER_PASSWORD_RECOVERY";
12
+ AuditTypes["USER_PASSWORD_RECOVERY_VERIFIED"] = "USER_PASSWORD_RECOVERY_VERIFIED";
13
+ AuditTypes["USER_PASSWORD_RECOVERY_FAILED"] = "USER_PASSWORD_RECOVERY_FAILED";
14
+ AuditTypes["USER_PASSWORD_RECOVERY_EXPIRED"] = "USER_PASSWORD_RECOVERY_EXPIRED";
15
+ AuditTypes["USER_PASSWORD_RECOVERY_NOT_FOUND"] = "USER_PASSWORD_RECOVERY_NOT_FOUND";
16
+ AuditTypes["USER_SIGN_UP_FAILED"] = "USER_SIGN_UP_FAILED";
17
+ AuditTypes["USER_SIGN_IN_FAILED"] = "USER_SIGN_IN_FAILED";
18
+ AuditTypes["USER_SIGN_OUT_FAILED"] = "USER_SIGN_OUT_FAILED";
19
+ AuditTypes["USER_SIGN_UP_SUCCESS"] = "USER_SIGN_UP_SUCCESS";
20
+ AuditTypes["USER_SIGN_IN_SUCCESS"] = "USER_SIGN_IN_SUCCESS";
21
+ AuditTypes["USER_SIGN_OUT_SUCCESS"] = "USER_SIGN_OUT_SUCCESS";
22
+ })(AuditTypes || (exports.AuditTypes = AuditTypes = {}));
23
+ //# sourceMappingURL=audit-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-types.js","sourceRoot":"","sources":["../../src/enums/audit-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAiBX;AAjBD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,2CAA6B,CAAA;IAC7B,2CAA6B,CAAA;IAC7B,2CAA6B,CAAA;IAC7B,6DAA+C,CAAA;IAC/C,+DAAiD,CAAA;IACjD,iFAAmE,CAAA;IACnE,6EAA+D,CAAA;IAC/D,+EAAiE,CAAA;IACjE,mFAAqE,CAAA;IACrE,yDAA2C,CAAA;IAC3C,yDAA2C,CAAA;IAC3C,2DAA6C,CAAA;IAC7C,2DAA6C,CAAA;IAC7C,2DAA6C,CAAA;IAC7C,6DAA+C,CAAA;AACjD,CAAC,EAjBW,UAAU,0BAAV,UAAU,QAiBrB"}
@@ -0,0 +1,12 @@
1
+ export declare enum CacheKeys {
2
+ RECOVERY_PASSWORD = "recovery_password_",
3
+ OTP_VERIFICATION = "otp_verification_",
4
+ CURRENT_TRM = "current_trm",
5
+ CURRENT_TRM_OPEN_VALUE = "current_trm_open_value",
6
+ CURRENT_TRM_PERCENTAGE_CHANGE = "current_trm_percentage_change",
7
+ CURRENT_TRM_VALUES = "current_trm_values",
8
+ CURRENT_SNAPSHOT_HISTORY = "current_snapshot_history",
9
+ EMAIL_VERIFICATION = "email_verification_",
10
+ POPULAR_THRESHOLDS = "popular_thresholds"
11
+ }
12
+ //# sourceMappingURL=cache-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-keys.d.ts","sourceRoot":"","sources":["../../src/enums/cache-keys.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,iBAAiB,uBAAuB;IACxC,gBAAgB,sBAAsB;IACtC,WAAW,gBAAgB;IAC3B,sBAAsB,2BAA2B;IACjD,6BAA6B,kCAAkC;IAC/D,kBAAkB,uBAAuB;IACzC,wBAAwB,6BAA6B;IACrD,kBAAkB,wBAAwB;IAC1C,kBAAkB,uBAAuB;CAC1C"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CacheKeys = void 0;
4
+ var CacheKeys;
5
+ (function (CacheKeys) {
6
+ CacheKeys["RECOVERY_PASSWORD"] = "recovery_password_";
7
+ CacheKeys["OTP_VERIFICATION"] = "otp_verification_";
8
+ CacheKeys["CURRENT_TRM"] = "current_trm";
9
+ CacheKeys["CURRENT_TRM_OPEN_VALUE"] = "current_trm_open_value";
10
+ CacheKeys["CURRENT_TRM_PERCENTAGE_CHANGE"] = "current_trm_percentage_change";
11
+ CacheKeys["CURRENT_TRM_VALUES"] = "current_trm_values";
12
+ CacheKeys["CURRENT_SNAPSHOT_HISTORY"] = "current_snapshot_history";
13
+ CacheKeys["EMAIL_VERIFICATION"] = "email_verification_";
14
+ CacheKeys["POPULAR_THRESHOLDS"] = "popular_thresholds";
15
+ })(CacheKeys || (exports.CacheKeys = CacheKeys = {}));
16
+ //# sourceMappingURL=cache-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-keys.js","sourceRoot":"","sources":["../../src/enums/cache-keys.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,qDAAwC,CAAA;IACxC,mDAAsC,CAAA;IACtC,wCAA2B,CAAA;IAC3B,8DAAiD,CAAA;IACjD,4EAA+D,CAAA;IAC/D,sDAAyC,CAAA;IACzC,kEAAqD,CAAA;IACrD,uDAA0C,CAAA;IAC1C,sDAAyC,CAAA;AAC3C,CAAC,EAVW,SAAS,yBAAT,SAAS,QAUpB"}
@@ -0,0 +1,16 @@
1
+ export declare enum Collections {
2
+ TRM_RATES = "trm_rates",
3
+ NEWS = "news",
4
+ NEWS_LIKES = "news_likes",
5
+ SYNC_TRM_CHANGELOG = "sync_trm_changelog",
6
+ SYNC_NEWS_CHANGELOG = "sync_news_changelog",
7
+ SNAPSHOTS_RATES = "snapshots_rates",
8
+ SYNC_SNAPSHOTS_RATES_CHANGELOG = "sync_snapshots_rates_changelog",
9
+ USERS = "users",
10
+ THRESHOLDS = "thresholds",
11
+ THRESHOLD_SUBSCRIPTIONS = "threshold_subscriptions",
12
+ NOTIFICATION_HISTORY = "notification_history",
13
+ SNAPSHOTS_HISTORY = "snapshots_history",
14
+ AUDIT_HISTORY = "audit_history"
15
+ }
16
+ //# sourceMappingURL=collections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/enums/collections.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,mBAAmB,wBAAwB;IAC3C,eAAe,oBAAoB;IACnC,8BAA8B,mCAAmC;IACjE,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,uBAAuB,4BAA4B;IACnD,oBAAoB,yBAAyB;IAC7C,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;CAChC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Collections = void 0;
4
+ var Collections;
5
+ (function (Collections) {
6
+ Collections["TRM_RATES"] = "trm_rates";
7
+ Collections["NEWS"] = "news";
8
+ Collections["NEWS_LIKES"] = "news_likes";
9
+ Collections["SYNC_TRM_CHANGELOG"] = "sync_trm_changelog";
10
+ Collections["SYNC_NEWS_CHANGELOG"] = "sync_news_changelog";
11
+ Collections["SNAPSHOTS_RATES"] = "snapshots_rates";
12
+ Collections["SYNC_SNAPSHOTS_RATES_CHANGELOG"] = "sync_snapshots_rates_changelog";
13
+ Collections["USERS"] = "users";
14
+ Collections["THRESHOLDS"] = "thresholds";
15
+ Collections["THRESHOLD_SUBSCRIPTIONS"] = "threshold_subscriptions";
16
+ Collections["NOTIFICATION_HISTORY"] = "notification_history";
17
+ Collections["SNAPSHOTS_HISTORY"] = "snapshots_history";
18
+ Collections["AUDIT_HISTORY"] = "audit_history";
19
+ })(Collections || (exports.Collections = Collections = {}));
20
+ //# sourceMappingURL=collections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/enums/collections.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAcX;AAdD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,4BAAa,CAAA;IACb,wCAAyB,CAAA;IACzB,wDAAyC,CAAA;IACzC,0DAA2C,CAAA;IAC3C,kDAAmC,CAAA;IACnC,gFAAiE,CAAA;IACjE,8BAAe,CAAA;IACf,wCAAyB,CAAA;IACzB,kEAAmD,CAAA;IACnD,4DAA6C,CAAA;IAC7C,sDAAuC,CAAA;IACvC,8CAA+B,CAAA;AACjC,CAAC,EAdW,WAAW,2BAAX,WAAW,QActB"}
@@ -0,0 +1,5 @@
1
+ export declare enum Currencies {
2
+ USD = "USD",
3
+ COP = "COP"
4
+ }
5
+ //# sourceMappingURL=currencies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currencies.d.ts","sourceRoot":"","sources":["../../src/enums/currencies.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Currencies = void 0;
4
+ var Currencies;
5
+ (function (Currencies) {
6
+ Currencies["USD"] = "USD";
7
+ Currencies["COP"] = "COP";
8
+ })(Currencies || (exports.Currencies = Currencies = {}));
9
+ //# sourceMappingURL=currencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currencies.js","sourceRoot":"","sources":["../../src/enums/currencies.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,yBAAW,CAAA;AACb,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB"}
@@ -0,0 +1,17 @@
1
+ export declare enum Errors {
2
+ NOT_FOUND_ERROR = "NotFoundError",
3
+ BUSINESS_ERROR = "BusinessError",
4
+ FORBIDDEN_ERROR = "ForbiddenError",
5
+ SERVER_ERROR = "ServerError",
6
+ UNAUTHORIZED_ERROR = "UnauthorizedError",
7
+ BAD_REQUEST_ERROR = "BadRequestError",
8
+ UNPROCESSABLE_ENTITY_ERROR = "UnprocessableEntityError",
9
+ TOO_MANY_REQUESTS_ERROR = "TooManyRequestsError",
10
+ INTERNAL_SERVER_ERROR = "InternalServerError",
11
+ SERVICE_UNAVAILABLE_ERROR = "ServiceUnavailableError",
12
+ GATEWAY_TIMEOUT_ERROR = "GatewayTimeoutError",
13
+ BAD_GATEWAY_ERROR = "BadGatewayError",
14
+ PRECONDITION_FAILED_ERROR = "PreconditionFailedError",
15
+ PAYLOAD_TOO_LARGE_ERROR = "PayloadTooLargeError"
16
+ }
17
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/enums/errors.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM;IAChB,eAAe,kBAAkB;IACjC,cAAc,kBAAkB;IAChC,eAAe,mBAAmB;IAClC,YAAY,gBAAgB;IAC5B,kBAAkB,sBAAsB;IACxC,iBAAiB,oBAAoB;IACrC,0BAA0B,6BAA6B;IACvD,uBAAuB,yBAAyB;IAChD,qBAAqB,wBAAwB;IAC7C,yBAAyB,4BAA4B;IACrD,qBAAqB,wBAAwB;IAC7C,iBAAiB,oBAAoB;IACrC,yBAAyB,4BAA4B;IACrD,uBAAuB,yBAAyB;CACjD"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Errors = void 0;
4
+ var Errors;
5
+ (function (Errors) {
6
+ Errors["NOT_FOUND_ERROR"] = "NotFoundError";
7
+ Errors["BUSINESS_ERROR"] = "BusinessError";
8
+ Errors["FORBIDDEN_ERROR"] = "ForbiddenError";
9
+ Errors["SERVER_ERROR"] = "ServerError";
10
+ Errors["UNAUTHORIZED_ERROR"] = "UnauthorizedError";
11
+ Errors["BAD_REQUEST_ERROR"] = "BadRequestError";
12
+ Errors["UNPROCESSABLE_ENTITY_ERROR"] = "UnprocessableEntityError";
13
+ Errors["TOO_MANY_REQUESTS_ERROR"] = "TooManyRequestsError";
14
+ Errors["INTERNAL_SERVER_ERROR"] = "InternalServerError";
15
+ Errors["SERVICE_UNAVAILABLE_ERROR"] = "ServiceUnavailableError";
16
+ Errors["GATEWAY_TIMEOUT_ERROR"] = "GatewayTimeoutError";
17
+ Errors["BAD_GATEWAY_ERROR"] = "BadGatewayError";
18
+ Errors["PRECONDITION_FAILED_ERROR"] = "PreconditionFailedError";
19
+ Errors["PAYLOAD_TOO_LARGE_ERROR"] = "PayloadTooLargeError";
20
+ })(Errors || (exports.Errors = Errors = {}));
21
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/enums/errors.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAeX;AAfD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,0CAAgC,CAAA;IAChC,4CAAkC,CAAA;IAClC,sCAA4B,CAAA;IAC5B,kDAAwC,CAAA;IACxC,+CAAqC,CAAA;IACrC,iEAAuD,CAAA;IACvD,0DAAgD,CAAA;IAChD,uDAA6C,CAAA;IAC7C,+DAAqD,CAAA;IACrD,uDAA6C,CAAA;IAC7C,+CAAqC,CAAA;IACrC,+DAAqD,CAAA;IACrD,0DAAgD,CAAA;AAClD,CAAC,EAfW,MAAM,sBAAN,MAAM,QAejB"}
@@ -0,0 +1,5 @@
1
+ export declare enum NewsFilterTypes {
2
+ LATEST = "latest",
3
+ TRENDING = "trending"
4
+ }
5
+ //# sourceMappingURL=news-filter-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"news-filter-types.d.ts","sourceRoot":"","sources":["../../src/enums/news-filter-types.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NewsFilterTypes = void 0;
4
+ var NewsFilterTypes;
5
+ (function (NewsFilterTypes) {
6
+ NewsFilterTypes["LATEST"] = "latest";
7
+ NewsFilterTypes["TRENDING"] = "trending";
8
+ })(NewsFilterTypes || (exports.NewsFilterTypes = NewsFilterTypes = {}));
9
+ //# sourceMappingURL=news-filter-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"news-filter-types.js","sourceRoot":"","sources":["../../src/enums/news-filter-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
@@ -0,0 +1,6 @@
1
+ export declare enum NotificationMethod {
2
+ EMAIL = "EMAIL",
3
+ PUSH = "PUSH",
4
+ SMS = "SMS"
5
+ }
6
+ //# sourceMappingURL=notification-method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-method.d.ts","sourceRoot":"","sources":["../../src/enums/notification-method.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationMethod = void 0;
4
+ var NotificationMethod;
5
+ (function (NotificationMethod) {
6
+ NotificationMethod["EMAIL"] = "EMAIL";
7
+ NotificationMethod["PUSH"] = "PUSH";
8
+ NotificationMethod["SMS"] = "SMS";
9
+ })(NotificationMethod || (exports.NotificationMethod = NotificationMethod = {}));
10
+ //# sourceMappingURL=notification-method.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-method.js","sourceRoot":"","sources":["../../src/enums/notification-method.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,mCAAa,CAAA;IACb,iCAAW,CAAA;AACb,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
@@ -0,0 +1,8 @@
1
+ export declare enum RateSource {
2
+ GOOGLE_FINANCE = "GOOGLE_FINANCE",
3
+ MASSIVE_NEWS = "MASSIVE_NEWS",
4
+ BANREP_COL = "BANREP_COL",
5
+ YAHOO_FINANCE = "YAHOO_FINANCE",
6
+ WILKINSONPC = "WILKINSONPC"
7
+ }
8
+ //# sourceMappingURL=rate-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rate-source.d.ts","sourceRoot":"","sources":["../../src/enums/rate-source.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;CAC5B"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RateSource = void 0;
4
+ var RateSource;
5
+ (function (RateSource) {
6
+ RateSource["GOOGLE_FINANCE"] = "GOOGLE_FINANCE";
7
+ RateSource["MASSIVE_NEWS"] = "MASSIVE_NEWS";
8
+ RateSource["BANREP_COL"] = "BANREP_COL";
9
+ RateSource["YAHOO_FINANCE"] = "YAHOO_FINANCE";
10
+ RateSource["WILKINSONPC"] = "WILKINSONPC";
11
+ })(RateSource || (exports.RateSource = RateSource = {}));
12
+ //# sourceMappingURL=rate-source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rate-source.js","sourceRoot":"","sources":["../../src/enums/rate-source.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,+CAAiC,CAAA;IACjC,2CAA6B,CAAA;IAC7B,uCAAyB,CAAA;IACzB,6CAA+B,CAAA;IAC/B,yCAA2B,CAAA;AAC7B,CAAC,EANW,UAAU,0BAAV,UAAU,QAMrB"}
@@ -0,0 +1,5 @@
1
+ export declare enum Roles {
2
+ ADMIN = "ADMIN",
3
+ USER = "USER"
4
+ }
5
+ //# sourceMappingURL=roles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/enums/roles.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Roles = void 0;
4
+ var Roles;
5
+ (function (Roles) {
6
+ Roles["ADMIN"] = "ADMIN";
7
+ Roles["USER"] = "USER";
8
+ })(Roles || (exports.Roles = Roles = {}));
9
+ //# sourceMappingURL=roles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.js","sourceRoot":"","sources":["../../src/enums/roles.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAGX;AAHD,WAAY,KAAK;IACf,wBAAe,CAAA;IACf,sBAAa,CAAA;AACf,CAAC,EAHW,KAAK,qBAAL,KAAK,QAGhB"}
@@ -0,0 +1,6 @@
1
+ export declare enum Subscriptions {
2
+ FREE = "FREE",
3
+ PRO = "PRO",
4
+ ENTERPRISE = "ENTERPRISE"
5
+ }
6
+ //# sourceMappingURL=subscriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/enums/subscriptions.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,UAAU,eAAe;CAC1B"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Subscriptions = void 0;
4
+ var Subscriptions;
5
+ (function (Subscriptions) {
6
+ Subscriptions["FREE"] = "FREE";
7
+ Subscriptions["PRO"] = "PRO";
8
+ Subscriptions["ENTERPRISE"] = "ENTERPRISE";
9
+ })(Subscriptions || (exports.Subscriptions = Subscriptions = {}));
10
+ //# sourceMappingURL=subscriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/enums/subscriptions.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,0CAAyB,CAAA;AAC3B,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
@@ -0,0 +1,6 @@
1
+ export declare enum TresholdCondition {
2
+ ABOVE = "above",
3
+ BELOW = "below",
4
+ EQUAL = "equal"
5
+ }
6
+ //# sourceMappingURL=treshold-condition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"treshold-condition.d.ts","sourceRoot":"","sources":["../../src/enums/treshold-condition.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;CAChB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TresholdCondition = void 0;
4
+ var TresholdCondition;
5
+ (function (TresholdCondition) {
6
+ TresholdCondition["ABOVE"] = "above";
7
+ TresholdCondition["BELOW"] = "below";
8
+ TresholdCondition["EQUAL"] = "equal";
9
+ })(TresholdCondition || (exports.TresholdCondition = TresholdCondition = {}));
10
+ //# sourceMappingURL=treshold-condition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"treshold-condition.js","sourceRoot":"","sources":["../../src/enums/treshold-condition.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,oCAAe,CAAA;IACf,oCAAe,CAAA;AACjB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}
@@ -0,0 +1,11 @@
1
+ export declare enum TrmFilterDate {
2
+ ONE_DAY = "1d",
3
+ THREE_DAYS = "3d",
4
+ FIVE_DAYS = "5d",
5
+ FIFTEEN_DAYS = "15d",
6
+ THIRTY_DAYS = "30d",
7
+ NINETY_DAYS = "90d",
8
+ ONE_HUNDRED_EIGHTY_DAYS = "180d",
9
+ THREE_HUNDRED_SIXTY_DAYS = "360d"
10
+ }
11
+ //# sourceMappingURL=trm-filter-date.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trm-filter-date.d.ts","sourceRoot":"","sources":["../../src/enums/trm-filter-date.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,OAAO;IACd,UAAU,OAAO;IACjB,SAAS,OAAO;IAChB,YAAY,QAAQ;IACpB,WAAW,QAAQ;IACnB,WAAW,QAAQ;IACnB,uBAAuB,SAAS;IAChC,wBAAwB,SAAS;CAClC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TrmFilterDate = void 0;
4
+ var TrmFilterDate;
5
+ (function (TrmFilterDate) {
6
+ TrmFilterDate["ONE_DAY"] = "1d";
7
+ TrmFilterDate["THREE_DAYS"] = "3d";
8
+ TrmFilterDate["FIVE_DAYS"] = "5d";
9
+ TrmFilterDate["FIFTEEN_DAYS"] = "15d";
10
+ TrmFilterDate["THIRTY_DAYS"] = "30d";
11
+ TrmFilterDate["NINETY_DAYS"] = "90d";
12
+ TrmFilterDate["ONE_HUNDRED_EIGHTY_DAYS"] = "180d";
13
+ TrmFilterDate["THREE_HUNDRED_SIXTY_DAYS"] = "360d";
14
+ })(TrmFilterDate || (exports.TrmFilterDate = TrmFilterDate = {}));
15
+ //# sourceMappingURL=trm-filter-date.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trm-filter-date.js","sourceRoot":"","sources":["../../src/enums/trm-filter-date.ts"],"names":[],"mappings":";;;AAAA,IAAY,aASX;AATD,WAAY,aAAa;IACvB,+BAAc,CAAA;IACd,kCAAiB,CAAA;IACjB,iCAAgB,CAAA;IAChB,qCAAoB,CAAA;IACpB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,iDAAgC,CAAA;IAChC,kDAAiC,CAAA;AACnC,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB"}
@@ -0,0 +1,8 @@
1
+ export default class BaseError extends Error {
2
+ details?: Record<string, unknown>;
3
+ toErrorRecord(): {
4
+ error: string;
5
+ details?: unknown;
6
+ };
7
+ }
8
+ //# sourceMappingURL=BaseError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseError.d.ts","sourceRoot":"","sources":["../../src/errors/BaseError.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,KAAK;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,aAAa,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE;CAO7D"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class BaseError extends Error {
4
+ toErrorRecord() {
5
+ const obj = { error: this.message };
6
+ if (this.details) {
7
+ obj.details = this.details;
8
+ }
9
+ return obj;
10
+ }
11
+ }
12
+ exports.default = BaseError;
13
+ //# sourceMappingURL=BaseError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseError.js","sourceRoot":"","sources":["../../src/errors/BaseError.ts"],"names":[],"mappings":";;AAAA,MAAqB,SAAU,SAAQ,KAAK;IAEnC,aAAa;QAClB,MAAM,GAAG,GAAyC,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;QAC1E,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AATD,4BASC"}
@@ -0,0 +1,6 @@
1
+ import BaseError from './BaseError';
2
+ export default class BusinessError extends BaseError {
3
+ details?: Record<string, unknown>;
4
+ constructor(message: string, details?: Record<string, unknown>);
5
+ }
6
+ //# sourceMappingURL=BusinessError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BusinessError.d.ts","sourceRoot":"","sources":["../../src/errors/BusinessError.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAGpC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACtB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtE"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const BaseError_1 = __importDefault(require("./BaseError"));
7
+ const errors_1 = require("../enums/errors");
8
+ class BusinessError extends BaseError_1.default {
9
+ constructor(message, details) {
10
+ super(message);
11
+ this.name = errors_1.Errors.BUSINESS_ERROR;
12
+ this.details = details || {};
13
+ Object.setPrototypeOf(this, BusinessError.prototype);
14
+ }
15
+ }
16
+ exports.default = BusinessError;
17
+ //# sourceMappingURL=BusinessError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BusinessError.js","sourceRoot":"","sources":["../../src/errors/BusinessError.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AACpC,4CAAyC;AAEzC,MAAqB,aAAc,SAAQ,mBAAS;IAElD,YAAmB,OAAe,EAAE,OAAiC;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAM,CAAC,cAAc,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;CACF;AARD,gCAQC"}
@@ -0,0 +1,6 @@
1
+ import BaseError from './BaseError';
2
+ export default class ForbiddenError extends BaseError {
3
+ details?: Record<string, unknown>;
4
+ constructor(message: string, details?: Record<string, unknown>);
5
+ }
6
+ //# sourceMappingURL=ForbiddenError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForbiddenError.d.ts","sourceRoot":"","sources":["../../src/errors/ForbiddenError.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAGpC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,SAAS;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACtB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtE"}