@deliverart/sdk-js-order 2.46.0 → 2.46.1
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/README.md +4 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -0
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1103,3 +1103,7 @@ Readable Cassa `order_number` references are optional secondary identities. The
|
|
|
1103
1103
|
chip partition helper prefers them for display while preserving the technical
|
|
1104
1104
|
`order_uuid` in details. Exact number searches may return multiple orders because
|
|
1105
1105
|
provider numbering series can repeat. Tilby already exposes its numeric `sale_id`.
|
|
1106
|
+
|
|
1107
|
+
### Exact order selection
|
|
1108
|
+
|
|
1109
|
+
`GetPointOfSaleOrders` accepts `query.id` as one identifier or a non-empty array. Use this POS-scoped filter to load complete order cards for an authoritative dashboard cohort without broadening its membership. The client serializes arrays as `id[]`; empty arrays are rejected.
|
package/dist/index.cjs
CHANGED
|
@@ -1440,6 +1440,7 @@ var bundlesQuerySchema = import_zod8.z.object({
|
|
|
1440
1440
|
page: import_zod8.z.coerce.number().optional()
|
|
1441
1441
|
}).extend(import_sdk_js_global_types5.timestampsFilterSchema.shape);
|
|
1442
1442
|
var ordersQuerySchema = import_zod8.z.object({
|
|
1443
|
+
id: import_zod8.z.union([import_zod8.z.string().min(1), import_zod8.z.array(import_zod8.z.string().min(1)).min(1)]).optional(),
|
|
1443
1444
|
type: import_zod8.z.union([import_sdk_js_global_types4.orderTypeSchema, import_zod8.z.array(import_sdk_js_global_types4.orderTypeSchema)]).optional(),
|
|
1444
1445
|
source: import_zod8.z.union([import_sdk_js_global_types4.orderSourceSchema, import_zod8.z.array(import_sdk_js_global_types4.orderSourceSchema)]).optional(),
|
|
1445
1446
|
status: import_zod8.z.union([import_sdk_js_global_types4.orderStatusSchema, import_zod8.z.array(import_sdk_js_global_types4.orderStatusSchema)]).optional(),
|
package/dist/index.d.cts
CHANGED
|
@@ -11317,6 +11317,7 @@ declare const ordersQuerySchema: z.ZodObject<{
|
|
|
11317
11317
|
origin: "origin";
|
|
11318
11318
|
destination: "destination";
|
|
11319
11319
|
}>>;
|
|
11320
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
11320
11321
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
11321
11322
|
delivery: "delivery";
|
|
11322
11323
|
collection: "collection";
|
|
@@ -53486,6 +53487,7 @@ declare const getCustomerOrdersQuerySchema: z.ZodObject<{
|
|
|
53486
53487
|
origin: "origin";
|
|
53487
53488
|
destination: "destination";
|
|
53488
53489
|
}>>;
|
|
53490
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
53489
53491
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
53490
53492
|
delivery: "delivery";
|
|
53491
53493
|
collection: "collection";
|
|
@@ -55129,6 +55131,7 @@ declare class GetCustomerOrders extends AbstractApiRequest<typeof getCustomerOrd
|
|
|
55129
55131
|
origin: "origin";
|
|
55130
55132
|
destination: "destination";
|
|
55131
55133
|
}>>;
|
|
55134
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
55132
55135
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
55133
55136
|
delivery: "delivery";
|
|
55134
55137
|
collection: "collection";
|
|
@@ -58055,6 +58058,7 @@ declare const getOrdersQuerySchema: z.ZodObject<{
|
|
|
58055
58058
|
origin: "origin";
|
|
58056
58059
|
destination: "destination";
|
|
58057
58060
|
}>>;
|
|
58061
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
58058
58062
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
58059
58063
|
delivery: "delivery";
|
|
58060
58064
|
collection: "collection";
|
|
@@ -59697,6 +59701,7 @@ declare class GetOrders extends AbstractApiRequest<typeof getOrdersInputSchema,
|
|
|
59697
59701
|
origin: "origin";
|
|
59698
59702
|
destination: "destination";
|
|
59699
59703
|
}>>;
|
|
59704
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
59700
59705
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
59701
59706
|
delivery: "delivery";
|
|
59702
59707
|
collection: "collection";
|
|
@@ -60637,6 +60642,7 @@ declare const getPointOfSaleOrdersQuerySchema: z.ZodObject<{
|
|
|
60637
60642
|
origin: "origin";
|
|
60638
60643
|
destination: "destination";
|
|
60639
60644
|
}>>;
|
|
60645
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
60640
60646
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
60641
60647
|
delivery: "delivery";
|
|
60642
60648
|
collection: "collection";
|
|
@@ -62279,6 +62285,7 @@ declare class GetPointOfSaleOrders extends AbstractApiRequest<typeof getPointOfS
|
|
|
62279
62285
|
origin: "origin";
|
|
62280
62286
|
destination: "destination";
|
|
62281
62287
|
}>>;
|
|
62288
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
62282
62289
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
62283
62290
|
delivery: "delivery";
|
|
62284
62291
|
collection: "collection";
|
package/dist/index.d.ts
CHANGED
|
@@ -11317,6 +11317,7 @@ declare const ordersQuerySchema: z.ZodObject<{
|
|
|
11317
11317
|
origin: "origin";
|
|
11318
11318
|
destination: "destination";
|
|
11319
11319
|
}>>;
|
|
11320
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
11320
11321
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
11321
11322
|
delivery: "delivery";
|
|
11322
11323
|
collection: "collection";
|
|
@@ -53486,6 +53487,7 @@ declare const getCustomerOrdersQuerySchema: z.ZodObject<{
|
|
|
53486
53487
|
origin: "origin";
|
|
53487
53488
|
destination: "destination";
|
|
53488
53489
|
}>>;
|
|
53490
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
53489
53491
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
53490
53492
|
delivery: "delivery";
|
|
53491
53493
|
collection: "collection";
|
|
@@ -55129,6 +55131,7 @@ declare class GetCustomerOrders extends AbstractApiRequest<typeof getCustomerOrd
|
|
|
55129
55131
|
origin: "origin";
|
|
55130
55132
|
destination: "destination";
|
|
55131
55133
|
}>>;
|
|
55134
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
55132
55135
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
55133
55136
|
delivery: "delivery";
|
|
55134
55137
|
collection: "collection";
|
|
@@ -58055,6 +58058,7 @@ declare const getOrdersQuerySchema: z.ZodObject<{
|
|
|
58055
58058
|
origin: "origin";
|
|
58056
58059
|
destination: "destination";
|
|
58057
58060
|
}>>;
|
|
58061
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
58058
58062
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
58059
58063
|
delivery: "delivery";
|
|
58060
58064
|
collection: "collection";
|
|
@@ -59697,6 +59701,7 @@ declare class GetOrders extends AbstractApiRequest<typeof getOrdersInputSchema,
|
|
|
59697
59701
|
origin: "origin";
|
|
59698
59702
|
destination: "destination";
|
|
59699
59703
|
}>>;
|
|
59704
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
59700
59705
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
59701
59706
|
delivery: "delivery";
|
|
59702
59707
|
collection: "collection";
|
|
@@ -60637,6 +60642,7 @@ declare const getPointOfSaleOrdersQuerySchema: z.ZodObject<{
|
|
|
60637
60642
|
origin: "origin";
|
|
60638
60643
|
destination: "destination";
|
|
60639
60644
|
}>>;
|
|
60645
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
60640
60646
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
60641
60647
|
delivery: "delivery";
|
|
60642
60648
|
collection: "collection";
|
|
@@ -62279,6 +62285,7 @@ declare class GetPointOfSaleOrders extends AbstractApiRequest<typeof getPointOfS
|
|
|
62279
62285
|
origin: "origin";
|
|
62280
62286
|
destination: "destination";
|
|
62281
62287
|
}>>;
|
|
62288
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
62282
62289
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
62283
62290
|
delivery: "delivery";
|
|
62284
62291
|
collection: "collection";
|
package/dist/index.js
CHANGED
|
@@ -1115,6 +1115,7 @@ var bundlesQuerySchema = z8.object({
|
|
|
1115
1115
|
page: z8.coerce.number().optional()
|
|
1116
1116
|
}).extend(timestampsFilterSchema.shape);
|
|
1117
1117
|
var ordersQuerySchema = z8.object({
|
|
1118
|
+
id: z8.union([z8.string().min(1), z8.array(z8.string().min(1)).min(1)]).optional(),
|
|
1118
1119
|
type: z8.union([orderTypeSchema, z8.array(orderTypeSchema)]).optional(),
|
|
1119
1120
|
source: z8.union([orderSourceSchema, z8.array(orderSourceSchema)]).optional(),
|
|
1120
1121
|
status: z8.union([orderStatusSchema, z8.array(orderStatusSchema)]).optional(),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-order",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Order Management",
|
|
4
|
-
"version": "2.46.
|
|
4
|
+
"version": "2.46.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"zod": "4.3.5",
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-integration-types": "2.46.
|
|
25
|
-
"@deliverart/sdk-js-menu": "2.46.
|
|
26
|
-
"@deliverart/sdk-js-payment": "2.46.
|
|
27
|
-
"@deliverart/sdk-js-
|
|
28
|
-
"@deliverart/sdk-js-
|
|
29
|
-
"@deliverart/sdk-js-
|
|
30
|
-
"@deliverart/sdk-js-user": "2.46.
|
|
22
|
+
"@deliverart/sdk-js-customer": "2.46.1",
|
|
23
|
+
"@deliverart/sdk-js-core": "2.46.1",
|
|
24
|
+
"@deliverart/sdk-js-integration-types": "2.46.1",
|
|
25
|
+
"@deliverart/sdk-js-menu": "2.46.1",
|
|
26
|
+
"@deliverart/sdk-js-payment": "2.46.1",
|
|
27
|
+
"@deliverart/sdk-js-sales-mode": "2.46.1",
|
|
28
|
+
"@deliverart/sdk-js-global-types": "2.46.1",
|
|
29
|
+
"@deliverart/sdk-js-point-of-sale": "2.46.1",
|
|
30
|
+
"@deliverart/sdk-js-user": "2.46.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@vitest/coverage-v8": "4.1.11",
|