autumn-js 1.3.35 → 1.3.37
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/backend/adapters/express.js +22 -2
- package/dist/backend/adapters/express.mjs +4 -4
- package/dist/backend/adapters/fetch.js +22 -2
- package/dist/backend/adapters/fetch.mjs +4 -4
- package/dist/backend/adapters/hono.js +22 -2
- package/dist/backend/adapters/hono.mjs +4 -4
- package/dist/backend/adapters/index.js +22 -2
- package/dist/backend/adapters/index.mjs +7 -7
- package/dist/backend/adapters/next.js +22 -2
- package/dist/backend/adapters/next.mjs +4 -4
- package/dist/backend/{chunk-HS4KYMOQ.mjs → chunk-5O52SB6D.mjs} +1 -1
- package/dist/backend/{chunk-LMRT4FAW.mjs → chunk-FFYCTJNC.mjs} +1 -1
- package/dist/backend/{chunk-I2CKPS5D.mjs → chunk-FHTBT3PQ.mjs} +22 -2
- package/dist/backend/{chunk-JSLDOR53.mjs → chunk-R3K32CGC.mjs} +1 -1
- package/dist/backend/{chunk-QLIIZN47.mjs → chunk-U3ZGNGOC.mjs} +1 -1
- package/dist/backend/{chunk-JKHG2JZG.mjs → chunk-UMFFNC2A.mjs} +1 -1
- package/dist/backend/{chunk-73QHDEEQ.mjs → chunk-WEQOYACF.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +22 -2
- package/dist/backend/core/handlers/coreHandler.mjs +2 -2
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +22 -2
- package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +22 -2
- package/dist/backend/core/handlers/index.mjs +3 -3
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +22 -2
- package/dist/backend/core/index.mjs +3 -3
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +22 -2
- package/dist/backend/index.mjs +3 -3
- package/dist/backend/{routeTypes-DwU6yhOJ.d.mts → routeTypes-DCQKUwXj.d.mts} +40 -0
- package/dist/backend/{routeTypes-CyIHx1ma.d.ts → routeTypes-DZCHHDxf.d.ts} +40 -0
- package/dist/better-auth/{chunk-Y7P5GF2V.mjs → chunk-45DYRSXB.mjs} +22 -2
- package/dist/better-auth/index.js +22 -2
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +22 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +22 -2
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/sdk/index.d.mts +49 -1
- package/dist/sdk/index.d.ts +49 -1
- package/dist/sdk/index.js +26 -2
- package/dist/sdk/index.mjs +23 -3
- package/package.json +2 -2
package/dist/backend/index.js
CHANGED
|
@@ -11822,6 +11822,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
|
|
|
11822
11822
|
Prepaid: "prepaid",
|
|
11823
11823
|
UsageBased: "usage_based"
|
|
11824
11824
|
};
|
|
11825
|
+
var CreateInvoiceIssueMethod = {
|
|
11826
|
+
Draft: "draft",
|
|
11827
|
+
Finalize: "finalize",
|
|
11828
|
+
Send: "send"
|
|
11829
|
+
};
|
|
11825
11830
|
var CreateInvoiceProcessorType = {
|
|
11826
11831
|
Stripe: "stripe",
|
|
11827
11832
|
Revenuecat: "revenuecat"
|
|
@@ -12327,6 +12332,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
|
|
|
12327
12332
|
});
|
|
12328
12333
|
})
|
|
12329
12334
|
);
|
|
12335
|
+
var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
|
|
12330
12336
|
var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
12331
12337
|
z26.object({
|
|
12332
12338
|
customerId: z26.string(),
|
|
@@ -12344,7 +12350,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
|
12344
12350
|
taxRateId: z26.optional(z26.string()),
|
|
12345
12351
|
periodStart: z26.optional(z26.int()),
|
|
12346
12352
|
periodEnd: z26.optional(z26.int()),
|
|
12347
|
-
preview: z26.optional(z26.boolean())
|
|
12353
|
+
preview: z26.optional(z26.boolean()),
|
|
12354
|
+
issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
|
|
12348
12355
|
}),
|
|
12349
12356
|
z26.transform((v) => {
|
|
12350
12357
|
return remap(v, {
|
|
@@ -12356,7 +12363,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
|
12356
12363
|
dueDate: "due_date",
|
|
12357
12364
|
taxRateId: "tax_rate_id",
|
|
12358
12365
|
periodStart: "period_start",
|
|
12359
|
-
periodEnd: "period_end"
|
|
12366
|
+
periodEnd: "period_end",
|
|
12367
|
+
issueMethod: "issue_method"
|
|
12360
12368
|
});
|
|
12361
12369
|
})
|
|
12362
12370
|
);
|
|
@@ -29117,6 +29125,8 @@ var ListInvoicesParams$outboundSchema = z72.pipe(
|
|
|
29117
29125
|
limit: z72._default(z72.int(), 50),
|
|
29118
29126
|
customerId: z72.optional(z72.string()),
|
|
29119
29127
|
entityId: z72.optional(z72.string()),
|
|
29128
|
+
invoiceId: z72.optional(z72.string()),
|
|
29129
|
+
stripeId: z72.optional(z72.string()),
|
|
29120
29130
|
status: z72.optional(z72.array(ListInvoicesStatus$outboundSchema)),
|
|
29121
29131
|
processorTypes: z72.optional(
|
|
29122
29132
|
z72.array(ListInvoicesProcessorTypeRequestBody$outboundSchema)
|
|
@@ -29127,6 +29137,8 @@ var ListInvoicesParams$outboundSchema = z72.pipe(
|
|
|
29127
29137
|
startCursor: "start_cursor",
|
|
29128
29138
|
customerId: "customer_id",
|
|
29129
29139
|
entityId: "entity_id",
|
|
29140
|
+
invoiceId: "invoice_id",
|
|
29141
|
+
stripeId: "stripe_id",
|
|
29130
29142
|
processorTypes: "processor_types"
|
|
29131
29143
|
});
|
|
29132
29144
|
})
|
|
@@ -42020,6 +42032,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
|
|
|
42020
42032
|
|
|
42021
42033
|
// ../sdk/src/models/reissue-invoice-op.ts
|
|
42022
42034
|
var z98 = __toESM(require("zod/v4-mini"), 1);
|
|
42035
|
+
var ReissueInvoiceIssueMethod = {
|
|
42036
|
+
Draft: "draft",
|
|
42037
|
+
Finalize: "finalize",
|
|
42038
|
+
Send: "send"
|
|
42039
|
+
};
|
|
42023
42040
|
var PaymentMethodType = {
|
|
42024
42041
|
Card: "card",
|
|
42025
42042
|
CustomerBalance: "customer_balance",
|
|
@@ -42086,6 +42103,7 @@ var ReissueInvoiceStatus = {
|
|
|
42086
42103
|
Complete: "complete",
|
|
42087
42104
|
Incomplete: "incomplete"
|
|
42088
42105
|
};
|
|
42106
|
+
var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
|
|
42089
42107
|
var CustomField$outboundSchema = z98.object({
|
|
42090
42108
|
name: z98.string(),
|
|
42091
42109
|
value: z98.string()
|
|
@@ -42677,6 +42695,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
|
|
|
42677
42695
|
invoiceTemplateId: z98.optional(z98.string()),
|
|
42678
42696
|
netTermsDays: z98.optional(z98.int()),
|
|
42679
42697
|
preview: z98.optional(z98.boolean()),
|
|
42698
|
+
issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
|
|
42680
42699
|
updateCustomerEmail: z98.optional(z98.string()),
|
|
42681
42700
|
invoice: z98.optional(
|
|
42682
42701
|
z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
|
|
@@ -42689,6 +42708,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
|
|
|
42689
42708
|
invoiceId: "invoice_id",
|
|
42690
42709
|
invoiceTemplateId: "invoice_template_id",
|
|
42691
42710
|
netTermsDays: "net_terms_days",
|
|
42711
|
+
issueMethod: "issue_method",
|
|
42692
42712
|
updateCustomerEmail: "update_customer_email"
|
|
42693
42713
|
});
|
|
42694
42714
|
})
|
package/dist/backend/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./chunk-WYDGEDEU.mjs";
|
|
2
2
|
import "./chunk-VXND2UDT.mjs";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-UMFFNC2A.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCoreHandler
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-U3ZGNGOC.mjs";
|
|
7
|
+
import "./chunk-FHTBT3PQ.mjs";
|
|
8
8
|
import "./chunk-MOHYGUMA.mjs";
|
|
9
9
|
import "./chunk-TBQ27LIK.mjs";
|
|
10
10
|
import "./chunk-J44WR3QZ.mjs";
|
|
@@ -13343,6 +13343,18 @@ type CreateInvoiceAttachDiscount = {
|
|
|
13343
13343
|
*/
|
|
13344
13344
|
promotionCode?: string | undefined;
|
|
13345
13345
|
};
|
|
13346
|
+
/**
|
|
13347
|
+
* draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
|
|
13348
|
+
*/
|
|
13349
|
+
declare const CreateInvoiceIssueMethod: {
|
|
13350
|
+
readonly Draft: "draft";
|
|
13351
|
+
readonly Finalize: "finalize";
|
|
13352
|
+
readonly Send: "send";
|
|
13353
|
+
};
|
|
13354
|
+
/**
|
|
13355
|
+
* draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
|
|
13356
|
+
*/
|
|
13357
|
+
type CreateInvoiceIssueMethod = ClosedEnum<typeof CreateInvoiceIssueMethod>;
|
|
13346
13358
|
type CreateInvoiceParams = {
|
|
13347
13359
|
/**
|
|
13348
13360
|
* The customer to invoice.
|
|
@@ -13389,6 +13401,10 @@ type CreateInvoiceParams = {
|
|
|
13389
13401
|
* If true, returns the calculated lines and totals without creating an invoice.
|
|
13390
13402
|
*/
|
|
13391
13403
|
preview?: boolean | undefined;
|
|
13404
|
+
/**
|
|
13405
|
+
* draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
|
|
13406
|
+
*/
|
|
13407
|
+
issueMethod?: CreateInvoiceIssueMethod | undefined;
|
|
13392
13408
|
};
|
|
13393
13409
|
/**
|
|
13394
13410
|
* The billing processor that owns this invoice.
|
|
@@ -33591,6 +33607,14 @@ type ListInvoicesParams = {
|
|
|
33591
33607
|
* Filter invoices to a single entity by ID. Must be provided together with customer_id, since entity IDs are only unique per customer.
|
|
33592
33608
|
*/
|
|
33593
33609
|
entityId?: string | undefined;
|
|
33610
|
+
/**
|
|
33611
|
+
* Filter to the invoice with this Autumn invoice ID (e.g. inv_2b3c4d5e6f7g8h).
|
|
33612
|
+
*/
|
|
33613
|
+
invoiceId?: string | undefined;
|
|
33614
|
+
/**
|
|
33615
|
+
* Filter to the invoice with this Stripe invoice ID (e.g. in_1A2B3C4D5E6F7G8H).
|
|
33616
|
+
*/
|
|
33617
|
+
stripeId?: string | undefined;
|
|
33594
33618
|
/**
|
|
33595
33619
|
* Filter by invoice status (draft, open, paid, void, uncollectible).
|
|
33596
33620
|
*/
|
|
@@ -49235,6 +49259,18 @@ type RefreshKeyResponse = {
|
|
|
49235
49259
|
refreshExpiresAt?: number | undefined;
|
|
49236
49260
|
};
|
|
49237
49261
|
|
|
49262
|
+
/**
|
|
49263
|
+
* How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
|
|
49264
|
+
*/
|
|
49265
|
+
declare const ReissueInvoiceIssueMethod: {
|
|
49266
|
+
readonly Draft: "draft";
|
|
49267
|
+
readonly Finalize: "finalize";
|
|
49268
|
+
readonly Send: "send";
|
|
49269
|
+
};
|
|
49270
|
+
/**
|
|
49271
|
+
* How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
|
|
49272
|
+
*/
|
|
49273
|
+
type ReissueInvoiceIssueMethod = ClosedEnum<typeof ReissueInvoiceIssueMethod>;
|
|
49238
49274
|
type CustomField = {
|
|
49239
49275
|
name: string;
|
|
49240
49276
|
value: string;
|
|
@@ -49945,6 +49981,10 @@ type ReissueInvoiceParams = {
|
|
|
49945
49981
|
* If true, returns the replacement invoice's lines and totals without voiding anything or issuing it.
|
|
49946
49982
|
*/
|
|
49947
49983
|
preview?: boolean | undefined;
|
|
49984
|
+
/**
|
|
49985
|
+
* How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
|
|
49986
|
+
*/
|
|
49987
|
+
issueMethod?: ReissueInvoiceIssueMethod | undefined;
|
|
49948
49988
|
/**
|
|
49949
49989
|
* Updates the customer's billing email before the replacement is issued, so Stripe sends the new invoice to this address.
|
|
49950
49990
|
*/
|
|
@@ -13343,6 +13343,18 @@ type CreateInvoiceAttachDiscount = {
|
|
|
13343
13343
|
*/
|
|
13344
13344
|
promotionCode?: string | undefined;
|
|
13345
13345
|
};
|
|
13346
|
+
/**
|
|
13347
|
+
* draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
|
|
13348
|
+
*/
|
|
13349
|
+
declare const CreateInvoiceIssueMethod: {
|
|
13350
|
+
readonly Draft: "draft";
|
|
13351
|
+
readonly Finalize: "finalize";
|
|
13352
|
+
readonly Send: "send";
|
|
13353
|
+
};
|
|
13354
|
+
/**
|
|
13355
|
+
* draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
|
|
13356
|
+
*/
|
|
13357
|
+
type CreateInvoiceIssueMethod = ClosedEnum<typeof CreateInvoiceIssueMethod>;
|
|
13346
13358
|
type CreateInvoiceParams = {
|
|
13347
13359
|
/**
|
|
13348
13360
|
* The customer to invoice.
|
|
@@ -13389,6 +13401,10 @@ type CreateInvoiceParams = {
|
|
|
13389
13401
|
* If true, returns the calculated lines and totals without creating an invoice.
|
|
13390
13402
|
*/
|
|
13391
13403
|
preview?: boolean | undefined;
|
|
13404
|
+
/**
|
|
13405
|
+
* draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
|
|
13406
|
+
*/
|
|
13407
|
+
issueMethod?: CreateInvoiceIssueMethod | undefined;
|
|
13392
13408
|
};
|
|
13393
13409
|
/**
|
|
13394
13410
|
* The billing processor that owns this invoice.
|
|
@@ -33591,6 +33607,14 @@ type ListInvoicesParams = {
|
|
|
33591
33607
|
* Filter invoices to a single entity by ID. Must be provided together with customer_id, since entity IDs are only unique per customer.
|
|
33592
33608
|
*/
|
|
33593
33609
|
entityId?: string | undefined;
|
|
33610
|
+
/**
|
|
33611
|
+
* Filter to the invoice with this Autumn invoice ID (e.g. inv_2b3c4d5e6f7g8h).
|
|
33612
|
+
*/
|
|
33613
|
+
invoiceId?: string | undefined;
|
|
33614
|
+
/**
|
|
33615
|
+
* Filter to the invoice with this Stripe invoice ID (e.g. in_1A2B3C4D5E6F7G8H).
|
|
33616
|
+
*/
|
|
33617
|
+
stripeId?: string | undefined;
|
|
33594
33618
|
/**
|
|
33595
33619
|
* Filter by invoice status (draft, open, paid, void, uncollectible).
|
|
33596
33620
|
*/
|
|
@@ -49235,6 +49259,18 @@ type RefreshKeyResponse = {
|
|
|
49235
49259
|
refreshExpiresAt?: number | undefined;
|
|
49236
49260
|
};
|
|
49237
49261
|
|
|
49262
|
+
/**
|
|
49263
|
+
* How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
|
|
49264
|
+
*/
|
|
49265
|
+
declare const ReissueInvoiceIssueMethod: {
|
|
49266
|
+
readonly Draft: "draft";
|
|
49267
|
+
readonly Finalize: "finalize";
|
|
49268
|
+
readonly Send: "send";
|
|
49269
|
+
};
|
|
49270
|
+
/**
|
|
49271
|
+
* How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
|
|
49272
|
+
*/
|
|
49273
|
+
type ReissueInvoiceIssueMethod = ClosedEnum<typeof ReissueInvoiceIssueMethod>;
|
|
49238
49274
|
type CustomField = {
|
|
49239
49275
|
name: string;
|
|
49240
49276
|
value: string;
|
|
@@ -49945,6 +49981,10 @@ type ReissueInvoiceParams = {
|
|
|
49945
49981
|
* If true, returns the replacement invoice's lines and totals without voiding anything or issuing it.
|
|
49946
49982
|
*/
|
|
49947
49983
|
preview?: boolean | undefined;
|
|
49984
|
+
/**
|
|
49985
|
+
* How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
|
|
49986
|
+
*/
|
|
49987
|
+
issueMethod?: ReissueInvoiceIssueMethod | undefined;
|
|
49948
49988
|
/**
|
|
49949
49989
|
* Updates the customer's billing email before the replacement is issued, so Stripe sends the new invoice to this address.
|
|
49950
49990
|
*/
|
|
@@ -11796,6 +11796,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
|
|
|
11796
11796
|
Prepaid: "prepaid",
|
|
11797
11797
|
UsageBased: "usage_based"
|
|
11798
11798
|
};
|
|
11799
|
+
var CreateInvoiceIssueMethod = {
|
|
11800
|
+
Draft: "draft",
|
|
11801
|
+
Finalize: "finalize",
|
|
11802
|
+
Send: "send"
|
|
11803
|
+
};
|
|
11799
11804
|
var CreateInvoiceProcessorType = {
|
|
11800
11805
|
Stripe: "stripe",
|
|
11801
11806
|
Revenuecat: "revenuecat"
|
|
@@ -12301,6 +12306,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
|
|
|
12301
12306
|
});
|
|
12302
12307
|
})
|
|
12303
12308
|
);
|
|
12309
|
+
var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
|
|
12304
12310
|
var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
12305
12311
|
z26.object({
|
|
12306
12312
|
customerId: z26.string(),
|
|
@@ -12318,7 +12324,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
|
12318
12324
|
taxRateId: z26.optional(z26.string()),
|
|
12319
12325
|
periodStart: z26.optional(z26.int()),
|
|
12320
12326
|
periodEnd: z26.optional(z26.int()),
|
|
12321
|
-
preview: z26.optional(z26.boolean())
|
|
12327
|
+
preview: z26.optional(z26.boolean()),
|
|
12328
|
+
issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
|
|
12322
12329
|
}),
|
|
12323
12330
|
z26.transform((v) => {
|
|
12324
12331
|
return remap(v, {
|
|
@@ -12330,7 +12337,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
|
12330
12337
|
dueDate: "due_date",
|
|
12331
12338
|
taxRateId: "tax_rate_id",
|
|
12332
12339
|
periodStart: "period_start",
|
|
12333
|
-
periodEnd: "period_end"
|
|
12340
|
+
periodEnd: "period_end",
|
|
12341
|
+
issueMethod: "issue_method"
|
|
12334
12342
|
});
|
|
12335
12343
|
})
|
|
12336
12344
|
);
|
|
@@ -29091,6 +29099,8 @@ var ListInvoicesParams$outboundSchema = z72.pipe(
|
|
|
29091
29099
|
limit: z72._default(z72.int(), 50),
|
|
29092
29100
|
customerId: z72.optional(z72.string()),
|
|
29093
29101
|
entityId: z72.optional(z72.string()),
|
|
29102
|
+
invoiceId: z72.optional(z72.string()),
|
|
29103
|
+
stripeId: z72.optional(z72.string()),
|
|
29094
29104
|
status: z72.optional(z72.array(ListInvoicesStatus$outboundSchema)),
|
|
29095
29105
|
processorTypes: z72.optional(
|
|
29096
29106
|
z72.array(ListInvoicesProcessorTypeRequestBody$outboundSchema)
|
|
@@ -29101,6 +29111,8 @@ var ListInvoicesParams$outboundSchema = z72.pipe(
|
|
|
29101
29111
|
startCursor: "start_cursor",
|
|
29102
29112
|
customerId: "customer_id",
|
|
29103
29113
|
entityId: "entity_id",
|
|
29114
|
+
invoiceId: "invoice_id",
|
|
29115
|
+
stripeId: "stripe_id",
|
|
29104
29116
|
processorTypes: "processor_types"
|
|
29105
29117
|
});
|
|
29106
29118
|
})
|
|
@@ -41994,6 +42006,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
|
|
|
41994
42006
|
|
|
41995
42007
|
// ../sdk/src/models/reissue-invoice-op.ts
|
|
41996
42008
|
import * as z98 from "zod/v4-mini";
|
|
42009
|
+
var ReissueInvoiceIssueMethod = {
|
|
42010
|
+
Draft: "draft",
|
|
42011
|
+
Finalize: "finalize",
|
|
42012
|
+
Send: "send"
|
|
42013
|
+
};
|
|
41997
42014
|
var PaymentMethodType = {
|
|
41998
42015
|
Card: "card",
|
|
41999
42016
|
CustomerBalance: "customer_balance",
|
|
@@ -42060,6 +42077,7 @@ var ReissueInvoiceStatus = {
|
|
|
42060
42077
|
Complete: "complete",
|
|
42061
42078
|
Incomplete: "incomplete"
|
|
42062
42079
|
};
|
|
42080
|
+
var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
|
|
42063
42081
|
var CustomField$outboundSchema = z98.object({
|
|
42064
42082
|
name: z98.string(),
|
|
42065
42083
|
value: z98.string()
|
|
@@ -42651,6 +42669,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
|
|
|
42651
42669
|
invoiceTemplateId: z98.optional(z98.string()),
|
|
42652
42670
|
netTermsDays: z98.optional(z98.int()),
|
|
42653
42671
|
preview: z98.optional(z98.boolean()),
|
|
42672
|
+
issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
|
|
42654
42673
|
updateCustomerEmail: z98.optional(z98.string()),
|
|
42655
42674
|
invoice: z98.optional(
|
|
42656
42675
|
z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
|
|
@@ -42663,6 +42682,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
|
|
|
42663
42682
|
invoiceId: "invoice_id",
|
|
42664
42683
|
invoiceTemplateId: "invoice_template_id",
|
|
42665
42684
|
netTermsDays: "net_terms_days",
|
|
42685
|
+
issueMethod: "issue_method",
|
|
42666
42686
|
updateCustomerEmail: "update_customer_email"
|
|
42667
42687
|
});
|
|
42668
42688
|
})
|
|
@@ -18644,6 +18644,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
|
|
|
18644
18644
|
Prepaid: "prepaid",
|
|
18645
18645
|
UsageBased: "usage_based"
|
|
18646
18646
|
};
|
|
18647
|
+
var CreateInvoiceIssueMethod = {
|
|
18648
|
+
Draft: "draft",
|
|
18649
|
+
Finalize: "finalize",
|
|
18650
|
+
Send: "send"
|
|
18651
|
+
};
|
|
18647
18652
|
var CreateInvoiceProcessorType = {
|
|
18648
18653
|
Stripe: "stripe",
|
|
18649
18654
|
Revenuecat: "revenuecat"
|
|
@@ -19149,6 +19154,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z45.pipe(
|
|
|
19149
19154
|
});
|
|
19150
19155
|
})
|
|
19151
19156
|
);
|
|
19157
|
+
var CreateInvoiceIssueMethod$outboundSchema = z45.enum(CreateInvoiceIssueMethod);
|
|
19152
19158
|
var CreateInvoiceParams$outboundSchema = z45.pipe(
|
|
19153
19159
|
z45.object({
|
|
19154
19160
|
customerId: z45.string(),
|
|
@@ -19166,7 +19172,8 @@ var CreateInvoiceParams$outboundSchema = z45.pipe(
|
|
|
19166
19172
|
taxRateId: z45.optional(z45.string()),
|
|
19167
19173
|
periodStart: z45.optional(z45.int()),
|
|
19168
19174
|
periodEnd: z45.optional(z45.int()),
|
|
19169
|
-
preview: z45.optional(z45.boolean())
|
|
19175
|
+
preview: z45.optional(z45.boolean()),
|
|
19176
|
+
issueMethod: z45.optional(CreateInvoiceIssueMethod$outboundSchema)
|
|
19170
19177
|
}),
|
|
19171
19178
|
z45.transform((v) => {
|
|
19172
19179
|
return remap(v, {
|
|
@@ -19178,7 +19185,8 @@ var CreateInvoiceParams$outboundSchema = z45.pipe(
|
|
|
19178
19185
|
dueDate: "due_date",
|
|
19179
19186
|
taxRateId: "tax_rate_id",
|
|
19180
19187
|
periodStart: "period_start",
|
|
19181
|
-
periodEnd: "period_end"
|
|
19188
|
+
periodEnd: "period_end",
|
|
19189
|
+
issueMethod: "issue_method"
|
|
19182
19190
|
});
|
|
19183
19191
|
})
|
|
19184
19192
|
);
|
|
@@ -35939,6 +35947,8 @@ var ListInvoicesParams$outboundSchema = z91.pipe(
|
|
|
35939
35947
|
limit: z91._default(z91.int(), 50),
|
|
35940
35948
|
customerId: z91.optional(z91.string()),
|
|
35941
35949
|
entityId: z91.optional(z91.string()),
|
|
35950
|
+
invoiceId: z91.optional(z91.string()),
|
|
35951
|
+
stripeId: z91.optional(z91.string()),
|
|
35942
35952
|
status: z91.optional(z91.array(ListInvoicesStatus$outboundSchema)),
|
|
35943
35953
|
processorTypes: z91.optional(
|
|
35944
35954
|
z91.array(ListInvoicesProcessorTypeRequestBody$outboundSchema)
|
|
@@ -35949,6 +35959,8 @@ var ListInvoicesParams$outboundSchema = z91.pipe(
|
|
|
35949
35959
|
startCursor: "start_cursor",
|
|
35950
35960
|
customerId: "customer_id",
|
|
35951
35961
|
entityId: "entity_id",
|
|
35962
|
+
invoiceId: "invoice_id",
|
|
35963
|
+
stripeId: "stripe_id",
|
|
35952
35964
|
processorTypes: "processor_types"
|
|
35953
35965
|
});
|
|
35954
35966
|
})
|
|
@@ -48842,6 +48854,11 @@ var RefreshKeyResponse$inboundSchema = z116.pipe(
|
|
|
48842
48854
|
|
|
48843
48855
|
// ../sdk/src/models/reissue-invoice-op.ts
|
|
48844
48856
|
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
48857
|
+
var ReissueInvoiceIssueMethod = {
|
|
48858
|
+
Draft: "draft",
|
|
48859
|
+
Finalize: "finalize",
|
|
48860
|
+
Send: "send"
|
|
48861
|
+
};
|
|
48845
48862
|
var PaymentMethodType = {
|
|
48846
48863
|
Card: "card",
|
|
48847
48864
|
CustomerBalance: "customer_balance",
|
|
@@ -48908,6 +48925,7 @@ var ReissueInvoiceStatus = {
|
|
|
48908
48925
|
Complete: "complete",
|
|
48909
48926
|
Incomplete: "incomplete"
|
|
48910
48927
|
};
|
|
48928
|
+
var ReissueInvoiceIssueMethod$outboundSchema = z117.enum(ReissueInvoiceIssueMethod);
|
|
48911
48929
|
var CustomField$outboundSchema = z117.object({
|
|
48912
48930
|
name: z117.string(),
|
|
48913
48931
|
value: z117.string()
|
|
@@ -49499,6 +49517,7 @@ var ReissueInvoiceParams$outboundSchema = z117.pipe(
|
|
|
49499
49517
|
invoiceTemplateId: z117.optional(z117.string()),
|
|
49500
49518
|
netTermsDays: z117.optional(z117.int()),
|
|
49501
49519
|
preview: z117.optional(z117.boolean()),
|
|
49520
|
+
issueMethod: z117.optional(ReissueInvoiceIssueMethod$outboundSchema),
|
|
49502
49521
|
updateCustomerEmail: z117.optional(z117.string()),
|
|
49503
49522
|
invoice: z117.optional(
|
|
49504
49523
|
z117.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
|
|
@@ -49511,6 +49530,7 @@ var ReissueInvoiceParams$outboundSchema = z117.pipe(
|
|
|
49511
49530
|
invoiceId: "invoice_id",
|
|
49512
49531
|
invoiceTemplateId: "invoice_template_id",
|
|
49513
49532
|
netTermsDays: "net_terms_days",
|
|
49533
|
+
issueMethod: "issue_method",
|
|
49514
49534
|
updateCustomerEmail: "update_customer_email"
|
|
49515
49535
|
});
|
|
49516
49536
|
})
|
|
@@ -11815,6 +11815,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
|
|
|
11815
11815
|
Prepaid: "prepaid",
|
|
11816
11816
|
UsageBased: "usage_based"
|
|
11817
11817
|
};
|
|
11818
|
+
var CreateInvoiceIssueMethod = {
|
|
11819
|
+
Draft: "draft",
|
|
11820
|
+
Finalize: "finalize",
|
|
11821
|
+
Send: "send"
|
|
11822
|
+
};
|
|
11818
11823
|
var CreateInvoiceProcessorType = {
|
|
11819
11824
|
Stripe: "stripe",
|
|
11820
11825
|
Revenuecat: "revenuecat"
|
|
@@ -12320,6 +12325,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
|
|
|
12320
12325
|
});
|
|
12321
12326
|
})
|
|
12322
12327
|
);
|
|
12328
|
+
var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
|
|
12323
12329
|
var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
12324
12330
|
z26.object({
|
|
12325
12331
|
customerId: z26.string(),
|
|
@@ -12337,7 +12343,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
|
12337
12343
|
taxRateId: z26.optional(z26.string()),
|
|
12338
12344
|
periodStart: z26.optional(z26.int()),
|
|
12339
12345
|
periodEnd: z26.optional(z26.int()),
|
|
12340
|
-
preview: z26.optional(z26.boolean())
|
|
12346
|
+
preview: z26.optional(z26.boolean()),
|
|
12347
|
+
issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
|
|
12341
12348
|
}),
|
|
12342
12349
|
z26.transform((v) => {
|
|
12343
12350
|
return remap(v, {
|
|
@@ -12349,7 +12356,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
|
|
|
12349
12356
|
dueDate: "due_date",
|
|
12350
12357
|
taxRateId: "tax_rate_id",
|
|
12351
12358
|
periodStart: "period_start",
|
|
12352
|
-
periodEnd: "period_end"
|
|
12359
|
+
periodEnd: "period_end",
|
|
12360
|
+
issueMethod: "issue_method"
|
|
12353
12361
|
});
|
|
12354
12362
|
})
|
|
12355
12363
|
);
|
|
@@ -29110,6 +29118,8 @@ var ListInvoicesParams$outboundSchema = z72.pipe(
|
|
|
29110
29118
|
limit: z72._default(z72.int(), 50),
|
|
29111
29119
|
customerId: z72.optional(z72.string()),
|
|
29112
29120
|
entityId: z72.optional(z72.string()),
|
|
29121
|
+
invoiceId: z72.optional(z72.string()),
|
|
29122
|
+
stripeId: z72.optional(z72.string()),
|
|
29113
29123
|
status: z72.optional(z72.array(ListInvoicesStatus$outboundSchema)),
|
|
29114
29124
|
processorTypes: z72.optional(
|
|
29115
29125
|
z72.array(ListInvoicesProcessorTypeRequestBody$outboundSchema)
|
|
@@ -29120,6 +29130,8 @@ var ListInvoicesParams$outboundSchema = z72.pipe(
|
|
|
29120
29130
|
startCursor: "start_cursor",
|
|
29121
29131
|
customerId: "customer_id",
|
|
29122
29132
|
entityId: "entity_id",
|
|
29133
|
+
invoiceId: "invoice_id",
|
|
29134
|
+
stripeId: "stripe_id",
|
|
29123
29135
|
processorTypes: "processor_types"
|
|
29124
29136
|
});
|
|
29125
29137
|
})
|
|
@@ -42013,6 +42025,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
|
|
|
42013
42025
|
|
|
42014
42026
|
// ../sdk/src/models/reissue-invoice-op.ts
|
|
42015
42027
|
var z98 = __toESM(require("zod/v4-mini"), 1);
|
|
42028
|
+
var ReissueInvoiceIssueMethod = {
|
|
42029
|
+
Draft: "draft",
|
|
42030
|
+
Finalize: "finalize",
|
|
42031
|
+
Send: "send"
|
|
42032
|
+
};
|
|
42016
42033
|
var PaymentMethodType = {
|
|
42017
42034
|
Card: "card",
|
|
42018
42035
|
CustomerBalance: "customer_balance",
|
|
@@ -42079,6 +42096,7 @@ var ReissueInvoiceStatus = {
|
|
|
42079
42096
|
Complete: "complete",
|
|
42080
42097
|
Incomplete: "incomplete"
|
|
42081
42098
|
};
|
|
42099
|
+
var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
|
|
42082
42100
|
var CustomField$outboundSchema = z98.object({
|
|
42083
42101
|
name: z98.string(),
|
|
42084
42102
|
value: z98.string()
|
|
@@ -42670,6 +42688,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
|
|
|
42670
42688
|
invoiceTemplateId: z98.optional(z98.string()),
|
|
42671
42689
|
netTermsDays: z98.optional(z98.int()),
|
|
42672
42690
|
preview: z98.optional(z98.boolean()),
|
|
42691
|
+
issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
|
|
42673
42692
|
updateCustomerEmail: z98.optional(z98.string()),
|
|
42674
42693
|
invoice: z98.optional(
|
|
42675
42694
|
z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
|
|
@@ -42682,6 +42701,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
|
|
|
42682
42701
|
invoiceId: "invoice_id",
|
|
42683
42702
|
invoiceTemplateId: "invoice_template_id",
|
|
42684
42703
|
netTermsDays: "net_terms_days",
|
|
42704
|
+
issueMethod: "issue_method",
|
|
42685
42705
|
updateCustomerEmail: "update_customer_email"
|
|
42686
42706
|
});
|
|
42687
42707
|
})
|
|
@@ -18648,6 +18648,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
|
|
|
18648
18648
|
Prepaid: "prepaid",
|
|
18649
18649
|
UsageBased: "usage_based"
|
|
18650
18650
|
};
|
|
18651
|
+
var CreateInvoiceIssueMethod = {
|
|
18652
|
+
Draft: "draft",
|
|
18653
|
+
Finalize: "finalize",
|
|
18654
|
+
Send: "send"
|
|
18655
|
+
};
|
|
18651
18656
|
var CreateInvoiceProcessorType = {
|
|
18652
18657
|
Stripe: "stripe",
|
|
18653
18658
|
Revenuecat: "revenuecat"
|
|
@@ -19153,6 +19158,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z45.pipe(
|
|
|
19153
19158
|
});
|
|
19154
19159
|
})
|
|
19155
19160
|
);
|
|
19161
|
+
var CreateInvoiceIssueMethod$outboundSchema = z45.enum(CreateInvoiceIssueMethod);
|
|
19156
19162
|
var CreateInvoiceParams$outboundSchema = z45.pipe(
|
|
19157
19163
|
z45.object({
|
|
19158
19164
|
customerId: z45.string(),
|
|
@@ -19170,7 +19176,8 @@ var CreateInvoiceParams$outboundSchema = z45.pipe(
|
|
|
19170
19176
|
taxRateId: z45.optional(z45.string()),
|
|
19171
19177
|
periodStart: z45.optional(z45.int()),
|
|
19172
19178
|
periodEnd: z45.optional(z45.int()),
|
|
19173
|
-
preview: z45.optional(z45.boolean())
|
|
19179
|
+
preview: z45.optional(z45.boolean()),
|
|
19180
|
+
issueMethod: z45.optional(CreateInvoiceIssueMethod$outboundSchema)
|
|
19174
19181
|
}),
|
|
19175
19182
|
z45.transform((v) => {
|
|
19176
19183
|
return remap(v, {
|
|
@@ -19182,7 +19189,8 @@ var CreateInvoiceParams$outboundSchema = z45.pipe(
|
|
|
19182
19189
|
dueDate: "due_date",
|
|
19183
19190
|
taxRateId: "tax_rate_id",
|
|
19184
19191
|
periodStart: "period_start",
|
|
19185
|
-
periodEnd: "period_end"
|
|
19192
|
+
periodEnd: "period_end",
|
|
19193
|
+
issueMethod: "issue_method"
|
|
19186
19194
|
});
|
|
19187
19195
|
})
|
|
19188
19196
|
);
|
|
@@ -35943,6 +35951,8 @@ var ListInvoicesParams$outboundSchema = z91.pipe(
|
|
|
35943
35951
|
limit: z91._default(z91.int(), 50),
|
|
35944
35952
|
customerId: z91.optional(z91.string()),
|
|
35945
35953
|
entityId: z91.optional(z91.string()),
|
|
35954
|
+
invoiceId: z91.optional(z91.string()),
|
|
35955
|
+
stripeId: z91.optional(z91.string()),
|
|
35946
35956
|
status: z91.optional(z91.array(ListInvoicesStatus$outboundSchema)),
|
|
35947
35957
|
processorTypes: z91.optional(
|
|
35948
35958
|
z91.array(ListInvoicesProcessorTypeRequestBody$outboundSchema)
|
|
@@ -35953,6 +35963,8 @@ var ListInvoicesParams$outboundSchema = z91.pipe(
|
|
|
35953
35963
|
startCursor: "start_cursor",
|
|
35954
35964
|
customerId: "customer_id",
|
|
35955
35965
|
entityId: "entity_id",
|
|
35966
|
+
invoiceId: "invoice_id",
|
|
35967
|
+
stripeId: "stripe_id",
|
|
35956
35968
|
processorTypes: "processor_types"
|
|
35957
35969
|
});
|
|
35958
35970
|
})
|
|
@@ -48846,6 +48858,11 @@ var RefreshKeyResponse$inboundSchema = z116.pipe(
|
|
|
48846
48858
|
|
|
48847
48859
|
// ../sdk/src/models/reissue-invoice-op.ts
|
|
48848
48860
|
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
48861
|
+
var ReissueInvoiceIssueMethod = {
|
|
48862
|
+
Draft: "draft",
|
|
48863
|
+
Finalize: "finalize",
|
|
48864
|
+
Send: "send"
|
|
48865
|
+
};
|
|
48849
48866
|
var PaymentMethodType = {
|
|
48850
48867
|
Card: "card",
|
|
48851
48868
|
CustomerBalance: "customer_balance",
|
|
@@ -48912,6 +48929,7 @@ var ReissueInvoiceStatus = {
|
|
|
48912
48929
|
Complete: "complete",
|
|
48913
48930
|
Incomplete: "incomplete"
|
|
48914
48931
|
};
|
|
48932
|
+
var ReissueInvoiceIssueMethod$outboundSchema = z117.enum(ReissueInvoiceIssueMethod);
|
|
48915
48933
|
var CustomField$outboundSchema = z117.object({
|
|
48916
48934
|
name: z117.string(),
|
|
48917
48935
|
value: z117.string()
|
|
@@ -49503,6 +49521,7 @@ var ReissueInvoiceParams$outboundSchema = z117.pipe(
|
|
|
49503
49521
|
invoiceTemplateId: z117.optional(z117.string()),
|
|
49504
49522
|
netTermsDays: z117.optional(z117.int()),
|
|
49505
49523
|
preview: z117.optional(z117.boolean()),
|
|
49524
|
+
issueMethod: z117.optional(ReissueInvoiceIssueMethod$outboundSchema),
|
|
49506
49525
|
updateCustomerEmail: z117.optional(z117.string()),
|
|
49507
49526
|
invoice: z117.optional(
|
|
49508
49527
|
z117.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
|
|
@@ -49515,6 +49534,7 @@ var ReissueInvoiceParams$outboundSchema = z117.pipe(
|
|
|
49515
49534
|
invoiceId: "invoice_id",
|
|
49516
49535
|
invoiceTemplateId: "invoice_template_id",
|
|
49517
49536
|
netTermsDays: "net_terms_days",
|
|
49537
|
+
issueMethod: "issue_method",
|
|
49518
49538
|
updateCustomerEmail: "update_customer_email"
|
|
49519
49539
|
});
|
|
49520
49540
|
})
|