@bizmap/sdk 0.0.28 → 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.
Files changed (3) hide show
  1. package/dist/main.d.ts +368 -48
  2. package/dist/main.js +15 -10
  3. package/package.json +1 -1
package/dist/main.d.ts CHANGED
@@ -118,55 +118,259 @@ 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>;
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>;
164
143
  state: z.ZodObject<{
165
144
  availableBalance: z.ZodNumber;
166
145
  invoiceNoRef: z.ZodNullable<z.ZodString>;
167
146
  totalUploads: z.ZodNumber;
168
147
  lastModified: z.ZodNullable<z.ZodInt>;
169
- }, 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>;
170
374
  identity: z.ZodObject<{
171
375
  displayName: z.ZodString;
172
376
  logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -187,6 +391,17 @@ declare const CompanyDetails: z.ZodObject<{
187
391
  }, z.core.$strip>;
188
392
  lastModified: z.ZodNullable<z.ZodInt>;
189
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>>>;
190
405
  preferences: z.ZodObject<{
191
406
  userProvisions: z.ZodNumber;
192
407
  apptDistAlg: z.ZodDefault<z.ZodEnum<{
@@ -194,11 +409,54 @@ declare const CompanyDetails: z.ZodObject<{
194
409
  LOR: "LOR";
195
410
  }>>;
196
411
  lastModified: z.ZodNullable<z.ZodInt>;
197
- }, 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>>>;
198
420
  billing: z.ZodObject<{
199
421
  preferences: z.ZodObject<{
422
+ allowInvoiceDist: z.ZodBoolean;
423
+ useCreatedServices: z.ZodBoolean;
424
+ serviceSelector: z.ZodEnum<{
425
+ scheduler: "scheduler";
426
+ doctor: "doctor";
427
+ }>;
428
+ enforcePaidAppts: z.ZodBoolean;
429
+ primaryCurrency: z.ZodEnum<{
430
+ JMD: "JMD";
431
+ }>;
432
+ acceptedCurrencies: z.ZodPipe<z.ZodArray<z.ZodEnum<{
433
+ JMD: "JMD";
434
+ }>>, z.ZodTransform<"JMD"[], "JMD"[]>>;
435
+ lastModified: z.ZodNullable<z.ZodInt>;
436
+ }, z.core.$strip>;
437
+ additionalFees: z.ZodDefault<z.ZodArray<z.ZodObject<{
200
438
  createdAt: z.ZodReadonly<z.ZodInt>;
201
439
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
440
+ description: z.ZodOptional<z.ZodString>;
441
+ fixedAmount: z.ZodNumber;
442
+ percentage: z.ZodNumber;
443
+ }, z.core.$strip>>>;
444
+ discounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
445
+ createdAt: z.ZodReadonly<z.ZodInt>;
446
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
447
+ description: z.ZodOptional<z.ZodString>;
448
+ fixedAmount: z.ZodNumber;
449
+ percentage: z.ZodNumber;
450
+ }, z.core.$strip>>>;
451
+ services: z.ZodDefault<z.ZodArray<z.ZodObject<{
452
+ createdAt: z.ZodReadonly<z.ZodInt>;
453
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
454
+ item: z.ZodString;
455
+ cost: z.ZodNumber;
456
+ }, z.core.$strip>>>;
457
+ lastModified: z.ZodNullable<z.ZodInt>;
458
+ }, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
459
+ preferences: z.ZodObject<{
202
460
  allowInvoiceDist: z.ZodBoolean;
203
461
  useCreatedServices: z.ZodBoolean;
204
462
  serviceSelector: z.ZodEnum<{
@@ -212,6 +470,7 @@ declare const CompanyDetails: z.ZodObject<{
212
470
  acceptedCurrencies: z.ZodPipe<z.ZodArray<z.ZodEnum<{
213
471
  JMD: "JMD";
214
472
  }>>, z.ZodTransform<"JMD"[], "JMD"[]>>;
473
+ lastModified: z.ZodNullable<z.ZodInt>;
215
474
  }, z.core.$strip>;
216
475
  additionalFees: z.ZodDefault<z.ZodArray<z.ZodObject<{
217
476
  createdAt: z.ZodReadonly<z.ZodInt>;
@@ -234,7 +493,7 @@ declare const CompanyDetails: z.ZodObject<{
234
493
  cost: z.ZodNumber;
235
494
  }, z.core.$strip>>>;
236
495
  lastModified: z.ZodNullable<z.ZodInt>;
237
- }, z.core.$strip>;
496
+ }, z.core.$strip>>>;
238
497
  staffDetails: z.ZodPipe<z.ZodObject<{
239
498
  members: z.ZodArray<z.ZodObject<{
240
499
  createdAt: z.ZodReadonly<z.ZodInt>;
@@ -296,10 +555,71 @@ declare const CompanyDetails: z.ZodObject<{
296
555
  partnerMap: Record<string, string[]>;
297
556
  blackList: string[];
298
557
  lastModified: number | null;
299
- }>>;
300
- 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>>;
301
621
  }, z.core.$strip>;
302
- type CompanyDetails = z.infer<typeof CompanyDetails>;
622
+ type PartialCompanyDetails = z.infer<typeof PartialCompanyDetails>;
303
623
 
304
624
  declare const InvoiceNo: z.ZodString;
305
625
  declare const UuidV4: z.ZodReadonly<z.ZodString>;
@@ -354,4 +674,4 @@ declare const findConflictingPartners: (...partners: CompanyUser[]) => {
354
674
  /**@returns the roles that are compatible with the selected role. */
355
675
  declare const getCompatibleRoles: (role: CompanyUserRole) => CompanyUserRole[];
356
676
 
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 };
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
@@ -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(
@@ -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.28",
3
+ "version": "0.0.30",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",