@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 +6 -0
- package/dist/index.cjs +11 -4
- package/dist/index.js +11 -4
- package/package.json +1 -1
- package/src/cancellation-request-types.ts +12 -4
package/CHANGELOG.md
CHANGED
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(
|
|
674
|
-
|
|
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\/[
|
|
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(
|
|
308
|
-
|
|
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\/[
|
|
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
|
@@ -10,9 +10,15 @@ export type IntegrationCancellationRequestStatus = z.infer<
|
|
|
10
10
|
|
|
11
11
|
export const integrationCancellationRequestPathSchema = z
|
|
12
12
|
.string()
|
|
13
|
-
.refine(
|
|
14
|
-
|
|
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\/[
|
|
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',
|