@bizmap/sdk 0.0.80 → 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 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>;
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,7 +479,6 @@ 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
- /** Stored in millis */
483
482
  ttl: z14.number(),
484
483
  lastModified: Timestamp.nullable(),
485
484
  expiresAfter: z14.date()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.80",
3
+ "version": "0.0.81",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",