autumn-js 1.3.17 → 1.3.19

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 (67) hide show
  1. package/dist/backend/adapters/express.js +8 -0
  2. package/dist/backend/adapters/express.mjs +5 -5
  3. package/dist/backend/adapters/fetch.js +8 -0
  4. package/dist/backend/adapters/fetch.mjs +5 -5
  5. package/dist/backend/adapters/hono.js +8 -0
  6. package/dist/backend/adapters/hono.mjs +5 -5
  7. package/dist/backend/adapters/index.js +8 -0
  8. package/dist/backend/adapters/index.mjs +8 -8
  9. package/dist/backend/adapters/next.js +8 -0
  10. package/dist/backend/adapters/next.mjs +5 -5
  11. package/dist/backend/{chunk-H5NW7P7T.mjs → chunk-EETAZF3L.mjs} +1 -1
  12. package/dist/backend/{chunk-A47BOCKP.mjs → chunk-F6RWEUFE.mjs} +1 -1
  13. package/dist/backend/{chunk-CZLYNX6I.mjs → chunk-KPND33EK.mjs} +1 -1
  14. package/dist/backend/{chunk-XB6IWBJK.mjs → chunk-NX3QPLEZ.mjs} +1 -1
  15. package/dist/backend/{chunk-OSKLYXB5.mjs → chunk-ORQUSNYD.mjs} +1 -1
  16. package/dist/backend/{chunk-C7XNQRUJ.mjs → chunk-R6CWGJRR.mjs} +1 -1
  17. package/dist/backend/{chunk-63QUSMCV.mjs → chunk-RGGW7MYQ.mjs} +8 -0
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +8 -0
  21. package/dist/backend/core/handlers/coreHandler.mjs +3 -3
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.mjs +1 -1
  25. package/dist/backend/core/handlers/handleRouteByName.js +8 -0
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +8 -0
  30. package/dist/backend/core/handlers/index.mjs +6 -6
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +8 -0
  34. package/dist/backend/core/index.mjs +8 -8
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.mjs +1 -1
  38. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  40. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  43. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  44. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  45. package/dist/backend/core/types/index.d.mts +1 -1
  46. package/dist/backend/core/types/index.d.ts +1 -1
  47. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  48. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  49. package/dist/backend/core/utils/index.mjs +3 -3
  50. package/dist/backend/index.d.mts +2 -2
  51. package/dist/backend/index.d.ts +2 -2
  52. package/dist/backend/index.js +8 -0
  53. package/dist/backend/index.mjs +6 -6
  54. package/dist/backend/{routeTypes-CaQm0FI6.d.mts → routeTypes-CVNEIkWv.d.mts} +10 -0
  55. package/dist/backend/{routeTypes-CIsf-5k4.d.ts → routeTypes-DRaLLtYM.d.ts} +10 -0
  56. package/dist/better-auth/{chunk-MMJ4X5QR.mjs → chunk-EU45GEWM.mjs} +8 -0
  57. package/dist/better-auth/index.js +8 -0
  58. package/dist/better-auth/index.mjs +1 -1
  59. package/dist/better-auth/utils/handleBetterAuthRoute.js +8 -0
  60. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  61. package/dist/better-auth/utils/index.js +8 -0
  62. package/dist/better-auth/utils/index.mjs +1 -1
  63. package/dist/sdk/index.d.mts +12 -0
  64. package/dist/sdk/index.d.ts +12 -0
  65. package/dist/sdk/index.js +8 -0
  66. package/dist/sdk/index.mjs +8 -0
  67. package/package.json +2 -2
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  handleRouteByName
3
- } from "../../chunk-C7XNQRUJ.mjs";
4
- import "../../chunk-63QUSMCV.mjs";
3
+ } from "../../chunk-R6CWGJRR.mjs";
4
+ import "../../chunk-RGGW7MYQ.mjs";
5
5
  import "../../chunk-MOHYGUMA.mjs";
6
6
  import "../../chunk-TBQ27LIK.mjs";
7
7
  import "../../chunk-J44WR3QZ.mjs";
8
8
  import "../../chunk-ET3EY5PE.mjs";
9
9
  import "../../chunk-OTXV5FY7.mjs";
10
- import "../../chunk-I7CD6EB6.mjs";
11
10
  import "../../chunk-VZIMT7AO.mjs";
11
+ import "../../chunk-I7CD6EB6.mjs";
12
12
  import "../../chunk-N7NFYY54.mjs";
