@stacksjs/commerce 0.70.332 → 0.70.335

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.
Files changed (76) hide show
  1. package/dist/coupons/fetch.d.ts +1 -0
  2. package/dist/coupons/store.d.ts +1 -0
  3. package/dist/coupons/update.d.ts +1 -0
  4. package/dist/customers/fetch.d.ts +1 -0
  5. package/dist/customers/store.d.ts +1 -0
  6. package/dist/customers/update.d.ts +1 -0
  7. package/dist/devices/export.d.ts +1 -0
  8. package/dist/devices/fetch.d.ts +1 -0
  9. package/dist/devices/store.d.ts +1 -0
  10. package/dist/devices/update.d.ts +1 -0
  11. package/dist/gift-cards/fetch.d.ts +1 -0
  12. package/dist/gift-cards/store.d.ts +1 -0
  13. package/dist/gift-cards/update.d.ts +1 -0
  14. package/dist/index.js +5 -5
  15. package/dist/orders/fetch.d.ts +1 -0
  16. package/dist/orders/place-order.d.ts +1 -0
  17. package/dist/orders/store.d.ts +1 -0
  18. package/dist/orders/update.d.ts +1 -0
  19. package/dist/payments/fetch.d.ts +1 -0
  20. package/dist/payments/store.d.ts +1 -0
  21. package/dist/payments/update.d.ts +1 -0
  22. package/dist/products/categories/fetch.d.ts +1 -0
  23. package/dist/products/categories/store.d.ts +1 -0
  24. package/dist/products/categories/update.d.ts +1 -0
  25. package/dist/products/items/fetch.d.ts +1 -0
  26. package/dist/products/items/store.d.ts +1 -0
  27. package/dist/products/items/update.d.ts +1 -0
  28. package/dist/products/manufacturers/fetch.d.ts +1 -0
  29. package/dist/products/manufacturers/store.d.ts +1 -0
  30. package/dist/products/manufacturers/update.d.ts +1 -0
  31. package/dist/products/reviews/fetch.d.ts +1 -0
  32. package/dist/products/reviews/store.d.ts +1 -0
  33. package/dist/products/reviews/update.d.ts +1 -0
  34. package/dist/products/units/fetch.d.ts +1 -0
  35. package/dist/products/units/store.d.ts +1 -0
  36. package/dist/products/units/update.d.ts +1 -0
  37. package/dist/products/variants/fetch.d.ts +1 -0
  38. package/dist/products/variants/store.d.ts +1 -0
  39. package/dist/products/variants/update.d.ts +1 -0
  40. package/dist/receipts/fetch.d.ts +1 -0
  41. package/dist/receipts/store.d.ts +1 -0
  42. package/dist/receipts/update.d.ts +1 -0
  43. package/dist/shippings/delivery-routes/fetch.d.ts +1 -0
  44. package/dist/shippings/delivery-routes/store.d.ts +1 -0
  45. package/dist/shippings/delivery-routes/update.d.ts +1 -0
  46. package/dist/shippings/digital-deliveries/fetch.d.ts +1 -0
  47. package/dist/shippings/digital-deliveries/store.d.ts +1 -0
  48. package/dist/shippings/digital-deliveries/update.d.ts +1 -0
  49. package/dist/shippings/drivers/fetch.d.ts +1 -0
  50. package/dist/shippings/drivers/store.d.ts +1 -0
  51. package/dist/shippings/drivers/update.d.ts +1 -0
  52. package/dist/shippings/license-keys/fetch.d.ts +1 -0
  53. package/dist/shippings/license-keys/store.d.ts +1 -0
  54. package/dist/shippings/license-keys/update.d.ts +1 -0
  55. package/dist/shippings/shipping-methods/fetch.d.ts +1 -0
  56. package/dist/shippings/shipping-methods/store.d.ts +1 -0
  57. package/dist/shippings/shipping-methods/update.d.ts +1 -0
  58. package/dist/shippings/shipping-rates/fetch.d.ts +1 -0
  59. package/dist/shippings/shipping-rates/store.d.ts +1 -0
  60. package/dist/shippings/shipping-rates/update.d.ts +1 -0
  61. package/dist/shippings/shipping-zones/fetch.d.ts +1 -0
  62. package/dist/shippings/shipping-zones/store.d.ts +1 -0
  63. package/dist/shippings/shipping-zones/update.d.ts +1 -0
  64. package/dist/tax/fetch.d.ts +1 -0
  65. package/dist/tax/store.d.ts +1 -0
  66. package/dist/tax/update.d.ts +1 -0
  67. package/dist/types.d.ts +1 -0
  68. package/dist/waitlists/products/destroy.d.ts +1 -0
  69. package/dist/waitlists/products/fetch.d.ts +1 -0
  70. package/dist/waitlists/products/store.d.ts +1 -0
  71. package/dist/waitlists/products/update.d.ts +1 -0
  72. package/dist/waitlists/restaurant/destroy.d.ts +1 -0
  73. package/dist/waitlists/restaurant/fetch.d.ts +1 -0
  74. package/dist/waitlists/restaurant/store.d.ts +1 -0
  75. package/dist/waitlists/restaurant/update.d.ts +1 -0
  76. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, Order } from '@stacksjs/orm';
1
2
  import type { OrderStats } from '../types';
