@bizmap/sdk 0.0.35 → 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.
package/dist/main.d.ts CHANGED
@@ -112,7 +112,7 @@ declare const CompanyUser: z.ZodObject<{
112
112
  cshr: "cshr";
113
113
  admin: "admin";
114
114
  }>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
115
- totalAppts: z.ZodDefault<z.ZodInt>;
115
+ totalAppts: z.ZodInt;
116
116
  lastActive: z.ZodInt;
117
117
  name: z.ZodRecord<z.ZodEnum<{
118
118
  first: "first";
@@ -269,7 +269,7 @@ declare const CompanyDetails: z.ZodObject<{
269
269
  cshr: "cshr";
270
270
  admin: "admin";
271
271
  }>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
272
- totalAppts: z.ZodDefault<z.ZodInt>;
272
+ totalAppts: z.ZodInt;
273
273
  lastActive: z.ZodInt;
274
274
  name: z.ZodRecord<z.ZodEnum<{
275
275
  first: "first";
@@ -351,7 +351,7 @@ declare const CompanyDetails: z.ZodObject<{
351
351
  cshr: "cshr";
352
352
  admin: "admin";
353
353
  }>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
354
- totalAppts: z.ZodDefault<z.ZodInt>;
354
+ totalAppts: z.ZodInt;
355
355
  lastActive: z.ZodInt;
356
356
  name: z.ZodRecord<z.ZodEnum<{
357
357
  first: "first";
@@ -562,7 +562,7 @@ declare const PartialCompanyDetails: z.ZodObject<{
562
562
  cshr: "cshr";
563
563
  admin: "admin";
564
564
  }>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
565
- totalAppts: z.ZodDefault<z.ZodInt>;
565
+ totalAppts: z.ZodInt;
566
566
  lastActive: z.ZodInt;
567
567
  name: z.ZodRecord<z.ZodEnum<{
568
568
  first: "first";
@@ -644,7 +644,7 @@ declare const PartialCompanyDetails: z.ZodObject<{
644
644
  cshr: "cshr";
645
645
  admin: "admin";
646
646
  }>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
647
- totalAppts: z.ZodDefault<z.ZodInt>;
647
+ totalAppts: z.ZodInt;
648
648
  lastActive: z.ZodInt;
649
649
  name: z.ZodRecord<z.ZodEnum<{
650
650
  first: "first";
package/dist/main.js CHANGED
@@ -31,22 +31,22 @@ 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().positive(),
35
- feePerUser: z2.number().positive(),
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().positive().max(1e6, "The max fixed amount is $1,000,000.00"),
42
- percentage: z2.number().positive().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({
46
46
  uid: UuidV4,
47
47
  /**The name of the item that's being priced */
48
48
  item: z2.string().trim().min(3, "The price item must be atleast (3) characters long.").max(50, "The price item can't be more than (50) characters long."),
49
- cost: z2.number().min(1, "The minimum allowed cost is $1.00").max(1e9, "The max allowed cost is $1,000,000,000.00.").positive(),
49
+ cost: z2.number().min(1, "The minimum allowed cost is $1.00").max(1e9, "The max allowed cost is $1,000,000,000.00."),
50
50
  ...TimeLog.shape
51
51
  });
52
52
 
@@ -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().positive().default(0),
116
+ totalAppts: z4.int().min(0),
117
117
  lastActive: Timestamp,
118
118
  ...TimeLog.shape
119
119
  }).superRefine((data, ctx) => {
@@ -153,10 +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().positive().min(1),
156
+ invoiceNoCounter: z4.int().min(1),
157
157
  /** A counter for the company's ticket no. */
158
- tktNoCounter: z4.int().positive().min(1),
159
- // distAppts: z.record(CompanyUser.shape.uid, z.number().positive().nullable()),
158
+ tktNoCounter: z4.int().min(1),
160
159
  lastModified: Timestamp.nullable()
161
160
  });
162
161
  var CompanyPreferences = z4.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",