@bizmap/sdk 0.0.28 → 0.0.29

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
@@ -118,47 +118,6 @@ declare const CompanyUser: z.ZodObject<{
118
118
  phoneNumber: z.ZodOptional<z.ZodString>;
119
119
  }, z.core.$strip>;
120
120
  type CompanyUser = z.infer<typeof CompanyUser>;
121
- type CompanyBillingModel = z.infer<typeof CompanyBillingModel>;
122
- declare const CompanyBillingModel: z.ZodObject<{
123
- preferences: z.ZodObject<{
124
- createdAt: z.ZodReadonly<z.ZodInt>;
125
- lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
126
- allowInvoiceDist: z.ZodBoolean;
127
- useCreatedServices: z.ZodBoolean;
128
- serviceSelector: z.ZodEnum<{
129
- scheduler: "scheduler";
130
- doctor: "doctor";
131
- }>;
132
- enforcePaidAppts: z.ZodBoolean;
133
- primaryCurrency: z.ZodEnum<{
134
- JMD: "JMD";
135
- }>;
136
- acceptedCurrencies: z.ZodPipe<z.ZodArray<z.ZodEnum<{
137
- JMD: "JMD";
138
- }>>, z.ZodTransform<"JMD"[], "JMD"[]>>;
139
- }, z.core.$strip>;
140
- additionalFees: z.ZodDefault<z.ZodArray<z.ZodObject<{
141
- createdAt: z.ZodReadonly<z.ZodInt>;
142
- lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
143
- description: z.ZodOptional<z.ZodString>;
144
- fixedAmount: z.ZodNumber;
145
- percentage: z.ZodNumber;
146
- }, z.core.$strip>>>;
147
- discounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
148
- createdAt: z.ZodReadonly<z.ZodInt>;
149
- lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
150
- description: z.ZodOptional<z.ZodString>;
151
- fixedAmount: z.ZodNumber;
152
- percentage: z.ZodNumber;
153
- }, z.core.$strip>>>;
154
- services: z.ZodDefault<z.ZodArray<z.ZodObject<{
155
- createdAt: z.ZodReadonly<z.ZodInt>;
156
- lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
157
- item: z.ZodString;
158
- cost: z.ZodNumber;
159
- }, z.core.$strip>>>;
160
- lastModified: z.ZodNullable<z.ZodInt>;
161
- }, z.core.$strip>;
162
121
  declare const CompanyDetails: z.ZodObject<{
163
122
  uid: z.ZodReadonly<z.ZodString>;
164
123
  state: z.ZodObject<{
@@ -197,8 +156,6 @@ declare const CompanyDetails: z.ZodObject<{
197
156
  }, z.core.$strip>;
198
157
  billing: z.ZodObject<{
199
158
  preferences: z.ZodObject<{
200
- createdAt: z.ZodReadonly<z.ZodInt>;
201
- lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
202
159
  allowInvoiceDist: z.ZodBoolean;
203
160
  useCreatedServices: z.ZodBoolean;
204
161
  serviceSelector: z.ZodEnum<{
@@ -212,6 +169,7 @@ declare const CompanyDetails: z.ZodObject<{
212
169
  acceptedCurrencies: z.ZodPipe<z.ZodArray<z.ZodEnum<{
213
170
  JMD: "JMD";
214
171
  }>>, z.ZodTransform<"JMD"[], "JMD"[]>>;
172
+ lastModified: z.ZodNullable<z.ZodInt>;
215
173
  }, z.core.$strip>;
216
174
  additionalFees: z.ZodDefault<z.ZodArray<z.ZodObject<{
217
175
  createdAt: z.ZodReadonly<z.ZodInt>;
@@ -354,4 +312,4 @@ declare const findConflictingPartners: (...partners: CompanyUser[]) => {
354
312
  /**@returns the roles that are compatible with the selected role. */
355
313
  declare const getCompatibleRoles: (role: CompanyUserRole) => CompanyUserRole[];
356
314
 
357
- export { type AppointmentDistAlg, CompanyBillingModel, CompanyDetails, type CompanyPartnerRole, CompanyRegistrationClaims, CompanyUser, type CompanyUserRole, type EmployeeRole, InvoiceNo, PriceAdjustment, PriceTag, PricingRate, RegisterCompanyForm, StandardTime, TimeLog, Timestamp, UuidV4, UuidV7, appointmentDistAlgs, companyPartnerRoles, companyUserRoles, employeeRoles, findConflictingPartners, getCompatibleRoles };
315
+ export { type AppointmentDistAlg, CompanyDetails, type CompanyPartnerRole, CompanyRegistrationClaims, CompanyUser, type CompanyUserRole, type EmployeeRole, InvoiceNo, PriceAdjustment, PriceTag, PricingRate, RegisterCompanyForm, StandardTime, TimeLog, Timestamp, UuidV4, UuidV7, appointmentDistAlgs, companyPartnerRoles, companyUserRoles, employeeRoles, findConflictingPartners, getCompatibleRoles };
package/dist/main.js CHANGED
@@ -169,7 +169,7 @@ var CompanyBillingModel = z4.object({
169
169
  }
170
170
  return newCurrencies;
171
171
  }),
172
- ...TimeLog.shape
172
+ lastModified: Timestamp.nullable()
173
173
  }).superRefine((data, ctx) => {
174
174
  if (data.enforcePaidAppts && data.serviceSelector !== "scheduler") {
175
175
  ctx.addIssue(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",