@deliverart/sdk-js-point-of-sale 2.1.49 → 2.1.50
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 +7 -3
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +7 -3
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -11359,9 +11359,13 @@ var availableDeliveryTimeSlotSchema = external_exports.object({
|
|
|
11359
11359
|
times: external_exports.array(availableDeliveryTimeItemSchema)
|
|
11360
11360
|
});
|
|
11361
11361
|
var availableDeliveryTimesQuerySchema = external_exports.object({
|
|
11362
|
-
date: external_exports.string().regex(/^\d{4}-\d{2}-\d{2}
|
|
11363
|
-
address: external_exports.string(),
|
|
11364
|
-
|
|
11362
|
+
date: external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/, { message: "date.invalid" }),
|
|
11363
|
+
address: external_exports.string({ message: "address.invalid" }).optional(),
|
|
11364
|
+
location: external_exports.string({ message: "location.invalid" }).regex(/^-?\d+\.?\d*\|-?\d+\.?\d*$/, { message: "location.format.invalid" }).optional(),
|
|
11365
|
+
countableItems: external_exports.coerce.number().positive({ message: "countableItems.positive.invalid" }).optional()
|
|
11366
|
+
}).refine((data) => data.address || data.location, {
|
|
11367
|
+
message: "address_or_location.required",
|
|
11368
|
+
path: ["address"]
|
|
11365
11369
|
});
|
|
11366
11370
|
var availableTakeAwayTimeItemSchema = external_exports.object({
|
|
11367
11371
|
time: external_exports.string().regex(/^\d{2}:\d{2}$/),
|
package/dist/index.d.cts
CHANGED
|
@@ -109,7 +109,8 @@ declare const availableDeliveryTimeSlotSchema: z.ZodObject<{
|
|
|
109
109
|
type AvailableDeliveryTimeSlot = z.infer<typeof availableDeliveryTimeSlotSchema>;
|
|
110
110
|
declare const availableDeliveryTimesQuerySchema: z.ZodObject<{
|
|
111
111
|
date: z.ZodString;
|
|
112
|
-
address: z.ZodString
|
|
112
|
+
address: z.ZodOptional<z.ZodString>;
|
|
113
|
+
location: z.ZodOptional<z.ZodString>;
|
|
113
114
|
countableItems: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
114
115
|
}, z.core.$strip>;
|
|
115
116
|
type AvailableDeliveryTimesQueryParams = z.infer<typeof availableDeliveryTimesQuerySchema>;
|
|
@@ -2163,7 +2164,8 @@ declare class DeletePointOfSale extends AbstractApiRequest<typeof deletePointOfS
|
|
|
2163
2164
|
|
|
2164
2165
|
declare const getAvailablePointOfSaleDeliveryTimesQuerySchema: z.ZodObject<{
|
|
2165
2166
|
date: z.ZodString;
|
|
2166
|
-
address: z.ZodString
|
|
2167
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2168
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2167
2169
|
countableItems: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2168
2170
|
}, z.core.$strip>;
|
|
2169
2171
|
type GetAvailablePointOfSaleDeliveryTimesQueryParams = z.infer<typeof getAvailablePointOfSaleDeliveryTimesQuerySchema>;
|
|
@@ -2231,7 +2233,8 @@ declare class GetAvailablePointOfSaleDeliveryTimes extends AbstractApiRequest<ty
|
|
|
2231
2233
|
}, z.core.$strip>>;
|
|
2232
2234
|
readonly querySchema: z.ZodObject<{
|
|
2233
2235
|
date: z.ZodString;
|
|
2234
|
-
address: z.ZodString
|
|
2236
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2237
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2235
2238
|
countableItems: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2236
2239
|
}, z.core.$strip>;
|
|
2237
2240
|
readonly headersSchema: undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -109,7 +109,8 @@ declare const availableDeliveryTimeSlotSchema: z.ZodObject<{
|
|
|
109
109
|
type AvailableDeliveryTimeSlot = z.infer<typeof availableDeliveryTimeSlotSchema>;
|
|
110
110
|
declare const availableDeliveryTimesQuerySchema: z.ZodObject<{
|
|
111
111
|
date: z.ZodString;
|
|
112
|
-
address: z.ZodString
|
|
112
|
+
address: z.ZodOptional<z.ZodString>;
|
|
113
|
+
location: z.ZodOptional<z.ZodString>;
|
|
113
114
|
countableItems: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
114
115
|
}, z.core.$strip>;
|
|
115
116
|
type AvailableDeliveryTimesQueryParams = z.infer<typeof availableDeliveryTimesQuerySchema>;
|
|
@@ -2163,7 +2164,8 @@ declare class DeletePointOfSale extends AbstractApiRequest<typeof deletePointOfS
|
|
|
2163
2164
|
|
|
2164
2165
|
declare const getAvailablePointOfSaleDeliveryTimesQuerySchema: z.ZodObject<{
|
|
2165
2166
|
date: z.ZodString;
|
|
2166
|
-
address: z.ZodString
|
|
2167
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2168
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2167
2169
|
countableItems: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2168
2170
|
}, z.core.$strip>;
|
|
2169
2171
|
type GetAvailablePointOfSaleDeliveryTimesQueryParams = z.infer<typeof getAvailablePointOfSaleDeliveryTimesQuerySchema>;
|
|
@@ -2231,7 +2233,8 @@ declare class GetAvailablePointOfSaleDeliveryTimes extends AbstractApiRequest<ty
|
|
|
2231
2233
|
}, z.core.$strip>>;
|
|
2232
2234
|
readonly querySchema: z.ZodObject<{
|
|
2233
2235
|
date: z.ZodString;
|
|
2234
|
-
address: z.ZodString
|
|
2236
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2237
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2235
2238
|
countableItems: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2236
2239
|
}, z.core.$strip>;
|
|
2237
2240
|
readonly headersSchema: undefined;
|
package/dist/index.js
CHANGED
|
@@ -11230,9 +11230,13 @@ var availableDeliveryTimeSlotSchema = external_exports.object({
|
|
|
11230
11230
|
times: external_exports.array(availableDeliveryTimeItemSchema)
|
|
11231
11231
|
});
|
|
11232
11232
|
var availableDeliveryTimesQuerySchema = external_exports.object({
|
|
11233
|
-
date: external_exports.string().regex(/^\d{4}-\d{2}-\d{2}
|
|
11234
|
-
address: external_exports.string(),
|
|
11235
|
-
|
|
11233
|
+
date: external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/, { message: "date.invalid" }),
|
|
11234
|
+
address: external_exports.string({ message: "address.invalid" }).optional(),
|
|
11235
|
+
location: external_exports.string({ message: "location.invalid" }).regex(/^-?\d+\.?\d*\|-?\d+\.?\d*$/, { message: "location.format.invalid" }).optional(),
|
|
11236
|
+
countableItems: external_exports.coerce.number().positive({ message: "countableItems.positive.invalid" }).optional()
|
|
11237
|
+
}).refine((data) => data.address || data.location, {
|
|
11238
|
+
message: "address_or_location.required",
|
|
11239
|
+
path: ["address"]
|
|
11236
11240
|
});
|
|
11237
11241
|
var availableTakeAwayTimeItemSchema = external_exports.object({
|
|
11238
11242
|
time: external_exports.string().regex(/^\d{2}:\d{2}$/),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-point-of-sale",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Point of Sale Management",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.50",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-company": "2.1.
|
|
22
|
-
"@deliverart/sdk-js-core": "2.1.
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-company": "2.1.50",
|
|
22
|
+
"@deliverart/sdk-js-core": "2.1.50",
|
|
23
|
+
"@deliverart/sdk-js-user": "2.1.50",
|
|
24
|
+
"@deliverart/sdk-js-global-types": "2.1.50"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|