"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tableCalcPercentOfPreviousValueSchema = void 0;
const zod_1 = require("zod");
const fieldId_1 = require("../fieldId");
const tableCalcBaseSchemas_1 = require("./tableCalcBaseSchemas");
exports.tableCalcPercentOfPreviousValueSchema = tableCalcBaseSchemas_1.baseTableCalcSchema.extend({
    type: zod_1.z.literal('percent_of_previous_value'),
    fieldId: (0, fieldId_1.getFieldIdSchema)({
        additionalDescription: 'Field whose values you want to compare',
    }),
    orderBy: zod_1.z
        .array(tableCalcBaseSchemas_1.orderBySchema)
        .min(1)
        .describe(tableCalcBaseSchemas_1.orderBySchemaDescription),
    partitionBy: zod_1.z
        .array(tableCalcBaseSchemas_1.partitionBySchema)
        .nullable()
        .describe(tableCalcBaseSchemas_1.partitionBySchemaDescription),
});
//# sourceMappingURL=tableCalcPercentOfPreviousValue.js.map