@laboratory-one/api-components 0.0.24 → 0.0.26

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 (298) hide show
  1. package/dist/src/ability/ability.factory.d.ts +5 -0
  2. package/dist/src/ability/ability.factory.d.ts.map +1 -0
  3. package/dist/src/ability/ability.factory.js +22 -0
  4. package/dist/src/ability/ability.factory.js.map +1 -0
  5. package/dist/src/ability/ability.module.d.ts +3 -0
  6. package/dist/src/ability/ability.module.d.ts.map +1 -0
  7. package/dist/src/ability/ability.module.js +16 -0
  8. package/dist/src/ability/ability.module.js.map +1 -0
  9. package/dist/src/ability/ability.util.d.ts +7 -0
  10. package/dist/src/ability/ability.util.d.ts.map +1 -0
  11. package/dist/src/ability/ability.util.js +30 -0
  12. package/dist/src/ability/ability.util.js.map +1 -0
  13. package/dist/src/ability/action.enum.d.ts +9 -0
  14. package/dist/src/ability/action.enum.d.ts.map +1 -0
  15. package/dist/src/ability/action.enum.js +11 -0
  16. package/dist/src/ability/action.enum.js.map +1 -0
  17. package/dist/src/ability/app-ability.type.d.ts +7 -0
  18. package/dist/src/ability/app-ability.type.d.ts.map +1 -0
  19. package/dist/src/ability/app-ability.type.js +3 -0
  20. package/dist/src/ability/app-ability.type.js.map +1 -0
  21. package/dist/src/ability/index.d.ts +7 -0
  22. package/dist/src/ability/index.d.ts.map +1 -0
  23. package/dist/src/ability/index.js +10 -0
  24. package/dist/src/ability/index.js.map +1 -0
  25. package/dist/src/ability/services.enum.d.ts +7 -0
  26. package/dist/src/ability/services.enum.d.ts.map +1 -0
  27. package/dist/src/ability/services.enum.js +9 -0
  28. package/dist/src/ability/services.enum.js.map +1 -0
  29. package/dist/src/cron/cron.module.d.ts.map +1 -0
  30. package/dist/src/cron/cron.module.js.map +1 -0
  31. package/dist/src/cron/cron.service.d.ts.map +1 -0
  32. package/dist/src/cron/cron.service.js.map +1 -0
  33. package/dist/src/cron/cron.util.d.ts.map +1 -0
  34. package/dist/src/cron/cron.util.js.map +1 -0
  35. package/dist/src/cron/index.d.ts.map +1 -0
  36. package/dist/src/cron/index.js.map +1 -0
  37. package/dist/src/decorator/index.d.ts +3 -0
  38. package/dist/src/decorator/index.d.ts.map +1 -0
  39. package/dist/src/decorator/index.js +6 -0
  40. package/dist/src/decorator/index.js.map +1 -0
  41. package/dist/src/decorator/policies.decorator.d.ts +4 -0
  42. package/dist/src/decorator/policies.decorator.d.ts.map +1 -0
  43. package/dist/src/decorator/policies.decorator.js +8 -0
  44. package/dist/src/decorator/policies.decorator.js.map +1 -0
  45. package/dist/src/decorator/policies.handler.d.ts +9 -0
  46. package/dist/src/decorator/policies.handler.d.ts.map +1 -0
  47. package/dist/src/decorator/policies.handler.js +14 -0
  48. package/dist/src/decorator/policies.handler.js.map +1 -0
  49. package/dist/src/enums/humanDay.enum.d.ts.map +1 -0
  50. package/dist/src/enums/humanDay.enum.js.map +1 -0
  51. package/dist/src/enums/index.d.ts.map +1 -0
  52. package/dist/src/enums/index.js.map +1 -0
  53. package/dist/src/enums/serverDay.enum.d.ts.map +1 -0
  54. package/dist/src/enums/serverDay.enum.js.map +1 -0
  55. package/dist/src/guard/auth.guard.d.ts.map +1 -0
  56. package/dist/src/guard/auth.guard.js.map +1 -0
  57. package/dist/src/guard/index.d.ts +3 -0
  58. package/dist/src/guard/index.d.ts.map +1 -0
  59. package/{src → dist/src}/guard/index.js +1 -0
  60. package/dist/src/guard/index.js.map +1 -0
  61. package/dist/src/guard/policies.guard.d.ts +11 -0
  62. package/dist/src/guard/policies.guard.d.ts.map +1 -0
  63. package/dist/src/guard/policies.guard.js +44 -0
  64. package/dist/src/guard/policies.guard.js.map +1 -0
  65. package/dist/src/health/dtos/health.response.dto.d.ts.map +1 -0
  66. package/dist/src/health/dtos/health.response.dto.js.map +1 -0
  67. package/dist/src/health/dtos/index.d.ts.map +1 -0
  68. package/dist/src/health/dtos/index.js.map +1 -0
  69. package/dist/src/health/health.controller.d.ts.map +1 -0
  70. package/dist/src/health/health.controller.js.map +1 -0
  71. package/dist/src/health/health.module.d.ts.map +1 -0
  72. package/dist/src/health/health.module.js.map +1 -0
  73. package/dist/src/health/health.service.d.ts.map +1 -0
  74. package/dist/src/health/health.service.js.map +1 -0
  75. package/dist/src/health/index.d.ts.map +1 -0
  76. package/dist/src/health/index.js.map +1 -0
  77. package/dist/src/middleware/index.d.ts.map +1 -0
  78. package/dist/src/middleware/index.js.map +1 -0
  79. package/dist/src/middleware/logger.middleware.d.ts.map +1 -0
  80. package/dist/src/middleware/logger.middleware.js.map +1 -0
  81. package/dist/src/prisma/index.d.ts.map +1 -0
  82. package/dist/src/prisma/index.js.map +1 -0
  83. package/dist/src/prisma/prisma.module.d.ts.map +1 -0
  84. package/dist/src/prisma/prisma.module.js.map +1 -0
  85. package/dist/src/prisma/prisma.service.d.ts.map +1 -0
  86. package/dist/src/prisma/prisma.service.js.map +1 -0
  87. package/dist/src/push/index.d.ts.map +1 -0
  88. package/dist/src/push/index.js.map +1 -0
  89. package/dist/src/push/push.module.d.ts.map +1 -0
  90. package/dist/src/push/push.module.js.map +1 -0
  91. package/dist/src/push/push.service.d.ts.map +1 -0
  92. package/dist/src/push/push.service.js.map +1 -0
  93. package/dist/src/search/index.d.ts.map +1 -0
  94. package/dist/src/search/index.js.map +1 -0
  95. package/dist/src/search/search.module.d.ts.map +1 -0
  96. package/dist/src/search/search.module.js.map +1 -0
  97. package/dist/src/search/search.service.d.ts.map +1 -0
  98. package/dist/src/search/search.service.js.map +1 -0
  99. package/dist/src/services/index.d.ts.map +1 -0
  100. package/dist/src/services/index.js.map +1 -0
  101. package/dist/src/services/instrument-sentry.d.ts.map +1 -0
  102. package/dist/src/services/instrument-sentry.js.map +1 -0
  103. package/dist/src/types/index.d.ts +5 -0
  104. package/dist/src/types/index.d.ts.map +1 -0
  105. package/{src → dist/src}/types/index.js +2 -0
  106. package/dist/src/types/index.js.map +1 -0
  107. package/dist/src/types/policy.type.d.ts +8 -0
  108. package/dist/src/types/policy.type.d.ts.map +1 -0
  109. package/dist/src/types/policy.type.js +3 -0
  110. package/dist/src/types/policy.type.js.map +1 -0
  111. package/dist/src/types/req.type.d.ts.map +1 -0
  112. package/dist/src/types/req.type.js.map +1 -0
  113. package/dist/src/types/reqWithUser.type.d.ts +4 -0
  114. package/dist/src/types/reqWithUser.type.d.ts.map +1 -0
  115. package/dist/src/types/reqWithUser.type.js +3 -0
  116. package/dist/src/types/reqWithUser.type.js.map +1 -0
  117. package/dist/src/types/success.response.dto.d.ts.map +1 -0
  118. package/dist/src/types/success.response.dto.js.map +1 -0
  119. package/dist/src/utils/datetime.util.d.ts.map +1 -0
  120. package/dist/src/utils/datetime.util.js.map +1 -0
  121. package/dist/src/utils/error.util.d.ts.map +1 -0
  122. package/dist/src/utils/error.util.js.map +1 -0
  123. package/{src → dist/src}/utils/index.d.ts +1 -1
  124. package/dist/src/utils/index.d.ts.map +1 -0
  125. package/{src → dist/src}/utils/index.js +1 -1
  126. package/dist/src/utils/index.js.map +1 -0
  127. package/dist/src/utils/input.util.d.ts.map +1 -0
  128. package/dist/src/utils/input.util.js.map +1 -0
  129. package/dist/src/utils/noop.util.d.ts.map +1 -0
  130. package/dist/src/utils/noop.util.js.map +1 -0
  131. package/{src → dist/src}/utils/schema.util.d.ts +1 -1
  132. package/dist/src/utils/schema.util.d.ts.map +1 -0
  133. package/{src → dist/src}/utils/schema.util.js +1 -1
  134. package/dist/src/utils/schema.util.js.map +1 -0
  135. package/dist/src/utils/string.util.d.ts.map +1 -0
  136. package/dist/src/utils/string.util.js.map +1 -0
  137. package/dist/src/utils/version.util.d.ts.map +1 -0
  138. package/dist/src/utils/version.util.js.map +1 -0
  139. package/dist/tsconfig.tsbuildinfo +1 -0
  140. package/package.json +11 -98
  141. package/src/ability/ability.factory.ts +19 -0
  142. package/src/ability/ability.module.ts +8 -0
  143. package/src/ability/ability.util.ts +37 -0
  144. package/src/ability/action.enum.ts +9 -0
  145. package/src/ability/app-ability.type.ts +7 -0
  146. package/src/ability/index.ts +6 -0
  147. package/src/ability/services.enum.ts +7 -0
  148. package/src/decorator/index.ts +2 -0
  149. package/src/decorator/policies.decorator.ts +7 -0
  150. package/src/decorator/policies.handler.ts +16 -0
  151. package/src/guard/index.ts +1 -0
  152. package/src/guard/policies.guard.ts +65 -0
  153. package/src/types/index.ts +2 -0
  154. package/src/types/policy.type.ts +9 -0
  155. package/src/types/reqWithUser.type.ts +3 -0
  156. package/src/utils/index.ts +1 -1
  157. package/src/utils/schema.util.ts +1 -1
  158. package/src/auth/auth.module.d.ts +0 -3
  159. package/src/auth/auth.module.js +0 -18
  160. package/src/auth/auth.module.ts +0 -10
  161. package/src/auth/auth.service.d.ts +0 -18
  162. package/src/auth/auth.service.js +0 -65
  163. package/src/auth/auth.service.ts +0 -80
  164. package/src/auth/index.d.ts +0 -3
  165. package/src/auth/index.js +0 -6
  166. package/src/auth/index.ts +0 -2
  167. package/src/guard/index.d.ts +0 -2
  168. package/src/types/index.d.ts +0 -3
  169. package/src/user/dtos/delete-user.request.dto.d.ts +0 -4
  170. package/src/user/dtos/delete-user.request.dto.js +0 -15
  171. package/src/user/dtos/delete-user.request.dto.ts +0 -8
  172. package/src/user/dtos/get-user.response.dto.d.ts +0 -7
  173. package/src/user/dtos/get-user.response.dto.js +0 -32
  174. package/src/user/dtos/get-user.response.dto.ts +0 -22
  175. package/src/user/dtos/index.d.ts +0 -9
  176. package/src/user/dtos/index.js +0 -12
  177. package/src/user/dtos/index.ts +0 -8
  178. package/src/user/dtos/phone-login-verify.request.dto.d.ts +0 -6
  179. package/src/user/dtos/phone-login-verify.request.dto.js +0 -25
  180. package/src/user/dtos/phone-login-verify.request.dto.ts +0 -16
  181. package/src/user/dtos/phone-login.request.dto.d.ts +0 -4
  182. package/src/user/dtos/phone-login.request.dto.js +0 -15
  183. package/src/user/dtos/phone-login.request.dto.ts +0 -8
  184. package/src/user/dtos/phone-login.response.dto.d.ts +0 -5
  185. package/src/user/dtos/phone-login.response.dto.js +0 -20
  186. package/src/user/dtos/phone-login.response.dto.ts +0 -12
  187. package/src/user/dtos/register.request.dto.d.ts +0 -5
  188. package/src/user/dtos/register.request.dto.js +0 -20
  189. package/src/user/dtos/register.request.dto.ts +0 -12
  190. package/src/user/dtos/register.response.dto.d.ts +0 -5
  191. package/src/user/dtos/register.response.dto.js +0 -16
  192. package/src/user/dtos/register.response.dto.ts +0 -10
  193. package/src/user/dtos/update-user.request.dto.d.ts +0 -8
  194. package/src/user/dtos/update-user.request.dto.js +0 -40
  195. package/src/user/dtos/update-user.request.dto.ts +0 -29
  196. package/src/user/index.d.ts +0 -7
  197. package/src/user/index.js +0 -10
  198. package/src/user/index.ts +0 -6
  199. package/src/user/schemas/delete-user.schema.d.ts +0 -5
  200. package/src/user/schemas/delete-user.schema.js +0 -9
  201. package/src/user/schemas/delete-user.schema.ts +0 -7
  202. package/src/user/schemas/index.d.ts +0 -6
  203. package/src/user/schemas/index.js +0 -9
  204. package/src/user/schemas/index.ts +0 -5
  205. package/src/user/schemas/phone-login-verify.schema.d.ts +0 -7
  206. package/src/user/schemas/phone-login-verify.schema.js +0 -11
  207. package/src/user/schemas/phone-login-verify.schema.ts +0 -9
  208. package/src/user/schemas/phone-login.schema.d.ts +0 -5
  209. package/src/user/schemas/phone-login.schema.js +0 -9
  210. package/src/user/schemas/phone-login.schema.ts +0 -7
  211. package/src/user/schemas/signup.schema.d.ts +0 -6
  212. package/src/user/schemas/signup.schema.js +0 -10
  213. package/src/user/schemas/signup.schema.ts +0 -8
  214. package/src/user/schemas/update-user.schema.d.ts +0 -9
  215. package/src/user/schemas/update-user.schema.js +0 -15
  216. package/src/user/schemas/update-user.schema.ts +0 -13
  217. package/src/user/user.controller.d.ts +0 -22
  218. package/src/user/user.controller.js +0 -279
  219. package/src/user/user.controller.ts +0 -321
  220. package/src/user/user.module.d.ts +0 -3
  221. package/src/user/user.module.js +0 -22
  222. package/src/user/user.module.ts +0 -16
  223. package/src/user/user.service.d.ts +0 -15
  224. package/src/user/user.service.js +0 -62
  225. package/src/user/user.service.ts +0 -68
  226. package/src/user/user.util.d.ts +0 -3
  227. package/src/user/user.util.js +0 -8
  228. package/src/user/user.util.ts +0 -5
  229. /package/{src → dist/src}/cron/cron.module.d.ts +0 -0
  230. /package/{src → dist/src}/cron/cron.module.js +0 -0
  231. /package/{src → dist/src}/cron/cron.service.d.ts +0 -0
  232. /package/{src → dist/src}/cron/cron.service.js +0 -0
  233. /package/{src → dist/src}/cron/cron.util.d.ts +0 -0
  234. /package/{src → dist/src}/cron/cron.util.js +0 -0
  235. /package/{src → dist/src}/cron/index.d.ts +0 -0
  236. /package/{src → dist/src}/cron/index.js +0 -0
  237. /package/{src → dist/src}/enums/humanDay.enum.d.ts +0 -0
  238. /package/{src → dist/src}/enums/humanDay.enum.js +0 -0
  239. /package/{src → dist/src}/enums/index.d.ts +0 -0
  240. /package/{src → dist/src}/enums/index.js +0 -0
  241. /package/{src → dist/src}/enums/serverDay.enum.d.ts +0 -0
  242. /package/{src → dist/src}/enums/serverDay.enum.js +0 -0
  243. /package/{src → dist/src}/guard/auth.guard.d.ts +0 -0
  244. /package/{src → dist/src}/guard/auth.guard.js +0 -0
  245. /package/{src → dist/src}/health/dtos/health.response.dto.d.ts +0 -0
  246. /package/{src → dist/src}/health/dtos/health.response.dto.js +0 -0
  247. /package/{src → dist/src}/health/dtos/index.d.ts +0 -0
  248. /package/{src → dist/src}/health/dtos/index.js +0 -0
  249. /package/{src → dist/src}/health/health.controller.d.ts +0 -0
  250. /package/{src → dist/src}/health/health.controller.js +0 -0
  251. /package/{src → dist/src}/health/health.module.d.ts +0 -0
  252. /package/{src → dist/src}/health/health.module.js +0 -0
  253. /package/{src → dist/src}/health/health.service.d.ts +0 -0
  254. /package/{src → dist/src}/health/health.service.js +0 -0
  255. /package/{src → dist/src}/health/index.d.ts +0 -0
  256. /package/{src → dist/src}/health/index.js +0 -0
  257. /package/{src → dist/src}/middleware/index.d.ts +0 -0
  258. /package/{src → dist/src}/middleware/index.js +0 -0
  259. /package/{src → dist/src}/middleware/logger.middleware.d.ts +0 -0
  260. /package/{src → dist/src}/middleware/logger.middleware.js +0 -0
  261. /package/{src → dist/src}/prisma/index.d.ts +0 -0
  262. /package/{src → dist/src}/prisma/index.js +0 -0
  263. /package/{src → dist/src}/prisma/prisma.module.d.ts +0 -0
  264. /package/{src → dist/src}/prisma/prisma.module.js +0 -0
  265. /package/{src → dist/src}/prisma/prisma.service.d.ts +0 -0
  266. /package/{src → dist/src}/prisma/prisma.service.js +0 -0
  267. /package/{src → dist/src}/push/index.d.ts +0 -0
  268. /package/{src → dist/src}/push/index.js +0 -0
  269. /package/{src → dist/src}/push/push.module.d.ts +0 -0
  270. /package/{src → dist/src}/push/push.module.js +0 -0
  271. /package/{src → dist/src}/push/push.service.d.ts +0 -0
  272. /package/{src → dist/src}/push/push.service.js +0 -0
  273. /package/{src → dist/src}/search/index.d.ts +0 -0
  274. /package/{src → dist/src}/search/index.js +0 -0
  275. /package/{src → dist/src}/search/search.module.d.ts +0 -0
  276. /package/{src → dist/src}/search/search.module.js +0 -0
  277. /package/{src → dist/src}/search/search.service.d.ts +0 -0
  278. /package/{src → dist/src}/search/search.service.js +0 -0
  279. /package/{src → dist/src}/services/index.d.ts +0 -0
  280. /package/{src → dist/src}/services/index.js +0 -0
  281. /package/{src → dist/src}/services/instrument-sentry.d.ts +0 -0
  282. /package/{src → dist/src}/services/instrument-sentry.js +0 -0
  283. /package/{src → dist/src}/types/req.type.d.ts +0 -0
  284. /package/{src → dist/src}/types/req.type.js +0 -0
  285. /package/{src → dist/src}/types/success.response.dto.d.ts +0 -0
  286. /package/{src → dist/src}/types/success.response.dto.js +0 -0
  287. /package/{src → dist/src}/utils/datetime.util.d.ts +0 -0
  288. /package/{src → dist/src}/utils/datetime.util.js +0 -0
  289. /package/{src → dist/src}/utils/error.util.d.ts +0 -0
  290. /package/{src → dist/src}/utils/error.util.js +0 -0
  291. /package/{src → dist/src}/utils/input.util.d.ts +0 -0
  292. /package/{src → dist/src}/utils/input.util.js +0 -0
  293. /package/{src → dist/src}/utils/noop.util.d.ts +0 -0
  294. /package/{src → dist/src}/utils/noop.util.js +0 -0
  295. /package/{src → dist/src}/utils/string.util.d.ts +0 -0
  296. /package/{src → dist/src}/utils/string.util.js +0 -0
  297. /package/{src → dist/src}/utils/version.util.d.ts +0 -0
  298. /package/{src → dist/src}/utils/version.util.js +0 -0