13
13
  export {
14
14
  handleRouteByName
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.mjs';
5
5
  export { resolveIdentity } from './resolveIdentity.mjs';
6
6
  import '../types/handlerTypes.mjs';
7
7
  import '../../authTypes-TPWTIfcM.mjs';
8
- import '../../routeTypes-CaQm0FI6.mjs';
8
+ import '../../routeTypes-CVNEIkWv.mjs';
9
9
  import 'zod/v4';
10
10
  import '../utils/sanitizeBody.mjs';
11
11
  import '../types/responseTypes.mjs';
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.js';
5
5
  export { resolveIdentity } from './resolveIdentity.js';
6
6
  import '../types/handlerTypes.js';
7
7
  import '../../authTypes-TPWTIfcM.js';
8
- import '../../routeTypes-CIsf-5k4.js';
8
+ import '../../routeTypes-DRaLLtYM.js';
9
9
  import 'zod/v4';
10
10
  import '../utils/sanitizeBody.js';
11
11
  import '../types/responseTypes.js';
@@ -12277,6 +12277,8 @@ var CreateInvoiceParams$outboundSchema = z25.pipe(
12277
12277
  ),
12278
12278
  invoiceTemplateId: z25.optional(z25.string()),
12279
12279
  netTermsDays: z25.optional(z25.int()),
12280
+ issueDate: z25.optional(z25.int()),
12281
+ dueDate: z25.optional(z25.int()),
12280
12282
  taxRateId: z25.optional(z25.string()),
12281
12283
  periodStart: z25.optional(z25.int()),
12282
12284
  periodEnd: z25.optional(z25.int()),
@@ -12288,6 +12290,8 @@ var CreateInvoiceParams$outboundSchema = z25.pipe(
12288
12290
  customLineItems: "custom_line_items",
12289
12291
  invoiceTemplateId: "invoice_template_id",
12290
12292
  netTermsDays: "net_terms_days",
12293
+ issueDate: "issue_date",
12294
+ dueDate: "due_date",
12291
12295
  taxRateId: "tax_rate_id",
12292
12296
  periodStart: "period_start",
12293
12297
  periodEnd: "period_end"
@@ -12420,6 +12424,7 @@ var CreateInvoicePreview$inboundSchema = z25.pipe(
12420
12424
  z25.lazy(() => CreateInvoiceInvoiceCredits$inboundSchema)
12421
12425
  ),
12422
12426
  amount_due: number2(),
12427
+ issue_date: number2(),
12423
12428
  due_date: nullable(number2())
12424
12429
  }),
12425
12430
  z25.transform((v) => {
@@ -12427,6 +12432,7 @@ var CreateInvoicePreview$inboundSchema = z25.pipe(
12427
12432
  "discount_total": "discountTotal",
12428
12433
  "invoice_credits": "invoiceCredits",
12429
12434
  "amount_due": "amountDue",
12435
+ "issue_date": "issueDate",
12430
12436
  "due_date": "dueDate"
12431
12437
  });
12432
12438
  })
@@ -41955,6 +41961,7 @@ var ReissueInvoicePreview$inboundSchema = z88.pipe(
41955
41961
  z88.lazy(() => ReissueInvoiceInvoiceCredits$inboundSchema)
41956
41962
  ),
41957
41963
  amount_due: number2(),
41964
+ issue_date: number2(),
41958
41965
  due_date: nullable(number2())
41959
41966
  }),
41960
41967
  z88.transform((v) => {
@@ -41962,6 +41969,7 @@ var ReissueInvoicePreview$inboundSchema = z88.pipe(
41962
41969
  "discount_total": "discountTotal",
41963
41970
  "invoice_credits": "invoiceCredits",
41964
41971
  "amount_due": "amountDue",
41972
+ "issue_date": "issueDate",
41965
41973
  "due_date": "dueDate"
41966
41974
  });
41967
41975
  })
@@ -1,11 +1,11 @@
1
1
  import "../../chunk-VXND2UDT.mjs";
2
- import {
3
- createCoreHandler
4
- } from "../../chunk-CZLYNX6I.mjs";
5
2
  import {
6
3
  handleRouteByName
7
- } from "../../chunk-C7XNQRUJ.mjs";
8
- import "../../chunk-63QUSMCV.mjs";
4
+ } from "../../chunk-R6CWGJRR.mjs";
5
+ import {
6
+ createCoreHandler
7
+ } from "../../chunk-KPND33EK.mjs";
8
+ import "../../chunk-RGGW7MYQ.mjs";
9
9
  import {
10
10
  executeRoute
11
11
  } from "../../chunk-MOHYGUMA.mjs";
