shred-api-client 1.2.11 → 1.2.12

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.
@@ -6,6 +6,6 @@ declare class SubscriptionAPI implements SubscriptionAPISchema {
6
6
  private clientHTTP;
7
7
  constructor(env: Environment);
8
8
  getProducts(): Promise<Product[]>;
9
- createCheckout(planId: string, ctx: Context): Promise<string>;
9
+ createCheckout(planId: string | null, ctx: Context): Promise<string>;
10
10
  }
11
11
  export default SubscriptionAPI;
@@ -1,7 +1,7 @@
1
1
  import Context from "./Context";
2
2
  interface SubscriptionAPISchema {
3
3
  getProducts: () => Promise<Product[]>;
4
- createCheckout: (planId: string, ctx: Context) => Promise<string>;
4
+ createCheckout: (planId: string | null, ctx: Context) => Promise<string>;
5
5
  }
6
6
  declare const SubscriptionEndpoints: {
7
7
  GetProducts: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shred-api-client",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "API Client for Shred",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",