@intlayer/backend 7.5.0 → 7.5.2-canary.0

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 (51) hide show
  1. package/dist/assets/utils/AI/askDocQuestion/embeddings/blog/en/l10n_platform_alternative/Lokalise.json +4106 -0
  2. package/dist/assets/utils/AI/askDocQuestion/embeddings/blog/en/l10n_platform_alternative/crowdin.json +4106 -0
  3. package/dist/assets/utils/AI/askDocQuestion/embeddings/blog/en/l10n_platform_alternative/phrase.json +4106 -0
  4. package/dist/esm/index.mjs.map +1 -1
  5. package/dist/esm/schemas/organization.schema.mjs +8 -48
  6. package/dist/esm/schemas/organization.schema.mjs.map +1 -1
  7. package/dist/esm/utils/auth/getAuth.mjs +13 -4
  8. package/dist/esm/utils/auth/getAuth.mjs.map +1 -1
  9. package/dist/esm/utils/mongoDB/connectDB.mjs +12 -2
  10. package/dist/esm/utils/mongoDB/connectDB.mjs.map +1 -1
  11. package/dist/types/controllers/dictionary.controller.d.ts.map +1 -1
  12. package/dist/types/controllers/project.controller.d.ts.map +1 -1
  13. package/dist/types/controllers/projectAccessKey.controller.d.ts.map +1 -1
  14. package/dist/types/controllers/tag.controller.d.ts.map +1 -1
  15. package/dist/types/emails/MagicLinkEmail.d.ts +4 -4
  16. package/dist/types/emails/MagicLinkEmail.d.ts.map +1 -1
  17. package/dist/types/emails/OAuthTokenCreatedEmail.d.ts +4 -4
  18. package/dist/types/emails/PasswordChangeConfirmation.d.ts +4 -4
  19. package/dist/types/emails/ResetUserPassword.d.ts +4 -4
  20. package/dist/types/emails/SubscriptionPaymentCancellation.d.ts +4 -4
  21. package/dist/types/emails/SubscriptionPaymentCancellation.d.ts.map +1 -1
  22. package/dist/types/emails/SubscriptionPaymentError.d.ts +4 -4
  23. package/dist/types/emails/SubscriptionPaymentError.d.ts.map +1 -1
  24. package/dist/types/emails/SubscriptionPaymentSuccess.d.ts +4 -4
  25. package/dist/types/emails/ValidateUserEmail.d.ts +4 -4
  26. package/dist/types/emails/Welcome.d.ts +4 -4
  27. package/dist/types/emails/Welcome.d.ts.map +1 -1
  28. package/dist/types/export.d.ts +2 -2
  29. package/dist/types/schemas/dictionary.schema.d.ts +6 -6
  30. package/dist/types/schemas/dictionary.schema.d.ts.map +1 -1
  31. package/dist/types/schemas/discussion.schema.d.ts +6 -6
  32. package/dist/types/schemas/oAuth2.schema.d.ts +5 -5
  33. package/dist/types/schemas/organization.schema.d.ts +6 -6
  34. package/dist/types/schemas/organization.schema.d.ts.map +1 -1
  35. package/dist/types/schemas/plans.schema.d.ts +6 -6
  36. package/dist/types/schemas/project.schema.d.ts +6 -6
  37. package/dist/types/schemas/project.schema.d.ts.map +1 -1
  38. package/dist/types/schemas/session.schema.d.ts +6 -6
  39. package/dist/types/schemas/tag.schema.d.ts +6 -6
  40. package/dist/types/schemas/user.schema.d.ts +6 -6
  41. package/dist/types/types/organization.types.d.ts +9 -58
  42. package/dist/types/types/organization.types.d.ts.map +1 -1
  43. package/dist/types/utils/auth/getAuth.d.ts.map +1 -1
  44. package/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +2 -2
  45. package/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +2 -2
  46. package/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +2 -2
  47. package/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +2 -2
  48. package/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +2 -2
  49. package/dist/types/utils/mongoDB/connectDB.d.ts +8 -3
  50. package/dist/types/utils/mongoDB/connectDB.d.ts.map +1 -1
  51. package/package.json +8 -8
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/emails/Welcome.d.ts
4
4
  type WelcomeEmailProps = {
@@ -9,21 +9,21 @@ declare const WelcomeEmailEN: {
9
9
  ({
10
10
  username,
11
11
  loginLink
12
- }: WelcomeEmailProps): react_jsx_runtime5.JSX.Element;
12
+ }: WelcomeEmailProps): react_jsx_runtime11.JSX.Element;
13
13
  PreviewProps: WelcomeEmailProps;
14
14
  };
15
15
  declare const WelcomeEmailFR: {
16
16
  ({
17
17
  username,
18
18
  loginLink
19
- }: WelcomeEmailProps): react_jsx_runtime5.JSX.Element;
19
+ }: WelcomeEmailProps): react_jsx_runtime11.JSX.Element;
20
20
  PreviewProps: WelcomeEmailProps;
21
21
  };
22
22
  declare const WelcomeEmailES: {
23
23
  ({
24
24
  username,
25
25
  loginLink
26
- }: WelcomeEmailProps): react_jsx_runtime5.JSX.Element;
26
+ }: WelcomeEmailProps): react_jsx_runtime11.JSX.Element;
27
27
  PreviewProps: WelcomeEmailProps;
28
28
  };
29
29
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"Welcome.d.ts","names":[],"sources":["../../../src/emails/Welcome.tsx"],"sourcesContent":[],"mappings":";;;KAgBY,iBAAA;;;AAAZ,CAAA;AAKa,cAAA,cAyDZ,EAAA;;;;KAzDuD,oBAAiB,kBAAA,CAAA,GAAA,CAAA;;CAAjB;AAAiB,cA2D5D,cA3D4D,EAAA;;;;KA2DjB,oBAAiB,kBAAA,CAAA,GAAA,CAAA;;AAAzE,CAAA;cA2Da;;;;KAA2C,oBAAiB,kBAAA,CAAA,GAAA,CAAA;EA3DjB,YAAA,mBAAA;CAAiB"}
1
+ {"version":3,"file":"Welcome.d.ts","names":[],"sources":["../../../src/emails/Welcome.tsx"],"sourcesContent":[],"mappings":";;;KAgBY,iBAAA;;;AAAZ,CAAA;AAKa,cAAA,cAyDZ,EAAA;;;;KAzDuD,oBAAiB,mBAAA,CAAA,GAAA,CAAA;;CAAjB;AAAiB,cA2D5D,cA3D4D,EAAA;;;;KA2DjB,oBAAiB,mBAAA,CAAA,GAAA,CAAA;;AAAzE,CAAA;cA2Da;;;;KAA2C,oBAAiB,mBAAA,CAAA,GAAA,CAAA;EA3DjB,YAAA,mBAAA;CAAiB"}
@@ -1,6 +1,6 @@
1
1
  import { EmailsList, User, UserAPI, UserData, UserDocument, UserModelType, UserSchema } from "./types/user.types.js";
2
2
  import { Plan, PlanAPI, PlanData, PlanDocument, PlanModelType, PlanSchema, PlanType } from "./types/plan.types.js";
3
- import { OIDCConfig, Organization, OrganizationAPI, OrganizationCreationData, OrganizationData, OrganizationDocument, OrganizationModelType, OrganizationSchema, SAMLConfig, SSOConfig, SSOProviderType } from "./types/organization.types.js";
3
+ import { Organization, OrganizationAPI, OrganizationCreationData, OrganizationData, OrganizationDocument, OrganizationModelType, OrganizationSchema } from "./types/organization.types.js";
4
4
  import { AccessKeyData, OAuth2Access, OAuth2AccessAPI, OAuth2AccessContext, OAuth2AccessData, Project, ProjectAPI, ProjectConfiguration, ProjectCreationData, ProjectData, ProjectDocument, ProjectModelType, ProjectSchema } from "./types/project.types.js";
5
5
  import { ContentVersion, Dictionary, DictionaryAPI, DictionaryCreationData, DictionaryData, DictionaryDocument, DictionaryModelType, DictionarySchema, VersionedContent, VersionedContentEl } from "./types/dictionary.types.js";
6
6
  import { Tag, TagAPI, TagCreationData, TagData, TagDocument, TagModelType, TagSchema } from "./types/tag.types.js";
@@ -28,4 +28,4 @@ import { getNewsletterRoutes } from "./routes/newsletter.routes.js";
28
28
  import { getOrganizationRoutes } from "./routes/organization.routes.js";
29
29
  import { getProjectRoutes } from "./routes/project.routes.js";
30
30
  import { getUserRoutes } from "./routes/user.routes.js";
