@final-commerce/command-frame 0.11.1-online.1 → 0.12.0-staging.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/dist/CommonTypes.d.ts +1 -21
  2. package/dist/actions/get-current-cart/mock.js +0 -3
  3. package/dist/actions/get-current-cart/types.d.ts +0 -6
  4. package/dist/actions/get-orders/action.d.ts +1 -1
  5. package/dist/actions/get-orders/action.js +2 -2
  6. package/dist/actions/get-orders/mock.d.ts +1 -1
  7. package/dist/actions/get-orders/mock.js +19 -74
  8. package/dist/actions/get-orders/types.d.ts +2 -33
  9. package/dist/actions/get-outlets/action.js +2 -2
  10. package/dist/actions/get-outlets/mock.d.ts +0 -12
  11. package/dist/actions/get-outlets/mock.js +4 -28
  12. package/dist/actions/get-outlets/types.d.ts +1 -19
  13. package/dist/actions/get-product-modifier-selections/mock.js +0 -7
  14. package/dist/actions/get-product-modifier-selections/types.d.ts +0 -4
  15. package/dist/actions/get-products/types.d.ts +8 -8
  16. package/dist/actions/get-refund-plan/mockRows.js +1 -1
  17. package/dist/actions/get-refund-plan/types.d.ts +6 -9
  18. package/dist/actions/get-remaining-refundable-quantities/mock.js +0 -1
  19. package/dist/actions/get-remaining-refundable-quantities/types.d.ts +0 -5
  20. package/dist/actions/process-partial-refund/types.d.ts +1 -1
  21. package/dist/actions/resume-parked-order/mock.d.ts +0 -5
  22. package/dist/actions/resume-parked-order/mock.js +24 -25
  23. package/dist/actions/void-order/mock.js +7 -17
  24. package/dist/actions/void-order/types.d.ts +2 -6
  25. package/dist/common-types/order-state.d.ts +1 -20
  26. package/dist/demo/database.d.ts +0 -4
  27. package/dist/demo/database.js +0 -29
  28. package/dist/index.d.ts +1 -41
  29. package/dist/index.js +0 -39
  30. package/dist/projects/render/mocks.js +0 -40
  31. package/dist/projects/render/types.d.ts +1 -33
  32. package/dist/pubsub/topics/index.d.ts +17 -18
  33. package/dist/pubsub/topics/index.js +17 -18
  34. package/dist/pubsub/topics/types.d.ts +0 -8
  35. package/package.json +2 -2
  36. package/dist/actions/assign-order-user/action.d.ts +0 -6
  37. package/dist/actions/assign-order-user/action.js +0 -8
  38. package/dist/actions/assign-order-user/mock.d.ts +0 -2
  39. package/dist/actions/assign-order-user/mock.js +0 -30
  40. package/dist/actions/assign-order-user/types.d.ts +0 -15
  41. package/dist/actions/assign-order-user/types.js +0 -1
  42. package/dist/actions/attach-checkout-contact/action.d.ts +0 -6
  43. package/dist/actions/attach-checkout-contact/action.js +0 -8
  44. package/dist/actions/attach-checkout-contact/mock.d.ts +0 -15
  45. package/dist/actions/attach-checkout-contact/mock.js +0 -22
  46. package/dist/actions/attach-checkout-contact/types.d.ts +0 -35
  47. package/dist/actions/attach-checkout-contact/types.js +0 -16
  48. package/dist/actions/get-address-options/action.d.ts +0 -6
  49. package/dist/actions/get-address-options/action.js +0 -8
  50. package/dist/actions/get-address-options/mock.d.ts +0 -3
  51. package/dist/actions/get-address-options/mock.js +0 -15
  52. package/dist/actions/get-address-options/types.d.ts +0 -25
  53. package/dist/actions/get-address-options/types.js +0 -8
  54. package/dist/actions/get-checkout-status/action.d.ts +0 -6
  55. package/dist/actions/get-checkout-status/action.js +0 -8
  56. package/dist/actions/get-checkout-status/mock.d.ts +0 -3
  57. package/dist/actions/get-checkout-status/mock.js +0 -11
  58. package/dist/actions/get-checkout-status/types.d.ts +0 -20
  59. package/dist/actions/get-checkout-status/types.js +0 -12
  60. package/dist/actions/get-moto-config/action.d.ts +0 -6
  61. package/dist/actions/get-moto-config/action.js +0 -8
  62. package/dist/actions/get-moto-config/mock.d.ts +0 -7
  63. package/dist/actions/get-moto-config/mock.js +0 -9
  64. package/dist/actions/get-moto-config/types.d.ts +0 -34
  65. package/dist/actions/get-moto-config/types.js +0 -5
  66. package/dist/actions/get-order-statuses/action.d.ts +0 -6
  67. package/dist/actions/get-order-statuses/action.js +0 -8
  68. package/dist/actions/get-order-statuses/mock.d.ts +0 -2
  69. package/dist/actions/get-order-statuses/mock.js +0 -5
  70. package/dist/actions/get-order-statuses/types.d.ts +0 -8
  71. package/dist/actions/get-order-statuses/types.js +0 -1
  72. package/dist/actions/get-shipping-options/action.d.ts +0 -6
  73. package/dist/actions/get-shipping-options/action.js +0 -8
  74. package/dist/actions/get-shipping-options/mock.d.ts +0 -3
  75. package/dist/actions/get-shipping-options/mock.js +0 -15
  76. package/dist/actions/get-shipping-options/types.d.ts +0 -43
  77. package/dist/actions/get-shipping-options/types.js +0 -1
  78. package/dist/actions/record-external-payment/action.d.ts +0 -6
  79. package/dist/actions/record-external-payment/action.js +0 -8
  80. package/dist/actions/record-external-payment/mock.d.ts +0 -2
  81. package/dist/actions/record-external-payment/mock.js +0 -36
  82. package/dist/actions/record-external-payment/types.d.ts +0 -37
  83. package/dist/actions/record-external-payment/types.js +0 -1
  84. package/dist/actions/release-from-cart/action.d.ts +0 -6
  85. package/dist/actions/release-from-cart/action.js +0 -8
  86. package/dist/actions/release-from-cart/mock.d.ts +0 -2
  87. package/dist/actions/release-from-cart/mock.js +0 -26
  88. package/dist/actions/release-from-cart/types.d.ts +0 -8
  89. package/dist/actions/release-from-cart/types.js +0 -1
  90. package/dist/actions/resume-checkout/action.d.ts +0 -6
  91. package/dist/actions/resume-checkout/action.js +0 -8
  92. package/dist/actions/resume-checkout/mock.d.ts +0 -16
  93. package/dist/actions/resume-checkout/mock.js +0 -51
  94. package/dist/actions/resume-checkout/types.d.ts +0 -59
  95. package/dist/actions/resume-checkout/types.js +0 -13
  96. package/dist/actions/resume-order/action.d.ts +0 -6
  97. package/dist/actions/resume-order/action.js +0 -8
  98. package/dist/actions/resume-order/mock.d.ts +0 -2
  99. package/dist/actions/resume-order/mock.js +0 -55
  100. package/dist/actions/resume-order/types.d.ts +0 -17
  101. package/dist/actions/resume-order/types.js +0 -1
  102. package/dist/actions/select-shipping-option/action.d.ts +0 -6
  103. package/dist/actions/select-shipping-option/action.js +0 -8
  104. package/dist/actions/select-shipping-option/mock.d.ts +0 -3
  105. package/dist/actions/select-shipping-option/mock.js +0 -31
  106. package/dist/actions/select-shipping-option/types.d.ts +0 -15
  107. package/dist/actions/select-shipping-option/types.js +0 -1
  108. package/dist/actions/set-order-address/action.d.ts +0 -6
  109. package/dist/actions/set-order-address/action.js +0 -8
  110. package/dist/actions/set-order-address/mock.d.ts +0 -7
  111. package/dist/actions/set-order-address/mock.js +0 -29
  112. package/dist/actions/set-order-address/types.d.ts +0 -19
  113. package/dist/actions/set-order-address/types.js +0 -1
  114. package/dist/actions/set-order-metadata/action.d.ts +0 -6
  115. package/dist/actions/set-order-metadata/action.js +0 -8
  116. package/dist/actions/set-order-metadata/mock.d.ts +0 -5
  117. package/dist/actions/set-order-metadata/mock.js +0 -38
  118. package/dist/actions/set-order-metadata/types.d.ts +0 -20
  119. package/dist/actions/set-order-metadata/types.js +0 -1
  120. package/dist/actions/set-order-status/action.d.ts +0 -6
  121. package/dist/actions/set-order-status/action.js +0 -8
  122. package/dist/actions/set-order-status/mock.d.ts +0 -3
  123. package/dist/actions/set-order-status/mock.js +0 -44
  124. package/dist/actions/set-order-status/types.d.ts +0 -25
  125. package/dist/actions/set-order-status/types.js +0 -1
  126. package/dist/actions/set-order-type/action.d.ts +0 -6
  127. package/dist/actions/set-order-type/action.js +0 -8
  128. package/dist/actions/set-order-type/mock.d.ts +0 -3
  129. package/dist/actions/set-order-type/mock.js +0 -27
  130. package/dist/actions/set-order-type/types.d.ts +0 -17
  131. package/dist/actions/set-order-type/types.js +0 -1
  132. package/dist/actions/set-outlet/action.d.ts +0 -6
  133. package/dist/actions/set-outlet/action.js +0 -8
  134. package/dist/actions/set-outlet/mock.d.ts +0 -13
  135. package/dist/actions/set-outlet/mock.js +0 -24
  136. package/dist/actions/set-outlet/types.d.ts +0 -31
  137. package/dist/actions/set-outlet/types.js +0 -21
  138. package/dist/actions/set-scheduled-for/action.d.ts +0 -6
  139. package/dist/actions/set-scheduled-for/action.js +0 -8
  140. package/dist/actions/set-scheduled-for/mock.d.ts +0 -4
  141. package/dist/actions/set-scheduled-for/mock.js +0 -45
  142. package/dist/actions/set-scheduled-for/types.d.ts +0 -22
  143. package/dist/actions/set-scheduled-for/types.js +0 -1
  144. package/dist/actions/start-checkout/action.d.ts +0 -6
  145. package/dist/actions/start-checkout/action.js +0 -8
  146. package/dist/actions/start-checkout/mock.d.ts +0 -16
  147. package/dist/actions/start-checkout/mock.js +0 -80
  148. package/dist/actions/start-checkout/types.d.ts +0 -90
  149. package/dist/actions/start-checkout/types.js +0 -10
  150. package/dist/demo/shipping.d.ts +0 -8
  151. package/dist/demo/shipping.js +0 -69
  152. package/dist/pubsub/topics/checkout/checkout-started/types.d.ts +0 -26
  153. package/dist/pubsub/topics/checkout/checkout-started/types.js +0 -1
  154. package/dist/pubsub/topics/checkout/index.d.ts +0 -7
  155. package/dist/pubsub/topics/checkout/index.js +0 -28
  156. package/dist/pubsub/topics/checkout/payment-completed/types.d.ts +0 -31
  157. package/dist/pubsub/topics/checkout/payment-completed/types.js +0 -1
  158. package/dist/pubsub/topics/checkout/payment-failed/types.d.ts +0 -20
  159. package/dist/pubsub/topics/checkout/payment-failed/types.js +0 -1
  160. package/dist/pubsub/topics/checkout/types.d.ts +0 -12
  161. package/dist/pubsub/topics/checkout/types.js +0 -8
