@final-commerce/command-frame 0.2.0-beta.6 → 0.3.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -26
- package/dist/CommonTypes.d.ts +72 -622
- package/dist/CommonTypes.js +5 -65
- package/dist/actions/add-product/mock.js +1 -1
- package/dist/actions/add-product-discount/mock.js +5 -5
- package/dist/actions/add-product-fee/mock.js +6 -6
- package/dist/actions/cash-payment/types.d.ts +0 -5
- package/dist/actions/delete-parked-order/types.d.ts +0 -3
- package/dist/actions/edit-product/mock.js +1 -1
- package/dist/actions/extension-payment/types.d.ts +4 -5
- package/dist/actions/get-products/mock.js +3 -3
- package/dist/actions/get-roles/mock.js +35 -41
- package/dist/actions/get-smart-grid-layout/action.d.ts +2 -0
- package/dist/actions/get-smart-grid-layout/action.js +4 -0
- package/dist/actions/get-smart-grid-layout/mock.d.ts +2 -0
- package/dist/actions/get-smart-grid-layout/mock.js +7 -0
- package/dist/actions/get-smart-grid-layout/types.d.ts +12 -0
- package/dist/actions/get-users/mock.js +16 -25
- package/dist/actions/initiate-refund/types.d.ts +0 -3
- package/dist/actions/integration-payment/action.d.ts +5 -0
- package/dist/actions/integration-payment/action.js +7 -0
- package/dist/actions/integration-payment/mock.d.ts +2 -0
- package/dist/actions/integration-payment/mock.js +4 -0
- package/dist/actions/integration-payment/types.d.ts +16 -0
- package/dist/actions/open-extension-overlay/action.d.ts +2 -0
- package/dist/actions/open-extension-overlay/action.js +4 -0
- package/dist/actions/open-extension-overlay/mock.d.ts +2 -0
- package/dist/actions/open-extension-overlay/mock.js +1 -0
- package/dist/actions/open-extension-overlay/types.d.ts +9 -0
- package/dist/actions/park-order/types.d.ts +0 -3
- package/dist/actions/partial-payment/types.d.ts +0 -5
- package/dist/actions/process-partial-refund/types.d.ts +0 -3
- package/dist/actions/resolve-extension-overlay/action.d.ts +2 -0
- package/dist/actions/resolve-extension-overlay/action.js +4 -0
- package/dist/actions/resolve-extension-overlay/mock.d.ts +2 -0
- package/dist/actions/resolve-extension-overlay/mock.js +1 -0
- package/dist/actions/resolve-extension-overlay/types.d.ts +9 -0
- package/dist/actions/resume-parked-order/mock.js +1 -1
- package/dist/actions/resume-parked-order/types.d.ts +0 -3
- package/dist/actions/save-smart-grid-layout/action.d.ts +2 -0
- package/dist/actions/save-smart-grid-layout/action.js +4 -0
- package/dist/actions/save-smart-grid-layout/mock.d.ts +2 -0
- package/dist/actions/save-smart-grid-layout/mock.js +7 -0
- package/dist/actions/save-smart-grid-layout/types.d.ts +12 -0
- package/dist/actions/set-active-product-discount/mock.js +1 -1
- package/dist/actions/set-active-product-fee/mock.js +1 -1
- package/dist/actions/tap-to-pay-payment/types.d.ts +0 -5
- package/dist/actions/terminal-payment/types.d.ts +0 -5
- package/dist/actions/vendara-payment/types.d.ts +0 -5
- package/dist/common-types/index.d.ts +0 -1
- package/dist/common-types/index.js +0 -1
- package/dist/demo/database.d.ts +21 -21
- package/dist/demo/database.js +27 -27
- package/dist/index.d.ts +115 -115
- package/dist/index.js +15 -15
- package/dist/interceptors/types.d.ts +34 -0
- package/dist/interceptors/types.js +1 -0
- package/dist/projects/render/mocks.js +10 -8
- package/dist/projects/render/types.d.ts +6 -5
- package/dist/pubsub/topics/orders/index.js +0 -10
- package/dist/pubsub/topics/orders/types.d.ts +2 -6
- package/dist/pubsub/topics/orders/types.js +0 -2
- package/dist/pubsub/topics/products/product-get-active/types.d.ts +6 -2
- package/package.json +15 -12
- package/dist/actions/can-transition/action.d.ts +0 -2
- package/dist/actions/can-transition/action.js +0 -4
- package/dist/actions/can-transition/mock.d.ts +0 -6
- package/dist/actions/can-transition/mock.js +0 -28
- package/dist/actions/can-transition/types.d.ts +0 -11
- package/dist/actions/get-available-transitions/action.d.ts +0 -2
- package/dist/actions/get-available-transitions/action.js +0 -4
- package/dist/actions/get-available-transitions/mock.d.ts +0 -6
- package/dist/actions/get-available-transitions/mock.js +0 -26
- package/dist/actions/get-available-transitions/types.d.ts +0 -9
- package/dist/actions/trigger-webhook/action.d.ts +0 -6
- package/dist/actions/trigger-webhook/action.js +0 -8
- package/dist/actions/trigger-webhook/mock.d.ts +0 -2
- package/dist/actions/trigger-webhook/mock.js +0 -8
- package/dist/actions/trigger-webhook/types.d.ts +0 -21
- package/dist/actions/trigger-webhook/types.js +0 -2
- package/dist/actions/trigger-zapier-webhook/action.d.ts +0 -6
- package/dist/actions/trigger-zapier-webhook/action.js +0 -8
- package/dist/actions/trigger-zapier-webhook/mock.d.ts +0 -2
- package/dist/actions/trigger-zapier-webhook/mock.js +0 -8
- package/dist/actions/trigger-zapier-webhook/types.d.ts +0 -9
- package/dist/common-types/order-state.d.ts +0 -32
- package/dist/common-types/order-state.js +0 -6
- package/dist/common-types/state-fragment.d.ts +0 -77
- package/dist/common-types/state-fragment.js +0 -10
- package/dist/fragments/index.d.ts +0 -1
- package/dist/fragments/index.js +0 -1
- package/dist/fragments/preorder-no-deposit.d.ts +0 -26
- package/dist/fragments/preorder-no-deposit.js +0 -166
- package/dist/pubsub/topics/orders/state-transition-blocked/types.d.ts +0 -16
- package/dist/pubsub/topics/orders/state-transition-completed/types.d.ts +0 -15
- /package/dist/actions/{can-transition → get-smart-grid-layout}/types.js +0 -0
- /package/dist/actions/{get-available-transitions → integration-payment}/types.js +0 -0
- /package/dist/actions/{trigger-zapier-webhook → open-extension-overlay}/types.js +0 -0
- /package/dist/{pubsub/topics/orders/state-transition-blocked → actions/resolve-extension-overlay}/types.js +0 -0
- /package/dist/{pubsub/topics/orders/state-transition-completed → actions/save-smart-grid-layout}/types.js +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,111 +1,112 @@
|
|
|
1
1
|
export declare const command: {
|
|
2
|
-
readonly exampleFunction: import("
|
|
3
|
-
readonly generateAPIKey: import("
|
|
4
|
-
readonly getProducts: import("
|
|
5
|
-
readonly addCustomSale: import("
|
|
6
|
-
readonly addNonRevenueItem: import("
|
|
7
|
-
readonly getCustomers: import("
|
|
8
|
-
readonly assignCustomer: import("
|
|
9
|
-
readonly addCustomer: import("
|
|
10
|
-
readonly editCustomer: import("
|
|
11
|
-
readonly getCategories: import("
|
|
12
|
-
readonly getOrders: import("
|
|
13
|
-
readonly getRefunds: import("
|
|
14
|
-
readonly addProductDiscount: import("
|
|
15
|
-
readonly addProductToCart: import("
|
|
16
|
-
readonly removeProductFromCart: import("
|
|
17
|
-
readonly updateCartItemQuantity: import("
|
|
18
|
-
readonly addCartDiscount: import("
|
|
19
|
-
readonly getContext: import("
|
|
20
|
-
readonly getFinalContext: import("
|
|
21
|
-
readonly addProductNote: import("
|
|
22
|
-
readonly addProductFee: import("
|
|
23
|
-
readonly setActiveProductFee: import("
|
|
24
|
-
readonly setActiveProductDiscount: import("
|
|
25
|
-
readonly getActiveProduct: import("
|
|
26
|
-
readonly setActiveProduct: import("
|
|
27
|
-
readonly adjustInventory: import("
|
|
28
|
-
readonly addOrderNote: import("
|
|
29
|
-
readonly addCartFee: import("
|
|
30
|
-
readonly getCurrentCart: import("
|
|
31
|
-
readonly clearCart: import("
|
|
32
|
-
readonly parkOrder: import("
|
|
33
|
-
readonly resumeParkedOrder: import("
|
|
34
|
-
readonly deleteParkedOrder: import("
|
|
35
|
-
readonly cashPayment: import("
|
|
36
|
-
readonly tapToPayPayment: import("
|
|
37
|
-
readonly terminalPayment: import("
|
|
38
|
-
readonly vendaraPayment: import("
|
|
39
|
-
readonly extensionPayment: import("
|
|
40
|
-
readonly redeemPayment: import("
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
61
|
-
readonly
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
2
|
+
readonly exampleFunction: import(".").ExampleFunction;
|
|
3
|
+
readonly generateAPIKey: import(".").GenerateAPIKey;
|
|
4
|
+
readonly getProducts: import(".").GetProducts;
|
|
5
|
+
readonly addCustomSale: import(".").AddCustomSale;
|
|
6
|
+
readonly addNonRevenueItem: import(".").AddNonRevenueItem;
|
|
7
|
+
readonly getCustomers: import(".").GetCustomers;
|
|
8
|
+
readonly assignCustomer: import(".").AssignCustomer;
|
|
9
|
+
readonly addCustomer: import(".").AddCustomer;
|
|
10
|
+
readonly editCustomer: import(".").EditCustomer;
|
|
11
|
+
readonly getCategories: import(".").GetCategories;
|
|
12
|
+
readonly getOrders: import(".").GetOrders;
|
|
13
|
+
readonly getRefunds: import(".").GetRefunds;
|
|
14
|
+
readonly addProductDiscount: import(".").AddProductDiscount;
|
|
15
|
+
readonly addProductToCart: import(".").AddProductToCart;
|
|
16
|
+
readonly removeProductFromCart: import(".").RemoveProductFromCart;
|
|
17
|
+
readonly updateCartItemQuantity: import(".").UpdateCartItemQuantity;
|
|
18
|
+
readonly addCartDiscount: import(".").AddCartDiscount;
|
|
19
|
+
readonly getContext: import(".").GetContext;
|
|
20
|
+
readonly getFinalContext: import(".").GetFinalContext;
|
|
21
|
+
readonly addProductNote: import(".").AddProductNote;
|
|
22
|
+
readonly addProductFee: import(".").AddProductFee;
|
|
23
|
+
readonly setActiveProductFee: import(".").SetActiveProductFee;
|
|
24
|
+
readonly setActiveProductDiscount: import(".").SetActiveProductDiscount;
|
|
25
|
+
readonly getActiveProduct: import(".").GetActiveProduct;
|
|
26
|
+
readonly setActiveProduct: import(".").SetActiveProduct;
|
|
27
|
+
readonly adjustInventory: import(".").AdjustInventory;
|
|
28
|
+
readonly addOrderNote: import(".").AddOrderNote;
|
|
29
|
+
readonly addCartFee: import(".").AddCartFee;
|
|
30
|
+
readonly getCurrentCart: import(".").GetCurrentCart;
|
|
31
|
+
readonly clearCart: import(".").ClearCart;
|
|
32
|
+
readonly parkOrder: import(".").ParkOrder;
|
|
33
|
+
readonly resumeParkedOrder: import(".").ResumeParkedOrder;
|
|
34
|
+
readonly deleteParkedOrder: import(".").DeleteParkedOrder;
|
|
35
|
+
readonly cashPayment: import(".").CashPayment;
|
|
36
|
+
readonly tapToPayPayment: import(".").TapToPayPayment;
|
|
37
|
+
readonly terminalPayment: import(".").TerminalPayment;
|
|
38
|
+
readonly vendaraPayment: import(".").VendaraPayment;
|
|
39
|
+
readonly extensionPayment: import(".").ExtensionPayment;
|
|
40
|
+
readonly redeemPayment: import(".").RedeemPayment;
|
|
41
|
+
readonly integrationPayment: import(".").IntegrationPayment;
|
|
42
|
+
readonly addCustomerNote: import(".").AddCustomerNote;
|
|
43
|
+
readonly removeCustomerNote: import(".").RemoveCustomerNote;
|
|
44
|
+
readonly removeCustomerFromCart: import(".").RemoveCustomerFromCart;
|
|
45
|
+
readonly removeCartDiscount: import(".").RemoveCartDiscount;
|
|
46
|
+
readonly goToStationHome: import(".").GoToStationHome;
|
|
47
|
+
readonly openCashDrawer: import(".").OpenCashDrawer;
|
|
48
|
+
readonly showNotification: import(".").ShowNotification;
|
|
49
|
+
readonly showConfirmation: import(".").ShowConfirmation;
|
|
50
|
+
readonly authenticateUser: import(".").AuthenticateUser;
|
|
51
|
+
readonly partialPayment: import(".").PartialPayment;
|
|
52
|
+
readonly switchUser: import(".").SwitchUser;
|
|
53
|
+
readonly print: import(".").Print;
|
|
54
|
+
readonly setActiveOrder: import(".").SetActiveOrder;
|
|
55
|
+
readonly getActiveOrder: import(".").GetActiveOrder;
|
|
56
|
+
readonly getActiveCustomer: import(".").GetActiveCustomer;
|
|
57
|
+
readonly setActiveCustomer: import(".").SetActiveCustomer;
|
|
58
|
+
readonly getActiveOutlet: import(".").GetActiveOutlet;
|
|
59
|
+
readonly setActiveOutlet: import(".").SetActiveOutlet;
|
|
60
|
+
readonly getActiveStation: import(".").GetActiveStation;
|
|
61
|
+
readonly setActiveStation: import(".").SetActiveStation;
|
|
62
|
+
readonly getActiveSession: import(".").GetActiveSession;
|
|
63
|
+
readonly setActiveSession: import(".").SetActiveSession;
|
|
64
|
+
readonly getActiveUser: import(".").GetActiveUser;
|
|
65
|
+
readonly setActiveUser: import(".").SetActiveUser;
|
|
66
|
+
readonly setActiveRefund: import(".").SetActiveRefund;
|
|
67
|
+
readonly removeProductDiscount: import(".").RemoveProductDiscount;
|
|
68
|
+
readonly removeProductFee: import(".").RemoveProductFee;
|
|
69
|
+
readonly removeProductNote: import(".").RemoveProductNote;
|
|
70
|
+
readonly removeCartFee: import(".").RemoveCartFee;
|
|
71
|
+
readonly removeOrderNote: import(".").RemoveOrderNote;
|
|
72
|
+
readonly removeCustomSale: import(".").RemoveCustomSale;
|
|
73
|
+
readonly removeNonRevenueItem: import(".").RemoveNonRevenueItem;
|
|
74
|
+
readonly getSmartGridLayout: import(".").GetSmartGridLayout;
|
|
75
|
+
readonly saveSmartGridLayout: import(".").SaveSmartGridLayout;
|
|
76
|
+
readonly openExtensionOverlay: import(".").OpenExtensionOverlay;
|
|
77
|
+
readonly resolveExtensionOverlay: import(".").ResolveExtensionOverlay;
|
|
78
|
+
readonly initiateRefund: import(".").InitiateRefund;
|
|
79
|
+
readonly setRefundStockAction: import(".").SetRefundStockAction;
|
|
80
|
+
readonly selectAllRefundItems: import(".").SelectAllRefundItems;
|
|
81
|
+
readonly resetRefundDetails: import(".").ResetRefundDetails;
|
|
82
|
+
readonly calculateRefundTotal: import(".").CalculateRefundTotal;
|
|
83
|
+
readonly getRemainingRefundableQuantities: import(".").GetRemainingRefundableQuantities;
|
|
84
|
+
readonly processPartialRefund: import(".").ProcessPartialRefund;
|
|
85
|
+
readonly addProduct: import(".").AddProduct;
|
|
86
|
+
readonly editProduct: import(".").EditProduct;
|
|
87
|
+
readonly editProductVariants: import(".").EditProductVariants;
|
|
88
|
+
readonly deleteProduct: import(".").DeleteProduct;
|
|
89
|
+
readonly getOutlets: import(".").GetOutlets;
|
|
90
|
+
readonly getStations: import(".").GetStations;
|
|
91
|
+
readonly getCustomTables: import(".").GetCustomTables;
|
|
92
|
+
readonly getCustomTableFields: import(".").GetCustomTableFields;
|
|
93
|
+
readonly getCustomTableData: import(".").GetCustomTableData;
|
|
94
|
+
readonly upsertCustomTableData: import(".").UpsertCustomTableData;
|
|
95
|
+
readonly deleteCustomTableData: import(".").DeleteCustomTableData;
|
|
96
|
+
readonly getCustomExtensions: import(".").GetCustomExtensions;
|
|
97
|
+
readonly getCurrentCompanyCustomExtensions: import(".").GetCurrentCompanyCustomExtensions;
|
|
98
|
+
readonly getCustomExtensionCustomTables: import(".").GetCustomExtensionCustomTables;
|
|
99
|
+
readonly getUsers: import(".").GetUsers;
|
|
100
|
+
readonly getRoles: import(".").GetRoles;
|
|
101
|
+
readonly getSecretsKeys: import(".").GetSecretsKeys;
|
|
102
|
+
readonly getSecretVal: import(".").GetSecretVal;
|
|
103
|
+
readonly setSecretVal: import(".").SetSecretVal;
|
|
104
|
+
readonly navigateTo: import(".").NavigateTo;
|
|
105
|
+
readonly refreshResource: import(".").RefreshResource;
|
|
106
|
+
readonly getMedia: import(".").GetMedia;
|
|
107
|
+
readonly uploadMedia: import(".").UploadMedia;
|
|
108
|
+
readonly getTaxTables: import(".").GetTaxTables;
|
|
109
|
+
readonly getBranding: import(".").GetBranding;
|
|
109
110
|
};
|
|
110
111
|
export type { ExampleFunction, ExampleFunctionParams, ExampleFunctionResponse } from "./actions/example-function/types";
|
|
111
112
|
export type { GenerateAPIKey, GenerateAPIKeyParams, GenerateAPIKeyResponse } from "./actions/generate-api-key/types";
|
|
@@ -159,6 +160,7 @@ export type { TerminalPayment, TerminalPaymentParams, TerminalPaymentResponse }
|
|
|
159
160
|
export type { VendaraPayment, VendaraPaymentParams, VendaraPaymentResponse } from "./actions/vendara-payment/types";
|
|
160
161
|
export type { ExtensionPayment, ExtensionPaymentParams, ExtensionPaymentResponse } from "./actions/extension-payment/types";
|
|
161
162
|
export type { RedeemPayment, RedeemPaymentParams, RedeemPaymentResponse } from "./actions/redeem-payment/types";
|
|
163
|
+
export type { IntegrationPayment, IntegrationPaymentParams, IntegrationPaymentResponse } from "./actions/integration-payment/types";
|
|
162
164
|
export { EXTENSION_REFUND_REQUEST_ACTION } from "./actions/extension-refund/constants";
|
|
163
165
|
export { installExtensionRefundListener } from "./actions/extension-refund/extension-refund-listener";
|
|
164
166
|
export type { ExtensionRefundParams, ExtensionRefundResponse } from "./actions/extension-refund/types";
|
|
@@ -200,8 +202,11 @@ export type { RemoveCartFee, RemoveCartFeeParams, RemoveCartFeeResponse } from "
|
|
|
200
202
|
export type { RemoveOrderNote, RemoveOrderNoteResponse } from "./actions/remove-order-note/types";
|
|
201
203
|
export type { RemoveCustomSale, RemoveCustomSaleParams, RemoveCustomSaleResponse } from "./actions/remove-custom-sale/types";
|
|
202
204
|
export type { RemoveNonRevenueItem, RemoveNonRevenueItemParams, RemoveNonRevenueItemResponse } from "./actions/remove-non-revenue-item/types";
|
|
203
|
-
export type {
|
|
204
|
-
export type {
|
|
205
|
+
export type { GetSmartGridLayout, GetSmartGridLayoutParams, GetSmartGridLayoutResponse } from "./actions/get-smart-grid-layout/types";
|
|
206
|
+
export type { SaveSmartGridLayout, SaveSmartGridLayoutParams, SaveSmartGridLayoutResponse } from "./actions/save-smart-grid-layout/types";
|
|
207
|
+
export type { OpenExtensionOverlay, OpenExtensionOverlayParams, OpenExtensionOverlayResponse } from "./actions/open-extension-overlay/types";
|
|
208
|
+
export type { ResolveExtensionOverlay, ResolveExtensionOverlayParams, ResolveExtensionOverlayResponse } from "./actions/resolve-extension-overlay/types";
|
|
209
|
+
export type { InterceptorPoint, InterceptorReturn, InterceptorFunction, InterceptorHostCommands, InterceptorRegisterOptions, InterceptorOverlayContext } from "./interceptors/types";
|
|
205
210
|
export * from "./CommonTypes";
|
|
206
211
|
export { setMockDatabase, setMockActiveProduct } from "./demo/database";
|
|
207
212
|
export type { MockDatabaseConfig } from "./demo/database";
|
|
@@ -233,7 +238,7 @@ export { transactionsTopic } from "./pubsub/topics/transactions";
|
|
|
233
238
|
export { categoriesTopic } from "./pubsub/topics/categories";
|
|
234
239
|
export { attributesTopic } from "./pubsub/topics/attributes";
|
|
235
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";
|
|
236
|
-
export type { OrderCreatedPayload, OrderUpdatedPayload, OrderActiveSetPayload, OrderActiveGetPayload, OrderCreatedEvent, OrderUpdatedEvent, OrderActiveSetEvent, OrderActiveGetEvent,
|
|
241
|
+
export type { OrderCreatedPayload, OrderUpdatedPayload, OrderActiveSetPayload, OrderActiveGetPayload, OrderCreatedEvent, OrderUpdatedEvent, OrderActiveSetEvent, OrderActiveGetEvent, OrdersEventType, OrdersEventPayload } from "./pubsub/topics/orders/types";
|
|
237
242
|
export type { RefundCreatedPayload, RefundUpdatedPayload, RefundActiveSetPayload, RefundActiveGetPayload, RefundCreatedEvent, RefundUpdatedEvent, RefundActiveSetEvent, RefundActiveGetEvent, RefundsEventType, RefundsEventPayload } from "./pubsub/topics/refunds/types";
|
|
238
243
|
export type { ProductCreatedPayload, ProductUpdatedPayload, ProductSetActivePayload, ProductGetActivePayload, ProductCreatedEvent, ProductUpdatedEvent, ProductSetActiveEvent, ProductGetActiveEvent, ProductsEventType, ProductsEventPayload } from "./pubsub/topics/products/types";
|
|
239
244
|
export type { OutletActiveSetPayload, OutletActiveGetPayload, OutletActiveSetEvent, OutletActiveGetEvent, OutletEventType, OutletEventPayload } from "./pubsub/topics/outlet/types";
|
|
@@ -263,8 +268,3 @@ export type { GetSecretVal, GetSecretValParams, GetSecretValResponse } from "./a
|
|
|
263
268
|
export type { SetSecretVal, SetSecretValParams, SetSecretValResponse } from "./actions/set-secret-val/types";
|
|
264
269
|
export type { GetUsers, GetUsersParams, GetUsersResponse } from "./actions/get-users/types";
|
|
265
270
|
export type { GetRoles, GetRolesParams, GetRolesResponse } from "./actions/get-roles/types";
|
|
266
|
-
export type { CFBlockedBy, CFStatePair, CFTransitionResult, CFFailedCondition, CFConditionStatus, CFAvailableTransition } from "./common-types/order-state";
|
|
267
|
-
export type { CFConditionOperator, CFCondition, CFConditionGroup, CFTransitionConditionSet, CFPaymentTransitionPath, CFFulfillmentTransitionPath, CFCrossAxisRule, CFDisplayStateRule, CFStateConfigFragment } from "./common-types/state-fragment";
|
|
268
|
-
export type { CanTransition, CanTransitionParams, CanTransitionResponse } from "./actions/can-transition/types";
|
|
269
|
-
export type { GetAvailableTransitions, GetAvailableTransitionsParams, GetAvailableTransitionsResponse } from "./actions/get-available-transitions/types";
|
|
270
|
-
export { preorderNoDepositFragment } from "./fragments";
|
package/dist/index.js
CHANGED
|
@@ -38,6 +38,7 @@ import { terminalPayment } from "./actions/terminal-payment/action";
|
|
|
38
38
|
import { vendaraPayment } from "./actions/vendara-payment/action";
|
|
39
39
|
import { extensionPayment } from "./actions/extension-payment/action";
|
|
40
40
|
import { redeemPayment } from "./actions/redeem-payment/action";
|
|
41
|
+
import { integrationPayment } from "./actions/integration-payment/action";
|
|
41
42
|
// Customer Actions
|
|
42
43
|
import { addCustomerNote } from "./actions/add-customer-note/action";
|
|
43
44
|
import { removeCustomerNote } from "./actions/remove-customer-note/action";
|
|
@@ -73,9 +74,12 @@ import { removeCartFee } from "./actions/remove-cart-fee/action";
|
|
|
73
74
|
import { removeOrderNote } from "./actions/remove-order-note/action";
|
|
74
75
|
import { removeCustomSale } from "./actions/remove-custom-sale/action";
|
|
75
76
|
import { removeNonRevenueItem } from "./actions/remove-non-revenue-item/action";
|
|
76
|
-
//
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
77
|
+
// SmartGrid Actions
|
|
78
|
+
import { getSmartGridLayout } from "./actions/get-smart-grid-layout/action";
|
|
79
|
+
import { saveSmartGridLayout } from "./actions/save-smart-grid-layout/action";
|
|
80
|
+
// Extension Overlay / Interceptor Actions
|
|
81
|
+
import { openExtensionOverlay } from "./actions/open-extension-overlay/action";
|
|
82
|
+
import { resolveExtensionOverlay } from "./actions/resolve-extension-overlay/action";
|
|
79
83
|
// Refund Actions
|
|
80
84
|
import { getRefunds } from "./actions/get-refunds/action";
|
|
81
85
|
import { initiateRefund } from "./actions/initiate-refund/action";
|
|
@@ -102,9 +106,6 @@ import { getSecretsKeys } from "./actions/get-secrets-keys/action";
|
|
|
102
106
|
import { getSecretVal } from "./actions/get-secret-val/action";
|
|
103
107
|
import { setSecretVal } from "./actions/set-secret-val/action";
|
|
104
108
|
import { generateAPIKey } from "./actions/generate-api-key/action";
|
|
105
|
-
// State Machine Query Actions
|
|
106
|
-
import { canTransition } from "./actions/can-transition/action";
|
|
107
|
-
import { getAvailableTransitions } from "./actions/get-available-transitions/action";
|
|
108
109
|
// Product CRUD Actions
|
|
109
110
|
import { addProduct } from "./actions/add-product/action";
|
|
110
111
|
import { editProduct } from "./actions/edit-product/action";
|
|
@@ -163,6 +164,7 @@ export const command = {
|
|
|
163
164
|
vendaraPayment,
|
|
164
165
|
extensionPayment,
|
|
165
166
|
redeemPayment,
|
|
167
|
+
integrationPayment,
|
|
166
168
|
// Customer Actions
|
|
167
169
|
addCustomerNote,
|
|
168
170
|
removeCustomerNote,
|
|
@@ -198,9 +200,12 @@ export const command = {
|
|
|
198
200
|
removeOrderNote,
|
|
199
201
|
removeCustomSale,
|
|
200
202
|
removeNonRevenueItem,
|
|
201
|
-
//
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
// SmartGrid Actions
|
|
204
|
+
getSmartGridLayout,
|
|
205
|
+
saveSmartGridLayout,
|
|
206
|
+
// Extension Overlay / Interceptor Actions
|
|
207
|
+
openExtensionOverlay,
|
|
208
|
+
resolveExtensionOverlay,
|
|
204
209
|
// Refund Actions
|
|
205
210
|
initiateRefund,
|
|
206
211
|
setRefundStockAction,
|
|
@@ -240,10 +245,7 @@ export const command = {
|
|
|
240
245
|
getMedia,
|
|
241
246
|
uploadMedia,
|
|
242
247
|
getTaxTables,
|
|
243
|
-
getBranding
|
|
244
|
-
// State Machine Queries
|
|
245
|
-
canTransition,
|
|
246
|
-
getAvailableTransitions
|
|
248
|
+
getBranding
|
|
247
249
|
};
|
|
248
250
|
export { EXTENSION_REFUND_REQUEST_ACTION } from "./actions/extension-refund/constants";
|
|
249
251
|
export { installExtensionRefundListener } from "./actions/extension-refund/extension-refund-listener";
|
|
@@ -282,5 +284,3 @@ export { categoriesTopic } from "./pubsub/topics/categories";
|
|
|
282
284
|
export { attributesTopic } from "./pubsub/topics/attributes";
|
|
283
285
|
// Export Custom Tables Types
|
|
284
286
|
export { AttributeType } from "./common-types/attribute-type";
|
|
285
|
-
// State Machine Fragments
|
|
286
|
-
export { preorderNoDepositFragment } from "./fragments";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interceptors let an installed extension gate a host flow at a named point.
|
|
3
|
+
* Registration mirrors hooks: the callback is serialized and reconstructed on the host,
|
|
4
|
+
* so it must be self-contained (use only its payload arg and the injected host commands).
|
|
5
|
+
*/
|
|
6
|
+
export type InterceptorPoint = "refund_start";
|
|
7
|
+
/** false = stop the flow; true = continue, no data; object = continue and merge into the flow payload. */
|
|
8
|
+
export type InterceptorReturn<T extends Record<string, unknown> = Record<string, unknown>> = boolean | T;
|
|
9
|
+
/** Params accepted by the host-injected `openExtensionOverlay` command. */
|
|
10
|
+
export interface OpenExtensionOverlayCommandParams {
|
|
11
|
+
point: InterceptorPoint;
|
|
12
|
+
payload?: unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Host commands injected into an interceptor callback. `openExtensionOverlay` is the one
|
|
16
|
+
* always-present command; additional host commands are dispatched through the same shape.
|
|
17
|
+
* Heterogeneous command payloads are sent via the separate `callCommand` arg of
|
|
18
|
+
* `InterceptorFunction`, so the indexed entries here share the overlay command's param type.
|
|
19
|
+
*/
|
|
20
|
+
export interface InterceptorHostCommands {
|
|
21
|
+
openExtensionOverlay: (params: OpenExtensionOverlayCommandParams) => Promise<InterceptorReturn>;
|
|
22
|
+
[command: string]: (params: OpenExtensionOverlayCommandParams) => Promise<InterceptorReturn>;
|
|
23
|
+
}
|
|
24
|
+
export type InterceptorFunction = (payload: unknown, cmds: InterceptorHostCommands, callCommand: (action: string, params?: unknown) => Promise<unknown>) => InterceptorReturn | Promise<InterceptorReturn>;
|
|
25
|
+
export interface InterceptorRegisterOptions {
|
|
26
|
+
/** Stable id; re-registering with the same id replaces the previous one. */
|
|
27
|
+
interceptorId: string;
|
|
28
|
+
/** Per-interceptor timeout override (ms). */
|
|
29
|
+
timeoutMs?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface InterceptorOverlayContext {
|
|
32
|
+
point: InterceptorPoint;
|
|
33
|
+
payload: unknown;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -51,11 +51,14 @@ import { mockShowNotification } from "../../actions/show-notification/mock";
|
|
|
51
51
|
import { mockSwitchUser } from "../../actions/switch-user/mock";
|
|
52
52
|
import { mockTapToPayPayment } from "../../actions/tap-to-pay-payment/mock";
|
|
53
53
|
import { mockTerminalPayment } from "../../actions/terminal-payment/mock";
|
|
54
|
-
import { mockTriggerWebhook } from "../../actions/trigger-webhook/mock";
|
|
55
|
-
import { mockTriggerZapierWebhook } from "../../actions/trigger-zapier-webhook/mock";
|
|
56
54
|
import { mockVendaraPayment } from "../../actions/vendara-payment/mock";
|
|
57
55
|
import { mockExtensionPayment } from "../../actions/extension-payment/mock";
|
|
58
56
|
import { mockRedeemPayment } from "../../actions/redeem-payment/mock";
|
|
57
|
+
import { mockIntegrationPayment } from "../../actions/integration-payment/mock";
|
|
58
|
+
import { mockGetSmartGridLayout } from "../../actions/get-smart-grid-layout/mock";
|
|
59
|
+
import { mockSaveSmartGridLayout } from "../../actions/save-smart-grid-layout/mock";
|
|
60
|
+
import { mockOpenExtensionOverlay } from "../../actions/open-extension-overlay/mock";
|
|
61
|
+
import { mockResolveExtensionOverlay } from "../../actions/resolve-extension-overlay/mock";
|
|
59
62
|
import { mockAddNonRevenueItem } from "../../actions/add-non-revenue-item/mock";
|
|
60
63
|
import { mockGetFinalContext } from "../../actions/get-final-context/mock";
|
|
61
64
|
import { mockPrint } from "../../actions/print/mock";
|
|
@@ -85,8 +88,6 @@ import { mockSetActiveSession } from "../../actions/set-active-session/mock";
|
|
|
85
88
|
import { mockGetActiveUser } from "../../actions/get-active-user/mock";
|
|
86
89
|
import { mockSetActiveUser } from "../../actions/set-active-user/mock";
|
|
87
90
|
import { mockSetActiveRefund } from "../../actions/set-active-refund/mock";
|
|
88
|
-
import { canTransitionMock } from "../../actions/can-transition/mock";
|
|
89
|
-
import { getAvailableTransitionsMock } from "../../actions/get-available-transitions/mock";
|
|
90
91
|
export const RENDER_MOCKS = {
|
|
91
92
|
addCartDiscount: mockAddCartDiscount,
|
|
92
93
|
addCartFee: mockAddCartFee,
|
|
@@ -140,11 +141,10 @@ export const RENDER_MOCKS = {
|
|
|
140
141
|
switchUser: mockSwitchUser,
|
|
141
142
|
tapToPayPayment: mockTapToPayPayment,
|
|
142
143
|
terminalPayment: mockTerminalPayment,
|
|
143
|
-
triggerWebhook: mockTriggerWebhook,
|
|
144
|
-
triggerZapierWebhook: mockTriggerZapierWebhook,
|
|
145
144
|
vendaraPayment: mockVendaraPayment,
|
|
146
145
|
extensionPayment: mockExtensionPayment,
|
|
147
146
|
redeemPayment: mockRedeemPayment,
|
|
147
|
+
integrationPayment: mockIntegrationPayment,
|
|
148
148
|
addNonRevenueItem: mockAddNonRevenueItem,
|
|
149
149
|
getFinalContext: mockGetFinalContext,
|
|
150
150
|
print: mockPrint,
|
|
@@ -181,6 +181,8 @@ export const RENDER_MOCKS = {
|
|
|
181
181
|
removeOrderNote: () => Promise.resolve({ success: true, timestamp: new Date().toISOString() }),
|
|
182
182
|
removeCustomSale: params => Promise.resolve({ success: true, id: params.id, timestamp: new Date().toISOString() }),
|
|
183
183
|
removeNonRevenueItem: params => Promise.resolve({ success: true, externalId: params.externalId, timestamp: new Date().toISOString() }),
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
getSmartGridLayout: mockGetSmartGridLayout,
|
|
185
|
+
saveSmartGridLayout: mockSaveSmartGridLayout,
|
|
186
|
+
openExtensionOverlay: mockOpenExtensionOverlay,
|
|
187
|
+
resolveExtensionOverlay: mockResolveExtensionOverlay
|
|
186
188
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExampleFunction, GetProducts, AddCustomSale, GetCustomers, AssignCustomer, AddCustomer, EditCustomer, GetCategories, GetOrders, GetRefunds, GetTaxTables, AddProductDiscount, AddProductToCart, RemoveProductFromCart, UpdateCartItemQuantity, AddCartDiscount, GetContext, GetFinalContext, AddProductNote, AddProductFee, SetActiveProductFee, SetActiveProductDiscount, GetActiveProduct, SetActiveProduct, AdjustInventory, AddOrderNote, AddCartFee, ClearCart, ParkOrder, ResumeParkedOrder, DeleteParkedOrder, InitiateRefund, CashPayment, TapToPayPayment, TerminalPayment, VendaraPayment, ExtensionPayment, RedeemPayment, AddNonRevenueItem, AddCustomerNote, RemoveCustomerNote, RemoveCustomerFromCart, GoToStationHome, OpenCashDrawer, ShowNotification, ShowConfirmation, AuthenticateUser, PartialPayment, SwitchUser,
|
|
1
|
+
import type { ExampleFunction, GetProducts, AddCustomSale, GetCustomers, AssignCustomer, AddCustomer, EditCustomer, GetCategories, GetOrders, GetRefunds, GetTaxTables, AddProductDiscount, AddProductToCart, RemoveProductFromCart, UpdateCartItemQuantity, AddCartDiscount, GetContext, GetFinalContext, AddProductNote, AddProductFee, SetActiveProductFee, SetActiveProductDiscount, GetActiveProduct, SetActiveProduct, AdjustInventory, AddOrderNote, AddCartFee, ClearCart, ParkOrder, ResumeParkedOrder, DeleteParkedOrder, InitiateRefund, CashPayment, TapToPayPayment, TerminalPayment, VendaraPayment, ExtensionPayment, RedeemPayment, AddNonRevenueItem, AddCustomerNote, RemoveCustomerNote, RemoveCustomerFromCart, GoToStationHome, OpenCashDrawer, ShowNotification, ShowConfirmation, AuthenticateUser, PartialPayment, SwitchUser, SetRefundStockAction, SelectAllRefundItems, ResetRefundDetails, CalculateRefundTotal, GetRemainingRefundableQuantities, ProcessPartialRefund, GetCurrentCart, Print, SetActiveOrder, GetCustomTables, GetCustomTableData, UpsertCustomTableData, DeleteCustomTableData, GetCustomExtensions, GetCurrentCompanyCustomExtensions, GetCustomExtensionCustomTables, GetCustomTableFields, GetSecretsKeys, GetSecretVal, SetSecretVal, GetUsers, GetRoles, RemoveCartDiscount, GetActiveOrder, GetActiveCustomer, SetActiveCustomer, GetActiveOutlet, SetActiveOutlet, GetActiveStation, SetActiveStation, GetActiveSession, SetActiveSession, GetActiveUser, SetActiveUser, SetActiveRefund, RemoveProductDiscount, RemoveProductFee, RemoveProductNote, RemoveCartFee, RemoveOrderNote, RemoveCustomSale, RemoveNonRevenueItem, IntegrationPayment, GetSmartGridLayout, SaveSmartGridLayout, OpenExtensionOverlay, ResolveExtensionOverlay } from "../../index";
|
|
2
2
|
export interface RenderProviderActions {
|
|
3
3
|
exampleFunction: ExampleFunction;
|
|
4
4
|
getProducts: GetProducts;
|
|
@@ -38,6 +38,7 @@ export interface RenderProviderActions {
|
|
|
38
38
|
vendaraPayment: VendaraPayment;
|
|
39
39
|
extensionPayment: ExtensionPayment;
|
|
40
40
|
redeemPayment: RedeemPayment;
|
|
41
|
+
integrationPayment: IntegrationPayment;
|
|
41
42
|
addNonRevenueItem: AddNonRevenueItem;
|
|
42
43
|
addCustomerNote: AddCustomerNote;
|
|
43
44
|
removeCustomerNote: RemoveCustomerNote;
|
|
@@ -50,8 +51,6 @@ export interface RenderProviderActions {
|
|
|
50
51
|
authenticateUser: AuthenticateUser;
|
|
51
52
|
partialPayment: PartialPayment;
|
|
52
53
|
switchUser: SwitchUser;
|
|
53
|
-
triggerWebhook: TriggerWebhook;
|
|
54
|
-
triggerZapierWebhook: TriggerZapierWebhook;
|
|
55
54
|
setRefundStockAction: SetRefundStockAction;
|
|
56
55
|
selectAllRefundItems: SelectAllRefundItems;
|
|
57
56
|
resetRefundDetails: ResetRefundDetails;
|
|
@@ -93,6 +92,8 @@ export interface RenderProviderActions {
|
|
|
93
92
|
removeOrderNote: RemoveOrderNote;
|
|
94
93
|
removeCustomSale: RemoveCustomSale;
|
|
95
94
|
removeNonRevenueItem: RemoveNonRevenueItem;
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
getSmartGridLayout: GetSmartGridLayout;
|
|
96
|
+
saveSmartGridLayout: SaveSmartGridLayout;
|
|
97
|
+
openExtensionOverlay: OpenExtensionOverlay;
|
|
98
|
+
resolveExtensionOverlay: ResolveExtensionOverlay;
|
|
98
99
|
}
|
|
@@ -26,16 +26,6 @@ export const ordersTopic = {
|
|
|
26
26
|
id: "get-active-order",
|
|
27
27
|
name: "Get Active Order",
|
|
28
28
|
description: "Published when the active order is retrieved for listeners"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
id: "state-transition-completed",
|
|
32
|
-
name: "State Transition Completed",
|
|
33
|
-
description: "Published when an order state transition completes successfully"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
id: "state-transition-blocked",
|
|
37
|
-
name: "State Transition Blocked",
|
|
38
|
-
description: "Published when an order state transition is blocked by the state machine"
|
|
39
29
|
}
|
|
40
30
|
]
|
|
41
31
|
};
|
|
@@ -6,13 +6,9 @@ export * from "./order-created/types";
|
|
|
6
6
|
export * from "./order-updated/types";
|
|
7
7
|
export * from "./set-active-order/types";
|
|
8
8
|
export * from "./get-active-order/types";
|
|
9
|
-
export * from "./state-transition-completed/types";
|
|
10
|
-
export * from "./state-transition-blocked/types";
|
|
11
9
|
import type { OrderCreatedPayload } from "./order-created/types";
|
|
12
10
|
import type { OrderUpdatedPayload } from "./order-updated/types";
|
|
13
11
|
import type { OrderActiveSetPayload } from "./set-active-order/types";
|
|
14
12
|
import type { OrderActiveGetPayload } from "./get-active-order/types";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export type OrdersEventPayload = OrderCreatedPayload | OrderUpdatedPayload | OrderActiveSetPayload | OrderActiveGetPayload | OrderStateTransitionCompletedPayload | OrderStateTransitionBlockedPayload;
|
|
18
|
-
export type OrdersEventType = "order-created" | "order-updated" | "set-active-order" | "get-active-order" | "state-transition-completed" | "state-transition-blocked";
|
|
13
|
+
export type OrdersEventPayload = OrderCreatedPayload | OrderUpdatedPayload | OrderActiveSetPayload | OrderActiveGetPayload;
|
|
14
|
+
export type OrdersEventType = "order-created" | "order-updated" | "set-active-order" | "get-active-order";
|
|
@@ -7,5 +7,3 @@ export * from "./order-created/types";
|
|
|
7
7
|
export * from "./order-updated/types";
|
|
8
8
|
export * from "./set-active-order/types";
|
|
9
9
|
export * from "./get-active-order/types";
|
|
10
|
-
export * from "./state-transition-completed/types";
|
|
11
|
-
export * from "./state-transition-blocked/types";
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { CFActiveProduct } from "../../../../CommonTypes";
|
|
2
2
|
import type { TopicEvent } from "../../../types";
|
|
3
3
|
/**
|
|
4
|
-
* Payload for product-get-active event
|
|
4
|
+
* Payload for product-get-active event.
|
|
5
|
+
*
|
|
6
|
+
* `product` is nullable: the host publishes this event unconditionally, including
|
|
7
|
+
* with `null` when there is no active selection (e.g. after the active product is
|
|
8
|
+
* cleared). Subscribers must handle the null case. [FI-6491]
|
|
5
9
|
*/
|
|
6
10
|
export interface ProductGetActivePayload {
|
|
7
|
-
product: CFActiveProduct;
|
|
11
|
+
product: CFActiveProduct | null;
|
|
8
12
|
}
|
|
9
13
|
/**
|
|
10
14
|
* Typed event for product-get-active
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@final-commerce/command-frame",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-beta.3",
|
|
4
4
|
"description": "Commands Frame library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"package.json"
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
|
+
"preinstall": "node -e \"if(process.cwd()===process.env.INIT_CWD&&!process.env.NPM_REGISTRY_TOKEN){try{require('child_process').execSync('npx google-artifactregistry-auth',{stdio:'inherit'})}catch(e){}}\"",
|
|
14
15
|
"build": "tsc",
|
|
15
16
|
"build:clean": "rm -rf dist && npm run build",
|
|
16
17
|
"dev": "tsc --watch",
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"test:run": "vitest run",
|
|
19
20
|
"prepublishOnly": "npm run build",
|
|
20
21
|
"prepare": "husky && npm run build",
|
|
21
|
-
"lint": "eslint .
|
|
22
|
+
"lint": "eslint .",
|
|
22
23
|
"format": "prettier --write .",
|
|
23
24
|
"format:check": "prettier --check .",
|
|
24
25
|
"publish:npm": "npm publish --registry=https://registry.npmjs.org",
|
|
@@ -35,8 +36,7 @@
|
|
|
35
36
|
"author": "Final Commerce",
|
|
36
37
|
"license": "MIT",
|
|
37
38
|
"publishConfig": {
|
|
38
|
-
"access": "public"
|
|
39
|
-
"registry": "https://registry.npmjs.org/"
|
|
39
|
+
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
@@ -56,18 +56,21 @@
|
|
|
56
56
|
"ignoredBranchesPattern": "^(main|master|develop|release-staging.*|pre-prod)$",
|
|
57
57
|
"ignoreBranchesMissingTickets": true
|
|
58
58
|
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@final-commerce/common": "^2.0.2"
|
|
61
|
+
},
|
|
59
62
|
"devDependencies": {
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"eslint": "^
|
|
63
|
-
"eslint
|
|
64
|
-
"eslint-plugin-react-hooks": "^7.1.1",
|
|
65
|
-
"eslint-plugin-react-refresh": "^0.4.26",
|
|
63
|
+
"@commitlint/cli": "^19.0.0",
|
|
64
|
+
"@commitlint/config-conventional": "^19.0.0",
|
|
65
|
+
"@eslint/js": "^9.0.0",
|
|
66
|
+
"eslint": "^9.0.0",
|
|
66
67
|
"husky": "^9.1.7",
|
|
67
68
|
"jira-prepare-commit-msg": "^1.7.2",
|
|
68
69
|
"lint-staged": "^16.2.7",
|
|
69
70
|
"prettier": "^3.7.1",
|
|
70
71
|
"typescript": "^5.0.0",
|
|
71
|
-
"
|
|
72
|
-
|
|
72
|
+
"typescript-eslint": "^8.0.0",
|
|
73
|
+
"vitest": "^4.0.0"
|
|
74
|
+
},
|
|
75
|
+
"prettier": "@final-commerce/common/prettier"
|
|
73
76
|
}
|