@natrave/shared-entities 9.9.0 → 9.11.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.
@@ -16,6 +16,8 @@ export declare class Organization implements IOrganization {
16
16
  isActualOrganization: boolean;
17
17
  accessVersion: number;
18
18
  createdByOrganizationUserId: number | null;
19
+ nameConfirmedAt: Date | null;
20
+ logoUrl: string | null;
19
21
  createdAt: Date;
20
22
  updatedAt: Date;
21
23
  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;AAa9D,qBAaa,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;IAO3C,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAA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;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"}
@@ -103,6 +103,23 @@ __decorateClass([
103
103
  comment: "FK organization_users.id (SET NULL): quem criou a organiza\xE7\xE3o. Na carga, a pessoa da organiza\xE7\xE3o."
104
104
  })
105
105
  ], Organization.prototype, "createdByOrganizationUserId", 2);
106
+ __decorateClass([
107
+ Column({
108
+ name: "name_confirmed_at",
109
+ type: "timestamptz",
110
+ nullable: true,
111
+ comment: "Quando um Admin confirmou ou trocou o nome. Nulo: o nome ainda \xE9 o da pessoa."
112
+ })
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);
106
123
  __decorateClass([
107
124
  CreateDateColumn({
108
125
  name: "created_at",
@@ -146,7 +163,6 @@ __decorateClass([
146
163
  ], Organization.prototype, "phoneNumbers", 2);
147
164
  Organization = __decorateClass([
148
165
  Index("UQ_organization_document", ["document"], { unique: true, where: '"deleted_at" IS NULL' }),
149
- Index("UQ_organization_email", ["email"], { unique: true, where: '"deleted_at" IS NULL' }),
150
166
  Index("UQ_organization_phone", ["phone"], { unique: true, where: '"deleted_at" IS NULL' }),
151
167
  Index("UQ_organization_externalId", ["externalId"], {
152
168
  unique: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "9.9.0",
3
+ "version": "9.11.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",