@jsdev_ninja/core 0.8.1 → 0.8.2

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.
@@ -813,31 +813,6 @@ export declare const OrderSchema: z.ZodObject<{
813
813
  createdDate: number;
814
814
  lastActivityDate: number;
815
815
  }>;
816
- address: z.ZodObject<{
817
- country: z.ZodString;
818
- city: z.ZodString;
819
- street: z.ZodString;
820
- streetNumber: z.ZodString;
821
- floor: z.ZodString;
822
- apartmentEnterNumber: z.ZodString;
823
- apartmentNumber: z.ZodString;
824
- }, "strip", z.ZodTypeAny, {
825
- country: string;
826
- city: string;
827
- street: string;
828
- streetNumber: string;
829
- floor: string;
830
- apartmentEnterNumber: string;
831
- apartmentNumber: string;
832
- }, {
833
- country: string;
834
- city: string;
835
- street: string;
836
- streetNumber: string;
837
- floor: string;
838
- apartmentEnterNumber: string;
839
- apartmentNumber: string;
840
- }>;
841
816
  }, "strip", z.ZodTypeAny, {
842
817
  type: "Order";
843
818
  status: "pending" | "processing" | "delivered" | "canceled" | "completed" | "refunded";
@@ -845,15 +820,6 @@ export declare const OrderSchema: z.ZodObject<{
845
820
  id: string;
846
821
  companyId: string;
847
822
  storeId: string;
848
- address: {
849
- country: string;
850
- city: string;
851
- street: string;
852
- streetNumber: string;
853
- floor: string;
854
- apartmentEnterNumber: string;
855
- apartmentNumber: string;
856
- };
857
823
  userId: string;
858
824
  paymentStatus: "pending" | "completed" | "refunded" | "failed";
859
825
  cart: {
@@ -984,15 +950,6 @@ export declare const OrderSchema: z.ZodObject<{
984
950
  id: string;
985
951
  companyId: string;
986
952
  storeId: string;
987
- address: {
988
- country: string;
989
- city: string;
990
- street: string;
991
- streetNumber: string;
992
- floor: string;
993
- apartmentEnterNumber: string;
994
- apartmentNumber: string;
995
- };
996
953
  userId: string;
997
954
  paymentStatus: "pending" | "completed" | "refunded" | "failed";
998
955
  cart: {
@@ -1 +1 @@
1
- {"version":3,"file":"Order.d.ts","sourceRo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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBtB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import { AddressSchema } from "./Address";
3
2
  import { ProfileSchema } from "./Profile";
4
3
  import { ProductSchema } from "./Product";
5
4
  // pending - order created / by user
@@ -26,5 +25,4 @@ export const OrderSchema = z.object({
26
25
  date: z.number(),
27
26
  deliveryDate: z.number().optional(),
28
27
  client: ProfileSchema,
29
- address: AddressSchema,
30
28
  });
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import { AddressSchema } from "./Address";
3
2
  import { ProfileSchema } from "./Profile";
4
3
  import { ProductSchema } from "./Product";
5
4
 
@@ -29,7 +28,6 @@ export const OrderSchema = z.object({
29
28
  date: z.number(),
30
29
  deliveryDate: z.number().optional(),
31
30
  client: ProfileSchema,
32
- address: AddressSchema,
33
31
  });
34
32
 
35
33
  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.8.1",
3
+ "version": "0.8.2",
4
4
  "main": "dist/core.cjs.js",
5
5
  "module": "dist/core.es.js",
6
6
  "types": "dist/index.d.ts",