@natrave/shared-entities 9.10.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.
|
@@ -17,6 +17,8 @@ export declare class Organization implements IOrganization {
|
|
|
17
17
|
accessVersion: number;
|
|
18
18
|
createdByOrganizationUserId: number | null;
|
|
19
19
|
nameConfirmedAt: Date | null;
|
|
20
|
+
logoUrl: string | null;
|
|
21
|
+
anonymizedAt: Date | null;
|
|
20
22
|
createdAt: Date;
|
|
21
23
|
updatedAt: Date;
|
|
22
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"}
|
|
@@ -111,6 +111,23 @@ __decorateClass([
|
|
|
111
111
|
comment: "Quando um Admin confirmou ou trocou o nome. Nulo: o nome ainda \xE9 o da pessoa."
|
|
112
112
|
})
|
|
113
113
|
], Organization.prototype, "nameConfirmedAt", 2);
|
|
114
|
+
__decorateClass([
|
|
115
|
+
Column({
|
|
116
|
+
name: "logo_url",
|
|
117
|
+
type: "varchar",
|
|
118
|
+
length: 2048,
|
|
119
|
+
nullable: true,
|
|
120
|
+
comment: "URL da foto (escudo) da organiza\xE7\xE3o no bucket. Nulo: escudo com as iniciais."
|
|
121
|
+
})
|
|
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);
|
|
114
131
|
__decorateClass([
|
|
115
132
|
CreateDateColumn({
|
|
116
133
|
name: "created_at",
|
|
@@ -159,6 +176,9 @@ Organization = __decorateClass([
|
|
|
159
176
|
unique: true,
|
|
160
177
|
where: '"deleted_at" IS NULL'
|
|
161
178
|
}),
|
|
179
|
+
Index("IDX_organizations_deleted_pending_anonymization", ["deletedAt"], {
|
|
180
|
+
where: '"deleted_at" IS NOT NULL AND "anonymized_at" IS NULL'
|
|
181
|
+
}),
|
|
162
182
|
Index("idx_organization_document", ["document"]),
|
|
163
183
|
Index("idx_organization_email", ["email"]),
|
|
164
184
|
Index("idx_organization_phone", ["phone"]),
|