Openstatus
www.openstatus.dev
1import type { z } from "zod";
2
3import type { numberCompare, recordCompare, stringCompare } from "./v1";
4
5export const numberCompareDictionary: Record<
6 z.infer<typeof numberCompare>,
7 string
8> = {
9 eq: "Equal",
10 not_eq: "Not Equal",
11 gt: "Greater than",
12 gte: "Greater than or equal",
13 lt: "Less than",
14 lte: "Less than or equal",
15};
16
17export const stringCompareDictionary: Record<
18 z.infer<typeof stringCompare>,
19 string
20> = {
21 contains: "Contains",
22 not_contains: "Does not contain",
23 eq: "Equal",
24 not_eq: "Not Equal",
25 empty: "Empty",
26 not_empty: "Not Empty",
27 gt: "Greater than",
28 gte: "Greater than or equal",
29 lt: "Less than",
30 lte: "Less than or equal",
31};
32
33export const recordCompareDictionary: Record<
34 z.infer<typeof recordCompare>,
35 string
36> = {
37 eq: "Equal",
38 not_eq: "Not Equal",
39 contains: "Contains",
40 not_contains: "Does not contain",
41};