Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,7 @@
|
||||
interface JsonArray extends Array<JsonValue> {}
|
||||
export type JsonObject = { [Key in string]?: JsonValue };
|
||||
export type JsonValue = string | number | boolean | JsonObject | JsonArray | null;
|
||||
|
||||
export type JsonPropertiesValuesDto = {
|
||||
[key: string]: JsonValue | undefined;
|
||||
};
|
||||
@@ -0,0 +1,58 @@
|
||||
import { JsonValue } from "./JsonPropertiesValuesDto";
|
||||
|
||||
export const JsonPropertyTypes = [
|
||||
{
|
||||
value: "string",
|
||||
// name: "String",
|
||||
},
|
||||
{
|
||||
value: "number",
|
||||
// name: "Number",
|
||||
},
|
||||
{
|
||||
value: "boolean",
|
||||
// name: "Boolean",
|
||||
},
|
||||
{
|
||||
value: "image",
|
||||
// name: "Image",
|
||||
},
|
||||
{
|
||||
value: "date",
|
||||
// name: "Date",
|
||||
},
|
||||
{
|
||||
value: "select",
|
||||
// name: "Select",
|
||||
},
|
||||
{
|
||||
value: "multiselect",
|
||||
// name: "Multi-select",
|
||||
},
|
||||
{
|
||||
value: "wysiwyg",
|
||||
// name: "WYSIWYG",
|
||||
},
|
||||
{
|
||||
value: "monaco",
|
||||
// name: "Monaco Editor",
|
||||
},
|
||||
{
|
||||
value: "content",
|
||||
// name: "Content",
|
||||
},
|
||||
] as const;
|
||||
|
||||
export type JsonPropertyType = (typeof JsonPropertyTypes)[number]["value"];
|
||||
|
||||
export type JsonPropertyDto = {
|
||||
name: string;
|
||||
title: string;
|
||||
type: JsonPropertyType;
|
||||
required: boolean;
|
||||
defaultValue?: JsonValue;
|
||||
options?: { name: string; value: string }[] | null;
|
||||
group?: string;
|
||||
order?: number;
|
||||
hideInTable?: boolean;
|
||||
};
|
||||
Reference in new issue
Block a user