style: apply biome lint fixes to catalog files and live repair tests
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import { z } from "zod";
|
||||
import { CatalogInputError } from "./hierarchy";
|
||||
import { EMULATOR_POINTS_TYPES, offerIdSchema, offerInteger } from "./offer-input";
|
||||
import {
|
||||
EMULATOR_POINTS_TYPES,
|
||||
offerIdSchema,
|
||||
offerInteger,
|
||||
} from "./offer-input";
|
||||
|
||||
const priceChange = z
|
||||
.object({
|
||||
@@ -27,7 +31,9 @@ export const bulkOfferChangesSchema = z
|
||||
.refine(
|
||||
(v) =>
|
||||
v.pointsType === undefined ||
|
||||
EMULATOR_POINTS_TYPES.includes(v.pointsType as (typeof EMULATOR_POINTS_TYPES)[number]),
|
||||
EMULATOR_POINTS_TYPES.includes(
|
||||
v.pointsType as (typeof EMULATOR_POINTS_TYPES)[number],
|
||||
),
|
||||
"Points type is not supported by the emulator",
|
||||
);
|
||||
export const bulkOfferInputSchema = z
|
||||
|
||||
Reference in New Issue
Block a user