@cofondateurauchomage/libs 1.1.27 → 1.1.28
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 +1 -5
- package/build/api.validate.js +0 -4
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IContact, INewsletter, IProject, IUser } from "./db.model";
|
|
2
|
-
export type CloudFunctionNames = "createProject" | "updateProject" | "deleteProject" | "addStripeIdToProject" | "activeProject" | "createUser" | "updateUser" | "deleteUser" | "activeUser" | "addStatsAssociation" | "updateNewsletter"
|
|
2
|
+
export type CloudFunctionNames = "createProject" | "updateProject" | "deleteProject" | "addStripeIdToProject" | "activeProject" | "createUser" | "updateUser" | "deleteUser" | "activeUser" | "addStatsAssociation" | "updateNewsletter";
|
|
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" | "active" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId"> & IContact & {
|
|
@@ -38,8 +38,4 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
|
|
|
38
38
|
stripeId: string;
|
|
39
39
|
};
|
|
40
40
|
webhook: {};
|
|
41
|
-
readNotification: {
|
|
42
|
-
id: string;
|
|
43
|
-
};
|
|
44
|
-
readAllNotifications: {};
|
|
45
41
|
}[O];
|
package/build/api.validate.js
CHANGED
|
@@ -113,10 +113,6 @@ const validatorsForAllRoutes = {
|
|
|
113
113
|
match: (0, validate_1.isBoolean)().isOptional(),
|
|
114
114
|
marketing: (0, validate_1.isBoolean)().isOptional(),
|
|
115
115
|
},
|
|
116
|
-
readNotification: {
|
|
117
|
-
id,
|
|
118
|
-
},
|
|
119
|
-
readAllNotifications: {},
|
|
120
116
|
//////////
|
|
121
117
|
// Routes
|
|
122
118
|
checkout_session: {
|