@@ -19,8 +19,8 @@ import "../../chunk-TSF4YCUO.mjs";
19
19
  import "../../chunk-UAR3TMWI.mjs";
20
20
  import "../../chunk-ET3EY5PE.mjs";
21
21
  import "../../chunk-OTXV5FY7.mjs";
22
- import "../../chunk-I7CD6EB6.mjs";
23
22
  import "../../chunk-VZIMT7AO.mjs";
23
+ import "../../chunk-I7CD6EB6.mjs";
24
24
  import "../../chunk-N7NFYY54.mjs";
25
25
  export {
26
26
  createCoreHandler,
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.mjs';
2
2
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-TPWTIfcM.mjs';
3
3
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.mjs';
4
4
  export { BackendErrorBody, BackendResult } from './types/responseTypes.mjs';
5
- export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-CaQm0FI6.mjs';
5
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-CVNEIkWv.mjs';
6
6
  export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.mjs';
7
7
  export { buildRouter } from './routes/routeBuilder.mjs';
8
8
  export { routeConfigs } from './routes/routeConfigs.mjs';
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.js';
2
2
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-TPWTIfcM.js';
3
3
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.js';
4
4
  export { BackendErrorBody, BackendResult } from './types/responseTypes.js';
5
- export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-CIsf-5k4.js';
5
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-DRaLLtYM.js';
6
6
  export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.js';
7
7
  export { buildRouter } from './routes/routeBuilder.js';
8
8
  export { routeConfigs } from './routes/routeConfigs.js';
@@ -12281,6 +12281,8 @@ var CreateInvoiceParams$outboundSchema = z25.pipe(
12281
12281
  ),
12282
12282
  invoiceTemplateId: z25.optional(z25.string()),
12283
12283
  netTermsDays: z25.optional(z25.int()),
12284
+ issueDate: z25.optional(z25.int()),
12285
+ dueDate: z25.optional(z25.int()),
12284
12286
  taxRateId: z25.optional(z25.string()),
12285
12287
  periodStart: z25.optional(z25.int()),
12286
12288
  periodEnd: z25.optional(z25.int()),
@@ -12292,6 +12294,8 @@ var CreateInvoiceParams$outboundSchema = z25.pipe(
12292
12294
  customLineItems: "custom_line_items",
12293
12295
  invoiceTemplateId: "invoice_template_id",
12294
12296
  netTermsDays: "net_terms_days",
12297
+ issueDate: "issue_date",
12298
+ dueDate: "due_date",
12295
12299
  taxRateId: "tax_rate_id",
12296
12300
  periodStart: "period_start",
12297
12301
  periodEnd: "period_end"
@@ -12424,6 +12428,7 @@ var CreateInvoicePreview$inboundSchema = z25.pipe(
12424
12428
  z25.lazy(() => CreateInvoiceInvoiceCredits$inboundSchema)
12425
12429
  ),
12426
12430
  amount_due: number2(),
12431
+ issue_date: number2(),
12427
12432
  due_date: nullable(number2())
12428
12433
  }),
12429
12434
  z25.transform((v) => {
@@ -12431,6 +12436,7 @@ var CreateInvoicePreview$inboundSchema = z25.pipe(
12431
12436
  "discount_total": "discountTotal",
12432
12437
  "invoice_credits": "invoiceCredits",
12433
12438
  "amount_due": "amountDue",
12439
+ "issue_date": "issueDate",
12434
12440
  "due_date": "dueDate"
12435
12441
  });
12436
12442
  })
@@ -41959,6 +41965,7 @@ var ReissueInvoicePreview$inboundSchema = z88.pipe(
41959
41965
  z88.lazy(() => ReissueInvoiceInvoiceCredits$inboundSchema)
41960
41966
  ),
41961
41967
  amount_due: number2(),
41968
+ issue_date: number2(),
41962
41969
  due_date: nullable(number2())
41963
41970
  }),
41964
41971
  z88.transform((v) => {
@@ -41966,6 +41973,7 @@ var ReissueInvoicePreview$inboundSchema = z88.pipe(
41966
41973
  "discount_total": "discountTotal",
41967
41974
  "invoice_credits": "invoiceCredits",
41968
41975
  "amount_due": "amountDue",
41976
+ "issue_date": "issueDate",
41969
41977
  "due_date": "dueDate"
41970
41978
  });
41971
41979
  })
