@cofondateurauchomage/libs 1.1.47 → 1.1.49

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
@@ -1,5 +1,5 @@
1
1
  import { IContact, INewsletter, IProject, IProspect, IReactionStatus, IUser, TPlan } from "./db.model";
2
- export type CloudFunctionNames = "createProject" | "updateProject" | "deleteProject" | "activeProject" | "createUser" | "updateUser" | "deleteUser" | "activeUser" | "addStripeId" | "updatePlan" | "addStatsAssociation" | "updateNewsletter" | "createProspect" | "createUserReaction";
2
+ export type CloudFunctionNames = "createProject" | "updateProject" | "deleteProject" | "activeProject" | "createUser" | "updateUser" | "deleteUser" | "activeUser" | "addStripeId" | "updatePlan" | "addStatsAssociation" | "updateNewsletter" | "createProspect" | "createReaction";
3
3
  export type RouteNames = "checkout_session" | "delete_customer" | "portal_session" | "webhook";
4
4
  export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
5
5
  createProject: Omit<IProject, "id" | "plan" | "active" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId"> & IContact & {
@@ -37,8 +37,8 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
37
37
  addStatsAssociation: {};
38
38
  updateNewsletter: INewsletter;
39
39
  createProspect: IProspect;
40
- createUserReaction: {
41
- toId: "string";
40
+ createReaction: {
41
+ toId: string;
42
42
  status: IReactionStatus;
43
43
  };
44
44
  checkout_session: {
@@ -135,7 +135,7 @@ const validatorsForAllRoutes = {
135
135
  createProspect: {
136
136
  email,
137
137
  },
138
- createUserReaction: {
138
+ createReaction: {
139
139
  toId: (0, validate_1.isString)(),
140
140
  status: reactionStatus,
141
141
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.47",
3
+ "version": "1.1.49",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {