Docs
chromia.com

Type Alias

AuthDescriptorGtvModule

On this page
type AuthDescriptorGtvModule = {
    authDescriptorFromGtv: (res: RawAnyAuthDescriptor) => AnyAuthDescriptor;
    authDescriptorRegistrationToGtv: (
        registration: AnyAuthDescriptorRegistration,
    ) => RawAnyAuthDescriptorRegistration;
    mapAuthDescriptorsFromGtv: (
        response: RawAnyAuthDescriptor[],
    ) => AnyAuthDescriptor[];
    rulesFromGtv: <T extends string>(
        gtvRules: RawRules,
        mapRule: (rule: RawSimpleRule) => SimpleRule<T>,
    ) => ComplexRule<T> | SimpleRule<T>;
}

Properties

authDescriptorFromGtv

authDescriptorFromGtv: (res: RawAnyAuthDescriptor) => AnyAuthDescriptor

Parses an auth descriptor from its gtv representation to its typescript representation

Type Declaration

authDescriptorRegistrationToGtv

authDescriptorRegistrationToGtv: (
    registration: AnyAuthDescriptorRegistration,
) => RawAnyAuthDescriptorRegistration

Serializes an auth descriptor registration instance into its gtv representation

Type Declaration

mapAuthDescriptorsFromGtv

mapAuthDescriptorsFromGtv: (
    response: RawAnyAuthDescriptor[],
) => AnyAuthDescriptor[]

Converts an auth descriptor from its gtv representation to its typescript representation

Type Declaration

rulesFromGtv

rulesFromGtv: <T extends string>(
    gtvRules: RawRules,
    mapRule: (rule: RawSimpleRule) => SimpleRule<T>,
) => ComplexRule<T> | SimpleRule<T>

Parses a simple or complex rule from its gtv representation to its typescript representation

Type Declaration