@natrave/shared-entities 1.1.4 → 1.1.5

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.d.ts +6 -0
  2. package/dist/app-auth/index.d.ts.map +1 -0
  3. package/dist/app-auth/index.js +6 -0
  4. package/dist/app-auth/index.js.map +1 -0
  5. package/dist/app-auth/password-resets/index.d.ts +2 -0
  6. package/dist/app-auth/password-resets/index.d.ts.map +1 -0
  7. package/dist/app-auth/password-resets/index.js +2 -0
  8. package/dist/app-auth/password-resets/index.js.map +1 -0
  9. package/dist/app-auth/password-resets/password-reset.entity.d.ts +11 -0
  10. package/dist/app-auth/password-resets/password-reset.entity.d.ts.map +1 -0
  11. package/dist/app-auth/password-resets/password-reset.entity.js +48 -0
  12. package/dist/app-auth/password-resets/password-reset.entity.js.map +1 -0
  13. package/dist/app-auth/refresh-tokens/index.d.ts +2 -0
  14. package/dist/app-auth/refresh-tokens/index.d.ts.map +1 -0
  15. package/dist/app-auth/refresh-tokens/index.js +2 -0
  16. package/dist/app-auth/refresh-tokens/index.js.map +1 -0
  17. package/dist/app-auth/refresh-tokens/refresh-token.entity.d.ts +11 -0
  18. package/dist/app-auth/refresh-tokens/refresh-token.entity.d.ts.map +1 -0
  19. package/dist/app-auth/refresh-tokens/refresh-token.entity.js +48 -0
  20. package/dist/app-auth/refresh-tokens/refresh-token.entity.js.map +1 -0
  21. package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.d.ts +6 -0
  22. package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.d.ts.map +1 -0
  23. package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.js +7 -0
  24. package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.js.map +1 -0
  25. package/dist/app-auth/user-auth-providers/index.d.ts +3 -0
  26. package/dist/app-auth/user-auth-providers/index.d.ts.map +1 -0
  27. package/dist/app-auth/user-auth-providers/index.js +3 -0
  28. package/dist/app-auth/user-auth-providers/index.js.map +1 -0
  29. package/dist/app-auth/user-auth-providers/user-auth-provider.entity.d.ts +13 -0
  30. package/dist/app-auth/user-auth-providers/user-auth-provider.entity.d.ts.map +1 -0
  31. package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js +53 -0
  32. package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js.map +1 -0
  33. package/dist/app-auth/user-verifications/enums/verification-type.enum.d.ts +5 -0
  34. package/dist/app-auth/user-verifications/enums/verification-type.enum.d.ts.map +1 -0
  35. package/dist/app-auth/user-verifications/enums/verification-type.enum.js +6 -0
  36. package/dist/app-auth/user-verifications/enums/verification-type.enum.js.map +1 -0
  37. package/dist/app-auth/user-verifications/index.d.ts +3 -0
  38. package/dist/app-auth/user-verifications/index.d.ts.map +1 -0
  39. package/dist/app-auth/user-verifications/index.js +3 -0
  40. package/dist/app-auth/user-verifications/index.js.map +1 -0
  41. package/dist/app-auth/user-verifications/user-verification.entity.d.ts +15 -0
  42. package/dist/app-auth/user-verifications/user-verification.entity.d.ts.map +1 -0
  43. package/dist/app-auth/user-verifications/user-verification.entity.js +60 -0
  44. package/dist/app-auth/user-verifications/user-verification.entity.js.map +1 -0
  45. package/dist/app-auth/users/index.d.ts +2 -0
  46. package/dist/app-auth/users/index.d.ts.map +1 -0
  47. package/dist/app-auth/users/index.js +2 -0
  48. package/dist/app-auth/users/index.js.map +1 -0
  49. package/dist/app-auth/users/user.entity.d.ts +29 -0
  50. package/dist/app-auth/users/user.entity.d.ts.map +1 -0
  51. package/dist/app-auth/users/user.entity.js +136 -0
  52. package/dist/app-auth/users/user.entity.js.map +1 -0
  53. package/dist/app-auth/users/utils/format-data.utils.d.ts +7 -0
  54. package/dist/app-auth/users/utils/format-data.utils.d.ts.map +1 -0
  55. package/dist/app-auth/users/utils/format-data.utils.js +19 -0
  56. package/dist/app-auth/users/utils/format-data.utils.js.map +1 -0
  57. package/dist/common/utils/decimal-transformer.utils.d.ts +5 -0
  58. package/dist/common/utils/decimal-transformer.utils.d.ts.map +1 -0
  59. package/dist/common/utils/decimal-transformer.utils.js +15 -0
  60. package/dist/common/utils/decimal-transformer.utils.js.map +1 -0
  61. package/dist/facilities/addresses/address.entity.d.ts +18 -0
  62. package/dist/facilities/addresses/address.entity.d.ts.map +1 -0
  63. package/dist/facilities/addresses/address.entity.js +87 -0
  64. package/dist/facilities/addresses/address.entity.js.map +1 -0
  65. package/dist/facilities/addresses/index.d.ts +2 -0
  66. package/dist/facilities/addresses/index.d.ts.map +1 -0
  67. package/dist/facilities/addresses/index.js +2 -0
  68. package/dist/facilities/addresses/index.js.map +1 -0
  69. package/dist/facilities/facilities/enums/facility-status.enum.d.ts +6 -0
  70. package/dist/facilities/facilities/enums/facility-status.enum.d.ts.map +1 -0
  71. package/dist/facilities/facilities/enums/facility-status.enum.js +7 -0
  72. package/dist/facilities/facilities/enums/facility-status.enum.js.map +1 -0
  73. package/dist/facilities/facilities/facility.entity.d.ts +26 -0
  74. package/dist/facilities/facilities/facility.entity.d.ts.map +1 -0
  75. package/dist/facilities/facilities/facility.entity.js +124 -0
  76. package/dist/facilities/facilities/facility.entity.js.map +1 -0
  77. package/dist/facilities/facilities/index.d.ts +3 -0
  78. package/dist/facilities/facilities/index.d.ts.map +1 -0
  79. package/dist/facilities/facilities/index.js +3 -0
  80. package/dist/facilities/facilities/index.js.map +1 -0
  81. package/dist/facilities/facilities/utils/sanititze.utils.d.ts +5 -0
  82. package/dist/facilities/facilities/utils/sanititze.utils.d.ts.map +1 -0
  83. package/dist/facilities/facilities/utils/sanititze.utils.js +12 -0
  84. package/dist/facilities/facilities/utils/sanititze.utils.js.map +1 -0
  85. package/dist/facilities/facility-images/facility-image.entity.d.ts +12 -0
  86. package/dist/facilities/facility-images/facility-image.entity.d.ts.map +1 -0
  87. package/dist/facilities/facility-images/facility-image.entity.js +59 -0
  88. package/dist/facilities/facility-images/facility-image.entity.js.map +1 -0
  89. package/dist/facilities/facility-images/index.d.ts +2 -0
  90. package/dist/facilities/facility-images/index.d.ts.map +1 -0
  91. package/dist/facilities/facility-images/index.js +2 -0
  92. package/dist/facilities/facility-images/index.js.map +1 -0
  93. package/dist/facilities/facility-owners/facility-owner.entity.d.ts +13 -0
  94. package/dist/facilities/facility-owners/facility-owner.entity.d.ts.map +1 -0
  95. package/dist/facilities/facility-owners/facility-owner.entity.js +65 -0
  96. package/dist/facilities/facility-owners/facility-owner.entity.js.map +1 -0
  97. package/dist/facilities/facility-owners/index.d.ts +2 -0
  98. package/dist/facilities/facility-owners/index.d.ts.map +1 -0
  99. package/dist/facilities/facility-owners/index.js +2 -0
  100. package/dist/facilities/facility-owners/index.js.map +1 -0
  101. package/dist/facilities/facility-owners/utils/sanitize.utils.d.ts +5 -0
  102. package/dist/facilities/facility-owners/utils/sanitize.utils.d.ts.map +1 -0
  103. package/dist/facilities/facility-owners/utils/sanitize.utils.js +9 -0
  104. package/dist/facilities/facility-owners/utils/sanitize.utils.js.map +1 -0
  105. package/dist/facilities/fields/enums/surface-type.enum.d.ts +8 -0
  106. package/dist/facilities/fields/enums/surface-type.enum.d.ts.map +1 -0
  107. package/dist/facilities/fields/enums/surface-type.enum.js +9 -0
  108. package/dist/facilities/fields/enums/surface-type.enum.js.map +1 -0
  109. package/dist/facilities/fields/field.entity.d.ts +18 -0
  110. package/dist/facilities/fields/field.entity.d.ts.map +1 -0
  111. package/dist/facilities/fields/field.entity.js +72 -0
  112. package/dist/facilities/fields/field.entity.js.map +1 -0
  113. package/dist/facilities/fields/index.d.ts +3 -0
  114. package/dist/facilities/fields/index.d.ts.map +1 -0
  115. package/dist/facilities/fields/index.js +3 -0
  116. package/dist/facilities/fields/index.js.map +1 -0
  117. package/dist/facilities/index.d.ts +6 -0
  118. package/dist/facilities/index.d.ts.map +1 -0
  119. package/dist/facilities/index.js +6 -0
  120. package/dist/facilities/index.js.map +1 -0
  121. package/dist/index.d.ts +5 -0
  122. package/dist/index.d.ts.map +1 -0
  123. package/dist/index.js +5 -0
  124. package/dist/index.js.map +1 -0
  125. package/dist/payments/index.d.ts +4 -0
  126. package/dist/payments/index.d.ts.map +1 -0
  127. package/dist/payments/index.js +4 -0
  128. package/dist/payments/index.js.map +1 -0
  129. package/dist/payments/payment-providers/enums/payment-provider-name.enum.d.ts +4 -0
  130. package/dist/payments/payment-providers/enums/payment-provider-name.enum.d.ts.map +1 -0
  131. package/dist/payments/payment-providers/enums/payment-provider-name.enum.js +5 -0
  132. package/dist/payments/payment-providers/enums/payment-provider-name.enum.js.map +1 -0
  133. package/dist/payments/payment-providers/index.d.ts +3 -0
  134. package/dist/payments/payment-providers/index.d.ts.map +1 -0
  135. package/dist/payments/payment-providers/index.js +3 -0
  136. package/dist/payments/payment-providers/index.js.map +1 -0
  137. package/dist/payments/payment-providers/payment-provider.entity.d.ts +10 -0
  138. package/dist/payments/payment-providers/payment-provider.entity.d.ts.map +1 -0
  139. package/dist/payments/payment-providers/payment-provider.entity.js +50 -0
  140. package/dist/payments/payment-providers/payment-provider.entity.js.map +1 -0
  141. package/dist/payments/payments/enums/payment-method.enum.d.ts +5 -0
  142. package/dist/payments/payments/enums/payment-method.enum.d.ts.map +1 -0
  143. package/dist/payments/payments/enums/payment-method.enum.js +6 -0
  144. package/dist/payments/payments/enums/payment-method.enum.js.map +1 -0
  145. package/dist/payments/payments/enums/payment-status.enum.d.ts +10 -0
  146. package/dist/payments/payments/enums/payment-status.enum.d.ts.map +1 -0
  147. package/dist/payments/payments/enums/payment-status.enum.js +11 -0
  148. package/dist/payments/payments/enums/payment-status.enum.js.map +1 -0
  149. package/dist/payments/payments/index.d.ts +4 -0
  150. package/dist/payments/payments/index.d.ts.map +1 -0
  151. package/dist/payments/payments/index.js +4 -0
  152. package/dist/payments/payments/index.js.map +1 -0
  153. package/dist/payments/payments/payment.entity.d.ts +19 -0
  154. package/dist/payments/payments/payment.entity.d.ts.map +1 -0
  155. package/dist/payments/payments/payment.entity.js +85 -0
  156. package/dist/payments/payments/payment.entity.js.map +1 -0
  157. package/dist/payments/user-payment-providers/index.d.ts +2 -0
  158. package/dist/payments/user-payment-providers/index.d.ts.map +1 -0
  159. package/dist/payments/user-payment-providers/index.js +2 -0
  160. package/dist/payments/user-payment-providers/index.js.map +1 -0
  161. package/dist/payments/user-payment-providers/user-payment-provider.entity.d.ts +13 -0
  162. package/dist/payments/user-payment-providers/user-payment-provider.entity.d.ts.map +1 -0
  163. package/dist/payments/user-payment-providers/user-payment-provider.entity.js +61 -0
  164. package/dist/payments/user-payment-providers/user-payment-provider.entity.js.map +1 -0
  165. package/dist/tournaments/index.d.ts +13 -0
  166. package/dist/tournaments/index.d.ts.map +1 -0
  167. package/dist/tournaments/index.js +13 -0
  168. package/dist/tournaments/index.js.map +1 -0
  169. package/dist/tournaments/tournament-facilities/index.d.ts +2 -0
  170. package/dist/tournaments/tournament-facilities/index.d.ts.map +1 -0
  171. package/dist/tournaments/tournament-facilities/index.js +2 -0
  172. package/dist/tournaments/tournament-facilities/index.js.map +1 -0
  173. package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts +14 -0
  174. package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts.map +1 -0
  175. package/dist/tournaments/tournament-facilities/tournament-facility.entity.js +61 -0
  176. package/dist/tournaments/tournament-facilities/tournament-facility.entity.js.map +1 -0
  177. package/dist/tournaments/tournament-format-configs/index.d.ts +2 -0
  178. package/dist/tournaments/tournament-format-configs/index.d.ts.map +1 -0
  179. package/dist/tournaments/tournament-format-configs/index.js +2 -0
  180. package/dist/tournaments/tournament-format-configs/index.js.map +1 -0
  181. package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts +15 -0
  182. package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts.map +1 -0
  183. package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js +76 -0
  184. package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js.map +1 -0
  185. package/dist/tournaments/tournament-match-cards/index.d.ts +2 -0
  186. package/dist/tournaments/tournament-match-cards/index.d.ts.map +1 -0
  187. package/dist/tournaments/tournament-match-cards/index.js +2 -0
  188. package/dist/tournaments/tournament-match-cards/index.js.map +1 -0
  189. package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts +19 -0
  190. package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts.map +1 -0
  191. package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js +75 -0
  192. package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js.map +1 -0
  193. package/dist/tournaments/tournament-match-goals/index.d.ts +2 -0
  194. package/dist/tournaments/tournament-match-goals/index.d.ts.map +1 -0
  195. package/dist/tournaments/tournament-match-goals/index.js +2 -0
  196. package/dist/tournaments/tournament-match-goals/index.js.map +1 -0
  197. package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts +20 -0
  198. package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts.map +1 -0
  199. package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js +79 -0
  200. package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js.map +1 -0
  201. package/dist/tournaments/tournament-match-schemas/index.d.ts +2 -0
  202. package/dist/tournaments/tournament-match-schemas/index.d.ts.map +1 -0
  203. package/dist/tournaments/tournament-match-schemas/index.js +2 -0
  204. package/dist/tournaments/tournament-match-schemas/index.js.map +1 -0
  205. package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.d.ts +12 -0
  206. package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.d.ts.map +1 -0
  207. package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js +47 -0
  208. package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js.map +1 -0
  209. package/dist/tournaments/tournament-matches/index.d.ts +2 -0
  210. package/dist/tournaments/tournament-matches/index.d.ts.map +1 -0
  211. package/dist/tournaments/tournament-matches/index.js +2 -0
  212. package/dist/tournaments/tournament-matches/index.js.map +1 -0
  213. package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts +25 -0
  214. package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts.map +1 -0
  215. package/dist/tournaments/tournament-matches/tournament-match.entity.js +97 -0
  216. package/dist/tournaments/tournament-matches/tournament-match.entity.js.map +1 -0
  217. package/dist/tournaments/tournament-payments/index.d.ts +2 -0
  218. package/dist/tournaments/tournament-payments/index.d.ts.map +1 -0
  219. package/dist/tournaments/tournament-payments/index.js +2 -0
  220. package/dist/tournaments/tournament-payments/index.js.map +1 -0
  221. package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts +16 -0
  222. package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts.map +1 -0
  223. package/dist/tournaments/tournament-payments/tournament-payment.entity.js +59 -0
  224. package/dist/tournaments/tournament-payments/tournament-payment.entity.js.map +1 -0
  225. package/dist/tournaments/tournament-players/index.d.ts +2 -0
  226. package/dist/tournaments/tournament-players/index.d.ts.map +1 -0
  227. package/dist/tournaments/tournament-players/index.js +2 -0
  228. package/dist/tournaments/tournament-players/index.js.map +1 -0
  229. package/dist/tournaments/tournament-players/tournament-player.entity.d.ts +19 -0
  230. package/dist/tournaments/tournament-players/tournament-player.entity.d.ts.map +1 -0
  231. package/dist/tournaments/tournament-players/tournament-player.entity.js +76 -0
  232. package/dist/tournaments/tournament-players/tournament-player.entity.js.map +1 -0
  233. package/dist/tournaments/tournament-prize-rules/index.d.ts +2 -0
  234. package/dist/tournaments/tournament-prize-rules/index.d.ts.map +1 -0
  235. package/dist/tournaments/tournament-prize-rules/index.js +2 -0
  236. package/dist/tournaments/tournament-prize-rules/index.js.map +1 -0
  237. package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.d.ts +13 -0
  238. package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.d.ts.map +1 -0
  239. package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js +55 -0
  240. package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js.map +1 -0
  241. package/dist/tournaments/tournament-rules/index.d.ts +2 -0
  242. package/dist/tournaments/tournament-rules/index.d.ts.map +1 -0
  243. package/dist/tournaments/tournament-rules/index.js +2 -0
  244. package/dist/tournaments/tournament-rules/index.js.map +1 -0
  245. package/dist/tournaments/tournament-rules/tournament-rule.entity.d.ts +17 -0
  246. package/dist/tournaments/tournament-rules/tournament-rule.entity.d.ts.map +1 -0
  247. package/dist/tournaments/tournament-rules/tournament-rule.entity.js +77 -0
  248. package/dist/tournaments/tournament-rules/tournament-rule.entity.js.map +1 -0
  249. package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts +5 -0
  250. package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts.map +1 -0
  251. package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.js +6 -0
  252. package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.js.map +1 -0
  253. package/dist/tournaments/tournament-teams/index.d.ts +3 -0
  254. package/dist/tournaments/tournament-teams/index.d.ts.map +1 -0
  255. package/dist/tournaments/tournament-teams/index.js +3 -0
  256. package/dist/tournaments/tournament-teams/index.js.map +1 -0
  257. package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts +26 -0
  258. package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts.map +1 -0
  259. package/dist/tournaments/tournament-teams/tournament-team.entity.js +100 -0
  260. package/dist/tournaments/tournament-teams/tournament-team.entity.js.map +1 -0
  261. package/dist/tournaments/tournament-teams/utils/invite-code-generator.d.ts +2 -0
  262. package/dist/tournaments/tournament-teams/utils/invite-code-generator.d.ts.map +1 -0
  263. package/dist/tournaments/tournament-teams/utils/invite-code-generator.js +4 -0
  264. package/dist/tournaments/tournament-teams/utils/invite-code-generator.js.map +1 -0
  265. package/dist/tournaments/tournaments/index.d.ts +2 -0
  266. package/dist/tournaments/tournaments/index.d.ts.map +1 -0
  267. package/dist/tournaments/tournaments/index.js +2 -0
  268. package/dist/tournaments/tournaments/index.js.map +1 -0
  269. package/dist/tournaments/tournaments/tournament.entity.d.ts +39 -0
  270. package/dist/tournaments/tournaments/tournament.entity.d.ts.map +1 -0
  271. package/dist/tournaments/tournaments/tournament.entity.js +147 -0
  272. package/dist/tournaments/tournaments/tournament.entity.js.map +1 -0
  273. package/package.json +1 -1
