@intlayer/backend 7.3.2 → 7.3.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.
Files changed (43) hide show
  1. package/dist/assets/utils/AI/askDocQuestion/embeddings/blog/en/compiler_vs_declarative_i18n.json +1 -5132
  2. package/dist/types/controllers/ai.controller.d.ts.map +1 -1
  3. package/dist/types/controllers/stripe.controller.d.ts.map +1 -1
  4. package/dist/types/controllers/tag.controller.d.ts.map +1 -1
  5. package/dist/types/emails/InviteUserEmail.d.ts +4 -4
  6. package/dist/types/emails/MagicLinkEmail.d.ts +4 -4
  7. package/dist/types/emails/OAuthTokenCreatedEmail.d.ts +4 -4
  8. package/dist/types/emails/OAuthTokenCreatedEmail.d.ts.map +1 -1
  9. package/dist/types/emails/PasswordChangeConfirmation.d.ts +4 -4
  10. package/dist/types/emails/ResetUserPassword.d.ts +4 -4
  11. package/dist/types/emails/ResetUserPassword.d.ts.map +1 -1
  12. package/dist/types/emails/SubscriptionPaymentCancellation.d.ts +4 -4
  13. package/dist/types/emails/SubscriptionPaymentError.d.ts +4 -4
  14. package/dist/types/emails/SubscriptionPaymentError.d.ts.map +1 -1
  15. package/dist/types/emails/SubscriptionPaymentSuccess.d.ts +4 -4
  16. package/dist/types/emails/SubscriptionPaymentSuccess.d.ts.map +1 -1
  17. package/dist/types/emails/ValidateUserEmail.d.ts +4 -4
  18. package/dist/types/emails/ValidateUserEmail.d.ts.map +1 -1
  19. package/dist/types/emails/Welcome.d.ts +4 -4
  20. package/dist/types/emails/Welcome.d.ts.map +1 -1
  21. package/dist/types/models/dictionary.model.d.ts +4 -4
  22. package/dist/types/models/dictionary.model.d.ts.map +1 -1
  23. package/dist/types/models/discussion.model.d.ts +2 -2
  24. package/dist/types/models/oAuth2.model.d.ts +3 -3
  25. package/dist/types/schemas/dictionary.schema.d.ts +6 -6
  26. package/dist/types/schemas/dictionary.schema.d.ts.map +1 -1
  27. package/dist/types/schemas/discussion.schema.d.ts +6 -6
  28. package/dist/types/schemas/discussion.schema.d.ts.map +1 -1
  29. package/dist/types/schemas/oAuth2.schema.d.ts +5 -5
  30. package/dist/types/schemas/oAuth2.schema.d.ts.map +1 -1
  31. package/dist/types/schemas/organization.schema.d.ts +6 -6
  32. package/dist/types/schemas/plans.schema.d.ts +6 -6
  33. package/dist/types/schemas/project.schema.d.ts +6 -6
  34. package/dist/types/schemas/session.schema.d.ts +6 -6
  35. package/dist/types/schemas/tag.schema.d.ts +6 -6
  36. package/dist/types/schemas/tag.schema.d.ts.map +1 -1
  37. package/dist/types/schemas/user.schema.d.ts +6 -6
  38. package/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +2 -2
  39. package/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +2 -2
  40. package/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +2 -2
  41. package/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +2 -2
  42. package/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +2 -2
  43. package/package.json +8 -8
@@ -1,16 +1,16 @@
1
1
  import { SessionData, SessionSchema } from "../types/session.types.js";
2
- import * as mongoose59 from "mongoose";
2
+ import * as mongoose15 from "mongoose";
3
3
  import { Schema } from "mongoose";
4
4
 
5
5
  //#region src/schemas/session.schema.d.ts
