@temboplus/frontend-core 1.0.1-beta.0 → 1.0.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/domain/bank/bank.helpers.d.ts +5 -0
- package/dist/domain/mobile-money-provider/mobile-money-provider.d.ts +3 -3
- package/dist/domain/mobile-money-provider/mobile-money-provider.helpers.d.ts +62 -1
- package/dist/domain/mobile-money-provider/mobile-money-provider.types.d.ts +32 -1
- package/dist/factories/mobile-money-provider.factory.d.ts +2 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/registries/mobile-money-provider.registry.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TransactionDirection } from "@domain/channel/channel.enums.js";
|
|
2
2
|
import type { ISO2CountryCode } from "@domain/country/country.types.js";
|
|
3
3
|
import type { MobileMoneyProvider } from "@domain/mobile-money-provider/mobile-money-provider.js";
|
|
4
|
+
import type { MobileMoneyProviderId } from "@domain/mobile-money-provider/mobile-money-provider.types.js";
|
|
4
5
|
import { PhoneNumber } from "@domain/phone-number/phone-number.js";
|
|
5
6
|
/**
|
|
6
7
|
* Owns the canonical MobileMoneyProvider cache, keyed by country. Reads raw
|
|
@@ -21,9 +22,9 @@ export declare class MobileMoneyProviderRegistry {
|
|
|
21
22
|
/** Providers in a country filtered by transaction direction. */
|
|
22
23
|
getProvidersByDirection(countryCode: ISO2CountryCode, direction: TransactionDirection): MobileMoneyProvider[];
|
|
23
24
|
/** Looks up a provider by its stable Tembo identifier. */
|
|
24
|
-
findProvider(countryCode: ISO2CountryCode, providerId: string): MobileMoneyProvider | undefined;
|
|
25
|
+
findProvider(countryCode: ISO2CountryCode, providerId: MobileMoneyProviderId | string): MobileMoneyProvider | undefined;
|
|
25
26
|
/** Whether a provider exists, optionally constrained to a direction. */
|
|
26
|
-
isProviderSupported(countryCode: ISO2CountryCode, providerId: string, direction?: TransactionDirection): boolean;
|
|
27
|
+
isProviderSupported(countryCode: ISO2CountryCode, providerId: MobileMoneyProviderId | string, direction?: TransactionDirection): boolean;
|
|
27
28
|
/** Whether prefix-based detection is unreliable in this country. */
|
|
28
29
|
requiresExplicitProvider(countryCode: ISO2CountryCode): boolean;
|
|
29
30
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temboplus/frontend-core",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.2",
|
|
4
4
|
"description": "A JavaScript/TypeScript package providing common utilities and logic shared across front-end TemboPlus projects.",
|
|
5
5
|
"author": "Okello Gerald",
|
|
6
6
|
"license": "MIT",
|