2
3
  /**
3
4
  * Fetch all orders from the database with their items
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, Order, OrderItem, Payment } from '@stacksjs/orm';
1
2
  export declare function findOrderByIdempotencyKey(key: string): Promise<OrderJsonResponse | null>;
2
3
  export declare function placeOrder(input: PlaceOrderInput): Promise<PlaceOrderResult>;
3
4
  export declare interface PlaceOrderLineItem {
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, Order } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new order
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, Order, UpdateModelData } from '@stacksjs/orm';
1
2
  import type { OrderStatus } from './events';
2
3
  /**
3
4
  * Update an order by ID
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, Payment } from '@stacksjs/orm';
1
2
  export declare function fetchAll(): Promise<PaymentJsonResponse[]>;
2
3
  export declare function fetchById(id: number): Promise<PaymentJsonResponse | undefined>;
3
4
  /**
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, Payment } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new payment
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, Payment, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a payment by ID.
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { Category, ModelRow } from '@stacksjs/orm';
1
2
  import type { CategoryStats } from '../../types';
2
3
  /**
3
4
  * Fetch all categories from the database
@@ -1,4 +1,5 @@
1
1
  import { slug } from '@stacksjs/strings';
2
+ import type { Category, ModelRow } from '@stacksjs/orm';
2
3
  import type { CategoryWriteData } from './types';
3
4
  /**
4
5
  * Create a new category
@@ -1,3 +1,4 @@
1
+ import type { Category, ModelRow } from '@stacksjs/orm';
1
2
  import type { CategoryWriteData } from './types';
2
3
  /**
3
4
  * Update a category by ID
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, Product } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a product item by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, Product } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new product item
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, Product, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a product item
3
4
  *
@@ -1,4 +1,5 @@
1
1
  import type { FetchManufacturersOptions, ManufacturerResponse } from '../../types';
2
+ import type { Manufacturer, ModelRow } from '@stacksjs/orm';
2
3
  export declare function fetchAll(): Promise<ManufacturerJsonResponse[]>;
3
4
  /**
4
5
  * Fetch a product manufacturer by ID
@@ -1,3 +1,4 @@
1
+ import type { Manufacturer, ModelRow, NewModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new product manufacturer
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { Manufacturer, ModelRow, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a manufacturer
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, Review } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a product review by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, Review } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new product review
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, Review, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a review
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, ProductUnit } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a product unit by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, ProductUnit } from '@stacksjs/orm';
1
2
  import type { ProductUnitWriteData } from './types';
2
3
  /**
3
4
  * Create a new product unit
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, ProductUnit, UpdateModelData } from '@stacksjs/orm';
1
2
  import type { ProductUnitWriteData } from './types';
2
3
  /**
3
4
  * Update a product unit
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, ProductVariant } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a product variant by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, ProductVariant } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new product variant
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, ProductVariant, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a product variant
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, Receipt } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a print log by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, Receipt } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new receipt
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, Receipt, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a receipt
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { DeliveryRoute, ModelRow } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a delivery route by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { DeliveryRoute, ModelRow, NewModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new delivery route
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { DeliveryRoute, ModelRow, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a delivery route
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { DigitalDelivery, ModelRow } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a shipping method by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { DigitalDelivery, ModelRow, NewModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new digital delivery
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { DigitalDelivery, ModelRow, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a digital delivery
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { Driver, ModelRow } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a driver by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { Driver, ModelRow, NewModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new driver
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { Driver, ModelRow, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a driver
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { LicenseKey, ModelRow } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a shipping method by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { LicenseKey, ModelRow, NewModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new license key
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { LicenseKey, ModelRow, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a license key
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, ShippingMethod } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a shipping method by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, ShippingMethod } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new shipping method
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, ShippingMethod, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a shipping method
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, ShippingRate } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a shipping rate by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, ShippingRate } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new shipping rate
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, ShippingRate, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a shipping rate
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, ShippingZone } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch all shipping zones
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, ShippingZone } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new shipping zone
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, ShippingZone, UpdateModelData } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a shipping zone
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, TaxRate } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a tax rate by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, TaxRate } from '@stacksjs/orm';
1
2
  import type { TaxRateWriteData } from './types';
2
3
  /**
3
4
  * Create a new tax rate
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, TaxRate } from '@stacksjs/orm';
1
2
  import type { TaxRateWriteData } from './types';
2
3
  /**
3
4
  * Update a tax rate
package/dist/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { Coupon, Customer, GiftCard, Manufacturer, ModelRow, Order, Review } from '@stacksjs/orm';
1
2
  // Define the input for creating a customer
2
3
  export declare interface CreateCustomerInput {
3
4
  name: string
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, WaitlistProduct } from '@stacksjs/orm';
1
2
  /**
2
3
  * Delete a waitlist product entry by ID
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, WaitlistProduct } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a waitlist product by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, WaitlistProduct } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new waitlist product entry
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, UpdateModelData, WaitlistProduct } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a waitlist product
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, WaitlistRestaurant } from '@stacksjs/orm';
1
2
  /**
2
3
  * Delete a restaurant waitlist entry by ID
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, WaitlistRestaurant } from '@stacksjs/orm';
1
2
  /**
2
3
  * Fetch a restaurant waitlist entry by ID
3
4
  */
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, NewModelData, WaitlistRestaurant } from '@stacksjs/orm';
1
2
  /**
2
3
  * Create a new restaurant waitlist entry
3
4
  *
@@ -1,3 +1,4 @@
1
+ import type { ModelRow, UpdateModelData, WaitlistRestaurant } from '@stacksjs/orm';
1
2
  /**
2
3
  * Update a restaurant waitlist entry
3
4
  *
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/commerce",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.332",
5
+ "version": "0.70.335",
6
6
  "description": "Stacks commerce utilities.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [