Class ModuleConfigQueryValidator<TConfig>

Type Parameters

Hierarchy

  • ModuleConfigQueryValidator

Implements

Constructors

  • Type Parameters

    • TConfig extends SchemaFields & PayloadFields & {
          archivist?: ArchivistModuleConfig;
          name?: string;
          paging?: Record<string, {
              size?: number;
          }>;
          schema: string;
          security?: {
              allowAnonymous?: boolean;
              allowed?: Record<string, (string | CosigningAddressSet)[]>;
              disallowed?: Record<string, string[]>;
          };
          storeQueries?: boolean;
      } & Omit<Omit<SchemaFields & PayloadFields & {
          archivist?: ArchivistModuleConfig;
          name?: string;
          paging?: Record<string, {
              size?: number;
          }>;
          schema: "network.xyo.module.config";
          security?: {
              allowAnonymous?: boolean;
              allowed?: Record<string, (string | CosigningAddressSet)[]>;
              disallowed?: Record<string, string[]>;
          };
          storeQueries?: boolean;
      } & Omit<undefined, "schema">, "schema"> & {
          schema: string;
      }, "schema">

    Parameters

    • Optional config: TConfig

    Returns ModuleConfigQueryValidator<TConfig>

Properties

allowed: Record<string, string[]>
disallowed: Record<string, string[]>
hasAllowedRules: boolean
hasDisallowedRules: boolean
hasRules: boolean
queryAllowed: ((schema, addresses) => boolean)

Type declaration

    • (schema, addresses): boolean
    • Parameters

      • schema: string
      • addresses: string[]

      Returns boolean

queryDisallowed: ((schema, addresses) => boolean)

Type declaration

    • (schema, addresses): boolean
    • Parameters

      • schema: string
      • addresses: string[]

      Returns boolean

queryable: Queryable<SchemaFields & PayloadFields & BoundWitnessFields & {
    query: string;
    resultSet?: string;
    schema: "network.xyo.boundwitness";
}>

Generated using TypeDoc