Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fiatconnect/fiatconnect-types

Package Overview
Dependencies
Maintainers
6
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fiatconnect/fiatconnect-types - npm Package Compare versions

Comparing version 10.2.2 to 11.0.0

33

dist/fiat-account.d.ts

@@ -24,9 +24,2 @@ import { z } from 'zod';

export declare const pixKeyTypeEnumSchema: z.ZodNativeEnum<typeof PIXKeyTypeEnum>;
export declare enum SupportedOperatorEnum {
ORANGE = "ORANGE",
MOOV = "MOOV",
MTN = "MTN",
WAVE = "WAVE"
}
export declare const supportedOperatorEnumSchema: z.ZodNativeEnum<typeof SupportedOperatorEnum>;
export declare const PIX_EMAIL_KEY_REGEX: RegExp;

@@ -156,3 +149,3 @@ export declare const PIX_CPF_KEY_REGEX: RegExp;

country: z.ZodString;
operator: z.ZodNativeEnum<typeof SupportedOperatorEnum>;
operator: z.ZodString;
fiatAccountType: z.ZodLiteral<FiatAccountType.MobileMoney>;

@@ -163,3 +156,3 @@ }, "strip", z.ZodTypeAny, {

mobile: string;
operator: SupportedOperatorEnum;
operator: string;
}, {

@@ -169,3 +162,3 @@ fiatAccountType: FiatAccountType.MobileMoney;

mobile: string;
operator: SupportedOperatorEnum;
operator: string;
}>>;

@@ -269,3 +262,3 @@ export type MobileMoney = z.infer<typeof mobileMoneySchema>;

country: z.ZodString;
operator: z.ZodNativeEnum<typeof SupportedOperatorEnum>;
operator: z.ZodString;
fiatAccountType: z.ZodLiteral<FiatAccountType.MobileMoney>;

@@ -276,3 +269,3 @@ }, "strip", z.ZodTypeAny, {

mobile: string;
operator: SupportedOperatorEnum;
operator: string;
}, {

@@ -282,3 +275,3 @@ fiatAccountType: FiatAccountType.MobileMoney;

mobile: string;
operator: SupportedOperatorEnum;
operator: string;
}>>;

@@ -433,3 +426,3 @@ DuniaWallet: z.ZodIntersection<z.ZodObject<{

mobile: string;
operator: SupportedOperatorEnum;
operator: string;
};

@@ -500,3 +493,3 @@ DuniaWallet: {

mobile: string;
operator: SupportedOperatorEnum;
operator: string;
};

@@ -683,3 +676,3 @@ DuniaWallet: {

country: z.ZodString;
operator: z.ZodNativeEnum<typeof SupportedOperatorEnum>;
operator: z.ZodString;
fiatAccountType: z.ZodLiteral<FiatAccountType.MobileMoney>;

@@ -690,3 +683,3 @@ }, "strip", z.ZodTypeAny, {

mobile: string;
operator: SupportedOperatorEnum;
operator: string;
}, {

@@ -696,3 +689,3 @@ fiatAccountType: FiatAccountType.MobileMoney;

mobile: string;
operator: SupportedOperatorEnum;
operator: string;
}>>;

@@ -708,3 +701,3 @@ }, "strip", z.ZodTypeAny, {

mobile: string;
operator: SupportedOperatorEnum;
operator: string;
};

@@ -721,3 +714,3 @@ fiatAccountSchema: FiatAccountSchema.MobileMoney;

mobile: string;
operator: SupportedOperatorEnum;
operator: string;
};

@@ -724,0 +717,0 @@ fiatAccountSchema: FiatAccountSchema.MobileMoney;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.postFiatAccountResponseSchema = exports.getFiatAccountsResponseSchema = exports.deleteFiatAccountRequestParamsSchema = exports.postFiatAccountRequestBodySchema = exports.obfuscatedFiatAccountDataSchema = exports.fiatAccountIdSchema = exports.fiatAccountSchemasSchema = exports.iFSCAccountSchema = exports.iBANNumberSchema = exports.mobileMoneySchema = exports.duniaWalletSchema = exports.accountNumberSchema = exports.pixAccountSchema = exports.PIX_RANDOM_KEY_REGEX = exports.PIX_PHONE_KEY_REGEX = exports.PIX_CPF_KEY_REGEX = exports.PIX_EMAIL_KEY_REGEX = exports.supportedOperatorEnumSchema = exports.SupportedOperatorEnum = exports.pixKeyTypeEnumSchema = exports.PIXKeyTypeEnum = exports.fiatAccountTypeSchema = exports.FiatAccountType = exports.fiatAccountSchemaSchema = exports.FiatAccountSchema = void 0;
exports.postFiatAccountResponseSchema = exports.getFiatAccountsResponseSchema = exports.deleteFiatAccountRequestParamsSchema = exports.postFiatAccountRequestBodySchema = exports.obfuscatedFiatAccountDataSchema = exports.fiatAccountIdSchema = exports.fiatAccountSchemasSchema = exports.iFSCAccountSchema = exports.iBANNumberSchema = exports.mobileMoneySchema = exports.duniaWalletSchema = exports.accountNumberSchema = exports.pixAccountSchema = exports.PIX_RANDOM_KEY_REGEX = exports.PIX_PHONE_KEY_REGEX = exports.PIX_CPF_KEY_REGEX = exports.PIX_EMAIL_KEY_REGEX = exports.pixKeyTypeEnumSchema = exports.PIXKeyTypeEnum = exports.fiatAccountTypeSchema = exports.FiatAccountType = exports.fiatAccountSchemaSchema = exports.FiatAccountSchema = void 0;
const zod_1 = require("zod");

@@ -45,12 +45,2 @@ /*

});
var SupportedOperatorEnum;
(function (SupportedOperatorEnum) {
SupportedOperatorEnum["ORANGE"] = "ORANGE";
SupportedOperatorEnum["MOOV"] = "MOOV";
SupportedOperatorEnum["MTN"] = "MTN";
SupportedOperatorEnum["WAVE"] = "WAVE";
})(SupportedOperatorEnum = exports.SupportedOperatorEnum || (exports.SupportedOperatorEnum = {}));
exports.supportedOperatorEnumSchema = zod_1.z.nativeEnum(SupportedOperatorEnum, {
description: 'supportedOperatorEnumSchema',
});
const requiredFiatAccountSchemaFieldsSchema = zod_1.z.object({

@@ -100,3 +90,3 @@ accountName: zod_1.z.string(),

country: zod_1.z.string(),
operator: exports.supportedOperatorEnumSchema,
operator: zod_1.z.string(),
fiatAccountType: zod_1.z.literal(FiatAccountType.MobileMoney),

@@ -103,0 +93,0 @@ }, { description: 'mobileMoneySchema' }));

@@ -63,9 +63,9 @@ import { z } from 'zod';

kycSchema: z.ZodNativeEnum<typeof import("./kyc").KycSchema>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "atleastone">>;
}, "strip", z.ZodTypeAny, {
kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}, {
kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}>;

@@ -75,9 +75,9 @@ export type QuoteResponseKycSchema = z.infer<typeof quoteResponseKycSchemaSchema>;

fiatAccountSchema: z.ZodNativeEnum<typeof import("./fiat-account").FiatAccountSchema>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "atleastone">>;
}, "strip", z.ZodTypeAny, {
fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}, {
fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}>;

@@ -88,9 +88,9 @@ export type QuoteResponseFiatAccountSchema = z.infer<typeof quoteResponseFiatAccountSchemaSchema>;

fiatAccountSchema: z.ZodNativeEnum<typeof import("./fiat-account").FiatAccountSchema>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "atleastone">>;
}, "strip", z.ZodTypeAny, {
fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}, {
fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}>, "many">;

@@ -104,3 +104,3 @@ settlementTimeLowerBound: z.ZodOptional<z.ZodString>;

fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -112,3 +112,3 @@ }, {

fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -159,9 +159,9 @@ }>;

kycSchema: z.ZodNativeEnum<typeof import("./kyc").KycSchema>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "atleastone">>;
}, "strip", z.ZodTypeAny, {
kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}, {
kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}>, "many">;

@@ -172,3 +172,3 @@ }, "strip", z.ZodTypeAny, {

kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -179,3 +179,3 @@ }, {

kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -186,9 +186,9 @@ }>;

fiatAccountSchema: z.ZodNativeEnum<typeof import("./fiat-account").FiatAccountSchema>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "atleastone">>;
}, "strip", z.ZodTypeAny, {
fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}, {
fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}>, "many">;

@@ -202,3 +202,3 @@ settlementTimeLowerBound: z.ZodOptional<z.ZodString>;

fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -210,3 +210,3 @@ }, {

fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -232,3 +232,3 @@ }>>;

kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -241,3 +241,3 @@ };

fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -263,3 +263,3 @@ }>>;

kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -272,3 +272,3 @@ };

fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -314,9 +314,9 @@ }>>;

kycSchema: z.ZodNativeEnum<typeof import("./kyc").KycSchema>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "atleastone">>;
}, "strip", z.ZodTypeAny, {
kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}, {
kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}>, "many">;

@@ -327,3 +327,3 @@ }, "strip", z.ZodTypeAny, {

kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -334,3 +334,3 @@ }, {

kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -341,9 +341,9 @@ }>;

fiatAccountSchema: z.ZodNativeEnum<typeof import("./fiat-account").FiatAccountSchema>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
allowedValues: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "atleastone">>;
}, "strip", z.ZodTypeAny, {
fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}, {
fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}>, "many">;

@@ -357,3 +357,3 @@ settlementTimeLowerBound: z.ZodOptional<z.ZodString>;

fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -365,3 +365,3 @@ }, {

fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -385,3 +385,3 @@ }>>;

kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -394,3 +394,3 @@ };

fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -414,3 +414,3 @@ }>>;

kycSchema: import("./kyc").KycSchema.PersonalDataAndDocuments;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -423,3 +423,3 @@ };

fiatAccountSchema: import("./fiat-account").FiatAccountSchema;
allowedValues: Record<string, string[]>;
allowedValues: Record<string, [string, ...string[]]>;
}[];

@@ -426,0 +426,0 @@ }>>;

@@ -48,3 +48,3 @@ "use strict";

kycSchema: kyc_1.kycSchemaSchema,
allowedValues: zod_1.z.record(zod_1.z.array(zod_1.z.string())),
allowedValues: zod_1.z.record(zod_1.z.array(zod_1.z.string()).nonempty()),
}, { description: 'quoteResponseKycSchemaSchema' });

@@ -54,3 +54,3 @@ // Helper type

fiatAccountSchema: fiat_account_1.fiatAccountSchemaSchema,
allowedValues: zod_1.z.record(zod_1.z.array(zod_1.z.string())),
allowedValues: zod_1.z.record(zod_1.z.array(zod_1.z.string()).nonempty()),
}, { description: 'quoteResponseFiatAccountSchemaSchema' });

@@ -57,0 +57,0 @@ // Helper type

{
"name": "@fiatconnect/fiatconnect-types",
"version": "10.2.2",
"version": "11.0.0",
"description": "Types used in the FiatConnect specification. Offered as standalone module for payment providers and wallets to both use for FiatConnect APIs and integrations.",

@@ -30,7 +30,7 @@ "scripts": {

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@valora/eslint-config-typescript": "^1.0.1",
"@valora/prettier-config": "^0.0.1",
"conventional-changelog-conventionalcommits": "^5.0.0",
"eslint": "^8.29.0",
"eslint": "^8.30.0",
"eslint-plugin-import": "^2.26.0",

@@ -37,0 +37,0 @@ "eslint-plugin-jest": "^27.1.7",

@@ -44,12 +44,2 @@ import { z } from 'zod'

export enum SupportedOperatorEnum {
ORANGE = 'ORANGE',
MOOV = 'MOOV',
MTN = 'MTN',
WAVE = 'WAVE',
}
export const supportedOperatorEnumSchema = z.nativeEnum(SupportedOperatorEnum, {
description: 'supportedOperatorEnumSchema',
})
const requiredFiatAccountSchemaFieldsSchema = z.object({

@@ -132,3 +122,3 @@ accountName: z.string(),

country: z.string(),
operator: supportedOperatorEnumSchema,
operator: z.string(),
fiatAccountType: z.literal(FiatAccountType.MobileMoney),

@@ -135,0 +125,0 @@ },

@@ -62,3 +62,3 @@ import { z } from 'zod'

kycSchema: kycSchemaSchema,
allowedValues: z.record(z.array(z.string())),
allowedValues: z.record(z.array(z.string()).nonempty()),
},

@@ -75,3 +75,3 @@ { description: 'quoteResponseKycSchemaSchema' },

fiatAccountSchema: fiatAccountSchemaSchema,
allowedValues: z.record(z.array(z.string())),
allowedValues: z.record(z.array(z.string()).nonempty()),
},

@@ -78,0 +78,0 @@ { description: 'quoteResponseFiatAccountSchemaSchema' },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc