@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.
Files changed (151) hide show
  1. package/README.md +28 -26
  2. package/dist/CommonTypes.d.ts +79 -534
  3. package/dist/CommonTypes.js +5 -65
  4. package/dist/actions/add-customer-note/mock.js +24 -15
  5. package/dist/actions/add-customer-note/types.d.ts +3 -2
  6. package/dist/actions/add-product/mock.js +12 -6
  7. package/dist/actions/add-product-discount/mock.js +5 -5
  8. package/dist/actions/add-product-fee/mock.js +6 -6
  9. package/dist/actions/cash-payment/types.d.ts +0 -5
  10. package/dist/actions/delete-parked-order/types.d.ts +0 -3
  11. package/dist/actions/edit-product/mock.js +5 -3
  12. package/dist/actions/extension-payment/types.d.ts +4 -5
  13. package/dist/actions/get-context/mock.js +12 -6
  14. package/dist/actions/get-products/mock.js +3 -3
  15. package/dist/actions/get-roles/mock.js +35 -41
  16. package/dist/actions/get-smart-grid-layout/action.d.ts +2 -0
  17. package/dist/actions/get-smart-grid-layout/action.js +4 -0
  18. package/dist/actions/get-smart-grid-layout/mock.d.ts +2 -0
  19. package/dist/actions/get-smart-grid-layout/mock.js +7 -0
  20. package/dist/actions/get-smart-grid-layout/types.d.ts +12 -0
  21. package/dist/actions/get-users/mock.js +16 -25
  22. package/dist/actions/initiate-refund/types.d.ts +0 -3
  23. package/dist/actions/integration-payment/action.d.ts +5 -0
  24. package/dist/actions/integration-payment/action.js +7 -0
  25. package/dist/actions/integration-payment/mock.d.ts +2 -0
  26. package/dist/actions/integration-payment/mock.js +4 -0
  27. package/dist/actions/integration-payment/types.d.ts +16 -0
  28. package/dist/actions/open-extension-overlay/action.d.ts +2 -0
  29. package/dist/actions/open-extension-overlay/action.js +4 -0
  30. package/dist/actions/open-extension-overlay/mock.d.ts +2 -0
  31. package/dist/actions/open-extension-overlay/mock.js +1 -0
  32. package/dist/actions/open-extension-overlay/types.d.ts +9 -0
  33. package/dist/actions/park-order/types.d.ts +0 -3
  34. package/dist/actions/partial-payment/types.d.ts +0 -5
  35. package/dist/actions/print/mock.js +3 -6
  36. package/dist/actions/print/types.d.ts +1 -7
  37. package/dist/actions/process-partial-refund/types.d.ts +0 -3
  38. package/dist/actions/remove-customer-note/mock.js +14 -5
  39. package/dist/actions/resolve-extension-overlay/action.d.ts +2 -0
  40. package/dist/actions/resolve-extension-overlay/action.js +4 -0
  41. package/dist/actions/resolve-extension-overlay/mock.d.ts +2 -0
  42. package/dist/actions/resolve-extension-overlay/mock.js +1 -0
  43. package/dist/actions/resolve-extension-overlay/types.d.ts +9 -0
  44. package/dist/actions/resume-parked-order/mock.js +1 -1
  45. package/dist/actions/resume-parked-order/types.d.ts +0 -3
  46. package/dist/actions/save-smart-grid-layout/action.d.ts +2 -0
  47. package/dist/actions/save-smart-grid-layout/action.js +4 -0
  48. package/dist/actions/save-smart-grid-layout/mock.d.ts +2 -0
  49. package/dist/actions/save-smart-grid-layout/mock.js +7 -0
  50. package/dist/actions/save-smart-grid-layout/types.d.ts +12 -0
  51. package/dist/actions/set-active-product-discount/mock.js +1 -1
  52. package/dist/actions/set-active-product-fee/mock.js +1 -1
  53. package/dist/actions/tap-to-pay-payment/types.d.ts +0 -5
  54. package/dist/actions/terminal-payment/types.d.ts +0 -5
  55. package/dist/actions/vendara-payment/types.d.ts +0 -5
  56. package/dist/common-types/index.d.ts +0 -1
  57. package/dist/common-types/index.js +0 -1
  58. package/dist/demo/database.d.ts +21 -21
  59. package/dist/demo/database.js +36 -51
  60. package/dist/index.d.ts +124 -116
  61. package/dist/index.js +19 -15
  62. package/dist/interceptors/types.d.ts +34 -0
  63. package/dist/interceptors/types.js +1 -0
  64. package/dist/projects/render/mocks.js +10 -8
  65. package/dist/projects/render/types.d.ts +6 -5
  66. package/dist/pubsub/topics/attributes/attribute-created/types.d.ts +6 -0
  67. package/dist/pubsub/topics/attributes/attribute-created/types.js +1 -0
  68. package/dist/pubsub/topics/attributes/attribute-updated/types.d.ts +6 -0
  69. package/dist/pubsub/topics/attributes/attribute-updated/types.js +1 -0
  70. package/dist/pubsub/topics/attributes/index.d.ts +3 -0
  71. package/dist/pubsub/topics/attributes/index.js +18 -0
  72. package/dist/pubsub/topics/attributes/types.d.ts +6 -0
  73. package/dist/pubsub/topics/attributes/types.js +2 -0
  74. package/dist/pubsub/topics/categories/category-created/types.d.ts +6 -0
  75. package/dist/pubsub/topics/categories/category-created/types.js +1 -0
  76. package/dist/pubsub/topics/categories/category-updated/types.d.ts +6 -0
  77. package/dist/pubsub/topics/categories/category-updated/types.js +1 -0
  78. package/dist/pubsub/topics/categories/index.d.ts +3 -0
  79. package/dist/pubsub/topics/categories/index.js +18 -0
  80. package/dist/pubsub/topics/categories/types.d.ts +6 -0
  81. package/dist/pubsub/topics/categories/types.js +2 -0
  82. package/dist/pubsub/topics/index.d.ts +4 -0
  83. package/dist/pubsub/topics/index.js +4 -0
  84. package/dist/pubsub/topics/orders/index.js +0 -10
  85. package/dist/pubsub/topics/orders/types.d.ts +2 -6
  86. package/dist/pubsub/topics/orders/types.js +0 -2
  87. package/dist/pubsub/topics/print/print-completed/types.d.ts +1 -1
  88. package/dist/pubsub/topics/print/print-error/types.d.ts +1 -1
  89. package/dist/pubsub/topics/print/print-started/types.d.ts +1 -1
  90. package/dist/pubsub/topics/products/product-get-active/types.d.ts +6 -2
  91. package/dist/pubsub/topics/transactions/index.d.ts +3 -0
  92. package/dist/pubsub/topics/transactions/index.js +18 -0
  93. package/dist/pubsub/topics/transactions/transaction-created/types.d.ts +6 -0
  94. package/dist/pubsub/topics/transactions/transaction-created/types.js +1 -0
  95. package/dist/pubsub/topics/transactions/transaction-updated/types.d.ts +6 -0
  96. package/dist/pubsub/topics/transactions/transaction-updated/types.js +1 -0
  97. package/dist/pubsub/topics/transactions/types.d.ts +6 -0
  98. package/dist/pubsub/topics/transactions/types.js +2 -0
  99. package/dist/pubsub/topics/types.d.ts +8 -0
  100. package/dist/pubsub/topics/users/index.js +10 -0
  101. package/dist/pubsub/topics/users/types.d.ts +6 -2
  102. package/dist/pubsub/topics/users/types.js +2 -0
  103. package/dist/pubsub/topics/users/user-created/types.d.ts +6 -0
  104. package/dist/pubsub/topics/users/user-created/types.js +1 -0
  105. package/dist/pubsub/topics/users/user-updated/types.d.ts +6 -0
  106. package/dist/pubsub/topics/users/user-updated/types.js +1 -0
  107. package/dist/pubsub/topics/variants/index.d.ts +3 -0
  108. package/dist/pubsub/topics/variants/index.js +18 -0
  109. package/dist/pubsub/topics/variants/types.d.ts +6 -0
  110. package/dist/pubsub/topics/variants/types.js +2 -0
  111. package/dist/pubsub/topics/variants/variant-created/types.d.ts +6 -0
  112. package/dist/pubsub/topics/variants/variant-created/types.js +1 -0
  113. package/dist/pubsub/topics/variants/variant-updated/types.d.ts +6 -0
  114. package/dist/pubsub/topics/variants/variant-updated/types.js +1 -0
  115. package/package.json +15 -12
  116. package/dist/actions/can-transition/action.d.ts +0 -2
  117. package/dist/actions/can-transition/action.js +0 -4
  118. package/dist/actions/can-transition/mock.d.ts +0 -6
  119. package/dist/actions/can-transition/mock.js +0 -28
  120. package/dist/actions/can-transition/types.d.ts +0 -11
  121. package/dist/actions/get-available-transitions/action.d.ts +0 -2
  122. package/dist/actions/get-available-transitions/action.js +0 -4
  123. package/dist/actions/get-available-transitions/mock.d.ts +0 -6
  124. package/dist/actions/get-available-transitions/mock.js +0 -26
  125. package/dist/actions/get-available-transitions/types.d.ts +0 -9
  126. package/dist/actions/trigger-webhook/action.d.ts +0 -6
  127. package/dist/actions/trigger-webhook/action.js +0 -8
  128. package/dist/actions/trigger-webhook/mock.d.ts +0 -2
  129. package/dist/actions/trigger-webhook/mock.js +0 -8
  130. package/dist/actions/trigger-webhook/types.d.ts +0 -21
  131. package/dist/actions/trigger-webhook/types.js +0 -2
  132. package/dist/actions/trigger-zapier-webhook/action.d.ts +0 -6
  133. package/dist/actions/trigger-zapier-webhook/action.js +0 -8
  134. package/dist/actions/trigger-zapier-webhook/mock.d.ts +0 -2
  135. package/dist/actions/trigger-zapier-webhook/mock.js +0 -8
  136. package/dist/actions/trigger-zapier-webhook/types.d.ts +0 -9
  137. package/dist/common-types/order-state.d.ts +0 -32
  138. package/dist/common-types/order-state.js +0 -6
  139. package/dist/common-types/state-fragment.d.ts +0 -77
  140. package/dist/common-types/state-fragment.js +0 -10
  141. package/dist/fragments/index.d.ts +0 -1
  142. package/dist/fragments/index.js +0 -1
  143. package/dist/fragments/preorder-no-deposit.d.ts +0 -26
  144. package/dist/fragments/preorder-no-deposit.js +0 -166
  145. package/dist/pubsub/topics/orders/state-transition-blocked/types.d.ts +0 -16
  146. package/dist/pubsub/topics/orders/state-transition-completed/types.d.ts +0 -15
  147. /package/dist/actions/{can-transition → get-smart-grid-layout}/types.js +0 -0
  148. /package/dist/actions/{get-available-transitions → integration-payment}/types.js +0 -0
  149. /package/dist/actions/{trigger-zapier-webhook → open-extension-overlay}/types.js +0 -0
  150. /package/dist/{pubsub/topics/orders/state-transition-blocked → actions/resolve-extension-overlay}/types.js +0 -0
  151. /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("./actions/example-function/types").ExampleFunction;