@@ -1,12 +1,12 @@
1
1
  import "../chunk-WYDGEDEU.mjs";
2
2
  import "../chunk-VXND2UDT.mjs";
3
- import {
4
- createCoreHandler
5
- } from "../chunk-CZLYNX6I.mjs";
6
3
  import {
7
4
  handleRouteByName
8
- } from "../chunk-C7XNQRUJ.mjs";
9
- import "../chunk-63QUSMCV.mjs";
5
+ } from "../chunk-R6CWGJRR.mjs";
6
+ import {
7
+ createCoreHandler
8
+ } from "../chunk-KPND33EK.mjs";
9
+ import "../chunk-RGGW7MYQ.mjs";
10
10
  import "../chunk-MOHYGUMA.mjs";
11
11
  import "../chunk-TBQ27LIK.mjs";
12
12
  import "../chunk-J44WR3QZ.mjs";
@@ -18,12 +18,12 @@ import {
18
18
  routeConfigs
19
19
  } from "../chunk-ET3EY5PE.mjs";
20
20
  import "../chunk-OTXV5FY7.mjs";
21
- import {
22
- sanitizeBody
23
- } from "../chunk-I7CD6EB6.mjs";
24
21
  import {
25
22
  secretKeyCheck
26
23
  } from "../chunk-VZIMT7AO.mjs";
24
+ import {
25
+ sanitizeBody
26
+ } from "../chunk-I7CD6EB6.mjs";
27
27
  import {
28
28
  backendError,
29
29
  backendSuccess,
@@ -1,7 +1,7 @@
1
1
  export { RouteMatch, buildRouter } from './routeBuilder.mjs';
2
2
  export { routeConfigs } from './routeConfigs.mjs';
3
3
  import 'rou3';
4
- import '../../routeTypes-CaQm0FI6.mjs';
4
+ import '../../routeTypes-CVNEIkWv.mjs';
5
5
  import '../../authTypes-TPWTIfcM.mjs';
6
6
  import 'zod/v4';
7
7
  import '../utils/sanitizeBody.mjs';
@@ -1,7 +1,7 @@
1
1
  export { RouteMatch, buildRouter } from './routeBuilder.js';
2
2
  export { routeConfigs } from './routeConfigs.js';
3
3
  import 'rou3';
4
- import '../../routeTypes-CIsf-5k4.js';
4
+ import '../../routeTypes-DRaLLtYM.js';
5
5
  import '../../authTypes-TPWTIfcM.js';
6
6
  import 'zod/v4';
7
7
  import '../utils/sanitizeBody.js';
@@ -6,8 +6,8 @@ import {
6
6
  routeConfigs
7
7
  } from "../../chunk-ET3EY5PE.mjs";
8
8
  import "../../chunk-OTXV5FY7.mjs";
9
- import "../../chunk-I7CD6EB6.mjs";
10
9
  import "../../chunk-VZIMT7AO.mjs";
10
+ import "../../chunk-I7CD6EB6.mjs";
11
11
  import "../../chunk-N7NFYY54.mjs";
12
12
  export {
13
13
  buildRouter,
@@ -1,5 +1,5 @@
1
1
  import { RouterContext } from 'rou3';
2
- import { R as RouteDefinition } from '../../routeTypes-CaQm0FI6.mjs';
2
+ import { R as RouteDefinition } from '../../routeTypes-CVNEIkWv.mjs';
3
3
  import '../../authTypes-TPWTIfcM.mjs';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.mjs';
@@ -1,5 +1,5 @@
1
1
  import { RouterContext } from 'rou3';
2
- import { R as RouteDefinition } from '../../routeTypes-CIsf-5k4.js';
2
+ import { R as RouteDefinition } from '../../routeTypes-DRaLLtYM.js';
3
3
  import '../../authTypes-TPWTIfcM.js';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.js';
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-CaQm0FI6.mjs';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-CVNEIkWv.mjs';
2
2
  import '../../authTypes-TPWTIfcM.mjs';
3
3
  import 'zod/v4';
4
4
  import '../utils/sanitizeBody.mjs';
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-CIsf-5k4.js';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-DRaLLtYM.js';
2
2
  import '../../authTypes-TPWTIfcM.js';
3
3
  import 'zod/v4';
4
4
  import '../utils/sanitizeBody.js';
@@ -2,8 +2,8 @@ import {
2
2
  routeConfigs
3
3
  } from "../../chunk-ET3EY5PE.mjs";
4
4
  import "../../chunk-OTXV5FY7.mjs";
5
- import "../../chunk-I7CD6EB6.mjs";
6
5
  import "../../chunk-VZIMT7AO.mjs";
6
+ import "../../chunk-I7CD6EB6.mjs";
7
7
  import "../../chunk-N7NFYY54.mjs";
8
8
  export {
9
9
  routeConfigs
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-TPWTIfcM.mjs';
2
- import { R as RouteDefinition } from '../../routeTypes-CaQm0FI6.mjs';
2
+ import { R as RouteDefinition } from '../../routeTypes-CVNEIkWv.mjs';
3
3
  import './responseTypes.mjs';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.mjs';
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-TPWTIfcM.js';
2
- import { R as RouteDefinition } from '../../routeTypes-CIsf-5k4.js';
2
+ import { R as RouteDefinition } from '../../routeTypes-DRaLLtYM.js';
3
3
  import './responseTypes.js';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.js';
@@ -1,6 +1,6 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-TPWTIfcM.mjs';
2
2
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.mjs';
3
3
  export { BackendErrorBody, BackendResult } from './responseTypes.mjs';
4
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CaQm0FI6.mjs';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CVNEIkWv.mjs';
5
5
  import 'zod/v4';
6
6
  import '../utils/sanitizeBody.mjs';
@@ -1,6 +1,6 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-TPWTIfcM.js';
2
2
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.js';
3
3
  export { BackendErrorBody, BackendResult } from './responseTypes.js';
4
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CIsf-5k4.js';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DRaLLtYM.js';
5
5
  import 'zod/v4';
6
6
  import '../utils/sanitizeBody.js';
@@ -1,4 +1,4 @@
1
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CaQm0FI6.mjs';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CVNEIkWv.mjs';
2
2
  import 'zod/v4';
3
3
  import '../utils/sanitizeBody.mjs';
4
4
  import '../../authTypes-TPWTIfcM.mjs';
@@ -1,4 +1,4 @@
1
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CIsf-5k4.js';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DRaLLtYM.js';
2
2
  import 'zod/v4';
3
3
  import '../utils/sanitizeBody.js';
4
4
  import '../../authTypes-TPWTIfcM.js';
@@ -1,12 +1,12 @@
1
1
  import "../../chunk-OTXV5FY7.mjs";
2
+ import {
3
+ secretKeyCheck
4
+ } from "../../chunk-VZIMT7AO.mjs";
2
5
  import {
3
6
  CUSTOMER_PROTECTED_BODY_FIELDS,
4
7
  DEFAULT_PROTECTED_BODY_FIELDS,
5
8
  sanitizeBody
6
9
  } from "../../chunk-I7CD6EB6.mjs";
7
- import {
8
- secretKeyCheck
9
- } from "../../chunk-VZIMT7AO.mjs";
10
10
  import {
11
11
  backendError,
12
12
  backendSuccess,
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-TPWTIfcM.mjs';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-TPWTIfcM.mjs';
4
4
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.mjs';
5
5
  export { BackendErrorBody, BackendResult } from './core/types/responseTypes.mjs';
6
- import { R as RouteDefinition } from './routeTypes-CaQm0FI6.mjs';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-CaQm0FI6.mjs';
6
+ import { R as RouteDefinition } from './routeTypes-CVNEIkWv.mjs';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-CVNEIkWv.mjs';
8
8
  export { buildRouter } from './core/routes/routeBuilder.mjs';
9
9
  export { routeConfigs } from './core/routes/routeConfigs.mjs';
10
10
  export { secretKeyCheck } from './core/utils/secretKeyCheck.mjs';
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-TPWTIfcM.js';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-TPWTIfcM.js';
4
4
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.js';
5
5
  export { BackendErrorBody, BackendResult } from './core/types/responseTypes.js';
6
- import { R as RouteDefinition } from './routeTypes-CIsf-5k4.js';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-CIsf-5k4.js';
6
+ import { R as RouteDefinition } from './routeTypes-DRaLLtYM.js';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-DRaLLtYM.js';
8
8
  export { buildRouter } from './core/routes/routeBuilder.js';
9
9
  export { routeConfigs } from './core/routes/routeConfigs.js';
10
10
  export { secretKeyCheck } from './core/utils/secretKeyCheck.js';
@@ -12281,6 +12281,8 @@ var CreateInvoiceParams$outboundSchema = z25.pipe(
12281
12281
  ),
12282
12282
  invoiceTemplateId: z25.optional(z25.string()),
12283
12283
  netTermsDays: z25.optional(z25.int()),
12284
+ issueDate: z25.optional(z25.int()),
12285
+ dueDate: z25.optional(z25.int()),
12284
12286
  taxRateId: z25.optional(z25.string()),
12285
12287
  periodStart: z25.optional(z25.int()),
12286
12288
  periodEnd: z25.optional(z25.int()),
@@ -12292,6 +12294,8 @@ var CreateInvoiceParams$outboundSchema = z25.pipe(
12292
12294
  customLineItems: "custom_line_items",
12293
12295
  invoiceTemplateId: "invoice_template_id",
12294
12296
  netTermsDays: "net_terms_days",
12297
+ issueDate: "issue_date",
12298
+ dueDate: "due_date",
12295
12299
  taxRateId: "tax_rate_id",
12296
12300
  periodStart: "period_start",
12297
12301
  periodEnd: "period_end"
@@ -12424,6 +12428,7 @@ var CreateInvoicePreview$inboundSchema = z25.pipe(
12424
12428
  z25.lazy(() => CreateInvoiceInvoiceCredits$inboundSchema)
12425
12429
  ),
12426
12430
  amount_due: number2(),
12431
+ issue_date: number2(),
12427
12432
  due_date: nullable(number2())
12428
12433
  }),
12429
12434
  z25.transform((v) => {
@@ -12431,6 +12436,7 @@ var CreateInvoicePreview$inboundSchema = z25.pipe(
12431
12436
  "discount_total": "discountTotal",
12432
12437
  "invoice_credits": "invoiceCredits",
12433
12438
  "amount_due": "amountDue",
12439
+ "issue_date": "issueDate",
12434
12440
  "due_date": "dueDate"
12435
12441
  });
12436
12442
  })
@@ -41959,6 +41965,7 @@ var ReissueInvoicePreview$inboundSchema = z88.pipe(
41959
41965
  z88.lazy(() => ReissueInvoiceInvoiceCredits$inboundSchema)
41960
41966
  ),
41961
41967
  amount_due: number2(),
41968
+ issue_date: number2(),
41962
41969
  due_date: nullable(number2())
41963
41970
  }),
