ravcredit-core 0.0.2 → 0.0.4

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 ADDED
@@ -0,0 +1,30 @@
1
+ # ravcredit-core
2
+
3
+ Core TypeScript library for front-end development.
4
+
5
+ This package centralizes **base objects**, **constants**, and **enums** used across Ravcredit front-end projects, so apps can share the same data models and avoid duplicating definitions.
6
+
7
+ ## What’s inside
8
+
9
+ - **Base objects / DTO-like models** (typed object structures used by apps)
10
+ - **Constants & messages** (shared literals, keys, and text)
11
+ - **Enums** (shared status/types used across the UI and API integration)
12
+ - Versioned modules:
13
+ - `src/lib/v1/*`
14
+ - `src/lib/v2/*`
15
+
16
+ ## Project structure (high level)
17
+
18
+ - `src/index.ts` — library entry point (public exports)
19
+ - `src/lib/v1/` — legacy / v1 contracts (constants + objects)
20
+ - `src/lib/v2/` — current / v2 contracts (constants, enums, objects, utils)
21
+ - `dist/` — build output (generated)
22
+
23
+ ## Requirements
24
+
25
+ - Node.js (LTS recommended)
26
+ - npm
27
+
28
+ ## Install
29
+
30
+ ### As a dependency (recommended for app projects)
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export * from "./lib/v2/constant/cDashboard.js";
20
20
  export * from "./lib/v2/constant/cDynamic.js";
21
21
  export * from "./lib/v2/constant/constants.js";
22
22
  export * from "./lib/v2/constant/messages.js";
23
+ export * from "./lib/v2/enum/EnumAmortization.js";
23
24
  export * from "./lib/v2/enum/EnumAsset.js";
24
25
  export * from "./lib/v2/enum/EnumAuth.js";
25
26
  export * from "./lib/v2/enum/EnumClient.js";
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ export * from "./lib/v2/constant/cDynamic.js";
24
24
  export * from "./lib/v2/constant/constants.js";
25
25
  export * from "./lib/v2/constant/messages.js";
26
26
  // V2: ENUM
27
+ export * from "./lib/v2/enum/EnumAmortization.js";
27
28
  export * from "./lib/v2/enum/EnumAsset.js";
28
29
  export * from "./lib/v2/enum/EnumAuth.js";
29
30
  export * from "./lib/v2/enum/EnumClient.js";
@@ -0,0 +1,6 @@
1
+ export declare enum AmortizationStatus {
2
+ PENDING = "PENDING",
3
+ PAID = "PAID",
4
+ PARTIALLY_PAID = "PARTIALLY_PAID",
5
+ OVERDUE = "OVERDUE"
6
+ }
@@ -0,0 +1,7 @@
1
+ export var AmortizationStatus;
2
+ (function (AmortizationStatus) {
3
+ AmortizationStatus["PENDING"] = "PENDING";
4
+ AmortizationStatus["PAID"] = "PAID";
5
+ AmortizationStatus["PARTIALLY_PAID"] = "PARTIALLY_PAID";
6
+ AmortizationStatus["OVERDUE"] = "OVERDUE";
7
+ })(AmortizationStatus || (AmortizationStatus = {}));
@@ -11,3 +11,8 @@ export declare enum eConektaOrderStatus {
11
11
  paid = "paid",
12
12
  pending_payment = "pending_payment"
13
13
  }
14
+ export declare enum ePaymentType {
15
+ OXXO = "OXXO",
16
+ ALTERNA = "ALTERNA",
17
+ OXXO_RECURRENT = "oxxo_recurrent"
18
+ }
@@ -13,6 +13,12 @@ export var eConektaOrderStatus;
13
13
  eConektaOrderStatus["paid"] = "paid";
14
14
  eConektaOrderStatus["pending_payment"] = "pending_payment";
15
15
  })(eConektaOrderStatus || (eConektaOrderStatus = {}));
16
+ export var ePaymentType;
17
+ (function (ePaymentType) {
18
+ ePaymentType["OXXO"] = "OXXO";
19
+ ePaymentType["ALTERNA"] = "ALTERNA";
20
+ ePaymentType["OXXO_RECURRENT"] = "oxxo_recurrent";
21
+ })(ePaymentType || (ePaymentType = {}));
16
22
  // export enum eConektaOrderType {
17
23
  // REFERENCE = "REFERENCE",
18
24
  // SPEI = "SPEI",
@@ -1,9 +1,4 @@
1
- export declare enum AmortizationStatus {
2
- PENDING = "PENDING",
3
- PAID = "PAID",
4
- PARTIALLY_PAID = "PARTIALLY_PAID",
5
- OVERDUE = "OVERDUE"
6
- }
1
+ import { AmortizationStatus } from "../enum/EnumAmortization.js";
7
2
  export interface AmortizationItem {
8
3
  installmentNumber: number;
9
4
  id: string;
@@ -1,7 +1 @@
1
- export var AmortizationStatus;
2
- (function (AmortizationStatus) {
3
- AmortizationStatus["PENDING"] = "PENDING";
4
- AmortizationStatus["PAID"] = "PAID";
5
- AmortizationStatus["PARTIALLY_PAID"] = "PARTIALLY_PAID";
6
- AmortizationStatus["OVERDUE"] = "OVERDUE";
7
- })(AmortizationStatus || (AmortizationStatus = {}));
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ravcredit-core",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {