@nok-integration/storefront-react 0.14.0 → 0.15.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.mjs CHANGED
@@ -4465,7 +4465,14 @@ function requireIds() {
4465
4465
  ids.UserId = prefixedId("usr_");
4466
4466
  ids.CartId = prefixedId("cart_");
4467
4467
  ids.CheckoutId = prefixedId("chk_");
4468
- ids.OrderRef = prefixedId("ord_");
4468
+ ids.OrderRef = zod_1.z.string().regex(
4469
+ // Deliberately unbounded in length. DAZN said six digits "for now", and a schema that
4470
+ // pinned six would reject the first order they place after widening the column — a
4471
+ // 400 at intake, which is an order we never receive and never fulfil. The rule we can
4472
+ // hold them to is "digits"; the count is theirs to change.
4473
+ /^(?:ord_[A-Za-z0-9._-]+|\d+)$/,
4474
+ "must be an 'ord_…' identifier or a numeric order reference"
4475
+ ).brand();
4469
4476
  ids.EventId = prefixedId("evt_");
4470
4477
  ids.RequestId = prefixedId("req_");
4471
4478
  return ids;
@@ -4465,7 +4465,14 @@ function requireIds() {
4465
4465
  ids.UserId = prefixedId("usr_");
4466
4466
  ids.CartId = prefixedId("cart_");
4467
4467
  ids.CheckoutId = prefixedId("chk_");
4468
- ids.OrderRef = prefixedId("ord_");
4468
+ ids.OrderRef = zod_1.z.string().regex(
4469
+ // Deliberately unbounded in length. DAZN said six digits "for now", and a schema that
4470
+ // pinned six would reject the first order they place after widening the column — a
4471
+ // 400 at intake, which is an order we never receive and never fulfil. The rule we can
4472
+ // hold them to is "digits"; the count is theirs to change.
4473
+ /^(?:ord_[A-Za-z0-9._-]+|\d+)$/,
4474
+ "must be an 'ord_…' identifier or a numeric order reference"
4475
+ ).brand();
4469
4476
  ids.EventId = prefixedId("evt_");
4470
4477
  ids.RequestId = prefixedId("req_");
4471
4478
  return ids;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nok-integration/storefront-react",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Mountable React storefront components: catalogue, product detail and cart, mounted directly into a host DOM tree. No iframe.",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {