@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.cjs CHANGED
@@ -2706,7 +2706,9 @@ var LINE_RECURRING = {
2706
2706
  intervalUnit: S,
2707
2707
  intervalCount: S,
2708
2708
  totalPayments: S,
2709
- trialDays: S
2709
+ trialDays: S,
2710
+ // A custom installment schedule: amounts and gaps are numbers and unit tokens, no free text.
2711
+ schedule: [{ amount: S, intervalUnit: S, intervalCount: S }]
2710
2712
  };
2711
2713
  var LINE_ITEM = {
2712
2714
  id: S,
@@ -2718,7 +2720,7 @@ var LINE_ITEM = {
2718
2720
  taxAmount: S,
2719
2721
  total: S,
2720
2722
  // amount = renewal price on a trial line (whose unitPrice is 0); count = the old display mirror.
2721
- recurring: { ...LINE_RECURRING, amount: S, count: S },
2723
+ recurring: { ...LINE_RECURRING, amount: S, count: S, scheduleUnitTotal: S },
2722
2724
  subscriptionId: S
2723
2725
  };
2724
2726
  var ORDER = {
@@ -2825,6 +2827,18 @@ var SUBSCRIPTION = {
2825
2827
  pendingQuantity: S,
2826
2828
  pendingIntervalUnit: S,
2827
2829
  pendingIntervalCount: S,
2830
+ scheduleTotal: S,
2831
+ nextPaymentAmount: S,
2832
+ paymentSchedule: [{
2833
+ index: S,
2834
+ amount: S,
2835
+ discount: S,
2836
+ net: S,
2837
+ intervalUnit: S,
2838
+ intervalCount: S,
2839
+ status: S,
2840
+ dueAt: S
2841
+ }],
2828
2842
  createdAt: S
2829
2843
  };
2830
2844
  var QUOTE_SUMMARY = {
@@ -3047,7 +3061,9 @@ var OAUTH_PROJECTIONS = {
3047
3061
  trialDays: S,
3048
3062
  trialEndsAt: S,
3049
3063
  planChargedToday: S,
3050
- taxApplies: S
3064
+ taxApplies: S,
3065
+ scheduleGapUnits: [S],
3066
+ schedule: [{ net: S, dueAt: S }]
3051
3067
  }]
3052
3068
  },
3053
3069
  cart: section({
@@ -3189,7 +3205,7 @@ var OAUTH_PROJECTIONS = {
3189
3205
  };
3190
3206
 
3191
3207
  // src/server.ts
3192
- var VERSION = true ? "0.3.0" : "0.0.0-dev";
3208
+ var VERSION = true ? "0.4.0" : "0.0.0-dev";
3193
3209
  function registerableActions(policy) {
3194
3210
  const isProduction = policy.identity.environment.providerEnvironment === "production";
3195
3211
  return actionsForChannel("mcp").filter((action) => {