@cofondateurauchomage/libs 1.1.116 → 1.1.118
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 +10 -5
- package/build/api.validate.js +9 -4
- package/build/const.d.ts +2 -1
- package/build/const.js +6 -1
- package/build/db.model.d.ts +1 -0
- package/package.json +1 -1
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> = {
|
|
@@ -44,10 +44,15 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
|
|
|
44
44
|
apiSecretKey: string;
|
|
45
45
|
};
|
|
46
46
|
checkout_session: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
customer: {
|
|
48
|
+
email: string;
|
|
49
|
+
stripeId?: string;
|
|
50
|
+
type: "user" | "project";
|
|
51
|
+
creationDate: number;
|
|
52
|
+
referrer: string | null;
|
|
53
|
+
};
|
|
54
|
+
planOption: TPlanOption;
|
|
55
|
+
checkoutOrigin: string | null;
|
|
51
56
|
};
|
|
52
57
|
delete_customer: {
|
|
53
58
|
stripeId: string;
|
package/build/api.validate.js
CHANGED
|
@@ -174,10 +174,15 @@ const schemasForAllRoutes = {
|
|
|
174
174
|
toc: zod_1.z.string().optional(),
|
|
175
175
|
}),
|
|
176
176
|
checkout_session: zod_1.z.object({
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
customer: zod_1.z.object({
|
|
178
|
+
email: zod_1.z.string(),
|
|
179
|
+
stripeId: zStrMax50.optional(),
|
|
180
|
+
type: zod_1.z.enum(["user", "project"]),
|
|
181
|
+
creationDate: zod_1.z.number(),
|
|
182
|
+
referrer: zod_1.z.string().nullable(),
|
|
183
|
+
}),
|
|
184
|
+
planOption: zod_1.z.enum(const_1.PLAN_OPTIONS),
|
|
185
|
+
checkoutOrigin: zod_1.z.string().nullable(),
|
|
181
186
|
}),
|
|
182
187
|
delete_customer: zod_1.z.object({
|
|
183
188
|
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",
|
package/build/db.model.d.ts
CHANGED
|
@@ -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";
|