@stacksjs/commerce 0.70.87 → 0.70.88
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/package.json +1 -1
- package/dist/coupons/destroy.d.ts +0 -17
- package/dist/coupons/fetch.d.ts +0 -59
- package/dist/coupons/index.d.ts +0 -27
- package/dist/coupons/store.d.ts +0 -9
- package/dist/coupons/update.d.ts +0 -46
- package/dist/customers/destroy.d.ts +0 -14
- package/dist/customers/fetch.d.ts +0 -9
- package/dist/customers/index.d.ts +0 -14
- package/dist/customers/store.d.ts +0 -9
- package/dist/customers/update.d.ts +0 -10
- package/dist/devices/destroy.d.ts +0 -14
- package/dist/devices/export.d.ts +0 -35
- package/dist/devices/fetch.d.ts +0 -38
- package/dist/devices/index.d.ts +0 -27
- package/dist/devices/store.d.ts +0 -16
- package/dist/devices/update.d.ts +0 -26
- package/dist/errors/destroy.d.ts +0 -12
- package/dist/errors/fetch.d.ts +0 -54
- package/dist/errors/index.d.ts +0 -25
- package/dist/errors/update.d.ts +0 -24
- package/dist/gift-cards/destroy.d.ts +0 -23
- package/dist/gift-cards/fetch.d.ts +0 -88
- package/dist/gift-cards/index.d.ts +0 -23
- package/dist/gift-cards/store.d.ts +0 -9
- package/dist/gift-cards/update.d.ts +0 -30
- package/dist/index.d.ts +0 -58
- package/dist/index.js +0 -2
- package/dist/orders/destroy.d.ts +0 -28
- package/dist/orders/events.d.ts +0 -46
- package/dist/orders/export.d.ts +0 -32
- package/dist/orders/fetch.d.ts +0 -76
- package/dist/orders/guards.d.ts +0 -93
- package/dist/orders/index.d.ts +0 -82
- package/dist/orders/place-order.d.ts +0 -18
- package/dist/orders/store.d.ts +0 -9
- package/dist/orders/totals.d.ts +0 -24
- package/dist/orders/update.d.ts +0 -28
- package/dist/orders/webhook.d.ts +0 -31
- package/dist/payments/destroy.d.ts +0 -14
- package/dist/payments/fetch.d.ts +0 -55
- package/dist/payments/index.d.ts +0 -13
- package/dist/payments/store.d.ts +0 -9
- package/dist/payments/update.d.ts +0 -18
- package/dist/products/categories/destroy.d.ts +0 -30
- package/dist/products/categories/fetch.d.ts +0 -49
- package/dist/products/categories/index.d.ts +0 -33
- package/dist/products/categories/store.d.ts +0 -21
- package/dist/products/categories/update.d.ts +0 -33
- package/dist/products/index.d.ts +0 -24
- package/dist/products/items/destroy.d.ts +0 -14
- package/dist/products/items/fetch.d.ts +0 -66
- package/dist/products/items/index.d.ts +0 -23
- package/dist/products/items/store.d.ts +0 -16
- package/dist/products/items/update.d.ts +0 -82
- package/dist/products/manufacturers/destroy.d.ts +0 -14
- package/dist/products/manufacturers/fetch.d.ts +0 -23
- package/dist/products/manufacturers/index.d.ts +0 -21
- package/dist/products/manufacturers/store.d.ts +0 -16
- package/dist/products/manufacturers/update.d.ts +0 -26
- package/dist/products/reviews/destroy.d.ts +0 -14
- package/dist/products/reviews/fetch.d.ts +0 -22
- package/dist/products/reviews/index.d.ts +0 -22
- package/dist/products/reviews/store.d.ts +0 -16
- package/dist/products/reviews/update.d.ts +0 -19
- package/dist/products/units/destroy.d.ts +0 -14
- package/dist/products/units/fetch.d.ts +0 -9
- package/dist/products/units/index.d.ts +0 -9
- package/dist/products/units/store.d.ts +0 -31
- package/dist/products/units/update.d.ts +0 -25
- package/dist/products/variants/destroy.d.ts +0 -14
- package/dist/products/variants/fetch.d.ts +0 -9
- package/dist/products/variants/index.d.ts +0 -18
- package/dist/products/variants/store.d.ts +0 -43
- package/dist/products/variants/update.d.ts +0 -25
- package/dist/receipts/destroy.d.ts +0 -14
- package/dist/receipts/fetch.d.ts +0 -80
- package/dist/receipts/index.d.ts +0 -21
- package/dist/receipts/store.d.ts +0 -16
- package/dist/receipts/update.d.ts +0 -28
- package/dist/shippings/delivery-routes/destroy.d.ts +0 -14
- package/dist/shippings/delivery-routes/fetch.d.ts +0 -17
- package/dist/shippings/delivery-routes/index.d.ts +0 -23
- package/dist/shippings/delivery-routes/store.d.ts +0 -16
- package/dist/shippings/delivery-routes/update.d.ts +0 -27
- package/dist/shippings/digital-deliveries/destroy.d.ts +0 -28
- package/dist/shippings/digital-deliveries/fetch.d.ts +0 -9
- package/dist/shippings/digital-deliveries/index.d.ts +0 -23
- package/dist/shippings/digital-deliveries/store.d.ts +0 -16
- package/dist/shippings/digital-deliveries/update.d.ts +0 -29
- package/dist/shippings/drivers/destroy.d.ts +0 -16
- package/dist/shippings/drivers/fetch.d.ts +0 -9
- package/dist/shippings/drivers/index.d.ts +0 -21
- package/dist/shippings/drivers/store.d.ts +0 -16
- package/dist/shippings/drivers/update.d.ts +0 -26
- package/dist/shippings/index.d.ts +0 -27
- package/dist/shippings/license-keys/destroy.d.ts +0 -28
- package/dist/shippings/license-keys/fetch.d.ts +0 -9
- package/dist/shippings/license-keys/index.d.ts +0 -23
- package/dist/shippings/license-keys/store.d.ts +0 -17
- package/dist/shippings/license-keys/update.d.ts +0 -26
- package/dist/shippings/shipping-methods/destroy.d.ts +0 -28
- package/dist/shippings/shipping-methods/fetch.d.ts +0 -9
- package/dist/shippings/shipping-methods/index.d.ts +0 -25
- package/dist/shippings/shipping-methods/store.d.ts +0 -28
- package/dist/shippings/shipping-methods/update.d.ts +0 -27
- package/dist/shippings/shipping-rates/destroy.d.ts +0 -28
- package/dist/shippings/shipping-rates/fetch.d.ts +0 -98
- package/dist/shippings/shipping-rates/index.d.ts +0 -33
- package/dist/shippings/shipping-rates/store.d.ts +0 -17
- package/dist/shippings/shipping-rates/update.d.ts +0 -36
- package/dist/shippings/shipping-zones/destroy.d.ts +0 -28
- package/dist/shippings/shipping-zones/fetch.d.ts +0 -28
- package/dist/shippings/shipping-zones/index.d.ts +0 -23
- package/dist/shippings/shipping-zones/store.d.ts +0 -17
- package/dist/shippings/shipping-zones/update.d.ts +0 -35
- package/dist/tax/destroy.d.ts +0 -14
- package/dist/tax/fetch.d.ts +0 -9
- package/dist/tax/index.d.ts +0 -21
- package/dist/tax/store.d.ts +0 -16
- package/dist/tax/update.d.ts +0 -26
- package/dist/types.d.ts +0 -265
- package/dist/utils/typed-stats.d.ts +0 -23
- package/dist/waitlists/index.d.ts +0 -12
- package/dist/waitlists/products/destroy.d.ts +0 -15
- package/dist/waitlists/products/fetch.d.ts +0 -100
- package/dist/waitlists/products/index.d.ts +0 -30
- package/dist/waitlists/products/store.d.ts +0 -16
- package/dist/waitlists/products/update.d.ts +0 -26
- package/dist/waitlists/restaurant/destroy.d.ts +0 -15
- package/dist/waitlists/restaurant/fetch.d.ts +0 -149
- package/dist/waitlists/restaurant/index.d.ts +0 -40
- package/dist/waitlists/restaurant/store.d.ts +0 -16
- package/dist/waitlists/restaurant/update.d.ts +0 -43
package/dist/receipts/fetch.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch a print log by ID
|
|
3
|
-
*/
|
|
4
|
-
export declare function fetchById(id: number): Promise<ReceiptJsonResponse | undefined>;
|
|
5
|
-
/**
|
|
6
|
-
* Fetch all print logs
|
|
7
|
-
*/
|
|
8
|
-
export declare function fetchAll(): Promise<ReceiptJsonResponse[]>;
|
|
9
|
-
/**
|
|
10
|
-
* Fetch print job statistics by status within a date range
|
|
11
|
-
*
|
|
12
|
-
* @param startDate Start date for the range
|
|
13
|
-
* @param endDate End date for the range
|
|
14
|
-
* @returns Object containing counts for each status and total
|
|
15
|
-
*/
|
|
16
|
-
export declare function fetchPrintJobStats(_startDate: Date | number, _endDate: Date | number): Promise<{
|
|
17
|
-
total: number
|
|
18
|
-
success: number
|
|
19
|
-
failed: number
|
|
20
|
-
warning: number
|
|
21
|
-
averageSize: number
|
|
22
|
-
averagePages: number
|
|
23
|
-
averageDuration: number
|
|
24
|
-
}>;
|
|
25
|
-
/**
|
|
26
|
-
* Calculate the success rate percentage for print jobs within a date range
|
|
27
|
-
*
|
|
28
|
-
* @param startDate Start date for the range
|
|
29
|
-
* @param endDate End date for the range
|
|
30
|
-
* @returns Object containing success rate percentage and detailed counts
|
|
31
|
-
*/
|
|
32
|
-
export declare function fetchSuccessRate(_startDate: Date | number, _endDate: Date | number): Promise<{
|
|
33
|
-
successRate: number
|
|
34
|
-
total: number
|
|
35
|
-
success: number
|
|
36
|
-
failed: number
|
|
37
|
-
warning: number
|
|
38
|
-
}>;
|
|
39
|
-
/**
|
|
40
|
-
* Calculate total pages and average pages per receipt within a date range
|
|
41
|
-
*
|
|
42
|
-
* @param startDate Start date for the range
|
|
43
|
-
* @param endDate End date for the range
|
|
44
|
-
* @returns Object containing total pages and average pages per receipt
|
|
45
|
-
*/
|
|
46
|
-
export declare function fetchPageStats(_startDate: Date | number, _endDate: Date | number): Promise<{
|
|
47
|
-
totalPages: number
|
|
48
|
-
averagePagesPerReceipt: number
|
|
49
|
-
totalReceipts: number
|
|
50
|
-
}>;
|
|
51
|
-
/**
|
|
52
|
-
* Calculate average print time statistics within a date range
|
|
53
|
-
*
|
|
54
|
-
* @param startDate Start date for the range
|
|
55
|
-
* @param endDate End date for the range
|
|
56
|
-
* @returns Object containing average print time and related statistics
|
|
57
|
-
*/
|
|
58
|
-
export declare function fetchPrintTimeStats(_startDate: Date | number, _endDate: Date | number): Promise<{
|
|
59
|
-
averageDuration: number
|
|
60
|
-
minDuration: number
|
|
61
|
-
maxDuration: number
|
|
62
|
-
totalJobs: number
|
|
63
|
-
}>;
|
|
64
|
-
/**
|
|
65
|
-
* Calculate prints per hour statistics within a date range
|
|
66
|
-
*
|
|
67
|
-
* @param startDate Start date for the range
|
|
68
|
-
* @param endDate End date for the range
|
|
69
|
-
* @returns Object containing prints per hour statistics
|
|
70
|
-
*/
|
|
71
|
-
export declare function fetchPrintsPerHour(_startDate: Date | number, _endDate: Date | number): Promise<{
|
|
72
|
-
totalPrints: number
|
|
73
|
-
totalHours: number
|
|
74
|
-
printsPerHour: number
|
|
75
|
-
hourlyBreakdown: Array<{
|
|
76
|
-
hour: number
|
|
77
|
-
count: number
|
|
78
|
-
}>
|
|
79
|
-
}>;
|
|
80
|
-
declare type ReceiptJsonResponse = ModelRow<typeof Receipt>;
|
package/dist/receipts/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Functions from destroy.ts
|
|
2
|
-
export {
|
|
3
|
-
bulkDestroy,
|
|
4
|
-
destroy,
|
|
5
|
-
} from './destroy';
|
|
6
|
-
// Functions from fetch.ts
|
|
7
|
-
export {
|
|
8
|
-
fetchAll,
|
|
9
|
-
fetchById,
|
|
10
|
-
} from './fetch';
|
|
11
|
-
// Functions from store.ts
|
|
12
|
-
export {
|
|
13
|
-
bulkStore,
|
|
14
|
-
store,
|
|
15
|
-
} from './store';
|
|
16
|
-
// Functions from update.ts
|
|
17
|
-
export {
|
|
18
|
-
update,
|
|
19
|
-
updatePrintJob,
|
|
20
|
-
updateStatus,
|
|
21
|
-
} from './update';
|
package/dist/receipts/store.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a new receipt
|
|
3
|
-
*
|
|
4
|
-
* @param data The receipt data to store
|
|
5
|
-
* @returns The newly created receipt record
|
|
6
|
-
*/
|
|
7
|
-
export declare function store(data: NewReceipt): Promise<ReceiptJsonResponse>;
|
|
8
|
-
/**
|
|
9
|
-
* Create multiple receipts at once
|
|
10
|
-
*
|
|
11
|
-
* @param data Array of receipt data to store
|
|
12
|
-
* @returns Number of receipts created
|
|
13
|
-
*/
|
|
14
|
-
export declare function bulkStore(data: NewReceipt[]): Promise<number>;
|
|
15
|
-
declare type ReceiptJsonResponse = ModelRow<typeof Receipt>;
|
|
16
|
-
declare type NewReceipt = NewModelData<typeof Receipt>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Update a receipt
|
|
3
|
-
*
|
|
4
|
-
* @param id The id of the receipt to update
|
|
5
|
-
* @param data The receipt data to update
|
|
6
|
-
* @returns The updated receipt record
|
|
7
|
-
*/
|
|
8
|
-
export declare function update(id: number, data: ReceiptUpdate): Promise<ReceiptJsonResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Update a receipt's status
|
|
11
|
-
*
|
|
12
|
-
* @param id The ID of the receipt
|
|
13
|
-
* @param status The new status
|
|
14
|
-
* @returns The updated receipt with the new status
|
|
15
|
-
*/
|
|
16
|
-
export declare function updateStatus(id: number, status: 'success' | 'failed' | 'warning'): Promise<ReceiptJsonResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Update print job information
|
|
19
|
-
*
|
|
20
|
-
* @param id The ID of the receipt
|
|
21
|
-
* @param size Optional new size value
|
|
22
|
-
* @param pages Optional new pages value
|
|
23
|
-
* @param duration Optional new duration value
|
|
24
|
-
* @returns The updated receipt
|
|
25
|
-
*/
|
|
26
|
-
export declare function updatePrintJob(id: number, size?: number, pages?: number, duration?: number): Promise<ReceiptJsonResponse>;
|
|
27
|
-
declare type ReceiptJsonResponse = ModelRow<typeof Receipt>;
|
|
28
|
-
declare type ReceiptUpdate = UpdateModelData<typeof Receipt>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete a delivery route by ID
|
|
3
|
-
*
|
|
4
|
-
* @param id The ID of the delivery route to delete
|
|
5
|
-
* @returns True if the delivery route was deleted, false otherwise
|
|
6
|
-
*/
|
|
7
|
-
export declare function destroy(id: number): Promise<boolean>;
|
|
8
|
-
/**
|
|
9
|
-
* Delete multiple delivery routes by ID
|
|
10
|
-
*
|
|
11
|
-
* @param ids Array of delivery route IDs to delete
|
|
12
|
-
* @returns Number of delivery routes deleted
|
|
13
|
-
*/
|
|
14
|
-
export declare function bulkDestroy(ids: number[]): Promise<number>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch a delivery route by ID
|
|
3
|
-
*/
|
|
4
|
-
export declare function fetchById(id: number): Promise<DeliveryRouteJsonResponse | undefined>;
|
|
5
|
-
/**
|
|
6
|
-
* Fetch all delivery routes
|
|
7
|
-
*/
|
|
8
|
-
export declare function fetchAll(): Promise<DeliveryRouteJsonResponse[]>;
|
|
9
|
-
/**
|
|
10
|
-
* Fetch active delivery routes
|
|
11
|
-
*/
|
|
12
|
-
export declare function fetchActive(): Promise<DeliveryRouteJsonResponse[]>;
|
|
13
|
-
/**
|
|
14
|
-
* Fetch delivery routes by driver
|
|
15
|
-
*/
|
|
16
|
-
export declare function fetchByDriver(driver: string): Promise<DeliveryRouteJsonResponse[]>;
|
|
17
|
-
declare type DeliveryRouteJsonResponse = ModelRow<typeof DeliveryRoute>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Functions from destroy.ts
|
|
2
|
-
export {
|
|
3
|
-
bulkDestroy,
|
|
4
|
-
destroy,
|
|
5
|
-
} from './destroy';
|
|
6
|
-
// Functions from fetch.ts
|
|
7
|
-
export {
|
|
8
|
-
fetchActive,
|
|
9
|
-
fetchAll,
|
|
10
|
-
fetchByDriver,
|
|
11
|
-
fetchById,
|
|
12
|
-
} from './fetch';
|
|
13
|
-
// Functions from store.ts
|
|
14
|
-
export {
|
|
15
|
-
store,
|
|
16
|
-
updateLastActive,
|
|
17
|
-
} from './store';
|
|
18
|
-
// Functions from update.ts
|
|
19
|
-
export {
|
|
20
|
-
update,
|
|
21
|
-
updateMetrics,
|
|
22
|
-
updateStops,
|
|
23
|
-
} from './update';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a new delivery route
|
|
3
|
-
*
|
|
4
|
-
* @param data The delivery route data to store
|
|
5
|
-
* @returns The newly created delivery route record
|
|
6
|
-
*/
|
|
7
|
-
export declare function store(data: NewDeliveryRoute): Promise<DeliveryRouteJsonResponse>;
|
|
8
|
-
/**
|
|
9
|
-
* Update a delivery route's last active timestamp
|
|
10
|
-
*
|
|
11
|
-
* @param id The ID of the delivery route to update
|
|
12
|
-
* @returns The updated delivery route record
|
|
13
|
-
*/
|
|
14
|
-
export declare function updateLastActive(id: number): Promise<DeliveryRouteJsonResponse>;
|
|
15
|
-
declare type DeliveryRouteJsonResponse = ModelRow<typeof DeliveryRoute>;
|
|
16
|
-
declare type NewDeliveryRoute = NewModelData<typeof DeliveryRoute>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Update a delivery route
|
|
3
|
-
*
|
|
4
|
-
* @param id The ID of the delivery route
|
|
5
|
-
* @param data The delivery route data to update
|
|
6
|
-
* @returns The updated delivery route record
|
|
7
|
-
*/
|
|
8
|
-
export declare function update(id: number, data: DeliveryRouteUpdate): Promise<DeliveryRouteJsonResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Update a delivery route's stops count
|
|
11
|
-
*
|
|
12
|
-
* @param id The ID of the delivery route
|
|
13
|
-
* @param stops The new number of stops
|
|
14
|
-
* @returns The updated delivery route with the new stops count
|
|
15
|
-
*/
|
|
16
|
-
export declare function updateStops(id: number, stops: number): Promise<DeliveryRouteJsonResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Update delivery metrics for a route
|
|
19
|
-
*
|
|
20
|
-
* @param id The ID of the delivery route
|
|
21
|
-
* @param delivery_time The updated delivery time
|
|
22
|
-
* @param total_distance The updated total distance
|
|
23
|
-
* @returns The updated delivery route
|
|
24
|
-
*/
|
|
25
|
-
export declare function updateMetrics(id: number, delivery_time?: number, total_distance?: number): Promise<DeliveryRouteJsonResponse>;
|
|
26
|
-
declare type DeliveryRouteJsonResponse = ModelRow<typeof DeliveryRoute>;
|
|
27
|
-
declare type DeliveryRouteUpdate = UpdateModelData<typeof DeliveryRoute>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete a digital delivery by ID
|
|
3
|
-
*
|
|
4
|
-
* @param id The ID of the digital delivery to delete
|
|
5
|
-
* @returns True if the digital delivery was deleted, false otherwise
|
|
6
|
-
*/
|
|
7
|
-
export declare function destroy(id: number): Promise<boolean>;
|
|
8
|
-
/**
|
|
9
|
-
* Soft delete a digital delivery by ID (updates status to 'inactive')
|
|
10
|
-
*
|
|
11
|
-
* @param id The ID of the digital delivery to soft delete
|
|
12
|
-
* @returns True if the digital delivery was soft deleted, false otherwise
|
|
13
|
-
*/
|
|
14
|
-
export declare function softDelete(id: number): Promise<boolean>;
|
|
15
|
-
/**
|
|
16
|
-
* Delete multiple digital deliveries by ID
|
|
17
|
-
*
|
|
18
|
-
* @param ids Array of digital delivery IDs to delete
|
|
19
|
-
* @returns Number of digital deliveries deleted
|
|
20
|
-
*/
|
|
21
|
-
export declare function bulkDestroy(ids: number[]): Promise<number>;
|
|
22
|
-
/**
|
|
23
|
-
* Soft delete multiple digital deliveries by ID (updates status to 'inactive')
|
|
24
|
-
*
|
|
25
|
-
* @param ids Array of digital delivery IDs to soft delete
|
|
26
|
-
* @returns Number of digital deliveries soft deleted
|
|
27
|
-
*/
|
|
28
|
-
export declare function bulkSoftDelete(ids: number[]): Promise<number>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch a shipping method by ID
|
|
3
|
-
*/
|
|
4
|
-
export declare function fetchById(id: number): Promise<DigitalDeliveryJsonResponse | undefined>;
|
|
5
|
-
/**
|
|
6
|
-
* Fetch all digital deliveries
|
|
7
|
-
*/
|
|
8
|
-
export declare function fetchAll(): Promise<DigitalDeliveryJsonResponse[]>;
|
|
9
|
-
declare type DigitalDeliveryJsonResponse = ModelRow<typeof DigitalDelivery>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Functions from destroy.ts
|
|
2
|
-
export {
|
|
3
|
-
bulkDestroy,
|
|
4
|
-
bulkSoftDelete,
|
|
5
|
-
destroy,
|
|
6
|
-
softDelete,
|
|
7
|
-
} from './destroy';
|
|
8
|
-
// Functions from fetch.ts
|
|
9
|
-
export {
|
|
10
|
-
fetchAll,
|
|
11
|
-
fetchById,
|
|
12
|
-
} from './fetch';
|
|
13
|
-
// Functions from store.ts
|
|
14
|
-
export {
|
|
15
|
-
bulkStore,
|
|
16
|
-
store,
|
|
17
|
-
} from './store';
|
|
18
|
-
// Functions from update.ts
|
|
19
|
-
export {
|
|
20
|
-
update,
|
|
21
|
-
updateDeliverySettings,
|
|
22
|
-
updateStatus,
|
|
23
|
-
} from './update';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a new digital delivery
|
|
3
|
-
*
|
|
4
|
-
* @param data The digital delivery data to store
|
|
5
|
-
* @returns The newly created digital delivery record
|
|
6
|
-
*/
|
|
7
|
-
export declare function store(data: NewDigitalDelivery): Promise<DigitalDeliveryJsonResponse>;
|
|
8
|
-
/**
|
|
9
|
-
* Create multiple digital deliveries at once
|
|
10
|
-
*
|
|
11
|
-
* @param data Array of digital delivery data to store
|
|
12
|
-
* @returns Number of digital deliveries created
|
|
13
|
-
*/
|
|
14
|
-
export declare function bulkStore(data: NewDigitalDelivery[]): Promise<number>;
|
|
15
|
-
declare type DigitalDeliveryJsonResponse = ModelRow<typeof DigitalDelivery>;
|
|
16
|
-
declare type NewDigitalDelivery = NewModelData<typeof DigitalDelivery>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Update a digital delivery
|
|
3
|
-
*
|
|
4
|
-
* @param id The id of the digital delivery to update
|
|
5
|
-
* @param data The digital delivery data to update
|
|
6
|
-
* @returns The updated digital delivery record
|
|
7
|
-
*/
|
|
8
|
-
export declare function update(id: number, data: DigitalDeliveryUpdate): Promise<DigitalDeliveryJsonResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Update a digital delivery's status
|
|
11
|
-
*
|
|
12
|
-
* @param id The ID of the digital delivery
|
|
13
|
-
* @param status The new status
|
|
14
|
-
* @returns The updated digital delivery with the new status
|
|
15
|
-
*/
|
|
16
|
-
export declare function updateStatus(id: number, status: string | string[]): Promise<DigitalDeliveryJsonResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Update delivery settings for a digital delivery
|
|
19
|
-
*
|
|
20
|
-
* @param id The ID of the digital delivery
|
|
21
|
-
* @param download_limit Optional updated download limit
|
|
22
|
-
* @param expiry_days Optional updated expiry days
|
|
23
|
-
* @param requires_login Optional updated requires login flag
|
|
24
|
-
* @param automatic_delivery Optional updated automatic delivery flag
|
|
25
|
-
* @returns The updated digital delivery
|
|
26
|
-
*/
|
|
27
|
-
export declare function updateDeliverySettings(id: number, download_limit?: number, expiry_days?: number, requires_login?: boolean, automatic_delivery?: boolean): Promise<DigitalDeliveryJsonResponse>;
|
|
28
|
-
declare type DigitalDeliveryJsonResponse = ModelRow<typeof DigitalDelivery>;
|
|
29
|
-
declare type DigitalDeliveryUpdate = UpdateModelData<typeof DigitalDelivery>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete a driver by ID
|
|
3
|
-
*
|
|
4
|
-
* @param id The ID of the driver to delete
|
|
5
|
-
* @returns The deleted driver record
|
|
6
|
-
*/
|
|
7
|
-
export declare function destroy(id: number): Promise<DriverJsonResponse | undefined>;
|
|
8
|
-
/**
|
|
9
|
-
* Delete multiple drivers at once
|
|
10
|
-
*
|
|
11
|
-
* @param ids Array of driver IDs to delete
|
|
12
|
-
* @returns Number of drivers deleted
|
|
13
|
-
*/
|
|
14
|
-
export declare function bulkDestroy(ids: number[]): Promise<number>;
|
|
15
|
-
// Import dependencies
|
|
16
|
-
declare type DriverJsonResponse = ModelRow<typeof Driver>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch a driver by ID
|
|
3
|
-
*/
|
|
4
|
-
export declare function fetchById(id: number): Promise<DriverJsonResponse | undefined>;
|
|
5
|
-
/**
|
|
6
|
-
* Fetch all drivers
|
|
7
|
-
*/
|
|
8
|
-
export declare function fetchAll(): Promise<DriverJsonResponse[]>;
|
|
9
|
-
declare type DriverJsonResponse = ModelRow<typeof Driver>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Functions from destroy.ts
|
|
2
|
-
export {
|
|
3
|
-
bulkDestroy,
|
|
4
|
-
destroy,
|
|
5
|
-
} from './destroy';
|
|
6
|
-
// Functions from fetch.ts
|
|
7
|
-
export {
|
|
8
|
-
fetchAll,
|
|
9
|
-
fetchById,
|
|
10
|
-
} from './fetch';
|
|
11
|
-
// Functions from store.ts
|
|
12
|
-
export {
|
|
13
|
-
bulkStore,
|
|
14
|
-
store,
|
|
15
|
-
} from './store';
|
|
16
|
-
// Functions from update.ts
|
|
17
|
-
export {
|
|
18
|
-
update,
|
|
19
|
-
updateContact,
|
|
20
|
-
updateStatus,
|
|
21
|
-
} from './update';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a new driver
|
|
3
|
-
*
|
|
4
|
-
* @param data The driver data to store
|
|
5
|
-
* @returns The newly created driver record
|
|
6
|
-
*/
|
|
7
|
-
export declare function store(data: NewDriver): Promise<DriverJsonResponse>;
|
|
8
|
-
/**
|
|
9
|
-
* Create multiple drivers at once
|
|
10
|
-
*
|
|
11
|
-
* @param data Array of driver data to store
|
|
12
|
-
* @returns Number of drivers created
|
|
13
|
-
*/
|
|
14
|
-
export declare function bulkStore(data: NewDriver[]): Promise<number>;
|
|
15
|
-
declare type DriverJsonResponse = ModelRow<typeof Driver>;
|
|
16
|
-
declare type NewDriver = NewModelData<typeof Driver>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Update a driver
|
|
3
|
-
*
|
|
4
|
-
* @param id The id of the driver to update
|
|
5
|
-
* @param data The driver data to update
|
|
6
|
-
* @returns The updated driver record
|
|
7
|
-
*/
|
|
8
|
-
export declare function update(id: number, data: DriverUpdate): Promise<DriverJsonResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Update a driver's status
|
|
11
|
-
*
|
|
12
|
-
* @param id The ID of the driver
|
|
13
|
-
* @param status The new status (active, on_delivery, on_break)
|
|
14
|
-
* @returns The updated driver with the new status
|
|
15
|
-
*/
|
|
16
|
-
export declare function updateStatus(id: number, status: 'active' | 'on_delivery' | 'on_break'): Promise<DriverJsonResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Update driver's contact information
|
|
19
|
-
*
|
|
20
|
-
* @param id The ID of the driver
|
|
21
|
-
* @param phone The updated phone number
|
|
22
|
-
* @returns The updated driver
|
|
23
|
-
*/
|
|
24
|
-
export declare function updateContact(id: number, phone?: string): Promise<DriverJsonResponse>;
|
|
25
|
-
declare type DriverJsonResponse = ModelRow<typeof Driver>;
|
|
26
|
-
declare type DriverUpdate = UpdateModelData<typeof Driver>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as digital from './digital-deliveries/index';
|
|
2
|
-
import * as drivers from './drivers/index';
|
|
3
|
-
import * as licenses from './license-keys/index';
|
|
4
|
-
import * as methods from './shipping-methods/index';
|
|
5
|
-
import * as rates from './shipping-rates/index';
|
|
6
|
-
import * as routes from './delivery-routes/index';
|
|
7
|
-
import * as zones from './shipping-zones/index';
|
|
8
|
-
declare const shippings: ShippingsNamespace;
|
|
9
|
-
declare interface ShippingsNamespace {
|
|
10
|
-
digital: typeof digital
|
|
11
|
-
drivers: typeof drivers
|
|
12
|
-
licenses: typeof licenses
|
|
13
|
-
methods: typeof methods
|
|
14
|
-
rates: typeof rates
|
|
15
|
-
routes: typeof routes
|
|
16
|
-
zones: typeof zones
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
digital,
|
|
20
|
-
drivers,
|
|
21
|
-
licenses,
|
|
22
|
-
methods,
|
|
23
|
-
rates,
|
|
24
|
-
routes,
|
|
25
|
-
zones,
|
|
26
|
-
};
|
|
27
|
-
export default shippings;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete a license key by ID
|
|
3
|
-
*
|
|
4
|
-
* @param id The ID of the license key to delete
|
|
5
|
-
* @returns True if the license key was deleted, false otherwise
|
|
6
|
-
*/
|
|
7
|
-
export declare function destroy(id: number): Promise<boolean>;
|
|
8
|
-
/**
|
|
9
|
-
* Soft delete a license key by ID (updates status to 'inactive')
|
|
10
|
-
*
|
|
11
|
-
* @param id The ID of the license key to soft delete
|
|
12
|
-
* @returns True if the license key was soft deleted, false otherwise
|
|
13
|
-
*/
|
|
14
|
-
export declare function softDelete(id: number): Promise<boolean>;
|
|
15
|
-
/**
|
|
16
|
-
* Delete multiple license keys by ID
|
|
17
|
-
*
|
|
18
|
-
* @param ids Array of license key IDs to delete
|
|
19
|
-
* @returns Number of license keys deleted
|
|
20
|
-
*/
|
|
21
|
-
export declare function bulkDestroy(ids: number[]): Promise<number>;
|
|
22
|
-
/**
|
|
23
|
-
* Soft delete multiple license keys by ID (updates status to 'inactive')
|
|
24
|
-
*
|
|
25
|
-
* @param ids Array of license key IDs to soft delete
|
|
26
|
-
* @returns Number of license keys soft deleted
|
|
27
|
-
*/
|
|
28
|
-
export declare function bulkSoftDelete(ids: number[]): Promise<number>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch a shipping method by ID
|
|
3
|
-
*/
|
|
4
|
-
export declare function fetchById(id: number): Promise<LicenseKeyJsonResponse | undefined>;
|
|
5
|
-
/**
|
|
6
|
-
* Fetch all digital deliveries
|
|
7
|
-
*/
|
|
8
|
-
export declare function fetchAll(): Promise<LicenseKeyJsonResponse[]>;
|
|
9
|
-
declare type LicenseKeyJsonResponse = ModelRow<typeof LicenseKey>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Functions from destroy.ts
|
|
2
|
-
export {
|
|
3
|
-
bulkDestroy,
|
|
4
|
-
bulkSoftDelete,
|
|
5
|
-
destroy,
|
|
6
|
-
softDelete,
|
|
7
|
-
} from './destroy';
|
|
8
|
-
// Functions from fetch.ts
|
|
9
|
-
export {
|
|
10
|
-
fetchAll,
|
|
11
|
-
fetchById,
|
|
12
|
-
} from './fetch';
|
|
13
|
-
// Functions from store.ts
|
|
14
|
-
export {
|
|
15
|
-
bulkStore,
|
|
16
|
-
store,
|
|
17
|
-
} from './store';
|
|
18
|
-
// Functions from update.ts
|
|
19
|
-
export {
|
|
20
|
-
update,
|
|
21
|
-
updateExpiration,
|
|
22
|
-
updateStatus,
|
|
23
|
-
} from './update';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a new license key
|
|
3
|
-
*
|
|
4
|
-
* @param data The license key data to store
|
|
5
|
-
* @returns The newly created license key record
|
|
6
|
-
*/
|
|
7
|
-
export declare function store(data: NewLicenseKey): Promise<LicenseKeyJsonResponse>;
|
|
8
|
-
/**
|
|
9
|
-
* Create multiple license keys at once
|
|
10
|
-
*
|
|
11
|
-
* @param data Array of license key data to store
|
|
12
|
-
* @returns Number of license keys created
|
|
13
|
-
*/
|
|
14
|
-
export declare function bulkStore(data: NewLicenseKey[]): Promise<number>;
|
|
15
|
-
// Import dependencies
|
|
16
|
-
declare type LicenseKeyJsonResponse = ModelRow<typeof LicenseKey>;
|
|
17
|
-
declare type NewLicenseKey = NewModelData<typeof LicenseKey>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Update a license key
|
|
3
|
-
*
|
|
4
|
-
* @param id The ID of the license key
|
|
5
|
-
* @param data The license key data to update
|
|
6
|
-
* @returns The updated license key record
|
|
7
|
-
*/
|
|
8
|
-
export declare function update(id: number, data: LicenseKeyUpdate): Promise<LicenseKeyJsonResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Update a license key's status
|
|
11
|
-
*
|
|
12
|
-
* @param id The ID of the license key
|
|
13
|
-
* @param status The new status
|
|
14
|
-
* @returns The updated license key with the new status
|
|
15
|
-
*/
|
|
16
|
-
export declare function updateStatus(id: number, status: string | string[]): Promise<LicenseKeyJsonResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Update expiration information for a license key
|
|
19
|
-
*
|
|
20
|
-
* @param id The ID of the license key
|
|
21
|
-
* @param expiryDate The updated expiry date
|
|
22
|
-
* @returns The updated license key
|
|
23
|
-
*/
|
|
24
|
-
export declare function updateExpiration(id: number, expiryDate?: string | Date): Promise<LicenseKeyJsonResponse>;
|
|
25
|
-
declare type LicenseKeyJsonResponse = ModelRow<typeof LicenseKey>;
|
|
26
|
-
declare type LicenseKeyUpdate = UpdateModelData<typeof LicenseKey>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete a shipping method by ID
|
|
3
|
-
*
|
|
4
|
-
* @param id The ID of the shipping method to delete
|
|
5
|
-
* @returns True if the shipping method was deleted, false otherwise
|
|
6
|
-
*/
|
|
7
|
-
export declare function destroy(id: number): Promise<boolean>;
|
|
8
|
-
/**
|
|
9
|
-
* Soft delete a shipping method by ID (updates status to 'inactive')
|
|
10
|
-
*
|
|
11
|
-
* @param id The ID of the shipping method to soft delete
|
|
12
|
-
* @returns True if the shipping method was soft deleted, false otherwise
|
|
13
|
-
*/
|
|
14
|
-
export declare function softDelete(id: number): Promise<boolean>;
|
|
15
|
-
/**
|
|
16
|
-
* Delete multiple shipping methods by ID
|
|
17
|
-
*
|
|
18
|
-
* @param ids Array of shipping method IDs to delete
|
|
19
|
-
* @returns Number of shipping methods deleted
|
|
20
|
-
*/
|
|
21
|
-
export declare function bulkDestroy(ids: number[]): Promise<number>;
|
|
22
|
-
/**
|
|
23
|
-
* Soft delete multiple shipping methods by ID (updates status to 'inactive')
|
|
24
|
-
*
|
|
25
|
-
* @param ids Array of shipping method IDs to soft delete
|
|
26
|
-
* @returns Number of shipping methods soft deleted
|
|
27
|
-
*/
|
|
28
|
-
export declare function bulkSoftDelete(ids: number[]): Promise<number>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch a shipping method by ID
|
|
3
|
-
*/
|
|
4
|
-
export declare function fetchById(id: number): Promise<ShippingMethodJsonResponse | undefined>;
|
|
5
|
-
/**
|
|
6
|
-
* Fetch all shipping methods with their shipping zones
|
|
7
|
-
*/
|
|
8
|
-
export declare function fetchAll(): Promise<ShippingMethodJsonResponse[]>;
|
|
9
|
-
declare type ShippingMethodJsonResponse = ModelRow<typeof ShippingMethod>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// Functions from destroy.ts
|
|
2
|
-
export {
|
|
3
|
-
bulkDestroy,
|
|
4
|
-
bulkSoftDelete,
|
|
5
|
-
destroy,
|
|
6
|
-
softDelete,
|
|
7
|
-
} from './destroy';
|
|
8
|
-
// Functions from fetch.ts
|
|
9
|
-
export {
|
|
10
|
-
fetchAll,
|
|
11
|
-
fetchById,
|
|
12
|
-
} from './fetch';
|
|
13
|
-
// Functions from store.ts
|
|
14
|
-
export {
|
|
15
|
-
bulkStore,
|
|
16
|
-
formatShippingOptions,
|
|
17
|
-
getActiveShippingMethods,
|
|
18
|
-
store,
|
|
19
|
-
} from './store';
|
|
20
|
-
// Functions from update.ts
|
|
21
|
-
export {
|
|
22
|
-
update,
|
|
23
|
-
updatePricing,
|
|
24
|
-
updateStatus,
|
|
25
|
-
} from './update';
|