@cofondateurauchomage/libs 1.1.116 → 1.1.117

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,4 +1,4 @@
1
- import { IBlogHtmlArticle, IContact, INewsletter, IProject, IProspect, IReactionStatus, IUser, TPlan, TVisibility } from "./db.model";
1
+ import { IBlogHtmlArticle, IContact, INewsletter, IProject, IProspect, IReactionStatus, IUser, TPlan, TPlanOption, TVisibility } from "./db.model";
2
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> = {
@@ -47,7 +47,7 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
47
47
  stripeId?: string;
48
48
  email: string;
49
49
  type: "user" | "project";
50
- planOption: "month" | "annual";
50
+ planOption: TPlanOption;
51
51
  };
52
52
  delete_customer: {
53
53
  stripeId: string;
@@ -177,7 +177,7 @@ const schemasForAllRoutes = {
177
177
  stripeId: zStrMax50.optional(),
178
178
  email: zod_1.z.string(),
179
179
  type: zod_1.z.enum(["user", "project"]),
180
- planOption: zod_1.z.enum(["month", "annual"]),
180
+ planOption: zod_1.z.enum(const_1.PLAN_OPTIONS),
181
181
  }),
182
182
  delete_customer: zod_1.z.object({
183
183
  stripeId: zStrMax50,
package/build/const.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import { TAmbition, TAvailability, TIndustry, TPlan, TProductType, TProjectStatus, TSkill, TVisibility } from "./db.model";
1
+ import { TAmbition, TAvailability, TIndustry, TPlan, TPlanOption, TProductType, TProjectStatus, TSkill, TVisibility } from "./db.model";
2
2
  export declare const EMAIL = "contact@cofondateurauchomage.fr";
3
3
  export declare const SKILLS: TSkill[];
4
4
  export declare const PROJECT_STATUS: TProjectStatus[];
5
5
  export declare const PLANS: TPlan[];
6
+ export declare const PLAN_OPTIONS: TPlanOption[];
6
7
  export declare const VISIBILITIES: TVisibility[];
7
8
  export declare const AVAILABILITY: TAvailability[];
8
9
  export declare const AMBITIONS: TAmbition[];
package/build/const.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.INDUSTRIES = exports.PRODUCT_TYPES = exports.AMBITIONS = exports.AVAILABILITY = exports.VISIBILITIES = exports.PLANS = exports.PROJECT_STATUS = exports.SKILLS = exports.EMAIL = void 0;
3
+ exports.INDUSTRIES = exports.PRODUCT_TYPES = exports.AMBITIONS = exports.AVAILABILITY = exports.VISIBILITIES = exports.PLAN_OPTIONS = exports.PLANS = exports.PROJECT_STATUS = exports.SKILLS = exports.EMAIL = void 0;
4
4
  exports.EMAIL = "contact@cofondateurauchomage.fr";
5
5
  exports.SKILLS = [
6
6
  "Tech",
@@ -19,6 +19,11 @@ exports.PROJECT_STATUS = [
19
19
  "growth",
20
20
  ];
21
21
  exports.PLANS = ["free", "pro"];
22
+ exports.PLAN_OPTIONS = [
23
+ "weekly",
24
+ "monthly",
25
+ "quarterly",
26
+ ];
22
27
  exports.VISIBILITIES = ["public", "limited", "private"];
23
28
  exports.AVAILABILITY = [
24
29
  "full_time",
@@ -12,6 +12,7 @@ export declare enum Collections {
12
12
  }
13
13
  export type TSkill = "Sales" | "Operation" | "Design" | "Marketing" | "Produit" | "Tech" | "Growth" | "Finance";
14
14
  export type TPlan = "free" | "pro" | "premium";
15
+ export type TPlanOption = "weekly" | "monthly" | "quarterly";
15
16
  export type TVisibility = "public" | "limited" | "private";
16
17
  export type TProjectStatus = "idea" | "creation" | "launch" | "growth";
17
18
  export type TAvailability = "full_time" | "part_time";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.116",
3
+ "version": "1.1.117",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {