@natrave/shared-entities 8.2.0 → 8.3.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.
|
@@ -10,6 +10,7 @@ export declare class BillingSubscription {
|
|
|
10
10
|
status: BillingSubscriptionStatus;
|
|
11
11
|
trialStartsAt: Date | null;
|
|
12
12
|
trialEndsAt: Date | null;
|
|
13
|
+
freeMatchQuotaOverride: number | null;
|
|
13
14
|
activatedAt: Date | null;
|
|
14
15
|
canceledAt: Date | null;
|
|
15
16
|
currentPeriodStart: Date | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-subscription.entity.d.ts","sourceRoot":"","sources":["../../../src/billing/billing-subscriptions/billing-subscription.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"billing-subscription.entity.d.ts","sourceRoot":"","sources":["../../../src/billing/billing-subscriptions/billing-subscription.entity.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAyBrF,qBAca,mBAAmB;IAI9B,EAAE,EAAE,MAAM,CAAC;IAOX,gBAAgB,EAAE,MAAM,CAAC;IASzB,iBAAiB,EAAE,wBAAwB,CAAC;IAO5C,eAAe,EAAE,MAAM,CAAC;IASxB,MAAM,EAAE,yBAAyB,CAAC;IAQlC,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAQ3B,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAQzB,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IAQtC,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAQzB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IAQxB,kBAAkB,EAAE,IAAI,GAAG,IAAI,CAAC;IAQhC,gBAAgB,EAAE,IAAI,GAAG,IAAI,CAAC;IAO9B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAYhB,cAAc,EAAE,cAAc,CAAC;IAM/B,KAAK,EAAE,uBAAuB,EAAE,CAAC;CAClC"}
|
|
@@ -9,6 +9,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
9
9
|
return result;
|
|
10
10
|
};
|
|
11
11
|
import {
|
|
12
|
+
Check,
|
|
12
13
|
Column,
|
|
13
14
|
CreateDateColumn,
|
|
14
15
|
Entity,
|
|
@@ -79,6 +80,14 @@ __decorateClass([
|
|
|
79
80
|
comment: "Fim do trial. Nulo quando a assinatura n\xE3o tem trial."
|
|
80
81
|
})
|
|
81
82
|
], BillingSubscription.prototype, "trialEndsAt", 2);
|
|
83
|
+
__decorateClass([
|
|
84
|
+
Column({
|
|
85
|
+
name: "free_match_quota_override",
|
|
86
|
+
type: "int",
|
|
87
|
+
nullable: true,
|
|
88
|
+
comment: "Cota de partidas gratuitas S\xD3 deste campeonato (cortesia). Nulo = usa a do plano."
|
|
89
|
+
})
|
|
90
|
+
], BillingSubscription.prototype, "freeMatchQuotaOverride", 2);
|
|
82
91
|
__decorateClass([
|
|
83
92
|
Column({
|
|
84
93
|
name: "activated_at",
|
|
@@ -136,6 +145,10 @@ __decorateClass([
|
|
|
136
145
|
], BillingSubscription.prototype, "items", 2);
|
|
137
146
|
BillingSubscription = __decorateClass([
|
|
138
147
|
Entity("billing_subscriptions"),
|
|
148
|
+
Check(
|
|
149
|
+
"CHK_billing_subscriptions_free_match_quota_override_non_negative",
|
|
150
|
+
'"free_match_quota_override" IS NULL OR "free_match_quota_override" >= 0'
|
|
151
|
+
),
|
|
139
152
|
Unique("UQ_billing_subscriptions_subject", ["subjectEntityType", "subjectEntityId"]),
|
|
140
153
|
Index("idx_billing_subscriptions_account", ["billingAccountId"]),
|
|
141
154
|
Index("idx_billing_subscriptions_subject", ["subjectEntityType", "subjectEntityId"]),
|