@nicefer/types 2.0.9 → 2.0.10
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/types/api.d.ts
CHANGED
package/dist/types/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/types/api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,MAAM,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/types/api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IACpD,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb"}
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import { PaymentIntent } from "@stripe/stripe-js";
|
|
2
2
|
export type Currency = 'HNL' | 'EUR' | 'USD';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Representa los posibles estados de una donación dentro de su ciclo de vida.
|
|
5
|
+
*
|
|
6
|
+
* Estados posibles:
|
|
7
|
+
* - **pending_pay** → El donante inició el proceso de pago, pero aún no se confirma.
|
|
8
|
+
* - **pending** → Donación registrada, en espera de procesamiento o validación.
|
|
9
|
+
* - **payment_error** → Ocurrió un error durante el intento de pago.
|
|
10
|
+
* - **processing** → La donación está siendo procesada o verificada.
|
|
11
|
+
* - **resolve** → Donación completada con éxito; los fondos han sido confirmados.
|
|
12
|
+
* - **rejected** → La donación fue rechazada por el sistema o la pasarela de pago.
|
|
13
|
+
* - **expired** → El tiempo límite para completar la donación ha caducado.
|
|
14
|
+
* - **used** → La donación comenzó a ser usada.
|
|
15
|
+
* - **fully_used** → La donación ha sido usada por completo.
|
|
16
|
+
*
|
|
17
|
+
* Este tipo permite un control ordenado y claro del flujo energético
|
|
18
|
+
* y transaccional de las donaciones dentro del sistema.
|
|
19
|
+
*/
|
|
20
|
+
export type DonationStatus = 'pending_pay' | 'pending' | 'payment_error' | 'processing' | 'resolve' | 'rejected' | 'expired' | 'used' | 'fully_used';
|
|
4
21
|
/**
|
|
5
22
|
* Tipos de donaciones usadas en el radar
|
|
6
23
|
*
|
|
@@ -38,7 +55,7 @@ export interface Movement {
|
|
|
38
55
|
* - `event`: Evento
|
|
39
56
|
* - `operating_expenses`: Gastos operativos
|
|
40
57
|
*/
|
|
41
|
-
usedIn
|
|
58
|
+
usedIn?: UsedIn;
|
|
42
59
|
icon: 'ok' | 'error' | 'info' | 'waiting';
|
|
43
60
|
type: FlowType;
|
|
44
61
|
/**
|
|
@@ -76,9 +93,11 @@ export interface Donation {
|
|
|
76
93
|
score: number;
|
|
77
94
|
level: string;
|
|
78
95
|
};
|
|
96
|
+
amountInHNLUsed?: number;
|
|
79
97
|
radar?: {
|
|
80
98
|
[movementId: string]: Movement;
|
|
81
99
|
};
|
|
100
|
+
tags: string[];
|
|
82
101
|
createdAt?: string;
|
|
83
102
|
}
|
|
84
103
|
//# sourceMappingURL=radar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radar.d.ts","sourceRoot":"","sources":["../../src/types-org/radar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"radar.d.ts","sourceRoot":"","sources":["../../src/types-org/radar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,MAAM,QAAQ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