@bizmap/sdk 0.0.29 → 0.0.30

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
@@ -120,12 +120,257 @@ declare const CompanyUser: z.ZodObject<{
120
120
  type CompanyUser = z.infer<typeof CompanyUser>;
121
121
  declare const CompanyDetails: z.ZodObject<{
122
122
  uid: z.ZodReadonly<z.ZodString>;
123
+ identity: z.ZodObject<{
124
+ displayName: z.ZodString;
125
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ contact: z.ZodObject<{
127
+ email: z.ZodEmail;
128
+ phoneNumber: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strip>;
130
+ address: z.ZodObject<{
131
+ streetAddress: z.ZodString;
132
+ city: z.ZodOptional<z.ZodString>;
133
+ parish: z.ZodString;
134
+ country: z.ZodString;
135
+ }, z.core.$strip>;
136
+ legal: z.ZodObject<{
137
+ regNo: z.ZodReadonly<z.ZodString>;
138
+ trn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ gctRegNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ }, z.core.$strip>;
141
+ lastModified: z.ZodNullable<z.ZodInt>;
142
+ }, z.core.$strip>;
123
143
  state: z.ZodObject<{
124
144
  availableBalance: z.ZodNumber;
125
145
  invoiceNoRef: z.ZodNullable<z.ZodString>;
126
146
  totalUploads: z.ZodNumber;
127
147
  lastModified: z.ZodNullable<z.ZodInt>;
128
- }, z.core.$strip>;
148
+ }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
149
+ availableBalance: z.ZodNumber;
150
+ invoiceNoRef: z.ZodNullable<z.ZodString>;
151
+ totalUploads: z.ZodNumber;
152
+ lastModified: z.ZodNullable<z.ZodInt>;
153
+ }, z.core.$strip>>>;
154
+ preferences: z.ZodObject<{
155
+ userProvisions: z.ZodNumber;
156
+ apptDistAlg: z.ZodDefault<z.ZodEnum<{
157
+ RR: "RR";
158
+ LOR: "LOR";
159
+ }>>;
160
+ lastModified: z.ZodNullable<z.ZodInt>;
161
+ }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
162
+ userProvisions: z.ZodNumber;
163
+ apptDistAlg: z.ZodDefault<z.ZodEnum<{
164
+ RR: "RR";
165
+ LOR: "LOR";
166
+ }>>;
167
+ lastModified: z.ZodNullable<z.ZodInt>;
168
+ }, z.core.$strip>>>;
169
+ billing: z.ZodObject<{
170
+ preferences: z.ZodObject<{
171
+ allowInvoiceDist: z.ZodBoolean;
172
+ useCreatedServices: z.ZodBoolean;
173
+ serviceSelector: z.ZodEnum<{
174
+ scheduler: "scheduler";
175
+ doctor: "doctor";
176
+ }>;
177
+ enforcePaidAppts: z.ZodBoolean;
178
+ primaryCurrency: z.ZodEnum<{
179
+ JMD: "JMD";
180
+ }>;
181
+ acceptedCurrencies: z.ZodPipe<z.ZodArray<z.ZodEnum<{
182
+ JMD: "JMD";
183
+ }>>, z.ZodTransform<"JMD"[], "JMD"[]>>;
184
+ lastModified: z.ZodNullable<z.ZodInt>;
185
+ }, z.core.$strip>;
186
+ additionalFees: z.ZodDefault<z.ZodArray<z.ZodObject<{
187
+ createdAt: z.ZodReadonly<z.ZodInt>;
188
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
189
+ description: z.ZodOptional<z.ZodString>;
190
+ fixedAmount: z.ZodNumber;
191
+ percentage: z.ZodNumber;
192
+ }, z.core.$strip>>>;
193
+ discounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
194
+ createdAt: z.ZodReadonly<z.ZodInt>;
195
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
196
+ description: z.ZodOptional<z.ZodString>;
197
+ fixedAmount: z.ZodNumber;
198
+ percentage: z.ZodNumber;
199
+ }, z.core.$strip>>>;
200
+ services: z.ZodDefault<z.ZodArray<z.ZodObject<{
201
+ createdAt: z.ZodReadonly<z.ZodInt>;
202
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
203
+ item: z.ZodString;
204
+ cost: z.ZodNumber;
205
+ }, z.core.$strip>>>;
206
+ lastModified: z.ZodNullable<z.ZodInt>;
207
+ }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
208
+ preferences: z.ZodObject<{
209
+ allowInvoiceDist: z.ZodBoolean;
210
+ useCreatedServices: z.ZodBoolean;
211
+ serviceSelector: z.ZodEnum<{
212
+ scheduler: "scheduler";
213
+ doctor: "doctor";
214
+ }>;
215
+ enforcePaidAppts: z.ZodBoolean;
216
+ primaryCurrency: z.ZodEnum<{
217
+ JMD: "JMD";
218
+ }>;
219
+ acceptedCurrencies: z.ZodPipe<z.ZodArray<z.ZodEnum<{
220
+ JMD: "JMD";
221
+ }>>, z.ZodTransform<"JMD"[], "JMD"[]>>;
222
+ lastModified: z.ZodNullable<z.ZodInt>;
223
+ }, z.core.$strip>;
224
+ additionalFees: z.ZodDefault<z.ZodArray<z.ZodObject<{
225
+ createdAt: z.ZodReadonly<z.ZodInt>;
226
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
227
+ description: z.ZodOptional<z.ZodString>;
228
+ fixedAmount: z.ZodNumber;
229
+ percentage: z.ZodNumber;
230
+ }, z.core.$strip>>>;
231
+ discounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
232
+ createdAt: z.ZodReadonly<z.ZodInt>;
233
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
234
+ description: z.ZodOptional<z.ZodString>;
235
+ fixedAmount: z.ZodNumber;
236
+ percentage: z.ZodNumber;
237
+ }, z.core.$strip>>>;
238
+ services: z.ZodDefault<z.ZodArray<z.ZodObject<{
239
+ createdAt: z.ZodReadonly<z.ZodInt>;
240
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
241
+ item: z.ZodString;
242
+ cost: z.ZodNumber;
243
+ }, z.core.$strip>>>;
244
+ lastModified: z.ZodNullable<z.ZodInt>;
245
+ }, z.core.$strip>>>;
246
+ staffDetails: z.ZodPipe<z.ZodObject<{
247
+ members: z.ZodArray<z.ZodObject<{
248
+ createdAt: z.ZodReadonly<z.ZodInt>;
249
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
250
+ uid: z.ZodReadonly<z.ZodString>;
251
+ status: z.ZodEnum<{
252
+ inviteSent: "inviteSent";
253
+ active: "active";
254
+ inactive: "inactive";
255
+ }>;
256
+ roles: z.ZodPipe<z.ZodArray<z.ZodEnum<{
257
+ doc: "doc";
258
+ physAsst: "physAsst";
259
+ rcpst: "rcpst";
260
+ cshr: "cshr";
261
+ admin: "admin";
262
+ }>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
263
+ lastActive: z.ZodInt;
264
+ name: z.ZodRecord<z.ZodEnum<{
265
+ first: "first";
266
+ last: "last";
267
+ }>, z.ZodString>;
268
+ photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
+ email: z.ZodEmail;
270
+ phoneNumber: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strip>>;
272
+ partnerMap: z.ZodRecord<z.ZodReadonly<z.ZodString>, z.ZodPipe<z.ZodArray<z.ZodReadonly<z.ZodString>>, z.ZodTransform<string[], string[]>>>;
273
+ blackList: z.ZodPipe<z.ZodArray<z.ZodReadonly<z.ZodString>>, z.ZodTransform<string[], string[]>>;
274
+ lastModified: z.ZodNullable<z.ZodInt>;
275
+ }, z.core.$strip>, z.ZodTransform<{
276
+ members: {
277
+ createdAt: number;
278
+ uid: string;
279
+ status: "inviteSent" | "active" | "inactive";
280
+ roles: ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[];
281
+ lastActive: number;
282
+ name: Record<"first" | "last", string>;
283
+ email: string;
284
+ lastModified?: number | null | undefined;
285
+ photoUrl?: string | null | undefined;
286
+ phoneNumber?: string | undefined;
287
+ }[];
288
+ partnerMap: Record<string, string[]>;
289
+ blackList: string[];
290
+ lastModified: number | null;
291
+ }, {
292
+ members: {
293
+ createdAt: number;
294
+ uid: string;
295
+ status: "inviteSent" | "active" | "inactive";
296
+ roles: ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[];
297
+ lastActive: number;
298
+ name: Record<"first" | "last", string>;
299
+ email: string;
300
+ lastModified?: number | null | undefined;
301
+ photoUrl?: string | null | undefined;
302
+ phoneNumber?: string | undefined;
303
+ }[];
304
+ partnerMap: Record<string, string[]>;
305
+ blackList: string[];
306
+ lastModified: number | null;
307
+ }>> | z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
308
+ members: z.ZodArray<z.ZodObject<{
309
+ createdAt: z.ZodReadonly<z.ZodInt>;
310
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
311
+ uid: z.ZodReadonly<z.ZodString>;
312
+ status: z.ZodEnum<{
313
+ inviteSent: "inviteSent";
314
+ active: "active";
315
+ inactive: "inactive";
316
+ }>;
317
+ roles: z.ZodPipe<z.ZodArray<z.ZodEnum<{
318
+ doc: "doc";
319
+ physAsst: "physAsst";
320
+ rcpst: "rcpst";
321
+ cshr: "cshr";
322
+ admin: "admin";
323
+ }>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
324
+ lastActive: z.ZodInt;
325
+ name: z.ZodRecord<z.ZodEnum<{
326
+ first: "first";
327
+ last: "last";
328
+ }>, z.ZodString>;
329
+ photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
+ email: z.ZodEmail;
331
+ phoneNumber: z.ZodOptional<z.ZodString>;
332
+ }, z.core.$strip>>;
333
+ partnerMap: z.ZodRecord<z.ZodReadonly<z.ZodString>, z.ZodPipe<z.ZodArray<z.ZodReadonly<z.ZodString>>, z.ZodTransform<string[], string[]>>>;
334
+ blackList: z.ZodPipe<z.ZodArray<z.ZodReadonly<z.ZodString>>, z.ZodTransform<string[], string[]>>;
335
+ lastModified: z.ZodNullable<z.ZodInt>;
336
+ }, z.core.$strip>, z.ZodTransform<{
337
+ members: {
338
+ createdAt: number;
339
+ uid: string;
340
+ status: "inviteSent" | "active" | "inactive";
341
+ roles: ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[];
342
+ lastActive: number;
343
+ name: Record<"first" | "last", string>;
344
+ email: string;
345
+ lastModified?: number | null | undefined;
346
+ photoUrl?: string | null | undefined;
347
+ phoneNumber?: string | undefined;
348
+ }[];
349
+ partnerMap: Record<string, string[]>;
350
+ blackList: string[];
351
+ lastModified: number | null;
352
+ }, {
353
+ members: {
354
+ createdAt: number;
355
+ uid: string;
356
+ status: "inviteSent" | "active" | "inactive";
357
+ roles: ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[];
358
+ lastActive: number;
359
+ name: Record<"first" | "last", string>;
360
+ email: string;
361
+ lastModified?: number | null | undefined;
362
+ photoUrl?: string | null | undefined;
363
+ phoneNumber?: string | undefined;
364
+ }[];
365
+ partnerMap: Record<string, string[]>;
366
+ blackList: string[];
367
+ lastModified: number | null;
368
+ }>>>>;
369
+ createdAt: z.ZodInt | z.ZodOptional<z.ZodNullable<z.ZodInt>>;
370
+ }, z.core.$strip>;
371
+ type CompanyDetails = z.infer<typeof CompanyDetails>;
372
+ declare const PartialCompanyDetails: z.ZodObject<{
373
+ uid: z.ZodReadonly<z.ZodString>;
129
374
  identity: z.ZodObject<{
130
375
  displayName: z.ZodString;
131
376
  logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -146,6 +391,17 @@ declare const CompanyDetails: z.ZodObject<{
146
391
  }, z.core.$strip>;
147
392
  lastModified: z.ZodNullable<z.ZodInt>;
148
393
  }, z.core.$strip>;
394
+ state: z.ZodObject<{
395
+ availableBalance: z.ZodNumber;
396
+ invoiceNoRef: z.ZodNullable<z.ZodString>;
397
+ totalUploads: z.ZodNumber;
398
+ lastModified: z.ZodNullable<z.ZodInt>;
399
+ }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
400
+ availableBalance: z.ZodNumber;
401
+ invoiceNoRef: z.ZodNullable<z.ZodString>;
402
+ totalUploads: z.ZodNumber;
403
+ lastModified: z.ZodNullable<z.ZodInt>;
404
+ }, z.core.$strip>>>;
149
405
  preferences: z.ZodObject<{
150
406
  userProvisions: z.ZodNumber;
151
407
  apptDistAlg: z.ZodDefault<z.ZodEnum<{
@@ -153,7 +409,14 @@ declare const CompanyDetails: z.ZodObject<{
153
409
  LOR: "LOR";
154
410
  }>>;
155
411
  lastModified: z.ZodNullable<z.ZodInt>;
156
- }, z.core.$strip>;
412
+ }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
413
+ userProvisions: z.ZodNumber;
414
+ apptDistAlg: z.ZodDefault<z.ZodEnum<{
415
+ RR: "RR";
416
+ LOR: "LOR";
417
+ }>>;
418
+ lastModified: z.ZodNullable<z.ZodInt>;
419
+ }, z.core.$strip>>>;
157
420
  billing: z.ZodObject<{
158
421
  preferences: z.ZodObject<{
159
422
  allowInvoiceDist: z.ZodBoolean;
@@ -192,7 +455,45 @@ declare const CompanyDetails: z.ZodObject<{
192
455
  cost: z.ZodNumber;
193
456
  }, z.core.$strip>>>;
194
457
  lastModified: z.ZodNullable<z.ZodInt>;
195
- }, z.core.$strip>;
458
+ }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
459
+ preferences: z.ZodObject<{
460
+ allowInvoiceDist: z.ZodBoolean;
461
+ useCreatedServices: z.ZodBoolean;
462
+ serviceSelector: z.ZodEnum<{
463
+ scheduler: "scheduler";
464
+ doctor: "doctor";
465
+ }>;
466
+ enforcePaidAppts: z.ZodBoolean;
467
+ primaryCurrency: z.ZodEnum<{
468
+ JMD: "JMD";
469
+ }>;
470
+ acceptedCurrencies: z.ZodPipe<z.ZodArray<z.ZodEnum<{
471
+ JMD: "JMD";
472
+ }>>, z.ZodTransform<"JMD"[], "JMD"[]>>;
473
+ lastModified: z.ZodNullable<z.ZodInt>;
474
+ }, z.core.$strip>;
475
+ additionalFees: z.ZodDefault<z.ZodArray<z.ZodObject<{
476
+ createdAt: z.ZodReadonly<z.ZodInt>;
477
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
478
+ description: z.ZodOptional<z.ZodString>;
479
+ fixedAmount: z.ZodNumber;
480
+ percentage: z.ZodNumber;
481
+ }, z.core.$strip>>>;
482
+ discounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
483
+ createdAt: z.ZodReadonly<z.ZodInt>;
484
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
485
+ description: z.ZodOptional<z.ZodString>;
486
+ fixedAmount: z.ZodNumber;
487
+ percentage: z.ZodNumber;
488
+ }, z.core.$strip>>>;
489
+ services: z.ZodDefault<z.ZodArray<z.ZodObject<{
490
+ createdAt: z.ZodReadonly<z.ZodInt>;
491
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
492
+ item: z.ZodString;
493
+ cost: z.ZodNumber;
494
+ }, z.core.$strip>>>;
495
+ lastModified: z.ZodNullable<z.ZodInt>;
496
+ }, z.core.$strip>>>;
196
497
  staffDetails: z.ZodPipe<z.ZodObject<{
197
498
  members: z.ZodArray<z.ZodObject<{
198
499
  createdAt: z.ZodReadonly<z.ZodInt>;
@@ -254,10 +555,71 @@ declare const CompanyDetails: z.ZodObject<{
254
555
  partnerMap: Record<string, string[]>;
255
556
  blackList: string[];
256
557
  lastModified: number | null;
257
- }>>;
258
- createdAt: z.ZodInt;
558
+ }>> | z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
559
+ members: z.ZodArray<z.ZodObject<{
560
+ createdAt: z.ZodReadonly<z.ZodInt>;
561
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
562
+ uid: z.ZodReadonly<z.ZodString>;
563
+ status: z.ZodEnum<{
564
+ inviteSent: "inviteSent";
565
+ active: "active";
566
+ inactive: "inactive";
567
+ }>;
568
+ roles: z.ZodPipe<z.ZodArray<z.ZodEnum<{
569
+ doc: "doc";
570
+ physAsst: "physAsst";
571
+ rcpst: "rcpst";
572
+ cshr: "cshr";
573
+ admin: "admin";
574
+ }>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
575
+ lastActive: z.ZodInt;
576
+ name: z.ZodRecord<z.ZodEnum<{
577
+ first: "first";
578
+ last: "last";
579
+ }>, z.ZodString>;
580
+ photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
581
+ email: z.ZodEmail;
582
+ phoneNumber: z.ZodOptional<z.ZodString>;
583
+ }, z.core.$strip>>;
584
+ partnerMap: z.ZodRecord<z.ZodReadonly<z.ZodString>, z.ZodPipe<z.ZodArray<z.ZodReadonly<z.ZodString>>, z.ZodTransform<string[], string[]>>>;
585
+ blackList: z.ZodPipe<z.ZodArray<z.ZodReadonly<z.ZodString>>, z.ZodTransform<string[], string[]>>;
586
+ lastModified: z.ZodNullable<z.ZodInt>;
587
+ }, z.core.$strip>, z.ZodTransform<{
588
+ members: {
589
+ createdAt: number;
590
+ uid: string;
591
+ status: "inviteSent" | "active" | "inactive";
592
+ roles: ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[];
593
+ lastActive: number;
594
+ name: Record<"first" | "last", string>;
595
+ email: string;
596
+ lastModified?: number | null | undefined;
597
+ photoUrl?: string | null | undefined;
598
+ phoneNumber?: string | undefined;
599
+ }[];
600
+ partnerMap: Record<string, string[]>;
601
+ blackList: string[];
602
+ lastModified: number | null;
603
+ }, {
604
+ members: {
605
+ createdAt: number;
606
+ uid: string;
607
+ status: "inviteSent" | "active" | "inactive";
608
+ roles: ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[];
609
+ lastActive: number;
610
+ name: Record<"first" | "last", string>;
611
+ email: string;
612
+ lastModified?: number | null | undefined;
613
+ photoUrl?: string | null | undefined;
614
+ phoneNumber?: string | undefined;
615
+ }[];
616
+ partnerMap: Record<string, string[]>;
617
+ blackList: string[];
618
+ lastModified: number | null;
619
+ }>>>>;
620
+ createdAt: z.ZodInt | z.ZodOptional<z.ZodNullable<z.ZodInt>>;
259
621
  }, z.core.$strip>;
