@intlayer/backend 7.3.14 → 7.3.15
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/esm/utils/auth/getAuth.mjs +1 -1
- package/dist/esm/utils/auth/getAuth.mjs.map +1 -1
- package/dist/types/controllers/dictionary.controller.d.ts.map +1 -1
- package/dist/types/controllers/projectAccessKey.controller.d.ts.map +1 -1
- package/dist/types/emails/InviteUserEmail.d.ts +4 -4
- package/dist/types/emails/MagicLinkEmail.d.ts +4 -4
- package/dist/types/emails/MagicLinkEmail.d.ts.map +1 -1
- package/dist/types/emails/PasswordChangeConfirmation.d.ts +4 -4
- package/dist/types/emails/PasswordChangeConfirmation.d.ts.map +1 -1
- 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/SubscriptionPaymentSuccess.d.ts +4 -4
- package/dist/types/emails/ValidateUserEmail.d.ts +4 -4
- package/dist/types/emails/Welcome.d.ts +4 -4
- package/dist/types/models/dictionary.model.d.ts +4 -4
- package/dist/types/models/dictionary.model.d.ts.map +1 -1
- package/dist/types/models/discussion.model.d.ts +2 -2
- package/dist/types/models/discussion.model.d.ts.map +1 -1
- package/dist/types/models/oAuth2.model.d.ts +3 -3
- package/dist/types/schemas/dictionary.schema.d.ts +6 -6
- package/dist/types/schemas/dictionary.schema.d.ts.map +1 -1
- package/dist/types/schemas/oAuth2.schema.d.ts +5 -5
- package/dist/types/schemas/organization.schema.d.ts +6 -6
- 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/services/email.service.d.ts +11 -11
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAuth.mjs","names":["userAPI: UserAPI | null","organizationAPI: OrganizationAPI | null","projectAPI: ProjectAPI | null"],"sources":["../../../../src/utils/auth/getAuth.ts"],"sourcesContent":["// import { sso } from '@better-auth/sso';\n\nimport { passkey } from '@better-auth/passkey';\nimport { sendVerificationUpdate } from '@controllers/user.controller';\nimport { logger } from '@logger';\nimport { sendEmail } from '@services/email.service';\nimport { getOrganizationById } from '@services/organization.service';\nimport { getProjectById } from '@services/project.service';\nimport { getUserById } from '@services/user.service';\nimport { mapOrganizationToAPI } from '@utils/mapper/organization';\nimport { mapProjectToAPI } from '@utils/mapper/project';\nimport { mapSessionToAPI } from '@utils/mapper/session';\nimport { mapUserToAPI } from '@utils/mapper/user';\nimport {\n computeEffectivePermission,\n getSessionRoles,\n intersectPermissions,\n} from '@utils/permissions';\nimport { betterAuth, type OmitId } from 'better-auth';\nimport { mongodbAdapter } from 'better-auth/adapters/mongodb';\nimport { createAuthMiddleware } from 'better-auth/api';\nimport { customSession, lastLoginMethod, twoFactor } from 'better-auth/plugins';\nimport { magicLink } from 'better-auth/plugins/magic-link';\nimport type { MongoClient } from 'mongodb';\nimport type { OrganizationAPI } from '@/types/organization.types';\nimport type { ProjectAPI } from '@/types/project.types';\nimport type {\n Session,\n SessionContext,\n SessionDataApi,\n} from '@/types/session.types';\nimport type { User, UserAPI } from '@/types/user.types';\n\nexport type Auth = ReturnType<typeof betterAuth>;\n\nexport const formatSession = (session: SessionContext): OmitId<Session> => {\n const roles = getSessionRoles(session);\n let permissions = computeEffectivePermission(roles);\n\n // Intersect in the case a Access Token try to override the permissions\n if (session.permissions) {\n permissions = intersectPermissions(permissions, session.permissions);\n }\n\n const resultSession = {\n session: session.session,\n user: session.user,\n organization: session.organization,\n project: session.project,\n authType: 'session',\n permissions,\n roles,\n } as OmitId<Session>;\n\n return resultSession;\n};\n\nexport const getAuth = (dbClient: MongoClient): Auth => {\n if (!dbClient) {\n throw new Error('MongoDB connection not established');\n }\n\n const auth = betterAuth({\n appName: 'Intlayer',\n\n database: mongodbAdapter(dbClient.db()),\n\n /**\n * User model\n */\n user: {\n modelName: 'users',\n },\n\n databaseHooks: {\n user: {\n create: {\n // Runs once, immediately after the INSERT\n after: async (user) => {\n if (!user?.emailVerified) return;\n\n await sendEmail({\n type: 'welcome',\n to: user.email,\n username: user.name ?? user.email.split('@')[0],\n loginLink: `${process.env.CLIENT_URL}/auth/login`,\n locale: (user as any).lang,\n });\n logger.info('Welcome e‑mail delivered', {\n email: user.email,\n });\n },\n },\n },\n },\n\n hooks: {\n after: createAuthMiddleware(async (ctx) => {\n const { path, context } = ctx;\n\n const newUser = context.newSession?.user;\n const existingUser = context.session?.user;\n const user = newUser ?? existingUser;\n\n if (!user) return;\n\n if (['/verify-email'].includes(path)) {\n sendVerificationUpdate(user as unknown as User);\n logger.info('SSE verification update sent', {\n email: user.email,\n userId: user.id,\n });\n\n await sendEmail({\n type: 'welcome',\n to: user.email,\n username: user.name ?? user.email.split('@')[0],\n loginLink: `${process.env.CLIENT_URL}/auth/login`,\n locale: (user as any).lang,\n });\n logger.info('Welcome e‑mail delivered', {\n email: user.email,\n });\n }\n }),\n },\n\n advanced: {\n // 1️⃣ Change or drop the global prefix\n // cookiePrefix: \"intlayer\", // => intlayer.session_token\n cookiePrefix: 'intlayer', // => session_token (no prefix)\n\n // 2️⃣ Override just the session‑token cookie\n cookies: {\n session_token: {\n // name: 'intlayer_session_token', // final name depends on the prefix above\n // attributes: { sameSite: \"lax\", maxAge: 60 * 60 * 24 } // optional\n },\n },\n\n // 3️⃣ (optional) turn off the automatic __Secure‑ prefix in non‑prod\n // useSecureCookies: false,\n },\n\n secret: process.env.AUTH_SECRET as string,\n session: {\n modelName: 'sessions',\n id: 'id',\n\n additionalFields: {\n activeOrganizationId: { type: 'string', nullable: true, input: false },\n activeProjectId: { type: 'string', nullable: true, input: false },\n },\n },\n\n plugins: [\n customSession(async ({ session }) => {\n const typedSession = session as unknown as SessionDataApi;\n\n let userAPI: UserAPI | null = null;\n let organizationAPI: OrganizationAPI | null = null;\n let projectAPI: ProjectAPI | null = null;\n\n if (typedSession.userId) {\n const userData = await getUserById(typedSession.userId);\n\n if (userData) {\n userAPI = mapUserToAPI(userData);\n }\n }\n\n if (typedSession.activeOrganizationId) {\n const orgData = await getOrganizationById(\n typedSession.activeOrganizationId\n );\n\n if (orgData) {\n organizationAPI = mapOrganizationToAPI(orgData);\n }\n }\n if (typedSession.activeProjectId) {\n const projectData = await getProjectById(\n typedSession.activeProjectId\n );\n\n if (projectData) {\n projectAPI = mapProjectToAPI(projectData);\n }\n }\n\n const sessionWithNoPermission: SessionContext = {\n session: typedSession,\n user: userAPI!,\n organization: organizationAPI ?? null,\n project: projectAPI ?? null,\n authType: 'session',\n };\n\n const formattedSession = formatSession(sessionWithNoPermission);\n\n return mapSessionToAPI(formattedSession);\n }),\n lastLoginMethod({\n storeInDatabase: true, // adds user.lastLoginMethod in DB and session\n schema: {\n user: {\n lastLoginMethod: 'lastLoginMethod', // Custom field name\n },\n },\n customResolveMethod: (context) => {\n // When user clicks the magic link\n if (context.path === '/magic-link/verify') {\n return 'magic-link';\n }\n\n // Fallback to default behavior for everything else\n return null;\n },\n }),\n passkey(),\n twoFactor(),\n magicLink({\n sendMagicLink: async ({ email, url }) => {\n logger.info('sending magic link', { email, url });\n await sendEmail({\n type: 'magicLink',\n to: email,\n username: email.split('@')[0],\n magicLink: url,\n });\n },\n }),\n // sso(),\n ],\n\n emailAndPassword: {\n enabled: true,\n disableSignUp: false,\n requireEmailVerification: true,\n minPasswordLength: 8,\n maxPasswordLength: 128,\n autoSignIn: true,\n sendResetPassword: async ({ user, token }) => {\n logger.info('sending reset password email', { email: user.email });\n await sendEmail({\n type: 'resetPassword',\n to: user.email,\n username: user.name ?? user.email.split('@')[0],\n resetLink: `${process.env.CLIENT_URL}/auth/password/reset?token=${token}`,\n });\n },\n resetPasswordTokenExpiresIn: 3600,\n },\n accountLinking: {\n enabled: true, // allow linking in general\n trustedProviders: ['google', 'github', 'linkedin'], // optional: auto‑link when Google verifies the e‑mail\n },\n emailVerification: {\n autoSignInAfterVerification: true,\n sendOnSignIn: true,\n sendVerificationEmail: async ({ user, url }) => {\n logger.info('sending verification email', { email: user.email });\n await sendEmail({\n type: 'validate',\n to: user.email,\n username: user.name ?? user.email.split('@')[0],\n validationLink: url,\n });\n },\n },\n\n crossSubDomainCookies: {\n enabled: true,\n additionalCookies: ['session_token'],\n domain: process.env.CLIENT_URL as string,\n },\n cookiePrefix: 'intlayer',\n cookies: {\n session_token: {\n name: 'session_token',\n attributes: {\n httpOnly: true,\n secure: true,\n },\n },\n },\n\n trustedOrigins: [process.env.CLIENT_URL as string],\n\n socialProviders: {\n google: {\n clientId: process.env.GOOGLE_CLIENT_ID as string,\n clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,\n },\n github: {\n clientId: process.env.GITHUB_CLIENT_ID as string,\n clientSecret: process.env.GITHUB_CLIENT_SECRET as string,\n },\n linkedin: {\n clientId: process.env.LINKEDIN_CLIENT_ID as string,\n clientSecret: process.env.LINKEDIN_CLIENT_SECRET as string,\n },\n // socialProviders: {\n // apple: {\n // clientId: process.env.APPLE_CLIENT_ID as string,\n // clientSecret: process.env.APPLE_CLIENT_SECRET as string,\n // // Optional\n // appBundleIdentifier: process.env\n // .APPLE_APP_BUNDLE_IDENTIFIER as string,\n // },\n // },\n // // Add appleid.apple.com to trustedOrigins for Sign In with Apple flows\n // trustedOrigins: ['https://appleid.ap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AAQ;IACN,UAAU,QAAQ,IAAI;IACtB,cAAc,QAAQ,IAAI;IAC3B;GACD,UAAU;IACR,UAAU,QAAQ,IAAI;IACtB,cAAc,QAAQ,IAAI;IAC3B;GAYF;EAED,QAAQ,EACN,MAAM,OAAO,SAAS,GAAG,SAAS,OAAO,OAAO,SAAS,GAAG,KAAK,EAClE;EACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"getAuth.mjs","names":["userAPI: UserAPI | null","organizationAPI: OrganizationAPI | null","projectAPI: ProjectAPI | null"],"sources":["../../../../src/utils/auth/getAuth.ts"],"sourcesContent":["// import { sso } from '@better-auth/sso';\n\nimport { passkey } from '@better-auth/passkey';\nimport { sendVerificationUpdate } from '@controllers/user.controller';\nimport { logger } from '@logger';\nimport { sendEmail } from '@services/email.service';\nimport { getOrganizationById } from '@services/organization.service';\nimport { getProjectById } from '@services/project.service';\nimport { getUserById } from '@services/user.service';\nimport { mapOrganizationToAPI } from '@utils/mapper/organization';\nimport { mapProjectToAPI } from '@utils/mapper/project';\nimport { mapSessionToAPI } from '@utils/mapper/session';\nimport { mapUserToAPI } from '@utils/mapper/user';\nimport {\n computeEffectivePermission,\n getSessionRoles,\n intersectPermissions,\n} from '@utils/permissions';\nimport { betterAuth, type OmitId } from 'better-auth';\nimport { mongodbAdapter } from 'better-auth/adapters/mongodb';\nimport { createAuthMiddleware } from 'better-auth/api';\nimport { customSession, lastLoginMethod, twoFactor } from 'better-auth/plugins';\nimport { magicLink } from 'better-auth/plugins/magic-link';\nimport type { MongoClient } from 'mongodb';\nimport type { OrganizationAPI } from '@/types/organization.types';\nimport type { ProjectAPI } from '@/types/project.types';\nimport type {\n Session,\n SessionContext,\n SessionDataApi,\n} from '@/types/session.types';\nimport type { User, UserAPI } from '@/types/user.types';\n\nexport type Auth = ReturnType<typeof betterAuth>;\n\nexport const formatSession = (session: SessionContext): OmitId<Session> => {\n const roles = getSessionRoles(session);\n let permissions = computeEffectivePermission(roles);\n\n // Intersect in the case a Access Token try to override the permissions\n if (session.permissions) {\n permissions = intersectPermissions(permissions, session.permissions);\n }\n\n const resultSession = {\n session: session.session,\n user: session.user,\n organization: session.organization,\n project: session.project,\n authType: 'session',\n permissions,\n roles,\n } as OmitId<Session>;\n\n return resultSession;\n};\n\nexport const getAuth = (dbClient: MongoClient): Auth => {\n if (!dbClient) {\n throw new Error('MongoDB connection not established');\n }\n\n const auth = betterAuth({\n appName: 'Intlayer',\n\n database: mongodbAdapter(dbClient.db()),\n\n /**\n * User model\n */\n user: {\n modelName: 'users',\n },\n\n databaseHooks: {\n user: {\n create: {\n // Runs once, immediately after the INSERT\n after: async (user) => {\n if (!user?.emailVerified) return;\n\n await sendEmail({\n type: 'welcome',\n to: user.email,\n username: user.name ?? user.email.split('@')[0],\n loginLink: `${process.env.CLIENT_URL}/auth/login`,\n locale: (user as any).lang,\n });\n logger.info('Welcome e‑mail delivered', {\n email: user.email,\n });\n },\n },\n },\n },\n\n hooks: {\n after: createAuthMiddleware(async (ctx) => {\n const { path, context } = ctx;\n\n const newUser = context.newSession?.user;\n const existingUser = context.session?.user;\n const user = newUser ?? existingUser;\n\n if (!user) return;\n\n if (['/verify-email'].includes(path)) {\n sendVerificationUpdate(user as unknown as User);\n logger.info('SSE verification update sent', {\n email: user.email,\n userId: user.id,\n });\n\n await sendEmail({\n type: 'welcome',\n to: user.email,\n username: user.name ?? user.email.split('@')[0],\n loginLink: `${process.env.CLIENT_URL}/auth/login`,\n locale: (user as any).lang,\n });\n logger.info('Welcome e‑mail delivered', {\n email: user.email,\n });\n }\n }),\n },\n\n advanced: {\n // 1️⃣ Change or drop the global prefix\n // cookiePrefix: \"intlayer\", // => intlayer.session_token\n cookiePrefix: 'intlayer', // => session_token (no prefix)\n\n // 2️⃣ Override just the session‑token cookie\n cookies: {\n session_token: {\n // name: 'intlayer_session_token', // final name depends on the prefix above\n // attributes: { sameSite: \"lax\", maxAge: 60 * 60 * 24 } // optional\n },\n },\n\n // 3️⃣ (optional) turn off the automatic __Secure‑ prefix in non‑prod\n // useSecureCookies: false,\n },\n\n secret: process.env.BETTER_AUTH_SECRET as string,\n session: {\n modelName: 'sessions',\n id: 'id',\n\n additionalFields: {\n activeOrganizationId: { type: 'string', nullable: true, input: false },\n activeProjectId: { type: 'string', nullable: true, input: false },\n },\n },\n\n plugins: [\n customSession(async ({ session }) => {\n const typedSession = session as unknown as SessionDataApi;\n\n let userAPI: UserAPI | null = null;\n let organizationAPI: OrganizationAPI | null = null;\n let projectAPI: ProjectAPI | null = null;\n\n if (typedSession.userId) {\n const userData = await getUserById(typedSession.userId);\n\n if (userData) {\n userAPI = mapUserToAPI(userData);\n }\n }\n\n if (typedSession.activeOrganizationId) {\n const orgData = await getOrganizationById(\n typedSession.activeOrganizationId\n );\n\n if (orgData) {\n organizationAPI = mapOrganizationToAPI(orgData);\n }\n }\n if (typedSession.activeProjectId) {\n const projectData = await getProjectById(\n typedSession.activeProjectId\n );\n\n if (projectData) {\n projectAPI = mapProjectToAPI(projectData);\n }\n }\n\n const sessionWithNoPermission: SessionContext = {\n session: typedSession,\n user: userAPI!,\n organization: organizationAPI ?? null,\n project: projectAPI ?? null,\n authType: 'session',\n };\n\n const formattedSession = formatSession(sessionWithNoPermission);\n\n return mapSessionToAPI(formattedSession);\n }),\n lastLoginMethod({\n storeInDatabase: true, // adds user.lastLoginMethod in DB and session\n schema: {\n user: {\n lastLoginMethod: 'lastLoginMethod', // Custom field name\n },\n },\n customResolveMethod: (context) => {\n // When user clicks the magic link\n if (context.path === '/magic-link/verify') {\n return 'magic-link';\n }\n\n // Fallback to default behavior for everything else\n return null;\n },\n }),\n passkey(),\n twoFactor(),\n magicLink({\n sendMagicLink: async ({ email, url }) => {\n logger.info('sending magic link', { email, url });\n await sendEmail({\n type: 'magicLink',\n to: email,\n username: email.split('@')[0],\n magicLink: url,\n });\n },\n }),\n // sso(),\n ],\n\n emailAndPassword: {\n enabled: true,\n disableSignUp: false,\n requireEmailVerification: true,\n minPasswordLength: 8,\n maxPasswordLength: 128,\n autoSignIn: true,\n sendResetPassword: async ({ user, token }) => {\n logger.info('sending reset password email', { email: user.email });\n await sendEmail({\n type: 'resetPassword',\n to: user.email,\n username: user.name ?? user.email.split('@')[0],\n resetLink: `${process.env.CLIENT_URL}/auth/password/reset?token=${token}`,\n });\n },\n resetPasswordTokenExpiresIn: 3600,\n },\n accountLinking: {\n enabled: true, // allow linking in general\n trustedProviders: ['google', 'github', 'linkedin'], // optional: auto‑link when Google verifies the e‑mail\n },\n emailVerification: {\n autoSignInAfterVerification: true,\n sendOnSignIn: true,\n sendVerificationEmail: async ({ user, url }) => {\n logger.info('sending verification email', { email: user.email });\n await sendEmail({\n type: 'validate',\n to: user.email,\n username: user.name ?? user.email.split('@')[0],\n validationLink: url,\n });\n },\n },\n\n crossSubDomainCookies: {\n enabled: true,\n additionalCookies: ['session_token'],\n domain: process.env.CLIENT_URL as string,\n },\n cookiePrefix: 'intlayer',\n cookies: {\n session_token: {\n name: 'session_token',\n attributes: {\n httpOnly: true,\n secure: true,\n },\n },\n },\n\n trustedOrigins: [process.env.CLIENT_URL as string],\n\n socialProviders: {\n google: {\n clientId: process.env.GOOGLE_CLIENT_ID as string,\n clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,\n },\n github: {\n clientId: process.env.GITHUB_CLIENT_ID as string,\n clientSecret: process.env.GITHUB_CLIENT_SECRET as string,\n },\n linkedin: {\n clientId: process.env.LINKEDIN_CLIENT_ID as string,\n clientSecret: process.env.LINKEDIN_CLIENT_SECRET as string,\n },\n // socialProviders: {\n // apple: {\n // clientId: process.env.APPLE_CLIENT_ID as string,\n // clientSecret: process.env.APPLE_CLIENT_SECRET as string,\n // // Optional\n // appBundleIdentifier: process.env\n // .APPLE_APP_BUNDLE_IDENTIFIER as string,\n // },\n // },\n // // Add appleid.apple.com to trustedOrigins for Sign In with Apple flows\n // trustedOrigins: ['https://appleid.apple.com'],\n },\n\n logger: {\n log: (level, message, ...args) => logger[level](message, ...args),\n },\n });\n\n return auth;\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AAA;EAKA,CAAA,EAAA;CAMA;AAAiB,KAIlB,sBAAA,GAAyB,YAJP,CAIoB,0BAJpB,CAAA;AAI9B;AAQA;;;;;AAGS,cAHI,gBAGJ,EAAA,CAAA,GAAA,EAFF,OAEE,CAAA,GAAA,EAAA,GAAA,EAFgB,oBAEhB,CAAA,EAAA,GAAA,EADF,mBACE,CADkB,sBAClB,CAAA,EAAA,KAAA,EAAA,YAAA,EAAA,GACN,OADM,CAAA,IAAA,CAAA;AACN,KA4LS,qBAAA,GA5LT;EAAO,YAAA,EAAA,MAAA;AA4LV,CAAA;AACY,KAAA,oBAAA,GAAuB,OAAQ,CAAA,YAAR,CAAA;AACvB,KAAA,sBAAA,GAAyB,YAAa,CAAA,aAAb,CAAA;AAKrC;;;AACO,cADM,gBACN,EAAA,CAAA,GAAA,EAAA,OAAA,CAAQ,qBAAR,EAAA,GAAA,EAAoC,oBAApC,CAAA,EAAA,GAAA,EACA,mBADA,CACoB,sBADpB,CAAA,EAAA,KAAA,EAEE,YAFF,EAAA,GAGJ,OAHI,CAAA,IAAA,CAAA;AACoB,KAqEf,qBAAA,GArEe;EAApB,YAAA,EAAA,MAAA;CACE;AACN,KAoES,sBAAA,GAAyB,YApElC,CAoE+C,aApE/C,CAAA;;AAmEH;AACA;AAKa,cAAA,gBA6EZ,EAAA,CAAA,GAAA,EA5EM,OA4EN,CA5Ec,qBA4Ed,CAAA,EAAA,GAAA,EA3EM,mBA2EN,CA3E0B,sBA2E1B,CAAA,EAAA,KAAA,EA1EQ,YA0ER,EAAA,GAzEE,OAyEF,CAAA,IAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectAccessKey.controller.d.ts","names":[],"sources":["../../../src/controllers/projectAccessKey.controller.ts"],"sourcesContent":[],"mappings":";;;;;;KAUY,mBAAA,GAAsB;KACtB,uBAAA,GAA0B,aAAa;AADnD;AACA;AAKA;AACe,cADF,eACE,EAAA,CAAA,GAAA,EAAR,OAAQ,CAAA,mBAAA,CAAA,EAAA,GAAA,EACR,mBADQ,CACY,uBADZ,CAAA,EAAA,KAAA,EAEN,YAFM,EAAA,GAGZ,OAHY,CAAA,IAAA,CAAA;AAAR,KA6EK,mBAAA,GA7EL;EACoB,QAAA,EAAA,MAAA;CAApB;AACE,KA4EG,uBAAA,GAA0B,YA5E7B,CAAA,IAAA,CAAA;;;AA2ET;AACY,cAKC,eALsB,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"projectAccessKey.controller.d.ts","names":[],"sources":["../../../src/controllers/projectAccessKey.controller.ts"],"sourcesContent":[],"mappings":";;;;;;KAUY,mBAAA,GAAsB;KACtB,uBAAA,GAA0B,aAAa;AADnD;AACA;AAKA;AACe,cADF,eACE,EAAA,CAAA,GAAA,EAAR,OAAQ,CAAA,mBAAA,CAAA,EAAA,GAAA,EACR,mBADQ,CACY,uBADZ,CAAA,EAAA,KAAA,EAEN,YAFM,EAAA,GAGZ,OAHY,CAAA,IAAA,CAAA;AAAR,KA6EK,mBAAA,GA7EL;EACoB,QAAA,EAAA,MAAA;CAApB;AACE,KA4EG,uBAAA,GAA0B,YA5E7B,CAAA,IAAA,CAAA;;;AA2ET;AACY,cAKC,eALsB,EAAA,CAAA,GAAG,EAM/B,OAN+B,EAAA,GAAY,EAO3C,mBAP2C,CAOvB,uBAPuB,CAAA,EAAA,KAAA,EAQzC,YARyC,EAAA,GAS/C,OAT+C,CAAA,IAAA,CAAA;AAKrC,KAwED,oBAAA,GAFX;EArEM,QAAA,EAAA,MAAA;CACoB;AAApB,KAuEK,wBAAA,GAA2B,YAvEhC,CAuE6C,YAvE7C,CAAA;;;;AAsEK,cAMC,gBANmB,EAAA,CAAA,GAAA,EAOzB,OAPyB,CAOjB,oBAPiB,CAAA,EAAA,GAAA,EAQzB,mBARyB,CAQL,wBARK,CAAA,EAAA,KAAA,EASvB,YATuB,EAAA,GAU7B,OAV6B,CAAA,IAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/emails/InviteUserEmail.d.ts
|
|
4
4
|
type InviteUserEmailProps = {
|
|
@@ -19,7 +19,7 @@ declare const InviteUserEmailEN: {
|
|
|
19
19
|
inviteLink,
|
|
20
20
|
inviteFromIp,
|
|
21
21
|
inviteFromLocation
|
|
22
|
-
}: InviteUserEmailProps):
|
|
22
|
+
}: InviteUserEmailProps): react_jsx_runtime0.JSX.Element;
|
|
23
23
|
PreviewProps: InviteUserEmailProps;
|
|
24
24
|
};
|
|
25
25
|
declare const InviteUserEmailFR: {
|
|
@@ -31,7 +31,7 @@ declare const InviteUserEmailFR: {
|
|
|
31
31
|
inviteLink,
|
|
32
32
|
inviteFromIp,
|
|
33
33
|
inviteFromLocation
|
|
34
|
-
}: InviteUserEmailProps):
|
|
34
|
+
}: InviteUserEmailProps): react_jsx_runtime0.JSX.Element;
|
|
35
35
|
PreviewProps: InviteUserEmailProps;
|
|
36
36
|
};
|
|
37
37
|
declare const InviteUserEmailES: {
|
|
@@ -43,7 +43,7 @@ declare const InviteUserEmailES: {
|
|
|
43
43
|
inviteLink,
|
|
44
44
|
inviteFromIp,
|
|
45
45
|
inviteFromLocation
|
|
46
|
-
}: InviteUserEmailProps):
|
|
46
|
+
}: InviteUserEmailProps): react_jsx_runtime0.JSX.Element;
|
|
47
47
|
PreviewProps: InviteUserEmailProps;
|
|
48
48
|
};
|
|
49
49
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime36 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/emails/MagicLinkEmail.d.ts
|
|
4
4
|
type MagicLinkEmailProps = {
|
|
@@ -9,21 +9,21 @@ declare const MagicLinkEmailEN: {
|
|
|
9
9
|
({
|
|
10
10
|
username,
|
|
11
11
|
magicLink
|
|
12
|
-
}: MagicLinkEmailProps):
|
|
12
|
+
}: MagicLinkEmailProps): react_jsx_runtime36.JSX.Element;
|
|
13
13
|
PreviewProps: MagicLinkEmailProps;
|
|
14
14
|
};
|
|
15
15
|
declare const MagicLinkEmailFR: {
|
|
16
16
|
({
|
|
17
17
|
username,
|
|
18
18
|
magicLink
|
|
19
|
-
}: MagicLinkEmailProps):
|
|
19
|
+
}: MagicLinkEmailProps): react_jsx_runtime36.JSX.Element;
|
|
20
20
|
PreviewProps: MagicLinkEmailProps;
|
|
21
21
|
};
|
|
22
22
|
declare const MagicLinkEmailES: {
|
|
23
23
|
({
|
|
24
24
|
username,
|
|
25
25
|
magicLink
|
|
26
|
-
}: MagicLinkEmailProps):
|
|
26
|
+
}: MagicLinkEmailProps): react_jsx_runtime36.JSX.Element;
|
|
27
27
|
PreviewProps: MagicLinkEmailProps;
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MagicLinkEmail.d.ts","names":[],"sources":["../../../src/emails/MagicLinkEmail.tsx"],"sourcesContent":[],"mappings":";;;KAgBY,mBAAA;;;AAAZ,CAAA;AAKa,cAAA,gBAgEZ,EAAA;;;;KA7DE,sBAAmB,
|
|
1
|
+
{"version":3,"file":"MagicLinkEmail.d.ts","names":[],"sources":["../../../src/emails/MagicLinkEmail.tsx"],"sourcesContent":[],"mappings":";;;KAgBY,mBAAA;;;AAAZ,CAAA;AAKa,cAAA,gBAgEZ,EAAA;;;;KA7DE,sBAAmB,mBAAA,CAAA,GAAA,CAAA;;CAAnB;AAAmB,cA+DT,gBA/DS,EAAA;;;;KAkEnB,sBAAmB,mBAAA,CAAA,GAAA,CAAA;;AAHtB,CAAA;cAiEa;;;;KAGV,sBAAmB,mBAAA,CAAA,GAAA,CAAA;EAjEnB,YAAA,qBAAA;CAAmB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/emails/PasswordChangeConfirmation.d.ts
|
|
4
4
|
type PasswordChangeConfirmationEmailProps = {
|
|
@@ -7,19 +7,19 @@ type PasswordChangeConfirmationEmailProps = {
|
|
|
7
7
|
declare const PasswordChangeConfirmationEmailEN: {
|
|
8
8
|
({
|
|
9
9
|
username
|
|
10
|
-
}: PasswordChangeConfirmationEmailProps):
|
|
10
|
+
}: PasswordChangeConfirmationEmailProps): react_jsx_runtime5.JSX.Element;
|
|
11
11
|
PreviewProps: PasswordChangeConfirmationEmailProps;
|
|
12
12
|
};
|
|
13
13
|
declare const PasswordChangeConfirmationEmailFR: {
|
|
14
14
|
({
|
|
15
15
|
username
|
|
16
|
-
}: PasswordChangeConfirmationEmailProps):
|
|
16
|
+
}: PasswordChangeConfirmationEmailProps): react_jsx_runtime5.JSX.Element;
|
|
17
17
|
PreviewProps: PasswordChangeConfirmationEmailProps;
|
|
18
18
|
};
|
|
19
19
|
declare const PasswordChangeConfirmationEmailES: {
|
|
20
20
|
({
|
|
21
21
|
username
|
|
22
|
-
}: PasswordChangeConfirmationEmailProps):
|
|
22
|
+
}: PasswordChangeConfirmationEmailProps): react_jsx_runtime5.JSX.Element;
|
|
23
23
|
PreviewProps: PasswordChangeConfirmationEmailProps;
|
|
24
24
|
};
|
|
25
25
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordChangeConfirmation.d.ts","names":[],"sources":["../../../src/emails/PasswordChangeConfirmation.tsx"],"sourcesContent":[],"mappings":";;;KAcY,oCAAA;;;AAAA,cAIC,iCAJmC,EAAA;EAInC,CAAA;IAAA;EA8CZ,CA9CY,EAEV,oCA4CF,CAAA,EA5CsC,
|
|
1
|
+
{"version":3,"file":"PasswordChangeConfirmation.d.ts","names":[],"sources":["../../../src/emails/PasswordChangeConfirmation.tsx"],"sourcesContent":[],"mappings":";;;KAcY,oCAAA;;;AAAA,cAIC,iCAJmC,EAAA;EAInC,CAAA;IAAA;EA8CZ,CA9CY,EAEV,oCA4CF,CAAA,EA5CsC,kBAAA,CAAA,GAAA,CAAA,OA4CtC;;CA5CE;AAAoC,cA8C1B,iCA9C0B,EAAA;;;KAgDpC,uCAAoC,kBAAA,CAAA,GAAA,CAAA;;AAFvC,CAAA;cAiDa;EA/CV,CAAA;IAAA;EAAA,CAAA,EAiDA,oCAjDA,CAAA,EAiDoC,kBAAA,CAAA,GAAA,CAAA,OAjDpC;EAAoC,YAAA,sCAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/emails/ResetUserPassword.d.ts
|
|
4
4
|
type ResetPasswordEmailProps = {
|
|
@@ -9,21 +9,21 @@ declare const ResetPasswordEmailEN: {
|
|
|
9
9
|
({
|
|
10
10
|
username,
|
|
11
11
|
resetLink
|
|
12
|
-
}: ResetPasswordEmailProps):
|
|
12
|
+
}: ResetPasswordEmailProps): react_jsx_runtime2.JSX.Element;
|
|
13
13
|
PreviewProps: ResetPasswordEmailProps;
|
|
14
14
|
};
|
|
15
15
|
declare const ResetPasswordEmailFR: {
|
|
16
16
|
({
|
|
17
17
|
username,
|
|
18
18
|
resetLink
|
|
19
|
-
}: ResetPasswordEmailProps):
|
|
19
|
+
}: ResetPasswordEmailProps): react_jsx_runtime2.JSX.Element;
|
|
20
20
|
PreviewProps: ResetPasswordEmailProps;
|
|
21
21
|
};
|
|
22
22
|
declare const ResetPasswordEmailES: {
|
|
23
23
|
({
|
|
24
24
|
username,
|
|
25
25
|
resetLink
|
|
26
|
-
}: ResetPasswordEmailProps):
|
|
26
|
+
}: ResetPasswordEmailProps): react_jsx_runtime2.JSX.Element;
|
|
27
27
|
PreviewProps: ResetPasswordEmailProps;
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/emails/SubscriptionPaymentCancellation.d.ts
|
|
4
4
|
type SubscriptionPaymentCancellationProps = {
|
|
@@ -16,7 +16,7 @@ declare const SubscriptionPaymentCancellationEN: {
|
|
|
16
16
|
organizationName,
|
|
17
17
|
cancellationDate,
|
|
18
18
|
reactivateLink
|
|
19
|
-
}: SubscriptionPaymentCancellationProps):
|
|
19
|
+
}: SubscriptionPaymentCancellationProps): react_jsx_runtime8.JSX.Element;
|
|
20
20
|
PreviewProps: SubscriptionPaymentCancellationProps;
|
|
21
21
|
};
|
|
22
22
|
declare const SubscriptionPaymentCancellationFR: {
|
|
@@ -26,7 +26,7 @@ declare const SubscriptionPaymentCancellationFR: {
|
|
|
26
26
|
organizationName,
|
|
27
27
|
cancellationDate,
|
|
28
28
|
reactivateLink
|
|
29
|
-
}: SubscriptionPaymentCancellationProps):
|
|
29
|
+
}: SubscriptionPaymentCancellationProps): react_jsx_runtime8.JSX.Element;
|
|
30
30
|
PreviewProps: SubscriptionPaymentCancellationProps;
|
|
31
31
|
};
|
|
32
32
|
declare const SubscriptionPaymentCancellationES: {
|
|
@@ -36,7 +36,7 @@ declare const SubscriptionPaymentCancellationES: {
|
|
|
36
36
|
organizationName,
|
|
37
37
|
cancellationDate,
|
|
38
38
|
reactivateLink
|
|
39
|
-
}: SubscriptionPaymentCancellationProps):
|
|
39
|
+
}: SubscriptionPaymentCancellationProps): react_jsx_runtime8.JSX.Element;
|
|
40
40
|
PreviewProps: SubscriptionPaymentCancellationProps;
|
|
41
41
|
};
|
|
42
42
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/emails/SubscriptionPaymentError.d.ts
|
|
4
4
|
type SubscriptionPaymentErrorProps = {
|
|
@@ -16,7 +16,7 @@ declare const SubscriptionPaymentErrorEN: {
|
|
|
16
16
|
organizationName,
|
|
17
17
|
errorDate,
|
|
18
18
|
retryPaymentLink
|
|
19
|
-
}: SubscriptionPaymentErrorProps):
|
|
19
|
+
}: SubscriptionPaymentErrorProps): react_jsx_runtime11.JSX.Element;
|
|
20
20
|
PreviewProps: SubscriptionPaymentErrorProps;
|
|
21
21
|
};
|
|
22
22
|
declare const SubscriptionPaymentErrorFR: {
|
|
@@ -26,7 +26,7 @@ declare const SubscriptionPaymentErrorFR: {
|
|
|
26
26
|
organizationName,
|
|
27
27
|
errorDate,
|
|
28
28
|
retryPaymentLink
|
|
29
|
-
}: SubscriptionPaymentErrorProps):
|
|
29
|
+
}: SubscriptionPaymentErrorProps): react_jsx_runtime11.JSX.Element;
|
|
30
30
|
PreviewProps: SubscriptionPaymentErrorProps;
|
|
31
31
|
};
|
|
32
32
|
declare const SubscriptionPaymentErrorES: {
|
|
@@ -36,7 +36,7 @@ declare const SubscriptionPaymentErrorES: {
|
|
|
36
36
|
organizationName,
|
|
37
37
|
errorDate,
|
|
38
38
|
retryPaymentLink
|
|
39
|
-
}: SubscriptionPaymentErrorProps):
|
|
39
|
+
}: SubscriptionPaymentErrorProps): react_jsx_runtime11.JSX.Element;
|
|
40
40
|
PreviewProps: SubscriptionPaymentErrorProps;
|
|
41
41
|
};
|
|
42
42
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/emails/SubscriptionPaymentSuccess.d.ts
|
|
4
4
|
type SubscriptionPaymentSuccessProps = {
|
|
@@ -16,7 +16,7 @@ declare const SubscriptionPaymentSuccessEN: {
|
|
|
16
16
|
organizationName,
|
|
17
17
|
subscriptionStartDate,
|
|
18
18
|
manageSubscriptionLink
|
|
19
|
-
}: SubscriptionPaymentSuccessProps):
|
|
19
|
+
}: SubscriptionPaymentSuccessProps): react_jsx_runtime14.JSX.Element;
|
|
20
20
|
PreviewProps: SubscriptionPaymentSuccessProps;
|
|
21
21
|
};
|
|
22
22
|
declare const SubscriptionPaymentSuccessFR: {
|
|
@@ -26,7 +26,7 @@ declare const SubscriptionPaymentSuccessFR: {
|
|
|
26
26
|
organizationName,
|
|
27
27
|
subscriptionStartDate,
|
|
28
28
|
manageSubscriptionLink
|
|
29
|
-
}: SubscriptionPaymentSuccessProps):
|
|
29
|
+
}: SubscriptionPaymentSuccessProps): react_jsx_runtime14.JSX.Element;
|
|
30
30
|
PreviewProps: SubscriptionPaymentSuccessProps;
|
|
31
31
|
};
|
|
32
32
|
declare const SubscriptionPaymentSuccessES: {
|
|
@@ -36,7 +36,7 @@ declare const SubscriptionPaymentSuccessES: {
|
|
|
36
36
|
organizationName,
|
|
37
37
|
subscriptionStartDate,
|
|
38
38
|
manageSubscriptionLink
|
|
39
|
-
}: SubscriptionPaymentSuccessProps):
|
|
39
|
+
}: SubscriptionPaymentSuccessProps): react_jsx_runtime14.JSX.Element;
|
|
40
40
|
PreviewProps: SubscriptionPaymentSuccessProps;
|
|
41
41
|
};
|
|
42
42
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime33 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/emails/ValidateUserEmail.d.ts
|
|
4
4
|
type ValidateUserEmailProps = {
|
|
@@ -9,21 +9,21 @@ declare const ValidateUserEmailEN: {
|
|
|
9
9
|
({
|
|
10
10
|
username,
|
|
11
11
|
validationLink
|
|
12
|
-
}: ValidateUserEmailProps):
|
|
12
|
+
}: ValidateUserEmailProps): react_jsx_runtime33.JSX.Element;
|
|
13
13
|
PreviewProps: ValidateUserEmailProps;
|
|
14
14
|
};
|
|
15
15
|
declare const ValidateUserEmailFR: {
|
|
16
16
|
({
|
|
17
17
|
username,
|
|
18
18
|
validationLink
|
|
19
|
-
}: ValidateUserEmailProps):
|
|
19
|
+
}: ValidateUserEmailProps): react_jsx_runtime33.JSX.Element;
|
|
20
20
|
PreviewProps: ValidateUserEmailProps;
|
|
21
21
|
};
|
|
22
22
|
declare const ValidateUserEmailES: {
|
|
23
23
|
({
|
|
24
24
|
username,
|
|
25
25
|
validationLink
|
|
26
|
-
}: ValidateUserEmailProps):
|
|
26
|
+
}: ValidateUserEmailProps): react_jsx_runtime33.JSX.Element;
|
|
27
27
|
PreviewProps: ValidateUserEmailProps;
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 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):
|
|
12
|
+
}: WelcomeEmailProps): react_jsx_runtime17.JSX.Element;
|
|
13
13
|
PreviewProps: WelcomeEmailProps;
|
|
14
14
|
};
|
|
15
15
|
declare const WelcomeEmailFR: {
|
|
16
16
|
({
|
|
17
17
|
username,
|
|
18
18
|
loginLink
|
|
19
|
-
}: WelcomeEmailProps):
|
|
19
|
+
}: WelcomeEmailProps): react_jsx_runtime17.JSX.Element;
|
|
20
20
|
PreviewProps: WelcomeEmailProps;
|
|
21
21
|
};
|
|
22
22
|
declare const WelcomeEmailES: {
|
|
23
23
|
({
|
|
24
24
|
username,
|
|
25
25
|
loginLink
|
|
26
|
-
}: WelcomeEmailProps):
|
|
26
|
+
}: WelcomeEmailProps): react_jsx_runtime17.JSX.Element;
|
|
27
27
|
PreviewProps: WelcomeEmailProps;
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Dictionary, DictionaryData } from "../types/dictionary.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose107 from "mongoose";
|
|
3
3
|
import { Model } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/models/dictionary.model.d.ts
|
|
6
|
-
declare const DictionaryModel: Model<Dictionary, {}, {}, {},
|
|
7
|
-
id:
|
|
6
|
+
declare const DictionaryModel: Model<Dictionary, {}, {}, {}, mongoose107.Document<unknown, {}, Dictionary, {}, {}> & DictionaryData & {
|
|
7
|
+
id: mongoose107.Types.ObjectId;
|
|
8
8
|
createdAt: number;
|
|
9
9
|
updatedAt: number;
|
|
10
10
|
} & {
|
|
11
|
-
_id:
|
|
11
|
+
_id: mongoose107.Types.ObjectId;
|
|
12
12
|
} & {
|
|
13
13
|
__v: number;
|
|
14
14
|
}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.model.d.ts","names":[],"sources":["../../../src/models/dictionary.model.ts"],"sourcesContent":[],"mappings":";;;;;cAKa,iBAAe,MAAA,wBAAA,
|
|
1
|
+
{"version":3,"file":"dictionary.model.d.ts","names":[],"sources":["../../../src/models/dictionary.model.ts"],"sourcesContent":[],"mappings":";;;;;cAKa,iBAAe,MAAA,wBAAA,WAAA,CAAA,sBAAA,sBAAA,cAAA;;;EAAf,SAAA,EAAA,MAAA;CAAe,GAAA;EAAA,GAAA,4BAAA;CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Discussion } from "../types/discussion.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose103 from "mongoose";
|
|
3
3
|
import { Model } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/models/discussion.model.d.ts
|
|
6
|
-
declare const DiscussionModel: Model<Discussion, {}, {}, {},
|
|
6
|
+
declare const DiscussionModel: Model<Discussion, {}, {}, {}, mongoose103.Document<unknown, {}, Discussion, {}, {}> & Discussion & Required<{
|
|
7
7
|
_id: unknown;
|
|
8
8
|
}> & {
|
|
9
9
|
__v: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discussion.model.d.ts","names":[],"sources":["../../../src/models/discussion.model.ts"],"sourcesContent":[],"mappings":";;;;;cAKa,iBAAe,MAAA,wBAAA,
|
|
1
|
+
{"version":3,"file":"discussion.model.d.ts","names":[],"sources":["../../../src/models/discussion.model.ts"],"sourcesContent":[],"mappings":";;;;;cAKa,iBAAe,MAAA,wBAAA,WAAA,CAAA,sBAAA,sBAAA,aAAA;;;EAAf,GAAA,EAAA,MAAA;CAAe,EAAA,GAAA,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { User } from "../types/user.types.js";
|
|
2
2
|
import "../export.js";
|
|
3
3
|
import { Token as Token$1 } from "../schemas/oAuth2.schema.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as mongoose101 from "mongoose";
|
|
5
5
|
import { Model } from "mongoose";
|
|
6
6
|
import * as oauth2_server0 from "oauth2-server";
|
|
7
7
|
|
|
8
8
|
//#region src/models/oAuth2.model.d.ts
|
|
9
|
-
declare const OAuth2AccessTokenModel: Model<Token$1, {}, {}, {},
|
|
9
|
+
declare const OAuth2AccessTokenModel: Model<Token$1, {}, {}, {}, mongoose101.Document<unknown, {}, Token$1, {}, {}> & Omit<oauth2_server0.Token, "user" | "client"> & {
|
|
10
10
|
clientId: oauth2_server0.Client["id"];
|
|
11
11
|
userId: User["id"];
|
|
12
12
|
} & {
|
|
13
|
-
_id:
|
|
13
|
+
_id: mongoose101.Types.ObjectId;
|
|
14
14
|
} & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}, any>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Dictionary, DictionarySchema } from "../types/dictionary.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose0 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,
|
|
7
|
-
_id:
|
|
6
|
+
declare const dictionarySchema: Schema<DictionarySchema, mongoose0.Model<DictionarySchema, any, any, any, mongoose0.Document<unknown, any, DictionarySchema, any, {}> & Omit<Dictionary, "id"> & {
|
|
7
|
+
_id: mongoose0.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose0.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose0.DefaultSchemaOptions, DictionarySchema, mongoose0.Document<unknown, {}, mongoose0.FlatRecord<DictionarySchema>, {}, mongoose0.ResolveSchemaOptions<mongoose0.DefaultSchemaOptions>> & mongoose0.FlatRecord<DictionarySchema> & Required<{
|
|
13
|
+
_id: mongoose0.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,
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { User } from "../types/user.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose43 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,
|
|
11
|
+
declare const accessTokenSchema: Schema<Token, mongoose43.Model<Token, any, any, any, mongoose43.Document<unknown, any, Token, any, {}> & Omit<Token$1, "user" | "client"> & {
|
|
12
12
|
clientId: Client["id"];
|
|
13
13
|
userId: User["id"];
|
|
14
14
|
} & {
|
|
15
|
-
_id:
|
|
15
|
+
_id: mongoose43.Types.ObjectId;
|
|
16
16
|
} & {
|
|
17
17
|
__v: number;
|
|
18
|
-
}, any>, {}, {}, {}, {},
|
|
19
|
-
_id:
|
|
18
|
+
}, any>, {}, {}, {}, {}, mongoose43.DefaultSchemaOptions, Token, mongoose43.Document<unknown, {}, mongoose43.FlatRecord<Token>, {}, mongoose43.ResolveSchemaOptions<mongoose43.DefaultSchemaOptions>> & mongoose43.FlatRecord<Token> & {
|
|
19
|
+
_id: mongoose43.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
|
|
2
|
+
import * as mongoose10 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,
|
|
7
|
-
_id:
|
|
6
|
+
declare const organizationSchema: Schema<OrganizationSchema, mongoose10.Model<OrganizationSchema, any, any, any, mongoose10.Document<unknown, any, OrganizationSchema, any, {}> & Omit<Organization, "id"> & {
|
|
7
|
+
_id: mongoose10.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose10.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose10.DefaultSchemaOptions, OrganizationSchema, mongoose10.Document<unknown, {}, mongoose10.FlatRecord<OrganizationSchema>, {}, mongoose10.ResolveSchemaOptions<mongoose10.DefaultSchemaOptions>> & mongoose10.FlatRecord<OrganizationSchema> & Required<{
|
|
13
|
+
_id: mongoose10.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Plan, PlanSchema } from "../types/plan.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose75 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,
|
|
7
|
-
_id:
|
|
6
|
+
declare const planSchema: Schema<PlanSchema, mongoose75.Model<PlanSchema, any, any, any, mongoose75.Document<unknown, any, PlanSchema, any, {}> & Omit<Plan, "id"> & {
|
|
7
|
+
_id: mongoose75.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose75.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose75.DefaultSchemaOptions, PlanSchema, mongoose75.Document<unknown, {}, mongoose75.FlatRecord<PlanSchema>, {}, mongoose75.ResolveSchemaOptions<mongoose75.DefaultSchemaOptions>> & mongoose75.FlatRecord<PlanSchema> & Required<{
|
|
13
|
+
_id: mongoose75.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.schema.d.ts","names":[],"sources":["../../../src/schemas/plans.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAGa,YAAU,OAAA,
|
|
1
|
+
{"version":3,"file":"plans.schema.d.ts","names":[],"sources":["../../../src/schemas/plans.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAGa,YAAU,OAAA,uBAAA,MAAA,2BAAA,UAAA,CAAA,uBAAA,uBAAA,KAAA,IAAA;;;EAAV,GAAA,2BAsEZ;CAtEsB,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,YAAA,qBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,uBAAA,WAAA,CAAA,EAAA,CAAA,CAAA,iCAAA,iCAAA,CAAA,wBAAA,WAAA,CAAA,WAAA,CAAA;EAAA,GAAA,2BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Project, ProjectSchema } from "../types/project.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose32 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,
|
|
7
|
-
_id:
|
|
6
|
+
declare const projectSchema: Schema<ProjectSchema, mongoose32.Model<ProjectSchema, any, any, any, mongoose32.Document<unknown, any, ProjectSchema, any, {}> & Omit<Project, "id"> & {
|
|
7
|
+
_id: mongoose32.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose32.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose32.DefaultSchemaOptions, ProjectSchema, mongoose32.Document<unknown, {}, mongoose32.FlatRecord<ProjectSchema>, {}, mongoose32.ResolveSchemaOptions<mongoose32.DefaultSchemaOptions>> & mongoose32.FlatRecord<ProjectSchema> & Required<{
|
|
13
|
+
_id: mongoose32.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { SessionData, SessionSchema } from "../types/session.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose64 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,
|
|
7
|
-
_id:
|
|
6
|
+
declare const sessionSchema: Schema<SessionSchema, mongoose64.Model<SessionSchema, any, any, any, mongoose64.Document<unknown, any, SessionSchema, any, {}> & Omit<SessionData, "id"> & {
|
|
7
|
+
_id: mongoose64.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose64.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose64.DefaultSchemaOptions, SessionSchema, mongoose64.Document<unknown, {}, mongoose64.FlatRecord<SessionSchema>, {}, mongoose64.ResolveSchemaOptions<mongoose64.DefaultSchemaOptions>> & mongoose64.FlatRecord<SessionSchema> & Required<{
|
|
13
|
+
_id: mongoose64.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
|
|
2
|
+
import * as mongoose53 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, mongoose53.Model<TagSchema, any, any, any, mongoose53.Document<unknown, any, TagSchema, any, {}> & Omit<Tag, "id"> & {
|
|
7
|
+
_id: mongoose53.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose53.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose53.DefaultSchemaOptions, TagSchema, mongoose53.Document<unknown, {}, mongoose53.FlatRecord<TagSchema>, {}, mongoose53.ResolveSchemaOptions<mongoose53.DefaultSchemaOptions>> & mongoose53.FlatRecord<TagSchema> & Required<{
|
|
13
|
+
_id: mongoose53.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 mongoose86 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, mongoose86.Model<UserSchema, any, any, any, mongoose86.Document<unknown, any, UserSchema, any, {}> & Omit<User, "id"> & {
|
|
7
|
+
_id: mongoose86.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose86.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose86.DefaultSchemaOptions, UserSchema, mongoose86.Document<unknown, {}, mongoose86.FlatRecord<UserSchema>, {}, mongoose86.ResolveSchemaOptions<mongoose86.DefaultSchemaOptions>> & mongoose86.FlatRecord<UserSchema> & Required<{
|
|
13
|
+
_id: mongoose86.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -9,7 +9,7 @@ import { SubscriptionPaymentSuccessProps } from "../emails/SubscriptionPaymentSu
|
|
|
9
9
|
import { ValidateUserEmailProps } from "../emails/ValidateUserEmail.js";
|
|
10
10
|
import { WelcomeEmailProps } from "../emails/Welcome.js";
|
|
11
11
|
import { Locale } from "@intlayer/types";
|
|
12
|
-
import * as
|
|
12
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
13
13
|
import { ComponentProps } from "react";
|
|
14
14
|
|
|
15
15
|
//#region src/services/email.service.d.ts
|
|
@@ -24,7 +24,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
24
24
|
inviteLink,
|
|
25
25
|
inviteFromIp,
|
|
26
26
|
inviteFromLocation
|
|
27
|
-
}: InviteUserEmailProps):
|
|
27
|
+
}: InviteUserEmailProps): react_jsx_runtime23.JSX.Element;
|
|
28
28
|
PreviewProps: InviteUserEmailProps;
|
|
29
29
|
};
|
|
30
30
|
subject: string;
|
|
@@ -34,7 +34,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
34
34
|
({
|
|
35
35
|
username,
|
|
36
36
|
validationLink
|
|
37
|
-
}: ValidateUserEmailProps):
|
|
37
|
+
}: ValidateUserEmailProps): react_jsx_runtime23.JSX.Element;
|
|
38
38
|
PreviewProps: ValidateUserEmailProps;
|
|
39
39
|
};
|
|
40
40
|
subject: string;
|
|
@@ -44,7 +44,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
44
44
|
({
|
|
45
45
|
username,
|
|
46
46
|
resetLink
|
|
47
|
-
}: ResetPasswordEmailProps):
|
|
47
|
+
}: ResetPasswordEmailProps): react_jsx_runtime23.JSX.Element;
|
|
48
48
|
PreviewProps: ResetPasswordEmailProps;
|
|
49
49
|
};
|
|
50
50
|
subject: string;
|
|
@@ -54,7 +54,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
54
54
|
({
|
|
55
55
|
username,
|
|
56
56
|
loginLink
|
|
57
|
-
}: WelcomeEmailProps):
|
|
57
|
+
}: WelcomeEmailProps): react_jsx_runtime23.JSX.Element;
|
|
58
58
|
PreviewProps: WelcomeEmailProps;
|
|
59
59
|
};
|
|
60
60
|
subject: string;
|
|
@@ -64,7 +64,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
64
64
|
({
|
|
65
65
|
username,
|
|
66
66
|
magicLink
|
|
67
|
-
}: MagicLinkEmailProps):
|
|
67
|
+
}: MagicLinkEmailProps): react_jsx_runtime23.JSX.Element;
|
|
68
68
|
PreviewProps: MagicLinkEmailProps;
|
|
69
69
|
};
|
|
70
70
|
subject: string;
|
|
@@ -73,7 +73,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
73
73
|
template: {
|
|
74
74
|
({
|
|
75
75
|
username
|
|
76
|
-
}: PasswordChangeConfirmationEmailProps):
|
|
76
|
+
}: PasswordChangeConfirmationEmailProps): react_jsx_runtime23.JSX.Element;
|
|
77
77
|
PreviewProps: PasswordChangeConfirmationEmailProps;
|
|
78
78
|
};
|
|
79
79
|
subject: string;
|
|
@@ -86,7 +86,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
86
86
|
organizationName,
|
|
87
87
|
subscriptionStartDate,
|
|
88
88
|
manageSubscriptionLink
|
|
89
|
-
}: SubscriptionPaymentSuccessProps):
|
|
89
|
+
}: SubscriptionPaymentSuccessProps): react_jsx_runtime23.JSX.Element;
|
|
90
90
|
PreviewProps: SubscriptionPaymentSuccessProps;
|
|
91
91
|
};
|
|
92
92
|
subject: string;
|
|
@@ -99,7 +99,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
99
99
|
organizationName,
|
|
100
100
|
cancellationDate,
|
|
101
101
|
reactivateLink
|
|
102
|
-
}: SubscriptionPaymentCancellationProps):
|
|
102
|
+
}: SubscriptionPaymentCancellationProps): react_jsx_runtime23.JSX.Element;
|
|
103
103
|
PreviewProps: SubscriptionPaymentCancellationProps;
|
|
104
104
|
};
|
|
105
105
|
subject: string;
|
|
@@ -112,7 +112,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
112
112
|
organizationName,
|
|
113
113
|
errorDate,
|
|
114
114
|
retryPaymentLink
|
|
115
|
-
}: SubscriptionPaymentErrorProps):
|
|
115
|
+
}: SubscriptionPaymentErrorProps): react_jsx_runtime23.JSX.Element;
|
|
116
116
|
PreviewProps: SubscriptionPaymentErrorProps;
|
|
117
117
|
};
|
|
118
118
|
subject: string;
|
|
@@ -126,7 +126,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
126
126
|
tokenDetailsUrl,
|
|
127
127
|
securityLogUrl,
|
|
128
128
|
supportUrl
|
|
129
|
-
}: OAuthTokenCreatedEmailProps):
|
|
129
|
+
}: OAuthTokenCreatedEmailProps): react_jsx_runtime23.JSX.Element;
|
|
130
130
|
PreviewProps: OAuthTokenCreatedEmailProps;
|
|
131
131
|
};
|
|
132
132
|
subject: 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 mongoose106 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:
|
|
44
|
+
filters: mongoose106.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
|
|
4
|
+
import * as mongoose97 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:
|
|
33
|
+
filters: mongoose97.Types.ObjectId | mongoose97.Query<any, any, {}, unknown, "find", Record<string, never>> | mongoose97.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
|
|
4
|
+
import * as mongoose100 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:
|
|
40
|
+
filters: mongoose100.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
|
|
4
|
+
import * as mongoose105 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:
|
|
33
|
+
filters: mongoose105.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
|
|
4
|
+
import * as mongoose104 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:
|
|
31
|
+
filters: mongoose104.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.
|
|
3
|
+
"version": "7.3.15",
|
|
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": [
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@better-auth/core": "1.4.6",
|
|
78
78
|
"@better-auth/passkey": "1.4.6",
|
|
79
|
-
"@intlayer/ai": "7.3.
|
|
79
|
+
"@intlayer/ai": "7.3.15",
|
|
80
80
|
"@react-email/components": "1.0.1",
|
|
81
81
|
"better-auth": "1.4.6",
|
|
82
82
|
"compression": "1.8.1",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"cross-env": "10.1.0",
|
|
86
86
|
"dotenv": "16.6.1",
|
|
87
87
|
"express": "5.1.0",
|
|
88
|
-
"express-intlayer": "7.3.
|
|
88
|
+
"express-intlayer": "7.3.15",
|
|
89
89
|
"express-rate-limit": "8.2.1",
|
|
90
90
|
"helmet": "8.1.0",
|
|
91
91
|
"mongodb": "6.21.0",
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
"winston": "3.18.3"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
|
-
"@intlayer/config": "7.3.
|
|
104
|
-
"@intlayer/core": "7.3.
|
|
105
|
-
"@intlayer/docs": "7.3.
|
|
106
|
-
"@intlayer/types": "7.3.
|
|
103
|
+
"@intlayer/config": "7.3.15",
|
|
104
|
+
"@intlayer/core": "7.3.15",
|
|
105
|
+
"@intlayer/docs": "7.3.15",
|
|
106
|
+
"@intlayer/types": "7.3.15",
|
|
107
107
|
"@types/body-parser": "1.19.6",
|
|
108
108
|
"@types/compression": "1.8.1",
|
|
109
109
|
"@types/cookie-parser": "1.4.10",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"@utils/ts-config": "1.0.4",
|
|
119
119
|
"@utils/ts-config-types": "1.0.4",
|
|
120
120
|
"@utils/tsdown-config": "1.0.4",
|
|
121
|
-
"intlayer": "7.3.
|
|
121
|
+
"intlayer": "7.3.15",
|
|
122
122
|
"npm-run-all": "^4.1.5",
|
|
123
123
|
"rimraf": "6.1.2",
|
|
124
124
|
"tsdown": "0.16.8",
|