@dodopayments/better-auth 1.6.2 → 1.6.3
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/README.md +2 -2
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/hooks/customer.d.cts +1 -1
- package/dist/hooks/customer.d.ts +1 -1
- package/dist/index.d.cts +40 -5
- package/dist/index.d.ts +40 -5
- package/dist/index.js +6 -6
- package/dist/plugins/checkout.d.cts +1 -1
- package/dist/plugins/checkout.d.ts +1 -1
- package/dist/plugins/portal.d.cts +1 -1
- package/dist/plugins/portal.d.ts +1 -1
- package/dist/plugins/usage.d.cts +1 -1
- package/dist/plugins/usage.d.ts +1 -1
- package/dist/plugins/webhooks.d.cts +1 -1
- package/dist/plugins/webhooks.d.ts +1 -1
- package/dist/{types-D0tVSLaf.d.cts → types-nGEm2vCL.d.cts} +38 -3
- package/dist/{types-D0tVSLaf.d.ts → types-nGEm2vCL.d.ts} +38 -3
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ Initialize the client in your application to interact with the payment endpoints
|
|
|
90
90
|
```typescript
|
|
91
91
|
// src/lib/auth-client.ts
|
|
92
92
|
import { createAuthClient } from "better-auth/react";
|
|
93
|
-
import { dodopaymentsClient } from "@dodopayments/better-auth";
|
|
93
|
+
import { dodopaymentsClient } from "@dodopayments/better-auth/client";
|
|
94
94
|
|
|
95
95
|
export const authClient = createAuthClient({
|
|
96
96
|
baseURL: process.env.BETTER_AUTH_URL || "http://localhost:3000",
|
|
@@ -282,7 +282,7 @@ STEP 4: Client Configuration
|
|
|
282
282
|
Create or update your auth client file (src/lib/auth-client.ts):
|
|
283
283
|
|
|
284
284
|
import { createAuthClient } from "better-auth/react";
|
|
285
|
-
import { dodopaymentsClient } from "@dodopayments/better-auth";
|
|
285
|
+
import { dodopaymentsClient } from "@dodopayments/better-auth/client";
|
|
286
286
|
|
|
287
287
|
export const authClient = createAuthClient({
|
|
288
288
|
baseURL: process.env.BETTER_AUTH_URL || "http://localhost:3000",
|
package/dist/client.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { dodopaymentsClient } from './index.cjs';
|
|
2
|
-
export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-
|
|
2
|
+
export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-nGEm2vCL.cjs';
|
|
3
3
|
import 'dodopayments/resources/usage-events.mjs';
|
|
4
4
|
import 'better-auth';
|
|
5
5
|
import 'zod/v3';
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { dodopaymentsClient } from './index.js';
|
|
2
|
-
export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-
|
|
2
|
+
export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-nGEm2vCL.js';
|
|
3
3
|
import 'dodopayments/resources/usage-events.mjs';
|
|
4
4
|
import 'better-auth';
|
|
5
5
|
import 'zod/v3';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { User, GenericEndpointContext } from 'better-auth';
|
|
2
|
-
import { D as DodoPaymentsOptions } from '../types-
|
|
2
|
+
import { D as DodoPaymentsOptions } from '../types-nGEm2vCL.cjs';
|
|
3
3
|
import 'dodopayments';
|
|
4
4
|
import 'zod/v3';
|
|
5
5
|
import '@dodopayments/core/webhook';
|
package/dist/hooks/customer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { User, GenericEndpointContext } from 'better-auth';
|
|
2
|
-
import { D as DodoPaymentsOptions } from '../types-
|
|
2
|
+
import { D as DodoPaymentsOptions } from '../types-nGEm2vCL.js';
|
|
3
3
|
import 'dodopayments';
|
|
4
4
|
import 'zod/v3';
|
|
5
5
|
import '@dodopayments/core/webhook';
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as dodopayments_resources_usage_events_mjs from 'dodopayments/resources/usage-events.mjs';
|
|
2
2
|
import * as better_auth from 'better-auth';
|
|
3
|
-
import { D as DodoPaymentsOptions, C as CreateCheckoutResponse, a as CustomerPortalResponse, S as SubscriptionItems, P as PaymentItems, W as WebhookResponse } from './types-
|
|
4
|
-
export { g as CheckoutOptions, e as DodoPaymentsEndpoints, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, b as Product, f as checkout, p as portal, u as usage, w as webhooks } from './types-
|
|
3
|
+
import { D as DodoPaymentsOptions, C as CreateCheckoutResponse, a as CustomerPortalResponse, S as SubscriptionItems, P as PaymentItems, W as WebhookResponse } from './types-nGEm2vCL.cjs';
|
|
4
|
+
export { g as CheckoutOptions, e as DodoPaymentsEndpoints, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, b as Product, f as checkout, p as portal, u as usage, w as webhooks } from './types-nGEm2vCL.cjs';
|
|
5
5
|
import * as zod_v3 from 'zod/v3';
|
|
6
6
|
import 'dodopayments';
|
|
7
7
|
import '@dodopayments/core/webhook';
|
|
@@ -80,6 +80,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
80
80
|
}>, "many">>;
|
|
81
81
|
metadata: zod_v3.ZodOptional<zod_v3.ZodRecord<zod_v3.ZodString, zod_v3.ZodString>>;
|
|
82
82
|
currency: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
83
|
+
discount_code: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
84
|
+
discount_codes: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
83
85
|
} & {
|
|
84
86
|
slug: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
85
87
|
referenceId: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
@@ -141,6 +143,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
141
143
|
}>, "many">>;
|
|
142
144
|
metadata: zod_v3.ZodOptional<zod_v3.ZodRecord<zod_v3.ZodString, zod_v3.ZodString>>;
|
|
143
145
|
currency: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
146
|
+
discount_code: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
147
|
+
discount_codes: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
144
148
|
} & {
|
|
145
149
|
slug: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
146
150
|
referenceId: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
@@ -202,6 +206,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
202
206
|
}>, "many">>;
|
|
203
207
|
metadata: zod_v3.ZodOptional<zod_v3.ZodRecord<zod_v3.ZodString, zod_v3.ZodString>>;
|
|
204
208
|
currency: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
209
|
+
discount_code: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
210
|
+
discount_codes: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
205
211
|
} & {
|
|
206
212
|
slug: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
207
213
|
referenceId: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
@@ -227,6 +233,16 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
227
233
|
addon_id: string;
|
|
228
234
|
}>, "many">>;
|
|
229
235
|
amount: zod_v3.ZodOptional<zod_v3.ZodNumber>;
|
|
236
|
+
credit_entitlements: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodObject<{
|
|
237
|
+
credit_entitlement_id: zod_v3.ZodString;
|
|
238
|
+
credits_amount: zod_v3.ZodString;
|
|
239
|
+
}, "strip", zod_v3.ZodTypeAny, {
|
|
240
|
+
credit_entitlement_id: string;
|
|
241
|
+
credits_amount: string;
|
|
242
|
+
}, {
|
|
243
|
+
credit_entitlement_id: string;
|
|
244
|
+
credits_amount: string;
|
|
245
|
+
}>, "many">>;
|
|
230
246
|
}, "strip", zod_v3.ZodTypeAny, {
|
|
231
247
|
quantity: number;
|
|
232
248
|
product_id: string;
|
|
@@ -235,6 +251,10 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
235
251
|
addon_id: string;
|
|
236
252
|
}[] | undefined;
|
|
237
253
|
amount?: number | undefined;
|
|
254
|
+
credit_entitlements?: {
|
|
255
|
+
credit_entitlement_id: string;
|
|
256
|
+
credits_amount: string;
|
|
257
|
+
}[] | undefined;
|
|
238
258
|
}, {
|
|
239
259
|
quantity: number;
|
|
240
260
|
product_id: string;
|
|
@@ -243,6 +263,10 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
243
263
|
addon_id: string;
|
|
244
264
|
}[] | undefined;
|
|
245
265
|
amount?: number | undefined;
|
|
266
|
+
credit_entitlements?: {
|
|
267
|
+
credit_entitlement_id: string;
|
|
268
|
+
credits_amount: string;
|
|
269
|
+
}[] | undefined;
|
|
246
270
|
}>, "many">>;
|
|
247
271
|
customer: zod_v3.ZodOptional<zod_v3.ZodUnion<[zod_v3.ZodObject<{
|
|
248
272
|
email: zod_v3.ZodString;
|
|
@@ -264,6 +288,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
264
288
|
customer_id: string;
|
|
265
289
|
}>]>>;
|
|
266
290
|
metadata: zod_v3.ZodOptional<zod_v3.ZodRecord<zod_v3.ZodString, zod_v3.ZodString>>;
|
|
291
|
+
discount_code: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
292
|
+
discount_codes: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
267
293
|
slug: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
268
294
|
referenceId: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
269
295
|
billing_address: zod_v3.ZodOptional<zod_v3.ZodObject<{
|
|
@@ -290,7 +316,6 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
290
316
|
billing_currency: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
291
317
|
show_saved_payment_methods: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
|
|
292
318
|
confirm: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
|
|
293
|
-
discount_code: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
294
319
|
customization: zod_v3.ZodOptional<zod_v3.ZodObject<{
|
|
295
320
|
theme: zod_v3.ZodOptional<zod_v3.ZodEnum<["light", "dark", "system"]>>;
|
|
296
321
|
show_order_details: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
|
|
@@ -397,6 +422,10 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
397
422
|
addon_id: string;
|
|
398
423
|
}[] | undefined;
|
|
399
424
|
amount?: number | undefined;
|
|
425
|
+
credit_entitlements?: {
|
|
426
|
+
credit_entitlement_id: string;
|
|
427
|
+
credits_amount: string;
|
|
428
|
+
}[] | undefined;
|
|
400
429
|
}[] | undefined;
|
|
401
430
|
customer?: {
|
|
402
431
|
email: string;
|
|
@@ -406,6 +435,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
406
435
|
customer_id: string;
|
|
407
436
|
} | undefined;
|
|
408
437
|
metadata?: Record<string, string> | undefined;
|
|
438
|
+
discount_code?: string | undefined;
|
|
439
|
+
discount_codes?: string[] | undefined;
|
|
409
440
|
slug?: string | undefined;
|
|
410
441
|
referenceId?: string | undefined;
|
|
411
442
|
billing_address?: {
|
|
@@ -420,7 +451,6 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
420
451
|
billing_currency?: string | undefined;
|
|
421
452
|
show_saved_payment_methods?: boolean | undefined;
|
|
422
453
|
confirm?: boolean | undefined;
|
|
423
|
-
discount_code?: string | undefined;
|
|
424
454
|
customization?: {
|
|
425
455
|
theme?: "light" | "dark" | "system" | undefined;
|
|
426
456
|
show_order_details?: boolean | undefined;
|
|
@@ -461,6 +491,10 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
461
491
|
addon_id: string;
|
|
462
492
|
}[] | undefined;
|
|
463
493
|
amount?: number | undefined;
|
|
494
|
+
credit_entitlements?: {
|
|
495
|
+
credit_entitlement_id: string;
|
|
496
|
+
credits_amount: string;
|
|
497
|
+
}[] | undefined;
|
|
464
498
|
}[] | undefined;
|
|
465
499
|
customer?: {
|
|
466
500
|
email: string;
|
|
@@ -470,6 +504,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
470
504
|
customer_id: string;
|
|
471
505
|
} | undefined;
|
|
472
506
|
metadata?: Record<string, string> | undefined;
|
|
507
|
+
discount_code?: string | undefined;
|
|
508
|
+
discount_codes?: string[] | undefined;
|
|
473
509
|
slug?: string | undefined;
|
|
474
510
|
referenceId?: string | undefined;
|
|
475
511
|
billing_address?: {
|
|
@@ -484,7 +520,6 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
484
520
|
billing_currency?: string | undefined;
|
|
485
521
|
show_saved_payment_methods?: boolean | undefined;
|
|
486
522
|
confirm?: boolean | undefined;
|
|
487
|
-
discount_code?: string | undefined;
|
|
488
523
|
customization?: {
|
|
489
524
|
theme?: "light" | "dark" | "system" | undefined;
|
|
490
525
|
show_order_details?: boolean | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as dodopayments_resources_usage_events_mjs from 'dodopayments/resources/usage-events.mjs';
|
|
2
2
|
import * as better_auth from 'better-auth';
|
|
3
|
-
import { D as DodoPaymentsOptions, C as CreateCheckoutResponse, a as CustomerPortalResponse, S as SubscriptionItems, P as PaymentItems, W as WebhookResponse } from './types-
|
|
4
|
-
export { g as CheckoutOptions, e as DodoPaymentsEndpoints, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, b as Product, f as checkout, p as portal, u as usage, w as webhooks } from './types-
|
|
3
|
+
import { D as DodoPaymentsOptions, C as CreateCheckoutResponse, a as CustomerPortalResponse, S as SubscriptionItems, P as PaymentItems, W as WebhookResponse } from './types-nGEm2vCL.js';
|
|
4
|
+
export { g as CheckoutOptions, e as DodoPaymentsEndpoints, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, b as Product, f as checkout, p as portal, u as usage, w as webhooks } from './types-nGEm2vCL.js';
|
|
5
5
|
import * as zod_v3 from 'zod/v3';
|
|
6
6
|
import 'dodopayments';
|
|
7
7
|
import '@dodopayments/core/webhook';
|
|
@@ -80,6 +80,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
80
80
|
}>, "many">>;
|
|
81
81
|
metadata: zod_v3.ZodOptional<zod_v3.ZodRecord<zod_v3.ZodString, zod_v3.ZodString>>;
|
|
82
82
|
currency: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
83
|
+
discount_code: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
84
|
+
discount_codes: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
83
85
|
} & {
|
|
84
86
|
slug: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
85
87
|
referenceId: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
@@ -141,6 +143,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
141
143
|
}>, "many">>;
|
|
142
144
|
metadata: zod_v3.ZodOptional<zod_v3.ZodRecord<zod_v3.ZodString, zod_v3.ZodString>>;
|
|
143
145
|
currency: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
146
|
+
discount_code: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
147
|
+
discount_codes: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
144
148
|
} & {
|
|
145
149
|
slug: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
146
150
|
referenceId: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
@@ -202,6 +206,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
202
206
|
}>, "many">>;
|
|
203
207
|
metadata: zod_v3.ZodOptional<zod_v3.ZodRecord<zod_v3.ZodString, zod_v3.ZodString>>;
|
|
204
208
|
currency: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
209
|
+
discount_code: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
210
|
+
discount_codes: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
205
211
|
} & {
|
|
206
212
|
slug: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
207
213
|
referenceId: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
@@ -227,6 +233,16 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
227
233
|
addon_id: string;
|
|
228
234
|
}>, "many">>;
|
|
229
235
|
amount: zod_v3.ZodOptional<zod_v3.ZodNumber>;
|
|
236
|
+
credit_entitlements: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodObject<{
|
|
237
|
+
credit_entitlement_id: zod_v3.ZodString;
|
|
238
|
+
credits_amount: zod_v3.ZodString;
|
|
239
|
+
}, "strip", zod_v3.ZodTypeAny, {
|
|
240
|
+
credit_entitlement_id: string;
|
|
241
|
+
credits_amount: string;
|
|
242
|
+
}, {
|
|
243
|
+
credit_entitlement_id: string;
|
|
244
|
+
credits_amount: string;
|
|
245
|
+
}>, "many">>;
|
|
230
246
|
}, "strip", zod_v3.ZodTypeAny, {
|
|
231
247
|
quantity: number;
|
|
232
248
|
product_id: string;
|
|
@@ -235,6 +251,10 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
235
251
|
addon_id: string;
|
|
236
252
|
}[] | undefined;
|
|
237
253
|
amount?: number | undefined;
|
|
254
|
+
credit_entitlements?: {
|
|
255
|
+
credit_entitlement_id: string;
|
|
256
|
+
credits_amount: string;
|
|
257
|
+
}[] | undefined;
|
|
238
258
|
}, {
|
|
239
259
|
quantity: number;
|
|
240
260
|
product_id: string;
|
|
@@ -243,6 +263,10 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
243
263
|
addon_id: string;
|
|
244
264
|
}[] | undefined;
|
|
245
265
|
amount?: number | undefined;
|
|
266
|
+
credit_entitlements?: {
|
|
267
|
+
credit_entitlement_id: string;
|
|
268
|
+
credits_amount: string;
|
|
269
|
+
}[] | undefined;
|
|
246
270
|
}>, "many">>;
|
|
247
271
|
customer: zod_v3.ZodOptional<zod_v3.ZodUnion<[zod_v3.ZodObject<{
|
|
248
272
|
email: zod_v3.ZodString;
|
|
@@ -264,6 +288,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
264
288
|
customer_id: string;
|
|
265
289
|
}>]>>;
|
|
266
290
|
metadata: zod_v3.ZodOptional<zod_v3.ZodRecord<zod_v3.ZodString, zod_v3.ZodString>>;
|
|
291
|
+
discount_code: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
292
|
+
discount_codes: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
267
293
|
slug: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
268
294
|
referenceId: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
269
295
|
billing_address: zod_v3.ZodOptional<zod_v3.ZodObject<{
|
|
@@ -290,7 +316,6 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
290
316
|
billing_currency: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
291
317
|
show_saved_payment_methods: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
|
|
292
318
|
confirm: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
|
|
293
|
-
discount_code: zod_v3.ZodOptional<zod_v3.ZodString>;
|
|
294
319
|
customization: zod_v3.ZodOptional<zod_v3.ZodObject<{
|
|
295
320
|
theme: zod_v3.ZodOptional<zod_v3.ZodEnum<["light", "dark", "system"]>>;
|
|
296
321
|
show_order_details: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
|
|
@@ -397,6 +422,10 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
397
422
|
addon_id: string;
|
|
398
423
|
}[] | undefined;
|
|
399
424
|
amount?: number | undefined;
|
|
425
|
+
credit_entitlements?: {
|
|
426
|
+
credit_entitlement_id: string;
|
|
427
|
+
credits_amount: string;
|
|
428
|
+
}[] | undefined;
|
|
400
429
|
}[] | undefined;
|
|
401
430
|
customer?: {
|
|
402
431
|
email: string;
|
|
@@ -406,6 +435,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
406
435
|
customer_id: string;
|
|
407
436
|
} | undefined;
|
|
408
437
|
metadata?: Record<string, string> | undefined;
|
|
438
|
+
discount_code?: string | undefined;
|
|
439
|
+
discount_codes?: string[] | undefined;
|
|
409
440
|
slug?: string | undefined;
|
|
410
441
|
referenceId?: string | undefined;
|
|
411
442
|
billing_address?: {
|
|
@@ -420,7 +451,6 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
420
451
|
billing_currency?: string | undefined;
|
|
421
452
|
show_saved_payment_methods?: boolean | undefined;
|
|
422
453
|
confirm?: boolean | undefined;
|
|
423
|
-
discount_code?: string | undefined;
|
|
424
454
|
customization?: {
|
|
425
455
|
theme?: "light" | "dark" | "system" | undefined;
|
|
426
456
|
show_order_details?: boolean | undefined;
|
|
@@ -461,6 +491,10 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
461
491
|
addon_id: string;
|
|
462
492
|
}[] | undefined;
|
|
463
493
|
amount?: number | undefined;
|
|
494
|
+
credit_entitlements?: {
|
|
495
|
+
credit_entitlement_id: string;
|
|
496
|
+
credits_amount: string;
|
|
497
|
+
}[] | undefined;
|
|
464
498
|
}[] | undefined;
|
|
465
499
|
customer?: {
|
|
466
500
|
email: string;
|
|
@@ -470,6 +504,8 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
470
504
|
customer_id: string;
|
|
471
505
|
} | undefined;
|
|
472
506
|
metadata?: Record<string, string> | undefined;
|
|
507
|
+
discount_code?: string | undefined;
|
|
508
|
+
discount_codes?: string[] | undefined;
|
|
473
509
|
slug?: string | undefined;
|
|
474
510
|
referenceId?: string | undefined;
|
|
475
511
|
billing_address?: {
|
|
@@ -484,7 +520,6 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
|
|
|
484
520
|
billing_currency?: string | undefined;
|
|
485
521
|
show_saved_payment_methods?: boolean | undefined;
|
|
486
522
|
confirm?: boolean | undefined;
|
|
487
|
-
discount_code?: string | undefined;
|
|
488
523
|
customization?: {
|
|
489
524
|
theme?: "light" | "dark" | "system" | undefined;
|
|
490
525
|
show_order_details?: boolean | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
webhooks
|
|
3
|
-
} from "./chunk-XXIDSJPK.js";
|
|
4
|
-
import {
|
|
5
|
-
dodopaymentsClient
|
|
6
|
-
} from "./chunk-HZNE63HR.js";
|
|
7
1
|
import {
|
|
8
2
|
onUserCreate,
|
|
9
3
|
onUserUpdate
|
|
10
4
|
} from "./chunk-527Y7FSE.js";
|
|
5
|
+
import {
|
|
6
|
+
dodopaymentsClient
|
|
7
|
+
} from "./chunk-HZNE63HR.js";
|
|
11
8
|
import {
|
|
12
9
|
checkout
|
|
13
10
|
} from "./chunk-6VDYFSNJ.js";
|
|
@@ -18,6 +15,9 @@ import {
|
|
|
18
15
|
usage
|
|
19
16
|
} from "./chunk-ZA3TNX5K.js";
|
|
20
17
|
import "./chunk-EGRIWRWP.js";
|
|
18
|
+
import {
|
|
19
|
+
webhooks
|
|
20
|
+
} from "./chunk-XXIDSJPK.js";
|
|
21
21
|
|
|
22
22
|
// src/index.ts
|
|
23
23
|
var dodopayments = (options) => {
|
package/dist/plugins/portal.d.ts
CHANGED
package/dist/plugins/usage.d.cts
CHANGED
package/dist/plugins/usage.d.ts
CHANGED
|
@@ -83,6 +83,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
83
83
|
}>, "many">>;
|
|
84
84
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
85
85
|
currency: z.ZodOptional<z.ZodString>;
|
|
86
|
+
discount_code: z.ZodOptional<z.ZodString>;
|
|
87
|
+
discount_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
86
88
|
} & {
|
|
87
89
|
slug: z.ZodOptional<z.ZodString>;
|
|
88
90
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
@@ -144,6 +146,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
144
146
|
}>, "many">>;
|
|
145
147
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
146
148
|
currency: z.ZodOptional<z.ZodString>;
|
|
149
|
+
discount_code: z.ZodOptional<z.ZodString>;
|
|
150
|
+
discount_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
147
151
|
} & {
|
|
148
152
|
slug: z.ZodOptional<z.ZodString>;
|
|
149
153
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
@@ -205,6 +209,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
205
209
|
}>, "many">>;
|
|
206
210
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
207
211
|
currency: z.ZodOptional<z.ZodString>;
|
|
212
|
+
discount_code: z.ZodOptional<z.ZodString>;
|
|
213
|
+
discount_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
208
214
|
} & {
|
|
209
215
|
slug: z.ZodOptional<z.ZodString>;
|
|
210
216
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
@@ -230,6 +236,16 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
230
236
|
addon_id: string;
|
|
231
237
|
}>, "many">>;
|
|
232
238
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
credit_entitlements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
240
|
+
credit_entitlement_id: z.ZodString;
|
|
241
|
+
credits_amount: z.ZodString;
|
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
credit_entitlement_id: string;
|
|
244
|
+
credits_amount: string;
|
|
245
|
+
}, {
|
|
246
|
+
credit_entitlement_id: string;
|
|
247
|
+
credits_amount: string;
|
|
248
|
+
}>, "many">>;
|
|
233
249
|
}, "strip", z.ZodTypeAny, {
|
|
234
250
|
quantity: number;
|
|
235
251
|
product_id: string;
|
|
@@ -238,6 +254,10 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
238
254
|
addon_id: string;
|
|
239
255
|
}[] | undefined;
|
|
240
256
|
amount?: number | undefined;
|
|
257
|
+
credit_entitlements?: {
|
|
258
|
+
credit_entitlement_id: string;
|
|
259
|
+
credits_amount: string;
|
|
260
|
+
}[] | undefined;
|
|
241
261
|
}, {
|
|
242
262
|
quantity: number;
|
|
243
263
|
product_id: string;
|
|
@@ -246,6 +266,10 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
246
266
|
addon_id: string;
|
|
247
267
|
}[] | undefined;
|
|
248
268
|
amount?: number | undefined;
|
|
269
|
+
credit_entitlements?: {
|
|
270
|
+
credit_entitlement_id: string;
|
|
271
|
+
credits_amount: string;
|
|
272
|
+
}[] | undefined;
|
|
249
273
|
}>, "many">>;
|
|
250
274
|
customer: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
251
275
|
email: z.ZodString;
|
|
@@ -267,6 +291,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
267
291
|
customer_id: string;
|
|
268
292
|
}>]>>;
|
|
269
293
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
294
|
+
discount_code: z.ZodOptional<z.ZodString>;
|
|
295
|
+
discount_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
270
296
|
slug: z.ZodOptional<z.ZodString>;
|
|
271
297
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
272
298
|
billing_address: z.ZodOptional<z.ZodObject<{
|
|
@@ -293,7 +319,6 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
293
319
|
billing_currency: z.ZodOptional<z.ZodString>;
|
|
294
320
|
show_saved_payment_methods: z.ZodOptional<z.ZodBoolean>;
|
|
295
321
|
confirm: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
-
discount_code: z.ZodOptional<z.ZodString>;
|
|
297
322
|
customization: z.ZodOptional<z.ZodObject<{
|
|
298
323
|
theme: z.ZodOptional<z.ZodEnum<["light", "dark", "system"]>>;
|
|
299
324
|
show_order_details: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -400,6 +425,10 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
400
425
|
addon_id: string;
|
|
401
426
|
}[] | undefined;
|
|
402
427
|
amount?: number | undefined;
|
|
428
|
+
credit_entitlements?: {
|
|
429
|
+
credit_entitlement_id: string;
|
|
430
|
+
credits_amount: string;
|
|
431
|
+
}[] | undefined;
|
|
403
432
|
}[] | undefined;
|
|
404
433
|
customer?: {
|
|
405
434
|
email: string;
|
|
@@ -409,6 +438,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
409
438
|
customer_id: string;
|
|
410
439
|
} | undefined;
|
|
411
440
|
metadata?: Record<string, string> | undefined;
|
|
441
|
+
discount_code?: string | undefined;
|
|
442
|
+
discount_codes?: string[] | undefined;
|
|
412
443
|
slug?: string | undefined;
|
|
413
444
|
referenceId?: string | undefined;
|
|
414
445
|
billing_address?: {
|
|
@@ -423,7 +454,6 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
423
454
|
billing_currency?: string | undefined;
|
|
424
455
|
show_saved_payment_methods?: boolean | undefined;
|
|
425
456
|
confirm?: boolean | undefined;
|
|
426
|
-
discount_code?: string | undefined;
|
|
427
457
|
customization?: {
|
|
428
458
|
theme?: "light" | "dark" | "system" | undefined;
|
|
429
459
|
show_order_details?: boolean | undefined;
|
|
@@ -464,6 +494,10 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
464
494
|
addon_id: string;
|
|
465
495
|
}[] | undefined;
|
|
466
496
|
amount?: number | undefined;
|
|
497
|
+
credit_entitlements?: {
|
|
498
|
+
credit_entitlement_id: string;
|
|
499
|
+
credits_amount: string;
|
|
500
|
+
}[] | undefined;
|
|
467
501
|
}[] | undefined;
|
|
468
502
|
customer?: {
|
|
469
503
|
email: string;
|
|
@@ -473,6 +507,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
473
507
|
customer_id: string;
|
|
474
508
|
} | undefined;
|
|
475
509
|
metadata?: Record<string, string> | undefined;
|
|
510
|
+
discount_code?: string | undefined;
|
|
511
|
+
discount_codes?: string[] | undefined;
|
|
476
512
|
slug?: string | undefined;
|
|
477
513
|
referenceId?: string | undefined;
|
|
478
514
|
billing_address?: {
|
|
@@ -487,7 +523,6 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
487
523
|
billing_currency?: string | undefined;
|
|
488
524
|
show_saved_payment_methods?: boolean | undefined;
|
|
489
525
|
confirm?: boolean | undefined;
|
|
490
|
-
discount_code?: string | undefined;
|
|
491
526
|
customization?: {
|
|
492
527
|
theme?: "light" | "dark" | "system" | undefined;
|
|
493
528
|
show_order_details?: boolean | undefined;
|
|
@@ -83,6 +83,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
83
83
|
}>, "many">>;
|
|
84
84
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
85
85
|
currency: z.ZodOptional<z.ZodString>;
|
|
86
|
+
discount_code: z.ZodOptional<z.ZodString>;
|
|
87
|
+
discount_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
86
88
|
} & {
|
|
87
89
|
slug: z.ZodOptional<z.ZodString>;
|
|
88
90
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
@@ -144,6 +146,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
144
146
|
}>, "many">>;
|
|
145
147
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
146
148
|
currency: z.ZodOptional<z.ZodString>;
|
|
149
|
+
discount_code: z.ZodOptional<z.ZodString>;
|
|
150
|
+
discount_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
147
151
|
} & {
|
|
148
152
|
slug: z.ZodOptional<z.ZodString>;
|
|
149
153
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
@@ -205,6 +209,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
205
209
|
}>, "many">>;
|
|
206
210
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
207
211
|
currency: z.ZodOptional<z.ZodString>;
|
|
212
|
+
discount_code: z.ZodOptional<z.ZodString>;
|
|
213
|
+
discount_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
208
214
|
} & {
|
|
209
215
|
slug: z.ZodOptional<z.ZodString>;
|
|
210
216
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
@@ -230,6 +236,16 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
230
236
|
addon_id: string;
|
|
231
237
|
}>, "many">>;
|
|
232
238
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
credit_entitlements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
240
|
+
credit_entitlement_id: z.ZodString;
|
|
241
|
+
credits_amount: z.ZodString;
|
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
credit_entitlement_id: string;
|
|
244
|
+
credits_amount: string;
|
|
245
|
+
}, {
|
|
246
|
+
credit_entitlement_id: string;
|
|
247
|
+
credits_amount: string;
|
|
248
|
+
}>, "many">>;
|
|
233
249
|
}, "strip", z.ZodTypeAny, {
|
|
234
250
|
quantity: number;
|
|
235
251
|
product_id: string;
|
|
@@ -238,6 +254,10 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
238
254
|
addon_id: string;
|
|
239
255
|
}[] | undefined;
|
|
240
256
|
amount?: number | undefined;
|
|
257
|
+
credit_entitlements?: {
|
|
258
|
+
credit_entitlement_id: string;
|
|
259
|
+
credits_amount: string;
|
|
260
|
+
}[] | undefined;
|
|
241
261
|
}, {
|
|
242
262
|
quantity: number;
|
|
243
263
|
product_id: string;
|
|
@@ -246,6 +266,10 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
246
266
|
addon_id: string;
|
|
247
267
|
}[] | undefined;
|
|
248
268
|
amount?: number | undefined;
|
|
269
|
+
credit_entitlements?: {
|
|
270
|
+
credit_entitlement_id: string;
|
|
271
|
+
credits_amount: string;
|
|
272
|
+
}[] | undefined;
|
|
249
273
|
}>, "many">>;
|
|
250
274
|
customer: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
251
275
|
email: z.ZodString;
|
|
@@ -267,6 +291,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
267
291
|
customer_id: string;
|
|
268
292
|
}>]>>;
|
|
269
293
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
294
|
+
discount_code: z.ZodOptional<z.ZodString>;
|
|
295
|
+
discount_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
270
296
|
slug: z.ZodOptional<z.ZodString>;
|
|
271
297
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
272
298
|
billing_address: z.ZodOptional<z.ZodObject<{
|
|
@@ -293,7 +319,6 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
293
319
|
billing_currency: z.ZodOptional<z.ZodString>;
|
|
294
320
|
show_saved_payment_methods: z.ZodOptional<z.ZodBoolean>;
|
|
295
321
|
confirm: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
-
discount_code: z.ZodOptional<z.ZodString>;
|
|
297
322
|
customization: z.ZodOptional<z.ZodObject<{
|
|
298
323
|
theme: z.ZodOptional<z.ZodEnum<["light", "dark", "system"]>>;
|
|
299
324
|
show_order_details: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -400,6 +425,10 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
400
425
|
addon_id: string;
|
|
401
426
|
}[] | undefined;
|
|
402
427
|
amount?: number | undefined;
|
|
428
|
+
credit_entitlements?: {
|
|
429
|
+
credit_entitlement_id: string;
|
|
430
|
+
credits_amount: string;
|
|
431
|
+
}[] | undefined;
|
|
403
432
|
}[] | undefined;
|
|
404
433
|
customer?: {
|
|
405
434
|
email: string;
|
|
@@ -409,6 +438,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
409
438
|
customer_id: string;
|
|
410
439
|
} | undefined;
|
|
411
440
|
metadata?: Record<string, string> | undefined;
|
|
441
|
+
discount_code?: string | undefined;
|
|
442
|
+
discount_codes?: string[] | undefined;
|
|
412
443
|
slug?: string | undefined;
|
|
413
444
|
referenceId?: string | undefined;
|
|
414
445
|
billing_address?: {
|
|
@@ -423,7 +454,6 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
423
454
|
billing_currency?: string | undefined;
|
|
424
455
|
show_saved_payment_methods?: boolean | undefined;
|
|
425
456
|
confirm?: boolean | undefined;
|
|
426
|
-
discount_code?: string | undefined;
|
|
427
457
|
customization?: {
|
|
428
458
|
theme?: "light" | "dark" | "system" | undefined;
|
|
429
459
|
show_order_details?: boolean | undefined;
|
|
@@ -464,6 +494,10 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
464
494
|
addon_id: string;
|
|
465
495
|
}[] | undefined;
|
|
466
496
|
amount?: number | undefined;
|
|
497
|
+
credit_entitlements?: {
|
|
498
|
+
credit_entitlement_id: string;
|
|
499
|
+
credits_amount: string;
|
|
500
|
+
}[] | undefined;
|
|
467
501
|
}[] | undefined;
|
|
468
502
|
customer?: {
|
|
469
503
|
email: string;
|
|
@@ -473,6 +507,8 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
473
507
|
customer_id: string;
|
|
474
508
|
} | undefined;
|
|
475
509
|
metadata?: Record<string, string> | undefined;
|
|
510
|
+
discount_code?: string | undefined;
|
|
511
|
+
discount_codes?: string[] | undefined;
|
|
476
512
|
slug?: string | undefined;
|
|
477
513
|
referenceId?: string | undefined;
|
|
478
514
|
billing_address?: {
|
|
@@ -487,7 +523,6 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (options: DodoPay
|
|
|
487
523
|
billing_currency?: string | undefined;
|
|
488
524
|
show_saved_payment_methods?: boolean | undefined;
|
|
489
525
|
confirm?: boolean | undefined;
|
|
490
|
-
discount_code?: string | undefined;
|
|
491
526
|
customization?: {
|
|
492
527
|
theme?: "light" | "dark" | "system" | undefined;
|
|
493
528
|
show_order_details?: boolean | undefined;
|
package/dist/types.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'dodopayments';
|
|
2
2
|
import 'better-auth';
|
|
3
|
-
export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-
|
|
3
|
+
export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-nGEm2vCL.cjs';
|
|
4
4
|
import 'zod/v3';
|
|
5
5
|
import '@dodopayments/core/webhook';
|
|
6
6
|
import 'dodopayments/resources/usage-events.mjs';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'dodopayments';
|
|
2
2
|
import 'better-auth';
|
|
3
|
-
export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-
|
|
3
|
+
export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-nGEm2vCL.js';
|
|
4
4
|
import 'zod/v3';
|
|
5
5
|
import '@dodopayments/core/webhook';
|
|
6
6
|
import 'dodopayments/resources/usage-events.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodopayments/better-auth",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"import": "./dist/index.js",
|
|
16
16
|
"require": "./dist/index.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./client": {
|
|
19
|
+
"types": "./dist/client.d.ts",
|
|
20
|
+
"import": "./dist/client.js",
|
|
21
|
+
"require": "./dist/client.cjs"
|
|
17
22
|
}
|
|
18
23
|
},
|
|
19
24
|
"types": "./dist/index.d.ts",
|