@natrave/shared-entities 9.12.0 → 9.13.1
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.
- package/dist/central-auth/enums/organization-invitation-status.enum.d.ts +6 -0
- package/dist/central-auth/enums/organization-invitation-status.enum.d.ts.map +1 -0
- package/dist/central-auth/enums/organization-invitation-status.enum.js +9 -0
- package/dist/central-auth/enums/organization-invitation-token-channel.enum.d.ts +5 -0
- package/dist/central-auth/enums/organization-invitation-token-channel.enum.d.ts.map +1 -0
- package/dist/central-auth/enums/organization-invitation-token-channel.enum.js +8 -0
- package/dist/central-auth/index.d.ts +5 -0
- package/dist/central-auth/index.d.ts.map +1 -1
- package/dist/central-auth/index.js +7 -0
- package/dist/central-auth/organization-invitation-scopes/index.d.ts +2 -0
- package/dist/central-auth/organization-invitation-scopes/index.d.ts.map +1 -0
- package/dist/central-auth/organization-invitation-scopes/index.js +4 -0
- package/dist/central-auth/organization-invitation-scopes/organization-invitation-scope.entity.d.ts +11 -0
- package/dist/central-auth/organization-invitation-scopes/organization-invitation-scope.entity.d.ts.map +1 -0
- package/dist/central-auth/organization-invitation-scopes/organization-invitation-scope.entity.js +75 -0
- package/dist/central-auth/organization-invitation-tokens/index.d.ts +2 -0
- package/dist/central-auth/organization-invitation-tokens/index.d.ts.map +1 -0
- package/dist/central-auth/organization-invitation-tokens/index.js +4 -0
- package/dist/central-auth/organization-invitation-tokens/organization-invitation-token.entity.d.ts +12 -0
- package/dist/central-auth/organization-invitation-tokens/organization-invitation-token.entity.d.ts.map +1 -0
- package/dist/central-auth/organization-invitation-tokens/organization-invitation-token.entity.js +82 -0
- package/dist/central-auth/organization-invitations/index.d.ts +2 -0
- package/dist/central-auth/organization-invitations/index.d.ts.map +1 -0
- package/dist/central-auth/organization-invitations/index.js +4 -0
- package/dist/central-auth/organization-invitations/organization-invitation.entity.d.ts +29 -0
- package/dist/central-auth/organization-invitations/organization-invitation.entity.d.ts.map +1 -0
- package/dist/central-auth/organization-invitations/organization-invitation.entity.js +190 -0
- package/dist/database-entities/index.d.ts +2 -2
- package/dist/database-entities/index.d.ts.map +1 -1
- package/dist/database-entities/index.js +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-invitation-status.enum.d.ts","sourceRoot":"","sources":["../../../src/central-auth/enums/organization-invitation-status.enum.ts"],"names":[],"mappings":"AAMA,oBAAY,4BAA4B;IAEtC,OAAO,YAAY;IAEnB,QAAQ,aAAa;IAErB,QAAQ,aAAa;CACtB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var OrganizationInvitationStatus = /* @__PURE__ */ ((OrganizationInvitationStatus2) => {
|
|
2
|
+
OrganizationInvitationStatus2["PENDING"] = "PENDING";
|
|
3
|
+
OrganizationInvitationStatus2["ACCEPTED"] = "ACCEPTED";
|
|
4
|
+
OrganizationInvitationStatus2["CANCELED"] = "CANCELED";
|
|
5
|
+
return OrganizationInvitationStatus2;
|
|
6
|
+
})(OrganizationInvitationStatus || {});
|
|
7
|
+
export {
|
|
8
|
+
OrganizationInvitationStatus
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-invitation-token-channel.enum.d.ts","sourceRoot":"","sources":["../../../src/central-auth/enums/organization-invitation-token-channel.enum.ts"],"names":[],"mappings":"AAKA,oBAAY,kCAAkC;IAE5C,KAAK,UAAU;IAEf,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var OrganizationInvitationTokenChannel = /* @__PURE__ */ ((OrganizationInvitationTokenChannel2) => {
|
|
2
|
+
OrganizationInvitationTokenChannel2["EMAIL"] = "EMAIL";
|
|
3
|
+
OrganizationInvitationTokenChannel2["LINK"] = "LINK";
|
|
4
|
+
return OrganizationInvitationTokenChannel2;
|
|
5
|
+
})(OrganizationInvitationTokenChannel || {});
|
|
6
|
+
export {
|
|
7
|
+
OrganizationInvitationTokenChannel
|
|
8
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './access-audit-events';
|
|
2
2
|
export { AccessAuditActorType } from './enums/access-audit-actor-type.enum';
|
|
3
|
+
export { OrganizationInvitationStatus } from './enums/organization-invitation-status.enum';
|
|
4
|
+
export { OrganizationInvitationTokenChannel } from './enums/organization-invitation-token-channel.enum';
|
|
3
5
|
export { OrganizationMembershipRole } from './enums/organization-membership-role.enum';
|
|
4
6
|
export { OrganizationMembershipScopeType } from './enums/organization-membership-scope-type.enum';
|
|
5
7
|
export { OrganizationMembershipStatus } from './enums/organization-membership-status.enum';
|
|
@@ -7,6 +9,9 @@ export { OrganizationStatus } from './enums/organization-status.enum';
|
|
|
7
9
|
export { OrganizationType } from './enums/organization-type.enum';
|
|
8
10
|
export { OrganizationUserAuthProvider } from './enums/organization-user-auth-provider.enum';
|
|
9
11
|
export { OrganizationUserStatus } from './enums/organization-user-status.enum';
|
|
12
|
+
export * from './organization-invitation-scopes';
|
|
13
|
+
export * from './organization-invitation-tokens';
|
|
14
|
+
export * from './organization-invitations';
|
|
10
15
|
export * from './organization-membership-scopes';
|
|
11
16
|
export * from './organization-memberships';
|
|
12
17
|
export * from './organization-user-billing-infos';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/central-auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,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,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,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,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,oDAAoD,CAAC;AACxG,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,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,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./access-audit-events/index.js";
|
|
2
2
|
import { AccessAuditActorType } from "./enums/access-audit-actor-type.enum.js";
|
|
3
|
+
import { OrganizationInvitationStatus } from "./enums/organization-invitation-status.enum.js";
|
|
4
|
+
import { OrganizationInvitationTokenChannel } from "./enums/organization-invitation-token-channel.enum.js";
|
|
3
5
|
import { OrganizationMembershipRole } from "./enums/organization-membership-role.enum.js";
|
|
4
6
|
import { OrganizationMembershipScopeType } from "./enums/organization-membership-scope-type.enum.js";
|
|
5
7
|
import { OrganizationMembershipStatus } from "./enums/organization-membership-status.enum.js";
|
|
@@ -7,6 +9,9 @@ import { OrganizationStatus } from "./enums/organization-status.enum.js";
|
|
|
7
9
|
import { OrganizationType } from "./enums/organization-type.enum.js";
|
|
8
10
|
import { OrganizationUserAuthProvider } from "./enums/organization-user-auth-provider.enum.js";
|
|
9
11
|
import { OrganizationUserStatus } from "./enums/organization-user-status.enum.js";
|
|
12
|
+
export * from "./organization-invitation-scopes/index.js";
|
|
13
|
+
export * from "./organization-invitation-tokens/index.js";
|
|
14
|
+
export * from "./organization-invitations/index.js";
|
|
10
15
|
export * from "./organization-membership-scopes/index.js";
|
|
11
16
|
export * from "./organization-memberships/index.js";
|
|
12
17
|
export * from "./organization-user-billing-infos/index.js";
|
|
@@ -15,6 +20,8 @@ export * from "./organizations/index.js";
|
|
|
15
20
|
export * from "./phone-numbers/index.js";
|
|
16
21
|
export {
|
|
17
22
|
AccessAuditActorType,
|
|
23
|
+
OrganizationInvitationStatus,
|
|
24
|
+
OrganizationInvitationTokenChannel,
|
|
18
25
|
OrganizationMembershipRole,
|
|
19
26
|
OrganizationMembershipScopeType,
|
|
20
27
|
OrganizationMembershipStatus,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-invitation-scopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC"}
|
package/dist/central-auth/organization-invitation-scopes/organization-invitation-scope.entity.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OrganizationMembershipScopeType } from '../enums/organization-membership-scope-type.enum';
|
|
2
|
+
import { OrganizationInvitation } from '../organization-invitations/organization-invitation.entity';
|
|
3
|
+
export declare class OrganizationInvitationScope {
|
|
4
|
+
id: number;
|
|
5
|
+
invitationId: number;
|
|
6
|
+
scopeType: OrganizationMembershipScopeType;
|
|
7
|
+
scopeId: number;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
invitation: OrganizationInvitation;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=organization-invitation-scope.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-invitation-scope.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-invitation-scopes/organization-invitation-scope.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AAiBpG,qBAKa,2BAA2B;IAKtC,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAQrB,SAAS,EAAE,+BAA+B,CAAC;IAO3C,OAAO,EAAE,MAAM,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,sBAAsB,CAAC;CACpC"}
|
package/dist/central-auth/organization-invitation-scopes/organization-invitation-scope.entity.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
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 {
|
|
12
|
+
Check,
|
|
13
|
+
Column,
|
|
14
|
+
CreateDateColumn,
|
|
15
|
+
Entity,
|
|
16
|
+
Index,
|
|
17
|
+
JoinColumn,
|
|
18
|
+
ManyToOne,
|
|
19
|
+
PrimaryGeneratedColumn
|
|
20
|
+
} from "typeorm";
|
|
21
|
+
import { OrganizationMembershipScopeType } from "../enums/organization-membership-scope-type.enum.js";
|
|
22
|
+
import { OrganizationInvitation } from "../organization-invitations/organization-invitation.entity.js";
|
|
23
|
+
const SCOPE_TYPES = Object.values(OrganizationMembershipScopeType).map((value) => `'${value}'`).join(", ");
|
|
24
|
+
let OrganizationInvitationScope = class {
|
|
25
|
+
};
|
|
26
|
+
__decorateClass([
|
|
27
|
+
PrimaryGeneratedColumn({
|
|
28
|
+
primaryKeyConstraintName: "PK_organization_invitation_scopes",
|
|
29
|
+
comment: "Identificador do escopo do convite."
|
|
30
|
+
})
|
|
31
|
+
], OrganizationInvitationScope.prototype, "id", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({
|
|
34
|
+
name: "invitation_id",
|
|
35
|
+
type: "int",
|
|
36
|
+
comment: "FK organization_invitations.id (CASCADE): o convite."
|
|
37
|
+
})
|
|
38
|
+
], OrganizationInvitationScope.prototype, "invitationId", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
Column({
|
|
41
|
+
name: "scope_type",
|
|
42
|
+
type: "varchar",
|
|
43
|
+
length: 20,
|
|
44
|
+
comment: "CATEGORY_GROUP (campeonato), TOURNAMENT (categoria) ou MATCH (partida)."
|
|
45
|
+
})
|
|
46
|
+
], OrganizationInvitationScope.prototype, "scopeType", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
Column({
|
|
49
|
+
name: "scope_id",
|
|
50
|
+
type: "int",
|
|
51
|
+
comment: "Id do campeonato, da categoria ou da partida, conforme scope_type."
|
|
52
|
+
})
|
|
53
|
+
], OrganizationInvitationScope.prototype, "scopeId", 2);
|
|
54
|
+
__decorateClass([
|
|
55
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz", comment: "Cria\xE7\xE3o do escopo." })
|
|
56
|
+
], OrganizationInvitationScope.prototype, "createdAt", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
ManyToOne(() => OrganizationInvitation, (invitation) => invitation.scopes, {
|
|
59
|
+
onDelete: "CASCADE"
|
|
60
|
+
}),
|
|
61
|
+
JoinColumn({
|
|
62
|
+
name: "invitation_id",
|
|
63
|
+
foreignKeyConstraintName: "FK_organization_invitation_scopes_invitation"
|
|
64
|
+
})
|
|
65
|
+
], OrganizationInvitationScope.prototype, "invitation", 2);
|
|
66
|
+
OrganizationInvitationScope = __decorateClass([
|
|
67
|
+
Entity("organization_invitation_scopes"),
|
|
68
|
+
Index("UQ_organization_invitation_scopes_scope", ["invitationId", "scopeType", "scopeId"], {
|
|
69
|
+
unique: true
|
|
70
|
+
}),
|
|
71
|
+
Check("CHK_organization_invitation_scopes_type", `"scope_type" IN (${SCOPE_TYPES})`)
|
|
72
|
+
], OrganizationInvitationScope);
|
|
73
|
+
export {
|
|
74
|
+
OrganizationInvitationScope
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-invitation-tokens/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC"}
|
package/dist/central-auth/organization-invitation-tokens/organization-invitation-token.entity.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OrganizationInvitationTokenChannel } from '../enums/organization-invitation-token-channel.enum';
|
|
2
|
+
import { OrganizationInvitation } from '../organization-invitations/organization-invitation.entity';
|
|
3
|
+
export declare class OrganizationInvitationToken {
|
|
4
|
+
id: number;
|
|
5
|
+
invitationId: number;
|
|
6
|
+
tokenHash: string;
|
|
7
|
+
channel: OrganizationInvitationTokenChannel;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
revokedAt: Date | null;
|
|
10
|
+
invitation: OrganizationInvitation;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=organization-invitation-token.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-invitation-token.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-invitation-tokens/organization-invitation-token.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,kCAAkC,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AAiBpG,qBAIa,2BAA2B;IAKtC,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAQrB,SAAS,EAAE,MAAM,CAAC;IAOlB,OAAO,EAAE,kCAAkC,CAAC;IAG5C,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IASvB,UAAU,EAAE,sBAAsB,CAAC;CACpC"}
|
package/dist/central-auth/organization-invitation-tokens/organization-invitation-token.entity.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
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 {
|
|
12
|
+
Check,
|
|
13
|
+
Column,
|
|
14
|
+
CreateDateColumn,
|
|
15
|
+
Entity,
|
|
16
|
+
Index,
|
|
17
|
+
JoinColumn,
|
|
18
|
+
ManyToOne,
|
|
19
|
+
PrimaryGeneratedColumn
|
|
20
|
+
} from "typeorm";
|
|
21
|
+
import { OrganizationInvitationTokenChannel } from "../enums/organization-invitation-token-channel.enum.js";
|
|
22
|
+
import { OrganizationInvitation } from "../organization-invitations/organization-invitation.entity.js";
|
|
23
|
+
const CHANNELS = Object.values(OrganizationInvitationTokenChannel).map((value) => `'${value}'`).join(", ");
|
|
24
|
+
let OrganizationInvitationToken = class {
|
|
25
|
+
};
|
|
26
|
+
__decorateClass([
|
|
27
|
+
PrimaryGeneratedColumn({
|
|
28
|
+
primaryKeyConstraintName: "PK_organization_invitation_tokens",
|
|
29
|
+
comment: "Identificador do token."
|
|
30
|
+
})
|
|
31
|
+
], OrganizationInvitationToken.prototype, "id", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({
|
|
34
|
+
name: "invitation_id",
|
|
35
|
+
type: "int",
|
|
36
|
+
comment: "FK organization_invitations.id (CASCADE): o convite."
|
|
37
|
+
})
|
|
38
|
+
], OrganizationInvitationToken.prototype, "invitationId", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
Column({
|
|
41
|
+
name: "token_hash",
|
|
42
|
+
type: "char",
|
|
43
|
+
length: 64,
|
|
44
|
+
comment: "Hash SHA-256 (hexadecimal) do token do link. O token em si nunca \xE9 guardado."
|
|
45
|
+
})
|
|
46
|
+
], OrganizationInvitationToken.prototype, "tokenHash", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
Column({
|
|
49
|
+
type: "varchar",
|
|
50
|
+
length: 10,
|
|
51
|
+
comment: "Por onde o link saiu: EMAIL (enviado por e-mail) ou LINK (copiado pelo organizador)."
|
|
52
|
+
})
|
|
53
|
+
], OrganizationInvitationToken.prototype, "channel", 2);
|
|
54
|
+
__decorateClass([
|
|
55
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz", comment: "Cria\xE7\xE3o do token." })
|
|
56
|
+
], OrganizationInvitationToken.prototype, "createdAt", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
Column({
|
|
59
|
+
name: "revoked_at",
|
|
60
|
+
type: "timestamptz",
|
|
61
|
+
nullable: true,
|
|
62
|
+
comment: "Quando o link deixou de valer (convite cancelado); nulo enquanto vale."
|
|
63
|
+
})
|
|
64
|
+
], OrganizationInvitationToken.prototype, "revokedAt", 2);
|
|
65
|
+
__decorateClass([
|
|
66
|
+
ManyToOne(() => OrganizationInvitation, (invitation) => invitation.tokens, {
|
|
67
|
+
onDelete: "CASCADE"
|
|
68
|
+
}),
|
|
69
|
+
JoinColumn({
|
|
70
|
+
name: "invitation_id",
|
|
71
|
+
foreignKeyConstraintName: "FK_organization_invitation_tokens_invitation"
|
|
72
|
+
})
|
|
73
|
+
], OrganizationInvitationToken.prototype, "invitation", 2);
|
|
74
|
+
OrganizationInvitationToken = __decorateClass([
|
|
75
|
+
Entity("organization_invitation_tokens"),
|
|
76
|
+
Index("UQ_organization_invitation_tokens_hash", ["tokenHash"], { unique: true }),
|
|
77
|
+
Index("IDX_organization_invitation_tokens_invitation", ["invitationId"]),
|
|
78
|
+
Check("CHK_organization_invitation_tokens_channel", `"channel" IN (${CHANNELS})`)
|
|
79
|
+
], OrganizationInvitationToken);
|
|
80
|
+
export {
|
|
81
|
+
OrganizationInvitationToken
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-invitations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OrganizationInvitationStatus } from '../enums/organization-invitation-status.enum';
|
|
2
|
+
import { OrganizationMembershipRole } from '../enums/organization-membership-role.enum';
|
|
3
|
+
import { OrganizationInvitationScope } from '../organization-invitation-scopes/organization-invitation-scope.entity';
|
|
4
|
+
import { OrganizationInvitationToken } from '../organization-invitation-tokens/organization-invitation-token.entity';
|
|
5
|
+
import { OrganizationUser } from '../organization-users/organization-user.entity';
|
|
6
|
+
import { Organization } from '../organizations/organization.entity';
|
|
7
|
+
export declare class OrganizationInvitation {
|
|
8
|
+
id: number;
|
|
9
|
+
organizationId: number;
|
|
10
|
+
email: string;
|
|
11
|
+
name: string | null;
|
|
12
|
+
role: OrganizationMembershipRole;
|
|
13
|
+
status: OrganizationInvitationStatus;
|
|
14
|
+
invitedByOrganizationUserId: number | null;
|
|
15
|
+
acceptedByOrganizationUserId: number | null;
|
|
16
|
+
acceptedAt: Date | null;
|
|
17
|
+
canceledAt: Date | null;
|
|
18
|
+
expiresAt: Date;
|
|
19
|
+
lastSentAt: Date;
|
|
20
|
+
sendCount: number;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
organization: Organization;
|
|
24
|
+
invitedBy: OrganizationUser | null;
|
|
25
|
+
acceptedBy: OrganizationUser | null;
|
|
26
|
+
scopes: OrganizationInvitationScope[];
|
|
27
|
+
tokens: OrganizationInvitationToken[];
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=organization-invitation.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-invitation.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-invitations/organization-invitation.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AACrH,OAAO,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AACrH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAgCpE,qBAoBa,sBAAsB;IAKjC,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAOvB,KAAK,EAAE,MAAM,CAAC;IAQd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAQpB,IAAI,EAAE,0BAA0B,CAAC;IAQjC,MAAM,EAAE,4BAA4B,CAAC;IAQrC,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ3C,4BAA4B,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ5C,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IAQxB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IAOxB,SAAS,EAAE,IAAI,CAAC;IAOhB,UAAU,EAAE,IAAI,CAAC;IAQjB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAOhB,YAAY,EAAE,YAAY,CAAC;IAO3B,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAOnC,UAAU,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAGpC,MAAM,EAAE,2BAA2B,EAAE,CAAC;IAGtC,MAAM,EAAE,2BAA2B,EAAE,CAAC;CACvC"}
|
|
@@ -0,0 +1,190 @@
|
|
|
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 {
|
|
12
|
+
Check,
|
|
13
|
+
Column,
|
|
14
|
+
CreateDateColumn,
|
|
15
|
+
Entity,
|
|
16
|
+
Index,
|
|
17
|
+
JoinColumn,
|
|
18
|
+
ManyToOne,
|
|
19
|
+
OneToMany,
|
|
20
|
+
PrimaryGeneratedColumn,
|
|
21
|
+
UpdateDateColumn
|
|
22
|
+
} from "typeorm";
|
|
23
|
+
import { OrganizationInvitationStatus } from "../enums/organization-invitation-status.enum.js";
|
|
24
|
+
import { OrganizationMembershipRole } from "../enums/organization-membership-role.enum.js";
|
|
25
|
+
import { OrganizationInvitationScope } from "../organization-invitation-scopes/organization-invitation-scope.entity.js";
|
|
26
|
+
import { OrganizationInvitationToken } from "../organization-invitation-tokens/organization-invitation-token.entity.js";
|
|
27
|
+
import { OrganizationUser } from "../organization-users/organization-user.entity.js";
|
|
28
|
+
import { Organization } from "../organizations/organization.entity.js";
|
|
29
|
+
const quoted = (values) => values.map((value) => `'${value}'`).join(", ");
|
|
30
|
+
const ROLES = quoted(Object.values(OrganizationMembershipRole));
|
|
31
|
+
const STATUSES = quoted(Object.values(OrganizationInvitationStatus));
|
|
32
|
+
let OrganizationInvitation = class {
|
|
33
|
+
};
|
|
34
|
+
__decorateClass([
|
|
35
|
+
PrimaryGeneratedColumn({
|
|
36
|
+
primaryKeyConstraintName: "PK_organization_invitations",
|
|
37
|
+
comment: "Identificador do convite."
|
|
38
|
+
})
|
|
39
|
+
], OrganizationInvitation.prototype, "id", 2);
|
|
40
|
+
__decorateClass([
|
|
41
|
+
Column({
|
|
42
|
+
name: "organization_id",
|
|
43
|
+
type: "int",
|
|
44
|
+
comment: "FK organizations.id (CASCADE): a organiza\xE7\xE3o que convida."
|
|
45
|
+
})
|
|
46
|
+
], OrganizationInvitation.prototype, "organizationId", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
Column({
|
|
49
|
+
type: "varchar",
|
|
50
|
+
length: 255,
|
|
51
|
+
comment: "E-mail da pessoa convidada, sempre em min\xFAsculas."
|
|
52
|
+
})
|
|
53
|
+
], OrganizationInvitation.prototype, "email", 2);
|
|
54
|
+
__decorateClass([
|
|
55
|
+
Column({
|
|
56
|
+
type: "varchar",
|
|
57
|
+
length: 120,
|
|
58
|
+
nullable: true,
|
|
59
|
+
comment: "Nome da pessoa convidada, se o organizador informou."
|
|
60
|
+
})
|
|
61
|
+
], OrganizationInvitation.prototype, "name", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
Column({
|
|
64
|
+
type: "varchar",
|
|
65
|
+
length: 16,
|
|
66
|
+
comment: "Perfil que a pessoa vai ter: ADMIN, COORDINATION (Coordena\xE7\xE3o) ou SCOREKEEPER (Mes\xE1rio)."
|
|
67
|
+
})
|
|
68
|
+
], OrganizationInvitation.prototype, "role", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
Column({
|
|
71
|
+
type: "varchar",
|
|
72
|
+
length: 20,
|
|
73
|
+
default: OrganizationInvitationStatus.PENDING,
|
|
74
|
+
comment: "PENDING (esperando), ACCEPTED (aceito) ou CANCELED (cancelado pela organiza\xE7\xE3o)."
|
|
75
|
+
})
|
|
76
|
+
], OrganizationInvitation.prototype, "status", 2);
|
|
77
|
+
__decorateClass([
|
|
78
|
+
Column({
|
|
79
|
+
name: "invited_by_organization_user_id",
|
|
80
|
+
type: "int",
|
|
81
|
+
nullable: true,
|
|
82
|
+
comment: "FK organization_users.id (SET NULL): quem convidou. Nulo se a conta foi apagada."
|
|
83
|
+
})
|
|
84
|
+
], OrganizationInvitation.prototype, "invitedByOrganizationUserId", 2);
|
|
85
|
+
__decorateClass([
|
|
86
|
+
Column({
|
|
87
|
+
name: "accepted_by_organization_user_id",
|
|
88
|
+
type: "int",
|
|
89
|
+
nullable: true,
|
|
90
|
+
comment: "FK organization_users.id (SET NULL): a conta que aceitou. Nulo enquanto n\xE3o aceita."
|
|
91
|
+
})
|
|
92
|
+
], OrganizationInvitation.prototype, "acceptedByOrganizationUserId", 2);
|
|
93
|
+
__decorateClass([
|
|
94
|
+
Column({
|
|
95
|
+
name: "accepted_at",
|
|
96
|
+
type: "timestamptz",
|
|
97
|
+
nullable: true,
|
|
98
|
+
comment: "Quando a pessoa aceitou; nulo enquanto n\xE3o aceita."
|
|
99
|
+
})
|
|
100
|
+
], OrganizationInvitation.prototype, "acceptedAt", 2);
|
|
101
|
+
__decorateClass([
|
|
102
|
+
Column({
|
|
103
|
+
name: "canceled_at",
|
|
104
|
+
type: "timestamptz",
|
|
105
|
+
nullable: true,
|
|
106
|
+
comment: "Quando a organiza\xE7\xE3o cancelou; nulo se n\xE3o foi cancelado."
|
|
107
|
+
})
|
|
108
|
+
], OrganizationInvitation.prototype, "canceledAt", 2);
|
|
109
|
+
__decorateClass([
|
|
110
|
+
Column({
|
|
111
|
+
name: "expires_at",
|
|
112
|
+
type: "timestamptz",
|
|
113
|
+
comment: "At\xE9 quando o convite vale: 7 dias depois do \xFAltimo e-mail ou link copiado."
|
|
114
|
+
})
|
|
115
|
+
], OrganizationInvitation.prototype, "expiresAt", 2);
|
|
116
|
+
__decorateClass([
|
|
117
|
+
Column({
|
|
118
|
+
name: "last_sent_at",
|
|
119
|
+
type: "timestamptz",
|
|
120
|
+
comment: "\xDAltimo envio do convite por e-mail (base da espera para reenviar)."
|
|
121
|
+
})
|
|
122
|
+
], OrganizationInvitation.prototype, "lastSentAt", 2);
|
|
123
|
+
__decorateClass([
|
|
124
|
+
Column({
|
|
125
|
+
name: "send_count",
|
|
126
|
+
type: "int",
|
|
127
|
+
default: 1,
|
|
128
|
+
comment: "Quantas vezes o convite foi enviado por e-mail."
|
|
129
|
+
})
|
|
130
|
+
], OrganizationInvitation.prototype, "sendCount", 2);
|
|
131
|
+
__decorateClass([
|
|
132
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz", comment: "Cria\xE7\xE3o do convite." })
|
|
133
|
+
], OrganizationInvitation.prototype, "createdAt", 2);
|
|
134
|
+
__decorateClass([
|
|
135
|
+
UpdateDateColumn({
|
|
136
|
+
name: "updated_at",
|
|
137
|
+
type: "timestamptz",
|
|
138
|
+
comment: "\xDAltima mudan\xE7a no convite."
|
|
139
|
+
})
|
|
140
|
+
], OrganizationInvitation.prototype, "updatedAt", 2);
|
|
141
|
+
__decorateClass([
|
|
142
|
+
ManyToOne(() => Organization, { onDelete: "CASCADE" }),
|
|
143
|
+
JoinColumn({
|
|
144
|
+
name: "organization_id",
|
|
145
|
+
foreignKeyConstraintName: "FK_organization_invitations_organization"
|
|
146
|
+
})
|
|
147
|
+
], OrganizationInvitation.prototype, "organization", 2);
|
|
148
|
+
__decorateClass([
|
|
149
|
+
ManyToOne(() => OrganizationUser, { onDelete: "SET NULL", nullable: true }),
|
|
150
|
+
JoinColumn({
|
|
151
|
+
name: "invited_by_organization_user_id",
|
|
152
|
+
foreignKeyConstraintName: "FK_organization_invitations_invited_by"
|
|
153
|
+
})
|
|
154
|
+
], OrganizationInvitation.prototype, "invitedBy", 2);
|
|
155
|
+
__decorateClass([
|
|
156
|
+
ManyToOne(() => OrganizationUser, { onDelete: "SET NULL", nullable: true }),
|
|
157
|
+
JoinColumn({
|
|
158
|
+
name: "accepted_by_organization_user_id",
|
|
159
|
+
foreignKeyConstraintName: "FK_organization_invitations_accepted_by"
|
|
160
|
+
})
|
|
161
|
+
], OrganizationInvitation.prototype, "acceptedBy", 2);
|
|
162
|
+
__decorateClass([
|
|
163
|
+
OneToMany(() => OrganizationInvitationScope, (scope) => scope.invitation)
|
|
164
|
+
], OrganizationInvitation.prototype, "scopes", 2);
|
|
165
|
+
__decorateClass([
|
|
166
|
+
OneToMany(() => OrganizationInvitationToken, (token) => token.invitation)
|
|
167
|
+
], OrganizationInvitation.prototype, "tokens", 2);
|
|
168
|
+
OrganizationInvitation = __decorateClass([
|
|
169
|
+
Entity("organization_invitations"),
|
|
170
|
+
Index("UQ_organization_invitations_pending_email", ["organizationId", "email"], {
|
|
171
|
+
unique: true,
|
|
172
|
+
where: `"status" = 'PENDING'`
|
|
173
|
+
}),
|
|
174
|
+
Index("IDX_organization_invitations_org_status", ["organizationId", "status"]),
|
|
175
|
+
Index("IDX_organization_invitations_email_pending", ["email"], {
|
|
176
|
+
where: `"status" = 'PENDING'`
|
|
177
|
+
}),
|
|
178
|
+
Index("IDX_organization_invitations_invited_by", ["invitedByOrganizationUserId"], {
|
|
179
|
+
where: '"invited_by_organization_user_id" IS NOT NULL'
|
|
180
|
+
}),
|
|
181
|
+
Index("IDX_organization_invitations_accepted_by", ["acceptedByOrganizationUserId"], {
|
|
182
|
+
where: '"accepted_by_organization_user_id" IS NOT NULL'
|
|
183
|
+
}),
|
|
184
|
+
Check("CHK_organization_invitations_role", `"role" IN (${ROLES})`),
|
|
185
|
+
Check("CHK_organization_invitations_status", `"status" IN (${STATUSES})`),
|
|
186
|
+
Check("CHK_organization_invitations_email_lower", `"email" = lower("email")`)
|
|
187
|
+
], OrganizationInvitation);
|
|
188
|
+
export {
|
|
189
|
+
OrganizationInvitation
|
|
190
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PasswordReset, RefreshToken, User, UserAuthProvider, UserLocality, UserOnboardingIntent, UserVerification } from '../app-auth';
|
|
2
2
|
import { BillingAccount, BillingEvent, BillingInvoice, BillingInvoiceLineItem, BillingMatchUsage, BillingPayment, BillingPlan, BillingProduct, BillingProviderWebhookEvent, BillingSubscription, BillingSubscriptionGrant, BillingSubscriptionItem } from '../billing';
|
|
3
|
-
import { AccessAuditEvent, Organization, OrganizationMembership, OrganizationMembershipScope, OrganizationUser, OrganizationUserBillingInfo, PhoneNumber } from '../central-auth';
|
|
3
|
+
import { AccessAuditEvent, Organization, OrganizationInvitation, OrganizationInvitationScope, OrganizationInvitationToken, OrganizationMembership, OrganizationMembershipScope, OrganizationUser, OrganizationUserBillingInfo, PhoneNumber } from '../central-auth';
|
|
4
4
|
import { Coupon, CouponUsage } from '../coupons';
|
|
5
5
|
import { Address, City, Facility, FacilityImage, FacilityOwner, Field, FieldImage } from '../facilities';
|
|
6
6
|
import { FeedActivity, FeedActivityReaction, FeedActivitySubject, FeedArtRewarm, FeedMedia, FeedOutbox, FeedPoll, FeedPollOption, FeedPollVote, FeedPost, FeedPostAttachment, FeedPostRevision, FeedReport } from '../feed';
|
|
@@ -15,5 +15,5 @@ import { Promotion, PromotionAdvertiser, PromotionContact, PromotionCreative, Pr
|
|
|
15
15
|
import { PlayerTeam, Team, TeamAccessCode, TeamFollow, TeamJoinRequest, TeamKit, TeamModality, TeamSponsor, TeamTrophy } from '../teams';
|
|
16
16
|
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';
|
|
17
17
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
18
|
-
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 AccessAuditEvent | 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 FacilityImage | typeof Facility | typeof FieldImage | typeof Field | typeof Address | typeof TournamentFacility | typeof OrganizationUserBillingInfo | typeof City | typeof FacilityOwner | 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 OrganizationMembership | typeof OrganizationMembershipScope | 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 FeedArtRewarm | typeof FeedMedia | typeof FeedOutbox | typeof FeedPostAttachment | typeof FeedPost | typeof FeedPoll | typeof FeedPostRevision | typeof FeedPollOption | typeof FeedPollVote | typeof FeedReport | 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 MemberTeamIdentity | typeof MemberTournamentIdentity | typeof PromotionContact | typeof Promotion | typeof PromotionCreative | typeof PromotionTarget | typeof PromotionAdvertiser | typeof PromotionEvent | typeof PromotionUserState | typeof UserDomainEvent | typeof UserEventView)[];
|
|
18
|
+
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 AccessAuditEvent | typeof OrganizationInvitationToken | typeof OrganizationInvitation | 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 FacilityImage | typeof Facility | typeof FieldImage | typeof Field | typeof Address | typeof TournamentFacility | typeof OrganizationUserBillingInfo | typeof City | typeof FacilityOwner | 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 OrganizationInvitationScope | typeof OrganizationMembership | typeof OrganizationMembershipScope | 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 FeedArtRewarm | typeof FeedMedia | typeof FeedOutbox | typeof FeedPostAttachment | typeof FeedPost | typeof FeedPoll | typeof FeedPostRevision | typeof FeedPollOption | typeof FeedPollVote | typeof FeedReport | 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 MemberTeamIdentity | typeof MemberTournamentIdentity | typeof PromotionContact | typeof Promotion | typeof PromotionCreative | typeof PromotionTarget | typeof PromotionAdvertiser | typeof PromotionEvent | typeof PromotionUserState | typeof UserDomainEvent | typeof UserEventView)[];
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"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
|
|
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,gBAAgB,EAChB,YAAY,EACZ,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,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,EACL,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACb,SAAS,EACT,UAAU,EACV,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC9F,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,aAAa,EACb,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EAEf,0BAA0B,EAC1B,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC3E,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,o3HAuJ7B,CAAC"}
|
|
@@ -24,6 +24,9 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
AccessAuditEvent,
|
|
26
26
|
Organization,
|
|
27
|
+
OrganizationInvitation,
|
|
28
|
+
OrganizationInvitationScope,
|
|
29
|
+
OrganizationInvitationToken,
|
|
27
30
|
OrganizationMembership,
|
|
28
31
|
OrganizationMembershipScope,
|
|
29
32
|
OrganizationUser,
|
|
@@ -196,6 +199,9 @@ const DATABASE_ENTITIES = [
|
|
|
196
199
|
FinanceAuditEvent,
|
|
197
200
|
AccessAuditEvent,
|
|
198
201
|
Organization,
|
|
202
|
+
OrganizationInvitation,
|
|
203
|
+
OrganizationInvitationScope,
|
|
204
|
+
OrganizationInvitationToken,
|
|
199
205
|
OrganizationMembership,
|
|
200
206
|
OrganizationMembershipScope,
|
|
201
207
|
OrganizationUser,
|