@intlayer/backend 8.10.0-canary.1 → 8.10.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/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/dictionary/markdown.json +10954 -1
- package/dist/esm/controllers/organization.controller.mjs +16 -4
- package/dist/esm/controllers/organization.controller.mjs.map +1 -1
- package/dist/esm/controllers/project.controller.mjs +10 -3
- package/dist/esm/controllers/project.controller.mjs.map +1 -1
- package/dist/esm/schemas/user.schema.mjs +8 -0
- package/dist/esm/schemas/user.schema.mjs.map +1 -1
- package/dist/esm/types/user.types.mjs.map +1 -1
- package/dist/esm/utils/AI/askDocQuestion/embeddings/docs/en/dictionary/markdown.json +10954 -1
- package/dist/esm/utils/auth/getAuth.mjs +34 -8
- package/dist/esm/utils/auth/getAuth.mjs.map +1 -1
- package/dist/types/controllers/organization.controller.d.ts.map +1 -1
- package/dist/types/controllers/project.controller.d.ts.map +1 -1
- package/dist/types/schemas/dictionary.schema.d.ts +6 -6
- package/dist/types/schemas/discussion.schema.d.ts +7 -7
- package/dist/types/schemas/organization.schema.d.ts +2 -2
- package/dist/types/schemas/plans.schema.d.ts +9 -9
- package/dist/types/schemas/project.schema.d.ts +8 -8
- package/dist/types/schemas/showcaseProject.schema.d.ts +6 -6
- package/dist/types/schemas/tag.schema.d.ts +6 -6
- package/dist/types/schemas/user.schema.d.ts +27 -5
- package/dist/types/types/user.types.d.ts +2 -0
- package/dist/types/types/user.types.d.ts.map +1 -1
- package/dist/types/utils/auth/getAuth.d.ts.map +1 -1
- package/dist/types/utils/errors/ErrorHandler.d.ts +10 -6
- package/dist/types/utils/errors/ErrorHandler.d.ts.map +1 -1
- package/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +4 -4
- package/package.json +10 -10
|
@@ -35,7 +35,7 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
35
35
|
}, "id"> & {
|
|
36
36
|
id: string;
|
|
37
37
|
}>;
|
|
38
|
-
|
|
38
|
+
email?: import("mongoose").SchemaDefinitionProperty<string, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
39
39
|
id: string;
|
|
40
40
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
41
41
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -46,7 +46,7 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
46
46
|
}, "id"> & {
|
|
47
47
|
id: string;
|
|
48
48
|
}>;
|
|
49
|
-
|
|
49
|
+
emailVerified?: import("mongoose").SchemaDefinitionProperty<boolean, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
50
50
|
id: string;
|
|
51
51
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
52
52
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -57,7 +57,7 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
57
57
|
}, "id"> & {
|
|
58
58
|
id: string;
|
|
59
59
|
}>;
|
|
60
|
-
|
|
60
|
+
name?: import("mongoose").SchemaDefinitionProperty<string, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
61
61
|
id: string;
|
|
62
62
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
63
63
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -101,7 +101,7 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
101
101
|
}, "id"> & {
|
|
102
102
|
id: string;
|
|
103
103
|
}>;
|
|
104
|
-
|
|
104
|
+
role?: import("mongoose").SchemaDefinitionProperty<string, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
105
105
|
id: string;
|
|
106
106
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
107
107
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -125,7 +125,7 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
125
125
|
}, "id"> & {
|
|
126
126
|
id: string;
|
|
127
127
|
}>;
|
|
128
|
-
|
|
128
|
+
customerId?: import("mongoose").SchemaDefinitionProperty<string, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
129
129
|
id: string;
|
|
130
130
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
131
131
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -158,6 +158,28 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
158
158
|
}, "id"> & {
|
|
159
159
|
id: string;
|
|
160
160
|
}>;
|
|
161
|
+
lastActiveOrganizationId?: import("mongoose").SchemaDefinitionProperty<string, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
162
|
+
id: string;
|
|
163
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
164
|
+
_id: import("mongoose").Types.ObjectId;
|
|
165
|
+
} & Required<{
|
|
166
|
+
_id: import("mongoose").Types.ObjectId;
|
|
167
|
+
}> & {
|
|
168
|
+
__v: number;
|
|
169
|
+
}, "id"> & {
|
|
170
|
+
id: string;
|
|
171
|
+
}>;
|
|
172
|
+
lastActiveProjectId?: import("mongoose").SchemaDefinitionProperty<string, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
173
|
+
id: string;
|
|
174
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
175
|
+
_id: import("mongoose").Types.ObjectId;
|
|
176
|
+
} & Required<{
|
|
177
|
+
_id: import("mongoose").Types.ObjectId;
|
|
178
|
+
}> & {
|
|
179
|
+
__v: number;
|
|
180
|
+
}, "id"> & {
|
|
181
|
+
id: string;
|
|
182
|
+
}>;
|
|
161
183
|
_id?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Types.ObjectId, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
162
184
|
id: string;
|
|
163
185
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
@@ -20,6 +20,8 @@ type User = OmitId$1<UserData & User$1> & {
|
|
|
20
20
|
role?: string;
|
|
21
21
|
lastLoginMethod?: 'email' | 'google' | 'github' | 'passkey';
|
|
22
22
|
lang?: string;
|
|
23
|
+
lastActiveOrganizationId?: string | null;
|
|
24
|
+
lastActiveProjectId?: string | null;
|
|
23
25
|
createdAt: Date;
|
|
24
26
|
updatedAt: Date;
|
|
25
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.types.d.ts","names":[],"sources":["../../../src/types/user.types.ts"],"mappings":";;;;;UAIiB,QAAA;EACf,KAAA;EACA,IAAA;EACA,KAAA;EACA,WAAA,GAAc,IAAI;EAClB,KAAA;AAAA;AAAA,aAGU,UAAA;EACV,WAAW;AAAA;AAAA,KAGD,IAAA,GAAO,QAAA,CAAO,QAAA,GAAW,MAAA;EACnC,EAAA,EAAI,KAAA,CAAM,QAAA;EACV,UAAA,aACU,UAAA;EAEV,UAAA;EACA,IAAA;EACA,eAAA;EACA,IAAA;EACA,SAAA,EAAW,IAAA;EACX,SAAA,EAAW,IAAA;AAAA;AAAA,KAGD,OAAA,GAAU,gBAAA,CAAiB,IAAA,CAAK,IAAA;AAAA,KAEhC,UAAA,GAAa,QAAQ,CAAC,IAAA;AAAA,KACtB,aAAA,GAAgB,KAAK,CAAC,IAAA;AAAA,KACtB,YAAA,GAAe,QAAA,cAAsB,IAAA,IAAQ,IAAA"}
|
|
1
|
+
{"version":3,"file":"user.types.d.ts","names":[],"sources":["../../../src/types/user.types.ts"],"mappings":";;;;;UAIiB,QAAA;EACf,KAAA;EACA,IAAA;EACA,KAAA;EACA,WAAA,GAAc,IAAI;EAClB,KAAA;AAAA;AAAA,aAGU,UAAA;EACV,WAAW;AAAA;AAAA,KAGD,IAAA,GAAO,QAAA,CAAO,QAAA,GAAW,MAAA;EACnC,EAAA,EAAI,KAAA,CAAM,QAAA;EACV,UAAA,aACU,UAAA;EAEV,UAAA;EACA,IAAA;EACA,eAAA;EACA,IAAA;EACA,wBAAA;EACA,mBAAA;EACA,SAAA,EAAW,IAAA;EACX,SAAA,EAAW,IAAA;AAAA;AAAA,KAGD,OAAA,GAAU,gBAAA,CAAiB,IAAA,CAAK,IAAA;AAAA,KAEhC,UAAA,GAAa,QAAQ,CAAC,IAAA;AAAA,KACtB,aAAA,GAAgB,KAAK,CAAC,IAAA;AAAA,KACtB,YAAA,GAAe,QAAA,cAAsB,IAAA,IAAQ,IAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAuth.d.ts","names":[],"sources":["../../../../src/utils/auth/getAuth.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"getAuth.d.ts","names":[],"sources":["../../../../src/utils/auth/getAuth.ts"],"mappings":";;;;;;KAkCY,IAAA,GAAO,UAAU,QAAQ,UAAA;AAAA,cAKxB,aAAA,GAAiB,OAAA,EAAS,cAAA,KAAiB,QAAA,CAAO,SAAA;AAAA,cAsBlD,OAAA,GAAW,QAAA,EAAU,WAAA,KAAc,IAwY/C"}
|
|
@@ -44,19 +44,21 @@ declare const formatGenericErrorResponse: (errorKey: ErrorCodes, errorDetails?:
|
|
|
44
44
|
id: string;
|
|
45
45
|
createdAt: Date;
|
|
46
46
|
updatedAt: Date;
|
|
47
|
-
name: string;
|
|
48
47
|
email: string;
|
|
49
48
|
emailVerified: boolean;
|
|
49
|
+
name: string;
|
|
50
50
|
image?: string;
|
|
51
51
|
phone?: string;
|
|
52
52
|
dateOfBirth?: Date;
|
|
53
|
-
|
|
53
|
+
role?: string;
|
|
54
54
|
emailsList?: {
|
|
55
55
|
newsLetter: boolean;
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
customerId?: string;
|
|
58
58
|
lastLoginMethod?: "email" | "google" | "github" | "passkey";
|
|
59
59
|
lang?: string;
|
|
60
|
+
lastActiveOrganizationId?: string | null;
|
|
61
|
+
lastActiveProjectId?: string | null;
|
|
60
62
|
}>;
|
|
61
63
|
declare const ErrorHandler: {
|
|
62
64
|
handleGenericErrorResponse: (reply: FastifyReply, errorKey: ErrorCodes, errorDetails?: object, statusCode?: HttpStatusCodes) => void;
|
|
@@ -66,19 +68,21 @@ declare const ErrorHandler: {
|
|
|
66
68
|
id: string;
|
|
67
69
|
createdAt: Date;
|
|
68
70
|
updatedAt: Date;
|
|
69
|
-
name: string;
|
|
70
71
|
email: string;
|
|
71
72
|
emailVerified: boolean;
|
|
73
|
+
name: string;
|
|
72
74
|
image?: string;
|
|
73
75
|
phone?: string;
|
|
74
76
|
dateOfBirth?: Date;
|
|
75
|
-
|
|
77
|
+
role?: string;
|
|
76
78
|
emailsList?: {
|
|
77
79
|
newsLetter: boolean;
|
|
78
80
|
};
|
|
79
|
-
|
|
81
|
+
customerId?: string;
|
|
80
82
|
lastLoginMethod?: "email" | "google" | "github" | "passkey";
|
|
81
83
|
lang?: string;
|
|
84
|
+
lastActiveOrganizationId?: string | null;
|
|
85
|
+
lastActiveProjectId?: string | null;
|
|
82
86
|
}>;
|
|
83
87
|
};
|
|
84
88
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorHandler.d.ts","names":[],"sources":["../../../../src/utils/errors/ErrorHandler.ts"],"mappings":";;;;;;;;;;;AAoBA;;;;cAAa,0BAAA,GACX,KAAA,EAAO,YAAA,EACP,QAAA,EAAU,UAAA,EACV,YAAA,WACA,UAAA,GAAa,eAAA;;;;;;;;cAuBF,sBAAA,GACX,KAAA,EAAO,YAAA,EACP,KAAA,EAAO,QAAQ,EACf,cAAA;;;;AA1B4B;AAuB9B;;;;;;cAoDa,yBAAA,GACX,KAAA,EAAO,YAAA,EACP,QAAA,EAAU,UAAA,WACV,KAAA,EAAO,mBAAA,mBACP,OAAA,EAAS,mBAAA,mBACT,cAAA,WACA,UAA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,eAAA,8BAAA,aAAA,oBAAA,0BAAA;yCAgClB,UAAA,EAAU,YAAA,WACC,UAAA,GACR,eAAA"}
|
|
@@ -32,13 +32,13 @@ declare const getTagFiltersAndPagination: (req: FastifyRequest<{
|
|
|
32
32
|
id: import("mongoose").Types.ObjectId;
|
|
33
33
|
createdAt: number;
|
|
34
34
|
updatedAt: number;
|
|
35
|
-
description: string;
|
|
36
35
|
name: string;
|
|
37
|
-
|
|
38
|
-
instructions: string;
|
|
39
|
-
creatorId: import("mongoose").Types.ObjectId;
|
|
36
|
+
description: string;
|
|
40
37
|
projectId: import("mongoose").Types.ObjectId;
|
|
41
38
|
organizationId: import("mongoose").Types.ObjectId;
|
|
39
|
+
creatorId: import("mongoose").Types.ObjectId;
|
|
40
|
+
key: string;
|
|
41
|
+
instructions: string;
|
|
42
42
|
}>;
|
|
43
43
|
sortOptions: Record<string, 1 | -1>;
|
|
44
44
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/backend",
|
|
3
|
-
"version": "8.10.0
|
|
3
|
+
"version": "8.10.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Intlayer Backend is a an application that allow you to manage your Intlayer content and interact with the intlayer editor.",
|
|
6
6
|
"keywords": [
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"@fastify/formbody": "8.0.2",
|
|
83
83
|
"@fastify/helmet": "13.0.2",
|
|
84
84
|
"@fastify/rate-limit": "10.3.0",
|
|
85
|
-
"@intlayer/ai": "8.10.0
|
|
86
|
-
"@intlayer/chokidar": "8.10.0
|
|
87
|
-
"@intlayer/core": "8.10.0
|
|
88
|
-
"@intlayer/mcp": "8.10.0
|
|
85
|
+
"@intlayer/ai": "8.10.0",
|
|
86
|
+
"@intlayer/chokidar": "8.10.0",
|
|
87
|
+
"@intlayer/core": "8.10.0",
|
|
88
|
+
"@intlayer/mcp": "8.10.0",
|
|
89
89
|
"@node-oauth/oauth2-server": "^5.3.0",
|
|
90
90
|
"@octokit/rest": "22.0.1",
|
|
91
91
|
"@react-email/components": "1.0.12",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"defu": "6.1.7",
|
|
97
97
|
"dotenv": "17.4.2",
|
|
98
98
|
"fastify": "5.8.5",
|
|
99
|
-
"fastify-intlayer": "8.10.0
|
|
99
|
+
"fastify-intlayer": "8.10.0",
|
|
100
100
|
"ioredis": "5.10.1",
|
|
101
101
|
"mongodb": "7.2.0",
|
|
102
102
|
"mongoose": "9.6.2",
|
|
@@ -112,9 +112,9 @@
|
|
|
112
112
|
"zod-to-json-schema": "^3.25.2"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@intlayer/config": "8.10.0
|
|
116
|
-
"@intlayer/docs": "8.10.0
|
|
117
|
-
"@intlayer/types": "8.10.0
|
|
115
|
+
"@intlayer/config": "8.10.0",
|
|
116
|
+
"@intlayer/docs": "8.10.0",
|
|
117
|
+
"@intlayer/types": "8.10.0",
|
|
118
118
|
"@types/node": "25.9.1",
|
|
119
119
|
"@types/oauth2-server": "3.0.18",
|
|
120
120
|
"@types/react": "19.2.15",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@utils/ts-config": "1.0.4",
|
|
123
123
|
"@utils/ts-config-types": "1.0.4",
|
|
124
124
|
"@utils/tsdown-config": "1.0.4",
|
|
125
|
-
"intlayer": "8.10.0
|
|
125
|
+
"intlayer": "8.10.0",
|
|
126
126
|
"rimraf": "6.1.3",
|
|
127
127
|
"tsdown": "0.22.00",
|
|
128
128
|
"typescript": "6.0.3",
|