Kaizen
Browse modulesInsightsinsights/sharedSchemas and constants

Variable: subjectMetadataSchema

const subjectMetadataSchema: ZodObject<{
  defaultColumns: ZodOptional<ZodArray<ZodString>>;
  fields: ZodArray<ZodObject<{
     capabilities: ZodObject<{
        aggregatable: ZodBoolean;
        filterable: ZodBoolean;
        groupable: ZodBoolean;
        sortable: ZodBoolean;
     }, $strip>;
     enumValues: ZodOptional<ZodArray<ZodString>>;
     key: ZodString;
     label: ZodString;
     money: ZodOptional<ZodObject<{
        currencyCode: ZodOptional<ZodString>;
        representation: ZodEnum<{
           decimal: "decimal";
           minorUnits: "minorUnits";
        }>;
        scale: ZodDefault<ZodNumber>;
     }, $strip>>;
     type: ZodEnum<{
        boolean: "boolean";
        date: "date";
        datetime: "datetime";
        enum: "enum";
        money: "money";
        number: "number";
        string: "string";
     }>;
  }, $strip>>;
  key: ZodString;
  label: ZodString;
}, $strip>;

Defined in: shared/insights/types/model-metadata.ts:102