@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
package/dist/react/index.d.cts
CHANGED
|
@@ -234,6 +234,11 @@ type ValidatorOptions = {
|
|
|
234
234
|
selectedOptionKeys?: string[];
|
|
235
235
|
globalUtilityGuard?: boolean;
|
|
236
236
|
policies?: DynamicRule[];
|
|
237
|
+
/**
|
|
238
|
+
* Global/base rate policy used by validation and service filtering.
|
|
239
|
+
* This is intentionally separate from fallbackSettings.ratePolicy.
|
|
240
|
+
*/
|
|
241
|
+
ratePolicy?: RatePolicy;
|
|
237
242
|
fallbackSettings?: FallbackSettings;
|
|
238
243
|
};
|
|
239
244
|
type RatePolicy = {
|
|
@@ -267,6 +272,7 @@ type ServiceFallback = {
|
|
|
267
272
|
global?: Record<ServiceIdRef, ServiceIdRef[]>;
|
|
268
273
|
};
|
|
269
274
|
type FallbackRegistrationScope = "global" | "node";
|
|
275
|
+
type FallbackEligibleSource = "all_services" | "registered";
|
|
270
276
|
type FallbackScopeRef = {
|
|
271
277
|
scope: "global";
|
|
272
278
|
primary: ServiceIdRef;
|
|
@@ -629,6 +635,7 @@ interface Builder {
|
|
|
629
635
|
getProps(): ServiceProps;
|
|
630
636
|
/** Service map for validation/rules */
|
|
631
637
|
getServiceMap(): DgpServiceMap;
|
|
638
|
+
getOptions(): BuilderOptions;
|
|
632
639
|
getConstraints(): {
|
|
633
640
|
id: string;
|
|
634
641
|
label: string;
|
|
@@ -692,6 +699,7 @@ interface FallbackEditor$1 {
|
|
|
692
699
|
exclude?: ServiceIdRef[];
|
|
693
700
|
unique?: boolean;
|
|
694
701
|
limit?: number;
|
|
702
|
+
source?: FallbackEligibleSource;
|
|
695
703
|
}): ServiceIdRef[];
|
|
696
704
|
}
|
|
697
705
|
|
|
@@ -1649,6 +1657,9 @@ declare class Editor {
|
|
|
1649
1657
|
usedServiceIds: Array<number | string>;
|
|
1650
1658
|
effectiveConstraints?: Partial<Record<"refill" | "cancel" | "dripfeed", boolean>>;
|
|
1651
1659
|
policies?: unknown;
|
|
1660
|
+
ratePolicy?: RatePolicy;
|
|
1661
|
+
fallbackSettings?: FallbackSettings;
|
|
1662
|
+
/** Backward-compatible alias */
|
|
1652
1663
|
fallback?: FallbackSettings;
|
|
1653
1664
|
}): ServiceCheck[];
|
|
1654
1665
|
private moduleCtx;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -234,6 +234,11 @@ type ValidatorOptions = {
|
|
|
234
234
|
selectedOptionKeys?: string[];
|
|
235
235
|
globalUtilityGuard?: boolean;
|
|
236
236
|
policies?: DynamicRule[];
|
|
237
|
+
/**
|
|
238
|
+
* Global/base rate policy used by validation and service filtering.
|
|
239
|
+
* This is intentionally separate from fallbackSettings.ratePolicy.
|
|
240
|
+
*/
|
|
241
|
+
ratePolicy?: RatePolicy;
|
|
237
242
|
fallbackSettings?: FallbackSettings;
|
|
238
243
|
};
|
|
239
244
|
type RatePolicy = {
|
|
@@ -267,6 +272,7 @@ type ServiceFallback = {
|
|
|
267
272
|
global?: Record<ServiceIdRef, ServiceIdRef[]>;
|
|
268
273
|
};
|
|
269
274
|
type FallbackRegistrationScope = "global" | "node";
|
|
275
|
+
type FallbackEligibleSource = "all_services" | "registered";
|
|
270
276
|
type FallbackScopeRef = {
|
|
271
277
|
scope: "global";
|
|
272
278
|
primary: ServiceIdRef;
|
|
@@ -629,6 +635,7 @@ interface Builder {
|
|
|
629
635
|
getProps(): ServiceProps;
|
|
630
636
|
/** Service map for validation/rules */
|
|
631
637
|
getServiceMap(): DgpServiceMap;
|
|
638
|
+
getOptions(): BuilderOptions;
|
|
632
639
|
getConstraints(): {
|
|
633
640
|
id: string;
|
|
634
641
|
label: string;
|
|
@@ -692,6 +699,7 @@ interface FallbackEditor$1 {
|
|
|
692
699
|
exclude?: ServiceIdRef[];
|
|
693
700
|
unique?: boolean;
|
|
694
701
|
limit?: number;
|
|
702
|
+
source?: FallbackEligibleSource;
|
|
695
703
|
}): ServiceIdRef[];
|
|
696
704
|
}
|
|
697
705
|
|
|
@@ -1649,6 +1657,9 @@ declare class Editor {
|
|
|
1649
1657
|
usedServiceIds: Array<number | string>;
|
|
1650
1658
|
effectiveConstraints?: Partial<Record<"refill" | "cancel" | "dripfeed", boolean>>;
|
|
1651
1659
|
policies?: unknown;
|
|
1660
|
+
ratePolicy?: RatePolicy;
|
|
1661
|
+
fallbackSettings?: FallbackSettings;
|
|
1662
|
+
/** Backward-compatible alias */
|
|
1652
1663
|
fallback?: FallbackSettings;
|
|
1653
1664
|
}): ServiceCheck[];
|
|
1654
1665
|
private moduleCtx;
|