@blackcode_sa/metaestetics-api 1.15.3 → 1.15.4
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/dist/index.js +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
- package/src/validations/appointment.schema.ts +6 -0
package/dist/index.js
CHANGED
|
@@ -3929,6 +3929,12 @@ var billingPerZoneSchema = import_zod3.z.object({
|
|
|
3929
3929
|
});
|
|
3930
3930
|
var finalBillingSchema = import_zod3.z.object({
|
|
3931
3931
|
subtotalAll: import_zod3.z.number().min(0, "Subtotal all must be non-negative"),
|
|
3932
|
+
discount: import_zod3.z.object({
|
|
3933
|
+
type: import_zod3.z.enum(["percentage", "fixed"]),
|
|
3934
|
+
value: import_zod3.z.number().min(0),
|
|
3935
|
+
amount: import_zod3.z.number().min(0)
|
|
3936
|
+
}).optional(),
|
|
3937
|
+
discountedSubtotal: import_zod3.z.number().min(0).optional(),
|
|
3932
3938
|
taxRate: import_zod3.z.number().min(0).max(1, "Tax rate must be between 0 and 1"),
|
|
3933
3939
|
taxPrice: import_zod3.z.number().min(0, "Tax price must be non-negative"),
|
|
3934
3940
|
finalPrice: import_zod3.z.number().min(0, "Final price must be non-negative"),
|
package/dist/index.mjs
CHANGED
|
@@ -3782,6 +3782,12 @@ var billingPerZoneSchema = z3.object({
|
|
|
3782
3782
|
});
|
|
3783
3783
|
var finalBillingSchema = z3.object({
|
|
3784
3784
|
subtotalAll: z3.number().min(0, "Subtotal all must be non-negative"),
|
|
3785
|
+
discount: z3.object({
|
|
3786
|
+
type: z3.enum(["percentage", "fixed"]),
|
|
3787
|
+
value: z3.number().min(0),
|
|
3788
|
+
amount: z3.number().min(0)
|
|
3789
|
+
}).optional(),
|
|
3790
|
+
discountedSubtotal: z3.number().min(0).optional(),
|
|
3785
3791
|
taxRate: z3.number().min(0).max(1, "Tax rate must be between 0 and 1"),
|
|
3786
3792
|
taxPrice: z3.number().min(0, "Tax price must be non-negative"),
|
|
3787
3793
|
finalPrice: z3.number().min(0, "Final price must be non-negative"),
|
package/package.json
CHANGED
|
@@ -172,6 +172,12 @@ export const billingPerZoneSchema = z.object({
|
|
|
172
172
|
*/
|
|
173
173
|
export const finalBillingSchema = z.object({
|
|
174
174
|
subtotalAll: z.number().min(0, 'Subtotal all must be non-negative'),
|
|
175
|
+
discount: z.object({
|
|
176
|
+
type: z.enum(['percentage', 'fixed']),
|
|
177
|
+
value: z.number().min(0),
|
|
178
|
+
amount: z.number().min(0),
|
|
179
|
+
}).optional(),
|
|
180
|
+
discountedSubtotal: z.number().min(0).optional(),
|
|
175
181
|
taxRate: z.number().min(0).max(1, 'Tax rate must be between 0 and 1'),
|
|
176
182
|
taxPrice: z.number().min(0, 'Tax price must be non-negative'),
|
|
177
183
|
finalPrice: z.number().min(0, 'Final price must be non-negative'),
|