@bizmap/sdk 0.0.118 → 0.0.120

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
@@ -79,7 +79,6 @@ declare const CompanyDetails: z.ZodObject<{
79
79
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
80
80
  identity: z.ZodObject<{
81
81
  lastModified: z.ZodOptional<z.ZodISODateTime>;
82
- version: z.ZodInt;
83
82
  alias: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
84
83
  address: z.ZodOptional<z.ZodObject<{
85
84
  streetAddress: z.ZodString;
@@ -137,7 +136,6 @@ declare const CompanyDetails: z.ZodObject<{
137
136
  state: z.ZodObject<{
138
137
  createdAt: z.ZodISODateTime;
139
138
  lastModified: z.ZodOptional<z.ZodISODateTime>;
140
- version: z.ZodInt;
141
139
  credits: z.ZodObject<{
142
140
  current: z.ZodNumber;
143
141
  lastModified: z.ZodOptional<z.ZodISODateTime>;
@@ -155,7 +153,6 @@ declare const CompanyDetails: z.ZodObject<{
155
153
  }, z.core.$strip>;
156
154
  preferences: z.ZodObject<{
157
155
  lastModified: z.ZodOptional<z.ZodISODateTime>;
158
- version: z.ZodInt;
159
156
  serviceSelector: z.ZodEnum<{
160
157
  scheduler: "scheduler";
161
158
  doctor: "doctor";
@@ -169,7 +166,6 @@ declare const CompanyDetails: z.ZodObject<{
169
166
  }, z.core.$strip>;
170
167
  billing: z.ZodObject<{
171
168
  lastModified: z.ZodOptional<z.ZodISODateTime>;
172
- version: z.ZodInt;
173
169
  additionalFees: z.ZodRecord<z.ZodUUID, z.ZodObject<{
174
170
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
175
171
  lastModified: z.ZodOptional<z.ZodISODateTime>;
@@ -221,7 +217,6 @@ declare const CompanyDetails: z.ZodObject<{
221
217
  }, z.core.$strip>;
222
218
  staff: z.ZodObject<{
223
219
  lastModified: z.ZodOptional<z.ZodISODateTime>;
224
- version: z.ZodInt;
225
220
  members: z.ZodRecord<z.ZodUUID, z.ZodObject<{
226
221
  lastModified: z.ZodOptional<z.ZodISODateTime>;
227
222
  email: z.ZodEmail;
@@ -284,7 +279,6 @@ declare const MutableCompanyDetails: z.ZodObject<{
284
279
  }, z.core.$strip>>;
285
280
  }, z.core.$strip>>;
286
281
  preferences: z.ZodOptional<z.ZodObject<{
287
- version: z.ZodOptional<z.ZodInt>;
288
282
  _id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
289
283
  serviceSelector: z.ZodOptional<z.ZodEnum<{
290
284
  scheduler: "scheduler";
@@ -298,7 +292,6 @@ declare const MutableCompanyDetails: z.ZodObject<{
298
292
  servicesDeployed: z.ZodOptional<z.ZodBoolean>;
299
293
  }, z.core.$strip>>;
300
294
  billing: z.ZodOptional<z.ZodObject<{
301
- version: z.ZodOptional<z.ZodInt>;
302
295
  _id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
303
296
  additionalFees: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
304
297
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
@@ -424,12 +417,10 @@ declare const CompanyBilling: z.ZodObject<{
424
417
  item: z.ZodString;
425
418
  cost: z.ZodNumber;
426
419
  }, z.core.$strip>>;
427
- version: z.ZodInt;
428
420
  lastModified: z.ZodOptional<z.ZodISODateTime>;
429
421
  }, z.core.$strip>;
430
422
  type CompanyBilling = z.infer<typeof CompanyBilling>;
431
423
  declare const MutableCompanyBilling: z.ZodObject<{
432
- version: z.ZodInt;
433
424
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
434
425
  additionalFees: z.ZodRecord<z.ZodUUID, z.ZodObject<{
435
426
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
@@ -516,7 +507,6 @@ declare const CompanyIdentity: z.ZodObject<{
516
507
  trn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
517
508
  gctRegNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
509
  }, z.core.$strip>>;
519
- version: z.ZodInt;
520
510
  lastModified: z.ZodOptional<z.ZodISODateTime>;
521
511
  }, z.core.$strip>;
522
512
  type CompanyIdentity = z.infer<typeof CompanyIdentity>;
@@ -564,12 +554,10 @@ declare const CompanyPreferences: z.ZodObject<{
564
554
  LOR: "LOR";
565
555
  }>;
566
556
  servicesDeployed: z.ZodBoolean;
567
- version: z.ZodInt;
568
557
  lastModified: z.ZodOptional<z.ZodISODateTime>;
569
558
  }, z.core.$strip>;
570
559
  type CompanyPreferences = z.infer<typeof CompanyPreferences>;
571
560
  declare const MutableCompanyPreferences: z.ZodObject<{
572
- version: z.ZodInt;
573
561
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
574
562
  serviceSelector: z.ZodEnum<{
575
563
  scheduler: "scheduler";
@@ -627,7 +615,6 @@ declare const CompanyStaff: z.ZodObject<{
627
615
  addedAt: z.ZodISODateTime;
628
616
  }, z.core.$strip>>;
629
617
  }, z.core.$strip>>;
630
- version: z.ZodInt;
631
618
  lastModified: z.ZodOptional<z.ZodISODateTime>;
632
619
  }, z.core.$strip>;
633
620
  type CompanyStaff = z.infer<typeof CompanyStaff>;
@@ -650,7 +637,6 @@ declare const CompanyState: z.ZodObject<{
650
637
  invoiceNoCounter: z.ZodInt;
651
638
  tktNoCounter: z.ZodInt;
652
639
  lastModified: z.ZodOptional<z.ZodISODateTime>;
653
- version: z.ZodInt;
654
640
  createdAt: z.ZodISODateTime;
655
641
  }, z.core.$strip>;
656
642
  type CompanyState = z.infer<typeof CompanyState>;
@@ -885,7 +871,6 @@ declare const Reason: z.ZodObject<{
885
871
  value: z.ZodString;
886
872
  lastModified: z.ZodISODateTime;
887
873
  }, z.core.$strip>;
888
- declare const Version: z.ZodInt;
889
874
  declare const AlphaNumeric: z.ZodString;
890
875
 
891
876
  declare const PriceMod: z.ZodObject<{
@@ -939,17 +924,16 @@ declare const Receipts: z.ZodArray<z.ZodObject<{
939
924
  declare const UserDetails: z.ZodObject<{
940
925
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
941
926
  lastModified: z.ZodOptional<z.ZodISODateTime>;
942
- version: z.ZodDefault<z.ZodInt>;
943
927
  _id: z.ZodUUID;
944
928
  email: z.ZodEmail;
945
929
  phoneNumber: z.ZodOptional<z.ZodString>;
946
930
  name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
947
931
  photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
948
932
  publicKey: z.ZodOptional<z.ZodString>;
949
- lastSignedIn: z.ZodOptional<z.ZodObject<{
933
+ lastSignedIn: z.ZodObject<{
950
934
  auto: z.ZodOptional<z.ZodISODateTime>;
951
935
  manual: z.ZodOptional<z.ZodISODateTime>;
952
- }, z.core.$strip>>;
936
+ }, z.core.$strip>;
953
937
  companyUids: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
954
938
  }, z.core.$strip>;
955
939
  type UserDetails = z.infer<typeof UserDetails>;
@@ -957,7 +941,6 @@ type UserDetails = z.infer<typeof UserDetails>;
957
941
  declare const ClientIdentity: z.ZodObject<{
958
942
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
959
943
  lastModified: z.ZodOptional<z.ZodISODateTime>;
960
- version: z.ZodDefault<z.ZodInt>;
961
944
  _id: z.ZodUUID;
962
945
  photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
963
946
  firstName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -1294,7 +1277,6 @@ declare const AppointmentDetails: z.ZodObject<{
1294
1277
  client: z.ZodObject<{
1295
1278
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
1296
1279
  lastModified: z.ZodOptional<z.ZodISODateTime>;
1297
- version: z.ZodDefault<z.ZodInt>;
1298
1280
  _id: z.ZodUUID;
1299
1281
  photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1300
1282
  firstName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -1473,7 +1455,6 @@ declare const MutableAppointmentDetails: z.ZodObject<{
1473
1455
  client: z.ZodObject<{
1474
1456
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
1475
1457
  lastModified: z.ZodOptional<z.ZodISODateTime>;
1476
- version: z.ZodDefault<z.ZodInt>;
1477
1458
  _id: z.ZodUUID;
1478
1459
  photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1479
1460
  firstName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -1598,7 +1579,6 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1598
1579
  };
1599
1580
  invoiceNoCounter: number;
1600
1581
  tktNoCounter: number;
1601
- version: number;
1602
1582
  createdAt: string;
1603
1583
  lastModified?: string | undefined;
1604
1584
  };
@@ -1631,7 +1611,6 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1631
1611
  addedAt: string;
1632
1612
  } | undefined;
1633
1613
  }>;
1634
- version: number;
1635
1614
  lastModified?: string | undefined;
1636
1615
  };
1637
1616
  };
@@ -1667,7 +1646,6 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1667
1646
  };
1668
1647
  client: {
1669
1648
  createdAt: string;
1670
- version: number;
1671
1649
  _id: string;
1672
1650
  firstName: string;
1673
1651
  middleName: string;
@@ -1859,4 +1837,4 @@ declare function createNotifId(options?: {
1859
1837
  to: string;
1860
1838
  }): string;
1861
1839
 
1862
- export { type AcceptedCurrency, AlphaNumeric, AppointmentDetails, type AppointmentDistAlg, AppointmentSeverity, COMPANY_USER_RELATIONSHIP, ClientForm, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyIndustry, CompanyNotifications, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, CompanyUser, type CompanyUserRole, CompanyUserSession, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, InviteResponse, InvoiceNo, MAX_COMPANY_PRICE_MODS, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, Notification, PaymentDetails, type PaymentMethod, PriceMod, PriceModList, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, Version, Vitals, acceptedCurrencies, adminRoles, appointmentDistAlgs, calcBalance, calcPriceMod, companyServiceSelectors, companyUserRoles, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, genders, getCompatibleRoles, getIncompatibleRoles, healthcareProviderRoles, normalizeCompanyId, normalizeNidKey, parseClientName, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
1840
+ export { type AcceptedCurrency, AlphaNumeric, AppointmentDetails, type AppointmentDistAlg, AppointmentSeverity, COMPANY_USER_RELATIONSHIP, ClientForm, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyIndustry, CompanyNotifications, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, CompanyUser, type CompanyUserRole, CompanyUserSession, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, InviteResponse, InvoiceNo, MAX_COMPANY_PRICE_MODS, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, Notification, PaymentDetails, type PaymentMethod, PriceMod, PriceModList, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, Vitals, acceptedCurrencies, adminRoles, appointmentDistAlgs, calcBalance, calcPriceMod, companyServiceSelectors, companyUserRoles, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, genders, getCompatibleRoles, getIncompatibleRoles, healthcareProviderRoles, normalizeCompanyId, normalizeNidKey, parseClientName, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
package/dist/main.js CHANGED
@@ -85,7 +85,6 @@ var Reason = z5.object({
85
85
  value: z5.string().trim().min(3).max(100),
86
86
  lastModified: Timestamp
87
87
  });
88
- var Version = z5.int().min(1);
89
88
  var AlphaNumeric = z5.string().trim().superRefine((data, ctx) => {
90
89
  const invalidCharIdx = data.search(/[^a-z0-9]/i);
91
90
  if (invalidCharIdx > -1) {
@@ -164,7 +163,6 @@ var CompanyState = z7.object({
164
163
  /** A counter for the company's ticket no. */
165
164
  tktNoCounter: z7.int().min(1),
166
165
  lastModified: Timestamp.optional(),
167
- version: Version,
168
166
  createdAt: Timestamp
169
167
  });
170
168
 
@@ -188,7 +186,6 @@ var CompanyBilling = z8.object({
188
186
  );
189
187
  }
190
188
  }),
191
- version: Version,
192
189
  lastModified: Timestamp.optional()
193
190
  });
194
191
  var MutableCompanyBilling = CompanyBilling.omit({
@@ -244,7 +241,6 @@ var CompanyIdentity = z10.object({
244
241
  trn: z10.string().regex(/[0-9]{3}-[0-9]{3}-[0-9]{3}/).nullish(),
245
242
  gctRegNo: z10.string().max(15).nullish()
246
243
  }).optional(),
247
- version: Version,
248
244
  lastModified: Timestamp.optional()
249
245
  }).superRefine((data, ctx) => {
250
246
  const hasLegalInfo = "legal" in data;
@@ -402,7 +398,6 @@ var CompanyPreferences = z13.object({
402
398
  */
403
399
  apptDistAlg: appointmentDistAlgs,
404
400
  servicesDeployed: z13.boolean(),
405
- version: Version,
406
401
  lastModified: Timestamp.optional()
407
402
  }).refine(
408
403
  (data) => !data.enforcePaidAppointments || data.enforcePaidAppointments && data.serviceSelector === "scheduler",
@@ -450,11 +445,10 @@ var UserDetails = z14.object({
450
445
  email: UserModel.shape.email,
451
446
  publicKey: z14.string().optional(),
452
447
  // notifications: z.array(Notification),
453
- version: Version.default(1),
454
448
  lastSignedIn: z14.object({
455
449
  auto: Timestamp,
456
450
  manual: Timestamp
457
- }).partial().optional(),
451
+ }).partial(),
458
452
  companyUids: z14.array(CompanyState.shape._id).min(1).optional(),
459
453
  // resumeToken: z.uuidv4().optional(),
460
454
  ...TimeLog.shape
@@ -474,7 +468,6 @@ var ClientIdentity = UserDetails.pick({
474
468
  createdAt: true,
475
469
  lastModified: true,
476
470
  phoneNumber: true,
477
- version: true,
478
471
  photoUrl: true
479
472
  }).safeExtend(
480
473
  z15.object({
@@ -644,7 +637,6 @@ var MiniRawCompanyStaff = z17.object({
644
637
  })
645
638
  }).partial()
646
639
  ),
647
- version: Version,
648
640
  lastModified: Timestamp.optional()
649
641
  });
650
642
  var RawCompanyStaff = z17.object({
@@ -1164,7 +1156,6 @@ export {
1164
1156
  Timestamp,
1165
1157
  Trn,
1166
1158
  UserDetails,
1167
- Version,
1168
1159
  Vitals,
1169
1160
  acceptedCurrencies,
1170
1161
  adminRoles,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.118",
3
+ "version": "0.0.120",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",