@natrave/shared-entities 1.1.9 → 1.2.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 (273) hide show
  1. package/dist/app-auth/index.js +5 -6
  2. package/dist/app-auth/password-resets/index.js +4 -2
  3. package/dist/app-auth/password-resets/password-reset.entity.js +48 -45
  4. package/dist/app-auth/refresh-tokens/index.js +4 -2
  5. package/dist/app-auth/refresh-tokens/refresh-token.entity.js +48 -45
  6. package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.js +9 -7
  7. package/dist/app-auth/user-auth-providers/index.js +6 -3
  8. package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js +53 -50
  9. package/dist/app-auth/user-verifications/enums/verification-type.enum.js +8 -6
  10. package/dist/app-auth/user-verifications/index.js +6 -3
  11. package/dist/app-auth/user-verifications/user-verification.entity.js +57 -57
  12. package/dist/app-auth/users/index.js +4 -2
  13. package/dist/app-auth/users/user.entity.js +123 -133
  14. package/dist/app-auth/users/utils/format-data.utils.js +19 -17
  15. package/dist/common/utils/decimal-transformer.utils.js +15 -14
  16. package/dist/facilities/addresses/address.entity.js +79 -84
  17. package/dist/facilities/addresses/index.js +4 -2
  18. package/dist/facilities/facilities/enums/facility-status.enum.js +9 -7
  19. package/dist/facilities/facilities/facility.entity.js +118 -121
  20. package/dist/facilities/facilities/index.js +6 -3
  21. package/dist/facilities/facilities/utils/sanititze.utils.js +12 -10
  22. package/dist/facilities/facility-images/facility-image.entity.js +60 -56
  23. package/dist/facilities/facility-images/index.js +4 -2
  24. package/dist/facilities/facility-owners/facility-owner.entity.js +64 -62
  25. package/dist/facilities/facility-owners/index.js +4 -2
  26. package/dist/facilities/facility-owners/utils/sanitize.utils.js +10 -8
  27. package/dist/facilities/fields/enums/surface-type.enum.js +11 -9
  28. package/dist/facilities/fields/field.entity.js +69 -69
  29. package/dist/facilities/fields/index.js +6 -3
  30. package/dist/facilities/index.js +5 -6
  31. package/dist/index.js +4 -5
  32. package/dist/payments/index.js +3 -4
  33. package/dist/payments/payment-providers/enums/payment-provider-name.enum.js +7 -5
  34. package/dist/payments/payment-providers/index.js +6 -3
  35. package/dist/payments/payment-providers/payment-provider.entity.js +57 -47
  36. package/dist/payments/payments/enums/payment-method.enum.js +8 -6
  37. package/dist/payments/payments/enums/payment-status.enum.js +13 -11
  38. package/dist/payments/payments/index.js +8 -4
  39. package/dist/payments/payments/payment.entity.js +79 -82
  40. package/dist/payments/user-payment-providers/index.js +4 -2
  41. package/dist/payments/user-payment-providers/user-payment-provider.entity.js +62 -58
  42. package/dist/tournaments/index.js +12 -13
  43. package/dist/tournaments/tournament-facilities/index.js +4 -2
  44. package/dist/tournaments/tournament-facilities/tournament-facility.entity.js +62 -58
  45. package/dist/tournaments/tournament-format-configs/index.js +4 -2
  46. package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js +70 -73
  47. package/dist/tournaments/tournament-match-cards/index.js +4 -2
  48. package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js +74 -72
  49. package/dist/tournaments/tournament-match-goals/index.js +4 -2
  50. package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js +74 -76
  51. package/dist/tournaments/tournament-match-schemas/index.js +4 -2
  52. package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js +47 -44
  53. package/dist/tournaments/tournament-matches/index.js +4 -2
  54. package/dist/tournaments/tournament-matches/tournament-match.entity.js +89 -94
  55. package/dist/tournaments/tournament-payments/index.js +4 -2
  56. package/dist/tournaments/tournament-payments/tournament-payment.entity.js +57 -56
  57. package/dist/tournaments/tournament-players/index.js +4 -2
  58. package/dist/tournaments/tournament-players/tournament-player.entity.js +75 -73
  59. package/dist/tournaments/tournament-prize-rules/index.js +4 -2
  60. package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js +56 -52
  61. package/dist/tournaments/tournament-rules/index.js +4 -2
  62. package/dist/tournaments/tournament-rules/tournament-rule.entity.js +73 -74
  63. package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.js +8 -6
  64. package/dist/tournaments/tournament-teams/index.js +6 -3
  65. package/dist/tournaments/tournament-teams/tournament-team.entity.js +93 -97
  66. package/dist/tournaments/tournament-teams/utils/invite-code-generator.js +5 -3
  67. package/dist/tournaments/tournaments/index.js +4 -2
  68. package/dist/tournaments/tournaments/tournament.entity.js +129 -144
  69. package/package.json +4 -2
  70. package/dist/app-auth/index.d.ts +0 -6
  71. package/dist/app-auth/index.d.ts.map +0 -1
  72. package/dist/app-auth/index.js.map +0 -1
  73. package/dist/app-auth/password-resets/index.d.ts +0 -2
  74. package/dist/app-auth/password-resets/index.d.ts.map +0 -1
  75. package/dist/app-auth/password-resets/index.js.map +0 -1
  76. package/dist/app-auth/password-resets/password-reset.entity.d.ts +0 -11
  77. package/dist/app-auth/password-resets/password-reset.entity.d.ts.map +0 -1
  78. package/dist/app-auth/password-resets/password-reset.entity.js.map +0 -1
  79. package/dist/app-auth/refresh-tokens/index.d.ts +0 -2
  80. package/dist/app-auth/refresh-tokens/index.d.ts.map +0 -1
  81. package/dist/app-auth/refresh-tokens/index.js.map +0 -1
  82. package/dist/app-auth/refresh-tokens/refresh-token.entity.d.ts +0 -11
  83. package/dist/app-auth/refresh-tokens/refresh-token.entity.d.ts.map +0 -1
  84. package/dist/app-auth/refresh-tokens/refresh-token.entity.js.map +0 -1
  85. package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.d.ts +0 -6
  86. package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.d.ts.map +0 -1
  87. package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.js.map +0 -1
  88. package/dist/app-auth/user-auth-providers/index.d.ts +0 -3
  89. package/dist/app-auth/user-auth-providers/index.d.ts.map +0 -1
  90. package/dist/app-auth/user-auth-providers/index.js.map +0 -1
  91. package/dist/app-auth/user-auth-providers/user-auth-provider.entity.d.ts +0 -13
  92. package/dist/app-auth/user-auth-providers/user-auth-provider.entity.d.ts.map +0 -1
  93. package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js.map +0 -1
  94. package/dist/app-auth/user-verifications/enums/verification-type.enum.d.ts +0 -5
  95. package/dist/app-auth/user-verifications/enums/verification-type.enum.d.ts.map +0 -1
  96. package/dist/app-auth/user-verifications/enums/verification-type.enum.js.map +0 -1
  97. package/dist/app-auth/user-verifications/index.d.ts +0 -3
  98. package/dist/app-auth/user-verifications/index.d.ts.map +0 -1
  99. package/dist/app-auth/user-verifications/index.js.map +0 -1
  100. package/dist/app-auth/user-verifications/user-verification.entity.d.ts +0 -15
  101. package/dist/app-auth/user-verifications/user-verification.entity.d.ts.map +0 -1
  102. package/dist/app-auth/user-verifications/user-verification.entity.js.map +0 -1
  103. package/dist/app-auth/users/index.d.ts +0 -2
  104. package/dist/app-auth/users/index.d.ts.map +0 -1
  105. package/dist/app-auth/users/index.js.map +0 -1
  106. package/dist/app-auth/users/user.entity.d.ts +0 -29
  107. package/dist/app-auth/users/user.entity.d.ts.map +0 -1
  108. package/dist/app-auth/users/user.entity.js.map +0 -1
  109. package/dist/app-auth/users/utils/format-data.utils.d.ts +0 -7
  110. package/dist/app-auth/users/utils/format-data.utils.d.ts.map +0 -1
  111. package/dist/app-auth/users/utils/format-data.utils.js.map +0 -1
  112. package/dist/common/utils/decimal-transformer.utils.d.ts +0 -5
  113. package/dist/common/utils/decimal-transformer.utils.d.ts.map +0 -1
  114. package/dist/common/utils/decimal-transformer.utils.js.map +0 -1
  115. package/dist/facilities/addresses/address.entity.d.ts +0 -18
  116. package/dist/facilities/addresses/address.entity.d.ts.map +0 -1
  117. package/dist/facilities/addresses/address.entity.js.map +0 -1
  118. package/dist/facilities/addresses/index.d.ts +0 -2
  119. package/dist/facilities/addresses/index.d.ts.map +0 -1
  120. package/dist/facilities/addresses/index.js.map +0 -1
  121. package/dist/facilities/facilities/enums/facility-status.enum.d.ts +0 -6
  122. package/dist/facilities/facilities/enums/facility-status.enum.d.ts.map +0 -1
  123. package/dist/facilities/facilities/enums/facility-status.enum.js.map +0 -1
  124. package/dist/facilities/facilities/facility.entity.d.ts +0 -26
  125. package/dist/facilities/facilities/facility.entity.d.ts.map +0 -1
  126. package/dist/facilities/facilities/facility.entity.js.map +0 -1
  127. package/dist/facilities/facilities/index.d.ts +0 -3
  128. package/dist/facilities/facilities/index.d.ts.map +0 -1
  129. package/dist/facilities/facilities/index.js.map +0 -1
  130. package/dist/facilities/facilities/utils/sanititze.utils.d.ts +0 -5
  131. package/dist/facilities/facilities/utils/sanititze.utils.d.ts.map +0 -1
  132. package/dist/facilities/facilities/utils/sanititze.utils.js.map +0 -1
  133. package/dist/facilities/facility-images/facility-image.entity.d.ts +0 -12
  134. package/dist/facilities/facility-images/facility-image.entity.d.ts.map +0 -1
  135. package/dist/facilities/facility-images/facility-image.entity.js.map +0 -1
  136. package/dist/facilities/facility-images/index.d.ts +0 -2
  137. package/dist/facilities/facility-images/index.d.ts.map +0 -1
  138. package/dist/facilities/facility-images/index.js.map +0 -1
  139. package/dist/facilities/facility-owners/facility-owner.entity.d.ts +0 -13
  140. package/dist/facilities/facility-owners/facility-owner.entity.d.ts.map +0 -1
  141. package/dist/facilities/facility-owners/facility-owner.entity.js.map +0 -1
  142. package/dist/facilities/facility-owners/index.d.ts +0 -2
  143. package/dist/facilities/facility-owners/index.d.ts.map +0 -1
  144. package/dist/facilities/facility-owners/index.js.map +0 -1
  145. package/dist/facilities/facility-owners/utils/sanitize.utils.d.ts +0 -5
  146. package/dist/facilities/facility-owners/utils/sanitize.utils.d.ts.map +0 -1
  147. package/dist/facilities/facility-owners/utils/sanitize.utils.js.map +0 -1
  148. package/dist/facilities/fields/enums/surface-type.enum.d.ts +0 -8
  149. package/dist/facilities/fields/enums/surface-type.enum.d.ts.map +0 -1
  150. package/dist/facilities/fields/enums/surface-type.enum.js.map +0 -1
  151. package/dist/facilities/fields/field.entity.d.ts +0 -18
  152. package/dist/facilities/fields/field.entity.d.ts.map +0 -1
  153. package/dist/facilities/fields/field.entity.js.map +0 -1
  154. package/dist/facilities/fields/index.d.ts +0 -3
  155. package/dist/facilities/fields/index.d.ts.map +0 -1
  156. package/dist/facilities/fields/index.js.map +0 -1
  157. package/dist/facilities/index.d.ts +0 -6
  158. package/dist/facilities/index.d.ts.map +0 -1
  159. package/dist/facilities/index.js.map +0 -1
  160. package/dist/index.d.ts +0 -5
  161. package/dist/index.d.ts.map +0 -1
  162. package/dist/index.js.map +0 -1
  163. package/dist/payments/index.d.ts +0 -4
  164. package/dist/payments/index.d.ts.map +0 -1
  165. package/dist/payments/index.js.map +0 -1
  166. package/dist/payments/payment-providers/enums/payment-provider-name.enum.d.ts +0 -4
  167. package/dist/payments/payment-providers/enums/payment-provider-name.enum.d.ts.map +0 -1
  168. package/dist/payments/payment-providers/enums/payment-provider-name.enum.js.map +0 -1
  169. package/dist/payments/payment-providers/index.d.ts +0 -3
  170. package/dist/payments/payment-providers/index.d.ts.map +0 -1
  171. package/dist/payments/payment-providers/index.js.map +0 -1
  172. package/dist/payments/payment-providers/payment-provider.entity.d.ts +0 -10
  173. package/dist/payments/payment-providers/payment-provider.entity.d.ts.map +0 -1
  174. package/dist/payments/payment-providers/payment-provider.entity.js.map +0 -1
  175. package/dist/payments/payments/enums/payment-method.enum.d.ts +0 -5
  176. package/dist/payments/payments/enums/payment-method.enum.d.ts.map +0 -1
  177. package/dist/payments/payments/enums/payment-method.enum.js.map +0 -1
  178. package/dist/payments/payments/enums/payment-status.enum.d.ts +0 -10
  179. package/dist/payments/payments/enums/payment-status.enum.d.ts.map +0 -1
  180. package/dist/payments/payments/enums/payment-status.enum.js.map +0 -1
  181. package/dist/payments/payments/index.d.ts +0 -4
  182. package/dist/payments/payments/index.d.ts.map +0 -1
  183. package/dist/payments/payments/index.js.map +0 -1
  184. package/dist/payments/payments/payment.entity.d.ts +0 -19
  185. package/dist/payments/payments/payment.entity.d.ts.map +0 -1
  186. package/dist/payments/payments/payment.entity.js.map +0 -1
  187. package/dist/payments/user-payment-providers/index.d.ts +0 -2
  188. package/dist/payments/user-payment-providers/index.d.ts.map +0 -1
  189. package/dist/payments/user-payment-providers/index.js.map +0 -1
  190. package/dist/payments/user-payment-providers/user-payment-provider.entity.d.ts +0 -13
  191. package/dist/payments/user-payment-providers/user-payment-provider.entity.d.ts.map +0 -1
  192. package/dist/payments/user-payment-providers/user-payment-provider.entity.js.map +0 -1
  193. package/dist/tournaments/index.d.ts +0 -13
  194. package/dist/tournaments/index.d.ts.map +0 -1
  195. package/dist/tournaments/index.js.map +0 -1
  196. package/dist/tournaments/tournament-facilities/index.d.ts +0 -2
  197. package/dist/tournaments/tournament-facilities/index.d.ts.map +0 -1
  198. package/dist/tournaments/tournament-facilities/index.js.map +0 -1
  199. package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts +0 -14
  200. package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts.map +0 -1
  201. package/dist/tournaments/tournament-facilities/tournament-facility.entity.js.map +0 -1
  202. package/dist/tournaments/tournament-format-configs/index.d.ts +0 -2
  203. package/dist/tournaments/tournament-format-configs/index.d.ts.map +0 -1
  204. package/dist/tournaments/tournament-format-configs/index.js.map +0 -1
  205. package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts +0 -15
  206. package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts.map +0 -1
  207. package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js.map +0 -1
  208. package/dist/tournaments/tournament-match-cards/index.d.ts +0 -2
  209. package/dist/tournaments/tournament-match-cards/index.d.ts.map +0 -1
  210. package/dist/tournaments/tournament-match-cards/index.js.map +0 -1
  211. package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts +0 -19
  212. package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts.map +0 -1
  213. package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js.map +0 -1
  214. package/dist/tournaments/tournament-match-goals/index.d.ts +0 -2
  215. package/dist/tournaments/tournament-match-goals/index.d.ts.map +0 -1
  216. package/dist/tournaments/tournament-match-goals/index.js.map +0 -1
  217. package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts +0 -20
  218. package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts.map +0 -1
  219. package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js.map +0 -1
  220. package/dist/tournaments/tournament-match-schemas/index.d.ts +0 -2
  221. package/dist/tournaments/tournament-match-schemas/index.d.ts.map +0 -1
  222. package/dist/tournaments/tournament-match-schemas/index.js.map +0 -1
  223. package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.d.ts +0 -12
  224. package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.d.ts.map +0 -1
  225. package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js.map +0 -1
  226. package/dist/tournaments/tournament-matches/index.d.ts +0 -2
  227. package/dist/tournaments/tournament-matches/index.d.ts.map +0 -1
  228. package/dist/tournaments/tournament-matches/index.js.map +0 -1
  229. package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts +0 -25
  230. package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts.map +0 -1
  231. package/dist/tournaments/tournament-matches/tournament-match.entity.js.map +0 -1
  232. package/dist/tournaments/tournament-payments/index.d.ts +0 -2
  233. package/dist/tournaments/tournament-payments/index.d.ts.map +0 -1
  234. package/dist/tournaments/tournament-payments/index.js.map +0 -1
  235. package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts +0 -16
  236. package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts.map +0 -1
  237. package/dist/tournaments/tournament-payments/tournament-payment.entity.js.map +0 -1
  238. package/dist/tournaments/tournament-players/index.d.ts +0 -2
  239. package/dist/tournaments/tournament-players/index.d.ts.map +0 -1
  240. package/dist/tournaments/tournament-players/index.js.map +0 -1
  241. package/dist/tournaments/tournament-players/tournament-player.entity.d.ts +0 -19
  242. package/dist/tournaments/tournament-players/tournament-player.entity.d.ts.map +0 -1
  243. package/dist/tournaments/tournament-players/tournament-player.entity.js.map +0 -1
  244. package/dist/tournaments/tournament-prize-rules/index.d.ts +0 -2
  245. package/dist/tournaments/tournament-prize-rules/index.d.ts.map +0 -1
  246. package/dist/tournaments/tournament-prize-rules/index.js.map +0 -1
  247. package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.d.ts +0 -13
  248. package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.d.ts.map +0 -1
  249. package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js.map +0 -1
  250. package/dist/tournaments/tournament-rules/index.d.ts +0 -2
  251. package/dist/tournaments/tournament-rules/index.d.ts.map +0 -1
  252. package/dist/tournaments/tournament-rules/index.js.map +0 -1
  253. package/dist/tournaments/tournament-rules/tournament-rule.entity.d.ts +0 -17
  254. package/dist/tournaments/tournament-rules/tournament-rule.entity.d.ts.map +0 -1
  255. package/dist/tournaments/tournament-rules/tournament-rule.entity.js.map +0 -1
  256. package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts +0 -5
  257. package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts.map +0 -1
  258. package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.js.map +0 -1
  259. package/dist/tournaments/tournament-teams/index.d.ts +0 -3
  260. package/dist/tournaments/tournament-teams/index.d.ts.map +0 -1
  261. package/dist/tournaments/tournament-teams/index.js.map +0 -1
  262. package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts +0 -26
  263. package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts.map +0 -1
  264. package/dist/tournaments/tournament-teams/tournament-team.entity.js.map +0 -1
  265. package/dist/tournaments/tournament-teams/utils/invite-code-generator.d.ts +0 -2
  266. package/dist/tournaments/tournament-teams/utils/invite-code-generator.d.ts.map +0 -1
  267. package/dist/tournaments/tournament-teams/utils/invite-code-generator.js.map +0 -1
  268. package/dist/tournaments/tournaments/index.d.ts +0 -2
  269. package/dist/tournaments/tournaments/index.d.ts.map +0 -1
  270. package/dist/tournaments/tournaments/index.js.map +0 -1
  271. package/dist/tournaments/tournaments/tournament.entity.d.ts +0 -39
  272. package/dist/tournaments/tournaments/tournament.entity.d.ts.map +0 -1
  273. package/dist/tournaments/tournaments/tournament.entity.js.map +0 -1
@@ -1,100 +1,96 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
6
10
  };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
11
+ import {
12
+ BeforeInsert,
13
+ Column,
14
+ CreateDateColumn,
15
+ Entity,
16
+ Index,
17
+ JoinColumn,
18
+ ManyToOne,
19
+ OneToMany,
20
+ PrimaryGeneratedColumn,
21
+ Unique,
22
+ UpdateDateColumn
23
+ } from "typeorm";
24
+ import { TournamentMatchCard } from "../tournament-match-cards";
25
+ import { TournamentMatchGoal } from "../tournament-match-goals";
26
+ import { TournamentMatch } from "../tournament-matches";
27
+ import { TournamentPlayer } from "../tournament-players";
28
+ import { Tournament } from "../tournaments";
29
+ import { TournamentTeamStatus } from "./enums/tournament-team-status.enum.js";
30
+ import { generateRandomInviteCode } from "./utils/invite-code-generator.js";
31
+ let TournamentTeam = class {
32
+ generateInviteCode() {
33
+ this.inviteCode = generateRandomInviteCode();
34
+ }
9
35
  };
10
- import { BeforeInsert, Column, CreateDateColumn, Entity, Index, JoinColumn, ManyToOne, OneToMany, PrimaryGeneratedColumn, Unique, UpdateDateColumn, } from 'typeorm';
11
- import { TournamentMatchCard } from '../tournament-match-cards';
12
- import { TournamentMatchGoal } from '../tournament-match-goals';
13
- import { TournamentMatch } from '../tournament-matches';
14
- import { TournamentPlayer } from '../tournament-players';
15
- import { Tournament } from '../tournaments';
16
- import { TournamentTeamStatus } from './enums/tournament-team-status.enum';
17
- import { generateRandomInviteCode } from './utils/invite-code-generator';
18
- let TournamentTeam = class TournamentTeam {
19
- generateInviteCode() {
20
- this.inviteCode = generateRandomInviteCode();
21
- }
22
- };
23
- __decorate([
24
- PrimaryGeneratedColumn(),
25
- __metadata("design:type", Number)
26
- ], TournamentTeam.prototype, "id", void 0);
27
- __decorate([
28
- Column({ name: 'tournament_id', type: 'int' }),
29
- __metadata("design:type", Number)
30
- ], TournamentTeam.prototype, "tournamentId", void 0);
31
- __decorate([
32
- Column({ type: 'varchar', length: 100 }),
33
- __metadata("design:type", String)
34
- ], TournamentTeam.prototype, "name", void 0);
35
- __decorate([
36
- Column({ name: 'team_logo_url', type: 'text', nullable: true }),
37
- __metadata("design:type", String)
38
- ], TournamentTeam.prototype, "teamLogoUrl", void 0);
39
- __decorate([
40
- Column({ type: 'varchar', length: 255, nullable: true }),
41
- __metadata("design:type", String)
42
- ], TournamentTeam.prototype, "description", void 0);
43
- __decorate([
44
- Column({ name: 'invite_code', type: 'varchar', length: 5, unique: true }),
45
- __metadata("design:type", String)
46
- ], TournamentTeam.prototype, "inviteCode", void 0);
47
- __decorate([
48
- Column({ type: 'enum', enum: TournamentTeamStatus, default: TournamentTeamStatus.DEFAULT }),
49
- __metadata("design:type", String)
50
- ], TournamentTeam.prototype, "status", void 0);
51
- __decorate([
52
- CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
53
- __metadata("design:type", Date)
54
- ], TournamentTeam.prototype, "createdAt", void 0);
55
- __decorate([
56
- UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
57
- __metadata("design:type", Date)
58
- ], TournamentTeam.prototype, "updatedAt", void 0);
59
- __decorate([
60
- ManyToOne(() => Tournament, (tournament) => tournament.teams, {
61
- onDelete: 'CASCADE',
62
- }),
63
- JoinColumn({ name: 'tournament_id' }),
64
- __metadata("design:type", Tournament)
65
- ], TournamentTeam.prototype, "tournament", void 0);
66
- __decorate([
67
- OneToMany(() => TournamentPlayer, (player) => player.team),
68
- __metadata("design:type", Array)
69
- ], TournamentTeam.prototype, "players", void 0);
70
- __decorate([
71
- OneToMany(() => TournamentMatch, (match) => match.homeTeam),
72
- __metadata("design:type", Array)
73
- ], TournamentTeam.prototype, "homeMatches", void 0);
74
- __decorate([
75
- OneToMany(() => TournamentMatch, (match) => match.awayTeam),
76
- __metadata("design:type", Array)
77
- ], TournamentTeam.prototype, "awayMatches", void 0);
78
- __decorate([
79
- OneToMany(() => TournamentMatchGoal, (goal) => goal.team),
80
- __metadata("design:type", Array)
81
- ], TournamentTeam.prototype, "goals", void 0);
82
- __decorate([
83
- OneToMany(() => TournamentMatchCard, (card) => card.team),
84
- __metadata("design:type", Array)
85
- ], TournamentTeam.prototype, "cards", void 0);
86
- __decorate([
87
- BeforeInsert(),
88
- __metadata("design:type", Function),
89
- __metadata("design:paramtypes", []),
90
- __metadata("design:returntype", void 0)
91
- ], TournamentTeam.prototype, "generateInviteCode", null);
92
- TournamentTeam = __decorate([
93
- Entity('tournament_teams'),
94
- Unique(['tournamentId', 'name']),
95
- Unique(['inviteCode']),
96
- Index('IDX_tournament_team_tournament_id', ['tournamentId']),
97
- Index('IDX_tournament_team_invite_code', ['inviteCode'])
36
+ __decorateClass([
37
+ PrimaryGeneratedColumn()
38
+ ], TournamentTeam.prototype, "id", 2);
39
+ __decorateClass([
40
+ Column({ name: "tournament_id", type: "int" })
41
+ ], TournamentTeam.prototype, "tournamentId", 2);
42
+ __decorateClass([
43
+ Column({ type: "varchar", length: 100 })
44
+ ], TournamentTeam.prototype, "name", 2);
45
+ __decorateClass([
46
+ Column({ name: "team_logo_url", type: "text", nullable: true })
47
+ ], TournamentTeam.prototype, "teamLogoUrl", 2);
48
+ __decorateClass([
49
+ Column({ type: "varchar", length: 255, nullable: true })
50
+ ], TournamentTeam.prototype, "description", 2);
51
+ __decorateClass([
52
+ Column({ name: "invite_code", type: "varchar", length: 5, unique: true })
53
+ ], TournamentTeam.prototype, "inviteCode", 2);
54
+ __decorateClass([
55
+ Column({ type: "enum", enum: TournamentTeamStatus, default: TournamentTeamStatus.DEFAULT })
56
+ ], TournamentTeam.prototype, "status", 2);
57
+ __decorateClass([
58
+ CreateDateColumn({ name: "created_at", type: "timestamptz" })
59
+ ], TournamentTeam.prototype, "createdAt", 2);
60
+ __decorateClass([
61
+ UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
62
+ ], TournamentTeam.prototype, "updatedAt", 2);
63
+ __decorateClass([
64
+ ManyToOne(() => Tournament, (tournament) => tournament.teams, {
65
+ onDelete: "CASCADE"
66
+ }),
67
+ JoinColumn({ name: "tournament_id" })
68
+ ], TournamentTeam.prototype, "tournament", 2);
69
+ __decorateClass([
70
+ OneToMany(() => TournamentPlayer, (player) => player.team)
71
+ ], TournamentTeam.prototype, "players", 2);
72
+ __decorateClass([
73
+ OneToMany(() => TournamentMatch, (match) => match.homeTeam)
74
+ ], TournamentTeam.prototype, "homeMatches", 2);
75
+ __decorateClass([
76
+ OneToMany(() => TournamentMatch, (match) => match.awayTeam)
77
+ ], TournamentTeam.prototype, "awayMatches", 2);
78
+ __decorateClass([
79
+ OneToMany(() => TournamentMatchGoal, (goal) => goal.team)
80
+ ], TournamentTeam.prototype, "goals", 2);
81
+ __decorateClass([
82
+ OneToMany(() => TournamentMatchCard, (card) => card.team)
83
+ ], TournamentTeam.prototype, "cards", 2);
84
+ __decorateClass([
85
+ BeforeInsert()
86
+ ], TournamentTeam.prototype, "generateInviteCode", 1);
87
+ TournamentTeam = __decorateClass([
88
+ Entity("tournament_teams"),
89
+ Unique(["tournamentId", "name"]),
90
+ Unique(["inviteCode"]),
91
+ Index("IDX_tournament_team_tournament_id", ["tournamentId"]),
92
+ Index("IDX_tournament_team_invite_code", ["inviteCode"])
98
93
  ], TournamentTeam);
99
- export { TournamentTeam };
100
- //# sourceMappingURL=tournament-team.entity.js.map
94
+ export {
95
+ TournamentTeam
96
+ };
@@ -1,4 +1,6 @@
1
- export function generateRandomInviteCode() {
2
- return Math.floor(10000 + Math.random() * 90000).toString();
1
+ function generateRandomInviteCode() {
2
+ return Math.floor(1e4 + Math.random() * 9e4).toString();
3
3
  }
4
- //# sourceMappingURL=invite-code-generator.js.map
4
+ export {
5
+ generateRandomInviteCode
6
+ };
@@ -1,2 +1,4 @@
1
- export { Tournament } from './tournament.entity';
2
- //# sourceMappingURL=index.js.map
1
+ import { Tournament } from "./tournament.entity.js";
2
+ export {
3
+ Tournament
4
+ };
@@ -1,147 +1,132 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
6
10
  };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
11
+ import { DayOfWeek, TournamentGender } from "@natrave/tournaments-service-types";
12
+ import {
13
+ Column,
14
+ CreateDateColumn,
15
+ Entity,
16
+ JoinColumn,
17
+ ManyToOne,
18
+ OneToMany,
19
+ OneToOne,
20
+ PrimaryGeneratedColumn,
21
+ UpdateDateColumn
22
+ } from "typeorm";
23
+ import { TournamentFacility } from "../tournament-facilities";
24
+ import { TournamentFormatConfig } from "../tournament-format-configs";
25
+ import { TournamentMatchSchema } from "../tournament-match-schemas";
26
+ import { TournamentMatch } from "../tournament-matches";
27
+ import { TournamentPayment } from "../tournament-payments";
28
+ import { TournamentPrizeRule } from "../tournament-prize-rules";
29
+ import { TournamentRule } from "../tournament-rules";
30
+ import { TournamentTeam } from "../tournament-teams";
31
+ let Tournament = class {
9
32
  };
10
- import { DayOfWeek, TournamentGender } from '@natrave/tournaments-service-types';
11
- import { Column, CreateDateColumn, Entity, JoinColumn, ManyToOne, OneToMany, OneToOne, PrimaryGeneratedColumn, UpdateDateColumn, } from 'typeorm';
12
- import { TournamentFacility } from '../tournament-facilities';
13
- import { TournamentFormatConfig } from '../tournament-format-configs';
14
- import { TournamentMatchSchema } from '../tournament-match-schemas';
15
- import { TournamentMatch } from '../tournament-matches';
16
- import { TournamentPayment } from '../tournament-payments';
17
- import { TournamentPrizeRule } from '../tournament-prize-rules';
18
- import { TournamentRule } from '../tournament-rules';
19
- import { TournamentTeam } from '../tournament-teams';
20
- let Tournament = class Tournament {
21
- };
22
- __decorate([
23
- PrimaryGeneratedColumn(),
24
- __metadata("design:type", Number)
25
- ], Tournament.prototype, "id", void 0);
26
- __decorate([
27
- Column({ type: 'varchar', length: 255 }),
28
- __metadata("design:type", String)
29
- ], Tournament.prototype, "name", void 0);
30
- __decorate([
31
- Column({ name: 'initial_date', type: 'timestamptz' }),
32
- __metadata("design:type", Date)
33
- ], Tournament.prototype, "initialDate", void 0);
34
- __decorate([
35
- Column({ name: 'end_date', type: 'timestamptz' }),
36
- __metadata("design:type", Date)
37
- ], Tournament.prototype, "endDate", void 0);
38
- __decorate([
39
- Column({ type: 'text', nullable: true }),
40
- __metadata("design:type", Object)
41
- ], Tournament.prototype, "description", void 0);
42
- __decorate([
43
- Column({ name: 'tournament_image', type: 'text', nullable: true }),
44
- __metadata("design:type", Object)
45
- ], Tournament.prototype, "tournamentImage", void 0);
46
- __decorate([
47
- Column({ name: 'match_schema_id', type: 'int', nullable: true }),
48
- __metadata("design:type", Object)
49
- ], Tournament.prototype, "matchSchemaId", void 0);
50
- __decorate([
51
- Column({ name: 'rule_id', type: 'int' }),
52
- __metadata("design:type", Number)
53
- ], Tournament.prototype, "ruleId", void 0);
54
- __decorate([
55
- Column({ name: 'format_config_id', type: 'int' }),
56
- __metadata("design:type", Number)
57
- ], Tournament.prototype, "formatConfigId", void 0);
58
- __decorate([
59
- Column({
60
- name: 'match_days',
61
- type: 'enum',
62
- enum: Object.values(DayOfWeek),
63
- array: true,
64
- }),
65
- __metadata("design:type", Array)
66
- ], Tournament.prototype, "matchDays", void 0);
67
- __decorate([
68
- Column({ name: 'price_per_team', type: 'int' }),
69
- __metadata("design:type", Number)
70
- ], Tournament.prototype, "pricePerTeam", void 0);
71
- __decorate([
72
- Column({ name: 'match_start_time', type: 'time' }),
73
- __metadata("design:type", String)
74
- ], Tournament.prototype, "matchStartTime", void 0);
75
- __decorate([
76
- Column({ name: 'match_end_time', type: 'time' }),
77
- __metadata("design:type", String)
78
- ], Tournament.prototype, "matchEndTime", void 0);
79
- __decorate([
80
- Column({ type: 'varchar', length: 100 }),
81
- __metadata("design:type", String)
82
- ], Tournament.prototype, "city", void 0);
83
- __decorate([
84
- Column({ type: 'varchar', length: 2 }),
85
- __metadata("design:type", String)
86
- ], Tournament.prototype, "state", void 0);
87
- __decorate([
88
- Column({
89
- type: 'enum',
90
- enum: Object.values(TournamentGender),
91
- }),
92
- __metadata("design:type", String)
93
- ], Tournament.prototype, "gender", void 0);
94
- __decorate([
95
- Column({ name: 'deleted_at', type: 'timestamptz', nullable: true }),
96
- __metadata("design:type", Object)
97
- ], Tournament.prototype, "deletedAt", void 0);
98
- __decorate([
99
- CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
100
- __metadata("design:type", Date)
101
- ], Tournament.prototype, "createdAt", void 0);
102
- __decorate([
103
- UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
104
- __metadata("design:type", Date)
105
- ], Tournament.prototype, "updatedAt", void 0);
106
- __decorate([
107
- ManyToOne(() => TournamentMatchSchema, (matchSchema) => matchSchema.tournaments, {
108
- onDelete: 'CASCADE',
109
- }),
110
- JoinColumn({ name: 'match_schema_id' }),
111
- __metadata("design:type", TournamentMatchSchema)
112
- ], Tournament.prototype, "matchSchema", void 0);
113
- __decorate([
114
- OneToMany(() => TournamentTeam, (team) => team.tournament),
115
- __metadata("design:type", Array)
116
- ], Tournament.prototype, "teams", void 0);
117
- __decorate([
118
- OneToOne(() => TournamentRule, (rule) => rule.tournament, { cascade: true }),
119
- JoinColumn({ name: 'rule_id' }),
120
- __metadata("design:type", TournamentRule)
121
- ], Tournament.prototype, "rule", void 0);
122
- __decorate([
123
- OneToOne(() => TournamentFormatConfig, (format) => format.tournament, { cascade: true }),
124
- JoinColumn({ name: 'format_config_id' }),
125
- __metadata("design:type", TournamentFormatConfig)
126
- ], Tournament.prototype, "format", void 0);
127
- __decorate([
128
- OneToMany(() => TournamentPrizeRule, (prizeRule) => prizeRule.tournament),
129
- __metadata("design:type", Array)
130
- ], Tournament.prototype, "prizeRules", void 0);
131
- __decorate([
132
- OneToMany(() => TournamentPayment, (payment) => payment.tournament),
133
- __metadata("design:type", Array)
134
- ], Tournament.prototype, "payments", void 0);
135
- __decorate([
136
- OneToMany(() => TournamentMatch, (match) => match.tournament),
137
- __metadata("design:type", Array)
138
- ], Tournament.prototype, "matches", void 0);
139
- __decorate([
140
- OneToMany(() => TournamentFacility, (facility) => facility.tournament),
141
- __metadata("design:type", Array)
142
- ], Tournament.prototype, "tournamentFacilities", void 0);
143
- Tournament = __decorate([
144
- Entity('tournaments')
33
+ __decorateClass([
34
+ PrimaryGeneratedColumn()
35
+ ], Tournament.prototype, "id", 2);
36
+ __decorateClass([
37
+ Column({ type: "varchar", length: 255 })
38
+ ], Tournament.prototype, "name", 2);
39
+ __decorateClass([
40
+ Column({ name: "initial_date", type: "timestamptz" })
41
+ ], Tournament.prototype, "initialDate", 2);
42
+ __decorateClass([
43
+ Column({ name: "end_date", type: "timestamptz" })
44
+ ], Tournament.prototype, "endDate", 2);
45
+ __decorateClass([
46
+ Column({ type: "text", nullable: true })
47
+ ], Tournament.prototype, "description", 2);
48
+ __decorateClass([
49
+ Column({ name: "tournament_image", type: "text", nullable: true })
50
+ ], Tournament.prototype, "tournamentImage", 2);
51
+ __decorateClass([
52
+ Column({ name: "match_schema_id", type: "int", nullable: true })
53
+ ], Tournament.prototype, "matchSchemaId", 2);
54
+ __decorateClass([
55
+ Column({ name: "rule_id", type: "int" })
56
+ ], Tournament.prototype, "ruleId", 2);
57
+ __decorateClass([
58
+ Column({ name: "format_config_id", type: "int" })
59
+ ], Tournament.prototype, "formatConfigId", 2);
60
+ __decorateClass([
61
+ Column({
62
+ name: "match_days",
63
+ type: "enum",
64
+ enum: Object.values(DayOfWeek),
65
+ array: true
66
+ })
67
+ ], Tournament.prototype, "matchDays", 2);
68
+ __decorateClass([
69
+ Column({ name: "price_per_team", type: "int" })
70
+ ], Tournament.prototype, "pricePerTeam", 2);
71
+ __decorateClass([
72
+ Column({ name: "match_start_time", type: "time" })
73
+ ], Tournament.prototype, "matchStartTime", 2);
74
+ __decorateClass([
75
+ Column({ name: "match_end_time", type: "time" })
76
+ ], Tournament.prototype, "matchEndTime", 2);
77
+ __decorateClass([
78
+ Column({ type: "varchar", length: 100 })
79
+ ], Tournament.prototype, "city", 2);
80
+ __decorateClass([
81
+ Column({ type: "varchar", length: 2 })
82
+ ], Tournament.prototype, "state", 2);
83
+ __decorateClass([
84
+ Column({
85
+ type: "enum",
86
+ enum: Object.values(TournamentGender)
87
+ })
88
+ ], Tournament.prototype, "gender", 2);
89
+ __decorateClass([
90
+ Column({ name: "deleted_at", type: "timestamptz", nullable: true })
91
+ ], Tournament.prototype, "deletedAt", 2);
92
+ __decorateClass([
93
+ CreateDateColumn({ name: "created_at", type: "timestamptz" })
94
+ ], Tournament.prototype, "createdAt", 2);
95
+ __decorateClass([
96
+ UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
97
+ ], Tournament.prototype, "updatedAt", 2);
98
+ __decorateClass([
99
+ ManyToOne(() => TournamentMatchSchema, (matchSchema) => matchSchema.tournaments, {
100
+ onDelete: "CASCADE"
101
+ }),
102
+ JoinColumn({ name: "match_schema_id" })
103
+ ], Tournament.prototype, "matchSchema", 2);
104
+ __decorateClass([
105
+ OneToMany(() => TournamentTeam, (team) => team.tournament)
106
+ ], Tournament.prototype, "teams", 2);
107
+ __decorateClass([
108
+ OneToOne(() => TournamentRule, (rule) => rule.tournament, { cascade: true }),
109
+ JoinColumn({ name: "rule_id" })
110
+ ], Tournament.prototype, "rule", 2);
111
+ __decorateClass([
112
+ OneToOne(() => TournamentFormatConfig, (format) => format.tournament, { cascade: true }),
113
+ JoinColumn({ name: "format_config_id" })
114
+ ], Tournament.prototype, "format", 2);
115
+ __decorateClass([
116
+ OneToMany(() => TournamentPrizeRule, (prizeRule) => prizeRule.tournament)
117
+ ], Tournament.prototype, "prizeRules", 2);
118
+ __decorateClass([
119
+ OneToMany(() => TournamentPayment, (payment) => payment.tournament)
120
+ ], Tournament.prototype, "payments", 2);
121
+ __decorateClass([
122
+ OneToMany(() => TournamentMatch, (match) => match.tournament)
123
+ ], Tournament.prototype, "matches", 2);
124
+ __decorateClass([
125
+ OneToMany(() => TournamentFacility, (facility) => facility.tournament)
126
+ ], Tournament.prototype, "tournamentFacilities", 2);
127
+ Tournament = __decorateClass([
128
+ Entity("tournaments")
145
129
  ], Tournament);
146
- export { Tournament };
147
- //# sourceMappingURL=tournament.entity.js.map
130
+ export {
131
+ Tournament
132
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.1.9",
3
+ "version": "1.2.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -29,12 +29,14 @@
29
29
  "@eslint/js": "^9.23.0",
30
30
  "@typescript-eslint/eslint-plugin": "^8.28.0",
31
31
  "@typescript-eslint/parser": "^8.28.0",
32
+ "esbuild": "^0.25.1",
32
33
  "eslint": "^9.23.0",
33
34
  "eslint-config-prettier": "^10.1.1",
34
35
  "eslint-import-resolver-typescript": "^4.2.4",
35
36
  "eslint-plugin-import": "^2.31.0",
36
37
  "eslint-plugin-prettier": "^5.2.5",
37
38
  "eslint-plugin-unused-imports": "^4.1.4",
39
+ "glob": "^11.0.1",
38
40
  "husky": "^9.1.7",
39
41
  "lint-staged": "^15.5.0",
40
42
  "prettier": "^3.5.3",
@@ -46,7 +48,7 @@
46
48
  "typeorm": "^0.3.21"
47
49
  },
48
50
  "scripts": {
49
- "build": "tsc",
51
+ "build": "tsc --noEmit && node build.js",
50
52
  "clean": "rm -rf dist",
51
53
  "lint": "eslint src --ext .ts",
52
54
  "check:types": "tsc --noEmit"
@@ -1,6 +0,0 @@
1
- export * from './password-resets';
2
- export * from './refresh-tokens';
3
- export * from './user-auth-providers';
4
- export * from './user-verifications';
5
- export * from './users';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app-auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/app-auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export { PasswordReset } from './password-reset.entity';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app-auth/password-resets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/app-auth/password-resets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,11 +0,0 @@
1
- import { User } from '../users';
2
- export declare class PasswordReset {
3
- id: number;
4
- createdAt: Date;
5
- expiresAt: Date;
6
- usedAt: Date | null;
7
- userId: string;
8
- token: string;
9
- user: User;
10
- }
11
- //# sourceMappingURL=password-reset.entity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"password-reset.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/password-resets/password-reset.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAYhC,qBAEa,aAAa;IAExB,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IAGpB,MAAM,EAAE,MAAM,CAAC;IAGf,KAAK,EAAE,MAAM,CAAC;IASd,IAAI,EAAE,IAAI,CAAC;CACZ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"password-reset.entity.js","sourceRoot":"","sources":["../../../src/app-auth/password-resets/password-reset.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,SAAS,EACT,sBAAsB,EACtB,MAAM,GACP,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAczB,IAAM,aAAa,GAAnB,MAAM,aAAa;CA2BzB,CAAA;AAzBC;IADC,sBAAsB,EAAE;;yCACd;AAGX;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;gDAAC;AAGhB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACzC,IAAI;gDAAC;AAGhB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC7C;AAGpB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CAC3B;AAGf;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;4CAC3B;AASd;IAFC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC7E,UAAU,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,IAAI;2CAAC;AA1BA,aAAa;IAFzB,MAAM,CAAC,iBAAiB,CAAC;IACzB,MAAM,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;GACf,aAAa,CA2BzB"}
@@ -1,2 +0,0 @@
1
- export { RefreshToken } from './refresh-token.entity';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app-auth/refresh-tokens/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/app-auth/refresh-tokens/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,11 +0,0 @@
1
- import { User } from '../users';
2
- export declare class RefreshToken {
3
- id: string;
4
- createdAt: Date;
5
- expiresAt: Date;
6
- revokedAt: Date | null;
7
- token: string;
8
- userId: string;
9
- user: User;
10
- }
11
- //# sourceMappingURL=refresh-token.entity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"refresh-token.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/refresh-tokens/refresh-token.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAYhC,qBAEa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAGvB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IASf,IAAI,EAAE,IAAI,CAAC;CACZ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../../src/app-auth/refresh-tokens/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,SAAS,EACT,sBAAsB,EACtB,MAAM,GACP,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAczB,IAAM,YAAY,GAAlB,MAAM,YAAY;CA2BxB,CAAA;AAzBC;IADC,sBAAsB,CAAC,MAAM,CAAC;;wCACpB;AAGX;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;+CAAC;AAGhB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACzC,IAAI;+CAAC;AAGhB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC7C;AAGvB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;2CACzC;AAGd;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CAC3B;AASf;IAFC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC5E,UAAU,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,IAAI;0CAAC;AA1BA,YAAY;IAFxB,MAAM,CAAC,gBAAgB,CAAC;IACxB,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;GACL,YAAY,CA2BxB"}
@@ -1,6 +0,0 @@
1
- export declare enum AuthProvider {
2
- GOOGLE = "google",
3
- META = "meta",
4
- APPLE = "apple"
5
- }
6
- //# sourceMappingURL=auth-provider.enum.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth-provider.enum.d.ts","sourceRoot":"","sources":["../../../../src/app-auth/user-auth-providers/enums/auth-provider.enum.ts"],"names":[],"mappings":"AAQA,oBAAY,YAAY;IAItB,MAAM,WAAW;IAKjB,IAAI,SAAS;IAKb,KAAK,UAAU;CAChB"}