@natrave/shared-entities 8.45.1 → 8.47.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 (111) hide show
  1. package/dist/app-auth/users/user.entity.d.ts +1 -0
  2. package/dist/app-auth/users/user.entity.d.ts.map +1 -1
  3. package/dist/app-auth/users/user.entity.js +12 -1
  4. package/dist/backoffice/enums/staff-command-outcome.enum.d.ts +8 -0
  5. package/dist/backoffice/enums/staff-command-outcome.enum.d.ts.map +1 -0
  6. package/dist/backoffice/enums/staff-command-outcome.enum.js +11 -0
  7. package/dist/backoffice/enums/test-mark-subject-type.enum.d.ts +5 -0
  8. package/dist/backoffice/enums/test-mark-subject-type.enum.d.ts.map +1 -0
  9. package/dist/backoffice/enums/test-mark-subject-type.enum.js +8 -0
  10. package/dist/backoffice/friendly-funnel-snapshots/backoffice-friendly-funnel-snapshot.entity.d.ts +8 -0
  11. package/dist/backoffice/friendly-funnel-snapshots/backoffice-friendly-funnel-snapshot.entity.d.ts.map +1 -0
  12. package/dist/backoffice/friendly-funnel-snapshots/backoffice-friendly-funnel-snapshot.entity.js +57 -0
  13. package/dist/backoffice/friendly-funnel-snapshots/index.d.ts +2 -0
  14. package/dist/backoffice/friendly-funnel-snapshots/index.d.ts.map +1 -0
  15. package/dist/backoffice/friendly-funnel-snapshots/index.js +4 -0
  16. package/dist/backoffice/index.d.ts +5 -0
  17. package/dist/backoffice/index.d.ts.map +1 -1
  18. package/dist/backoffice/index.js +7 -0
  19. package/dist/backoffice/staff-commands/backoffice-staff-command.entity.d.ts +21 -0
  20. package/dist/backoffice/staff-commands/backoffice-staff-command.entity.d.ts.map +1 -0
  21. package/dist/backoffice/staff-commands/backoffice-staff-command.entity.js +150 -0
  22. package/dist/backoffice/staff-commands/index.d.ts +2 -0
  23. package/dist/backoffice/staff-commands/index.d.ts.map +1 -0
  24. package/dist/backoffice/staff-commands/index.js +4 -0
  25. package/dist/backoffice/test-marks/backoffice-test-mark.entity.d.ts +15 -0
  26. package/dist/backoffice/test-marks/backoffice-test-mark.entity.d.ts.map +1 -0
  27. package/dist/backoffice/test-marks/backoffice-test-mark.entity.js +116 -0
  28. package/dist/backoffice/test-marks/index.d.ts +2 -0
  29. package/dist/backoffice/test-marks/index.d.ts.map +1 -0
  30. package/dist/backoffice/test-marks/index.js +4 -0
  31. package/dist/database-entities/index.d.ts +2 -2
  32. package/dist/database-entities/index.d.ts.map +1 -1
  33. package/dist/database-entities/index.js +10 -2
  34. package/dist/friendlies/enums/friendly-history-actor-type.enum.d.ts +6 -0
  35. package/dist/friendlies/enums/friendly-history-actor-type.enum.d.ts.map +1 -0
  36. package/dist/friendlies/enums/friendly-history-actor-type.enum.js +9 -0
  37. package/dist/friendlies/enums/friendly-history-type.enum.d.ts +22 -0
  38. package/dist/friendlies/enums/friendly-history-type.enum.d.ts.map +1 -0
  39. package/dist/friendlies/enums/friendly-history-type.enum.js +25 -0
  40. package/dist/friendlies/enums/friendly-removed-reason.enum.d.ts +7 -0
  41. package/dist/friendlies/enums/friendly-removed-reason.enum.d.ts.map +1 -0
  42. package/dist/friendlies/enums/friendly-removed-reason.enum.js +10 -0
  43. package/dist/friendlies/enums/friendly-score-event-type.enum.d.ts +3 -1
  44. package/dist/friendlies/enums/friendly-score-event-type.enum.d.ts.map +1 -1
  45. package/dist/friendlies/enums/friendly-score-event-type.enum.js +2 -0
  46. package/dist/friendlies/enums/friendly-score-staff-reason.enum.d.ts +10 -0
  47. package/dist/friendlies/enums/friendly-score-staff-reason.enum.d.ts.map +1 -0
  48. package/dist/friendlies/enums/friendly-score-staff-reason.enum.js +13 -0
  49. package/dist/friendlies/enums/friendly-staff-command-effect-kind.enum.d.ts +5 -0
  50. package/dist/friendlies/enums/friendly-staff-command-effect-kind.enum.d.ts.map +1 -0
  51. package/dist/friendlies/enums/friendly-staff-command-effect-kind.enum.js +8 -0
  52. package/dist/friendlies/enums/friendly-staff-command-effect-skip-reason.enum.d.ts +6 -0
  53. package/dist/friendlies/enums/friendly-staff-command-effect-skip-reason.enum.d.ts.map +1 -0
  54. package/dist/friendlies/enums/friendly-staff-command-effect-skip-reason.enum.js +9 -0
  55. package/dist/friendlies/enums/friendly-staff-command-effect-status.enum.d.ts +7 -0
  56. package/dist/friendlies/enums/friendly-staff-command-effect-status.enum.d.ts.map +1 -0
  57. package/dist/friendlies/enums/friendly-staff-command-effect-status.enum.js +10 -0
  58. package/dist/friendlies/enums/friendly-staff-command-status.enum.d.ts +5 -0
  59. package/dist/friendlies/enums/friendly-staff-command-status.enum.d.ts.map +1 -0
  60. package/dist/friendlies/enums/friendly-staff-command-status.enum.js +8 -0
  61. package/dist/friendlies/enums/friendly-staff-operation.enum.d.ts +16 -0
  62. package/dist/friendlies/enums/friendly-staff-operation.enum.d.ts.map +1 -0
  63. package/dist/friendlies/enums/friendly-staff-operation.enum.js +19 -0
  64. package/dist/friendlies/friendly-challenges/friendly-challenge.entity.d.ts +9 -0
  65. package/dist/friendlies/friendly-challenges/friendly-challenge.entity.d.ts.map +1 -1
  66. package/dist/friendlies/friendly-challenges/friendly-challenge.entity.js +86 -1
  67. package/dist/friendlies/friendly-history/friendly-history.entity.d.ts +32 -0
  68. package/dist/friendlies/friendly-history/friendly-history.entity.d.ts.map +1 -0
  69. package/dist/friendlies/friendly-history/friendly-history.entity.js +218 -0
  70. package/dist/friendlies/friendly-history/index.d.ts +2 -0
  71. package/dist/friendlies/friendly-history/index.d.ts.map +1 -0
  72. package/dist/friendlies/friendly-history/index.js +4 -0
  73. package/dist/friendlies/friendly-matches/friendly-match.entity.d.ts +5 -0
  74. package/dist/friendlies/friendly-matches/friendly-match.entity.d.ts.map +1 -1
  75. package/dist/friendlies/friendly-matches/friendly-match.entity.js +48 -3
  76. package/dist/friendlies/friendly-open-challenge-extras/friendly-open-challenge-extra.entity.d.ts +13 -0
  77. package/dist/friendlies/friendly-open-challenge-extras/friendly-open-challenge-extra.entity.d.ts.map +1 -0
  78. package/dist/friendlies/friendly-open-challenge-extras/friendly-open-challenge-extra.entity.js +88 -0
  79. package/dist/friendlies/friendly-open-challenge-extras/index.d.ts +2 -0
  80. package/dist/friendlies/friendly-open-challenge-extras/index.d.ts.map +1 -0
  81. package/dist/friendlies/friendly-open-challenge-extras/index.js +4 -0
  82. package/dist/friendlies/friendly-open-challenges/friendly-open-challenge.entity.d.ts +4 -0
  83. package/dist/friendlies/friendly-open-challenges/friendly-open-challenge.entity.d.ts.map +1 -1
  84. package/dist/friendlies/friendly-open-challenges/friendly-open-challenge.entity.js +24 -0
  85. package/dist/friendlies/friendly-requests/friendly-request.entity.d.ts.map +1 -1
  86. package/dist/friendlies/friendly-requests/friendly-request.entity.js +1 -1
  87. package/dist/friendlies/friendly-score-events/friendly-score-event.entity.d.ts +8 -0
  88. package/dist/friendlies/friendly-score-events/friendly-score-event.entity.d.ts.map +1 -1
  89. package/dist/friendlies/friendly-score-events/friendly-score-event.entity.js +95 -6
  90. package/dist/friendlies/friendly-staff-command-effects/friendly-staff-command-effect.entity.d.ts +26 -0
  91. package/dist/friendlies/friendly-staff-command-effects/friendly-staff-command-effect.entity.d.ts.map +1 -0
  92. package/dist/friendlies/friendly-staff-command-effects/friendly-staff-command-effect.entity.js +185 -0
  93. package/dist/friendlies/friendly-staff-command-effects/index.d.ts +2 -0
  94. package/dist/friendlies/friendly-staff-command-effects/index.d.ts.map +1 -0
  95. package/dist/friendlies/friendly-staff-command-effects/index.js +4 -0
  96. package/dist/friendlies/friendly-staff-commands/friendly-staff-command.entity.d.ts +21 -0
  97. package/dist/friendlies/friendly-staff-commands/friendly-staff-command.entity.d.ts.map +1 -0
  98. package/dist/friendlies/friendly-staff-commands/friendly-staff-command.entity.js +152 -0
  99. package/dist/friendlies/friendly-staff-commands/index.d.ts +2 -0
  100. package/dist/friendlies/friendly-staff-commands/index.d.ts.map +1 -0
  101. package/dist/friendlies/friendly-staff-commands/index.js +4 -0
  102. package/dist/friendlies/index.d.ts +13 -0
  103. package/dist/friendlies/index.d.ts.map +1 -1
  104. package/dist/friendlies/index.js +23 -1
  105. package/dist/notifications/notifications/notification.entity.d.ts +1 -0
  106. package/dist/notifications/notifications/notification.entity.d.ts.map +1 -1
  107. package/dist/notifications/notifications/notification.entity.js +13 -0
  108. package/dist/teams/player-team/player-team.entity.d.ts +2 -0
  109. package/dist/teams/player-team/player-team.entity.d.ts.map +1 -1
  110. package/dist/teams/player-team/player-team.entity.js +21 -1
  111. package/package.json +1 -1
@@ -11,6 +11,7 @@ export declare class User {
11
11
  updatedAt: Date;
12
12
  deletedAt: Date | null;
13
13
  name: string | null;
14
+ nickname: string | null;
14
15
  birthDate: string | null;
15
16
  shirtNumber: number | null;
16
17
  email: string;
@@ -1 +1 @@
1
- {"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/users/user.entity.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAa7C,qBAgBa,IAAI;IAIf,EAAE,EAAE,MAAM,CAAC;IAUX,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IASvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAQpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ3B,KAAK,EAAE,MAAM,CAAC;IAQd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAQtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAS5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAUvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IASrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IASxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAQhC,cAAc,EAAE,MAAM,CAAC;IAKvB,aAAa,EAAE,YAAY,EAAE,CAAC;IAK9B,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAKtC,MAAM,EAAE,MAAM,CAAC;IAGf,aAAa,EAAE,YAAY,EAAE,CAAC;IAG9B,gBAAgB,EAAE,eAAe,EAAE,CAAC;IAMpC,sBAAsB,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAG1D,8BAA8B,EAAE,6BAA6B,EAAE,CAAC;IAMhE,WAAW,IAAI,IAAI;CAGpB"}
1
+ {"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/users/user.entity.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAa7C,qBAiBa,IAAI;IAIf,EAAE,EAAE,MAAM,CAAC;IAUX,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IASvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAapB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAQxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ3B,KAAK,EAAE,MAAM,CAAC;IAQd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAQtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAS5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAUvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IASrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IASxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAQhC,cAAc,EAAE,MAAM,CAAC;IAKvB,aAAa,EAAE,YAAY,EAAE,CAAC;IAK9B,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAKtC,MAAM,EAAE,MAAM,CAAC;IAGf,aAAa,EAAE,YAAY,EAAE,CAAC;IAG9B,gBAAgB,EAAE,eAAe,EAAE,CAAC;IAMpC,sBAAsB,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAG1D,8BAA8B,EAAE,6BAA6B,EAAE,CAAC;IAMhE,WAAW,IAAI,IAAI;CAGpB"}
@@ -10,6 +10,7 @@ var __decorateClass = (decorators, target, key, kind) => {
10
10
  };
11
11
  import {
12
12
  BeforeInsert,
13
+ Check,
13
14
  Column,
14
15
  CreateDateColumn,
15
16
  DeleteDateColumn,
@@ -79,6 +80,15 @@ __decorateClass([
79
80
  comment: "Nome do usu\xE1rio."
80
81
  })
81
82
  ], User.prototype, "name", 2);
83
+ __decorateClass([
84
+ Column({
85
+ name: "nickname",
86
+ type: "varchar",
87
+ length: 50,
88
+ nullable: true,
89
+ comment: "Apelido do usu\xE1rio (perfil). NULL = sem apelido."
90
+ })
91
+ ], User.prototype, "nickname", 2);
82
92
  __decorateClass([
83
93
  Column({
84
94
  name: "birth_date",
@@ -211,7 +221,8 @@ User = __decorateClass([
211
221
  Index("IDX_users_updated_at", ["updatedAt"]),
212
222
  Index("IDX_users_name", ["name"], { where: '"deleted_at" IS NULL' }),
213
223
  Index("IDX_users_gender", ["gender"], { where: '"deleted_at" IS NULL' }),
214
- Index("IDX_users_id_session_version", ["id", "sessionVersion"])
224
+ Index("IDX_users_id_session_version", ["id", "sessionVersion"]),
225
+ Check("CHK_users_nickname", `"nickname" IS NULL OR btrim("nickname") <> ''`)
215
226
  ], User);
216
227
  export {
217
228
  User
@@ -0,0 +1,8 @@
1
+ export declare enum BackofficeStaffCommandOutcome {
2
+ AWAITING_AUDIT = "awaiting_audit",
3
+ PENDING = "pending",
4
+ SUCCEEDED = "succeeded",
5
+ REJECTED = "rejected",
6
+ NOT_APPLIED = "not_applied"
7
+ }
8
+ //# sourceMappingURL=staff-command-outcome.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staff-command-outcome.enum.d.ts","sourceRoot":"","sources":["../../../src/backoffice/enums/staff-command-outcome.enum.ts"],"names":[],"mappings":"AAIA,oBAAY,6BAA6B;IAEvC,cAAc,mBAAmB;IAEjC,OAAO,YAAY;IAEnB,SAAS,cAAc;IAEvB,QAAQ,aAAa;IAErB,WAAW,gBAAgB;CAC5B"}
@@ -0,0 +1,11 @@
1
+ var BackofficeStaffCommandOutcome = /* @__PURE__ */ ((BackofficeStaffCommandOutcome2) => {
2
+ BackofficeStaffCommandOutcome2["AWAITING_AUDIT"] = "awaiting_audit";
3
+ BackofficeStaffCommandOutcome2["PENDING"] = "pending";
4
+ BackofficeStaffCommandOutcome2["SUCCEEDED"] = "succeeded";
5
+ BackofficeStaffCommandOutcome2["REJECTED"] = "rejected";
6
+ BackofficeStaffCommandOutcome2["NOT_APPLIED"] = "not_applied";
7
+ return BackofficeStaffCommandOutcome2;
8
+ })(BackofficeStaffCommandOutcome || {});
9
+ export {
10
+ BackofficeStaffCommandOutcome
11
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum BackofficeTestMarkSubjectType {
2
+ TEAM = "team",
3
+ USER = "user"
4
+ }
5
+ //# sourceMappingURL=test-mark-subject-type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-mark-subject-type.enum.d.ts","sourceRoot":"","sources":["../../../src/backoffice/enums/test-mark-subject-type.enum.ts"],"names":[],"mappings":"AAGA,oBAAY,6BAA6B;IAEvC,IAAI,SAAS;IAEb,IAAI,SAAS;CACd"}
@@ -0,0 +1,8 @@
1
+ var BackofficeTestMarkSubjectType = /* @__PURE__ */ ((BackofficeTestMarkSubjectType2) => {
2
+ BackofficeTestMarkSubjectType2["TEAM"] = "team";
3
+ BackofficeTestMarkSubjectType2["USER"] = "user";
4
+ return BackofficeTestMarkSubjectType2;
5
+ })(BackofficeTestMarkSubjectType || {});
6
+ export {
7
+ BackofficeTestMarkSubjectType
8
+ };
@@ -0,0 +1,8 @@
1
+ export declare class BackofficeFriendlyFunnelSnapshot {
2
+ id: string;
3
+ snapshotDate: string;
4
+ metric: string;
5
+ value: number;
6
+ computedAt: Date;
7
+ }
8
+ //# sourceMappingURL=backoffice-friendly-funnel-snapshot.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backoffice-friendly-funnel-snapshot.entity.d.ts","sourceRoot":"","sources":["../../../src/backoffice/friendly-funnel-snapshots/backoffice-friendly-funnel-snapshot.entity.ts"],"names":[],"mappings":"AAgBA,qBAIa,gCAAgC;IAM3C,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAOrB,MAAM,EAAE,MAAM,CAAC;IAMf,KAAK,EAAE,MAAM,CAAC;IAQd,UAAU,EAAE,IAAI,CAAC;CAClB"}
@@ -0,0 +1,57 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
10
+ };
11
+ import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";
12
+ let BackofficeFriendlyFunnelSnapshot = class {
13
+ };
14
+ __decorateClass([
15
+ PrimaryGeneratedColumn({
16
+ type: "bigint",
17
+ primaryKeyConstraintName: "PK_backoffice_friendly_funnel_snapshots",
18
+ comment: "Identificador \xFAnico do retrato."
19
+ })
20
+ ], BackofficeFriendlyFunnelSnapshot.prototype, "id", 2);
21
+ __decorateClass([
22
+ Column({
23
+ name: "snapshot_date",
24
+ type: "date",
25
+ comment: "Dia do retrato (YYYY-MM-DD)."
26
+ })
27
+ ], BackofficeFriendlyFunnelSnapshot.prototype, "snapshotDate", 2);
28
+ __decorateClass([
29
+ Column({
30
+ type: "varchar",
31
+ length: 64,
32
+ comment: "Nome da m\xE9trica do funil (lista no backoffice-service)."
33
+ })
34
+ ], BackofficeFriendlyFunnelSnapshot.prototype, "metric", 2);
35
+ __decorateClass([
36
+ Column({
37
+ type: "int",
38
+ comment: "Valor da m\xE9trica no dia."
39
+ })
40
+ ], BackofficeFriendlyFunnelSnapshot.prototype, "value", 2);
41
+ __decorateClass([
42
+ Column({
43
+ name: "computed_at",
44
+ type: "timestamptz",
45
+ default: () => "now()",
46
+ comment: "Quando o valor foi calculado."
47
+ })
48
+ ], BackofficeFriendlyFunnelSnapshot.prototype, "computedAt", 2);
49
+ BackofficeFriendlyFunnelSnapshot = __decorateClass([
50
+ Entity("backoffice_friendly_funnel_snapshots"),
51
+ Index("UQ_backoffice_friendly_funnel_snapshots_day_metric", ["snapshotDate", "metric"], {
52
+ unique: true
53
+ })
54
+ ], BackofficeFriendlyFunnelSnapshot);
55
+ export {
56
+ BackofficeFriendlyFunnelSnapshot
57
+ };
@@ -0,0 +1,2 @@
1
+ export { BackofficeFriendlyFunnelSnapshot } from './backoffice-friendly-funnel-snapshot.entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/backoffice/friendly-funnel-snapshots/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BackofficeFriendlyFunnelSnapshot } from "./backoffice-friendly-funnel-snapshot.entity.js";
2
+ export {
3
+ BackofficeFriendlyFunnelSnapshot
4
+ };
@@ -3,4 +3,9 @@ export * from './crm-message-templates';
3
3
  export { DownloadMetric } from './enums/metric.enum';
4
4
  export { DownloadPlatform } from './enums/platform.enum';
5
5
  export { DownloadSource } from './enums/source.enum';
6
+ export { BackofficeStaffCommandOutcome } from './enums/staff-command-outcome.enum';
7
+ export { BackofficeTestMarkSubjectType } from './enums/test-mark-subject-type.enum';
8
+ export * from './friendly-funnel-snapshots';
9
+ export * from './staff-commands';
10
+ export * from './test-marks';
6
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backoffice/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backoffice/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
@@ -3,7 +3,14 @@ export * from "./crm-message-templates/index.js";
3
3
  import { DownloadMetric } from "./enums/metric.enum.js";
4
4
  import { DownloadPlatform } from "./enums/platform.enum.js";
5
5
  import { DownloadSource } from "./enums/source.enum.js";
6
+ import { BackofficeStaffCommandOutcome } from "./enums/staff-command-outcome.enum.js";
7
+ import { BackofficeTestMarkSubjectType } from "./enums/test-mark-subject-type.enum.js";
8
+ export * from "./friendly-funnel-snapshots/index.js";
9
+ export * from "./staff-commands/index.js";
10
+ export * from "./test-marks/index.js";
6
11
  export {
12
+ BackofficeStaffCommandOutcome,
13
+ BackofficeTestMarkSubjectType,
7
14
  DownloadMetric,
8
15
  DownloadPlatform,
9
16
  DownloadSource
@@ -0,0 +1,21 @@
1
+ import { FriendlyStaffOperation } from '../../friendlies/enums/friendly-staff-operation.enum';
2
+ import { BackofficeStaffCommandOutcome } from '../enums/staff-command-outcome.enum';
3
+ export declare class BackofficeStaffCommand {
4
+ id: string;
5
+ idempotencyKey: string;
6
+ operation: FriendlyStaffOperation;
7
+ targetType: string;
8
+ targetId: string;
9
+ actorStaffId: string;
10
+ actorStaffName: string | null;
11
+ requestBody: Record<string, unknown>;
12
+ serializationVersion: number;
13
+ outcome: BackofficeStaffCommandOutcome;
14
+ responseStatus: number | null;
15
+ responseBody: Record<string, unknown> | null;
16
+ attempts: number;
17
+ lastAttemptAt: Date | null;
18
+ createdAt: Date;
19
+ updatedAt: Date;
20
+ }
21
+ //# sourceMappingURL=backoffice-staff-command.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backoffice-staff-command.entity.d.ts","sourceRoot":"","sources":["../../../src/backoffice/staff-commands/backoffice-staff-command.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAC9F,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AA4BpF,qBAQa,sBAAsB;IAMjC,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAOvB,SAAS,EAAE,sBAAsB,CAAC;IAQlC,UAAU,EAAE,MAAM,CAAC;IAQnB,QAAQ,EAAE,MAAM,CAAC;IAQjB,YAAY,EAAE,MAAM,CAAC;IASrB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAO9B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQrC,oBAAoB,EAAE,MAAM,CAAC;IAO7B,OAAO,EAAE,6BAA6B,CAAC;IAQvC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ9B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAO7C,QAAQ,EAAE,MAAM,CAAC;IAQjB,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAQ3B,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,150 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
10
+ };
11
+ import { Check, Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";
12
+ import { BackofficeStaffCommandOutcome } from "../enums/staff-command-outcome.enum.js";
13
+ const OUTCOMES = Object.values(BackofficeStaffCommandOutcome).map((outcome) => `'${outcome}'`).join(", ");
14
+ let BackofficeStaffCommand = class {
15
+ };
16
+ __decorateClass([
17
+ PrimaryGeneratedColumn({
18
+ type: "bigint",
19
+ primaryKeyConstraintName: "PK_backoffice_staff_commands",
20
+ comment: "Identificador \xFAnico do pedido."
21
+ })
22
+ ], BackofficeStaffCommand.prototype, "id", 2);
23
+ __decorateClass([
24
+ Column({
25
+ name: "idempotency_key",
26
+ type: "uuid",
27
+ comment: "O event_id da auditoria; a mesma chave mandada ao friendlies-service. \xDAnica."
28
+ })
29
+ ], BackofficeStaffCommand.prototype, "idempotencyKey", 2);
30
+ __decorateClass([
31
+ Column({
32
+ type: "varchar",
33
+ length: 40,
34
+ comment: "Opera\xE7\xE3o da equipe (FriendlyStaffOperation)."
35
+ })
36
+ ], BackofficeStaffCommand.prototype, "operation", 2);
37
+ __decorateClass([
38
+ Column({
39
+ name: "target_type",
40
+ type: "varchar",
41
+ length: 32,
42
+ comment: "friendly (amistoso) | friendly_open_challenge (desafio aberto do mural)."
43
+ })
44
+ ], BackofficeStaffCommand.prototype, "targetType", 2);
45
+ __decorateClass([
46
+ Column({
47
+ name: "target_id",
48
+ type: "varchar",
49
+ length: 64,
50
+ comment: "Id do alvo como texto."
51
+ })
52
+ ], BackofficeStaffCommand.prototype, "targetId", 2);
53
+ __decorateClass([
54
+ Column({
55
+ name: "actor_staff_id",
56
+ type: "varchar",
57
+ length: 255,
58
+ comment: "Id (Clerk) de quem da equipe pediu."
59
+ })
60
+ ], BackofficeStaffCommand.prototype, "actorStaffId", 2);
61
+ __decorateClass([
62
+ Column({
63
+ name: "actor_staff_name",
64
+ type: "varchar",
65
+ length: 255,
66
+ nullable: true,
67
+ comment: "Nome de quem da equipe pediu, copiado na hora."
68
+ })
69
+ ], BackofficeStaffCommand.prototype, "actorStaffName", 2);
70
+ __decorateClass([
71
+ Column({
72
+ name: "request_body",
73
+ type: "jsonb",
74
+ comment: "Corpo can\xF4nico enviado ao friendlies-service. Nunca muda."
75
+ })
76
+ ], BackofficeStaffCommand.prototype, "requestBody", 2);
77
+ __decorateClass([
78
+ Column({
79
+ name: "serialization_version",
80
+ type: "smallint",
81
+ default: 1,
82
+ comment: "Vers\xE3o do formato de request_body."
83
+ })
84
+ ], BackofficeStaffCommand.prototype, "serializationVersion", 2);
85
+ __decorateClass([
86
+ Column({
87
+ type: "varchar",
88
+ length: 16,
89
+ comment: "awaiting_audit | pending | succeeded | rejected | not_applied."
90
+ })
91
+ ], BackofficeStaffCommand.prototype, "outcome", 2);
92
+ __decorateClass([
93
+ Column({
94
+ name: "response_status",
95
+ type: "smallint",
96
+ nullable: true,
97
+ comment: "Status HTTP da resposta definitiva, quando houver."
98
+ })
99
+ ], BackofficeStaffCommand.prototype, "responseStatus", 2);
100
+ __decorateClass([
101
+ Column({
102
+ name: "response_body",
103
+ type: "jsonb",
104
+ nullable: true,
105
+ comment: "Corpo da resposta definitiva, quando houver."
106
+ })
107
+ ], BackofficeStaffCommand.prototype, "responseBody", 2);
108
+ __decorateClass([
109
+ Column({
110
+ type: "smallint",
111
+ default: 0,
112
+ comment: "Tentativas de envio (inicial e confer\xEAncia)."
113
+ })
114
+ ], BackofficeStaffCommand.prototype, "attempts", 2);
115
+ __decorateClass([
116
+ Column({
117
+ name: "last_attempt_at",
118
+ type: "timestamptz",
119
+ nullable: true,
120
+ comment: "Quando foi a \xFAltima tentativa de envio."
121
+ })
122
+ ], BackofficeStaffCommand.prototype, "lastAttemptAt", 2);
123
+ __decorateClass([
124
+ Column({
125
+ name: "created_at",
126
+ type: "timestamptz",
127
+ default: () => "now()",
128
+ comment: "Quando o pedido foi gravado."
129
+ })
130
+ ], BackofficeStaffCommand.prototype, "createdAt", 2);
131
+ __decorateClass([
132
+ Column({
133
+ name: "updated_at",
134
+ type: "timestamptz",
135
+ default: () => "now()",
136
+ comment: "Quando o pedido mudou pela \xFAltima vez."
137
+ })
138
+ ], BackofficeStaffCommand.prototype, "updatedAt", 2);
139
+ BackofficeStaffCommand = __decorateClass([
140
+ Entity("backoffice_staff_commands"),
141
+ Index("UQ_backoffice_staff_commands_key", ["idempotencyKey"], { unique: true }),
142
+ Index("IDX_backoffice_staff_commands_pending", ["lastAttemptAt"], {
143
+ where: `"outcome" = 'pending'`
144
+ }),
145
+ Index("IDX_backoffice_staff_commands_target", ["targetType", "targetId", "createdAt"]),
146
+ Check("chk_backoffice_staff_commands_outcome", `"outcome" IN (${OUTCOMES})`)
147
+ ], BackofficeStaffCommand);
148
+ export {
149
+ BackofficeStaffCommand
150
+ };
@@ -0,0 +1,2 @@
1
+ export { BackofficeStaffCommand } from './backoffice-staff-command.entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/backoffice/staff-commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BackofficeStaffCommand } from "./backoffice-staff-command.entity.js";
2
+ export {
3
+ BackofficeStaffCommand
4
+ };
@@ -0,0 +1,15 @@
1
+ import { BackofficeTestMarkSubjectType } from '../enums/test-mark-subject-type.enum';
2
+ export declare class BackofficeTestMark {
3
+ id: string;
4
+ subjectType: BackofficeTestMarkSubjectType;
5
+ subjectId: string;
6
+ reason: string;
7
+ markedByStaffId: string;
8
+ markedByStaffName: string | null;
9
+ markedAt: Date;
10
+ unmarkedAt: Date | null;
11
+ unmarkedByStaffId: string | null;
12
+ unmarkedByStaffName: string | null;
13
+ unmarkReason: string | null;
14
+ }
15
+ //# sourceMappingURL=backoffice-test-mark.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backoffice-test-mark.entity.d.ts","sourceRoot":"","sources":["../../../src/backoffice/test-marks/backoffice-test-mark.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAyBrF,qBAQa,kBAAkB;IAM7B,EAAE,EAAE,MAAM,CAAC;IAQX,WAAW,EAAE,6BAA6B,CAAC;IAQ3C,SAAS,EAAE,MAAM,CAAC;IAMlB,MAAM,EAAE,MAAM,CAAC;IAQf,eAAe,EAAE,MAAM,CAAC;IASxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAQjC,QAAQ,EAAE,IAAI,CAAC;IAQf,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IASxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IASjC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IAQnC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"}
@@ -0,0 +1,116 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
10
+ };
11
+ import { Check, Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";
12
+ import { BackofficeTestMarkSubjectType } from "../enums/test-mark-subject-type.enum.js";
13
+ const SUBJECT_TYPES = Object.values(BackofficeTestMarkSubjectType).map((subjectType) => `'${subjectType}'`).join(", ");
14
+ let BackofficeTestMark = class {
15
+ };
16
+ __decorateClass([
17
+ PrimaryGeneratedColumn({
18
+ type: "bigint",
19
+ primaryKeyConstraintName: "PK_backoffice_test_marks",
20
+ comment: "Identificador \xFAnico da marca."
21
+ })
22
+ ], BackofficeTestMark.prototype, "id", 2);
23
+ __decorateClass([
24
+ Column({
25
+ name: "subject_type",
26
+ type: "varchar",
27
+ length: 16,
28
+ comment: "team (time) | user (pessoa do app)."
29
+ })
30
+ ], BackofficeTestMark.prototype, "subjectType", 2);
31
+ __decorateClass([
32
+ Column({
33
+ name: "subject_id",
34
+ type: "varchar",
35
+ length: 64,
36
+ comment: "Id do time como texto, ou uuid da pessoa (users.id)."
37
+ })
38
+ ], BackofficeTestMark.prototype, "subjectId", 2);
39
+ __decorateClass([
40
+ Column({
41
+ type: "text",
42
+ comment: "Por que \xE9 teste, de 1 a 500 caracteres. Obrigat\xF3rio."
43
+ })
44
+ ], BackofficeTestMark.prototype, "reason", 2);
45
+ __decorateClass([
46
+ Column({
47
+ name: "marked_by_staff_id",
48
+ type: "varchar",
49
+ length: 255,
50
+ comment: "Id (Clerk) de quem da equipe marcou."
51
+ })
52
+ ], BackofficeTestMark.prototype, "markedByStaffId", 2);
53
+ __decorateClass([
54
+ Column({
55
+ name: "marked_by_staff_name",
56
+ type: "varchar",
57
+ length: 255,
58
+ nullable: true,
59
+ comment: "Nome de quem da equipe marcou, copiado na hora."
60
+ })
61
+ ], BackofficeTestMark.prototype, "markedByStaffName", 2);
62
+ __decorateClass([
63
+ Column({
64
+ name: "marked_at",
65
+ type: "timestamptz",
66
+ default: () => "now()",
67
+ comment: "Quando foi marcado."
68
+ })
69
+ ], BackofficeTestMark.prototype, "markedAt", 2);
70
+ __decorateClass([
71
+ Column({
72
+ name: "unmarked_at",
73
+ type: "timestamptz",
74
+ nullable: true,
75
+ comment: "Quando foi desmarcado. Nula = marca ativa."
76
+ })
77
+ ], BackofficeTestMark.prototype, "unmarkedAt", 2);
78
+ __decorateClass([
79
+ Column({
80
+ name: "unmarked_by_staff_id",
81
+ type: "varchar",
82
+ length: 255,
83
+ nullable: true,
84
+ comment: "Id (Clerk) de quem da equipe desmarcou."
85
+ })
86
+ ], BackofficeTestMark.prototype, "unmarkedByStaffId", 2);
87
+ __decorateClass([
88
+ Column({
89
+ name: "unmarked_by_staff_name",
90
+ type: "varchar",
91
+ length: 255,
92
+ nullable: true,
93
+ comment: "Nome de quem da equipe desmarcou, copiado na hora."
94
+ })
95
+ ], BackofficeTestMark.prototype, "unmarkedByStaffName", 2);
96
+ __decorateClass([
97
+ Column({
98
+ name: "unmark_reason",
99
+ type: "text",
100
+ nullable: true,
101
+ comment: "Por que deixou de ser teste."
102
+ })
103
+ ], BackofficeTestMark.prototype, "unmarkReason", 2);
104
+ BackofficeTestMark = __decorateClass([
105
+ Entity("backoffice_test_marks"),
106
+ Index("UQ_backoffice_test_marks_active", ["subjectType", "subjectId"], {
107
+ unique: true,
108
+ where: `"unmarked_at" IS NULL`
109
+ }),
110
+ Index("IDX_backoffice_test_marks_subject", ["subjectType", "subjectId"]),
111
+ Check("chk_backoffice_test_marks_subject_type", `"subject_type" IN (${SUBJECT_TYPES})`),
112
+ Check("chk_backoffice_test_marks_reason_length", `char_length(reason) BETWEEN 1 AND 500`)
113
+ ], BackofficeTestMark);
114
+ export {
115
+ BackofficeTestMark
116
+ };
@@ -0,0 +1,2 @@
1
+ export { BackofficeTestMark } from './backoffice-test-mark.entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/backoffice/test-marks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BackofficeTestMark } from "./backoffice-test-mark.entity.js";
2
+ export {
3
+ BackofficeTestMark
4
+ };
@@ -5,7 +5,7 @@ import { Coupon, CouponUsage } from '../coupons';
5
5
  import { Address, City, Facility, FacilityImage, FacilityOwner, Field, FieldImage } from '../facilities';
6
6
  import { FeedActivity, FeedActivityReaction, FeedActivitySubject, FeedOutbox } from '../feed';
7
7
  import { FinanceAuditEvent, FinanceEntry, FinanceEntryItem, FinanceLedger } from '../finance';
8
- import { FriendlyBoardPreference, FriendlyChallenge, FriendlyChallengeExtra, FriendlyMatch, FriendlyMatchAttendance, FriendlyMatchExtra, FriendlyMatchGoal, FriendlyMatchMvp, FriendlyMvpVote, FriendlyRequest, FriendlyScoreEvent } from '../friendlies';
8
+ import { FriendlyBoardPreference, FriendlyChallenge, FriendlyChallengeExtra, FriendlyHistory, FriendlyMatch, FriendlyMatchAttendance, FriendlyMatchExtra, FriendlyMatchGoal, FriendlyMatchMvp, FriendlyMvpVote, FriendlyOpenChallengeExtra, FriendlyRequest, FriendlyScoreEvent, FriendlyStaffCommand, FriendlyStaffCommandEffect } from '../friendlies';
9
9
  import { TeamPlayerMergeHistory } from '../history-logs';
10
10
  import { Notification, NotificationDelivery, NotificationDispatchLog, PushDeviceToken, UserNotificationPreference } from '../notifications';
11
11
  import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
@@ -14,5 +14,5 @@ import { Promotion, PromotionAdvertiser, PromotionContact, PromotionCreative, Pr
14
14
  import { PlayerTeam, Team, TeamAccessCode, TeamFollow, TeamJoinRequest, TeamKit, TeamModality, TeamSponsor, TeamTrophy } from '../teams';
15
15
  import { CategoryBroadcastSetting, Referee, RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchKit, TournamentMatchObservation, TournamentMatchPlayerNumber, TournamentMatchReferee, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPointsAdjustment, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentRound, TournamentTeam, TournamentTeamInvitation, TournamentTeamMemberNote, TournamentTieBreakConfig } from '../tournaments';
16
16
  import { UserDomainEvent, UserEventView } from '../user-events';
17
- export declare const DATABASE_ENTITIES: (typeof PasswordReset | typeof Notification | typeof User | typeof NotificationDelivery | typeof NotificationDispatchLog | typeof PushDeviceToken | typeof UserNotificationPreference | typeof TeamPlayerMergeHistory | typeof Team | typeof PlayerTeam | typeof Player | typeof TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentMatchKit | typeof TournamentMatchSubstitution | typeof TournamentMatchTimeout | typeof TournamentPenaltyShootout | typeof CategoryBroadcastSetting | typeof Tournament | typeof TournamentMatchReferee | typeof Referee | typeof RegulationExtraction | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentCreationDraft | typeof City | typeof FacilityImage | typeof Facility | typeof FacilityOwner | typeof Field | typeof FieldImage | typeof TournamentFacility | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchObservation | typeof TournamentMatchPlayerNumber | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPointsAdjustment | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentRound | typeof TournamentTeamInvitation | typeof TournamentTeamMemberNote | typeof TournamentTieBreakConfig | typeof Address | typeof OrganizationUserBillingInfo | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof TeamKit | typeof TeamModality | typeof TeamSponsor | typeof TeamFollow | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserLocality | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionGrant | typeof BillingSubscription | typeof BillingSubscriptionItem | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingMatchUsage | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivityReaction | typeof FeedActivity | typeof FeedActivitySubject | typeof FeedOutbox | typeof FinanceAuditEvent | typeof FinanceEntryItem | typeof FinanceEntry | typeof FinanceLedger | typeof FriendlyBoardPreference | typeof FriendlyMatchAttendance | typeof FriendlyMatch | typeof FriendlyMatchExtra | typeof FriendlyMatchGoal | typeof FriendlyMatchMvp | typeof FriendlyMvpVote | typeof FriendlyScoreEvent | typeof FriendlyChallenge | typeof FriendlyChallengeExtra | typeof FriendlyRequest | typeof PromotionContact | typeof Promotion | typeof PromotionCreative | typeof PromotionTarget | typeof PromotionAdvertiser | typeof PromotionEvent | typeof PromotionUserState | typeof UserDomainEvent | typeof UserEventView)[];
17
+ export declare const DATABASE_ENTITIES: (typeof PasswordReset | typeof Notification | typeof User | typeof NotificationDelivery | typeof NotificationDispatchLog | typeof PushDeviceToken | typeof UserNotificationPreference | typeof TeamPlayerMergeHistory | typeof Team | typeof PlayerTeam | typeof Player | typeof TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentMatchKit | typeof TournamentMatchSubstitution | typeof TournamentMatchTimeout | typeof TournamentPenaltyShootout | typeof CategoryBroadcastSetting | typeof Tournament | typeof TournamentMatchReferee | typeof Referee | typeof RegulationExtraction | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentCreationDraft | typeof City | typeof FacilityImage | typeof Facility | typeof FacilityOwner | typeof Field | typeof FieldImage | typeof TournamentFacility | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchObservation | typeof TournamentMatchPlayerNumber | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPointsAdjustment | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentRound | typeof TournamentTeamInvitation | typeof TournamentTeamMemberNote | typeof TournamentTieBreakConfig | typeof Address | typeof OrganizationUserBillingInfo | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof TeamKit | typeof TeamModality | typeof TeamSponsor | typeof TeamFollow | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserLocality | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionGrant | typeof BillingSubscription | typeof BillingSubscriptionItem | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingMatchUsage | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivityReaction | typeof FeedActivity | typeof FeedActivitySubject | typeof FeedOutbox | typeof FinanceAuditEvent | typeof FinanceEntryItem | typeof FinanceEntry | typeof FinanceLedger | typeof FriendlyBoardPreference | typeof FriendlyMatchAttendance | typeof FriendlyMatch | typeof FriendlyMatchExtra | typeof FriendlyMatchGoal | typeof FriendlyMatchMvp | typeof FriendlyMvpVote | typeof FriendlyOpenChallengeExtra | typeof FriendlyChallenge | typeof FriendlyStaffCommand | typeof FriendlyScoreEvent | typeof FriendlyChallengeExtra | typeof FriendlyHistory | typeof FriendlyRequest | typeof FriendlyStaffCommandEffect | typeof PromotionContact | typeof Promotion | typeof PromotionCreative | typeof PromotionTarget | typeof PromotionAdvertiser | typeof PromotionEvent | typeof PromotionUserState | typeof UserDomainEvent | typeof UserEventView)[];
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EACL,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC9F,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EAEf,eAAe,EACf,kBAAkB,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,0BAA0B,EAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,kBAAkB,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,UAAU,EACV,IAAI,EACJ,cAAc,EACd,UAAU,EACV,eAAe,EACf,OAAO,EACP,YAAY,EACZ,WAAW,EACX,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,wBAAwB,EACxB,OAAO,EACP,oBAAoB,EACpB,UAAU,EACV,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAC7B,iCAAiC,EAEjC,+BAA+B,EAC/B,eAAe,EAEf,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,wyGAiI7B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"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"}
@@ -43,6 +43,7 @@ import {
43
43
  FriendlyBoardPreference,
44
44
  FriendlyChallenge,
45
45
  FriendlyChallengeExtra,
46
+ FriendlyHistory,
46
47
  FriendlyMatch,
47
48
  FriendlyMatchAttendance,
48
49
  FriendlyMatchExtra,
@@ -50,8 +51,11 @@ import {
50
51
  FriendlyMatchMvp,
51
52
  FriendlyMvpVote,
52
53
  FriendlyOpenChallenge,
54
+ FriendlyOpenChallengeExtra,
53
55
  FriendlyRequest,
54
- FriendlyScoreEvent
56
+ FriendlyScoreEvent,
57
+ FriendlyStaffCommand,
58
+ FriendlyStaffCommandEffect
55
59
  } from "../friendlies/index.js";
56
60
  import { TeamPlayerMergeHistory } from "../history-logs/index.js";
57
61
  import {
@@ -260,7 +264,11 @@ const DATABASE_ENTITIES = [
260
264
  FriendlyBoardPreference,
261
265
  FriendlyMatchAttendance,
262
266
  FriendlyMvpVote,
263
- FriendlyMatchMvp
267
+ FriendlyMatchMvp,
268
+ FriendlyStaffCommand,
269
+ FriendlyStaffCommandEffect,
270
+ FriendlyHistory,
271
+ FriendlyOpenChallengeExtra
264
272
  ];
265
273
  export {
266
274
  DATABASE_ENTITIES
@@ -0,0 +1,6 @@
1
+ export declare enum FriendlyHistoryActorType {
2
+ APP_USER = "app_user",
3
+ STAFF = "staff",
4
+ SYSTEM = "system"
5
+ }
6
+ //# sourceMappingURL=friendly-history-actor-type.enum.d.ts.map