strapi-plugin-navigation 3.0.1 → 3.0.2
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/admin/index.js
CHANGED
|
@@ -50875,7 +50875,8 @@ const contentTypeFieldTypeSchema = z__namespace.enum([
|
|
|
50875
50875
|
"float",
|
|
50876
50876
|
"decimal",
|
|
50877
50877
|
"json",
|
|
50878
|
-
"relation"
|
|
50878
|
+
"relation",
|
|
50879
|
+
"media"
|
|
50879
50880
|
]);
|
|
50880
50881
|
const simpleContentTypeAttribute = contentTypeAttributeValidator.extend({
|
|
50881
50882
|
type: contentTypeFieldTypeSchema
|
|
@@ -50895,7 +50896,7 @@ const contentTypeDynamicZoneAttribute = z__namespace.object({
|
|
|
50895
50896
|
});
|
|
50896
50897
|
const contentTypeMediaAttribute = z__namespace.object({
|
|
50897
50898
|
media: z__namespace.literal("media"),
|
|
50898
|
-
allowedTypes: z__namespace.enum(["images", "videos", "files"]).array(),
|
|
50899
|
+
allowedTypes: z__namespace.enum(["images", "videos", "audios", "files"]).array(),
|
|
50899
50900
|
required: z__namespace.boolean().optional()
|
|
50900
50901
|
});
|
|
50901
50902
|
const contentTypeRelationType = z__namespace.enum([
|
package/dist/admin/index.mjs
CHANGED
|
@@ -50855,7 +50855,8 @@ const contentTypeFieldTypeSchema = z.enum([
|
|
|
50855
50855
|
"float",
|
|
50856
50856
|
"decimal",
|
|
50857
50857
|
"json",
|
|
50858
|
-
"relation"
|
|
50858
|
+
"relation",
|
|
50859
|
+
"media"
|
|
50859
50860
|
]);
|
|
50860
50861
|
const simpleContentTypeAttribute = contentTypeAttributeValidator.extend({
|
|
50861
50862
|
type: contentTypeFieldTypeSchema
|
|
@@ -50875,7 +50876,7 @@ const contentTypeDynamicZoneAttribute = z.object({
|
|
|
50875
50876
|
});
|
|
50876
50877
|
const contentTypeMediaAttribute = z.object({
|
|
50877
50878
|
media: z.literal("media"),
|
|
50878
|
-
allowedTypes: z.enum(["images", "videos", "files"]).array(),
|
|
50879
|
+
allowedTypes: z.enum(["images", "videos", "audios", "files"]).array(),
|
|
50879
50880
|
required: z.boolean().optional()
|
|
50880
50881
|
});
|
|
50881
50882
|
const contentTypeRelationType = z.enum([
|
|
@@ -966,7 +966,7 @@ export declare const contentTypeAttributeValidator: z.ZodObject<{
|
|
|
966
966
|
configurable?: boolean | undefined;
|
|
967
967
|
}>;
|
|
968
968
|
export type contentTypeFieldTypeSchema = z.infer<typeof contentTypeFieldTypeSchema>;
|
|
969
|
-
export declare const contentTypeFieldTypeSchema: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation"]>;
|
|
969
|
+
export declare const contentTypeFieldTypeSchema: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
|
|
970
970
|
export type SimpleContentTypeAttribute = z.infer<typeof simpleContentTypeAttribute>;
|
|
971
971
|
export declare const simpleContentTypeAttribute: z.ZodObject<z.objectUtil.extendShape<{
|
|
972
972
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -978,9 +978,9 @@ export declare const simpleContentTypeAttribute: z.ZodObject<z.objectUtil.extend
|
|
|
978
978
|
configurable: z.ZodOptional<z.ZodBoolean>;
|
|
979
979
|
default: z.ZodOptional<z.ZodAny>;
|
|
980
980
|
}, {
|
|
981
|
-
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation"]>;
|
|
981
|
+
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
|
|
982
982
|
}>, "strip", z.ZodTypeAny, {
|
|
983
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
983
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
984
984
|
max?: number | undefined;
|
|
985
985
|
min?: number | undefined;
|
|
986
986
|
maxLength?: number | undefined;
|
|
@@ -990,7 +990,7 @@ export declare const simpleContentTypeAttribute: z.ZodObject<z.objectUtil.extend
|
|
|
990
990
|
private?: boolean | undefined;
|
|
991
991
|
configurable?: boolean | undefined;
|
|
992
992
|
}, {
|
|
993
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
993
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
994
994
|
max?: number | undefined;
|
|
995
995
|
min?: number | undefined;
|
|
996
996
|
maxLength?: number | undefined;
|
|
@@ -1064,15 +1064,15 @@ export declare const contentTypeDynamicZoneAttribute: z.ZodObject<{
|
|
|
1064
1064
|
export type ContentTypeMediaAttribute = z.infer<typeof contentTypeMediaAttribute>;
|
|
1065
1065
|
export declare const contentTypeMediaAttribute: z.ZodObject<{
|
|
1066
1066
|
media: z.ZodLiteral<"media">;
|
|
1067
|
-
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "files"]>, "many">;
|
|
1067
|
+
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">;
|
|
1068
1068
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1069
1069
|
}, "strip", z.ZodTypeAny, {
|
|
1070
1070
|
media: "media";
|
|
1071
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1071
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1072
1072
|
required?: boolean | undefined;
|
|
1073
1073
|
}, {
|
|
1074
1074
|
media: "media";
|
|
1075
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1075
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1076
1076
|
required?: boolean | undefined;
|
|
1077
1077
|
}>;
|
|
1078
1078
|
export type ContentTypeRelationType = z.infer<typeof contentTypeRelationType>;
|
|
@@ -1108,9 +1108,9 @@ export declare const contentTypeAttributes: z.ZodRecord<z.ZodString, z.ZodUnion<
|
|
|
1108
1108
|
configurable: z.ZodOptional<z.ZodBoolean>;
|
|
1109
1109
|
default: z.ZodOptional<z.ZodAny>;
|
|
1110
1110
|
}, {
|
|
1111
|
-
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation"]>;
|
|
1111
|
+
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
|
|
1112
1112
|
}>, "strip", z.ZodTypeAny, {
|
|
1113
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1113
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1114
1114
|
max?: number | undefined;
|
|
1115
1115
|
min?: number | undefined;
|
|
1116
1116
|
maxLength?: number | undefined;
|
|
@@ -1120,7 +1120,7 @@ export declare const contentTypeAttributes: z.ZodRecord<z.ZodString, z.ZodUnion<
|
|
|
1120
1120
|
private?: boolean | undefined;
|
|
1121
1121
|
configurable?: boolean | undefined;
|
|
1122
1122
|
}, {
|
|
1123
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1123
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1124
1124
|
max?: number | undefined;
|
|
1125
1125
|
min?: number | undefined;
|
|
1126
1126
|
maxLength?: number | undefined;
|
|
@@ -1204,15 +1204,15 @@ export declare const contentTypeAttributes: z.ZodRecord<z.ZodString, z.ZodUnion<
|
|
|
1204
1204
|
inversedBy?: string | undefined;
|
|
1205
1205
|
}>, z.ZodObject<{
|
|
1206
1206
|
media: z.ZodLiteral<"media">;
|
|
1207
|
-
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "files"]>, "many">;
|
|
1207
|
+
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">;
|
|
1208
1208
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1209
1209
|
}, "strip", z.ZodTypeAny, {
|
|
1210
1210
|
media: "media";
|
|
1211
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1211
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1212
1212
|
required?: boolean | undefined;
|
|
1213
1213
|
}, {
|
|
1214
1214
|
media: "media";
|
|
1215
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1215
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1216
1216
|
required?: boolean | undefined;
|
|
1217
1217
|
}>]>>;
|
|
1218
1218
|
export type ContentTypeFullSchema = z.infer<typeof contentTypeFullSchema>;
|
|
@@ -1261,9 +1261,9 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
1261
1261
|
configurable: z.ZodOptional<z.ZodBoolean>;
|
|
1262
1262
|
default: z.ZodOptional<z.ZodAny>;
|
|
1263
1263
|
}, {
|
|
1264
|
-
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation"]>;
|
|
1264
|
+
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
|
|
1265
1265
|
}>, "strip", z.ZodTypeAny, {
|
|
1266
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1266
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1267
1267
|
max?: number | undefined;
|
|
1268
1268
|
min?: number | undefined;
|
|
1269
1269
|
maxLength?: number | undefined;
|
|
@@ -1273,7 +1273,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
1273
1273
|
private?: boolean | undefined;
|
|
1274
1274
|
configurable?: boolean | undefined;
|
|
1275
1275
|
}, {
|
|
1276
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1276
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1277
1277
|
max?: number | undefined;
|
|
1278
1278
|
min?: number | undefined;
|
|
1279
1279
|
maxLength?: number | undefined;
|
|
@@ -1357,15 +1357,15 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
1357
1357
|
inversedBy?: string | undefined;
|
|
1358
1358
|
}>, z.ZodObject<{
|
|
1359
1359
|
media: z.ZodLiteral<"media">;
|
|
1360
|
-
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "files"]>, "many">;
|
|
1360
|
+
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">;
|
|
1361
1361
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1362
1362
|
}, "strip", z.ZodTypeAny, {
|
|
1363
1363
|
media: "media";
|
|
1364
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1364
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1365
1365
|
required?: boolean | undefined;
|
|
1366
1366
|
}, {
|
|
1367
1367
|
media: "media";
|
|
1368
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1368
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1369
1369
|
required?: boolean | undefined;
|
|
1370
1370
|
}>]>>;
|
|
1371
1371
|
actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -1398,7 +1398,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
1398
1398
|
description?: string | undefined;
|
|
1399
1399
|
};
|
|
1400
1400
|
attributes: Record<string, {
|
|
1401
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1401
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1402
1402
|
max?: number | undefined;
|
|
1403
1403
|
min?: number | undefined;
|
|
1404
1404
|
maxLength?: number | undefined;
|
|
@@ -1427,7 +1427,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
1427
1427
|
components: string[];
|
|
1428
1428
|
} | {
|
|
1429
1429
|
media: "media";
|
|
1430
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1430
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1431
1431
|
required?: boolean | undefined;
|
|
1432
1432
|
} | {
|
|
1433
1433
|
target: string;
|
|
@@ -1464,7 +1464,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
1464
1464
|
description?: string | undefined;
|
|
1465
1465
|
};
|
|
1466
1466
|
attributes: Record<string, {
|
|
1467
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1467
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1468
1468
|
max?: number | undefined;
|
|
1469
1469
|
min?: number | undefined;
|
|
1470
1470
|
maxLength?: number | undefined;
|
|
@@ -1493,7 +1493,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
1493
1493
|
components: string[];
|
|
1494
1494
|
} | {
|
|
1495
1495
|
media: "media";
|
|
1496
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1496
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1497
1497
|
required?: boolean | undefined;
|
|
1498
1498
|
} | {
|
|
1499
1499
|
target: string;
|
|
@@ -1565,9 +1565,9 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
1565
1565
|
configurable: z.ZodOptional<z.ZodBoolean>;
|
|
1566
1566
|
default: z.ZodOptional<z.ZodAny>;
|
|
1567
1567
|
}, {
|
|
1568
|
-
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation"]>;
|
|
1568
|
+
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
|
|
1569
1569
|
}>, "strip", z.ZodTypeAny, {
|
|
1570
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1570
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1571
1571
|
max?: number | undefined;
|
|
1572
1572
|
min?: number | undefined;
|
|
1573
1573
|
maxLength?: number | undefined;
|
|
@@ -1577,7 +1577,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
1577
1577
|
private?: boolean | undefined;
|
|
1578
1578
|
configurable?: boolean | undefined;
|
|
1579
1579
|
}, {
|
|
1580
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1580
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1581
1581
|
max?: number | undefined;
|
|
1582
1582
|
min?: number | undefined;
|
|
1583
1583
|
maxLength?: number | undefined;
|
|
@@ -1661,15 +1661,15 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
1661
1661
|
inversedBy?: string | undefined;
|
|
1662
1662
|
}>, z.ZodObject<{
|
|
1663
1663
|
media: z.ZodLiteral<"media">;
|
|
1664
|
-
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "files"]>, "many">;
|
|
1664
|
+
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">;
|
|
1665
1665
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1666
1666
|
}, "strip", z.ZodTypeAny, {
|
|
1667
1667
|
media: "media";
|
|
1668
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1668
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1669
1669
|
required?: boolean | undefined;
|
|
1670
1670
|
}, {
|
|
1671
1671
|
media: "media";
|
|
1672
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1672
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1673
1673
|
required?: boolean | undefined;
|
|
1674
1674
|
}>]>>;
|
|
1675
1675
|
actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -1700,7 +1700,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
1700
1700
|
description?: string | undefined;
|
|
1701
1701
|
};
|
|
1702
1702
|
attributes: Record<string, {
|
|
1703
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1703
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1704
1704
|
max?: number | undefined;
|
|
1705
1705
|
min?: number | undefined;
|
|
1706
1706
|
maxLength?: number | undefined;
|
|
@@ -1729,7 +1729,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
1729
1729
|
components: string[];
|
|
1730
1730
|
} | {
|
|
1731
1731
|
media: "media";
|
|
1732
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1732
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1733
1733
|
required?: boolean | undefined;
|
|
1734
1734
|
} | {
|
|
1735
1735
|
target: string;
|
|
@@ -1753,7 +1753,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
1753
1753
|
description?: string | undefined;
|
|
1754
1754
|
};
|
|
1755
1755
|
attributes: Record<string, {
|
|
1756
|
-
type: "string" | "boolean" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1756
|
+
type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
1757
1757
|
max?: number | undefined;
|
|
1758
1758
|
min?: number | undefined;
|
|
1759
1759
|
maxLength?: number | undefined;
|
|
@@ -1782,7 +1782,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
1782
1782
|
components: string[];
|
|
1783
1783
|
} | {
|
|
1784
1784
|
media: "media";
|
|
1785
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
1785
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
1786
1786
|
required?: boolean | undefined;
|
|
1787
1787
|
} | {
|
|
1788
1788
|
target: string;
|
package/dist/server/index.js
CHANGED
|
@@ -139,7 +139,8 @@ const contentTypeFieldTypeSchema = z__namespace.enum([
|
|
|
139
139
|
"float",
|
|
140
140
|
"decimal",
|
|
141
141
|
"json",
|
|
142
|
-
"relation"
|
|
142
|
+
"relation",
|
|
143
|
+
"media"
|
|
143
144
|
]);
|
|
144
145
|
const simpleContentTypeAttribute = contentTypeAttributeValidator.extend({
|
|
145
146
|
type: contentTypeFieldTypeSchema
|
|
@@ -162,7 +163,7 @@ const contentTypeUidAttribute = z__namespace.object({
|
|
|
162
163
|
});
|
|
163
164
|
const contentTypeMediaAttribute = z__namespace.object({
|
|
164
165
|
type: z__namespace.literal("media"),
|
|
165
|
-
allowedTypes: z__namespace.enum(["images", "videos", "files"]).array(),
|
|
166
|
+
allowedTypes: z__namespace.enum(["images", "videos", "audios", "files"]).array(),
|
|
166
167
|
required: z__namespace.boolean().optional()
|
|
167
168
|
});
|
|
168
169
|
const contentTypeRelationType = z__namespace.enum(["oneToOne", "oneToMany", "manyToOne", "manyToMany", "morphToMany", "manyToMorph"]);
|
package/dist/server/index.mjs
CHANGED
|
@@ -101,7 +101,8 @@ const contentTypeFieldTypeSchema = z.enum([
|
|
|
101
101
|
"float",
|
|
102
102
|
"decimal",
|
|
103
103
|
"json",
|
|
104
|
-
"relation"
|
|
104
|
+
"relation",
|
|
105
|
+
"media"
|
|
105
106
|
]);
|
|
106
107
|
const simpleContentTypeAttribute = contentTypeAttributeValidator.extend({
|
|
107
108
|
type: contentTypeFieldTypeSchema
|
|
@@ -124,7 +125,7 @@ const contentTypeUidAttribute = z.object({
|
|
|
124
125
|
});
|
|
125
126
|
const contentTypeMediaAttribute = z.object({
|
|
126
127
|
type: z.literal("media"),
|
|
127
|
-
allowedTypes: z.enum(["images", "videos", "files"]).array(),
|
|
128
|
+
allowedTypes: z.enum(["images", "videos", "audios", "files"]).array(),
|
|
128
129
|
required: z.boolean().optional()
|
|
129
130
|
});
|
|
130
131
|
const contentTypeRelationType = z.enum(["oneToOne", "oneToMany", "manyToOne", "manyToMany", "morphToMany", "manyToMorph"]);
|
|
@@ -51,7 +51,7 @@ export declare const contentTypeAttributeValidator: z.ZodObject<{
|
|
|
51
51
|
default?: any;
|
|
52
52
|
}>;
|
|
53
53
|
export type contentTypeFieldTypeSchema = z.infer<typeof contentTypeFieldTypeSchema>;
|
|
54
|
-
export declare const contentTypeFieldTypeSchema: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation"]>;
|
|
54
|
+
export declare const contentTypeFieldTypeSchema: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
|
|
55
55
|
export type SimpleContentTypeAttribute = z.infer<typeof simpleContentTypeAttribute>;
|
|
56
56
|
export declare const simpleContentTypeAttribute: z.ZodObject<z.objectUtil.extendShape<{
|
|
57
57
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -63,9 +63,9 @@ export declare const simpleContentTypeAttribute: z.ZodObject<z.objectUtil.extend
|
|
|
63
63
|
configurable: z.ZodOptional<z.ZodBoolean>;
|
|
64
64
|
default: z.ZodOptional<z.ZodAny>;
|
|
65
65
|
}, {
|
|
66
|
-
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation"]>;
|
|
66
|
+
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
|
|
67
67
|
}>, "strip", z.ZodTypeAny, {
|
|
68
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
68
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
69
69
|
required?: boolean | undefined;
|
|
70
70
|
min?: number | undefined;
|
|
71
71
|
max?: number | undefined;
|
|
@@ -75,7 +75,7 @@ export declare const simpleContentTypeAttribute: z.ZodObject<z.objectUtil.extend
|
|
|
75
75
|
configurable?: boolean | undefined;
|
|
76
76
|
default?: any;
|
|
77
77
|
}, {
|
|
78
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
78
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
79
79
|
required?: boolean | undefined;
|
|
80
80
|
min?: number | undefined;
|
|
81
81
|
max?: number | undefined;
|
|
@@ -157,15 +157,15 @@ export declare const contentTypeUidAttribute: z.ZodObject<{
|
|
|
157
157
|
export type ContentTypeMediaAttribute = z.infer<typeof contentTypeMediaAttribute>;
|
|
158
158
|
export declare const contentTypeMediaAttribute: z.ZodObject<{
|
|
159
159
|
type: z.ZodLiteral<"media">;
|
|
160
|
-
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "files"]>, "many">;
|
|
160
|
+
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">;
|
|
161
161
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
162
162
|
}, "strip", z.ZodTypeAny, {
|
|
163
163
|
type: "media";
|
|
164
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
164
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
165
165
|
required?: boolean | undefined;
|
|
166
166
|
}, {
|
|
167
167
|
type: "media";
|
|
168
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
168
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
169
169
|
required?: boolean | undefined;
|
|
170
170
|
}>;
|
|
171
171
|
export type ContentTypeRelationType = z.infer<typeof contentTypeRelationType>;
|
|
@@ -201,9 +201,9 @@ export declare const contentTypeAttributes: z.ZodRecord<z.ZodString, z.ZodUnion<
|
|
|
201
201
|
configurable: z.ZodOptional<z.ZodBoolean>;
|
|
202
202
|
default: z.ZodOptional<z.ZodAny>;
|
|
203
203
|
}, {
|
|
204
|
-
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation"]>;
|
|
204
|
+
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
|
|
205
205
|
}>, "strip", z.ZodTypeAny, {
|
|
206
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
206
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
207
207
|
required?: boolean | undefined;
|
|
208
208
|
min?: number | undefined;
|
|
209
209
|
max?: number | undefined;
|
|
@@ -213,7 +213,7 @@ export declare const contentTypeAttributes: z.ZodRecord<z.ZodString, z.ZodUnion<
|
|
|
213
213
|
configurable?: boolean | undefined;
|
|
214
214
|
default?: any;
|
|
215
215
|
}, {
|
|
216
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
216
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
217
217
|
required?: boolean | undefined;
|
|
218
218
|
min?: number | undefined;
|
|
219
219
|
max?: number | undefined;
|
|
@@ -297,15 +297,15 @@ export declare const contentTypeAttributes: z.ZodRecord<z.ZodString, z.ZodUnion<
|
|
|
297
297
|
inversedBy?: string | undefined;
|
|
298
298
|
}>, z.ZodObject<{
|
|
299
299
|
type: z.ZodLiteral<"media">;
|
|
300
|
-
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "files"]>, "many">;
|
|
300
|
+
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">;
|
|
301
301
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
302
302
|
}, "strip", z.ZodTypeAny, {
|
|
303
303
|
type: "media";
|
|
304
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
304
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
305
305
|
required?: boolean | undefined;
|
|
306
306
|
}, {
|
|
307
307
|
type: "media";
|
|
308
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
308
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
309
309
|
required?: boolean | undefined;
|
|
310
310
|
}>, z.ZodObject<{
|
|
311
311
|
type: z.ZodLiteral<"uid">;
|
|
@@ -360,9 +360,9 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
360
360
|
configurable: z.ZodOptional<z.ZodBoolean>;
|
|
361
361
|
default: z.ZodOptional<z.ZodAny>;
|
|
362
362
|
}, {
|
|
363
|
-
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation"]>;
|
|
363
|
+
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
|
|
364
364
|
}>, "strip", z.ZodTypeAny, {
|
|
365
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
365
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
366
366
|
required?: boolean | undefined;
|
|
367
367
|
min?: number | undefined;
|
|
368
368
|
max?: number | undefined;
|
|
@@ -372,7 +372,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
372
372
|
configurable?: boolean | undefined;
|
|
373
373
|
default?: any;
|
|
374
374
|
}, {
|
|
375
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
375
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
376
376
|
required?: boolean | undefined;
|
|
377
377
|
min?: number | undefined;
|
|
378
378
|
max?: number | undefined;
|
|
@@ -456,15 +456,15 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
456
456
|
inversedBy?: string | undefined;
|
|
457
457
|
}>, z.ZodObject<{
|
|
458
458
|
type: z.ZodLiteral<"media">;
|
|
459
|
-
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "files"]>, "many">;
|
|
459
|
+
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">;
|
|
460
460
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
461
461
|
}, "strip", z.ZodTypeAny, {
|
|
462
462
|
type: "media";
|
|
463
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
463
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
464
464
|
required?: boolean | undefined;
|
|
465
465
|
}, {
|
|
466
466
|
type: "media";
|
|
467
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
467
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
468
468
|
required?: boolean | undefined;
|
|
469
469
|
}>, z.ZodObject<{
|
|
470
470
|
type: z.ZodLiteral<"uid">;
|
|
@@ -503,7 +503,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
503
503
|
description?: string | undefined;
|
|
504
504
|
};
|
|
505
505
|
attributes: Record<string, {
|
|
506
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
506
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
507
507
|
required?: boolean | undefined;
|
|
508
508
|
min?: number | undefined;
|
|
509
509
|
max?: number | undefined;
|
|
@@ -534,7 +534,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
534
534
|
type: "uid";
|
|
535
535
|
} | {
|
|
536
536
|
type: "media";
|
|
537
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
537
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
538
538
|
required?: boolean | undefined;
|
|
539
539
|
} | {
|
|
540
540
|
type: "relation";
|
|
@@ -571,7 +571,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
571
571
|
description?: string | undefined;
|
|
572
572
|
};
|
|
573
573
|
attributes: Record<string, {
|
|
574
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
574
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
575
575
|
required?: boolean | undefined;
|
|
576
576
|
min?: number | undefined;
|
|
577
577
|
max?: number | undefined;
|
|
@@ -602,7 +602,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
|
|
|
602
602
|
type: "uid";
|
|
603
603
|
} | {
|
|
604
604
|
type: "media";
|
|
605
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
605
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
606
606
|
required?: boolean | undefined;
|
|
607
607
|
} | {
|
|
608
608
|
type: "relation";
|
|
@@ -674,9 +674,9 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
674
674
|
configurable: z.ZodOptional<z.ZodBoolean>;
|
|
675
675
|
default: z.ZodOptional<z.ZodAny>;
|
|
676
676
|
}, {
|
|
677
|
-
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation"]>;
|
|
677
|
+
type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
|
|
678
678
|
}>, "strip", z.ZodTypeAny, {
|
|
679
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
679
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
680
680
|
required?: boolean | undefined;
|
|
681
681
|
min?: number | undefined;
|
|
682
682
|
max?: number | undefined;
|
|
@@ -686,7 +686,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
686
686
|
configurable?: boolean | undefined;
|
|
687
687
|
default?: any;
|
|
688
688
|
}, {
|
|
689
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
689
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
690
690
|
required?: boolean | undefined;
|
|
691
691
|
min?: number | undefined;
|
|
692
692
|
max?: number | undefined;
|
|
@@ -770,15 +770,15 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
770
770
|
inversedBy?: string | undefined;
|
|
771
771
|
}>, z.ZodObject<{
|
|
772
772
|
type: z.ZodLiteral<"media">;
|
|
773
|
-
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "files"]>, "many">;
|
|
773
|
+
allowedTypes: z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">;
|
|
774
774
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
775
775
|
}, "strip", z.ZodTypeAny, {
|
|
776
776
|
type: "media";
|
|
777
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
777
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
778
778
|
required?: boolean | undefined;
|
|
779
779
|
}, {
|
|
780
780
|
type: "media";
|
|
781
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
781
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
782
782
|
required?: boolean | undefined;
|
|
783
783
|
}>, z.ZodObject<{
|
|
784
784
|
type: z.ZodLiteral<"uid">;
|
|
@@ -815,7 +815,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
815
815
|
description?: string | undefined;
|
|
816
816
|
};
|
|
817
817
|
attributes: Record<string, {
|
|
818
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
818
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
819
819
|
required?: boolean | undefined;
|
|
820
820
|
min?: number | undefined;
|
|
821
821
|
max?: number | undefined;
|
|
@@ -846,7 +846,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
846
846
|
type: "uid";
|
|
847
847
|
} | {
|
|
848
848
|
type: "media";
|
|
849
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
849
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
850
850
|
required?: boolean | undefined;
|
|
851
851
|
} | {
|
|
852
852
|
type: "relation";
|
|
@@ -870,7 +870,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
870
870
|
description?: string | undefined;
|
|
871
871
|
};
|
|
872
872
|
attributes: Record<string, {
|
|
873
|
-
type: "string" | "boolean" | "integer" | "float" | "date" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
873
|
+
type: "string" | "boolean" | "integer" | "float" | "date" | "media" | "text" | "richtext" | "blocks" | "email" | "password" | "time" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
|
|
874
874
|
required?: boolean | undefined;
|
|
875
875
|
min?: number | undefined;
|
|
876
876
|
max?: number | undefined;
|
|
@@ -901,7 +901,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
|
|
|
901
901
|
type: "uid";
|
|
902
902
|
} | {
|
|
903
903
|
type: "media";
|
|
904
|
-
allowedTypes: ("images" | "videos" | "files")[];
|
|
904
|
+
allowedTypes: ("images" | "videos" | "audios" | "files")[];
|
|
905
905
|
required?: boolean | undefined;
|
|
906
906
|
} | {
|
|
907
907
|
type: "relation";
|