@use-stall/types 0.3.3 → 0.3.4

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/extensions.d.ts +15 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-stall/types",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Type declarations for Stall SDKs",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
@@ -47,16 +47,15 @@ interface ExtensionActionFunctionProps {
47
47
  action: ExtensionLookupAction;
48
48
  }
49
49
 
50
- enum ListDataSourceOptions {
51
- PRODUCTS = "products",
52
- CUSTOMERS = "customers",
53
- ORDERS = "orders",
54
- PARKED_ORDERS = "parked_orders",
55
- COLLECTIONS = "collections",
56
- CATEGORIES = "categories",
57
- REGISTERS = "register_sessions",
58
- TRANSACTIONS = "session_transactions",
59
- }
50
+ type ListDataSourceOptions =
51
+ | "products"
52
+ | "customers"
53
+ | "orders"
54
+ | "parked_orders"
55
+ | "collections"
56
+ | "categories"
57
+ | "register_sessions"
58
+ | "session_transactions";
60
59
 
61
60
  type ListKeyFormat =
62
61
  | "string"
@@ -150,12 +149,11 @@ interface StallExtensionConfig {
150
149
  };
151
150
  }
152
151
 
153
- enum ExtensionNativeActions {
154
- OPEN_GROUP = "open_group",
155
- OPEN_PAGE = "open_page",
156
- ADD_TO_CART = "add_to_cart",
157
- ADD_CUSTOMER_TO_ORDER = "add_customer_to_order",
158
- }
152
+ type ExtensionNativeActions =
153
+ | "open_group"
154
+ | "open_page"
155
+ | "add_to_cart"
156
+ | "add_customer_to_order";
159
157
 
160
158
  export type {
161
159
  StallExtension,
@@ -173,7 +171,7 @@ export type {
173
171
  StallExtensionConfig,
174
172
  };
175
173
 
176
- export { ListDataSourceOptions, ExtensionNativeActions };
174
+ export type { ListDataSourceOptions, ExtensionNativeActions };
177
175
 
178
176
  export interface ExtensionType {
179
177
  id: string;