@bizmap/sdk 0.0.10 → 0.0.11
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 +6 -7
- package/dist/main.js +6 -4
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare const PriceTag: z.ZodObject<{
|
|
|
20
20
|
createdAt: z.ZodReadonly<z.ZodNumber>;
|
|
21
21
|
lastModified: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
uid: z.ZodString;
|
|
23
|
-
|
|
23
|
+
item: z.ZodString;
|
|
24
24
|
cost: z.ZodNumber;
|
|
25
25
|
}, z.core.$strip>;
|
|
26
26
|
type PriceTag = z.infer<typeof PriceTag>;
|
|
@@ -78,6 +78,9 @@ declare const CompanyBillingModel: z.ZodObject<{
|
|
|
78
78
|
primaryCurrency: z.ZodEnum<{
|
|
79
79
|
JMD: "JMD";
|
|
80
80
|
}>;
|
|
81
|
+
acceptedCurrencies: z.ZodArray<z.ZodEnum<{
|
|
82
|
+
JMD: "JMD";
|
|
83
|
+
}>>;
|
|
81
84
|
additionalFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
82
85
|
createdAt: z.ZodReadonly<z.ZodNumber>;
|
|
83
86
|
lastModified: z.ZodNullable<z.ZodNumber>;
|
|
@@ -95,13 +98,9 @@ declare const CompanyBillingModel: z.ZodObject<{
|
|
|
95
98
|
services: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
99
|
createdAt: z.ZodReadonly<z.ZodNumber>;
|
|
97
100
|
lastModified: z.ZodNullable<z.ZodNumber>;
|
|
98
|
-
|
|
99
|
-
name: z.ZodString;
|
|
101
|
+
item: z.ZodString;
|
|
100
102
|
cost: z.ZodNumber;
|
|
101
103
|
}, z.core.$strip>>>;
|
|
102
|
-
acceptedCurrencies: z.ZodArray<z.ZodEnum<{
|
|
103
|
-
JMD: "JMD";
|
|
104
|
-
}>>;
|
|
105
104
|
}, z.core.$strip>;
|
|
106
105
|
type CompanyBillingModel = z.infer<typeof CompanyBillingModel>;
|
|
107
106
|
declare const RegisterCompanyForm: z.ZodObject<{
|
|
@@ -228,7 +227,7 @@ declare const StaffDetails: z.ZodObject<{
|
|
|
228
227
|
uid: z.ZodString;
|
|
229
228
|
}, z.core.$strip>>;
|
|
230
229
|
partnerMap: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
231
|
-
|
|
230
|
+
blackList: z.ZodArray<z.ZodString>;
|
|
232
231
|
}, z.core.$strip>;
|
|
233
232
|
type StaffDetails = z.infer<typeof StaffDetails>;
|
|
234
233
|
|
package/dist/main.js
CHANGED
|
@@ -25,7 +25,8 @@ var PriceAdjustment = z2.object({
|
|
|
25
25
|
});
|
|
26
26
|
var PriceTag = z2.object({
|
|
27
27
|
uid: z2.string(),
|
|
28
|
-
name
|
|
28
|
+
/**The name of the item that's being priced */
|
|
29
|
+
item: z2.string(),
|
|
29
30
|
cost: z2.number(),
|
|
30
31
|
...TimeLog.shape
|
|
31
32
|
});
|
|
@@ -105,13 +106,14 @@ var CompanyPreferences = z4.object({
|
|
|
105
106
|
});
|
|
106
107
|
var CompanyBillingModel = z4.object({
|
|
107
108
|
uid: CompanyIdentity.shape.uid,
|
|
109
|
+
// Preferences
|
|
108
110
|
/** The user that provides the bill to the client */
|
|
109
111
|
biller: companyUserRoles.extract(["doc", "fdc"]),
|
|
110
112
|
primaryCurrency: currencies,
|
|
113
|
+
acceptedCurrencies: z4.array(currencies),
|
|
111
114
|
additionalFees: z4.array(PriceAdjustment).optional(),
|
|
112
115
|
discounts: z4.array(PriceAdjustment).optional(),
|
|
113
|
-
services: z4.array(PriceTag).optional(),
|
|
114
|
-
acceptedCurrencies: z4.array(currencies),
|
|
116
|
+
services: z4.array(PriceTag.omit({ uid: true })).optional(),
|
|
115
117
|
...TimeLog.shape
|
|
116
118
|
});
|
|
117
119
|
var RegisterCompanyForm = z4.object({
|
|
@@ -143,7 +145,7 @@ var StaffDetails = z4.object({
|
|
|
143
145
|
* @relationship one -> many
|
|
144
146
|
*@description A map of doctor `uids` to their assistants `uids` */
|
|
145
147
|
partnerMap: z4.record(CompanyUser.shape.uid, z4.array(CompanyUser.shape.uid)),
|
|
146
|
-
|
|
148
|
+
blackList: z4.array(CompanyUser.shape.uid)
|
|
147
149
|
});
|
|
148
150
|
export {
|
|
149
151
|
CompanyBillingModel,
|