@nyig/models 0.4.16 → 0.4.17
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 +13 -22
- package/index.d.ts +13 -22
- package/index.js +2 -3
- package/index.mjs +2 -3
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -3517,7 +3517,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3517
3517
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3518
3518
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3519
3519
|
createdBy: z.ZodString;
|
|
3520
|
-
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
3521
3520
|
}, "strip", z.ZodTypeAny, {
|
|
3522
3521
|
billTo: string;
|
|
3523
3522
|
packages: {
|
|
@@ -3539,7 +3538,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3539
3538
|
paid?: PaymentMethod | undefined;
|
|
3540
3539
|
paidAt?: string | undefined;
|
|
3541
3540
|
showEin?: boolean | undefined;
|
|
3542
|
-
lastEditBy?: string | undefined;
|
|
3543
3541
|
}, {
|
|
3544
3542
|
billTo: string;
|
|
3545
3543
|
packages: {
|
|
@@ -3561,7 +3559,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3561
3559
|
paid?: PaymentMethod | undefined;
|
|
3562
3560
|
paidAt?: string | undefined;
|
|
3563
3561
|
showEin?: boolean | undefined;
|
|
3564
|
-
lastEditBy?: string | undefined;
|
|
3565
3562
|
}>;
|
|
3566
3563
|
declare const zInvoice: z.ZodObject<{
|
|
3567
3564
|
billTo: z.ZodString;
|
|
@@ -3612,7 +3609,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3612
3609
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3613
3610
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3614
3611
|
createdBy: z.ZodString;
|
|
3615
|
-
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
3616
3612
|
} & {
|
|
3617
3613
|
_id: z.ZodString;
|
|
3618
3614
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -3643,7 +3639,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3643
3639
|
paid?: PaymentMethod | undefined;
|
|
3644
3640
|
paidAt?: string | undefined;
|
|
3645
3641
|
showEin?: boolean | undefined;
|
|
3646
|
-
lastEditBy?: string | undefined;
|
|
3647
3642
|
}, {
|
|
3648
3643
|
_id: string;
|
|
3649
3644
|
billTo: string;
|
|
@@ -3669,7 +3664,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3669
3664
|
paid?: PaymentMethod | undefined;
|
|
3670
3665
|
paidAt?: string | undefined;
|
|
3671
3666
|
showEin?: boolean | undefined;
|
|
3672
|
-
lastEditBy?: string | undefined;
|
|
3673
3667
|
}>;
|
|
3674
3668
|
declare const zInvoiceResponse: z.ZodObject<{
|
|
3675
3669
|
billTo: z.ZodString;
|
|
@@ -3690,7 +3684,6 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
3690
3684
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3691
3685
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3692
3686
|
_id: z.ZodString;
|
|
3693
|
-
editedBy: z.ZodOptional<z.ZodString>;
|
|
3694
3687
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
3695
3688
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
3696
3689
|
} & {
|
|
@@ -3783,7 +3776,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
3783
3776
|
imageUrl?: string | undefined;
|
|
3784
3777
|
available?: number[][][] | undefined;
|
|
3785
3778
|
}>;
|
|
3786
|
-
|
|
3779
|
+
editedBy: z.ZodOptional<z.ZodObject<{
|
|
3787
3780
|
name: z.ZodString;
|
|
3788
3781
|
username: z.ZodOptional<z.ZodString>;
|
|
3789
3782
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -4084,13 +4077,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4084
4077
|
notes?: string | undefined;
|
|
4085
4078
|
textbook?: number | undefined;
|
|
4086
4079
|
shipping?: number | undefined;
|
|
4087
|
-
editedBy?:
|
|
4088
|
-
createdAt?: string | undefined;
|
|
4089
|
-
updatedAt?: string | undefined;
|
|
4090
|
-
paid?: PaymentMethod | undefined;
|
|
4091
|
-
paidAt?: string | undefined;
|
|
4092
|
-
showEin?: boolean | undefined;
|
|
4093
|
-
lastEditBy?: {
|
|
4080
|
+
editedBy?: {
|
|
4094
4081
|
rank: GoRank;
|
|
4095
4082
|
_id: string;
|
|
4096
4083
|
name: string;
|
|
@@ -4117,6 +4104,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4117
4104
|
imageUrl?: string | undefined;
|
|
4118
4105
|
available?: number[][][] | undefined;
|
|
4119
4106
|
} | undefined;
|
|
4107
|
+
createdAt?: string | undefined;
|
|
4108
|
+
updatedAt?: string | undefined;
|
|
4109
|
+
paid?: PaymentMethod | undefined;
|
|
4110
|
+
paidAt?: string | undefined;
|
|
4111
|
+
showEin?: boolean | undefined;
|
|
4120
4112
|
}, {
|
|
4121
4113
|
_id: string;
|
|
4122
4114
|
billTo: string;
|
|
@@ -4183,13 +4175,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4183
4175
|
notes?: string | undefined;
|
|
4184
4176
|
textbook?: number | undefined;
|
|
4185
4177
|
shipping?: number | undefined;
|
|
4186
|
-
editedBy?:
|
|
4187
|
-
createdAt?: string | undefined;
|
|
4188
|
-
updatedAt?: string | undefined;
|
|
4189
|
-
paid?: PaymentMethod | undefined;
|
|
4190
|
-
paidAt?: string | undefined;
|
|
4191
|
-
showEin?: boolean | undefined;
|
|
4192
|
-
lastEditBy?: {
|
|
4178
|
+
editedBy?: {
|
|
4193
4179
|
rank: GoRank;
|
|
4194
4180
|
_id: string;
|
|
4195
4181
|
name: string;
|
|
@@ -4216,6 +4202,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4216
4202
|
imageUrl?: string | undefined;
|
|
4217
4203
|
available?: number[][][] | undefined;
|
|
4218
4204
|
} | undefined;
|
|
4205
|
+
createdAt?: string | undefined;
|
|
4206
|
+
updatedAt?: string | undefined;
|
|
4207
|
+
paid?: PaymentMethod | undefined;
|
|
4208
|
+
paidAt?: string | undefined;
|
|
4209
|
+
showEin?: boolean | undefined;
|
|
4219
4210
|
}>;
|
|
4220
4211
|
type Discount = z.infer<typeof zDiscount>;
|
|
4221
4212
|
type InvoiceItem = z.infer<typeof zInvoiceItem>;
|
package/index.d.ts
CHANGED
|
@@ -3517,7 +3517,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3517
3517
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3518
3518
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3519
3519
|
createdBy: z.ZodString;
|
|
3520
|
-
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
3521
3520
|
}, "strip", z.ZodTypeAny, {
|
|
3522
3521
|
billTo: string;
|
|
3523
3522
|
packages: {
|
|
@@ -3539,7 +3538,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3539
3538
|
paid?: PaymentMethod | undefined;
|
|
3540
3539
|
paidAt?: string | undefined;
|
|
3541
3540
|
showEin?: boolean | undefined;
|
|
3542
|
-
lastEditBy?: string | undefined;
|
|
3543
3541
|
}, {
|
|
3544
3542
|
billTo: string;
|
|
3545
3543
|
packages: {
|
|
@@ -3561,7 +3559,6 @@ declare const zBInvoice: z.ZodObject<{
|
|
|
3561
3559
|
paid?: PaymentMethod | undefined;
|
|
3562
3560
|
paidAt?: string | undefined;
|
|
3563
3561
|
showEin?: boolean | undefined;
|
|
3564
|
-
lastEditBy?: string | undefined;
|
|
3565
3562
|
}>;
|
|
3566
3563
|
declare const zInvoice: z.ZodObject<{
|
|
3567
3564
|
billTo: z.ZodString;
|
|
@@ -3612,7 +3609,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3612
3609
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3613
3610
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3614
3611
|
createdBy: z.ZodString;
|
|
3615
|
-
lastEditBy: z.ZodOptional<z.ZodString>;
|
|
3616
3612
|
} & {
|
|
3617
3613
|
_id: z.ZodString;
|
|
3618
3614
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -3643,7 +3639,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3643
3639
|
paid?: PaymentMethod | undefined;
|
|
3644
3640
|
paidAt?: string | undefined;
|
|
3645
3641
|
showEin?: boolean | undefined;
|
|
3646
|
-
lastEditBy?: string | undefined;
|
|
3647
3642
|
}, {
|
|
3648
3643
|
_id: string;
|
|
3649
3644
|
billTo: string;
|
|
@@ -3669,7 +3664,6 @@ declare const zInvoice: z.ZodObject<{
|
|
|
3669
3664
|
paid?: PaymentMethod | undefined;
|
|
3670
3665
|
paidAt?: string | undefined;
|
|
3671
3666
|
showEin?: boolean | undefined;
|
|
3672
|
-
lastEditBy?: string | undefined;
|
|
3673
3667
|
}>;
|
|
3674
3668
|
declare const zInvoiceResponse: z.ZodObject<{
|
|
3675
3669
|
billTo: z.ZodString;
|
|
@@ -3690,7 +3684,6 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
3690
3684
|
showEin: z.ZodOptional<z.ZodBoolean>;
|
|
3691
3685
|
notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
3692
3686
|
_id: z.ZodString;
|
|
3693
|
-
editedBy: z.ZodOptional<z.ZodString>;
|
|
3694
3687
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
3695
3688
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
3696
3689
|
} & {
|
|
@@ -3783,7 +3776,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
3783
3776
|
imageUrl?: string | undefined;
|
|
3784
3777
|
available?: number[][][] | undefined;
|
|
3785
3778
|
}>;
|
|
3786
|
-
|
|
3779
|
+
editedBy: z.ZodOptional<z.ZodObject<{
|
|
3787
3780
|
name: z.ZodString;
|
|
3788
3781
|
username: z.ZodOptional<z.ZodString>;
|
|
3789
3782
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -4084,13 +4077,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4084
4077
|
notes?: string | undefined;
|
|
4085
4078
|
textbook?: number | undefined;
|
|
4086
4079
|
shipping?: number | undefined;
|
|
4087
|
-
editedBy?:
|
|
4088
|
-
createdAt?: string | undefined;
|
|
4089
|
-
updatedAt?: string | undefined;
|
|
4090
|
-
paid?: PaymentMethod | undefined;
|
|
4091
|
-
paidAt?: string | undefined;
|
|
4092
|
-
showEin?: boolean | undefined;
|
|
4093
|
-
lastEditBy?: {
|
|
4080
|
+
editedBy?: {
|
|
4094
4081
|
rank: GoRank;
|
|
4095
4082
|
_id: string;
|
|
4096
4083
|
name: string;
|
|
@@ -4117,6 +4104,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4117
4104
|
imageUrl?: string | undefined;
|
|
4118
4105
|
available?: number[][][] | undefined;
|
|
4119
4106
|
} | undefined;
|
|
4107
|
+
createdAt?: string | undefined;
|
|
4108
|
+
updatedAt?: string | undefined;
|
|
4109
|
+
paid?: PaymentMethod | undefined;
|
|
4110
|
+
paidAt?: string | undefined;
|
|
4111
|
+
showEin?: boolean | undefined;
|
|
4120
4112
|
}, {
|
|
4121
4113
|
_id: string;
|
|
4122
4114
|
billTo: string;
|
|
@@ -4183,13 +4175,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4183
4175
|
notes?: string | undefined;
|
|
4184
4176
|
textbook?: number | undefined;
|
|
4185
4177
|
shipping?: number | undefined;
|
|
4186
|
-
editedBy?:
|
|
4187
|
-
createdAt?: string | undefined;
|
|
4188
|
-
updatedAt?: string | undefined;
|
|
4189
|
-
paid?: PaymentMethod | undefined;
|
|
4190
|
-
paidAt?: string | undefined;
|
|
4191
|
-
showEin?: boolean | undefined;
|
|
4192
|
-
lastEditBy?: {
|
|
4178
|
+
editedBy?: {
|
|
4193
4179
|
rank: GoRank;
|
|
4194
4180
|
_id: string;
|
|
4195
4181
|
name: string;
|
|
@@ -4216,6 +4202,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
4216
4202
|
imageUrl?: string | undefined;
|
|
4217
4203
|
available?: number[][][] | undefined;
|
|
4218
4204
|
} | undefined;
|
|
4205
|
+
createdAt?: string | undefined;
|
|
4206
|
+
updatedAt?: string | undefined;
|
|
4207
|
+
paid?: PaymentMethod | undefined;
|
|
4208
|
+
paidAt?: string | undefined;
|
|
4209
|
+
showEin?: boolean | undefined;
|
|
4219
4210
|
}>;
|
|
4220
4211
|
type Discount = z.infer<typeof zDiscount>;
|
|
4221
4212
|
type InvoiceItem = z.infer<typeof zInvoiceItem>;
|
package/index.js
CHANGED
|
@@ -681,13 +681,12 @@ var zBInvoice = import_zod22.z.object({
|
|
|
681
681
|
paidAt: import_zod22.z.string().optional(),
|
|
682
682
|
showEin: import_zod22.z.boolean().optional(),
|
|
683
683
|
notes: import_zod22.z.string().or(import_zod22.z.literal("")).optional(),
|
|
684
|
-
createdBy: import_zod22.z.string()
|
|
685
|
-
lastEditBy: import_zod22.z.string().optional()
|
|
684
|
+
createdBy: import_zod22.z.string()
|
|
686
685
|
});
|
|
687
686
|
var zInvoice = addAutoProps(zBInvoice);
|
|
688
687
|
var zInvoiceResponse = zInvoice.extend({
|
|
689
688
|
createdBy: zTeacher,
|
|
690
|
-
|
|
689
|
+
editedBy: zTeacher.optional(),
|
|
691
690
|
packages: import_zod22.z.array(zInvoicePackageResponse)
|
|
692
691
|
});
|
|
693
692
|
|
package/index.mjs
CHANGED
|
@@ -573,13 +573,12 @@ var zBInvoice = z22.object({
|
|
|
573
573
|
paidAt: z22.string().optional(),
|
|
574
574
|
showEin: z22.boolean().optional(),
|
|
575
575
|
notes: z22.string().or(z22.literal("")).optional(),
|
|
576
|
-
createdBy: z22.string()
|
|
577
|
-
lastEditBy: z22.string().optional()
|
|
576
|
+
createdBy: z22.string()
|
|
578
577
|
});
|
|
579
578
|
var zInvoice = addAutoProps(zBInvoice);
|
|
580
579
|
var zInvoiceResponse = zInvoice.extend({
|
|
581
580
|
createdBy: zTeacher,
|
|
582
|
-
|
|
581
|
+
editedBy: zTeacher.optional(),
|
|
583
582
|
packages: z22.array(zInvoicePackageResponse)
|
|
584
583
|
});
|
|
585
584
|
|