@bizmap/sdk 0.0.22 → 0.0.23
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/main.d.ts +2 -2
- package/dist/main.js +2 -2
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ declare const CompanyBillingModel: z.ZodObject<{
|
|
|
72
72
|
createdAt: z.ZodReadonly<z.ZodNumber>;
|
|
73
73
|
lastModified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
74
74
|
allowInvoiceDist: z.ZodBoolean;
|
|
75
|
-
|
|
75
|
+
useCreatedServices: z.ZodBoolean;
|
|
76
76
|
serviceSelector: z.ZodEnum<{
|
|
77
77
|
scheduler: "scheduler";
|
|
78
78
|
doctor: "doctor";
|
|
@@ -338,7 +338,7 @@ declare const CompanyDetails: z.ZodObject<{
|
|
|
338
338
|
createdAt: z.ZodReadonly<z.ZodNumber>;
|
|
339
339
|
lastModified: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
340
340
|
allowInvoiceDist: z.ZodBoolean;
|
|
341
|
-
|
|
341
|
+
useCreatedServices: z.ZodBoolean;
|
|
342
342
|
serviceSelector: z.ZodEnum<{
|
|
343
343
|
scheduler: "scheduler";
|
|
344
344
|
doctor: "doctor";
|
package/dist/main.js
CHANGED
|
@@ -105,7 +105,7 @@ var CompanyBillingModel = z4.object({
|
|
|
105
105
|
/** Allows the serviceDecider to distribute invoices. */
|
|
106
106
|
allowInvoiceDist: z4.boolean(),
|
|
107
107
|
/** Forces service selectors to select service(s) from the created list of services. */
|
|
108
|
-
|
|
108
|
+
useCreatedServices: z4.boolean(),
|
|
109
109
|
/** The user that's allowed to record the client's services. */
|
|
110
110
|
serviceSelector: z4.enum(["scheduler", "doctor"]),
|
|
111
111
|
/** A record of the payments made must be attached before creating the
|
|
@@ -130,7 +130,7 @@ var CompanyBillingModel = z4.object({
|
|
|
130
130
|
...TimeLog.shape
|
|
131
131
|
}).superRefine((billing, ctx) => {
|
|
132
132
|
const totalServices = billing?.services?.length ?? 0;
|
|
133
|
-
if (billing?.preferences?.
|
|
133
|
+
if (billing?.preferences?.useCreatedServices && totalServices < 1) {
|
|
134
134
|
ctx.addIssue("At least (1) service must be added to the services list.");
|
|
135
135
|
}
|
|
136
136
|
});
|