@deliverart/sdk-js-integration 0.0.1 → 0.0.2

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
@@ -107,14 +107,24 @@ var integrationJustEatPathSchema = integrationPathSchemas.justeat.pathSchema;
107
107
  var integrationJustEatNullablePathSchema = integrationPathSchemas.justeat.nullablePathSchema;
108
108
  var integrationCassaInCloudPathSchema = integrationPathSchemas.cassa_in_cloud.pathSchema;
109
109
  var integrationCassaInCloudNullablePathSchema = integrationPathSchemas.cassa_in_cloud.nullablePathSchema;
110
- var integrationPathSchema = z.string().refine((val) => /^\/integrations\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val), {
111
- message: "Invalid integration path format"
112
- });
113
- var integrationNullablePathSchema = z.string().nullable().refine((val) => val == null || /^\/integrations\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val), {
114
- message: "Invalid integration path format"
115
- });
110
+ var integrationPathSchema = z.string().refine(
111
+ (val) => /^\/integrations\/[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(
112
+ val
113
+ ),
114
+ {
115
+ message: "Invalid integration path format"
116
+ }
117
+ );
118
+ var integrationNullablePathSchema = z.string().nullable().refine(
119
+ (val) => val == null || /^\/integrations\/[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(
120
+ val
121
+ ),
122
+ {
123
+ message: "Invalid integration path format"
124
+ }
125
+ );
116
126
  var integrationCassaInCloudSyncMenuErrorLogPathSchema = z.string().refine(
117
- (val) => /^\/integrations\/cassa_in_cloud\/[a-z_]+\/[0-9a-fA-F-]{36}\/sync_menu_processes\/[a-z_]+\/[0-9a-fA-F-]{36}\/error_logs\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(
127
+ (val) => /^\/integrations\/cassa_in_cloud\/[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}\/sync_menu_processes\/[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}\/error_logs\/[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(
118
128
  val
119
129
  ),
120
130
  {
@@ -122,7 +132,7 @@ var integrationCassaInCloudSyncMenuErrorLogPathSchema = z.string().refine(
122
132
  }
123
133
  );
124
134
  var integrationCassaInCloudSyncMenuErrorLogNullablePathSchema = z.string().nullable().refine(
125
- (val) => val == null || /^\/integrations\/cassa_in_cloud\/[a-z_]+\/[0-9a-fA-F-]{36}\/sync_menu_processes\/[a-z_]+\/[0-9a-fA-F-]{36}\/error_logs\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(
135
+ (val) => val == null || /^\/integrations\/cassa_in_cloud\/[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}\/sync_menu_processes\/[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}\/error_logs\/[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(
126
136
  val
127
137
  ),
128
138
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-integration",
3
3
  "description": "Deliverart JavaScript SDK for Integration Management",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -12,10 +12,10 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@deliverart/sdk-js-core": "0.1.3",
16
- "@deliverart/sdk-js-global-types": "0.0.15",
17
- "@deliverart/sdk-js-point-of-sale": "0.0.6",
18
- "@deliverart/sdk-js-sales-mode": "0.0.3",
15
+ "@deliverart/sdk-js-core": "0.1.4",
16
+ "@deliverart/sdk-js-global-types": "0.0.16",
17
+ "@deliverart/sdk-js-point-of-sale": "0.0.8",
18
+ "@deliverart/sdk-js-sales-mode": "0.0.5",
19
19
  "axios": "1.9.0",
20
20
  "zod": "3.25.67"
21
21
  },
package/src/types.ts CHANGED
@@ -181,24 +181,37 @@ export type IntegrationCassaInCloudNullablePath = z.infer<
181
181
 
182
182
  export const integrationPathSchema = z
183
183
  .string()
184
- .refine(val => /^\/integrations\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val), {
185
- message: 'Invalid integration path format',
186
- })
184
+ .refine(
185
+ val =>
186
+ /^\/integrations\/[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(
187
+ val,
188
+ ),
189
+ {
190
+ message: 'Invalid integration path format',
191
+ },
192
+ )
187
193
  export type IntegrationPath = z.infer<typeof integrationPathSchema>
188
194
 
189
195
  export const integrationNullablePathSchema = z
190
196
  .string()
191
197
  .nullable()
192
- .refine(val => val == null || /^\/integrations\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val), {
193
- message: 'Invalid integration path format',
194
- })
198
+ .refine(
199
+ val =>
200
+ val == null ||
201
+ /^\/integrations\/[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(
202
+ val,
203
+ ),
204
+ {
205
+ message: 'Invalid integration path format',
206
+ },
207
+ )
195
208
  export type IntegrationNullablePath = z.infer<typeof integrationNullablePathSchema>
196
209
 
197
210
  export const integrationCassaInCloudSyncMenuErrorLogPathSchema = z
198
211
  .string()
199
212
  .refine(
200
213
  val =>
201
- /^\/integrations\/cassa_in_cloud\/[a-z_]+\/[0-9a-fA-F-]{36}\/sync_menu_processes\/[a-z_]+\/[0-9a-fA-F-]{36}\/error_logs\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(
214
+ /^\/integrations\/cassa_in_cloud\/[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}\/sync_menu_processes\/[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}\/error_logs\/[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(
202
215
  val,
203
216
  ),
204
217
  {
@@ -215,7 +228,7 @@ export const integrationCassaInCloudSyncMenuErrorLogNullablePathSchema = z
215
228
  .refine(
216
229
  val =>
217
230
  val == null ||
218
- /^\/integrations\/cassa_in_cloud\/[a-z_]+\/[0-9a-fA-F-]{36}\/sync_menu_processes\/[a-z_]+\/[0-9a-fA-F-]{36}\/error_logs\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(
231
+ /^\/integrations\/cassa_in_cloud\/[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}\/sync_menu_processes\/[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}\/error_logs\/[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(
219
232
  val,
220
233
  ),
221
234
  {