41964
41971
  z88.transform((v) => {
@@ -41966,6 +41973,7 @@ var ReissueInvoicePreview$inboundSchema = z88.pipe(
41966
41973
  "discount_total": "discountTotal",
41967
41974
  "invoice_credits": "invoiceCredits",
41968
41975
  "amount_due": "amountDue",
41976
+ "issue_date": "issueDate",
41969
41977
  "due_date": "dueDate"
41970
41978
  });
41971
41979
  })
@@ -1,10 +1,10 @@
1
1
  import "./chunk-WYDGEDEU.mjs";
2
2
  import "./chunk-VXND2UDT.mjs";
3
+ import "./chunk-R6CWGJRR.mjs";
3
4
  import {
4
5
  createCoreHandler
5
- } from "./chunk-CZLYNX6I.mjs";
6
- import "./chunk-C7XNQRUJ.mjs";
7
- import "./chunk-63QUSMCV.mjs";
6
+ } from "./chunk-KPND33EK.mjs";
7
+ import "./chunk-RGGW7MYQ.mjs";
8
8
  import "./chunk-MOHYGUMA.mjs";
9
9
  import "./chunk-TBQ27LIK.mjs";
10
10
  import "./chunk-J44WR3QZ.mjs";
@@ -16,12 +16,12 @@ import {
16
16
  routeConfigs
17
17
  } from "./chunk-ET3EY5PE.mjs";
18
18
  import "./chunk-OTXV5FY7.mjs";
19
- import {
20
- sanitizeBody
21
- } from "./chunk-I7CD6EB6.mjs";
22
19
  import {
23
20
  secretKeyCheck
24
21
  } from "./chunk-VZIMT7AO.mjs";
