@yimingliao/cms 0.0.199 → 0.0.200
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/src/server/infrastructure/database/config/command/create-config-command-repository.js +10 -2
- package/dist/src/server/infrastructure/database/config/query/create-post-query-repository.js +8 -2
- package/dist/src/server/interfaces/actions/resources/config/commands/update/config-update-validator.js +33 -16
- package/dist/types/export/index.d.ts +1 -1
- package/dist/types/export/index.d.ts.map +1 -1
- package/dist/types/src/domain/index.d.ts +1 -1
- package/dist/types/src/domain/index.d.ts.map +1 -1
- package/dist/types/src/domain/resources/config/base.d.ts +0 -14
- package/dist/types/src/domain/resources/config/base.d.ts.map +1 -1
- package/dist/types/src/domain/resources/config/index.d.ts +1 -0
- package/dist/types/src/domain/resources/config/index.d.ts.map +1 -1
- package/dist/types/src/domain/resources/config/translation.d.ts +28 -0
- package/dist/types/src/domain/resources/config/translation.d.ts.map +1 -0
- package/dist/types/src/domain/resources/index.d.ts +1 -1
- package/dist/types/src/domain/resources/index.d.ts.map +1 -1
- package/dist/types/src/server/infrastructure/database/config/command/create-config-command-repository.d.ts +1 -1
- package/dist/types/src/server/infrastructure/database/config/command/create-config-command-repository.d.ts.map +1 -1
- package/dist/types/src/server/infrastructure/database/config/command/types.d.ts +23 -14
- package/dist/types/src/server/infrastructure/database/config/command/types.d.ts.map +1 -1
- package/dist/types/src/server/infrastructure/database/config/query/create-post-query-repository.d.ts +7 -3
- package/dist/types/src/server/infrastructure/database/config/query/create-post-query-repository.d.ts.map +1 -1
- package/dist/types/src/server/interfaces/actions/resources/config/commands/update/config-update-validator.d.ts +67 -14
- package/dist/types/src/server/interfaces/actions/resources/config/commands/update/config-update-validator.d.ts.map +1 -1
- package/dist/types/src/server/interfaces/actions/resources/config/queries/create-config-find-action.d.ts +3 -1
- package/dist/types/src/server/interfaces/actions/resources/config/queries/create-config-find-action.d.ts.map +1 -1
- package/dist/types/src/server/interfaces/actions/resources/config/queries/create-config-find-many-action.d.ts +3 -1
- package/dist/types/src/server/interfaces/actions/resources/config/queries/create-config-find-many-action.d.ts.map +1 -1
- package/package.json +1 -1
- package/prisma/schema/Config/Config.prisma +44 -11
package/dist/src/server/infrastructure/database/config/command/create-config-command-repository.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
function createConfigCommandRepository(prisma) {
|
|
2
|
-
async function update({ id,
|
|
2
|
+
async function update({ id, translations }) {
|
|
3
3
|
const updated = await prisma.config.update({
|
|
4
4
|
where: { id },
|
|
5
|
-
data: {
|
|
5
|
+
data: {
|
|
6
|
+
translations: {
|
|
7
|
+
upsert: translations.map((t) => ({
|
|
8
|
+
where: { configId_locale: { configId: id, locale: t.locale } },
|
|
9
|
+
update: t,
|
|
10
|
+
create: t
|
|
11
|
+
}))
|
|
12
|
+
}
|
|
13
|
+
}
|
|
6
14
|
});
|
|
7
15
|
return updated;
|
|
8
16
|
}
|
package/dist/src/server/infrastructure/database/config/query/create-post-query-repository.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { CONFIG_ORDER_BY } from '../../constants.js';
|
|
2
2
|
|
|
3
3
|
function createConfigQueryRepository(prisma) {
|
|
4
|
-
async function find({
|
|
5
|
-
|
|
4
|
+
async function find({
|
|
5
|
+
slug
|
|
6
|
+
}) {
|
|
7
|
+
return prisma.config.findUnique({
|
|
8
|
+
where: { slug },
|
|
9
|
+
include: { translations: true }
|
|
10
|
+
});
|
|
6
11
|
}
|
|
7
12
|
async function findMany() {
|
|
8
13
|
return prisma.config.findMany({
|
|
14
|
+
include: { translations: true },
|
|
9
15
|
orderBy: CONFIG_ORDER_BY
|
|
10
16
|
});
|
|
11
17
|
}
|
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
const configUpdateValidator = (schemas) => schemas.z.object({
|
|
2
|
-
//
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
// ----------------------------------------------------------------------------
|
|
3
|
+
// translation
|
|
4
|
+
// ----------------------------------------------------------------------------
|
|
5
|
+
translations: schemas.array(
|
|
6
|
+
schemas.z.object({
|
|
7
|
+
locale: schemas.text(),
|
|
8
|
+
// -------------------------------------------
|
|
9
|
+
// --- custom fields
|
|
10
|
+
// -------------------------------------------
|
|
11
|
+
// text
|
|
12
|
+
text1: schemas.text().nullable(),
|
|
13
|
+
text2: schemas.text().nullable(),
|
|
14
|
+
text3: schemas.text().nullable(),
|
|
15
|
+
text4: schemas.text().nullable(),
|
|
16
|
+
text5: schemas.text().nullable(),
|
|
17
|
+
text6: schemas.text().nullable(),
|
|
18
|
+
text7: schemas.text().nullable(),
|
|
19
|
+
text8: schemas.text().nullable(),
|
|
20
|
+
text9: schemas.text().nullable(),
|
|
21
|
+
text10: schemas.text().nullable(),
|
|
22
|
+
// json array
|
|
23
|
+
data1: schemas.array(schemas.z.any()),
|
|
24
|
+
data2: schemas.array(schemas.z.any()),
|
|
25
|
+
data3: schemas.array(schemas.z.any()),
|
|
26
|
+
data4: schemas.array(schemas.z.any()),
|
|
27
|
+
data5: schemas.array(schemas.z.any()),
|
|
28
|
+
data6: schemas.array(schemas.z.any()),
|
|
29
|
+
data7: schemas.array(schemas.z.any()),
|
|
30
|
+
data8: schemas.array(schemas.z.any()),
|
|
31
|
+
data9: schemas.array(schemas.z.any()),
|
|
32
|
+
data10: schemas.array(schemas.z.any())
|
|
33
|
+
})
|
|
34
|
+
)
|
|
18
35
|
});
|
|
19
36
|
|
|
20
37
|
export { configUpdateValidator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type MultiItems, type SingleItem, type BaseTranslation, type Translation, ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type AdminCard, type AdminSafe, ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP, type AdminRefreshToken, type DeviceInfo, FILE_TYPES, type FileType, type File, type FileTranslation, type FileFull, type FileCard, isFileLocked, type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, POST_TYPES, type PostType, type Post, type PostTranslation, type PostFull, type PostListCard, type ExternalLink, type Faq, type TocItem, type SeoMetadata, type Alternate, type Config, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, } from "../src/domain";
|
|
1
|
+
export { type MultiItems, type SingleItem, type BaseTranslation, type Translation, ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type AdminCard, type AdminSafe, ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP, type AdminRefreshToken, type DeviceInfo, FILE_TYPES, type FileType, type File, type FileTranslation, type FileFull, type FileCard, isFileLocked, type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, POST_TYPES, type PostType, type Post, type PostTranslation, type PostFull, type PostListCard, type ExternalLink, type Faq, type TocItem, type SeoMetadata, type Alternate, type Config, type ConfigTranslation, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, } from "../src/domain";
|
|
2
2
|
export { CACHE_KEYS, KEYS, PATHS, PROTECTED_PATHS, LOGGED_IN_SKIP_PATHS, NEW_TAB_REL, NEW_TAB_TARGET, } from "../src/constants";
|
|
3
3
|
export { mimeToExtension, classifyFileType, getMediaInfo, formatFileSize, type BlobFile, result, type SuccessResultParams, type ErrorResultParams, type Result, type SuccessResult, type ErrorResult, type ErrorDetail, OG_TYPE_ARRAY, type OgType, TWITTER_CARD_ARRAY, type TwitterCard, createBuildWebsiteMetadata, createBuildArticleMetadata, type SeoMetadataDefaults, serializeJsonLd, toIsoTime, findTranslation, createBuildTranslations, datetimeToDb, datetimeToUi, jsonArrayToDb, jsonArrayToUi, type UIStates, type FormData, type FormFieldController, debounce, ensureArray, formatDateTime, joinUrl, DO_NOT_FETCH_KEY, type ListItemsState, SIZE, type SizeUnit, } from "../src/shared";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../export/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,eAAe,EACpB,KAAK,WAAW,EAEhB,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,gBAAgB,EAChB,mBAAmB,EAEnB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,YAAY,EAEZ,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EAEtB,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../export/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,eAAe,EACpB,KAAK,WAAW,EAEhB,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,gBAAgB,EAChB,mBAAmB,EAEnB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,YAAY,EAEZ,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EAEtB,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,MAAM,EACX,KAAK,iBAAiB,EAEtB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AAKvB,OAAO,EACL,UAAU,EACV,IAAI,EACJ,KAAK,EACL,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,cAAc,GACf,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EAEL,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,KAAK,QAAQ,EAGb,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,EAGhB,aAAa,EACb,KAAK,MAAM,EACX,kBAAkB,EAClB,KAAK,WAAW,EAChB,0BAA0B,EAC1B,0BAA0B,EAC1B,KAAK,mBAAmB,EACxB,eAAe,EACf,SAAS,EAGT,eAAe,EACf,uBAAuB,EAGvB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,mBAAmB,EAGxB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,OAAO,EAGP,gBAAgB,EAChB,KAAK,cAAc,EAGnB,IAAI,EACJ,KAAK,QAAQ,GACd,MAAM,eAAe,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { MultiItems, SingleItem } from "./item";
|
|
2
2
|
export type { BaseTranslation, Translation } from "./translation";
|
|
3
|
-
export { ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type AdminCard, type AdminSafe, ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP, type AdminRefreshToken, type DeviceInfo, FILE_TYPES, type FileType, type File, type FileTranslation, type FileFull, type FileCard, isFileLocked, type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, POST_TYPES, type PostType, type Post, type PostTranslation, type PostFull, type PostListCard, type ExternalLink, type Faq, type TocItem, type SeoMetadata, type Alternate, type Config, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, } from "./resources";
|
|
3
|
+
export { ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type AdminCard, type AdminSafe, ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP, type AdminRefreshToken, type DeviceInfo, FILE_TYPES, type FileType, type File, type FileTranslation, type FileFull, type FileCard, isFileLocked, type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, POST_TYPES, type PostType, type Post, type PostTranslation, type PostFull, type PostListCard, type ExternalLink, type Faq, type TocItem, type SeoMetadata, type Alternate, type Config, type ConfigTranslation, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, } from "./resources";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAKrD,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAKlE,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,gBAAgB,EAChB,mBAAmB,EAEnB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,YAAY,EAEZ,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EAEtB,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAKrD,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAKlE,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,gBAAgB,EAChB,mBAAmB,EAEnB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,YAAY,EAEZ,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EAEtB,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,MAAM,EACX,KAAK,iBAAiB,EAEtB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,aAAa,CAAC"}
|
|
@@ -2,20 +2,6 @@ export interface Config {
|
|
|
2
2
|
id: string;
|
|
3
3
|
slug: string;
|
|
4
4
|
index: number;
|
|
5
|
-
text1: string | null;
|
|
6
|
-
text2: string | null;
|
|
7
|
-
text3: string | null;
|
|
8
|
-
text4: string | null;
|
|
9
|
-
text5: string | null;
|
|
10
|
-
text6: string | null;
|
|
11
|
-
text7: string | null;
|
|
12
|
-
text8: string | null;
|
|
13
|
-
text9: string | null;
|
|
14
|
-
text10: string | null;
|
|
15
|
-
data1: any[];
|
|
16
|
-
data2: any[];
|
|
17
|
-
data3: any[];
|
|
18
|
-
data4: any[];
|
|
19
5
|
createdAt: Date;
|
|
20
6
|
updatedAt: Date;
|
|
21
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/config/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/config/base.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAKd,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Translation } from "../../translation";
|
|
2
|
+
export interface ConfigTranslation extends Translation {
|
|
3
|
+
id: string;
|
|
4
|
+
locale: string;
|
|
5
|
+
createdAt: Date;
|
|
6
|
+
updatedAt: Date;
|
|
7
|
+
text1: string | null;
|
|
8
|
+
text2: string | null;
|
|
9
|
+
text3: string | null;
|
|
10
|
+
text4: string | null;
|
|
11
|
+
text5: string | null;
|
|
12
|
+
text6: string | null;
|
|
13
|
+
text7: string | null;
|
|
14
|
+
text8: string | null;
|
|
15
|
+
text9: string | null;
|
|
16
|
+
text10: string | null;
|
|
17
|
+
data1: any[];
|
|
18
|
+
data2: any[];
|
|
19
|
+
data3: any[];
|
|
20
|
+
data4: any[];
|
|
21
|
+
data5: any[];
|
|
22
|
+
data6: any[];
|
|
23
|
+
data7: any[];
|
|
24
|
+
data8: any[];
|
|
25
|
+
data9: any[];
|
|
26
|
+
data10: any[];
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/config/translation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAE,MAAM,CAAC;IAKf,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAMhB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,MAAM,EAAE,GAAG,EAAE,CAAC;CACf"}
|
|
@@ -4,6 +4,6 @@ export { FILE_TYPES, type FileType, type File, type FileTranslation, type FileFu
|
|
|
4
4
|
export { type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, } from "./folder";
|
|
5
5
|
export { POST_TYPES, type PostType, type ExternalLink, type Faq, type TocItem, type Post, type PostTranslation, type PostFull, type PostListCard, } from "./post";
|
|
6
6
|
export type { Alternate, SeoMetadata, } from "./seo-metadata";
|
|
7
|
-
export type { Config } from "./config";
|
|
7
|
+
export type { Config, ConfigTranslation } from "./config";
|
|
8
8
|
export { ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, } from "./constants";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domain/resources/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EAEd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EAEd,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAGjB,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAG3E,OAAO,EAEL,UAAU,EACV,KAAK,QAAQ,EAEb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EAEb,YAAY,GACb,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,KAAK,MAAM,EACX,KAAK,UAAU,EAEf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAEL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,QAAQ,CAAC;AAGhB,YAAY,EAEV,SAAS,EAET,WAAW,GACZ,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domain/resources/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EAEd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EAEd,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAGjB,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAG3E,OAAO,EAEL,UAAU,EACV,KAAK,QAAQ,EAEb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EAEb,YAAY,GACb,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,KAAK,MAAM,EACX,KAAK,UAAU,EAEf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAEL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,QAAQ,CAAC;AAGhB,YAAY,EAEV,SAAS,EAET,WAAW,GACZ,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAK1D,OAAO,EAEL,WAAW,EACX,cAAc,EACd,gBAAgB,EAEhB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,aAAa,CAAC"}
|
|
@@ -2,6 +2,6 @@ import type { UpdateParams } from "./types";
|
|
|
2
2
|
import type { PrismaClient } from "../../../../../../prisma/generated/client";
|
|
3
3
|
import type { Config } from "../../../../../domain";
|
|
4
4
|
export declare function createConfigCommandRepository(prisma: PrismaClient): {
|
|
5
|
-
update: ({ id,
|
|
5
|
+
update: ({ id, translations }: UpdateParams) => Promise<Config>;
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=create-config-command-repository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-config-command-repository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/infrastructure/database/config/command/create-config-command-repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"create-config-command-repository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/infrastructure/database/config/command/create-config-command-repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,YAAY;mCAIpB,YAAY,KAAG,OAAO,CAAC,MAAM,CAAC;EAsB3E"}
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
+
import type { BaseTranslation } from "../../../../../domain";
|
|
1
2
|
export interface UpdateParams {
|
|
2
3
|
id: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
translations: (BaseTranslation & {
|
|
5
|
+
text1: string | null;
|
|
6
|
+
text2: string | null;
|
|
7
|
+
text3: string | null;
|
|
8
|
+
text4: string | null;
|
|
9
|
+
text5: string | null;
|
|
10
|
+
text6: string | null;
|
|
11
|
+
text7: string | null;
|
|
12
|
+
text8: string | null;
|
|
13
|
+
text9: string | null;
|
|
14
|
+
text10: string | null;
|
|
15
|
+
data1: any[];
|
|
16
|
+
data2: any[];
|
|
17
|
+
data3: any[];
|
|
18
|
+
data4: any[];
|
|
19
|
+
data5: any[];
|
|
20
|
+
data6: any[];
|
|
21
|
+
data7: any[];
|
|
22
|
+
data8: any[];
|
|
23
|
+
data9: any[];
|
|
24
|
+
data10: any[];
|
|
25
|
+
})[];
|
|
17
26
|
}
|
|
18
27
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/infrastructure/database/config/command/types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/infrastructure/database/config/command/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IAKX,YAAY,EAAE,CAAC,eAAe,GAAG;QAK/B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAGtB,KAAK,EAAE,GAAG,EAAE,CAAC;QACb,KAAK,EAAE,GAAG,EAAE,CAAC;QACb,KAAK,EAAE,GAAG,EAAE,CAAC;QACb,KAAK,EAAE,GAAG,EAAE,CAAC;QACb,KAAK,EAAE,GAAG,EAAE,CAAC;QACb,KAAK,EAAE,GAAG,EAAE,CAAC;QACb,KAAK,EAAE,GAAG,EAAE,CAAC;QACb,KAAK,EAAE,GAAG,EAAE,CAAC;QACb,KAAK,EAAE,GAAG,EAAE,CAAC;QACb,MAAM,EAAE,GAAG,EAAE,CAAC;KACf,CAAC,EAAE,CAAC;CACN"}
|
package/dist/types/src/server/infrastructure/database/config/query/create-post-query-repository.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { FindParams } from "./types";
|
|
2
2
|
import type { PrismaClient } from "../../../../../../prisma/generated/client";
|
|
3
|
-
import type { Config } from "../../../../../domain";
|
|
3
|
+
import type { Config, ConfigTranslation } from "../../../../../domain";
|
|
4
4
|
export declare function createConfigQueryRepository(prisma: PrismaClient): {
|
|
5
|
-
find: ({ slug }: FindParams) => Promise<Config
|
|
6
|
-
|
|
5
|
+
find: ({ slug, }: FindParams) => Promise<(Config & {
|
|
6
|
+
translations: ConfigTranslation[];
|
|
7
|
+
}) | null>;
|
|
8
|
+
findMany: () => Promise<(Config & {
|
|
9
|
+
translations: ConfigTranslation[];
|
|
10
|
+
})[]>;
|
|
7
11
|
};
|
|
8
12
|
//# sourceMappingURL=create-post-query-repository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-post-query-repository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/infrastructure/database/config/query/create-post-query-repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"create-post-query-repository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/infrastructure/database/config/query/create-post-query-repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAGvE,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,YAAY;sBAM3D,UAAU,KAAG,OAAO,CACrB,CAAC,MAAM,GAAG;QAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA;KAAE,CAAC,GAAG,IAAI,CACxD;oBAU0B,OAAO,CAChC,CAAC,MAAM,GAAG;QAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA;KAAE,CAAC,EAAE,CACnD;EAcF"}
|
|
@@ -1,18 +1,71 @@
|
|
|
1
1
|
import type { createSchemas } from "../../../../../../infrastructure";
|
|
2
2
|
export declare const configUpdateValidator: (schemas: ReturnType<typeof createSchemas>) => import("zod").ZodObject<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
translations: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodObject<{
|
|
4
|
+
locale: import("zod").ZodString;
|
|
5
|
+
text1: import("zod").ZodNullable<import("zod").ZodString>;
|
|
6
|
+
text2: import("zod").ZodNullable<import("zod").ZodString>;
|
|
7
|
+
text3: import("zod").ZodNullable<import("zod").ZodString>;
|
|
8
|
+
text4: import("zod").ZodNullable<import("zod").ZodString>;
|
|
9
|
+
text5: import("zod").ZodNullable<import("zod").ZodString>;
|
|
10
|
+
text6: import("zod").ZodNullable<import("zod").ZodString>;
|
|
11
|
+
text7: import("zod").ZodNullable<import("zod").ZodString>;
|
|
12
|
+
text8: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13
|
+
text9: import("zod").ZodNullable<import("zod").ZodString>;
|
|
14
|
+
text10: import("zod").ZodNullable<import("zod").ZodString>;
|
|
15
|
+
data1: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodTransform<any[], any[]>>;
|
|
16
|
+
data2: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodTransform<any[], any[]>>;
|
|
17
|
+
data3: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodTransform<any[], any[]>>;
|
|
18
|
+
data4: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodTransform<any[], any[]>>;
|
|
19
|
+
data5: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodTransform<any[], any[]>>;
|
|
20
|
+
data6: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodTransform<any[], any[]>>;
|
|
21
|
+
data7: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodTransform<any[], any[]>>;
|
|
22
|
+
data8: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodTransform<any[], any[]>>;
|
|
23
|
+
data9: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodTransform<any[], any[]>>;
|
|
24
|
+
data10: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodTransform<any[], any[]>>;
|
|
25
|
+
}, import("zod/v4/core").$strip>>, import("zod").ZodTransform<{
|
|
26
|
+
locale: string;
|
|
27
|
+
text1: string | null;
|
|
28
|
+
text2: string | null;
|
|
29
|
+
text3: string | null;
|
|
30
|
+
text4: string | null;
|
|
31
|
+
text5: string | null;
|
|
32
|
+
text6: string | null;
|
|
33
|
+
text7: string | null;
|
|
34
|
+
text8: string | null;
|
|
35
|
+
text9: string | null;
|
|
36
|
+
text10: string | null;
|
|
37
|
+
data1: any[];
|
|
38
|
+
data2: any[];
|
|
39
|
+
data3: any[];
|
|
40
|
+
data4: any[];
|
|
41
|
+
data5: any[];
|
|
42
|
+
data6: any[];
|
|
43
|
+
data7: any[];
|
|
44
|
+
data8: any[];
|
|
45
|
+
data9: any[];
|
|
46
|
+
data10: any[];
|
|
47
|
+
}[], {
|
|
48
|
+
locale: string;
|
|
49
|
+
text1: string | null;
|
|
50
|
+
text2: string | null;
|
|
51
|
+
text3: string | null;
|
|
52
|
+
text4: string | null;
|
|
53
|
+
text5: string | null;
|
|
54
|
+
text6: string | null;
|
|
55
|
+
text7: string | null;
|
|
56
|
+
text8: string | null;
|
|
57
|
+
text9: string | null;
|
|
58
|
+
text10: string | null;
|
|
59
|
+
data1: any[];
|
|
60
|
+
data2: any[];
|
|
61
|
+
data3: any[];
|
|
62
|
+
data4: any[];
|
|
63
|
+
data5: any[];
|
|
64
|
+
data6: any[];
|
|
65
|
+
data7: any[];
|
|
66
|
+
data8: any[];
|
|
67
|
+
data9: any[];
|
|
68
|
+
data10: any[];
|
|
69
|
+
}[]>>;
|
|
17
70
|
}, import("zod/v4/core").$strip>;
|
|
18
71
|
//# sourceMappingURL=config-update-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-update-validator.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/server/interfaces/actions/resources/config/commands/update/config-update-validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,eAAO,MAAM,qBAAqB,GAChC,SAAS,UAAU,CAAC,OAAO,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"config-update-validator.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/server/interfaces/actions/resources/config/commands/update/config-update-validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,eAAO,MAAM,qBAAqB,GAChC,SAAS,UAAU,CAAC,OAAO,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAsCvC,CAAC"}
|
|
@@ -2,6 +2,8 @@ import type { ActionContext } from "../../../action-context";
|
|
|
2
2
|
export declare function createConfigFindAction(ctx: ActionContext): (params: {
|
|
3
3
|
slug: string;
|
|
4
4
|
}) => Promise<import("../../../../../../shared").Result<{
|
|
5
|
-
config: import("../../../../../../domain").Config
|
|
5
|
+
config: import("../../../../../../domain").Config & {
|
|
6
|
+
translations: import("../../../../../../domain").ConfigTranslation[];
|
|
7
|
+
};
|
|
6
8
|
}>>;
|
|
7
9
|
//# sourceMappingURL=create-config-find-action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-config-find-action.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/server/interfaces/actions/resources/config/queries/create-config-find-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,aAAa,IAMhB,QAAQ;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE
|
|
1
|
+
{"version":3,"file":"create-config-find-action.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/server/interfaces/actions/resources/config/queries/create-config-find-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,aAAa,IAMhB,QAAQ;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;;;;IAmBhE"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ActionContext } from "../../../action-context";
|
|
2
2
|
export declare function createConfigFindManyAction(ctx: ActionContext): () => Promise<import("../../../../../../shared").Result<{
|
|
3
|
-
configs: import("../../../../../../domain").Config
|
|
3
|
+
configs: (import("../../../../../../domain").Config & {
|
|
4
|
+
translations: import("../../../../../../domain").ConfigTranslation[];
|
|
5
|
+
})[];
|
|
4
6
|
}>>;
|
|
5
7
|
//# sourceMappingURL=create-config-find-many-action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-config-find-many-action.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/server/interfaces/actions/resources/config/queries/create-config-find-many-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,aAAa
|
|
1
|
+
{"version":3,"file":"create-config-find-many-action.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/server/interfaces/actions/resources/config/queries/create-config-find-many-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,aAAa;;;;IAwB5D"}
|
package/package.json
CHANGED
|
@@ -5,6 +5,38 @@ model Config {
|
|
|
5
5
|
|
|
6
6
|
index Int
|
|
7
7
|
|
|
8
|
+
// -----------------------------------------------------------------------
|
|
9
|
+
// relations: ConfigTranslation
|
|
10
|
+
// -----------------------------------------------------------------------
|
|
11
|
+
translations ConfigTranslation[]
|
|
12
|
+
|
|
13
|
+
// -----------------------------------------------------------------------
|
|
14
|
+
// timestamps
|
|
15
|
+
// -----------------------------------------------------------------------
|
|
16
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
17
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
18
|
+
|
|
19
|
+
@@map("configs")
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
model ConfigTranslation {
|
|
23
|
+
id String @id @default(ulid())
|
|
24
|
+
|
|
25
|
+
// core
|
|
26
|
+
locale String
|
|
27
|
+
|
|
28
|
+
// -----------------------------------------------------------------------
|
|
29
|
+
// relations: Config
|
|
30
|
+
// -----------------------------------------------------------------------
|
|
31
|
+
config Config @relation(fields: [configId], references: [id], onDelete: Cascade)
|
|
32
|
+
configId String @map("config_id")
|
|
33
|
+
|
|
34
|
+
// -----------------------------------------------------------------------
|
|
35
|
+
// timestamps
|
|
36
|
+
// -----------------------------------------------------------------------
|
|
37
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
38
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
39
|
+
|
|
8
40
|
// -----------------------------------------------------------------------
|
|
9
41
|
// --- custom fields
|
|
10
42
|
// -----------------------------------------------------------------------
|
|
@@ -21,16 +53,17 @@ model Config {
|
|
|
21
53
|
text10 String?
|
|
22
54
|
|
|
23
55
|
// json array
|
|
24
|
-
data1
|
|
25
|
-
data2
|
|
26
|
-
data3
|
|
27
|
-
data4
|
|
56
|
+
data1 Json[] @default([])
|
|
57
|
+
data2 Json[] @default([])
|
|
58
|
+
data3 Json[] @default([])
|
|
59
|
+
data4 Json[] @default([])
|
|
60
|
+
data5 Json[] @default([])
|
|
61
|
+
data6 Json[] @default([])
|
|
62
|
+
data7 Json[] @default([])
|
|
63
|
+
data8 Json[] @default([])
|
|
64
|
+
data9 Json[] @default([])
|
|
65
|
+
data10 Json[] @default([])
|
|
28
66
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// -----------------------------------------------------------------------
|
|
32
|
-
createdAt DateTime @default(now()) @map("created_at")
|
|
33
|
-
updatedAt DateTime @updatedAt @map("updated_at")
|
|
34
|
-
|
|
35
|
-
@@map("configs")
|
|
67
|
+
@@unique([configId, locale])
|
|
68
|
+
@@map("config_translations")
|
|
36
69
|
}
|