@temboplus/afloat 0.1.71 → 0.1.73
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/features/admin/admin.contract.d.ts +53 -53
- package/dist/features/admin/admin.repository.d.ts +5 -5
- package/dist/features/admin/index.d.ts +2 -2
- package/dist/features/auth/access/access.repository.d.ts +2 -2
- package/dist/features/auth/auth.manager.d.ts +2 -2
- package/dist/features/auth/auth.repository.d.ts +3 -3
- package/dist/features/auth/auth.store.d.ts +1 -1
- package/dist/features/auth/identity/identity.repository.d.ts +2 -2
- package/dist/features/auth/index.d.ts +5 -5
- package/dist/features/auth/profile/profile.repository.d.ts +3 -3
- package/dist/features/auth/storage/client-store.d.ts +2 -2
- package/dist/features/auth/storage/client-token-handler.d.ts +1 -1
- package/dist/features/contact/contact-input-handler.d.ts +2 -2
- package/dist/features/contact/contact.api-contract.d.ts +38 -38
- package/dist/features/contact/contact.dtos.d.ts +6 -6
- package/dist/features/contact/contact.repository.d.ts +4 -4
- package/dist/features/contact/index.d.ts +2 -2
- package/dist/features/payout/index.d.ts +3 -3
- package/dist/features/payout/payout-channel-handler.d.ts +3 -3
- package/dist/features/payout/payout.api-contract.d.ts +93 -93
- package/dist/features/payout/payout.dtos.d.ts +12 -12
- package/dist/features/payout/payout.repository.d.ts +5 -5
- package/dist/features/wallet/index.d.ts +4 -4
- package/dist/features/wallet/wallet-manager.session.d.ts +2 -2
- package/dist/features/wallet/wallet.contract.d.ts +7 -7
- package/dist/features/wallet/wallet.dtos.d.ts +14 -14
- package/dist/features/wallet/wallet.repository.d.ts +5 -5
- package/dist/features/wallet/wallet.utils.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/api/base-repository.d.ts +1 -1
- package/dist/lib/api/index.d.ts +2 -2
- package/dist/lib/error/error.permission.d.ts +1 -1
- package/dist/lib/error/index.d.ts +3 -3
- package/dist/models/contact-info.model.d.ts +2 -2
- package/dist/models/contact.model.d.ts +2 -2
- package/dist/models/index.d.ts +11 -11
- package/dist/models/managed-user.model.d.ts +2 -2
- package/dist/models/narration.model.d.ts +1 -1
- package/dist/models/payout.model.d.ts +2 -2
- package/dist/models/profile.model.d.ts +1 -1
- package/dist/models/role.model.d.ts +1 -1
- package/dist/models/statement-entry.model.d.ts +2 -2
- package/dist/models/user.model.d.ts +1 -1
- package/dist/models/wallet.model.d.ts +1 -1
- package/package.json +4 -2
|
@@ -108,7 +108,7 @@ export declare class BaseRepository<TContract extends AppRouter> {
|
|
|
108
108
|
* // - x-request-id: "uuid-v4-string"
|
|
109
109
|
* ```
|
|
110
110
|
*/
|
|
111
|
-
get client(): { [TKey in keyof TContract]: TContract[TKey] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<TContract[TKey], InitClientArgs, import("@ts-rest/core").PartialClientInferRequest<TContract[TKey], InitClientArgs>> : TContract[TKey] extends AppRouter ? TContract[TKey] extends infer T extends AppRouter ? { [
|
|
111
|
+
get client(): { [TKey in keyof TContract]: TContract[TKey] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<TContract[TKey], InitClientArgs, import("@ts-rest/core").PartialClientInferRequest<TContract[TKey], InitClientArgs>> : TContract[TKey] extends AppRouter ? TContract[TKey] extends infer T extends AppRouter ? { [TKey_2 in keyof T]: T[TKey_2] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T[TKey_2], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T[TKey_2], TClientArgs>> : T[TKey_2] extends AppRouter ? T[TKey_2] extends infer T_1 extends AppRouter ? { [TKey_3 in keyof T_1]: T_1[TKey_3] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_1[TKey_3], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_1[TKey_3], TClientArgs>> : T_1[TKey_3] extends AppRouter ? T_1[TKey_3] extends infer T_2 extends AppRouter ? { [TKey_4 in keyof T_2]: T_2[TKey_4] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_2[TKey_4], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_2[TKey_4], TClientArgs>> : T_2[TKey_4] extends AppRouter ? T_2[TKey_4] extends infer T_3 extends AppRouter ? { [TKey_5 in keyof T_3]: T_3[TKey_5] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_3[TKey_5], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_3[TKey_5], TClientArgs>> : T_3[TKey_5] extends AppRouter ? T_3[TKey_5] extends infer T_4 extends AppRouter ? { [TKey_6 in keyof T_4]: T_4[TKey_6] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_4[TKey_6], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_4[TKey_6], TClientArgs>> : T_4[TKey_6] extends AppRouter ? T_4[TKey_6] extends infer T_5 extends AppRouter ? { [TKey_7 in keyof T_5]: T_5[TKey_7] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_5[TKey_7], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_5[TKey_7], TClientArgs>> : T_5[TKey_7] extends AppRouter ? T_5[TKey_7] extends infer T_6 extends AppRouter ? { [TKey_8 in keyof T_6]: T_6[TKey_8] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_6[TKey_8], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_6[TKey_8], TClientArgs>> : T_6[TKey_8] extends AppRouter ? T_6[TKey_8] extends infer T_7 extends AppRouter ? { [TKey_9 in keyof T_7]: T_7[TKey_9] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_7[TKey_9], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_7[TKey_9], TClientArgs>> : T_7[TKey_9] extends AppRouter ? T_7[TKey_9] extends infer T_8 extends AppRouter ? { [TKey_10 in keyof T_8]: T_8[TKey_10] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_8[TKey_10], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_8[TKey_10], TClientArgs>> : T_8[TKey_10] extends AppRouter ? T_8[TKey_10] extends infer T_9 extends AppRouter ? { [TKey_11 in keyof T_9]: T_9[TKey_11] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_9[TKey_11], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_9[TKey_11], TClientArgs>> : T_9[TKey_11] extends AppRouter ? /*elided*/ any : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; };
|
|
112
112
|
/**
|
|
113
113
|
* Updates the authentication token used by this repository.
|
|
114
114
|
*
|
package/dist/lib/api/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./common-responses";
|
|
2
|
-
export * from "./base-repository";
|
|
1
|
+
export * from "./common-responses.js";
|
|
2
|
+
export * from "./base-repository.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Permission } from "@/models/permission";
|
|
1
|
+
import { Permission } from "@/models/permission.js";
|
|
2
2
|
/**
|
|
3
3
|
* Custom error class representing an error caused by missing required permissions.
|
|
4
4
|
* Extends the built-in {@link Error} class to include the `requiredPermissions` property.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./error.api";
|
|
2
|
-
export * from "./error.permission";
|
|
3
|
-
export * from "./error.utils";
|
|
1
|
+
export * from "./error.api.js";
|
|
2
|
+
export * from "./error.permission.js";
|
|
3
|
+
export * from "./error.utils.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ContactType, ContactDTO } from "@/features/contact/contact.dtos.js";
|
|
2
|
+
import { PayoutDTO } from "@/features/payout/payout.dtos.js";
|
|
1
3
|
import { Bank, ISO2CountryCode, PhoneNumber } from "@temboplus/frontend-core";
|
|
2
|
-
import { PayoutDTO } from "../features/payout";
|
|
3
|
-
import { ContactType, ContactDTO } from "../features/contact/contact.dtos";
|
|
4
4
|
import type { BankSwiftCode, MNOId } from "@temboplus/frontend-core";
|
|
5
5
|
/**
|
|
6
6
|
* Abstract base class that provides a common interface for different types of contact information.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ContactDTO, ContactType } from "@/features/contact/contact.dtos.js";
|
|
2
|
+
import { ContactInfo } from "./contact-info.model.js";
|
|
3
3
|
/**
|
|
4
4
|
* Contact class that wraps the Zod schema and provides additional functionality
|
|
5
5
|
*/
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from "./contact-info.model";
|
|
2
|
-
export * from "./contact.model";
|
|
3
|
-
export * from "./payout.model";
|
|
4
|
-
export * from "./profile.model";
|
|
5
|
-
export * from "./user.model";
|
|
6
|
-
export * from "./wallet.model";
|
|
7
|
-
export * from "./statement-entry.model";
|
|
8
|
-
export * from "./permission";
|
|
9
|
-
export * from "./managed-user.model";
|
|
10
|
-
export * from "./role.model";
|
|
11
|
-
export * from "./narration.model";
|
|
1
|
+
export * from "./contact-info.model.js";
|
|
2
|
+
export * from "./contact.model.js";
|
|
3
|
+
export * from "./payout.model.js";
|
|
4
|
+
export * from "./profile.model.js";
|
|
5
|
+
export * from "./user.model.js";
|
|
6
|
+
export * from "./wallet.model.js";
|
|
7
|
+
export * from "./statement-entry.model.js";
|
|
8
|
+
export * from "./permission.js";
|
|
9
|
+
export * from "./managed-user.model.js";
|
|
10
|
+
export * from "./role.model.js";
|
|
11
|
+
export * from "./narration.model.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContactInfo, MobileContactInfo, BankContactInfo } from "./contact-info.model.js";
|
|
2
2
|
/** Prefix for Ecobank mobile transfer narrations */
|
|
3
3
|
export declare const ECOBANK_PREFIX = "MOBILE TRANSFER ";
|
|
4
4
|
/** V2 format prefix for payout narrations using contact details */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { PayoutDTO, PayoutStatus, PayoutApprovalStatus, PayoutAuthorizer } from "@/features/payout/payout.dtos.js";
|
|
1
2
|
import { Amount } from "@temboplus/frontend-core";
|
|
2
|
-
import {
|
|
3
|
-
import { ContactInfo } from "./contact-info.model";
|
|
3
|
+
import { ContactInfo } from "./contact-info.model.js";
|
|
4
4
|
/**
|
|
5
5
|
* Payout class that wraps the Zod schema and provides additional functionality
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { WalletStatementEntryDTO } from "@/features/wallet/wallet.dtos";
|
|
1
|
+
import { WalletStatementEntryDTO } from "@/features/wallet/wallet.dtos.js";
|
|
2
2
|
import { Amount, AmountJson } from "@temboplus/frontend-core";
|
|
3
|
-
import {
|
|
3
|
+
import { NarrationJson, Narration } from "./narration.model.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface for the JSON representation of WalletStatementEntry
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CurrencyCode, type ISO2CountryCode } from "@temboplus/frontend-core";
|
|
2
|
-
import { WalletDTO, WalletDTOSchemas } from "@/features/wallet/wallet.dtos";
|
|
2
|
+
import { WalletDTO, WalletDTOSchemas } from "@/features/wallet/wallet.dtos.js";
|
|
3
3
|
/**
|
|
4
4
|
* Represents a digital Wallet entity.
|
|
5
5
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temboplus/afloat",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
4
4
|
"description": "A foundational library for Temboplus-Afloat projects.",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/TemboPlus-Frontend/afloat-js#readme",
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@temboplus/frontend-core": "^0.2.16",
|
|
41
40
|
"@ts-rest/core": "^3.52.1",
|
|
42
41
|
"tslib": "^2.8.1",
|
|
43
42
|
"uuid": "^11.1.0",
|
|
@@ -57,5 +56,8 @@
|
|
|
57
56
|
"ts-jest": "^29.3.1",
|
|
58
57
|
"ts-node": "^10.9.2",
|
|
59
58
|
"typescript": "^5.8.3"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@temboplus/frontend-core": "^0.2.19"
|
|
60
62
|
}
|
|
61
63
|
}
|