@thorprovider/types 5.7.9 → 5.7.10
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/AGENTS.md +1 -1
- package/README.md +0 -8
- package/dist/index.d.mts +144 -373
- package/dist/index.d.ts +144 -373
- package/dist/index.js +138 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +125 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/admin/DropshippingAdmin.ts +57 -0
- package/src/cart.ts +0 -40
- package/src/collection.ts +0 -10
- package/src/commerce-provider.ts +0 -36
- package/src/index.ts +18 -30
- package/src/provider.ts +178 -14
- package/src/storefront.ts +32 -5
- package/.turbo/turbo-build.log +0 -18
- package/.turbo/turbo-type-check.log +0 -0
- package/dist/.tsbuildinfo +0 -1
- package/publish.log +0 -60
- package/src/catalog.ts +0 -210
- package/src/commerce.ts +0 -88
package/AGENTS.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!-- TYPES-AGENTS-MD-START -->[@thorprovider/types Docs]|root: ./types|
|
|
1
|
+
<!-- TYPES-AGENTS-MD-START -->[@thorprovider/types Docs]|root: ./types|Documentation for @thorprovider/types. Always read package docs before making changes.|To regenerate: yarn generate:agents-index|.:{README.md}|src:{header-config.README.md}<!-- TYPES-AGENTS-MD-END -->
|
package/README.md
CHANGED
|
@@ -213,15 +213,7 @@ import type { Product, Cart, CartItem, Collection } from '@thorprovider/types';
|
|
|
213
213
|
- **Order**: Order, OrderItem, OrderStatus
|
|
214
214
|
- **Auth**: AuthProvider, LoginCredentials, RegisterData
|
|
215
215
|
- **Storefront**: StorefrontConfig, StorefrontContext
|
|
216
|
-
- **Commerce contracts**: StoreContext, ShopperIdentity, CartSession, OrderReceipt
|
|
217
216
|
- **CommerceProvider**: CommerceProvider interface (includes optional `updateShippingAddress?`)
|
|
218
|
-
- **Catalog query (E2)**: CatalogQuery, CatalogResults, FacetSupport, CatalogSortKey, CatalogAppliedFilters, CatalogFacetId, CatalogFacetDemonstrationSource — the canonical validated query shared by the URL boundary, runtime bridge, and adapters (`text`, route category scope + `categories`/`collections`, `sort` `featured`|`name`|`newest`, `page`/`pageSize`, and optional `priceMin`/`priceMax`/`inStock`/`attr.<name>`), its truthful results (`products`, optional backend `total`, `appliedFilters`, optional `facetSupport`), and the offered/held facet support descriptor with its real-endpoint demonstration source. Type-only; the Zod boundary lives in `@thorprovider/runtime/contracts`.
|
|
219
|
-
- **Catalog query adapter seam (E2 task 2.2)**: CatalogQueryOutcome, CatalogQueryFailure, CatalogQueryFailureCode, CatalogQueryFailureRepair — the discriminated outcome (`{ ok: true, results }` only when every requested filter was applied, else `{ ok: false, error: { code: 'unsupported-query', fields, repair } }`) returned by the optional `CommerceProvider.getCatalogProducts?` typed listing path. Type-only and structurally identical to the boundary's `CatalogQueryError`.
|
|
220
|
-
|
|
221
|
-
> This package is **type-only** (no runtime exports). The runtime provider
|
|
222
|
-
> registry (`SupportedProviderType`, `PROVIDER_METADATA`,
|
|
223
|
-
> `isSupportedProviderType`, `getProviderMetadata`) and `StorefrontConfigError`
|
|
224
|
-
> live in `@thorprovider/adapters`; import them from there.
|
|
225
217
|
- **Dropshipping**: DropshipperAccount, DropshipperCategory, DropshipperPromotion, DropshipperSettlement — plus all request/response types for the 53+ `DropshipperClient` methods (see `src/admin/DropshippingAdmin.ts`)
|
|
226
218
|
- **Order Notes** (part of Dropshipping): OrderNote, CreateOrderNoteBody, GetOrderNotesResponse, DeleteOrderNoteResponse — for managing notes on dropshipper orders
|
|
227
219
|
- **Provider Categories** (part of Dropshipping): ProviderCategory, GetProviderCategoriesResponse — Medusa native categories exposed via dropshipper API
|