@dodopayments/nextjs 0.1.3 → 0.1.4
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 +4 -5
- package/package.json +9 -4
- package/dist/index.cjs +0 -32
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -13
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -32
- package/dist/index.js.map +0 -1
package/dist/index.d.cts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NextRequest, NextResponse } from 'next/server';
|
|
2
|
-
import { CheckoutHandlerConfig } from '@dodopayments/core/checkout';
|
|
3
|
-
import { WebhookHandlerConfig } from '@dodopayments/core/webhook';
|
|
4
|
-
import { ClientOptions } from 'dodopayments';
|
|
5
|
-
|
|
6
|
-
declare const Checkout: (config: CheckoutHandlerConfig) => (req: NextRequest) => Promise<NextResponse<unknown>>;
|
|
7
|
-
|
|
8
|
-
declare const Webhooks: ({ webhookKey, ...eventHandlers }: WebhookHandlerConfig) => (req: NextRequest) => Promise<NextResponse<unknown>>;
|
|
9
|
-
|
|
10
|
-
type CustomerPortalConfig = Pick<ClientOptions, "environment" | "bearerToken">;
|
|
11
|
-
declare const CustomerPortal: ({ bearerToken, environment, }: CustomerPortalConfig) => (req: NextRequest) => Promise<NextResponse<unknown>>;
|
|
12
|
-
|
|
13
|
-
export { Checkout, CustomerPortal, type CustomerPortalConfig, Webhooks };
|
package/dist/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NextRequest, NextResponse } from 'next/server';
|
|
2
|
-
import { CheckoutHandlerConfig } from '@dodopayments/core/checkout';
|
|
3
|
-
import { WebhookHandlerConfig } from '@dodopayments/core/webhook';
|
|
4
|
-
import { ClientOptions } from 'dodopayments';
|
|
5
|
-
|
|
6
|
-
declare const Checkout: (config: CheckoutHandlerConfig) => (req: NextRequest) => Promise<NextResponse<unknown>>;
|
|
7
|
-
|
|
8
|
-
declare const Webhooks: ({ webhookKey, ...eventHandlers }: WebhookHandlerConfig) => (req: NextRequest) => Promise<NextResponse<unknown>>;
|
|
9
|
-
|
|
10
|
-
type CustomerPortalConfig = Pick<ClientOptions, "environment" | "bearerToken">;
|
|
11
|
-
declare const CustomerPortal: ({ bearerToken, environment, }: CustomerPortalConfig) => (req: NextRequest) => Promise<NextResponse<unknown>>;
|
|
12
|
-
|
|
13
|
-
export { Checkout, CustomerPortal, type CustomerPortalConfig, Webhooks };
|