@final-commerce/command-frame 0.1.40 → 0.1.41
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/dist/CommonTypes.d.ts
CHANGED
|
@@ -475,6 +475,7 @@ export interface CFContextRender {
|
|
|
475
475
|
buildVersion: string | null;
|
|
476
476
|
buildSourceId: string | null;
|
|
477
477
|
buildIsPremium: boolean;
|
|
478
|
+
isOffline: boolean;
|
|
478
479
|
user: Record<string, any> | null;
|
|
479
480
|
company: Omit<Record<string, any>, 'settings'> | null;
|
|
480
481
|
station: Record<string, any> | null;
|
|
@@ -59,6 +59,8 @@ import { mockGetCustomExtensionCustomTables } from "../../actions/get-custom-ext
|
|
|
59
59
|
import { mockGetSecretsKeys } from "../../actions/get-secrets-keys/mock";
|
|
60
60
|
import { mockGetSecretVal } from "../../actions/get-secret-val/mock";
|
|
61
61
|
import { mockSetSecretVal } from "../../actions/set-secret-val/mock";
|
|
62
|
+
import { mockGetUsers } from "../../actions/get-users/mock";
|
|
63
|
+
import { mockGetRoles } from "../../actions/get-roles/mock";
|
|
62
64
|
export const RENDER_MOCKS = {
|
|
63
65
|
addCartDiscount: mockAddCartDiscount,
|
|
64
66
|
addCartFee: mockAddCartFee,
|
|
@@ -121,4 +123,6 @@ export const RENDER_MOCKS = {
|
|
|
121
123
|
getSecretsKeys: mockGetSecretsKeys,
|
|
122
124
|
getSecretVal: mockGetSecretVal,
|
|
123
125
|
setSecretVal: mockSetSecretVal,
|
|
126
|
+
getUsers: mockGetUsers,
|
|
127
|
+
getRoles: mockGetRoles,
|
|
124
128
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExampleFunction, GetProducts, AddCustomSale, GetCustomers, AssignCustomer, AddCustomer, GetCategories, GetOrders, GetRefunds, AddProductDiscount, AddProductToCart, RemoveProductFromCart, UpdateCartItemQuantity, AddCartDiscount, GetContext, GetFinalContext, AddProductNote, AddProductFee, AdjustInventory, AddOrderNote, AddCartFee, ClearCart, ParkOrder, ResumeParkedOrder, DeleteParkedOrder, InitiateRefund, CashPayment, TapToPayPayment, TerminalPayment, VendaraPayment, AddCustomerNote, RemoveCustomerFromCart, GoToStationHome, OpenCashDrawer, ShowNotification, ShowConfirmation, AuthenticateUser, PartialPayment, SwitchUser, TriggerWebhook, TriggerZapierWebhook, SetRefundStockAction, SelectAllRefundItems, ResetRefundDetails, CalculateRefundTotal, GetRemainingRefundableQuantities, ProcessPartialRefund, GetCurrentCart, Print, SetActiveOrder, GetCustomTables, GetCustomTableData, UpsertCustomTableData, DeleteCustomTableData, GetCustomExtensions, GetCurrentCompanyCustomExtensions, GetCustomExtensionCustomTables, GetCustomTableFields, GetSecretsKeys, GetSecretVal, SetSecretVal } from "../../index";
|
|
1
|
+
import type { ExampleFunction, GetProducts, AddCustomSale, GetCustomers, AssignCustomer, AddCustomer, GetCategories, GetOrders, GetRefunds, AddProductDiscount, AddProductToCart, RemoveProductFromCart, UpdateCartItemQuantity, AddCartDiscount, GetContext, GetFinalContext, AddProductNote, AddProductFee, AdjustInventory, AddOrderNote, AddCartFee, ClearCart, ParkOrder, ResumeParkedOrder, DeleteParkedOrder, InitiateRefund, CashPayment, TapToPayPayment, TerminalPayment, VendaraPayment, AddCustomerNote, RemoveCustomerFromCart, GoToStationHome, OpenCashDrawer, ShowNotification, ShowConfirmation, AuthenticateUser, PartialPayment, SwitchUser, TriggerWebhook, TriggerZapierWebhook, SetRefundStockAction, SelectAllRefundItems, ResetRefundDetails, CalculateRefundTotal, GetRemainingRefundableQuantities, ProcessPartialRefund, GetCurrentCart, Print, SetActiveOrder, GetCustomTables, GetCustomTableData, UpsertCustomTableData, DeleteCustomTableData, GetCustomExtensions, GetCurrentCompanyCustomExtensions, GetCustomExtensionCustomTables, GetCustomTableFields, GetSecretsKeys, GetSecretVal, SetSecretVal, GetUsers, GetRoles } from "../../index";
|
|
2
2
|
export interface RenderProviderActions {
|
|
3
3
|
exampleFunction: ExampleFunction;
|
|
4
4
|
getProducts: GetProducts;
|
|
@@ -61,4 +61,6 @@ export interface RenderProviderActions {
|
|
|
61
61
|
getSecretsKeys: GetSecretsKeys;
|
|
62
62
|
getSecretVal: GetSecretVal;
|
|
63
63
|
setSecretVal: SetSecretVal;
|
|
64
|
+
getUsers: GetUsers;
|
|
65
|
+
getRoles: GetRoles;
|
|
64
66
|
}
|