CustomEventRequirementConfig

@torque-labs/sdk


@torque-labs/sdk / CustomEventRequirementConfig

Type Alias: CustomEventRequirementConfig

type CustomEventRequirementConfig = {
  config: {
     eventName: string;
     fields: (
        | {
        fieldName: string;
        validation: {
           type: "string";
           validation: "exactMatch" | "regEx";
           value: string;
          };
       }
        | {
        fieldName: string;
        validation: {
           max: number;
           min: number;
           type: "number";
          };
       }
        | {
        fieldName: string;
        validation: {
           exact: boolean;
           type: "boolean";
          };
       })[];
    };
  oracle: "CUSTOM_EVENT_PROVIDER";
  type: "CUSTOM";
};

Defined in: sdk/src/types/schemaTypes.ts:1982arrow-up-right

Properties

config

Defined in: sdk/src/types/schemaTypes.ts:1984arrow-up-right

Name
Type

eventName

string

fields

( | { fieldname: string; validation: { type: "string"; validation: "exactmatch" | "regex"; value: string; }; } | { fieldname: string; validation: { max: number; min: number; type: "number"; }; } | { fieldname: string; validation: { exact: boolean; type: "boolean"; }; })[]


oracle

Defined in: sdk/src/types/schemaTypes.ts:2012arrow-up-right


type

Defined in: sdk/src/types/schemaTypes.ts:1983arrow-up-right

Last updated