@natrave/shared-entities 9.11.0 → 9.12.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.
|
@@ -18,6 +18,7 @@ export declare class Organization implements IOrganization {
|
|
|
18
18
|
createdByOrganizationUserId: number | null;
|
|
19
19
|
nameConfirmedAt: Date | null;
|
|
20
20
|
logoUrl: string | null;
|
|
21
|
+
anonymizedAt: Date | null;
|
|
21
22
|
createdAt: Date;
|
|
22
23
|
updatedAt: Date;
|
|
23
24
|
deletedAt: Date | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/organization.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAiB9D,
|
|
1
|
+
{"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/organization.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAiB9D,qBAea,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;IASd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAOrB,IAAI,EAAE,gBAAgB,CAAC;IAOvB,MAAM,EAAE,kBAAkB,CAAC;IAU3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,oBAAoB,EAAE,OAAO,CAAC;IAU9B,aAAa,EAAE,MAAM,CAAC;IAStB,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAC;IAU3C,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;IAW7B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAUvB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAO1B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAYvB,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAMnC,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAM1B,WAAW,EAAE,UAAU,EAAE,CAAC;IAM1B,wBAAwB,EAAE,uBAAuB,EAAE,CAAC;IAMpD,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B"}
|
|
@@ -120,6 +120,14 @@ __decorateClass([
|
|
|
120
120
|
comment: "URL da foto (escudo) da organiza\xE7\xE3o no bucket. Nulo: escudo com as iniciais."
|
|
121
121
|
})
|
|
122
122
|
], Organization.prototype, "logoUrl", 2);
|
|
123
|
+
__decorateClass([
|
|
124
|
+
Column({
|
|
125
|
+
name: "anonymized_at",
|
|
126
|
+
type: "timestamptz",
|
|
127
|
+
nullable: true,
|
|
128
|
+
comment: "Quando a rotina dos 30 dias anonimizou a organiza\xE7\xE3o exclu\xEDda. Nulo: ainda n\xE3o."
|
|
129
|
+
})
|
|
130
|
+
], Organization.prototype, "anonymizedAt", 2);
|
|
123
131
|
__decorateClass([
|
|
124
132
|
CreateDateColumn({
|
|
125
133
|
name: "created_at",
|
|
@@ -168,6 +176,9 @@ Organization = __decorateClass([
|
|
|
168
176
|
unique: true,
|
|
169
177
|
where: '"deleted_at" IS NULL'
|
|
170
178
|
}),
|
|
179
|
+
Index("IDX_organizations_deleted_pending_anonymization", ["deletedAt"], {
|
|
180
|
+
where: '"deleted_at" IS NOT NULL AND "anonymized_at" IS NULL'
|
|
181
|
+
}),
|
|
171
182
|
Index("idx_organization_document", ["document"]),
|
|
172
183
|
Index("idx_organization_email", ["email"]),
|
|
173
184
|
Index("idx_organization_phone", ["phone"]),
|