{"version":3,"sources":["../../../src/ecommerce-currency-converter-v1-currency-rate-currencies.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ListCurrenciesRequest = z.object({});\nexport const ListCurrenciesResponse = z.object({\n  currencies: z\n    .array(\n      z.object({\n        code: z.string().describe('Currency code.').optional(),\n        symbol: z.string().describe('Currency symbol.').max(10).optional(),\n      })\n    )\n    .optional(),\n});\nexport const ConvertCurrencyRequest = z.object({\n  identifiers: z\n    .object({\n      from: z.string().describe('Original currency.'),\n      to: z.string().describe('Target currency.'),\n    })\n    .describe(\n      'Identifying details needed to determine which currency rate to convert. The combination of the `from` and `to` properties together comprise the unique ID. '\n    ),\n  amounts: z\n    .array(\n      z.object({\n        value: z\n          .string()\n          .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n          .describe(\n            'Value without decimals (e.g., for 10.95 value will be 1095).'\n          )\n          .optional(),\n        decimalPlaces: z\n          .number()\n          .int()\n          .describe(\n            'Decimal places to apply (e.g., for 10.95 decimal_places will be 2).'\n          )\n          .optional(),\n      })\n    )\n    .min(1)\n    .max(100),\n});\nexport const ConvertCurrencyResponse = z.object({\n  amounts: z\n    .array(\n      z.object({\n        value: z\n          .string()\n          .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n          .describe(\n            'Value without decimals (e.g., for 10.95 value will be 1095).'\n          )\n          .optional(),\n        decimalPlaces: z\n          .number()\n          .int()\n          .describe(\n            'Decimal places to apply (e.g., for 10.95 decimal_places will be 2).'\n          )\n          .optional(),\n      })\n    )\n    .optional(),\n  rateTimestamp: z\n    .date()\n    .describe('Date and time the conversion rate was last updated.')\n    .optional()\n    .nullable(),\n});\nexport const GetConversionRateRequest = z.object({\n  identifiers: z\n    .object({\n      from: z.string().describe('Original currency.'),\n      to: z.string().describe('Target currency.'),\n    })\n    .describe(\n      'Identifying details needed to determine which currency rate to retrieve. The combination of the `from` and `to` properties together comprise the unique ID. '\n    ),\n});\nexport const GetConversionRateResponse = z.object({\n  rate: z\n    .object({\n      value: z\n        .string()\n        .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n        .describe(\n          'Value without decimals (e.g., for 10.95 value will be 1095).'\n        )\n        .optional(),\n      decimalPlaces: z\n        .number()\n        .int()\n        .describe(\n          'Decimal places to apply (e.g., for 10.95 decimal_places will be 2).'\n        )\n        .optional(),\n    })\n    .describe('Conversion rate between 2 currencies.')\n    .optional(),\n  rateTimestamp: z\n    .date()\n    .describe('Date and time the conversion rate was last updated.')\n    .optional()\n    .nullable(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,wBAA0B,SAAO,CAAC,CAAC;AACzC,IAAM,yBAA2B,SAAO;AAAA,EAC7C,YACG;AAAA,IACG,SAAO;AAAA,MACP,MAAQ,SAAO,EAAE,SAAS,gBAAgB,EAAE,SAAS;AAAA,MACrD,QAAU,SAAO,EAAE,SAAS,kBAAkB,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,IACnE,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,aACG,SAAO;AAAA,IACN,MAAQ,SAAO,EAAE,SAAS,oBAAoB;AAAA,IAC9C,IAAM,SAAO,EAAE,SAAS,kBAAkB;AAAA,EAC5C,CAAC,EACA;AAAA,IACC;AAAA,EACF;AAAA,EACF,SACG;AAAA,IACG,SAAO;AAAA,MACP,OACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,eACG,SAAO,EACP,IAAI,EACJ;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AACZ,CAAC;AACM,IAAM,0BAA4B,SAAO;AAAA,EAC9C,SACG;AAAA,IACG,SAAO;AAAA,MACP,OACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,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