@nicefer/types 1.0.146 → 1.0.148

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.
@@ -1,17 +1,19 @@
1
1
  import { PaymentIntent } from "@stripe/stripe-js";
2
2
  export type Currency = 'HNL' | 'EUR' | 'USD';
3
3
  export type DonationStatus = 'pending_pay' | 'pending' | 'payment_error' | 'processing' | 'resolve' | 'rejected' | 'expired' | 'used';
4
- export type ItemType = 'none' | 'event' | 'operating_expenses' | 'reversed';
4
+ export type RadarType = null | 'event' | 'operating_expenses' | 'reversed';
5
5
  export interface RadarItem {
6
6
  id: string;
7
7
  title: string;
8
8
  desc?: string;
9
9
  /**
10
+ * null: No se usó nada en este item, solo es un registro.
11
+ * Por lo tanto {@link amountUsed} será 0.
10
12
  * 'event': Evento
11
13
  * 'operating_expenses': Gastos operativos
12
14
  * 'reversed': Reversión de fondos
13
15
  */
14
- type: 'none' | 'event' | 'operating_expenses' | 'reversed';
16
+ type: RadarType;
15
17
  icon: 'ok' | 'error' | 'waiting';
16
18
  amountUsed: number;
17
19
  createdAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicefer/types",
3
- "version": "1.0.146",
3
+ "version": "1.0.148",
4
4
  "description": "Tipos compartidos para Nicefer",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",