@bizmap/sdk 0.0.17 → 0.0.18

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.
Files changed (2) hide show
  1. package/dist/main.js +4 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -86,7 +86,10 @@ var CompanyOpState = z4.object({
86
86
  // This can be changed by the company's admin
87
87
  preferences: z4.object({
88
88
  /** The amount of user provisions made for this company */
89
- userProvisions: z4.number().min(10, { error: "The total user provisions must atleast be 10." }).max(150, { error: "The total user provisions can't exceed 150" }),
89
+ userProvisions: z4.number().max(150, { error: "The total user provisions can't exceed 150" }).refine(
90
+ (p) => !(p > 1 && p < 10),
91
+ "The total user provisions must either be 1 or at least 10."
92
+ ),
90
93
  /**
91
94
  * @property RR (Round Robin): Even distribution.
92
95
  * @property LOR (Least Outstanding Requests): Distribute based on availability.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",