@reblu/site-contracts 1.4.0 → 1.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @reblu/site-contracts
2
2
 
3
+ ## 1.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 74a94ff: Add the order-lookup contract (REB-829). `ShopOrder`/`ShopOrderItem` type the
8
+ `GET /api/site/shop/order/[sessionId]` response — the order-confirmation
9
+ flow's missing piece: every SITE previously hand-rolled a local type for it
10
+ (demo-site's own comment: "base-api /api/site/shop/order is not yet in the
11
+ SDK surface"). `@reblu/site-client`'s `shop.order(sessionId)` reads it.
12
+
3
13
  ## 1.4.0
4
14
 
5
15
  ### Minor Changes
package/dist/index.d.cts CHANGED
@@ -155,6 +155,10 @@ export type ShopFacets = { taxonomies: { key: string; label: st
155
155
 
156
156
  export type ShopInventoryRef = { stockQuantity: number; reservedQuantity: number; lowStockThreshold: number | null;}
157
157
 
158
+ export type ShopOrder = { id: string; orderNumber: string; status: "PENDING" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "DELIVERED" | "CANCELLED" | "REFUNDED"; paymentStatus: "PENDING" | "REFUNDED" | "PAID" | "FAILED" | "PARTIALLY_REFUNDED"; customerEmail: string; total: number; items: { product: { id: string; name: string; slug: string; }; quantity: number; unitPrice: number; total: number; variant?: { id: string; name: string; } | null | undefined; }[];}
159
+
160
+ export type ShopOrderItem = { product: { id: string; name: string; slug: string; }; quantity: number; unitPrice: number; total: number; variant?: { id: string; name: string; } | null | undefined;}
161
+
158
162
  export type ShopProductAttributes = unknown
159
163
 
160
164
  export type ShopProductCategoryRef = { id: string; name: string; slug: string;}
package/dist/index.d.ts CHANGED
@@ -155,6 +155,10 @@ export type ShopFacets = { taxonomies: { key: string; label: st
155
155
 
156
156
  export type ShopInventoryRef = { stockQuantity: number; reservedQuantity: number; lowStockThreshold: number | null;}
157
157
 
158
+ export type ShopOrder = { id: string; orderNumber: string; status: "PENDING" | "CONFIRMED" | "PROCESSING" | "SHIPPED" | "DELIVERED" | "CANCELLED" | "REFUNDED"; paymentStatus: "PENDING" | "REFUNDED" | "PAID" | "FAILED" | "PARTIALLY_REFUNDED"; customerEmail: string; total: number; items: { product: { id: string; name: string; slug: string; }; quantity: number; unitPrice: number; total: number; variant?: { id: string; name: string; } | null | undefined; }[];}
159
+
160
+ export type ShopOrderItem = { product: { id: string; name: string; slug: string; }; quantity: number; unitPrice: number; total: number; variant?: { id: string; name: string; } | null | undefined;}
161
+
158
162
  export type ShopProductAttributes = unknown
159
163
 
160
164
  export type ShopProductCategoryRef = { id: string; name: string; slug: string;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reblu/site-contracts",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "private": false,
5
5
  "description": "Public, dependency-free TypeScript types for the Reblu SITE API (types only — no Zod, no Prisma at runtime).",
6
6
  "license": "Apache-2.0",