@deliverart/sdk-js-core 2.25.1 → 2.26.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.cjs CHANGED
@@ -89,10 +89,18 @@ var menuChannels = [
89
89
  "justeat",
90
90
  "glovo",
91
91
  "tilby",
92
- "cassa_in_cloud"
92
+ "cassa_in_cloud",
93
+ "elephant"
93
94
  ];
94
95
  var menuChannelSchema = import_zod.z.enum(menuChannels);
95
- var orderPartners = ["cassa_in_cloud", "deliveroo", "justeat", "glovo", "tilby"];
96
+ var orderPartners = [
97
+ "cassa_in_cloud",
98
+ "deliveroo",
99
+ "justeat",
100
+ "glovo",
101
+ "tilby",
102
+ "elephant"
103
+ ];
96
104
  var orderPartnerSchema = import_zod.z.enum(orderPartners);
97
105
  var menuItemAllergens = [
98
106
  "peanuts-and-derivatives",
@@ -231,6 +239,7 @@ var webhookEntities = [
231
239
  var webhookEntitySchema = import_zod.z.enum(webhookEntities);
232
240
  var uuidPattern = /^[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}$/i;
233
241
  var isUuid = (s) => uuidPattern.test(s);
242
+ var uuidLikeSchema = import_zod2.z.string().regex(uuidPattern, { message: "Invalid UUID format" });
234
243
  var IriObject = class {
235
244
  constructor(iri, pattern) {
236
245
  this.iri = iri;
package/dist/index.js CHANGED
@@ -47,10 +47,18 @@ var menuChannels = [
47
47
  "justeat",
48
48
  "glovo",
49
49
  "tilby",
50
- "cassa_in_cloud"
50
+ "cassa_in_cloud",
51
+ "elephant"
51
52
  ];
52
53
  var menuChannelSchema = z.enum(menuChannels);
53
- var orderPartners = ["cassa_in_cloud", "deliveroo", "justeat", "glovo", "tilby"];
54
+ var orderPartners = [
55
+ "cassa_in_cloud",
56
+ "deliveroo",
57
+ "justeat",
58
+ "glovo",
59
+ "tilby",
60
+ "elephant"
61
+ ];
54
62
  var orderPartnerSchema = z.enum(orderPartners);
55
63
  var menuItemAllergens = [
56
64
  "peanuts-and-derivatives",
@@ -189,6 +197,7 @@ var webhookEntities = [
189
197
  var webhookEntitySchema = z.enum(webhookEntities);
190
198
  var uuidPattern = /^[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}$/i;
191
199
  var isUuid = (s) => uuidPattern.test(s);
200
+ var uuidLikeSchema = z2.string().regex(uuidPattern, { message: "Invalid UUID format" });
192
201
  var IriObject = class {
193
202
  constructor(iri, pattern) {
194
203
  this.iri = iri;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-core",
3
3
  "description": "Core SDK for DeliverArt, providing essential functionalities and utilities.",
4
- "version": "2.25.1",
4
+ "version": "2.26.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/qs": "^6.14.0",
29
- "@deliverart/sdk-js-global-types": "2.25.1"
29
+ "@deliverart/sdk-js-global-types": "2.26.0"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "tsup src/index.ts --dts --format esm,cjs",