@floristcloud/api-lib 1.2.85 → 1.2.86

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.
@@ -2,7 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConsignmentItemsDeleteActionLogSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const ConsignmentItemBriefSchema = zod_1.z.object({
6
+ productUUID: zod_1.z.string(),
7
+ productName: zod_1.z.string(),
8
+ });
5
9
  exports.ConsignmentItemsDeleteActionLogSchema = zod_1.z.object({
6
10
  consignmentUUID: zod_1.z.string(),
7
11
  count: zod_1.z.coerce.number(),
12
+ // Optional snapshot of deleted items; absent on legacy records and on the consignment-cascade delete (count only).
13
+ products: zod_1.z.array(ConsignmentItemBriefSchema).optional(),
8
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floristcloud/api-lib",
3
- "version": "1.2.85",
3
+ "version": "1.2.86",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -1,6 +1,13 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ const ConsignmentItemBriefSchema = z.object({
4
+ productUUID: z.string(),
5
+ productName: z.string(),
6
+ });
7
+
3
8
  export const ConsignmentItemsDeleteActionLogSchema = z.object({
4
9
  consignmentUUID: z.string(),
5
10
  count: z.coerce.number(),
11
+ // Optional snapshot of deleted items; absent on legacy records and on the consignment-cascade delete (count only).
12
+ products: z.array(ConsignmentItemBriefSchema).optional(),
6
13
  });