@usethrottle/cart 3.6.0 → 3.7.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/index.d.cts CHANGED
@@ -26,6 +26,8 @@ interface Cart {
26
26
  workspaceId: string;
27
27
  applicationId: string;
28
28
  customerId: string | null;
29
+ /** Lightweight captured email (no full customer record), or null. */
30
+ customerEmail: string | null;
29
31
  status: 'open' | 'checkout' | 'converted' | 'abandoned';
30
32
  currency: string;
31
33
  subtotal: number;
@@ -113,12 +115,16 @@ interface CartEvent {
113
115
  interface CreateCartInput {
114
116
  applicationId: string;
115
117
  customerId?: string;
118
+ /** Optional lightweight email capture (no full customer record required). */
119
+ customerEmail?: string;
116
120
  currency?: string;
117
121
  netN?: number | null;
118
122
  metadata?: Record<string, unknown>;
119
123
  }
120
124
  interface UpdateCartInput {
121
125
  customerId?: string;
126
+ /** Lightweight email capture; `null` clears a previously-set value. */
127
+ customerEmail?: string | null;
122
128
  billingAddress?: CartAddress;
123
129
  shippingAddress?: CartAddress;
124
130
  notes?: string;
package/dist/index.d.ts CHANGED
@@ -26,6 +26,8 @@ interface Cart {
26
26
  workspaceId: string;
27
27
  applicationId: string;
28
28
  customerId: string | null;
29
+ /** Lightweight captured email (no full customer record), or null. */
30
+ customerEmail: string | null;
29
31
  status: 'open' | 'checkout' | 'converted' | 'abandoned';
30
32
  currency: string;
31
33
  subtotal: number;
@@ -113,12 +115,16 @@ interface CartEvent {
113
115
  interface CreateCartInput {
114
116
  applicationId: string;
115
117
  customerId?: string;
118
+ /** Optional lightweight email capture (no full customer record required). */
119
+ customerEmail?: string;
116
120
  currency?: string;
117
121
  netN?: number | null;
118
122
  metadata?: Record<string, unknown>;
119
123
  }
120
124
  interface UpdateCartInput {
121
125
  customerId?: string;
126
+ /** Lightweight email capture; `null` clears a previously-set value. */
127
+ customerEmail?: string | null;
122
128
  billingAddress?: CartAddress;
123
129
  shippingAddress?: CartAddress;
124
130
  notes?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usethrottle/cart",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "Typed REST client for the Throttle Cart API.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",