@intlayer/backend 7.5.12 → 7.5.13
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/dist/assets/utils/AI/askDocQuestion/embeddings/frequent_questions/en/error-vite-env-only.json +2054 -0
- package/dist/esm/utils/AI/askDocQuestion/embeddings/frequent_questions/en/error-vite-env-only.json +2054 -0
- package/dist/types/controllers/ai.controller.d.ts.map +1 -1
- package/dist/types/emails/InviteUserEmail.d.ts +4 -4
- package/dist/types/emails/InviteUserEmail.d.ts.map +1 -1
- package/dist/types/emails/MagicLinkEmail.d.ts +4 -4
- package/dist/types/emails/OAuthTokenCreatedEmail.d.ts +4 -4
- package/dist/types/emails/OAuthTokenCreatedEmail.d.ts.map +1 -1
- package/dist/types/emails/PasswordChangeConfirmation.d.ts +4 -4
- package/dist/types/emails/ResetUserPassword.d.ts +4 -4
- package/dist/types/emails/SubscriptionPaymentCancellation.d.ts +4 -4
- package/dist/types/emails/SubscriptionPaymentError.d.ts +4 -4
- package/dist/types/emails/SubscriptionPaymentError.d.ts.map +1 -1
- package/dist/types/emails/SubscriptionPaymentSuccess.d.ts +4 -4
- package/dist/types/emails/SubscriptionPaymentSuccess.d.ts.map +1 -1
- package/dist/types/emails/ValidateUserEmail.d.ts +4 -4
- package/dist/types/emails/ValidateUserEmail.d.ts.map +1 -1
- package/dist/types/emails/Welcome.d.ts +4 -4
- package/dist/types/emails/Welcome.d.ts.map +1 -1
- package/dist/types/models/discussion.model.d.ts +3 -3
- package/dist/types/models/discussion.model.d.ts.map +1 -1
- package/dist/types/models/oAuth2.model.d.ts +3 -3
- package/dist/types/models/oAuth2.model.d.ts.map +1 -1
- package/dist/types/schemas/dictionary.schema.d.ts +6 -6
- package/dist/types/schemas/discussion.schema.d.ts +6 -6
- package/dist/types/schemas/oAuth2.schema.d.ts +5 -5
- package/dist/types/schemas/organization.schema.d.ts +6 -6
- package/dist/types/schemas/organization.schema.d.ts.map +1 -1
- package/dist/types/schemas/plans.schema.d.ts +6 -6
- package/dist/types/schemas/plans.schema.d.ts.map +1 -1
- package/dist/types/schemas/project.schema.d.ts +6 -6
- package/dist/types/schemas/session.schema.d.ts +6 -6
- package/dist/types/schemas/tag.schema.d.ts +6 -6
- package/dist/types/schemas/user.schema.d.ts +6 -6
- package/dist/types/schemas/user.schema.d.ts.map +1 -1
- package/dist/types/utils/errors/ErrorHandler.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +2 -2
- package/package.json +8 -8
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Tag, TagSchema } from "../types/tag.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose78 from "mongoose";
|
|
3
3
|
import { Schema } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas/tag.schema.d.ts
|
|
6
|
-
declare const tagSchema: Schema<TagSchema,
|
|
7
|
-
_id:
|
|
6
|
+
declare const tagSchema: Schema<TagSchema, mongoose78.Model<TagSchema, any, any, any, mongoose78.Document<unknown, any, TagSchema, any, {}> & Omit<Tag, "id"> & {
|
|
7
|
+
_id: mongoose78.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose78.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose78.DefaultSchemaOptions, TagSchema, mongoose78.Document<unknown, {}, mongoose78.FlatRecord<TagSchema>, {}, mongoose78.ResolveSchemaOptions<mongoose78.DefaultSchemaOptions>> & mongoose78.FlatRecord<TagSchema> & Required<{
|
|
13
|
+
_id: mongoose78.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { User, UserSchema } from "../types/user.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose100 from "mongoose";
|
|
3
3
|
import { Schema } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas/user.schema.d.ts
|
|
6
|
-
declare const userSchema: Schema<UserSchema,
|
|
7
|
-
_id:
|
|
6
|
+
declare const userSchema: Schema<UserSchema, mongoose100.Model<UserSchema, any, any, any, mongoose100.Document<unknown, any, UserSchema, any, {}> & Omit<User, "id"> & {
|
|
7
|
+
_id: mongoose100.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose100.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose100.DefaultSchemaOptions, UserSchema, mongoose100.Document<unknown, {}, mongoose100.FlatRecord<UserSchema>, {}, mongoose100.ResolveSchemaOptions<mongoose100.DefaultSchemaOptions>> & mongoose100.FlatRecord<UserSchema> & Required<{
|
|
13
|
+
_id: mongoose100.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.d.ts","names":[],"sources":["../../../src/schemas/user.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAQa,YAAU,OAAA,
|
|
1
|
+
{"version":3,"file":"user.schema.d.ts","names":[],"sources":["../../../src/schemas/user.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAQa,YAAU,OAAA,wBAAA,MAAA,2BAAA,WAAA,CAAA,uBAAA,uBAAA,KAAA,IAAA;;;EAAV,GAAA,4BA+EZ;CA/EsB,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA;CAAA,EAAA,GAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,WAAA,CAAA,oBAAA,YAAA,sBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,wBAAA,WAAA,CAAA,EAAA,CAAA,CAAA,kCAAA,kCAAA,CAAA,yBAAA,WAAA,CAAA,WAAA,CAAA;EAAA,GAAA,4BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
|
|
@@ -43,19 +43,19 @@ declare class ErrorHandler {
|
|
|
43
43
|
* @returns Formatted error response object.
|
|
44
44
|
*/
|
|
45
45
|
static formatGenericErrorResponse(errorKey: ErrorCodes, errorDetails?: object, statusCode?: HttpStatusCodes): ResponseData<{
|
|
46
|
-
name: string;
|
|
47
46
|
id: string;
|
|
48
47
|
createdAt: Date;
|
|
49
48
|
updatedAt: Date;
|
|
50
49
|
email: string;
|
|
51
50
|
emailVerified: boolean;
|
|
51
|
+
name: string;
|
|
52
52
|
image?: string;
|
|
53
53
|
phone?: string;
|
|
54
54
|
dateOfBirth?: Date;
|
|
55
|
+
customerId?: string;
|
|
55
56
|
emailsList?: {
|
|
56
57
|
newsLetter: boolean;
|
|
57
58
|
};
|
|
58
|
-
customerId?: string;
|
|
59
59
|
role?: string;
|
|
60
60
|
lastLoginMethod?: "email" | "google" | "github" | "passkey";
|
|
61
61
|
lang?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dictionary } from "../../types/dictionary.types.js";
|
|
2
2
|
import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
|
|
3
3
|
import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as mongoose71 from "mongoose";
|
|
5
5
|
import { RootFilterQuery } from "mongoose";
|
|
6
6
|
import { FastifyRequest } from "fastify";
|
|
7
7
|
import { Request } from "express";
|
|
@@ -45,7 +45,7 @@ declare const getDictionaryFiltersAndPagination: (req: Request<FiltersAndPaginat
|
|
|
45
45
|
skip: number;
|
|
46
46
|
pageSize: number;
|
|
47
47
|
getNumberOfPages: (totalItems: number) => number;
|
|
48
|
-
filters:
|
|
48
|
+
filters: mongoose71.FilterQuery<Dictionary>;
|
|
49
49
|
sortOptions: Record<string, 1 | -1>;
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
|
|
2
2
|
import { Discussion } from "../../types/discussion.types.js";
|
|
3
3
|
import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as mongoose72 from "mongoose";
|
|
5
5
|
import { RootFilterQuery } from "mongoose";
|
|
6
6
|
import { FastifyRequest } from "fastify";
|
|
7
7
|
import { Request } from "express";
|
|
@@ -33,7 +33,7 @@ declare const getDiscussionFiltersAndPagination: (req: Request<FiltersAndPaginat
|
|
|
33
33
|
skip: number;
|
|
34
34
|
pageSize: number;
|
|
35
35
|
getNumberOfPages: (totalItems: number) => number;
|
|
36
|
-
filters:
|
|
36
|
+
filters: mongoose72.Query<any, any, {}, unknown, "find", Record<string, never>> | mongoose72.Types.ObjectId | mongoose72.FilterQuery<Discussion>;
|
|
37
37
|
sortOptions: Record<string, 1 | -1>;
|
|
38
38
|
};
|
|
39
39
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Organization } from "../../types/organization.types.js";
|
|
2
2
|
import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
|
|
3
3
|
import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as mongoose76 from "mongoose";
|
|
5
5
|
import { RootFilterQuery } from "mongoose";
|
|
6
6
|
import { FastifyRequest } from "fastify";
|
|
7
7
|
import { Request } from "express";
|
|
@@ -41,7 +41,7 @@ declare const getOrganizationFiltersAndPagination: (req: Request<FiltersAndPagin
|
|
|
41
41
|
skip: number;
|
|
42
42
|
pageSize: number;
|
|
43
43
|
getNumberOfPages: (totalItems: number) => number;
|
|
44
|
-
filters:
|
|
44
|
+
filters: mongoose76.FilterQuery<Organization>;
|
|
45
45
|
sortOptions: Record<string, 1 | -1>;
|
|
46
46
|
};
|
|
47
47
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Project } from "../../types/project.types.js";
|
|
2
2
|
import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
|
|
3
3
|
import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as mongoose75 from "mongoose";
|
|
5
5
|
import { RootFilterQuery } from "mongoose";
|
|
6
6
|
import { FastifyRequest } from "fastify";
|
|
7
7
|
import { Request } from "express";
|
|
@@ -34,7 +34,7 @@ declare const getProjectFiltersAndPagination: (req: Request<FiltersAndPagination
|
|
|
34
34
|
skip: number;
|
|
35
35
|
pageSize: number;
|
|
36
36
|
getNumberOfPages: (totalItems: number) => number;
|
|
37
|
-
filters:
|
|
37
|
+
filters: mongoose75.FilterQuery<Project>;
|
|
38
38
|
sortOptions: Record<string, 1 | -1>;
|
|
39
39
|
};
|
|
40
40
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tag } from "../../types/tag.types.js";
|
|
2
2
|
import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
|
|
3
3
|
import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as mongoose77 from "mongoose";
|
|
5
5
|
import { RootFilterQuery } from "mongoose";
|
|
6
6
|
import { FastifyRequest } from "fastify";
|
|
7
7
|
import { Request } from "express";
|
|
@@ -32,7 +32,7 @@ declare const getTagFiltersAndPagination: (req: Request<FiltersAndPagination<Tag
|
|
|
32
32
|
skip: number;
|
|
33
33
|
pageSize: number;
|
|
34
34
|
getNumberOfPages: (totalItems: number) => number;
|
|
35
|
-
filters:
|
|
35
|
+
filters: mongoose77.FilterQuery<Tag>;
|
|
36
36
|
sortOptions: Record<string, 1 | -1>;
|
|
37
37
|
};
|
|
38
38
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/backend",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.13",
|
|
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": [
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
"@fastify/formbody": "^8.0.0",
|
|
82
82
|
"@fastify/helmet": "^13.0.2",
|
|
83
83
|
"@fastify/rate-limit": "^10.1.1",
|
|
84
|
-
"@intlayer/ai": "7.5.
|
|
84
|
+
"@intlayer/ai": "7.5.13",
|
|
85
85
|
"@octokit/rest": "^22.0.1",
|
|
86
86
|
"@react-email/components": "1.0.3",
|
|
87
87
|
"better-auth": "1.4.10",
|
|
88
88
|
"cross-env": "10.1.0",
|
|
89
89
|
"dotenv": "16.6.1",
|
|
90
90
|
"fastify": "5.6.2",
|
|
91
|
-
"fastify-intlayer": "7.5.
|
|
91
|
+
"fastify-intlayer": "7.5.13",
|
|
92
92
|
"mongodb": "6.21.0",
|
|
93
93
|
"mongoose": "8.21.0",
|
|
94
94
|
"oauth2-server": "3.1.1",
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
"winston": "3.19.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@intlayer/config": "7.5.
|
|
105
|
-
"@intlayer/core": "7.5.
|
|
106
|
-
"@intlayer/docs": "7.5.
|
|
107
|
-
"@intlayer/types": "7.5.
|
|
104
|
+
"@intlayer/config": "7.5.13",
|
|
105
|
+
"@intlayer/core": "7.5.13",
|
|
106
|
+
"@intlayer/docs": "7.5.13",
|
|
107
|
+
"@intlayer/types": "7.5.13",
|
|
108
108
|
"@types/crypto-js": "4.2.2",
|
|
109
109
|
"@types/node": "25.0.3",
|
|
110
110
|
"@types/oauth2-server": "3.0.18",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@utils/ts-config": "1.0.4",
|
|
114
114
|
"@utils/ts-config-types": "1.0.4",
|
|
115
115
|
"@utils/tsdown-config": "1.0.4",
|
|
116
|
-
"intlayer": "7.5.
|
|
116
|
+
"intlayer": "7.5.13",
|
|
117
117
|
"rimraf": "6.1.2",
|
|
118
118
|
"tsdown": "0.18.2",
|
|
119
119
|
"typescript": "5.9.3",
|