@temboplus/tembo-dashboard 0.2.7 → 0.3.0-rc.1
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/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/api/common-schemas.d.ts.map +1 -1
- package/dist/lib/models/statement-entry.model.d.ts +2 -2
- package/dist/lib/models/statement-entry.model.d.ts.map +1 -1
- package/dist/lib/query/query.builder.d.ts +10 -10
- package/dist/lib/query/query.builder.d.ts.map +1 -1
- package/dist/lib/query/query.types.d.ts +1 -1
- package/dist/lib/query/query.types.d.ts.map +1 -1
- package/dist/modules/auth/auth.api-contract.d.ts +2 -1
- package/dist/modules/auth/auth.api-contract.d.ts.map +1 -1
- package/dist/modules/auth/auth.dtos.d.ts +12 -1
- package/dist/modules/auth/auth.dtos.d.ts.map +1 -1
- package/dist/modules/auth/user.model.d.ts +10 -2
- package/dist/modules/auth/user.model.d.ts.map +1 -1
- package/dist/modules/collection/collection.api-contract.d.ts +8 -8
- package/dist/modules/collection/collection.model.d.ts +3 -3
- package/dist/modules/collection/collection.model.d.ts.map +1 -1
- package/dist/modules/collection/collection.query.d.ts.map +1 -1
- package/dist/modules/collection/collection.types.d.ts +6 -6
- package/dist/modules/collection/collection.types.d.ts.map +1 -1
- package/dist/modules/payout/payout.api-contract.d.ts +6 -6
- package/dist/modules/payout/payout.model.d.ts +3 -3
- package/dist/modules/payout/payout.model.d.ts.map +1 -1
- package/dist/modules/payout/payout.query.d.ts.map +1 -1
- package/dist/modules/payout/payout.types.d.ts +6 -6
- package/dist/modules/payout/payout.types.d.ts.map +1 -1
- package/dist/modules/settlement/index.d.ts +5 -0
- package/dist/modules/settlement/index.d.ts.map +1 -0
- package/dist/modules/settlement/settlement.api-contract.d.ts +255 -0
- package/dist/modules/settlement/settlement.api-contract.d.ts.map +1 -0
- package/dist/modules/settlement/settlement.model.d.ts +106 -0
- package/dist/modules/settlement/settlement.model.d.ts.map +1 -0
- package/dist/modules/settlement/settlement.repository.d.ts +75 -0
- package/dist/modules/settlement/settlement.repository.d.ts.map +1 -0
- package/dist/modules/settlement/settlement.types.d.ts +140 -0
- package/dist/modules/settlement/settlement.types.d.ts.map +1 -0
- package/dist/modules/vendor/index.d.ts +5 -0
- package/dist/modules/vendor/index.d.ts.map +1 -0
- package/dist/modules/vendor/vendor.api-contract.d.ts +45 -0
- package/dist/modules/vendor/vendor.api-contract.d.ts.map +1 -0
- package/dist/modules/vendor/vendor.model.d.ts +76 -0
- package/dist/modules/vendor/vendor.model.d.ts.map +1 -0
- package/dist/modules/vendor/vendor.repository.d.ts +17 -0
- package/dist/modules/vendor/vendor.repository.d.ts.map +1 -0
- package/dist/modules/vendor/vendor.types.d.ts +17 -0
- package/dist/modules/vendor/vendor.types.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.api-contract.d.ts +14 -2
- package/dist/modules/wallet/wallet.api-contract.d.ts.map +1 -1
- package/dist/modules/wallet/wallet.model.d.ts +8 -7
- package/dist/modules/wallet/wallet.model.d.ts.map +1 -1
- package/dist/modules/wallet/wallet.types.d.ts +7 -4
- package/dist/modules/wallet/wallet.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Raw vendor profile data as returned by the API.
|
|
3
|
+
* Feature flags are numeric (0 = disabled, 1 = enabled).
|
|
4
|
+
*/
|
|
5
|
+
export interface VendorData {
|
|
6
|
+
businessName: string;
|
|
7
|
+
tradeName: string;
|
|
8
|
+
enableCollections: number;
|
|
9
|
+
enablePayouts: number;
|
|
10
|
+
enableRemittance: number;
|
|
11
|
+
bankAccountNo?: string | null;
|
|
12
|
+
bankAccountName?: string | null;
|
|
13
|
+
bankCode?: string | null;
|
|
14
|
+
enableAutoSettlement: number;
|
|
15
|
+
disablePaymentApproval: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents a vendor profile with its feature flags and settlement bank details.
|
|
19
|
+
*/
|
|
20
|
+
export declare class Vendor {
|
|
21
|
+
readonly businessName: string;
|
|
22
|
+
readonly tradeName: string;
|
|
23
|
+
readonly enableCollections: number;
|
|
24
|
+
readonly enablePayouts: number;
|
|
25
|
+
readonly enableRemittance: number;
|
|
26
|
+
readonly bankAccountNo?: string | null;
|
|
27
|
+
readonly bankAccountName?: string | null;
|
|
28
|
+
readonly bankCode?: string | null;
|
|
29
|
+
readonly enableAutoSettlement: number;
|
|
30
|
+
readonly disablePaymentApproval: number;
|
|
31
|
+
constructor(data: VendorData);
|
|
32
|
+
/**
|
|
33
|
+
* Whether collections are enabled for this vendor.
|
|
34
|
+
*/
|
|
35
|
+
isCollectionsEnabled(): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether payouts are enabled for this vendor.
|
|
38
|
+
*/
|
|
39
|
+
isPayoutsEnabled(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether remittance is enabled for this vendor.
|
|
42
|
+
*/
|
|
43
|
+
isRemittanceEnabled(): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether settlements are automatically initiated for this vendor.
|
|
46
|
+
*/
|
|
47
|
+
isAutoSettlementEnabled(): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether payments require approval before processing.
|
|
50
|
+
* The API exposes this as a "disable" flag; this helper inverts it
|
|
51
|
+
* so consumers can reason in the positive.
|
|
52
|
+
*/
|
|
53
|
+
requiresPaymentApproval(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the vendor has a bank account configured for settlements.
|
|
56
|
+
*/
|
|
57
|
+
hasBankDetails(): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the vendor's display name.
|
|
60
|
+
* Falls back to business name if trade name is missing.
|
|
61
|
+
*/
|
|
62
|
+
getDisplayName(): string;
|
|
63
|
+
/**
|
|
64
|
+
* Create Vendor instance from raw API data
|
|
65
|
+
*/
|
|
66
|
+
static from(data: unknown): Vendor | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Creates a Vendor from JSON (same shape as VendorData).
|
|
69
|
+
*/
|
|
70
|
+
static fromJson(json: VendorData): Vendor;
|
|
71
|
+
/**
|
|
72
|
+
* Converts the Vendor to JSON format.
|
|
73
|
+
*/
|
|
74
|
+
toJson(): VendorData;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=vendor.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor.model.d.ts","sourceRoot":"","sources":["../../../src/modules/vendor/vendor.model.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAID;;GAEG;AACH,qBAAa,MAAM;IACjB,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,iBAAiB,EAAE,MAAM,CAAC;IAC1C,SAAgB,aAAa,EAAE,MAAM,CAAC;IACtC,SAAgB,gBAAgB,EAAE,MAAM,CAAC;IACzC,SAAgB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9C,SAAgB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChD,SAAgB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,SAAgB,oBAAoB,EAAE,MAAM,CAAC;IAC7C,SAAgB,sBAAsB,EAAE,MAAM,CAAC;gBAEnC,IAAI,EAAE,UAAU;IAa5B;;OAEG;IACH,oBAAoB,IAAI,OAAO;IAI/B;;OAEG;IACH,gBAAgB,IAAI,OAAO;IAI3B;;OAEG;IACH,mBAAmB,IAAI,OAAO;IAI9B;;OAEG;IACH,uBAAuB,IAAI,OAAO;IAIlC;;;;OAIG;IACH,uBAAuB,IAAI,OAAO;IAIlC;;OAEG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,cAAc,IAAI,MAAM;IAIxB;;OAEG;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS;IAc9C;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAIzC;;OAEG;IACH,MAAM,IAAI,UAAU;CAcrB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseRepository } from "../../lib/api/index.js";
|
|
2
|
+
import { vendorContract } from "./vendor.api-contract.js";
|
|
3
|
+
import { Vendor } from "./vendor.model.js";
|
|
4
|
+
/**
|
|
5
|
+
* Repository class for managing vendor profile data through API interactions.
|
|
6
|
+
*/
|
|
7
|
+
export declare class VendorRepository extends BaseRepository<typeof vendorContract> {
|
|
8
|
+
constructor(options?: {
|
|
9
|
+
token?: string;
|
|
10
|
+
root?: string;
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* Get the vendor profile of the authenticated user
|
|
14
|
+
*/
|
|
15
|
+
getMe(): Promise<Vendor>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=vendor.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor.repository.d.ts","sourceRoot":"","sources":["../../../src/modules/vendor/vendor.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAmB,MAAM,mBAAmB,CAAC;AAE5D;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,OAAO,cAAc,CAAC;gBAC7D,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;IAIvD;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAS/B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const VendorDTOSchemas: {
|
|
3
|
+
vendor: z.ZodObject<{
|
|
4
|
+
businessName: z.ZodString;
|
|
5
|
+
tradeName: z.ZodString;
|
|
6
|
+
enableCollections: z.ZodNumber;
|
|
7
|
+
enablePayouts: z.ZodNumber;
|
|
8
|
+
enableRemittance: z.ZodNumber;
|
|
9
|
+
bankAccountNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
bankAccountName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
bankCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
enableAutoSettlement: z.ZodNumber;
|
|
13
|
+
disablePaymentApproval: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
};
|
|
16
|
+
export type VendorDTO = z.infer<typeof VendorDTOSchemas.vendor>;
|
|
17
|
+
//# sourceMappingURL=vendor.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor.types.d.ts","sourceRoot":"","sources":["../../../src/modules/vendor/vendor.types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;CAE5B,CAAC;AAGF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -13,7 +13,13 @@ export declare const walletContract: {
|
|
|
13
13
|
shadowAccountNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
type: z.
|
|
16
|
+
type: z.ZodPipe<z.ZodEnum<{
|
|
17
|
+
COLLECTION: "COLLECTION";
|
|
18
|
+
DISBURSEMENT: "DISBURSEMENT";
|
|
19
|
+
Vendor: "Vendor";
|
|
20
|
+
"DEFAULT DISBURSEMENT": "DEFAULT DISBURSEMENT";
|
|
21
|
+
"DEFAULT COLLECTION": "DEFAULT COLLECTION";
|
|
22
|
+
}>, z.ZodTransform<import("./wallet.types.js").WALLET_TYPE, "COLLECTION" | "DISBURSEMENT" | "Vendor" | "DEFAULT DISBURSEMENT" | "DEFAULT COLLECTION">>;
|
|
17
23
|
vendorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
24
|
balance: z.ZodNumber;
|
|
19
25
|
minBalance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
@@ -55,7 +61,13 @@ export declare const walletContract: {
|
|
|
55
61
|
shadowAccountNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
62
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
63
|
reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
-
type: z.
|
|
64
|
+
type: z.ZodPipe<z.ZodEnum<{
|
|
65
|
+
COLLECTION: "COLLECTION";
|
|
66
|
+
DISBURSEMENT: "DISBURSEMENT";
|
|
67
|
+
Vendor: "Vendor";
|
|
68
|
+
"DEFAULT DISBURSEMENT": "DEFAULT DISBURSEMENT";
|
|
69
|
+
"DEFAULT COLLECTION": "DEFAULT COLLECTION";
|
|
70
|
+
}>, z.ZodTransform<import("./wallet.types.js").WALLET_TYPE, "COLLECTION" | "DISBURSEMENT" | "Vendor" | "DEFAULT DISBURSEMENT" | "DEFAULT COLLECTION">>;
|
|
59
71
|
vendorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
72
|
balance: z.ZodNumber;
|
|
61
73
|
minBalance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.api-contract.d.ts","sourceRoot":"","sources":["../../../src/modules/wallet/wallet.api-contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"wallet.api-contract.d.ts","sourceRoot":"","sources":["../../../src/modules/wallet/wallet.api-contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Amount, type
|
|
1
|
+
import { Amount, type AmountJSON, type CurrencyCode } from "@temboplus/frontend-core";
|
|
2
|
+
import { WALLET_TYPE } from "./wallet.types.js";
|
|
2
3
|
export interface WalletData {
|
|
3
4
|
id: string;
|
|
4
5
|
accountNo: string;
|
|
@@ -6,7 +7,7 @@ export interface WalletData {
|
|
|
6
7
|
shadowAccountNo?: string | null;
|
|
7
8
|
externalId?: string | null;
|
|
8
9
|
reference?: string | null;
|
|
9
|
-
type:
|
|
10
|
+
type: WALLET_TYPE;
|
|
10
11
|
vendorId?: string | null;
|
|
11
12
|
balance: number;
|
|
12
13
|
minBalance: number | string;
|
|
@@ -23,11 +24,11 @@ export interface WalletJson {
|
|
|
23
24
|
shadowAccountNo?: string | null;
|
|
24
25
|
externalId?: string | null;
|
|
25
26
|
reference?: string | null;
|
|
26
|
-
type:
|
|
27
|
+
type: WALLET_TYPE;
|
|
27
28
|
vendorId?: string | null;
|
|
28
|
-
balance:
|
|
29
|
-
minBalance:
|
|
30
|
-
approvalLimit:
|
|
29
|
+
balance: AmountJSON;
|
|
30
|
+
minBalance: AmountJSON;
|
|
31
|
+
approvalLimit: AmountJSON;
|
|
31
32
|
currency: CurrencyCode;
|
|
32
33
|
countryCode: string;
|
|
33
34
|
createdAt: string;
|
|
@@ -40,7 +41,7 @@ export declare class Wallet {
|
|
|
40
41
|
readonly shadowAccountNo?: string | null;
|
|
41
42
|
readonly externalId?: string | null;
|
|
42
43
|
readonly reference?: string | null;
|
|
43
|
-
readonly type:
|
|
44
|
+
readonly type: WALLET_TYPE;
|
|
44
45
|
readonly vendorId?: string | null;
|
|
45
46
|
readonly balance: Amount;
|
|
46
47
|
readonly minBalance: Amount;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.model.d.ts","sourceRoot":"","sources":["../../../src/modules/wallet/wallet.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAiB,KAAK,UAAU,EAAE,KAAK,YAAY,EAAmB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"wallet.model.d.ts","sourceRoot":"","sources":["../../../src/modules/wallet/wallet.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAiB,KAAK,UAAU,EAAE,KAAK,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACtH,OAAO,EAAE,WAAW,EAAE,MAAM,mB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-
DEFAULT_COLLECTION = "DEFAULT COLLECTION",
|
|
6
3
|
COLLECTION = "COLLECTION",
|
|
7
4
|
DISBURSEMENT = "DISBURSEMENT"
|
|
8
5
|
}
|
|
@@ -14,7 +11,13 @@ export declare const WalletDTOSchemas: {
|
|
|
14
11
|
shadowAccountNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
12
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
13
|
reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
type: z.
|
|
14
|
+
type: z.ZodPipe<z.ZodEnum<{
|
|
15
|
+
COLLECTION: "COLLECTION";
|
|
16
|
+
DISBURSEMENT: "DISBURSEMENT";
|
|
17
|
+
Vendor: "Vendor";
|
|
18
|
+
"DEFAULT DISBURSEMENT": "DEFAULT DISBURSEMENT";
|
|
19
|
+
"DEFAULT COLLECTION": "DEFAULT COLLECTION";
|
|
20
|
+
}>, z.ZodTransform<WALLET_TYPE, "COLLECTION" | "DISBURSEMENT" | "Vendor" | "DEFAULT DISBURSEMENT" | "DEFAULT COLLECTION">>;
|
|
18
21
|
vendorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
22
|
balance: z.ZodNumber;
|
|
20
23
|
minBalance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.types.d.ts","sourceRoot":"","sources":["../../../src/modules/wallet/wallet.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,WAAW;IACrB,
|
|
1
|
+
{"version":3,"file":"wallet.types.d.ts","sourceRoot":"","sources":["../../../src/modules/wallet/wallet.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,WAAW;IACrB,UAAU,eAAe;IACzB,YAAY,iBAAiB;CAC9B;AAiDD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AACpF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAC9E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,oBAAoB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temboplus/tembo-dashboard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-rc.1",
|
|
4
4
|
"description": "A foundational library for Temboplus-Dashboard projects providing type-safe data layer abstraction with API contracts, domain models, and repositories.",
|
|
5
5
|
"author": "Okello Gerald",
|
|
6
6
|
"license": "MIT",
|