@cobre-npm/library-portal-core 0.33.0 → 0.34.0
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/README.md
CHANGED
|
@@ -216,11 +216,18 @@ import {
|
|
|
216
216
|
getMovementStatuses, type MovementStatus, type MovementStatusRecord,
|
|
217
217
|
} from "@cobre-npm/library-portal-core/movements"
|
|
218
218
|
|
|
219
|
-
getMovementTypes("en").ach.label
|
|
220
|
-
|
|
219
|
+
getMovementTypes("en").ach.label // "ACH"
|
|
220
|
+
getMovementTypes("en").on_ramp.groupLabel // "Stablecoin"
|
|
221
|
+
getMovementTypes("en").on_ramp.label // "On Ramp" (individual label, unchanged)
|
|
222
|
+
getMovementStatuses().completed // { code: "completed" } (no i18n)
|
|
221
223
|
```
|
|
222
224
|
|
|
223
|
-
- **types** (i18n): movement types (ACH, SPEI, R2P, …).
|
|
225
|
+
- **types** (i18n): movement types (ACH, SPEI, R2P, …). `on_ramp`/`off_ramp`/`stable_payout`/`global`
|
|
226
|
+
additionally carry `groupLabel: "Stablecoin"` — a display grouping for views that need to show them
|
|
227
|
+
under one label. `getMovementTypes()` keeps returning each rail's own individual `label` unchanged; a
|
|
228
|
+
consumer that wants the grouped label picks `groupLabel ?? label`. There's no separate `getXLabel`
|
|
229
|
+
for this — the value already comes back inside `getMovementTypes()`, same as everything else in this
|
|
230
|
+
catalog.
|
|
224
231
|
- **status** (no i18n): movement statuses (`initiated`, `processing`, `completed`, …).
|
|
225
232
|
|
|
226
233
|
### `subclients`
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type MovementTypeGroupLabel = "Stablecoin";
|
|
1
2
|
export declare const MOVEMENT_TYPES: {
|
|
2
3
|
readonly ach: {
|
|
3
4
|
readonly code: "ach";
|
|
@@ -40,15 +41,18 @@ export declare const MOVEMENT_TYPES: {
|
|
|
40
41
|
};
|
|
41
42
|
readonly global: {
|
|
42
43
|
readonly code: "global";
|
|
44
|
+
readonly groupLabel: "Stablecoin";
|
|
43
45
|
};
|
|
44
46
|
readonly r2p_spei: {
|
|
45
47
|
readonly code: "r2p_spei";
|
|
46
48
|
};
|
|
47
49
|
readonly on_ramp: {
|
|
48
50
|
readonly code: "on_ramp";
|
|
51
|
+
readonly groupLabel: "Stablecoin";
|
|
49
52
|
};
|
|
50
53
|
readonly off_ramp: {
|
|
51
54
|
readonly code: "off_ramp";
|
|
55
|
+
readonly groupLabel: "Stablecoin";
|
|
52
56
|
};
|
|
53
57
|
readonly fedwire: {
|
|
54
58
|
readonly code: "fedwire";
|
|
@@ -61,6 +65,7 @@ export declare const MOVEMENT_TYPES: {
|
|
|
61
65
|
};
|
|
62
66
|
readonly stable_payout: {
|
|
63
67
|
readonly code: "stable_payout";
|
|
68
|
+
readonly groupLabel: "Stablecoin";
|
|
64
69
|
};
|
|
65
70
|
readonly breb: {
|
|
66
71
|
readonly code: "breb";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/movements/types/catalog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/movements/types/catalog.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAA;AAEjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwB+D,CAAA;AAE1F,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,cAAc,CAAA;AACtD,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,YAAY,CAAC,CAAA"}
|
|
@@ -15,14 +15,14 @@ exports.MOVEMENT_TYPES = {
|
|
|
15
15
|
r2p_breb: { code: "r2p_breb" },
|
|
16
16
|
r2p_top_up_pse: { code: "r2p_top_up_pse" },
|
|
17
17
|
r2p_top_up_bancolombia: { code: "r2p_top_up_bancolombia" },
|
|
18
|
-
global: { code: "global" },
|
|
18
|
+
global: { code: "global", groupLabel: "Stablecoin" },
|
|
19
19
|
r2p_spei: { code: "r2p_spei" },
|
|
20
|
-
on_ramp: { code: "on_ramp" },
|
|
21
|
-
off_ramp: { code: "off_ramp" },
|
|
20
|
+
on_ramp: { code: "on_ramp", groupLabel: "Stablecoin" },
|
|
21
|
+
off_ramp: { code: "off_ramp", groupLabel: "Stablecoin" },
|
|
22
22
|
fedwire: { code: "fedwire" },
|
|
23
23
|
global_pay_to_usa: { code: "global_pay_to_usa" },
|
|
24
24
|
usa_pay_to_global: { code: "usa_pay_to_global" },
|
|
25
|
-
stable_payout: { code: "stable_payout" },
|
|
25
|
+
stable_payout: { code: "stable_payout", groupLabel: "Stablecoin" },
|
|
26
26
|
breb: { code: "breb" },
|
|
27
27
|
global_pay_to_generic: { code: "global_pay_to_generic" },
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../../src/movements/types/catalog.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../../src/movements/types/catalog.ts"],"names":[],"mappings":";;;AAMa,QAAA,cAAc,GAAG;IAC5B,GAAG,EAAqB,EAAE,IAAI,EAAE,KAAK,EAAE;IACvC,QAAQ,EAAgB,EAAE,IAAI,EAAE,UAAU,EAAE;IAC5C,IAAI,EAAoB,EAAE,IAAI,EAAE,MAAM,EAAE;IACxC,SAAS,EAAe,EAAE,IAAI,EAAE,WAAW,EAAE;IAC7C,WAAW,EAAa,EAAE,IAAI,EAAE,aAAa,EAAE;IAC/C,GAAG,EAAqB,EAAE,IAAI,EAAE,KAAK,EAAE;IACvC,eAAe,EAAS,EAAE,IAAI,EAAE,iBAAiB,EAAE;IACnD,SAAS,EAAe,EAAE,IAAI,EAAE,WAAW,EAAE;IAC7C,OAAO,EAAiB,EAAE,IAAI,EAAE,SAAS,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