@jsdev_ninja/core 0.13.51 → 0.13.53

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.
@@ -803,7 +803,7 @@ export declare const OrderSchema: z.ZodObject<{
803
803
  isAnonymous: z.ZodBoolean;
804
804
  createdDate: z.ZodNumber;
805
805
  lastActivityDate: z.ZodNumber;
806
- paymentType: z.ZodEnum<["external", "j5", "none"]>;
806
+ paymentType: z.ZodOptional<z.ZodEnum<["external", "j5", "none"]>>;
807
807
  organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
808
808
  }, "strip", z.ZodTypeAny, {
809
809
  type: "Profile";
@@ -817,7 +817,6 @@ export declare const OrderSchema: z.ZodObject<{
817
817
  isAnonymous: boolean;
818
818
  createdDate: number;
819
819
  lastActivityDate: number;
820
- paymentType: "none" | "external" | "j5";
821
820
  companyName?: string | undefined;
822
821
  phoneNumber?: string | undefined;
823
822
  address?: {
@@ -829,6 +828,7 @@ export declare const OrderSchema: z.ZodObject<{
829
828
  apartmentEnterNumber?: string | undefined;
830
829
  apartmentNumber?: string | undefined;
831
830
  } | undefined;
831
+ paymentType?: "none" | "external" | "j5" | undefined;
832
832
  organizationId?: string | null | undefined;
833
833
  }, {
834
834
  type: "Profile";
@@ -842,7 +842,6 @@ export declare const OrderSchema: z.ZodObject<{
842
842
  isAnonymous: boolean;
843
843
  createdDate: number;
844
844
  lastActivityDate: number;
845
- paymentType: "none" | "external" | "j5";
846
845
  companyName?: string | undefined;
847
846
  phoneNumber?: string | undefined;
848
847
  address?: {
@@ -854,6 +853,7 @@ export declare const OrderSchema: z.ZodObject<{
854
853
  apartmentEnterNumber?: string | undefined;
855
854
  apartmentNumber?: string | undefined;
856
855
  } | undefined;
856
+ paymentType?: "none" | "external" | "j5" | undefined;
857
857
  organizationId?: string | null | undefined;
858
858
  }>>;
859
859
  address: z.ZodOptional<z.ZodObject<{
@@ -1453,7 +1453,6 @@ export declare const OrderSchema: z.ZodObject<{
1453
1453
  isAnonymous: boolean;
1454
1454
  createdDate: number;
1455
1455
  lastActivityDate: number;
1456
- paymentType: "none" | "external" | "j5";
1457
1456
  companyName?: string | undefined;
1458
1457
  phoneNumber?: string | undefined;
1459
1458
  address?: {
@@ -1465,6 +1464,7 @@ export declare const OrderSchema: z.ZodObject<{
1465
1464
  apartmentEnterNumber?: string | undefined;
1466
1465
  apartmentNumber?: string | undefined;
1467
1466
  } | undefined;
1467
+ paymentType?: "none" | "external" | "j5" | undefined;
1468
1468
  organizationId?: string | null | undefined;
1469
1469
  } | undefined;
1470
1470
  emailOnInvoice?: string | undefined;
@@ -1721,7 +1721,6 @@ export declare const OrderSchema: z.ZodObject<{
1721
1721
  isAnonymous: boolean;
1722
1722
  createdDate: number;
1723
1723
  lastActivityDate: number;
1724
- paymentType: "none" | "external" | "j5";
1725
1724
  companyName?: string | undefined;
1726
1725
  phoneNumber?: string | undefined;
1727
1726
  address?: {
@@ -1733,6 +1732,7 @@ export declare const OrderSchema: z.ZodObject<{
1733
1732
  apartmentEnterNumber?: string | undefined;
1734
1733
  apartmentNumber?: string | undefined;
1735
1734
  } | undefined;
1735
+ paymentType?: "none" | "external" | "j5" | undefined;
1736
1736
  organizationId?: string | null | undefined;
1737
1737
  } | undefined;
1738
1738
  emailOnInvoice?: string | undefined;
@@ -22,7 +22,7 @@ export const OrderSchema = z.object({
22
22
  userId: notEmptyTextSchema,
23
23
  status: z.enum([
24
24
  "draft", // before payment
25
- "pending", // after payment
25
+ "pending", // after payment or external payment
26
26
  "processing", // after admin approve
27
27
  "in_delivery", //
28
28
  "delivered",
@@ -38,7 +38,7 @@ export declare const ProfileSchema: z.ZodObject<{
38
38
  isAnonymous: z.ZodBoolean;
39
39
  createdDate: z.ZodNumber;
40
40
  lastActivityDate: z.ZodNumber;
41
- paymentType: z.ZodEnum<["external", "j5", "none"]>;
41
+ paymentType: z.ZodOptional<z.ZodEnum<["external", "j5", "none"]>>;
42
42
  organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  type: "Profile";
@@ -52,7 +52,6 @@ export declare const ProfileSchema: z.ZodObject<{
52
52
  isAnonymous: boolean;
53
53
  createdDate: number;
54
54
  lastActivityDate: number;
55
- paymentType: "none" | "external" | "j5";
56
55
  companyName?: string | undefined;
57
56
  phoneNumber?: string | undefined;
58
57
  address?: {
@@ -64,6 +63,7 @@ export declare const ProfileSchema: z.ZodObject<{
64
63
  apartmentEnterNumber?: string | undefined;
65
64
  apartmentNumber?: string | undefined;
66
65
  } | undefined;
66
+ paymentType?: "none" | "external" | "j5" | undefined;
67
67
  organizationId?: string | null | undefined;
68
68
  }, {
69
69
  type: "Profile";
@@ -77,7 +77,6 @@ export declare const ProfileSchema: z.ZodObject<{
77
77
  isAnonymous: boolean;
78
78
  createdDate: number;
79
79
  lastActivityDate: number;
80
- paymentType: "none" | "external" | "j5";
81
80
  companyName?: string | undefined;
82
81
  phoneNumber?: string | undefined;
83
82
  address?: {
@@ -89,6 +88,7 @@ export declare const ProfileSchema: z.ZodObject<{
89
88
  apartmentEnterNumber?: string | undefined;
90
89
  apartmentNumber?: string | undefined;
91
90
  } | undefined;
91
+ paymentType?: "none" | "external" | "j5" | undefined;
92
92
  organizationId?: string | null | undefined;
93
93
  }>;
94
94
  export type TProfile = z.infer<typeof ProfileSchema>;
@@ -17,6 +17,6 @@ export const ProfileSchema = z.object({
17
17
  isAnonymous: z.boolean(),
18
18
  createdDate: z.number(),
19
19
  lastActivityDate: z.number(),
20
- paymentType: PaymentTypeSchema,
20
+ paymentType: PaymentTypeSchema.optional(),
21
21
  organizationId: z.string().optional().nullable(),
22
22
  });