autumn-js 1.3.18 → 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 (63) hide show
  1. package/dist/backend/adapters/express.js +8 -0
  2. package/dist/backend/adapters/express.mjs +4 -4
  3. package/dist/backend/adapters/fetch.js +8 -0
  4. package/dist/backend/adapters/fetch.mjs +4 -4
  5. package/dist/backend/adapters/hono.js +8 -0
  6. package/dist/backend/adapters/hono.mjs +4 -4
  7. package/dist/backend/adapters/index.js +8 -0
  8. package/dist/backend/adapters/index.mjs +7 -7
  9. package/dist/backend/adapters/next.js +8 -0
  10. package/dist/backend/adapters/next.mjs +4 -4
  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 +2 -2
  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/handleRouteByName.js +8 -0
  25. package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
  26. package/dist/backend/core/handlers/index.d.mts +1 -1
  27. package/dist/backend/core/handlers/index.d.ts +1 -1
  28. package/dist/backend/core/handlers/index.js +8 -0
  29. package/dist/backend/core/handlers/index.mjs +3 -3
  30. package/dist/backend/core/index.d.mts +1 -1
  31. package/dist/backend/core/index.d.ts +1 -1
  32. package/dist/backend/core/index.js +8 -0
  33. package/dist/backend/core/index.mjs +3 -3
  34. package/dist/backend/core/routes/index.d.mts +1 -1
  35. package/dist/backend/core/routes/index.d.ts +1 -1
  36. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  37. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  38. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  39. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  40. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  41. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  42. package/dist/backend/core/types/index.d.mts +1 -1
  43. package/dist/backend/core/types/index.d.ts +1 -1
  44. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  45. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  46. package/dist/backend/index.d.mts +2 -2
  47. package/dist/backend/index.d.ts +2 -2
  48. package/dist/backend/index.js +8 -0
  49. package/dist/backend/index.mjs +3 -3
  50. package/dist/backend/{routeTypes-CaQm0FI6.d.mts → routeTypes-CVNEIkWv.d.mts} +10 -0
  51. package/dist/backend/{routeTypes-CIsf-5k4.d.ts → routeTypes-DRaLLtYM.d.ts} +10 -0
  52. package/dist/better-auth/{chunk-MMJ4X5QR.mjs → chunk-EU45GEWM.mjs} +8 -0
  53. package/dist/better-auth/index.js +8 -0
  54. package/dist/better-auth/index.mjs +1 -1
  55. package/dist/better-auth/utils/handleBetterAuthRoute.js +8 -0
  56. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  57. package/dist/better-auth/utils/index.js +8 -0
  58. package/dist/better-auth/utils/index.mjs +1 -1
  59. package/dist/sdk/index.d.mts +12 -0
  60. package/dist/sdk/index.d.ts +12 -0
  61. package/dist/sdk/index.js +8 -0
  62. package/dist/sdk/index.mjs +8 -0
  63. package/package.json +2 -2
@@ -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
2
  import {
3
3
  handleRouteByName
4
- } from "../../chunk-C7XNQRUJ.mjs";
4
+ } from "../../chunk-R6CWGJRR.mjs";
5
5
  import {
6
6
  createCoreHandler
7
- } from "../../chunk-CZLYNX6I.mjs";
8
- import "../../chunk-63QUSMCV.mjs";
7
+ } from "../../chunk-KPND33EK.mjs";
8
+ import "../../chunk-RGGW7MYQ.mjs";
9
9
  import {
10
10
  executeRoute
11
11
  } from "../../chunk-MOHYGUMA.mjs";
@@ -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
  })
@@ -2,11 +2,11 @@ import "../chunk-WYDGEDEU.mjs";
2
2
  import "../chunk-VXND2UDT.mjs";
3
3
  import {
4
4
  handleRouteByName
5
- } from "../chunk-C7XNQRUJ.mjs";
5
+ } from "../chunk-R6CWGJRR.mjs";
6
6
  import {
7
7
  createCoreHandler
8
- } from "../chunk-CZLYNX6I.mjs";
9
- import "../chunk-63QUSMCV.mjs";
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";
@@ -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';
@@ -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';
@@ -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';
@@ -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-C7XNQRUJ.mjs";
3
+ import "./chunk-R6CWGJRR.mjs";
4
4
  import {
5
5
  createCoreHandler
6
- } from "./chunk-CZLYNX6I.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";
@@ -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";
@@ -12274,6 +12274,8 @@ var CreateInvoiceParams$outboundSchema = z25.pipe(
12274
12274
  ),
12275
12275
  invoiceTemplateId: z25.optional(z25.string()),
12276
12276
  netTermsDays: z25.optional(z25.int()),
12277
+ issueDate: z25.optional(z25.int()),
12278
+ dueDate: z25.optional(z25.int()),
12277
12279
  taxRateId: z25.optional(z25.string()),
12278
12280
  periodStart: z25.optional(z25.int()),
12279
12281
  periodEnd: z25.optional(z25.int()),
