@thejob/schema 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/billing/billing.schema.ts +7 -0
package/dist/index.cjs
CHANGED
|
@@ -4028,6 +4028,13 @@ var BillingSubscriptionSchema = (0, import_yup40.object)({
|
|
|
4028
4028
|
currentPeriodEnd: (0, import_yup40.number)().optional().label("Current Period End"),
|
|
4029
4029
|
/** Set when a cancellation is scheduled; access continues until the period ends. */
|
|
4030
4030
|
canceledAt: (0, import_yup40.number)().optional().label("Canceled At"),
|
|
4031
|
+
/**
|
|
4032
|
+
* A downgrade booked for the end of the current period: the plan key it moves
|
|
4033
|
+
* to at renewal. Upgrades never set this; they apply immediately. Mirrored
|
|
4034
|
+
* from the Paddle subscription's own `customData`, so Paddle stays the source
|
|
4035
|
+
* of truth.
|
|
4036
|
+
*/
|
|
4037
|
+
pendingPlanKey: (0, import_yup40.string)().optional().label("Pending Plan Key"),
|
|
4031
4038
|
/** `occurred_at` of the newest Paddle event applied. Guards out-of-order writes. */
|
|
4032
4039
|
lastEventAt: (0, import_yup40.number)().required().default(0).label("Last Event At"),
|
|
4033
4040
|
createdAt: (0, import_yup40.number)().optional().label("Created At"),
|
package/dist/index.d.cts
CHANGED
|
@@ -3546,6 +3546,7 @@ declare const BillingSubscriptionSchema: yup.ObjectSchema<{
|
|
|
3546
3546
|
currentPeriodStart: number | undefined;
|
|
3547
3547
|
currentPeriodEnd: number | undefined;
|
|
3548
3548
|
canceledAt: number | undefined;
|
|
3549
|
+
pendingPlanKey: string | undefined;
|
|
3549
3550
|
lastEventAt: number;
|
|
3550
3551
|
createdAt: number | undefined;
|
|
3551
3552
|
updatedAt: number | undefined;
|
|
@@ -3559,6 +3560,7 @@ declare const BillingSubscriptionSchema: yup.ObjectSchema<{
|
|
|
3559
3560
|
currentPeriodStart: undefined;
|
|
3560
3561
|
currentPeriodEnd: undefined;
|
|
3561
3562
|
canceledAt: undefined;
|
|
3563
|
+
pendingPlanKey: undefined;
|
|
3562
3564
|
lastEventAt: 0;
|
|
3563
3565
|
createdAt: undefined;
|
|
3564
3566
|
updatedAt: undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -3546,6 +3546,7 @@ declare const BillingSubscriptionSchema: yup.ObjectSchema<{
|
|
|
3546
3546
|
currentPeriodStart: number | undefined;
|
|
3547
3547
|
currentPeriodEnd: number | undefined;
|
|
3548
3548
|
canceledAt: number | undefined;
|
|
3549
|
+
pendingPlanKey: string | undefined;
|
|
3549
3550
|
lastEventAt: number;
|
|
3550
3551
|
createdAt: number | undefined;
|
|
3551
3552
|
updatedAt: number | undefined;
|
|
@@ -3559,6 +3560,7 @@ declare const BillingSubscriptionSchema: yup.ObjectSchema<{
|
|
|
3559
3560
|
currentPeriodStart: undefined;
|
|
3560
3561
|
currentPeriodEnd: undefined;
|
|
3561
3562
|
canceledAt: undefined;
|
|
3563
|
+
pendingPlanKey: undefined;
|
|
3562
3564
|
lastEventAt: 0;
|
|
3563
3565
|
createdAt: undefined;
|
|
3564
3566
|
updatedAt: undefined;
|
package/dist/index.js
CHANGED
|
@@ -3758,6 +3758,13 @@ var BillingSubscriptionSchema = object38({
|
|
|
3758
3758
|
currentPeriodEnd: number17().optional().label("Current Period End"),
|
|
3759
3759
|
/** Set when a cancellation is scheduled; access continues until the period ends. */
|
|
3760
3760
|
canceledAt: number17().optional().label("Canceled At"),
|
|
3761
|
+
/**
|
|
3762
|
+
* A downgrade booked for the end of the current period: the plan key it moves
|
|
3763
|
+
* to at renewal. Upgrades never set this; they apply immediately. Mirrored
|
|
3764
|
+
* from the Paddle subscription's own `customData`, so Paddle stays the source
|
|
3765
|
+
* of truth.
|
|
3766
|
+
*/
|
|
3767
|
+
pendingPlanKey: string27().optional().label("Pending Plan Key"),
|
|
3761
3768
|
/** `occurred_at` of the newest Paddle event applied. Guards out-of-order writes. */
|
|
3762
3769
|
lastEventAt: number17().required().default(0).label("Last Event At"),
|
|
3763
3770
|
createdAt: number17().optional().label("Created At"),
|
package/package.json
CHANGED
|
@@ -207,6 +207,13 @@ export const BillingSubscriptionSchema = object({
|
|
|
207
207
|
currentPeriodEnd: number().optional().label("Current Period End"),
|
|
208
208
|
/** Set when a cancellation is scheduled; access continues until the period ends. */
|
|
209
209
|
canceledAt: number().optional().label("Canceled At"),
|
|
210
|
+
/**
|
|
211
|
+
* A downgrade booked for the end of the current period: the plan key it moves
|
|
212
|
+
* to at renewal. Upgrades never set this; they apply immediately. Mirrored
|
|
213
|
+
* from the Paddle subscription's own `customData`, so Paddle stays the source
|
|
214
|
+
* of truth.
|
|
215
|
+
*/
|
|
216
|
+
pendingPlanKey: string().optional().label("Pending Plan Key"),
|
|
210
217
|
/** `occurred_at` of the newest Paddle event applied. Guards out-of-order writes. */
|
|
211
218
|
lastEventAt: number().required().default(0).label("Last Event At"),
|
|
212
219
|
createdAt: number().optional().label("Created At"),
|