@@ -1,28 +1,4 @@
1
1
  import { MOCK_PARKED_ORDERS, MOCK_CART, MOCK_PRODUCTS, resetMockCart, mockPublishEvent } from '../../demo/database';
2
- /**
3
- * Best-effort Order -> MOCK_CART mapping shared by the resume mocks.
4
- */
5
- export const restoreMockCartFromOrder = (orderToResume) => {
6
- resetMockCart();
7
- MOCK_CART.customer = orderToResume.customer; // Cast if needed
8
- MOCK_CART.products = orderToResume.lineItems.map((li) => ({
9
- id: li.productId,
10
- name: li.name,
11
- quantity: li.quantity,
12
- price: li.price,
13
- internalId: li.internalId || li.productId,
14
- variantId: li.variantId,
15
- sku: li.sku,
16
- images: [li.image],
17
- stock: 100,
18
- taxTableId: '',
19
- attributes: li.attributes,
20
- }));
21
- MOCK_CART.subtotal = orderToResume.summary.subtotalAfterFees;
22
- MOCK_CART.total = orderToResume.summary.total;
23
- MOCK_CART.amountToBeCharged = MOCK_CART.total;
24
- MOCK_CART.remainingBalance = MOCK_CART.total;
25
- };
26
2
  export const mockResumeParkedOrder = async (params) => {
27
3
  console.log('[Mock] resumeParkedOrder called', params);
28
4
  const orderId = params?.orderId;
@@ -49,7 +25,30 @@ export const mockResumeParkedOrder = async (params) => {
49
25
  .map((li) => li.name);
50
26
  if (notSoldNames.length)
51
27
  throw new Error(`${notSoldNames.join(', ')} is not sold in POS`);
52
- restoreMockCartFromOrder(orderToResume);
28
+ // Restore to MOCK_CART
29
+ // Logic to convert Order back to Cart (simplified)
30
+ resetMockCart();
31
+ // Copy properties back
32
+ MOCK_CART.customer = orderToResume.customer; // Cast if needed
33
+ // MOCK_CART.products = orderToResume.lineItems... (Mapping needed)
34
+ // For Mock demo, we'll do a best effort mapping
35
+ MOCK_CART.products = orderToResume.lineItems.map((li) => ({
36
+ id: li.productId,
37
+ name: li.name,
38
+ quantity: li.quantity,
39
+ price: li.price,
40
+ internalId: li.internalId || li.productId,
41
+ variantId: li.variantId,
42
+ sku: li.sku,
43
+ images: [li.image],
44
+ stock: 100,
45
+ taxTableId: '',
46
+ attributes: li.attributes,
47
+ }));
48
+ MOCK_CART.subtotal = orderToResume.summary.subtotalAfterFees;
49
+ MOCK_CART.total = orderToResume.summary.total;
50
+ MOCK_CART.amountToBeCharged = MOCK_CART.total;
51
+ MOCK_CART.remainingBalance = MOCK_CART.total;
53
52
  // Remove from parked
54
53
  MOCK_PARKED_ORDERS.splice(index, 1);
55
54
  // Refresh the restored cart and the order lists.
@@ -1,27 +1,17 @@
1
1
  import { MOCK_ORDERS, mockPublishEvent } from '../../demo/database';
2
- // Mirrors the runtime gate (kaching's void-order/handler.ts): an order is
3
- // voidable while it is still OPEN, or when it is PAID but was never fulfilled
4
- // (still in the kitchen). Anything else (a handed-over paid order,
5
- // partially_refunded, refunded, voided, or unknown) is ORDER_NOT_VOIDABLE.
2
+ // Payment states in which an order is still open — mirrors the runtime gate
3
+ // (kaching's OPEN_PAYMENT_STATES / handler.ts). Anything outside this set
4
+ // (paid, partially_refunded, refunded, voided, or unknown) is ORDER_NOT_VOIDABLE.
6
5
  const OPEN_PAYMENT_STATES = ['unpaid', 'payment_pending', 'partially_paid'];
7
- const UNFULFILLED_STATES = ['draft', 'pending', 'on_hold'];
8
- // No orderId means the order in the cart, never just any order: the runtime refuses an
9
- // id-less void unless the order is the live cart's (a finished sale kept for receipts is
10
- // not), and a legacy order with no cart flag counts only while it is still open. The demo
11
- // has no stations, so the flag alone decides.
12
- const isCartOrder = (o) => o.inCart != null
13
- ? o.inCart.active
14
- : OPEN_PAYMENT_STATES.includes(o.paymentState) &&
15
- (o.fulfillmentState ? o.fulfillmentState === 'draft' : o.status === 'in-cart');
16
6
  export const mockVoidOrder = async (params) => {
17
7
  console.log('[Mock] voidOrder called', params);
18
- const order = params?.orderId ? MOCK_ORDERS.find((o) => o._id === params.orderId) : MOCK_ORDERS.find(isCartOrder);
8
+ const order = params?.orderId ? MOCK_ORDERS.find((o) => o._id === params.orderId) : MOCK_ORDERS[0];
19
9
  if (!order) {
20
- throw new Error(params?.orderId ? `Order with ID ${params.orderId} not found` : 'No order selected. Please provide orderId.');
10
+ throw new Error(`Order with ID ${params?.orderId} not found`);
21
11
  }
22
12
  const orderId = order._id;
23
- const paidUnfulfilled = order.paymentState === 'paid' && UNFULFILLED_STATES.includes(order.fulfillmentState);
24
- if (!OPEN_PAYMENT_STATES.includes(order.paymentState) && !paidUnfulfilled) {
13
+ // Only OPEN orders are voidable — mirror the runtime gate.
14
+ if (!OPEN_PAYMENT_STATES.includes(order.paymentState)) {
25
15
  throw new Error(`ORDER_NOT_VOIDABLE: order ${orderId} is '${order.paymentState}' — use the refund flow for completed orders`);
26
16
  }
27
17
  const hasCapturedLegs = (order.paymentMethods?.length ?? 0) > 0;
@@ -1,9 +1,6 @@
1
1
  export type VoidOrderOutcome = 'voided' | 'refunded';
2
2
  export interface VoidOrderParams {
3
- /**
4
- * Order to void. Omit for the live cart's order (resumed, or part-paid). A finished
5
- * sale kept for receipts after payment is not the cart's order — pass its id.
6
- */
3
+ /** Order to void; defaults to the active order. */
7
4
  orderId?: string;
8
5
  /**
9
6
  * Optional cashier-facing reason. Recorded on both branches — the void audit
@@ -18,8 +15,7 @@ export interface VoidOrderResponse {
18
15
  orderId: string;
19
16
  /**
20
17
  * `voided` — nothing was captured; pure state transition to voided × cancelled.
21
- * `refunded` — captured payments (a deposit / split legs, or the whole
22
- * payment of a paid order never fulfilled) were refunded to their original tenders;
18
+ * `refunded` — captured split legs were refunded to their original tenders;
23
19
  * order lands refunded × cancelled (financially equivalent to a
24
20
  * void, but the capture + payout stay on the audit trail).
25
21
  */
@@ -7,7 +7,7 @@ export interface CFStatePair {
7
7
  payment: string;
8
8
  fulfillment: string;
9
9
  }
10
- export type CFBlockedBy = 'financial_invariant' | 'cross_axis_rule' | 'path' | 'condition';
10
+ export type CFBlockedBy = "financial_invariant" | "cross_axis_rule" | "path" | "condition";
11
11
  export interface CFTransitionResult {
12
12
  allowed: boolean;
13
13
  blockedBy?: CFBlockedBy;
@@ -30,22 +30,3 @@ export interface CFAvailableTransition {
30
30
  displayLabel: string;
31
31
  conditions: CFConditionStatus[];
32
32
  }
33
- /**
34
- * An order status the running flow defines (authored in the flow builder, shipped with
35
- * each deployed version). `fulfillmentState`: setting the status moves the order there
36
- * (normal state-machine rules). `requiresPaymentState`: setting it fails unless the
37
- * order's payment state is one of these — a status never moves money. Neither set = a
38
- * label-only status.
39
- */
40
- export interface CFOrderStatusDefinition {
41
- /** Durable id; survives a renamed key or label. */
42
- id: string;
43
- /** What flow code passes to setOrderStatus and getOrders({ customStatusKey }), e.g. 'in-kitchen'. */
44
- key: string;
45
- /** What staff see. */
46
- label: string;
47
- color?: string;
48
- icon?: string;
49
- fulfillmentState?: string;
50
- requiresPaymentState?: string[];
51
- }
@@ -2,7 +2,6 @@
2
2
  * Mock Database for Standalone/Demo Mode
3
3
  * Stores mock data that mimics the Render environment
4
4
  */
5
- import type { CFOrderStatusDefinition } from '../common-types/order-state';
6
5
  import { CFActiveCompany, CFActiveUser, CFActiveStation, CFActiveOutlet, CFActiveOrder, CFCustomer, CFProduct, CFComposite, CFCartLineComponent, CFActiveCart, CFCategory, CFActiveProduct, CFSession, CFActiveRefundDetails, CFSmartGridLayout, CFBooking, CFBookingAvailability, CFBookingResource, CFBookingSlot, CFCartLineModifier, CFProdModifierBreakdown, CFModifierSelection, CFResolvedModifier } from '../CommonTypes';
7
6
  export * from './mocks';
8
7
  /** Replace mock catalog / context data in place (same array references mock handlers use). */
@@ -20,7 +19,6 @@ export interface MockDatabaseConfig {
20
19
  bookingResources?: CFBookingResource[];
21
20
  /** Windows already taken when the dataset loads, so a calendar does not open empty. */
22
21
  bookings?: CFBooking[];
23
- orderStatuses?: CFOrderStatusDefinition[];
24
22
  /** Products hidden at an outlet (the host's `catalog-visibility`, product-level rows). Empty = sold everywhere. */
25
23
  catalogVisibility?: MockCatalogVisibility[];
26
24
  }
@@ -115,8 +113,6 @@ export declare let MOCK_ACTIVE_PRODUCT: CFActiveProduct;
115
113
  export declare const setMockActiveProduct: (activeProduct: CFActiveProduct) => void;
116
114
  export declare const MOCK_SMART_GRID_LAYOUTS: Record<string, CFSmartGridLayout>;
117
115
  export declare const resetMockCart: () => void;
118
- /** The demo flow's order statuses (getOrderStatuses / setOrderStatus). */
119
- export declare const MOCK_ORDER_STATUSES: CFOrderStatusDefinition[];
120
116
  /**
121
117
  * Replace in-memory mock data used by default mock handlers. Arrays are mutated in place
122
118
  * so existing imports from this module keep working.
@@ -936,40 +936,11 @@ function resolveMockOrderCurrency() {
936
936
  }
937
937
  return CurrencyCode.USD;
938
938
  }
939
- /** The demo flow's order statuses (getOrderStatuses / setOrderStatus). */
940
- export const MOCK_ORDER_STATUSES = [
941
- { id: 'status_1', key: 'in-kitchen', label: 'In kitchen', color: '#f59e0b', fulfillmentState: 'pending' },
942
- {
943
- id: 'status_2',
944
- key: 'ready-for-pickup',
945
- label: 'Ready for pickup',
946
- color: '#10b981',
947
- fulfillmentState: 'in_progress',
948
- },
949
- {
950
- id: 'status_3',
951
- key: 'out-for-delivery',
952
- label: 'Out for delivery',
953
- color: '#3b82f6',
954
- fulfillmentState: 'partially_fulfilled',
955
- },
956
- {
957
- id: 'status_4',
958
- key: 'delivered',
959
- label: 'Delivered',
960
- fulfillmentState: 'fulfilled',
961
- requiresPaymentState: ['paid'],
962
- },
963
- { id: 'status_5', key: 'driver-called', label: 'Driver called' },
964
- ];
965
939
  /**
966
940
  * Replace in-memory mock data used by default mock handlers. Arrays are mutated in place
967
941
  * so existing imports from this module keep working.
968
942
  */
969
943
  export function setMockDatabase(config) {
970
- if (config.orderStatuses !== undefined) {
971
- MOCK_ORDER_STATUSES.splice(0, MOCK_ORDER_STATUSES.length, ...config.orderStatuses);
972
- }
973
944
  if (config.company !== undefined) {
974
945
  Object.assign(MOCK_COMPANY, config.company);
975
946
  }
package/dist/index.d.ts CHANGED
@@ -45,18 +45,9 @@ export declare const command: {
45
45
  readonly clearCart: import(".").ClearCart;
46
46
  readonly parkOrder: import(".").ParkOrder;
47
47
  readonly resumeParkedOrder: import(".").ResumeParkedOrder;
48
- readonly resumeOrder: import(".").ResumeOrder;
49
- readonly setOrderMetadata: import(".").SetOrderMetadata;
50
- readonly assignOrderUser: import(".").AssignOrderUser;
51
- readonly releaseFromCart: import(".").ReleaseFromCart;
52
- readonly setOrderType: import(".").SetOrderType;
53
- readonly setScheduledFor: import(".").SetScheduledFor;
54
- readonly setOrderStatus: import(".").SetOrderStatus;
55
- readonly getOrderStatuses: import(".").GetOrderStatuses;
56
48
  readonly deleteParkedOrder: import(".").DeleteParkedOrder;
57
49
  readonly voidOrder: import(".").VoidOrder;
58
50
  readonly cashPayment: import(".").CashPayment;
59
- readonly recordExternalPayment: import(".").RecordExternalPayment;
60
51
  readonly getCashRoundingAmount: import(".").GetCashRoundingAmount;
61
52
  readonly tapToPayPayment: import(".").TapToPayPayment;
62
53
  readonly terminalPayment: import(".").TerminalPayment;
@@ -65,16 +56,6 @@ export declare const command: {
65
56
  readonly integrationPayment: import(".").IntegrationPayment;
66
57
  readonly createPaymentLink: import(".").CreatePaymentLink;
67
58
  readonly chargeMoto: import(".").ChargeMoto;
68
- readonly startCheckout: import(".").StartCheckout;
69
- readonly attachCheckoutContact: import(".").AttachCheckoutContact;
70
- readonly getAddressOptions: import(".").GetAddressOptions;
71
- readonly setOrderAddress: import(".").SetOrderAddress;
72
- readonly getShippingOptions: import(".").GetShippingOptions;
73
- readonly selectShippingOption: import(".").SelectShippingOption;
74
- readonly setOutlet: import(".").SetOutlet;
75
- readonly resumeCheckout: import(".").ResumeCheckout;
76
- readonly getCheckoutStatus: import(".").GetCheckoutStatus;
77
- readonly getMotoConfig: import(".").GetMotoConfig;
78
59
  readonly addCustomerNote: import(".").AddCustomerNote;
79
60
  readonly removeCustomerNote: import(".").RemoveCustomerNote;
80
61
  readonly removeCustomerFromCart: import(".").RemoveCustomerFromCart;
@@ -170,7 +151,7 @@ export type { AddProduct, AddProductParams, AddProductResponse } from './actions
170
151
  export type { EditProduct, EditProductParams, EditProductResponse } from './actions/edit-product/types';
171
152
  export type { EditProductVariants, EditProductVariantsParams, EditProductVariantsResponse, } from './actions/edit-product-variants/types';
172
153
  export type { DeleteProduct, DeleteProductParams, DeleteProductResponse } from './actions/delete-product/types';
173
- export type { GetOutlets, GetOutletsParams, GetOutletsResponse } from './actions/get-outlets/types';
154
+ export type { GetOutlets, GetOutletsResponse } from './actions/get-outlets/types';
174
155
  export type { GetStations, GetStationsParams, GetStationsResponse } from './actions/get-stations/types';
175
156
  export type { GetSmartGridLayout, GetSmartGridLayoutParams, GetSmartGridLayoutResponse, } from './actions/get-smart-grid-layout/types';
176
157
  export type { SaveSmartGridLayout, SaveSmartGridLayoutParams, SaveSmartGridLayoutResponse, } from './actions/save-smart-grid-layout/types';
@@ -212,18 +193,9 @@ export type { AddCartFee, AddCartFeeParams, AddCartFeeResponse } from './actions
212
193
  export type { ClearCart, ClearCartResponse } from './actions/clear-cart/types';
213
194
  export type { ParkOrder, ParkOrderResponse } from './actions/park-order/types';
214
195
  export type { ResumeParkedOrder, ResumeParkedOrderParams, ResumeParkedOrderResponse, } from './actions/resume-parked-order/types';
215
- export type { ResumeOrder, ResumeOrderParams, ResumeOrderResponse } from './actions/resume-order/types';
216
- export type { SetOrderMetadata, SetOrderMetadataParams, SetOrderMetadataResponse, } from './actions/set-order-metadata/types';
217
- export type { AssignOrderUser, AssignOrderUserParams, AssignOrderUserResponse, } from './actions/assign-order-user/types';
218
- export type { ReleaseFromCart, ReleaseFromCartResponse } from './actions/release-from-cart/types';
219
- export type { SetOrderType, SetOrderTypeParams, SetOrderTypeResponse } from './actions/set-order-type/types';
220
- export type { SetScheduledFor, SetScheduledForParams, SetScheduledForResponse, } from './actions/set-scheduled-for/types';
221
- export type { SetOrderStatus, SetOrderStatusParams, SetOrderStatusResponse } from './actions/set-order-status/types';
222
- export type { GetOrderStatuses, GetOrderStatusesResponse } from './actions/get-order-statuses/types';
223
196
  export type { DeleteParkedOrder, DeleteParkedOrderParams, DeleteParkedOrderResponse, } from './actions/delete-parked-order/types';
224
197
  export type { VoidOrder, VoidOrderParams, VoidOrderResponse, VoidOrderOutcome } from './actions/void-order/types';
225
198
  export type { CashPayment, CashPaymentParams, CashPaymentResponse } from './actions/cash-payment/types';
226
- export type { RecordExternalPayment, RecordExternalPaymentParams, RecordExternalPaymentResponse, } from './actions/record-external-payment/types';
227
199
  export type { GetCashRoundingAmount, GetCashRoundingAmountParams, GetCashRoundingAmountResponse, } from './actions/get-cash-rounding-amount/types';
228
200
  export type { TapToPayPayment, TapToPayPaymentParams, TapToPayPaymentResponse, } from './actions/tap-to-pay-payment/types';
229
201
  export type { TerminalPayment, TerminalPaymentParams, TerminalPaymentResponse } from './actions/terminal-payment/types';
@@ -232,16 +204,6 @@ export type { RedeemPayment, RedeemPaymentParams, RedeemPaymentResponse } from '
232
204
  export type { IntegrationPayment, IntegrationPaymentParams, IntegrationPaymentResponse, IntegrationEmvData, } from './actions/integration-payment/types';
233
205
  export type { CreatePaymentLink, CreatePaymentLinkParams, CreatePaymentLinkResponse, } from './actions/create-payment-link/types';
234
206
  export type { ChargeMoto, ChargeMotoParams, ChargeMotoResponse, ChargeMotoCardFields, } from './actions/charge-moto/types';
235
- export type { StartCheckout, StartCheckoutParams, StartCheckoutResponse, StartCheckoutContact, StartCheckoutOrder, } from './actions/start-checkout/types';
236
- export type { AttachCheckoutContact, AttachCheckoutContactParams, AttachCheckoutContactResponse, } from './actions/attach-checkout-contact/types';
237
- export type { GetAddressOptions, GetAddressOptionsParams, GetAddressOptionsResponse, AddressCountryOption, AddressProvinceOption, } from './actions/get-address-options/types';
238
- export type { SetOrderAddress, SetOrderAddressParams, SetOrderAddressResponse, OrderAddressType, } from './actions/set-order-address/types';
239
- export type { GetShippingOptions, GetShippingOptionsResponse, ShippingOptionView, ShippingPickupView, } from './actions/get-shipping-options/types';
240
- export type { SelectShippingOption, SelectShippingOptionParams, SelectShippingOptionResponse, } from './actions/select-shipping-option/types';
241
- export type { SetOutlet, SetOutletParams, SetOutletResponse } from './actions/set-outlet/types';
242
- export type { ResumeCheckout, ResumeCheckoutParams, ResumeCheckoutResponse, ResumeCheckoutResult, } from './actions/resume-checkout/types';
243
- export type { GetCheckoutStatus, GetCheckoutStatusParams, GetCheckoutStatusResponse, CheckoutOrderStatus, } from './actions/get-checkout-status/types';
244
- export type { GetMotoConfig, GetMotoConfigResponse, MotoUnavailableReason } from './actions/get-moto-config/types';
245
207
  export type { AddCustomerNote, AddCustomerNoteParams, AddCustomerNoteResponse, } from './actions/add-customer-note/types';
246
208
  export type { RemoveCustomerNote, RemoveCustomerNoteParams, RemoveCustomerNoteResponse, } from './actions/remove-customer-note/types';
247
209
  export type { RemoveCustomerFromCart, RemoveCustomerFromCartResponse } from './actions/remove-customer-from-cart/types';
@@ -298,7 +260,6 @@ export { refundsTopic } from './pubsub/topics/refunds';
298
260
  export { productsTopic } from './pubsub/topics/products';
299
261
  export { cartTopic } from './pubsub/topics/cart';
300
262
  export { paymentsTopic } from './pubsub/topics/payments';
301
- export { checkoutTopic } from './pubsub/topics/checkout';
302
263
  export { splitPaymentsTopic } from './pubsub/topics/split-payments';
303
264
  export { customTablesTopic } from './pubsub/topics/custom-tables';
304
265
  export { printTopic } from './pubsub/topics/print';
@@ -326,7 +287,6 @@ export type { CategoryCreatedPayload, CategoryCreatedEvent, CategoryUpdatedPaylo
326
287
  export type { AttributeCreatedPayload, AttributeCreatedEvent, AttributeUpdatedPayload, AttributeUpdatedEvent, AttributesEventType, AttributesEventPayload, } from './pubsub/topics/attributes/types';
327
288
  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';
328
289
  export type { PaymentDonePayload, PaymentErrPayload, PaymentDoneEvent, PaymentErrEvent, PaymentsEventType, PaymentsEventPayload, } from './pubsub/topics/payments/types';
329
- export type { CheckoutStartedPayload, PaymentCompletedPayload, PaymentFailedPayload, CheckoutStartedEvent, PaymentCompletedEvent, PaymentFailedEvent, CheckoutEventType, CheckoutEventPayload, } from './pubsub/topics/checkout/types';
330
290
  export type { SplitPaymentUpdatedPayload, SplitPaymentUpdatedEvent, SplitPaymentsEventType, SplitPaymentsEventPayload, } from './pubsub/topics/split-payments/types';
331
291
  export type { RowCreatedPayload, RowUpdatedPayload, RowDeletedPayload, RowCreatedEvent, RowUpdatedEvent, RowDeletedEvent, CustomTablesEventType, CustomTablesEventPayload, } from './pubsub/topics/custom-tables/types';
332
292
  export type { PrintStartedPayload, PrintCompletedPayload, PrintErrorPayload, PrintStartedEvent, PrintCompletedEvent, PrintErrorEvent, PrintEventType, PrintEventPayload, } from './pubsub/topics/print/types';
package/dist/index.js CHANGED
@@ -45,18 +45,9 @@ import { getCurrentCart } from './actions/get-current-cart/action';
45
45
  import { clearCart } from './actions/clear-cart/action';
46
46
  import { parkOrder } from './actions/park-order/action';
47
47
  import { resumeParkedOrder } from './actions/resume-parked-order/action';
48
- import { resumeOrder } from './actions/resume-order/action';
49
- import { setOrderMetadata } from './actions/set-order-metadata/action';
50
- import { assignOrderUser } from './actions/assign-order-user/action';
51
- import { releaseFromCart } from './actions/release-from-cart/action';
52
- import { setOrderType } from './actions/set-order-type/action';
53
- import { setScheduledFor } from './actions/set-scheduled-for/action';
54
- import { setOrderStatus } from './actions/set-order-status/action';
55
- import { getOrderStatuses } from './actions/get-order-statuses/action';
56
48
  import { deleteParkedOrder } from './actions/delete-parked-order/action';
57
49
  import { voidOrder } from './actions/void-order/action';
58
50
  import { cashPayment } from './actions/cash-payment/action';
59
- import { recordExternalPayment } from './actions/record-external-payment/action';
60
51
  import { getCashRoundingAmount } from './actions/get-cash-rounding-amount/action';
61
52
  import { tapToPayPayment } from './actions/tap-to-pay-payment/action';
62
53
  import { terminalPayment } from './actions/terminal-payment/action';
@@ -65,16 +56,6 @@ import { redeemPayment } from './actions/redeem-payment/action';
65
56
  import { integrationPayment } from './actions/integration-payment/action';
66
57
  import { createPaymentLink } from './actions/create-payment-link/action';
67
58
  import { chargeMoto } from './actions/charge-moto/action';
68
- import { startCheckout } from './actions/start-checkout/action';
69
- import { attachCheckoutContact } from './actions/attach-checkout-contact/action';
70
- import { getAddressOptions } from './actions/get-address-options/action';
71
- import { setOrderAddress } from './actions/set-order-address/action';
72
- import { getShippingOptions } from './actions/get-shipping-options/action';
73
- import { selectShippingOption } from './actions/select-shipping-option/action';
74
- import { setOutlet } from './actions/set-outlet/action';
75
- import { resumeCheckout } from './actions/resume-checkout/action';
76
- import { getCheckoutStatus } from './actions/get-checkout-status/action';
77
- import { getMotoConfig } from './actions/get-moto-config/action';
78
59
  // Customer Actions
79
60
  import { addCustomerNote } from './actions/add-customer-note/action';
80
61
  import { removeCustomerNote } from './actions/remove-customer-note/action';
@@ -214,18 +195,9 @@ export const command = {
214
195
  clearCart,
215
196
  parkOrder,
216
197
  resumeParkedOrder,
217
- resumeOrder,
218
- setOrderMetadata,
219
- assignOrderUser,
220
- releaseFromCart,
221
- setOrderType,
222
- setScheduledFor,
223
- setOrderStatus,
224
- getOrderStatuses,
225
198
  deleteParkedOrder,
226
199
  voidOrder,
227
200
  cashPayment,
228
- recordExternalPayment,
229
201
  getCashRoundingAmount,
230
202
  tapToPayPayment,
231
203
  terminalPayment,
@@ -234,16 +206,6 @@ export const command = {
234
206
  integrationPayment,
235
207
  createPaymentLink,
236
208
  chargeMoto,
237
- startCheckout,
238
- attachCheckoutContact,
239
- getAddressOptions,
240
- setOrderAddress,
241
- getShippingOptions,
242
- selectShippingOption,
243
- setOutlet,
244
- resumeCheckout,
245
- getCheckoutStatus,
246
- getMotoConfig,
247
209
  // Customer Actions
248
210
  addCustomerNote,
249
211
  removeCustomerNote,
@@ -354,7 +316,6 @@ export { refundsTopic } from './pubsub/topics/refunds';
354
316
  export { productsTopic } from './pubsub/topics/products';
355
317
  export { cartTopic } from './pubsub/topics/cart';
356
318
  export { paymentsTopic } from './pubsub/topics/payments';
357
- export { checkoutTopic } from './pubsub/topics/checkout';
358
319
  export { splitPaymentsTopic } from './pubsub/topics/split-payments';
359
320
  export { customTablesTopic } from './pubsub/topics/custom-tables';
360
321
  export { printTopic } from './pubsub/topics/print';
@@ -34,21 +34,9 @@ import { mockAssignCustomer } from '../../actions/assign-customer/mock';
34
34
  import { mockAuthenticateUser } from '../../actions/authenticate-user/mock';
35
35
  import { mockCalculateRefundTotal } from '../../actions/calculate-refund-total/mock';
36
36
  import { mockCashPayment } from '../../actions/cash-payment/mock';
37
- import { mockRecordExternalPayment } from '../../actions/record-external-payment/mock';
38
37
  import { mockGetCashRoundingAmount } from '../../actions/get-cash-rounding-amount/mock';
39
38
  import { mockCreatePaymentLink } from '../../actions/create-payment-link/mock';
40
39
  import { mockChargeMoto } from '../../actions/charge-moto/mock';
41
- import { mockStartCheckout } from '../../actions/start-checkout/mock';
42
- import { mockAttachCheckoutContact } from '../../actions/attach-checkout-contact/mock';
43
- import { mockGetAddressOptions } from '../../actions/get-address-options/mock';
44
- import { mockSetOrderAddress } from '../../actions/set-order-address/mock';
45
- import { mockGetShippingOptions } from '../../actions/get-shipping-options/mock';
46
- import { mockSelectShippingOption } from '../../actions/select-shipping-option/mock';
47
- import { mockGetOutlets } from '../../actions/get-outlets/mock';
48
- import { mockSetOutlet } from '../../actions/set-outlet/mock';
49
- import { mockResumeCheckout } from '../../actions/resume-checkout/mock';
50
- import { mockGetCheckoutStatus } from '../../actions/get-checkout-status/mock';
51
- import { mockGetMotoConfig } from '../../actions/get-moto-config/mock';
52
40
  import { mockGetTimeClockStatus } from '../../actions/get-time-clock-status/mock';
53
41
  import { mockClearCart } from '../../actions/clear-cart/mock';
54
42
  import { mockDeleteParkedOrder } from '../../actions/delete-parked-order/mock';
@@ -82,14 +70,6 @@ import { mockCheckPermission } from '../../actions/check-permission/mock';
82
70
  import { mockRemoveCustomerFromCart } from '../../actions/remove-customer-from-cart/mock';
83
71
  import { mockResetRefundDetails } from '../../actions/reset-refund-details/mock';
84
72
  import { mockResumeParkedOrder } from '../../actions/resume-parked-order/mock';
85
- import { mockResumeOrder } from '../../actions/resume-order/mock';
86
- import { mockSetOrderMetadata } from '../../actions/set-order-metadata/mock';
87
- import { mockAssignOrderUser } from '../../actions/assign-order-user/mock';
88
- import { mockReleaseFromCart } from '../../actions/release-from-cart/mock';
89
- import { mockSetOrderType } from '../../actions/set-order-type/mock';
90
- import { mockSetScheduledFor } from '../../actions/set-scheduled-for/mock';
91
- import { mockSetOrderStatus } from '../../actions/set-order-status/mock';
92
- import { mockGetOrderStatuses } from '../../actions/get-order-statuses/mock';
93
73
  import { mockSelectAllRefundItems } from '../../actions/select-all-refund-items/mock';
94
74
  import { mockSetRefundStockAction } from '../../actions/set-refund-stock-action/mock';
95
75
  import { mockShowConfirmation } from '../../actions/show-confirmation/mock';
@@ -164,21 +144,9 @@ export const RENDER_MOCKS = {
164
144
  authenticateUser: mockAuthenticateUser,
165
145
  calculateRefundTotal: mockCalculateRefundTotal,
166
146
  cashPayment: mockCashPayment,
167
- recordExternalPayment: mockRecordExternalPayment,
168
147
  getCashRoundingAmount: mockGetCashRoundingAmount,
169
148
  createPaymentLink: mockCreatePaymentLink,
170
149
  chargeMoto: mockChargeMoto,
171
- startCheckout: mockStartCheckout,
172
- attachCheckoutContact: mockAttachCheckoutContact,
173
- getAddressOptions: mockGetAddressOptions,
174
- setOrderAddress: mockSetOrderAddress,
175
- getShippingOptions: mockGetShippingOptions,
176
- selectShippingOption: mockSelectShippingOption,
177
- getOutlets: mockGetOutlets,
178
- setOutlet: mockSetOutlet,
179
- resumeCheckout: mockResumeCheckout,
180
- getCheckoutStatus: mockGetCheckoutStatus,
181
- getMotoConfig: mockGetMotoConfig,
182
150
  clearCart: mockClearCart,
183
151
  deleteParkedOrder: mockDeleteParkedOrder,
184
152
  voidOrder: mockVoidOrder,
@@ -212,14 +180,6 @@ export const RENDER_MOCKS = {
212
180
  removeCartDiscount: mockRemoveCartDiscount,
213
181
  resetRefundDetails: mockResetRefundDetails,
214
182
  resumeParkedOrder: mockResumeParkedOrder,
215
- resumeOrder: mockResumeOrder,
216
- setOrderMetadata: mockSetOrderMetadata,
217
- assignOrderUser: mockAssignOrderUser,
218
- releaseFromCart: mockReleaseFromCart,
219
- setOrderType: mockSetOrderType,
220
- setScheduledFor: mockSetScheduledFor,
221
- setOrderStatus: mockSetOrderStatus,
222
- getOrderStatuses: mockGetOrderStatuses,
223
183
  selectAllRefundItems: mockSelectAllRefundItems,
224
184
  setRefundStockAction: mockSetRefundStockAction,
225
185
  showConfirmation: mockShowConfirmation,
@@ -1,4 +1,4 @@
1
- import type { ExampleFunction, GetProducts, AddCustomSale, EditCustomSale, GetCustomers, AssignCustomer, AddCustomer, EditCustomer, GetCategories, GetOrders, GetRefunds, GetTaxTables, GetCustomStockActions, AddProductDiscount, AddProductToCart, RemoveProductFromCart, UpdateCartItemQuantity, AddCartDiscount, GetContext, GetFinalContext, AddProductNote, AddProductFee, GetProductModifierSelections, GetCompositePrice, GetCompositeAvailability, SetProductModifierSelections, SetActiveProductFee, SetActiveProductDiscount, GetActiveProduct, SetActiveProduct, AdjustInventory, SetVariantUnavailable, AddOrderNote, AddCartFee, ClearCart, ParkOrder, ResumeParkedOrder, ResumeOrder, SetOrderMetadata, AssignOrderUser, ReleaseFromCart, SetOrderType, SetScheduledFor, SetOrderStatus, GetOrderStatuses, DeleteParkedOrder, VoidOrder, InitiateRefund, CashPayment, RecordExternalPayment, GetCashRoundingAmount, TapToPayPayment, TerminalPayment, ExtensionPayment, RedeemPayment, AddNonRevenueItem, AddCustomerNote, RemoveCustomerNote, RemoveCustomerFromCart, GoToStationHome, OpenCashDrawer, ShowNotification, ShowConfirmation, AuthenticateUser, PartialPayment, SwitchUser, SetRefundStockAction, SelectAllRefundItems, ResetRefundDetails, CalculateRefundTotal, GetRemainingRefundableQuantities, ProcessPartialRefund, RedeemRefund, GetRefundPlan, CheckPermission, GetCurrentCart, Print, SetActiveOrder, GetCustomTables, GetCustomTableData, UpsertCustomTableData, DeleteCustomTableData, GetCustomExtensions, GetCurrentCompanyCustomExtensions, GetCustomExtensionCustomTables, GetCustomTableFields, GetSecretsKeys, GetSecretVal, SetSecretVal, GetUsers, GetRoles, RemoveCartDiscount, GetActiveOrder, GetActiveCustomer, SetActiveCustomer, GetActiveOutlet, GetActiveStation, GetActiveSession, GetActiveUser, SetActiveUser, SetActiveRefund, RemoveProductDiscount, RemoveProductFee, RemoveProductNote, RemoveCartFee, RemoveOrderNote, RemoveCustomSale, RemoveNonRevenueItem, CanTransition, GetAvailableTransitions, ApplyTransition, IntegrationPayment, GetSmartGridLayout, SaveSmartGridLayout, SendEmail, SendSms, GetBookingResources, GetBookingAvailability, GetBookings, HoldBooking, AddBookingToCart, RemoveBookingFromCart, CancelBooking, CreatePaymentLink, ChargeMoto, StartCheckout, AttachCheckoutContact, GetAddressOptions, SetOrderAddress, GetShippingOptions, SelectShippingOption, GetOutlets, SetOutlet, ResumeCheckout, GetCheckoutStatus, GetMotoConfig, GetTimeClockStatus } from '../../index';
1
+ import type { ExampleFunction, GetProducts, AddCustomSale, EditCustomSale, GetCustomers, AssignCustomer, AddCustomer, EditCustomer, GetCategories, GetOrders, GetRefunds, GetTaxTables, GetCustomStockActions, AddProductDiscount, AddProductToCart, RemoveProductFromCart, UpdateCartItemQuantity, AddCartDiscount, GetContext, GetFinalContext, AddProductNote, AddProductFee, GetProductModifierSelections, GetCompositePrice, GetCompositeAvailability, SetProductModifierSelections, SetActiveProductFee, SetActiveProductDiscount, GetActiveProduct, SetActiveProduct, AdjustInventory, SetVariantUnavailable, AddOrderNote, AddCartFee, ClearCart, ParkOrder, ResumeParkedOrder, DeleteParkedOrder, VoidOrder, InitiateRefund, CashPayment, GetCashRoundingAmount, TapToPayPayment, TerminalPayment, ExtensionPayment, RedeemPayment, AddNonRevenueItem, AddCustomerNote, RemoveCustomerNote, RemoveCustomerFromCart, GoToStationHome, OpenCashDrawer, ShowNotification, ShowConfirmation, AuthenticateUser, PartialPayment, SwitchUser, SetRefundStockAction, SelectAllRefundItems, ResetRefundDetails, CalculateRefundTotal, GetRemainingRefundableQuantities, ProcessPartialRefund, RedeemRefund, GetRefundPlan, CheckPermission, GetCurrentCart, Print, SetActiveOrder, GetCustomTables, GetCustomTableData, UpsertCustomTableData, DeleteCustomTableData, GetCustomExtensions, GetCurrentCompanyCustomExtensions, GetCustomExtensionCustomTables, GetCustomTableFields, GetSecretsKeys, GetSecretVal, SetSecretVal, GetUsers, GetRoles, RemoveCartDiscount, GetActiveOrder, GetActiveCustomer, SetActiveCustomer, GetActiveOutlet, GetActiveStation, GetActiveSession, GetActiveUser, SetActiveUser, SetActiveRefund, RemoveProductDiscount, RemoveProductFee, RemoveProductNote, RemoveCartFee, RemoveOrderNote, RemoveCustomSale, RemoveNonRevenueItem, CanTransition, GetAvailableTransitions, ApplyTransition, IntegrationPayment, GetSmartGridLayout, SaveSmartGridLayout, SendEmail, SendSms, GetBookingResources, GetBookingAvailability, GetBookings, HoldBooking, AddBookingToCart, RemoveBookingFromCart, CancelBooking, CreatePaymentLink, ChargeMoto, GetTimeClockStatus } from '../../index';
2
2
  export interface RenderProviderActions {
3
3
  exampleFunction: ExampleFunction;
4
4
  getProducts: GetProducts;
@@ -44,19 +44,10 @@ export interface RenderProviderActions {
44
44
  clearCart: ClearCart;
45
45
  parkOrder: ParkOrder;
46
46
  resumeParkedOrder: ResumeParkedOrder;
47
- resumeOrder: ResumeOrder;
48
- setOrderMetadata: SetOrderMetadata;
49
- assignOrderUser: AssignOrderUser;
50
- releaseFromCart: ReleaseFromCart;
51
- setOrderType: SetOrderType;
52
- setScheduledFor: SetScheduledFor;
53
- setOrderStatus: SetOrderStatus;
54
- getOrderStatuses: GetOrderStatuses;
55
47
  deleteParkedOrder: DeleteParkedOrder;
56
48
  voidOrder: VoidOrder;
57
49
  initiateRefund: InitiateRefund;
58
50
  cashPayment: CashPayment;
59
- recordExternalPayment: RecordExternalPayment;
60
51
  getCashRoundingAmount: GetCashRoundingAmount;
61
52
  tapToPayPayment: TapToPayPayment;
62
53
  terminalPayment: TerminalPayment;
@@ -65,29 +56,6 @@ export interface RenderProviderActions {
65
56
  integrationPayment: IntegrationPayment;
66
57
  createPaymentLink: CreatePaymentLink;
67
58
  chargeMoto: ChargeMoto;
68
- /**
69
- * ONLINE checkout — served only by the storefront runtime (a published
70
- * website). The till tenders above are refused there, and this is refused on
71
- * a register, because the two declare different things to the card networks.
72
- */
73
- startCheckout: StartCheckout;
74
- attachCheckoutContact: AttachCheckoutContact;
75
- /** Shipping, on the till (ship-to) and the website alike. The runtime prices; the flow renders. */
76
- getAddressOptions: GetAddressOptions;
77
- setOrderAddress: SetOrderAddress;
78
- getShippingOptions: GetShippingOptions;
79
- selectShippingOption: SelectShippingOption;
80
- getOutlets: GetOutlets;
81
- setOutlet: SetOutlet;
82
- /**
83
- * The RETURN LEG of an online checkout, after a redirect payment method or
84
- * 3-D Secure sent the shopper away and back. Storefront-only, like
85
- * `startCheckout`, and safe to call on every page load.
86
- */
87
- resumeCheckout: ResumeCheckout;
88
- /** Where an online order stands now, by its order password. Storefront-only. */
89
- getCheckoutStatus: GetCheckoutStatus;
90
- getMotoConfig: GetMotoConfig;
91
59
  addNonRevenueItem: AddNonRevenueItem;
92
60
  addCustomerNote: AddCustomerNote;
93
61
  removeCustomerNote: RemoveCustomerNote;
@@ -2,21 +2,20 @@
2
2
  * Pub/Sub Topics
3
3
  * Export all available topics and their types
4
4
  */
5
- export * from "./customers";
6
- export * from "./orders";
7
- export * from "./bookings";
8
- export * from "./refunds";
9
- export * from "./products";
10
- export * from "./cart";
11
- export * from "./payments";
12
- export * from "./checkout";
13
- export * from "./custom-tables";
14
- export * from "./print";
15
- export * from "./outlet";
16
- export * from "./station";
17
- export * from "./session";
18
- export * from "./users";
19
- export * from "./variants";
20
- export * from "./transactions";
21
- export * from "./categories";
22
- export * from "./attributes";
5
+ export * from './customers';
6
+ export * from './orders';
7
+ export * from './bookings';
8
+ export * from './refunds';
9
+ export * from './products';
10
+ export * from './cart';
11
+ export * from './payments';
12
+ export * from './custom-tables';
13
+ export * from './print';
14
+ export * from './outlet';
15
+ export * from './station';
16
+ export * from './session';
17
+ export * from './users';
18
+ export * from './variants';
19
+ export * from './transactions';
20
+ export * from './categories';
21
+ export * from './attributes';
@@ -2,21 +2,20 @@
2
2
  * Pub/Sub Topics
3
3
  * Export all available topics and their types
4
4
  */
5
- export * from "./customers";
6
- export * from "./orders";
7
- export * from "./bookings";
8
- export * from "./refunds";
9
- export * from "./products";
10
- export * from "./cart";
11
- export * from "./payments";
12
- export * from "./checkout";
13
- export * from "./custom-tables";
14
- export * from "./print";
15
- export * from "./outlet";
16
- export * from "./station";
17
- export * from "./session";
18
- export * from "./users";
19
- export * from "./variants";
20
- export * from "./transactions";
21
- export * from "./categories";
22
- export * from "./attributes";
5
+ export * from './customers';
6
+ export * from './orders';
7
+ export * from './bookings';
8
+ export * from './refunds';
9
+ export * from './products';
10
+ export * from './cart';
11
+ export * from './payments';
12
+ export * from './custom-tables';
13
+ export * from './print';
14
+ export * from './outlet';
15
+ export * from './station';
16
+ export * from './session';
17
+ export * from './users';
18
+ export * from './variants';
19
+ export * from './transactions';
20
+ export * from './categories';
21
+ export * from './attributes';