@natrave/shared-entities 8.12.0 → 8.13.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/database-entities/index.d.ts +2 -1
- package/dist/database-entities/index.d.ts.map +1 -1
- package/dist/database-entities/index.js +5 -0
- package/dist/finance/enums/finance-audit-action.enum.d.ts +9 -0
- package/dist/finance/enums/finance-audit-action.enum.d.ts.map +1 -0
- package/dist/finance/enums/finance-audit-action.enum.js +12 -0
- package/dist/finance/enums/finance-direction.enum.d.ts +5 -0
- package/dist/finance/enums/finance-direction.enum.d.ts.map +1 -0
- package/dist/finance/enums/finance-direction.enum.js +8 -0
- package/dist/finance/enums/finance-entry-category.enum.d.ts +18 -0
- package/dist/finance/enums/finance-entry-category.enum.d.ts.map +1 -0
- package/dist/finance/enums/finance-entry-category.enum.js +21 -0
- package/dist/finance/enums/finance-entry-origin.enum.d.ts +5 -0
- package/dist/finance/enums/finance-entry-origin.enum.d.ts.map +1 -0
- package/dist/finance/enums/finance-entry-origin.enum.js +8 -0
- package/dist/finance/enums/finance-source-type.enum.d.ts +8 -0
- package/dist/finance/enums/finance-source-type.enum.d.ts.map +1 -0
- package/dist/finance/enums/finance-source-type.enum.js +11 -0
- package/dist/finance/enums/finance-subject-type.enum.d.ts +8 -0
- package/dist/finance/enums/finance-subject-type.enum.d.ts.map +1 -0
- package/dist/finance/enums/finance-subject-type.enum.js +11 -0
- package/dist/finance/enums/index.d.ts +7 -0
- package/dist/finance/enums/index.d.ts.map +1 -0
- package/dist/finance/enums/index.js +14 -0
- package/dist/finance/finance-audit-events/finance-audit-event.entity.d.ts +12 -0
- package/dist/finance/finance-audit-events/finance-audit-event.entity.d.ts.map +1 -0
- package/dist/finance/finance-audit-events/finance-audit-event.entity.js +55 -0
- package/dist/finance/finance-audit-events/index.d.ts +2 -0
- package/dist/finance/finance-audit-events/index.d.ts.map +1 -0
- package/dist/finance/finance-audit-events/index.js +4 -0
- package/dist/finance/finance-check.helper.d.ts +2 -0
- package/dist/finance/finance-check.helper.d.ts.map +1 -0
- package/dist/finance/finance-check.helper.js +8 -0
- package/dist/finance/finance-entries/finance-entry.entity.d.ts +25 -0
- package/dist/finance/finance-entries/finance-entry.entity.d.ts.map +1 -0
- package/dist/finance/finance-entries/finance-entry.entity.js +160 -0
- package/dist/finance/finance-entries/index.d.ts +2 -0
- package/dist/finance/finance-entries/index.d.ts.map +1 -0
- package/dist/finance/finance-entries/index.js +4 -0
- package/dist/finance/finance-entry-items/finance-entry-item.entity.d.ts +20 -0
- package/dist/finance/finance-entry-items/finance-entry-item.entity.d.ts.map +1 -0
- package/dist/finance/finance-entry-items/finance-entry-item.entity.js +139 -0
- package/dist/finance/finance-entry-items/index.d.ts +2 -0
- package/dist/finance/finance-entry-items/index.d.ts.map +1 -0
- package/dist/finance/finance-entry-items/index.js +4 -0
- package/dist/finance/finance-ledgers/finance-ledger.entity.d.ts +10 -0
- package/dist/finance/finance-ledgers/finance-ledger.entity.d.ts.map +1 -0
- package/dist/finance/finance-ledgers/finance-ledger.entity.js +59 -0
- package/dist/finance/finance-ledgers/index.d.ts +2 -0
- package/dist/finance/finance-ledgers/index.d.ts.map +1 -0
- package/dist/finance/finance-ledgers/index.js +4 -0
- package/dist/finance/index.d.ts +6 -0
- package/dist/finance/index.d.ts.map +1 -0
- package/dist/finance/index.js +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { Organization, OrganizationUser, OrganizationUserBillingInfo, PhoneNumbe
|
|
|
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, FeedOutbox } from '../feed';
|
|
7
|
+
import { FinanceAuditEvent, FinanceEntry, FinanceEntryItem, FinanceLedger } from '../finance';
|
|
7
8
|
import { TeamPlayerMergeHistory } from '../history-logs';
|
|
8
9
|
import { Notification, NotificationDelivery, NotificationDispatchLog, PushDeviceToken, UserNotificationPreference } from '../notifications';
|
|
9
10
|
import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
|
|
@@ -11,5 +12,5 @@ import { Player, PlayerPersonalData, PlayerPosition } from '../players';
|
|
|
11
12
|
import { PlayerTeam, Team, TeamAccessCode, TeamJoinRequest, TeamKit, TeamModality, TeamSponsor, TeamTrophy } from '../teams';
|
|
12
13
|
import { RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchKit, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation, TournamentTieBreakConfig } from '../tournaments';
|
|
13
14
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
14
|
-
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 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 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 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 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 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
16
|
//# 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,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,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,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,UAAU,EACV,IAAI,EACJ,cAAc,EACd,eAAe,EACf,OAAO,EACP,YAAY,EACZ,WAAW,EACX,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,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,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,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,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,UAAU,EACV,IAAI,EACJ,cAAc,EACd,eAAe,EACf,OAAO,EACP,YAAY,EACZ,WAAW,EACX,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,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,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,4/EAmG7B,CAAC"}
|
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
FieldImage
|
|
37
37
|
} from "../facilities/index.js";
|
|
38
38
|
import { FeedActivity, FeedActivityReaction, FeedActivitySubject, FeedOutbox } from "../feed/index.js";
|
|
39
|
+
import { FinanceAuditEvent, FinanceEntry, FinanceEntryItem, FinanceLedger } from "../finance/index.js";
|
|
39
40
|
import { TeamPlayerMergeHistory } from "../history-logs/index.js";
|
|
40
41
|
import {
|
|
41
42
|
Notification,
|
|
@@ -122,6 +123,10 @@ const DATABASE_ENTITIES = [
|
|
|
122
123
|
FeedActivityReaction,
|
|
123
124
|
FeedActivitySubject,
|
|
124
125
|
FeedOutbox,
|
|
126
|
+
FinanceLedger,
|
|
127
|
+
FinanceEntry,
|
|
128
|
+
FinanceEntryItem,
|
|
129
|
+
FinanceAuditEvent,
|
|
125
130
|
Organization,
|
|
126
131
|
OrganizationUser,
|
|
127
132
|
OrganizationUserBillingInfo,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum FinanceAuditAction {
|
|
2
|
+
ENTRY_CREATED = "entry_created",
|
|
3
|
+
ENTRY_UPDATED = "entry_updated",
|
|
4
|
+
ENTRY_DELETED = "entry_deleted",
|
|
5
|
+
ITEM_SETTLED = "item_settled",
|
|
6
|
+
ITEM_UNSETTLED = "item_unsettled",
|
|
7
|
+
RECONCILED = "reconciled"
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=finance-audit-action.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-audit-action.enum.d.ts","sourceRoot":"","sources":["../../../src/finance/enums/finance-audit-action.enum.ts"],"names":[],"mappings":"AAKA,oBAAY,kBAAkB;IAC5B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IAEjC,UAAU,eAAe;CAC1B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var FinanceAuditAction = /* @__PURE__ */ ((FinanceAuditAction2) => {
|
|
2
|
+
FinanceAuditAction2["ENTRY_CREATED"] = "entry_created";
|
|
3
|
+
FinanceAuditAction2["ENTRY_UPDATED"] = "entry_updated";
|
|
4
|
+
FinanceAuditAction2["ENTRY_DELETED"] = "entry_deleted";
|
|
5
|
+
FinanceAuditAction2["ITEM_SETTLED"] = "item_settled";
|
|
6
|
+
FinanceAuditAction2["ITEM_UNSETTLED"] = "item_unsettled";
|
|
7
|
+
FinanceAuditAction2["RECONCILED"] = "reconciled";
|
|
8
|
+
return FinanceAuditAction2;
|
|
9
|
+
})(FinanceAuditAction || {});
|
|
10
|
+
export {
|
|
11
|
+
FinanceAuditAction
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-direction.enum.d.ts","sourceRoot":"","sources":["../../../src/finance/enums/finance-direction.enum.ts"],"names":[],"mappings":"AAMA,oBAAY,gBAAgB;IAE1B,MAAM,WAAW;IAGjB,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum FinanceEntryCategory {
|
|
2
|
+
REGISTRATION = "registration",
|
|
3
|
+
PLAYER_REGISTRATION = "player_registration",
|
|
4
|
+
REFEREE = "referee",
|
|
5
|
+
SPONSORSHIP = "sponsorship",
|
|
6
|
+
RAFFLE = "raffle",
|
|
7
|
+
BAR = "bar",
|
|
8
|
+
TICKET = "ticket",
|
|
9
|
+
FIELD_RENTAL = "field_rental",
|
|
10
|
+
PRIZE = "prize",
|
|
11
|
+
TROPHIES = "trophies",
|
|
12
|
+
UNIFORMS = "uniforms",
|
|
13
|
+
EQUIPMENT = "equipment",
|
|
14
|
+
MARKETING = "marketing",
|
|
15
|
+
PLATFORM_LICENSE = "platform_license",
|
|
16
|
+
OTHER = "other"
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=finance-entry-category.enum.d.ts.map
|
|
@@ -0,0 +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;IACjB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAE7B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,SAAS,cAAc;IAEvB,gBAAgB,qBAAqB;IAErC,KAAK,UAAU;CAChB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var FinanceEntryCategory = /* @__PURE__ */ ((FinanceEntryCategory2) => {
|
|
2
|
+
FinanceEntryCategory2["REGISTRATION"] = "registration";
|
|
3
|
+
FinanceEntryCategory2["PLAYER_REGISTRATION"] = "player_registration";
|
|
4
|
+
FinanceEntryCategory2["REFEREE"] = "referee";
|
|
5
|
+
FinanceEntryCategory2["SPONSORSHIP"] = "sponsorship";
|
|
6
|
+
FinanceEntryCategory2["RAFFLE"] = "raffle";
|
|
7
|
+
FinanceEntryCategory2["BAR"] = "bar";
|
|
8
|
+
FinanceEntryCategory2["TICKET"] = "ticket";
|
|
9
|
+
FinanceEntryCategory2["FIELD_RENTAL"] = "field_rental";
|
|
10
|
+
FinanceEntryCategory2["PRIZE"] = "prize";
|
|
11
|
+
FinanceEntryCategory2["TROPHIES"] = "trophies";
|
|
12
|
+
FinanceEntryCategory2["UNIFORMS"] = "uniforms";
|
|
13
|
+
FinanceEntryCategory2["EQUIPMENT"] = "equipment";
|
|
14
|
+
FinanceEntryCategory2["MARKETING"] = "marketing";
|
|
15
|
+
FinanceEntryCategory2["PLATFORM_LICENSE"] = "platform_license";
|
|
16
|
+
FinanceEntryCategory2["OTHER"] = "other";
|
|
17
|
+
return FinanceEntryCategory2;
|
|
18
|
+
})(FinanceEntryCategory || {});
|
|
19
|
+
export {
|
|
20
|
+
FinanceEntryCategory
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-entry-origin.enum.d.ts","sourceRoot":"","sources":["../../../src/finance/enums/finance-entry-origin.enum.ts"],"names":[],"mappings":"AAKA,oBAAY,kBAAkB;IAE5B,MAAM,WAAW;IAMjB,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum FinanceSourceType {
|
|
2
|
+
CATEGORY_REGISTRATION = "category_registration",
|
|
3
|
+
CATEGORY_REFEREE = "category_referee",
|
|
4
|
+
CATEGORY_PRIZE = "category_prize",
|
|
5
|
+
PLATFORM_LICENSE = "platform_license",
|
|
6
|
+
TEAM_ROSTER = "team_roster"
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=finance-source-type.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-source-type.enum.d.ts","sourceRoot":"","sources":["../../../src/finance/enums/finance-source-type.enum.ts"],"names":[],"mappings":"AAMA,oBAAY,iBAAiB;IAE3B,qBAAqB,0BAA0B;IAK/C,gBAAgB,qBAAqB;IAErC,cAAc,mBAAmB;IAEjC,gBAAgB,qBAAqB;IAKrC,WAAW,gBAAgB;CAC5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var FinanceSourceType = /* @__PURE__ */ ((FinanceSourceType2) => {
|
|
2
|
+
FinanceSourceType2["CATEGORY_REGISTRATION"] = "category_registration";
|
|
3
|
+
FinanceSourceType2["CATEGORY_REFEREE"] = "category_referee";
|
|
4
|
+
FinanceSourceType2["CATEGORY_PRIZE"] = "category_prize";
|
|
5
|
+
FinanceSourceType2["PLATFORM_LICENSE"] = "platform_license";
|
|
6
|
+
FinanceSourceType2["TEAM_ROSTER"] = "team_roster";
|
|
7
|
+
return FinanceSourceType2;
|
|
8
|
+
})(FinanceSourceType || {});
|
|
9
|
+
export {
|
|
10
|
+
FinanceSourceType
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-subject-type.enum.d.ts","sourceRoot":"","sources":["../../../src/finance/enums/finance-subject-type.enum.ts"],"names":[],"mappings":"AAMA,oBAAY,kBAAkB;IAE5B,MAAM,WAAW;IAEjB,IAAI,SAAS;IAEb,UAAU,eAAe;IAEzB,UAAU,eAAe;IAEzB,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var FinanceSubjectType = /* @__PURE__ */ ((FinanceSubjectType2) => {
|
|
2
|
+
FinanceSubjectType2["SINGLE"] = "single";
|
|
3
|
+
FinanceSubjectType2["TEAM"] = "team";
|
|
4
|
+
FinanceSubjectType2["TEAM_MATCH"] = "team_match";
|
|
5
|
+
FinanceSubjectType2["PRIZE_RANK"] = "prize_rank";
|
|
6
|
+
FinanceSubjectType2["PLAYER"] = "player";
|
|
7
|
+
return FinanceSubjectType2;
|
|
8
|
+
})(FinanceSubjectType || {});
|
|
9
|
+
export {
|
|
10
|
+
FinanceSubjectType
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { FinanceAuditAction } from './finance-audit-action.enum';
|
|
2
|
+
export { FinanceDirection } from './finance-direction.enum';
|
|
3
|
+
export { FinanceEntryCategory } from './finance-entry-category.enum';
|
|
4
|
+
export { FinanceEntryOrigin } from './finance-entry-origin.enum';
|
|
5
|
+
export { FinanceSourceType } from './finance-source-type.enum';
|
|
6
|
+
export { FinanceSubjectType } from './finance-subject-type.enum';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/finance/enums/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FinanceAuditAction } from "./finance-audit-action.enum.js";
|
|
2
|
+
import { FinanceDirection } from "./finance-direction.enum.js";
|
|
3
|
+
import { FinanceEntryCategory } from "./finance-entry-category.enum.js";
|
|
4
|
+
import { FinanceEntryOrigin } from "./finance-entry-origin.enum.js";
|
|
5
|
+
import { FinanceSourceType } from "./finance-source-type.enum.js";
|
|
6
|
+
import { FinanceSubjectType } from "./finance-subject-type.enum.js";
|
|
7
|
+
export {
|
|
8
|
+
FinanceAuditAction,
|
|
9
|
+
FinanceDirection,
|
|
10
|
+
FinanceEntryCategory,
|
|
11
|
+
FinanceEntryOrigin,
|
|
12
|
+
FinanceSourceType,
|
|
13
|
+
FinanceSubjectType
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FinanceAuditAction } from '../enums';
|
|
2
|
+
export declare class FinanceAuditEvent {
|
|
3
|
+
id: string;
|
|
4
|
+
categoryGroupId: number;
|
|
5
|
+
entryId: string | null;
|
|
6
|
+
itemId: string | null;
|
|
7
|
+
action: FinanceAuditAction;
|
|
8
|
+
actor: string | null;
|
|
9
|
+
payload: Record<string, unknown>;
|
|
10
|
+
occurredAt: Date;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=finance-audit-event.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-audit-event.entity.d.ts","sourceRoot":"","sources":["../../../src/finance/finance-audit-events/finance-audit-event.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAe9C,qBAGa,iBAAiB;IAK5B,EAAE,EAAE,MAAM,CAAC;IAGX,eAAe,EAAE,MAAM,CAAC;IAGxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,MAAM,EAAE,kBAAkB,CAAC;IAQ3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGjC,UAAU,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn } from "typeorm";
|
|
12
|
+
import { FinanceAuditAction } from "../enums/index.js";
|
|
13
|
+
import { enumCheck } from "../finance-check.helper.js";
|
|
14
|
+
let FinanceAuditEvent = class {
|
|
15
|
+
};
|
|
16
|
+
__decorateClass([
|
|
17
|
+
PrimaryGeneratedColumn({
|
|
18
|
+
type: "bigint",
|
|
19
|
+
primaryKeyConstraintName: "PK_finance_audit_events"
|
|
20
|
+
})
|
|
21
|
+
], FinanceAuditEvent.prototype, "id", 2);
|
|
22
|
+
__decorateClass([
|
|
23
|
+
Column({ name: "category_group_id", type: "int", comment: "Campeonato, sem FK." })
|
|
24
|
+
], FinanceAuditEvent.prototype, "categoryGroupId", 2);
|
|
25
|
+
__decorateClass([
|
|
26
|
+
Column({ name: "entry_id", type: "uuid", nullable: true, comment: "Lan\xE7amento, sem FK." })
|
|
27
|
+
], FinanceAuditEvent.prototype, "entryId", 2);
|
|
28
|
+
__decorateClass([
|
|
29
|
+
Column({ name: "item_id", type: "uuid", nullable: true, comment: "Item, sem FK." })
|
|
30
|
+
], FinanceAuditEvent.prototype, "itemId", 2);
|
|
31
|
+
__decorateClass([
|
|
32
|
+
Column({ type: "varchar", length: 32, comment: "O que aconteceu." })
|
|
33
|
+
], FinanceAuditEvent.prototype, "action", 2);
|
|
34
|
+
__decorateClass([
|
|
35
|
+
Column({
|
|
36
|
+
type: "varchar",
|
|
37
|
+
length: 64,
|
|
38
|
+
nullable: true,
|
|
39
|
+
comment: "Quem fez. Nulo = sistema (sincroniza\xE7\xE3o)."
|
|
40
|
+
})
|
|
41
|
+
], FinanceAuditEvent.prototype, "actor", 2);
|
|
42
|
+
__decorateClass([
|
|
43
|
+
Column({ type: "jsonb", comment: "Estado antes/depois ou contagens da sincroniza\xE7\xE3o." })
|
|
44
|
+
], FinanceAuditEvent.prototype, "payload", 2);
|
|
45
|
+
__decorateClass([
|
|
46
|
+
CreateDateColumn({ name: "occurred_at", type: "timestamptz", default: () => "now()" })
|
|
47
|
+
], FinanceAuditEvent.prototype, "occurredAt", 2);
|
|
48
|
+
FinanceAuditEvent = __decorateClass([
|
|
49
|
+
Entity({ schema: "finance", name: "audit_events" }),
|
|
50
|
+
Check("CHK_finance_audit_events_action", enumCheck("action", Object.values(FinanceAuditAction))),
|
|
51
|
+
Index("IDX_finance_audit_events_ledger", ["categoryGroupId", "occurredAt"])
|
|
52
|
+
], FinanceAuditEvent);
|
|
53
|
+
export {
|
|
54
|
+
FinanceAuditEvent
|
|
55
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/finance/finance-audit-events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-check.helper.d.ts","sourceRoot":"","sources":["../../src/finance/finance-check.helper.ts"],"names":[],"mappings":"AAYA,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,QAAQ,UAAQ,GAAG,MAAM,CAI7F"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
function enumCheck(column, values, nullable = false) {
|
|
2
|
+
const list = values.map((value) => `'${value}'`).join(", ");
|
|
3
|
+
const constraint = `"${column}" IN (${list})`;
|
|
4
|
+
return nullable ? `"${column}" IS NULL OR ${constraint}` : constraint;
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
enumCheck
|
|
8
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FinanceDirection, FinanceEntryCategory, FinanceEntryOrigin, FinanceSourceType } from '../enums';
|
|
2
|
+
import { FinanceEntryItem } from '../finance-entry-items/finance-entry-item.entity';
|
|
3
|
+
import { FinanceLedger } from '../finance-ledgers/finance-ledger.entity';
|
|
4
|
+
export declare class FinanceEntry {
|
|
5
|
+
id: string;
|
|
6
|
+
categoryGroupId: number;
|
|
7
|
+
categoryId: number | null;
|
|
8
|
+
direction: FinanceDirection;
|
|
9
|
+
category: FinanceEntryCategory;
|
|
10
|
+
origin: FinanceEntryOrigin;
|
|
11
|
+
sourceType: FinanceSourceType | null;
|
|
12
|
+
sourceRef: string | null;
|
|
13
|
+
description: string | null;
|
|
14
|
+
referenceDate: string;
|
|
15
|
+
unitAmountCents: number | null;
|
|
16
|
+
expectedUnits: number | null;
|
|
17
|
+
createdBy: string | null;
|
|
18
|
+
version: number;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
deletedAt: Date | null;
|
|
22
|
+
ledger?: FinanceLedger;
|
|
23
|
+
items?: FinanceEntryItem[];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=finance-entry.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-entry.entity.d.ts","sourceRoot":"","sources":["../../../src/finance/finance-entries/finance-entry.entity.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AA0BzE,qBAgBa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAOX,eAAe,EAAE,MAAM,CAAC;IAQxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,SAAS,EAAE,gBAAgB,CAAC;IAG5B,QAAQ,EAAE,oBAAoB,CAAC;IAG/B,MAAM,EAAE,kBAAkB,CAAC;IAS3B,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAAC;IASrC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3B,aAAa,EAAE,MAAM,CAAC;IAQtB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ/B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAS7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,OAAO,EAAE,MAAM,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,MAAM,CAAC,EAAE,aAAa,CAAC;IAGvB,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC5B"}
|
|
@@ -0,0 +1,160 @@
|
|
|
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
|
+
DeleteDateColumn,
|
|
16
|
+
Entity,
|
|
17
|
+
Index,
|
|
18
|
+
JoinColumn,
|
|
19
|
+
ManyToOne,
|
|
20
|
+
OneToMany,
|
|
21
|
+
PrimaryGeneratedColumn,
|
|
22
|
+
UpdateDateColumn,
|
|
23
|
+
VersionColumn
|
|
24
|
+
} from "typeorm";
|
|
25
|
+
import {
|
|
26
|
+
FinanceDirection,
|
|
27
|
+
FinanceEntryCategory,
|
|
28
|
+
FinanceEntryOrigin,
|
|
29
|
+
FinanceSourceType
|
|
30
|
+
} from "../enums/index.js";
|
|
31
|
+
import { enumCheck } from "../finance-check.helper.js";
|
|
32
|
+
import { FinanceEntryItem } from "../finance-entry-items/finance-entry-item.entity.js";
|
|
33
|
+
import { FinanceLedger } from "../finance-ledgers/finance-ledger.entity.js";
|
|
34
|
+
let FinanceEntry = class {
|
|
35
|
+
};
|
|
36
|
+
__decorateClass([
|
|
37
|
+
PrimaryGeneratedColumn("uuid", { primaryKeyConstraintName: "PK_finance_entries" })
|
|
38
|
+
], FinanceEntry.prototype, "id", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
Column({
|
|
41
|
+
name: "category_group_id",
|
|
42
|
+
type: "int",
|
|
43
|
+
comment: "Livro-caixa (campeonato) a que o lan\xE7amento pertence."
|
|
44
|
+
})
|
|
45
|
+
], FinanceEntry.prototype, "categoryGroupId", 2);
|
|
46
|
+
__decorateClass([
|
|
47
|
+
Column({
|
|
48
|
+
name: "category_id",
|
|
49
|
+
type: "int",
|
|
50
|
+
nullable: true,
|
|
51
|
+
comment: "Categoria (tournaments.id), sem FK. Nulo = vale para o campeonato todo."
|
|
52
|
+
})
|
|
53
|
+
], FinanceEntry.prototype, "categoryId", 2);
|
|
54
|
+
__decorateClass([
|
|
55
|
+
Column({ type: "varchar", length: 16, comment: "income | expense." })
|
|
56
|
+
], FinanceEntry.prototype, "direction", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
Column({ type: "varchar", length: 32, comment: "Classifica\xE7\xE3o do lan\xE7amento." })
|
|
59
|
+
], FinanceEntry.prototype, "category", 2);
|
|
60
|
+
__decorateClass([
|
|
61
|
+
Column({ type: "varchar", length: 16, comment: "manual | system." })
|
|
62
|
+
], FinanceEntry.prototype, "origin", 2);
|
|
63
|
+
__decorateClass([
|
|
64
|
+
Column({
|
|
65
|
+
name: "source_type",
|
|
66
|
+
type: "varchar",
|
|
67
|
+
length: 40,
|
|
68
|
+
nullable: true,
|
|
69
|
+
comment: "De onde a linha \xE9 derivada. Chave da sincroniza\xE7\xE3o com source_ref."
|
|
70
|
+
})
|
|
71
|
+
], FinanceEntry.prototype, "sourceType", 2);
|
|
72
|
+
__decorateClass([
|
|
73
|
+
Column({
|
|
74
|
+
name: "source_ref",
|
|
75
|
+
type: "varchar",
|
|
76
|
+
length: 64,
|
|
77
|
+
nullable: true,
|
|
78
|
+
comment: "Id na origem (ex.: id da categoria)."
|
|
79
|
+
})
|
|
80
|
+
], FinanceEntry.prototype, "sourceRef", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
Column({
|
|
83
|
+
type: "varchar",
|
|
84
|
+
length: 120,
|
|
85
|
+
nullable: true,
|
|
86
|
+
comment: 'Descri\xE7\xE3o livre (ex.: "Padaria do Z\xE9"). Obrigat\xF3ria em other.'
|
|
87
|
+
})
|
|
88
|
+
], FinanceEntry.prototype, "description", 2);
|
|
89
|
+
__decorateClass([
|
|
90
|
+
Column({ name: "reference_date", type: "date", comment: "Data exibida na tela (YYYY-MM-DD)." })
|
|
91
|
+
], FinanceEntry.prototype, "referenceDate", 2);
|
|
92
|
+
__decorateClass([
|
|
93
|
+
Column({
|
|
94
|
+
name: "unit_amount_cents",
|
|
95
|
+
type: "int",
|
|
96
|
+
nullable: true,
|
|
97
|
+
comment: "Valor de cada item sem valor pr\xF3prio. Nulo = definir taxa; 0 = sem cobran\xE7a."
|
|
98
|
+
})
|
|
99
|
+
], FinanceEntry.prototype, "unitAmountCents", 2);
|
|
100
|
+
__decorateClass([
|
|
101
|
+
Column({
|
|
102
|
+
name: "expected_units",
|
|
103
|
+
type: "int",
|
|
104
|
+
nullable: true,
|
|
105
|
+
comment: "Quantos itens a linha deve ter pelo formato. Nulo = n\xE3o se aplica."
|
|
106
|
+
})
|
|
107
|
+
], FinanceEntry.prototype, "expectedUnits", 2);
|
|
108
|
+
__decorateClass([
|
|
109
|
+
Column({
|
|
110
|
+
name: "created_by",
|
|
111
|
+
type: "varchar",
|
|
112
|
+
length: 64,
|
|
113
|
+
nullable: true,
|
|
114
|
+
comment: "Usu\xE1rio que criou. Nulo = sistema."
|
|
115
|
+
})
|
|
116
|
+
], FinanceEntry.prototype, "createdBy", 2);
|
|
117
|
+
__decorateClass([
|
|
118
|
+
VersionColumn({ type: "int", default: 1, comment: "Lock otimista para edi\xE7\xF5es concorrentes." })
|
|
119
|
+
], FinanceEntry.prototype, "version", 2);
|
|
120
|
+
__decorateClass([
|
|
121
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz", default: () => "now()" })
|
|
122
|
+
], FinanceEntry.prototype, "createdAt", 2);
|
|
123
|
+
__decorateClass([
|
|
124
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz", default: () => "now()" })
|
|
125
|
+
], FinanceEntry.prototype, "updatedAt", 2);
|
|
126
|
+
__decorateClass([
|
|
127
|
+
DeleteDateColumn({ name: "deleted_at", type: "timestamptz", nullable: true })
|
|
128
|
+
], FinanceEntry.prototype, "deletedAt", 2);
|
|
129
|
+
__decorateClass([
|
|
130
|
+
ManyToOne(() => FinanceLedger, (ledger) => ledger.entries, { onDelete: "CASCADE" }),
|
|
131
|
+
JoinColumn({
|
|
132
|
+
name: "category_group_id",
|
|
133
|
+
referencedColumnName: "categoryGroupId",
|
|
134
|
+
foreignKeyConstraintName: "FK_finance_entries_ledger"
|
|
135
|
+
})
|
|
136
|
+
], FinanceEntry.prototype, "ledger", 2);
|
|
137
|
+
__decorateClass([
|
|
138
|
+
OneToMany(() => FinanceEntryItem, (item) => item.entry)
|
|
139
|
+
], FinanceEntry.prototype, "items", 2);
|
|
140
|
+
FinanceEntry = __decorateClass([
|
|
141
|
+
Entity({ schema: "finance", name: "entries" }),
|
|
142
|
+
Check("CHK_finance_entries_direction", enumCheck("direction", Object.values(FinanceDirection))),
|
|
143
|
+
Check("CHK_finance_entries_category", enumCheck("category", Object.values(FinanceEntryCategory))),
|
|
144
|
+
Check("CHK_finance_entries_origin", enumCheck("origin", Object.values(FinanceEntryOrigin))),
|
|
145
|
+
Check(
|
|
146
|
+
"CHK_finance_entries_source_type",
|
|
147
|
+
enumCheck("source_type", Object.values(FinanceSourceType), true)
|
|
148
|
+
),
|
|
149
|
+
Check("CHK_finance_entries_source_pair", '("source_type" IS NULL) = ("source_ref" IS NULL)'),
|
|
150
|
+
Check("CHK_finance_entries_unit_amount", '"unit_amount_cents" IS NULL OR "unit_amount_cents" >= 0'),
|
|
151
|
+
Check("CHK_finance_entries_expected_units", '"expected_units" IS NULL OR "expected_units" >= 0'),
|
|
152
|
+
Index("IDX_finance_entries_ledger", ["categoryGroupId"], { where: '"deleted_at" IS NULL' }),
|
|
153
|
+
Index("UQ_finance_entries_source", ["categoryGroupId", "sourceType", "sourceRef"], {
|
|
154
|
+
unique: true,
|
|
155
|
+
where: '"deleted_at" IS NULL AND "source_type" IS NOT NULL'
|
|
156
|
+
})
|
|
157
|
+
], FinanceEntry);
|
|
158
|
+
export {
|
|
159
|
+
FinanceEntry
|
|
160
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/finance/finance-entries/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FinanceSubjectType } from '../enums';
|
|
2
|
+
import { FinanceEntry } from '../finance-entries/finance-entry.entity';
|
|
3
|
+
export declare class FinanceEntryItem {
|
|
4
|
+
id: string;
|
|
5
|
+
entryId: string;
|
|
6
|
+
subjectType: FinanceSubjectType;
|
|
7
|
+
subjectRef: string | null;
|
|
8
|
+
label: string;
|
|
9
|
+
sublabel: string | null;
|
|
10
|
+
amountCents: number | null;
|
|
11
|
+
expectedOn: string | null;
|
|
12
|
+
settledOn: string | null;
|
|
13
|
+
settledBy: string | null;
|
|
14
|
+
detachedAt: Date | null;
|
|
15
|
+
position: number;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
entry?: FinanceEntry;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=finance-entry-item.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-entry-item.entity.d.ts","sourceRoot":"","sources":["../../../src/finance/finance-entry-items/finance-entry-item.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAqBvE,qBAoBa,gBAAgB;IAE3B,EAAE,EAAE,MAAM,CAAC;IAGX,OAAO,EAAE,MAAM,CAAC;IAQhB,WAAW,EAAE,kBAAkB,CAAC;IAShC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,KAAK,EAAE,MAAM,CAAC;IAQd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAQxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IASzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAIhB,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB"}
|
|
@@ -0,0 +1,139 @@
|
|
|
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 { FinanceSubjectType } from "../enums/index.js";
|
|
23
|
+
import { enumCheck } from "../finance-check.helper.js";
|
|
24
|
+
import { FinanceEntry } from "../finance-entries/finance-entry.entity.js";
|
|
25
|
+
let FinanceEntryItem = class {
|
|
26
|
+
};
|
|
27
|
+
__decorateClass([
|
|
28
|
+
PrimaryGeneratedColumn("uuid", { primaryKeyConstraintName: "PK_finance_entry_items" })
|
|
29
|
+
], FinanceEntryItem.prototype, "id", 2);
|
|
30
|
+
__decorateClass([
|
|
31
|
+
Column({ name: "entry_id", type: "uuid", comment: "Lan\xE7amento dono do item." })
|
|
32
|
+
], FinanceEntryItem.prototype, "entryId", 2);
|
|
33
|
+
__decorateClass([
|
|
34
|
+
Column({
|
|
35
|
+
name: "subject_type",
|
|
36
|
+
type: "varchar",
|
|
37
|
+
length: 16,
|
|
38
|
+
comment: "O que o item representa: single | team | team_match | prize_rank | player."
|
|
39
|
+
})
|
|
40
|
+
], FinanceEntryItem.prototype, "subjectType", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
Column({
|
|
43
|
+
name: "subject_ref",
|
|
44
|
+
type: "varchar",
|
|
45
|
+
length: 64,
|
|
46
|
+
nullable: true,
|
|
47
|
+
comment: "Id do sujeito na origem. Nulo s\xF3 em single."
|
|
48
|
+
})
|
|
49
|
+
], FinanceEntryItem.prototype, "subjectRef", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
Column({ type: "varchar", length: 160, comment: "Nome do sujeito, copiado da origem." })
|
|
52
|
+
], FinanceEntryItem.prototype, "label", 2);
|
|
53
|
+
__decorateClass([
|
|
54
|
+
Column({
|
|
55
|
+
type: "varchar",
|
|
56
|
+
length: 160,
|
|
57
|
+
nullable: true,
|
|
58
|
+
comment: 'Detalhe (ex.: advers\xE1rio, "Trof\xE9u + Dinheiro").'
|
|
59
|
+
})
|
|
60
|
+
], FinanceEntryItem.prototype, "sublabel", 2);
|
|
61
|
+
__decorateClass([
|
|
62
|
+
Column({
|
|
63
|
+
name: "amount_cents",
|
|
64
|
+
type: "int",
|
|
65
|
+
nullable: true,
|
|
66
|
+
comment: "Valor pr\xF3prio do item. Nulo = unit_amount_cents do lan\xE7amento."
|
|
67
|
+
})
|
|
68
|
+
], FinanceEntryItem.prototype, "amountCents", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
Column({
|
|
71
|
+
name: "expected_on",
|
|
72
|
+
type: "date",
|
|
73
|
+
nullable: true,
|
|
74
|
+
comment: 'Data prevista (ex.: data do jogo), para "A jogar".'
|
|
75
|
+
})
|
|
76
|
+
], FinanceEntryItem.prototype, "expectedOn", 2);
|
|
77
|
+
__decorateClass([
|
|
78
|
+
Column({
|
|
79
|
+
name: "settled_on",
|
|
80
|
+
type: "date",
|
|
81
|
+
nullable: true,
|
|
82
|
+
comment: "Data em que foi pago/recebido. Nulo = em aberto."
|
|
83
|
+
})
|
|
84
|
+
], FinanceEntryItem.prototype, "settledOn", 2);
|
|
85
|
+
__decorateClass([
|
|
86
|
+
Column({
|
|
87
|
+
name: "settled_by",
|
|
88
|
+
type: "varchar",
|
|
89
|
+
length: 64,
|
|
90
|
+
nullable: true,
|
|
91
|
+
comment: "Quem marcou como pago."
|
|
92
|
+
})
|
|
93
|
+
], FinanceEntryItem.prototype, "settledBy", 2);
|
|
94
|
+
__decorateClass([
|
|
95
|
+
Column({
|
|
96
|
+
name: "detached_at",
|
|
97
|
+
type: "timestamptz",
|
|
98
|
+
nullable: true,
|
|
99
|
+
comment: "O sujeito sumiu da origem depois de pago; o item fica como hist\xF3rico."
|
|
100
|
+
})
|
|
101
|
+
], FinanceEntryItem.prototype, "detachedAt", 2);
|
|
102
|
+
__decorateClass([
|
|
103
|
+
Column({ type: "smallint", default: 0, comment: "Ordem de exibi\xE7\xE3o." })
|
|
104
|
+
], FinanceEntryItem.prototype, "position", 2);
|
|
105
|
+
__decorateClass([
|
|
106
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz", default: () => "now()" })
|
|
107
|
+
], FinanceEntryItem.prototype, "createdAt", 2);
|
|
108
|
+
__decorateClass([
|
|
109
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz", default: () => "now()" })
|
|
110
|
+
], FinanceEntryItem.prototype, "updatedAt", 2);
|
|
111
|
+
__decorateClass([
|
|
112
|
+
ManyToOne(() => FinanceEntry, (entry) => entry.items, { onDelete: "CASCADE" }),
|
|
113
|
+
JoinColumn({ name: "entry_id", foreignKeyConstraintName: "FK_finance_entry_items_entry" })
|
|
114
|
+
], FinanceEntryItem.prototype, "entry", 2);
|
|
115
|
+
FinanceEntryItem = __decorateClass([
|
|
116
|
+
Entity({ schema: "finance", name: "entry_items" }),
|
|
117
|
+
Check(
|
|
118
|
+
"CHK_finance_entry_items_subject_type",
|
|
119
|
+
enumCheck("subject_type", Object.values(FinanceSubjectType))
|
|
120
|
+
),
|
|
121
|
+
Check(
|
|
122
|
+
"CHK_finance_entry_items_single_without_ref",
|
|
123
|
+
`("subject_type" = '${FinanceSubjectType.SINGLE}') = ("subject_ref" IS NULL)`
|
|
124
|
+
),
|
|
125
|
+
Check("CHK_finance_entry_items_settlement_pair", '("settled_on" IS NULL) = ("settled_by" IS NULL)'),
|
|
126
|
+
Check("CHK_finance_entry_items_amount", '"amount_cents" IS NULL OR "amount_cents" >= 0'),
|
|
127
|
+
Index("IDX_finance_entry_items_entry", ["entryId"]),
|
|
128
|
+
Index("UQ_finance_entry_items_subject", ["entryId", "subjectType", "subjectRef"], {
|
|
129
|
+
unique: true,
|
|
130
|
+
where: '"subject_ref" IS NOT NULL'
|
|
131
|
+
}),
|
|
132
|
+
Index("UQ_finance_entry_items_single", ["entryId"], {
|
|
133
|
+
unique: true,
|
|
134
|
+
where: `"subject_type" = '${FinanceSubjectType.SINGLE}'`
|
|
135
|
+
})
|
|
136
|
+
], FinanceEntryItem);
|
|
137
|
+
export {
|
|
138
|
+
FinanceEntryItem
|
|
139
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/finance/finance-entry-items/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FinanceEntry } from '../finance-entries/finance-entry.entity';
|
|
2
|
+
export declare class FinanceLedger {
|
|
3
|
+
categoryGroupId: number;
|
|
4
|
+
organizationId: number;
|
|
5
|
+
reconciledAt: Date | null;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
entries?: FinanceEntry[];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=finance-ledger.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-ledger.entity.d.ts","sourceRoot":"","sources":["../../../src/finance/finance-ledgers/finance-ledger.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAoBvE,qBACa,aAAa;IAOxB,eAAe,EAAE,MAAM,CAAC;IAOxB,cAAc,EAAE,MAAM,CAAC;IAQvB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAG1B,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;CAC1B"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
OneToMany,
|
|
16
|
+
PrimaryColumn,
|
|
17
|
+
UpdateDateColumn
|
|
18
|
+
} from "typeorm";
|
|
19
|
+
import { FinanceEntry } from "../finance-entries/finance-entry.entity.js";
|
|
20
|
+
let FinanceLedger = class {
|
|
21
|
+
};
|
|
22
|
+
__decorateClass([
|
|
23
|
+
PrimaryColumn({
|
|
24
|
+
name: "category_group_id",
|
|
25
|
+
type: "int",
|
|
26
|
+
primaryKeyConstraintName: "PK_finance_ledgers",
|
|
27
|
+
comment: "Id do campeonato (tournament_category_groups.id), sem FK."
|
|
28
|
+
})
|
|
29
|
+
], FinanceLedger.prototype, "categoryGroupId", 2);
|
|
30
|
+
__decorateClass([
|
|
31
|
+
Column({
|
|
32
|
+
name: "organization_id",
|
|
33
|
+
type: "int",
|
|
34
|
+
comment: "Organiza\xE7\xE3o dona do campeonato, copiada para autorizar sem join."
|
|
35
|
+
})
|
|
36
|
+
], FinanceLedger.prototype, "organizationId", 2);
|
|
37
|
+
__decorateClass([
|
|
38
|
+
Column({
|
|
39
|
+
name: "reconciled_at",
|
|
40
|
+
type: "timestamptz",
|
|
41
|
+
nullable: true,
|
|
42
|
+
comment: "\xDAltima sincroniza\xE7\xE3o das linhas autom\xE1ticas com os outros contextos."
|
|
43
|
+
})
|
|
44
|
+
], FinanceLedger.prototype, "reconciledAt", 2);
|
|
45
|
+
__decorateClass([
|
|
46
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz", default: () => "now()" })
|
|
47
|
+
], FinanceLedger.prototype, "createdAt", 2);
|
|
48
|
+
__decorateClass([
|
|
49
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz", default: () => "now()" })
|
|
50
|
+
], FinanceLedger.prototype, "updatedAt", 2);
|
|
51
|
+
__decorateClass([
|
|
52
|
+
OneToMany(() => FinanceEntry, (entry) => entry.ledger)
|
|
53
|
+
], FinanceLedger.prototype, "entries", 2);
|
|
54
|
+
FinanceLedger = __decorateClass([
|
|
55
|
+
Entity({ schema: "finance", name: "ledgers" })
|
|
56
|
+
], FinanceLedger);
|
|
57
|
+
export {
|
|
58
|
+
FinanceLedger
|
|
59
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/finance/finance-ledgers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/finance/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './coupons';
|
|
|
7
7
|
export { DATABASE_ENTITIES } from './database-entities';
|
|
8
8
|
export * from './facilities';
|
|
9
9
|
export * from './feed';
|
|
10
|
+
export * from './finance';
|
|
10
11
|
export * from './history-logs';
|
|
11
12
|
export * from './notifications';
|
|
12
13
|
export * from './payments';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./coupons/index.js";
|
|
|
7
7
|
import { DATABASE_ENTITIES } from "./database-entities/index.js";
|
|
8
8
|
export * from "./facilities/index.js";
|
|
9
9
|
export * from "./feed/index.js";
|
|
10
|
+
export * from "./finance/index.js";
|
|
10
11
|
export * from "./history-logs/index.js";
|
|
11
12
|
export * from "./notifications/index.js";
|
|
12
13
|
export * from "./payments/index.js";
|