@natrave/shared-entities 7.36.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.
Files changed (38) hide show
  1. package/dist/central-auth/enums/organization-status.enum.d.ts +5 -0
  2. package/dist/central-auth/enums/organization-status.enum.d.ts.map +1 -0
  3. package/dist/central-auth/enums/organization-status.enum.js +8 -0
  4. package/dist/central-auth/enums/organization-type.enum.d.ts +7 -0
  5. package/dist/central-auth/enums/organization-type.enum.d.ts.map +1 -0
  6. package/dist/central-auth/enums/organization-type.enum.js +10 -0
  7. package/dist/central-auth/enums/organization-user-auth-provider.enum.d.ts +5 -0
  8. package/dist/central-auth/enums/organization-user-auth-provider.enum.d.ts.map +1 -0
  9. package/dist/central-auth/enums/organization-user-auth-provider.enum.js +8 -0
  10. package/dist/central-auth/enums/organization-user-status.enum.d.ts +5 -0
  11. package/dist/central-auth/enums/organization-user-status.enum.d.ts.map +1 -0
  12. package/dist/central-auth/enums/organization-user-status.enum.js +8 -0
  13. package/dist/central-auth/index.d.ts +4 -0
  14. package/dist/central-auth/index.d.ts.map +1 -1
  15. package/dist/central-auth/index.js +10 -0
  16. package/dist/central-auth/organization-users/index.d.ts +1 -0
  17. package/dist/central-auth/organization-users/index.d.ts.map +1 -1
  18. package/dist/central-auth/organization-users/organization-user.entity.d.ts +4 -1
  19. package/dist/central-auth/organization-users/organization-user.entity.d.ts.map +1 -1
  20. package/dist/central-auth/organization-users/organization-user.entity.js +10 -1
  21. package/dist/central-auth/organization-users/organization-user.interface.d.ts +15 -0
  22. package/dist/central-auth/organization-users/organization-user.interface.d.ts.map +1 -0
  23. package/dist/central-auth/organization-users/organization-user.interface.js +0 -0
  24. package/dist/central-auth/organizations/index.d.ts +1 -0
  25. package/dist/central-auth/organizations/index.d.ts.map +1 -1
  26. package/dist/central-auth/organizations/organization.entity.d.ts +3 -1
  27. package/dist/central-auth/organizations/organization.entity.d.ts.map +1 -1
  28. package/dist/central-auth/organizations/organization.entity.js +2 -1
  29. package/dist/central-auth/organizations/organization.interface.d.ts +16 -0
  30. package/dist/central-auth/organizations/organization.interface.d.ts.map +1 -0
  31. package/dist/central-auth/organizations/organization.interface.js +0 -0
  32. package/dist/tournaments/tournament-contacts/tournament-contact.entity.d.ts +1 -1
  33. package/dist/tournaments/tournament-contacts/tournament-contact.entity.d.ts.map +1 -1
  34. package/dist/tournaments/tournament-contacts/tournament-contact.entity.js +1 -1
  35. package/dist/tournaments/tournament-group-contacts/tournament-group-contact.entity.d.ts +1 -1
  36. package/dist/tournaments/tournament-group-contacts/tournament-group-contact.entity.d.ts.map +1 -1
  37. package/dist/tournaments/tournament-group-contacts/tournament-group-contact.entity.js +1 -1
  38. package/package.json +1 -2
