@cofondateurauchomage/libs 1.1.106 → 1.1.108

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
- import { IContact, INewsletter, IProject, IProspect, IReactionStatus, IUser, TPlan, TVisibility } from "./db.model";
2
- export type CloudFunctionNames = "createProject" | "updateProject" | "deleteProject" | "createUser" | "updateUser" | "deleteUser" | "updateVisibility" | "addStripeId" | "updatePlan" | "addStatsAssociation" | "updateNewsletter" | "createProspect" | "getProspect" | "updateProspect" | "createReaction" | "deleteReaction";
1
+ import { IBlogHtmlArticle, IContact, INewsletter, IProject, IProspect, IReactionStatus, IUser, TPlan, TVisibility } from "./db.model";
2
+ export type CloudFunctionNames = "createProject" | "updateProject" | "deleteProject" | "createUser" | "updateUser" | "deleteUser" | "updateVisibility" | "addStripeId" | "updatePlan" | "addStatsAssociation" | "updateNewsletter" | "createProspect" | "getProspect" | "updateProspect" | "createReaction" | "deleteReaction" | "createBlogHtmlArticle";
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" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active" | "referrer" | "postedOnLinkedInAt"> & IContact & {
@@ -40,6 +40,7 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
40
40
  deleteReaction: {
41
41
  toId: string;
42
42
  };
43
+ createBlogHtmlArticle: Omit<IBlogHtmlArticle, "date">;
43
44
  checkout_session: {
44
45
  stripeId?: string;
45
46
  email: string;
@@ -80,6 +81,7 @@ export type ResponseForO<O extends CloudFunctionNames | RouteNames> = {
80
81
  updateProspect: WriteResult | null;
81
82
  createReaction: WriteResult;
82
83
  deleteReaction: WriteResult;
84
+ createBlogHtmlArticle: WriteResult;
83
85
  checkout_session: {
84
86
  sessionId: string;
85
87
  };
@@ -63,7 +63,7 @@ const validatorsForAllRoutes = {
63
63
  newsletterMarketing,
64
64
  logo,
65
65
  partner_swanbase: (0, validate_1.isBoolean)().isOptional(),
66
- partner_3i: (0, validate_1.isBoolean)().isOptional(),
66
+ partner_iii: (0, validate_1.isBoolean)().isOptional(),
67
67
  },
68
68
  deleteProject: {},
69
69
  updateProject: {
@@ -176,7 +176,7 @@ const validatorsForAllRoutes = {
176
176
  turnover: turnover.isOptional(),
177
177
  description: description.isOptional(),
178
178
  partner_swanbase: (0, validate_1.isBoolean)().isOptional(),
179
- partner_3i: (0, validate_1.isBoolean)().isOptional(),
179
+ partner_iii: (0, validate_1.isBoolean)().isOptional(),
180
180
  availability: availability.isOptional(),
181
181
  },
182
182
  createReaction: {
@@ -186,6 +186,12 @@ const validatorsForAllRoutes = {
186
186
  deleteReaction: {
187
187
  toId: (0, validate_1.isString)(),
188
188
  },
189
+ createBlogHtmlArticle: {
190
+ title: (0, validate_1.isString)(),
191
+ description: (0, validate_1.isString)(),
192
+ slug: (0, validate_1.isString)(),
193
+ htmlContent: (0, validate_1.isString)(),
194
+ },
189
195
  //////////
190
196
  // Routes
191
197
  checkout_session: {
@@ -7,7 +7,8 @@ export declare enum Collections {
7
7
  notifications = "notifications",
8
8
  prospects = "prospects",
9
9
  reactions = "reactions",
10
- visits = "visits"
10
+ visits = "visits",
11
+ blogHtmlArticles = "blog_html_articles"
11
12
  }
12
13
  export type TSkill = "Sales" | "Operation" | "Design" | "Marketing" | "Produit" | "Tech";
13
14
  export type TPlan = "free" | "pro" | "premium";
@@ -70,7 +71,7 @@ export interface IProject {
70
71
  lastConnection: number;
71
72
  stripeId?: string;
72
73
  partner_swanbase?: boolean;
73
- partner_3i?: boolean;
74
+ partner_iii?: boolean;
74
75
  referrer?: string;
75
76
  postedOnLinkedInAt?: number;
76
77
  }
@@ -114,3 +115,10 @@ export interface IReaction {
114
115
  export interface IVisit {
115
116
  visits: number;
116
117
  }
118
+ export interface IBlogHtmlArticle {
119
+ slug: string;
120
+ title: string;
121
+ description: string;
122
+ date: string;
123
+ htmlContent: string;
124
+ }
package/build/db.model.js CHANGED
@@ -12,4 +12,5 @@ var Collections;
12
12
  Collections["prospects"] = "prospects";
13
13
  Collections["reactions"] = "reactions";
14
14
  Collections["visits"] = "visits";
15
+ Collections["blogHtmlArticles"] = "blog_html_articles";
15
16
  })(Collections = exports.Collections || (exports.Collections = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.106",
3
+ "version": "1.1.108",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {