nextjs-cms 0.5.9 → 0.5.11
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/api/axios/axiosInstance.d.ts +1 -1
- package/dist/api/axios/axiosInstance.js +8 -8
- package/dist/api/index.d.ts +855 -855
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +12 -12
- package/dist/api/lib/serverActions.d.ts +239 -239
- package/dist/api/lib/serverActions.d.ts.map +1 -1
- package/dist/api/lib/serverActions.js +834 -834
- package/dist/api/root.d.ts +828 -828
- package/dist/api/root.js +30 -30
- package/dist/api/routers/accountSettings.d.ts +60 -60
- package/dist/api/routers/accountSettings.js +108 -108
- package/dist/api/routers/admins.d.ts +105 -105
- package/dist/api/routers/admins.js +219 -219
- package/dist/api/routers/auth.d.ts +47 -47
- package/dist/api/routers/auth.js +25 -25
- package/dist/api/routers/categorySection.d.ts +103 -103
- package/dist/api/routers/categorySection.js +38 -38
- package/dist/api/routers/cmsSettings.d.ts +48 -48
- package/dist/api/routers/cmsSettings.js +51 -51
- package/dist/api/routers/cpanel.d.ts +83 -83
- package/dist/api/routers/cpanel.js +216 -216
- package/dist/api/routers/files.d.ts +47 -47
- package/dist/api/routers/files.js +23 -23
- package/dist/api/routers/gallery.d.ts +35 -35
- package/dist/api/routers/gallery.js +62 -62
- package/dist/api/routers/googleAnalytics.d.ts +30 -30
- package/dist/api/routers/googleAnalytics.js +7 -7
- package/dist/api/routers/hasItemsSection.d.ts +139 -139
- package/dist/api/routers/hasItemsSection.js +34 -34
- package/dist/api/routers/navigation.d.ts +51 -51
- package/dist/api/routers/navigation.js +11 -11
- package/dist/api/routers/simpleSection.d.ts +57 -57
- package/dist/api/routers/simpleSection.js +12 -12
- package/dist/api/trpc.d.ts +106 -106
- package/dist/api/trpc.js +72 -72
- package/dist/auth/axios/axiosInstance.d.ts +1 -1
- package/dist/auth/axios/axiosInstance.js +8 -8
- package/dist/auth/csrf.d.ts +29 -29
- package/dist/auth/csrf.js +76 -76
- package/dist/auth/hooks/index.d.ts +3 -3
- package/dist/auth/hooks/index.d.ts.map +1 -1
- package/dist/auth/hooks/index.js +3 -3
- package/dist/auth/hooks/useAxiosPrivate.d.ts +4 -4
- package/dist/auth/hooks/useAxiosPrivate.js +74 -74
- package/dist/auth/hooks/useRefreshToken.d.ts +6 -6
- package/dist/auth/hooks/useRefreshToken.js +79 -79
- package/dist/auth/index.d.ts +22 -22
- package/dist/auth/index.js +44 -44
- package/dist/auth/jwt.d.ts +5 -5
- package/dist/auth/jwt.js +25 -25
- package/dist/auth/lib/actions.d.ts +32 -32
- package/dist/auth/lib/actions.d.ts.map +1 -1
- package/dist/auth/lib/actions.js +209 -209
- package/dist/auth/lib/client.d.ts +3 -3
- package/dist/auth/lib/client.js +46 -46
- package/dist/auth/lib/index.d.ts +2 -2
- package/dist/auth/lib/index.d.ts.map +1 -1
- package/dist/auth/lib/index.js +2 -2
- package/dist/auth/react.d.ts +105 -105
- package/dist/auth/react.d.ts.map +1 -1
- package/dist/auth/react.js +347 -347
- package/dist/auth/trpc.d.ts +5 -5
- package/dist/auth/trpc.d.ts.map +1 -1
- package/dist/auth/trpc.js +81 -81
- package/dist/core/config/config-loader.d.ts +91 -91
- package/dist/core/config/config-loader.js +230 -230
- package/dist/core/config/index.d.ts +2 -2
- package/dist/core/config/index.d.ts.map +1 -1
- package/dist/core/config/index.js +1 -1
- package/dist/core/config/loader.d.ts +1 -1
- package/dist/core/config/loader.js +42 -42
- package/dist/core/db/index.d.ts +1 -1
- package/dist/core/db/index.d.ts.map +1 -1
- package/dist/core/db/index.js +1 -1
- package/dist/core/db/table-checker/DbTable.d.ts +5 -5
- package/dist/core/db/table-checker/DbTable.js +5 -5
- package/dist/core/db/table-checker/MysqlTable.d.ts +33 -33
- package/dist/core/db/table-checker/MysqlTable.d.ts.map +1 -1
- package/dist/core/db/table-checker/MysqlTable.js +94 -94
- package/dist/core/db/table-checker/index.d.ts +1 -1
- package/dist/core/db/table-checker/index.d.ts.map +1 -1
- package/dist/core/db/table-checker/index.js +1 -1
- package/dist/core/factories/FieldFactory.d.ts +123 -123
- package/dist/core/factories/FieldFactory.d.ts.map +1 -1
- package/dist/core/factories/FieldFactory.js +411 -411
- package/dist/core/factories/SectionFactory.d.ts +109 -109
- package/dist/core/factories/SectionFactory.d.ts.map +1 -1
- package/dist/core/factories/SectionFactory.js +415 -415
- package/dist/core/factories/index.d.ts +2 -2
- package/dist/core/factories/index.d.ts.map +1 -1
- package/dist/core/factories/index.js +2 -2
- package/dist/core/fields/checkbox.d.ts +62 -62
- package/dist/core/fields/checkbox.d.ts.map +1 -1
- package/dist/core/fields/checkbox.js +62 -62
- package/dist/core/fields/color.d.ts +83 -83
- package/dist/core/fields/color.d.ts.map +1 -1
- package/dist/core/fields/color.js +91 -91
- package/dist/core/fields/date.d.ts +99 -99
- package/dist/core/fields/date.d.ts.map +1 -1
- package/dist/core/fields/date.js +108 -108
- package/dist/core/fields/document.d.ts +179 -179
- package/dist/core/fields/document.d.ts.map +1 -1
- package/dist/core/fields/document.js +277 -277
- package/dist/core/fields/field-group.d.ts +17 -17
- package/dist/core/fields/field-group.d.ts.map +1 -1
- package/dist/core/fields/field-group.js +6 -6
- package/dist/core/fields/field.d.ts +125 -125
- package/dist/core/fields/field.d.ts.map +1 -1
- package/dist/core/fields/field.js +148 -148
- package/dist/core/fields/fileField.d.ts +14 -14
- package/dist/core/fields/fileField.d.ts.map +1 -1
- package/dist/core/fields/fileField.js +5 -5
- package/dist/core/fields/index.d.ts +64 -64
- package/dist/core/fields/index.d.ts.map +1 -1
- package/dist/core/fields/index.js +18 -18
- package/dist/core/fields/map.d.ts +166 -166
- package/dist/core/fields/map.d.ts.map +1 -1
- package/dist/core/fields/map.js +152 -152
- package/dist/core/fields/number.d.ts +185 -185
- package/dist/core/fields/number.d.ts.map +1 -1
- package/dist/core/fields/number.js +241 -241
- package/dist/core/fields/password.d.ts +108 -108
- package/dist/core/fields/password.d.ts.map +1 -1
- package/dist/core/fields/password.js +133 -133
- package/dist/core/fields/photo.d.ts +288 -288
- package/dist/core/fields/photo.d.ts.map +1 -1
- package/dist/core/fields/photo.js +410 -410
- package/dist/core/fields/richText.d.ts +294 -294
- package/dist/core/fields/richText.d.ts.map +1 -1
- package/dist/core/fields/richText.js +338 -338
- package/dist/core/fields/select.d.ts +365 -365
- package/dist/core/fields/select.d.ts.map +1 -1
- package/dist/core/fields/select.js +499 -499
- package/dist/core/fields/selectMultiple.d.ts +235 -235
- package/dist/core/fields/selectMultiple.d.ts.map +1 -1
- package/dist/core/fields/selectMultiple.js +417 -417
- package/dist/core/fields/tags.d.ts +130 -130
- package/dist/core/fields/tags.d.ts.map +1 -1
- package/dist/core/fields/tags.js +105 -105
- package/dist/core/fields/text.d.ts +135 -135
- package/dist/core/fields/text.d.ts.map +1 -1
- package/dist/core/fields/text.js +157 -157
- package/dist/core/fields/textArea.d.ts +106 -106
- package/dist/core/fields/textArea.d.ts.map +1 -1
- package/dist/core/fields/textArea.js +126 -126
- package/dist/core/fields/video.d.ts +147 -147
- package/dist/core/fields/video.d.ts.map +1 -1
- package/dist/core/fields/video.js +248 -248
- package/dist/core/helpers/entity.d.ts +7 -7
- package/dist/core/helpers/entity.js +27 -27
- package/dist/core/helpers/index.d.ts +4 -4
- package/dist/core/helpers/index.d.ts.map +1 -1
- package/dist/core/helpers/index.js +3 -3
- package/dist/core/index.d.ts +7 -7
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +7 -7
- package/dist/core/sections/category.d.ts +282 -282
- package/dist/core/sections/category.d.ts.map +1 -1
- package/dist/core/sections/category.js +147 -147
- package/dist/core/sections/hasItems.d.ts +631 -631
- package/dist/core/sections/hasItems.d.ts.map +1 -1
- package/dist/core/sections/hasItems.js +144 -144
- package/dist/core/sections/index.d.ts +4 -4
- package/dist/core/sections/index.d.ts.map +1 -1
- package/dist/core/sections/index.js +4 -4
- package/dist/core/sections/section.d.ts +225 -225
- package/dist/core/sections/section.d.ts.map +1 -1
- package/dist/core/sections/section.js +341 -341
- package/dist/core/sections/simple.d.ts +98 -98
- package/dist/core/sections/simple.d.ts.map +1 -1
- package/dist/core/sections/simple.js +95 -95
- package/dist/core/security/dom.d.ts +10 -10
- package/dist/core/security/dom.js +92 -92
- package/dist/core/submit/ItemEditSubmit.d.ts +75 -75
- package/dist/core/submit/ItemEditSubmit.js +186 -186
- package/dist/core/submit/NewItemSubmit.d.ts +13 -13
- package/dist/core/submit/NewItemSubmit.js +93 -93
- package/dist/core/submit/SimpleSectionSubmit.d.ts +12 -12
- package/dist/core/submit/SimpleSectionSubmit.js +93 -93
- package/dist/core/submit/index.d.ts +4 -4
- package/dist/core/submit/index.js +4 -4
- package/dist/core/submit/submit.d.ts +115 -115
- package/dist/core/submit/submit.js +479 -479
- package/dist/core/types/index.d.ts +279 -279
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/types/index.js +1 -1
- package/dist/db/client.d.ts +8 -8
- package/dist/db/client.d.ts.map +1 -1
- package/dist/db/client.js +19 -19
- package/dist/db/config.d.ts +5 -5
- package/dist/db/config.js +22 -22
- package/dist/db/drizzle.config.d.ts +5 -5
- package/dist/db/drizzle.config.js +18 -18
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.js +3 -3
- package/dist/db/schema.d.ts +638 -638
- package/dist/db/schema.js +73 -73
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/index.d.ts +2 -2
- package/dist/translations/index.js +15 -15
- package/dist/utils/CpanelApi.d.ts +24 -24
- package/dist/utils/CpanelApi.js +64 -64
- package/dist/utils/constants.d.ts +13 -13
- package/dist/utils/constants.js +61 -61
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +4 -4
- package/dist/utils/utils.d.ts +59 -59
- package/dist/utils/utils.js +132 -132
- package/dist/validators/checkbox.d.ts +3 -3
- package/dist/validators/checkbox.d.ts.map +1 -1
- package/dist/validators/checkbox.js +12 -12
- package/dist/validators/color.d.ts +3 -3
- package/dist/validators/color.d.ts.map +1 -1
- package/dist/validators/color.js +7 -7
- package/dist/validators/date.d.ts +3 -3
- package/dist/validators/date.d.ts.map +1 -1
- package/dist/validators/date.js +5 -5
- package/dist/validators/document.d.ts +3 -3
- package/dist/validators/document.d.ts.map +1 -1
- package/dist/validators/document.js +57 -57
- package/dist/validators/index.d.ts +14 -14
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +14 -14
- package/dist/validators/map.d.ts +3 -3
- package/dist/validators/map.d.ts.map +1 -1
- package/dist/validators/map.js +5 -5
- package/dist/validators/number.d.ts +3 -3
- package/dist/validators/number.d.ts.map +1 -1
- package/dist/validators/number.js +20 -20
- package/dist/validators/password.d.ts +3 -3
- package/dist/validators/password.d.ts.map +1 -1
- package/dist/validators/password.js +11 -11
- package/dist/validators/photo.d.ts +3 -3
- package/dist/validators/photo.d.ts.map +1 -1
- package/dist/validators/photo.js +100 -100
- package/dist/validators/richText.d.ts +3 -3
- package/dist/validators/richText.d.ts.map +1 -1
- package/dist/validators/richText.js +8 -8
- package/dist/validators/select-multiple.d.ts +9 -9
- package/dist/validators/select-multiple.d.ts.map +1 -1
- package/dist/validators/select-multiple.js +20 -20
- package/dist/validators/select.d.ts +3 -3
- package/dist/validators/select.d.ts.map +1 -1
- package/dist/validators/select.js +5 -5
- package/dist/validators/text.d.ts +3 -3
- package/dist/validators/text.d.ts.map +1 -1
- package/dist/validators/text.js +7 -7
- package/dist/validators/textarea.d.ts +3 -3
- package/dist/validators/textarea.d.ts.map +1 -1
- package/dist/validators/textarea.js +7 -7
- package/dist/validators/video.d.ts +3 -3
- package/dist/validators/video.d.ts.map +1 -1
- package/dist/validators/video.js +57 -57
- package/package.json +4 -5
|
@@ -1,226 +1,226 @@
|
|
|
1
|
-
import { Field } from
|
|
2
|
-
import { entityKind } from
|
|
3
|
-
import type { NumberFieldConfigType, TextFieldConfig } from
|
|
4
|
-
import type { Variant } from
|
|
5
|
-
import type { FieldConfig } from
|
|
6
|
-
import type { FieldGroup, FieldGroupConfig } from
|
|
7
|
-
import * as z from 'zod';
|
|
8
|
-
export declare const fieldConfigSchema: z.ZodCustom<FieldConfig, FieldConfig>;
|
|
9
|
-
export declare const FieldGroupConfigSchema: z.ZodCustom<FieldGroupConfig, FieldGroupConfig>;
|
|
10
|
-
export declare const baseSectionOptionsSchema: z.ZodObject<{
|
|
11
|
-
name: z.ZodString;
|
|
12
|
-
order: z.ZodNumber;
|
|
13
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
14
|
-
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
15
|
-
gallery: z.ZodOptional<z.ZodObject<{
|
|
16
|
-
db: z.ZodObject<{
|
|
17
|
-
tableName: z.ZodString;
|
|
18
|
-
identifierField: z.ZodOptional<z.ZodString>;
|
|
19
|
-
photoNameField: z.ZodOptional<z.ZodString>;
|
|
20
|
-
metaField: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, z.core.$strict>;
|
|
22
|
-
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
24
|
-
width: z.ZodNumber;
|
|
25
|
-
height: z.ZodNumber;
|
|
26
|
-
crop: z.ZodBoolean;
|
|
27
|
-
quality: z.ZodNumber;
|
|
28
|
-
}, z.core.$strict>>;
|
|
29
|
-
}, z.core.$strict>>;
|
|
30
|
-
db: z.ZodObject<{
|
|
31
|
-
table: z.ZodString;
|
|
32
|
-
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
33
|
-
orderByField: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
34
|
-
primaryKey: z.ZodOptional<z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>>;
|
|
35
|
-
foreignKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
|
-
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
37
|
-
foreignColumns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
38
|
-
name: z.ZodString;
|
|
39
|
-
}, z.core.$strict>>>;
|
|
40
|
-
index: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
|
-
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
42
|
-
name: z.ZodOptional<z.ZodString>;
|
|
43
|
-
}, z.core.$strict>>>;
|
|
44
|
-
unique: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
45
|
-
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
46
|
-
name: z.ZodOptional<z.ZodString>;
|
|
47
|
-
}, z.core.$strict>>>;
|
|
48
|
-
fulltext: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
-
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
50
|
-
name: z.ZodOptional<z.ZodString>;
|
|
51
|
-
}, z.core.$strict>>>;
|
|
52
|
-
}, z.core.$strict>;
|
|
53
|
-
fields: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
54
|
-
fieldGroups: z.ZodOptional<z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>>;
|
|
55
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<Variant, Variant>>>;
|
|
56
|
-
hooks: z.ZodOptional<z.ZodCustom<Hooks, Hooks>>;
|
|
57
|
-
}, z.core.$strict>;
|
|
58
|
-
/**
|
|
59
|
-
* This is the options schema for the helper functions that create section configs
|
|
60
|
-
* We omit the fields and fieldGroups properties from the baseSectionOptionsSchema
|
|
61
|
-
* and change the fields to be an array of field configs or field group configs
|
|
62
|
-
*/
|
|
63
|
-
export declare const baseHelperFunctionOptionsSchema: z.ZodObject<{
|
|
64
|
-
fields: z.ZodUnion<[z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>, z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>]>;
|
|
65
|
-
name: z.ZodString;
|
|
66
|
-
db: z.ZodObject<{
|
|
67
|
-
table: z.ZodString;
|
|
68
|
-
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
69
|
-
orderByField: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
70
|
-
primaryKey: z.ZodOptional<z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>>;
|
|
71
|
-
foreignKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
-
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
73
|
-
foreignColumns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
74
|
-
name: z.ZodString;
|
|
75
|
-
}, z.core.$strict>>>;
|
|
76
|
-
index: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
|
-
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
78
|
-
name: z.ZodOptional<z.ZodString>;
|
|
79
|
-
}, z.core.$strict>>>;
|
|
80
|
-
unique: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
|
-
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
82
|
-
name: z.ZodOptional<z.ZodString>;
|
|
83
|
-
}, z.core.$strict>>>;
|
|
84
|
-
fulltext: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
85
|
-
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
86
|
-
name: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, z.core.$strict>>>;
|
|
88
|
-
}, z.core.$strict>;
|
|
89
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<Variant, Variant>>>;
|
|
90
|
-
order: z.ZodNumber;
|
|
91
|
-
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
92
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
93
|
-
gallery: z.ZodOptional<z.ZodObject<{
|
|
94
|
-
db: z.ZodObject<{
|
|
95
|
-
tableName: z.ZodString;
|
|
96
|
-
identifierField: z.ZodOptional<z.ZodString>;
|
|
97
|
-
photoNameField: z.ZodOptional<z.ZodString>;
|
|
98
|
-
metaField: z.ZodOptional<z.ZodString>;
|
|
99
|
-
}, z.core.$strict>;
|
|
100
|
-
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
-
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
102
|
-
width: z.ZodNumber;
|
|
103
|
-
height: z.ZodNumber;
|
|
104
|
-
crop: z.ZodBoolean;
|
|
105
|
-
quality: z.ZodNumber;
|
|
106
|
-
}, z.core.$strict>>;
|
|
107
|
-
}, z.core.$strict>>;
|
|
108
|
-
hooks: z.ZodOptional<z.ZodCustom<Hooks, Hooks>>;
|
|
109
|
-
}, z.core.$strict>;
|
|
110
|
-
export declare function validateSectionConfig(config: BaseSectionOptions): void;
|
|
111
|
-
export type AfterUpdateContext = {
|
|
112
|
-
itemId?: string | number;
|
|
113
|
-
values: Record<string, unknown>;
|
|
114
|
-
section: Section;
|
|
115
|
-
};
|
|
116
|
-
export type Hooks = {
|
|
117
|
-
afterUpdate?: (ctx: AfterUpdateContext) => Promise<void> | void;
|
|
118
|
-
};
|
|
119
|
-
export declare abstract class Section<TExtraSectionConfig extends object = object> {
|
|
120
|
-
static readonly [entityKind]: string;
|
|
121
|
-
abstract readonly type: 'has_items' | 'simple' | 'category';
|
|
122
|
-
name: string;
|
|
123
|
-
order: number;
|
|
124
|
-
icon: string | undefined;
|
|
125
|
-
readonly: boolean;
|
|
126
|
-
gallery?: {
|
|
127
|
-
db: {
|
|
128
|
-
tableName: string;
|
|
129
|
-
referenceIdentifierField: string;
|
|
130
|
-
photoNameField: string;
|
|
131
|
-
metaField: string;
|
|
132
|
-
};
|
|
133
|
-
watermark?: boolean;
|
|
134
|
-
thumbnail?: {
|
|
135
|
-
width: number;
|
|
136
|
-
height: number;
|
|
137
|
-
crop: boolean;
|
|
138
|
-
quality: number;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
private _fields;
|
|
142
|
-
private readonly _fieldGroupConfigs;
|
|
143
|
-
private readonly _hasFieldGroups;
|
|
144
|
-
private _fieldGroups;
|
|
145
|
-
protected _fieldConfigs: FieldConfig[] | undefined;
|
|
146
|
-
/**
|
|
147
|
-
* A helper property to access the field configs.
|
|
148
|
-
* Sometimes it's handy to access the field configs without building the actual fields array.
|
|
149
|
-
*/
|
|
150
|
-
get fieldConfigs(): FieldConfig[];
|
|
151
|
-
get fieldGroups(): FieldGroup[];
|
|
152
|
-
get fields(): Field[];
|
|
153
|
-
set fields(value: Field[]);
|
|
154
|
-
readonly db: {
|
|
155
|
-
table: string;
|
|
156
|
-
identifier: NumberFieldConfigType | TextFieldConfig;
|
|
157
|
-
orderByField?: FieldConfig;
|
|
158
|
-
primaryKey: FieldConfig[];
|
|
159
|
-
foreignKeys?: {
|
|
160
|
-
columns: FieldConfig[];
|
|
161
|
-
foreignColumns: FieldConfig[];
|
|
162
|
-
name: string;
|
|
163
|
-
}[];
|
|
164
|
-
fulltext?: {
|
|
165
|
-
columns: FieldConfig[];
|
|
166
|
-
name?: string;
|
|
167
|
-
}[];
|
|
168
|
-
index?: {
|
|
169
|
-
columns: FieldConfig[];
|
|
170
|
-
name?: string;
|
|
171
|
-
}[];
|
|
172
|
-
unique: {
|
|
173
|
-
columns: FieldConfig[];
|
|
174
|
-
name?: string;
|
|
175
|
-
}[];
|
|
176
|
-
};
|
|
177
|
-
abstract title: any;
|
|
178
|
-
variants?: Variant[] | undefined;
|
|
179
|
-
hooks?: Hooks;
|
|
180
|
-
constructor(config: BaseSectionOptions<TExtraSectionConfig>);
|
|
181
|
-
/**
|
|
182
|
-
* Returns whether this section has field groups.
|
|
183
|
-
* Value is cached during construction for optimal performance.
|
|
184
|
-
*/
|
|
185
|
-
private get hasFieldGroups();
|
|
186
|
-
private buildFieldGroups;
|
|
187
|
-
buildFields(): void;
|
|
188
|
-
/**
|
|
189
|
-
* Helper function to resolve a field config to an instance
|
|
190
|
-
* by calling the build() method on the config
|
|
191
|
-
* @param config - The field config to resolve
|
|
192
|
-
* @returns The field instance
|
|
193
|
-
* @throws An error if the field config does not have a build() method
|
|
194
|
-
*/
|
|
195
|
-
private resolveField;
|
|
196
|
-
}
|
|
197
|
-
export type BaseSectionOptions<TExtraSectionConfig extends object = object> = z.infer<typeof baseSectionOptionsSchema> & TExtraSectionConfig;
|
|
198
|
-
/**
|
|
199
|
-
* Helper function to ensure a section config has a db identifier field
|
|
200
|
-
* If db.identifier is missing, creates a default 'id' number field config
|
|
201
|
-
* and prepends it to fields and sets it as db.identifier
|
|
202
|
-
*
|
|
203
|
-
* @param section - Section config that may or may not have db.identifier
|
|
204
|
-
* @returns Section config with db.identifier guaranteed to exist
|
|
205
|
-
*/
|
|
206
|
-
export declare function ensureSectionDbIdentifier<T extends BaseSectionOptions>(section: T): T & {
|
|
207
|
-
db: T['db'] & {
|
|
208
|
-
identifier: FieldConfig;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* Helper function to normalize gallery config with default values
|
|
213
|
-
* Sets defaults for identifierField, photoNameField, and metaField if not provided
|
|
214
|
-
*
|
|
215
|
-
* @param section - Section config that may or may not have gallery config
|
|
216
|
-
* @returns Section config with normalized gallery config
|
|
217
|
-
*/
|
|
218
|
-
export declare function ensureSectionGallery<T extends BaseSectionOptions>(section: T): T;
|
|
219
|
-
export declare function resolveFieldsAndFieldGroups(config: {
|
|
220
|
-
fields: FieldConfig[];
|
|
221
|
-
fieldGroups: FieldGroupConfig[];
|
|
222
|
-
}): {
|
|
223
|
-
fields: FieldConfig[];
|
|
224
|
-
fieldGroups: FieldGroupConfig[];
|
|
225
|
-
};
|
|
1
|
+
import { Field } from '../fields/index.js';
|
|
2
|
+
import { entityKind } from '../helpers/index.js';
|
|
3
|
+
import type { NumberFieldConfigType, TextFieldConfig } from '../fields/index.js';
|
|
4
|
+
import type { Variant } from '../types/index.js';
|
|
5
|
+
import type { FieldConfig } from '../fields/index.js';
|
|
6
|
+
import type { FieldGroup, FieldGroupConfig } from '../fields/field-group.js';
|
|
7
|
+
import * as z from 'zod';
|
|
8
|
+
export declare const fieldConfigSchema: z.ZodCustom<FieldConfig, FieldConfig>;
|
|
9
|
+
export declare const FieldGroupConfigSchema: z.ZodCustom<FieldGroupConfig, FieldGroupConfig>;
|
|
10
|
+
export declare const baseSectionOptionsSchema: z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
order: z.ZodNumber;
|
|
13
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
14
|
+
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
15
|
+
gallery: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
db: z.ZodObject<{
|
|
17
|
+
tableName: z.ZodString;
|
|
18
|
+
identifierField: z.ZodOptional<z.ZodString>;
|
|
19
|
+
photoNameField: z.ZodOptional<z.ZodString>;
|
|
20
|
+
metaField: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
width: z.ZodNumber;
|
|
25
|
+
height: z.ZodNumber;
|
|
26
|
+
crop: z.ZodBoolean;
|
|
27
|
+
quality: z.ZodNumber;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
}, z.core.$strict>>;
|
|
30
|
+
db: z.ZodObject<{
|
|
31
|
+
table: z.ZodString;
|
|
32
|
+
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
33
|
+
orderByField: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
34
|
+
primaryKey: z.ZodOptional<z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>>;
|
|
35
|
+
foreignKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
|
+
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
37
|
+
foreignColumns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
}, z.core.$strict>>>;
|
|
40
|
+
index: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
|
+
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
42
|
+
name: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strict>>>;
|
|
44
|
+
unique: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
45
|
+
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
46
|
+
name: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strict>>>;
|
|
48
|
+
fulltext: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
+
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
50
|
+
name: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strict>>>;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
fields: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
54
|
+
fieldGroups: z.ZodOptional<z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>>;
|
|
55
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<Variant, Variant>>>;
|
|
56
|
+
hooks: z.ZodOptional<z.ZodCustom<Hooks, Hooks>>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
/**
|
|
59
|
+
* This is the options schema for the helper functions that create section configs
|
|
60
|
+
* We omit the fields and fieldGroups properties from the baseSectionOptionsSchema
|
|
61
|
+
* and change the fields to be an array of field configs or field group configs
|
|
62
|
+
*/
|
|
63
|
+
export declare const baseHelperFunctionOptionsSchema: z.ZodObject<{
|
|
64
|
+
fields: z.ZodUnion<[z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>, z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>]>;
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
db: z.ZodObject<{
|
|
67
|
+
table: z.ZodString;
|
|
68
|
+
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
69
|
+
orderByField: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
70
|
+
primaryKey: z.ZodOptional<z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>>;
|
|
71
|
+
foreignKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
+
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
73
|
+
foreignColumns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
}, z.core.$strict>>>;
|
|
76
|
+
index: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
|
+
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
78
|
+
name: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strict>>>;
|
|
80
|
+
unique: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
|
+
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
82
|
+
name: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strict>>>;
|
|
84
|
+
fulltext: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
85
|
+
columns: z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
86
|
+
name: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, z.core.$strict>>>;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<Variant, Variant>>>;
|
|
90
|
+
order: z.ZodNumber;
|
|
91
|
+
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
92
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
93
|
+
gallery: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
db: z.ZodObject<{
|
|
95
|
+
tableName: z.ZodString;
|
|
96
|
+
identifierField: z.ZodOptional<z.ZodString>;
|
|
97
|
+
photoNameField: z.ZodOptional<z.ZodString>;
|
|
98
|
+
metaField: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
width: z.ZodNumber;
|
|
103
|
+
height: z.ZodNumber;
|
|
104
|
+
crop: z.ZodBoolean;
|
|
105
|
+
quality: z.ZodNumber;
|
|
106
|
+
}, z.core.$strict>>;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
hooks: z.ZodOptional<z.ZodCustom<Hooks, Hooks>>;
|
|
109
|
+
}, z.core.$strict>;
|
|
110
|
+
export declare function validateSectionConfig(config: BaseSectionOptions): void;
|
|
111
|
+
export type AfterUpdateContext = {
|
|
112
|
+
itemId?: string | number;
|
|
113
|
+
values: Record<string, unknown>;
|
|
114
|
+
section: Section;
|
|
115
|
+
};
|
|
116
|
+
export type Hooks = {
|
|
117
|
+
afterUpdate?: (ctx: AfterUpdateContext) => Promise<void> | void;
|
|
118
|
+
};
|
|
119
|
+
export declare abstract class Section<TExtraSectionConfig extends object = object> {
|
|
120
|
+
static readonly [entityKind]: string;
|
|
121
|
+
abstract readonly type: 'has_items' | 'simple' | 'category';
|
|
122
|
+
name: string;
|
|
123
|
+
order: number;
|
|
124
|
+
icon: string | undefined;
|
|
125
|
+
readonly: boolean;
|
|
126
|
+
gallery?: {
|
|
127
|
+
db: {
|
|
128
|
+
tableName: string;
|
|
129
|
+
referenceIdentifierField: string;
|
|
130
|
+
photoNameField: string;
|
|
131
|
+
metaField: string;
|
|
132
|
+
};
|
|
133
|
+
watermark?: boolean;
|
|
134
|
+
thumbnail?: {
|
|
135
|
+
width: number;
|
|
136
|
+
height: number;
|
|
137
|
+
crop: boolean;
|
|
138
|
+
quality: number;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
private _fields;
|
|
142
|
+
private readonly _fieldGroupConfigs;
|
|
143
|
+
private readonly _hasFieldGroups;
|
|
144
|
+
private _fieldGroups;
|
|
145
|
+
protected _fieldConfigs: FieldConfig[] | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* A helper property to access the field configs.
|
|
148
|
+
* Sometimes it's handy to access the field configs without building the actual fields array.
|
|
149
|
+
*/
|
|
150
|
+
get fieldConfigs(): FieldConfig[];
|
|
151
|
+
get fieldGroups(): FieldGroup[];
|
|
152
|
+
get fields(): Field[];
|
|
153
|
+
set fields(value: Field[]);
|
|
154
|
+
readonly db: {
|
|
155
|
+
table: string;
|
|
156
|
+
identifier: NumberFieldConfigType | TextFieldConfig;
|
|
157
|
+
orderByField?: FieldConfig;
|
|
158
|
+
primaryKey: FieldConfig[];
|
|
159
|
+
foreignKeys?: {
|
|
160
|
+
columns: FieldConfig[];
|
|
161
|
+
foreignColumns: FieldConfig[];
|
|
162
|
+
name: string;
|
|
163
|
+
}[];
|
|
164
|
+
fulltext?: {
|
|
165
|
+
columns: FieldConfig[];
|
|
166
|
+
name?: string;
|
|
167
|
+
}[];
|
|
168
|
+
index?: {
|
|
169
|
+
columns: FieldConfig[];
|
|
170
|
+
name?: string;
|
|
171
|
+
}[];
|
|
172
|
+
unique: {
|
|
173
|
+
columns: FieldConfig[];
|
|
174
|
+
name?: string;
|
|
175
|
+
}[];
|
|
176
|
+
};
|
|
177
|
+
abstract title: any;
|
|
178
|
+
variants?: Variant[] | undefined;
|
|
179
|
+
hooks?: Hooks;
|
|
180
|
+
constructor(config: BaseSectionOptions<TExtraSectionConfig>);
|
|
181
|
+
/**
|
|
182
|
+
* Returns whether this section has field groups.
|
|
183
|
+
* Value is cached during construction for optimal performance.
|
|
184
|
+
*/
|
|
185
|
+
private get hasFieldGroups();
|
|
186
|
+
private buildFieldGroups;
|
|
187
|
+
buildFields(): void;
|
|
188
|
+
/**
|
|
189
|
+
* Helper function to resolve a field config to an instance
|
|
190
|
+
* by calling the build() method on the config
|
|
191
|
+
* @param config - The field config to resolve
|
|
192
|
+
* @returns The field instance
|
|
193
|
+
* @throws An error if the field config does not have a build() method
|
|
194
|
+
*/
|
|
195
|
+
private resolveField;
|
|
196
|
+
}
|
|
197
|
+
export type BaseSectionOptions<TExtraSectionConfig extends object = object> = z.infer<typeof baseSectionOptionsSchema> & TExtraSectionConfig;
|
|
198
|
+
/**
|
|
199
|
+
* Helper function to ensure a section config has a db identifier field
|
|
200
|
+
* If db.identifier is missing, creates a default 'id' number field config
|
|
201
|
+
* and prepends it to fields and sets it as db.identifier
|
|
202
|
+
*
|
|
203
|
+
* @param section - Section config that may or may not have db.identifier
|
|
204
|
+
* @returns Section config with db.identifier guaranteed to exist
|
|
205
|
+
*/
|
|
206
|
+
export declare function ensureSectionDbIdentifier<T extends BaseSectionOptions>(section: T): T & {
|
|
207
|
+
db: T['db'] & {
|
|
208
|
+
identifier: FieldConfig;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Helper function to normalize gallery config with default values
|
|
213
|
+
* Sets defaults for identifierField, photoNameField, and metaField if not provided
|
|
214
|
+
*
|
|
215
|
+
* @param section - Section config that may or may not have gallery config
|
|
216
|
+
* @returns Section config with normalized gallery config
|
|
217
|
+
*/
|
|
218
|
+
export declare function ensureSectionGallery<T extends BaseSectionOptions>(section: T): T;
|
|
219
|
+
export declare function resolveFieldsAndFieldGroups(config: {
|
|
220
|
+
fields: FieldConfig[];
|
|
221
|
+
fieldGroups: FieldGroupConfig[];
|
|
222
|
+
}): {
|
|
223
|
+
fields: FieldConfig[];
|
|
224
|
+
fieldGroups: FieldGroupConfig[];
|
|
225
|
+
};
|
|
226
226
|
//# sourceMappingURL=section.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/core/sections/section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/core/sections/section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEhF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAE5E,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAKxB,eAAO,MAAM,iBAAiB,uCAA0B,CAAA;AACxD,eAAO,MAAM,sBAAsB,iDAA+B,CAAA;AAIlE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmEnC,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAa1C,CAAA;AAEF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAKtE;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,OAAO,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,MAAM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