@intlayer/backend 7.2.3 → 7.3.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.
- package/README.md +2 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/blog/en/compiler_vs_declarative_i18n.json +5132 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/build.json +2054 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/configuration.json +2054 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/debug.json +2054 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/doc-review.json +2054 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/doc-translate.json +3080 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/editor.json +1028 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/fill.json +3080 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/index.json +4106 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/list.json +2054 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/live.json +2054 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/pull.json +2054 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/push.json +3080 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/sdk.json +2054 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/test.json +2054 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/transform.json +2054 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/version.json +1028 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/watch.json +1028 -0
- package/dist/esm/controllers/ai.controller.mjs +23 -23
- package/dist/esm/controllers/ai.controller.mjs.map +1 -1
- package/dist/esm/export.mjs +3 -2
- package/dist/esm/utils/AI/askDocQuestion/askDocQuestion.mjs +1 -1
- package/dist/esm/utils/AI/askDocQuestion/askDocQuestion.mjs.map +1 -1
- package/dist/esm/utils/AI/askDocQuestion/indexMarkdownFiles.mjs.map +1 -1
- package/dist/esm/utils/AI/auditDictionary/index.mjs +1 -1
- package/dist/esm/utils/AI/auditDictionary/index.mjs.map +1 -1
- package/dist/esm/utils/AI/auditDictionaryField/index.mjs +1 -1
- package/dist/esm/utils/AI/auditDictionaryField/index.mjs.map +1 -1
- package/dist/esm/utils/AI/auditDictionaryMetadata/index.mjs +5 -29
- package/dist/esm/utils/AI/auditDictionaryMetadata/index.mjs.map +1 -1
- package/dist/esm/utils/AI/auditTag/index.mjs +1 -1
- package/dist/esm/utils/AI/auditTag/index.mjs.map +1 -1
- package/dist/esm/utils/AI/autocomplete/index.mjs +1 -2
- package/dist/esm/utils/AI/autocomplete/index.mjs.map +1 -1
- package/dist/esm/utils/AI/customQuery/index.mjs +5 -11
- package/dist/esm/utils/AI/customQuery/index.mjs.map +1 -1
- package/dist/esm/utils/AI/translateJSON/index.mjs +6 -53
- package/dist/esm/utils/AI/translateJSON/index.mjs.map +1 -1
- package/dist/types/controllers/ai.controller.d.ts +1 -1
- package/dist/types/controllers/ai.controller.d.ts.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/InviteUserEmail.d.ts.map +1 -1
- package/dist/types/emails/MagicLinkEmail.d.ts +4 -4
- package/dist/types/emails/MagicLinkEmail.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/SubscriptionPaymentError.d.ts.map +1 -1
- package/dist/types/emails/ValidateUserEmail.d.ts +4 -4
- package/dist/types/emails/ValidateUserEmail.d.ts.map +1 -1
- package/dist/types/emails/Welcome.d.ts +4 -4
- package/dist/types/export.d.ts +2 -2
- 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/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/discussion.schema.d.ts +6 -6
- package/dist/types/schemas/oAuth2.schema.d.ts +5 -5
- package/dist/types/schemas/organization.schema.d.ts +6 -6
- package/dist/types/schemas/plans.schema.d.ts +6 -6
- package/dist/types/schemas/project.schema.d.ts +6 -6
- package/dist/types/schemas/project.schema.d.ts.map +1 -1
- 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/AI/askDocQuestion/askDocQuestion.d.ts +1 -1
- package/dist/types/utils/AI/askDocQuestion/indexMarkdownFiles.d.ts.map +1 -1
- package/dist/types/utils/AI/auditDictionary/index.d.ts +1 -1
- package/dist/types/utils/AI/auditDictionaryField/index.d.ts +1 -1
- package/dist/types/utils/AI/auditDictionaryMetadata/index.d.ts +3 -16
- package/dist/types/utils/AI/auditDictionaryMetadata/index.d.ts.map +1 -1
- package/dist/types/utils/AI/auditTag/index.d.ts +1 -1
- package/dist/types/utils/AI/autocomplete/index.d.ts +1 -1
- package/dist/types/utils/AI/autocomplete/index.d.ts.map +1 -1
- package/dist/types/utils/AI/customQuery/index.d.ts +3 -10
- package/dist/types/utils/AI/customQuery/index.d.ts.map +1 -1
- package/dist/types/utils/AI/translateJSON/index.d.ts +3 -17
- package/dist/types/utils/AI/translateJSON/index.d.ts.map +1 -1
- 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 +11 -16
- package/dist/assets/utils/AI/auditDictionaryMetadata/PROMPT.md +0 -73
- package/dist/assets/utils/AI/translateJSON/PROMPT.md +0 -45
- package/dist/esm/utils/AI/aiSdk.mjs +0 -98
- package/dist/esm/utils/AI/aiSdk.mjs.map +0 -1
- package/dist/types/utils/AI/aiSdk.d.ts +0 -62
- package/dist/types/utils/AI/aiSdk.d.ts.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Dictionary, DictionarySchema } from "../types/dictionary.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose2 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, mongoose2.Model<DictionarySchema, any, any, any, mongoose2.Document<unknown, any, DictionarySchema, any, {}> & Omit<Dictionary, "id"> & {
|
|
7
|
+
_id: mongoose2.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose2.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose2.DefaultSchemaOptions, DictionarySchema, mongoose2.Document<unknown, {}, mongoose2.FlatRecord<DictionarySchema>, {}, mongoose2.ResolveSchemaOptions<mongoose2.DefaultSchemaOptions>> & mongoose2.FlatRecord<DictionarySchema> & Required<{
|
|
13
|
+
_id: mongoose2.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,16 +1,16 @@
|
|
|
1
1
|
import { Discussion, DiscussionSchema } from "../types/discussion.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose93 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,
|
|
7
|
-
_id:
|
|
6
|
+
declare const discussionSchema: Schema<DiscussionSchema, mongoose93.Model<DiscussionSchema, any, any, any, mongoose93.Document<unknown, any, DiscussionSchema, any, {}> & Omit<Discussion, "id"> & {
|
|
7
|
+
_id: mongoose93.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose93.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose93.DefaultSchemaOptions, DiscussionSchema, mongoose93.Document<unknown, {}, mongoose93.FlatRecord<DiscussionSchema>, {}, mongoose93.ResolveSchemaOptions<mongoose93.DefaultSchemaOptions>> & mongoose93.FlatRecord<DiscussionSchema> & Required<{
|
|
13
|
+
_id: mongoose93.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
|
|
2
|
+
import * as mongoose13 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, mongoose13.Model<Token, any, any, any, mongoose13.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: mongoose13.Types.ObjectId;
|
|
16
16
|
} & {
|
|
17
17
|
__v: number;
|
|
18
|
-
}, any>, {}, {}, {}, {},
|
|
19
|
-
_id:
|
|
18
|
+
}, any>, {}, {}, {}, {}, mongoose13.DefaultSchemaOptions, Token, mongoose13.Document<unknown, {}, mongoose13.FlatRecord<Token>, {}, mongoose13.ResolveSchemaOptions<mongoose13.DefaultSchemaOptions>> & mongoose13.FlatRecord<Token> & {
|
|
19
|
+
_id: mongoose13.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 mongoose82 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, mongoose82.Model<OrganizationSchema, any, any, any, mongoose82.Document<unknown, any, OrganizationSchema, any, {}> & Omit<Organization, "id"> & {
|
|
7
|
+
_id: mongoose82.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose82.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose82.DefaultSchemaOptions, OrganizationSchema, mongoose82.Document<unknown, {}, mongoose82.FlatRecord<OrganizationSchema>, {}, mongoose82.ResolveSchemaOptions<mongoose82.DefaultSchemaOptions>> & mongoose82.FlatRecord<OrganizationSchema> & Required<{
|
|
13
|
+
_id: mongoose82.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 mongoose23 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, mongoose23.Model<PlanSchema, any, any, any, mongoose23.Document<unknown, any, PlanSchema, any, {}> & Omit<Plan, "id"> & {
|
|
7
|
+
_id: mongoose23.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose23.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose23.DefaultSchemaOptions, PlanSchema, mongoose23.Document<unknown, {}, mongoose23.FlatRecord<PlanSchema>, {}, mongoose23.ResolveSchemaOptions<mongoose23.DefaultSchemaOptions>> & mongoose23.FlatRecord<PlanSchema> & Required<{
|
|
13
|
+
_id: mongoose23.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
|
|
2
|
+
import * as mongoose34 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, mongoose34.Model<ProjectSchema, any, any, any, mongoose34.Document<unknown, any, ProjectSchema, any, {}> & Omit<Project, "id"> & {
|
|
7
|
+
_id: mongoose34.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose34.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose34.DefaultSchemaOptions, ProjectSchema, mongoose34.Document<unknown, {}, mongoose34.FlatRecord<ProjectSchema>, {}, mongoose34.ResolveSchemaOptions<mongoose34.DefaultSchemaOptions>> & mongoose34.FlatRecord<ProjectSchema> & Required<{
|
|
13
|
+
_id: mongoose34.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,
|
|
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
|
|
2
|
+
import * as mongoose67 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, mongoose67.Model<SessionSchema, any, any, any, mongoose67.Document<unknown, any, SessionSchema, any, {}> & Omit<SessionData, "id"> & {
|
|
7
|
+
_id: mongoose67.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose67.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose67.DefaultSchemaOptions, SessionSchema, mongoose67.Document<unknown, {}, mongoose67.FlatRecord<SessionSchema>, {}, mongoose67.ResolveSchemaOptions<mongoose67.DefaultSchemaOptions>> & mongoose67.FlatRecord<SessionSchema> & Required<{
|
|
13
|
+
_id: mongoose67.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 mongoose45 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, mongoose45.Model<TagSchema, any, any, any, mongoose45.Document<unknown, any, TagSchema, any, {}> & Omit<Tag, "id"> & {
|
|
7
|
+
_id: mongoose45.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose45.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose45.DefaultSchemaOptions, TagSchema, mongoose45.Document<unknown, {}, mongoose45.FlatRecord<TagSchema>, {}, mongoose45.ResolveSchemaOptions<mongoose45.DefaultSchemaOptions>> & mongoose45.FlatRecord<TagSchema> & Required<{
|
|
13
|
+
_id: mongoose45.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 mongoose56 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, mongoose56.Model<UserSchema, any, any, any, mongoose56.Document<unknown, any, UserSchema, any, {}> & Omit<User, "id"> & {
|
|
7
|
+
_id: mongoose56.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose56.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose56.DefaultSchemaOptions, UserSchema, mongoose56.Document<unknown, {}, mongoose56.FlatRecord<UserSchema>, {}, mongoose56.ResolveSchemaOptions<mongoose56.DefaultSchemaOptions>> & mongoose56.FlatRecord<UserSchema> & Required<{
|
|
13
|
+
_id: mongoose56.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexMarkdownFiles.d.ts","names":[],"sources":["../../../../../src/utils/AI/askDocQuestion/indexMarkdownFiles.ts"],"sourcesContent":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"indexMarkdownFiles.d.ts","names":[],"sources":["../../../../../src/utils/AI/askDocQuestion/indexMarkdownFiles.ts"],"sourcesContent":[],"mappings":";;AAqIA;;;;cAAa,0BAA+B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tag } from "../../../types/tag.types.js";
|
|
2
|
-
import { AIConfig, AIOptions } from "
|
|
2
|
+
import { AIConfig, AIOptions, AuditFileResultData } from "@intlayer/ai";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/AI/auditDictionaryMetadata/index.d.ts
|
|
5
5
|
type AuditOptions = {
|
|
@@ -8,26 +8,13 @@ type AuditOptions = {
|
|
|
8
8
|
aiConfig: AIConfig;
|
|
9
9
|
applicationContext?: string;
|
|
10
10
|
};
|
|
11
|
-
type AuditFileResultData = {
|
|
12
|
-
fileContent: {
|
|
13
|
-
title: string;
|
|
14
|
-
description: string;
|
|
15
|
-
tags: string[];
|
|
16
|
-
};
|
|
17
|
-
tokenUsed: number;
|
|
18
|
-
};
|
|
19
11
|
declare const aiDefaultOptions: AIOptions;
|
|
20
12
|
/**
|
|
21
13
|
* Audits a content declaration file by constructing a prompt for AI models.
|
|
22
14
|
* The prompt includes details about the project's locales, file paths of content declarations,
|
|
23
15
|
* and requests for identifying issues or inconsistencies.
|
|
24
16
|
*/
|
|
25
|
-
declare const auditDictionaryMetadata: (
|
|
26
|
-
tags,
|
|
27
|
-
fileContent,
|
|
28
|
-
applicationContext,
|
|
29
|
-
aiConfig
|
|
30
|
-
}: AuditOptions) => Promise<AuditFileResultData | undefined>;
|
|
17
|
+
declare const auditDictionaryMetadata: (options: AuditOptions) => Promise<AuditFileResultData | undefined>;
|
|
31
18
|
//#endregion
|
|
32
|
-
export { AuditFileResultData, AuditOptions, aiDefaultOptions, auditDictionaryMetadata };
|
|
19
|
+
export { type AuditFileResultData, AuditOptions, aiDefaultOptions, auditDictionaryMetadata };
|
|
33
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/utils/AI/auditDictionaryMetadata/index.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/utils/AI/auditDictionaryMetadata/index.ts"],"sourcesContent":[],"mappings":";;;;KASY,YAAA;;EAAA,IAAA,EAEJ,GAFI,EAAA;EASC,QAAA,EAND,QAMC;EASA,kBAAA,CAAA,EAAA,MAUZ;CATU;AACR,cAXU,gBAWV,EAX4B,SAW5B;;;;;;cAFU,mCACF,iBACR,QAAQ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dictionary } from "../../../types/dictionary.types.js";
|
|
2
2
|
import { TagAPI } from "../../../types/tag.types.js";
|
|
3
|
-
import { AIConfig, AIOptions } from "
|
|
3
|
+
import { AIConfig, AIOptions } from "@intlayer/ai";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/AI/auditTag/index.d.ts
|
|
6
6
|
type AuditOptions = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/utils/AI/autocomplete/index.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/utils/AI/autocomplete/index.ts"],"sourcesContent":[],"mappings":";;;KASY,mBAAA;;EAAA,QAAA,EAEA,QAFA;EASA,kBAAA,CAAA,EAAA,MAAA;EAQC,aAAA,CAAA,EAAA,MAIZ;EAOY,WAAA,CAAA,EAAA,MAgCZ;EAhCkC,YAAA,CAAA,EAAA,MAAA;CAAA;AAAA,KAnBvB,0BAAA,GAmBuB;EAAA,cAAA,EAAA,MAAA;EAAA,SAAA,EAAA,MAAA;CAAA;AAOhC,cAlBU,gBAkBV,EAlB4B,SAkB5B;;;;;;cAPU;;;;;;;GAOV,wBAAsB,QAAQ"}
|
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import { AIConfig, AIOptions, Messages } from "
|
|
1
|
+
import { AIConfig, AIOptions, CustomQueryResultData, Messages } from "@intlayer/ai";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/AI/customQuery/index.d.ts
|
|
4
4
|
type CustomQueryOptions = {
|
|
5
5
|
messages: Messages;
|
|
6
6
|
aiConfig: AIConfig;
|
|
7
7
|
};
|
|
8
|
-
type CustomQueryResultData = {
|
|
9
|
-
fileContent: string;
|
|
10
|
-
tokenUsed: number;
|
|
11
|
-
};
|
|
12
8
|
declare const aiDefaultOptions: AIOptions;
|
|
13
9
|
/**
|
|
14
10
|
* CustomQuerys a content declaration file by constructing a prompt for AI models.
|
|
15
11
|
* The prompt includes details about the project's locales, file paths of content declarations,
|
|
16
12
|
* and requests for identifying issues or inconsistencies.
|
|
17
13
|
*/
|
|
18
|
-
declare const customQuery: (
|
|
19
|
-
messages,
|
|
20
|
-
aiConfig
|
|
21
|
-
}: CustomQueryOptions) => Promise<CustomQueryResultData | undefined>;
|
|
14
|
+
declare const customQuery: (options: CustomQueryOptions) => Promise<CustomQueryResultData | undefined>;
|
|
22
15
|
//#endregion
|
|
23
|
-
export { CustomQueryOptions, CustomQueryResultData, aiDefaultOptions, customQuery };
|
|
16
|
+
export { CustomQueryOptions, type CustomQueryResultData, aiDefaultOptions, customQuery };
|
|
24
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/utils/AI/customQuery/index.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/utils/AI/customQuery/index.ts"],"sourcesContent":[],"mappings":";;;KASY,kBAAA;YACA;EADA,QAAA,EAEA,QAFA;AAOZ,CAAA;AAWW,cAXE,gBAWF,EAXoB,SAWpB;;;;;;cADE,uBACF,uBACR,QAAQ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tag } from "../../../types/tag.types.js";
|
|
2
|
-
import { AIConfig, AIOptions } from "
|
|
2
|
+
import { AIConfig, AIOptions, AIProvider, TranslateJSONResultData } from "@intlayer/ai";
|
|
3
3
|
import { Locale } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/AI/translateJSON/index.d.ts
|
|
@@ -14,27 +14,13 @@ type TranslateJSONOptions = {
|
|
|
14
14
|
mode: 'complete' | 'review';
|
|
15
15
|
applicationContext?: string;
|
|
16
16
|
};
|
|
17
|
-
type TranslateJSONResultData = {
|
|
18
|
-
fileContent: string;
|
|
19
|
-
tokenUsed: number;
|
|
20
|
-
};
|
|
21
17
|
declare const aiDefaultOptions: AIOptions;
|
|
22
18
|
/**
|
|
23
19
|
* TranslateJSONs a content declaration file by constructing a prompt for AI models.
|
|
24
20
|
* The prompt includes details about the project's locales, file paths of content declarations,
|
|
25
21
|
* and requests for identifying issues or inconsistencies.
|
|
26
22
|
*/
|
|
27
|
-
declare const translateJSON: (
|
|
28
|
-
entryFileContent,
|
|
29
|
-
presetOutputContent,
|
|
30
|
-
dictionaryDescription,
|
|
31
|
-
aiConfig,
|
|
32
|
-
entryLocale,
|
|
33
|
-
outputLocale,
|
|
34
|
-
tags,
|
|
35
|
-
mode,
|
|
36
|
-
applicationContext
|
|
37
|
-
}: TranslateJSONOptions) => Promise<TranslateJSONResultData | undefined>;
|
|
23
|
+
declare const translateJSON: (options: TranslateJSONOptions) => Promise<TranslateJSONResultData | undefined>;
|
|
38
24
|
//#endregion
|
|
39
|
-
export { TranslateJSONOptions, TranslateJSONResultData, aiDefaultOptions, translateJSON };
|
|
25
|
+
export { AIProvider, TranslateJSONOptions, type TranslateJSONResultData, aiDefaultOptions, translateJSON };
|
|
40
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/utils/AI/translateJSON/index.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/utils/AI/translateJSON/index.ts"],"sourcesContent":[],"mappings":";;;;;KAWY,oBAAA;oBACQ;EADR,mBAAA,EAEW,IAFS;EACZ,qBAAA,CAAA,EAAA,MAAA;EACG,WAAA,EAER,MAFQ;EAER,YAAA,EACC,MADD;EACC,IAAA,EACR,GADQ,EAAA;EACR,QAAA,EACI,QADJ;EACI,IAAA,EAAA,UAAA,GAAA,QAAA;EAAQ,kBAAA,CAAA,EAAA,MAAA;AAOpB,CAAA;AAWW,cAXE,gBAWF,EAXoB,SAWpB;;;;;;cADE,yBACF,yBACR,QAAQ"}
|
|
@@ -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 mongoose78 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: mongoose78.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 mongoose107 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: mongoose107.Types.ObjectId | mongoose107.Query<any, any, {}, unknown, "find", Record<string, never>> | mongoose107.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 mongoose79 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: mongoose79.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 mongoose81 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: mongoose81.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 mongoose80 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: mongoose80.FilterQuery<Tag>;
|
|
32
32
|
sortOptions: Record<string, 1 | -1>;
|
|
33
33
|
};
|
|
34
34
|
//#endregion
|