@deliverart/sdk-js-point-of-sale 0.0.6 → 0.0.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @deliverart/sdk-js-point-of-sale
2
2
 
3
+ ## 0.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - b073e46: fix uuid version
8
+
9
+ ## 0.0.7
10
+
11
+ ### Patch Changes
12
+
13
+ - d97b57a: increase version pkg
14
+
3
15
  ## 0.0.6
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -69,16 +69,23 @@ var pointOfSaleCapabilities = ["DELIVERY_OPTIMIZATION"];
69
69
  var pointOfSaleCapabilitySchema = import_zod.z.enum(pointOfSaleCapabilities);
70
70
  var pointOfSaleUserRoles = ["ROLE_ADMIN", "ROLE_READER"];
71
71
  var pointOfSaleUserRoleSchema = import_zod.z.enum(pointOfSaleUserRoles);
72
- var pointOfSalePathSchema = import_zod.z.string().refine((val) => /^\/point_of_sales\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val), {
73
- message: "Invalid integration path format"
74
- });
72
+ var pointOfSalePathSchema = import_zod.z.string().refine(
73
+ (val) => /^\/point_of_sales\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(
74
+ val
75
+ ),
76
+ {
77
+ message: "Invalid point of sale path format"
78
+ }
79
+ );
75
80
  var pointOfSaleNullablePathSchema = import_zod.z.string().nullable().refine(
76
81
  (val) => {
77
82
  if (!val) return true;
78
- return /^\/point_of_sales\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val);
83
+ return /^\/point_of_sales\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(
84
+ val
85
+ );
79
86
  },
80
87
  {
81
- message: "Invalid integration path format"
88
+ message: "Invalid point of sale path format"
82
89
  }
83
90
  );
84
91