Kaizen
Browse modulesInsightsinsights/sharedSchemas and constants

Variable: fieldMetadataSchema

const fieldMetadataSchema: 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>;

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