2022-04-19 16:50:21 +02:00
|
|
|
import { z } from "zod";
|
|
|
|
|
|
|
|
/*
|
|
|
|
* WARNING! The original file is in /messages/JsonMessages.
|
|
|
|
* All other files are automatically copied from this file on container startup / build
|
|
|
|
*/
|
|
|
|
|
|
|
|
export const isErrorApiData = z.object({
|
|
|
|
type: z.string(),
|
|
|
|
code: z.string(),
|
|
|
|
title: z.string(),
|
|
|
|
subtitle: z.string(),
|
|
|
|
details: z.string(),
|
|
|
|
image: z.string(),
|
|
|
|
urlToRedirect: z.optional(z.nullable(z.string())),
|
|
|
|
buttonTitle: z.optional(z.nullable(z.string())),
|
|
|
|
timeToRetry: z.optional(z.nullable(z.bigint())),
|
2022-04-19 17:35:47 +02:00
|
|
|
canRetryManual: z.optional(z.nullable(z.boolean())),
|
2022-04-19 16:50:21 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export type ErrorApiData = z.infer<typeof isErrorApiData>;
|