@intlayer/backend 3.5.3 → 3.5.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/backend",
3
- "version": "3.5.3",
3
+ "version": "3.5.4",
4
4
  "private": false,
5
5
  "description": "IntLayer Backend is a an application that allow you to manage your IntLayer content and interact with the intlayer editor.",
6
6
  "keywords": [
@@ -72,7 +72,7 @@
72
72
  "uuid": "^11.0.3",
73
73
  "validator": "^13.12.0",
74
74
  "winston": "^3.17.0",
75
- "express-intlayer": "^3.5.3"
75
+ "express-intlayer": "^3.5.4"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@types/bcrypt": "^5.0.2",
@@ -97,11 +97,11 @@
97
97
  "tsx": "^4.19.2",
98
98
  "typescript": "^5.7.2",
99
99
  "@utils/eslint-config": "^1.0.4",
100
- "@utils/ts-config-types": "^1.0.4",
101
- "@utils/tsup-config": "^1.0.4",
102
- "intlayer": "^3.5.3",
100
+ "@intlayer/core": "^3.5.4",
103
101
  "@utils/ts-config": "^1.0.4",
104
- "@intlayer/core": "^3.5.3"
102
+ "@utils/tsup-config": "^1.0.4",
103
+ "intlayer": "^3.5.4",
104
+ "@utils/ts-config-types": "^1.0.4"
105
105
  },
106
106
  "scripts": {
107
107
  "build": "pnpm build:package & pnpm build:types",
@@ -1,10 +0,0 @@
1
- import type { Request, NextFunction } from 'express';
2
- import { ResponseWithInformation } from './sessionAuth.middleware';
3
- /**
4
- * Middleware to check if the user is an admin of the organization or project
5
- * Sets the following properties in res.locals:
6
- * - isOrganizationAdmin: boolean
7
- * - isProjectAdmin: boolean
8
- */
9
- export declare const checkAdmin: (_req: Request, res: ResponseWithInformation, next: NextFunction) => Promise<void>;
10
- //# sourceMappingURL=admin.middleware.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin.middleware.d.ts","sourceRoot":"","sources":["../../../src/middlewares/admin.middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,UAAU,SACf,OAAO,OACR,uBAAuB,QACtB,YAAY,KACjB,OAAO,CAAC,IAAI,CA0Bd,CAAC"}
@@ -1,11 +0,0 @@
1
- import { Plan } from '../types/plan.types';
2
- export declare const PlanModel: import("mongoose").Model<Plan, {}, {}, {}, import("mongoose").Document<unknown, {}, Plan> & import("../types/plan.types").PlanData & {
3
- _id: import("mongoose").ObjectId;
4
- createdAt: number;
5
- updatedAt: number;
6
- } & Required<{
7
- _id: import("mongoose").Schema.Types.ObjectId;
8
- }> & {
9
- __v: number;
10
- }, any>;
11
- //# sourceMappingURL=plan.moddel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plan.moddel.d.ts","sourceRoot":"","sources":["../../../src/models/plan.moddel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,eAAO,MAAM,SAAS;;;;;;;;OAAkC,CAAC"}
@@ -1,35 +0,0 @@
1
- import { ObjectId } from 'mongoose';
2
- import { Plan, PlanData, PlanDocument } from '../types/plan.types';
3
- /**
4
- * Creates a new plan in the database.
5
- * @param plan - The plan data to create.
6
- * @returns The created plan.
7
- */
8
- export declare const createNewPlan: (plan: PlanData) => Promise<PlanDocument | null>;
9
- /**
10
- * Updates an existing plan in the database by its ID.
11
- * @param planId - The ID of the plan to update.
12
- * @param plan - The updated plan data.
13
- * @returns The updated plan.
14
- */
15
- export declare const updatePlan: (planId: string | ObjectId, plan: Partial<Plan>) => Promise<PlanDocument | null>;
16
- export type PlanSelector = Pick<PlanDocument, 'organizationId' | 'userId'> | Pick<PlanDocument, 'organizationId'> | Pick<PlanDocument, '_id'>;
17
- /**
18
- * Retrieves a plan by its ID.
19
- * @param planId - The ID of the plan to find.
20
- * @returns The plan matching the ID.
21
- */
22
- export declare const getPlan: (planData: PlanSelector) => Promise<PlanDocument | null>;
23
- /**
24
- * Retrieves a plan by its ID.
25
- * @param planId - The ID of the plan to find.
26
- * @returns The plan matching the ID.
27
- */
28
- export declare const attachPlanToOrganization: (userId: string | ObjectId, organizationId: string | ObjectId) => Promise<PlanDocument | null>;
29
- /**
30
- * Cancels a plan by its organization ID.
31
- * @param organizationId - The ID of the organization to cancel the plan.
32
- * @returns The cancelled plan.
33
- */
34
- export declare const cancelPlan: (organizationId: string | ObjectId) => Promise<PlanDocument | null>;
35
- //# sourceMappingURL=plans.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plans.service.d.ts","sourceRoot":"","sources":["../../../src/services/plans.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,aAAa,SAClB,QAAQ,KACb,OAAO,CAAC,YAAY,GAAG,IAAI,CAY7B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,GAAG,QAAQ,QACnB,OAAO,CAAC,IAAI,CAAC,KAClB,OAAO,CAAC,YAAY,GAAG,IAAI,CAK3B,CAAC;AAEJ,MAAM,MAAM,YAAY,GACpB,IAAI,CAAC,YAAY,EAAE,gBAAgB,GAAG,QAAQ,CAAC,GAC/C,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,GACpC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAE9B;;;;GAIG;AACH,eAAO,MAAM,OAAO,aACR,YAAY,KACrB,OAAO,CAAC,YAAY,GAAG,IAAI,CAAsC,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,WAC3B,MAAM,GAAG,QAAQ,kBACT,MAAM,GAAG,QAAQ,KAChC,OAAO,CAAC,YAAY,GAAG,IAAI,CAQ7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,mBACL,MAAM,GAAG,QAAQ,KAChC,OAAO,CAAC,YAAY,GAAG,IAAI,CAU7B,CAAC"}
@@ -1,3 +0,0 @@
1
- import { type Request, type Response } from 'express';
2
- export declare const stripeWebhook: (request: Request, response: Response) => Promise<void>;
3
- //# sourceMappingURL=stripe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stripe.d.ts","sourceRoot":"","sources":["../../../src/webhooks/stripe.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGtD,eAAO,MAAM,aAAa,YAAmB,OAAO,YAAY,QAAQ,kBA4FvE,CAAC"}