@solvapay/next 1.0.1-preview.3 → 1.0.1-preview.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/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NextResponse } from 'next/server';
2
2
  import * as _solvapay_server from '@solvapay/server';
3
- import { AuthenticatedUser, SolvaPay } from '@solvapay/server';
3
+ import { AuthenticatedUser, SolvaPay, listPlansCore } from '@solvapay/server';
4
4
  export { AuthMiddlewareOptions, SupabaseAuthMiddlewareOptions, createAuthMiddleware, createSupabaseAuthMiddleware } from './middleware.cjs';
5
5
  import '@solvapay/auth';
6
6
 
@@ -267,13 +267,13 @@ declare function cancelRenewal(request: globalThis.Request, body: {
267
267
  solvaPay?: SolvaPay;
268
268
  }): Promise<Record<string, unknown> | NextResponse>;
269
269
 
270
+ type ListPlansSuccess = Exclude<Awaited<ReturnType<typeof listPlansCore>>, {
271
+ error: string;
272
+ }>;
270
273
  /**
271
274
  * Next.js Plans Helper
272
275
  */
273
- declare function listPlans(request: globalThis.Request): Promise<{
274
- plans: Array<Record<string, unknown>>;
275
- productRef: string;
276
- } | NextResponse>;
276
+ declare function listPlans(request: globalThis.Request): Promise<ListPlansSuccess | NextResponse>;
277
277
 
278
278
  /**
279
279
  * SolvaPay Next.js SDK
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NextResponse } from 'next/server';
2
2
  import * as _solvapay_server from '@solvapay/server';
3
- import { AuthenticatedUser, SolvaPay } from '@solvapay/server';
3
+ import { AuthenticatedUser, SolvaPay, listPlansCore } from '@solvapay/server';
4
4
  export { AuthMiddlewareOptions, SupabaseAuthMiddlewareOptions, createAuthMiddleware, createSupabaseAuthMiddleware } from './middleware.js';
5
5
  import '@solvapay/auth';
6
6
 
@@ -267,13 +267,13 @@ declare function cancelRenewal(request: globalThis.Request, body: {
267
267
  solvaPay?: SolvaPay;
268
268
  }): Promise<Record<string, unknown> | NextResponse>;
269
269
 
270
+ type ListPlansSuccess = Exclude<Awaited<ReturnType<typeof listPlansCore>>, {
271
+ error: string;
272
+ }>;
270
273
  /**
271
274
  * Next.js Plans Helper
272
275
  */
273
- declare function listPlans(request: globalThis.Request): Promise<{
274
- plans: Array<Record<string, unknown>>;
275
- productRef: string;
276
- } | NextResponse>;
276
+ declare function listPlans(request: globalThis.Request): Promise<ListPlansSuccess | NextResponse>;
277
277
 
278
278
  /**
279
279
  * SolvaPay Next.js SDK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solvapay/next",
3
- "version": "1.0.1-preview.3",
3
+ "version": "1.0.1-preview.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
- "@solvapay/auth": "1.0.1-preview.3",
38
- "@solvapay/core": "1.0.1-preview.3",
39
- "@solvapay/server": "1.0.1-preview.3"
37
+ "@solvapay/auth": "1.0.1-preview.4",
38
+ "@solvapay/server": "1.0.1-preview.4",
39
+ "@solvapay/core": "1.0.1-preview.4"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "next": ">=13.0.0"