@voyantjs/finance 0.3.0 → 0.4.0

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.
Files changed (43) hide show
  1. package/dist/index.d.ts +18 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +25 -5
  4. package/dist/routes-documents.d.ts +159 -0
  5. package/dist/routes-documents.d.ts.map +1 -0
  6. package/dist/routes-documents.js +35 -0
  7. package/dist/routes-public.d.ts +517 -0
  8. package/dist/routes-public.d.ts.map +1 -0
  9. package/dist/routes-public.js +60 -0
  10. package/dist/routes-settlement.d.ts +63 -0
  11. package/dist/routes-settlement.d.ts.map +1 -0
  12. package/dist/routes-settlement.js +18 -0
  13. package/dist/routes-shared.d.ts +12 -0
  14. package/dist/routes-shared.d.ts.map +1 -0
  15. package/dist/routes-shared.js +3 -0
  16. package/dist/routes.d.ts +207 -161
  17. package/dist/routes.d.ts.map +1 -1
  18. package/dist/routes.js +40 -1
  19. package/dist/schema.d.ts +17 -17
  20. package/dist/service-documents.d.ts +67 -0
  21. package/dist/service-documents.d.ts.map +1 -0
  22. package/dist/service-documents.js +226 -0
  23. package/dist/service-public.d.ts +251 -0
  24. package/dist/service-public.d.ts.map +1 -0
  25. package/dist/service-public.js +418 -0
  26. package/dist/service-settlement.d.ts +36 -0
  27. package/dist/service-settlement.d.ts.map +1 -0
  28. package/dist/service-settlement.js +172 -0
  29. package/dist/service.d.ts +175 -181
  30. package/dist/service.d.ts.map +1 -1
  31. package/dist/service.js +54 -67
  32. package/dist/validation-billing.d.ts +119 -9
  33. package/dist/validation-billing.d.ts.map +1 -1
  34. package/dist/validation-billing.js +54 -1
  35. package/dist/validation-payments.d.ts +83 -83
  36. package/dist/validation-public.d.ts +443 -0
  37. package/dist/validation-public.d.ts.map +1 -0
  38. package/dist/validation-public.js +183 -0
  39. package/dist/validation-shared.d.ts +24 -24
  40. package/dist/validation.d.ts +1 -0
  41. package/dist/validation.d.ts.map +1 -1
  42. package/dist/validation.js +1 -0
  43. package/package.json +15 -5
@@ -8,31 +8,31 @@ export declare const invoiceStatusSchema: z.ZodEnum<{
8
8
  void: "void";
9
9
  }>;
10
10
  export declare const paymentMethodSchema: z.ZodEnum<{
11
+ other: "other";
12
+ voucher: "voucher";
13
+ wallet: "wallet";
11
14
  bank_transfer: "bank_transfer";
12
15
  credit_card: "credit_card";
13
16
  debit_card: "debit_card";
14
17
  cash: "cash";
15
18
  cheque: "cheque";
16
- wallet: "wallet";
17
19
  direct_bill: "direct_bill";
18
- voucher: "voucher";
19
- other: "other";
20
20
  }>;
21
21
  export declare const paymentStatusSchema: z.ZodEnum<{
22
- pending: "pending";
23
22
  completed: "completed";
23
+ pending: "pending";
24
24
  failed: "failed";
25
25
  refunded: "refunded";
26
26
  }>;
27
27
  export declare const paymentSessionStatusSchema: z.ZodEnum<{
28
- paid: "paid";
28
+ expired: "expired";
29
+ cancelled: "cancelled";
29
30
  pending: "pending";
30
31
  failed: "failed";
32
+ paid: "paid";
31
33
  requires_redirect: "requires_redirect";
32
34
  processing: "processing";
33
35
  authorized: "authorized";
34
- cancelled: "cancelled";
35
- expired: "expired";
36
36
  }>;
37
37
  export declare const paymentSessionTargetTypeSchema: z.ZodEnum<{
38
38
  other: "other";
@@ -43,13 +43,13 @@ export declare const paymentSessionTargetTypeSchema: z.ZodEnum<{
43
43
  booking_guarantee: "booking_guarantee";
44
44
  }>;
45
45
  export declare const paymentInstrumentTypeSchema: z.ZodEnum<{
46
+ other: "other";
47
+ voucher: "voucher";
48
+ wallet: "wallet";
46
49
  credit_card: "credit_card";
47
50
  debit_card: "debit_card";
48
51
  cash: "cash";
49
- wallet: "wallet";
50
52
  direct_bill: "direct_bill";
51
- voucher: "voucher";
52
- other: "other";
53
53
  bank_account: "bank_account";
54
54
  }>;
55
55
  export declare const paymentInstrumentOwnerTypeSchema: z.ZodEnum<{
@@ -62,30 +62,30 @@ export declare const paymentInstrumentOwnerTypeSchema: z.ZodEnum<{
62
62
  }>;
63
63
  export declare const paymentInstrumentStatusSchema: z.ZodEnum<{
64
64
  expired: "expired";
65
+ revoked: "revoked";
65
66
  active: "active";
66
67
  inactive: "inactive";
67
- revoked: "revoked";
68
68
  failed_verification: "failed_verification";
69
69
  }>;
70
70
  export declare const paymentAuthorizationStatusSchema: z.ZodEnum<{
71
+ expired: "expired";
71
72
  pending: "pending";
72
73
  failed: "failed";
73
74
  authorized: "authorized";
74
- expired: "expired";
75
75
  partially_captured: "partially_captured";
76
76
  captured: "captured";
77
77
  voided: "voided";
78
78
  }>;
79
79
  export declare const paymentCaptureStatusSchema: z.ZodEnum<{
80
- pending: "pending";
81
80
  completed: "completed";
81
+ pending: "pending";
82
82
  failed: "failed";
83
83
  refunded: "refunded";
84
84
  voided: "voided";
85
85
  }>;
86
86
  export declare const captureModeSchema: z.ZodEnum<{
87
- automatic: "automatic";
88
87
  manual: "manual";
88
+ automatic: "automatic";
89
89
  }>;
90
90
  export declare const creditNoteStatusSchema: z.ZodEnum<{
91
91
  draft: "draft";
@@ -100,30 +100,30 @@ export declare const paymentScheduleTypeSchema: z.ZodEnum<{
100
100
  hold: "hold";
101
101
  }>;
102
102
  export declare const paymentScheduleStatusSchema: z.ZodEnum<{
103
- paid: "paid";
104
- pending: "pending";
105
- cancelled: "cancelled";
106
103
  expired: "expired";
104
+ cancelled: "cancelled";
105
+ pending: "pending";
106
+ paid: "paid";
107
107
  due: "due";
108
108
  waived: "waived";
109
109
  }>;
110
110
  export declare const guaranteeTypeSchema: z.ZodEnum<{
111
+ other: "other";
112
+ voucher: "voucher";
111
113
  bank_transfer: "bank_transfer";
112
114
  credit_card: "credit_card";
113
- voucher: "voucher";
114
- other: "other";
115
115
  deposit: "deposit";
116
116
  preauth: "preauth";
117
117
  card_on_file: "card_on_file";
118
118
  agency_letter: "agency_letter";
119
119
  }>;
120
120
  export declare const guaranteeStatusSchema: z.ZodEnum<{
121
+ expired: "expired";
122
+ cancelled: "cancelled";
121
123
  pending: "pending";
124
+ released: "released";
122
125
  failed: "failed";
123
- cancelled: "cancelled";
124
- expired: "expired";
125
126
  active: "active";
126
- released: "released";
127
127
  }>;
128
128
  export declare const taxScopeSchema: z.ZodEnum<{
129
129
  included: "included";
@@ -134,9 +134,9 @@ export declare const commissionRecipientTypeSchema: z.ZodEnum<{
134
134
  internal: "internal";
135
135
  supplier: "supplier";
136
136
  other: "other";
137
+ affiliate: "affiliate";
137
138
  channel: "channel";
138
139
  agency: "agency";
139
- affiliate: "affiliate";
140
140
  agent: "agent";
141
141
  }>;
142
142
  export declare const commissionModelSchema: z.ZodEnum<{
@@ -146,9 +146,9 @@ export declare const commissionModelSchema: z.ZodEnum<{
146
146
  net: "net";
147
147
  }>;
148
148
  export declare const commissionStatusSchema: z.ZodEnum<{
149
+ pending: "pending";
149
150
  paid: "paid";
150
151
  void: "void";
151
- pending: "pending";
152
152
  accrued: "accrued";
153
153
  payable: "payable";
154
154
  }>;
@@ -1,4 +1,5 @@
1
1
  export * from "./validation-billing.js";
2
2
  export * from "./validation-payments.js";
3
+ export * from "./validation-public.js";
3
4
  export * from "./validation-shared.js";
4
5
  //# sourceMappingURL=validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA"}
@@ -1,3 +1,4 @@
1
1
  export * from "./validation-billing.js";
2
2
  export * from "./validation-payments.js";
3
+ export * from "./validation-public.js";
3
4
  export * from "./validation-shared.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/finance",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -19,16 +19,26 @@
19
19
  "./routes": {
20
20
  "types": "./dist/routes.d.ts",
21
21
  "import": "./dist/routes.js"
22
+ },
23
+ "./public-routes": {
24
+ "types": "./dist/routes-public.d.ts",
25
+ "import": "./dist/routes-public.js"
26
+ },
27
+ "./public-validation": {
28
+ "types": "./dist/validation-public.d.ts",
29
+ "import": "./dist/validation-public.js"
22
30
  }
23
31
  },
24
32
  "dependencies": {
25
33
  "drizzle-orm": "^0.45.2",
26
34
  "hono": "^4.12.10",
27
35
  "zod": "^4.3.6",
28
- "@voyantjs/bookings": "0.3.0",
29
- "@voyantjs/core": "0.3.0",
30
- "@voyantjs/db": "0.3.0",
31
- "@voyantjs/hono": "0.3.0"
36
+ "@voyantjs/bookings": "0.4.0",
37
+ "@voyantjs/core": "0.4.0",
38
+ "@voyantjs/db": "0.4.0",
39
+ "@voyantjs/hono": "0.4.0",
40
+ "@voyantjs/utils": "0.4.0",
41
+ "@voyantjs/voyant-storage": "0.4.0"
32
42
  },
33
43
  "devDependencies": {
34
44
  "typescript": "^6.0.2",