@cofondateurauchomage/libs 1.1.121 → 1.1.124

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/build/api.d.ts CHANGED
@@ -7,13 +7,13 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
7
7
  emailProspect: string;
8
8
  };
9
9
  deleteProject: {};
10
- updateProject: Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer" | "postedOnLinkedInAt" | "partner_swanbase" | "partner_iii"> & Omit<IContact, "email">;
10
+ updateProject: Partial<Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer" | "postedOnLinkedInAt" | "partner_swanbase" | "partner_iii"> & Omit<IContact, "email">>;
11
11
  createUser: Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer"> & IContact & {
12
12
  newsletterMarketing?: boolean;
13
13
  emailProspect: string;
14
14
  };
15
15
  deleteUser: {};
16
- updateUser: Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer"> & Omit<IContact, "email">;
16
+ updateUser: Partial<Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer"> & Omit<IContact, "email">>;
17
17
  updateVisibility: {
18
18
  visibility: TVisibility;
19
19
  };
@@ -88,19 +88,23 @@ const schemasForAllRoutes = {
88
88
  ...contactCreate,
89
89
  }),
90
90
  deleteProject: zod_1.z.object({}),
91
- updateProject: zod_1.z.object({
91
+ updateProject: zod_1.z
92
+ .object({
92
93
  ...projectBody,
93
94
  ...contactUpdate,
94
- }),
95
+ })
96
+ .partial(),
95
97
  createUser: zod_1.z.object({
96
98
  ...userBody,
97
99
  ...contactCreate,
98
100
  }),
99
101
  deleteUser: zod_1.z.object({}),
100
- updateUser: zod_1.z.object({
102
+ updateUser: zod_1.z
103
+ .object({
101
104
  ...userBody,
102
105
  ...contactUpdate,
103
- }),
106
+ })
107
+ .partial(),
104
108
  updateVisibility: zod_1.z.object({
105
109
  visibility: zVisibility,
106
110
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.121",
3
+ "version": "1.1.124",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {