@natrave/shared-entities 9.15.0 → 9.16.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 -2
- package/dist/database-entities/index.d.ts.map +1 -1
- package/dist/database-entities/index.js +4 -0
- package/dist/teams/index.d.ts +1 -0
- package/dist/teams/index.d.ts.map +1 -1
- package/dist/teams/index.js +1 -0
- package/dist/teams/team-pro/enums/team-pro-store.enum.d.ts +5 -0
- package/dist/teams/team-pro/enums/team-pro-store.enum.d.ts.map +1 -0
- package/dist/teams/team-pro/enums/team-pro-store.enum.js +8 -0
- package/dist/teams/team-pro/enums/team-pro-subscription-status.enum.d.ts +8 -0
- package/dist/teams/team-pro/enums/team-pro-subscription-status.enum.d.ts.map +1 -0
- package/dist/teams/team-pro/enums/team-pro-subscription-status.enum.js +11 -0
- package/dist/teams/team-pro/index.d.ts +5 -0
- package/dist/teams/team-pro/index.d.ts.map +1 -0
- package/dist/teams/team-pro/index.js +10 -0
- package/dist/teams/team-pro/team-pro-store-event.entity.d.ts +17 -0
- package/dist/teams/team-pro/team-pro-store-event.entity.d.ts.map +1 -0
- package/dist/teams/team-pro/team-pro-store-event.entity.js +69 -0
- package/dist/teams/team-pro/team-pro-subscription.entity.d.ts +25 -0
- package/dist/teams/team-pro/team-pro-subscription.entity.d.ts.map +1 -0
- package/dist/teams/team-pro/team-pro-subscription.entity.js +99 -0
- package/package.json +1 -1
|
@@ -13,8 +13,8 @@ import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
|
|
|
13
13
|
import { Player, PlayerPersonalData, PlayerPosition } from '../players';
|
|
14
14
|
import { Promotion, PromotionAdvertiser, PromotionContact, PromotionCreative, PromotionEvent, PromotionTarget, PromotionUserState } from '../promotions';
|
|
15
15
|
import { Brand, BrandIdentity, Segment, Sponsor, SponsorExposureEvent, SponsorshipAuditEvent, SponsorshipSettings } from '../sponsorship';
|
|
16
|
-
import { PlayerTeam, Team, TeamAccessCode, TeamFollow, TeamJoinRequest, TeamKit, TeamModality, TeamSponsor, TeamTrophy } from '../teams';
|
|
16
|
+
import { PlayerTeam, Team, TeamAccessCode, TeamFollow, TeamJoinRequest, TeamKit, TeamModality, TeamProStoreEvent, TeamProSubscription, TeamSponsor, TeamTrophy } from '../teams';
|
|
17
17
|
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';
|
|
18
18
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
19
|
-
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 SponsorshipAuditEvent | typeof Segment | typeof BrandIdentity | typeof Brand | typeof SponsorExposureEvent | typeof SponsorshipSettings | typeof Sponsor | typeof UserDomainEvent | typeof UserEventView)[];
|
|
19
|
+
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 TeamProSubscription | typeof TeamProStoreEvent | 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 SponsorshipAuditEvent | typeof Segment | typeof BrandIdentity | typeof Brand | typeof SponsorExposureEvent | typeof SponsorshipSettings | typeof Sponsor | typeof UserDomainEvent | typeof UserEventView)[];
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,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,E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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,
|
|
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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B,CAAC"}
|
|
@@ -114,6 +114,8 @@ import {
|
|
|
114
114
|
TeamJoinRequest,
|
|
115
115
|
TeamKit,
|
|
116
116
|
TeamModality,
|
|
117
|
+
TeamProStoreEvent,
|
|
118
|
+
TeamProSubscription,
|
|
117
119
|
TeamSponsor,
|
|
118
120
|
TeamTrophy
|
|
119
121
|
} from "../teams/index.js";
|
|
@@ -292,6 +294,8 @@ const DATABASE_ENTITIES = [
|
|
|
292
294
|
TournamentAllowedPhone,
|
|
293
295
|
TeamTrophy,
|
|
294
296
|
TeamSponsor,
|
|
297
|
+
TeamProSubscription,
|
|
298
|
+
TeamProStoreEvent,
|
|
295
299
|
TeamKit,
|
|
296
300
|
TeamFollow,
|
|
297
301
|
TournamentBracketSlot,
|
package/dist/teams/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/teams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/teams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
|
package/dist/teams/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./team-follows/index.js";
|
|
|
6
6
|
export * from "./team-join-requests/index.js";
|
|
7
7
|
export * from "./team-kits/index.js";
|
|
8
8
|
export * from "./team-modality/index.js";
|
|
9
|
+
export * from "./team-pro/index.js";
|
|
9
10
|
export * from "./team-sponsor/index.js";
|
|
10
11
|
export * from "./team-trophy/index.js";
|
|
11
12
|
export * from "./teams/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-pro-store.enum.d.ts","sourceRoot":"","sources":["../../../../src/teams/team-pro/enums/team-pro-store.enum.ts"],"names":[],"mappings":"AACA,oBAAY,YAAY;IACtB,SAAS,cAAc;IACvB,UAAU,eAAe;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-pro-subscription-status.enum.d.ts","sourceRoot":"","sources":["../../../../src/teams/team-pro/enums/team-pro-subscription-status.enum.ts"],"names":[],"mappings":"AAKA,oBAAY,yBAAyB;IAEnC,MAAM,WAAW;IAEjB,YAAY,iBAAiB;IAE7B,OAAO,YAAY;IAEnB,OAAO,YAAY;IAEnB,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var TeamProSubscriptionStatus = /* @__PURE__ */ ((TeamProSubscriptionStatus2) => {
|
|
2
|
+
TeamProSubscriptionStatus2["ACTIVE"] = "active";
|
|
3
|
+
TeamProSubscriptionStatus2["GRACE_PERIOD"] = "grace_period";
|
|
4
|
+
TeamProSubscriptionStatus2["ON_HOLD"] = "on_hold";
|
|
5
|
+
TeamProSubscriptionStatus2["EXPIRED"] = "expired";
|
|
6
|
+
TeamProSubscriptionStatus2["REVOKED"] = "revoked";
|
|
7
|
+
return TeamProSubscriptionStatus2;
|
|
8
|
+
})(TeamProSubscriptionStatus || {});
|
|
9
|
+
export {
|
|
10
|
+
TeamProSubscriptionStatus
|
|
11
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { TeamProStore } from './enums/team-pro-store.enum';
|
|
2
|
+
export { TeamProSubscriptionStatus } from './enums/team-pro-subscription-status.enum';
|
|
3
|
+
export { TeamProStoreEvent } from './team-pro-store-event.entity';
|
|
4
|
+
export { TeamProSubscription } from './team-pro-subscription.entity';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/teams/team-pro/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TeamProStore } from "./enums/team-pro-store.enum.js";
|
|
2
|
+
import { TeamProSubscriptionStatus } from "./enums/team-pro-subscription-status.enum.js";
|
|
3
|
+
import { TeamProStoreEvent } from "./team-pro-store-event.entity.js";
|
|
4
|
+
import { TeamProSubscription } from "./team-pro-subscription.entity.js";
|
|
5
|
+
export {
|
|
6
|
+
TeamProStore,
|
|
7
|
+
TeamProStoreEvent,
|
|
8
|
+
TeamProSubscription,
|
|
9
|
+
TeamProSubscriptionStatus
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TeamProStore } from './enums/team-pro-store.enum';
|
|
2
|
+
import { TeamProSubscription } from './team-pro-subscription.entity';
|
|
3
|
+
export declare class TeamProStoreEvent {
|
|
4
|
+
id: number;
|
|
5
|
+
store: TeamProStore;
|
|
6
|
+
notificationId: string;
|
|
7
|
+
notificationType: string;
|
|
8
|
+
subtype: string | null;
|
|
9
|
+
storeSubscriptionId: string | null;
|
|
10
|
+
subscriptionId: number | null;
|
|
11
|
+
payload: Record<string, unknown>;
|
|
12
|
+
processedAt: Date | null;
|
|
13
|
+
error: string | null;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
subscription: TeamProSubscription | null;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=team-pro-store-event.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-pro-store-event.entity.d.ts","sourceRoot":"","sources":["../../../src/teams/team-pro/team-pro-store-event.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAUrE,qBAIa,iBAAiB;IAE5B,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,YAAY,CAAC;IAIpB,cAAc,EAAE,MAAM,CAAC;IAIvB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAIvB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IAInC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAI9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGjC,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAGzB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrB,SAAS,EAAE,IAAI,CAAC;IAKhB,YAAY,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC1C"}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { TeamProSubscription } from "./team-pro-subscription.entity.js";
|
|
22
|
+
let TeamProStoreEvent = class {
|
|
23
|
+
};
|
|
24
|
+
__decorateClass([
|
|
25
|
+
PrimaryGeneratedColumn()
|
|
26
|
+
], TeamProStoreEvent.prototype, "id", 2);
|
|
27
|
+
__decorateClass([
|
|
28
|
+
Column({ type: "varchar", length: 16 })
|
|
29
|
+
], TeamProStoreEvent.prototype, "store", 2);
|
|
30
|
+
__decorateClass([
|
|
31
|
+
Column({ name: "notification_id", type: "varchar", length: 100 })
|
|
32
|
+
], TeamProStoreEvent.prototype, "notificationId", 2);
|
|
33
|
+
__decorateClass([
|
|
34
|
+
Column({ name: "notification_type", type: "varchar", length: 60 })
|
|
35
|
+
], TeamProStoreEvent.prototype, "notificationType", 2);
|
|
36
|
+
__decorateClass([
|
|
37
|
+
Column({ type: "varchar", length: 60, nullable: true })
|
|
38
|
+
], TeamProStoreEvent.prototype, "subtype", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
Column({ name: "store_subscription_id", type: "text", nullable: true })
|
|
41
|
+
], TeamProStoreEvent.prototype, "storeSubscriptionId", 2);
|
|
42
|
+
__decorateClass([
|
|
43
|
+
Column({ name: "subscription_id", type: "int", nullable: true })
|
|
44
|
+
], TeamProStoreEvent.prototype, "subscriptionId", 2);
|
|
45
|
+
__decorateClass([
|
|
46
|
+
Column({ type: "jsonb" })
|
|
47
|
+
], TeamProStoreEvent.prototype, "payload", 2);
|
|
48
|
+
__decorateClass([
|
|
49
|
+
Column({ name: "processed_at", type: "timestamptz", nullable: true })
|
|
50
|
+
], TeamProStoreEvent.prototype, "processedAt", 2);
|
|
51
|
+
__decorateClass([
|
|
52
|
+
Column({ type: "text", nullable: true })
|
|
53
|
+
], TeamProStoreEvent.prototype, "error", 2);
|
|
54
|
+
__decorateClass([
|
|
55
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
56
|
+
], TeamProStoreEvent.prototype, "createdAt", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
ManyToOne(() => TeamProSubscription, { onDelete: "SET NULL", nullable: true }),
|
|
59
|
+
JoinColumn({ name: "subscription_id" })
|
|
60
|
+
], TeamProStoreEvent.prototype, "subscription", 2);
|
|
61
|
+
TeamProStoreEvent = __decorateClass([
|
|
62
|
+
Entity("team_pro_store_events"),
|
|
63
|
+
Index("UQ_team_pro_store_events_notification", ["store", "notificationId"], { unique: true }),
|
|
64
|
+
Index("IDX_team_pro_store_events_subscription", ["subscriptionId"]),
|
|
65
|
+
Check("CHK_team_pro_store_events_store", `"store" IN ('app_store', 'play_store')`)
|
|
66
|
+
], TeamProStoreEvent);
|
|
67
|
+
export {
|
|
68
|
+
TeamProStoreEvent
|
|
69
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { User } from '../../app-auth';
|
|
2
|
+
import { Team } from '../teams';
|
|
3
|
+
import { TeamProStore } from './enums/team-pro-store.enum';
|
|
4
|
+
import { TeamProSubscriptionStatus } from './enums/team-pro-subscription-status.enum';
|
|
5
|
+
export declare class TeamProSubscription {
|
|
6
|
+
id: number;
|
|
7
|
+
teamId: number;
|
|
8
|
+
subscriberUserId: string | null;
|
|
9
|
+
store: TeamProStore;
|
|
10
|
+
productId: string;
|
|
11
|
+
storeSubscriptionId: string;
|
|
12
|
+
latestTransactionId: string | null;
|
|
13
|
+
status: TeamProSubscriptionStatus;
|
|
14
|
+
autoRenews: boolean;
|
|
15
|
+
expiresAt: Date;
|
|
16
|
+
entitledUntil: Date;
|
|
17
|
+
revokedAt: Date | null;
|
|
18
|
+
environment: string;
|
|
19
|
+
storeUpdatedAt: Date;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
team: Team;
|
|
23
|
+
subscriber: User | null;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=team-pro-subscription.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-pro-subscription.entity.d.ts","sourceRoot":"","sources":["../../../src/teams/team-pro/team-pro-subscription.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAatF,qBAaa,mBAAmB;IAE9B,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAIf,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAIhC,KAAK,EAAE,YAAY,CAAC;IAIpB,SAAS,EAAE,MAAM,CAAC;IAIlB,mBAAmB,EAAE,MAAM,CAAC;IAI5B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGnC,MAAM,EAAE,yBAAyB,CAAC;IAIlC,UAAU,EAAE,OAAO,CAAC;IAIpB,SAAS,EAAE,IAAI,CAAC;IAIhB,aAAa,EAAE,IAAI,CAAC;IAIpB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAIvB,WAAW,EAAE,MAAM,CAAC;IAIpB,cAAc,EAAE,IAAI,CAAC;IAIrB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAKhB,IAAI,EAAE,IAAI,CAAC;IAIX,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB"}
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { User } from "../../app-auth/index.js";
|
|
23
|
+
import { Team } from "../teams/index.js";
|
|
24
|
+
let TeamProSubscription = class {
|
|
25
|
+
};
|
|
26
|
+
__decorateClass([
|
|
27
|
+
PrimaryGeneratedColumn()
|
|
28
|
+
], TeamProSubscription.prototype, "id", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({ name: "team_id", type: "int" })
|
|
31
|
+
], TeamProSubscription.prototype, "teamId", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({ name: "subscriber_user_id", type: "uuid", nullable: true })
|
|
34
|
+
], TeamProSubscription.prototype, "subscriberUserId", 2);
|
|
35
|
+
__decorateClass([
|
|
36
|
+
Column({ type: "varchar", length: 16 })
|
|
37
|
+
], TeamProSubscription.prototype, "store", 2);
|
|
38
|
+
__decorateClass([
|
|
39
|
+
Column({ name: "product_id", type: "varchar", length: 100 })
|
|
40
|
+
], TeamProSubscription.prototype, "productId", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
Column({ name: "store_subscription_id", type: "text" })
|
|
43
|
+
], TeamProSubscription.prototype, "storeSubscriptionId", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
Column({ name: "latest_transaction_id", type: "varchar", length: 255, nullable: true })
|
|
46
|
+
], TeamProSubscription.prototype, "latestTransactionId", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
Column({ type: "varchar", length: 16 })
|
|
49
|
+
], TeamProSubscription.prototype, "status", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
Column({ name: "auto_renews", type: "boolean", default: true })
|
|
52
|
+
], TeamProSubscription.prototype, "autoRenews", 2);
|
|
53
|
+
__decorateClass([
|
|
54
|
+
Column({ name: "expires_at", type: "timestamptz" })
|
|
55
|
+
], TeamProSubscription.prototype, "expiresAt", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
Column({ name: "entitled_until", type: "timestamptz" })
|
|
58
|
+
], TeamProSubscription.prototype, "entitledUntil", 2);
|
|
59
|
+
__decorateClass([
|
|
60
|
+
Column({ name: "revoked_at", type: "timestamptz", nullable: true })
|
|
61
|
+
], TeamProSubscription.prototype, "revokedAt", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
Column({ type: "varchar", length: 20 })
|
|
64
|
+
], TeamProSubscription.prototype, "environment", 2);
|
|
65
|
+
__decorateClass([
|
|
66
|
+
Column({ name: "store_updated_at", type: "timestamptz" })
|
|
67
|
+
], TeamProSubscription.prototype, "storeUpdatedAt", 2);
|
|
68
|
+
__decorateClass([
|
|
69
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
70
|
+
], TeamProSubscription.prototype, "createdAt", 2);
|
|
71
|
+
__decorateClass([
|
|
72
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
73
|
+
], TeamProSubscription.prototype, "updatedAt", 2);
|
|
74
|
+
__decorateClass([
|
|
75
|
+
ManyToOne(() => Team, { onDelete: "RESTRICT" }),
|
|
76
|
+
JoinColumn({ name: "team_id" })
|
|
77
|
+
], TeamProSubscription.prototype, "team", 2);
|
|
78
|
+
__decorateClass([
|
|
79
|
+
ManyToOne(() => User, { onDelete: "SET NULL", nullable: true }),
|
|
80
|
+
JoinColumn({ name: "subscriber_user_id" })
|
|
81
|
+
], TeamProSubscription.prototype, "subscriber", 2);
|
|
82
|
+
TeamProSubscription = __decorateClass([
|
|
83
|
+
Entity("team_pro_subscriptions"),
|
|
84
|
+
Index("UQ_team_pro_subscriptions_store_subscription", ["store", "storeSubscriptionId"], {
|
|
85
|
+
unique: true
|
|
86
|
+
}),
|
|
87
|
+
Index("IDX_team_pro_subscriptions_team_entitled", ["teamId", "entitledUntil"], {
|
|
88
|
+
where: '"revoked_at" IS NULL'
|
|
89
|
+
}),
|
|
90
|
+
Index("IDX_team_pro_subscriptions_subscriber", ["subscriberUserId"]),
|
|
91
|
+
Check("CHK_team_pro_subscriptions_store", `"store" IN ('app_store', 'play_store')`),
|
|
92
|
+
Check(
|
|
93
|
+
"CHK_team_pro_subscriptions_status",
|
|
94
|
+
`"status" IN ('active', 'grace_period', 'on_hold', 'expired', 'revoked')`
|
|
95
|
+
)
|
|
96
|
+
], TeamProSubscription);
|
|
97
|
+
export {
|
|
98
|
+
TeamProSubscription
|
|
99
|
+
};
|