@bizmap/sdk 0.0.12 → 0.0.13

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 CHANGED
@@ -53,11 +53,13 @@ declare const CompanyOpState: z.ZodObject<{
53
53
  lastModified: z.ZodNullable<z.ZodNumber>;
54
54
  uid: z.ZodReadonly<z.ZodString>;
55
55
  availableBalance: z.ZodNumber;
56
- userProvisions: z.ZodNumber;
57
- apptDistAlg: z.ZodEnum<{
58
- RR: "RR";
59
- LOR: "LOR";
60
- }>;
56
+ preferences: z.ZodObject<{
57
+ userProvisions: z.ZodNumber;
58
+ apptDistAlg: z.ZodEnum<{
59
+ RR: "RR";
60
+ LOR: "LOR";
61
+ }>;
62
+ }, z.core.$strip>;
61
63
  }, z.core.$strip>;
62
64
  type CompanyOpState = z.infer<typeof CompanyOpState>;
63
65
  declare const CompanyBillingModel: z.ZodObject<{
package/dist/main.js CHANGED
@@ -79,14 +79,18 @@ var CompanyIdentity = z4.object({
79
79
  var CompanyOpState = z4.object({
80
80
  // The company's uid
81
81
  uid: CompanyIdentity.shape.uid,
82
+ // This can only be changed by the server/app admin
82
83
  availableBalance: z4.number(),
83
- /** The amount of user provisions made for this company */
84
- userProvisions: z4.number(),
85
- /**
86
- * @property RR (Round Robin): Even distribution.
87
- * @property LOR (Least Outstanding Requests): Distribute based on availability.
88
- */
89
- apptDistAlg: appointmentDistAlgs,
84
+ // This can be changed by the company's admin
85
+ preferences: z4.object({
86
+ /** The amount of user provisions made for this company */
87
+ userProvisions: z4.number(),
88
+ /**
89
+ * @property RR (Round Robin): Even distribution.
90
+ * @property LOR (Least Outstanding Requests): Distribute based on availability.
91
+ */
92
+ apptDistAlg: appointmentDistAlgs
93
+ }),
90
94
  ...TimeLog.shape
91
95
  });
92
96
  var CompanyBillingModel = z4.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",