260
- type CompanyDetails = z.infer<typeof CompanyDetails>;
622
+ type PartialCompanyDetails = z.infer<typeof PartialCompanyDetails>;
261
623
 
262
624
  declare const InvoiceNo: z.ZodString;
263
625
  declare const UuidV4: z.ZodReadonly<z.ZodString>;
@@ -312,4 +674,4 @@ declare const findConflictingPartners: (...partners: CompanyUser[]) => {
312
674
  /**@returns the roles that are compatible with the selected role. */
313
675
  declare const getCompatibleRoles: (role: CompanyUserRole) => CompanyUserRole[];
314
676
 
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 };
677
+ export { type AppointmentDistAlg, CompanyDetails, type CompanyPartnerRole, CompanyRegistrationClaims, CompanyUser, type CompanyUserRole, type EmployeeRole, InvoiceNo, PartialCompanyDetails, PriceAdjustment, PriceTag, PricingRate, RegisterCompanyForm, StandardTime, TimeLog, Timestamp, UuidV4, UuidV7, appointmentDistAlgs, companyPartnerRoles, companyUserRoles, employeeRoles, findConflictingPartners, getCompatibleRoles };
package/dist/main.js CHANGED
@@ -287,15 +287,19 @@ var StaffDetails = z4.object({
287
287
  }
288
288
  }
