@timeax/digital-service-engine 0.2.0 → 0.2.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/core/index.cjs +428 -141
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +17 -11
- package/dist/core/index.d.ts +17 -11
- package/dist/core/index.js +427 -141
- package/dist/core/index.js.map +1 -1
- package/dist/react/index.cjs +627 -357
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +11 -0
- package/dist/react/index.d.ts +11 -0
- package/dist/react/index.js +627 -357
- package/dist/react/index.js.map +1 -1
- package/dist/schema/index.d.cts +17 -1
- package/dist/schema/index.d.ts +17 -1
- package/dist/workspace/index.cjs +270 -100
- package/dist/workspace/index.cjs.map +1 -1
- package/dist/workspace/index.d.cts +15 -0
- package/dist/workspace/index.d.ts +15 -0
- package/dist/workspace/index.js +270 -100
- package/dist/workspace/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -112,6 +112,11 @@ type ValidatorOptions = {
|
|
|
112
112
|
selectedOptionKeys?: string[];
|
|
113
113
|
globalUtilityGuard?: boolean;
|
|
114
114
|
policies?: DynamicRule[];
|
|
115
|
+
/**
|
|
116
|
+
* Global/base rate policy used by validation and service filtering.
|
|
117
|
+
* This is intentionally separate from fallbackSettings.ratePolicy.
|
|
118
|
+
*/
|
|
119
|
+
ratePolicy?: RatePolicy;
|
|
115
120
|
fallbackSettings?: FallbackSettings;
|
|
116
121
|
};
|
|
117
122
|
type RatePolicy = {
|
|
@@ -380,6 +385,7 @@ interface Builder {
|
|
|
380
385
|
getProps(): ServiceProps;
|
|
381
386
|
/** Service map for validation/rules */
|
|
382
387
|
getServiceMap(): DgpServiceMap;
|
|
388
|
+
getOptions(): BuilderOptions;
|
|
383
389
|
getConstraints(): {
|
|
384
390
|
id: string;
|
|
385
391
|
label: string;
|
|
@@ -1832,6 +1838,9 @@ declare class Editor {
|
|
|
1832
1838
|
usedServiceIds: Array<number | string>;
|
|
1833
1839
|
effectiveConstraints?: Partial<Record<"refill" | "cancel" | "dripfeed", boolean>>;
|
|
1834
1840
|
policies?: unknown;
|
|
1841
|
+
ratePolicy?: RatePolicy;
|
|
1842
|
+
fallbackSettings?: FallbackSettings;
|
|
1843
|
+
/** Backward-compatible alias */
|
|
1835
1844
|
fallback?: FallbackSettings;
|
|
1836
1845
|
}): ServiceCheck[];
|
|
1837
1846
|
private moduleCtx;
|
|
@@ -1908,6 +1917,8 @@ type CanvasProviderWorkspaceProps = {
|
|
|
1908
1917
|
children: ReactNode;
|
|
1909
1918
|
builderOpts?: BuilderOptions;
|
|
1910
1919
|
canvasOpts?: CanvasOptions & CanvasBackendOptions;
|
|
1920
|
+
ratePolicy?: RatePolicy;
|
|
1921
|
+
fallbackSettings?: FallbackSettings;
|
|
1911
1922
|
attachToWorkspace?: boolean;
|
|
1912
1923
|
};
|
|
1913
1924
|
type CanvasProviderProps = CanvasProviderManagedProps | CanvasProviderWorkspaceProps;
|
|
@@ -2244,6 +2255,10 @@ interface WorkspaceProps {
|
|
|
2244
2255
|
readonly autosaveMs?: WorkspaceProviderProps["autosaveMs"];
|
|
2245
2256
|
/** Auto-run autosave when dirty (default true) */
|
|
2246
2257
|
readonly autoAutosave?: WorkspaceProviderProps["autoAutosave"];
|
|
2258
|
+
/** Global/base rate policy (separate from fallbackSettings.ratePolicy). */
|
|
2259
|
+
readonly ratePolicy?: RatePolicy;
|
|
2260
|
+
/** Fallback flow settings. */
|
|
2261
|
+
readonly fallbackSettings?: FallbackSettings;
|
|
2247
2262
|
readonly tools?: ToolsConfig;
|
|
2248
2263
|
readonly children: (tools?: ToolsConfig) => React.ReactNode;
|
|
2249
2264
|
}
|
|
@@ -112,6 +112,11 @@ type ValidatorOptions = {
|
|
|
112
112
|
selectedOptionKeys?: string[];
|
|
113
113
|
globalUtilityGuard?: boolean;
|
|
114
114
|
policies?: DynamicRule[];
|
|
115
|
+
/**
|
|
116
|
+
* Global/base rate policy used by validation and service filtering.
|
|
117
|
+
* This is intentionally separate from fallbackSettings.ratePolicy.
|
|
118
|
+
*/
|
|
119
|
+
ratePolicy?: RatePolicy;
|
|
115
120
|
fallbackSettings?: FallbackSettings;
|
|
116
121
|
};
|
|
117
122
|
type RatePolicy = {
|
|
@@ -380,6 +385,7 @@ interface Builder {
|
|
|
380
385
|
getProps(): ServiceProps;
|
|
381
386
|
/** Service map for validation/rules */
|
|
382
387
|
getServiceMap(): DgpServiceMap;
|
|
388
|
+
getOptions(): BuilderOptions;
|
|
383
389
|
getConstraints(): {
|
|
384
390
|
id: string;
|
|
385
391
|
label: string;
|
|
@@ -1832,6 +1838,9 @@ declare class Editor {
|
|
|
1832
1838
|
usedServiceIds: Array<number | string>;
|
|
1833
1839
|
effectiveConstraints?: Partial<Record<"refill" | "cancel" | "dripfeed", boolean>>;
|
|
1834
1840
|
policies?: unknown;
|
|
1841
|
+
ratePolicy?: RatePolicy;
|
|
1842
|
+
fallbackSettings?: FallbackSettings;
|
|
1843
|
+
/** Backward-compatible alias */
|
|
1835
1844
|
fallback?: FallbackSettings;
|
|
1836
1845
|
}): ServiceCheck[];
|
|
1837
1846
|
private moduleCtx;
|
|
@@ -1908,6 +1917,8 @@ type CanvasProviderWorkspaceProps = {
|
|
|
1908
1917
|
children: ReactNode;
|
|
1909
1918
|
builderOpts?: BuilderOptions;
|
|
1910
1919
|
canvasOpts?: CanvasOptions & CanvasBackendOptions;
|
|
1920
|
+
ratePolicy?: RatePolicy;
|
|
1921
|
+
fallbackSettings?: FallbackSettings;
|
|
1911
1922
|
attachToWorkspace?: boolean;
|
|
1912
1923
|
};
|
|
1913
1924
|
type CanvasProviderProps = CanvasProviderManagedProps | CanvasProviderWorkspaceProps;
|
|
@@ -2244,6 +2255,10 @@ interface WorkspaceProps {
|
|
|
2244
2255
|
readonly autosaveMs?: WorkspaceProviderProps["autosaveMs"];
|
|
2245
2256
|
/** Auto-run autosave when dirty (default true) */
|
|
2246
2257
|
readonly autoAutosave?: WorkspaceProviderProps["autoAutosave"];
|
|
2258
|
+
/** Global/base rate policy (separate from fallbackSettings.ratePolicy). */
|
|
2259
|
+
readonly ratePolicy?: RatePolicy;
|
|
2260
|
+
/** Fallback flow settings. */
|
|
2261
|
+
readonly fallbackSettings?: FallbackSettings;
|
|
2247
2262
|
readonly tools?: ToolsConfig;
|
|
2248
2263
|
readonly children: (tools?: ToolsConfig) => React.ReactNode;
|
|
2249
2264
|
}
|