@jsdev_ninja/core 0.13.22 → 0.13.24

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.
@@ -31,7 +31,7 @@ export const EzDeliveryNoteSchema = z.object({
31
31
  export const DeliveryNoteSchema = z.object({
32
32
  id: z.string().min(1, "ID is required"),
33
33
  number: z.string().min(1, "Number is required"),
34
- date: z.string().min(1, "Date is required"),
34
+ date: z.number().min(1, "Date is required"),
35
35
  createdAt: z.number().min(1, "Created at is required"),
36
36
  status: z.enum(["pending", "paid", "cancelled"]),
37
37
  companyDetails: z
@@ -2,9 +2,9 @@ import { z } from "zod";
2
2
  import { ProfileSchema } from "./Profile";
3
3
  import { notEmptyTextSchema } from "./Atoms";
4
4
  import { CartItemProductSchema } from "./Cart";
5
- import { DeliveryNoteSchema } from "./DeliveryNote";
5
+ import { DeliveryNoteSchema, EzDeliveryNoteSchema } from "./DeliveryNote";
6
6
  import { BillingAccountSchema } from "./Organization";
7
- import { InvoiceSchema } from "./Invoice";
7
+ import { EzInvoiceSchema, InvoiceSchema } from "./Invoice";
8
8
 
9
9
  // pending - order created / by user
10
10
  // processing order accepted by store by admin
@@ -47,10 +47,12 @@ export const OrderSchema = z.object({
47
47
  client: ProfileSchema.required({}),
48
48
  nameOnInvoice: z.string().optional(),
49
49
  clientComment: z.string().optional(),
50
- deliveryNote: DeliveryNoteSchema.optional(),
51
- invoice: InvoiceSchema.optional(),
52
50
  organizationId: z.string().optional(),
53
51
  billingAccount: BillingAccountSchema.optional(),
52
+ deliveryNote: DeliveryNoteSchema.optional(),
53
+ invoice: InvoiceSchema.optional(),
54
+ ezInvoice: EzInvoiceSchema.optional(),
55
+ ezDeliveryNote: EzDeliveryNoteSchema.optional(),
54
56
  });
55
57
 
56
58
  export type TOrder = z.infer<typeof OrderSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsdev_ninja/core",
3
- "version": "0.13.22",
3
+ "version": "0.13.24",
4
4
  "main": "dist/core.cjs.js",
5
5
  "module": "dist/core.es.js",
6
6
  "types": "dist/index.d.ts",