@nyig/models 0.6.7 → 0.6.8
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.
- package/index.d.mts +6 -3
- package/index.d.ts +6 -3
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -8746,19 +8746,20 @@ type LoginResponse = z.infer<typeof zLoginResponse>;
|
|
|
8746
8746
|
declare const zBProduct: z.ZodObject<{
|
|
8747
8747
|
name: z.ZodString;
|
|
8748
8748
|
price: z.ZodNumber;
|
|
8749
|
-
|
|
8749
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
8750
8750
|
}, "strip", z.ZodTypeAny, {
|
|
8751
8751
|
name: string;
|
|
8752
8752
|
price: number;
|
|
8753
|
-
|
|
8753
|
+
notes?: string | undefined;
|
|
8754
8754
|
}, {
|
|
8755
8755
|
name: string;
|
|
8756
8756
|
price: number;
|
|
8757
|
-
|
|
8757
|
+
notes?: string | undefined;
|
|
8758
8758
|
}>;
|
|
8759
8759
|
declare const zProduct: z.ZodObject<{
|
|
8760
8760
|
name: z.ZodString;
|
|
8761
8761
|
price: z.ZodNumber;
|
|
8762
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
8762
8763
|
} & {
|
|
8763
8764
|
_id: z.ZodString;
|
|
8764
8765
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -8768,6 +8769,7 @@ declare const zProduct: z.ZodObject<{
|
|
|
8768
8769
|
_id: string;
|
|
8769
8770
|
name: string;
|
|
8770
8771
|
price: number;
|
|
8772
|
+
notes?: string | undefined;
|
|
8771
8773
|
editedBy?: string | undefined;
|
|
8772
8774
|
createdAt?: string | undefined;
|
|
8773
8775
|
updatedAt?: string | undefined;
|
|
@@ -8775,6 +8777,7 @@ declare const zProduct: z.ZodObject<{
|
|
|
8775
8777
|
_id: string;
|
|
8776
8778
|
name: string;
|
|
8777
8779
|
price: number;
|
|
8780
|
+
notes?: string | undefined;
|
|
8778
8781
|
editedBy?: string | undefined;
|
|
8779
8782
|
createdAt?: string | undefined;
|
|
8780
8783
|
updatedAt?: string | undefined;
|
package/index.d.ts
CHANGED
|
@@ -8746,19 +8746,20 @@ type LoginResponse = z.infer<typeof zLoginResponse>;
|
|
|
8746
8746
|
declare const zBProduct: z.ZodObject<{
|
|
8747
8747
|
name: z.ZodString;
|
|
8748
8748
|
price: z.ZodNumber;
|
|
8749
|
-
|
|
8749
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
8750
8750
|
}, "strip", z.ZodTypeAny, {
|
|
8751
8751
|
name: string;
|
|
8752
8752
|
price: number;
|
|
8753
|
-
|
|
8753
|
+
notes?: string | undefined;
|
|
8754
8754
|
}, {
|
|
8755
8755
|
name: string;
|
|
8756
8756
|
price: number;
|
|
8757
|
-
|
|
8757
|
+
notes?: string | undefined;
|
|
8758
8758
|
}>;
|
|
8759
8759
|
declare const zProduct: z.ZodObject<{
|
|
8760
8760
|
name: z.ZodString;
|
|
8761
8761
|
price: z.ZodNumber;
|
|
8762
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
8762
8763
|
} & {
|
|
8763
8764
|
_id: z.ZodString;
|
|
8764
8765
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -8768,6 +8769,7 @@ declare const zProduct: z.ZodObject<{
|
|
|
8768
8769
|
_id: string;
|
|
8769
8770
|
name: string;
|
|
8770
8771
|
price: number;
|
|
8772
|
+
notes?: string | undefined;
|
|
8771
8773
|
editedBy?: string | undefined;
|
|
8772
8774
|
createdAt?: string | undefined;
|
|
8773
8775
|
updatedAt?: string | undefined;
|
|
@@ -8775,6 +8777,7 @@ declare const zProduct: z.ZodObject<{
|
|
|
8775
8777
|
_id: string;
|
|
8776
8778
|
name: string;
|
|
8777
8779
|
price: number;
|
|
8780
|
+
notes?: string | undefined;
|
|
8778
8781
|
editedBy?: string | undefined;
|
|
8779
8782
|
createdAt?: string | undefined;
|
|
8780
8783
|
updatedAt?: string | undefined;
|
package/index.js
CHANGED
|
@@ -968,7 +968,7 @@ var import_zod32 = require("zod");
|
|
|
968
968
|
var zBProduct = import_zod32.z.object({
|
|
969
969
|
name: import_zod32.z.string().min(1, "Name is required"),
|
|
970
970
|
price: import_zod32.z.number().min(0, "Price cannot be negative"),
|
|
971
|
-
|
|
971
|
+
notes: import_zod32.z.string().optional()
|
|
972
972
|
});
|
|
973
973
|
var zProduct = addAutoProps(zBProduct);
|
|
974
974
|
// Annotate the CommonJS export names for ESM import in node:
|
package/index.mjs
CHANGED
|
@@ -858,7 +858,7 @@ import { z as z32 } from "zod";
|
|
|
858
858
|
var zBProduct = z32.object({
|
|
859
859
|
name: z32.string().min(1, "Name is required"),
|
|
860
860
|
price: z32.number().min(0, "Price cannot be negative"),
|
|
861
|
-
|
|
861
|
+
notes: z32.string().optional()
|
|
862
862
|
});
|
|
863
863
|
var zProduct = addAutoProps(zBProduct);
|
|
864
864
|
export {
|