UNPKG
@pfantato/printful-ts
Version:
latest (0.0.1)
0.0.1
Typescript SDK to integrate with Printful
github.com/pfantato/printful-ts
pfantato/printful-ts
@pfantato/printful-ts
/
lib
/
schemas
/
common
/
external-order-id.schema.js
11 lines
(10 loc)
•
295 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
ExternalIdParam
=
void
0
;
const
zod_1 =
require
(
"zod"
);
exports
.
ExternalIdParam
= zod_1.
z
.
string
() .
regex
(
/^@.*$/
, {
message
:
"External Order ID must start with '@'"
, }) .
or
(zod_1.
z
.
number
());