@bizmap/sdk 0.0.79 → 0.0.81
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 +2 -1
- package/dist/main.js +2 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -751,13 +751,13 @@ type CompanyState = z.infer<typeof CompanyState>;
|
|
|
751
751
|
|
|
752
752
|
declare const CompanyUserSession: z.ZodObject<{
|
|
753
753
|
_id: z.ZodUUID;
|
|
754
|
-
srcIp: z.ZodString;
|
|
755
754
|
user: z.ZodObject<{
|
|
756
755
|
_id: z.ZodUUID;
|
|
757
756
|
email: z.ZodEmail;
|
|
758
757
|
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
759
758
|
}, z.core.$strip>;
|
|
760
759
|
companyId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
760
|
+
deviceId: z.ZodString;
|
|
761
761
|
isAvailable: z.ZodObject<{
|
|
762
762
|
value: z.ZodBoolean;
|
|
763
763
|
lastModified: z.ZodNullable<z.ZodInt>;
|
|
@@ -774,6 +774,7 @@ declare const CompanyUserSession: z.ZodObject<{
|
|
|
774
774
|
cshr: "cshr";
|
|
775
775
|
founder: "founder";
|
|
776
776
|
}>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "founder")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "founder")[]>>;
|
|
777
|
+
ttl: z.ZodNumber;
|
|
777
778
|
lastModified: z.ZodNullable<z.ZodInt>;
|
|
778
779
|
expiresAfter: z.ZodDate;
|
|
779
780
|
}, z.core.$strip>;
|
package/dist/main.js
CHANGED
|
@@ -456,9 +456,9 @@ var UserDetails = z13.object({
|
|
|
456
456
|
// src/schemas/company/components/User.ts
|
|
457
457
|
var CompanyUserSession = z14.object({
|
|
458
458
|
_id: z14.uuidv4(),
|
|
459
|
-
srcIp: z14.string(),
|
|
460
459
|
user: UserDetails.pick({ _id: true, name: true, email: true }),
|
|
461
460
|
companyId: CompanyState.shape._id,
|
|
461
|
+
deviceId: z14.string().trim().min(15),
|
|
462
462
|
isAvailable: z14.object({
|
|
463
463
|
value: z14.boolean(),
|
|
464
464
|
lastModified: Timestamp.nullable()
|
|
@@ -479,6 +479,7 @@ var CompanyUserSession = z14.object({
|
|
|
479
479
|
(role, i) => i === 0 || getCompatibleRoles(roles[0]).includes(role)
|
|
480
480
|
);
|
|
481
481
|
}, "A user is not allowed to have conflicting roles."),
|
|
482
|
+
ttl: z14.number(),
|
|
482
483
|
lastModified: Timestamp.nullable(),
|
|
483
484
|
expiresAfter: z14.date()
|
|
484
485
|
});
|