@natrave/shared-entities 7.35.0 → 8.0.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 (44) 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-status.enum.d.ts +5 -0
  8. package/dist/central-auth/enums/organization-user-status.enum.d.ts.map +1 -0
  9. package/dist/central-auth/enums/organization-user-status.enum.js +8 -0
  10. package/dist/central-auth/index.d.ts +3 -0
  11. package/dist/central-auth/index.d.ts.map +1 -1
  12. package/dist/central-auth/index.js +8 -0
  13. package/dist/central-auth/organization-users/index.d.ts +1 -0
  14. package/dist/central-auth/organization-users/index.d.ts.map +1 -1
  15. package/dist/central-auth/organization-users/organization-user.entity.d.ts +2 -1
  16. package/dist/central-auth/organization-users/organization-user.entity.d.ts.map +1 -1
  17. package/dist/central-auth/organization-users/organization-user.entity.js +1 -1
  18. package/dist/central-auth/organization-users/organization-user.interface.d.ts +15 -0
  19. package/dist/central-auth/organization-users/organization-user.interface.d.ts.map +1 -0
  20. package/dist/central-auth/organization-users/organization-user.interface.js +0 -0
  21. package/dist/central-auth/organizations/index.d.ts +1 -0
  22. package/dist/central-auth/organizations/index.d.ts.map +1 -1
  23. package/dist/central-auth/organizations/organization.entity.d.ts +3 -1
  24. package/dist/central-auth/organizations/organization.entity.d.ts.map +1 -1
  25. package/dist/central-auth/organizations/organization.entity.js +2 -1
  26. package/dist/central-auth/organizations/organization.interface.d.ts +16 -0
  27. package/dist/central-auth/organizations/organization.interface.d.ts.map +1 -0
  28. package/dist/central-auth/organizations/organization.interface.js +0 -0
  29. package/dist/tournaments/tournament-category-groups/enums/tournament-creation-flow.enum.d.ts +5 -0
  30. package/dist/tournaments/tournament-category-groups/enums/tournament-creation-flow.enum.d.ts.map +1 -0
  31. package/dist/tournaments/tournament-category-groups/enums/tournament-creation-flow.enum.js +8 -0
  32. package/dist/tournaments/tournament-category-groups/index.d.ts +1 -0
  33. package/dist/tournaments/tournament-category-groups/index.d.ts.map +1 -1
  34. package/dist/tournaments/tournament-category-groups/index.js +2 -0
  35. package/dist/tournaments/tournament-category-groups/tournament-category-group.entity.d.ts +2 -0
  36. package/dist/tournaments/tournament-category-groups/tournament-category-group.entity.d.ts.map +1 -1
  37. package/dist/tournaments/tournament-category-groups/tournament-category-group.entity.js +10 -0
  38. package/dist/tournaments/tournament-contacts/tournament-contact.entity.d.ts +1 -1
  39. package/dist/tournaments/tournament-contacts/tournament-contact.entity.d.ts.map +1 -1
  40. package/dist/tournaments/tournament-contacts/tournament-contact.entity.js +1 -1
  41. package/dist/tournaments/tournament-group-contacts/tournament-group-contact.entity.d.ts +1 -1
  42. package/dist/tournaments/tournament-group-contacts/tournament-group-contact.entity.d.ts.map +1 -1
  43. package/dist/tournaments/tournament-group-contacts/tournament-group-contact.entity.js +1 -1
  44. 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 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,6 @@
1
+ export { OrganizationStatus } from './enums/organization-status.enum';
2
+ export { OrganizationType } from './enums/organization-type.enum';
3
+ export { OrganizationUserStatus } from './enums/organization-user-status.enum';
1
4
  export * from './organization-user-billing-infos';
2
5
  export * from './organization-users';
3
6
  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,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,12 @@
1
+ import { OrganizationStatus } from "./enums/organization-status.enum.js";
2
+ import { OrganizationType } from "./enums/organization-type.enum.js";
3
+ import { OrganizationUserStatus } from "./enums/organization-user-status.enum.js";
1
4
  export * from "./organization-user-billing-infos/index.js";
2
5
  export * from "./organization-users/index.js";
3
6
  export * from "./organizations/index.js";
4
7
  export * from "./phone-numbers/index.js";
8
+ export {
9
+ OrganizationStatus,
10
+ OrganizationType,
11
+ OrganizationUserStatus
12
+ };
@@ -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,8 @@
1
- import { IOrganizationUser, OrganizationUserStatus } from '@natrave/auth-service-types';
2
1
  import { TournamentPayment } from '../../tournaments';
2
+ import { OrganizationUserStatus } from '../enums/organization-user-status.enum';
3
3
  import { OrganizationUserBillingInfo } from '../organization-user-billing-infos';
4
4
  import { Organization } from '../organizations';
