UNPKG

appwrite-utils

Version:
95 lines (94 loc) 3.41 kB
// AUTO-GENERATED from Appwrite OpenAPI spec at main. DO NOT EDIT. // Source: https://github.com/appwrite/appwrite/tree/main/app/config/specs import { z } from "zod"; const CurrencyListJsonSchema = { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "total": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991, "x-example": 5, "description": "Total number of currencies that matched your query." }, "currencies": { "type": "array", "items": { "type": "object", "properties": { "symbol": { "type": "string", "x-example": "$", "description": "Currency symbol." }, "name": { "type": "string", "x-example": "US dollar", "description": "Currency name." }, "symbolNative": { "type": "string", "x-example": "$", "description": "Currency native symbol." }, "decimalDigits": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991, "x-example": 2, "description": "Number of decimal digits." }, "rounding": { "type": "number", "x-example": 0, "description": "Currency digit rounding." }, "code": { "type": "string", "x-example": "USD", "description": "Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format." }, "namePlural": { "type": "string", "x-example": "US dollars", "description": "Currency plural name" } }, "required": [ "symbol", "name", "symbolNative", "decimalDigits", "rounding", "code", "namePlural" ], "additionalProperties": {}, "example": { "symbol": "$", "name": "US dollar", "symbolNative": "$", "decimalDigits": 2, "rounding": 0, "code": "USD", "namePlural": "US dollars" }, "description": "Currency" }, "x-example": "", "description": "List of currencies." } }, "required": [ "total", "currencies" ], "additionalProperties": {}, "example": { "total": 5, "currencies": "" }, "description": "Currencies List" }; export const CurrencyListSchema = z.fromJSONSchema(CurrencyListJsonSchema);