@final-commerce/command-frame 0.2.0-beta.1 → 0.3.0-beta.3
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/README.md +28 -26
- package/dist/CommonTypes.d.ts +79 -534
- package/dist/CommonTypes.js +5 -65
- package/dist/actions/add-customer-note/mock.js +24 -15
- package/dist/actions/add-customer-note/types.d.ts +3 -2
- package/dist/actions/add-product/mock.js +12 -6
- package/dist/actions/add-product-discount/mock.js +5 -5
- package/dist/actions/add-product-fee/mock.js +6 -6
- package/dist/actions/cash-payment/types.d.ts +0 -5
- package/dist/actions/delete-parked-order/types.d.ts +0 -3
- package/dist/actions/edit-product/mock.js +5 -3
- package/dist/actions/extension-payment/types.d.ts +4 -5
- package/dist/actions/get-context/mock.js +12 -6
- package/dist/actions/get-products/mock.js +3 -3
- package/dist/actions/get-roles/mock.js +35 -41
- package/dist/actions/get-smart-grid-layout/action.d.ts +2 -0
- package/dist/actions/get-smart-grid-layout/action.js +4 -0
- package/dist/actions/get-smart-grid-layout/mock.d.ts +2 -0
- package/dist/actions/get-smart-grid-layout/mock.js +7 -0
- package/dist/actions/get-smart-grid-layout/types.d.ts +12 -0
- package/dist/actions/get-users/mock.js +16 -25
- package/dist/actions/initiate-refund/types.d.ts +0 -3
- package/dist/actions/integration-payment/action.d.ts +5 -0
- package/dist/actions/integration-payment/action.js +7 -0
- package/dist/actions/integration-payment/mock.d.ts +2 -0
- package/dist/actions/integration-payment/mock.js +4 -0
- package/dist/actions/integration-payment/types.d.ts +16 -0
- package/dist/actions/open-extension-overlay/action.d.ts +2 -0
- package/dist/actions/open-extension-overlay/action.js +4 -0
- package/dist/actions/open-extension-overlay/mock.d.ts +2 -0
- package/dist/actions/open-extension-overlay/mock.js +1 -0
- package/dist/actions/open-extension-overlay/types.d.ts +9 -0
- package/dist/actions/park-order/types.d.ts +0 -3
- package/dist/actions/partial-payment/types.d.ts +0 -5
- package/dist/actions/print/mock.js +3 -6
- package/dist/actions/print/types.d.ts +1 -7
- package/dist/actions/process-partial-refund/types.d.ts +0 -3
- package/dist/actions/remove-customer-note/mock.js +14 -5
- package/dist/actions/resolve-extension-overlay/action.d.ts +2 -0
- package/dist/actions/resolve-extension-overlay/action.js +4 -0
- package/dist/actions/resolve-extension-overlay/mock.d.ts +2 -0
- package/dist/actions/resolve-extension-overlay/mock.js +1 -0
- package/dist/actions/resolve-extension-overlay/types.d.ts +9 -0
- package/dist/actions/resume-parked-order/mock.js +1 -1
- package/dist/actions/resume-parked-order/types.d.ts +0 -3
- package/dist/actions/save-smart-grid-layout/action.d.ts +2 -0
- package/dist/actions/save-smart-grid-layout/action.js +4 -0
- package/dist/actions/save-smart-grid-layout/mock.d.ts +2 -0
- package/dist/actions/save-smart-grid-layout/mock.js +7 -0
- package/dist/actions/save-smart-grid-layout/types.d.ts +12 -0
- package/dist/actions/set-active-product-discount/mock.js +1 -1
- package/dist/actions/set-active-product-fee/mock.js +1 -1
- package/dist/actions/tap-to-pay-payment/types.d.ts +0 -5
- package/dist/actions/terminal-payment/types.d.ts +0 -5
- package/dist/actions/vendara-payment/types.d.ts +0 -5
- package/dist/common-types/index.d.ts +0 -1
- package/dist/common-types/index.js +0 -1
- package/dist/demo/database.d.ts +21 -21
- package/dist/demo/database.js +36 -51
- package/dist/index.d.ts +124 -116
- package/dist/index.js +19 -15
- package/dist/interceptors/types.d.ts +34 -0
- package/dist/interceptors/types.js +1 -0
- package/dist/projects/render/mocks.js +10 -8
- package/dist/projects/render/types.d.ts +6 -5
- package/dist/pubsub/topics/attributes/attribute-created/types.d.ts +6 -0
- package/dist/pubsub/topics/attributes/attribute-created/types.js +1 -0
- package/dist/pubsub/topics/attributes/attribute-updated/types.d.ts +6 -0
- package/dist/pubsub/topics/attributes/attribute-updated/types.js +1 -0
- package/dist/pubsub/topics/attributes/index.d.ts +3 -0
- package/dist/pubsub/topics/attributes/index.js +18 -0
- package/dist/pubsub/topics/attributes/types.d.ts +6 -0
- package/dist/pubsub/topics/attributes/types.js +2 -0
- package/dist/pubsub/topics/categories/category-created/types.d.ts +6 -0
- package/dist/pubsub/topics/categories/category-created/types.js +1 -0
- package/dist/pubsub/topics/categories/category-updated/types.d.ts +6 -0
- package/dist/pubsub/topics/categories/category-updated/types.js +1 -0
- package/dist/pubsub/topics/categories/index.d.ts +3 -0
- package/dist/pubsub/topics/categories/index.js +18 -0
- package/dist/pubsub/topics/categories/types.d.ts +6 -0
- package/dist/pubsub/topics/categories/types.js +2 -0
- package/dist/pubsub/topics/index.d.ts +4 -0
- package/dist/pubsub/topics/index.js +4 -0
- package/dist/pubsub/topics/orders/index.js +0 -10
- package/dist/pubsub/topics/orders/types.d.ts +2 -6
- package/dist/pubsub/topics/orders/types.js +0 -2
- package/dist/pubsub/topics/print/print-completed/types.d.ts +1 -1
- package/dist/pubsub/topics/print/print-error/types.d.ts +1 -1
- package/dist/pubsub/topics/print/print-started/types.d.ts +1 -1
- package/dist/pubsub/topics/products/product-get-active/types.d.ts +6 -2
- package/dist/pubsub/topics/transactions/index.d.ts +3 -0
- package/dist/pubsub/topics/transactions/index.js +18 -0
- package/dist/pubsub/topics/transactions/transaction-created/types.d.ts +6 -0
- package/dist/pubsub/topics/transactions/transaction-created/types.js +1 -0
- package/dist/pubsub/topics/transactions/transaction-updated/types.d.ts +6 -0
- package/dist/pubsub/topics/transactions/transaction-updated/types.js +1 -0
- package/dist/pubsub/topics/transactions/types.d.ts +6 -0
- package/dist/pubsub/topics/transactions/types.js +2 -0
- package/dist/pubsub/topics/types.d.ts +8 -0
- package/dist/pubsub/topics/users/index.js +10 -0
- package/dist/pubsub/topics/users/types.d.ts +6 -2
- package/dist/pubsub/topics/users/types.js +2 -0
- package/dist/pubsub/topics/users/user-created/types.d.ts +6 -0
- package/dist/pubsub/topics/users/user-created/types.js +1 -0
- package/dist/pubsub/topics/users/user-updated/types.d.ts +6 -0
- package/dist/pubsub/topics/users/user-updated/types.js +1 -0
- package/dist/pubsub/topics/variants/index.d.ts +3 -0
- package/dist/pubsub/topics/variants/index.js +18 -0
- package/dist/pubsub/topics/variants/types.d.ts +6 -0
- package/dist/pubsub/topics/variants/types.js +2 -0
- package/dist/pubsub/topics/variants/variant-created/types.d.ts +6 -0
- package/dist/pubsub/topics/variants/variant-created/types.js +1 -0
- package/dist/pubsub/topics/variants/variant-updated/types.d.ts +6 -0
- package/dist/pubsub/topics/variants/variant-updated/types.js +1 -0
- package/package.json +15 -12
- package/dist/actions/can-transition/action.d.ts +0 -2
- package/dist/actions/can-transition/action.js +0 -4
- package/dist/actions/can-transition/mock.d.ts +0 -6
- package/dist/actions/can-transition/mock.js +0 -28
- package/dist/actions/can-transition/types.d.ts +0 -11
- package/dist/actions/get-available-transitions/action.d.ts +0 -2
- package/dist/actions/get-available-transitions/action.js +0 -4
- package/dist/actions/get-available-transitions/mock.d.ts +0 -6
- package/dist/actions/get-available-transitions/mock.js +0 -26
- package/dist/actions/get-available-transitions/types.d.ts +0 -9
- package/dist/actions/trigger-webhook/action.d.ts +0 -6
- package/dist/actions/trigger-webhook/action.js +0 -8
- package/dist/actions/trigger-webhook/mock.d.ts +0 -2
- package/dist/actions/trigger-webhook/mock.js +0 -8
- package/dist/actions/trigger-webhook/types.d.ts +0 -21
- package/dist/actions/trigger-webhook/types.js +0 -2
- package/dist/actions/trigger-zapier-webhook/action.d.ts +0 -6
- package/dist/actions/trigger-zapier-webhook/action.js +0 -8
- package/dist/actions/trigger-zapier-webhook/mock.d.ts +0 -2
- package/dist/actions/trigger-zapier-webhook/mock.js +0 -8
- package/dist/actions/trigger-zapier-webhook/types.d.ts +0 -9
- package/dist/common-types/order-state.d.ts +0 -32
- package/dist/common-types/order-state.js +0 -6
- package/dist/common-types/state-fragment.d.ts +0 -77
- package/dist/common-types/state-fragment.js +0 -10
- package/dist/fragments/index.d.ts +0 -1
- package/dist/fragments/index.js +0 -1
- package/dist/fragments/preorder-no-deposit.d.ts +0 -26
- package/dist/fragments/preorder-no-deposit.js +0 -166
- package/dist/pubsub/topics/orders/state-transition-blocked/types.d.ts +0 -16
- package/dist/pubsub/topics/orders/state-transition-completed/types.d.ts +0 -15
- /package/dist/actions/{can-transition → get-smart-grid-layout}/types.js +0 -0
- /package/dist/actions/{get-available-transitions → integration-payment}/types.js +0 -0
- /package/dist/actions/{trigger-zapier-webhook → open-extension-overlay}/types.js +0 -0
- /package/dist/{pubsub/topics/orders/state-transition-blocked → actions/resolve-extension-overlay}/types.js +0 -0
- /package/dist/{pubsub/topics/orders/state-transition-completed → actions/save-smart-grid-layout}/types.js +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,111 +1,112 @@
|
|
|
1
1
|
export declare const command: {
|
|
2
|
-
readonly exampleFunction: import("
|
|
3
|
-
readonly generateAPIKey: import("
|
|
4
|
-
readonly getProducts: import("
|
|
5
|
-
readonly addCustomSale: import("
|
|
6
|
-
readonly addNonRevenueItem: import("
|
|
7
|
-
readonly getCustomers: import("
|
|
8
|
-
readonly assignCustomer: import("
|
|
9
|
-
readonly addCustomer: import("
|
|
10
|
-
readonly editCustomer: import("
|
|
11
|
-
readonly getCategories: import("
|
|
12
|
-
readonly getOrders: import("
|
|
13
|
-
readonly getRefunds: import("
|
|
14
|
-
readonly addProductDiscount: import("
|
|
15
|
-
readonly addProductToCart: import("
|
|
16
|
-
readonly removeProductFromCart: import("
|
|
17
|
-
readonly updateCartItemQuantity: import("
|
|
18
|
-
readonly addCartDiscount: import("
|
|
19
|
-
readonly getContext: import("
|
|
20
|
-
readonly getFinalContext: import("
|
|
21
|
-
readonly addProductNote: import("
|
|
22
|
-
readonly addProductFee: import("
|
|
23
|
-
readonly setActiveProductFee: import("
|
|
24
|
-
readonly setActiveProductDiscount: import("
|
|
25
|
-
readonly getActiveProduct: import("
|
|
26
|
-
readonly setActiveProduct: import("
|
|
27
|
-
readonly adjustInventory: import("
|
|
28
|
-
readonly addOrderNote: import("
|
|
29
|
-
readonly addCartFee: import("
|
|
30
|
-
readonly getCurrentCart: import("
|
|
31
|
-
readonly clearCart: import("
|
|
32
|
-
readonly parkOrder: import("
|
|
33
|
-
readonly resumeParkedOrder: import("
|
|
34
|
-
readonly deleteParkedOrder: import("
|
|
35
|
-
readonly cashPayment: import("
|
|
36
|
-
readonly tapToPayPayment: import("
|
|
37
|
-
readonly terminalPayment: import("
|
|
38
|
-
readonly vendaraPayment: import("
|
|
39
|
-
readonly extensionPayment: import("
|
|
40
|
-
readonly redeemPayment: import("
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
61
|
-
readonly
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
2
|
+
readonly exampleFunction: import(".").ExampleFunction;
|
|
3
|
+
readonly generateAPIKey: import(".").GenerateAPIKey;
|
|
4
|
+
readonly getProducts: import(".").GetProducts;
|
|
5
|
+
readonly addCustomSale: import(".").AddCustomSale;
|
|
6
|
+
readonly addNonRevenueItem: import(".").AddNonRevenueItem;
|
|
7
|
+
readonly getCustomers: import(".").GetCustomers;
|
|
8
|
+
readonly assignCustomer: import(".").AssignCustomer;
|
|
9
|
+
readonly addCustomer: import(".").AddCustomer;
|
|
10
|
+
readonly editCustomer: import(".").EditCustomer;
|
|
11
|
+
readonly getCategories: import(".").GetCategories;
|
|
12
|
+
readonly getOrders: import(".").GetOrders;
|
|
13
|
+
readonly getRefunds: import(".").GetRefunds;
|
|
14
|
+
readonly addProductDiscount: import(".").AddProductDiscount;
|
|
15
|
+
readonly addProductToCart: import(".").AddProductToCart;
|
|
16
|
+
readonly removeProductFromCart: import(".").RemoveProductFromCart;
|
|
17
|
+
readonly updateCartItemQuantity: import(".").UpdateCartItemQuantity;
|
|
18
|
+
readonly addCartDiscount: import(".").AddCartDiscount;
|
|
19
|
+
readonly getContext: import(".").GetContext;
|
|
20
|
+
readonly getFinalContext: import(".").GetFinalContext;
|
|
21
|
+
readonly addProductNote: import(".").AddProductNote;
|
|
22
|
+
readonly addProductFee: import(".").AddProductFee;
|
|
23
|
+
readonly setActiveProductFee: import(".").SetActiveProductFee;
|
|
24
|
+
readonly setActiveProductDiscount: import(".").SetActiveProductDiscount;
|
|
25
|
+
readonly getActiveProduct: import(".").GetActiveProduct;
|
|
26
|
+
readonly setActiveProduct: import(".").SetActiveProduct;
|
|
27
|
+
readonly adjustInventory: import(".").AdjustInventory;
|
|
28
|
+
readonly addOrderNote: import(".").AddOrderNote;
|
|
29
|
+
readonly addCartFee: import(".").AddCartFee;
|
|
30
|
+
readonly getCurrentCart: import(".").GetCurrentCart;
|
|
31
|
+
readonly clearCart: import(".").ClearCart;
|
|
32
|
+
readonly parkOrder: import(".").ParkOrder;
|
|
33
|
+
readonly resumeParkedOrder: import(".").ResumeParkedOrder;
|
|
34
|
+
readonly deleteParkedOrder: import(".").DeleteParkedOrder;
|
|
35
|
+
readonly cashPayment: import(".").CashPayment;
|
|
36
|
+
readonly tapToPayPayment: import(".").TapToPayPayment;
|
|
37
|
+
readonly terminalPayment: import(".").TerminalPayment;
|
|
38
|
+
readonly vendaraPayment: import(".").VendaraPayment;
|
|
39
|
+
readonly extensionPayment: import(".").ExtensionPayment;
|
|
40
|
+
readonly redeemPayment: import(".").RedeemPayment;
|
|
41
|
+
readonly integrationPayment: import(".").IntegrationPayment;
|
|
42
|
+
readonly addCustomerNote: import(".").AddCustomerNote;
|
|
43
|
+
readonly removeCustomerNote: import(".").RemoveCustomerNote;
|
|
44
|
+
readonly removeCustomerFromCart: import(".").RemoveCustomerFromCart;
|
|
45
|
+
readonly removeCartDiscount: import(".").RemoveCartDiscount;
|
|
46
|
+
readonly goToStationHome: import(".").GoToStationHome;
|
|
47
|
+
readonly openCashDrawer: import(".").OpenCashDrawer;
|
|
48
|
+
readonly showNotification: import(".").ShowNotification;
|
|
49
|
+
readonly showConfirmation: import(".").ShowConfirmation;
|
|
50
|
+
readonly authenticateUser: import(".").AuthenticateUser;
|
|
51
|
+
readonly partialPayment: import(".").PartialPayment;
|
|
52
|
+
readonly switchUser: import(".").SwitchUser;
|
|
53
|
+
readonly print: import(".").Print;
|
|
54
|
+
readonly setActiveOrder: import(".").SetActiveOrder;
|
|
55
|
+
readonly getActiveOrder: import(".").GetActiveOrder;
|
|
56
|
+
readonly getActiveCustomer: import(".").GetActiveCustomer;
|
|
57
|
+
readonly setActiveCustomer: import(".").SetActiveCustomer;
|
|
58
|
+
readonly getActiveOutlet: import(".").GetActiveOutlet;
|
|
59
|
+
readonly setActiveOutlet: import(".").SetActiveOutlet;
|
|
60
|
+
readonly getActiveStation: import(".").GetActiveStation;
|
|
61
|
+
readonly setActiveStation: import(".").SetActiveStation;
|
|
62
|
+
readonly getActiveSession: import(".").GetActiveSession;
|
|
63
|
+
readonly setActiveSession: import(".").SetActiveSession;
|
|
64
|
+
readonly getActiveUser: import(".").GetActiveUser;
|
|
65
|
+
readonly setActiveUser: import(".").SetActiveUser;
|
|
66
|
+
readonly setActiveRefund: import(".").SetActiveRefund;
|
|
67
|
+
readonly removeProductDiscount: import(".").RemoveProductDiscount;
|
|
68
|
+
readonly removeProductFee: import(".").RemoveProductFee;
|
|
69
|
+
readonly removeProductNote: import(".").RemoveProductNote;
|
|
70
|
+
readonly removeCartFee: import(".").RemoveCartFee;
|
|
71
|
+
readonly removeOrderNote: import(".").RemoveOrderNote;
|
|
72
|
+
readonly removeCustomSale: import(".").RemoveCustomSale;
|
|
73
|
+
readonly removeNonRevenueItem: import(".").RemoveNonRevenueItem;
|
|
74
|
+
readonly getSmartGridLayout: import(".").GetSmartGridLayout;
|
|
75
|
+
readonly saveSmartGridLayout: import(".").SaveSmartGridLayout;
|
|
76
|
+
readonly openExtensionOverlay: import(".").OpenExtensionOverlay;
|
|
77
|
+
readonly resolveExtensionOverlay: import(".").ResolveExtensionOverlay;
|
|
78
|
+
readonly initiateRefund: import(".").InitiateRefund;
|
|
79
|
+
readonly setRefundStockAction: import(".").SetRefundStockAction;
|
|
80
|
+
readonly selectAllRefundItems: import(".").SelectAllRefundItems;
|
|
81
|
+
readonly resetRefundDetails: import(".").ResetRefundDetails;
|
|
82
|
+
readonly calculateRefundTotal: import(".").CalculateRefundTotal;
|
|
83
|
+
readonly getRemainingRefundableQuantities: import(".").GetRemainingRefundableQuantities;
|
|
84
|
+
readonly processPartialRefund: import(".").ProcessPartialRefund;
|
|
85
|
+
readonly addProduct: import(".").AddProduct;
|
|
86
|
+
readonly editProduct: import(".").EditProduct;
|
|
87
|
+
readonly editProductVariants: import(".").EditProductVariants;
|
|
88
|
+
readonly deleteProduct: import(".").DeleteProduct;
|
|
89
|
+
readonly getOutlets: import(".").GetOutlets;
|
|
90
|
+
readonly getStations: import(".").GetStations;
|
|
91
|
+
readonly getCustomTables: import(".").GetCustomTables;
|
|
92
|
+
readonly getCustomTableFields: import(".").GetCustomTableFields;
|
|
93
|
+
readonly getCustomTableData: import(".").GetCustomTableData;
|
|
94
|
+
readonly upsertCustomTableData: import(".").UpsertCustomTableData;
|
|
95
|
+
readonly deleteCustomTableData: import(".").DeleteCustomTableData;
|
|
96
|
+
readonly getCustomExtensions: import(".").GetCustomExtensions;
|
|
97
|
+
readonly getCurrentCompanyCustomExtensions: import(".").GetCurrentCompanyCustomExtensions;
|
|
98
|
+
readonly getCustomExtensionCustomTables: import(".").GetCustomExtensionCustomTables;
|
|
99
|
+
readonly getUsers: import(".").GetUsers;
|
|
100
|
+
readonly getRoles: import(".").GetRoles;
|
|
101
|
+
readonly getSecretsKeys: import(".").GetSecretsKeys;
|
|
102
|
+
readonly getSecretVal: import(".").GetSecretVal;
|
|
103
|
+
readonly setSecretVal: import(".").SetSecretVal;
|
|
104
|
+
readonly navigateTo: import(".").NavigateTo;
|
|
105
|
+
readonly refreshResource: import(".").RefreshResource;
|
|
106
|
+
readonly getMedia: import(".").GetMedia;
|
|
107
|
+
readonly uploadMedia: import(".").UploadMedia;
|
|
108
|
+
readonly getTaxTables: import(".").GetTaxTables;
|
|
109
|
+
readonly getBranding: import(".").GetBranding;
|
|
109
110
|
};
|
|
110
111
|
export type { ExampleFunction, ExampleFunctionParams, ExampleFunctionResponse } from "./actions/example-function/types";
|
|
111
112
|
export type { GenerateAPIKey, GenerateAPIKeyParams, GenerateAPIKeyResponse } from "./actions/generate-api-key/types";
|
|
@@ -159,6 +160,7 @@ export type { TerminalPayment, TerminalPaymentParams, TerminalPaymentResponse }
|
|
|
159
160
|
export type { VendaraPayment, VendaraPaymentParams, VendaraPaymentResponse } from "./actions/vendara-payment/types";
|
|
160
161
|
export type { ExtensionPayment, ExtensionPaymentParams, ExtensionPaymentResponse } from "./actions/extension-payment/types";
|
|
161
162
|
export type { RedeemPayment, RedeemPaymentParams, RedeemPaymentResponse } from "./actions/redeem-payment/types";
|
|
163
|
+
export type { IntegrationPayment, IntegrationPaymentParams, IntegrationPaymentResponse } from "./actions/integration-payment/types";
|
|
162
164
|
export { EXTENSION_REFUND_REQUEST_ACTION } from "./actions/extension-refund/constants";
|
|
163
165
|
export { installExtensionRefundListener } from "./actions/extension-refund/extension-refund-listener";
|
|
164
166
|
export type { ExtensionRefundParams, ExtensionRefundResponse } from "./actions/extension-refund/types";
|
|
@@ -200,8 +202,11 @@ export type { RemoveCartFee, RemoveCartFeeParams, RemoveCartFeeResponse } from "
|
|
|
200
202
|
export type { RemoveOrderNote, RemoveOrderNoteResponse } from "./actions/remove-order-note/types";
|
|
201
203
|
export type { RemoveCustomSale, RemoveCustomSaleParams, RemoveCustomSaleResponse } from "./actions/remove-custom-sale/types";
|
|
202
204
|
export type { RemoveNonRevenueItem, RemoveNonRevenueItemParams, RemoveNonRevenueItemResponse } from "./actions/remove-non-revenue-item/types";
|
|
203
|
-
export type {
|
|
204
|
-
export type {
|
|
205
|
+
export type { GetSmartGridLayout, GetSmartGridLayoutParams, GetSmartGridLayoutResponse } from "./actions/get-smart-grid-layout/types";
|
|
206
|
+
export type { SaveSmartGridLayout, SaveSmartGridLayoutParams, SaveSmartGridLayoutResponse } from "./actions/save-smart-grid-layout/types";
|
|
207
|
+
export type { OpenExtensionOverlay, OpenExtensionOverlayParams, OpenExtensionOverlayResponse } from "./actions/open-extension-overlay/types";
|
|
208
|
+
export type { ResolveExtensionOverlay, ResolveExtensionOverlayParams, ResolveExtensionOverlayResponse } from "./actions/resolve-extension-overlay/types";
|
|
209
|
+
export type { InterceptorPoint, InterceptorReturn, InterceptorFunction, InterceptorHostCommands, InterceptorRegisterOptions, InterceptorOverlayContext } from "./interceptors/types";
|
|
205
210
|
export * from "./CommonTypes";
|
|
206
211
|
export { setMockDatabase, setMockActiveProduct } from "./demo/database";
|
|
207
212
|
export type { MockDatabaseConfig } from "./demo/database";
|
|
@@ -228,14 +233,22 @@ export { outletTopic } from "./pubsub/topics/outlet";
|
|
|
228
233
|
export { stationTopic } from "./pubsub/topics/station";
|
|
229
234
|
export { sessionTopic } from "./pubsub/topics/session";
|
|
230
235
|
export { usersTopic } from "./pubsub/topics/users";
|
|
236
|
+
export { variantsTopic } from "./pubsub/topics/variants";
|
|
237
|
+
export { transactionsTopic } from "./pubsub/topics/transactions";
|
|
238
|
+
export { categoriesTopic } from "./pubsub/topics/categories";
|
|
239
|
+
export { attributesTopic } from "./pubsub/topics/attributes";
|
|
231
240
|
export type { CustomerCreatedPayload, CustomerUpdatedPayload, CustomerNoteAddedPayload, CustomerNoteDeletedPayload, CustomerAssignedPayload, CustomerUnassignedPayload, CustomerActiveSetPayload, CustomerActiveGetPayload, CustomerCreatedEvent, CustomerUpdatedEvent, CustomerNoteAddedEvent, CustomerNoteDeletedEvent, CustomerAssignedEvent, CustomerUnassignedEvent, CustomerActiveSetEvent, CustomerActiveGetEvent, CustomersEventType, CustomersEventPayload } from "./pubsub/topics/customers/types";
|
|
232
|
-
export type { OrderCreatedPayload, OrderUpdatedPayload, OrderActiveSetPayload, OrderActiveGetPayload, OrderCreatedEvent, OrderUpdatedEvent, OrderActiveSetEvent, OrderActiveGetEvent,
|
|
241
|
+
export type { OrderCreatedPayload, OrderUpdatedPayload, OrderActiveSetPayload, OrderActiveGetPayload, OrderCreatedEvent, OrderUpdatedEvent, OrderActiveSetEvent, OrderActiveGetEvent, OrdersEventType, OrdersEventPayload } from "./pubsub/topics/orders/types";
|
|
233
242
|
export type { RefundCreatedPayload, RefundUpdatedPayload, RefundActiveSetPayload, RefundActiveGetPayload, RefundCreatedEvent, RefundUpdatedEvent, RefundActiveSetEvent, RefundActiveGetEvent, RefundsEventType, RefundsEventPayload } from "./pubsub/topics/refunds/types";
|
|
234
243
|
export type { ProductCreatedPayload, ProductUpdatedPayload, ProductSetActivePayload, ProductGetActivePayload, ProductCreatedEvent, ProductUpdatedEvent, ProductSetActiveEvent, ProductGetActiveEvent, ProductsEventType, ProductsEventPayload } from "./pubsub/topics/products/types";
|
|
235
244
|
export type { OutletActiveSetPayload, OutletActiveGetPayload, OutletActiveSetEvent, OutletActiveGetEvent, OutletEventType, OutletEventPayload } from "./pubsub/topics/outlet/types";
|
|
236
245
|
export type { StationActiveSetPayload, StationActiveGetPayload, StationActiveSetEvent, StationActiveGetEvent, StationEventType, StationEventPayload } from "./pubsub/topics/station/types";
|
|
237
246
|
export type { SessionActiveSetPayload, SessionActiveGetPayload, SessionActiveSetEvent, SessionActiveGetEvent, SessionEventType, SessionEventPayload } from "./pubsub/topics/session/types";
|
|
238
|
-
export type { UserActiveSetPayload, UserActiveGetPayload, UserActiveSetEvent, UserActiveGetEvent, UsersEventType, UsersEventPayload } from "./pubsub/topics/users/types";
|
|
247
|
+
export type { UserActiveSetPayload, UserActiveGetPayload, UserActiveSetEvent, UserActiveGetEvent, UserCreatedPayload, UserCreatedEvent, UserUpdatedPayload, UserUpdatedEvent, UsersEventType, UsersEventPayload } from "./pubsub/topics/users/types";
|
|
248
|
+
export type { VariantCreatedPayload, VariantCreatedEvent, VariantUpdatedPayload, VariantUpdatedEvent, VariantsEventType, VariantsEventPayload } from "./pubsub/topics/variants/types";
|
|
249
|
+
export type { TransactionCreatedPayload, TransactionCreatedEvent, TransactionUpdatedPayload, TransactionUpdatedEvent, TransactionsEventType, TransactionsEventPayload } from "./pubsub/topics/transactions/types";
|
|
250
|
+
export type { CategoryCreatedPayload, CategoryCreatedEvent, CategoryUpdatedPayload, CategoryUpdatedEvent, CategoriesEventType, CategoriesEventPayload } from "./pubsub/topics/categories/types";
|
|
251
|
+
export type { AttributeCreatedPayload, AttributeCreatedEvent, AttributeUpdatedPayload, AttributeUpdatedEvent, AttributesEventType, AttributesEventPayload } from "./pubsub/topics/attributes/types";
|
|
239
252
|
export type { CartCreatedPayload, CartCustomerAssignedPayload, ProductAddedPayload, ProductDeletedPayload, CartDiscountAddedPayload, CartDiscountRemovedPayload, CartFeeAddedPayload, CartFeeRemovedPayload, ProductDiscountAddedPayload, ProductDiscountRemovedPayload, ProductFeeAddedPayload, ProductFeeRemovedPayload, ProductNoteAddedPayload, ProductNoteRemovedPayload, CartCreatedEvent, CartCustomerAssignedEvent, ProductAddedEvent, ProductDeletedEvent, CartDiscountAddedEvent, CartDiscountRemovedEvent, CartFeeAddedEvent, CartFeeRemovedEvent, ProductDiscountAddedEvent, ProductDiscountRemovedEvent, ProductFeeAddedEvent, ProductFeeRemovedEvent, ProductNoteAddedEvent, ProductNoteRemovedEvent, CartEventType, CartEventPayload } from "./pubsub/topics/cart/types";
|
|
240
253
|
export type { PaymentDonePayload, PaymentErrPayload, PaymentDoneEvent, PaymentErrEvent, PaymentsEventType, PaymentsEventPayload } from "./pubsub/topics/payments/types";
|
|
241
254
|
export type { RowCreatedPayload, RowUpdatedPayload, RowDeletedPayload, RowCreatedEvent, RowUpdatedEvent, RowDeletedEvent, CustomTablesEventType, CustomTablesEventPayload } from "./pubsub/topics/custom-tables/types";
|
|
@@ -255,8 +268,3 @@ export type { GetSecretVal, GetSecretValParams, GetSecretValResponse } from "./a
|
|
|
255
268
|
export type { SetSecretVal, SetSecretValParams, SetSecretValResponse } from "./actions/set-secret-val/types";
|
|
256
269
|
export type { GetUsers, GetUsersParams, GetUsersResponse } from "./actions/get-users/types";
|
|
257
270
|
export type { GetRoles, GetRolesParams, GetRolesResponse } from "./actions/get-roles/types";
|
|
258
|
-
export type { CFBlockedBy, CFStatePair, CFTransitionResult, CFFailedCondition, CFConditionStatus, CFAvailableTransition } from "./common-types/order-state";
|
|
259
|
-
export type { CFConditionOperator, CFCondition, CFConditionGroup, CFTransitionConditionSet, CFPaymentTransitionPath, CFFulfillmentTransitionPath, CFCrossAxisRule, CFDisplayStateRule, CFStateConfigFragment } from "./common-types/state-fragment";
|
|
260
|
-
export type { CanTransition, CanTransitionParams, CanTransitionResponse } from "./actions/can-transition/types";
|
|
261
|
-
export type { GetAvailableTransitions, GetAvailableTransitionsParams, GetAvailableTransitionsResponse } from "./actions/get-available-transitions/types";
|
|
262
|
-
export { preorderNoDepositFragment } from "./fragments";
|
package/dist/index.js
CHANGED
|
@@ -38,6 +38,7 @@ import { terminalPayment } from "./actions/terminal-payment/action";
|
|
|
38
38
|
import { vendaraPayment } from "./actions/vendara-payment/action";
|
|
39
39
|
import { extensionPayment } from "./actions/extension-payment/action";
|
|
40
40
|
import { redeemPayment } from "./actions/redeem-payment/action";
|
|
41
|
+
import { integrationPayment } from "./actions/integration-payment/action";
|
|
41
42
|
// Customer Actions
|
|
42
43
|
import { addCustomerNote } from "./actions/add-customer-note/action";
|
|
43
44
|
import { removeCustomerNote } from "./actions/remove-customer-note/action";
|
|
@@ -73,9 +74,12 @@ import { removeCartFee } from "./actions/remove-cart-fee/action";
|
|
|
73
74
|
import { removeOrderNote } from "./actions/remove-order-note/action";
|
|
74
75
|
import { removeCustomSale } from "./actions/remove-custom-sale/action";
|
|
75
76
|
import { removeNonRevenueItem } from "./actions/remove-non-revenue-item/action";
|
|
76
|
-
//
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
77
|
+
// SmartGrid Actions
|
|
78
|
+
import { getSmartGridLayout } from "./actions/get-smart-grid-layout/action";
|
|
79
|
+
import { saveSmartGridLayout } from "./actions/save-smart-grid-layout/action";
|
|
80
|
+
// Extension Overlay / Interceptor Actions
|
|
81
|
+
import { openExtensionOverlay } from "./actions/open-extension-overlay/action";
|
|
82
|
+
import { resolveExtensionOverlay } from "./actions/resolve-extension-overlay/action";
|
|
79
83
|
// Refund Actions
|
|
80
84
|
import { getRefunds } from "./actions/get-refunds/action";
|
|
81
85
|
import { initiateRefund } from "./actions/initiate-refund/action";
|
|
@@ -102,9 +106,6 @@ import { getSecretsKeys } from "./actions/get-secrets-keys/action";
|
|
|
102
106
|
import { getSecretVal } from "./actions/get-secret-val/action";
|
|
103
107
|
import { setSecretVal } from "./actions/set-secret-val/action";
|
|
104
108
|
import { generateAPIKey } from "./actions/generate-api-key/action";
|
|
105
|
-
// State Machine Query Actions
|
|
106
|
-
import { canTransition } from "./actions/can-transition/action";
|
|
107
|
-
import { getAvailableTransitions } from "./actions/get-available-transitions/action";
|
|
108
109
|
// Product CRUD Actions
|
|
109
110
|
import { addProduct } from "./actions/add-product/action";
|
|
110
111
|
import { editProduct } from "./actions/edit-product/action";
|
|
@@ -163,6 +164,7 @@ export const command = {
|
|
|
163
164
|
vendaraPayment,
|
|
164
165
|
extensionPayment,
|
|
165
166
|
redeemPayment,
|
|
167
|
+
integrationPayment,
|
|
166
168
|
// Customer Actions
|
|
167
169
|
addCustomerNote,
|
|
168
170
|
removeCustomerNote,
|
|
@@ -198,9 +200,12 @@ export const command = {
|
|
|
198
200
|
removeOrderNote,
|
|
199
201
|
removeCustomSale,
|
|
200
202
|
removeNonRevenueItem,
|
|
201
|
-
//
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
// SmartGrid Actions
|
|
204
|
+
getSmartGridLayout,
|
|
205
|
+
saveSmartGridLayout,
|
|
206
|
+
// Extension Overlay / Interceptor Actions
|
|
207
|
+
openExtensionOverlay,
|
|
208
|
+
resolveExtensionOverlay,
|
|
204
209
|
// Refund Actions
|
|
205
210
|
initiateRefund,
|
|
206
211
|
setRefundStockAction,
|
|
@@ -240,10 +245,7 @@ export const command = {
|
|
|
240
245
|
getMedia,
|
|
241
246
|
uploadMedia,
|
|
242
247
|
getTaxTables,
|
|
243
|
-
getBranding
|
|
244
|
-
// State Machine Queries
|
|
245
|
-
canTransition,
|
|
246
|
-
getAvailableTransitions
|
|
248
|
+
getBranding
|
|
247
249
|
};
|
|
248
250
|
export { EXTENSION_REFUND_REQUEST_ACTION } from "./actions/extension-refund/constants";
|
|
249
251
|
export { installExtensionRefundListener } from "./actions/extension-refund/extension-refund-listener";
|
|
@@ -276,7 +278,9 @@ export { outletTopic } from "./pubsub/topics/outlet";
|
|
|
276
278
|
export { stationTopic } from "./pubsub/topics/station";
|
|
277
279
|
export { sessionTopic } from "./pubsub/topics/session";
|
|
278
280
|
export { usersTopic } from "./pubsub/topics/users";
|
|
281
|
+
export { variantsTopic } from "./pubsub/topics/variants";
|
|
282
|
+
export { transactionsTopic } from "./pubsub/topics/transactions";
|
|
283
|
+
export { categoriesTopic } from "./pubsub/topics/categories";
|
|
284
|
+
export { attributesTopic } from "./pubsub/topics/attributes";
|
|
279
285
|
// Export Custom Tables Types
|
|
280
286
|
export { AttributeType } from "./common-types/attribute-type";
|
|
281
|
-
// State Machine Fragments
|
|
282
|
-
export { preorderNoDepositFragment } from "./fragments";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interceptors let an installed extension gate a host flow at a named point.
|
|
3
|
+
* Registration mirrors hooks: the callback is serialized and reconstructed on the host,
|
|
4
|
+
* so it must be self-contained (use only its payload arg and the injected host commands).
|
|
5
|
+
*/
|
|
6
|
+
export type InterceptorPoint = "refund_start";
|
|
7
|
+
/** false = stop the flow; true = continue, no data; object = continue and merge into the flow payload. */
|
|
8
|
+
export type InterceptorReturn<T extends Record<string, unknown> = Record<string, unknown>> = boolean | T;
|
|
9
|
+
/** Params accepted by the host-injected `openExtensionOverlay` command. */
|
|
10
|
+
export interface OpenExtensionOverlayCommandParams {
|
|
11
|
+
point: InterceptorPoint;
|
|
12
|
+
payload?: unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Host commands injected into an interceptor callback. `openExtensionOverlay` is the one
|
|
16
|
+
* always-present command; additional host commands are dispatched through the same shape.
|
|
17
|
+
* Heterogeneous command payloads are sent via the separate `callCommand` arg of
|
|
18
|
+
* `InterceptorFunction`, so the indexed entries here share the overlay command's param type.
|
|
19
|
+
*/
|
|
20
|
+
export interface InterceptorHostCommands {
|
|
21
|
+
openExtensionOverlay: (params: OpenExtensionOverlayCommandParams) => Promise<InterceptorReturn>;
|
|
22
|
+
[command: string]: (params: OpenExtensionOverlayCommandParams) => Promise<InterceptorReturn>;
|
|
23
|
+
}
|
|
24
|
+
export type InterceptorFunction = (payload: unknown, cmds: InterceptorHostCommands, callCommand: (action: string, params?: unknown) => Promise<unknown>) => InterceptorReturn | Promise<InterceptorReturn>;
|
|
25
|
+
export interface InterceptorRegisterOptions {
|
|
26
|
+
/** Stable id; re-registering with the same id replaces the previous one. */
|
|
27
|
+
interceptorId: string;
|
|
28
|
+
/** Per-interceptor timeout override (ms). */
|
|
29
|
+
timeoutMs?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface InterceptorOverlayContext {
|
|
32
|
+
point: InterceptorPoint;
|
|
33
|
+
payload: unknown;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -51,11 +51,14 @@ import { mockShowNotification } from "../../actions/show-notification/mock";
|
|
|
51
51
|
import { mockSwitchUser } from "../../actions/switch-user/mock";
|
|
52
52
|
import { mockTapToPayPayment } from "../../actions/tap-to-pay-payment/mock";
|
|
53
53
|
import { mockTerminalPayment } from "../../actions/terminal-payment/mock";
|
|
54
|
-
import { mockTriggerWebhook } from "../../actions/trigger-webhook/mock";
|
|
55
|
-
import { mockTriggerZapierWebhook } from "../../actions/trigger-zapier-webhook/mock";
|
|
56
54
|
import { mockVendaraPayment } from "../../actions/vendara-payment/mock";
|
|
57
55
|
import { mockExtensionPayment } from "../../actions/extension-payment/mock";
|
|
58
56
|
import { mockRedeemPayment } from "../../actions/redeem-payment/mock";
|
|
57
|
+
import { mockIntegrationPayment } from "../../actions/integration-payment/mock";
|
|
58
|
+
import { mockGetSmartGridLayout } from "../../actions/get-smart-grid-layout/mock";
|
|
59
|
+
import { mockSaveSmartGridLayout } from "../../actions/save-smart-grid-layout/mock";
|
|
60
|
+
import { mockOpenExtensionOverlay } from "../../actions/open-extension-overlay/mock";
|
|
61
|
+
import { mockResolveExtensionOverlay } from "../../actions/resolve-extension-overlay/mock";
|
|
59
62
|
import { mockAddNonRevenueItem } from "../../actions/add-non-revenue-item/mock";
|
|
60
63
|
import { mockGetFinalContext } from "../../actions/get-final-context/mock";
|
|
61
64
|
import { mockPrint } from "../../actions/print/mock";
|
|
@@ -85,8 +88,6 @@ import { mockSetActiveSession } from "../../actions/set-active-session/mock";
|
|
|
85
88
|
import { mockGetActiveUser } from "../../actions/get-active-user/mock";
|
|
86
89
|
import { mockSetActiveUser } from "../../actions/set-active-user/mock";
|
|
87
90
|
import { mockSetActiveRefund } from "../../actions/set-active-refund/mock";
|
|
88
|
-
import { canTransitionMock } from "../../actions/can-transition/mock";
|
|
89
|
-
import { getAvailableTransitionsMock } from "../../actions/get-available-transitions/mock";
|
|
90
91
|
export const RENDER_MOCKS = {
|
|
91
92
|
addCartDiscount: mockAddCartDiscount,
|
|
92
93
|
addCartFee: mockAddCartFee,
|
|
@@ -140,11 +141,10 @@ export const RENDER_MOCKS = {
|
|
|
140
141
|
switchUser: mockSwitchUser,
|
|
141
142
|
tapToPayPayment: mockTapToPayPayment,
|
|
142
143
|
terminalPayment: mockTerminalPayment,
|
|
143
|
-
triggerWebhook: mockTriggerWebhook,
|
|
144
|
-
triggerZapierWebhook: mockTriggerZapierWebhook,
|
|
145
144
|
vendaraPayment: mockVendaraPayment,
|
|
146
145
|
extensionPayment: mockExtensionPayment,
|
|
147
146
|
redeemPayment: mockRedeemPayment,
|
|
147
|
+
integrationPayment: mockIntegrationPayment,
|
|
148
148
|
addNonRevenueItem: mockAddNonRevenueItem,
|
|
149
149
|
getFinalContext: mockGetFinalContext,
|
|
150
150
|
print: mockPrint,
|
|
@@ -181,6 +181,8 @@ export const RENDER_MOCKS = {
|
|
|
181
181
|
removeOrderNote: () => Promise.resolve({ success: true, timestamp: new Date().toISOString() }),
|
|
182
182
|
removeCustomSale: params => Promise.resolve({ success: true, id: params.id, timestamp: new Date().toISOString() }),
|
|
183
183
|
removeNonRevenueItem: params => Promise.resolve({ success: true, externalId: params.externalId, timestamp: new Date().toISOString() }),
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
getSmartGridLayout: mockGetSmartGridLayout,
|
|
185
|
+
saveSmartGridLayout: mockSaveSmartGridLayout,
|
|
186
|
+
openExtensionOverlay: mockOpenExtensionOverlay,
|
|
187
|
+
resolveExtensionOverlay: mockResolveExtensionOverlay
|
|
186
188
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExampleFunction, GetProducts, AddCustomSale, GetCustomers, AssignCustomer, AddCustomer, EditCustomer, GetCategories, GetOrders, GetRefunds, GetTaxTables, AddProductDiscount, AddProductToCart, RemoveProductFromCart, UpdateCartItemQuantity, AddCartDiscount, GetContext, GetFinalContext, AddProductNote, AddProductFee, SetActiveProductFee, SetActiveProductDiscount, GetActiveProduct, SetActiveProduct, AdjustInventory, AddOrderNote, AddCartFee, ClearCart, ParkOrder, ResumeParkedOrder, DeleteParkedOrder, InitiateRefund, CashPayment, TapToPayPayment, TerminalPayment, VendaraPayment, ExtensionPayment, RedeemPayment, AddNonRevenueItem, AddCustomerNote, RemoveCustomerNote, RemoveCustomerFromCart, GoToStationHome, OpenCashDrawer, ShowNotification, ShowConfirmation, AuthenticateUser, PartialPayment, SwitchUser,
|
|
1
|
+
import type { ExampleFunction, GetProducts, AddCustomSale, GetCustomers, AssignCustomer, AddCustomer, EditCustomer, GetCategories, GetOrders, GetRefunds, GetTaxTables, AddProductDiscount, AddProductToCart, RemoveProductFromCart, UpdateCartItemQuantity, AddCartDiscount, GetContext, GetFinalContext, AddProductNote, AddProductFee, SetActiveProductFee, SetActiveProductDiscount, GetActiveProduct, SetActiveProduct, AdjustInventory, AddOrderNote, AddCartFee, ClearCart, ParkOrder, ResumeParkedOrder, DeleteParkedOrder, InitiateRefund, CashPayment, TapToPayPayment, TerminalPayment, VendaraPayment, ExtensionPayment, RedeemPayment, AddNonRevenueItem, AddCustomerNote, RemoveCustomerNote, RemoveCustomerFromCart, GoToStationHome, OpenCashDrawer, ShowNotification, ShowConfirmation, AuthenticateUser, PartialPayment, SwitchUser, SetRefundStockAction, SelectAllRefundItems, ResetRefundDetails, CalculateRefundTotal, GetRemainingRefundableQuantities, ProcessPartialRefund, GetCurrentCart, Print, SetActiveOrder, GetCustomTables, GetCustomTableData, UpsertCustomTableData, DeleteCustomTableData, GetCustomExtensions, GetCurrentCompanyCustomExtensions, GetCustomExtensionCustomTables, GetCustomTableFields, GetSecretsKeys, GetSecretVal, SetSecretVal, GetUsers, GetRoles, RemoveCartDiscount, GetActiveOrder, GetActiveCustomer, SetActiveCustomer, GetActiveOutlet, SetActiveOutlet, GetActiveStation, SetActiveStation, GetActiveSession, SetActiveSession, GetActiveUser, SetActiveUser, SetActiveRefund, RemoveProductDiscount, RemoveProductFee, RemoveProductNote, RemoveCartFee, RemoveOrderNote, RemoveCustomSale, RemoveNonRevenueItem, IntegrationPayment, GetSmartGridLayout, SaveSmartGridLayout, OpenExtensionOverlay, ResolveExtensionOverlay } from "../../index";
|
|
2
2
|
export interface RenderProviderActions {
|
|
3
3
|
exampleFunction: ExampleFunction;
|
|
4
4
|
getProducts: GetProducts;
|
|
@@ -38,6 +38,7 @@ export interface RenderProviderActions {
|
|
|
38
38
|
vendaraPayment: VendaraPayment;
|
|
39
39
|
extensionPayment: ExtensionPayment;
|
|
40
40
|
redeemPayment: RedeemPayment;
|
|
41
|
+
integrationPayment: IntegrationPayment;
|
|
41
42
|
addNonRevenueItem: AddNonRevenueItem;
|
|
42
43
|
addCustomerNote: AddCustomerNote;
|
|
43
44
|
removeCustomerNote: RemoveCustomerNote;
|
|
@@ -50,8 +51,6 @@ export interface RenderProviderActions {
|
|
|
50
51
|
authenticateUser: AuthenticateUser;
|
|
51
52
|
partialPayment: PartialPayment;
|
|
52
53
|
switchUser: SwitchUser;
|
|
53
|
-
triggerWebhook: TriggerWebhook;
|
|
54
|
-
triggerZapierWebhook: TriggerZapierWebhook;
|
|
55
54
|
setRefundStockAction: SetRefundStockAction;
|
|
56
55
|
selectAllRefundItems: SelectAllRefundItems;
|
|
57
56
|
resetRefundDetails: ResetRefundDetails;
|
|
@@ -93,6 +92,8 @@ export interface RenderProviderActions {
|
|
|
93
92
|
removeOrderNote: RemoveOrderNote;
|
|
94
93
|
removeCustomSale: RemoveCustomSale;
|
|
95
94
|
removeNonRevenueItem: RemoveNonRevenueItem;
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
getSmartGridLayout: GetSmartGridLayout;
|
|
96
|
+
saveSmartGridLayout: SaveSmartGridLayout;
|
|
97
|
+
openExtensionOverlay: OpenExtensionOverlay;
|
|
98
|
+
resolveExtensionOverlay: ResolveExtensionOverlay;
|
|
98
99
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const attributesTopic = {
|
|
2
|
+
id: "attributes",
|
|
3
|
+
name: "Attributes",
|
|
4
|
+
description: "Topic for product attribute definition changes synced from the database",
|
|
5
|
+
eventTypes: [
|
|
6
|
+
{
|
|
7
|
+
id: "attribute-created",
|
|
8
|
+
name: "Attribute Created",
|
|
9
|
+
description: "Published when a new attribute definition is synced/created"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
id: "attribute-updated",
|
|
13
|
+
name: "Attribute Updated",
|
|
14
|
+
description: "Published when an attribute definition is synced/updated"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
export * from "./types";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./attribute-created/types";
|
|
2
|
+
export * from "./attribute-updated/types";
|
|
3
|
+
import type { AttributeCreatedPayload } from "./attribute-created/types";
|
|
4
|
+
import type { AttributeUpdatedPayload } from "./attribute-updated/types";
|
|
5
|
+
export type AttributesEventPayload = AttributeCreatedPayload | AttributeUpdatedPayload;
|
|
6
|
+
export type AttributesEventType = "attribute-created" | "attribute-updated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|