@meteorwallet/shared-app-logic
Advanced tools
Comparing version 0.42.0 to 0.43.0
@@ -0,1 +1,2 @@ | ||
import { TCountryCode } from "countries-list"; | ||
import { z } from "zod"; | ||
@@ -7,3 +8,3 @@ import { EWalletProgramId } from "../wallet_program.enums"; | ||
version: z.ZodLiteral<"1">; | ||
country_code: z.ZodString; | ||
country_code: z.ZodEffects<z.ZodString, TCountryCode, string>; | ||
email: z.ZodString; | ||
@@ -18,3 +19,3 @@ deposit_trx_hashes: z.ZodArray<z.ZodString, "many">; | ||
version: "1"; | ||
country_code: string; | ||
country_code: TCountryCode; | ||
email: string; | ||
@@ -21,0 +22,0 @@ deposit_trx_hashes: string[]; |
@@ -0,8 +1,11 @@ | ||
import { countries } from "countries-list"; | ||
import { z } from "zod"; | ||
import { zCountryCodeAlpha2 } from "../../country_and_language/country.zod"; | ||
import { EWalletProgramId } from "../wallet_program.enums"; | ||
import { EMeteorDefiCardEstimatedUsage } from "./meteor_defi_card.enums"; | ||
const countryCodes = Object.keys(countries); | ||
export const zWalletProgramSignUpData_MeteorDefiCardV1 = z.object({ | ||
wallet_program_id: z.literal(EWalletProgramId.meteor_defi_card), | ||
version: z.literal("1"), | ||
country_code: z.string().length(3), | ||
country_code: zCountryCodeAlpha2, | ||
email: z.string().email(), | ||
@@ -9,0 +12,0 @@ deposit_trx_hashes: z.array(z.string()), |
{ | ||
"name": "@meteorwallet/shared-app-logic", | ||
"version": "0.42.0", | ||
"version": "0.43.0", | ||
"description": "Models, types and utilities for Meteor Wallet features", | ||
@@ -47,2 +47,3 @@ "files": [ | ||
"dependencies": { | ||
"countries-list": "^3.1.1", | ||
"zod": "^3.23.8" | ||
@@ -49,0 +50,0 @@ }, |
Sorry, the diff of this file is not supported yet
13506
34
206
2
+ Addedcountries-list@^3.1.1
+ Addedcountries-list@3.1.1(transitive)