@usethrottle/mcp 0.3.0 → 0.4.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/lib.js CHANGED
@@ -2674,7 +2674,9 @@ var LINE_RECURRING = {
2674
2674
  intervalUnit: S,
2675
2675
  intervalCount: S,
2676
2676
  totalPayments: S,
2677
- trialDays: S
2677
+ trialDays: S,
2678
+ // A custom installment schedule: amounts and gaps are numbers and unit tokens, no free text.
2679
+ schedule: [{ amount: S, intervalUnit: S, intervalCount: S }]
2678
2680
  };
2679
2681
  var LINE_ITEM = {
2680
2682
  id: S,
@@ -2686,7 +2688,7 @@ var LINE_ITEM = {
2686
2688
  taxAmount: S,
2687
2689
  total: S,
2688
2690
  // amount = renewal price on a trial line (whose unitPrice is 0); count = the old display mirror.
2689
- recurring: { ...LINE_RECURRING, amount: S, count: S },
2691
+ recurring: { ...LINE_RECURRING, amount: S, count: S, scheduleUnitTotal: S },
2690
2692
  subscriptionId: S
2691
2693
  };
2692
2694
  var ORDER = {
@@ -2793,6 +2795,18 @@ var SUBSCRIPTION = {
2793
2795
  pendingQuantity: S,
2794
2796
  pendingIntervalUnit: S,
2795
2797
  pendingIntervalCount: S,
2798
+ scheduleTotal: S,
2799
+ nextPaymentAmount: S,
2800
+ paymentSchedule: [{
2801
+ index: S,
2802
+ amount: S,
2803
+ discount: S,
2804
+ net: S,
2805
+ intervalUnit: S,
2806
+ intervalCount: S,
2807
+ status: S,
2808
+ dueAt: S
2809
+ }],
2796
2810
  createdAt: S
2797
2811
  };
2798
2812
  var QUOTE_SUMMARY = {
@@ -3015,7 +3029,9 @@ var OAUTH_PROJECTIONS = {
3015
3029
  trialDays: S,
3016
3030
  trialEndsAt: S,
3017
3031
  planChargedToday: S,
3018
- taxApplies: S
3032
+ taxApplies: S,
3033
+ scheduleGapUnits: [S],
3034
+ schedule: [{ net: S, dueAt: S }]
3019
3035
  }]
3020
3036
  },
3021
3037
  cart: section({
@@ -3157,7 +3173,7 @@ var OAUTH_PROJECTIONS = {
3157
3173
  };
3158
3174
 
3159
3175
  // src/server.ts
3160
- var VERSION = true ? "0.3.0" : "0.0.0-dev";
3176
+ var VERSION = true ? "0.4.0" : "0.0.0-dev";
3161
3177
  function registerableActions(policy) {
3162
3178
  const isProduction = policy.identity.environment.providerEnvironment === "production";
3163
3179
  return actionsForChannel("mcp").filter((action) => {