289
289
  });
290
- var CompanyDetails = z4.object({
291
- uid: UuidV7,
292
- state: CompanyState,
293
- identity: CompanyIdentity,
294
- preferences: CompanyPreferences,
295
- billing: CompanyBillingModel,
296
- staffDetails: StaffDetails,
297
- createdAt: Timestamp
298
- });
290
+ var createCompanyDetails = (options) => {
291
+ return z4.object({
292
+ uid: UuidV7,
293
+ identity: CompanyIdentity,
294
+ state: options.partial ? CompanyState.nullish() : CompanyState,
295
+ preferences: options.partial ? CompanyPreferences.nullish() : CompanyPreferences,
296
+ billing: options.partial ? CompanyBillingModel.nullish() : CompanyBillingModel,
297
+ staffDetails: options.partial ? StaffDetails.nullish() : StaffDetails,
298
+ createdAt: options.partial ? Timestamp.nullish() : Timestamp
299
+ });
300
+ };
301
+ var CompanyDetails = createCompanyDetails({ partial: false });
302
+ var PartialCompanyDetails = createCompanyDetails({ partial: true });
299
303
 
300
304
  // src/functions/helper-functions.ts
301
305
  var findConflictingPartners = (...partners) => {
@@ -332,6 +336,7 @@ export {
332
336
  CompanyRegistrationClaims,
333
337
  CompanyUser,
334
338
  InvoiceNo,
339
+ PartialCompanyDetails,
335
340
  PriceAdjustment,
336
341
  PriceTag,
337
342
  PricingRate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",