@digitalservicebund/a2j-xjustiz-bridge 0.8.0 → 0.9.0
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.
|
@@ -22,7 +22,6 @@ import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
|
22
22
|
type InferCodeliste<Liste extends Codeliste<Codelisteneintraege>> = Liste[keyof Liste];
|
|
23
23
|
type Codelisteneintraege = Record<string, string>;
|
|
24
24
|
type Codeliste<Eintraege extends Codelisteneintraege> = { readonly [Name in keyof Eintraege]: Eintraege[Name] extends (infer Code) ? Codelisteneintrag<Name & string, Code & string> : never; };
|
|
25
|
-
type IsCodeliste<MaybeCodeliste> = [MaybeCodeliste] extends [Codelisteneintrag<string, string>] ? [keyof MaybeCodeliste] extends [keyof Codelisteneintrag<string, string>] ? true : false : false;
|
|
26
25
|
/**
|
|
27
26
|
* Prettifies the display of Codelisteinträge, conserving the name to improve
|
|
28
27
|
* comprehensibility.
|
|
@@ -2404,33 +2403,6 @@ type ConsumeCharactersFrom<Input extends string, SetOfCharactersToConsume extend
|
|
|
2404
2403
|
* Typically used to ensure the true identity of a base type.
|
|
2405
2404
|
*/
|
|
2406
2405
|
type Invariant<Basis> = (basis: Basis) => Basis;
|
|
2407
|
-
type IsTuple<MaybeTuple> = MaybeTuple extends readonly unknown[] ? number extends MaybeTuple["length"] ? false : true : false;
|
|
2408
|
-
type NTuple<Item, Length extends number, NMinusOneTuple extends readonly Item[] = []> = NMinusOneTuple["length"] extends Length ? NMinusOneTuple : NTuple<Item, Length, [...NMinusOneTuple, Item]>;
|
|
2409
|
-
/**
|
|
2410
|
-
* Increment a given literal number type by one.
|
|
2411
|
-
* Intended to by used without unions. In case of a union, it will increment the
|
|
2412
|
-
* smallest literal number type in the union
|
|
2413
|
-
*
|
|
2414
|
-
* @example
|
|
2415
|
-
* ```typescript
|
|
2416
|
-
* Increment<1> // 2
|
|
2417
|
-
* Increment<99> // 100
|
|
2418
|
-
* Increment<99, 5, 27> // 6
|
|
2419
|
-
* Increment<number> // 1
|
|
2420
|
-
* ```
|
|
2421
|
-
*/
|
|
2422
|
-
type Increment<Operand extends number> = [...NTuple<unknown, Operand>, unknown]["length"] extends (infer Incremented extends number) ? Incremented : never;
|
|
2423
|
-
type IsEqualTo<Left, Right> = (<Probe>() => Probe extends Left ? 1 : 2) extends (<Probe>() => Probe extends Right ? 1 : 2) ? true : false;
|
|
2424
|
-
/**
|
|
2425
|
-
* Just the clean numerical indices of the tuple entries. Exclude symbols for
|
|
2426
|
-
* iterator etc.
|
|
2427
|
-
*
|
|
2428
|
-
* @example
|
|
2429
|
-
* ```typescript
|
|
2430
|
-
* IndicesOfTuple<["a", "b", "c"]> // 1 | 2 | 3
|
|
2431
|
-
* ```
|
|
2432
|
-
*/
|
|
2433
|
-
type IndicesOfTuple<Tuple extends readonly unknown[]> = Extract<keyof Tuple, `${number}`> extends `${infer Indices extends number}` ? Indices : never;
|
|
2434
2406
|
//#endregion
|
|
2435
2407
|
//#region src/xjustiz-schemata/shared-kernel/refined-types.d.ts
|
|
2436
2408
|
/**
|
|
@@ -2912,9 +2884,6 @@ interface DistinctiveMarker<Value, Ordinal extends number> {
|
|
|
2912
2884
|
readonly [DISTINCTIVE_MARKER]: readonly [Value, Ordinal];
|
|
2913
2885
|
}
|
|
2914
2886
|
declare const DISTINCTIVE_MARKER: unique symbol;
|
|
2915
|
-
type GetDistinctValueFrom<MaybeDistinctivelyMarked> = MaybeDistinctivelyMarked extends {
|
|
2916
|
-
readonly [DISTINCTIVE_MARKER]: readonly [infer Value, infer Ordinal];
|
|
2917
|
-
} ? [Value, Ordinal] : MaybeDistinctivelyMarked;
|
|
2918
2887
|
//#endregion
|
|
2919
2888
|
//#region src/xjustiz-schemata/shared-kernel/identifiers/occurrences.d.ts
|
|
2920
2889
|
interface IdentifierDeclaration {
|
|
@@ -2931,39 +2900,6 @@ interface Reference<Identifier extends IdentifierDeclaration> {
|
|
|
2931
2900
|
readonly [IDENTIFIER_REFERENCE_MARKER]: Identifier;
|
|
2932
2901
|
}
|
|
2933
2902
|
declare const IDENTIFIER_REFERENCE_MARKER: unique symbol;
|
|
2934
|
-
type FindAllIdentifierDeclarations<DocumentPart> = DocumentPart extends IdentifierDeclaration ? DocumentPart : DocumentPart extends Reference<IdentifierDeclaration> ? never : DocumentPart extends readonly (infer Entry)[] ? FindAllIdentifierDeclarations<Entry> : DocumentPart extends object ? FindAllIdentifierDeclarations<DocumentPart[keyof DocumentPart]> : never;
|
|
2935
|
-
type FindAllIdentifierReferences<DocumentPart> = DocumentPart extends Reference<IdentifierDeclaration> ? ExtractIdentifierDeclarationFrom<DocumentPart> : DocumentPart extends readonly (infer Entry)[] ? FindAllIdentifierReferences<Entry> : DocumentPart extends object ? FindAllIdentifierReferences<DocumentPart[keyof DocumentPart]> : never;
|
|
2936
|
-
type ExtractIdentifierDeclarationFrom<SomeReference extends Reference<IdentifierDeclaration>> = SomeReference extends {
|
|
2937
|
-
readonly [IDENTIFIER_REFERENCE_MARKER]: infer Declaration;
|
|
2938
|
-
} ? Declaration : never;
|
|
2939
|
-
//#endregion
|
|
2940
|
-
//#region src/xjustiz-schemata/shared-kernel/identifiers/referential-integrity.d.ts
|
|
2941
|
-
type VerifyReferentialIntegrity<Document> = FindMissingIdentifierDeclarations<Document> extends (infer MissingIdentifierDeclarations) ? IsEmpty$2<MissingIdentifierDeclarations> extends true ? AllGood$2 : DanglingReferencesError<MissingIdentifierDeclarations> : Unreachable$2;
|
|
2942
|
-
type FindMissingIdentifierDeclarations<Document> = Exclude<FindAllIdentifierReferences<Document>, FindAllIdentifierDeclarations<Document>>;
|
|
2943
|
-
type DanglingReferencesError<MissingIdentifierDeclarations> = TypeError & "Found dangling references. Add all missing elements that are referenced." & {
|
|
2944
|
-
readonly missingIdentifierReferences: MissingIdentifierDeclarations;
|
|
2945
|
-
};
|
|
2946
|
-
type IsEmpty$2<MaybeEmpty> = [MaybeEmpty] extends [never] ? true : false;
|
|
2947
|
-
type AllGood$2 = never;
|
|
2948
|
-
type Unreachable$2 = never;
|
|
2949
|
-
//#endregion
|
|
2950
|
-
//#region src/xjustiz-schemata/shared-kernel/identifiers/uniqueness.d.ts
|
|
2951
|
-
type VerifyUniquenessOfIdentifierDeclarations<Document> = FindUncheckableCollectionsWithIdentifiers<Document> extends (infer UncheckableCollectionsWithIdentifiers) ? IsEmpty$1<UncheckableCollectionsWithIdentifiers> extends false ? UncheckableCollectionsWithIdentifiersError<UncheckableCollectionsWithIdentifiers> : FindDuplicateIdentifierDeclarations<Document> extends (infer DuplicateIdentifierDeclarations) ? IsEmpty$1<DuplicateIdentifierDeclarations> extends false ? DuplicateIdentifierDeclarationsError<DuplicateIdentifierDeclarations> : AllGood$1 : Unreachable$1 : Unreachable$1;
|
|
2952
|
-
type FindUncheckableCollectionsWithIdentifiers<DocumentPart> = DocumentPart extends readonly (infer Entry)[] ? IsTuple<DocumentPart> extends true ? FindUncheckableCollectionsWithIdentifiers<Entry> : IncludesIdentifierDeclarations<Entry> extends true ? Entry : AllGood$1 : DocumentPart extends object ? FindUncheckableCollectionsWithIdentifiers<DocumentPart[keyof DocumentPart]> : AllGood$1;
|
|
2953
|
-
type IncludesIdentifierDeclarations<DocumentPart> = IsEmpty$1<FindAllIdentifierDeclarations<DocumentPart>> extends true ? false : true;
|
|
2954
|
-
type UncheckableCollectionsWithIdentifiersError<UncheckableCollectionsWithIdentifiers> = TypeError & "Found collection including identifiers that can't be verified for uniqueness. Try to use the `satisfies` operator." & {
|
|
2955
|
-
readonly uncheckableCollectionsWithIdentifiers: UncheckableCollectionsWithIdentifiers;
|
|
2956
|
-
};
|
|
2957
|
-
type FindDuplicateIdentifierDeclarations<DocumentPart> = DocumentPart extends readonly unknown[] ? FindDuplicateIdentifierDeclarationsAmongSiblings<DocumentPart, IndicesOfTuple<DocumentPart>> : DocumentPart extends object ? FindDuplicateIdentifierDeclarationsAmongSiblings<DocumentPart, keyof DocumentPart> : NoDuplicates;
|
|
2958
|
-
type FindDuplicateIdentifierDeclarationsAmongSiblings<DocumentPart, Keys extends keyof DocumentPart> = { [Key in Keys]: FindDuplicateIdentifierDeclarations<DocumentPart[Key]> | (Exclude<Keys, Key> extends (infer SiblingKeys extends keyof DocumentPart) ? IsEmpty$1<SiblingKeys> extends true ? NoDuplicates : FindDuplicateIdentifierDeclarationsBetweenGroups<FindAllIdentifierDeclarations<DocumentPart[Key]>, FindAllIdentifierDeclarations<DocumentPart[SiblingKeys]>> : Unreachable$1); }[Keys];
|
|
2959
|
-
type FindDuplicateIdentifierDeclarationsBetweenGroups<Left, Right> = Left extends unknown ? Right extends unknown ? IsEqualTo<GetDistinctValueFrom<Left>, GetDistinctValueFrom<Right>> extends true ? Left : NoDuplicates : Unreachable$1 : Unreachable$1;
|
|
2960
|
-
type DuplicateIdentifierDeclarationsError<DuplicateIdentifierDeclarations> = TypeError & "Found duplicate identifier declarations. Remove duplicate element or generate separate identifier." & {
|
|
2961
|
-
readonly duplicateIdentifierDeclarations: DuplicateIdentifierDeclarations;
|
|
2962
|
-
};
|
|
2963
|
-
type IsEmpty$1<MaybeEmpty> = [MaybeEmpty] extends [never] ? true : false;
|
|
2964
|
-
type AllGood$1 = never;
|
|
2965
|
-
type NoDuplicates = never;
|
|
2966
|
-
type Unreachable$1 = never;
|
|
2967
2903
|
//#endregion
|
|
2968
2904
|
//#region src/xjustiz-schemata/shared-kernel/scoping.d.ts
|
|
2969
2905
|
/**
|
|
@@ -3014,7 +2950,6 @@ type ScopeGuard<Scope> = Invariant<Scope>;
|
|
|
3014
2950
|
//#endregion
|
|
3015
2951
|
//#region src/xjustiz-schemata/shared-kernel/identifiers/index.d.ts
|
|
3016
2952
|
interface WithIdentifierCapabilities<Value, Scope, Ordinal extends number> extends IdentifierDeclaration, DistinctiveMarker<Value, Ordinal>, WithScope<Scope> {}
|
|
3017
|
-
type VerifyIdentityConstraints<Document> = VerifyUniquenessOfIdentifierDeclarations<Document> | VerifyReferentialIntegrity<Document>;
|
|
3018
2953
|
//#endregion
|
|
3019
2954
|
//#region src/xjustiz-schemata/grunddatensatz/rollennummer.d.ts
|
|
3020
2955
|
/**
|
|
@@ -3069,9 +3004,14 @@ declare const ZUGEHOERIGE_ROLLENBEZEICHNUNG: unique symbol;
|
|
|
3069
3004
|
* ```
|
|
3070
3005
|
*/
|
|
3071
3006
|
declare function createRollennummerGenerator<NachrichtenScope>(scope: ScopeToken<NachrichtenScope>): RollennummerGenerator<NachrichtenScope>;
|
|
3007
|
+
/**
|
|
3008
|
+
* **ATTENTION:**
|
|
3009
|
+
* Incrementing ordinals for generated identifiers are currently turned off,
|
|
3010
|
+
* because of technical limitations to enable dynamic input lists.
|
|
3011
|
+
*/
|
|
3072
3012
|
interface RollennummerGenerator<NachrichtenScope> {
|
|
3073
|
-
first: <ZugehoerigeRollenbezeichnung extends Rollenbezeichnung>(zugehoerigeRollenbezeichnung: ZugehoerigeRollenbezeichnung) => Rollennummer<NachrichtenScope, ZugehoerigeRollenbezeichnung
|
|
3074
|
-
next: <ZugehoerigeRollenbezeichnung extends Rollenbezeichnung, Ordinal extends number>(previous: Rollennummer<NachrichtenScope, Rollenbezeichnung, Ordinal>, zugehoerigeRollenbezeichnung: ZugehoerigeRollenbezeichnung) => Rollennummer<NachrichtenScope, ZugehoerigeRollenbezeichnung
|
|
3013
|
+
first: <ZugehoerigeRollenbezeichnung extends Rollenbezeichnung>(zugehoerigeRollenbezeichnung: ZugehoerigeRollenbezeichnung) => Rollennummer<NachrichtenScope, ZugehoerigeRollenbezeichnung>;
|
|
3014
|
+
next: <ZugehoerigeRollenbezeichnung extends Rollenbezeichnung, Ordinal extends number>(previous: Rollennummer<NachrichtenScope, Rollenbezeichnung, Ordinal>, zugehoerigeRollenbezeichnung: ZugehoerigeRollenbezeichnung) => Rollennummer<NachrichtenScope, ZugehoerigeRollenbezeichnung>;
|
|
3075
3015
|
}
|
|
3076
3016
|
//#endregion
|
|
3077
3017
|
//#region src/xjustiz-schemata/grunddatensatz/uuid.d.ts
|
|
@@ -3109,9 +3049,14 @@ declare const TAG$5: unique symbol;
|
|
|
3109
3049
|
* ```
|
|
3110
3050
|
*/
|
|
3111
3051
|
declare function createUuidGenerator<NachrichtenScope>(scope: ScopeToken<NachrichtenScope>): UuidGenerator<NachrichtenScope>;
|
|
3052
|
+
/**
|
|
3053
|
+
* **ATTENTION:**
|
|
3054
|
+
* Incrementing ordinals for generated identifiers are currently turned off,
|
|
3055
|
+
* because of technical limitations to enable dynamic input lists.
|
|
3056
|
+
*/
|
|
3112
3057
|
interface UuidGenerator<NachrichtenScope> {
|
|
3113
|
-
first: () => UUID<NachrichtenScope
|
|
3114
|
-
next: <Ordinal extends number>(previous: UUID<NachrichtenScope, Ordinal>) => UUID<NachrichtenScope
|
|
3058
|
+
first: () => UUID<NachrichtenScope>;
|
|
3059
|
+
next: <Ordinal extends number>(previous: UUID<NachrichtenScope, Ordinal>) => UUID<NachrichtenScope>;
|
|
3115
3060
|
}
|
|
3116
3061
|
//#endregion
|
|
3117
3062
|
//#region src/xjustiz-schemata/grunddatensatz/composites.d.ts
|
|
@@ -3338,9 +3283,14 @@ type ArtVonBezugselement = "Anspruch" | "Zinsanspruch";
|
|
|
3338
3283
|
* ```
|
|
3339
3284
|
*/
|
|
3340
3285
|
declare function createFortlaufendeNummerGenerator<NachrichtenScope>(scope: ScopeToken<NachrichtenScope>): FortlaufendeNummerGenerator<NachrichtenScope>;
|
|
3286
|
+
/**
|
|
3287
|
+
* **ATTENTION:**
|
|
3288
|
+
* Incrementing ordinals for generated identifiers are currently turned off,
|
|
3289
|
+
* because of technical limitations to enable dynamic input lists.
|
|
3290
|
+
*/
|
|
3341
3291
|
interface FortlaufendeNummerGenerator<NachrichtenScope> {
|
|
3342
|
-
first: <Bezugselement extends ArtVonBezugselement>(bezugselement: Bezugselement) => FortlaufendeNummer<NachrichtenScope, Bezugselement
|
|
3343
|
-
next: <Bezugselement extends ArtVonBezugselement, Ordinal extends number>(previous: FortlaufendeNummer<NachrichtenScope, ArtVonBezugselement, Ordinal>, bezugselement: Bezugselement) => FortlaufendeNummer<NachrichtenScope, Bezugselement
|
|
3292
|
+
first: <Bezugselement extends ArtVonBezugselement>(bezugselement: Bezugselement) => FortlaufendeNummer<NachrichtenScope, Bezugselement>;
|
|
3293
|
+
next: <Bezugselement extends ArtVonBezugselement, Ordinal extends number>(previous: FortlaufendeNummer<NachrichtenScope, ArtVonBezugselement, Ordinal>, bezugselement: Bezugselement) => FortlaufendeNummer<NachrichtenScope, Bezugselement>;
|
|
3344
3294
|
}
|
|
3345
3295
|
//#endregion
|
|
3346
3296
|
//#region src/xjustiz-schemata/klaver/composites.d.ts
|
|
@@ -3564,59 +3514,18 @@ type VerifiedNachricht<MessageProfile> = MessageProfile & {
|
|
|
3564
3514
|
};
|
|
3565
3515
|
declare const TAG: unique symbol;
|
|
3566
3516
|
/**
|
|
3517
|
+
* **!!! WARNING !!!**
|
|
3518
|
+
* Verification of constraints on a type-level is currently turned off due to
|
|
3519
|
+
* technical limitations on dynamic input lists. You **MUST** take great care to
|
|
3520
|
+
* not use the same identifier multiple times (uniqueness constraint) and include
|
|
3521
|
+
* any referenced identifier declaration in the final message (referential
|
|
3522
|
+
* integrity constraint). Until further updates, any violation passes silently.
|
|
3523
|
+
*
|
|
3567
3524
|
* Type-level verification of multiple constraints on `Nachricht`, based on the
|
|
3568
3525
|
* related `MessageProfile`. The resolved type can either be a successfully
|
|
3569
3526
|
* {@link VerifiedNachricht} or all the detected errors.
|
|
3570
3527
|
*/
|
|
3571
|
-
type VerifiedNachrichtOrErrors<Nachricht,
|
|
3572
|
-
type ExcessPropertiesError<ExcessProperties> = TypeError & "Found properties in Nachricht not allowed by the message profile. Remove excess properties." & {
|
|
3573
|
-
readonly excessProperties: ExcessProperties;
|
|
3574
|
-
};
|
|
3575
|
-
type VerifyNoExcessProperties<Nachricht, MessageProfile> = FindExcessProperties<Nachricht, MessageProfile> extends (infer ExcessProperties) ? IsEmpty<ExcessProperties> extends false ? ExcessPropertiesError<ExcessProperties> : AllGood : Unreachable;
|
|
3576
|
-
type FindExcessProperties<Nachricht, MessageProfile> = IsCodeliste<MessageProfile> extends true ? [Nachricht] extends [object] ? Exclude<keyof Nachricht, keyof MessageProfile> : StructuralIncompatibilityIssues : HasMatchingVariantOfMessageProfileWithoutExcessProperties<Nachricht, MessageProfile> extends true ? AllGood : Exclude<FindExcessPropertiesAgainst<Nachricht, MessageProfile>, StructuralIncompatibilityIssues>;
|
|
3577
|
-
/**
|
|
3578
|
-
* A `MessageProfile` can define type unions on different levels in the
|
|
3579
|
-
* document tree structure. Unions of objects with different key sets are
|
|
3580
|
-
* especially tricky in the context of finding excess properties.
|
|
3581
|
-
*
|
|
3582
|
-
* This predicate evaluates if there is any variant of the `MessageProfile`,
|
|
3583
|
-
* that cleanly matches the `Nachricht` without excess properties. Because
|
|
3584
|
-
* {@link FindMatchingVariantOfMessageProfileWithoutExcessProperties} must
|
|
3585
|
-
* distribute over the union of variants, this predicate type interprets the
|
|
3586
|
-
* result of it — a union of by itself.
|
|
3587
|
-
*
|
|
3588
|
-
* Because of dealing with unions, there is no way to implement it so excess
|
|
3589
|
-
* properties are collected, while trying to find a clean variant. In case this
|
|
3590
|
-
* predicate evaluates to `false`, the actual excess properties must be found
|
|
3591
|
-
* separate.
|
|
3592
|
-
*/
|
|
3593
|
-
type HasMatchingVariantOfMessageProfileWithoutExcessProperties<Nachricht, MessageProfile> = [FindMatchingVariantOfMessageProfileWithoutExcessProperties<Nachricht, MessageProfile>] extends [never] ? false : true;
|
|
3594
|
-
/**
|
|
3595
|
-
* This type distributes over the variants of the `MessageProfile`. In case the
|
|
3596
|
-
* `MessageProfile` is not a union, there is always only one variant. If the
|
|
3597
|
-
* `Nachricht` matches one of the variants, meaning it has no excess properties
|
|
3598
|
-
* in comparison, this variant is returned as clean match.
|
|
3599
|
-
*/
|
|
3600
|
-
type FindMatchingVariantOfMessageProfileWithoutExcessProperties<Nachricht, MessageProfile> = MessageProfile extends (infer VariantOfMessageProfile) ? FindExcessPropertiesAgainst<Nachricht, VariantOfMessageProfile> extends (infer ExcessProperties) ? IsEmpty<ExcessProperties> extends true ? VariantOfMessageProfile : never : Unreachable : Unreachable;
|
|
3601
|
-
type FindExcessPropertiesAgainst<Nachricht, MessageProfile> = Nachricht extends readonly unknown[] ? MessageProfile extends readonly unknown[] ? IsTuple<Nachricht> extends true ? IsTuple<MessageProfile> extends true ? FindExcessPropertiesBetweenTuples<Nachricht, MessageProfile> : FindExcessPropertiesBetweenTupleAndArray<Nachricht, MessageProfile> : FindExcessPropertiesBetweenArrays<Nachricht, MessageProfile> : StructuralIncompatibilityIssues : Nachricht extends object ? MessageProfile extends object ? FindExcessPropertiesBetweenObjects<Nachricht, MessageProfile> : StructuralIncompatibilityIssues : AllGood;
|
|
3602
|
-
type FindExcessPropertiesBetweenTuples<Nachricht extends readonly unknown[], MessageProfile extends readonly unknown[]> = { [Index in IndicesOfTuple<Nachricht>]: Index extends IndicesOfTuple<MessageProfile> ? FindExcessProperties<Nachricht[Index], MessageProfile[Index]> : Index; }[IndicesOfTuple<Nachricht>];
|
|
3603
|
-
type FindExcessPropertiesBetweenTupleAndArray<Nachricht extends readonly unknown[], MessageProfile extends readonly unknown[]> = { [Index in IndicesOfTuple<Nachricht>]: FindExcessProperties<Nachricht[Index], MessageProfile[number]>; }[IndicesOfTuple<Nachricht>];
|
|
3604
|
-
type FindExcessPropertiesBetweenArrays<Nachricht extends readonly unknown[], MessageProfile extends readonly unknown[]> = FindExcessProperties<Nachricht[number], MessageProfile[number]>;
|
|
3605
|
-
type FindExcessPropertiesBetweenObjects<Nachricht extends object, MessageProfile extends object> = Exclude<keyof Nachricht, keyof MessageProfile> | FindExcessPropertiesInSharedKeys<Nachricht, MessageProfile>;
|
|
3606
|
-
type FindExcessPropertiesInSharedKeys<Nachricht extends object, MessageProfile extends object> = { [Key in keyof Nachricht & keyof MessageProfile]: FindExcessProperties<Nachricht[Key], MessageProfile[Key]>; }[keyof Nachricht & keyof MessageProfile];
|
|
3607
|
-
type IsEmpty<MaybeEmpty> = [MaybeEmpty] extends [never] ? true : false;
|
|
3608
|
-
type AllGood = never;
|
|
3609
|
-
type Unreachable = never;
|
|
3610
|
-
/**
|
|
3611
|
-
* Nachricht and MessageProfile differ in a way they can't be compared with each
|
|
3612
|
-
* other to find excess properties. This is a separate and deeper issue to excess
|
|
3613
|
-
* properties. It is not a concern of the verification for no excess properties.
|
|
3614
|
-
* However, it must be distinctive in the type-level computation with a plain
|
|
3615
|
-
* `never` case, which in some cases indicates a positive match. Without, a
|
|
3616
|
-
* structural incompatible Nachricht would be reported as correct.
|
|
3617
|
-
*/
|
|
3618
|
-
type StructuralIncompatibilityIssues = typeof StructuralIncompatibilityIssues;
|
|
3619
|
-
declare const StructuralIncompatibilityIssues: unique symbol;
|
|
3528
|
+
type VerifiedNachrichtOrErrors<Nachricht, _MessageProfile> = VerifiedNachricht<Nachricht>;
|
|
3620
3529
|
//#endregion
|
|
3621
3530
|
//#region src/generate-xml-document.d.ts
|
|
3622
3531
|
type XjustizToolsConnectionParameter = {
|
|
@@ -3642,6 +3551,13 @@ type XjustizMessageXmlResult = {
|
|
|
3642
3551
|
*/
|
|
3643
3552
|
declare function zahlungsklage(compose: <NachrichtenScope>(scope: ScopeToken<NachrichtenScope>) => VerifiedNachricht<Zahlungsklage<NachrichtenScope>>, xjustizToolsConnectionParameter: XjustizToolsConnectionParameter): Promise<XjustizMessageXmlResult>;
|
|
3644
3553
|
/**
|
|
3554
|
+
* **!!! WARNING !!!**
|
|
3555
|
+
* Verification of constraints on a type-level is currently turned off due to
|
|
3556
|
+
* technical limitations on dynamic input lists. You **MUST** take great care to
|
|
3557
|
+
* not use the same identifier multiple times (uniqueness constraint) and include
|
|
3558
|
+
* any referenced identifier declaration in the final message (referential
|
|
3559
|
+
* integrity constraint). Until further updates, any violation passes silently.
|
|
3560
|
+
*
|
|
3645
3561
|
* Used as last step of composing a `Zahlungsklage` with the {@link zahlungsklage}
|
|
3646
3562
|
* orchestrator to output a valid {@link VerifiedNachricht}. It will apply
|
|
3647
3563
|
* multiple type-level computations to verify constraints like for identities or
|
|
@@ -2376,7 +2376,7 @@ function herstellerinformation() {
|
|
|
2376
2376
|
return {
|
|
2377
2377
|
nameDesProdukts: "Justizportal XJustiz Services",
|
|
2378
2378
|
herstellerDesProdukts: "Bundesministerium der Justiz und für Verbraucherschutz, ausgeführt durch DigitalService GmbH des Bundes",
|
|
2379
|
-
version: "\"0.
|
|
2379
|
+
version: "\"0.9.0\""
|
|
2380
2380
|
};
|
|
2381
2381
|
}
|
|
2382
2382
|
//#endregion
|
|
@@ -3312,6 +3312,13 @@ function zahlungsklage(compose, xjustizToolsConnectionParameter) {
|
|
|
3312
3312
|
});
|
|
3313
3313
|
}
|
|
3314
3314
|
/**
|
|
3315
|
+
* **!!! WARNING !!!**
|
|
3316
|
+
* Verification of constraints on a type-level is currently turned off due to
|
|
3317
|
+
* technical limitations on dynamic input lists. You **MUST** take great care to
|
|
3318
|
+
* not use the same identifier multiple times (uniqueness constraint) and include
|
|
3319
|
+
* any referenced identifier declaration in the final message (referential
|
|
3320
|
+
* integrity constraint). Until further updates, any violation passes silently.
|
|
3321
|
+
*
|
|
3315
3322
|
* Used as last step of composing a `Zahlungsklage` with the {@link zahlungsklage}
|
|
3316
3323
|
* orchestrator to output a valid {@link VerifiedNachricht}. It will apply
|
|
3317
3324
|
* multiple type-level computations to verify constraints like for identities or
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "@digitalservicebund/a2j-xjustiz-bridge",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"description": "Assisted composition of XJustiz messages that are ensured to be valid.",
|
|
6
6
|
"author": "Team Court Communication (Access to Justice) - DigitalService GmbH des Bundes",
|
|
7
7
|
"license": "MIT",
|