@voyantjs/finance 0.53.0 → 0.53.2

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.
@@ -31,7 +31,7 @@ export declare const financeActionLedgerRoutes: import("hono/hono-base").HonoBas
31
31
  id: string;
32
32
  actionName: string;
33
33
  actionVersion: string;
34
- actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
34
+ actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
35
35
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
36
36
  evaluatedRisk: "low" | "medium" | "high" | "critical";
37
37
  actorType: string | null;
@@ -100,7 +100,7 @@ export declare const financeActionLedgerRoutes: import("hono/hono-base").HonoBas
100
100
  id: string;
101
101
  actionName: string;
102
102
  actionVersion: string;
103
- actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
103
+ actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
104
104
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
105
105
  evaluatedRisk: "low" | "medium" | "high" | "critical";
106
106
  actorType: string | null;
package/dist/routes.d.ts CHANGED
@@ -1858,8 +1858,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
1858
1858
  };
1859
1859
  output: {
1860
1860
  data: {
1861
- name: string;
1862
1861
  id: string;
1862
+ name: string;
1863
1863
  createdAt: string;
1864
1864
  code: string | null;
1865
1865
  currency: string;
@@ -2797,8 +2797,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
2797
2797
  output: {
2798
2798
  data: {
2799
2799
  id: string;
2800
- description: string;
2801
2800
  createdAt: string;
2801
+ description: string;
2802
2802
  totalCents: number;
2803
2803
  invoiceId: string;
2804
2804
  bookingItemId: string | null;
@@ -3140,8 +3140,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3140
3140
  output: {
3141
3141
  data: {
3142
3142
  id: string;
3143
- description: string;
3144
3143
  createdAt: string;
3144
+ description: string;
3145
3145
  totalCents: number;
3146
3146
  sortOrder: number;
3147
3147
  quantity: number;
@@ -3240,8 +3240,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3240
3240
  input: {};
3241
3241
  output: {
3242
3242
  data: {
3243
- name: string;
3244
3243
  id: string;
3244
+ name: string;
3245
3245
  createdAt: string;
3246
3246
  active: boolean;
3247
3247
  code: string;
@@ -3439,8 +3439,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3439
3439
  input: {};
3440
3440
  output: {
3441
3441
  data: {
3442
- name: string;
3443
3442
  id: string;
3443
+ name: string;
3444
3444
  createdAt: string;
3445
3445
  active: boolean;
3446
3446
  updatedAt: string;
@@ -3596,10 +3596,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3596
3596
  input: {};
3597
3597
  output: {
3598
3598
  data: {
3599
- name: string;
3600
3599
  id: string;
3601
- description: string | null;
3600
+ name: string;
3602
3601
  createdAt: string;
3602
+ description: string | null;
3603
3603
  active: boolean;
3604
3604
  code: "other" | "standard" | "reduced" | "exempt" | "reverse_charge" | "margin_scheme_art311" | "zero_rated" | "out_of_scope";
3605
3605
  updatedAt: string;
@@ -3749,8 +3749,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3749
3749
  output: {
3750
3750
  data: {
3751
3751
  id: string;
3752
- description: string | null;
3753
3752
  createdAt: string;
3753
+ description: string | null;
3754
3754
  active: boolean;
3755
3755
  code: string;
3756
3756
  updatedAt: string;
@@ -3899,10 +3899,10 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
3899
3899
  input: {};
3900
3900
  output: {
3901
3901
  data: {
3902
- name: string;
3903
3902
  id: string;
3904
- description: string | null;
3903
+ name: string;
3905
3904
  createdAt: string;
3905
+ description: string | null;
3906
3906
  active: boolean;
3907
3907
  code: string;
3908
3908
  updatedAt: string;
@@ -4043,8 +4043,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4043
4043
  input: {};
4044
4044
  output: {
4045
4045
  data: {
4046
- name: string;
4047
4046
  id: string;
4047
+ name: string;
4048
4048
  createdAt: string;
4049
4049
  active: boolean;
4050
4050
  updatedAt: string;
@@ -4245,8 +4245,8 @@ export declare const financeRoutes: import("hono/hono-base").HonoBase<Env, {
4245
4245
  };
4246
4246
  output: {
4247
4247
  data: {
4248
- name: string;
4249
4248
  id: string;
4249
+ name: string;
4250
4250
  createdAt: string;
4251
4251
  metadata: import("hono/utils/types").JSONValue;
4252
4252
  invoiceId: string;
package/dist/service.d.ts CHANGED
@@ -2799,8 +2799,8 @@ export declare const financeService: {
2799
2799
  }, {}, {}>;
2800
2800
  }>, "where" | "orderBy">;
2801
2801
  createBookingItemTaxLine(db: PostgresJsDatabase, bookingItemId: string, data: CreateBookingItemTaxLineInput): Promise<{
2802
- name: string;
2803
2802
  id: string;
2803
+ name: string;
2804
2804
  createdAt: Date;
2805
2805
  code: string | null;
2806
2806
  currency: string;
@@ -4000,8 +4000,8 @@ export declare const financeService: {
4000
4000
  }>, "where" | "orderBy">;
4001
4001
  createInvoiceLineItem(db: PostgresJsDatabase, invoiceId: string, data: CreateInvoiceLineItemInput, runtime?: FinanceServiceRuntime): Promise<{
4002
4002
  id: string;
4003
- description: string;
4004
4003
  createdAt: Date;
4004
+ description: string;
4005
4005
  totalCents: number;
4006
4006
  invoiceId: string;
4007
4007
  bookingItemId: string | null;
@@ -4024,8 +4024,8 @@ export declare const financeService: {
4024
4024
  } | null>;
4025
4025
  deleteInvoiceLineItem(db: PostgresJsDatabase, lineId: string, runtime?: FinanceServiceRuntime): Promise<{
4026
4026
  id: string;
4027
- description: string;
4028
4027
  createdAt: Date;
4028
+ description: string;
4029
4029
  totalCents: number;
4030
4030
  invoiceId: string;
4031
4031
  bookingItemId: string | null;
@@ -5440,8 +5440,8 @@ export declare const financeService: {
5440
5440
  }>, "where" | "orderBy">;
5441
5441
  createCreditNoteLineItem(db: PostgresJsDatabase, creditNoteId: string, data: CreateCreditNoteLineItemInput, runtime?: FinanceServiceRuntime): Promise<{
5442
5442
  id: string;
5443
- description: string;
5444
5443
  createdAt: Date;
5444
+ description: string;
5445
5445
  totalCents: number;
5446
5446
  sortOrder: number;
5447
5447
  quantity: number;
@@ -5670,8 +5670,8 @@ export declare const financeService: {
5670
5670
  updatedAt: Date;
5671
5671
  } | null>;
5672
5672
  createInvoiceNumberSeries(db: PostgresJsDatabase, data: CreateInvoiceNumberSeriesInput): Promise<{
5673
- name: string;
5674
5673
  id: string;
5674
+ name: string;
5675
5675
  createdAt: Date;
5676
5676
  active: boolean;
5677
5677
  code: string;
@@ -5760,8 +5760,8 @@ export declare const financeService: {
5760
5760
  updatedAt: Date;
5761
5761
  } | null>;
5762
5762
  createInvoiceTemplate(db: PostgresJsDatabase, data: CreateInvoiceTemplateInput): Promise<{
5763
- name: string;
5764
5763
  id: string;
5764
+ name: string;
5765
5765
  createdAt: Date;
5766
5766
  active: boolean;
5767
5767
  updatedAt: Date;
@@ -5912,8 +5912,8 @@ export declare const financeService: {
5912
5912
  createdAt: Date;
5913
5913
  } | null>;
5914
5914
  createInvoiceAttachment(db: PostgresJsDatabase, invoiceId: string, data: CreateInvoiceAttachmentInput): Promise<{
5915
- name: string;
5916
5915
  id: string;
5916
+ name: string;
5917
5917
  createdAt: Date;
5918
5918
  metadata: unknown;
5919
5919
  invoiceId: string;
@@ -5998,10 +5998,10 @@ export declare const financeService: {
5998
5998
  updatedAt: Date;
5999
5999
  } | null>;
6000
6000
  createTaxRegime(db: PostgresJsDatabase, data: CreateTaxRegimeInput): Promise<{
6001
- name: string;
6002
6001
  id: string;
6003
- description: string | null;
6002
+ name: string;
6004
6003
  createdAt: Date;
6004
+ description: string | null;
6005
6005
  active: boolean;
6006
6006
  code: "other" | "standard" | "reduced" | "exempt" | "reverse_charge" | "margin_scheme_art311" | "zero_rated" | "out_of_scope";
6007
6007
  updatedAt: Date;
@@ -6061,8 +6061,8 @@ export declare const financeService: {
6061
6061
  } | null>;
6062
6062
  createTaxClass(db: PostgresJsDatabase, data: CreateTaxClassInput): Promise<{
6063
6063
  id: string;
6064
- description: string | null;
6065
6064
  createdAt: Date;
6065
+ description: string | null;
6066
6066
  active: boolean;
6067
6067
  code: string;
6068
6068
  updatedAt: Date;
@@ -6116,10 +6116,10 @@ export declare const financeService: {
6116
6116
  updatedAt: Date;
6117
6117
  } | null>;
6118
6118
  createTaxPolicyProfile(db: PostgresJsDatabase, data: CreateTaxPolicyProfileInput): Promise<{
6119
- name: string;
6120
6119
  id: string;
6121
- description: string | null;
6120
+ name: string;
6122
6121
  createdAt: Date;
6122
+ description: string | null;
6123
6123
  active: boolean;
6124
6124
  code: string;
6125
6125
  updatedAt: Date;
@@ -6170,8 +6170,8 @@ export declare const financeService: {
6170
6170
  updatedAt: Date;
6171
6171
  } | null>;
6172
6172
  createTaxPolicyRule(db: PostgresJsDatabase, data: CreateTaxPolicyRuleInput): Promise<{
6173
- name: string;
6174
6173
  id: string;
6174
+ name: string;
6175
6175
  createdAt: Date;
6176
6176
  active: boolean;
6177
6177
  updatedAt: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/finance",
3
- "version": "0.53.0",
3
+ "version": "0.53.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -44,13 +44,13 @@
44
44
  "drizzle-orm": "^0.45.2",
45
45
  "hono": "^4.12.10",
46
46
  "zod": "^4.3.6",
47
- "@voyantjs/action-ledger": "0.53.0",
48
- "@voyantjs/bookings": "0.53.0",
49
- "@voyantjs/core": "0.53.0",
50
- "@voyantjs/db": "0.53.0",
51
- "@voyantjs/hono": "0.53.0",
52
- "@voyantjs/utils": "0.53.0",
53
- "@voyantjs/storage": "0.53.0"
47
+ "@voyantjs/action-ledger": "0.53.2",
48
+ "@voyantjs/bookings": "0.53.2",
49
+ "@voyantjs/core": "0.53.2",
50
+ "@voyantjs/db": "0.53.2",
51
+ "@voyantjs/hono": "0.53.2",
52
+ "@voyantjs/utils": "0.53.2",
53
+ "@voyantjs/storage": "0.53.2"
54
54
  },
55
55
  "devDependencies": {
56
56
  "typescript": "^6.0.2",