22
+ import {
23
+ sanitizeBody
24
+ } from "./chunk-I7CD6EB6.mjs";
25
25
  import {
26
26
  backendError,
27
27
  backendSuccess,
@@ -13346,6 +13346,14 @@ type CreateInvoiceParams = {
13346
13346
  * Days until the invoice is due. Defaults to the template's terms, then the org default.
13347
13347
  */
13348
13348
  netTermsDays?: number | undefined;
13349
+ /**
13350
+ * Date of issue printed on the invoice, in milliseconds. Defaults to now; cannot be in the future.
13351
+ */
13352
+ issueDate?: number | undefined;
13353
+ /**
13354
+ * When payment is due, in milliseconds. Must be in the future; takes precedence over net_terms_days.
13355
+ */
13356
+ dueDate?: number | undefined;
13349
13357
  /**
13350
13358
  * Stripe tax rate ID (txr_...) applied to every line.
13351
13359
  */
@@ -13542,6 +13550,7 @@ type CreateInvoicePreview = {
13542
13550
  * What the customer pays: the total less any credit applied.
13543
13551
  */
13544
13552
  amountDue: number;
13553
+ issueDate: number;
13545
13554
  dueDate: number | null;
13546
13555
  };
13547
13556
  /**
@@ -48911,6 +48920,7 @@ type ReissueInvoicePreview = {
48911
48920
  * What the customer pays: the total less any credit applied.
48912
48921
  */
48913
48922
  amountDue: number;
48923
+ issueDate: number;
48914
48924
  dueDate: number | null;
48915
48925
  };
48916
48926
  /**
@@ -13346,6 +13346,14 @@ type CreateInvoiceParams = {
13346
13346
  * Days until the invoice is due. Defaults to the template's terms, then the org default.
13347
13347
  */
13348
13348
  netTermsDays?: number | undefined;
13349
+ /**
13350
+ * Date of issue printed on the invoice, in milliseconds. Defaults to now; cannot be in the future.
13351
+ */
13352
+ issueDate?: number | undefined;
13353
+ /**
13354
+ * When payment is due, in milliseconds. Must be in the future; takes precedence over net_terms_days.
13355
+ */
13356
+ dueDate?: number | undefined;
13349
13357
  /**
13350
13358
  * Stripe tax rate ID (txr_...) applied to every line.
13351
13359
  */
@@ -13542,6 +13550,7 @@ type CreateInvoicePreview = {
13542
13550
  * What the customer pays: the total less any credit applied.
13543
13551
  */
13544
13552
  amountDue: number;
13553
+ issueDate: number;
13545
13554
  dueDate: number | null;
13546
13555
  };
13547
13556
  /**
@@ -48911,6 +48920,7 @@ type ReissueInvoicePreview = {
48911
48920
  * What the customer pays: the total less any credit applied.
48912
48921
  */
48913
48922
  amountDue: number;
48923
+ issueDate: number;
48914
48924
  dueDate: number | null;
48915
48925
  };
