@deepintel-ltd/farmpro-contracts 1.5.20 → 1.5.22

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.
@@ -1 +1 @@
1
- {"version":3,"file":"waybills.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/waybills.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBV,CAAC;AAG3B,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAexC,CAAC;AAGH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0C,CAAC;AAGrF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG9B,CAAC;AAGH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyD,CAAC;AAGhG,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -10,6 +10,7 @@ export const waybillItemSchema = z.object({
10
10
  unit: z.string().min(1).max(50),
11
11
  weight: z.number().positive().optional(),
12
12
  value: z.number().nonnegative().optional(),
13
+ itemNumber: z.number().int().positive().optional(),
13
14
  });
14
15
  // Waybill attributes schema
15
16
  export const waybillAttributesSchema = z.object({
@@ -29,6 +30,15 @@ export const waybillAttributesSchema = z.object({
29
30
  currency: z.string().length(3).default('NGN'),
30
31
  notes: z.string().optional().nullable(),
31
32
  pdfUrl: z.string().url().optional().nullable(),
33
+ // Transportation fields
34
+ truckNumber: z.string().optional().nullable(),
35
+ truckPlateNumber: z.string().optional().nullable(),
36
+ driverName: z.string().optional().nullable(),
37
+ driverPhone: z.string().optional().nullable(),
38
+ driverSignature: z.string().optional().nullable(),
39
+ transporterName: z.string().optional().nullable(),
40
+ dispatchedLocation: z.string().optional().nullable(),
41
+ receivedCondition: z.string().optional().nullable(),
32
42
  organizationId: z.string().uuid(),
33
43
  createdAt: z.string().datetime(),
34
44
  updatedAt: z.string().datetime(),
@@ -49,6 +59,15 @@ export const createWaybillAttributesSchema = z.object({
49
59
  totalValue: z.number().nonnegative().optional(),
50
60
  currency: z.string().length(3).default('NGN'),
51
61
  notes: z.string().optional(),
62
+ // Transportation fields
63
+ truckNumber: z.string().optional(),
64
+ truckPlateNumber: z.string().optional(),
65
+ driverName: z.string().optional(),
66
+ driverPhone: z.string().optional(),
67
+ driverSignature: z.string().optional(),
68
+ transporterName: z.string().optional(),
69
+ dispatchedLocation: z.string().optional(),
70
+ receivedCondition: z.string().optional(),
52
71
  });
53
72
  // Waybill attributes for update (input)
54
73
  export const updateWaybillAttributesSchema = createWaybillAttributesSchema.partial();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.5.20",
3
+ "version": "1.5.22",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",