@rebuy/rebuy 2.33.0 → 2.34.0-rc.1

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.
@@ -0,0 +1,16 @@
1
+ import { type DataSourceInput, type ServerContext } from '../server/shared';
2
+ /**
3
+ * admin-api's B2B catalog-availability endpoint (REB-23715) — path-routed on the engine host like the
4
+ * other `admin/api/v1/shop/*` rails (`/cab/log`'s shop-log forward is the precedent), so a staging
5
+ * `X-Rebuy-Upstream` reaches the staging admin-api with no extra host wiring.
6
+ */
7
+ export declare const B2B_AVAILABILITY_PATH = "/admin/api/v1/shop/b2b-catalog-availability";
8
+ /**
9
+ * Drops products the buyer's company-location catalog doesn't publish. A B2B session bypasses the client's
10
+ * country-context market check (the regional catalog false-negatives B2B-catalog products — REB-23713), so
11
+ * this is the only availability gate for B2B carts. FAIL-OPEN throughout: no B2B session, a failed call,
12
+ * an unreadable verdict, or a product the verdict doesn't mention all keep the products — degrading to the
13
+ * pre-B2B behavior always beats blanking the widget on an availability hiccup.
14
+ */
15
+ export declare const filterByB2bAvailability: (products: unknown[], input: DataSourceInput, ctx: ServerContext) => Promise<unknown[]>;
16
+ //# sourceMappingURL=b2bAvailability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"b2bAvailability.d.ts","sourceRoot":"","sources":["../../src/server/b2bAvailability.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE3E;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,gDAAgD,CAAC;AAkBnF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,GAChC,UAAU,OAAO,EAAE,EACnB,OAAO,eAAe,EACtB,KAAK,aAAa,KACnB,OAAO,CAAC,OAAO,EAAE,CAsCnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dataSourceResults.d.ts","sourceRoot":"","sources":["../../src/server/dataSourceResults.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,aAAa,EAGrB,MAAM,iBAAiB,CAAC;AAOzB,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAUF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,eAAe,EAAE,KAAK,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAuD7F,CAAC;AA4DF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAC/B,OAAO,eAAe,EACtB,KAAK,aAAa,KACnB,OAAO,CAAC,iBAAiB,CA2C3B,CAAC"}
1
+ {"version":3,"file":"dataSourceResults.d.ts","sourceRoot":"","sources":["../../src/server/dataSourceResults.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,aAAa,EAGrB,MAAM,iBAAiB,CAAC;AAOzB,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAUF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,eAAe,EAAE,KAAK,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAuD7F,CAAC;AA4DF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAC/B,OAAO,eAAe,EACtB,KAAK,aAAa,KACnB,OAAO,CAAC,iBAAiB,CA8C3B,CAAC"}