@@ -0,0 +1,136 @@
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;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Unique, OneToMany, BeforeInsert, } from 'typeorm';
11
+ import { PasswordReset } from 'app-auth/password-resets';
12
+ import { RefreshToken } from 'app-auth/refresh-tokens';
13
+ import { UserAuthProvider } from 'app-auth/user-auth-providers';
14
+ import { UserVerification } from 'app-auth/user-verifications';
15
+ import { UserPaymentProvider } from 'payments';
16
+ import { TournamentPlayer } from 'tournaments';
17
+ import { formatUserBeforeInsertData } from './utils/format-data.utils';
18
+ let User = class User {
19
+ prepareData() {
20
+ formatUserBeforeInsertData(this);
21
+ }
22
+ };
23
+ __decorate([
24
+ PrimaryGeneratedColumn('uuid'),
25
+ __metadata("design:type", String)
26
+ ], User.prototype, "id", void 0);
27
+ __decorate([
28
+ Column({
29
+ name: 'numeric_id',
30
+ type: 'int',
31
+ unique: true,
32
+ nullable: false,
33
+ generated: 'increment',
34
+ }),
35
+ __metadata("design:type", Number)
36
+ ], User.prototype, "numericId", void 0);
37
+ __decorate([
38
+ CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
39
+ __metadata("design:type", Date)
40
+ ], User.prototype, "createdAt", void 0);
41
+ __decorate([
42
+ UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
43
+ __metadata("design:type", Date)
44
+ ], User.prototype, "updatedAt", void 0);
45
+ __decorate([
46
+ DeleteDateColumn({ name: 'deleted_at', type: 'timestamptz', nullable: true }),
47
+ __metadata("design:type", Date)
48
+ ], User.prototype, "deletedAt", void 0);
49
+ __decorate([
50
+ Column({ name: 'first_name', type: 'varchar', length: 255, nullable: true }),
51
+ __metadata("design:type", String)
52
+ ], User.prototype, "firstName", void 0);
53
+ __decorate([
54
+ Column({ name: 'last_name', type: 'varchar', length: 255, nullable: true }),
55
+ __metadata("design:type", String)
56
+ ], User.prototype, "lastName", void 0);
57
+ __decorate([
58
+ Column({ type: 'varchar', length: 255, unique: true }),
59
+ __metadata("design:type", String)
60
+ ], User.prototype, "email", void 0);
61
+ __decorate([
62
+ Column({ type: 'varchar', length: 255, unique: true, nullable: true }),
63
+ __metadata("design:type", String)
64
+ ], User.prototype, "username", void 0);
65
+ __decorate([
66
+ Column({ type: 'varchar', length: 14, nullable: true, unique: true }),
67
+ __metadata("design:type", String)
68
+ ], User.prototype, "cpf", void 0);
69
+ __decorate([
70
+ Column({
71
+ name: 'phone',
72
+ type: 'varchar',
73
+ length: 16,
74
+ unique: true,
75
+ nullable: true,
76
+ }),
77
+ __metadata("design:type", String)
78
+ ], User.prototype, "phone", void 0);
79
+ __decorate([
80
+ Column({
81
+ name: 'password_hash',
82
+ type: 'varchar',
83
+ length: 255,
84
+ nullable: true,
85
+ }),
86
+ __metadata("design:type", Object)
87
+ ], User.prototype, "passwordHash", void 0);
88
+ __decorate([
89
+ Column({ name: 'image_url', type: 'varchar', length: 500, nullable: true }),
90
+ __metadata("design:type", String)
91
+ ], User.prototype, "imageUrl", void 0);
92
+ __decorate([
93
+ OneToMany(() => RefreshToken, (refreshToken) => refreshToken.user),
94
+ __metadata("design:type", Array)
95
+ ], User.prototype, "refreshTokens", void 0);
96
+ __decorate([
97
+ OneToMany(() => PasswordReset, (passwordReset) => passwordReset.user),
98
+ __metadata("design:type", Array)
99
+ ], User.prototype, "passwordResets", void 0);
100
+ __decorate([
101
+ OneToMany(() => UserVerification, (verification) => verification.user),
102
+ __metadata("design:type", Array)
103
+ ], User.prototype, "verifications", void 0);
104
+ __decorate([
105
+ OneToMany(() => UserAuthProvider, (userAuthProvider) => userAuthProvider.user, {
106
+ cascade: true,
107
+ }),
108
+ __metadata("design:type", Array)
109
+ ], User.prototype, "userAuthProviders", void 0);
110
+ __decorate([
111
+ OneToMany(() => TournamentPlayer, (tournamentPlayer) => tournamentPlayer.user, {
112
+ cascade: true,
113
+ }),
114
+ __metadata("design:type", Array)
115
+ ], User.prototype, "tournamentPlayers", void 0);
116
+ __decorate([
117
+ OneToMany(() => UserPaymentProvider, (userPaymentProvider) => userPaymentProvider.user, {
118
+ cascade: true,
119
+ }),
120
+ __metadata("design:type", Array)
121
+ ], User.prototype, "userPaymentProviders", void 0);
122
+ __decorate([
123
+ BeforeInsert(),
124
+ __metadata("design:type", Function),
125
+ __metadata("design:paramtypes", []),
126
+ __metadata("design:returntype", void 0)
127
+ ], User.prototype, "prepareData", null);
128
+ User = __decorate([
129
+ Entity('users'),
130
+ Unique(['email']),
131
+ Unique(['username']),
132
+ Unique(['phone']),
133
+ Unique(['cpf'])
134
+ ], User);
135
+ export { User };
136
+ //# sourceMappingURL=user.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/app-auth/users/user.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,YAAY,GACb,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,aAAa,EAAE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,CAAC;;2CACrC;AAQlC;IAHC,SAAS,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE;QAC9E,OAAO,EAAE,IAAI;KACd,CAAC;;+CACoC;AAQtC;IAHC,SAAS,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE;QAC9E,OAAO,EAAE,IAAI;KACd,CAAC;;+CACoC;AAQtC;IAHC,SAAS,CAAC,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAAC,mBAAmB,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,EAAE;QACvF,OAAO,EAAE,IAAI;KACd,CAAC;;kDAC0C;AAU5C;IADC,YAAY,EAAE;;;;uCAGd;AA/GU,IAAI;IALhB,MAAM,CAAC,OAAO,CAAC;IACf,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;IACjB,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC;IACpB,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;IACjB,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC;GACH,IAAI,CAgHhB"}
@@ -0,0 +1,7 @@
1
+ export declare function formatUserBeforeInsertData(user: {
2
+ email?: string;
3
+ username?: string;
4
+ cpf?: string;
5
+ phone?: string;
6
+ }): void;
7
+ //# sourceMappingURL=format-data.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-data.utils.d.ts","sourceRoot":"","sources":["../../../../src/app-auth/users/utils/format-data.utils.ts"],"names":[],"mappings":"AAWA,wBAAgB,0BAA0B,CAAC,IAAI,EAAE;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAqBP"}
@@ -0,0 +1,19 @@
1
+ export function formatUserBeforeInsertData(user) {
2
+ if (user.email) {
3
+ user.email = user.email.toLowerCase().trim();
4
+ }
5
+ if (user.username) {
6
+ user.username = user.username.toLowerCase().trim();
7
+ }
8
+ if (user.cpf) {
9
+ user.cpf = user.cpf.replace(/\D/g, '').trim();
10
+ }
11
+ if (user.phone) {
12
+ user.phone = user.phone.replace(/\D/g, '').trim();
13
+ if (!user.phone.startsWith('55')) {
14
+ user.phone = `55${user.phone}`;
15
+ }
16
+ user.phone = `+${user.phone}`;
17
+ }
18
+ }
19
+ //# sourceMappingURL=format-data.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-data.utils.js","sourceRoot":"","sources":["../../../../src/app-auth/users/utils/format-data.utils.ts"],"names":[],"mappings":"AAWA,MAAM,UAAU,0BAA0B,CAAC,IAK1C;IACC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IAC/C,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IACrD,CAAC;IACD,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;QAEb,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAChD,CAAC;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QAEf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAElD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YACjC,IAAI,CAAC,KAAK,GAAG,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;QACjC,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;IAChC,CAAC;AACH,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const DecimalTransformer: {
2
+ to: (value: number) => number;
3
+ from: (value: string) => number;
4
+ };
5
+ //# sourceMappingURL=decimal-transformer.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decimal-transformer.utils.d.ts","sourceRoot":"","sources":["../../../src/common/utils/decimal-transformer.utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;gBACjB,MAAM,KAAG,MAAM;kBAMb,MAAM,KAAG,MAAM;CAK9B,CAAC"}
@@ -0,0 +1,15 @@
1
+ export const DecimalTransformer = {
2
+ to: (value) => {
3
+ if (typeof value !== 'number' || isNaN(value)) {
4
+ return NaN;
5
+ }
6
+ return value;
7
+ },
8
+ from: (value) => {
9
+ if (!value)
10
+ return NaN;
11
+ const parsed = parseFloat(value.trim());
12
+ return isNaN(parsed) ? NaN : parsed;
13
+ },
14
+ };
15
+ //# sourceMappingURL=decimal-transformer.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decimal-transformer.utils.js","sourceRoot":"","sources":["../../../src/common/utils/decimal-transformer.utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE,CAAC,KAAa,EAAU,EAAE;QAC5B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9C,OAAO,GAAG,CAAC;QACb,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,EAAE,CAAC,KAAa,EAAU,EAAE;QAC9B,IAAI,CAAC,KAAK;YAAE,OAAO,GAAG,CAAC;QACvB,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;QACxC,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { Facility } from 'facilities/facilities/facility.entity';
2
+ export declare class Address {
3
+ id: number;
4
+ createdAt: Date;
5
+ updatedAt: Date;
6
+ streetAddress: string;
7
+ number: string;
8
+ complement?: string;
9
+ neighborhood: string;
10
+ city: string;
11
+ state: string;
12
+ postalCode: string;
13
+ country: string;
14
+ latitude: number;
15
+ longitude: number;
16
+ facilities: Facility[];
17
+ }
18
+ //# sourceMappingURL=address.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/addresses/address.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAWjE,qBACa,OAAO;IAElB,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,aAAa,EAAE,MAAM,CAAC;IAGtB,MAAM,EAAE,MAAM,CAAC;IAGf,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,YAAY,EAAE,MAAM,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,UAAU,EAAE,MAAM,CAAC;IAGnB,OAAO,EAAE,MAAM,CAAC;IAQhB,QAAQ,EAAE,MAAM,CAAC;IAQjB,SAAS,EAAE,MAAM,CAAC;IAUlB,UAAU,EAAE,QAAQ,EAAE,CAAC;CACxB"}
@@ -0,0 +1,87 @@
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;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, OneToMany, } from 'typeorm';
11
+ import { DecimalTransformer } from 'common/utils/decimal-transformer.utils';
12
+ import { Facility } from 'facilities/facilities/facility.entity';
13
+ let Address = class Address {
14
+ };
15
+ __decorate([
16
+ PrimaryGeneratedColumn(),
17
+ __metadata("design:type", Number)
18
+ ], Address.prototype, "id", void 0);
19
+ __decorate([
20
+ CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
21
+ __metadata("design:type", Date)
22
+ ], Address.prototype, "createdAt", void 0);
23
+ __decorate([
24
+ UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
25
+ __metadata("design:type", Date)
26
+ ], Address.prototype, "updatedAt", void 0);
27
+ __decorate([
28
+ Column({ name: 'street_address', type: 'varchar', length: 255 }),
29
+ __metadata("design:type", String)
30
+ ], Address.prototype, "streetAddress", void 0);
31
+ __decorate([
32
+ Column({ type: 'varchar', length: 10 }),
33
+ __metadata("design:type", String)
34
+ ], Address.prototype, "number", void 0);
35
+ __decorate([
36
+ Column({ type: 'varchar', length: 100, nullable: true }),
37
+ __metadata("design:type", String)
38
+ ], Address.prototype, "complement", void 0);
39
+ __decorate([
40
+ Column({ type: 'varchar', length: 100 }),
41
+ __metadata("design:type", String)
42
+ ], Address.prototype, "neighborhood", void 0);
43
+ __decorate([
44
+ Column({ type: 'varchar', length: 100 }),
45
+ __metadata("design:type", String)
46
+ ], Address.prototype, "city", void 0);
47
+ __decorate([
48
+ Column({ type: 'varchar', length: 100 }),
49
+ __metadata("design:type", String)
50
+ ], Address.prototype, "state", void 0);
51
+ __decorate([
52
+ Column({ name: 'postal_code', type: 'varchar', length: 20 }),
53
+ __metadata("design:type", String)
54
+ ], Address.prototype, "postalCode", void 0);
55
+ __decorate([
56
+ Column({ type: 'varchar', length: 100 }),
57
+ __metadata("design:type", String)
58
+ ], Address.prototype, "country", void 0);
59
+ __decorate([
60
+ Column({
61
+ type: 'decimal',
62
+ precision: 10,
63
+ scale: 8,
64
+ transformer: DecimalTransformer,
65
+ }),
66
+ __metadata("design:type", Number)
67
+ ], Address.prototype, "latitude", void 0);
68
+ __decorate([
69
+ Column({
70
+ type: 'decimal',
71
+ precision: 11,
72
+ scale: 8,
73
+ transformer: DecimalTransformer,
74
+ }),
75
+ __metadata("design:type", Number)
76
+ ], Address.prototype, "longitude", void 0);
77
+ __decorate([
78
+ OneToMany(() => Facility, (facility) => facility.address, {
79
+ onDelete: 'CASCADE',
80
+ }),
81
+ __metadata("design:type", Array)
82
+ ], Address.prototype, "facilities", void 0);
83
+ Address = __decorate([
84
+ Entity('addresses')
85
+ ], Address);
86
+ export { Address };
87
+ //# sourceMappingURL=address.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.entity.js","sourceRoot":"","sources":["../../../src/facilities/addresses/address.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAY1D,IAAM,OAAO,GAAb,MAAM,OAAO;CA2DnB,CAAA;AAzDC;IADC,sBAAsB,EAAE;;mCACd;AAGX;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,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,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE;QACzD,QAAQ,EAAE,SAAS;KACpB,CAAC;;2CACqB;AA1DZ,OAAO;IADnB,MAAM,CAAC,WAAW,CAAC;GACP,OAAO,CA2DnB"}
@@ -0,0 +1,2 @@
1
+ export { Address } from './address.entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/facilities/addresses/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Address } from './address.entity';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/facilities/addresses/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare enum FacilityStatus {
2
+ PENDING = "pending",
3
+ APPROVED = "approved",
4
+ REJECTED = "rejected"
5
+ }
6
+ //# sourceMappingURL=facility-status.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility-status.enum.d.ts","sourceRoot":"","sources":["../../../../src/facilities/facilities/enums/facility-status.enum.ts"],"names":[],"mappings":"AASA,oBAAY,cAAc;IAIxB,OAAO,YAAY;IAKnB,QAAQ,aAAa;IAKrB,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,7 @@
1
+ export var FacilityStatus;
2
+ (function (FacilityStatus) {
3
+ FacilityStatus["PENDING"] = "pending";
4
+ FacilityStatus["APPROVED"] = "approved";
5
+ FacilityStatus["REJECTED"] = "rejected";
6
+ })(FacilityStatus || (FacilityStatus = {}));
7
+ //# sourceMappingURL=facility-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility-status.enum.js","sourceRoot":"","sources":["../../../../src/facilities/facilities/enums/facility-status.enum.ts"],"names":[],"mappings":"AASA,MAAM,CAAN,IAAY,cAeX;AAfD,WAAY,cAAc;IAIxB,qCAAmB,CAAA;IAKnB,uCAAqB,CAAA;IAKrB,uCAAqB,CAAA;AACvB,CAAC,EAfW,cAAc,KAAd,cAAc,QAezB"}
@@ -0,0 +1,26 @@
1
+ import { Address } from 'facilities/addresses';
2
+ import { FacilityImage } from 'facilities/facility-images';
3
+ import { FacilityOwner } from 'facilities/facility-owners';
4
+ import { Field } from 'facilities/fields';
5
+ import { TournamentFacility } from 'tournaments';
6
+ import { FacilityStatus } from './enums/facility-status.enum';
7
+ export declare class Facility {
8
+ id: number;
9
+ facilityOwnerId: number;
10
+ addressId: number;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ name: string;
14
+ contactEmail?: string;
15
+ contactPhone: string;
16
+ status: FacilityStatus;
17
+ cnpj?: string;
18
+ deletedAt: Date | null;
19
+ address: Address;
20
+ facilityOwner: FacilityOwner;
21
+ fields: Field[];
22
+ facilityImages: FacilityImage[];
23
+ tournamentFacilities: TournamentFacility[];
24
+ sanitizeFields(): void;
25
+ }
26
+ //# sourceMappingURL=facility.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/facilities/facility.entity.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAa9D,qBAKa,QAAQ;IAEnB,EAAE,EAAE,MAAM,CAAC;IAGX,eAAe,EAAE,MAAM,CAAC;IAGxB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IAQb,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,YAAY,EAAE,MAAM,CAAC;IAOrB,MAAM,EAAE,cAAc,CAA0B;IAGhD,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,SAAS,EAAE,IAAI,GAAG,IAAI,CAAQ;IAa9B,OAAO,EAAE,OAAO,CAAC;IAUjB,aAAa,EAAE,aAAa,CAAC;IAM7B,MAAM,EAAE,KAAK,EAAE,CAAC;IAMhB,cAAc,EAAE,aAAa,EAAE,CAAC;IAMhC,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IAW3C,cAAc,IAAI,IAAI;CAGvB"}
@@ -0,0 +1,124 @@
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;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Unique, OneToMany, BeforeInsert, BeforeUpdate, ManyToOne, JoinColumn, Index, } from 'typeorm';
11
+ import { Address } from 'facilities/addresses';
12
+ import { FacilityImage } from 'facilities/facility-images';
13
+ import { FacilityOwner } from 'facilities/facility-owners';
14
+ import { Field } from 'facilities/fields';
15
+ import { TournamentFacility } from 'tournaments';
16
+ import { FacilityStatus } from './enums/facility-status.enum';
17
+ import { sanitizeFacility } from './utils/sanititze.utils';
18
+ let Facility = class Facility {
19
+ constructor() {
20
+ this.status = FacilityStatus.PENDING;
21
+ this.deletedAt = null;
22
+ }
23
+ sanitizeFields() {
24
+ sanitizeFacility(this);
25
+ }
26
+ };
27
+ __decorate([
28
+ PrimaryGeneratedColumn(),
29
+ __metadata("design:type", Number)
30
+ ], Facility.prototype, "id", void 0);
31
+ __decorate([
32
+ Column({ name: 'facility_owner_id', type: 'int' }),
33
+ __metadata("design:type", Number)
34
+ ], Facility.prototype, "facilityOwnerId", void 0);
35
+ __decorate([
36
+ Column({ name: 'address_id', type: 'int' }),
37
+ __metadata("design:type", Number)
38
+ ], Facility.prototype, "addressId", void 0);
39
+ __decorate([
40
+ CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
41
+ __metadata("design:type", Date)
42
+ ], Facility.prototype, "createdAt", void 0);
43
+ __decorate([
44
+ UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
45
+ __metadata("design:type", Date)
46
+ ], Facility.prototype, "updatedAt", void 0);
47
+ __decorate([
48
+ Column({ name: 'name', type: 'varchar', length: 255 }),
49
+ __metadata("design:type", String)
50
+ ], Facility.prototype, "name", void 0);
51
+ __decorate([
52
+ Column({
53
+ name: 'contact_email',
54
+ type: 'varchar',
55
+ length: 255,
56
+ nullable: true,
57
+ }),
58
+ __metadata("design:type", String)
59
+ ], Facility.prototype, "contactEmail", void 0);
60
+ __decorate([
61
+ Column({ name: 'contact_phone', type: 'varchar', length: 16 }),
62
+ __metadata("design:type", String)
63
+ ], Facility.prototype, "contactPhone", void 0);
64
+ __decorate([
65
+ Column({
66
+ type: 'enum',
67
+ enum: FacilityStatus,
68
+ enumName: 'facility_status',
69
+ }),
70
+ __metadata("design:type", String)
71
+ ], Facility.prototype, "status", void 0);
72
+ __decorate([
73
+ Column({ name: 'cnpj', type: 'varchar', length: 14, nullable: true }),
74
+ __metadata("design:type", String)
75
+ ], Facility.prototype, "cnpj", void 0);
76
+ __decorate([
77
+ DeleteDateColumn({ name: 'deleted_at', type: 'timestamptz', nullable: true }),
78
+ __metadata("design:type", Object)
79
+ ], Facility.prototype, "deletedAt", void 0);
80
+ __decorate([
81
+ ManyToOne(() => Address, (address) => address.facilities, {
82
+ eager: true,
83
+ onDelete: 'CASCADE',
84
+ onUpdate: 'CASCADE',
85
+ }),
86
+ JoinColumn({ name: 'address_id' }),
87
+ __metadata("design:type", Address)
88
+ ], Facility.prototype, "address", void 0);
89
+ __decorate([
90
+ ManyToOne(() => FacilityOwner, (owner) => owner.facilities, {
91
+ onDelete: 'CASCADE',
92
+ onUpdate: 'CASCADE',
93
+ }),
94
+ JoinColumn({ name: 'facility_owner_id' }),
95
+ __metadata("design:type", FacilityOwner)
96
+ ], Facility.prototype, "facilityOwner", void 0);
97
+ __decorate([
98
+ OneToMany(() => Field, (field) => field.facility),
99
+ __metadata("design:type", Array)
100
+ ], Facility.prototype, "fields", void 0);
101
+ __decorate([
102
+ OneToMany(() => FacilityImage, (facilityImage) => facilityImage.facility),
103
+ __metadata("design:type", Array)
104
+ ], Facility.prototype, "facilityImages", void 0);
105
+ __decorate([
106
+ OneToMany(() => TournamentFacility, (tournamentFacility) => tournamentFacility.facility),
107
+ __metadata("design:type", Array)
108
+ ], Facility.prototype, "tournamentFacilities", void 0);
109
+ __decorate([
110
+ BeforeInsert(),
111
+ BeforeUpdate(),
112
+ __metadata("design:type", Function),
113
+ __metadata("design:paramtypes", []),
114
+ __metadata("design:returntype", void 0)
115
+ ], Facility.prototype, "sanitizeFields", null);
116
+ Facility = __decorate([
117
+ Entity('facilities'),
118
+ Unique(['name', 'facilityOwnerId']),
119
+ Index('idx_facility_owner', ['facilityOwnerId']),
120
+ Index('idx_facility_address', ['addressId']),
121
+ Index('idx_facility_status', ['status'])
122
+ ], Facility);
123
+ export { Facility };
124
+ //# sourceMappingURL=facility.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility.entity.js","sourceRoot":"","sources":["../../../src/facilities/facilities/facility.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,UAAU,EACV,KAAK,GACN,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAiBpD,IAAM,QAAQ,GAAd,MAAM,QAAQ;IAAd;QAmCL,WAAM,GAAmB,cAAc,CAAC,OAAO,CAAC;QAMhD,cAAS,GAAgB,IAAI,CAAC;IAuDhC,CAAC;IAHC,cAAc;QACZ,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CACF,CAAA;AA9FC;IADC,sBAAsB,EAAE;;oCACd;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;iDAC3B;AAGxB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;2CAC1B;AAGlB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;2CAAC;AAGhB;IADC,gBAAgB,CAAC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,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,UAAU,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;8BAC3B,aAAa;+CAAC;AAM7B;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;;wCAClC;AAMhB;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,aAAa,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC;;gDAC1C;AAMhC;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,kBAAkB,EAAE,CAAC,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC;;sDAC9C;AAW3C;IAFC,YAAY,EAAE;IACd,YAAY,EAAE;;;;8CAGd;AA/FU,QAAQ;IALpB,MAAM,CAAC,YAAY,CAAC;IACpB,MAAM,CAAC,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACnC,KAAK,CAAC,oBAAoB,EAAE,CAAC,iBAAiB,CAAC,CAAC;IAChD,KAAK,CAAC,sBAAsB,EAAE,CAAC,WAAW,CAAC,CAAC;IAC5C,KAAK,CAAC,qBAAqB,EAAE,CAAC,QAAQ,CAAC,CAAC;GAC5B,QAAQ,CAgGpB"}
@@ -0,0 +1,3 @@
1
+ export { Facility } from './facility.entity';
2
+ export { FacilityStatus } from './enums/facility-status.enum';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/facilities/facilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Facility } from './facility.entity';
2
+ export { FacilityStatus } from './enums/facility-status.enum';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/facilities/facilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function sanitizeFacility(facility: {
2
+ cnpj?: string;
3
+ contactEmail?: string;
4
+ }): void;
5
+ //# sourceMappingURL=sanititze.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanititze.utils.d.ts","sourceRoot":"","sources":["../../../../src/facilities/facilities/utils/sanititze.utils.ts"],"names":[],"mappings":"AAQA,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAUzF"}
@@ -0,0 +1,12 @@
1
+ export function sanitizeFacility(facility) {
2
+ if (facility.cnpj) {
3
+ facility.cnpj = facility.cnpj.replace(/[^\d]/g, '').trim();
4
+ if (facility.cnpj.length !== 14) {
5
+ facility.cnpj = undefined;
6
+ }
7
+ }
8
+ if (facility.contactEmail) {
9
+ facility.contactEmail = facility.contactEmail.toLowerCase().trim();
10
+ }
11
+ }
12
+ //# sourceMappingURL=sanititze.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanititze.utils.js","sourceRoot":"","sources":["../../../../src/facilities/facilities/utils/sanititze.utils.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,gBAAgB,CAAC,QAAkD;IACjF,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;QAClB,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC3D,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;YAChC,QAAQ,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,IAAI,QAAQ,CAAC,YAAY,EAAE,CAAC;QAC1B,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IACrE,CAAC;AACH,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Facility } from 'facilities/facilities';
2
+ export declare class FacilityImage {
3
+ id: number;
4
+ facilityId: number;
5
+ createdAt: Date;
6
+ updatedAt: Date;
7
+ url: string;
8
+ description: string;
9
+ isPrimary: boolean;
10
+ facility: Facility;
11
+ }
12
+ //# sourceMappingURL=facility-image.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facility-image.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/facility-images/facility-image.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAYjD,qBAOa,aAAa;IAExB,EAAE,EAAE,MAAM,CAAC;IAGX,UAAU,EAAE,MAAM,CAAC;IAGnB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,GAAG,EAAE,MAAM,CAAC;IAGZ,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,EAAE,OAAO,CAAC;IAWnB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}