@diagonal-hq/cli 0.45.2 → 0.45.3
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/README.md +1 -1
- package/dist/check-data.json +1 -1
- package/dist/{cli-check-data-GU5JEN7A.mjs → cli-check-data-KSRDBU2B.mjs} +2 -2
- package/dist/{cli-chunk-IUHDCZQP.mjs → cli-chunk-3CAJMOEQ.mjs} +5 -2
- package/dist/cli.mjs +2 -2
- package/dist/fields.generated.d.ts +2 -2
- package/package.json +4 -4
|
@@ -746,7 +746,7 @@ var field_catalog_default = {
|
|
|
746
746
|
dictionary: {
|
|
747
747
|
settings: {
|
|
748
748
|
schema: {
|
|
749
|
-
required:
|
|
749
|
+
required: false,
|
|
750
750
|
values: null,
|
|
751
751
|
relation_types: null
|
|
752
752
|
},
|
|
@@ -2490,7 +2490,10 @@ function buildField(key, builder, keyNode, { checkKey = true } = {}) {
|
|
|
2490
2490
|
);
|
|
2491
2491
|
}
|
|
2492
2492
|
let settings = buildSettings(key, builder, entry, typeCatalog);
|
|
2493
|
-
|
|
2493
|
+
const schema = settings.schema;
|
|
2494
|
+
const emptySchema = schema === null || Array.isArray(schema) && schema.length === 0;
|
|
2495
|
+
const emptyDictionarySchema = type === "dictionary" && isPlainObject(schema) && Object.keys(schema).length === 0;
|
|
2496
|
+
if ((type === "list" || type === "dictionary") && emptySchema || emptyDictionarySchema) {
|
|
2494
2497
|
delete settings.schema;
|
|
2495
2498
|
}
|
|
2496
2499
|
if (type === "relation") {
|
package/dist/cli.mjs
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
routeBindingsSource,
|
|
47
47
|
routeParamNames,
|
|
48
48
|
workspace_settings_catalog_default
|
|
49
|
-
} from "./cli-chunk-
|
|
49
|
+
} from "./cli-chunk-3CAJMOEQ.mjs";
|
|
50
50
|
import {
|
|
51
51
|
TRIGGER_TYPES,
|
|
52
52
|
compareVersions,
|
|
@@ -14145,7 +14145,7 @@ async function checkSources() {
|
|
|
14145
14145
|
if (existsSync4(DATA_FILE) && existsSync4(SDK_FILE)) {
|
|
14146
14146
|
return { dataFile: DATA_FILE, sdkFile: SDK_FILE };
|
|
14147
14147
|
}
|
|
14148
|
-
const { checkData, scriptSdk } = await import("./cli-check-data-
|
|
14148
|
+
const { checkData, scriptSdk } = await import("./cli-check-data-KSRDBU2B.mjs");
|
|
14149
14149
|
return { data: checkData(), sdk: scriptSdk() };
|
|
14150
14150
|
}
|
|
14151
14151
|
function isScriptTestPath(path) {
|
|
@@ -134,7 +134,7 @@ export type DatetimeFieldSettings = CommonFieldSettings & {
|
|
|
134
134
|
};
|
|
135
135
|
|
|
136
136
|
export type DictionaryFieldSettings = CommonFieldSettings & {
|
|
137
|
-
"schema"
|
|
137
|
+
"schema"?: FieldSchemaSetting | Record<string, never> | null;
|
|
138
138
|
ui?: {
|
|
139
139
|
field_type?: "dictionary" | "json" | null;
|
|
140
140
|
"show_on_creating"?: boolean | null;
|
|
@@ -406,7 +406,7 @@ export declare const field: {
|
|
|
406
406
|
content(options?: BaseFieldOptions<ContentFieldSettings>): FieldDefinition<"content">;
|
|
407
407
|
date(options?: BaseFieldOptions<DateFieldSettings>): FieldDefinition<"date">;
|
|
408
408
|
datetime(options?: BaseFieldOptions<DatetimeFieldSettings>): FieldDefinition<"datetime">;
|
|
409
|
-
dictionary(options
|
|
409
|
+
dictionary(options?: BaseFieldOptions<DictionaryFieldSettings>): FieldDefinition<"dictionary">;
|
|
410
410
|
email(options?: BaseFieldOptions<EmailFieldSettings>): FieldDefinition<"email">;
|
|
411
411
|
eventSchedule(options?: BaseFieldOptions<EventScheduleFieldSettings>): FieldDefinition<"event_schedule">;
|
|
412
412
|
/** Stored as a `file_reference` field. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diagonal-hq/cli",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.3",
|
|
4
4
|
"description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"bun": "1.4.4"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-
|
|
55
|
-
"@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-
|
|
56
|
-
"@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-
|
|
54
|
+
"@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-h08a4063c4895",
|
|
55
|
+
"@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-h08a4063c4895",
|
|
56
|
+
"@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-h08a4063c4895"
|
|
57
57
|
}
|
|
58
58
|
}
|