@temboplus/frontend-core 1.0.3-beta.1 → 1.0.3

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.
Files changed (147) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +143 -17
  3. package/dist/coverage/coverage.types.d.ts +1 -0
  4. package/dist/coverage/coverage.types.d.ts.map +1 -0
  5. package/dist/coverage/index.d.ts +1 -0
  6. package/dist/coverage/index.d.ts.map +1 -0
  7. package/dist/coverage/tembo-coverage.d.ts +1 -0
  8. package/dist/coverage/tembo-coverage.d.ts.map +1 -0
  9. package/dist/domain/amount/amount.d.ts +5 -4
  10. package/dist/domain/amount/amount.d.ts.map +1 -0
  11. package/dist/domain/amount/amount.helpers.d.ts +1 -0
  12. package/dist/domain/amount/amount.helpers.d.ts.map +1 -0
  13. package/dist/domain/amount/amount.schema.d.ts +2 -15
  14. package/dist/domain/amount/amount.schema.d.ts.map +1 -0
  15. package/dist/domain/amount/index.d.ts +3 -2
  16. package/dist/domain/amount/index.d.ts.map +1 -0
  17. package/dist/domain/bank/bank.d.ts +3 -2
  18. package/dist/domain/bank/bank.d.ts.map +1 -0
  19. package/dist/domain/bank/bank.helpers.d.ts +2 -1
  20. package/dist/domain/bank/bank.helpers.d.ts.map +1 -0
  21. package/dist/domain/bank/bank.schema.d.ts +8 -33
  22. package/dist/domain/bank/bank.schema.d.ts.map +1 -0
  23. package/dist/domain/bank/bank.types.d.ts +1 -0
  24. package/dist/domain/bank/bank.types.d.ts.map +1 -0
  25. package/dist/domain/bank/index.d.ts +3 -2
  26. package/dist/domain/bank/index.d.ts.map +1 -0
  27. package/dist/domain/channel/channel.d.ts +2 -1
  28. package/dist/domain/channel/channel.d.ts.map +1 -0
  29. package/dist/domain/channel/channel.enums.d.ts +1 -0
  30. package/dist/domain/channel/channel.enums.d.ts.map +1 -0
  31. package/dist/domain/channel/channel.types.d.ts +2 -1
  32. package/dist/domain/channel/channel.types.d.ts.map +1 -0
  33. package/dist/domain/channel/index.d.ts +2 -1
  34. package/dist/domain/channel/index.d.ts.map +1 -0
  35. package/dist/domain/country/country.d.ts +4 -3
  36. package/dist/domain/country/country.d.ts.map +1 -0
  37. package/dist/domain/country/country.enums.d.ts +1 -0
  38. package/dist/domain/country/country.enums.d.ts.map +1 -0
  39. package/dist/domain/country/country.helpers.d.ts +1 -0
  40. package/dist/domain/country/country.helpers.d.ts.map +1 -0
  41. package/dist/domain/country/country.schema.d.ts +6 -21
  42. package/dist/domain/country/country.schema.d.ts.map +1 -0
  43. package/dist/domain/country/country.types.d.ts +1 -0
  44. package/dist/domain/country/country.types.d.ts.map +1 -0
  45. package/dist/domain/country/index.d.ts +3 -2
  46. package/dist/domain/country/index.d.ts.map +1 -0
  47. package/dist/domain/currency/currency.d.ts +3 -2
  48. package/dist/domain/currency/currency.d.ts.map +1 -0
  49. package/dist/domain/currency/currency.helpers.d.ts +1 -0
  50. package/dist/domain/currency/currency.helpers.d.ts.map +1 -0
  51. package/dist/domain/currency/currency.schema.d.ts +3 -10
  52. package/dist/domain/currency/currency.schema.d.ts.map +1 -0
  53. package/dist/domain/currency/currency.types.d.ts +1 -0
  54. package/dist/domain/currency/currency.types.d.ts.map +1 -0
  55. package/dist/domain/currency/index.d.ts +3 -2
  56. package/dist/domain/currency/index.d.ts.map +1 -0
  57. package/dist/domain/index.d.ts +2 -1
  58. package/dist/domain/index.d.ts.map +1 -0
  59. package/dist/domain/mobile-money-provider/index.d.ts +3 -2
  60. package/dist/domain/mobile-money-provider/index.d.ts.map +1 -0
  61. package/dist/domain/mobile-money-provider/mobile-money-provider.d.ts +3 -2
  62. package/dist/domain/mobile-money-provider/mobile-money-provider.d.ts.map +1 -0
  63. package/dist/domain/mobile-money-provider/mobile-money-provider.helpers.d.ts +1 -0
  64. package/dist/domain/mobile-money-provider/mobile-money-provider.helpers.d.ts.map +1 -0
  65. package/dist/domain/mobile-money-provider/mobile-money-provider.schema.d.ts +4 -15
  66. package/dist/domain/mobile-money-provider/mobile-money-provider.schema.d.ts.map +1 -0
  67. package/dist/domain/mobile-money-provider/mobile-money-provider.types.d.ts +19 -4
  68. package/dist/domain/mobile-money-provider/mobile-money-provider.types.d.ts.map +1 -0
  69. package/dist/domain/phone-number/index.d.ts +3 -2
  70. package/dist/domain/phone-number/index.d.ts.map +1 -0
  71. package/dist/domain/phone-number/phone-number.d.ts +2 -1
  72. package/dist/domain/phone-number/phone-number.d.ts.map +1 -0
  73. package/dist/domain/phone-number/phone-number.helpers.d.ts +1 -0
  74. package/dist/domain/phone-number/phone-number.helpers.d.ts.map +1 -0
  75. package/dist/domain/phone-number/phone-number.parser.d.ts +3 -2
  76. package/dist/domain/phone-number/phone-number.parser.d.ts.map +1 -0
  77. package/dist/domain/phone-number/phone-number.schema.d.ts +2 -7
  78. package/dist/domain/phone-number/phone-number.schema.d.ts.map +1 -0
  79. package/dist/domain/phone-number/phone-number.types.d.ts +2 -1
  80. package/dist/domain/phone-number/phone-number.types.d.ts.map +1 -0
  81. package/dist/factories/amount.factory.d.ts +1 -0
  82. package/dist/factories/amount.factory.d.ts.map +1 -0
  83. package/dist/factories/bank.factory.d.ts +1 -0
  84. package/dist/factories/bank.factory.d.ts.map +1 -0
  85. package/dist/factories/country.factory.d.ts +2 -1
  86. package/dist/factories/country.factory.d.ts.map +1 -0
  87. package/dist/factories/currency.factory.d.ts +2 -1
  88. package/dist/factories/currency.factory.d.ts.map +1 -0
  89. package/dist/factories/index.d.ts +1 -0
  90. package/dist/factories/index.d.ts.map +1 -0
  91. package/dist/factories/mobile-money-provider.factory.d.ts +1 -0
  92. package/dist/factories/mobile-money-provider.factory.d.ts.map +1 -0
  93. package/dist/factories/phone-number.factory.d.ts +1 -0
  94. package/dist/factories/phone-number.factory.d.ts.map +1 -0
  95. package/dist/factories/transaction-limit.factory.d.ts +2 -1
  96. package/dist/factories/transaction-limit.factory.d.ts.map +1 -0
  97. package/dist/index.cjs.js +1 -1
  98. package/dist/index.cjs.js.map +1 -1
  99. package/dist/index.d.ts +2 -1
  100. package/dist/index.d.ts.map +1 -0
  101. package/dist/index.esm.js +1 -1
  102. package/dist/index.esm.js.map +1 -1
  103. package/dist/registries/bank.registry.d.ts +1 -0
  104. package/dist/registries/bank.registry.d.ts.map +1 -0
  105. package/dist/registries/country.registry.d.ts +1 -0
  106. package/dist/registries/country.registry.d.ts.map +1 -0
  107. package/dist/registries/currency.registry.d.ts +1 -0
  108. package/dist/registries/currency.registry.d.ts.map +1 -0
  109. package/dist/registries/index.d.ts +1 -0
  110. package/dist/registries/index.d.ts.map +1 -0
  111. package/dist/registries/mobile-money-provider.registry.d.ts +2 -1
  112. package/dist/registries/mobile-money-provider.registry.d.ts.map +1 -0
  113. package/dist/registries/transaction-limit.registry.d.ts +1 -0
  114. package/dist/registries/transaction-limit.registry.d.ts.map +1 -0
  115. package/dist/repositories/bank.repository.d.ts +1 -0
  116. package/dist/repositories/bank.repository.d.ts.map +1 -0
  117. package/dist/repositories/country.repository.d.ts +1 -0
  118. package/dist/repositories/country.repository.d.ts.map +1 -0
  119. package/dist/repositories/currency.repository.d.ts +1 -0
  120. package/dist/repositories/currency.repository.d.ts.map +1 -0
  121. package/dist/repositories/index.d.ts +1 -0
  122. package/dist/repositories/index.d.ts.map +1 -0
  123. package/dist/repositories/mobile-money-provider.repository.d.ts +1 -0
  124. package/dist/repositories/mobile-money-provider.repository.d.ts.map +1 -0
  125. package/dist/repositories/transaction-limit.repository.d.ts +1 -0
  126. package/dist/repositories/transaction-limit.repository.d.ts.map +1 -0
  127. package/dist/utilities/index.d.ts +2 -1
  128. package/dist/utilities/index.d.ts.map +1 -0
  129. package/dist/utilities/text/index.d.ts +1 -0
  130. package/dist/utilities/text/index.d.ts.map +1 -0
  131. package/dist/utilities/text/text.d.ts +1 -0
  132. package/dist/utilities/text/text.d.ts.map +1 -0
  133. package/dist/utilities/timezone/boundaries.d.ts +1 -0
  134. package/dist/utilities/timezone/boundaries.d.ts.map +1 -0
  135. package/dist/utilities/timezone/format.d.ts +1 -0
  136. package/dist/utilities/timezone/format.d.ts.map +1 -0
  137. package/dist/utilities/timezone/index.d.ts +4 -3
  138. package/dist/utilities/timezone/index.d.ts.map +1 -0
  139. package/dist/utilities/timezone/markets.d.ts +1 -0
  140. package/dist/utilities/timezone/markets.d.ts.map +1 -0
  141. package/dist/utilities/timezone/options.d.ts +1 -0
  142. package/dist/utilities/timezone/options.d.ts.map +1 -0
  143. package/dist/utilities/timezone/plain-date.d.ts +1 -0
  144. package/dist/utilities/timezone/plain-date.d.ts.map +1 -0
  145. package/dist/utilities/timezone/validate.d.ts +1 -0
  146. package/dist/utilities/timezone/validate.d.ts.map +1 -0
  147. package/package.json +28 -15
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 TemboPlus
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,13 +1,42 @@
1
1
  # @temboplus/frontend-core
2
2
 
3
- Shared TypeScript domain package for TemboPlus products. It provides canonical value objects, typed codes, validation helpers, factories, registries, and coverage data.
3
+ Shared TypeScript package for TemboPlus products. Provides canonical domain entities (Amount, Bank, Country, Currency, MobileMoneyProvider, PhoneNumber) with their registries and factories, plus a focused set of pure, framework-agnostic utilities.
4
4
 
5
- ## Install
5
+ ## Quick Start
6
6
 
7
7
  ```bash
8
+ bun add @temboplus/frontend-core
9
+ # or
8
10
  npm install @temboplus/frontend-core
9
11
  ```
10
12
 
13
+ ```typescript
14
+ import { Amount, Country, Currency, formatDateTime } from "@temboplus/frontend-core";
15
+
16
+ const country = Country.fromCode("TZ");
17
+ const currency = Currency.fromCode("USD");
18
+ const amount = Amount.from(100, "USD");
19
+
20
+ formatDateTime(new Date(), "Africa/Nairobi"); // "25 MAY 2026, 02:30 PM"
21
+ ```
22
+
23
+ ## Dependencies
24
+
25
+ Runtime dependencies (all bundled into the published artifact):
26
+
27
+ | Package | Why |
28
+ | --- | --- |
29
+ | `date-fns` | Date math and formatting primitives. |
30
+ | `@date-fns/tz` | IANA timezone support layered on `date-fns`. |
31
+ | `libphonenumber-js` | International phone-number parsing/validation. |
32
+ | `zod` | Runtime schema validation for the bundled JSON datasets. |
33
+ | `tslib` | Shared TypeScript helpers (pairs with `importHelpers: true`). |
34
+
35
+ ## Consumed By
36
+
37
+ - [`@temboplus/frontend-react-core`](https://github.com/TemboPlus-Frontend/temboplus-frontend-react-core) — React hooks and components that wrap these utilities (`useTimezone`, `useFormatDate`, …).
38
+ - _Downstream TemboPlus apps and packages — add here as they adopt the library._
39
+
11
40
  ## Architecture At A Glance
12
41
 
13
42
  ```text
@@ -15,10 +44,19 @@ domain/ value objects, types, schemas, and entity helpers
15
44
  factories/ construction, parsing, validation, and JSON re-resolution
16
45
  registries/ cached lookup and query APIs over supported datasets
17
46
  repositories/ internal raw JSON dataset readers
18
- utils/ cross-cutting helpers such as text, id, time, and logging
19
47
  coverage/ supported countries, channels, providers, banks, and limits
48
+ utilities/ pure, feature-bound helpers
49
+ └── timezone/ IANA picker options, formatters, boundary + plain-date helpers
50
+ └── text/ name validation, slug, initials, capitalization
20
51
  ```
21
52
 
53
+ Two big categories:
54
+
55
+ - **Domain entities** — TemboPlus-curated lists with typed models, accessed via static factories or registries.
56
+ - **Utilities** — pure functions, organised into named feature folders. Add new utility areas as feature folders (no `misc/` or grab-bag homes).
57
+
58
+ ## Domain Entities
59
+
22
60
  Most consumers start with static delegations on the domain objects:
23
61
 
24
62
  ```typescript
@@ -33,18 +71,18 @@ const canUseBic = BankHelpers.validateSwiftCode("CORUTZTZ", "TZ");
33
71
 
34
72
  Use factories when you need lower-level construction or aggregate behavior, and registries when you need cached lookup, listing, search, or provider detection.
35
73
 
36
- ## Main Exports
74
+ ### Main Exports
37
75
 
38
- - `Amount` parses, formats, compares, and serializes monetary values.
39
- - `Bank` resolves supported banks by BIC/SWIFT code.
40
- - `Country` resolves ISO-2 and ISO-3 country records.
41
- - `Currency` resolves ISO 4217 currency records.
42
- - `MobileMoneyProvider` resolves supported mobile-money providers.
43
- - `PhoneNumber` parses and formats international phone numbers.
44
- - `TemboCoverage` answers coverage questions for channels, countries, providers, banks, and limits.
45
- - `*Helpers` expose entity-scoped type guards, validators, parsers, and formatters.
76
+ - `Amount` parses, formats, compares, serializes monetary values.
77
+ - `Bank` resolves supported banks by BIC/SWIFT code.
78
+ - `Country` resolves ISO-2 and ISO-3 country records.
79
+ - `Currency` resolves ISO 4217 currency records.
80
+ - `MobileMoneyProvider` resolves supported mobile-money providers.
81
+ - `PhoneNumber` parses and formats international phone numbers.
82
+ - `TemboCoverage` answers coverage questions for channels, countries, providers, banks, and limits.
83
+ - `*Helpers` entity-scoped type guards, validators, parsers, and formatters.
46
84
 
47
- ## Typed Codes
85
+ ### Typed Codes
48
86
 
49
87
  ```typescript
50
88
  import type {
@@ -63,7 +101,7 @@ quote(100, "TZS", "TZ");
63
101
  quote(100, "USD", "USA");
64
102
  ```
65
103
 
66
- ## Coverage Example
104
+ ### Coverage Example
67
105
 
68
106
  ```typescript
69
107
  import { TemboCoverage, TransactionDirection } from "@temboplus/frontend-core";
@@ -75,6 +113,60 @@ const payoutCountries = TemboCoverage.getSupportedCountryCodes({
75
113
  const tzBanks = TemboCoverage.getPayoutBanks("TZ");
76
114
  ```
77
115
 
116
+ ## Utilities
117
+
118
+ ### Timezone
119
+
120
+ Helpers for working with IANA timezones, EAT-anchored TemboPlus dates, and timezone-aware formatting. All pure, all environment-agnostic.
121
+
122
+ ```typescript
123
+ import {
124
+ DEFAULT_TIMEZONE,
125
+ EAT_TIMEZONE,
126
+ TIMEZONE_OPTIONS,
127
+ formatDate,
128
+ formatDateTime,
129
+ isEatTimezone,
130
+ isValidTimezone,
131
+ shiftPlainDate,
132
+ padEatRange,
133
+ localDateInZone,
134
+ startOfDayInTimezone,
135
+ endOfDayInTimezone,
136
+ parseInTimezone,
137
+ } from "@temboplus/frontend-core";
138
+
139
+ // Imperative formatters (React hook counterparts live in frontend-react-core)
140
+ formatDateTime(new Date(), "Africa/Nairobi"); // "25 MAY 2026, 02:30 PM"
141
+
142
+ // Plain-date math (no JS-runtime timezone bleed)
143
+ shiftPlainDate("2026-05-15", 1); // "2026-05-16"
144
+ padEatRange({ startDate: "2026-05-15", endDate: "2026-05-16" });
145
+ // → { startDate: "2026-05-14", endDate: "2026-05-17" }
146
+
147
+ // Picker boundaries — UTC instant of the wall-clock day in the chosen zone
148
+ startOfDayInTimezone(pickerDate, "Africa/Nairobi");
149
+ ```
150
+
151
+ Picker data:
152
+
153
+ - `TIMEZONE_OPTIONS` — frozen list grouped into `operating` (TemboPlus markets), `anchors` (UTC, London, NY, Paris), `others` (everything else from `Intl.supportedValuesOf`).
154
+ - `isValidTimezone(value)` — narrowing type guard against the same set.
155
+ - `EAT_TIMEZONE` / `DEFAULT_TIMEZONE` — canonical East Africa Time id and the fallback used when a caller doesn't supply a zone.
156
+
157
+ ### Text
158
+
159
+ Name validation and lightweight text helpers.
160
+
161
+ ```typescript
162
+ import { TextUtils } from "@temboplus/frontend-core";
163
+
164
+ TextUtils.validateName("Mary O'Connor"); // true
165
+ TextUtils.validateBusinessName("Acme & Sons Ltd"); // true
166
+ TextUtils.abbreviateName("Mary O'Connor"); // "Mary O."
167
+ TextUtils.getInitialsFrom("Mary O'Connor"); // "MO"
168
+ ```
169
+
78
170
  ## Documentation
79
171
 
80
172
  - [Architecture](./docs/architecture.md)
@@ -87,9 +179,43 @@ const tzBanks = TemboCoverage.getPayoutBanks("TZ");
87
179
 
88
180
  ## Development
89
181
 
182
+ This repo uses **mise** for tool versioning, **Bun** for install/test/scripts, and **Biome** for lint+format. Bun is pinned in `.tool-versions`; Node is not required for development (Bun handles install, test, build). The release workflow uses a current LTS Node only for `npm publish`.
183
+
90
184
  ```bash
91
- npx tsc --noEmit
92
- npm run build
185
+ mise install # one-time: install pinned bun + node
186
+ bun install # install deps from bun.lock
187
+ bun run dev # rollup build in watch mode
93
188
  ```
94
189
 
95
- Existing test files are still being migrated to the `1.0.0` API. Prefer typecheck, build, and focused smoke scripts until that cleanup is complete.
190
+ ### Scripts
191
+
192
+ | Script | What it does |
193
+ | --- | --- |
194
+ | `bun run dev` | Rollup build in watch mode. |
195
+ | `bun run build` | Rollup build to `dist/` (CJS + ESM + `.d.ts`). |
196
+ | `bun test` | Run the test suite via `bun:test`. |
197
+ | `bun run lint` | Biome lint + format check over `src/`. |
198
+ | `bun run format` | Biome auto-fix (lint + format) over `src/`. |
199
+ | `bun run typecheck` | `tsc --noEmit`. |
200
+ | `bun run release` | Reminds you releases are tag-driven (see below). |
201
+
202
+ Tests live alongside their sources under `src/**/__tests__/*.test.ts`. Path aliases (`@domain/*`, `@utilities/*`, `@registries/*`, …) are declared in `tsconfig.json` and honored natively by `bun test` and Rollup.
203
+
204
+ ## Release
205
+
206
+ Releases are tag-driven via `.github/workflows/release.yml`:
207
+
208
+ 1. Update `CHANGELOG.md` — move the `## [Unreleased]` items into a new `## [X.Y.Z] - YYYY-MM-DD` section.
209
+ 2. Bump `version` in `package.json` to match.
210
+ 3. Commit, then tag and push:
211
+ ```bash
212
+ git tag vX.Y.Z
213
+ git push origin main --tags
214
+ ```
215
+ 4. The release workflow runs the full pipeline (typecheck, test, build), extracts the matching CHANGELOG section as the GitHub Release body, and publishes to npm under `@temboplus` (public access).
216
+
217
+ Pre-release tags (e.g. `v1.0.3-beta.2`) are detected automatically and marked as pre-releases on GitHub.
218
+
219
+ ## License
220
+
221
+ [MIT](./LICENSE) © TemboPlus
@@ -22,3 +22,4 @@ export interface CoverageTransactionLimitQuery {
22
22
  channelType: ChannelType;
23
23
  providerId?: string;
24
24
  }
25
+ //# sourceMappingURL=coverage.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coverage.types.d.ts","sourceRoot":"","sources":["../../src/coverage/coverage.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAEvE,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,eAAe,CAAC;IAC7B,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,eAAe,CAAC;IAC7B,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,EAAE,oBAAoB,CAAC;IAChC,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -1,3 +1,4 @@
1
1
  export * from "@domain/channel/index.js";
2
2
  export * from "./coverage.types.js";
3
3
  export * from "./tembo-coverage.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/coverage/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
@@ -57,3 +57,4 @@ declare class TemboCoverageService {
57
57
  */
58
58
  export declare const TemboCoverage: TemboCoverageService;
59
59
  export {};
60
+ //# sourceMappingURL=tembo-coverage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tembo-coverage.d.ts","sourceRoot":"","sources":["../../src/coverage/tembo-coverage.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAEL,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EACV,sBAAsB,EACtB,sBAAsB,EACtB,6BAA6B,EAE9B,MAAM,qBAAqB,CAAC;AAE7B;;;GAGG;AACH,cAAM,oBAAoB;IACxB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IAGtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiC;IAC3D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8B;IACpD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6C;IACvE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0C;;IAWjE;;OAEG;IACH,wBAAwB,CACtB,OAAO,GAAE,sBAA2B,GACnC,eAAe,EAAE;IAIpB;;OAEG;IACH,qBAAqB,CAAC,OAAO,GAAE,sBAA2B;IAM1D;;OAEG;IACH,kBAAkB,CAChB,WAAW,EAAE,eAAe,EAC5B,OAAO,GAAE,sBAA2B,GACnC,OAAO;IAOV;;OAEG;IACH,cAAc,CAAC,WAAW,EAAE,eAAe;IAS3C;;OAEG;IACH,uBAAuB,CACrB,WAAW,EAAE,eAAe,EAC5B,OAAO,GAAE;QAAE,SAAS,CAAC,EAAE,oBAAoB,CAAA;KAAO;IAiBpD;;OAEG;IACH,WAAW,CACT,WAAW,EAAE,eAAe,EAC5B,OAAO,GAAE,sBAA2B,GACnC,OAAO,EAAE;IAyDZ;;OAEG;IACH,oBAAoB,CAAC,KAAK,EAAE,6BAA6B;IAIzD;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;OAEG;IACH,OAAO,CAAC,aAAa;CAUtB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,sBAA6B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { Currency, CurrencyCode } from "../currency/index.js";
2
- import type { AmountJSON } from "./amount.schema.js";
3
2
  import { type AmountCompactFormatOptions, type AmountFormatOptions } from "./amount.helpers.js";
3
+ import type { AmountJSON } from "./amount.schema.js";
4
4
  /**
5
5
  * Internal symbol used by AmountFactory to bypass the protected constructor.
6
6
  * Importing this from outside the factory is unsupported.
@@ -477,8 +477,8 @@ declare class Amount {
477
477
  */
478
478
  getWholeValue(): number;
479
479
  /**
480
- * Serializes the Amount instance to a JSON-compatible object
481
- */
480
+ * Serializes the Amount instance to a JSON-compatible object
481
+ */
482
482
  toJSON(): AmountJSON;
483
483
  /**
484
484
  * Serializes the Amount instance to a JSON string
@@ -487,5 +487,6 @@ declare class Amount {
487
487
  /** Full plain-object dump of all current state. */
488
488
  toObject(): AmountObject;
489
489
  }
490
- export { Amount };
491
490
  export type { AmountCompactFormatOptions, AmountFormatOptions, } from "./amount.helpers.js";
491
+ export { Amount };
492
+ //# sourceMappingURL=amount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amount.d.ts","sourceRoot":"","sources":["../../../src/domain/amount/am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AAE,CAAC"}
@@ -75,3 +75,4 @@ export declare const AmountHelpers: {
75
75
  sum: typeof sum;
76
76
  };
77
77
  export {};
78
+ //# sourceMappingURL=amount.helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amount.helpers.d.ts","sourceRoot":"","sources":["../../../src/domain/amount/amount.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAsJ1C;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,+FAA+F;IAC/F,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IACtC,uDAAuD;IACvD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uCAAuC;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,uCAAuC;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,wDAAwD;IACxD,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IAC3C,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+BAA+B;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uEAAuE;IACvE,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,wEAAwE;IACxE,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,0BAA0B;IACzC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,CAAC,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AM,aAAa;;;;;;;;;;;;CAYzB,CAAC"}
@@ -4,25 +4,11 @@ import { z } from "zod";
4
4
  * This schema validates the JSON representation of an Amount instance.
5
5
  */
6
6
  export declare const AmountJSONSchema: z.ZodObject<{
7
- /** The numeric value of the amount (can be positive, negative, or zero) */
8
7
  value: z.ZodNumber;
9
- /** The formatted text representation of the amount */
10
8
  text: z.ZodString;
11
- /** The ISO currency code */
12
9
  currencyCode: z.ZodString;
13
- /** Model JSON schema version for future compatibility. */
14
10
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15
- }, "strip", z.ZodTypeAny, {
16
- _version: string;
17
- value: number;
18
- text: string;
19
- currencyCode: string;
20
- }, {
21
- value: number;
22
- text: string;
23
- currencyCode: string;
24
- _version?: string | undefined;
25
- }>;
11
+ }, z.core.$strip>;
26
12
  /**
27
13
  * Compact JSON identity for an Amount, sufficient to reconstruct the value via
28
14
  * AmountFactory.
@@ -32,3 +18,4 @@ export type AmountJSON = z.infer<typeof AmountJSONSchema>;
32
18
  * @deprecated Use AmountJSON instead.
33
19
  */
34
20
  export type AmountJson = AmountJSON;
21
+ //# sourceMappingURL=amount.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amount.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/amount/amount.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;iBAY3B,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC"}
@@ -1,4 +1,5 @@
1
- export * from "./amount.js";
2
- export { AmountHelpers } from "./amount.helpers.js";
3
1
  export type { AmountCompactFormatOptions, AmountFormatOptions, } from "./amount.helpers.js";
2
+ export { AmountHelpers } from "./amount.helpers.js";
3
+ export * from "./amount.js";
4
4
  export * from "./amount.schema.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/amount/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { ISO2CountryCode } from "@domain/country/country.types.js";
2
- import { z } from "zod";
3
- import { BankJSONSchema } from "./bank.schema.js";
2
+ import type { z } from "zod";
3
+ import type { BankJSONSchema } from "./bank.schema.js";
4
4
  import type { BankSwiftCode, KEBankSwiftCode, TZBankSwiftCode } from "./bank.types.js";
5
5
  /**
6
6
  * Internal symbol used by BankFactory to bypass the protected constructor.
@@ -57,3 +57,4 @@ export declare class Bank {
57
57
  /** Type guard delegating to BankFactory.isBank. */
58
58
  static is(obj: unknown): obj is Bank;
59
59
  }
60
+ //# sourceMappingURL=bank.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bank.d.ts","sourceRoot":"","sources":["../../../src/domain/bank/bank.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,eAAiC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;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CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,IAAI;CAGrC"}
@@ -1,5 +1,5 @@
1
1
  import type { ISO2CountryCode } from "@domain/country/country.types.js";
2
- import { isBankSwiftCode, type BankSwiftCode } from "./bank.types.js";
2
+ import { type BankSwiftCode, isBankSwiftCode } from "./bank.types.js";
3
3
  export declare const BankHelpers: {
4
4
  isBankSwiftCode: typeof isBankSwiftCode;
5
5
  validateAccountNumber: typeof validateAccountNumber;
@@ -32,3 +32,4 @@ declare function validateAllBankDetails(accountNumber: string, swiftCode: string
32
32
  */
33
33
  declare function getCountryFromSwiftCode(swiftCode: string): ISO2CountryCode | undefined;
34
34
  export {};
35
+ //# sourceMappingURL=bank.helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bank.helpers.d.ts","sourceRoot":"","sources":["../../../src/domain/bank/bank.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EACL,KAAK,aAAa,EAClB,eAAe,EAGhB,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,WAAW;;;;;;;CAOvB,CAAC;AAEF;;GAEG;AACH,iBAAS,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;GAGG;AACH,iBAAS,qBAAqB,CAAC,aAAa,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,eAAe,GAAG,OAAO,CAM5F;AAED;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,SAAS,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,eAAe,GAC5B,SAAS,IAAI,aAAa,CAM5B;AAED;;;GAGG;AACH,iBAAS,sBAAsB,CAC7B,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,eAAe,GAC5B,OAAO,CAMT;AAED;;GAEG;AACH,iBAAS,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAM/E"}
@@ -1,39 +1,14 @@
1
1
  import { z } from "zod";
2
- export declare const TZBankSWIFTCodeSchema: z.ZodEffects<z.ZodString, string, string>;
3
- export declare const KEBankSWIFTCodeSchema: z.ZodEffects<z.ZodString, string, string>;
2
+ export declare const TZBankSWIFTCodeSchema: z.ZodString;
3
+ export declare const KEBankSWIFTCodeSchema: z.ZodString;
4
4
  /**
5
- * Zod schema for Bank JSON serialization
6
- * This schema validates the JSON representation of a Bank instance
7
- */
8
- export declare const BankJSONSchema: z.ZodEffects<z.ZodObject<{
9
- /** The BIC code for the bank's head office */
5
+ * Zod schema for Bank JSON serialization
6
+ * This schema validates the JSON representation of a Bank instance
7
+ */
8
+ export declare const BankJSONSchema: z.ZodObject<{
10
9
  bic: z.ZodOptional<z.ZodString>;
11
- /**
12
- * @deprecated Use `bic` instead.
13
- */
14
10
  swiftCode: z.ZodOptional<z.ZodString>;
15
- /** The ISO 3166-1 alpha-2 country code */
16
11
  countryCode: z.ZodString;
17
- /** Model JSON schema version for future compatibility. */
18
12
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
19
- }, "strip", z.ZodTypeAny, {
20
- _version: string;
21
- countryCode: string;
22
- bic?: string | undefined;
23
- swiftCode?: string | undefined;
24
- }, {
25
- countryCode: string;
26
- _version?: string | undefined;
27
- bic?: string | undefined;
28
- swiftCode?: string | undefined;
29
- }>, {
30
- _version: string;
31
- countryCode: string;
32
- bic?: string | undefined;
33
- swiftCode?: string | undefined;
34
- }, {
35
- countryCode: string;
36
- _version?: string | undefined;
37
- bic?: string | undefined;
38
- swiftCode?: string | undefined;
39
- }>;
13
+ }, z.core.$strip>;
14
+ //# sourceMappingURL=bank.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bank.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/bank/bank.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB,aAGiD,CAAC;AAEpF,eAAO,MAAM,qBAAqB,aAGiD,CAAC;AAEpF;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;iBAmBvB,CAAC"}
@@ -7,3 +7,4 @@ export type BankSwiftCode = KEBankSwiftCode | TZBankSwiftCode;
7
7
  * Type guard to check whether a string is a known bank SWIFT/BIC code.
8
8
  */
9
9
  export declare function isBankSwiftCode(code: string): code is BankSwiftCode;
10
+ //# sourceMappingURL=bank.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bank.types.d.ts","sourceRoot":"","sources":["../../../src/domain/bank/bank.types.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,aAAyD,CAAC;AAG1F,eAAO,MAAM,mBAAmB,aAAyD,CAAC;AAI1F,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAIf,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAGf,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,eAAe,CAAC;AAE9D;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,aAAa,CAEnE"}
@@ -1,4 +1,5 @@
1
- export * from "./bank.js";
2
- export * from "./bank.types.js";
3
1
  export { BankHelpers } from "./bank.helpers.js";
2
+ export * from "./bank.js";
4
3
  export * from "./bank.schema.js";
4
+ export * from "./bank.types.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/bank/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ChannelType, TransactionDirection } from "./channel.enums.js";
1
+ import type { ChannelType, TransactionDirection } from "./channel.enums.js";
2
2
  import type { ChannelData } from "./channel.types.js";
3
3
  /**
4
4
  * Plain-object representation of a Channel containing the full state.
@@ -38,3 +38,4 @@ export declare class Channel {
38
38
  toObject(): ChannelObject;
39
39
  toString(): string;
40
40
  }
41
+ //# sourceMappingURL=channel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../src/domain/channel/channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED;;;;;GAKG;AACH,qBAAa,OAAO;IAClB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IACjD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,oBAAoB,EAAE,CAAC;IAC5C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;gBACS,IAAI,EAAE,WAAW;IAU7B;;OAEG;IACH,iBAAiB,CAAC,SAAS,EAAE,oBAAoB,GAAG,OAAO;IAI3D;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED;;OAEG;IACH,QAAQ,IAAI,aAAa;IAazB,QAAQ,IAAI,MAAM;CAGnB"}
@@ -12,3 +12,4 @@ export declare enum TransactionDirection {
12
12
  PAYOUT = "payout",
13
13
  COLLECTION = "collection"
14
14
  }
15
+ //# sourceMappingURL=channel.enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.enums.d.ts","sourceRoot":"","sources":["../../../src/domain/channel/channel.enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,YAAY,iBAAiB;CAC9B;AAED;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B"}
@@ -1,5 +1,5 @@
1
- import type { ISO2CountryCode } from "@domain/country/country.types.js";
2
1
  import type { BankSwiftCode } from "@domain/bank/bank.types.js";
2
+ import type { ISO2CountryCode } from "@domain/country/country.types.js";
3
3
  import type { ChannelType, TransactionDirection } from "./channel.enums.js";
4
4
  export interface ChannelData {
5
5
  id: string;
@@ -10,3 +10,4 @@ export interface ChannelData {
10
10
  providerId?: string;
11
11
  bankBic?: BankSwiftCode | string;
12
12
  }
13
+ //# sourceMappingURL=channel.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.types.d.ts","sourceRoot":"","sources":["../../../src/domain/channel/channel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE5E,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,eAAe,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;CAClC"}
@@ -1,3 +1,4 @@
1
1
  export * from "./channel.enums.js";
2
- export * from "./channel.types.js";
3
2
  export * from "./channel.js";
3
+ export * from "./channel.types.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/channel/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import type { CurrencyCode } from "@domain/currency/currency.types.js";
2
- import { z } from "zod";
3
- import { CountryJSONSchema } from "./country.schema.js";
2
+ import type { z } from "zod";
3
+ import type { CONTINENT, SUB_REGION } from "./country.enums.js";
4
+ import type { CountryJSONSchema } from "./country.schema.js";
4
5
  import type { CountryCode, ISO2CountryCode, ISO3CountryCode } from "./country.types.js";
5
- import { CONTINENT, SUB_REGION } from "./country.enums.js";
6
6
  export { CONTINENT, SUB_REGION } from "./country.enums.js";
7
7
  /**
8
8
  * Internal symbol used by CountryFactory to bypass the protected constructor.
@@ -71,3 +71,4 @@ export declare class Country {
71
71
  /** Type guard delegating to CountryFactory.isCountry. */
72
72
  static is(obj: unknown): obj is Country;
73
73
  }
74
+ //# sourceMappingURL=country.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country.d.ts","sourceRoot":"","sources":["../../../src/domain/country/country.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAEvE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAMxF,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,uBAAuB,eAAoC,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,UAAU,CAAC;IACnB,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,QAAQ,EAAE,MAA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,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS;IAIhE,4DAA4D;IAC5D,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS;IAIhE,gDAAgD;IAChD,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAI9D,yDAAyD;IACzD,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,OAAO;CAGxC"}
@@ -43,3 +43,4 @@ export declare enum SUB_REGION {
43
43
  WESTERN_ASIA = "Western Asia",
44
44
  WESTERN_EUROPE = "Western Europe"
45
45
  }
46
+ //# sourceMappingURL=country.enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country.enums.d.ts","sourceRoot":"","sources":["../../../src/domain/country/country.enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,OAAO,YAAY;IACnB,aAAa,kBAAkB;CAChC;AAED;;GAEG;AACH,oBAAY,UAAU;IACpB,yBAAyB,8BAA8B;IACvD,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,kBAAkB,uBAAuB;IACzC,eAAe,oBAAoB;IACnC,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;CAClC"}
@@ -4,3 +4,4 @@ export declare const CountryHelpers: {
4
4
  isISO3Code: typeof isISO3CountryCode;
5
5
  isCountryCode: typeof isCountryCode;
6
6
  };
7
+ //# sourceMappingURL=country.helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country.helpers.d.ts","sourceRoot":"","sources":["../../../src/domain/country/country.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEzF,eAAO,MAAM,cAAc;;;;CAI1B,CAAC"}
@@ -4,17 +4,9 @@ import { z } from "zod";
4
4
  * This schema validates the JSON representation of a Country instance
5
5
  */
6
6
  export declare const CountryJSONSchema: z.ZodObject<{
7
- /** The ISO 3166-1 alpha-2 country code */
8
7
  code: z.ZodString;
9
- /** Model JSON schema version for future compatibility. */
10
8
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
11
- }, "strip", z.ZodTypeAny, {
12
- code: string;
13
- _version: string;
14
- }, {
15
- code: string;
16
- _version?: string | undefined;
17
- }>;
9
+ }, z.core.$strip>;
18
10
  /**
19
11
  * Zod schema for validating ISO 3166-1 alpha-2 country codes.
20
12
  *
@@ -29,7 +21,7 @@ export declare const CountryJSONSchema: z.ZodObject<{
29
21
  * console.error("Invalid ISO2 country code");
30
22
  * }
31
23
  */
32
- export declare const ISO2CountryCodeSchema: z.ZodEffects<z.ZodString, string, string>;
24
+ export declare const ISO2CountryCodeSchema: z.ZodString;
33
25
  /**
34
26
  * Zod schema for validating ISO 3166-1 alpha-3 country codes.
35
27
  *
@@ -44,7 +36,7 @@ export declare const ISO2CountryCodeSchema: z.ZodEffects<z.ZodString, string, st
44
36
  * console.error("Invalid ISO3 country code");
45
37
  * }
46
38
  */
47
- export declare const ISO3CountryCodeSchema: z.ZodEffects<z.ZodString, string, string>;
39
+ export declare const ISO3CountryCodeSchema: z.ZodString;
48
40
  /**
49
41
  * Zod schema for validating either ISO 3166-1 alpha-2 or alpha-3 country codes.
50
42
  *
@@ -59,15 +51,8 @@ export declare const ISO3CountryCodeSchema: z.ZodEffects<z.ZodString, string, st
59
51
  * console.error("Invalid country code");
60
52
  * }
61
53
  */
62
- export declare const CountryCodeSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
63
- /** The ISO 3166-1 alpha-2 country code */
54
+ export declare const CountryCodeSchema: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodObject<{
64
55
  code: z.ZodString;
65
- /** Model JSON schema version for future compatibility. */
66
56
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
67
- }, "strip", z.ZodTypeAny, {
68
- code: string;
69
- _version: string;
70
- }, {
71
- code: string;
72
- _version?: string | undefined;
73
- }>]>;
57
+ }, z.core.$strip>]>;
58
+ //# sourceMappingURL=country.schema.d.ts.map