@natrave/shared-entities 8.0.0 → 8.1.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.
@@ -0,0 +1,5 @@
1
+ export declare enum OrganizationUserAuthProvider {
2
+ EMAIL = "email",
3
+ GOOGLE = "google"
4
+ }
5
+ //# sourceMappingURL=organization-user-auth-provider.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-user-auth-provider.enum.d.ts","sourceRoot":"","sources":["../../../src/central-auth/enums/organization-user-auth-provider.enum.ts"],"names":[],"mappings":"AAWA,oBAAY,4BAA4B;IAItC,KAAK,UAAU;IAKf,MAAM,WAAW;CAClB"}
@@ -0,0 +1,8 @@
1
+ var OrganizationUserAuthProvider = /* @__PURE__ */ ((OrganizationUserAuthProvider2) => {
2
+ OrganizationUserAuthProvider2["EMAIL"] = "email";
3
+ OrganizationUserAuthProvider2["GOOGLE"] = "google";
4
+ return OrganizationUserAuthProvider2;
5
+ })(OrganizationUserAuthProvider || {});
6
+ export {
7
+ OrganizationUserAuthProvider
8
+ };
@@ -1,5 +1,6 @@
1
1
  export { OrganizationStatus } from './enums/organization-status.enum';
2
2
  export { OrganizationType } from './enums/organization-type.enum';
3
+ export { OrganizationUserAuthProvider } from './enums/organization-user-auth-provider.enum';
3
4
  export { OrganizationUserStatus } from './enums/organization-user-status.enum';
4
5
  export * from './organization-user-billing-infos';
5
6
  export * from './organization-users';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/central-auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,cAAc,mCAAmC,CAAC;AAClD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/central-auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,cAAc,mCAAmC,CAAC;AAClD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { OrganizationStatus } from "./enums/organization-status.enum.js";
2
2
  import { OrganizationType } from "./enums/organization-type.enum.js";
3
+ import { OrganizationUserAuthProvider } from "./enums/organization-user-auth-provider.enum.js";
3
4
  import { OrganizationUserStatus } from "./enums/organization-user-status.enum.js";
4
5
  export * from "./organization-user-billing-infos/index.js";
5
6
  export * from "./organization-users/index.js";
@@ -8,5 +9,6 @@ export * from "./phone-numbers/index.js";
8
9
  export {
9
10
  OrganizationStatus,
10
11
  OrganizationType,
12
+ OrganizationUserAuthProvider,
11
13
  OrganizationUserStatus
12
14
  };
@@ -1,4 +1,5 @@
1
1
  import { TournamentPayment } from '../../tournaments';
2
+ import { OrganizationUserAuthProvider } from '../enums/organization-user-auth-provider.enum';
2
3
  import { OrganizationUserStatus } from '../enums/organization-user-status.enum';
3
4
  import { OrganizationUserBillingInfo } from '../organization-user-billing-infos';
4
5
  import { Organization } from '../organizations';
@@ -13,6 +14,7 @@ export declare class OrganizationUser implements IOrganizationUser {
13
14
  phone: string;
14
15
  status: OrganizationUserStatus;
15
16
  externalId: string | null;
17
+ authProvider: OrganizationUserAuthProvider | null;
16
18
  isEmailVerified: boolean;
17
19
  emailVerifiedAt: Date | null;
18
20
  createdAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"organization-user.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-users/organization-user.entity.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAKvE,qBAiBa,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"}
1
+ {"version":3,"file":"organization-user.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-users/organization-user.entity.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAKvE,qBAiBa,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;IAU1B,YAAY,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAQlD,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"}
@@ -91,6 +91,15 @@ __decorateClass([
91
91
  comment: "Identificador externo do usu\xE1rio, usado para integra\xE7\xE3o com provedores de autentica\xE7\xE3o como Clerk."
92
92
  })
93
93
  ], OrganizationUser.prototype, "externalId", 2);
94
+ __decorateClass([
95
+ Column({
96
+ name: "auth_provider",
97
+ type: "varchar",
98
+ length: 32,
99
+ nullable: true,
100
+ comment: "Provedor usado na cria\xE7\xE3o da conta (ex.: google). NULL = criado antes da coluna existir."
101
+ })
102
+ ], OrganizationUser.prototype, "authProvider", 2);
94
103
  __decorateClass([
95
104
  Column({
96
105
  name: "is_email_verified",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "8.0.0",
3
+ "version": "8.1.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",