@fonderie/workspaces 5.1.0 → 5.2.1

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.
@@ -106,6 +106,7 @@ interface IWorkspaceDTO {
106
106
  isPersonal: boolean;
107
107
  isArchived: boolean;
108
108
  archivedAt: string;
109
+ archivedBy: string;
109
110
  createdAt: string;
110
111
  updatedAt: string;
111
112
  }
@@ -126,6 +127,10 @@ interface IMemberDTO {
126
127
  roleName: string;
127
128
  confirmed: boolean;
128
129
  createdAt: string;
130
+ email: string;
131
+ firstName: string;
132
+ lastName: string;
133
+ profileImageUrl: string;
129
134
  }
130
135
 
131
136
  interface IInvitationDTO {
package/dist/index.cjs CHANGED
@@ -78,10 +78,10 @@ var addressSchema = import_zod.z.object({
78
78
  line1: import_zod.z.string().max(200).optional(),
79
79
  line2: import_zod.z.string().max(200).optional(),
80
80
  city: import_zod.z.string().max(100).optional(),
81
- region: import_zod.z.string().max(100).optional(),
82
- postalCode: import_zod.z.string().max(20).optional(),
81
+ state: import_zod.z.string().max(100).optional(),
82
+ zip: import_zod.z.string().max(20).optional(),
83
83
  country: import_zod.z.string().max(60).optional()
84
- }).passthrough();
84
+ });
85
85
  var updateWorkspaceSchema = import_zod.z.object({
86
86
  name: import_zod.z.string().trim().min(1).max(200).optional(),
87
87
  description: import_zod.z.string().max(2e3).nullable().optional(),
@@ -693,9 +693,10 @@ function toWorkspaceDTO(ws) {
693
693
  ownerId: (0, import_parser.stringOrEmpty)(ws.ownerId),
694
694
  isPersonal: (0, import_parser.booleanOrFalse)(ws.isPersonal),
695
695
  isArchived: ws.archivedAt !== null,
696
- archivedAt: (0, import_parser.stringOrEmpty)(ws.archivedAt),
697
- createdAt: (0, import_parser.stringOrEmpty)(ws.createdAt),
698
- updatedAt: (0, import_parser.stringOrEmpty)(ws.updatedAt)
696
+ archivedAt: (0, import_parser.dateOrEmpty)(ws.archivedAt),
697
+ archivedBy: (0, import_parser.stringOrEmpty)(ws.archivedBy),
698
+ createdAt: (0, import_parser.dateOrEmpty)(ws.createdAt),
699
+ updatedAt: (0, import_parser.dateOrEmpty)(ws.updatedAt)
699
700
  };
700
701
  }
701
702
  function toRoleDTO(role) {
@@ -715,7 +716,11 @@ function toMemberDTO(m) {
715
716
  roleId: (0, import_parser.stringOrEmpty)(m.roleId),
716
717
  roleName: (0, import_parser.stringOrEmpty)(m.roleName),
717
718
  confirmed: (0, import_parser.booleanOrFalse)(m.confirmed),
718
- createdAt: (0, import_parser.stringOrEmpty)(m.createdAt)
719
+ createdAt: (0, import_parser.dateOrEmpty)(m.createdAt),
720
+ email: (0, import_parser.stringOrEmpty)(m.email),
721
+ firstName: (0, import_parser.stringOrEmpty)(m.firstName),
722
+ lastName: (0, import_parser.stringOrEmpty)(m.lastName),
723
+ profileImageUrl: (0, import_parser.stringOrEmpty)(m.profileImageUrl)
719
724
  };
720
725
  }
721
726
  function toInvitationDTO(inv) {
@@ -726,8 +731,8 @@ function toInvitationDTO(inv) {
726
731
  roleId: (0, import_parser.stringOrEmpty)(inv.roleId),
727
732
  token: (0, import_parser.stringOrEmpty)(inv.token),
728
733
  status: (0, import_parser.stringOrEmpty)(inv.status),
729
- expiresAt: (0, import_parser.stringOrEmpty)(inv.expiresAt),
730
- createdAt: (0, import_parser.stringOrEmpty)(inv.createdAt)
734
+ expiresAt: (0, import_parser.dateOrEmpty)(inv.expiresAt),
735
+ createdAt: (0, import_parser.dateOrEmpty)(inv.createdAt)
731
736
  };
732
737
  }
733
738
  function toSettingsDTO(s) {