@bizmap/sdk 0.0.36 → 0.0.37

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 +7 -7
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -31,15 +31,15 @@ var TimeLog = z.object({
31
31
  // src/schemas/Billing.ts
32
32
  var PricingRate = z2.object({
33
33
  companyRegistration: z2.object({
34
- flatFee: z2.number().gte(0),
35
- feePerUser: z2.number().gte(0),
34
+ flatFee: z2.number().min(0),
35
+ feePerUser: z2.number().min(0),
36
36
  lastModified: Timestamp
37
37
  })
38
38
  });
39
39
  var PriceAdjustment = z2.object({
40
40
  description: z2.string().trim().min(3, "A description must have atleast (3) characters.").max(25, "A description can't have more that (25) characters.").optional(),
41
- fixedAmount: z2.number().gte(0).max(1e6, "The max fixed amount is $1,000,000.00"),
42
- percentage: z2.number().gte(0).max(1e3, "The max percentage is 1,000%"),
41
+ fixedAmount: z2.number().min(0).max(1e6, "The max fixed amount is $1,000,000.00"),
42
+ percentage: z2.number().min(0).max(1e3, "The max percentage is 1,000%"),
43
43
  ...TimeLog.shape
44
44
  });
45
45
  var PriceTag = z2.object({
@@ -113,7 +113,7 @@ var CompanyUser = z4.object({
113
113
  );
114
114
  }, "A user is not allowed to have conflicting roles."),
115
115
  /** This should reset at the end of every cycle. */
116
- totalAppts: z4.int().gte(0),
116
+ totalAppts: z4.int().min(0),
117
117
  lastActive: Timestamp,
118
118
  ...TimeLog.shape
119
119
  }).superRefine((data, ctx) => {
@@ -153,9 +153,9 @@ var CompanyState = z4.object({
153
153
  /** A counter for the company's invoice no.
154
154
  * @note This should only be null when the cycle resets
155
155
  */
156
- invoiceNoCounter: z4.int().gte(1),
156
+ invoiceNoCounter: z4.int().min(1),
157
157
  /** A counter for the company's ticket no. */
158
- tktNoCounter: z4.int().gte(1),
158
+ tktNoCounter: z4.int().min(1),
159
159
  lastModified: Timestamp.nullable()
160
160
  });
161
161
  var CompanyPreferences = z4.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",