@nicefer/types 1.0.68 → 1.0.69

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,4 +1,3 @@
1
- import { FieldValue } from "firebase/firestore";
2
1
  import { Country, Region } from "./countries";
3
2
  export interface BranchInDB {
4
3
  id: string;
@@ -10,7 +9,7 @@ export interface BranchInDB {
10
9
  zipcode: number;
11
10
  country: Country;
12
11
  status: 'active' | 'tmpClosed' | 'closed';
13
- createdAt: FieldValue | string;
12
+ createdAt: string;
14
13
  }
15
14
  /**
16
15
  * Enlace de la sucursal en otro documento
@@ -1,6 +1,5 @@
1
1
  import { PaymentIntent } from "@stripe/stripe-js";
2
2
  import { DeliveryMethod, ProductWithVariantInBag } from "./bag";
3
- import { FieldValue, Timestamp } from "firebase/firestore";
4
3
  import { UserAddressInDB } from "./users";
5
4
  import { PaymentInDB } from "./payments";
6
5
  export interface OrderDiscount {
@@ -45,7 +44,7 @@ export interface OrderInDB {
45
44
  discounts?: OrderDiscountApplied[];
46
45
  ccy: PaymentInDB['ccy'];
47
46
  status: 'pending' | 'payment_error' | 'processing' | 'prepared' | 'shipped' | 'delivered' | 'canceled';
48
- orderDate: string | FieldValue | Timestamp;
47
+ orderDate: string;
49
48
  /**
50
49
  * Tiempo de entrega estimada
51
50
  */
@@ -1,4 +1,3 @@
1
- import { FieldValue, Timestamp } from "firebase/firestore";
2
1
  import { Metadata, PaymentIntent } from "@stripe/stripe-js";
3
2
  /**
4
3
  * Payment como está registrado en la base de datos
@@ -37,7 +36,7 @@ export interface PaymentInDB {
37
36
  * Fecha y hora en que se generó la transacción,
38
37
  * igual que `Stripe.PaymentIntent.created`.
39
38
  */
40
- createdAt: Timestamp | FieldValue;
39
+ createdAt: string;
41
40
  }
42
41
  /**
43
42
  * Parámetros que se enviarán al servidor,
@@ -1,4 +1,3 @@
1
- import { FieldValue, Timestamp } from "firebase/firestore";
2
1
  import { ProductVariantInDB } from "./products";
3
2
  import { WarehouseInDB } from "./warehouses";
4
3
  export interface RSupplier {
@@ -21,7 +20,7 @@ export interface RProduct {
21
20
  /**
22
21
  * Fecha de registro de el paquete en el sistema
23
22
  */
24
- createdAt?: string | FieldValue;
23
+ createdAt?: string;
25
24
  /**
26
25
  * Si no tiene rPackageId se considera un
27
26
  * producto de la misma orden pero huérfano
@@ -53,7 +52,7 @@ export interface ROrder {
53
52
  * Moneda siempre será USD
54
53
  */
55
54
  ccy: 'USD';
56
- createdAt: Timestamp | FieldValue;
55
+ createdAt: string;
57
56
  }
58
57
  export interface RPackageHistory {
59
58
  title: string;
@@ -96,5 +95,5 @@ export interface RPackage {
96
95
  /**
97
96
  * Fecha de registro de el paquete en el sistema
98
97
  */
99
- createdAt: string | FieldValue;
98
+ createdAt: string;
100
99
  }
@@ -1,4 +1,3 @@
1
- import { FieldValue, Timestamp } from "firebase/firestore";
2
1
  import { Country } from "./countries";
3
2
  export interface User {
4
3
  uid: string;
@@ -8,8 +7,8 @@ export interface User {
8
7
  userDevices?: UserDevice[];
9
8
  phoneNumber?: string;
10
9
  photoURL?: string;
11
- createdAt: Timestamp | FieldValue;
12
- updatedAt?: Timestamp | FieldValue;
10
+ createdAt: string;
11
+ updatedAt?: string;
13
12
  }
14
13
  export interface UserDevice {
15
14
  id: string;
@@ -47,7 +46,7 @@ export interface UserDevice {
47
46
  */
48
47
  appVersion: string;
49
48
  appBuild: string;
50
- lastLogin: Timestamp | FieldValue;
49
+ lastLogin: string;
51
50
  ipSecurity?: {
52
51
  ip: string;
53
52
  type: 'IPv4' | 'IPv6';
@@ -75,5 +74,5 @@ export interface UserSearch {
75
74
  uid?: string;
76
75
  k: string;
77
76
  tags: string[];
78
- createdAt: FieldValue | Timestamp;
77
+ createdAt: string;
79
78
  }
@@ -1,4 +1,3 @@
1
- import { FieldValue } from "firebase/firestore";
2
1
  import { Country, Region } from "./countries";
3
2
  export interface WarehouseInDB {
4
3
  id?: string;
@@ -10,5 +9,5 @@ export interface WarehouseInDB {
10
9
  zipcode: number;
11
10
  country: Country;
12
11
  status: 'active' | 'tmpClosed' | 'closed';
13
- createdAt: FieldValue | string;
12
+ createdAt: string;
14
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicefer/types",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "Tipos compartidos para Nicefer",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -25,12 +25,10 @@
25
25
  "type": "commonjs",
26
26
  "devDependencies": {
27
27
  "@stripe/stripe-js": "^7.8.0",
28
- "typescript": "^5.9.2",
29
- "firebase": "^12.2.1"
28
+ "typescript": "^5.9.2"
30
29
  },
31
30
  "peerDependencies": {
32
- "@stripe/stripe-js": "^7.8.0",
33
- "firebase": "^12.2.1"
31
+ "@stripe/stripe-js": "^7.8.0"
34
32
  },
35
33
  "publishConfig": {
36
34
  "access": "public"