@stacksjs/commerce 0.70.88 → 0.70.91
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/coupons/destroy.d.ts +17 -0
- package/dist/coupons/fetch.d.ts +59 -0
- package/dist/coupons/index.d.ts +27 -0
- package/dist/coupons/store.d.ts +9 -0
- package/dist/coupons/update.d.ts +46 -0
- package/dist/customers/destroy.d.ts +14 -0
- package/dist/customers/fetch.d.ts +9 -0
- package/dist/customers/index.d.ts +14 -0
- package/dist/customers/store.d.ts +9 -0
- package/dist/customers/update.d.ts +10 -0
- package/dist/devices/destroy.d.ts +14 -0
- package/dist/devices/export.d.ts +35 -0
- package/dist/devices/fetch.d.ts +38 -0
- package/dist/devices/index.d.ts +27 -0
- package/dist/devices/store.d.ts +16 -0
- package/dist/devices/update.d.ts +26 -0
- package/dist/errors/destroy.d.ts +12 -0
- package/dist/errors/fetch.d.ts +54 -0
- package/dist/errors/index.d.ts +25 -0
- package/dist/errors/update.d.ts +24 -0
- package/dist/gift-cards/destroy.d.ts +23 -0
- package/dist/gift-cards/fetch.d.ts +88 -0
- package/dist/gift-cards/index.d.ts +23 -0
- package/dist/gift-cards/store.d.ts +9 -0
- package/dist/gift-cards/update.d.ts +30 -0
- package/dist/index.d.ts +58 -0
- package/dist/index.js +2 -0
- package/dist/orders/destroy.d.ts +28 -0
- package/dist/orders/events.d.ts +46 -0
- package/dist/orders/export.d.ts +32 -0
- package/dist/orders/fetch.d.ts +76 -0
- package/dist/orders/guards.d.ts +93 -0
- package/dist/orders/index.d.ts +82 -0
- package/dist/orders/place-order.d.ts +18 -0
- package/dist/orders/store.d.ts +9 -0
- package/dist/orders/totals.d.ts +24 -0
- package/dist/orders/update.d.ts +28 -0
- package/dist/orders/webhook.d.ts +31 -0
- package/dist/payments/destroy.d.ts +14 -0
- package/dist/payments/fetch.d.ts +55 -0
- package/dist/payments/index.d.ts +13 -0
- package/dist/payments/store.d.ts +9 -0
- package/dist/payments/update.d.ts +18 -0
- package/dist/products/categories/destroy.d.ts +30 -0
- package/dist/products/categories/fetch.d.ts +49 -0
- package/dist/products/categories/index.d.ts +33 -0
- package/dist/products/categories/store.d.ts +21 -0
- package/dist/products/categories/update.d.ts +33 -0
- package/dist/products/index.d.ts +24 -0
- package/dist/products/items/destroy.d.ts +14 -0
- package/dist/products/items/fetch.d.ts +66 -0
- package/dist/products/items/index.d.ts +23 -0
- package/dist/products/items/store.d.ts +16 -0
- package/dist/products/items/update.d.ts +82 -0
- package/dist/products/manufacturers/destroy.d.ts +14 -0
- package/dist/products/manufacturers/fetch.d.ts +23 -0
- package/dist/products/manufacturers/index.d.ts +21 -0
- package/dist/products/manufacturers/store.d.ts +16 -0
- package/dist/products/manufacturers/update.d.ts +26 -0
- package/dist/products/reviews/destroy.d.ts +14 -0
- package/dist/products/reviews/fetch.d.ts +22 -0
- package/dist/products/reviews/index.d.ts +22 -0
- package/dist/products/reviews/store.d.ts +16 -0
- package/dist/products/reviews/update.d.ts +19 -0
- package/dist/products/units/destroy.d.ts +14 -0
- package/dist/products/units/fetch.d.ts +9 -0
- package/dist/products/units/index.d.ts +9 -0
- package/dist/products/units/store.d.ts +31 -0
- package/dist/products/units/update.d.ts +25 -0
- package/dist/products/variants/destroy.d.ts +14 -0
- package/dist/products/variants/fetch.d.ts +9 -0
- package/dist/products/variants/index.d.ts +18 -0
- package/dist/products/variants/store.d.ts +43 -0
- package/dist/products/variants/update.d.ts +25 -0
- package/dist/receipts/destroy.d.ts +14 -0
- package/dist/receipts/fetch.d.ts +80 -0
- package/dist/receipts/index.d.ts +21 -0
- package/dist/receipts/store.d.ts +16 -0
- package/dist/receipts/update.d.ts +28 -0
- package/dist/shippings/delivery-routes/destroy.d.ts +14 -0
- package/dist/shippings/delivery-routes/fetch.d.ts +17 -0
- package/dist/shippings/delivery-routes/index.d.ts +23 -0
- package/dist/shippings/delivery-routes/store.d.ts +16 -0
- package/dist/shippings/delivery-routes/update.d.ts +27 -0
- package/dist/shippings/digital-deliveries/destroy.d.ts +28 -0
- package/dist/shippings/digital-deliveries/fetch.d.ts +9 -0
- package/dist/shippings/digital-deliveries/index.d.ts +23 -0
- package/dist/shippings/digital-deliveries/store.d.ts +16 -0
- package/dist/shippings/digital-deliveries/update.d.ts +29 -0
- package/dist/shippings/drivers/destroy.d.ts +16 -0
- package/dist/shippings/drivers/fetch.d.ts +9 -0
- package/dist/shippings/drivers/index.d.ts +21 -0
- package/dist/shippings/drivers/store.d.ts +16 -0
- package/dist/shippings/drivers/update.d.ts +26 -0
- package/dist/shippings/index.d.ts +27 -0
- package/dist/shippings/license-keys/destroy.d.ts +28 -0
- package/dist/shippings/license-keys/fetch.d.ts +9 -0
- package/dist/shippings/license-keys/index.d.ts +23 -0
- package/dist/shippings/license-keys/store.d.ts +17 -0
- package/dist/shippings/license-keys/update.d.ts +26 -0
- package/dist/shippings/shipping-methods/destroy.d.ts +28 -0
- package/dist/shippings/shipping-methods/fetch.d.ts +9 -0
- package/dist/shippings/shipping-methods/index.d.ts +25 -0
- package/dist/shippings/shipping-methods/store.d.ts +28 -0
- package/dist/shippings/shipping-methods/update.d.ts +27 -0
- package/dist/shippings/shipping-rates/destroy.d.ts +28 -0
- package/dist/shippings/shipping-rates/fetch.d.ts +98 -0
- package/dist/shippings/shipping-rates/index.d.ts +33 -0
- package/dist/shippings/shipping-rates/store.d.ts +17 -0
- package/dist/shippings/shipping-rates/update.d.ts +36 -0
- package/dist/shippings/shipping-zones/destroy.d.ts +28 -0
- package/dist/shippings/shipping-zones/fetch.d.ts +28 -0
- package/dist/shippings/shipping-zones/index.d.ts +23 -0
- package/dist/shippings/shipping-zones/store.d.ts +17 -0
- package/dist/shippings/shipping-zones/update.d.ts +35 -0
- package/dist/tax/destroy.d.ts +14 -0
- package/dist/tax/fetch.d.ts +9 -0
- package/dist/tax/index.d.ts +21 -0
- package/dist/tax/store.d.ts +16 -0
- package/dist/tax/update.d.ts +26 -0
- package/dist/types.d.ts +265 -0
- package/dist/utils/typed-stats.d.ts +23 -0
- package/dist/waitlists/index.d.ts +12 -0
- package/dist/waitlists/products/destroy.d.ts +15 -0
- package/dist/waitlists/products/fetch.d.ts +100 -0
- package/dist/waitlists/products/index.d.ts +30 -0
- package/dist/waitlists/products/store.d.ts +16 -0
- package/dist/waitlists/products/update.d.ts +26 -0
- package/dist/waitlists/restaurant/destroy.d.ts +15 -0
- package/dist/waitlists/restaurant/fetch.d.ts +149 -0
- package/dist/waitlists/restaurant/index.d.ts +40 -0
- package/dist/waitlists/restaurant/store.d.ts +16 -0
- package/dist/waitlists/restaurant/update.d.ts +43 -0
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Functions from destroy.ts
|
|
2
|
+
export {
|
|
3
|
+
bulkDestroy,
|
|
4
|
+
destroy,
|
|
5
|
+
} from './destroy';
|
|
6
|
+
// Functions from fetch.ts
|
|
7
|
+
export {
|
|
8
|
+
fetchAll,
|
|
9
|
+
fetchAverageWaitTimes,
|
|
10
|
+
fetchBetweenDates,
|
|
11
|
+
fetchById,
|
|
12
|
+
fetchConversionRates,
|
|
13
|
+
fetchCountByAllPartySizes,
|
|
14
|
+
fetchCountByDate,
|
|
15
|
+
fetchCountByPartySize,
|
|
16
|
+
fetchCountByTablePreference,
|
|
17
|
+
fetchCurrentWaitTimes,
|
|
18
|
+
fetchNoShowStats,
|
|
19
|
+
fetchSeatedBetweenDates,
|
|
20
|
+
fetchSeatedStats,
|
|
21
|
+
fetchSeatingRate,
|
|
22
|
+
fetchTablesTurnedToday,
|
|
23
|
+
fetchTimeSeriesStats,
|
|
24
|
+
fetchWaiting,
|
|
25
|
+
fetchWaitingWithPartySizes,
|
|
26
|
+
fetchWaitingWithQuotedTimes,
|
|
27
|
+
} from './fetch';
|
|
28
|
+
// Functions from store.ts
|
|
29
|
+
export {
|
|
30
|
+
bulkStore,
|
|
31
|
+
store,
|
|
32
|
+
} from './store';
|
|
33
|
+
// Functions from update.ts
|
|
34
|
+
export {
|
|
35
|
+
update,
|
|
36
|
+
updatePartySize,
|
|
37
|
+
updateQueuePosition,
|
|
38
|
+
updateStatus,
|
|
39
|
+
updateWaitTimes,
|
|
40
|
+
} from './update';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create a new restaurant waitlist entry
|
|
3
|
+
*
|
|
4
|
+
* @param data Restaurant waitlist data to store
|
|
5
|
+
* @returns The newly created restaurant waitlist record
|
|
6
|
+
*/
|
|
7
|
+
export declare function store(data: NewWaitlistRestaurant): Promise<WaitlistRestaurantJsonResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* Create multiple restaurant waitlist entries at once
|
|
10
|
+
*
|
|
11
|
+
* @param data Array of restaurant waitlist data to store
|
|
12
|
+
* @returns Number of restaurant waitlist entries created
|
|
13
|
+
*/
|
|
14
|
+
export declare function bulkStore(data: NewWaitlistRestaurant[]): Promise<number>;
|
|
15
|
+
declare type WaitlistRestaurantJsonResponse = ModelRow<typeof WaitlistRestaurant>;
|
|
16
|
+
declare type NewWaitlistRestaurant = NewModelData<typeof WaitlistRestaurant>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update a restaurant waitlist entry
|
|
3
|
+
*
|
|
4
|
+
* @param id The id of the restaurant waitlist entry to update
|
|
5
|
+
* @param data The restaurant waitlist data to update
|
|
6
|
+
* @returns The updated restaurant waitlist record
|
|
7
|
+
*/
|
|
8
|
+
export declare function update(id: number, data: WaitlistRestaurantUpdate): Promise<WaitlistRestaurantJsonResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Update a restaurant waitlist entry's status
|
|
11
|
+
*
|
|
12
|
+
* @param id The ID of the restaurant waitlist entry
|
|
13
|
+
* @param status The new status
|
|
14
|
+
* @returns The updated restaurant waitlist entry with the new status
|
|
15
|
+
*/
|
|
16
|
+
export declare function updateStatus(id: number, status: 'waiting' | 'seated'): Promise<WaitlistRestaurantJsonResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Update party size for a restaurant waitlist entry
|
|
19
|
+
*
|
|
20
|
+
* @param id The ID of the restaurant waitlist entry
|
|
21
|
+
* @param partySize The updated party size
|
|
22
|
+
* @returns The updated restaurant waitlist entry
|
|
23
|
+
*/
|
|
24
|
+
export declare function updatePartySize(id: number, partySize: number): Promise<WaitlistRestaurantJsonResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Update wait times for a restaurant waitlist entry
|
|
27
|
+
*
|
|
28
|
+
* @param id The ID of the restaurant waitlist entry
|
|
29
|
+
* @param quotedWaitTime The quoted wait time in minutes
|
|
30
|
+
* @param actualWaitTime The actual wait time in minutes (optional)
|
|
31
|
+
* @returns The updated restaurant waitlist entry
|
|
32
|
+
*/
|
|
33
|
+
export declare function updateWaitTimes(id: number, quotedWaitTime: number, actualWaitTime?: number): Promise<WaitlistRestaurantJsonResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Update queue position for a restaurant waitlist entry
|
|
36
|
+
*
|
|
37
|
+
* @param id The ID of the restaurant waitlist entry
|
|
38
|
+
* @param queuePosition The updated queue position
|
|
39
|
+
* @returns The updated restaurant waitlist entry
|
|
40
|
+
*/
|
|
41
|
+
export declare function updateQueuePosition(id: number, queuePosition: number): Promise<WaitlistRestaurantJsonResponse>;
|
|
42
|
+
declare type WaitlistRestaurantJsonResponse = ModelRow<typeof WaitlistRestaurant>;
|
|
43
|
+
declare type WaitlistRestaurantUpdate = UpdateModelData<typeof WaitlistRestaurant>;
|