@@ -12285,6 +12287,8 @@ var CreateInvoiceParams$outboundSchema = z25.pipe(
12285
12287
  customLineItems: "custom_line_items",
12286
12288
  invoiceTemplateId: "invoice_template_id",
12287
12289
  netTermsDays: "net_terms_days",
12290
+ issueDate: "issue_date",
12291
+ dueDate: "due_date",
12288
12292
  taxRateId: "tax_rate_id",
12289
12293
  periodStart: "period_start",
12290
12294
  periodEnd: "period_end"
@@ -12417,6 +12421,7 @@ var CreateInvoicePreview$inboundSchema = z25.pipe(
12417
12421
  z25.lazy(() => CreateInvoiceInvoiceCredits$inboundSchema)
12418
12422
  ),
12419
12423
  amount_due: number2(),
12424
+ issue_date: number2(),
12420
12425
  due_date: nullable(number2())
12421
12426
  }),
12422
12427
  z25.transform((v) => {
@@ -12424,6 +12429,7 @@ var CreateInvoicePreview$inboundSchema = z25.pipe(
12424
12429
  "discount_total": "discountTotal",
12425
12430
  "invoice_credits": "invoiceCredits",
12426
12431
  "amount_due": "amountDue",
12432
+ "issue_date": "issueDate",
12427
12433
  "due_date": "dueDate"
12428
12434
  });
12429
12435
  })
@@ -41952,6 +41958,7 @@ var ReissueInvoicePreview$inboundSchema = z88.pipe(
41952
41958
  z88.lazy(() => ReissueInvoiceInvoiceCredits$inboundSchema)
41953
41959
  ),
41954
41960
  amount_due: number2(),
41961
+ issue_date: number2(),
41955
41962
  due_date: nullable(number2())
41956
41963
  }),
41957
41964
  z88.transform((v) => {
@@ -41959,6 +41966,7 @@ var ReissueInvoicePreview$inboundSchema = z88.pipe(
41959
41966
  "discount_total": "discountTotal",
41960
41967
  "invoice_credits": "invoiceCredits",
41961
41968
  "amount_due": "amountDue",
41969
+ "issue_date": "issueDate",
41962
41970
  "due_date": "dueDate"
41963
41971
  });
41964
41972
  })
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createHandleBetterAuthRoute
3
- } from "../chunk-MMJ4X5QR.mjs";
3
+ } from "../chunk-EU45GEWM.mjs";
4
4
  import "../chunk-J2WYVGHS.mjs";
5
5
  import "../chunk-LCFFOKLD.mjs";
6
6
  import "../chunk-BT3EAYVW.mjs";
@@ -19076,6 +19076,8 @@ var CreateInvoiceParams$outboundSchema = z44.pipe(
19076
19076
  ),
19077
19077
  invoiceTemplateId: z44.optional(z44.string()),
19078
19078
  netTermsDays: z44.optional(z44.int()),
19079
+ issueDate: z44.optional(z44.int()),
19080
+ dueDate: z44.optional(z44.int()),
19079
19081
  taxRateId: z44.optional(z44.string()),
19080
19082
  periodStart: z44.optional(z44.int()),
19081
19083
  periodEnd: z44.optional(z44.int()),
@@ -19087,6 +19089,8 @@ var CreateInvoiceParams$outboundSchema = z44.pipe(
19087
19089
  customLineItems: "custom_line_items",
19088
19090
  invoiceTemplateId: "invoice_template_id",
19089
19091
  netTermsDays: "net_terms_days",
19092
+ issueDate: "issue_date",
19093
+ dueDate: "due_date",
19090
19094
  taxRateId: "tax_rate_id",
19091
19095
  periodStart: "period_start",
19092
19096
  periodEnd: "period_end"
@@ -19219,6 +19223,7 @@ var CreateInvoicePreview$inboundSchema = z44.pipe(
19219
19223
  z44.lazy(() => CreateInvoiceInvoiceCredits$inboundSchema)
19220
19224
  ),
19221
19225
  amount_due: number2(),
19226
+ issue_date: number2(),
19222
19227
  due_date: nullable(number2())
19223
19228
  }),
19224
19229
  z44.transform((v) => {
@@ -19226,6 +19231,7 @@ var CreateInvoicePreview$inboundSchema = z44.pipe(
19226
19231
  "discount_total": "discountTotal",
19227
19232
  "invoice_credits": "invoiceCredits",
19228
19233
  "amount_due": "amountDue",
19234
+ "issue_date": "issueDate",
19229
19235
  "due_date": "dueDate"
19230
19236
  });
19231
19237
  })
@@ -48754,6 +48760,7 @@ var ReissueInvoicePreview$inboundSchema = z107.pipe(
48754
48760
  z107.lazy(() => ReissueInvoiceInvoiceCredits$inboundSchema)
48755
48761
  ),
48756
48762
  amount_due: number2(),
48763
+ issue_date: number2(),
48757
48764
  due_date: nullable(number2())
48758
48765
  }),
48759
48766
  z107.transform((v) => {
@@ -48761,6 +48768,7 @@ var ReissueInvoicePreview$inboundSchema = z107.pipe(
48761
48768
  "discount_total": "discountTotal",
48762
48769
  "invoice_credits": "invoiceCredits",
48763
48770
  "amount_due": "amountDue",
48771
+ "issue_date": "issueDate",
48764
48772
  "due_date": "dueDate"
48765
48773
  });
48766
48774
  })
@@ -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 {
9
9
  resolveIdentityFromScope
10
10
  } from "../chunk-J2WYVGHS.mjs";