@usethrottle/auth 0.6.0 → 0.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 +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/react/components/index.cjs +24 -7
- package/dist/react/components/index.cjs.map +1 -1
- package/dist/react/components/index.d.cts +2 -1
- package/dist/react/components/index.d.ts +2 -1
- package/dist/react/components/index.js +24 -7
- package/dist/react/components/index.js.map +1 -1
- package/dist/react/index.d.cts +5 -0
- package/dist/react/index.d.ts +5 -0
- package/package.json +1 -1
package/dist/react/index.d.cts
CHANGED
|
@@ -99,7 +99,10 @@ interface Order {
|
|
|
99
99
|
billingAddress: unknown | null;
|
|
100
100
|
shippingAddress: unknown | null;
|
|
101
101
|
discountCode: string | null;
|
|
102
|
+
/** Set only when the order is linked to exactly one subscription. Read `subscriptionIds`. */
|
|
102
103
|
subscriptionId: string | null;
|
|
104
|
+
/** Every subscription this order created, in line order. One cart can hold several. */
|
|
105
|
+
subscriptionIds: string[];
|
|
103
106
|
/**
|
|
104
107
|
* The invoice raised for this order, when one exists. Resolved on the
|
|
105
108
|
* detail read only — the list would need a lookup per row.
|
|
@@ -123,6 +126,8 @@ interface OrderLineItem {
|
|
|
123
126
|
discountAmount: number;
|
|
124
127
|
total: number;
|
|
125
128
|
imageUrl: string | null;
|
|
129
|
+
/** The subscription this line created, or null for a one-time line. */
|
|
130
|
+
subscriptionId: string | null;
|
|
126
131
|
}
|
|
127
132
|
/**
|
|
128
133
|
* What `getOrder` returns. Deliberately NOT folded into `Order`: the list route
|
package/dist/react/index.d.ts
CHANGED
|
@@ -99,7 +99,10 @@ interface Order {
|
|
|
99
99
|
billingAddress: unknown | null;
|
|
100
100
|
shippingAddress: unknown | null;
|
|
101
101
|
discountCode: string | null;
|
|
102
|
+
/** Set only when the order is linked to exactly one subscription. Read `subscriptionIds`. */
|
|
102
103
|
subscriptionId: string | null;
|
|
104
|
+
/** Every subscription this order created, in line order. One cart can hold several. */
|
|
105
|
+
subscriptionIds: string[];
|
|
103
106
|
/**
|
|
104
107
|
* The invoice raised for this order, when one exists. Resolved on the
|
|
105
108
|
* detail read only — the list would need a lookup per row.
|
|
@@ -123,6 +126,8 @@ interface OrderLineItem {
|
|
|
123
126
|
discountAmount: number;
|
|
124
127
|
total: number;
|
|
125
128
|
imageUrl: string | null;
|
|
129
|
+
/** The subscription this line created, or null for a one-time line. */
|
|
130
|
+
subscriptionId: string | null;
|
|
126
131
|
}
|
|
127
132
|
/**
|
|
128
133
|
* What `getOrder` returns. Deliberately NOT folded into `Order`: the list route
|
package/package.json
CHANGED