@bizmap/sdk 0.0.53 → 0.0.54

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
@@ -1090,6 +1090,23 @@ declare const Notification: z.ZodObject<{
1090
1090
  createdAt: z.ZodInt;
1091
1091
  }, z.core.$strip>;
1092
1092
  type Notification = z.infer<typeof Notification>;
1093
+ declare const Credit: z.ZodObject<{
1094
+ createdAt: z.ZodReadonly<z.ZodInt>;
1095
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1096
+ uid: z.ZodReadonly<z.ZodString>;
1097
+ cost: z.ZodObject<{
1098
+ value: z.ZodNumber;
1099
+ currency: z.ZodEnum<{
1100
+ JMD: "JMD";
1101
+ USD: "USD";
1102
+ EUR: "EUR";
1103
+ GBP: "GBP";
1104
+ CAD: "CAD";
1105
+ }>;
1106
+ }, z.core.$strip>;
1107
+ value: z.ZodInt;
1108
+ }, z.core.$strip>;
1109
+ type Credit = z.infer<typeof Credit>;
1093
1110
 
1094
1111
  declare const InvoiceNo: z.ZodString;
1095
1112
  declare const UuidV4: z.ZodReadonly<z.ZodString>;
@@ -1132,4 +1149,4 @@ declare const findConflictingPartners: (...partners: CompanyUser[]) => {
1132
1149
  /**@returns the roles that are compatible with the selected role. */
1133
1150
  declare const getCompatibleRoles: (role: CompanyUserRole) => CompanyUserRole[];
1134
1151
 
1135
- export { type AppointmentDistAlg, CompanyDetails, CompanyInviteList, type CompanyPartnerRole, type CompanyServiceSelector, CompanyUser, type CompanyUserRole, type EmployeeRole, type HealthcareProviderRole, InviteResponse, InvoiceNo, Jwt, Notification, PartialCompanyDetails, PriceAdjustment, PriceTag, StandardTime, type Tier, TierList, TimeLog, Timestamp, UuidV4, UuidV7, appointmentDistAlgs, companyPartnerRoles, companyServiceSelectors, companyUserRoles, employeeRoles, findConflictingPartners, getCompatibleRoles, healthcareProviderRoles, tiers };
1152
+ export { type AppointmentDistAlg, CompanyDetails, CompanyInviteList, type CompanyPartnerRole, type CompanyServiceSelector, CompanyUser, type CompanyUserRole, Credit, type EmployeeRole, type HealthcareProviderRole, InviteResponse, InvoiceNo, Jwt, Notification, PartialCompanyDetails, PriceAdjustment, PriceTag, StandardTime, type Tier, TierList, TimeLog, Timestamp, UuidV4, UuidV7, appointmentDistAlgs, companyPartnerRoles, companyServiceSelectors, companyUserRoles, employeeRoles, findConflictingPartners, getCompatibleRoles, healthcareProviderRoles, tiers };
package/dist/main.js CHANGED
@@ -116,6 +116,7 @@ var getCompatibleRoles = (role) => {
116
116
 
117
117
  // src/schemas/Global.ts
118
118
  import * as z5 from "zod";
119
+ import { currencies as currencies2 } from "@wavy/util";
119
120
  var TierList = z5.record(
120
121
  tiers,
121
122
  z5.object({
@@ -171,6 +172,12 @@ var Notification = z5.object({
171
172
  return data.code;
172
173
  }
173
174
  });
175
+ var Credit = z5.object({
176
+ uid: UuidV4,
177
+ cost: z5.object({ value: z5.number().min(0), currency: currencies2 }),
178
+ value: z5.int().min(0),
179
+ ...TimeLog.shape
180
+ });
174
181
 
175
182
  // src/schemas/Company.ts
176
183
  var CompanyUser = z6.object({
@@ -431,6 +438,7 @@ export {
431
438
  CompanyDetails,
432
439
  CompanyInviteList,
433
440
  CompanyUser,
441
+ Credit,
434
442
  InviteResponse,
435
443
  InvoiceNo,
436
444
  Jwt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",