6
- declare const sessionSchema: Schema<SessionSchema, mongoose59.Model<SessionSchema, any, any, any, mongoose59.Document<unknown, any, SessionSchema, any, {}> & Omit<SessionData, "id"> & {
7
- _id: mongoose59.Types.ObjectId;
6
+ declare const sessionSchema: Schema<SessionSchema, mongoose15.Model<SessionSchema, any, any, any, mongoose15.Document<unknown, any, SessionSchema, any, {}> & Omit<SessionData, "id"> & {
7
+ _id: mongoose15.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose59.Types.ObjectId;
9
+ _id: mongoose15.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose59.DefaultSchemaOptions, SessionSchema, mongoose59.Document<unknown, {}, mongoose59.FlatRecord<SessionSchema>, {}, mongoose59.ResolveSchemaOptions<mongoose59.DefaultSchemaOptions>> & mongoose59.FlatRecord<SessionSchema> & Required<{
13
- _id: mongoose59.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose15.DefaultSchemaOptions, SessionSchema, mongoose15.Document<unknown, {}, mongoose15.FlatRecord<SessionSchema>, {}, mongoose15.ResolveSchemaOptions<mongoose15.DefaultSchemaOptions>> & mongoose15.FlatRecord<SessionSchema> & Required<{
13
+ _id: mongoose15.Types.ObjectId;
14
14
  }> & {
15
15
  __v: number;
16
16
  }>;
@@ -1,16 +1,16 @@
1
1
  import { Tag, TagSchema } from "../types/tag.types.js";
2
- import * as mongoose99 from "mongoose";
2
+ import * as mongoose68 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, mongoose99.Model<TagSchema, any, any, any, mongoose99.Document<unknown, any, TagSchema, any, {}> & Omit<Tag, "id"> & {
7
- _id: mongoose99.Types.ObjectId;
6
+ declare const tagSchema: Schema<TagSchema, mongoose68.Model<TagSchema, any, any, any, mongoose68.Document<unknown, any, TagSchema, any, {}> & Omit<Tag, "id"> & {
7
+ _id: mongoose68.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose99.Types.ObjectId;
9
+ _id: mongoose68.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose99.DefaultSchemaOptions, TagSchema, mongoose99.Document<unknown, {}, mongoose99.FlatRecord<TagSchema>, {}, mongoose99.ResolveSchemaOptions<mongoose99.DefaultSchemaOptions>> & mongoose99.FlatRecord<TagSchema> & Required<{
13
- _id: mongoose99.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose68.DefaultSchemaOptions, TagSchema, mongoose68.Document<unknown, {}, mongoose68.FlatRecord<TagSchema>, {}, mongoose68.ResolveSchemaOptions<mongoose68.DefaultSchemaOptions>> & mongoose68.FlatRecord<TagSchema> & Required<{
13
+ _id: mongoose68.Types.ObjectId;
14
14
  }> & {
15
15
  __v: number;
16
16
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"tag.schema.d.ts","names":[],"sources":["../../../src/schemas/tag.schema.ts"],"sourcesContent":[],"mappings":";;;;;cASa,WAAS,OAAA,sBAAA,MAAA,0BAAA,UAAA,CAAA,uBAAA,sBAAA,KAAA,GAAA;;;EAAT,GAAA,2BA4DZ;CA5DqB,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA;CAAA,EAAA,GAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,UAAA,CAAA,oBAAA,WAAA,qBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,uBAAA,UAAA,CAAA,EAAA,CAAA,CAAA,iCAAA,iCAAA,CAAA,wBAAA,UAAA,CAAA,WAAA,CAAA;EAAA,GAAA,2BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
1
+ {"version":3,"file":"tag.schema.d.ts","names":[],"sources":["../../../src/schemas/tag.schema.ts"],"sourcesContent":[],"mappings":";;;;;cASa,WAAS,OAAA,qBAAA,MAAA,0BAAA,SAAA,CAAA,uBAAA,sBAAA,KAAA,GAAA;;;EAAT,GAAA,0BA4DZ;CA5DqB,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA;CAAA,EAAA,GAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,SAAA,CAAA,oBAAA,WAAA,oBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,sBAAA,UAAA,CAAA,EAAA,CAAA,CAAA,gCAAA,gCAAA,CAAA,uBAAA,UAAA,CAAA,WAAA,CAAA;EAAA,GAAA,0BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
@@ -1,16 +1,16 @@
1
1
  import { User, UserSchema } from "../types/user.types.js";
2
- import * as mongoose27 from "mongoose";
2
+ import * as mongoose46 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, mongoose27.Model<UserSchema, any, any, any, mongoose27.Document<unknown, any, UserSchema, any, {}> & Omit<User, "id"> & {
7
- _id: mongoose27.Types.ObjectId;
6
+ declare const userSchema: Schema<UserSchema, mongoose46.Model<UserSchema, any, any, any, mongoose46.Document<unknown, any, UserSchema, any, {}> & Omit<User, "id"> & {
7
+ _id: mongoose46.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose27.Types.ObjectId;
9
+ _id: mongoose46.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose27.DefaultSchemaOptions, UserSchema, mongoose27.Document<unknown, {}, mongoose27.FlatRecord<UserSchema>, {}, mongoose27.ResolveSchemaOptions<mongoose27.DefaultSchemaOptions>> & mongoose27.FlatRecord<UserSchema> & Required<{
13
- _id: mongoose27.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose46.DefaultSchemaOptions, UserSchema, mongoose46.Document<unknown, {}, mongoose46.FlatRecord<UserSchema>, {}, mongoose46.ResolveSchemaOptions<mongoose46.DefaultSchemaOptions>> & mongoose46.FlatRecord<UserSchema> & Required<{
13
+ _id: mongoose46.Types.ObjectId;
14
14
  }> & {
15
15
  __v: number;
16
16
  }>;
@@ -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 mongoose97 from "mongoose";
4
+ import * as mongoose90 from "mongoose";
5
5
  import { RootFilterQuery } from "mongoose";
6
6
  import { Request } from "express";
7
7
 
@@ -41,7 +41,7 @@ declare const getDictionaryFiltersAndPagination: (req: Request<FiltersAndPaginat
41
41
  skip: number;
42
42
  pageSize: number;
43
43
  getNumberOfPages: (totalItems: number) => number;
44
- filters: mongoose97.FilterQuery<Dictionary>;
44
+ filters: mongoose90.FilterQuery<Dictionary>;
45
45
  sortOptions: Record<string, 1 | -1>;
46
46
  };
47
47
  //#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 mongoose93 from "mongoose";
4
+ import * as mongoose91 from "mongoose";
5
5
  import { RootFilterQuery } from "mongoose";
6
6
  import { Request } from "express";
7
7
 
@@ -30,7 +30,7 @@ declare const getDiscussionFiltersAndPagination: (req: Request<FiltersAndPaginat
30
30
  skip: number;
31
31
  pageSize: number;
32
32
  getNumberOfPages: (totalItems: number) => number;
33
- filters: mongoose93.Query<any, any, {}, unknown, "find", Record<string, never>> | mongoose93.Types.ObjectId | mongoose93.FilterQuery<Discussion>;
33
+ filters: mongoose91.Types.ObjectId | mongoose91.Query<any, any, {}, unknown, "find", Record<string, never>> | mongoose91.FilterQuery<Discussion>;
34
34
  sortOptions: Record<string, 1 | -1>;
35
35
  };
36
36
  //#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 mongoose98 from "mongoose";
4
+ import * as mongoose94 from "mongoose";
5
5
  import { RootFilterQuery } from "mongoose";
6
6
  import { Request } from "express";
7
7
 
@@ -37,7 +37,7 @@ declare const getOrganizationFiltersAndPagination: (req: Request<FiltersAndPagin
37
37
  skip: number;
38
38
  pageSize: number;
39
39
  getNumberOfPages: (totalItems: number) => number;
40
- filters: mongoose98.FilterQuery<Organization>;
40
+ filters: mongoose94.FilterQuery<Organization>;
41
41
  sortOptions: Record<string, 1 | -1>;
42
42
  };
43
43
  //#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 mongoose96 from "mongoose";
4
+ import * as mongoose64 from "mongoose";
5
5
  import { RootFilterQuery } from "mongoose";
6
6
  import { Request } from "express";
7
7
 
@@ -30,7 +30,7 @@ declare const getProjectFiltersAndPagination: (req: Request<FiltersAndPagination
30
30
  skip: number;
31
31
  pageSize: number;
32
32
  getNumberOfPages: (totalItems: number) => number;
33
- filters: mongoose96.FilterQuery<Project>;
33
+ filters: mongoose64.FilterQuery<Project>;
34
34
  sortOptions: Record<string, 1 | -1>;
35
35
  };
36
36
  //#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 mongoose92 from "mongoose";
4
+ import * as mongoose109 from "mongoose";
5
5
  import { RootFilterQuery } from "mongoose";
6
6
  import { Request } from "express";
7
7
 
@@ -28,7 +28,7 @@ declare const getTagFiltersAndPagination: (req: Request<FiltersAndPagination<Tag
28
28
  skip: number;
29
29
  pageSize: number;
30
30
  getNumberOfPages: (totalItems: number) => number;
31
- filters: mongoose92.FilterQuery<Tag>;
31
+ filters: mongoose109.FilterQuery<Tag>;
32
32
  sortOptions: Record<string, 1 | -1>;
33
33
  };
34
34
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/backend",
3
- "version": "7.3.2",
3
+ "version": "7.3.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": [
@@ -74,7 +74,7 @@
74
74
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
75
75
  },
76
76
  "dependencies": {
77
- "@intlayer/ai": "7.3.2",
77
+ "@intlayer/ai": "7.3.4",
78
78
  "@react-email/components": "1.0.1",
79
79
  "better-auth": "1.3.34",
80
80
  "compression": "1.8.1",
@@ -83,7 +83,7 @@
83
83
  "cross-env": "10.1.0",
84
84
  "dotenv": "16.6.1",
85
85
  "express": "5.1.0",
86
- "express-intlayer": "7.3.2",
86
+ "express-intlayer": "7.3.4",
87
87
  "express-rate-limit": "8.2.1",
88
88
  "helmet": "8.1.0",
89
89
  "mongodb": "6.21.0",
@@ -98,10 +98,10 @@
98
98
  "winston": "3.18.3"
99
99
  },
100
100
  "devDependencies": {
101
- "@intlayer/config": "7.3.2",
102
- "@intlayer/core": "7.3.2",
103
- "@intlayer/docs": "7.3.2",
104
- "@intlayer/types": "7.3.2",
101
+ "@intlayer/config": "7.3.4",
102
+ "@intlayer/core": "7.3.4",
103
+ "@intlayer/docs": "7.3.4",
104
+ "@intlayer/types": "7.3.4",
105
105
  "@types/body-parser": "1.19.6",
106
106
  "@types/compression": "1.8.1",
107
107
  "@types/cookie-parser": "1.4.10",
@@ -116,7 +116,7 @@
116
116
  "@utils/ts-config": "1.0.4",
117
117
  "@utils/ts-config-types": "1.0.4",
118
118
  "@utils/tsdown-config": "1.0.4",
119
- "intlayer": "7.3.2",
119
+ "intlayer": "7.3.4",
120
120
  "npm-run-all": "^4.1.5",
121
121
  "rimraf": "6.1.2",
122
122
  "tsdown": "0.16.8",