@bizmap/sdk 0.0.122 → 0.0.123
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 +30 -1
- package/dist/main.js +5 -4
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -634,6 +634,35 @@ declare const CompanyIndustry: z.ZodObject<{
|
|
|
634
634
|
}, z.core.$strip>;
|
|
635
635
|
}, z.core.$strip>;
|
|
636
636
|
|
|
637
|
+
declare const CompanySession: z.ZodObject<{
|
|
638
|
+
createdAt: z.ZodReadonly<z.ZodISODateTime>;
|
|
639
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
640
|
+
_id: z.ZodUUID;
|
|
641
|
+
userId: z.ZodUUID;
|
|
642
|
+
companyId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
643
|
+
deviceId: z.ZodString;
|
|
644
|
+
isAvailable: z.ZodObject<{
|
|
645
|
+
value: z.ZodBoolean;
|
|
646
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
647
|
+
}, z.core.$strip>;
|
|
648
|
+
isBusy: z.ZodObject<{
|
|
649
|
+
value: z.ZodBoolean;
|
|
650
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
651
|
+
}, z.core.$strip>;
|
|
652
|
+
taskCounter: z.ZodRecord<z.ZodLiteral<"undone" | "done">, z.ZodInt>;
|
|
653
|
+
roles: z.ZodPipe<z.ZodArray<z.ZodEnum<{
|
|
654
|
+
doc: "doc";
|
|
655
|
+
physAsst: "physAsst";
|
|
656
|
+
rcpst: "rcpst";
|
|
657
|
+
cshr: "cshr";
|
|
658
|
+
"a/r": "a/r";
|
|
659
|
+
ceo: "ceo";
|
|
660
|
+
}>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "a/r" | "ceo")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "a/r" | "ceo")[]>>;
|
|
661
|
+
ttl: z.ZodNumber;
|
|
662
|
+
expiresAfter: z.ZodDate;
|
|
663
|
+
}, z.core.$strip>;
|
|
664
|
+
type CompanySession = z.infer<typeof CompanySession>;
|
|
665
|
+
|
|
637
666
|
declare const TierList: z.ZodRecord<z.ZodEnum<{
|
|
638
667
|
basic: "basic";
|
|
639
668
|
pro: "pro";
|
|
@@ -1180,4 +1209,4 @@ declare function createNotifId(options?: {
|
|
|
1180
1209
|
to: string;
|
|
1181
1210
|
}): string;
|
|
1182
1211
|
|
|
1183
|
-
export { type AcceptedCurrency, AlphaNumeric, COMPANY_USER_RELATIONSHIP, ClientDetails, ClientForm, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyIndustry, CompanyNotifications, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, type CompanyUserRole, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, InviteResponse, InvoiceNo, MAX_COMPANY_PRICE_MODS, MedicalDetails, Medicine, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, MutableCompanyStaff, MutableTaskDetails, Notification, PaymentDetails, type PaymentMethod, PriceMod, PriceModList, PriceTag, Reason, Receipts, StandardTime, TaskDetails, type TaskDistAlg, TaskSeverity, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, Vitals, acceptedCurrencies, adminRoles, calcBalance, calcPriceMod, companyServiceSelectors, companyUserRoles, createNotifId, employeeRoles, genders, getCompatibleRoles, getIncompatibleRoles, healthcareProviderRoles, normalizeCompanyId, normalizeNidKey, parseClientName, paymentMethods, taskDistAlgs, tiers, vitalKeys };
|
|
1212
|
+
export { type AcceptedCurrency, AlphaNumeric, COMPANY_USER_RELATIONSHIP, ClientDetails, ClientForm, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyIndustry, CompanyNotifications, CompanyPreferences, type CompanyServiceSelector, CompanySession, CompanyStaff, CompanyState, type CompanyUserRole, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, InviteResponse, InvoiceNo, MAX_COMPANY_PRICE_MODS, MedicalDetails, Medicine, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, MutableCompanyStaff, MutableTaskDetails, Notification, PaymentDetails, type PaymentMethod, PriceMod, PriceModList, PriceTag, Reason, Receipts, StandardTime, TaskDetails, type TaskDistAlg, TaskSeverity, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, Vitals, acceptedCurrencies, adminRoles, calcBalance, calcPriceMod, companyServiceSelectors, companyUserRoles, createNotifId, employeeRoles, genders, getCompatibleRoles, getIncompatibleRoles, healthcareProviderRoles, normalizeCompanyId, normalizeNidKey, parseClientName, paymentMethods, taskDistAlgs, tiers, vitalKeys };
|
package/dist/main.js
CHANGED
|
@@ -438,7 +438,7 @@ var CompanyMemberRoles = z14.array(companyUserRoles).transform((roles) => distin
|
|
|
438
438
|
(role) => getIncompatibleRoles(role).some((r) => roles.includes(r))
|
|
439
439
|
);
|
|
440
440
|
}, "A user is not allowed to have conflicting roles.");
|
|
441
|
-
var
|
|
441
|
+
var CompanyStaff = z14.object({
|
|
442
442
|
_id: CompanyState.shape._id,
|
|
443
443
|
members: z14.record(
|
|
444
444
|
UserDetails.shape._id,
|
|
@@ -489,7 +489,7 @@ var CompanyStaff2 = z14.object({
|
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
});
|
|
492
|
-
var MutableCompanyStaff =
|
|
492
|
+
var MutableCompanyStaff = CompanyStaff.pick({
|
|
493
493
|
updateQueue: true,
|
|
494
494
|
partnerMap: true
|
|
495
495
|
});
|
|
@@ -503,7 +503,7 @@ var CompanyDetails = z15.object({
|
|
|
503
503
|
state: CompanyState.omit({ _id: true }),
|
|
504
504
|
preferences: CompanyPreferences.omit({ _id: true }),
|
|
505
505
|
billing: CompanyBilling.omit({ _id: true }),
|
|
506
|
-
staff:
|
|
506
|
+
staff: CompanyStaff.omit({ _id: true })
|
|
507
507
|
});
|
|
508
508
|
var MutableCompanyDetails = z15.object({
|
|
509
509
|
_id: CompanyDetails.shape._id,
|
|
@@ -841,7 +841,8 @@ export {
|
|
|
841
841
|
CompanyIndustry,
|
|
842
842
|
CompanyNotifications,
|
|
843
843
|
CompanyPreferences,
|
|
844
|
-
|
|
844
|
+
CompanySession,
|
|
845
|
+
CompanyStaff,
|
|
845
846
|
CompanyState,
|
|
846
847
|
CreateCompanyForm,
|
|
847
848
|
CreditCurrency,
|