@dodopayments/remix 0.1.1

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.
@@ -0,0 +1,18 @@
1
+ import * as undici_types from 'undici-types';
2
+ import { CheckoutHandlerConfig } from '@dodopayments/core/checkout';
3
+ import { WebhookHandlerConfig } from '@dodopayments/core/webhook';
4
+ import { ClientOptions } from 'dodopayments';
5
+
6
+ /**
7
+ * Remix Checkout handler
8
+ * Usage: export const loader = Checkout(config); export const action = Checkout(config);
9
+ */
10
+ declare function Checkout(config: CheckoutHandlerConfig): (request: Request) => Promise<undici_types.Response>;
11
+
12
+ declare const Webhooks: ({ webhookKey, ...eventHandlers }: WebhookHandlerConfig) => (request: Request) => Promise<undici_types.Response>;
13
+
14
+ type CustomerPortalConfig = Pick<ClientOptions, "environment" | "bearerToken">;
15
+ declare const CustomerPortal: ({ bearerToken, environment, }: CustomerPortalConfig) => (request: Request) => Promise<undici_types.Response>;
16
+
17
+ export { Checkout, CustomerPortal, Webhooks };
18
+ export type { CustomerPortalConfig };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC"}