5
+ import type { IOrganizationUser } from './organization-user.interface';
5
6
  export declare class OrganizationUser implements IOrganizationUser {
6
7
  id: number;
7
8
  organizationId: number;
@@ -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,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"}
@@ -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 {
@@ -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"}
@@ -0,0 +1,5 @@
1
+ export declare enum TournamentCreationFlow {
2
+ CONVERSATION = "conversation",
3
+ WIZARD = "wizard"
4
+ }
5
+ //# sourceMappingURL=tournament-creation-flow.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-creation-flow.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-category-groups/enums/tournament-creation-flow.enum.ts"],"names":[],"mappings":"AAcA,oBAAY,sBAAsB;IAEhC,YAAY,iBAAiB;IAG7B,MAAM,WAAW;CAClB"}
@@ -0,0 +1,8 @@
1
+ var TournamentCreationFlow = /* @__PURE__ */ ((TournamentCreationFlow2) => {
2
+ TournamentCreationFlow2["CONVERSATION"] = "conversation";
3
+ TournamentCreationFlow2["WIZARD"] = "wizard";
4
+ return TournamentCreationFlow2;
5
+ })(TournamentCreationFlow || {});
6
+ export {
7
+ TournamentCreationFlow
8
+ };
@@ -1,3 +1,4 @@
1
+ export { TournamentCreationFlow } from './enums/tournament-creation-flow.enum';
1
2
  export { TournamentType } from './enums/tournament-type.enum';
2
3
  export { TournamentCategoryGroup } from './tournament-category-group.entity';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-category-groups/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-category-groups/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC"}
@@ -1,6 +1,8 @@
1
+ import { TournamentCreationFlow } from "./enums/tournament-creation-flow.enum.js";
1
2
  import { TournamentType } from "./enums/tournament-type.enum.js";
2
3
  import { TournamentCategoryGroup } from "./tournament-category-group.entity.js";
3
4
  export {
4
5
  TournamentCategoryGroup,
6
+ TournamentCreationFlow,
5
7
  TournamentType
6
8
  };
@@ -1,6 +1,7 @@
1
1
  import { Organization } from '../../central-auth';
2
2
  import { TournamentGroupContact } from '../tournament-group-contacts';
3
3
  import { Tournament } from '../tournaments';
4
+ import { TournamentCreationFlow } from './enums/tournament-creation-flow.enum';
4
5
  import { TournamentType } from './enums/tournament-type.enum';
5
6
  export declare class TournamentCategoryGroup {
6
7
  id: number;
@@ -8,6 +9,7 @@ export declare class TournamentCategoryGroup {
8
9
  tournamentGroupImage?: string | null;
9
10
  tournamentPrimaryColor: string;
10
11
  type?: TournamentType | null;
12
+ creationFlow?: TournamentCreationFlow | null;
11
13
  organizationId?: number | null;
12
14
  createdAt: Date;
13
15
  updatedAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-category-group.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-category-groups/tournament-category-group.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAiB9D,qBAGa,uBAAuB;IAIlC,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAQb,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IASrC,sBAAsB,EAAE,MAAM,CAAC;IAW/B,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IAQ7B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO/B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,SAAS,EAAE,YAAY,CAAC;IAIxB,UAAU,EAAE,UAAU,EAAE,CAAC;IAIzB,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACpC"}
1
+ {"version":3,"file":"tournament-category-group.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-category-groups/tournament-category-group.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAiB9D,qBAGa,uBAAuB;IAIlC,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAQb,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IASrC,sBAAsB,EAAE,MAAM,CAAC;IAW/B,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IAY7B,YAAY,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAQ7C,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO/B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,SAAS,EAAE,YAAY,CAAC;IAIxB,UAAU,EAAE,UAAU,EAAE,CAAC;IAIzB,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACpC"}
@@ -23,6 +23,7 @@ import {
23
23
  import { Organization } from "../../central-auth/index.js";
24
24
  import { TournamentGroupContact } from "../tournament-group-contacts/index.js";
25
25
  import { Tournament } from "../tournaments/index.js";
26
+ import { TournamentCreationFlow } from "./enums/tournament-creation-flow.enum.js";
26
27
  import { TournamentType } from "./enums/tournament-type.enum.js";
27
28
  let TournamentCategoryGroup = class {
28
29
  };
@@ -59,6 +60,15 @@ __decorateClass([
59
60
  comment: "Tipo do campeonato: o contexto de quem organiza (escolinha, liga, empresarial...), n\xE3o a modalidade nem o formato. Nulo nos agrupadores criados antes do campo existir \u2014 que \xE9 diferente de `other`, onde o organizador viu a lista e nenhuma op\xE7\xE3o serviu."
60
61
  })
61
62
  ], TournamentCategoryGroup.prototype, "type", 2);
63
+ __decorateClass([
64
+ Column({
65
+ name: "creation_flow",
66
+ type: "enum",
67
+ enum: TournamentCreationFlow,
68
+ nullable: true,
69
+ comment: "Fluxo pelo qual o campeonato foi criado: a conversa guiada ou o wizard em steps. Nulo nos agrupadores criados antes do campo existir, ou quando o cliente n\xE3o informou. Fato hist\xF3rico da cria\xE7\xE3o: n\xE3o \xE9 editado depois."
70
+ })
71
+ ], TournamentCategoryGroup.prototype, "creationFlow", 2);
62
72
  __decorateClass([
63
73
  Column({
64
74
  name: "organization_id",
@@ -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.35.0",
3
+ "version": "8.0.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",