@final-commerce/command-frame 0.0.1
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/LICENSE +22 -0
- package/README.md +418 -0
- package/dist/actions/add-cart-discount/action.d.ts +6 -0
- package/dist/actions/add-cart-discount/action.js +8 -0
- package/dist/actions/add-cart-discount/types.d.ts +13 -0
- package/dist/actions/add-cart-discount/types.js +1 -0
- package/dist/actions/add-cart-fee/action.d.ts +6 -0
- package/dist/actions/add-cart-fee/action.js +8 -0
- package/dist/actions/add-cart-fee/types.d.ts +16 -0
- package/dist/actions/add-cart-fee/types.js +1 -0
- package/dist/actions/add-custom-sale/action.d.ts +6 -0
- package/dist/actions/add-custom-sale/action.js +8 -0
- package/dist/actions/add-custom-sale/types.d.ts +13 -0
- package/dist/actions/add-custom-sale/types.js +1 -0
- package/dist/actions/add-customer/action.d.ts +6 -0
- package/dist/actions/add-customer/action.js +8 -0
- package/dist/actions/add-customer/types.d.ts +9 -0
- package/dist/actions/add-customer/types.js +1 -0
- package/dist/actions/add-customer-note/action.d.ts +6 -0
- package/dist/actions/add-customer-note/action.js +8 -0
- package/dist/actions/add-customer-note/types.d.ts +11 -0
- package/dist/actions/add-customer-note/types.js +1 -0
- package/dist/actions/add-order-note/action.d.ts +6 -0
- package/dist/actions/add-order-note/action.js +8 -0
- package/dist/actions/add-order-note/types.d.ts +9 -0
- package/dist/actions/add-order-note/types.js +1 -0
- package/dist/actions/add-product-discount/action.d.ts +6 -0
- package/dist/actions/add-product-discount/action.js +8 -0
- package/dist/actions/add-product-discount/types.d.ts +13 -0
- package/dist/actions/add-product-discount/types.js +1 -0
- package/dist/actions/add-product-fee/action.d.ts +6 -0
- package/dist/actions/add-product-fee/action.js +8 -0
- package/dist/actions/add-product-fee/types.d.ts +16 -0
- package/dist/actions/add-product-fee/types.js +1 -0
- package/dist/actions/add-product-note/action.d.ts +6 -0
- package/dist/actions/add-product-note/action.js +8 -0
- package/dist/actions/add-product-note/types.d.ts +9 -0
- package/dist/actions/add-product-note/types.js +1 -0
- package/dist/actions/add-product-to-cart/action.d.ts +6 -0
- package/dist/actions/add-product-to-cart/action.js +8 -0
- package/dist/actions/add-product-to-cart/types.d.ts +12 -0
- package/dist/actions/add-product-to-cart/types.js +1 -0
- package/dist/actions/adjust-inventory/action.d.ts +6 -0
- package/dist/actions/adjust-inventory/action.js +8 -0
- package/dist/actions/adjust-inventory/types.d.ts +12 -0
- package/dist/actions/adjust-inventory/types.js +1 -0
- package/dist/actions/assign-customer/action.d.ts +6 -0
- package/dist/actions/assign-customer/action.js +8 -0
- package/dist/actions/assign-customer/types.d.ts +9 -0
- package/dist/actions/assign-customer/types.js +1 -0
- package/dist/actions/authenticate-user/action.d.ts +6 -0
- package/dist/actions/authenticate-user/action.js +8 -0
- package/dist/actions/authenticate-user/types.d.ts +9 -0
- package/dist/actions/authenticate-user/types.js +1 -0
- package/dist/actions/calculate-refund-total/action.d.ts +6 -0
- package/dist/actions/calculate-refund-total/action.js +8 -0
- package/dist/actions/calculate-refund-total/types.d.ts +12 -0
- package/dist/actions/calculate-refund-total/types.js +1 -0
- package/dist/actions/cash-payment/action.d.ts +6 -0
- package/dist/actions/cash-payment/action.js +8 -0
- package/dist/actions/cash-payment/types.d.ts +13 -0
- package/dist/actions/cash-payment/types.js +1 -0
- package/dist/actions/clear-cart/action.d.ts +6 -0
- package/dist/actions/clear-cart/action.js +8 -0
- package/dist/actions/clear-cart/types.d.ts +5 -0
- package/dist/actions/clear-cart/types.js +1 -0
- package/dist/actions/delete-parked-order/action.d.ts +6 -0
- package/dist/actions/delete-parked-order/action.js +8 -0
- package/dist/actions/delete-parked-order/types.d.ts +9 -0
- package/dist/actions/delete-parked-order/types.js +1 -0
- package/dist/actions/example-function/action.d.ts +6 -0
- package/dist/actions/example-function/action.js +8 -0
- package/dist/actions/example-function/types.d.ts +16 -0
- package/dist/actions/example-function/types.js +1 -0
- package/dist/actions/get-categories/action.d.ts +6 -0
- package/dist/actions/get-categories/action.js +8 -0
- package/dist/actions/get-categories/types.d.ts +16 -0
- package/dist/actions/get-categories/types.js +1 -0
- package/dist/actions/get-context/action.d.ts +6 -0
- package/dist/actions/get-context/action.js +8 -0
- package/dist/actions/get-context/types.d.ts +17 -0
- package/dist/actions/get-context/types.js +1 -0
- package/dist/actions/get-current-cart/action.d.ts +6 -0
- package/dist/actions/get-current-cart/action.js +8 -0
- package/dist/actions/get-current-cart/types.d.ts +6 -0
- package/dist/actions/get-current-cart/types.js +1 -0
- package/dist/actions/get-customers/action.d.ts +6 -0
- package/dist/actions/get-customers/action.js +8 -0
- package/dist/actions/get-customers/types.d.ts +31 -0
- package/dist/actions/get-customers/types.js +1 -0
- package/dist/actions/get-line-items-by-order/action.d.ts +6 -0
- package/dist/actions/get-line-items-by-order/action.js +8 -0
- package/dist/actions/get-line-items-by-order/types.d.ts +13 -0
- package/dist/actions/get-line-items-by-order/types.js +1 -0
- package/dist/actions/get-orders/action.d.ts +6 -0
- package/dist/actions/get-orders/action.js +8 -0
- package/dist/actions/get-orders/types.d.ts +17 -0
- package/dist/actions/get-orders/types.js +1 -0
- package/dist/actions/get-product-variants/action.d.ts +6 -0
- package/dist/actions/get-product-variants/action.js +8 -0
- package/dist/actions/get-product-variants/types.d.ts +9 -0
- package/dist/actions/get-product-variants/types.js +1 -0
- package/dist/actions/get-products/action.d.ts +6 -0
- package/dist/actions/get-products/action.js +8 -0
- package/dist/actions/get-products/types.d.ts +28 -0
- package/dist/actions/get-products/types.js +1 -0
- package/dist/actions/get-refunds/action.d.ts +6 -0
- package/dist/actions/get-refunds/action.js +8 -0
- package/dist/actions/get-refunds/types.d.ts +16 -0
- package/dist/actions/get-refunds/types.js +1 -0
- package/dist/actions/get-remaining-refundable-quantities/action.d.ts +6 -0
- package/dist/actions/get-remaining-refundable-quantities/action.js +8 -0
- package/dist/actions/get-remaining-refundable-quantities/types.d.ts +7 -0
- package/dist/actions/get-remaining-refundable-quantities/types.js +1 -0
- package/dist/actions/go-to-page/action.d.ts +6 -0
- package/dist/actions/go-to-page/action.js +8 -0
- package/dist/actions/go-to-page/types.d.ts +9 -0
- package/dist/actions/go-to-page/types.js +1 -0
- package/dist/actions/go-to-station-home/action.d.ts +6 -0
- package/dist/actions/go-to-station-home/action.js +8 -0
- package/dist/actions/go-to-station-home/types.d.ts +5 -0
- package/dist/actions/go-to-station-home/types.js +1 -0
- package/dist/actions/initiate-refund/action.d.ts +6 -0
- package/dist/actions/initiate-refund/action.js +8 -0
- package/dist/actions/initiate-refund/types.d.ts +9 -0
- package/dist/actions/initiate-refund/types.js +1 -0
- package/dist/actions/open-cash-drawer/action.d.ts +6 -0
- package/dist/actions/open-cash-drawer/action.js +8 -0
- package/dist/actions/open-cash-drawer/types.d.ts +5 -0
- package/dist/actions/open-cash-drawer/types.js +1 -0
- package/dist/actions/open-popup/action.d.ts +6 -0
- package/dist/actions/open-popup/action.js +8 -0
- package/dist/actions/open-popup/types.d.ts +9 -0
- package/dist/actions/open-popup/types.js +1 -0
- package/dist/actions/park-order/action.d.ts +6 -0
- package/dist/actions/park-order/action.js +8 -0
- package/dist/actions/park-order/types.d.ts +6 -0
- package/dist/actions/park-order/types.js +1 -0
- package/dist/actions/partial-payment/action.d.ts +6 -0
- package/dist/actions/partial-payment/action.js +8 -0
- package/dist/actions/partial-payment/types.d.ts +14 -0
- package/dist/actions/partial-payment/types.js +1 -0
- package/dist/actions/process-partial-refund/action.d.ts +6 -0
- package/dist/actions/process-partial-refund/action.js +8 -0
- package/dist/actions/process-partial-refund/types.d.ts +9 -0
- package/dist/actions/process-partial-refund/types.js +1 -0
- package/dist/actions/remove-customer-from-cart/action.d.ts +6 -0
- package/dist/actions/remove-customer-from-cart/action.js +8 -0
- package/dist/actions/remove-customer-from-cart/types.d.ts +5 -0
- package/dist/actions/remove-customer-from-cart/types.js +1 -0
- package/dist/actions/reset-refund-details/action.d.ts +6 -0
- package/dist/actions/reset-refund-details/action.js +8 -0
- package/dist/actions/reset-refund-details/types.d.ts +5 -0
- package/dist/actions/reset-refund-details/types.js +1 -0
- package/dist/actions/resume-parked-order/action.d.ts +6 -0
- package/dist/actions/resume-parked-order/action.js +8 -0
- package/dist/actions/resume-parked-order/types.d.ts +9 -0
- package/dist/actions/resume-parked-order/types.js +1 -0
- package/dist/actions/select-all-refund-items/action.d.ts +6 -0
- package/dist/actions/select-all-refund-items/action.js +8 -0
- package/dist/actions/select-all-refund-items/types.d.ts +6 -0
- package/dist/actions/select-all-refund-items/types.js +1 -0
- package/dist/actions/set-product-active/action.d.ts +6 -0
- package/dist/actions/set-product-active/action.js +8 -0
- package/dist/actions/set-product-active/types.d.ts +9 -0
- package/dist/actions/set-product-active/types.js +1 -0
- package/dist/actions/set-refund-stock-action/action.d.ts +6 -0
- package/dist/actions/set-refund-stock-action/action.js +8 -0
- package/dist/actions/set-refund-stock-action/types.d.ts +11 -0
- package/dist/actions/set-refund-stock-action/types.js +1 -0
- package/dist/actions/show-confirmation/action.d.ts +6 -0
- package/dist/actions/show-confirmation/action.js +8 -0
- package/dist/actions/show-confirmation/types.d.ts +9 -0
- package/dist/actions/show-confirmation/types.js +1 -0
- package/dist/actions/show-notification/action.d.ts +6 -0
- package/dist/actions/show-notification/action.js +8 -0
- package/dist/actions/show-notification/types.d.ts +9 -0
- package/dist/actions/show-notification/types.js +1 -0
- package/dist/actions/switch-user/action.d.ts +6 -0
- package/dist/actions/switch-user/action.js +8 -0
- package/dist/actions/switch-user/types.d.ts +13 -0
- package/dist/actions/switch-user/types.js +1 -0
- package/dist/actions/tap-to-pay-payment/action.d.ts +6 -0
- package/dist/actions/tap-to-pay-payment/action.js +8 -0
- package/dist/actions/tap-to-pay-payment/types.d.ts +11 -0
- package/dist/actions/tap-to-pay-payment/types.js +1 -0
- package/dist/actions/terminal-payment/action.d.ts +6 -0
- package/dist/actions/terminal-payment/action.js +8 -0
- package/dist/actions/terminal-payment/types.d.ts +11 -0
- package/dist/actions/terminal-payment/types.js +1 -0
- package/dist/actions/toggle-slide-out/action.d.ts +6 -0
- package/dist/actions/toggle-slide-out/action.js +8 -0
- package/dist/actions/toggle-slide-out/types.d.ts +9 -0
- package/dist/actions/toggle-slide-out/types.js +1 -0
- package/dist/actions/trigger-webhook/action.d.ts +6 -0
- package/dist/actions/trigger-webhook/action.js +8 -0
- package/dist/actions/trigger-webhook/types.d.ts +16 -0
- package/dist/actions/trigger-webhook/types.js +1 -0
- package/dist/actions/trigger-zapier-webhook/action.d.ts +6 -0
- package/dist/actions/trigger-zapier-webhook/action.js +8 -0
- package/dist/actions/trigger-zapier-webhook/types.d.ts +9 -0
- package/dist/actions/trigger-zapier-webhook/types.js +1 -0
- package/dist/actions/update-customer-facing-display/action.d.ts +6 -0
- package/dist/actions/update-customer-facing-display/action.js +8 -0
- package/dist/actions/update-customer-facing-display/types.d.ts +9 -0
- package/dist/actions/update-customer-facing-display/types.js +1 -0
- package/dist/actions/vendara-payment/action.d.ts +6 -0
- package/dist/actions/vendara-payment/action.js +8 -0
- package/dist/actions/vendara-payment/types.d.ts +11 -0
- package/dist/actions/vendara-payment/types.js +1 -0
- package/dist/client.d.ts +33 -0
- package/dist/client.js +145 -0
- package/dist/index.d.ts +108 -0
- package/dist/index.js +121 -0
- package/dist/types.d.ts +64 -0
- package/dist/types.js +1 -0
- package/package.json +48 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// Import actions from new folder structure
|
|
2
|
+
import { exampleFunction } from "./actions/example-function/action";
|
|
3
|
+
import { getProducts } from "./actions/get-products/action";
|
|
4
|
+
import { addCustomSale } from "./actions/add-custom-sale/action";
|
|
5
|
+
import { getCustomers } from "./actions/get-customers/action";
|
|
6
|
+
import { assignCustomer } from "./actions/assign-customer/action";
|
|
7
|
+
import { addCustomer } from "./actions/add-customer/action";
|
|
8
|
+
import { getCategories } from "./actions/get-categories/action";
|
|
9
|
+
import { getProductVariants } from "./actions/get-product-variants/action";
|
|
10
|
+
import { getOrders } from "./actions/get-orders/action";
|
|
11
|
+
import { getRefunds } from "./actions/get-refunds/action";
|
|
12
|
+
import { addCartDiscount } from "./actions/add-cart-discount/action";
|
|
13
|
+
import { setProductActive } from "./actions/set-product-active/action";
|
|
14
|
+
import { getContext } from "./actions/get-context/action";
|
|
15
|
+
import { addProductDiscount } from "./actions/add-product-discount/action";
|
|
16
|
+
import { addProductToCart } from "./actions/add-product-to-cart/action";
|
|
17
|
+
// Product Actions
|
|
18
|
+
import { addProductNote } from "./actions/add-product-note/action";
|
|
19
|
+
import { addProductFee } from "./actions/add-product-fee/action";
|
|
20
|
+
import { adjustInventory } from "./actions/adjust-inventory/action";
|
|
21
|
+
// Order Actions
|
|
22
|
+
import { addOrderNote } from "./actions/add-order-note/action";
|
|
23
|
+
import { addCartFee } from "./actions/add-cart-fee/action";
|
|
24
|
+
import { clearCart } from "./actions/clear-cart/action";
|
|
25
|
+
import { parkOrder } from "./actions/park-order/action";
|
|
26
|
+
import { resumeParkedOrder } from "./actions/resume-parked-order/action";
|
|
27
|
+
import { deleteParkedOrder } from "./actions/delete-parked-order/action";
|
|
28
|
+
import { initiateRefund } from "./actions/initiate-refund/action";
|
|
29
|
+
import { cashPayment } from "./actions/cash-payment/action";
|
|
30
|
+
import { tapToPayPayment } from "./actions/tap-to-pay-payment/action";
|
|
31
|
+
import { terminalPayment } from "./actions/terminal-payment/action";
|
|
32
|
+
import { vendaraPayment } from "./actions/vendara-payment/action";
|
|
33
|
+
// Customer Actions
|
|
34
|
+
import { addCustomerNote } from "./actions/add-customer-note/action";
|
|
35
|
+
import { removeCustomerFromCart } from "./actions/remove-customer-from-cart/action";
|
|
36
|
+
// System Actions
|
|
37
|
+
import { goToStationHome } from "./actions/go-to-station-home/action";
|
|
38
|
+
import { goToPage } from "./actions/go-to-page/action";
|
|
39
|
+
import { openCashDrawer } from "./actions/open-cash-drawer/action";
|
|
40
|
+
import { openPopup } from "./actions/open-popup/action";
|
|
41
|
+
import { showNotification } from "./actions/show-notification/action";
|
|
42
|
+
import { toggleSlideOut } from "./actions/toggle-slide-out/action";
|
|
43
|
+
import { showConfirmation } from "./actions/show-confirmation/action";
|
|
44
|
+
import { authenticateUser } from "./actions/authenticate-user/action";
|
|
45
|
+
import { updateCustomerFacingDisplay } from "./actions/update-customer-facing-display/action";
|
|
46
|
+
import { partialPayment } from "./actions/partial-payment/action";
|
|
47
|
+
import { switchUser } from "./actions/switch-user/action";
|
|
48
|
+
// Integration Actions
|
|
49
|
+
import { triggerWebhook } from "./actions/trigger-webhook/action";
|
|
50
|
+
import { triggerZapierWebhook } from "./actions/trigger-zapier-webhook/action";
|
|
51
|
+
import { getLineItemsByOrder } from "./actions/get-line-items-by-order/action";
|
|
52
|
+
import { setRefundStockAction } from "./actions/set-refund-stock-action/action";
|
|
53
|
+
import { selectAllRefundItems } from "./actions/select-all-refund-items/action";
|
|
54
|
+
import { resetRefundDetails } from "./actions/reset-refund-details/action";
|
|
55
|
+
import { calculateRefundTotal } from "./actions/calculate-refund-total/action";
|
|
56
|
+
import { getRemainingRefundableQuantities } from "./actions/get-remaining-refundable-quantities/action";
|
|
57
|
+
import { processPartialRefund } from "./actions/process-partial-refund/action";
|
|
58
|
+
import { getCurrentCart } from "./actions/get-current-cart/action";
|
|
59
|
+
// Export actions as command object
|
|
60
|
+
export const command = {
|
|
61
|
+
exampleFunction,
|
|
62
|
+
getProducts,
|
|
63
|
+
addCustomSale,
|
|
64
|
+
getCustomers,
|
|
65
|
+
assignCustomer,
|
|
66
|
+
addCustomer,
|
|
67
|
+
getCategories,
|
|
68
|
+
getProductVariants,
|
|
69
|
+
getOrders,
|
|
70
|
+
getRefunds,
|
|
71
|
+
setProductActive,
|
|
72
|
+
addProductDiscount,
|
|
73
|
+
addProductToCart,
|
|
74
|
+
addCartDiscount,
|
|
75
|
+
getContext,
|
|
76
|
+
// Product Actions
|
|
77
|
+
addProductNote,
|
|
78
|
+
addProductFee,
|
|
79
|
+
adjustInventory,
|
|
80
|
+
// Order Actions
|
|
81
|
+
addOrderNote,
|
|
82
|
+
addCartFee,
|
|
83
|
+
clearCart,
|
|
84
|
+
parkOrder,
|
|
85
|
+
resumeParkedOrder,
|
|
86
|
+
deleteParkedOrder,
|
|
87
|
+
initiateRefund,
|
|
88
|
+
cashPayment,
|
|
89
|
+
tapToPayPayment,
|
|
90
|
+
terminalPayment,
|
|
91
|
+
vendaraPayment,
|
|
92
|
+
// Customer Actions
|
|
93
|
+
addCustomerNote,
|
|
94
|
+
removeCustomerFromCart,
|
|
95
|
+
// System Actions
|
|
96
|
+
goToStationHome,
|
|
97
|
+
goToPage,
|
|
98
|
+
openCashDrawer,
|
|
99
|
+
openPopup,
|
|
100
|
+
showNotification,
|
|
101
|
+
toggleSlideOut,
|
|
102
|
+
showConfirmation,
|
|
103
|
+
authenticateUser,
|
|
104
|
+
updateCustomerFacingDisplay,
|
|
105
|
+
partialPayment,
|
|
106
|
+
switchUser,
|
|
107
|
+
// Integration Actions
|
|
108
|
+
triggerWebhook,
|
|
109
|
+
triggerZapierWebhook,
|
|
110
|
+
// Refund Actions
|
|
111
|
+
getLineItemsByOrder,
|
|
112
|
+
setRefundStockAction,
|
|
113
|
+
selectAllRefundItems,
|
|
114
|
+
resetRefundDetails,
|
|
115
|
+
calculateRefundTotal,
|
|
116
|
+
getRemainingRefundableQuantities,
|
|
117
|
+
processPartialRefund,
|
|
118
|
+
getCurrentCart
|
|
119
|
+
};
|
|
120
|
+
// Export client
|
|
121
|
+
export { commandFrameClient, CommandFrameClient } from "./client";
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export interface ExampleFunctionParams {
|
|
2
|
+
param1?: string;
|
|
3
|
+
param2?: string;
|
|
4
|
+
param3?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ExampleFunctionResponse {
|
|
7
|
+
receivedParams: ExampleFunctionParams;
|
|
8
|
+
responsePayload: {
|
|
9
|
+
field1: string;
|
|
10
|
+
field2: string;
|
|
11
|
+
field3: string;
|
|
12
|
+
};
|
|
13
|
+
timestamp: string;
|
|
14
|
+
processed: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type ExampleFunction = (params?: ExampleFunctionParams) => Promise<ExampleFunctionResponse>;
|
|
17
|
+
export interface GetProductsParams {
|
|
18
|
+
query?: Record<string, any>;
|
|
19
|
+
}
|
|
20
|
+
export interface GetProductsResponse {
|
|
21
|
+
products: any[];
|
|
22
|
+
timestamp: string;
|
|
23
|
+
}
|
|
24
|
+
export type GetProducts = (params?: GetProductsParams) => Promise<GetProductsResponse>;
|
|
25
|
+
export interface AddCustomSaleParams {
|
|
26
|
+
label: string;
|
|
27
|
+
price: number | string;
|
|
28
|
+
applyTaxes?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface AddCustomSaleResponse {
|
|
31
|
+
success: boolean;
|
|
32
|
+
label: string;
|
|
33
|
+
price: number;
|
|
34
|
+
applyTaxes: boolean;
|
|
35
|
+
timestamp: string;
|
|
36
|
+
}
|
|
37
|
+
export type AddCustomSale = (params?: AddCustomSaleParams) => Promise<AddCustomSaleResponse>;
|
|
38
|
+
export interface GetCustomersParams {
|
|
39
|
+
query?: Record<string, any>;
|
|
40
|
+
}
|
|
41
|
+
export interface GetCustomersResponse {
|
|
42
|
+
customers: any[];
|
|
43
|
+
total?: number;
|
|
44
|
+
timestamp: string;
|
|
45
|
+
}
|
|
46
|
+
export type GetCustomers = (params?: GetCustomersParams) => Promise<GetCustomersResponse>;
|
|
47
|
+
export interface AssignCustomerParams {
|
|
48
|
+
customerId: string;
|
|
49
|
+
}
|
|
50
|
+
export interface AssignCustomerResponse {
|
|
51
|
+
success: boolean;
|
|
52
|
+
customer: any;
|
|
53
|
+
timestamp: string;
|
|
54
|
+
}
|
|
55
|
+
export type AssignCustomer = (params: AssignCustomerParams) => Promise<AssignCustomerResponse>;
|
|
56
|
+
export interface AddCustomerParams {
|
|
57
|
+
customer: Record<string, any>;
|
|
58
|
+
}
|
|
59
|
+
export interface AddCustomerResponse {
|
|
60
|
+
success: boolean;
|
|
61
|
+
customer: any;
|
|
62
|
+
timestamp: string;
|
|
63
|
+
}
|
|
64
|
+
export type AddCustomer = (params: AddCustomerParams) => Promise<AddCustomerResponse>;
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@final-commerce/command-frame",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Commands Frame library",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/",
|
|
9
|
+
"README.md",
|
|
10
|
+
"LICENSE",
|
|
11
|
+
"package.json"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc",
|
|
15
|
+
"build:clean": "rm -rf dist && npm run build",
|
|
16
|
+
"dev": "tsc --watch",
|
|
17
|
+
"prepublishOnly": "npm run build",
|
|
18
|
+
"prepare": "npm run build",
|
|
19
|
+
"format": "prettier --write .",
|
|
20
|
+
"format:check": "prettier --check .",
|
|
21
|
+
"publish:npm": "npm publish --registry=https://registry.npmjs.org",
|
|
22
|
+
"publish:github": "npm publish --registry=https://npm.pkg.github.com",
|
|
23
|
+
"publish:all": "npm run publish:npm && npm run publish:github"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"final commerce",
|
|
27
|
+
"finalpos",
|
|
28
|
+
"final",
|
|
29
|
+
"command",
|
|
30
|
+
"frame"
|
|
31
|
+
],
|
|
32
|
+
"author": "Final Commerce",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public",
|
|
36
|
+
"registry": "https://registry.npmjs.org/"
|
|
37
|
+
},
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "git+https://github.com/Final-Commerce/command-frame.git"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
44
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
45
|
+
"prettier": "^3.7.1",
|
|
46
|
+
"typescript": "^5.0.0"
|
|
47
|
+
}
|
|
48
|
+
}
|