@natrave/shared-entities 8.22.0 → 8.24.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.
- package/dist/billing/billing-events/billing-event-type.constant.d.ts +2 -0
- package/dist/billing/billing-events/billing-event-type.constant.d.ts.map +1 -1
- package/dist/billing/billing-events/billing-event-type.constant.js +4 -0
- package/dist/billing/billing-subscription-grants/billing-subscription-grant-kind.constant.d.ts +5 -0
- package/dist/billing/billing-subscription-grants/billing-subscription-grant-kind.constant.d.ts.map +1 -0
- package/dist/billing/billing-subscription-grants/billing-subscription-grant-kind.constant.js +7 -0
- package/dist/billing/billing-subscription-grants/billing-subscription-grant.entity.d.ts +16 -0
- package/dist/billing/billing-subscription-grants/billing-subscription-grant.entity.d.ts.map +1 -0
- package/dist/billing/billing-subscription-grants/billing-subscription-grant.entity.js +130 -0
- package/dist/billing/billing-subscription-grants/index.d.ts +3 -0
- package/dist/billing/billing-subscription-grants/index.d.ts.map +1 -0
- package/dist/billing/billing-subscription-grants/index.js +2 -0
- package/dist/billing/index.d.ts +1 -0
- package/dist/billing/index.d.ts.map +1 -1
- package/dist/billing/index.js +1 -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 +2 -0
- package/dist/finance/enums/finance-entry-category.enum.d.ts +1 -0
- package/dist/finance/enums/finance-entry-category.enum.d.ts.map +1 -1
- package/dist/finance/enums/finance-entry-category.enum.js +1 -0
- package/package.json +1 -1
|
@@ -6,6 +6,8 @@ export declare const BillingEventType: {
|
|
|
6
6
|
readonly SUBSCRIPTION_PAST_DUE: "subscription_past_due";
|
|
7
7
|
readonly SUBSCRIPTION_SUSPENDED: "subscription_suspended";
|
|
8
8
|
readonly SUBSCRIPTION_CANCELED: "subscription_canceled";
|
|
9
|
+
readonly GRANT_APPLIED: "grant_applied";
|
|
10
|
+
readonly GRANT_REVOKED: "grant_revoked";
|
|
9
11
|
readonly INVOICE_ISSUED: "invoice_issued";
|
|
10
12
|
readonly INVOICE_PAID: "invoice_paid";
|
|
11
13
|
readonly INVOICE_VOIDED: "invoice_voided";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-event-type.constant.d.ts","sourceRoot":"","sources":["../../../src/billing/billing-events/billing-event-type.constant.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"billing-event-type.constant.d.ts","sourceRoot":"","sources":["../../../src/billing/billing-events/billing-event-type.constant.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;CA6BnB,CAAC;AAWX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -13,6 +13,10 @@ const BillingEventType = {
|
|
|
13
13
|
SUBSCRIPTION_SUSPENDED: "subscription_suspended",
|
|
14
14
|
/** Assinatura cancelada. */
|
|
15
15
|
SUBSCRIPTION_CANCELED: "subscription_canceled",
|
|
16
|
+
/** Concessão aplicada (ex.: cortesia): assinatura liberada sem cobrança. */
|
|
17
|
+
GRANT_APPLIED: "grant_applied",
|
|
18
|
+
/** Concessão revogada: a assinatura volta a seguir a cobrança normal. */
|
|
19
|
+
GRANT_REVOKED: "grant_revoked",
|
|
16
20
|
/** Fatura emitida (OPEN). */
|
|
17
21
|
INVOICE_ISSUED: "invoice_issued",
|
|
18
22
|
/** Fatura quitada (PAID). */
|
package/dist/billing/billing-subscription-grants/billing-subscription-grant-kind.constant.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const BillingSubscriptionGrantKind: {
|
|
2
|
+
readonly COURTESY: "courtesy";
|
|
3
|
+
};
|
|
4
|
+
export type BillingSubscriptionGrantKind = (typeof BillingSubscriptionGrantKind)[keyof typeof BillingSubscriptionGrantKind];
|
|
5
|
+
//# sourceMappingURL=billing-subscription-grant-kind.constant.d.ts.map
|
package/dist/billing/billing-subscription-grants/billing-subscription-grant-kind.constant.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-subscription-grant-kind.constant.d.ts","sourceRoot":"","sources":["../../../src/billing/billing-subscription-grants/billing-subscription-grant-kind.constant.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,4BAA4B;;CAG/B,CAAC;AAWX,MAAM,MAAM,4BAA4B,GACtC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BillingSubscription } from '../billing-subscriptions';
|
|
2
|
+
export declare class BillingSubscriptionGrant {
|
|
3
|
+
id: string;
|
|
4
|
+
subscriptionId: string;
|
|
5
|
+
kind: string;
|
|
6
|
+
reason: string;
|
|
7
|
+
grantedBy: string;
|
|
8
|
+
grantedAt: Date;
|
|
9
|
+
expiresAt: Date | null;
|
|
10
|
+
revokedAt: Date | null;
|
|
11
|
+
revokedBy: string | null;
|
|
12
|
+
revokeReason: string | null;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
subscription: BillingSubscription;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=billing-subscription-grant.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-subscription-grant.entity.d.ts","sourceRoot":"","sources":["../../../src/billing/billing-subscription-grants/billing-subscription-grant.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAkC/D,qBAaa,wBAAwB;IAInC,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAOvB,IAAI,EAAE,MAAM,CAAC;IAMb,MAAM,EAAE,MAAM,CAAC;IAQf,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IASvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAO5B,SAAS,EAAE,IAAI,CAAC;IAehB,YAAY,EAAE,mBAAmB,CAAC;CACnC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
UpdateDateColumn
|
|
21
|
+
} from "typeorm";
|
|
22
|
+
import { BillingSubscription } from "../billing-subscriptions/index.js";
|
|
23
|
+
let BillingSubscriptionGrant = class {
|
|
24
|
+
};
|
|
25
|
+
__decorateClass([
|
|
26
|
+
PrimaryGeneratedColumn("uuid", {
|
|
27
|
+
comment: "Identificador \xFAnico da concess\xE3o."
|
|
28
|
+
})
|
|
29
|
+
], BillingSubscriptionGrant.prototype, "id", 2);
|
|
30
|
+
__decorateClass([
|
|
31
|
+
Column({
|
|
32
|
+
name: "subscription_id",
|
|
33
|
+
type: "uuid",
|
|
34
|
+
comment: "Identificador da assinatura (campeonato) liberada pela concess\xE3o."
|
|
35
|
+
})
|
|
36
|
+
], BillingSubscriptionGrant.prototype, "subscriptionId", 2);
|
|
37
|
+
__decorateClass([
|
|
38
|
+
Column({
|
|
39
|
+
type: "varchar",
|
|
40
|
+
length: 40,
|
|
41
|
+
comment: "Tipo da concess\xE3o (ex.: courtesy). Varchar aberto, ver BillingSubscriptionGrantKind."
|
|
42
|
+
})
|
|
43
|
+
], BillingSubscriptionGrant.prototype, "kind", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
Column({
|
|
46
|
+
type: "text",
|
|
47
|
+
comment: "Motivo informado por quem concedeu. Obrigat\xF3rio."
|
|
48
|
+
})
|
|
49
|
+
], BillingSubscriptionGrant.prototype, "reason", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
Column({
|
|
52
|
+
name: "granted_by",
|
|
53
|
+
type: "varchar",
|
|
54
|
+
length: 255,
|
|
55
|
+
comment: "Id do usu\xE1rio do backoffice (Clerk) que concedeu."
|
|
56
|
+
})
|
|
57
|
+
], BillingSubscriptionGrant.prototype, "grantedBy", 2);
|
|
58
|
+
__decorateClass([
|
|
59
|
+
CreateDateColumn({
|
|
60
|
+
name: "granted_at",
|
|
61
|
+
type: "timestamptz",
|
|
62
|
+
comment: "Quando a concess\xE3o foi dada (cria\xE7\xE3o = concess\xE3o)."
|
|
63
|
+
})
|
|
64
|
+
], BillingSubscriptionGrant.prototype, "grantedAt", 2);
|
|
65
|
+
__decorateClass([
|
|
66
|
+
Column({
|
|
67
|
+
name: "expires_at",
|
|
68
|
+
type: "timestamptz",
|
|
69
|
+
nullable: true,
|
|
70
|
+
comment: "Fim da concess\xE3o. Reservado para cortesia com prazo; nulo = sem prazo."
|
|
71
|
+
})
|
|
72
|
+
], BillingSubscriptionGrant.prototype, "expiresAt", 2);
|
|
73
|
+
__decorateClass([
|
|
74
|
+
Column({
|
|
75
|
+
name: "revoked_at",
|
|
76
|
+
type: "timestamptz",
|
|
77
|
+
nullable: true,
|
|
78
|
+
comment: "Quando a concess\xE3o foi revogada. Nulo = concess\xE3o viva."
|
|
79
|
+
})
|
|
80
|
+
], BillingSubscriptionGrant.prototype, "revokedAt", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
Column({
|
|
83
|
+
name: "revoked_by",
|
|
84
|
+
type: "varchar",
|
|
85
|
+
length: 255,
|
|
86
|
+
nullable: true,
|
|
87
|
+
comment: "Id do usu\xE1rio do backoffice (Clerk) que revogou."
|
|
88
|
+
})
|
|
89
|
+
], BillingSubscriptionGrant.prototype, "revokedBy", 2);
|
|
90
|
+
__decorateClass([
|
|
91
|
+
Column({
|
|
92
|
+
name: "revoke_reason",
|
|
93
|
+
type: "text",
|
|
94
|
+
nullable: true,
|
|
95
|
+
comment: "Motivo da revoga\xE7\xE3o."
|
|
96
|
+
})
|
|
97
|
+
], BillingSubscriptionGrant.prototype, "revokeReason", 2);
|
|
98
|
+
__decorateClass([
|
|
99
|
+
UpdateDateColumn({
|
|
100
|
+
name: "updated_at",
|
|
101
|
+
type: "timestamptz",
|
|
102
|
+
comment: "Data da \xFAltima atualiza\xE7\xE3o do registro."
|
|
103
|
+
})
|
|
104
|
+
], BillingSubscriptionGrant.prototype, "updatedAt", 2);
|
|
105
|
+
__decorateClass([
|
|
106
|
+
ManyToOne(() => BillingSubscription, {
|
|
107
|
+
onDelete: "RESTRICT"
|
|
108
|
+
}),
|
|
109
|
+
JoinColumn({
|
|
110
|
+
name: "subscription_id",
|
|
111
|
+
foreignKeyConstraintName: "FK_billing_subscription_grants_subscription"
|
|
112
|
+
})
|
|
113
|
+
], BillingSubscriptionGrant.prototype, "subscription", 2);
|
|
114
|
+
BillingSubscriptionGrant = __decorateClass([
|
|
115
|
+
Entity("billing_subscription_grants"),
|
|
116
|
+
Index("idx_billing_subscription_grants_subscription", ["subscriptionId"]),
|
|
117
|
+
Index("UQ_billing_subscription_grants_live_subscription", ["subscriptionId"], {
|
|
118
|
+
unique: true,
|
|
119
|
+
where: `"revoked_at" IS NULL`
|
|
120
|
+
}),
|
|
121
|
+
Check("CHK_billing_subscription_grants_reason_not_blank", `btrim("reason") <> ''`),
|
|
122
|
+
Check(
|
|
123
|
+
"CHK_billing_subscription_grants_revocation_complete",
|
|
124
|
+
`("revoked_at" IS NULL AND "revoked_by" IS NULL AND "revoke_reason" IS NULL)
|
|
125
|
+
OR ("revoked_at" IS NOT NULL AND "revoked_by" IS NOT NULL AND "revoke_reason" IS NOT NULL)`
|
|
126
|
+
)
|
|
127
|
+
], BillingSubscriptionGrant);
|
|
128
|
+
export {
|
|
129
|
+
BillingSubscriptionGrant
|
|
130
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/billing/billing-subscription-grants/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC"}
|
package/dist/billing/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './billing-payments';
|
|
|
7
7
|
export * from './billing-plans';
|
|
8
8
|
export * from './billing-products';
|
|
9
9
|
export * from './billing-provider-webhook-events';
|
|
10
|
+
export * from './billing-subscription-grants';
|
|
10
11
|
export * from './billing-subscription-items';
|
|
11
12
|
export * from './billing-subscriptions';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC"}
|
package/dist/billing/index.js
CHANGED
|
@@ -7,5 +7,6 @@ export * from "./billing-payments/index.js";
|
|
|
7
7
|
export * from "./billing-plans/index.js";
|
|
8
8
|
export * from "./billing-products/index.js";
|
|
9
9
|
export * from "./billing-provider-webhook-events/index.js";
|
|
10
|
+
export * from "./billing-subscription-grants/index.js";
|
|
10
11
|
export * from "./billing-subscription-items/index.js";
|
|
11
12
|
export * from "./billing-subscriptions/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PasswordReset, RefreshToken, User, UserAuthProvider, UserOnboardingIntent, UserVerification } from '../app-auth';
|
|
2
|
-
import { BillingAccount, BillingEvent, BillingInvoice, BillingInvoiceLineItem, BillingMatchUsage, BillingPayment, BillingPlan, BillingProduct, BillingProviderWebhookEvent, BillingSubscription, BillingSubscriptionItem } from '../billing';
|
|
2
|
+
import { BillingAccount, BillingEvent, BillingInvoice, BillingInvoiceLineItem, BillingMatchUsage, BillingPayment, BillingPlan, BillingProduct, BillingProviderWebhookEvent, BillingSubscription, BillingSubscriptionGrant, BillingSubscriptionItem } from '../billing';
|
|
3
3
|
import { Organization, 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';
|
|
@@ -12,5 +12,5 @@ import { Player, PlayerPersonalData, PlayerPosition } from '../players';
|
|
|
12
12
|
import { PlayerTeam, Team, TeamAccessCode, TeamJoinRequest, TeamKit, TeamModality, TeamSponsor, TeamTrophy } from '../teams';
|
|
13
13
|
import { Referee, RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchKit, TournamentMatchPlayerNumber, TournamentMatchReferee, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation, TournamentTieBreakConfig } from '../tournaments';
|
|
14
14
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
15
|
-
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 TournamentMatchReferee | typeof Referee | typeof RegulationExtraction | typeof Tournament | 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 TournamentMatchPlayerNumber | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentTeamInvitation | 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 PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionItem | typeof BillingSubscription | 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 UserDomainEvent | typeof UserEventView)[];
|
|
15
|
+
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 TournamentMatchReferee | typeof Referee | typeof RegulationExtraction | typeof Tournament | 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 TournamentMatchPlayerNumber | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentTeamInvitation | 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 PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionItem | typeof BillingSubscription | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingMatchUsage | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof BillingSubscriptionGrant | typeof FeedActivityReaction | typeof FeedActivity | typeof FeedActivitySubject | typeof FeedOutbox | typeof FinanceAuditEvent | typeof FinanceEntryItem | typeof FinanceEntry | typeof FinanceLedger | typeof UserDomainEvent | typeof UserEventView)[];
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot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,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,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAC7B,iCAAiC,EAEjC,+BAA+B,EAE/B,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,
|
|
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,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,QAA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,EACxB,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,onFAuG7B,CAAC"}
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
BillingProduct,
|
|
18
18
|
BillingProviderWebhookEvent,
|
|
19
19
|
BillingSubscription,
|
|
20
|
+
BillingSubscriptionGrant,
|
|
20
21
|
BillingSubscriptionItem
|
|
21
22
|
} from "../billing/index.js";
|
|
22
23
|
import {
|
|
@@ -109,6 +110,7 @@ const DATABASE_ENTITIES = [
|
|
|
109
110
|
BillingAccount,
|
|
110
111
|
BillingSubscription,
|
|
111
112
|
BillingSubscriptionItem,
|
|
113
|
+
BillingSubscriptionGrant,
|
|
112
114
|
BillingInvoice,
|
|
113
115
|
BillingInvoiceLineItem,
|
|
114
116
|
BillingPayment,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance-entry-category.enum.d.ts","sourceRoot":"","sources":["../../../src/finance/enums/finance-entry-category.enum.ts"],"names":[],"mappings":"AAUA,oBAAY,oBAAoB;IAE9B,YAAY,iBAAiB;IAE7B,mBAAmB,wBAAwB;IAE3C,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IAEjB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,MAAM,WAAW;IAEjB,GAAG,QAAQ;IAEX,YAAY,iBAAiB;IAE7B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,QAAQ,aAAa;IAErB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;IAEvB,SAAS,cAAc;IAEvB,gBAAgB,qBAAqB;IAErC,KAAK,UAAU;CAChB"}
|
|
1
|
+
{"version":3,"file":"finance-entry-category.enum.d.ts","sourceRoot":"","sources":["../../../src/finance/enums/finance-entry-category.enum.ts"],"names":[],"mappings":"AAUA,oBAAY,oBAAoB;IAE9B,YAAY,iBAAiB;IAE7B,mBAAmB,wBAAwB;IAE3C,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IAEjB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,MAAM,WAAW;IAEjB,GAAG,QAAQ;IAEX,IAAI,SAAS;IAEb,YAAY,iBAAiB;IAE7B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,QAAQ,aAAa;IAErB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;IAEvB,SAAS,cAAc;IAEvB,gBAAgB,qBAAqB;IAErC,KAAK,UAAU;CAChB"}
|
|
@@ -8,6 +8,7 @@ var FinanceEntryCategory = /* @__PURE__ */ ((FinanceEntryCategory2) => {
|
|
|
8
8
|
FinanceEntryCategory2["BAR"] = "bar";
|
|
9
9
|
FinanceEntryCategory2["TICKET"] = "ticket";
|
|
10
10
|
FinanceEntryCategory2["FEE"] = "fee";
|
|
11
|
+
FinanceEntryCategory2["FINE"] = "fine";
|
|
11
12
|
FinanceEntryCategory2["FIELD_RENTAL"] = "field_rental";
|
|
12
13
|
FinanceEntryCategory2["PRIZE"] = "prize";
|
|
13
14
|
FinanceEntryCategory2["TROPHIES"] = "trophies";
|