3
- readonly generateAPIKey: import("./actions/generate-api-key/types").GenerateAPIKey;
4
- readonly getProducts: import("./actions/get-products/types").GetProducts;
5
- readonly addCustomSale: import("./actions/add-custom-sale/types").AddCustomSale;
6
- readonly addNonRevenueItem: import("./actions/add-non-revenue-item/types").AddNonRevenueItem;
7
- readonly getCustomers: import("./actions/get-customers/types").GetCustomers;
8
- readonly assignCustomer: import("./actions/assign-customer/types").AssignCustomer;
9
- readonly addCustomer: import("./actions/add-customer/types").AddCustomer;
10
- readonly editCustomer: import("./actions/edit-customer/types").EditCustomer;
11
- readonly getCategories: import("./actions/get-categories/types").GetCategories;
12
- readonly getOrders: import("./actions/get-orders/types").GetOrders;
13
- readonly getRefunds: import("./actions/get-refunds/types").GetRefunds;
14
- readonly addProductDiscount: import("./actions/add-product-discount/types").AddProductDiscount;
15
- readonly addProductToCart: import("./actions/add-product-to-cart/types").AddProductToCart;
16
- readonly removeProductFromCart: import("./actions/remove-product-from-cart/types").RemoveProductFromCart;
17
- readonly updateCartItemQuantity: import("./actions/update-cart-item-quantity/types").UpdateCartItemQuantity;
18
- readonly addCartDiscount: import("./actions/add-cart-discount/types").AddCartDiscount;
19
- readonly getContext: import("./actions/get-context/types").GetContext;
20
- readonly getFinalContext: import("./actions/get-final-context/types").GetFinalContext;
21
- readonly addProductNote: import("./actions/add-product-note/types").AddProductNote;
22
- readonly addProductFee: import("./actions/add-product-fee/types").AddProductFee;
23
- readonly setActiveProductFee: import("./actions/set-active-product-fee/types").SetActiveProductFee;
24
- readonly setActiveProductDiscount: import("./actions/set-active-product-discount/types").SetActiveProductDiscount;
25
- readonly getActiveProduct: import("./actions/get-active-product/types").GetActiveProduct;
26
- readonly setActiveProduct: import("./actions/set-active-product/types").SetActiveProduct;
27
- readonly adjustInventory: import("./actions/adjust-inventory/types").AdjustInventory;
28
- readonly addOrderNote: import("./actions/add-order-note/types").AddOrderNote;
29
- readonly addCartFee: import("./actions/add-cart-fee/types").AddCartFee;
30
- readonly getCurrentCart: import("./actions/get-current-cart/types").GetCurrentCart;
31
- readonly clearCart: import("./actions/clear-cart/types").ClearCart;
32
- readonly parkOrder: import("./actions/park-order/types").ParkOrder;
33
- readonly resumeParkedOrder: import("./actions/resume-parked-order/types").ResumeParkedOrder;
34
- readonly deleteParkedOrder: import("./actions/delete-parked-order/types").DeleteParkedOrder;
35
- readonly cashPayment: import("./actions/cash-payment/types").CashPayment;
36
- readonly tapToPayPayment: import("./actions/tap-to-pay-payment/types").TapToPayPayment;
37
- readonly terminalPayment: import("./actions/terminal-payment/types").TerminalPayment;
38
- readonly vendaraPayment: import("./actions/vendara-payment/types").VendaraPayment;
39
- readonly extensionPayment: import("./actions/extension-payment/types").ExtensionPayment;
40
- readonly redeemPayment: import("./actions/redeem-payment/types").RedeemPayment;
41
- readonly addCustomerNote: import("./actions/add-customer-note/types").AddCustomerNote;
42
- readonly removeCustomerNote: import("./actions/remove-customer-note/types").RemoveCustomerNote;
43
- readonly removeCustomerFromCart: import("./actions/remove-customer-from-cart/types").RemoveCustomerFromCart;
44
- readonly removeCartDiscount: import("./actions/remove-cart-discount/types").RemoveCartDiscount;
45
- readonly goToStationHome: import("./actions/go-to-station-home/types").GoToStationHome;
46
- readonly openCashDrawer: import("./actions/open-cash-drawer/types").OpenCashDrawer;
47
- readonly showNotification: import("./actions/show-notification/types").ShowNotification;
48
- readonly showConfirmation: import("./actions/show-confirmation/types").ShowConfirmation;
49
- readonly authenticateUser: import("./actions/authenticate-user/types").AuthenticateUser;
50
- readonly partialPayment: import("./actions/partial-payment/types").PartialPayment;
51
- readonly switchUser: import("./actions/switch-user/types").SwitchUser;
52
- readonly print: import("./actions/print/types").Print;
53
- readonly setActiveOrder: import("./actions/set-active-order/types").SetActiveOrder;
54
- readonly getActiveOrder: import("./actions/get-active-order/types").GetActiveOrder;
55
- readonly getActiveCustomer: import("./actions/get-active-customer/types").GetActiveCustomer;
56
- readonly setActiveCustomer: import("./actions/set-active-customer/types").SetActiveCustomer;
57
- readonly getActiveOutlet: import("./actions/get-active-outlet/types").GetActiveOutlet;
58
- readonly setActiveOutlet: import("./actions/set-active-outlet/types").SetActiveOutlet;
59
- readonly getActiveStation: import("./actions/get-active-station/types").GetActiveStation;
60
- readonly setActiveStation: import("./actions/set-active-station/types").SetActiveStation;
61
- readonly getActiveSession: import("./actions/get-active-session/types").GetActiveSession;
62
- readonly setActiveSession: import("./actions/set-active-session/types").SetActiveSession;
63
- readonly getActiveUser: import("./actions/get-active-user/types").GetActiveUser;
64
- readonly setActiveUser: import("./actions/set-active-user/types").SetActiveUser;
65
- readonly setActiveRefund: import("./actions/set-active-refund/types").SetActiveRefund;
66
- readonly removeProductDiscount: import("./actions/remove-product-discount/types").RemoveProductDiscount;
67
- readonly removeProductFee: import("./actions/remove-product-fee/types").RemoveProductFee;
68
- readonly removeProductNote: import("./actions/remove-product-note/types").RemoveProductNote;
69
- readonly removeCartFee: import("./actions/remove-cart-fee/types").RemoveCartFee;
70
- readonly removeOrderNote: import("./actions/remove-order-note/types").RemoveOrderNote;
71
- readonly removeCustomSale: import("./actions/remove-custom-sale/types").RemoveCustomSale;
72
- readonly removeNonRevenueItem: import("./actions/remove-non-revenue-item/types").RemoveNonRevenueItem;
73
- readonly triggerWebhook: import("./actions/trigger-webhook/types").TriggerWebhook;
74
- readonly triggerZapierWebhook: import("./actions/trigger-zapier-webhook/types").TriggerZapierWebhook;
75
- readonly initiateRefund: import("./actions/initiate-refund/types").InitiateRefund;
76
- readonly setRefundStockAction: import("./actions/set-refund-stock-action/types").SetRefundStockAction;
77
- readonly selectAllRefundItems: import("./actions/select-all-refund-items/types").SelectAllRefundItems;
78
- readonly resetRefundDetails: import("./actions/reset-refund-details/types").ResetRefundDetails;
79
- readonly calculateRefundTotal: import("./actions/calculate-refund-total/types").CalculateRefundTotal;
80
- readonly getRemainingRefundableQuantities: import("./actions/get-remaining-refundable-quantities/types").GetRemainingRefundableQuantities;
81
- readonly processPartialRefund: import("./actions/process-partial-refund/types").ProcessPartialRefund;
82
- readonly addProduct: import("./actions/add-product/types").AddProduct;
83
- readonly editProduct: import("./actions/edit-product/types").EditProduct;
84
- readonly editProductVariants: import("./actions/edit-product-variants/types").EditProductVariants;
85
- readonly deleteProduct: import("./actions/delete-product/types").DeleteProduct;
86
- readonly getOutlets: import("./actions/get-outlets/types").GetOutlets;
87
- readonly getStations: import("./actions/get-stations/types").GetStations;
88
- readonly getCustomTables: import("./actions/get-custom-tables/types").GetCustomTables;
89
- readonly getCustomTableFields: import("./actions/get-custom-table-fields/types").GetCustomTableFields;
90
- readonly getCustomTableData: import("./actions/get-custom-table-data/types").GetCustomTableData;
91
- readonly upsertCustomTableData: import("./actions/upsert-custom-table-data/types").UpsertCustomTableData;
92
- readonly deleteCustomTableData: import("./actions/delete-custom-table-data/types").DeleteCustomTableData;
93
- readonly getCustomExtensions: import("./actions/get-custom-extensions/types").GetCustomExtensions;
94
- readonly getCurrentCompanyCustomExtensions: import("./actions/get-current-company-custom-extensions/types").GetCurrentCompanyCustomExtensions;
95
- readonly getCustomExtensionCustomTables: import("./actions/get-custom-extension-custom-tables/types").GetCustomExtensionCustomTables;
96
- readonly getUsers: import("./actions/get-users/types").GetUsers;
97
- readonly getRoles: import("./actions/get-roles/types").GetRoles;
98
- readonly getSecretsKeys: import("./actions/get-secrets-keys/types").GetSecretsKeys;
99
- readonly getSecretVal: import("./actions/get-secret-val/types").GetSecretVal;
100
- readonly setSecretVal: import("./actions/set-secret-val/types").SetSecretVal;
101
- readonly navigateTo: import("./actions/navigate-to/types").NavigateTo;
102
- readonly refreshResource: import("./actions/refresh-resource/types").RefreshResource;
103
- readonly getMedia: import("./actions/get-media/types").GetMedia;
104
- readonly uploadMedia: import("./actions/upload-media/types").UploadMedia;
105
- readonly getTaxTables: import("./actions/get-tax-tables/types").GetTaxTables;
106
- readonly getBranding: import("./actions/get-branding/types").GetBranding;
107
- readonly canTransition: import("./actions/can-transition/types").CanTransition;
108
- readonly getAvailableTransitions: import("./actions/get-available-transitions/types").GetAvailableTransitions;
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 { TriggerWebhook, TriggerWebhookPresetType, TriggerWebhookParams, TriggerWebhookResponse } from "./actions/trigger-webhook/types";
204
- export type { TriggerZapierWebhook, TriggerZapierWebhookParams, TriggerZapierWebhookResponse } from "./actions/trigger-zapier-webhook/types";
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, OrderStateTransitionCompletedPayload, OrderStateTransitionBlockedPayload, OrderStateTransitionCompletedEvent, OrderStateTransitionBlockedEvent, OrdersEventType, OrdersEventPayload } from "./pubsub/topics/orders/types";
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
- // Integration Actions
77
- import { triggerWebhook } from "./actions/trigger-webhook/action";
78
- import { triggerZapierWebhook } from "./actions/trigger-zapier-webhook/action";
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
- // Integration Actions
202
- triggerWebhook,
203
- triggerZapierWebhook,
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
- canTransition: canTransitionMock,
185
- getAvailableTransitions: getAvailableTransitionsMock
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, TriggerWebhook, TriggerZapierWebhook, 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, CanTransition, GetAvailableTransitions } from "../../index";
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
- canTransition: CanTransition;
97
- getAvailableTransitions: GetAvailableTransitions;
95
+ getSmartGridLayout: GetSmartGridLayout;
96
+ saveSmartGridLayout: SaveSmartGridLayout;
97
+ openExtensionOverlay: OpenExtensionOverlay;
98
+ resolveExtensionOverlay: ResolveExtensionOverlay;
98
99
  }
