sinfactura-types 0.0.7 → 0.0.9

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/auth.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ declare global {
2
+ interface Login {
3
+ email: string;
4
+ password: string;
5
+ }
6
+ interface Social {
7
+ accessToken?: string;
8
+ }
9
+ interface Register {
10
+ email: string;
11
+ password: string;
12
+ cuit?: number;
13
+ fullName: string;
14
+ phone?: number;
15
+ }
16
+ interface Recover {
17
+ email: string;
18
+ }
19
+ }
20
+ export {};
@@ -43,5 +43,9 @@ declare global {
43
43
  dated: number;
44
44
  name: string;
45
45
  }
46
+ interface AuthCustomer extends Customer {
47
+ accessToken: string;
48
+ refreshToken: string;
49
+ }
46
50
  }
47
51
  export {};
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './account';
2
2
  export * from './afip';
3
3
  export * from './api';
4
+ export * from './auth';
4
5
  export * from './basket';
5
6
  export * from './cash';
6
7
  export * from './customer';
package/dist/invoice.d.ts CHANGED
@@ -3,6 +3,7 @@ declare global {
3
3
  storeId: string;
4
4
  invoiceId: string;
5
5
  customerId: string;
6
+ orderId: string;
6
7
  createdAt: number;
7
8
  dated: number;
8
9
  invoiceType: number;
@@ -14,22 +15,20 @@ declare global {
14
15
  concept: number;
15
16
  cuitType: number;
16
17
  cuit: number;
17
- currency: 'PES' | 'DOL';
18
+ currency?: 'PES' | 'DOL';
18
19
  currencyValue?: number;
19
20
  fiscalCondition: string;
20
21
  paymentCondition: string;
21
- deliveryContition: string;
22
+ deliveryCondition: string;
22
23
  items: InvoiceItem[];
23
- neto: number;
24
24
  neto10: number;
25
25
  neto21: number;
26
26
  iva10: number;
27
27
  iva21: number;
28
- iva: number;
29
28
  total: number;
30
- dolar: number;
31
29
  cae: string;
32
30
  caeExpiration: string;
31
+ observations?: string;
33
32
  }
34
33
  interface InvoiceItem {
35
34
  code: string;
@@ -38,5 +37,26 @@ declare global {
38
37
  iva: number;
39
38
  neto: number;
40
39
  }
40
+ interface InvoiceWithCustomer extends Invoice {
41
+ customer: Customer;
42
+ }
43
+ interface ResponseMakeAfip {
44
+ cae: string;
45
+ caeExpiration: string;
46
+ invoiceNumber: number;
47
+ fiscalCondition: FiscalCondition;
48
+ netos: Neto;
49
+ ivaTypes: Method[];
50
+ currency: 'PES' | 'DOL';
51
+ currencyValue: number;
52
+ total: number;
53
+ observations?: string;
54
+ invoiceType: number;
55
+ }
56
+ type Neto = Record<string, {
57
+ Id: number;
58
+ BaseImp: number;
59
+ Importe: number;
60
+ }>;
41
61
  }
42
62
  export {};
package/dist/user.d.ts CHANGED
@@ -38,7 +38,7 @@ declare global {
38
38
  interface UserGoogle extends User {
39
39
  displayName: string;
40
40
  }
41
- interface Auth extends User {
41
+ interface AuthUser extends User {
42
42
  refreshToken: string;
43
43
  }
44
44
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
3
  "private": false,
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "type": "module",
6
- "main": "index.ts",
6
+ "main": "dist/index.d.ts",
7
7
  "keywords": [
8
8
  "typescript",
9
9
  "dev",
@@ -29,6 +29,7 @@
29
29
  "peerDependencies": {},
30
30
  "author": "Moises Samuel Maison Maison",
31
31
  "types": "dist/index.d.ts",
32
+ "typings": "dist/index.d.ts",
32
33
  "devDependencies": {
33
34
  "typescript": "^5.3.3"
34
35
  }