@@ -0,0 +1,5 @@
1
+ export declare enum OrganizationStatus {
2
+ ACTIVE = "ACTIVE",
3
+ BLOCKED = "BLOCKED"
4
+ }
5
+ //# sourceMappingURL=organization-status.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-status.enum.d.ts","sourceRoot":"","sources":["../../../src/central-auth/enums/organization-status.enum.ts"],"names":[],"mappings":"AAMA,oBAAY,kBAAkB;IAI5B,MAAM,WAAW;IAKjB,OAAO,YAAY;CACpB"}
@@ -0,0 +1,8 @@
1
+ var OrganizationStatus = /* @__PURE__ */ ((OrganizationStatus2) => {
2
+ OrganizationStatus2["ACTIVE"] = "ACTIVE";
3
+ OrganizationStatus2["BLOCKED"] = "BLOCKED";
4
+ return OrganizationStatus2;
5
+ })(OrganizationStatus || {});
6
+ export {
7
+ OrganizationStatus
8
+ };
@@ -0,0 +1,7 @@
1
+ export declare enum OrganizationType {
2
+ SOCCER_SCHOOL = "SOCCER_SCHOOL",
3
+ FACILITY = "FACILITY",
4
+ LEAGUE_FEDERATION = "LEAGUE_FEDERATION",
5
+ OTHER = "OTHER"
6
+ }
7
+ //# sourceMappingURL=organization-type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-type.enum.d.ts","sourceRoot":"","sources":["../../../src/central-auth/enums/organization-type.enum.ts"],"names":[],"mappings":"AAKA,oBAAY,gBAAgB;IAK1B,aAAa,kBAAkB;IAK/B,QAAQ,aAAa;IAKrB,iBAAiB,sBAAsB;IAIvC,KAAK,UAAU;CAChB"}
@@ -0,0 +1,10 @@
1
+ var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
2
+ OrganizationType2["SOCCER_SCHOOL"] = "SOCCER_SCHOOL";
3
+ OrganizationType2["FACILITY"] = "FACILITY";
4
+ OrganizationType2["LEAGUE_FEDERATION"] = "LEAGUE_FEDERATION";
5
+ OrganizationType2["OTHER"] = "OTHER";
6
+ return OrganizationType2;
7
+ })(OrganizationType || {});
8
+ export {
9
+ OrganizationType
10
+ };
@@ -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
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum OrganizationUserStatus {
2
+ ACTIVE = "ACTIVE",
3
+ BLOCKED = "BLOCKED"
4
+ }
5
+ //# sourceMappingURL=organization-user-status.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-user-status.enum.d.ts","sourceRoot":"","sources":["../../../src/central-auth/enums/organization-user-status.enum.ts"],"names":[],"mappings":"AAMA,oBAAY,sBAAsB;IAIhC,MAAM,WAAW;IAKjB,OAAO,YAAY;CACpB"}
@@ -0,0 +1,8 @@
1
+ var OrganizationUserStatus = /* @__PURE__ */ ((OrganizationUserStatus2) => {
2
+ OrganizationUserStatus2["ACTIVE"] = "ACTIVE";
3
+ OrganizationUserStatus2["BLOCKED"] = "BLOCKED";
4
+ return OrganizationUserStatus2;
5
+ })(OrganizationUserStatus || {});
6
+ export {
7
+ OrganizationUserStatus
8
+ };
@@ -1,3 +1,7 @@
1
+ export { OrganizationStatus } from './enums/organization-status.enum';
2
+ export { OrganizationType } from './enums/organization-type.enum';
3
+ export { OrganizationUserAuthProvider } from './enums/organization-user-auth-provider.enum';
4
+ export { OrganizationUserStatus } from './enums/organization-user-status.enum';
1
5
  export * from './organization-user-billing-infos';
2
6
  export * from './organization-users';
3
7
  export * from './organizations';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/central-auth/index.ts"],"names":[],"mappings":"AAAA,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,4 +1,14 @@
1
+ import { OrganizationStatus } from "./enums/organization-status.enum.js";
2
+ import { OrganizationType } from "./enums/organization-type.enum.js";
3
+ import { OrganizationUserAuthProvider } from "./enums/organization-user-auth-provider.enum.js";
4
+ import { OrganizationUserStatus } from "./enums/organization-user-status.enum.js";
1
5
  export * from "./organization-user-billing-infos/index.js";
2
6
  export * from "./organization-users/index.js";
3
7
  export * from "./organizations/index.js";
4
8
  export * from "./phone-numbers/index.js";
9
+ export {
10
+ OrganizationStatus,
11
+ OrganizationType,
12
+ OrganizationUserAuthProvider,
13
+ OrganizationUserStatus
14
+ };
@@ -1,2 +1,3 @@
1
1
  export { OrganizationUser } from './organization-user.entity';
2
+ export type { IOrganizationUser } from './organization-user.interface';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-users/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-users/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC"}
@@ -1,7 +1,9 @@
1
- import { IOrganizationUser, OrganizationUserStatus } from '@natrave/auth-service-types';
2
1
  import { TournamentPayment } from '../../tournaments';
2
+ import { OrganizationUserAuthProvider } from '../enums/organization-user-auth-provider.enum';
3
+ import { OrganizationUserStatus } from '../enums/organization-user-status.enum';
3
4
  import { OrganizationUserBillingInfo } from '../organization-user-billing-infos';
4
5
  import { Organization } from '../organizations';
6
+ import type { IOrganizationUser } from './organization-user.interface';
5
7
  export declare class OrganizationUser implements IOrganizationUser {
6
8
  id: number;
7
9
  organizationId: number;
@@ -12,6 +14,7 @@ export declare class OrganizationUser implements IOrganizationUser {
12
14
  phone: string;
13
15
  status: OrganizationUserStatus;
14
16
  externalId: string | null;
17
+ authProvider: OrganizationUserAuthProvider | null;
15
18
  isEmailVerified: boolean;
16
19
  emailVerifiedAt: Date | null;
17
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":"AAAA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAexF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKhD,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"}
@@ -8,7 +8,6 @@ var __decorateClass = (decorators, target, key, kind) => {
8
8
  if (kind && result) __defProp(target, key, result);
9
9
  return result;
10
10
  };
11
- import { OrganizationUserStatus } from "@natrave/auth-service-types";
12
11
  import {
13
12
  Column,
14
13
  CreateDateColumn,
@@ -23,6 +22,7 @@ import {
23
22
  UpdateDateColumn
24
23
  } from "typeorm";
25
24
  import { TournamentPayment } from "../../tournaments/index.js";
25
+ import { OrganizationUserStatus } from "../enums/organization-user-status.enum.js";
26
26
  import { OrganizationUserBillingInfo } from "../organization-user-billing-infos/index.js";
27
27
  import { Organization } from "../organizations/index.js";
28
28
  let OrganizationUser = class {
@@ -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",
@@ -0,0 +1,15 @@
1
+ import type { OrganizationUserStatus } from '../enums/organization-user-status.enum';
2
+ export interface IOrganizationUser {
3
+ id: number;
4
+ organizationId: number;
5
+ firstName: string;
6
+ lastName: string;
7
+ document: string | null;
8
+ email: string;
9
+ phone: string;
10
+ status: OrganizationUserStatus;
11
+ externalId: string | null;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ }
15
+ //# sourceMappingURL=organization-user.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-user.interface.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-users/organization-user.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAsBrF,MAAM,WAAW,iBAAiB;IAIhC,EAAE,EAAE,MAAM,CAAC;IAKX,cAAc,EAAE,MAAM,CAAC;IAKvB,SAAS,EAAE,MAAM,CAAC;IAKlB,QAAQ,EAAE,MAAM,CAAC;IAKjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,KAAK,EAAE,MAAM,CAAC;IAKd,KAAK,EAAE,MAAM,CAAC;IAQd,MAAM,EAAE,sBAAsB,CAAC;IAK/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAK1B,SAAS,EAAE,IAAI,CAAC;IAKhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -1,2 +1,3 @@
1
1
  export { Organization } from './organization.entity';
2
+ export type { IOrganization } from './organization.interface';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,7 +1,9 @@
1
- import { IOrganization, OrganizationStatus, OrganizationType } from '@natrave/auth-service-types';
2
1
  import { Tournament, TournamentCategoryGroup } from '../../tournaments';
2
+ import { OrganizationStatus } from '../enums/organization-status.enum';
3
+ import { OrganizationType } from '../enums/organization-type.enum';
3
4
  import { OrganizationUser } from '../organization-users';
4
5
  import { PhoneNumber } from '../phone-numbers';
6
+ import type { IOrganization } from './organization.interface';
5
7
  export declare class Organization implements IOrganization {
6
8
  id: number;
7
9
  name: string;
@@ -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;AAYlG,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAa/C,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;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,wBAAwB,EAAE,uBAAuB,EAAE,CAAC;IAMpD,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B"}
1
+ {"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/organization.entity.ts"],"names":[],"mappings":"AAWA,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;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,wBAAwB,EAAE,uBAAuB,EAAE,CAAC;IAMpD,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B"}
@@ -8,7 +8,6 @@ var __decorateClass = (decorators, target, key, kind) => {
8
8
  if (kind && result) __defProp(target, key, result);
9
9
  return result;
10
10
  };
11
- import { OrganizationStatus, OrganizationType } from "@natrave/auth-service-types";
12
11
  import {
13
12
  Column,
14
13
  CreateDateColumn,
@@ -20,6 +19,8 @@ import {
20
19
  UpdateDateColumn
21
20
  } from "typeorm";
22
21
  import { Tournament, TournamentCategoryGroup } from "../../tournaments/index.js";
22
+ import { OrganizationStatus } from "../enums/organization-status.enum.js";
23
+ import { OrganizationType } from "../enums/organization-type.enum.js";
23
24
  import { OrganizationUser } from "../organization-users/index.js";
24
25
  import { PhoneNumber } from "../phone-numbers/index.js";
25
26
  let Organization = class {
@@ -0,0 +1,16 @@
1
+ import type { OrganizationStatus } from '../enums/organization-status.enum';
2
+ import type { OrganizationType } from '../enums/organization-type.enum';
3
+ export interface IOrganization {
4
+ id: number;
5
+ name: string;
6
+ document: string | null;
7
+ email: string;
8
+ phone: string;
9
+ type: OrganizationType;
10
+ status: OrganizationStatus;
11
+ externalId: string | null;
12
+ isActualOrganization: boolean;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ }
16
+ //# sourceMappingURL=organization.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.interface.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organizations/organization.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAwBxE,MAAM,WAAW,aAAa;IAI5B,EAAE,EAAE,MAAM,CAAC;IAKX,IAAI,EAAE,MAAM,CAAC;IAKb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,KAAK,EAAE,MAAM,CAAC;IAKd,KAAK,EAAE,MAAM,CAAC;IAKd,IAAI,EAAE,gBAAgB,CAAC;IAOvB,MAAM,EAAE,kBAAkB,CAAC;IAK3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAK1B,oBAAoB,EAAE,OAAO,CAAC;IAK9B,SAAS,EAAE,IAAI,CAAC;IAKhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -1,4 +1,4 @@
1
- import { OrganizationType } from '@natrave/auth-service-types';
1
+ import { OrganizationType } from '../../central-auth/enums/organization-type.enum';
2
2
  import { Tournament } from '../tournaments';
3
3
  export declare class TournamentContact {
4
4
  id: number;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-contact.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-contacts/tournament-contact.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAa/D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAGa,iBAAiB;IAI5B,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IASrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IASzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IASxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAQrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAU1C,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IASjC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAOhC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"tournament-contact.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-contacts/tournament-contact.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAGa,iBAAiB;IAI5B,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IASrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IASzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IASxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAQrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAU1C,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IASjC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAOhC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -8,7 +8,6 @@ var __decorateClass = (decorators, target, key, kind) => {
8
8
  if (kind && result) __defProp(target, key, result);
9
9
  return result;
10
10
  };
11
- import { OrganizationType } from "@natrave/auth-service-types";
12
11
  import {
13
12
  Column,
14
13
  CreateDateColumn,
@@ -20,6 +19,7 @@ import {
20
19
  Unique,
21
20
  UpdateDateColumn
22
21
  } from "typeorm";
22
+ import { OrganizationType } from "../../central-auth/enums/organization-type.enum.js";
23
23
  import { Tournament } from "../tournaments/index.js";
24
24
  let TournamentContact = class {
25
25
  };
@@ -1,4 +1,4 @@
1
- import { OrganizationType } from '@natrave/auth-service-types';
1
+ import { OrganizationType } from '../../central-auth/enums/organization-type.enum';
2
2
  import { TournamentCategoryGroup } from '../tournament-category-groups';
3
3
  export declare class TournamentGroupContact {
4
4
  id: number;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-group-contact.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-group-contacts/tournament-group-contact.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAa/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAOxE,qBAGa,sBAAsB;IAIjC,EAAE,EAAE,MAAM,CAAC;IAOX,eAAe,EAAE,MAAM,CAAC;IASxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IASzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IASxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAQrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAU1C,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IASjC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAOhC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,aAAa,EAAE,uBAAuB,CAAC;CACxC"}
1
+ {"version":3,"file":"tournament-group-contact.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-group-contacts/tournament-group-contact.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAOxE,qBAGa,sBAAsB;IAIjC,EAAE,EAAE,MAAM,CAAC;IAOX,eAAe,EAAE,MAAM,CAAC;IASxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IASzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IASxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAQrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAU1C,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IASjC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAOhC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,aAAa,EAAE,uBAAuB,CAAC;CACxC"}
@@ -8,7 +8,6 @@ var __decorateClass = (decorators, target, key, kind) => {
8
8
  if (kind && result) __defProp(target, key, result);
9
9
  return result;
10
10
  };
11
- import { OrganizationType } from "@natrave/auth-service-types";
12
11
  import {
13
12
  Column,
14
13
  CreateDateColumn,
@@ -20,6 +19,7 @@ import {
20
19
  Unique,
21
20
  UpdateDateColumn
22
21
  } from "typeorm";
22
+ import { OrganizationType } from "../../central-auth/enums/organization-type.enum.js";
23
23
  import { TournamentCategoryGroup } from "../tournament-category-groups/index.js";
24
24
  let TournamentGroupContact = class {
25
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "7.36.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",
@@ -43,7 +43,6 @@
43
43
  "typescript": "5.8.2"
44
44
  },
45
45
  "dependencies": {
46
- "@natrave/auth-service-types": "^1.2.2",
47
46
  "@natrave/facility-service-types": "^0.2.0",
48
47
  "@natrave/notification-service-types": "^1.1.73",
49
48
  "@natrave/tournaments-service-types": "^1.4.4",