@natrave/shared-entities 1.16.0 → 1.17.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/central-auth/organization-users/organization-user.entity.d.ts +1 -0
- package/dist/central-auth/organization-users/organization-user.entity.d.ts.map +1 -1
- package/dist/central-auth/organization-users/organization-user.entity.js +9 -0
- package/dist/central-auth/organizations/organization.entity.d.ts +1 -0
- package/dist/central-auth/organizations/organization.entity.d.ts.map +1 -1
- package/dist/central-auth/organizations/organization.entity.js +9 -0
- package/package.json +4 -3
|
@@ -16,6 +16,7 @@ export declare class OrganizationUser implements IOrganizationUser {
|
|
|
16
16
|
emailVerifiedAt: Date | null;
|
|
17
17
|
createdAt: Date;
|
|
18
18
|
updatedAt: Date;
|
|
19
|
+
deletedAt: Date | null;
|
|
19
20
|
organization: Organization;
|
|
20
21
|
tournamentPayments: TournamentPayment[];
|
|
21
22
|
billingInfo: OrganizationUserBillingInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-user.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-users/organization-user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"organization-user.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-users/organization-user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAgBxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBAWa,gBAAiB,YAAW,iBAAiB;IAExD,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAQvB,SAAS,EAAE,MAAM,CAAC;IAQlB,QAAQ,EAAE,MAAM,CAAC;IAQjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAOxB,KAAK,EAAE,MAAM,CAAC;IAOd,KAAK,EAAE,MAAM,CAAC;IAQd,MAAM,EAAE,sBAAsB,CAAC;IAU/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,eAAe,EAAE,OAAO,CAAC;IAQzB,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;IAO7B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IASvB,YAAY,EAAE,YAAY,CAAC;IAM3B,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IAMxC,WAAW,EAAE,2BAA2B,CAAC;CAC1C"}
|
|
@@ -12,6 +12,7 @@ import { OrganizationUserStatus } from "@natrave/auth-service-types";
|
|
|
12
12
|
import {
|
|
13
13
|
Column,
|
|
14
14
|
CreateDateColumn,
|
|
15
|
+
DeleteDateColumn,
|
|
15
16
|
Entity,
|
|
16
17
|
Index,
|
|
17
18
|
JoinColumn,
|
|
@@ -121,6 +122,14 @@ __decorateClass([
|
|
|
121
122
|
comment: "Data da \xFAltima atualiza\xE7\xE3o do registro."
|
|
122
123
|
})
|
|
123
124
|
], OrganizationUser.prototype, "updatedAt", 2);
|
|
125
|
+
__decorateClass([
|
|
126
|
+
DeleteDateColumn({
|
|
127
|
+
name: "deleted_at",
|
|
128
|
+
type: "timestamptz",
|
|
129
|
+
nullable: true,
|
|
130
|
+
comment: "Data de exclus\xE3o l\xF3gica (soft delete) do registro; nulo quando ativo."
|
|
131
|
+
})
|
|
132
|
+
], OrganizationUser.prototype, "deletedAt", 2);
|
|
124
133
|
__decorateClass([
|
|
125
134
|
ManyToOne(() => Organization, (organization) => organization.users, { onDelete: "CASCADE" }),
|
|
126
135
|
JoinColumn({ name: "organization_id" })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/organization.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/organization.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAalG,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAU/C,qBAUa,YAAa,YAAW,aAAa;IAEhD,EAAE,EAAE,MAAM,CAAC;IAOX,IAAI,EAAE,MAAM,CAAC;IAQb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAOd,IAAI,EAAE,gBAAgB,CAAC;IAOvB,MAAM,EAAE,kBAAkB,CAAC;IAU3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,oBAAoB,EAAE,OAAO,CAAC;IAO9B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAM1B,WAAW,EAAE,UAAU,EAAE,CAAC;IAM1B,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B"}
|
|
@@ -12,6 +12,7 @@ import { OrganizationStatus, OrganizationType } from "@natrave/auth-service-type
|
|
|
12
12
|
import {
|
|
13
13
|
Column,
|
|
14
14
|
CreateDateColumn,
|
|
15
|
+
DeleteDateColumn,
|
|
15
16
|
Entity,
|
|
16
17
|
Index,
|
|
17
18
|
OneToMany,
|
|
@@ -93,6 +94,14 @@ __decorateClass([
|
|
|
93
94
|
comment: "Data da \xFAltima atualiza\xE7\xE3o do registro."
|
|
94
95
|
})
|
|
95
96
|
], Organization.prototype, "updatedAt", 2);
|
|
97
|
+
__decorateClass([
|
|
98
|
+
DeleteDateColumn({
|
|
99
|
+
name: "deleted_at",
|
|
100
|
+
type: "timestamptz",
|
|
101
|
+
nullable: true,
|
|
102
|
+
comment: "Data de exclus\xE3o l\xF3gica (soft delete) do registro; nulo quando ativo."
|
|
103
|
+
})
|
|
104
|
+
], Organization.prototype, "deletedAt", 2);
|
|
96
105
|
__decorateClass([
|
|
97
106
|
OneToMany(() => OrganizationUser, (user) => user.organization)
|
|
98
107
|
], Organization.prototype, "users", 2);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@natrave/shared-entities",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "Entidades compartilhadass da NaTrave",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -39,10 +39,11 @@
|
|
|
39
39
|
"husky": "^9.1.7",
|
|
40
40
|
"lint-staged": "^16.2.7",
|
|
41
41
|
"prettier": "^3.8.1",
|
|
42
|
-
"ts-node": "^10.9.2"
|
|
42
|
+
"ts-node": "^10.9.2",
|
|
43
|
+
"typescript": "5.8.2"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
|
-
"@natrave/auth-service-types": "^1.
|
|
46
|
+
"@natrave/auth-service-types": "^1.2.2",
|
|
46
47
|
"@natrave/facility-service-types": "^0.0.9",
|
|
47
48
|
"@natrave/notification-service-types": "^1.1.73",
|
|
48
49
|
"@natrave/tournaments-service-types": "^1.4.4",
|