@@ -0,0 +1,6 @@
1
+ import type { CFAttribute } from "../../../../CommonTypes";
2
+ import type { TopicEvent } from "../../../types";
3
+ export interface AttributeCreatedPayload {
4
+ attribute: CFAttribute;
5
+ }
6
+ export type AttributeCreatedEvent = TopicEvent<AttributeCreatedPayload>;
@@ -0,0 +1,6 @@
1
+ import type { CFAttribute } from "../../../../CommonTypes";
2
+ import type { TopicEvent } from "../../../types";
3
+ export interface AttributeUpdatedPayload {
4
+ attribute: CFAttribute;
5
+ }
6
+ export type AttributeUpdatedEvent = TopicEvent<AttributeUpdatedPayload>;
@@ -0,0 +1,3 @@
1
+ import type { TopicDefinition } from "../../types";
2
+ export declare const attributesTopic: TopicDefinition;
3
+ export * from "./types";
@@ -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,2 @@
1
+ export * from "./attribute-created/types";
2
+ export * from "./attribute-updated/types";
@@ -0,0 +1,6 @@
1
+ import type { CFCategory } from "../../../../CommonTypes";
2
+ import type { TopicEvent } from "../../../types";
3
+ export interface CategoryCreatedPayload {
4
+ category: CFCategory;
5
+ }
6
+ export type CategoryCreatedEvent = TopicEvent<CategoryCreatedPayload>;
@@ -0,0 +1,6 @@
1
+ import type { CFCategory } from "../../../../CommonTypes";
2
+ import type { TopicEvent } from "../../../types";
3
+ export interface CategoryUpdatedPayload {
4
+ category: CFCategory;
5
+ }
6
+ export type CategoryUpdatedEvent = TopicEvent<CategoryUpdatedPayload>;
@@ -0,0 +1,3 @@
1
+ import type { TopicDefinition } from "../../types";
2
+ export declare const categoriesTopic: TopicDefinition;
3
+ export * from "./types";