@fayz-ai/plugin-shop 0.32.0 → 0.33.0

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.
@@ -16,6 +16,12 @@ export declare function quoteSaleUnitPrices(tableId: string | null, lines: Array
16
16
  }>): Promise<Map<string, SaleLineQuote>>;
17
17
  /** The table on the customer's registration (people.price_table_id, 215), if any. */
18
18
  export declare function customerPriceTableId(shopCustomerId: string): Promise<string | null>;
19
+ /**
20
+ * Write the customer's default table on their registration. The shop row has
21
+ * no column of its own: the person is canonical, so the CRM record and every
22
+ * document read the same answer. `null` = the store's default.
23
+ */
24
+ export declare function setCustomerPriceTableId(shopCustomerId: string, tableId: string | null): Promise<void>;
19
25
  /** The table an existing order was sold in, from its metadata. */
20
26
  export declare function orderPriceTableId(orderId: string): Promise<string | null>;
21
27
  //# sourceMappingURL=sale-price-table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sale-price-table.d.ts","sourceRoot":"","sources":["../../src/data/sale-price-table.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,EAAE,YAAY,MAAM,GAAG,IAAI,WAAsC,CAAA;AAE9G,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,OAAO,EAAE,OAAO,CAAA;IAChB,iEAAiE;IACjE,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,KAAK,EAAE,KAAK,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,GAC7D,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAqBrC;AAED,qFAAqF;AACrF,wBAAsB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAUzF;AAED,kEAAkE;AAClE,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAM/E"}
1
+ {"version":3,"file":"sale-price-table.d.ts","sourceRoot":"","sources":["../../src/data/sale-price-table.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,EAAE,YAAY,MAAM,GAAG,IAAI,WAAsC,CAAA;AAE9G,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,OAAO,EAAE,OAAO,CAAA;IAChB,iEAAiE;IACjE,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,KAAK,EAAE,KAAK,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,GAC7D,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAqBrC;AASD,qFAAqF;AACrF,wBAAsB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQzF;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAO3G;AAED,kEAAkE;AAClE,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAM/E"}
package/dist/index.js CHANGED
@@ -6292,8 +6292,8 @@ function advanceNeoChefCursor(products, overlapMs) {
6292
6292
  }
6293
6293
 
6294
6294
  // src/index.ts
6295
- var ShopPage = React.lazy(() => import('./ShopPage-WH5SL4WX.js').then((m) => ({ default: m.ShopPage })));
6296
- var LazyOrderDetail = React.lazy(() => import('./ShopPage-WH5SL4WX.js').then((m) => ({ default: m.ShopOrderDetailSlot })));
6295
+ var ShopPage = React.lazy(() => import('./ShopPage-KF65QBTS.js').then((m) => ({ default: m.ShopPage })));
6296
+ var LazyOrderDetail = React.lazy(() => import('./ShopPage-KF65QBTS.js').then((m) => ({ default: m.ShopOrderDetailSlot })));
6297
6297
  function ShopOrderDetail(provider) {
6298
6298
  const Detail = (props) => React.createElement(
6299
6299
  React.Suspense,
@@ -0,0 +1,2 @@
1
+ export declare const en: Record<string, string>;
2
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIrC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const ptBR: Record<string, string>;
2
+ //# sourceMappingURL=pt-BR.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt-BR.d.ts","sourceRoot":"","sources":["../../src/locales/pt-BR.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIvC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomerModal.d.ts","sourceRoot":"","sources":["../../src/views/CustomerModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAA;AAK3D,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAgB/D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACpG,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1E,QAAQ,EAAE,MAAM,YAAY,CAAA;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAA;CAC1C,qBA0IA"}
1
+ {"version":3,"file":"CustomerModal.d.ts","sourceRoot":"","sources":["../../src/views/CustomerModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAA;AAKnE,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAmB/D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACpG,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1E,QAAQ,EAAE,MAAM,YAAY,CAAA;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAA;CAC1C,qBA4KA"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewOrderPage.d.ts","sourceRoot":"","sources":["../../src/views/NewOrderPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAA;AAuBxE,OAAO,KAAK,EAC8C,YAAY,EACrE,MAAM,eAAe,CAAA;AAgGtB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,YAAY,CAAA;IAC5B,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,iBAAiB,qBAgvBtF"}
1
+ {"version":3,"file":"NewOrderPage.d.ts","sourceRoot":"","sources":["../../src/views/NewOrderPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAA;AAuBxE,OAAO,KAAK,EAC8C,YAAY,EACrE,MAAM,eAAe,CAAA;AAgGtB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,YAAY,CAAA;IAC5B,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,iBAAiB,qBAmvBtF"}
@@ -1 +1 @@
1
- {"version":3,"file":"customerEntity.d.ts","sourceRoot":"","sources":["../../src/views/customerEntity.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,eAAe,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAoBjD,wBAAgB,uBAAuB,IAAI,SAAS,CAAC,YAAY,CAAC,CA4GjE"}
1
+ {"version":3,"file":"customerEntity.d.ts","sourceRoot":"","sources":["../../src/views/customerEntity.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,eAAe,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAuBjD,wBAAgB,uBAAuB,IAAI,SAAS,CAAC,YAAY,CAAC,CAsHjE"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "status": "preview",
5
5
  "dependencies": []
6
6
  },
7
- "version": "0.32.0",
7
+ "version": "0.33.0",
8
8
  "description": "[experimental] Fayz SDK — plugin-shop plugin",
9
9
  "type": "module",
10
10
  "sideEffects": false,
@@ -32,12 +32,12 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@tanstack/react-table": "^8.20.0",
35
- "@fayz-ai/admin": "^0.91.2",
36
- "@fayz-ai/core": "^0.90.0",
37
- "@fayz-ai/financial": "^0.4.6",
38
- "@fayz-ai/inventory": "^0.5.0",
39
- "@fayz-ai/shop": "^0.91.2",
40
- "@fayz-ai/ui": "^0.91.2",
35
+ "@fayz-ai/admin": "^0.92.0",
36
+ "@fayz-ai/core": "^0.92.0",
37
+ "@fayz-ai/financial": "^0.4.7",
38
+ "@fayz-ai/inventory": "^0.5.1",
39
+ "@fayz-ai/shop": "^0.92.0",
40
+ "@fayz-ai/ui": "^0.92.0",
41
41
  "@fayz-ai/contracts": "^0.7.0"
42
42
  },
43
43
  "devDependencies": {