@deliverart/sdk-js-integration 0.0.4 → 0.0.5

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,11 @@
1
1
  # @deliverart/sdk-js-integration
2
2
 
3
+ ## 0.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 35e263a: fix uuid version
8
+
3
9
  ## 0.0.4
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -670,13 +670,20 @@ var integrationCancellationRequestStatuses = ["pending", "aborted", "completed"]
670
670
  var integrationCancellationRequestStatusSchema = import_zod6.z.enum(
671
671
  integrationCancellationRequestStatuses
672
672
  );
673
- var integrationCancellationRequestPathSchema = import_zod6.z.string().refine((val) => /^\/integrations\/cancellation_requests\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val), {
674
- message: "Invalid integration cancellation request path format"
675
- });
673
+ var integrationCancellationRequestPathSchema = import_zod6.z.string().refine(
674
+ (val) => /^\/integrations\/cancellation_requests\/[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(
675
+ val
676
+ ),
677
+ {
678
+ message: "Invalid integration cancellation request path format"
679
+ }
680
+ );
676
681
  var integrationCancellationRequestNullablePathSchema = import_zod6.z.string().nullable().refine(
677
682
  (val) => {
678
683
  if (!val) return true;
679
- return /^\/integrations\/cancellation_requests\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val);
684
+ return /^\/integrations\/cancellation_requests\/[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(
685
+ val
686
+ );
680
687
  },
681
688
  {
682
689
  message: "Invalid integration cancellation request path format"
package/dist/index.js CHANGED
@@ -304,13 +304,20 @@ var integrationCancellationRequestStatuses = ["pending", "aborted", "completed"]
304
304
  var integrationCancellationRequestStatusSchema = z6.enum(
305
305
  integrationCancellationRequestStatuses
306
306
  );
307
- var integrationCancellationRequestPathSchema = z6.string().refine((val) => /^\/integrations\/cancellation_requests\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val), {
308
- message: "Invalid integration cancellation request path format"
309
- });
307
+ var integrationCancellationRequestPathSchema = z6.string().refine(
308
+ (val) => /^\/integrations\/cancellation_requests\/[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(
309
+ val
310
+ ),
311
+ {
312
+ message: "Invalid integration cancellation request path format"
313
+ }
314
+ );
310
315
  var integrationCancellationRequestNullablePathSchema = z6.string().nullable().refine(
311
316
  (val) => {
312
317
  if (!val) return true;
313
- return /^\/integrations\/cancellation_requests\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val);
318
+ return /^\/integrations\/cancellation_requests\/[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(
319
+ val
320
+ );
314
321
  },
315
322
  {
316
323
  message: "Invalid integration cancellation request path format"
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.4",
4
+ "version": "0.0.5",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -10,9 +10,15 @@ export type IntegrationCancellationRequestStatus = z.infer<
10
10
 
11
11
  export const integrationCancellationRequestPathSchema = z
12
12
  .string()
13
- .refine(val => /^\/integrations\/cancellation_requests\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val), {
14
- message: 'Invalid integration cancellation request path format',
15
- })
13
+ .refine(
14
+ val =>
15
+ /^\/integrations\/cancellation_requests\/[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(
16
+ val,
17
+ ),
18
+ {
19
+ message: 'Invalid integration cancellation request path format',
20
+ },
21
+ )
16
22
  export type IntegrationCancellationRequestPath = z.infer<
17
23
  typeof integrationCancellationRequestPathSchema
18
24
  >
@@ -23,7 +29,9 @@ export const integrationCancellationRequestNullablePathSchema = z
23
29
  .refine(
24
30
  val => {
25
31
  if (!val) return true
26
- return /^\/integrations\/cancellation_requests\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val)
32
+ return /^\/integrations\/cancellation_requests\/[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(
33
+ val,
34
+ )
27
35
  },
28
36
  {
29
37
  message: 'Invalid integration cancellation request path format',