31
- export { AccessKeyData, AddDictionaryBody, AddDictionaryResult, AddNewAccessKeyBody, AddNewAccessKeyResponse, AddOrganizationBody, AddOrganizationMemberBody, AddOrganizationMemberResult, AddOrganizationResult, AddProjectBody, AddProjectResult, AddTagBody, AddTagResult, AskDocQuestionBody, AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationFieldResult, AuditContentDeclarationMetadataBody, AuditContentDeclarationMetadataResult, AuditContentDeclarationResult, AuditTagBody, AuditTagResult, Auth, AutocompleteBody, AutocompleteResponse, CheckDictionaryChangeSSEParams, ContentVersion, CreateUserBody, CreateUserResult, CustomQueryBody, CustomQueryResult, DeleteAccessKeyBody, DeleteAccessKeyResponse, DeleteDictionaryParam, DeleteDictionaryResult, DeleteOrganizationResult, DeleteProjectResult, DeleteTagParams, DeleteTagResult, DeleteUserParams, DeleteUserResult, Dictionary, DictionaryAPI, DictionaryCreationData, DictionaryData, DictionaryDocument, DictionaryModelType, DictionarySchema, Discussion, DiscussionAPI, DiscussionDocument, DiscussionModelType, DiscussionSchema, EmailsList, GetCheckoutSessionBody, GetCheckoutSessionResult, GetDictionariesKeysResult, GetDictionariesParams, GetDictionariesResult, GetDictionariesUpdateTimestampResult, GetDictionaryParams, GetDictionaryQuery, GetDictionaryResult, GetDiscussionsParams, GetDiscussionsResult, GetOAuth2TokenBody, GetOAuth2TokenResult, GetOrganizationParam, GetOrganizationResult, GetOrganizationsParams, GetOrganizationsResult, GetPricingBody, GetPricingResult, GetProjectsParams, GetProjectsResult, GetTagsParams, GetTagsResult, GetUserByEmailParams, GetUserByEmailResult, GetUserByIdParams, GetUserByIdResult, GetUsersParams, GetUsersResult, HttpStatusCodes, Message, MessageEventData, NewsletterSubscriptionBody, NewsletterSubscriptionResult, NewsletterUnsubscriptionBody, OAuth2Access, OAuth2AccessAPI, OAuth2AccessContext, OAuth2AccessData, OAuth2Token, OAuth2TokenDocument, OAuth2TokenModelType, OAuth2TokenSchema, OIDCConfig, Object$1 as Object, Organization, OrganizationAPI, OrganizationCreationData, OrganizationData, OrganizationDocument, OrganizationModelType, OrganizationSchema, PaginatedResponse, Plan, PlanAPI, PlanData, PlanDocument, PlanModelType, PlanSchema, PlanType, Project, ProjectAPI, ProjectConfiguration, ProjectCreationData, ProjectData, ProjectDocument, ProjectMemberByIdOption, ProjectModelType, ProjectSchema, PushDictionariesBody, PushDictionariesResult, PushProjectConfigurationBody, PushProjectConfigurationResult, RefreshAccessKeyBody, RefreshAccessKeyResponse, ResponseData, SAMLConfig, SSOConfig, SSOProviderType, SearchDocUtilParams, SearchDocUtilResult, SelectOrganizationParam, SelectOrganizationResult, SelectProjectParam, SelectProjectResult, SendDictionaryUpdateArg, Session, SessionAPI, SessionContext, SessionData, SessionDataApi, SessionDocument, SessionModelType, SessionSchema, Status, Tag, TagAPI, TagCreationData, TagData, TagDocument, TagModelType, TagSchema, TranslateJSONBody, TranslateJSONResult, UnselectOrganizationResult, UnselectProjectResult, UpdateDictionaryBody, UpdateDictionaryParam, UpdateDictionaryResult, UpdateOrganizationBody, UpdateOrganizationMembersBody, UpdateOrganizationMembersByIdBody, UpdateOrganizationMembersByIdParams, UpdateOrganizationMembersByIdResult, UpdateOrganizationMembersResult, UpdateOrganizationResult, UpdateProjectBody, UpdateProjectMembersBody, UpdateProjectMembersResult, UpdateProjectResult, UpdateTagBody, UpdateTagParams, UpdateTagResult, UpdateUserBody, UpdateUserResult, User, UserAPI, UserData, UserDocument, UserModelType, UserSchema, VerifyEmailStatusSSEParams, VersionedContent, VersionedContentEl, addDictionary, addNewAccessKey, addOrganization, addOrganizationMember, addProject, addTag, askDocQuestion, auditContentDeclaration, auditContentDeclarationField, auditContentDeclarationMetadata, auditTag, autocomplete, cancelSubscription, createUser, customQuery, deleteAccessKey, deleteDictionary, deleteOrganization, deleteProject, deleteTag, deleteUser, formatPaginatedResponse, formatResponse, formatSession, getAiRoutes, getAuth, getDictionaries, getDictionariesKeys, getDictionariesUpdateTimestamp, getDictionaryByKey, getDictionaryRoutes, getDiscussions, getNewsletterRoutes, getNewsletterStatus, getOAuth2AccessToken, getOrganization, getOrganizationRoutes, getOrganizations, getPricing, getProjectRoutes, getProjects, getSubscription, getTags, getUserByEmail, getUserById, getUserRoutes, getUsers, listenChangeSSE, pushDictionaries, pushProjectConfiguration, refreshAccessKey, searchDocUtil, selectOrganization, selectProject, sendDictionaryUpdate, sendVerificationUpdate, subscribeToNewsletter, translateJSON, unselectOrganization, unselectProject, unsubscribeFromNewsletter, updateDictionary, updateOrganization, updateOrganizationMembers, updateOrganizationMembersById, updateProject, updateProjectMembers, updateTag, updateUser, verifyEmailStatusSSE };
31
+ export { AccessKeyData, AddDictionaryBody, AddDictionaryResult, AddNewAccessKeyBody, AddNewAccessKeyResponse, AddOrganizationBody, AddOrganizationMemberBody, AddOrganizationMemberResult, AddOrganizationResult, AddProjectBody, AddProjectResult, AddTagBody, AddTagResult, AskDocQuestionBody, AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationFieldResult, AuditContentDeclarationMetadataBody, AuditContentDeclarationMetadataResult, AuditContentDeclarationResult, AuditTagBody, AuditTagResult, Auth, AutocompleteBody, AutocompleteResponse, CheckDictionaryChangeSSEParams, ContentVersion, CreateUserBody, CreateUserResult, CustomQueryBody, CustomQueryResult, DeleteAccessKeyBody, DeleteAccessKeyResponse, DeleteDictionaryParam, DeleteDictionaryResult, DeleteOrganizationResult, DeleteProjectResult, DeleteTagParams, DeleteTagResult, DeleteUserParams, DeleteUserResult, Dictionary, DictionaryAPI, DictionaryCreationData, DictionaryData, DictionaryDocument, DictionaryModelType, DictionarySchema, Discussion, DiscussionAPI, DiscussionDocument, DiscussionModelType, DiscussionSchema, EmailsList, GetCheckoutSessionBody, GetCheckoutSessionResult, GetDictionariesKeysResult, GetDictionariesParams, GetDictionariesResult, GetDictionariesUpdateTimestampResult, GetDictionaryParams, GetDictionaryQuery, GetDictionaryResult, GetDiscussionsParams, GetDiscussionsResult, GetOAuth2TokenBody, GetOAuth2TokenResult, GetOrganizationParam, GetOrganizationResult, GetOrganizationsParams, GetOrganizationsResult, GetPricingBody, GetPricingResult, GetProjectsParams, GetProjectsResult, GetTagsParams, GetTagsResult, GetUserByEmailParams, GetUserByEmailResult, GetUserByIdParams, GetUserByIdResult, GetUsersParams, GetUsersResult, HttpStatusCodes, Message, MessageEventData, NewsletterSubscriptionBody, NewsletterSubscriptionResult, NewsletterUnsubscriptionBody, OAuth2Access, OAuth2AccessAPI, OAuth2AccessContext, OAuth2AccessData, OAuth2Token, OAuth2TokenDocument, OAuth2TokenModelType, OAuth2TokenSchema, Object$1 as Object, Organization, OrganizationAPI, OrganizationCreationData, OrganizationData, OrganizationDocument, OrganizationModelType, OrganizationSchema, PaginatedResponse, Plan, PlanAPI, PlanData, PlanDocument, PlanModelType, PlanSchema, PlanType, Project, ProjectAPI, ProjectConfiguration, ProjectCreationData, ProjectData, ProjectDocument, ProjectMemberByIdOption, ProjectModelType, ProjectSchema, PushDictionariesBody, PushDictionariesResult, PushProjectConfigurationBody, PushProjectConfigurationResult, RefreshAccessKeyBody, RefreshAccessKeyResponse, ResponseData, SearchDocUtilParams, SearchDocUtilResult, SelectOrganizationParam, SelectOrganizationResult, SelectProjectParam, SelectProjectResult, SendDictionaryUpdateArg, Session, SessionAPI, SessionContext, SessionData, SessionDataApi, SessionDocument, SessionModelType, SessionSchema, Status, Tag, TagAPI, TagCreationData, TagData, TagDocument, TagModelType, TagSchema, TranslateJSONBody, TranslateJSONResult, UnselectOrganizationResult, UnselectProjectResult, UpdateDictionaryBody, UpdateDictionaryParam, UpdateDictionaryResult, UpdateOrganizationBody, UpdateOrganizationMembersBody, UpdateOrganizationMembersByIdBody, UpdateOrganizationMembersByIdParams, UpdateOrganizationMembersByIdResult, UpdateOrganizationMembersResult, UpdateOrganizationResult, UpdateProjectBody, UpdateProjectMembersBody, UpdateProjectMembersResult, UpdateProjectResult, UpdateTagBody, UpdateTagParams, UpdateTagResult, UpdateUserBody, UpdateUserResult, User, UserAPI, UserData, UserDocument, UserModelType, UserSchema, VerifyEmailStatusSSEParams, VersionedContent, VersionedContentEl, addDictionary, addNewAccessKey, addOrganization, addOrganizationMember, addProject, addTag, askDocQuestion, auditContentDeclaration, auditContentDeclarationField, auditContentDeclarationMetadata, auditTag, autocomplete, cancelSubscription, createUser, customQuery, deleteAccessKey, deleteDictionary, deleteOrganization, deleteProject, deleteTag, deleteUser, formatPaginatedResponse, formatResponse, formatSession, getAiRoutes, getAuth, getDictionaries, getDictionariesKeys, getDictionariesUpdateTimestamp, getDictionaryByKey, getDictionaryRoutes, getDiscussions, getNewsletterRoutes, getNewsletterStatus, getOAuth2AccessToken, getOrganization, getOrganizationRoutes, getOrganizations, getPricing, getProjectRoutes, getProjects, getSubscription, getTags, getUserByEmail, getUserById, getUserRoutes, getUsers, listenChangeSSE, pushDictionaries, pushProjectConfiguration, refreshAccessKey, searchDocUtil, selectOrganization, selectProject, sendDictionaryUpdate, sendVerificationUpdate, subscribeToNewsletter, translateJSON, unselectOrganization, unselectProject, unsubscribeFromNewsletter, updateDictionary, updateOrganization, updateOrganizationMembers, updateOrganizationMembersById, updateProject, updateProjectMembers, updateTag, updateUser, verifyEmailStatusSSE };
@@ -1,16 +1,16 @@
1
1
  import { Dictionary, DictionarySchema } from "../types/dictionary.types.js";
2
- import * as mongoose16 from "mongoose";
2
+ import * as mongoose5 from "mongoose";
3
3
  import { Schema } from "mongoose";
4
4
 
5
5
  //#region src/schemas/dictionary.schema.d.ts
6
- declare const dictionarySchema: Schema<DictionarySchema, mongoose16.Model<DictionarySchema, any, any, any, mongoose16.Document<unknown, any, DictionarySchema, any, {}> & Omit<Dictionary, "id"> & {
7
- _id: mongoose16.Types.ObjectId;
6
+ declare const dictionarySchema: Schema<DictionarySchema, mongoose5.Model<DictionarySchema, any, any, any, mongoose5.Document<unknown, any, DictionarySchema, any, {}> & Omit<Dictionary, "id"> & {
7
+ _id: mongoose5.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose16.Types.ObjectId;
9
+ _id: mongoose5.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose16.DefaultSchemaOptions, DictionarySchema, mongoose16.Document<unknown, {}, mongoose16.FlatRecord<DictionarySchema>, {}, mongoose16.ResolveSchemaOptions<mongoose16.DefaultSchemaOptions>> & mongoose16.FlatRecord<DictionarySchema> & Required<{
13
- _id: mongoose16.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose5.DefaultSchemaOptions, DictionarySchema, mongoose5.Document<unknown, {}, mongoose5.FlatRecord<DictionarySchema>, {}, mongoose5.ResolveSchemaOptions<mongoose5.DefaultSchemaOptions>> & mongoose5.FlatRecord<DictionarySchema> & Required<{
13
+ _id: mongoose5.Types.ObjectId;
14
14
  }> & {
15
15
  __v: number;
16
16
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"dictionary.schema.d.ts","names":[],"sources":["../../../src/schemas/dictionary.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAwBa,kBAAgB,OAAA,6BAAA,MAAA,iCAAA,UAAA,CAAA,uBAAA,6BAAA,KAAA,UAAA;;;EAAhB,GAAA,2BA4DZ;CA5D4B,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,kBAAA,qBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,uBAAA,iBAAA,CAAA,EAAA,CAAA,CAAA,iCAAA,iCAAA,CAAA,wBAAA,iBAAA,CAAA,WAAA,CAAA;EAAA,GAAA,2BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
1
+ {"version":3,"file":"dictionary.schema.d.ts","names":[],"sources":["../../../src/schemas/dictionary.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAwBa,kBAAgB,OAAA,4BAAA,MAAA,iCAAA,SAAA,CAAA,uBAAA,6BAAA,KAAA,UAAA;;;EAAhB,GAAA,0BA4DZ;CA5D4B,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,kBAAA,oBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,sBAAA,iBAAA,CAAA,EAAA,CAAA,CAAA,gCAAA,gCAAA,CAAA,uBAAA,iBAAA,CAAA,WAAA,CAAA;EAAA,GAAA,0BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
@@ -1,16 +1,16 @@
1
1
  import { Discussion, DiscussionSchema } from "../types/discussion.types.js";
2
- import * as mongoose27 from "mongoose";
2
+ import * as mongoose16 from "mongoose";
3
3
  import { Schema } from "mongoose";
4
4
 
5
5
  //#region src/schemas/discussion.schema.d.ts
6
- declare const discussionSchema: Schema<DiscussionSchema, mongoose27.Model<DiscussionSchema, any, any, any, mongoose27.Document<unknown, any, DiscussionSchema, any, {}> & Omit<Discussion, "id"> & {
7
- _id: mongoose27.Types.ObjectId;
6
+ declare const discussionSchema: Schema<DiscussionSchema, mongoose16.Model<DiscussionSchema, any, any, any, mongoose16.Document<unknown, any, DiscussionSchema, any, {}> & Omit<Discussion, "id"> & {
7
+ _id: mongoose16.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose27.Types.ObjectId;
9
+ _id: mongoose16.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose27.DefaultSchemaOptions, DiscussionSchema, mongoose27.Document<unknown, {}, mongoose27.FlatRecord<DiscussionSchema>, {}, mongoose27.ResolveSchemaOptions<mongoose27.DefaultSchemaOptions>> & mongoose27.FlatRecord<DiscussionSchema> & Required<{
13
- _id: mongoose27.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose16.DefaultSchemaOptions, DiscussionSchema, mongoose16.Document<unknown, {}, mongoose16.FlatRecord<DiscussionSchema>, {}, mongoose16.ResolveSchemaOptions<mongoose16.DefaultSchemaOptions>> & mongoose16.FlatRecord<DiscussionSchema> & Required<{
13
+ _id: mongoose16.Types.ObjectId;
14
14
  }> & {
15
15
  __v: number;
16
16
  }>;
@@ -1,5 +1,5 @@
1
1
  import { User } from "../types/user.types.js";
2
- import * as mongoose38 from "mongoose";
2
+ import * as mongoose49 from "mongoose";
3
3
  import { Schema } from "mongoose";
4
4
  import { Client, Token as Token$1 } from "oauth2-server";
5
5
 
@@ -8,15 +8,15 @@ type Token = Omit<Token$1, 'client' | 'user'> & {
8
8
  clientId: Client['id'];
9
9
  userId: User['id'];
10
10
  };
11
- declare const accessTokenSchema: Schema<Token, mongoose38.Model<Token, any, any, any, mongoose38.Document<unknown, any, Token, any, {}> & Omit<Token$1, "user" | "client"> & {
11
+ declare const accessTokenSchema: Schema<Token, mongoose49.Model<Token, any, any, any, mongoose49.Document<unknown, any, Token, any, {}> & Omit<Token$1, "user" | "client"> & {
12
12
  clientId: Client["id"];
13
13
  userId: User["id"];
14
14
  } & {
15
- _id: mongoose38.Types.ObjectId;
15
+ _id: mongoose49.Types.ObjectId;
16
16
  } & {
17
17
  __v: number;
18
- }, any>, {}, {}, {}, {}, mongoose38.DefaultSchemaOptions, Token, mongoose38.Document<unknown, {}, mongoose38.FlatRecord<Token>, {}, mongoose38.ResolveSchemaOptions<mongoose38.DefaultSchemaOptions>> & mongoose38.FlatRecord<Token> & {
19
- _id: mongoose38.Types.ObjectId;
18
+ }, any>, {}, {}, {}, {}, mongoose49.DefaultSchemaOptions, Token, mongoose49.Document<unknown, {}, mongoose49.FlatRecord<Token>, {}, mongoose49.ResolveSchemaOptions<mongoose49.DefaultSchemaOptions>> & mongoose49.FlatRecord<Token> & {
19
+ _id: mongoose49.Types.ObjectId;
20
20
  } & {
21
21
  __v: number;
22
22
  }>;
@@ -1,16 +1,16 @@
1
1
  import { Organization, OrganizationSchema } from "../types/organization.types.js";
2
- import * as mongoose99 from "mongoose";
2
+ import * as mongoose27 from "mongoose";
3
3
  import { Schema } from "mongoose";
4
4
 
5
5
  //#region src/schemas/organization.schema.d.ts
6
- declare const organizationSchema: Schema<OrganizationSchema, mongoose99.Model<OrganizationSchema, any, any, any, mongoose99.Document<unknown, any, OrganizationSchema, any, {}> & Omit<Organization, "id"> & {
7
- _id: mongoose99.Types.ObjectId;
6
+ declare const organizationSchema: Schema<OrganizationSchema, mongoose27.Model<OrganizationSchema, any, any, any, mongoose27.Document<unknown, any, OrganizationSchema, any, {}> & Omit<Organization, "id"> & {
7
+ _id: mongoose27.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose99.Types.ObjectId;
9
+ _id: mongoose27.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose99.DefaultSchemaOptions, OrganizationSchema, mongoose99.Document<unknown, {}, mongoose99.FlatRecord<OrganizationSchema>, {}, mongoose99.ResolveSchemaOptions<mongoose99.DefaultSchemaOptions>> & mongoose99.FlatRecord<OrganizationSchema> & Required<{
13
- _id: mongoose99.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose27.DefaultSchemaOptions, OrganizationSchema, mongoose27.Document<unknown, {}, mongoose27.FlatRecord<OrganizationSchema>, {}, mongoose27.ResolveSchemaOptions<mongoose27.DefaultSchemaOptions>> & mongoose27.FlatRecord<OrganizationSchema> & Required<{
13
+ _id: mongoose27.Types.ObjectId;
14
14
  }> & {
15
15
  __v: number;
16
16
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"organization.schema.d.ts","names":[],"sources":["../../../src/schemas/organization.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAiDa,oBAAkB,OAAA,+BAAA,MAAA,mCAAA,UAAA,CAAA,uBAAA,+BAAA,KAAA,YAAA;;;EAAlB,GAAA,2BAyDZ;CAzD8B,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,oBAAA,qBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,uBAAA,mBAAA,CAAA,EAAA,CAAA,CAAA,iCAAA,iCAAA,CAAA,wBAAA,mBAAA,CAAA,WAAA,CAAA;EAAA,GAAA,2BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
1
+ {"version":3,"file":"organization.schema.d.ts","names":[],"sources":["../../../src/schemas/organization.schema.ts"],"sourcesContent":[],"mappings":";;;;;cASa,oBAAkB,OAAA,+BAAA,MAAA,mCAAA,UAAA,CAAA,uBAAA,+BAAA,KAAA,YAAA;;;EAAlB,GAAA,2BA8DZ;CA9D8B,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,oBAAA,qBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,uBAAA,mBAAA,CAAA,EAAA,CAAA,CAAA,iCAAA,iCAAA,CAAA,wBAAA,mBAAA,CAAA,WAAA,CAAA;EAAA,GAAA,2BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
@@ -1,16 +1,16 @@
1
1
  import { Plan, PlanSchema } from "../types/plan.types.js";
2
- import * as mongoose81 from "mongoose";
2
+ import * as mongoose59 from "mongoose";
3
3
  import { Schema } from "mongoose";
4
4
 
5
5
  //#region src/schemas/plans.schema.d.ts
6
- declare const planSchema: Schema<PlanSchema, mongoose81.Model<PlanSchema, any, any, any, mongoose81.Document<unknown, any, PlanSchema, any, {}> & Omit<Plan, "id"> & {
7
- _id: mongoose81.Types.ObjectId;
6
+ declare const planSchema: Schema<PlanSchema, mongoose59.Model<PlanSchema, any, any, any, mongoose59.Document<unknown, any, PlanSchema, any, {}> & Omit<Plan, "id"> & {
7
+ _id: mongoose59.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose81.Types.ObjectId;
9
+ _id: mongoose59.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose81.DefaultSchemaOptions, PlanSchema, mongoose81.Document<unknown, {}, mongoose81.FlatRecord<PlanSchema>, {}, mongoose81.ResolveSchemaOptions<mongoose81.DefaultSchemaOptions>> & mongoose81.FlatRecord<PlanSchema> & Required<{
13
- _id: mongoose81.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose59.DefaultSchemaOptions, PlanSchema, mongoose59.Document<unknown, {}, mongoose59.FlatRecord<PlanSchema>, {}, mongoose59.ResolveSchemaOptions<mongoose59.DefaultSchemaOptions>> & mongoose59.FlatRecord<PlanSchema> & Required<{
13
+ _id: mongoose59.Types.ObjectId;
14
14
  }> & {
15
15
  __v: number;
16
16
  }>;
@@ -1,16 +1,16 @@
1
1
  import { Project, ProjectSchema } from "../types/project.types.js";
2
- import * as mongoose5 from "mongoose";
2
+ import * as mongoose70 from "mongoose";
3
3
  import { Schema } from "mongoose";
4
4
 
5
5
  //#region src/schemas/project.schema.d.ts
6
- declare const projectSchema: Schema<ProjectSchema, mongoose5.Model<ProjectSchema, any, any, any, mongoose5.Document<unknown, any, ProjectSchema, any, {}> & Omit<Project, "id"> & {
7
- _id: mongoose5.Types.ObjectId;
6
+ declare const projectSchema: Schema<ProjectSchema, mongoose70.Model<ProjectSchema, any, any, any, mongoose70.Document<unknown, any, ProjectSchema, any, {}> & Omit<Project, "id"> & {
7
+ _id: mongoose70.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose5.Types.ObjectId;
9
+ _id: mongoose70.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose5.DefaultSchemaOptions, ProjectSchema, mongoose5.Document<unknown, {}, mongoose5.FlatRecord<ProjectSchema>, {}, mongoose5.ResolveSchemaOptions<mongoose5.DefaultSchemaOptions>> & mongoose5.FlatRecord<ProjectSchema> & Required<{
13
- _id: mongoose5.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose70.DefaultSchemaOptions, ProjectSchema, mongoose70.Document<unknown, {}, mongoose70.FlatRecord<ProjectSchema>, {}, mongoose70.ResolveSchemaOptions<mongoose70.DefaultSchemaOptions>> & mongoose70.FlatRecord<ProjectSchema> & Required<{
13
+ _id: mongoose70.Types.ObjectId;
14
14
  }> & {
15
15
  __v: number;
16
16
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"project.schema.d.ts","names":[],"sources":["../../../src/schemas/project.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAyDa,eAAa,OAAA,yBAAA,MAAA,8BAAA,SAAA,CAAA,uBAAA,0BAAA,KAAA;;;EAAb,GAAA,0BA0DZ;CA1DyB,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,eAAA,oBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,sBAAA,cAAA,CAAA,EAAA,CAAA,CAAA,gCAAA,gCAAA,CAAA,uBAAA,cAAA,CAAA,WAAA,CAAA;EAAA,GAAA,0BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
1
+ {"version":3,"file":"project.schema.d.ts","names":[],"sources":["../../../src/schemas/project.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAyDa,eAAa,OAAA,0BAAA,MAAA,8BAAA,UAAA,CAAA,uBAAA,0BAAA,KAAA;;;EAAb,GAAA,2BA0DZ;CA1DyB,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,eAAA,qBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,uBAAA,cAAA,CAAA,EAAA,CAAA,CAAA,iCAAA,iCAAA,CAAA,wBAAA,cAAA,CAAA,WAAA,CAAA;EAAA,GAAA,2BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
@@ -1,16 +1,16 @@
1
1
  import { SessionData, SessionSchema } from "../types/session.types.js";
2
- import * as mongoose48 from "mongoose";
2
+ import * as mongoose38 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, mongoose48.Model<SessionSchema, any, any, any, mongoose48.Document<unknown, any, SessionSchema, any, {}> & Omit<SessionData, "id"> & {
7
- _id: mongoose48.Types.ObjectId;
6
+ declare const sessionSchema: Schema<SessionSchema, mongoose38.Model<SessionSchema, any, any, any, mongoose38.Document<unknown, any, SessionSchema, any, {}> & Omit<SessionData, "id"> & {
7
+ _id: mongoose38.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose48.Types.ObjectId;
9
+ _id: mongoose38.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose48.DefaultSchemaOptions, SessionSchema, mongoose48.Document<unknown, {}, mongoose48.FlatRecord<SessionSchema>, {}, mongoose48.ResolveSchemaOptions<mongoose48.DefaultSchemaOptions>> & mongoose48.FlatRecord<SessionSchema> & Required<{
13
- _id: mongoose48.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose38.DefaultSchemaOptions, SessionSchema, mongoose38.Document<unknown, {}, mongoose38.FlatRecord<SessionSchema>, {}, mongoose38.ResolveSchemaOptions<mongoose38.DefaultSchemaOptions>> & mongoose38.FlatRecord<SessionSchema> & Required<{
13
+ _id: mongoose38.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 mongoose59 from "mongoose";
2
+ import * as mongoose92 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, mongoose59.Model<TagSchema, any, any, any, mongoose59.Document<unknown, any, TagSchema, any, {}> & Omit<Tag, "id"> & {
7
- _id: mongoose59.Types.ObjectId;
6
+ declare const tagSchema: Schema<TagSchema, mongoose92.Model<TagSchema, any, any, any, mongoose92.Document<unknown, any, TagSchema, any, {}> & Omit<Tag, "id"> & {
7
+ _id: mongoose92.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose59.Types.ObjectId;
9
+ _id: mongoose92.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose59.DefaultSchemaOptions, TagSchema, mongoose59.Document<unknown, {}, mongoose59.FlatRecord<TagSchema>, {}, mongoose59.ResolveSchemaOptions<mongoose59.DefaultSchemaOptions>> & mongoose59.FlatRecord<TagSchema> & Required<{
13
- _id: mongoose59.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose92.DefaultSchemaOptions, TagSchema, mongoose92.Document<unknown, {}, mongoose92.FlatRecord<TagSchema>, {}, mongoose92.ResolveSchemaOptions<mongoose92.DefaultSchemaOptions>> & mongoose92.FlatRecord<TagSchema> & Required<{
13
+ _id: mongoose92.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 mongoose70 from "mongoose";
2
+ import * as mongoose81 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, mongoose70.Model<UserSchema, any, any, any, mongoose70.Document<unknown, any, UserSchema, any, {}> & Omit<User, "id"> & {
7
- _id: mongoose70.Types.ObjectId;
6
+ declare const userSchema: Schema<UserSchema, mongoose81.Model<UserSchema, any, any, any, mongoose81.Document<unknown, any, UserSchema, any, {}> & Omit<User, "id"> & {
7
+ _id: mongoose81.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose70.Types.ObjectId;
9
+ _id: mongoose81.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose70.DefaultSchemaOptions, UserSchema, mongoose70.Document<unknown, {}, mongoose70.FlatRecord<UserSchema>, {}, mongoose70.ResolveSchemaOptions<mongoose70.DefaultSchemaOptions>> & mongoose70.FlatRecord<UserSchema> & Required<{
13
- _id: mongoose70.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose81.DefaultSchemaOptions, UserSchema, mongoose81.Document<unknown, {}, mongoose81.FlatRecord<UserSchema>, {}, mongoose81.ResolveSchemaOptions<mongoose81.DefaultSchemaOptions>> & mongoose81.FlatRecord<UserSchema> & Required<{
13
+ _id: mongoose81.Types.ObjectId;
14
14
  }> & {
15
15
  __v: number;
16
16
  }>;
@@ -6,71 +6,22 @@ import { Document, Model, ObjectIdToString, Types } from "mongoose";
6
6
  //#region src/types/organization.types.d.ts
7
7
 
8
8
  /**
9
- * SSO Provider Type - defines the type of SSO provider
9
+ * Note: SSO configuration is managed entirely by better-auth's SSO plugin.
10
+ * The organization only stores a reference to whether SSO is enabled
11
+ * and the domain for SSO provider lookup.
12
+ * See: https://www.better-auth.com/docs/plugins/sso
10
13
  */
11
- type SSOProviderType = 'saml' | 'oidc';
12
- /**
13
- * SAML Configuration for SSO
14
- */
15
- type SAMLConfig = {
16
- /** The URL where the IdP receives SAML requests */
17
- idpEntityId: string;
18
- /** The URL where the IdP sends SAML responses (SSO URL) */
19
- idpSSOUrl: string;
20
- /** The IdP's public certificate for signature verification (PEM format) */
21
- idpCertificate: string;
22
- /** Optional: IdP Single Logout URL */
23
- idpSLOUrl?: string;
24
- };
25
- /**
26
- * OIDC Configuration for SSO
27
- */
28
- type OIDCConfig = {
29
- /** The OIDC issuer URL (e.g., https://accounts.google.com) */
30
- issuer: string;
31
- /** OAuth2 Client ID */
32
- clientId: string;
33
- /** OAuth2 Client Secret */
34
- clientSecret: string;
35
- /** OAuth2 scopes to request */
36
- scopes?: string[];
37
- /** Optional: Authorization endpoint override */
38
- authorizationEndpoint?: string;
39
- /** Optional: Token endpoint override */
40
- tokenEndpoint?: string;
41
- /** Optional: User info endpoint override */
42
- userinfoEndpoint?: string;
43
- };
44
- /**
45
- * SSO Configuration for an Organization
46
- */
47
- type SSOConfig = {
48
- /** Whether SSO is enabled for this organization */
49
- enabled: boolean;
50
- /** The type of SSO provider */
51
- providerType?: SSOProviderType;
52
- /** Unique provider ID for this organization's SSO */
53
- providerId?: string;
54
- /** Domain(s) associated with this SSO provider (e.g., 'company.com') */
55
- domains?: string[];
56
- /** SAML-specific configuration */
57
- samlConfig?: SAMLConfig;
58
- /** OIDC-specific configuration */
59
- oidcConfig?: OIDCConfig;
60
- /** Whether to enforce SSO for all users in this organization */
61
- enforceSSO?: boolean;
62
- /** Whether to allow users to bypass SSO with password login */
63
- allowPasswordLogin?: boolean;
64
- };
65
14
  type OrganizationCreationData = {
66
15
  name: Organization['name'];
67
- ssoConfig?: SSOConfig;
68
16
  };
69
17
  type OrganizationData = {
70
18
  name: string;
71
19
  membersIds: User['id'][];
72
20
  adminsIds: User['id'][];
73
- ssoConfig?: SSOConfig;
21
+ /** Whether SSO is configured for this organization (managed by better-auth) */
22
+ ssoEnabled: boolean;
23
+ /** Primary domain for this organization (used for SSO provider lookup) */
24
+ domain: string;
74
25
  };
75
26
  type Organization = OrganizationData & {
76
27
  id: Types.ObjectId;
@@ -84,5 +35,5 @@ type OrganizationSchema = RenameId<Organization>;
84
35
  type OrganizationModelType = Model<Organization>;
85
36
  type OrganizationDocument = Document<unknown, {}, Organization> & Organization;
86
37
  //#endregion
87
- export { OIDCConfig, Organization, OrganizationAPI, OrganizationCreationData, OrganizationData, OrganizationDocument, OrganizationModelType, OrganizationSchema, SAMLConfig, SSOConfig, SSOProviderType };
38
+ export { Organization, OrganizationAPI, OrganizationCreationData, OrganizationData, OrganizationDocument, OrganizationModelType, OrganizationSchema };
88
39
  //# sourceMappingURL=organization.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.types.d.ts","names":[],"sources":["../../../src/types/organization.types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAQA;AAKY,KALA,eAAA,GAKU,MAAA,GAAA,MAAA;AActB;AAoBA;;AAUe,KA5CH,UAAA,GA4CG;EAEA;EAAU,WAAA,EAAA,MAAA;EAOb;EAKA,SAAA,EAAA,MAAA;EAEE;EACD,cAAA,EAAA,MAAA;EACC;EAAS,SAAA,CAAA,EAAA,MAAA;AAGvB,CAAA;;;;AAGS,KAtDG,UAAA,GAsDH;EAAI;EAKD,MAAA,EAAA,MAAA;EAEA;EACA,QAAA,EAAA,MAAA;EACA;EAA6C,YAAA,EAAA,MAAA;EAAtB;EACjC,MAAA,CAAA,EAAA,MAAA,EAAA;EAAY;;;;;;;;;;KA5CF,SAAA;;;;iBAIK;;;;;;eAMF;;eAEA;;;;;;KAOH,wBAAA;QACJ;cACM;;KAGF,gBAAA;;cAEE;aACD;cACC;;KAGF,YAAA,GAAe;MACrB,KAAA,CAAM;aACC;SACJ;;;;KAKG,eAAA,GAAkB,iBAAiB;KAEnC,kBAAA,GAAqB,SAAS;KAC9B,qBAAA,GAAwB,MAAM;KAC9B,oBAAA,GAAuB,sBAAsB,gBACvD"}
1
+ {"version":3,"file":"organization.types.d.ts","names":[],"sources":["../../../src/types/organization.types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAYA;AAIA;AAUA;;AACY,KAfA,wBAAA,GAeA;EACC,IAAA,EAfL,YAeK,CAAA,MAAA,CAAA;CACJ;AAAI,KAbD,gBAAA,GAaC;EAKD,IAAA,EAAA,MAAA;EAEA,UAAA,EAlBE,IAkBF,CAAA,IAAkB,CAAA,EAAA;EAClB,SAAA,EAlBC,IAkBD,CAAA,IAAA,CAAA,EAAA;EACA;EAA6C,UAAA,EAAA,OAAA;EAAtB;EACjC,MAAA,EAAA,MAAA;CAAY;KAbF,YAAA,GAAe;MACrB,KAAA,CAAM;aACC;SACJ;;;;KAKG,eAAA,GAAkB,iBAAiB;KAEnC,kBAAA,GAAqB,SAAS;KAC9B,qBAAA,GAAwB,MAAM;KAC9B,oBAAA,GAAuB,sBAAsB,gBACvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"getAuth.d.ts","names":[],"sources":["../../../../src/utils/auth/getAuth.ts"],"sourcesContent":[],"mappings":";;;;;KAgCY,IAAA,GAAO,kBAAkB;cAExB,yBAA0B,mBAAiB,OAAO;AAFnD,cAwBC,OAxBwB,EAAA,CAAA,QAAlB,EAwBe,WAxBL,EAAA,GAwBmB,IAxBnB"}
1
+ {"version":3,"file":"getAuth.d.ts","names":[],"sources":["../../../../src/utils/auth/getAuth.ts"],"sourcesContent":[],"mappings":";;;;;KAiCY,IAAA,GAAO,kBAAkB;cAExB,yBAA0B,mBAAiB,OAAO;AAFnD,cAwBC,OAxBwB,EAAA,CAAA,QAAlB,EAwBe,WAxBL,EAAA,GAwBmB,IAxBnB"}
@@ -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 mongoose92 from "mongoose";
4
+ import * as mongoose103 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: mongoose92.FilterQuery<Dictionary>;
44
+ filters: mongoose103.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 mongoose95 from "mongoose";
4
+ import * as mongoose104 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: mongoose95.Types.ObjectId | mongoose95.Query<any, any, {}, unknown, "find", Record<string, never>> | mongoose95.FilterQuery<Discussion>;
33
+ filters: mongoose104.Types.ObjectId | mongoose104.Query<any, any, {}, unknown, "find", Record<string, never>> | mongoose104.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 mongoose109 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: mongoose109.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 mongoose93 from "mongoose";
4
+ import * as mongoose107 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: mongoose93.FilterQuery<Project>;
33
+ filters: mongoose107.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 mongoose94 from "mongoose";
4
+ import * as mongoose108 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: mongoose94.FilterQuery<Tag>;
31
+ filters: mongoose108.FilterQuery<Tag>;
32
32
  sortOptions: Record<string, 1 | -1>;
33
33
  };
34
34
  //#endregion
@@ -1,7 +1,12 @@
1
- import { MongoClient } from "mongodb";
1
+ import { mongo } from "mongoose";
2
2
 
3
3
  //#region src/utils/mongoDB/connectDB.d.ts
4
- declare const connectDB: () => Promise<MongoClient>;
4
+ declare const connectDB: () => Promise<mongo.MongoClient>;
5
+ /**
6
+ * Get the MongoDB client instance.
7
+ * Must be called after connectDB() has been executed.
8
+ */
9
+ declare const getDBClient: () => mongo.MongoClient;
5
10
  //#endregion
6
- export { connectDB };
11
+ export { connectDB, getDBClient };
7
12
  //# sourceMappingURL=connectDB.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connectDB.d.ts","names":[],"sources":["../../../../src/utils/mongoDB/connectDB.ts"],"sourcesContent":[],"mappings":";;;cAUa,iBAAsB,QAAQ"}
1
+ {"version":3,"file":"connectDB.d.ts","names":[],"sources":["../../../../src/utils/mongoDB/connectDB.ts"],"sourcesContent":[],"mappings":";;;cAYa,iBAAsB,QAAQ,KAAA,CAAM;;AAAjD;AA+BA;;cAAa,mBAAkB,KAAA,CAAM"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/backend",
3
- "version": "7.5.0",
3
+ "version": "7.5.2-canary.0",
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": [
@@ -77,7 +77,7 @@
77
77
  "@better-auth/core": "1.4.7",
78
78
  "@better-auth/passkey": "1.4.7",
79
79
  "@better-auth/sso": "1.4.7",
80
- "@intlayer/ai": "7.5.0",
80
+ "@intlayer/ai": "7.5.2-canary.0",
81
81
  "@react-email/components": "1.0.1",
82
82
  "better-auth": "1.4.7",
83
83
  "compression": "1.8.1",
@@ -86,7 +86,7 @@
86
86
  "cross-env": "10.1.0",
87
87
  "dotenv": "16.6.1",
88
88
  "express": "5.2.1",
89
- "express-intlayer": "7.5.0",
89
+ "express-intlayer": "7.5.2-canary.0",
90
90
  "express-rate-limit": "8.2.1",
91
91
  "helmet": "8.1.0",
92
92
  "mongodb": "6.21.0",
@@ -101,10 +101,10 @@
101
101
  "winston": "3.19.0"
102
102
  },
103
103
  "devDependencies": {
104
- "@intlayer/config": "7.5.0",
105
- "@intlayer/core": "7.5.0",
106
- "@intlayer/docs": "7.5.0",
107
- "@intlayer/types": "7.5.0",
104
+ "@intlayer/config": "7.5.2-canary.0",
105
+ "@intlayer/core": "7.5.2-canary.0",
106
+ "@intlayer/docs": "7.5.2-canary.0",
107
+ "@intlayer/types": "7.5.2-canary.0",
108
108
  "@types/body-parser": "1.19.6",
109
109
  "@types/compression": "1.8.1",
110
110
  "@types/cookie-parser": "1.4.10",
@@ -119,7 +119,7 @@
119
119
  "@utils/ts-config": "1.0.4",
120
120
  "@utils/ts-config-types": "1.0.4",
121
121
  "@utils/tsdown-config": "1.0.4",
122
- "intlayer": "7.5.0",
122
+ "intlayer": "7.5.2-canary.0",
123
123
  "npm-run-all": "^4.1.5",
124
124
  "rimraf": "6.1.2",
125
125
  "tsdown": "0.18.1",