@@ -1,62 +0,0 @@
1
- "use strict";
2
- var UserService_1;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.UserService = void 0;
5
- const tslib_1 = require("tslib");
6
- const common_1 = require("@nestjs/common");
7
- const prisma_1 = require("../prisma");
8
- let UserService = UserService_1 = class UserService {
9
- constructor(prisma) {
10
- this.prisma = prisma;
11
- this.logger = new common_1.Logger(UserService_1.name);
12
- }
13
- async create(data) {
14
- this.logger.debug('create');
15
- return this.prisma.user.create({
16
- data,
17
- });
18
- }
19
- async findOneByEmail(email) {
20
- this.logger.debug('findOneByEmail');
21
- return this.prisma.user.findUnique({
22
- where: { email },
23
- });
24
- }
25
- async findOneByPhoneNumber(phoneNumber) {
26
- this.logger.debug('findOneByPhoneNumber');
27
- return this.prisma.user.findUnique({
28
- where: { phoneNumber },
29
- });
30
- }
31
- async findOneByUserId(userId) {
32
- this.logger.debug('findOneByUserId');
33
- return this.prisma.user.findUnique({
34
- where: { id: userId },
35
- });
36
- }
37
- async findMany() {
38
- this.logger.debug('findMany');
39
- return this.prisma.user.findMany();
40
- }
41
- async findManyByTz(tz) {
42
- this.logger.debug('findManyByTz');
43
- return this.prisma.user.findMany({
44
- where: {
45
- tz,
46
- },
47
- });
48
- }
49
- async update(id, data) {
50
- this.logger.debug('update');
51
- return this.prisma.user.update({
52
- where: { id },
53
- data,
54
- });
55
- }
56
- };
57
- exports.UserService = UserService;
58
- exports.UserService = UserService = UserService_1 = tslib_1.__decorate([
59
- (0, common_1.Injectable)(),
60
- tslib_1.__metadata("design:paramtypes", [prisma_1.PrismaService])
61
- ], UserService);
62
- //# sourceMappingURL=user.service.js.map
@@ -1,68 +0,0 @@
1
- import { Injectable, Logger } from '@nestjs/common';
2
- import { Prisma, User } from '@prisma/client';
3
-
4
- import { PrismaService } from '../prisma';
5
-
6
- @Injectable()
7
- export class UserService {
8
- private readonly logger: Logger = new Logger(UserService.name);
9
-
10
- constructor(private prisma: PrismaService) {}
11
-
12
- async create(data: Prisma.UserCreateInput): Promise<User> {
13
- this.logger.debug('create');
14
-
15
- return this.prisma.user.create({
16
- data,
17
- });
18
- }
19
-
20
- async findOneByEmail(email: string): Promise<User> {
21
- this.logger.debug('findOneByEmail');
22
-
23
- return this.prisma.user.findUnique({
24
- where: { email },
25
- });
26
- }
27
-
28
- async findOneByPhoneNumber(phoneNumber: string): Promise<User> {
29
- this.logger.debug('findOneByPhoneNumber');
30
-
31
- return this.prisma.user.findUnique({
32
- where: { phoneNumber },
33
- });
34
- }
35
-
36
- async findOneByUserId(userId: string): Promise<User> {
37
- this.logger.debug('findOneByUserId');
38
-
39
- return this.prisma.user.findUnique({
40
- where: { id: userId },
41
- });
42
- }
43
-
44
- async findMany(): Promise<User[]> {
45
- this.logger.debug('findMany');
46
-
47
- return this.prisma.user.findMany();
48
- }
49
-
50
- async findManyByTz(tz: number): Promise<User[]> {
51
- this.logger.debug('findManyByTz');
52
-
53
- return this.prisma.user.findMany({
54
- where: {
55
- tz,
56
- },
57
- });
58
- }
59
-
60
- async update(id: string, data: Prisma.UserUpdateInput): Promise<User> {
61
- this.logger.debug('update');
62
-
63
- return this.prisma.user.update({
64
- where: { id },
65
- data,
66
- });
67
- }
68
- }
@@ -1,3 +0,0 @@
1
- import { User } from '@prisma/client';
2
- export declare const getPushTokens: (users: User[]) => string[];
3
- //# sourceMappingURL=user.util.d.ts.map
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPushTokens = void 0;
4
- const getPushTokens = (users) => {
5
- return users.map((user) => user.pushToken);
6
- };
7
- exports.getPushTokens = getPushTokens;
8
- //# sourceMappingURL=user.util.js.map
@@ -1,5 +0,0 @@
1
- import { User } from '@prisma/client';
2
-
3
- export const getPushTokens = (users: User[]): string[] => {
4
- return users.map((user) => user.pushToken);
5
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes