@cobre-npm/library-portal-core 0.55.0 → 0.57.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.
Files changed (61) hide show
  1. package/README.md +117 -23
  2. package/dist/cjs/businessLines/catalog.d.ts +19 -0
  3. package/dist/cjs/businessLines/catalog.js +10 -0
  4. package/dist/cjs/businessLines/index.d.ts +2 -0
  5. package/dist/cjs/businessLines/index.js +17 -0
  6. package/dist/cjs/businessLines/utils/business-line.utils.d.ts +2 -0
  7. package/dist/cjs/businessLines/utils/business-line.utils.js +6 -0
  8. package/dist/cjs/filterClassification/categoryFamilies/catalog.d.ts +33 -0
  9. package/dist/cjs/filterClassification/categoryFamilies/catalog.js +12 -0
  10. package/dist/cjs/filterClassification/categoryFamilies/locales/en.json +11 -0
  11. package/dist/cjs/filterClassification/categoryFamilies/locales/es-mex.json +11 -0
  12. package/dist/cjs/filterClassification/categoryFamilies/utils/filter-classification-category-family.utils.d.ts +8 -0
  13. package/dist/cjs/filterClassification/categoryFamilies/utils/filter-classification-category-family.utils.js +19 -0
  14. package/dist/cjs/filterClassification/index.d.ts +7 -0
  15. package/dist/cjs/filterClassification/index.js +20 -0
  16. package/dist/cjs/filterClassification/interfaces/filter-classification.interface.d.ts +14 -0
  17. package/dist/cjs/filterClassification/interfaces/filter-classification.interface.js +2 -0
  18. package/dist/cjs/filterClassification/sections/catalog.d.ts +28 -0
  19. package/dist/cjs/filterClassification/sections/catalog.js +13 -0
  20. package/dist/cjs/filterClassification/sections/locales/en.json +12 -0
  21. package/dist/cjs/filterClassification/sections/locales/es-mex.json +12 -0
  22. package/dist/cjs/filterClassification/sections/utils/filter-classification-section.utils.d.ts +7 -0
  23. package/dist/cjs/filterClassification/sections/utils/filter-classification-section.utils.js +20 -0
  24. package/dist/cjs/filterClassification/utils/type-group.utils.d.ts +13 -0
  25. package/dist/cjs/filterClassification/utils/type-group.utils.js +24 -0
  26. package/dist/cjs/filterClassification/utils/type-label.utils.d.ts +9 -0
  27. package/dist/cjs/filterClassification/utils/type-label.utils.js +17 -0
  28. package/dist/cjs/movements/index.d.ts +1 -1
  29. package/dist/cjs/movements/types/catalog.d.ts +27 -16
  30. package/dist/cjs/movements/types/catalog.js +26 -26
  31. package/dist/cjs/movements/types/utils/movement-type.utils.d.ts +1 -8
  32. package/dist/cjs/movements/types/utils/movement-type.utils.js +1 -8
  33. package/dist/cjs/transactions/index.d.ts +1 -2
  34. package/dist/cjs/transactions/types/catalog.d.ts +108 -0
  35. package/dist/cjs/transactions/types/catalog.js +101 -0
  36. package/dist/cjs/transactions/types/locales/en.json +9 -0
  37. package/dist/cjs/transactions/types/locales/es-mex.json +9 -0
  38. package/dist/cjs/transactions/types/utils/transaction-type.utils.d.ts +12 -1
  39. package/dist/cjs/transactions/types/utils/transaction-type.utils.js +30 -1
  40. package/dist/esm/businessLines/catalog.js +7 -0
  41. package/dist/esm/businessLines/index.js +1 -0
  42. package/dist/esm/businessLines/utils/business-line.utils.js +2 -0
  43. package/dist/esm/filterClassification/categoryFamilies/catalog.js +9 -0
  44. package/dist/esm/filterClassification/categoryFamilies/locales/en.json +11 -0
  45. package/dist/esm/filterClassification/categoryFamilies/locales/es-mex.json +11 -0
  46. package/dist/esm/filterClassification/categoryFamilies/utils/filter-classification-category-family.utils.js +12 -0
  47. package/dist/esm/filterClassification/index.js +4 -0
  48. package/dist/esm/filterClassification/interfaces/filter-classification.interface.js +1 -0
  49. package/dist/esm/filterClassification/sections/catalog.js +10 -0
  50. package/dist/esm/filterClassification/sections/locales/en.json +12 -0
  51. package/dist/esm/filterClassification/sections/locales/es-mex.json +12 -0
  52. package/dist/esm/filterClassification/sections/utils/filter-classification-section.utils.js +13 -0
  53. package/dist/esm/filterClassification/utils/type-group.utils.js +18 -0
  54. package/dist/esm/filterClassification/utils/type-label.utils.js +13 -0
  55. package/dist/esm/movements/types/catalog.js +26 -26
  56. package/dist/esm/movements/types/utils/movement-type.utils.js +1 -8
  57. package/dist/esm/transactions/types/catalog.js +101 -0
  58. package/dist/esm/transactions/types/locales/en.json +9 -0
  59. package/dist/esm/transactions/types/locales/es-mex.json +9 -0
  60. package/dist/esm/transactions/types/utils/transaction-type.utils.js +28 -0
  61. package/package.json +11 -1
@@ -1,149 +1,160 @@
1
- export type ClassificationLine = "payin" | "payout" | "cbmm" | "stable" | "unclassified";
2
- export type ClassificationCategory = "payments" | "collections" | "conversions" | "international" | "between_accounts" | "top_up" | "adjustment" | "reward" | "unclassified";
3
- export type MovementTypeGroup = "stablecoin";
4
- export type MovementTypeGroupLabel = "Stablecoin";
5
1
  export declare const MOVEMENT_TYPES: {
6
2
  readonly ach: {
7
3
  readonly code: "ach";
8
4
  readonly line: "payout";
9
5
  readonly category: "payments";
6
+ readonly section: "cop";
10
7
  };
11
8
  readonly fast_pay: {
12
9
  readonly code: "fast_pay";
13
10
  readonly line: "payout";
14
11
  readonly category: "payments";
12
+ readonly section: "cop";
15
13
  };
16
14
  readonly spei: {
17
15
  readonly code: "spei";
18
16
  readonly line: "payout";
19
17
  readonly category: "payments";
18
+ readonly section: "mxn";
20
19
  };
21
20
  readonly spei_card: {
22
21
  readonly code: "spei_card";
23
22
  readonly line: "payout";
24
23
  readonly category: "payments";
24
+ readonly section: "mxn";
25
25
  };
26
26
  readonly spei_return: {
27
27
  readonly code: "spei_return";
28
28
  readonly line: "payout";
29
29
  readonly category: "payments";
30
+ readonly section: "mxn";
30
31
  };
31
32
  readonly r2p: {
32
33
  readonly code: "r2p";
33
34
  readonly line: "payin";
34
35
  readonly category: "collections";
36
+ readonly section: "cop";
35
37
  };
36
38
  readonly r2p_bancolombia: {
37
39
  readonly code: "r2p_bancolombia";
38
40
  readonly line: "payin";
39
41
  readonly category: "collections";
42
+ readonly section: "cop";
40
43
  };
41
44
  readonly r2p_nequi: {
42
45
  readonly code: "r2p_nequi";
43
46
  readonly line: "payin";
44
47
  readonly category: "collections";
48
+ readonly section: "cop";
45
49
  };
46
50
  readonly r2p_pse: {
47
51
  readonly code: "r2p_pse";
48
52
  readonly line: "payin";
49
53
  readonly category: "collections";
54
+ readonly section: "cop";
50
55
  };
51
56
  readonly direct_debit: {
52
57
  readonly code: "direct_debit";
53
58
  readonly line: "payin";
54
59
  readonly category: "collections";
60
+ readonly section: "cop";
55
61
  };
56
62
  readonly r2p_breb: {
57
63
  readonly code: "r2p_breb";
58
64
  readonly line: "payin";
59
65
  readonly category: "collections";
66
+ readonly section: "cop";
60
67
  };
61
68
  readonly r2p_top_up_pse: {
62
69
  readonly code: "r2p_top_up_pse";
63
70
  readonly line: "payin";
64
71
  readonly category: "top_up";
72
+ readonly section: "cop";
65
73
  };
66
74
  readonly r2p_top_up_bancolombia: {
67
75
  readonly code: "r2p_top_up_bancolombia";
68
76
  readonly line: "payin";
69
77
  readonly category: "top_up";
78
+ readonly section: "cop";
70
79
  };
71
80
  readonly global: {
72
81
  readonly code: "global";
73
82
  readonly line: "stable";
74
83
  readonly category: "conversions";
75
- readonly group: "stablecoin";
76
- readonly groupLabel: "Stablecoin";
84
+ readonly section: "stablecoin";
77
85
  };
78
86
  readonly r2p_spei: {
79
87
  readonly code: "r2p_spei";
80
88
  readonly line: "payin";
81
89
  readonly category: "collections";
90
+ readonly section: "mxn";
82
91
  };
83
92
  readonly on_ramp: {
84
93
  readonly code: "on_ramp";
85
94
  readonly line: "stable";
86
95
  readonly category: "conversions";
87
- readonly group: "stablecoin";
88
- readonly groupLabel: "Stablecoin";
96
+ readonly section: "stablecoin";
89
97
  };
90
98
  readonly off_ramp: {
91
99
  readonly code: "off_ramp";
92
100
  readonly line: "stable";
93
101
  readonly category: "conversions";
94
- readonly group: "stablecoin";
95
- readonly groupLabel: "Stablecoin";
102
+ readonly section: "stablecoin";
96
103
  };
97
104
  readonly fedwire: {
98
105
  readonly code: "fedwire";
99
106
  readonly line: "payout";
100
107
  readonly category: "payments";
108
+ readonly section: "usd_global";
101
109
  };
102
110
  readonly global_pay_to_usa: {
103
111
  readonly code: "global_pay_to_usa";
104
112
  readonly line: "cbmm";
105
113
  readonly category: "international";
114
+ readonly section: "corridors";
106
115
  };
107
116
  readonly usa_pay_to_global: {
108
117
  readonly code: "usa_pay_to_global";
109
118
  readonly line: "cbmm";
110
119
  readonly category: "international";
120
+ readonly section: "corridors";
111
121
  };
112
122
  readonly cross_border: {
113
123
  readonly code: "cross_border";
114
124
  readonly line: "cbmm";
115
125
  readonly category: "international";
126
+ readonly section: "corridors";
116
127
  };
117
128
  readonly stable_payout: {
118
129
  readonly code: "stable_payout";
119
130
  readonly line: "stable";
120
131
  readonly category: "conversions";
121
- readonly group: "stablecoin";
122
- readonly groupLabel: "Stablecoin";
132
+ readonly section: "stablecoin";
123
133
  };
124
134
  readonly breb: {
125
135
  readonly code: "breb";
126
136
  readonly line: "payout";
127
137
  readonly category: "payments";
138
+ readonly section: "cop";
128
139
  };
129
140
  readonly global_pay_to_generic: {
130
141
  readonly code: "global_pay_to_generic";
131
142
  readonly line: "payout";
132
143
  readonly category: "payments";
144
+ readonly section: "usd_global";
133
145
  };
134
146
  readonly swift: {
135
147
  readonly code: "swift";
136
148
  readonly line: "payout";
137
149
  readonly category: "payments";
150
+ readonly section: "usd_global";
138
151
  };
139
152
  readonly sepa: {
140
153
  readonly code: "sepa";
141
154
  readonly line: "payout";
142
155
  readonly category: "payments";
156
+ readonly section: "eur";
143
157
  };
144
158
  };
145
159
  export type MovementType = keyof typeof MOVEMENT_TYPES;
146
- export type MovementTypeRecord = (typeof MOVEMENT_TYPES)[MovementType] & {
147
- readonly group?: MovementTypeGroup;
148
- readonly groupLabel?: MovementTypeGroupLabel;
149
- };
160
+ export type MovementTypeRecord = (typeof MOVEMENT_TYPES)[MovementType];
@@ -2,30 +2,30 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MOVEMENT_TYPES = void 0;
4
4
  exports.MOVEMENT_TYPES = {
5
- ach: { code: "ach", line: "payout", category: "payments" },
6
- fast_pay: { code: "fast_pay", line: "payout", category: "payments" },
7
- spei: { code: "spei", line: "payout", category: "payments" },
8
- spei_card: { code: "spei_card", line: "payout", category: "payments" },
9
- spei_return: { code: "spei_return", line: "payout", category: "payments" },
10
- r2p: { code: "r2p", line: "payin", category: "collections" },
11
- r2p_bancolombia: { code: "r2p_bancolombia", line: "payin", category: "collections" },
12
- r2p_nequi: { code: "r2p_nequi", line: "payin", category: "collections" },
13
- r2p_pse: { code: "r2p_pse", line: "payin", category: "collections" },
14
- direct_debit: { code: "direct_debit", line: "payin", category: "collections" },
15
- r2p_breb: { code: "r2p_breb", line: "payin", category: "collections" },
16
- r2p_top_up_pse: { code: "r2p_top_up_pse", line: "payin", category: "top_up" },
17
- r2p_top_up_bancolombia: { code: "r2p_top_up_bancolombia", line: "payin", category: "top_up" },
18
- global: { code: "global", line: "stable", category: "conversions", group: "stablecoin", groupLabel: "Stablecoin" },
19
- r2p_spei: { code: "r2p_spei", line: "payin", category: "collections" },
20
- on_ramp: { code: "on_ramp", line: "stable", category: "conversions", group: "stablecoin", groupLabel: "Stablecoin" },
21
- off_ramp: { code: "off_ramp", line: "stable", category: "conversions", group: "stablecoin", groupLabel: "Stablecoin" },
22
- fedwire: { code: "fedwire", line: "payout", category: "payments" },
23
- global_pay_to_usa: { code: "global_pay_to_usa", line: "cbmm", category: "international" },
24
- usa_pay_to_global: { code: "usa_pay_to_global", line: "cbmm", category: "international" },
25
- cross_border: { code: "cross_border", line: "cbmm", category: "international" },
26
- stable_payout: { code: "stable_payout", line: "stable", category: "conversions", group: "stablecoin", groupLabel: "Stablecoin" },
27
- breb: { code: "breb", line: "payout", category: "payments" },
28
- global_pay_to_generic: { code: "global_pay_to_generic", line: "payout", category: "payments" },
29
- swift: { code: "swift", line: "payout", category: "payments" },
30
- sepa: { code: "sepa", line: "payout", category: "payments" },
5
+ ach: { code: "ach", line: "payout", category: "payments", section: "cop" },
6
+ fast_pay: { code: "fast_pay", line: "payout", category: "payments", section: "cop" },
7
+ spei: { code: "spei", line: "payout", category: "payments", section: "mxn" },
8
+ spei_card: { code: "spei_card", line: "payout", category: "payments", section: "mxn" },
9
+ spei_return: { code: "spei_return", line: "payout", category: "payments", section: "mxn" },
10
+ r2p: { code: "r2p", line: "payin", category: "collections", section: "cop" },
11
+ r2p_bancolombia: { code: "r2p_bancolombia", line: "payin", category: "collections", section: "cop" },
12
+ r2p_nequi: { code: "r2p_nequi", line: "payin", category: "collections", section: "cop" },
13
+ r2p_pse: { code: "r2p_pse", line: "payin", category: "collections", section: "cop" },
14
+ direct_debit: { code: "direct_debit", line: "payin", category: "collections", section: "cop" },
15
+ r2p_breb: { code: "r2p_breb", line: "payin", category: "collections", section: "cop" },
16
+ r2p_top_up_pse: { code: "r2p_top_up_pse", line: "payin", category: "top_up", section: "cop" },
17
+ r2p_top_up_bancolombia: { code: "r2p_top_up_bancolombia", line: "payin", category: "top_up", section: "cop" },
18
+ global: { code: "global", line: "stable", category: "conversions", section: "stablecoin" },
19
+ r2p_spei: { code: "r2p_spei", line: "payin", category: "collections", section: "mxn" },
20
+ on_ramp: { code: "on_ramp", line: "stable", category: "conversions", section: "stablecoin" },
21
+ off_ramp: { code: "off_ramp", line: "stable", category: "conversions", section: "stablecoin" },
22
+ fedwire: { code: "fedwire", line: "payout", category: "payments", section: "usd_global" },
23
+ global_pay_to_usa: { code: "global_pay_to_usa", line: "cbmm", category: "international", section: "corridors" },
24
+ usa_pay_to_global: { code: "usa_pay_to_global", line: "cbmm", category: "international", section: "corridors" },
25
+ cross_border: { code: "cross_border", line: "cbmm", category: "international", section: "corridors" },
26
+ stable_payout: { code: "stable_payout", line: "stable", category: "conversions", section: "stablecoin" },
27
+ breb: { code: "breb", line: "payout", category: "payments", section: "cop" },
28
+ global_pay_to_generic: { code: "global_pay_to_generic", line: "payout", category: "payments", section: "usd_global" },
29
+ swift: { code: "swift", line: "payout", category: "payments", section: "usd_global" },
30
+ sepa: { code: "sepa", line: "payout", category: "payments", section: "eur" },
31
31
  };
