@fayz-ai/shop 0.10.0 → 0.11.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/{chunk-IL6GA4ER.js → chunk-2WACO2TG.js} +3 -3
- package/dist/{chunk-IL6GA4ER.js.map → chunk-2WACO2TG.js.map} +1 -1
- package/dist/{chunk-RGTIJQJL.js → chunk-6BO2TMZ5.js} +3 -3
- package/dist/{chunk-RGTIJQJL.js.map → chunk-6BO2TMZ5.js.map} +1 -1
- package/dist/{chunk-XOP6SHPB.js → chunk-NWW3WJ7Y.js} +4 -10
- package/dist/chunk-NWW3WJ7Y.js.map +1 -0
- package/dist/{chunk-XERLK5LD.js → chunk-STRNMFC4.js} +28 -5
- package/dist/chunk-STRNMFC4.js.map +1 -0
- package/dist/{chunk-U3O2I3RM.js → chunk-U6HV3LVP.js} +385 -23
- package/dist/chunk-U6HV3LVP.js.map +1 -0
- package/dist/data/customer-search.d.ts +3 -0
- package/dist/data/customer-search.d.ts.map +1 -0
- package/dist/data/functions.d.ts +9 -0
- package/dist/data/functions.d.ts.map +1 -0
- package/dist/data/media.d.ts +37 -0
- package/dist/data/media.d.ts.map +1 -0
- package/dist/data/mock-provider.d.ts +40 -8
- package/dist/data/mock-provider.d.ts.map +1 -1
- package/dist/data/provider.d.ts +200 -7
- package/dist/data/provider.d.ts.map +1 -1
- package/dist/data/supabase-provider.d.ts +113 -5
- package/dist/data/supabase-provider.d.ts.map +1 -1
- package/dist/data/tables.d.ts +3 -0
- package/dist/data/tables.d.ts.map +1 -1
- package/dist/entities/index.d.ts +0 -1
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities.js +2 -2
- package/dist/index.d.ts +14 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +891 -60
- package/dist/index.js.map +1 -1
- package/dist/inventory/index.d.ts +2 -2
- package/dist/inventory/index.d.ts.map +1 -1
- package/dist/inventory/stock-types.d.ts +60 -1
- package/dist/inventory/stock-types.d.ts.map +1 -1
- package/dist/inventory/supabase-stock-store.d.ts +1 -0
- package/dist/inventory/supabase-stock-store.d.ts.map +1 -1
- package/dist/inventory.js +1 -1
- package/dist/lib/commerce.d.ts.map +1 -1
- package/dist/lib/document.d.ts +13 -0
- package/dist/lib/document.d.ts.map +1 -0
- package/dist/lib/variant-matrix.d.ts +120 -0
- package/dist/lib/variant-matrix.d.ts.map +1 -0
- package/dist/mock.js +2 -2
- package/dist/providers/checkout.d.ts +129 -0
- package/dist/providers/checkout.d.ts.map +1 -0
- package/dist/providers/index.d.ts +5 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/shipping.d.ts +43 -0
- package/dist/providers/shipping.d.ts.map +1 -0
- package/dist/providers.js +70 -0
- package/dist/providers.js.map +1 -0
- package/dist/runtime.js +3 -3
- package/dist/shipping/label-provider.d.ts +43 -0
- package/dist/shipping/label-provider.d.ts.map +1 -0
- package/dist/types.d.ts +457 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -4
- package/dist/chunk-U3O2I3RM.js.map +0 -1
- package/dist/chunk-XERLK5LD.js.map +0 -1
- package/dist/chunk-XOP6SHPB.js.map +0 -1
- package/dist/entities/sidecar.d.ts +0 -9
- package/dist/entities/sidecar.d.ts.map +0 -1
package/dist/data/provider.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { EntityRecord, EntityRecordInput, ListEntityRecordsOptions } from '../entities/entity-store';
|
|
2
|
+
import type { StockLocation, CreateStockLocationInput, UpdateStockLocationInput } from '../inventory/stock-types';
|
|
2
3
|
import type { ComputeAction, RuleCartSnapshot } from '../rules/rule-types';
|
|
3
|
-
import type { Product, ProductImage, ProductVariantSet, Category, Order, ShopCustomer, Discount, ProductEnquiry, CreateProductInput, UpdateProductInput, ListProductsOptions, CreateProductEnquiryInput, ListProductEnquiriesOptions, CreateCategoryInput, UpdateCategoryInput, CreateOrderInput, UpdateOrderInput, ListOrdersOptions, PlaceOrderInput, CreateCustomerInput, UpdateCustomerInput, ListCustomersOptions, ResolveCustomerInput, CustomerAddress, ShippingQuoteOption, ShippingZone, CreateShippingZoneInput, UpdateShippingZoneInput, CreateDiscountInput, UpdateDiscountInput, ListDiscountsOptions, SalesChannel, CreateSalesChannelInput, UpdateSalesChannelInput, Collection, CreateCollectionInput, UpdateCollectionInput, CustomerGroup, CreateCustomerGroupInput, UpdateCustomerGroupInput, CustomerSegment, CreateCustomerSegmentInput, UpdateCustomerSegmentInput, GiftCard, CreateGiftCardInput, UpdateGiftCardInput, EmailTemplate, UpsertEmailTemplateInput, MediaFile } from '../types';
|
|
4
|
+
import type { Product, ProductImage, ProductOption, ProductOptionInput, ProductVariant, ProductVariantSet, CreateProductVariantInput, UpdateProductVariantInput, Category, Order, ShopCustomer, Discount, ProductEnquiry, CreateProductInput, UpdateProductInput, ListProductsOptions, CreateProductEnquiryInput, ListProductEnquiriesOptions, CreateCategoryInput, UpdateCategoryInput, CreateOrderInput, UpdateOrderInput, ListOrdersOptions, PlaceOrderInput, CreateCustomerInput, UpdateCustomerInput, ListCustomersOptions, ResolveCustomerInput, CustomerAddress, ShippingQuoteOption, PaymentChargeMethod, PaymentChargeResult, CheckoutSessionInput, CheckoutSession, CheckoutSettlement, CreateFulfillmentInput, ShipFulfillmentInput, ShippingZone, CreateShippingZoneInput, UpdateShippingZoneInput, ShippingProfile, CreateShippingProfileInput, UpdateShippingProfileInput, ShippingPackage, CreateShippingPackageInput, UpdateShippingPackageInput, ShippingSettings, UpdateShippingSettingsInput, DeliveryCheck, StoreSettings, UpdateStoreSettingsInput, CreateDiscountInput, UpdateDiscountInput, ListDiscountsOptions, DiscountValidation, SalesChannel, CreateSalesChannelInput, UpdateSalesChannelInput, Collection, CreateCollectionInput, UpdateCollectionInput, CustomerGroup, CreateCustomerGroupInput, UpdateCustomerGroupInput, CustomerSegment, CreateCustomerSegmentInput, UpdateCustomerSegmentInput, GiftCard, CreateGiftCardInput, UpdateGiftCardInput, EmailTemplate, UpsertEmailTemplateInput, MediaFile, ShippingLabel, ShippingLabelOption, ShippingAgency } from '../types';
|
|
4
5
|
export interface ShopProvider {
|
|
5
6
|
listProducts(options?: ListProductsOptions): Promise<Product[]>;
|
|
6
7
|
getProduct(id: string): Promise<Product | null>;
|
|
@@ -22,6 +23,14 @@ export interface ShopProvider {
|
|
|
22
23
|
sortOrder?: number;
|
|
23
24
|
altText?: string | null;
|
|
24
25
|
}): Promise<ProductImage>;
|
|
26
|
+
/**
|
|
27
|
+
* Swap the file behind a photo, keeping the photo.
|
|
28
|
+
*
|
|
29
|
+
* Not delete-then-upload: that loses the position in the gallery and, if it
|
|
30
|
+
* was the cover, which photo the storefront leads with. The row is the photo;
|
|
31
|
+
* only the file it points at changes.
|
|
32
|
+
*/
|
|
33
|
+
replaceProductImage?(imageId: string, file: File): Promise<ProductImage>;
|
|
25
34
|
/**
|
|
26
35
|
* Option axes + variants of one product (spine M5, tables from 0028). The
|
|
27
36
|
* product-detail read path: products.bySlug attaches the result onto the
|
|
@@ -29,7 +38,32 @@ export interface ShopProvider {
|
|
|
29
38
|
* DB, never the productMetadata overlay. Optional: a provider without it
|
|
30
39
|
* yields option-less products (list reads skip variants either way).
|
|
31
40
|
*/
|
|
32
|
-
getProductVariants?(productId: string
|
|
41
|
+
getProductVariants?(productId: string, options?: {
|
|
42
|
+
includeArchived?: boolean;
|
|
43
|
+
}): Promise<ProductVariantSet>;
|
|
44
|
+
/**
|
|
45
|
+
* Replace the product's option axes. Whole-set rather than per-axis because
|
|
46
|
+
* the axis NAME is the key inside every variant's `options` object (0028), so
|
|
47
|
+
* a rename is a rewrite of every variant that carries it — one call, one
|
|
48
|
+
* consistent state.
|
|
49
|
+
*/
|
|
50
|
+
saveProductOptions?(productId: string, options: ProductOptionInput[]): Promise<ProductOption[]>;
|
|
51
|
+
createProductVariant?(productId: string, input: CreateProductVariantInput): Promise<ProductVariant>;
|
|
52
|
+
updateProductVariant?(variantId: string, input: UpdateProductVariantInput): Promise<ProductVariant>;
|
|
53
|
+
/**
|
|
54
|
+
* Retire a variant. ARCHIVES, never deletes: 0034 CASCADEs
|
|
55
|
+
* plg_shop_stock_balances from the variant, so a DELETE destroys the balance
|
|
56
|
+
* rows for stock the merchant still physically owns while the movements
|
|
57
|
+
* survive with a NULL variant_id and no way to re-attach.
|
|
58
|
+
*/
|
|
59
|
+
archiveProductVariant?(variantId: string): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Set a variant's stock to `count` by APPENDING the difference to the ledger.
|
|
62
|
+
* Never an UPDATE of inventory_count — that column is 0036's mirror, and
|
|
63
|
+
* writing it goes through the I10 shim only to translate back into the
|
|
64
|
+
* movement we would be inserting anyway. Answers the new count.
|
|
65
|
+
*/
|
|
66
|
+
setVariantStock?(variantId: string, count: number, note?: string): Promise<number>;
|
|
33
67
|
createProductEnquiry?(input: CreateProductEnquiryInput): Promise<ProductEnquiry>;
|
|
34
68
|
listProductEnquiries?(options?: ListProductEnquiriesOptions): Promise<ProductEnquiry[]>;
|
|
35
69
|
listCategories(): Promise<Category[]>;
|
|
@@ -46,6 +80,82 @@ export interface ShopProvider {
|
|
|
46
80
|
* confirm via webhook with service_role instead.
|
|
47
81
|
*/
|
|
48
82
|
confirmPayment?(id: string, reference?: string): Promise<Order | null>;
|
|
83
|
+
/**
|
|
84
|
+
* Opens the charge for a placed order at whichever acquirer the store
|
|
85
|
+
* connected, and reports whether it settled.
|
|
86
|
+
*
|
|
87
|
+
* Both are OPTIONAL and both are safe to repeat: the charge is unique per
|
|
88
|
+
* order, so `openCharge` on a page reload returns the code the buyer already
|
|
89
|
+
* has instead of a second Pix. `paymentState` never settles anything itself —
|
|
90
|
+
* it asks the provider and lets the server write the receipt.
|
|
91
|
+
*
|
|
92
|
+
* The storefront never learns the acquirer's name, URL or token: it holds an
|
|
93
|
+
* order id and gets back a code to display.
|
|
94
|
+
*/
|
|
95
|
+
/**
|
|
96
|
+
* Abre a cobrança ANTES de existir pedido, congelando o carrinho numa sessão.
|
|
97
|
+
*
|
|
98
|
+
* É o par que sustenta "o pedido só nasce quando o pagamento entra":
|
|
99
|
+
* `openCheckoutSession` cobra, `settleCheckoutSession` pergunta ao provedor e,
|
|
100
|
+
* quando ele diz pago, o SERVIDOR cria o pedido a partir do congelado. O
|
|
101
|
+
* navegador nunca é a autoridade sobre isso.
|
|
102
|
+
*/
|
|
103
|
+
openCheckoutSession?(input: CheckoutSessionInput): Promise<CheckoutSession>;
|
|
104
|
+
settleCheckoutSession?(sessionId: string): Promise<CheckoutSettlement>;
|
|
105
|
+
openCharge?(orderId: string, method?: PaymentChargeMethod): Promise<PaymentChargeResult>;
|
|
106
|
+
paymentState?(orderId: string): Promise<PaymentChargeResult>;
|
|
107
|
+
/**
|
|
108
|
+
* Cancels an order and gives back what it was holding — open shipments, the
|
|
109
|
+
* outstanding reservation, the open receivable — in one statement.
|
|
110
|
+
*
|
|
111
|
+
* Until 0054 this did not exist anywhere: the column accepted `cancelled`,
|
|
112
|
+
* RLS allowed the UPDATE, and there was no function and no button. A raw
|
|
113
|
+
* UPDATE left the reservation stuck forever (the storefront sells
|
|
114
|
+
* `inventory_count - reserved_count`) and the receivable open.
|
|
115
|
+
*/
|
|
116
|
+
cancelOrder?(orderId: string, reason?: string): Promise<Order | null>;
|
|
117
|
+
/**
|
|
118
|
+
* Validates ONE coupon the shopper already holds, server-side.
|
|
119
|
+
*
|
|
120
|
+
* The fallback path validates by LISTING every active discount, which 401s
|
|
121
|
+
* for `anon` (no table grant) and, if it did not, would hand every
|
|
122
|
+
* undisclosed code to anyone who opened devtools. Optional so a provider
|
|
123
|
+
* without it keeps the old behaviour.
|
|
124
|
+
*/
|
|
125
|
+
validateDiscountCode?(code: string, subtotal?: number): Promise<DiscountValidation>;
|
|
126
|
+
/**
|
|
127
|
+
* Dispatch, by hand — the merchant packs the box themselves and types the
|
|
128
|
+
* tracking the courier gave them.
|
|
129
|
+
*
|
|
130
|
+
* `createFulfillment` is the whole act: it opens the shipment, moves the stock
|
|
131
|
+
* off the shelf and releases the reservation the order took, in one statement.
|
|
132
|
+
* With a tracking code it is already in transit; without one it is picking.
|
|
133
|
+
*/
|
|
134
|
+
/**
|
|
135
|
+
* Despatch through the connected carrier — quote, buy, print, track.
|
|
136
|
+
*
|
|
137
|
+
* `buyShippingLabel` SPENDS the merchant's balance at the carrier, so it is
|
|
138
|
+
* never called by anything but an explicit click, and it is idempotent per
|
|
139
|
+
* order: a second call answers the label already bought.
|
|
140
|
+
*/
|
|
141
|
+
quoteShippingLabel?(orderId: string, carrier?: string): Promise<{
|
|
142
|
+
options: ShippingLabelOption[];
|
|
143
|
+
label: ShippingLabel | null;
|
|
144
|
+
}>;
|
|
145
|
+
buyShippingLabel?(orderId: string, serviceId: number, carrier?: string): Promise<ShippingLabel>;
|
|
146
|
+
printShippingLabel?(orderId: string, carrier?: string): Promise<string | null>;
|
|
147
|
+
/** Drop-off points near a place — for the location's own settings. */
|
|
148
|
+
listShippingAgencies?(query: {
|
|
149
|
+
state?: string;
|
|
150
|
+
city?: string;
|
|
151
|
+
carrier?: string;
|
|
152
|
+
}): Promise<ShippingAgency[]>;
|
|
153
|
+
trackShippingLabel?(orderId: string, carrier?: string): Promise<ShippingLabel['tracking']>;
|
|
154
|
+
createFulfillment?(input: CreateFulfillmentInput): Promise<string>;
|
|
155
|
+
shipFulfillment?(id: string, input: ShipFulfillmentInput): Promise<void>;
|
|
156
|
+
/** Marca o envio como entregue. Deriva o "pedido entregue" do conjunto. */
|
|
157
|
+
deliverFulfillment?(id: string, deliveredAt?: string): Promise<void>;
|
|
158
|
+
cancelFulfillment?(id: string, note?: string): Promise<void>;
|
|
49
159
|
/**
|
|
50
160
|
* Trusted order placement: the server re-reads product prices + stock,
|
|
51
161
|
* validates the discount, computes totals, and decrements inventory
|
|
@@ -75,17 +185,102 @@ export interface ShopProvider {
|
|
|
75
185
|
* means the store does not deliver there — shown before the buyer commits to
|
|
76
186
|
* a cart, which is the whole point of quoting on the product page.
|
|
77
187
|
*
|
|
78
|
-
* This is for DISPLAY. shop_place_order recomputes the freight from the
|
|
79
|
-
* zones
|
|
80
|
-
*
|
|
188
|
+
* This is for DISPLAY. shop_place_order recomputes the freight — from the
|
|
189
|
+
* zones, or from the carrier quote the server itself recorded (0044b) — and
|
|
190
|
+
* ignores whatever the client sends, so a tampered quote changes what the
|
|
191
|
+
* shopper sees and nothing about what they are charged.
|
|
192
|
+
*
|
|
193
|
+
* MUST HONOUR `StoreSettings.carrierQuotes === false` (0048): the gateway is
|
|
194
|
+
* asked from HERE, by the browser, so this is the only place that can decline
|
|
195
|
+
* to ask. A store that chose "eu mesmo calculo" must get its zones even when a
|
|
196
|
+
* gateway is connected — otherwise connecting one silently overrides the
|
|
197
|
+
* merchant who delivers by car, since a gateway quote wins over the zones when
|
|
198
|
+
* it answers.
|
|
81
199
|
*/
|
|
82
200
|
quoteShipping?(postalCode: string, subtotal: number): Promise<ShippingQuoteOption[]>;
|
|
201
|
+
/**
|
|
202
|
+
* Record which delivery option the shopper picked.
|
|
203
|
+
*
|
|
204
|
+
* Only meaningful for carrier quotes, where the price is not re-derivable
|
|
205
|
+
* from a zone the server can look up on its own: the choice has to be stored
|
|
206
|
+
* beside the quote so the order can read it back. Sends an option ID, never
|
|
207
|
+
* a price. A store quoting from its own zones needs no call — resolving a
|
|
208
|
+
* zone is arithmetic the order redoes anyway — so implementations may skip
|
|
209
|
+
* it, and callers must treat `false` as "the cheapest option stands".
|
|
210
|
+
*/
|
|
211
|
+
selectShippingOption?(optionId: string): Promise<boolean>;
|
|
212
|
+
/**
|
|
213
|
+
* Does this store deliver to this postcode at all? (0048)
|
|
214
|
+
*
|
|
215
|
+
* Asked with the ADDRESS and before the card, because discovering at payment
|
|
216
|
+
* that the store refuses the region is the worst possible order for that to
|
|
217
|
+
* happen in. Two separate facts — see `DeliveryCheck`.
|
|
218
|
+
*
|
|
219
|
+
* Not a substitute for `quoteShipping`: this one knows nothing about price and
|
|
220
|
+
* nothing about carriers. A store with no zones at all answers `refused:
|
|
221
|
+
* false, ownZone: false`, which is correct and is what it always was.
|
|
222
|
+
*/
|
|
223
|
+
checkDelivery?(postalCode: string): Promise<DeliveryCheck>;
|
|
224
|
+
/**
|
|
225
|
+
* Delivery profiles — named groups of products with their own zones (0049).
|
|
226
|
+
*
|
|
227
|
+
* Admin-only. The storefront never reads these: it asks for a quote and the
|
|
228
|
+
* server resolves the profile from the product ids, so a browser cannot claim
|
|
229
|
+
* its cart belongs to a cheaper profile.
|
|
230
|
+
*/
|
|
231
|
+
listShippingProfiles?(): Promise<ShippingProfile[]>;
|
|
232
|
+
createShippingProfile?(input: CreateShippingProfileInput): Promise<ShippingProfile>;
|
|
233
|
+
updateShippingProfile?(id: string, input: UpdateShippingProfileInput): Promise<ShippingProfile>;
|
|
234
|
+
deleteShippingProfile?(id: string): Promise<void>;
|
|
83
235
|
/** Delivery zones the merchant maintains. Admin-only: the storefront reads
|
|
84
236
|
* quotes, never the ranges themselves. */
|
|
85
237
|
listShippingZones?(): Promise<ShippingZone[]>;
|
|
86
238
|
createShippingZone?(input: CreateShippingZoneInput): Promise<ShippingZone>;
|
|
87
239
|
updateShippingZone?(id: string, input: UpdateShippingZoneInput): Promise<ShippingZone>;
|
|
88
240
|
deleteShippingZone?(id: string): Promise<void>;
|
|
241
|
+
/**
|
|
242
|
+
* The places the store ships from (0058) — the same rows the stock ledger
|
|
243
|
+
* uses, edited as a merchant registry.
|
|
244
|
+
*
|
|
245
|
+
* The read overlaps `StockStore.listLocations()` on purpose: that port serves
|
|
246
|
+
* the ledger and stays read-only, this one is the back-office CRUD. Both go
|
|
247
|
+
* through the same row mapper.
|
|
248
|
+
*/
|
|
249
|
+
listStockLocations?(): Promise<StockLocation[]>;
|
|
250
|
+
createStockLocation?(input: CreateStockLocationInput): Promise<StockLocation>;
|
|
251
|
+
updateStockLocation?(id: string, input: UpdateStockLocationInput): Promise<StockLocation>;
|
|
252
|
+
/** Refused by the database once movements reference it — history outlives a
|
|
253
|
+
* typo, so an unwanted location is archived, not deleted. */
|
|
254
|
+
deleteStockLocation?(id: string): Promise<void>;
|
|
255
|
+
/** The boxes the store packs in (0046). Admin-only for the same reason as
|
|
256
|
+
* the zones: the shopper is told a price, never the inventory behind it. */
|
|
257
|
+
listShippingPackages?(): Promise<ShippingPackage[]>;
|
|
258
|
+
createShippingPackage?(input: CreateShippingPackageInput): Promise<ShippingPackage>;
|
|
259
|
+
updateShippingPackage?(id: string, input: UpdateShippingPackageInput): Promise<ShippingPackage>;
|
|
260
|
+
deleteShippingPackage?(id: string): Promise<void>;
|
|
261
|
+
/** The store-wide delivery fallback, for addresses no zone covers. Null when
|
|
262
|
+
* the tenant has no row — which means free, not "unknown". */
|
|
263
|
+
getShippingSettings?(): Promise<ShippingSettings | null>;
|
|
264
|
+
updateShippingSettings?(input: UpdateShippingSettingsInput): Promise<ShippingSettings>;
|
|
265
|
+
/**
|
|
266
|
+
* The merchant's own read: every field, past RLS as a member.
|
|
267
|
+
*
|
|
268
|
+
* Null means the tenant has no settings row, and every consumer must read
|
|
269
|
+
* that as "nothing decided yet" rather than as a set of falses. The two are
|
|
270
|
+
* the difference between a store that kept its defaults and one that turned
|
|
271
|
+
* everything off.
|
|
272
|
+
*/
|
|
273
|
+
getStoreSettings?(): Promise<StoreSettings | null>;
|
|
274
|
+
updateStoreSettings?(input: UpdateStoreSettingsInput): Promise<StoreSettings>;
|
|
275
|
+
/**
|
|
276
|
+
* The STOREFRONT's read — the same policy narrowed to what a shopper's
|
|
277
|
+
* browser is allowed to know, and only for a published store.
|
|
278
|
+
*
|
|
279
|
+
* Separate from getStoreSettings because the audience is: this one is served
|
|
280
|
+
* to `anon` through shop_store_settings(), so it can never widen to a column
|
|
281
|
+
* added later. Null = the store is not published (or does not exist).
|
|
282
|
+
*/
|
|
283
|
+
getPublicStoreSettings?(): Promise<StoreSettings | null>;
|
|
89
284
|
/**
|
|
90
285
|
* Evaluate the store's promotions against a cart snapshot → the ordered
|
|
91
286
|
* compute-actions the cart applies (addItemDiscount, addShippingDiscount,
|
|
@@ -114,8 +309,6 @@ export interface ShopProvider {
|
|
|
114
309
|
createEntityRecord?(entity: string, input: EntityRecordInput): Promise<EntityRecord>;
|
|
115
310
|
updateEntityRecord?(entity: string, id: string, input: Partial<EntityRecordInput>): Promise<EntityRecord>;
|
|
116
311
|
deleteEntityRecord?(entity: string, id: string): Promise<void>;
|
|
117
|
-
getEntityFields?(reference: string, referenceId: string): Promise<Record<string, unknown> | null>;
|
|
118
|
-
setEntityFields?(reference: string, referenceId: string, fields: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
119
312
|
listCollections?(): Promise<Collection[]>;
|
|
120
313
|
getCollection?(id: string): Promise<Collection | null>;
|
|
121
314
|
createCollection?(input: CreateCollectionInput): Promise<Collection>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/data/provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC1E,OAAO,KAAK,EACV,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,QAAQ,EAClD,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAC7C,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAC3D,yBAAyB,EAAE,2BAA2B,EACtD,mBAAmB,EAAE,mBAAmB,EACxC,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EACtE,mBAAmB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,oBAAoB,EACpF,eAAe,EAAE,mBAAmB,EACpC,YAAY,EAAE,uBAAuB,EAAE,uBAAuB,EAC9D,mBAAmB,EAAE,mBAAmB,EAAE,oBAAoB,EAC9D,YAAY,EAAE,uBAAuB,EAAE,uBAAuB,EAC9D,UAAU,E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,qBAAqB,CAAC,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;IACnF,qBAAqB,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;IAC/F,qBAAqB,CAAC,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACjD,aAAa,CAAC,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;IACrC,cAAc,CAAC,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IAC9D,cAAc,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IAC1E,cAAc,CAAC,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1C,kBAAkB,CAAC,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAAA;IAC/C,mBAAmB,CAAC,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;IAC7E,cAAc,CAAC,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC,CAAA;IACvC,eAAe,CAAC,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;IAChD,eAAe,CAAC,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5C"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { EntityRecord, EntityRecordInput, ListEntityRecordsOptions } from '../entities/entity-store';
|
|
2
2
|
import type { ShopProvider } from './provider';
|
|
3
3
|
import type { ComputeAction, RuleCartSnapshot } from '../rules/rule-types';
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import { mediaKindOf } from './media';
|
|
5
|
+
import type { StockLocation, CreateStockLocationInput, UpdateStockLocationInput } from '../inventory/stock-types';
|
|
6
|
+
import type { Product, ProductImage, ProductOption, ProductOptionInput, ProductVariant, ProductVariantSet, CreateProductVariantInput, UpdateProductVariantInput, Category, Order, ShopCustomer, Discount, CreateProductInput, UpdateProductInput, ListProductsOptions, CreateCategoryInput, UpdateCategoryInput, CreateOrderInput, UpdateOrderInput, ListOrdersOptions, PlaceOrderInput, CreateCustomerInput, UpdateCustomerInput, ListCustomersOptions, ResolveCustomerInput, CreateDiscountInput, UpdateDiscountInput, ListDiscountsOptions, CheckoutSessionInput, CheckoutSession, CheckoutSettlement, ShippingQuoteOption, CustomerAddress, ShippingAgency, SalesChannel, CreateSalesChannelInput, UpdateSalesChannelInput, ShippingZone, CreateShippingZoneInput, UpdateShippingZoneInput, ShippingProfile, CreateShippingProfileInput, UpdateShippingProfileInput, ShippingPackage, CreateShippingPackageInput, UpdateShippingPackageInput, ShippingSettings, UpdateShippingSettingsInput, StoreSettings, UpdateStoreSettingsInput, DeliveryCheck, Collection, CreateCollectionInput, UpdateCollectionInput, CustomerGroup, CreateCustomerGroupInput, UpdateCustomerGroupInput, CustomerSegment, CreateCustomerSegmentInput, UpdateCustomerSegmentInput, GiftCard, CreateGiftCardInput, UpdateGiftCardInput, EmailTemplate, UpsertEmailTemplateInput, MediaFile } from '../types';
|
|
7
|
+
export { mediaKindOf };
|
|
6
8
|
export declare class SupabaseShopProvider implements ShopProvider {
|
|
7
9
|
listProducts(options?: ListProductsOptions): Promise<Product[]>;
|
|
8
10
|
getProduct(id: string): Promise<Product | null>;
|
|
@@ -10,7 +12,14 @@ export declare class SupabaseShopProvider implements ShopProvider {
|
|
|
10
12
|
* RLS on both tables already restricts anon reads to active variants of
|
|
11
13
|
* publicly readable products; the status filter here keeps the admin path
|
|
12
14
|
* (authenticated tenant member, who CAN see archived rows) consistent. */
|
|
13
|
-
getProductVariants(productId: string
|
|
15
|
+
getProductVariants(productId: string, opts?: {
|
|
16
|
+
includeArchived?: boolean;
|
|
17
|
+
}): Promise<ProductVariantSet>;
|
|
18
|
+
saveProductOptions(productId: string, input: ProductOptionInput[]): Promise<ProductOption[]>;
|
|
19
|
+
createProductVariant(productId: string, input: CreateProductVariantInput): Promise<ProductVariant>;
|
|
20
|
+
updateProductVariant(variantId: string, input: UpdateProductVariantInput): Promise<ProductVariant>;
|
|
21
|
+
archiveProductVariant(variantId: string): Promise<void>;
|
|
22
|
+
setVariantStock(variantId: string, count: number, note?: string): Promise<number>;
|
|
14
23
|
createProduct(input: CreateProductInput): Promise<Product>;
|
|
15
24
|
updateProduct(id: string, input: UpdateProductInput): Promise<Product>;
|
|
16
25
|
deleteProduct(id: string): Promise<void>;
|
|
@@ -20,7 +29,17 @@ export declare class SupabaseShopProvider implements ShopProvider {
|
|
|
20
29
|
sortOrder?: number;
|
|
21
30
|
altText?: string | null;
|
|
22
31
|
}): Promise<ProductImage>;
|
|
32
|
+
replaceProductImage(imageId: string, file: File): Promise<ProductImage>;
|
|
23
33
|
deleteProductImage(imageId: string): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Drop a stored file once nothing points at it anymore.
|
|
36
|
+
*
|
|
37
|
+
* The row was the only thing keeping the object reachable, so leaving it
|
|
38
|
+
* behind is a file nobody can see and nobody can delete — and the bill for it
|
|
39
|
+
* arrives all the same. Two rows can share one URL (a duplicated product), and
|
|
40
|
+
* the survivor has to keep working, so the count decides.
|
|
41
|
+
*/
|
|
42
|
+
private removeUnreferencedObject;
|
|
24
43
|
listCategories(): Promise<Category[]>;
|
|
25
44
|
createCategory(input: CreateCategoryInput): Promise<Category>;
|
|
26
45
|
updateCategory(id: string, input: UpdateCategoryInput): Promise<Category>;
|
|
@@ -32,7 +51,40 @@ export declare class SupabaseShopProvider implements ShopProvider {
|
|
|
32
51
|
listShippingZones(): Promise<ShippingZone[]>;
|
|
33
52
|
createShippingZone(input: CreateShippingZoneInput): Promise<ShippingZone>;
|
|
34
53
|
updateShippingZone(id: string, input: UpdateShippingZoneInput): Promise<ShippingZone>;
|
|
54
|
+
listShippingPackages(): Promise<ShippingPackage[]>;
|
|
55
|
+
createShippingPackage(input: CreateShippingPackageInput): Promise<ShippingPackage>;
|
|
56
|
+
updateShippingPackage(id: string, input: UpdateShippingPackageInput): Promise<ShippingPackage>;
|
|
57
|
+
deleteShippingPackage(id: string): Promise<void>;
|
|
58
|
+
private clearDefaultPackage;
|
|
35
59
|
deleteShippingZone(id: string): Promise<void>;
|
|
60
|
+
getShippingSettings(): Promise<ShippingSettings | null>;
|
|
61
|
+
updateShippingSettings(input: UpdateShippingSettingsInput): Promise<ShippingSettings>;
|
|
62
|
+
/**
|
|
63
|
+
* "Does this store deliver here?" — asked with the address, before the card.
|
|
64
|
+
*
|
|
65
|
+
* Degrades to "yes, and not our own zone" on any failure. A store that cannot
|
|
66
|
+
* reach the check must not stop selling: the order itself is still refused by
|
|
67
|
+
* the 0048 trigger if the region really is excluded, so the worst case is the
|
|
68
|
+
* shopper learning it one screen later instead of never selling at all.
|
|
69
|
+
*/
|
|
70
|
+
listShippingProfiles(): Promise<ShippingProfile[]>;
|
|
71
|
+
createShippingProfile(input: CreateShippingProfileInput): Promise<ShippingProfile>;
|
|
72
|
+
updateShippingProfile(id: string, input: UpdateShippingProfileInput): Promise<ShippingProfile>;
|
|
73
|
+
deleteShippingProfile(id: string): Promise<void>;
|
|
74
|
+
listStockLocations(): Promise<StockLocation[]>;
|
|
75
|
+
createStockLocation(input: CreateStockLocationInput): Promise<StockLocation>;
|
|
76
|
+
updateStockLocation(id: string, input: UpdateStockLocationInput): Promise<StockLocation>;
|
|
77
|
+
deleteStockLocation(id: string): Promise<void>;
|
|
78
|
+
private clearDefaultStockLocation;
|
|
79
|
+
checkDelivery(postalCode: string): Promise<DeliveryCheck>;
|
|
80
|
+
getStoreSettings(): Promise<StoreSettings | null>;
|
|
81
|
+
updateStoreSettings(input: UpdateStoreSettingsInput): Promise<StoreSettings>;
|
|
82
|
+
/**
|
|
83
|
+
* The shopper's read. Through the RPC, not the table: the table is closed to
|
|
84
|
+
* anon on purpose (0029) and shop_store_settings() is the narrow window —
|
|
85
|
+
* storefront fields only, and only for a published store.
|
|
86
|
+
*/
|
|
87
|
+
getPublicStoreSettings(): Promise<StoreSettings | null>;
|
|
36
88
|
/**
|
|
37
89
|
* Settle a pending order: the merchant confirming that the money arrived.
|
|
38
90
|
*
|
|
@@ -43,6 +95,60 @@ export declare class SupabaseShopProvider implements ShopProvider {
|
|
|
43
95
|
* the owning tenant, or a PSP webhook with the service role.
|
|
44
96
|
*/
|
|
45
97
|
confirmPayment(id: string, reference?: string): Promise<Order | null>;
|
|
98
|
+
private labelCall;
|
|
99
|
+
quoteShippingLabel(orderId: string, carrier?: string): Promise<{
|
|
100
|
+
options: any;
|
|
101
|
+
label: {
|
|
102
|
+
labelId: string;
|
|
103
|
+
labelUrl: any;
|
|
104
|
+
status: any;
|
|
105
|
+
tracking: any;
|
|
106
|
+
} | null;
|
|
107
|
+
}>;
|
|
108
|
+
/** Spends the merchant's balance at the carrier. Never call it on a whim. */
|
|
109
|
+
buyShippingLabel(orderId: string, serviceId: number, carrier?: string): Promise<{
|
|
110
|
+
labelId: string;
|
|
111
|
+
labelUrl: any;
|
|
112
|
+
status: string;
|
|
113
|
+
tracking: any;
|
|
114
|
+
}>;
|
|
115
|
+
printShippingLabel(orderId: string, carrier?: string): Promise<any>;
|
|
116
|
+
/** Drop-off points near a place. Store configuration — no order involved. */
|
|
117
|
+
listShippingAgencies(query: {
|
|
118
|
+
state?: string;
|
|
119
|
+
city?: string;
|
|
120
|
+
carrier?: string;
|
|
121
|
+
}): Promise<ShippingAgency[]>;
|
|
122
|
+
trackShippingLabel(orderId: string, carrier?: string): Promise<any>;
|
|
123
|
+
/**
|
|
124
|
+
* The customer's address book, for the console. `shop_place_order` files a
|
|
125
|
+
* new one here on every delivered order, and until now only the storefront
|
|
126
|
+
* read them back — so a repeat customer had their address retyped by hand.
|
|
127
|
+
*/
|
|
128
|
+
listCustomerAddresses(customerId: string): Promise<CustomerAddress[]>;
|
|
129
|
+
/**
|
|
130
|
+
* What delivery costs to a postcode — the same answer the shopper gets.
|
|
131
|
+
*
|
|
132
|
+
* The console needs it to quote a price out loud while the customer is on the
|
|
133
|
+
* line. Carrier first (when the merchant did not turn gateway quotes off),
|
|
134
|
+
* zones as the fallback, exactly as the storefront resolves it. Advisory
|
|
135
|
+
* either way: shop_place_order requotes and ignores whatever a client sends.
|
|
136
|
+
*/
|
|
137
|
+
quoteShipping(postalCode: string, subtotal: number): Promise<ShippingQuoteOption[]>;
|
|
138
|
+
/**
|
|
139
|
+
* Charge a cart that is not an order yet — the phone sale, from the counter's
|
|
140
|
+
* side. Same door the storefront uses, on purpose: `shop_price_cart` inside
|
|
141
|
+
* the function reprices everything, so the console sends products and
|
|
142
|
+
* quantities and never money. The order is born in `settleCheckoutSession`,
|
|
143
|
+
* once the acquirer says the Pix landed, so an abandoned charge leaves no
|
|
144
|
+
* ghost order holding stock.
|
|
145
|
+
*/
|
|
146
|
+
openCheckoutSession(input: CheckoutSessionInput): Promise<CheckoutSession>;
|
|
147
|
+
/**
|
|
148
|
+
* Ask whether the money landed. Runs on a timer, so a network blip must read
|
|
149
|
+
* as "still waiting" (`unknown`) and never as a refused payment.
|
|
150
|
+
*/
|
|
151
|
+
settleCheckoutSession(sessionId: string): Promise<CheckoutSettlement>;
|
|
46
152
|
placeOrder(input: PlaceOrderInput): Promise<Order>;
|
|
47
153
|
listCustomers(options?: ListCustomersOptions): Promise<ShopCustomer[]>;
|
|
48
154
|
getCustomer(id: string): Promise<ShopCustomer | null>;
|
|
@@ -69,8 +175,6 @@ export declare class SupabaseShopProvider implements ShopProvider {
|
|
|
69
175
|
createEntityRecord(entity: string, input: EntityRecordInput): Promise<EntityRecord>;
|
|
70
176
|
updateEntityRecord(entity: string, id: string, input: Partial<EntityRecordInput>): Promise<EntityRecord>;
|
|
71
177
|
deleteEntityRecord(entity: string, id: string): Promise<void>;
|
|
72
|
-
getEntityFields(reference: string, referenceId: string): Promise<Record<string, unknown> | null>;
|
|
73
|
-
setEntityFields(reference: string, referenceId: string, fields: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
74
178
|
listCollections(): Promise<Collection[]>;
|
|
75
179
|
getCollection(id: string): Promise<Collection | null>;
|
|
76
180
|
createCollection(input: CreateCollectionInput): Promise<Collection>;
|
|
@@ -91,6 +195,10 @@ export declare class SupabaseShopProvider implements ShopProvider {
|
|
|
91
195
|
listEmailTemplates(): Promise<EmailTemplate[]>;
|
|
92
196
|
upsertEmailTemplate(input: UpsertEmailTemplateInput): Promise<EmailTemplate>;
|
|
93
197
|
listMediaFiles(): Promise<MediaFile[]>;
|
|
198
|
+
/** Every product photo in the store, each one carrying its product. */
|
|
199
|
+
private listAttachedMedia;
|
|
200
|
+
/** What the merchant uploaded straight to the library — owned by nothing. */
|
|
201
|
+
private listLibraryFiles;
|
|
94
202
|
uploadMediaFile(file: File): Promise<MediaFile>;
|
|
95
203
|
deleteMediaFile(id: string): Promise<void>;
|
|
96
204
|
private syncCollectionProducts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supabase-provider.d.ts","sourceRoot":"","sources":["../../src/data/supabase-provider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"supabase-provider.d.ts","sourceRoot":"","sources":["../../src/data/supabase-provider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AAEzG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAK1E,OAAO,EAAiB,WAAW,EAA2D,MAAM,SAAS,CAAA;AAG7G,OAAO,KAAK,EACV,aAAa,EAA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AAE,0BAA0B,GAAG,OAAO,CAAC,eAAe,CAAC;IASlF,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,eAAe,CAAC;IAO9F,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKhD,aAAa,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAUpC,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAuB7D,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAczE,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKzC,kBAAkB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;IAe9C,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,aAAa,CAAC;IAmB5E,cAAc,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IAgB5C,uEAAuE;YACzD,iBAAiB;IAqB/B,6EAA6E;YAC/D,gBAAgB;IA2CxB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC;IAsB/C,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAKpC,sBAAsB;YAkBpB,gBAAgB;CAiB/B;AAED,wBAAgB,0BAA0B,IAAI,YAAY,CAEzD"}
|
package/dist/data/tables.d.ts
CHANGED
|
@@ -31,5 +31,8 @@ export declare const T: {
|
|
|
31
31
|
readonly orderItemLots: "plg_shop_order_item_lots";
|
|
32
32
|
readonly settings: "plg_shop_settings";
|
|
33
33
|
readonly shippingZones: "shipping_zones";
|
|
34
|
+
readonly shippingSettings: "shipping_settings";
|
|
35
|
+
readonly shippingProfiles: "plg_shop_shipping_profiles";
|
|
36
|
+
readonly shippingPackages: "plg_shop_packages";
|
|
34
37
|
};
|
|
35
38
|
//# sourceMappingURL=tables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../src/data/tables.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;IAwBZ,uEAAuE
|
|
1
|
+
{"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../src/data/tables.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;IAwBZ,uEAAuE;;;;;;;;;;;;;;;;;;CAuC/D,CAAA"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -7,5 +7,4 @@ export { ENTITY_TYPES_TABLE, serializeEntityDeclaration, generateEntityPolicies,
|
|
|
7
7
|
export type { GeneratedPolicy, GeneratedIndex } from './entity-sql';
|
|
8
8
|
export { reconcileEntity } from './entity-reconcile';
|
|
9
9
|
export type { ObservedEntitySchema, QuarantinedDdl, EntityReconcilePlan, ReconcileEntityOptions, } from './entity-reconcile';
|
|
10
|
-
export { SIDECAR_TABLE, validateSidecarWrite } from './sidecar';
|
|
11
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,gBAAgB,CAAA;AACvB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,wBAAwB,GACzB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,iCAAiC,GAClC,MAAM,cAAc,CAAA;AACrB,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,YAAY,EACV,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,oBAAoB,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,gBAAgB,CAAA;AACvB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,wBAAwB,GACzB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,iCAAiC,GAClC,MAAM,cAAc,CAAA;AACrB,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,YAAY,EACV,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,oBAAoB,CAAA"}
|
package/dist/entities.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createSupabaseEntityStore } from './chunk-
|
|
1
|
+
export { createSupabaseEntityStore } from './chunk-6BO2TMZ5.js';
|
|
2
2
|
import './chunk-KLDS7IPU.js';
|
|
3
|
-
export { EntityValidationError,
|
|
3
|
+
export { EntityValidationError, clearEntityStores, createMockEntityStore, getRegisteredEntityStore, registerEntityStore, resolveEntityStore, slugifyEntityTitle } from './chunk-NWW3WJ7Y.js';
|
|
4
4
|
|
|
5
5
|
// src/entities/entity-sql.ts
|
|
6
6
|
var ENTITY_TYPES_TABLE = "plg_entity_types";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
export type { Product, ProductImage, Category, ProductEnquiry, ProductEnquiryStatus, Order, OrderItem, OrderStatus, FinancialStatus, FulfillmentStatus, ShopCustomer, Discount, DiscountType, DiscountMethod, DiscountStatus, ProductStatus, CreateProductInput, UpdateProductInput, ListProductsOptions, CreateProductEnquiryInput, ListProductEnquiriesOptions, CreateCategoryInput, UpdateCategoryInput, CreateOrderInput, UpdateOrderInput, ListOrdersOptions, CreateCustomerInput, UpdateCustomerInput, ListCustomersOptions, ResolveCustomerInput, CreateDiscountInput, UpdateDiscountInput, ListDiscountsOptions, SalesChannel, SalesChannelKind, CreateSalesChannelInput, UpdateSalesChannelInput, PlaceOrderInput, PlaceOrderLine, DiscountValidation, InventoryLine, InventoryIssue, InventoryCheck, CartTotalLine, CartTotals, } from './types';
|
|
2
|
-
export type { ShippingZone, CreateShippingZoneInput, UpdateShippingZoneInput, ShippingQuoteOption, CustomerAddress, } from './types';
|
|
1
|
+
export type { Product, ProductImage, Category, ProductEnquiry, ProductEnquiryStatus, Order, OrderItem, OrderStatus, FinancialStatus, FulfillmentStatus, ShopCustomer, Discount, DiscountType, DiscountMethod, DiscountStatus, ProductStatus, ProductOption, ProductVariant, ProductVariantSet, ProductOptionInput, CreateProductVariantInput, UpdateProductVariantInput, CreateProductInput, UpdateProductInput, ListProductsOptions, CreateProductEnquiryInput, ListProductEnquiriesOptions, CreateCategoryInput, UpdateCategoryInput, CreateOrderInput, UpdateOrderInput, ListOrdersOptions, CreateCustomerInput, UpdateCustomerInput, ListCustomersOptions, ResolveCustomerInput, CreateDiscountInput, UpdateDiscountInput, ListDiscountsOptions, SalesChannel, SalesChannelKind, CreateSalesChannelInput, UpdateSalesChannelInput, PlaceOrderInput, PlaceOrderLine, DiscountValidation, InventoryLine, InventoryIssue, InventoryCheck, CartTotalLine, CartTotals, } from './types';
|
|
2
|
+
export type { ShippingZone, CreateShippingZoneInput, UpdateShippingZoneInput, ShippingPackage, ShippingPackageKind, CreateShippingPackageInput, UpdateShippingPackageInput, ShippingQuoteOption, CustomerAddress, ShippingSettings, UpdateShippingSettingsInput, DeliveryCheck, HandlingRequirement, ShippingProfile, CreateShippingProfileInput, UpdateShippingProfileInput, } from './types';
|
|
3
|
+
export type { StoreSettings, UpdateStoreSettingsInput, CheckoutFieldKey, CheckoutFieldPolicy, PaymentMethodKind, PaymentChargeMethod, PaymentCharge, PaymentChargeResult, CheckoutSessionInput, CheckoutSession, CheckoutSettlement, CreateFulfillmentInput, ShipFulfillmentInput, OrderShipment, ShippingLabel, ShippingLabelOption, ShippingAgency, } from './types';
|
|
3
4
|
export type { ShopProvider } from './data/provider';
|
|
4
5
|
export { validateDiscount, applyDiscount, checkInventory, computeCartTotals, getCustomerOrders, } from './lib/commerce';
|
|
5
6
|
export { SupabaseShopProvider, createSupabaseShopProvider } from './data/supabase-provider';
|
|
6
7
|
export { MockShopProvider, createMockShopProvider } from './data/mock-provider';
|
|
7
8
|
export type { MockShopSeed } from './data/mock-provider';
|
|
8
|
-
export { StockMovementError, registerStockStore, resolveStockStore, SupabaseStockStore, createSupabaseStockStore, MockStockStore, createMockStockStore, validateStockMovement, listStockMovementKinds, listStockReasonCodes, registerStockMovementKind, registerStockReasonCode, replayStockLedger, mirroredInventoryCount, STOCK_TRACKING_MODES, DEFAULT_STOCK_TRACKING, } from './inventory';
|
|
9
|
-
export type { StockStore, StockTrackingMode, StockLocation, StockLot, StockMovement, StockBalance, StockReservation, RecordStockMovementInput, ListStockBalancesOptions, ListStockLotsOptions, ListStockMovementsOptions, } from './inventory';
|
|
9
|
+
export { StockMovementError, registerStockStore, resolveStockStore, SupabaseStockStore, createSupabaseStockStore, MockStockStore, createMockStockStore, validateStockMovement, listStockMovementKinds, listStockReasonCodes, registerStockMovementKind, registerStockReasonCode, replayStockLedger, mirroredInventoryCount, STOCK_TRACKING_MODES, DEFAULT_STOCK_TRACKING, OWN_FULFILLMENT, } from './inventory';
|
|
10
|
+
export type { StockStore, StockTrackingMode, StockLocation, StockLocationKind, CreateStockLocationInput, UpdateStockLocationInput, StockLot, StockMovement, StockBalance, StockReservation, RecordStockMovementInput, ListStockBalancesOptions, ListStockLotsOptions, ListStockMovementsOptions, } from './inventory';
|
|
11
|
+
export { registerShippingLabelProvider, listShippingLabelProviders, resetShippingLabelProviders, resolveShippingLabelProvider, } from './shipping/label-provider';
|
|
12
|
+
export type { ShippingLabelProvider, ResolveShippingLabelOptions } from './shipping/label-provider';
|
|
10
13
|
export { setShopTenantResolver, getShopTenantId } from './data/tenant';
|
|
11
14
|
export type { TenantResolver } from './data/tenant';
|
|
15
|
+
export { setShopFunctionsUrl, getShopFunctionsUrl } from './data/functions';
|
|
12
16
|
export { getShopProvider, setShopProvider, resetShopProvider } from './lib/runtime';
|
|
13
17
|
export { MOCK_PRODUCTS, MOCK_CATEGORIES, MOCK_DISCOUNTS, svgPlaceholder, buildMockCatalog, } from './lib/catalog';
|
|
14
18
|
export type { CatalogInput, CatalogProductInput, CatalogCategoryInput } from './lib/catalog';
|
|
19
|
+
export { MAX_VARIANT_AXES, MAX_VARIANT_COMBINATIONS, variantOptionsKey, normalizeVariantAxes, variantCombinations, validateVariantAxes, planVariantMatrix, applyVariantMatrix, hasOnlyDefaultVariant, leavesNothingSellable, axesFromOptions, formatVariantCombination, } from './lib/variant-matrix';
|
|
20
|
+
export type { VariantAxisInput, VariantCombination, VariantMatrixRow, VariantMatrixPlan } from './lib/variant-matrix';
|
|
21
|
+
export { documentDigits, documentKind, formatDocument, isValidCnpj, isValidCpf, isValidDocument, } from './lib/document';
|
|
22
|
+
export type { DocumentKind } from './lib/document';
|
|
15
23
|
export { buildShopDomainEvents, buildShopMessageDefaults } from './lib/message-events';
|
|
16
|
-
export type { Collection, CreateCollectionInput, UpdateCollectionInput, CustomerGroup, CreateCustomerGroupInput, UpdateCustomerGroupInput, CustomerSegment, CreateCustomerSegmentInput, UpdateCustomerSegmentInput, GiftCard, GiftCardStatus, CreateGiftCardInput, UpdateGiftCardInput, MediaFile, MediaFileKind, } from './types';
|
|
24
|
+
export type { Collection, CreateCollectionInput, UpdateCollectionInput, CustomerGroup, CreateCustomerGroupInput, UpdateCustomerGroupInput, CustomerSegment, CreateCustomerSegmentInput, UpdateCustomerSegmentInput, GiftCard, GiftCardStatus, CreateGiftCardInput, UpdateGiftCardInput, MediaFile, MediaFileKind, MediaFileReference, } from './types';
|
|
25
|
+
export { mediaKindOf, storagePathOf, displayNameOf, productImageToMediaFile, mergeMediaFiles, } from './data/media';
|
|
17
26
|
export { SHOP_EMAIL_EVENTS, EMAIL_PLACEHOLDERS, EMAIL_PREVIEW_SAMPLE, renderEmailTemplate, resolveEmailTemplates, } from './lib/emails';
|
|
18
27
|
export type { EmailEventDef, ResolvedEmailTemplate } from './lib/emails';
|
|
19
28
|
export type { EmailEventKey, EmailTemplateKind, EmailTemplate, UpsertEmailTemplateInput, } from './types';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,oBAAoB,EACrE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EACjE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EACpE,aAAa,EACb,kBAAkB,EAAE,kBAAkB,EAAE,mBA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