@intlayer/backend 8.12.0 → 8.12.1
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/types/schemas/affiliate.schema.d.ts +13 -13
- package/dist/types/schemas/affiliateInvitation.schema.d.ts +4 -4
- package/dist/types/schemas/audit.schema.d.ts +2 -2
- package/dist/types/schemas/auditJob.schema.d.ts +6 -6
- package/dist/types/schemas/auditPage.schema.d.ts +5 -5
- package/dist/types/schemas/dictionary.schema.d.ts +11 -11
- package/dist/types/schemas/discussion.schema.d.ts +10 -10
- package/dist/types/schemas/organization.schema.d.ts +6 -6
- package/dist/types/schemas/plans.schema.d.ts +8 -8
- package/dist/types/schemas/project.schema.d.ts +9 -9
- package/dist/types/schemas/promoCode.schema.d.ts +13 -13
- package/dist/types/schemas/reviewer.schema.d.ts +31 -31
- package/dist/types/schemas/session.schema.d.ts +4 -4
- package/dist/types/schemas/showcaseProject.schema.d.ts +7 -7
- package/dist/types/schemas/tag.schema.d.ts +9 -9
- package/dist/types/schemas/user.schema.d.ts +9 -9
- package/dist/types/utils/errors/ErrorHandler.d.ts +4 -4
- package/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +5 -5
- package/package.json +10 -10
|
@@ -13,7 +13,7 @@ declare const tagSchema: Schema<TagSchema, import("mongoose").Model<TagSchema, a
|
|
|
13
13
|
}, "id"> & {
|
|
14
14
|
id: string;
|
|
15
15
|
}, {
|
|
16
|
-
|
|
16
|
+
key?: import("mongoose").SchemaDefinitionProperty<string, TagSchema, import("mongoose").Document<unknown, {}, TagSchema, {
|
|
17
17
|
id: string;
|
|
18
18
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
|
|
19
19
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -24,7 +24,7 @@ declare const tagSchema: Schema<TagSchema, import("mongoose").Model<TagSchema, a
|
|
|
24
24
|
}, "id"> & {
|
|
25
25
|
id: string;
|
|
26
26
|
}>;
|
|
27
|
-
|
|
27
|
+
name?: import("mongoose").SchemaDefinitionProperty<string, TagSchema, import("mongoose").Document<unknown, {}, TagSchema, {
|
|
28
28
|
id: string;
|
|
29
29
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
|
|
30
30
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -35,7 +35,7 @@ declare const tagSchema: Schema<TagSchema, import("mongoose").Model<TagSchema, a
|
|
|
35
35
|
}, "id"> & {
|
|
36
36
|
id: string;
|
|
37
37
|
}>;
|
|
38
|
-
|
|
38
|
+
description?: import("mongoose").SchemaDefinitionProperty<string, TagSchema, import("mongoose").Document<unknown, {}, TagSchema, {
|
|
39
39
|
id: string;
|
|
40
40
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
|
|
41
41
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -46,7 +46,7 @@ declare const tagSchema: Schema<TagSchema, import("mongoose").Model<TagSchema, a
|
|
|
46
46
|
}, "id"> & {
|
|
47
47
|
id: string;
|
|
48
48
|
}>;
|
|
49
|
-
|
|
49
|
+
instructions?: import("mongoose").SchemaDefinitionProperty<string, TagSchema, import("mongoose").Document<unknown, {}, TagSchema, {
|
|
50
50
|
id: string;
|
|
51
51
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
|
|
52
52
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -57,7 +57,7 @@ declare const tagSchema: Schema<TagSchema, import("mongoose").Model<TagSchema, a
|
|
|
57
57
|
}, "id"> & {
|
|
58
58
|
id: string;
|
|
59
59
|
}>;
|
|
60
|
-
|
|
60
|
+
creatorId?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Types.ObjectId, TagSchema, import("mongoose").Document<unknown, {}, TagSchema, {
|
|
61
61
|
id: string;
|
|
62
62
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
|
|
63
63
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -68,7 +68,7 @@ declare const tagSchema: Schema<TagSchema, import("mongoose").Model<TagSchema, a
|
|
|
68
68
|
}, "id"> & {
|
|
69
69
|
id: string;
|
|
70
70
|
}>;
|
|
71
|
-
|
|
71
|
+
projectId?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Types.ObjectId, TagSchema, import("mongoose").Document<unknown, {}, TagSchema, {
|
|
72
72
|
id: string;
|
|
73
73
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
|
|
74
74
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -79,7 +79,7 @@ declare const tagSchema: Schema<TagSchema, import("mongoose").Model<TagSchema, a
|
|
|
79
79
|
}, "id"> & {
|
|
80
80
|
id: string;
|
|
81
81
|
}>;
|
|
82
|
-
|
|
82
|
+
organizationId?: import("mongoose").SchemaDefinitionProperty<import("mongoose").Types.ObjectId, TagSchema, import("mongoose").Document<unknown, {}, TagSchema, {
|
|
83
83
|
id: string;
|
|
84
84
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
|
|
85
85
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -90,7 +90,7 @@ declare const tagSchema: Schema<TagSchema, import("mongoose").Model<TagSchema, a
|
|
|
90
90
|
}, "id"> & {
|
|
91
91
|
id: string;
|
|
92
92
|
}>;
|
|
93
|
-
|
|
93
|
+
createdAt?: import("mongoose").SchemaDefinitionProperty<number, TagSchema, import("mongoose").Document<unknown, {}, TagSchema, {
|
|
94
94
|
id: string;
|
|
95
95
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
|
|
96
96
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -101,7 +101,7 @@ declare const tagSchema: Schema<TagSchema, import("mongoose").Model<TagSchema, a
|
|
|
101
101
|
}, "id"> & {
|
|
102
102
|
id: string;
|
|
103
103
|
}>;
|
|
104
|
-
|
|
104
|
+
updatedAt?: import("mongoose").SchemaDefinitionProperty<number, TagSchema, import("mongoose").Document<unknown, {}, TagSchema, {
|
|
105
105
|
id: string;
|
|
106
106
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
|
|
107
107
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -13,7 +13,7 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
13
13
|
}, "id"> & {
|
|
14
14
|
id: string;
|
|
15
15
|
}, {
|
|
16
|
-
|
|
16
|
+
name?: import("mongoose").SchemaDefinitionProperty<string, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
17
17
|
id: string;
|
|
18
18
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
19
19
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -24,7 +24,7 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
24
24
|
}, "id"> & {
|
|
25
25
|
id: string;
|
|
26
26
|
}>;
|
|
27
|
-
|
|
27
|
+
createdAt?: import("mongoose").SchemaDefinitionProperty<Date, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
28
28
|
id: string;
|
|
29
29
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
30
30
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -35,7 +35,7 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
35
35
|
}, "id"> & {
|
|
36
36
|
id: string;
|
|
37
37
|
}>;
|
|
38
|
-
|
|
38
|
+
updatedAt?: import("mongoose").SchemaDefinitionProperty<Date, 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;
|
|
@@ -101,7 +101,9 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
101
101
|
}, "id"> & {
|
|
102
102
|
id: string;
|
|
103
103
|
}>;
|
|
104
|
-
|
|
104
|
+
emailsList?: import("mongoose").SchemaDefinitionProperty<{
|
|
105
|
+
newsLetter: boolean;
|
|
106
|
+
}, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
105
107
|
id: string;
|
|
106
108
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
107
109
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -112,9 +114,7 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
112
114
|
}, "id"> & {
|
|
113
115
|
id: string;
|
|
114
116
|
}>;
|
|
115
|
-
|
|
116
|
-
newsLetter: boolean;
|
|
117
|
-
}, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
117
|
+
customerId?: import("mongoose").SchemaDefinitionProperty<string, UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
118
118
|
id: string;
|
|
119
119
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
120
120
|
_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
|
+
role?: 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;
|
|
@@ -136,7 +136,7 @@ declare const userSchema: Schema<UserSchema, import("mongoose").Model<UserSchema
|
|
|
136
136
|
}, "id"> & {
|
|
137
137
|
id: string;
|
|
138
138
|
}>;
|
|
139
|
-
lastLoginMethod?: import("mongoose").SchemaDefinitionProperty<"
|
|
139
|
+
lastLoginMethod?: import("mongoose").SchemaDefinitionProperty<"email" | "github" | "google" | "passkey", UserSchema, import("mongoose").Document<unknown, {}, UserSchema, {
|
|
140
140
|
id: string;
|
|
141
141
|
}, import("mongoose").DefaultSchemaOptions> & Omit<Omit<User, "id"> & {
|
|
142
142
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -42,19 +42,19 @@ declare const handleCustomErrorResponse: (reply: FastifyReply, errorKey: ErrorCo
|
|
|
42
42
|
*/
|
|
43
43
|
declare const formatGenericErrorResponse: (errorKey: ErrorCodes, errorDetails?: object, statusCode?: HttpStatusCodes) => ResponseData<{
|
|
44
44
|
id: string;
|
|
45
|
+
name: string;
|
|
45
46
|
createdAt: Date;
|
|
46
47
|
updatedAt: Date;
|
|
47
|
-
name: string;
|
|
48
48
|
email: string;
|
|
49
49
|
emailVerified: boolean;
|
|
50
50
|
image?: string;
|
|
51
51
|
phone?: string;
|
|
52
52
|
dateOfBirth?: Date;
|
|
53
|
-
role?: string;
|
|
54
53
|
emailsList?: {
|
|
55
54
|
newsLetter: boolean;
|
|
56
55
|
};
|
|
57
56
|
customerId?: string;
|
|
57
|
+
role?: string;
|
|
58
58
|
lastLoginMethod?: "email" | "google" | "github" | "passkey";
|
|
59
59
|
lang?: string;
|
|
60
60
|
lastActiveOrganizationId?: string | null;
|
|
@@ -66,19 +66,19 @@ declare const ErrorHandler: {
|
|
|
66
66
|
handleCustomErrorResponse: (reply: FastifyReply, errorKey: ErrorCodes | string, title: StrictModeLocaleMap<string> | string, message: StrictModeLocaleMap<string> | string, messageDetails?: object, statusCode?: HttpStatusCodes, logDetails?: object) => FastifyReply<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("node:http").ServerResponse<import("node:http").IncomingMessage>, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>;
|
|
67
67
|
formatGenericErrorResponse: (errorKey: ErrorCodes, errorDetails?: object, statusCode?: HttpStatusCodes) => ResponseData<{
|
|
68
68
|
id: string;
|
|
69
|
+
name: string;
|
|
69
70
|
createdAt: Date;
|
|
70
71
|
updatedAt: Date;
|
|
71
|
-
name: string;
|
|
72
72
|
email: string;
|
|
73
73
|
emailVerified: boolean;
|
|
74
74
|
image?: string;
|
|
75
75
|
phone?: string;
|
|
76
76
|
dateOfBirth?: Date;
|
|
77
|
-
role?: string;
|
|
78
77
|
emailsList?: {
|
|
79
78
|
newsLetter: boolean;
|
|
80
79
|
};
|
|
81
80
|
customerId?: string;
|
|
81
|
+
role?: string;
|
|
82
82
|
lastLoginMethod?: "email" | "google" | "github" | "passkey";
|
|
83
83
|
lang?: string;
|
|
84
84
|
lastActiveOrganizationId?: string | null;
|
|
@@ -30,15 +30,15 @@ declare const getTagFiltersAndPagination: (req: FastifyRequest<{
|
|
|
30
30
|
getNumberOfPages: (totalItems: number) => number;
|
|
31
31
|
filters: import("mongoose")._QueryFilter<{
|
|
32
32
|
id: import("mongoose").Types.ObjectId;
|
|
33
|
-
|
|
34
|
-
updatedAt: number;
|
|
33
|
+
key: string;
|
|
35
34
|
name: string;
|
|
36
35
|
description: string;
|
|
37
|
-
|
|
36
|
+
instructions: string;
|
|
38
37
|
creatorId: import("mongoose").Types.ObjectId;
|
|
39
38
|
projectId: import("mongoose").Types.ObjectId;
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
organizationId: import("mongoose").Types.ObjectId;
|
|
40
|
+
createdAt: number;
|
|
41
|
+
updatedAt: number;
|
|
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.12.
|
|
3
|
+
"version": "8.12.1",
|
|
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.12.
|
|
86
|
-
"@intlayer/chokidar": "8.12.
|
|
87
|
-
"@intlayer/core": "8.12.
|
|
88
|
-
"@intlayer/mcp": "8.12.
|
|
85
|
+
"@intlayer/ai": "8.12.1",
|
|
86
|
+
"@intlayer/chokidar": "8.12.1",
|
|
87
|
+
"@intlayer/core": "8.12.1",
|
|
88
|
+
"@intlayer/mcp": "8.12.1",
|
|
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.12.
|
|
99
|
+
"fastify-intlayer": "8.12.1",
|
|
100
100
|
"ioredis": "5.11.0",
|
|
101
101
|
"mongodb": "7.2.0",
|
|
102
102
|
"mongoose": "9.6.3",
|
|
@@ -113,9 +113,9 @@
|
|
|
113
113
|
"zod-to-json-schema": "^3.25.2"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
|
-
"@intlayer/config": "8.12.
|
|
117
|
-
"@intlayer/docs": "8.12.
|
|
118
|
-
"@intlayer/types": "8.12.
|
|
116
|
+
"@intlayer/config": "8.12.1",
|
|
117
|
+
"@intlayer/docs": "8.12.1",
|
|
118
|
+
"@intlayer/types": "8.12.1",
|
|
119
119
|
"@types/node": "25.9.1",
|
|
120
120
|
"@types/oauth2-server": "3.0.18",
|
|
121
121
|
"@types/react": "19.2.16",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"@utils/ts-config": "1.0.4",
|
|
124
124
|
"@utils/ts-config-types": "1.0.4",
|
|
125
125
|
"@utils/tsdown-config": "1.0.4",
|
|
126
|
-
"intlayer": "8.12.
|
|
126
|
+
"intlayer": "8.12.1",
|
|
127
127
|
"rimraf": "6.1.3",
|
|
128
128
|
"tsdown": "0.22.1",
|
|
129
129
|
"typescript": "6.0.3",
|