@odla-ai/chapter 0.58.1 → 0.59.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.d.cts CHANGED
@@ -181,6 +181,10 @@ interface ChapterCopy {
181
181
  booking: TextFields<"unavailable" | "loadFailed" | "slotTaken" | "failed" | "loading" | "book" | "booking"> & {
182
182
  title?: string;
183
183
  intro?: string;
184
+ /** Shown under the booking button until a date is chosen. */
185
+ pickDate?: string;
186
+ /** Shown under the booking button once a date is chosen, until a time is. */
187
+ pickTime?: string;
184
188
  };
185
189
  /**
186
190
  * `consent` is the affirmative statement a member agrees to before the card
@@ -984,7 +988,7 @@ interface NetworkCommercialFact {
984
988
  eventType: string;
985
989
  eventCreated: number;
986
990
  livemode: boolean;
987
- objectKind: CommercialObjectKind | "payment_intent" | "ignored";
991
+ objectKind: CommercialObjectKind | "payment_intent" | "dispute" | "ignored";
988
992
  objectId: string;
989
993
  identity: CommercialIdentity;
990
994
  applicationId?: string;
@@ -996,6 +1000,8 @@ interface NetworkCommercialFact {
996
1000
  invoiceId?: string;
997
1001
  chargeId?: string;
998
1002
  paymentIntentId?: string;
1003
+ /** Stripe's dispute reason (`fraudulent`, `product_not_received`, …) on a `charge.dispute.*` fact. */
1004
+ disputeReason?: string;
999
1005
  subscriptionItemId?: string;
1000
1006
  refundedCents?: number;
1001
1007
  /** Complete recurring seat item references, with no recipient PII. */
@@ -1049,6 +1055,8 @@ interface NetworkCommercialProjection {
1049
1055
  seatPayments?: NetworkCommercialProjectedRow[];
1050
1056
  /** Inspectable seat objects. Informational only; money totals are computed from provider transactions. */
1051
1057
  seats?: NetworkCommercialProjectedRow[];
1058
+ /** Card-network disputes that could be bound to a source through the charge or payment they name. */
1059
+ disputes?: NetworkCommercialProjectedRow[];
1052
1060
  customers: NetworkCommercialProjectedRow[];
1053
1061
  subscriptions: NetworkCommercialProjectedRow[];
1054
1062
  invoices: NetworkCommercialProjectedRow[];
@@ -1706,7 +1714,7 @@ declare function readMembershipAccess(db: ChapterDb, input: MembershipQuoteTarge
1706
1714
  declare function verifyMembershipAccessReceipt(value: unknown, input: MembershipQuoteTarget, now: number): Promise<MembershipAccessReceipt>;
1707
1715
 
1708
1716
  /** Where the named recipient stands, from the purchaser's side, folded from the seat's lifecycle status. */
1709
- type NamedSeatRecipientState = "payment_pending" | "invited" | "accepted" | "joined" | "declined" | "refunded" | "canceled";
1717
+ type NamedSeatRecipientState = "payment_pending" | "invited" | "accepted" | "joined" | "declined" | "refunded" | "canceled" | "disputed";
1710
1718
 
1711
1719
  /** The purchaser's one named seat as the members page shows it: who was named, and whether they accepted or joined. */
1712
1720
  interface NamedSeatOfferSeat {
@@ -2688,6 +2696,14 @@ type WebhookEvent = ({
2688
2696
  kind: "canceled";
2689
2697
  applicationId?: string;
2690
2698
  customerId?: string;
2699
+ } | {
2700
+ kind: "disputed";
2701
+ chargeId: string;
2702
+ disputeId: string;
2703
+ disputeStatus: string;
2704
+ paymentIntentId?: string;
2705
+ applicationId?: string;
2706
+ customerId?: string;
2691
2707
  } | {
2692
2708
  kind: "ignored";
2693
2709
  type: string;
package/dist/index.d.ts CHANGED
@@ -181,6 +181,10 @@ interface ChapterCopy {
181
181
  booking: TextFields<"unavailable" | "loadFailed" | "slotTaken" | "failed" | "loading" | "book" | "booking"> & {
182
182
  title?: string;
183
183
  intro?: string;
184
+ /** Shown under the booking button until a date is chosen. */
185
+ pickDate?: string;
186
+ /** Shown under the booking button once a date is chosen, until a time is. */
187
+ pickTime?: string;
184
188
  };
185
189
  /**
186
190
  * `consent` is the affirmative statement a member agrees to before the card
@@ -984,7 +988,7 @@ interface NetworkCommercialFact {
984
988
  eventType: string;
985
989
  eventCreated: number;
986
990
  livemode: boolean;
987
- objectKind: CommercialObjectKind | "payment_intent" | "ignored";
991
+ objectKind: CommercialObjectKind | "payment_intent" | "dispute" | "ignored";
988
992
  objectId: string;
989
993
  identity: CommercialIdentity;
990
994
  applicationId?: string;
@@ -996,6 +1000,8 @@ interface NetworkCommercialFact {
996
1000
  invoiceId?: string;
997
1001
  chargeId?: string;
998
1002
  paymentIntentId?: string;
1003
+ /** Stripe's dispute reason (`fraudulent`, `product_not_received`, …) on a `charge.dispute.*` fact. */
1004
+ disputeReason?: string;
999
1005
  subscriptionItemId?: string;
1000
1006
  refundedCents?: number;
1001
1007
  /** Complete recurring seat item references, with no recipient PII. */
@@ -1049,6 +1055,8 @@ interface NetworkCommercialProjection {
1049
1055
  seatPayments?: NetworkCommercialProjectedRow[];
1050
1056
  /** Inspectable seat objects. Informational only; money totals are computed from provider transactions. */
1051
1057
  seats?: NetworkCommercialProjectedRow[];
1058
+ /** Card-network disputes that could be bound to a source through the charge or payment they name. */
1059
+ disputes?: NetworkCommercialProjectedRow[];
1052
1060
  customers: NetworkCommercialProjectedRow[];
1053
1061
  subscriptions: NetworkCommercialProjectedRow[];
1054
1062
  invoices: NetworkCommercialProjectedRow[];
@@ -1706,7 +1714,7 @@ declare function readMembershipAccess(db: ChapterDb, input: MembershipQuoteTarge
1706
1714
  declare function verifyMembershipAccessReceipt(value: unknown, input: MembershipQuoteTarget, now: number): Promise<MembershipAccessReceipt>;
1707
1715
 
1708
1716
  /** Where the named recipient stands, from the purchaser's side, folded from the seat's lifecycle status. */
1709
- type NamedSeatRecipientState = "payment_pending" | "invited" | "accepted" | "joined" | "declined" | "refunded" | "canceled";
1717
+ type NamedSeatRecipientState = "payment_pending" | "invited" | "accepted" | "joined" | "declined" | "refunded" | "canceled" | "disputed";
1710
1718
 
1711
1719
  /** The purchaser's one named seat as the members page shows it: who was named, and whether they accepted or joined. */
1712
1720
  interface NamedSeatOfferSeat {
@@ -2688,6 +2696,14 @@ type WebhookEvent = ({
2688
2696
  kind: "canceled";
2689
2697
  applicationId?: string;
2690
2698
  customerId?: string;
2699
+ } | {
2700
+ kind: "disputed";
2701
+ chargeId: string;
2702
+ disputeId: string;
2703
+ disputeStatus: string;
2704
+ paymentIntentId?: string;
2705
+ applicationId?: string;
2706
+ customerId?: string;
2691
2707
  } | {
2692
2708
  kind: "ignored";
2693
2709
  type: string;