Files
cfw-autumn/shared/api/entities/crud/updateEntityParams.ts

17 lines
589 B
TypeScript

import { z } from "zod/v4";
import { ApiEntityBillingControlsParamsSchema } from "../../billingControls/entityBillingControls.js";
export const UpdateEntityParamsSchema = z.object({
customer_id: z.string().optional().meta({
description: "The ID of the customer that owns the entity.",
}),
entity_id: z.string().meta({
description: "The ID of the entity.",
}),
billing_controls: ApiEntityBillingControlsParamsSchema.optional().meta({
description: "Billing controls to replace on the entity.",
}),
});
export type UpdateEntityParams = z.infer<typeof UpdateEntityParamsSchema>;