@timeax/digital-service-engine 0.2.4 → 0.2.6
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/core/index.cjs +146 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +8 -1
- package/dist/core/index.d.ts +8 -1
- package/dist/core/index.js +146 -1
- package/dist/core/index.js.map +1 -1
- package/dist/react/index.cjs +382 -96
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +11 -1
- package/dist/react/index.d.ts +11 -1
- package/dist/react/index.js +382 -96
- package/dist/react/index.js.map +1 -1
- package/dist/schema/index.d.cts +9 -2
- package/dist/schema/index.d.ts +9 -2
- package/dist/workspace/index.cjs +373 -96
- package/dist/workspace/index.cjs.map +1 -1
- package/dist/workspace/index.d.cts +5 -1
- package/dist/workspace/index.d.ts +5 -1
- package/dist/workspace/index.js +373 -96
- package/dist/workspace/index.js.map +1 -1
- package/package.json +3 -2
- package/schema/editor-snapshot.schema.json +6 -0
- package/schema/order-snapshot.schema.json +667 -0
- package/schema/service-props.schema.json +6 -0
package/dist/react/index.d.cts
CHANGED
|
@@ -78,6 +78,10 @@ type SnapshotContext = {
|
|
|
78
78
|
requireConstraintFit: boolean;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
type OrderKindSource = {
|
|
82
|
+
nodeId: string;
|
|
83
|
+
nodeKind: "tag" | "field" | "option";
|
|
84
|
+
};
|
|
81
85
|
type OrderSnapshot = {
|
|
82
86
|
version: "1";
|
|
83
87
|
mode: "prod" | "dev";
|
|
@@ -104,6 +108,8 @@ type OrderSnapshot = {
|
|
|
104
108
|
};
|
|
105
109
|
min: number;
|
|
106
110
|
max: number;
|
|
111
|
+
orderKind?: string | null;
|
|
112
|
+
orderKindSource?: OrderKindSource | null;
|
|
107
113
|
services: Array<string | number>;
|
|
108
114
|
serviceMap: Record<string, Array<string | number>>;
|
|
109
115
|
fallbacks?: ServiceFallbacks;
|
|
@@ -181,7 +187,7 @@ type NodeRef$1 = {
|
|
|
181
187
|
};
|
|
182
188
|
type NodeMap = Map<string, NodeRef$1>;
|
|
183
189
|
|
|
184
|
-
type ValidationCode = "root_missing" | "cycle_in_tags" | "bad_bind_reference" | "duplicate_id" | "duplicate_tag_label" | "duplicate_field_name" | "label_missing" | "duplicate_visible_label" | "bad_option_key" | "option_include_exclude_conflict" | "service_field_missing_service_id" | "user_input_field_has_service_option" | "rate_mismatch_across_base" | "rate_coherence_violation" | "utility_without_base" | "unsupported_constraint" | "constraint_contradiction" | "custom_component_missing" | "policy_violation" | "field_unbound" | "constraint_overridden" | "unsupported_constraint_option" | "custom_component_unresolvable" | "quantity_multiple_markers" | "utility_with_service_id" | "utility_missing_rate" | "utility_invalid_mode" | "fallback_bad_node" | "fallback_unknown_service" | "fallback_cycle" | "fallback_no_primary" | "fallback_rate_violation" | "fallback_constraint_mismatch" | "fallback_no_tag_context" | "field_validation_invalid_rule" | "field_validation_invalid_op" | "field_validation_eval_missing_code" | "field_validation_between_missing_bounds" | "field_validation_match_missing_pattern";
|
|
190
|
+
type ValidationCode = "root_missing" | "cycle_in_tags" | "bad_bind_reference" | "duplicate_id" | "duplicate_tag_label" | "duplicate_field_name" | "label_missing" | "duplicate_visible_label" | "bad_option_key" | "option_include_exclude_conflict" | "service_field_missing_service_id" | "user_input_field_has_service_option" | "rate_mismatch_across_base" | "rate_coherence_violation" | "utility_without_base" | "unsupported_constraint" | "constraint_contradiction" | "custom_component_missing" | "policy_violation" | "field_unbound" | "constraint_overridden" | "unsupported_constraint_option" | "custom_component_unresolvable" | "quantity_multiple_markers" | "utility_with_service_id" | "utility_missing_rate" | "utility_invalid_mode" | "fallback_bad_node" | "fallback_unknown_service" | "fallback_cycle" | "fallback_no_primary" | "fallback_rate_violation" | "fallback_constraint_mismatch" | "fallback_no_tag_context" | "field_validation_invalid_rule" | "field_validation_invalid_op" | "field_validation_eval_missing_code" | "field_validation_between_missing_bounds" | "field_validation_match_missing_pattern" | "multiple_order_kinds_selected";
|
|
185
191
|
type ValidationError = {
|
|
186
192
|
code: ValidationCode;
|
|
187
193
|
message: string;
|
|
@@ -505,6 +511,7 @@ type Tag = {
|
|
|
505
511
|
};
|
|
506
512
|
type ServiceProps = {
|
|
507
513
|
order_for_tags?: Record<string, string[]>;
|
|
514
|
+
orderKinds?: Record<string, string>;
|
|
508
515
|
filters: Tag[];
|
|
509
516
|
fields: Field[];
|
|
510
517
|
includes_for_buttons?: Record<string, string[]>;
|
|
@@ -1587,6 +1594,9 @@ declare class Editor {
|
|
|
1587
1594
|
getFieldValidation(id: string): FieldValidationRule[] | undefined;
|
|
1588
1595
|
setFieldValidation(id: string, rules: unknown): void;
|
|
1589
1596
|
clearFieldValidation(id: string): void;
|
|
1597
|
+
setOrderKind(nodeId: string, kind: string): void;
|
|
1598
|
+
deleteOrderKind(nodeId: string): void;
|
|
1599
|
+
pruneKind(kind: string): number;
|
|
1590
1600
|
getCatalog(): ServiceCatalogState | undefined;
|
|
1591
1601
|
setCatalog(next?: ServiceCatalogState): void;
|
|
1592
1602
|
clearCatalog(): void;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -78,6 +78,10 @@ type SnapshotContext = {
|
|
|
78
78
|
requireConstraintFit: boolean;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
type OrderKindSource = {
|
|
82
|
+
nodeId: string;
|
|
83
|
+
nodeKind: "tag" | "field" | "option";
|
|
84
|
+
};
|
|
81
85
|
type OrderSnapshot = {
|
|
82
86
|
version: "1";
|
|
83
87
|
mode: "prod" | "dev";
|
|
@@ -104,6 +108,8 @@ type OrderSnapshot = {
|
|
|
104
108
|
};
|
|
105
109
|
min: number;
|
|
106
110
|
max: number;
|
|
111
|
+
orderKind?: string | null;
|
|
112
|
+
orderKindSource?: OrderKindSource | null;
|
|
107
113
|
services: Array<string | number>;
|
|
108
114
|
serviceMap: Record<string, Array<string | number>>;
|
|
109
115
|
fallbacks?: ServiceFallbacks;
|
|
@@ -181,7 +187,7 @@ type NodeRef$1 = {
|
|
|
181
187
|
};
|
|
182
188
|
type NodeMap = Map<string, NodeRef$1>;
|
|
183
189
|
|
|
184
|
-
type ValidationCode = "root_missing" | "cycle_in_tags" | "bad_bind_reference" | "duplicate_id" | "duplicate_tag_label" | "duplicate_field_name" | "label_missing" | "duplicate_visible_label" | "bad_option_key" | "option_include_exclude_conflict" | "service_field_missing_service_id" | "user_input_field_has_service_option" | "rate_mismatch_across_base" | "rate_coherence_violation" | "utility_without_base" | "unsupported_constraint" | "constraint_contradiction" | "custom_component_missing" | "policy_violation" | "field_unbound" | "constraint_overridden" | "unsupported_constraint_option" | "custom_component_unresolvable" | "quantity_multiple_markers" | "utility_with_service_id" | "utility_missing_rate" | "utility_invalid_mode" | "fallback_bad_node" | "fallback_unknown_service" | "fallback_cycle" | "fallback_no_primary" | "fallback_rate_violation" | "fallback_constraint_mismatch" | "fallback_no_tag_context" | "field_validation_invalid_rule" | "field_validation_invalid_op" | "field_validation_eval_missing_code" | "field_validation_between_missing_bounds" | "field_validation_match_missing_pattern";
|
|
190
|
+
type ValidationCode = "root_missing" | "cycle_in_tags" | "bad_bind_reference" | "duplicate_id" | "duplicate_tag_label" | "duplicate_field_name" | "label_missing" | "duplicate_visible_label" | "bad_option_key" | "option_include_exclude_conflict" | "service_field_missing_service_id" | "user_input_field_has_service_option" | "rate_mismatch_across_base" | "rate_coherence_violation" | "utility_without_base" | "unsupported_constraint" | "constraint_contradiction" | "custom_component_missing" | "policy_violation" | "field_unbound" | "constraint_overridden" | "unsupported_constraint_option" | "custom_component_unresolvable" | "quantity_multiple_markers" | "utility_with_service_id" | "utility_missing_rate" | "utility_invalid_mode" | "fallback_bad_node" | "fallback_unknown_service" | "fallback_cycle" | "fallback_no_primary" | "fallback_rate_violation" | "fallback_constraint_mismatch" | "fallback_no_tag_context" | "field_validation_invalid_rule" | "field_validation_invalid_op" | "field_validation_eval_missing_code" | "field_validation_between_missing_bounds" | "field_validation_match_missing_pattern" | "multiple_order_kinds_selected";
|
|
185
191
|
type ValidationError = {
|
|
186
192
|
code: ValidationCode;
|
|
187
193
|
message: string;
|
|
@@ -505,6 +511,7 @@ type Tag = {
|
|
|
505
511
|
};
|
|
506
512
|
type ServiceProps = {
|
|
507
513
|
order_for_tags?: Record<string, string[]>;
|
|
514
|
+
orderKinds?: Record<string, string>;
|
|
508
515
|
filters: Tag[];
|
|
509
516
|
fields: Field[];
|
|
510
517
|
includes_for_buttons?: Record<string, string[]>;
|
|
@@ -1587,6 +1594,9 @@ declare class Editor {
|
|
|
1587
1594
|
getFieldValidation(id: string): FieldValidationRule[] | undefined;
|
|
1588
1595
|
setFieldValidation(id: string, rules: unknown): void;
|
|
1589
1596
|
clearFieldValidation(id: string): void;
|
|
1597
|
+
setOrderKind(nodeId: string, kind: string): void;
|
|
1598
|
+
deleteOrderKind(nodeId: string): void;
|
|
1599
|
+
pruneKind(kind: string): number;
|
|
1590
1600
|
getCatalog(): ServiceCatalogState | undefined;
|
|
1591
1601
|
setCatalog(next?: ServiceCatalogState): void;
|
|
1592
1602
|
clearCatalog(): void;
|