@fayz-ai/plugin-shop 0.21.7 → 0.22.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.
package/dist/index.js CHANGED
@@ -9158,8 +9158,8 @@ function ProductListingTab({ item, getProvider }) {
9158
9158
  }
9159
9159
 
9160
9160
  // src/index.ts
9161
- var ShopPage = React14__default.lazy(() => import('./ShopPage-2CTRGQTX.js').then((m) => ({ default: m.ShopPage })));
9162
- var LazyOrderDetail = React14__default.lazy(() => import('./ShopPage-2CTRGQTX.js').then((m) => ({ default: m.ShopOrderDetailSlot })));
9161
+ var ShopPage = React14__default.lazy(() => import('./ShopPage-7GU5LPKP.js').then((m) => ({ default: m.ShopPage })));
9162
+ var LazyOrderDetail = React14__default.lazy(() => import('./ShopPage-7GU5LPKP.js').then((m) => ({ default: m.ShopOrderDetailSlot })));
9163
9163
  function ShopOrderDetail(provider) {
9164
9164
  const Detail = (props) => React14__default.createElement(
9165
9165
  React14__default.Suspense,
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export declare function OrderDeliveryPanel({ orderId, paid, total, money, onChanged }: {
3
+ orderId: string;
4
+ /** The order has money received, so saying no means giving it back. */
5
+ paid: boolean;
6
+ total: number;
7
+ money: (value: number) => string;
8
+ onChanged: () => void;
9
+ }): React.JSX.Element | null;
10
+ //# sourceMappingURL=OrderDeliveryPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderDeliveryPanel.d.ts","sourceRoot":"","sources":["../../src/views/OrderDeliveryPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAkDzB,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;IAC7E,OAAO,EAAE,MAAM,CAAA;IACf,uEAAuE;IACvE,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IAChC,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,4BAgLA"}
@@ -1 +1 @@
1
- {"version":3,"file":"OrderDetailView.d.ts","sourceRoot":"","sources":["../../src/views/OrderDetailView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAqBvE,OAAO,KAAK,EAAwC,YAAY,EAAE,MAAM,eAAe,CAAA;AAyDvF,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKrD,CAAA;AAoGD,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE;IACvE,OAAO,EAAE,MAAM,CAAA;IACf,oFAAoF;IACpF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,QAAQ,EAAE,MAAM,YAAY,CAAA;IAC5B,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,6EA8mBA;AAED,eAAO,MAAM,eAAe,GAAI,IAAI,MAAM,WAAyB,CAAA;AACnE,eAAO,MAAM,SAAS,GAAI,IAAI,MAAM,SAAyC,CAAA"}
1
+ {"version":3,"file":"OrderDetailView.d.ts","sourceRoot":"","sources":["../../src/views/OrderDetailView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAsBvE,OAAO,KAAK,EAAwC,YAAY,EAAE,MAAM,eAAe,CAAA;AAyDvF,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKrD,CAAA;AAoGD,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE;IACvE,OAAO,EAAE,MAAM,CAAA;IACf,oFAAoF;IACpF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,QAAQ,EAAE,MAAM,YAAY,CAAA;IAC5B,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,6EAwnBA;AAED,eAAO,MAAM,eAAe,GAAI,IAAI,MAAM,WAAyB,CAAA;AACnE,eAAO,MAAM,SAAS,GAAI,IAAI,MAAM,SAAyC,CAAA"}
@@ -1,4 +1,13 @@
1
1
  import type { ShopProvider } from '@fayz-ai/shop';
2
2
  /** Cancels one order through whichever door this store's provider offers. */
3
3
  export declare function cancelShopOrder(provider: ShopProvider, orderId: string, reason?: string): Promise<void>;
4
+ /**
5
+ * Gives the money of a gateway-paid order back and cancels it (shop 0125):
6
+ * the integration service refunds at the gateway, then records it, which
7
+ * reverses the receipt and cancels the order. `reject` marks a delivery the
8
+ * store said no to.
9
+ */
10
+ export declare function refundShopOrder(orderId: string, reason: string, reject?: boolean): Promise<void>;
11
+ /** Moves a storefront order through the delivery (shop 0125). */
12
+ export declare function advanceShopDelivery(orderId: string, to: string, reason?: string): Promise<void>;
4
13
  //# sourceMappingURL=order-actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"order-actions.d.ts","sourceRoot":"","sources":["../../src/views/order-actions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAajD,6EAA6E;AAC7E,wBAAsB,eAAe,CACnC,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAYf"}
1
+ {"version":3,"file":"order-actions.d.ts","sourceRoot":"","sources":["../../src/views/order-actions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAajD,6EAA6E;AAC7E,wBAAsB,eAAe,CACnC,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAYf;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAepG;AAED,iEAAiE;AACjE,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAOrG"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "status": "preview",
5
5
  "dependencies": []
6
6
  },
7
- "version": "0.21.7",
7
+ "version": "0.22.0",
8
8
  "description": "[experimental] Fayz SDK — plugin-shop plugin",
9
9
  "type": "module",
10
10
  "sideEffects": false,
@@ -36,7 +36,7 @@
36
36
  "@fayz-ai/core": "^0.54.3",
37
37
  "@fayz-ai/financial": "^0.1.4",
38
38
  "@fayz-ai/inventory": "^0.1.4",
39
- "@fayz-ai/shop": "^0.54.4",
39
+ "@fayz-ai/shop": "^0.55.2",
40
40
  "@fayz-ai/ui": "^0.53.0",
41
41
  "@fayz-ai/contracts": "^0.4.0"
42
42
  },