@natrave/shared-entities 1.1.8 → 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.
- package/dist/app-auth/index.js +5 -6
- package/dist/app-auth/password-resets/index.js +4 -2
- package/dist/app-auth/password-resets/password-reset.entity.js +48 -45
- package/dist/app-auth/refresh-tokens/index.js +4 -2
- package/dist/app-auth/refresh-tokens/refresh-token.entity.js +48 -45
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.js +9 -7
- package/dist/app-auth/user-auth-providers/index.js +6 -3
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js +53 -50
- package/dist/app-auth/user-verifications/enums/verification-type.enum.js +8 -6
- package/dist/app-auth/user-verifications/index.js +6 -3
- package/dist/app-auth/user-verifications/user-verification.entity.js +57 -57
- package/dist/app-auth/users/index.js +4 -2
- package/dist/app-auth/users/user.entity.js +123 -133
- package/dist/app-auth/users/utils/format-data.utils.js +19 -17
- package/dist/common/utils/decimal-transformer.utils.js +15 -14
- package/dist/facilities/addresses/address.entity.js +79 -84
- package/dist/facilities/addresses/index.js +4 -2
- package/dist/facilities/facilities/enums/facility-status.enum.js +9 -7
- package/dist/facilities/facilities/facility.entity.js +118 -121
- package/dist/facilities/facilities/index.js +6 -3
- package/dist/facilities/facilities/utils/sanititze.utils.js +12 -10
- package/dist/facilities/facility-images/facility-image.entity.js +60 -56
- package/dist/facilities/facility-images/index.js +4 -2
- package/dist/facilities/facility-owners/facility-owner.entity.js +64 -62
- package/dist/facilities/facility-owners/index.js +4 -2
- package/dist/facilities/facility-owners/utils/sanitize.utils.js +10 -8
- package/dist/facilities/fields/enums/surface-type.enum.js +11 -9
- package/dist/facilities/fields/field.entity.js +69 -69
- package/dist/facilities/fields/index.js +6 -3
- package/dist/facilities/index.js +5 -6
- package/dist/index.js +4 -5
- package/dist/payments/index.js +3 -4
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.js +7 -5
- package/dist/payments/payment-providers/index.js +6 -3
- package/dist/payments/payment-providers/payment-provider.entity.js +57 -47
- package/dist/payments/payments/enums/payment-method.enum.js +8 -6
- package/dist/payments/payments/enums/payment-status.enum.js +13 -11
- package/dist/payments/payments/index.js +8 -4
- package/dist/payments/payments/payment.entity.js +79 -82
- package/dist/payments/user-payment-providers/index.js +4 -2
- package/dist/payments/user-payment-providers/user-payment-provider.entity.js +62 -58
- package/dist/tournaments/index.js +12 -13
- package/dist/tournaments/tournament-facilities/index.js +4 -2
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.js +62 -58
- package/dist/tournaments/tournament-format-configs/index.js +4 -2
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js +70 -73
- package/dist/tournaments/tournament-match-cards/index.js +4 -2
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js +74 -72
- package/dist/tournaments/tournament-match-goals/index.js +4 -2
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js +74 -76
- package/dist/tournaments/tournament-match-schemas/index.js +4 -2
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js +47 -44
- package/dist/tournaments/tournament-matches/index.js +4 -2
- package/dist/tournaments/tournament-matches/tournament-match.entity.js +89 -94
- package/dist/tournaments/tournament-payments/index.js +4 -2
- package/dist/tournaments/tournament-payments/tournament-payment.entity.js +57 -56
- package/dist/tournaments/tournament-players/index.js +4 -2
- package/dist/tournaments/tournament-players/tournament-player.entity.js +75 -73
- package/dist/tournaments/tournament-prize-rules/index.js +4 -2
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js +56 -52
- package/dist/tournaments/tournament-rules/index.js +4 -2
- package/dist/tournaments/tournament-rules/tournament-rule.entity.js +73 -74
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.js +8 -6
- package/dist/tournaments/tournament-teams/index.js +6 -3
- package/dist/tournaments/tournament-teams/tournament-team.entity.js +93 -97
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.js +5 -3
- package/dist/tournaments/tournaments/index.js +4 -2
- package/dist/tournaments/tournaments/tournament.entity.js +129 -144
- package/package.json +4 -2
- package/dist/app-auth/index.d.ts +0 -6
- package/dist/app-auth/index.d.ts.map +0 -1
- package/dist/app-auth/index.js.map +0 -1
- package/dist/app-auth/password-resets/index.d.ts +0 -2
- package/dist/app-auth/password-resets/index.d.ts.map +0 -1
- package/dist/app-auth/password-resets/index.js.map +0 -1
- package/dist/app-auth/password-resets/password-reset.entity.d.ts +0 -11
- package/dist/app-auth/password-resets/password-reset.entity.d.ts.map +0 -1
- package/dist/app-auth/password-resets/password-reset.entity.js.map +0 -1
- package/dist/app-auth/refresh-tokens/index.d.ts +0 -2
- package/dist/app-auth/refresh-tokens/index.d.ts.map +0 -1
- package/dist/app-auth/refresh-tokens/index.js.map +0 -1
- package/dist/app-auth/refresh-tokens/refresh-token.entity.d.ts +0 -11
- package/dist/app-auth/refresh-tokens/refresh-token.entity.d.ts.map +0 -1
- package/dist/app-auth/refresh-tokens/refresh-token.entity.js.map +0 -1
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.d.ts +0 -6
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.d.ts.map +0 -1
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.js.map +0 -1
- package/dist/app-auth/user-auth-providers/index.d.ts +0 -3
- package/dist/app-auth/user-auth-providers/index.d.ts.map +0 -1
- package/dist/app-auth/user-auth-providers/index.js.map +0 -1
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.d.ts +0 -13
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.d.ts.map +0 -1
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js.map +0 -1
- package/dist/app-auth/user-verifications/enums/verification-type.enum.d.ts +0 -5
- package/dist/app-auth/user-verifications/enums/verification-type.enum.d.ts.map +0 -1
- package/dist/app-auth/user-verifications/enums/verification-type.enum.js.map +0 -1
- package/dist/app-auth/user-verifications/index.d.ts +0 -3
- package/dist/app-auth/user-verifications/index.d.ts.map +0 -1
- package/dist/app-auth/user-verifications/index.js.map +0 -1
- package/dist/app-auth/user-verifications/user-verification.entity.d.ts +0 -15
- package/dist/app-auth/user-verifications/user-verification.entity.d.ts.map +0 -1
- package/dist/app-auth/user-verifications/user-verification.entity.js.map +0 -1
- package/dist/app-auth/users/index.d.ts +0 -2
- package/dist/app-auth/users/index.d.ts.map +0 -1
- package/dist/app-auth/users/index.js.map +0 -1
- package/dist/app-auth/users/user.entity.d.ts +0 -29
- package/dist/app-auth/users/user.entity.d.ts.map +0 -1
- package/dist/app-auth/users/user.entity.js.map +0 -1
- package/dist/app-auth/users/utils/format-data.utils.d.ts +0 -7
- package/dist/app-auth/users/utils/format-data.utils.d.ts.map +0 -1
- package/dist/app-auth/users/utils/format-data.utils.js.map +0 -1
- package/dist/common/utils/decimal-transformer.utils.d.ts +0 -5
- package/dist/common/utils/decimal-transformer.utils.d.ts.map +0 -1
- package/dist/common/utils/decimal-transformer.utils.js.map +0 -1
- package/dist/facilities/addresses/address.entity.d.ts +0 -18
- package/dist/facilities/addresses/address.entity.d.ts.map +0 -1
- package/dist/facilities/addresses/address.entity.js.map +0 -1
- package/dist/facilities/addresses/index.d.ts +0 -2
- package/dist/facilities/addresses/index.d.ts.map +0 -1
- package/dist/facilities/addresses/index.js.map +0 -1
- package/dist/facilities/facilities/enums/facility-status.enum.d.ts +0 -6
- package/dist/facilities/facilities/enums/facility-status.enum.d.ts.map +0 -1
- package/dist/facilities/facilities/enums/facility-status.enum.js.map +0 -1
- package/dist/facilities/facilities/facility.entity.d.ts +0 -26
- package/dist/facilities/facilities/facility.entity.d.ts.map +0 -1
- package/dist/facilities/facilities/facility.entity.js.map +0 -1
- package/dist/facilities/facilities/index.d.ts +0 -3
- package/dist/facilities/facilities/index.d.ts.map +0 -1
- package/dist/facilities/facilities/index.js.map +0 -1
- package/dist/facilities/facilities/utils/sanititze.utils.d.ts +0 -5
- package/dist/facilities/facilities/utils/sanititze.utils.d.ts.map +0 -1
- package/dist/facilities/facilities/utils/sanititze.utils.js.map +0 -1
- package/dist/facilities/facility-images/facility-image.entity.d.ts +0 -12
- package/dist/facilities/facility-images/facility-image.entity.d.ts.map +0 -1
- package/dist/facilities/facility-images/facility-image.entity.js.map +0 -1
- package/dist/facilities/facility-images/index.d.ts +0 -2
- package/dist/facilities/facility-images/index.d.ts.map +0 -1
- package/dist/facilities/facility-images/index.js.map +0 -1
- package/dist/facilities/facility-owners/facility-owner.entity.d.ts +0 -13
- package/dist/facilities/facility-owners/facility-owner.entity.d.ts.map +0 -1
- package/dist/facilities/facility-owners/facility-owner.entity.js.map +0 -1
- package/dist/facilities/facility-owners/index.d.ts +0 -2
- package/dist/facilities/facility-owners/index.d.ts.map +0 -1
- package/dist/facilities/facility-owners/index.js.map +0 -1
- package/dist/facilities/facility-owners/utils/sanitize.utils.d.ts +0 -5
- package/dist/facilities/facility-owners/utils/sanitize.utils.d.ts.map +0 -1
- package/dist/facilities/facility-owners/utils/sanitize.utils.js.map +0 -1
- package/dist/facilities/fields/enums/surface-type.enum.d.ts +0 -8
- package/dist/facilities/fields/enums/surface-type.enum.d.ts.map +0 -1
- package/dist/facilities/fields/enums/surface-type.enum.js.map +0 -1
- package/dist/facilities/fields/field.entity.d.ts +0 -18
- package/dist/facilities/fields/field.entity.d.ts.map +0 -1
- package/dist/facilities/fields/field.entity.js.map +0 -1
- package/dist/facilities/fields/index.d.ts +0 -3
- package/dist/facilities/fields/index.d.ts.map +0 -1
- package/dist/facilities/fields/index.js.map +0 -1
- package/dist/facilities/index.d.ts +0 -6
- package/dist/facilities/index.d.ts.map +0 -1
- package/dist/facilities/index.js.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/payments/index.d.ts +0 -4
- package/dist/payments/index.d.ts.map +0 -1
- package/dist/payments/index.js.map +0 -1
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.d.ts +0 -4
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.d.ts.map +0 -1
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.js.map +0 -1
- package/dist/payments/payment-providers/index.d.ts +0 -3
- package/dist/payments/payment-providers/index.d.ts.map +0 -1
- package/dist/payments/payment-providers/index.js.map +0 -1
- package/dist/payments/payment-providers/payment-provider.entity.d.ts +0 -10
- package/dist/payments/payment-providers/payment-provider.entity.d.ts.map +0 -1
- package/dist/payments/payment-providers/payment-provider.entity.js.map +0 -1
- package/dist/payments/payments/enums/payment-method.enum.d.ts +0 -5
- package/dist/payments/payments/enums/payment-method.enum.d.ts.map +0 -1
- package/dist/payments/payments/enums/payment-method.enum.js.map +0 -1
- package/dist/payments/payments/enums/payment-status.enum.d.ts +0 -10
- package/dist/payments/payments/enums/payment-status.enum.d.ts.map +0 -1
- package/dist/payments/payments/enums/payment-status.enum.js.map +0 -1
- package/dist/payments/payments/index.d.ts +0 -4
- package/dist/payments/payments/index.d.ts.map +0 -1
- package/dist/payments/payments/index.js.map +0 -1
- package/dist/payments/payments/payment.entity.d.ts +0 -19
- package/dist/payments/payments/payment.entity.d.ts.map +0 -1
- package/dist/payments/payments/payment.entity.js.map +0 -1
- package/dist/payments/user-payment-providers/index.d.ts +0 -2
- package/dist/payments/user-payment-providers/index.d.ts.map +0 -1
- package/dist/payments/user-payment-providers/index.js.map +0 -1
- package/dist/payments/user-payment-providers/user-payment-provider.entity.d.ts +0 -13
- package/dist/payments/user-payment-providers/user-payment-provider.entity.d.ts.map +0 -1
- package/dist/payments/user-payment-providers/user-payment-provider.entity.js.map +0 -1
- package/dist/tournaments/index.d.ts +0 -13
- package/dist/tournaments/index.d.ts.map +0 -1
- package/dist/tournaments/index.js.map +0 -1
- package/dist/tournaments/tournament-facilities/index.d.ts +0 -2
- package/dist/tournaments/tournament-facilities/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-facilities/index.js.map +0 -1
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts +0 -14
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.js.map +0 -1
- package/dist/tournaments/tournament-format-configs/index.d.ts +0 -2
- package/dist/tournaments/tournament-format-configs/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-format-configs/index.js.map +0 -1
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts +0 -15
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js.map +0 -1
- package/dist/tournaments/tournament-match-cards/index.d.ts +0 -2
- package/dist/tournaments/tournament-match-cards/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-cards/index.js.map +0 -1
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts +0 -19
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js.map +0 -1
- package/dist/tournaments/tournament-match-goals/index.d.ts +0 -2
- package/dist/tournaments/tournament-match-goals/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-goals/index.js.map +0 -1
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts +0 -20
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js.map +0 -1
- package/dist/tournaments/tournament-match-schemas/index.d.ts +0 -2
- package/dist/tournaments/tournament-match-schemas/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-schemas/index.js.map +0 -1
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.d.ts +0 -12
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js.map +0 -1
- package/dist/tournaments/tournament-matches/index.d.ts +0 -2
- package/dist/tournaments/tournament-matches/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-matches/index.js.map +0 -1
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts +0 -25
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-matches/tournament-match.entity.js.map +0 -1
- package/dist/tournaments/tournament-payments/index.d.ts +0 -2
- package/dist/tournaments/tournament-payments/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-payments/index.js.map +0 -1
- package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts +0 -16
- package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-payments/tournament-payment.entity.js.map +0 -1
- package/dist/tournaments/tournament-players/index.d.ts +0 -2
- package/dist/tournaments/tournament-players/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-players/index.js.map +0 -1
- package/dist/tournaments/tournament-players/tournament-player.entity.d.ts +0 -19
- package/dist/tournaments/tournament-players/tournament-player.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-players/tournament-player.entity.js.map +0 -1
- package/dist/tournaments/tournament-prize-rules/index.d.ts +0 -2
- package/dist/tournaments/tournament-prize-rules/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-prize-rules/index.js.map +0 -1
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.d.ts +0 -13
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js.map +0 -1
- package/dist/tournaments/tournament-rules/index.d.ts +0 -2
- package/dist/tournaments/tournament-rules/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-rules/index.js.map +0 -1
- package/dist/tournaments/tournament-rules/tournament-rule.entity.d.ts +0 -17
- package/dist/tournaments/tournament-rules/tournament-rule.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-rules/tournament-rule.entity.js.map +0 -1
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts +0 -5
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts.map +0 -1
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.js.map +0 -1
- package/dist/tournaments/tournament-teams/index.d.ts +0 -3
- package/dist/tournaments/tournament-teams/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-teams/index.js.map +0 -1
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts +0 -26
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-teams/tournament-team.entity.js.map +0 -1
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.d.ts +0 -2
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.d.ts.map +0 -1
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.js.map +0 -1
- package/dist/tournaments/tournaments/index.d.ts +0 -2
- package/dist/tournaments/tournaments/index.d.ts.map +0 -1
- package/dist/tournaments/tournaments/index.js.map +0 -1
- package/dist/tournaments/tournaments/tournament.entity.d.ts +0 -39
- package/dist/tournaments/tournaments/tournament.entity.d.ts.map +0 -1
- package/dist/tournaments/tournaments/tournament.entity.js.map +0 -1
package/dist/app-auth/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./password-resets.js";
|
|
2
|
+
export * from "./refresh-tokens.js";
|
|
3
|
+
export * from "./user-auth-providers.js";
|
|
4
|
+
export * from "./user-verifications.js";
|
|
5
|
+
export * from "./users.js";
|
|
@@ -1,48 +1,51 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
11
|
+
import {
|
|
12
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
JoinColumn,
|
|
16
|
+
ManyToOne,
|
|
17
|
+
PrimaryGeneratedColumn,
|
|
18
|
+
Unique
|
|
19
|
+
} from "typeorm";
|
|
20
|
+
import { User } from "../users";
|
|
21
|
+
let PasswordReset = class {
|
|
9
22
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
], PasswordReset.prototype, "
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Column({ type: 'varchar', length: 255 }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], PasswordReset.prototype, "token", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
ManyToOne(() => User, (user) => user.passwordResets, { onDelete: 'CASCADE' }),
|
|
40
|
-
JoinColumn({ name: 'user_id' }),
|
|
41
|
-
__metadata("design:type", User)
|
|
42
|
-
], PasswordReset.prototype, "user", void 0);
|
|
43
|
-
PasswordReset = __decorate([
|
|
44
|
-
Entity('password_resets'),
|
|
45
|
-
Unique(['token', 'userId'])
|
|
23
|
+
__decorateClass([
|
|
24
|
+
PrimaryGeneratedColumn()
|
|
25
|
+
], PasswordReset.prototype, "id", 2);
|
|
26
|
+
__decorateClass([
|
|
27
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
28
|
+
], PasswordReset.prototype, "createdAt", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({ name: "expires_at", type: "timestamptz" })
|
|
31
|
+
], PasswordReset.prototype, "expiresAt", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({ name: "used_at", type: "timestamptz", nullable: true })
|
|
34
|
+
], PasswordReset.prototype, "usedAt", 2);
|
|
35
|
+
__decorateClass([
|
|
36
|
+
Column({ name: "user_id", type: "uuid" })
|
|
37
|
+
], PasswordReset.prototype, "userId", 2);
|
|
38
|
+
__decorateClass([
|
|
39
|
+
Column({ type: "varchar", length: 255 })
|
|
40
|
+
], PasswordReset.prototype, "token", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
ManyToOne(() => User, (user) => user.passwordResets, { onDelete: "CASCADE" }),
|
|
43
|
+
JoinColumn({ name: "user_id" })
|
|
44
|
+
], PasswordReset.prototype, "user", 2);
|
|
45
|
+
PasswordReset = __decorateClass([
|
|
46
|
+
Entity("password_resets"),
|
|
47
|
+
Unique(["token", "userId"])
|
|
46
48
|
], PasswordReset);
|
|
47
|
-
export {
|
|
48
|
-
|
|
49
|
+
export {
|
|
50
|
+
PasswordReset
|
|
51
|
+
};
|
|
@@ -1,48 +1,51 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
11
|
+
import {
|
|
12
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
JoinColumn,
|
|
16
|
+
ManyToOne,
|
|
17
|
+
PrimaryGeneratedColumn,
|
|
18
|
+
Unique
|
|
19
|
+
} from "typeorm";
|
|
20
|
+
import { User } from "../users";
|
|
21
|
+
let RefreshToken = class {
|
|
9
22
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
], RefreshToken.prototype, "
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Column({ name: 'user_id', type: 'uuid' }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], RefreshToken.prototype, "userId", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
ManyToOne(() => User, (user) => user.refreshTokens, { onDelete: 'CASCADE' }),
|
|
40
|
-
JoinColumn({ name: 'user_id' }),
|
|
41
|
-
__metadata("design:type", User)
|
|
42
|
-
], RefreshToken.prototype, "user", void 0);
|
|
43
|
-
RefreshToken = __decorate([
|
|
44
|
-
Entity('refresh_tokens'),
|
|
45
|
-
Unique(['token'])
|
|
23
|
+
__decorateClass([
|
|
24
|
+
PrimaryGeneratedColumn("uuid")
|
|
25
|
+
], RefreshToken.prototype, "id", 2);
|
|
26
|
+
__decorateClass([
|
|
27
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
28
|
+
], RefreshToken.prototype, "createdAt", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({ name: "expires_at", type: "timestamptz" })
|
|
31
|
+
], RefreshToken.prototype, "expiresAt", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({ name: "revoked_at", type: "timestamptz", nullable: true })
|
|
34
|
+
], RefreshToken.prototype, "revokedAt", 2);
|
|
35
|
+
__decorateClass([
|
|
36
|
+
Column({ type: "varchar", length: 255, unique: true })
|
|
37
|
+
], RefreshToken.prototype, "token", 2);
|
|
38
|
+
__decorateClass([
|
|
39
|
+
Column({ name: "user_id", type: "uuid" })
|
|
40
|
+
], RefreshToken.prototype, "userId", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
ManyToOne(() => User, (user) => user.refreshTokens, { onDelete: "CASCADE" }),
|
|
43
|
+
JoinColumn({ name: "user_id" })
|
|
44
|
+
], RefreshToken.prototype, "user", 2);
|
|
45
|
+
RefreshToken = __decorateClass([
|
|
46
|
+
Entity("refresh_tokens"),
|
|
47
|
+
Unique(["token"])
|
|
46
48
|
], RefreshToken);
|
|
47
|
-
export {
|
|
48
|
-
|
|
49
|
+
export {
|
|
50
|
+
RefreshToken
|
|
51
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
})(AuthProvider ||
|
|
7
|
-
|
|
1
|
+
var AuthProvider = /* @__PURE__ */ ((AuthProvider2) => {
|
|
2
|
+
AuthProvider2["GOOGLE"] = "google";
|
|
3
|
+
AuthProvider2["META"] = "meta";
|
|
4
|
+
AuthProvider2["APPLE"] = "apple";
|
|
5
|
+
return AuthProvider2;
|
|
6
|
+
})(AuthProvider || {});
|
|
7
|
+
export {
|
|
8
|
+
AuthProvider
|
|
9
|
+
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { AuthProvider } from "./enums/auth-provider.enum.js";
|
|
2
|
+
import { UserAuthProvider } from "./user-auth-provider.entity.js";
|
|
3
|
+
export {
|
|
4
|
+
AuthProvider,
|
|
5
|
+
UserAuthProvider
|
|
6
|
+
};
|
|
@@ -1,53 +1,56 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
11
|
+
import {
|
|
12
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
JoinColumn,
|
|
16
|
+
ManyToOne,
|
|
17
|
+
PrimaryGeneratedColumn,
|
|
18
|
+
Unique,
|
|
19
|
+
UpdateDateColumn
|
|
20
|
+
} from "typeorm";
|
|
21
|
+
import { User } from "../users";
|
|
22
|
+
import { AuthProvider } from "./enums/auth-provider.enum.js";
|
|
23
|
+
let UserAuthProvider = class {
|
|
9
24
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
], UserAuthProvider.prototype, "
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
], UserAuthProvider.prototype, "
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
], UserAuthProvider.prototype, "
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
], UserAuthProvider.prototype, "providerUserId", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
Column({ name: 'provider_token', type: 'text', nullable: true }),
|
|
41
|
-
__metadata("design:type", Object)
|
|
42
|
-
], UserAuthProvider.prototype, "providerToken", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
ManyToOne(() => User, (user) => user.userAuthProviders, { onDelete: 'CASCADE' }),
|
|
45
|
-
JoinColumn({ name: 'user_id' }),
|
|
46
|
-
__metadata("design:type", User)
|
|
47
|
-
], UserAuthProvider.prototype, "user", void 0);
|
|
48
|
-
UserAuthProvider = __decorate([
|
|
49
|
-
Entity('user_auth_providers'),
|
|
50
|
-
Unique(['provider', 'providerUserId'])
|
|
25
|
+
__decorateClass([
|
|
26
|
+
PrimaryGeneratedColumn()
|
|
27
|
+
], UserAuthProvider.prototype, "id", 2);
|
|
28
|
+
__decorateClass([
|
|
29
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
30
|
+
], UserAuthProvider.prototype, "createdAt", 2);
|
|
31
|
+
__decorateClass([
|
|
32
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
33
|
+
], UserAuthProvider.prototype, "updatedAt", 2);
|
|
34
|
+
__decorateClass([
|
|
35
|
+
Column({ name: "user_id", type: "uuid" })
|
|
36
|
+
], UserAuthProvider.prototype, "userId", 2);
|
|
37
|
+
__decorateClass([
|
|
38
|
+
Column({ type: "enum", enum: AuthProvider })
|
|
39
|
+
], UserAuthProvider.prototype, "provider", 2);
|
|
40
|
+
__decorateClass([
|
|
41
|
+
Column({ name: "provider_user_id", type: "text" })
|
|
42
|
+
], UserAuthProvider.prototype, "providerUserId", 2);
|
|
43
|
+
__decorateClass([
|
|
44
|
+
Column({ name: "provider_token", type: "text", nullable: true })
|
|
45
|
+
], UserAuthProvider.prototype, "providerToken", 2);
|
|
46
|
+
__decorateClass([
|
|
47
|
+
ManyToOne(() => User, (user) => user.userAuthProviders, { onDelete: "CASCADE" }),
|
|
48
|
+
JoinColumn({ name: "user_id" })
|
|
49
|
+
], UserAuthProvider.prototype, "user", 2);
|
|
50
|
+
UserAuthProvider = __decorateClass([
|
|
51
|
+
Entity("user_auth_providers"),
|
|
52
|
+
Unique(["provider", "providerUserId"])
|
|
51
53
|
], UserAuthProvider);
|
|
52
|
-
export {
|
|
53
|
-
|
|
54
|
+
export {
|
|
55
|
+
UserAuthProvider
|
|
56
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})(VerificationType ||
|
|
6
|
-
|
|
1
|
+
var VerificationType = /* @__PURE__ */ ((VerificationType2) => {
|
|
2
|
+
VerificationType2["EMAIL"] = "email";
|
|
3
|
+
VerificationType2["PHONE"] = "phone";
|
|
4
|
+
return VerificationType2;
|
|
5
|
+
})(VerificationType || {});
|
|
6
|
+
export {
|
|
7
|
+
VerificationType
|
|
8
|
+
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { VerificationType } from "./enums/verification-type.enum.js";
|
|
2
|
+
import { UserVerification } from "./user-verification.entity.js";
|
|
3
|
+
export {
|
|
4
|
+
UserVerification,
|
|
5
|
+
VerificationType
|
|
6
|
+
};
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
11
|
+
import {
|
|
12
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
JoinColumn,
|
|
16
|
+
ManyToOne,
|
|
17
|
+
PrimaryGeneratedColumn,
|
|
18
|
+
UpdateDateColumn
|
|
19
|
+
} from "typeorm";
|
|
20
|
+
import { User } from "../users";
|
|
21
|
+
import { VerificationType } from "./enums/verification-type.enum.js";
|
|
22
|
+
let UserVerification = class {
|
|
9
23
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
], UserVerification.prototype, "
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
], UserVerification.prototype, "
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
__decorate([
|
|
44
|
-
Column({ name: 'user_id', type: 'uuid' }),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], UserVerification.prototype, "userId", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
Column({ type: 'enum', enum: VerificationType }),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], UserVerification.prototype, "type", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
ManyToOne(() => User, (user) => user.verifications, { onDelete: 'CASCADE' }),
|
|
53
|
-
JoinColumn({ name: 'user_id' }),
|
|
54
|
-
__metadata("design:type", User)
|
|
55
|
-
], UserVerification.prototype, "user", void 0);
|
|
56
|
-
UserVerification = __decorate([
|
|
57
|
-
Entity('user_verifications')
|
|
24
|
+
__decorateClass([
|
|
25
|
+
PrimaryGeneratedColumn()
|
|
26
|
+
], UserVerification.prototype, "id", 2);
|
|
27
|
+
__decorateClass([
|
|
28
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
29
|
+
], UserVerification.prototype, "createdAt", 2);
|
|
30
|
+
__decorateClass([
|
|
31
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
32
|
+
], UserVerification.prototype, "updatedAt", 2);
|
|
33
|
+
__decorateClass([
|
|
34
|
+
Column({ name: "expires_at", type: "timestamptz" })
|
|
35
|
+
], UserVerification.prototype, "expiresAt", 2);
|
|
36
|
+
__decorateClass([
|
|
37
|
+
Column({ name: "verified_at", type: "timestamptz", nullable: true })
|
|
38
|
+
], UserVerification.prototype, "verifiedAt", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
Column({ type: "boolean", default: false })
|
|
41
|
+
], UserVerification.prototype, "isInvalid", 2);
|
|
42
|
+
__decorateClass([
|
|
43
|
+
Column({ type: "varchar", length: 255, unique: true })
|
|
44
|
+
], UserVerification.prototype, "token", 2);
|
|
45
|
+
__decorateClass([
|
|
46
|
+
Column({ name: "user_id", type: "uuid" })
|
|
47
|
+
], UserVerification.prototype, "userId", 2);
|
|
48
|
+
__decorateClass([
|
|
49
|
+
Column({ type: "enum", enum: VerificationType })
|
|
50
|
+
], UserVerification.prototype, "type", 2);
|
|
51
|
+
__decorateClass([
|
|
52
|
+
ManyToOne(() => User, (user) => user.verifications, { onDelete: "CASCADE" }),
|
|
53
|
+
JoinColumn({ name: "user_id" })
|
|
54
|
+
], UserVerification.prototype, "user", 2);
|
|
55
|
+
UserVerification = __decorateClass([
|
|
56
|
+
Entity("user_verifications")
|
|
58
57
|
], UserVerification);
|
|
59
|
-
export {
|
|
60
|
-
|
|
58
|
+
export {
|
|
59
|
+
UserVerification
|
|
60
|
+
};
|