@@ -9,12 +9,5 @@ export declare const getMovementTypes: (lang: Locale) => Record<MovementType, Mo
9
9
  export type MovementTypeQuery = CatalogQuery<MovementTypeRecord> & {
10
10
  lang: Locale;
11
11
  };
12
- /**
13
- * The catalog as a list narrowed by the query, each record enriched with its label for `query.lang`.
14
- * Filter by `group`, not `groupLabel` — the label is display text, not a stable filter key.
15
- *
16
- * `group` is optional on the record, so `group: undefined` is a present key like any other — it
17
- * matches the records that don't carry a group, not "no filter". A UI filter fed from an optional
18
- * ref has to be spread in conditionally: `{ lang, ...(group ? { group } : {}) }`.
19
- */
12
+ /** The catalog as a list narrowed by the query, each record enriched with its label for `query.lang`. */
20
13
  export declare const queryMovementTypes: (query: MovementTypeQuery) => MovementTypeOption[];
@@ -18,14 +18,7 @@ const getMovementTypes = (lang) => {
18
18
  return result;
19
19
  };
20
20
  exports.getMovementTypes = getMovementTypes;
21
- /**
22
- * The catalog as a list narrowed by the query, each record enriched with its label for `query.lang`.
23
- * Filter by `group`, not `groupLabel` — the label is display text, not a stable filter key.
24
- *
25
- * `group` is optional on the record, so `group: undefined` is a present key like any other — it
26
- * matches the records that don't carry a group, not "no filter". A UI filter fed from an optional
27
- * ref has to be spread in conditionally: `{ lang, ...(group ? { group } : {}) }`.
28
- */
21
+ /** The catalog as a list narrowed by the query, each record enriched with its label for `query.lang`. */
29
22
  const queryMovementTypes = (query) => {
30
23
  const { lang, ...filters } = query;
31
24
  return Object.values(catalog_1.MOVEMENT_TYPES)
@@ -1,4 +1,3 @@
1
- export type { ClassificationCategory, ClassificationLine } from "../movements/types/catalog";
2
- export type { TransactionType } from "./types/catalog";
1
+ export type { TransactionType, TransactionTypeGroup } from "./types/catalog";
3
2
  export * from "./types/utils/transaction-type.utils";
4
3
  export * from "./interfaces/response.interface";