48916
48926
  /**
@@ -12255,6 +12255,8 @@ var CreateInvoiceParams$outboundSchema = z25.pipe(
12255
12255
  ),
12256
12256
  invoiceTemplateId: z25.optional(z25.string()),
12257
12257
  netTermsDays: z25.optional(z25.int()),
12258
+ issueDate: z25.optional(z25.int()),
12259
+ dueDate: z25.optional(z25.int()),
12258
12260
  taxRateId: z25.optional(z25.string()),
12259
12261
  periodStart: z25.optional(z25.int()),
12260
12262
  periodEnd: z25.optional(z25.int()),
@@ -12266,6 +12268,8 @@ var CreateInvoiceParams$outboundSchema = z25.pipe(
12266
12268
  customLineItems: "custom_line_items",
12267
12269
  invoiceTemplateId: "invoice_template_id",
12268
12270
  netTermsDays: "net_terms_days",
12271
+ issueDate: "issue_date",
12272
+ dueDate: "due_date",
12269
12273
  taxRateId: "tax_rate_id",
12270
12274
  periodStart: "period_start",
12271
12275
  periodEnd: "period_end"
@@ -12398,6 +12402,7 @@ var CreateInvoicePreview$inboundSchema = z25.pipe(
12398
12402
  z25.lazy(() => CreateInvoiceInvoiceCredits$inboundSchema)
12399
12403
  ),
12400
12404
  amount_due: number2(),
12405
+ issue_date: number2(),
12401
12406
  due_date: nullable(number2())
12402
12407
  }),
12403
12408
  z25.transform((v) => {
@@ -12405,6 +12410,7 @@ var CreateInvoicePreview$inboundSchema = z25.pipe(
12405
12410
  "discount_total": "discountTotal",
12406
12411
  "invoice_credits": "invoiceCredits",
12407
12412
  "amount_due": "amountDue",
12413
+ "issue_date": "issueDate",
12408
12414
  "due_date": "dueDate"
12409
12415
  });
12410
12416
  })
@@ -41933,6 +41939,7 @@ var ReissueInvoicePreview$inboundSchema = z88.pipe(
41933
41939
  z88.lazy(() => ReissueInvoiceInvoiceCredits$inboundSchema)
41934
41940
  ),
41935
41941
  amount_due: number2(),
41942
+ issue_date: number2(),
41936
41943
  due_date: nullable(number2())
41937
41944
  }),
41938
41945
  z88.transform((v) => {
@@ -41940,6 +41947,7 @@ var ReissueInvoicePreview$inboundSchema = z88.pipe(
41940
41947
  "discount_total": "discountTotal",
41941
41948
  "invoice_credits": "invoiceCredits",
41942
41949
  "amount_due": "amountDue",
41950
+ "issue_date": "issueDate",
41943
41951
  "due_date": "dueDate"
41944
41952
  });
41945
41953
  })
@@ -19072,6 +19072,8 @@ var CreateInvoiceParams$outboundSchema = z44.pipe(
19072
19072
  ),
19073
19073
  invoiceTemplateId: z44.optional(z44.string()),
19074
19074
  netTermsDays: z44.optional(z44.int()),
19075
+ issueDate: z44.optional(z44.int()),
19076
+ dueDate: z44.optional(z44.int()),
19075
19077
  taxRateId: z44.optional(z44.string()),
19076
19078
  periodStart: z44.optional(z44.int()),
19077
19079
  periodEnd: z44.optional(z44.int()),
@@ -19083,6 +19085,8 @@ var CreateInvoiceParams$outboundSchema = z44.pipe(
19083
19085
  customLineItems: "custom_line_items",
19084
19086
  invoiceTemplateId: "invoice_template_id",
19085
19087
  netTermsDays: "net_terms_days",
19088
+ issueDate: "issue_date",
19089
+ dueDate: "due_date",
19086
19090
  taxRateId: "tax_rate_id",
19087
19091
  periodStart: "period_start",
19088
19092
  periodEnd: "period_end"
@@ -19215,6 +19219,7 @@ var CreateInvoicePreview$inboundSchema = z44.pipe(
19215
19219
  z44.lazy(() => CreateInvoiceInvoiceCredits$inboundSchema)
19216
19220
  ),
19217
19221
  amount_due: number2(),
19222
+ issue_date: number2(),
19218
19223
  due_date: nullable(number2())
19219
19224
  }),
19220
19225
  z44.transform((v) => {
@@ -19222,6 +19227,7 @@ var CreateInvoicePreview$inboundSchema = z44.pipe(
19222
19227
  "discount_total": "discountTotal",
19223
19228
  "invoice_credits": "invoiceCredits",
19224
19229
  "amount_due": "amountDue",
19230
+ "issue_date": "issueDate",
19225
19231
  "due_date": "dueDate"
19226
19232
  });
19227
19233
  })
@@ -48750,6 +48756,7 @@ var ReissueInvoicePreview$inboundSchema = z107.pipe(
48750
48756
  z107.lazy(() => ReissueInvoiceInvoiceCredits$inboundSchema)
48751
48757
  ),
48752
48758
  amount_due: number2(),
48759
+ issue_date: number2(),
48753
48760
  due_date: nullable(number2())
48754
48761
  }),
48755
48762
  z107.transform((v) => {
@@ -48757,6 +48764,7 @@ var ReissueInvoicePreview$inboundSchema = z107.pipe(
48757
48764
  "discount_total": "discountTotal",
48758
48765
  "invoice_credits": "invoiceCredits",
48759
48766
  "amount_due": "amountDue",
48767
+ "issue_date": "issueDate",
48760
48768
  "due_date": "dueDate"
48761
48769
  });
48762
48770
  })
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-24CG3YJD.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "./chunk-MMJ4X5QR.mjs";
7
+ } from "./chunk-EU45GEWM.mjs";
8
8
  import "./chunk-J2WYVGHS.mjs";
9
9
  import "./chunk-LCFFOKLD.mjs";
10
10
  import "./chunk-BT3EAYVW.mjs";