shred-api-client 1.9.19 → 1.9.20

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.
@@ -34,7 +34,9 @@ class SubscriptionAPI {
34
34
  return data.success;
35
35
  }
36
36
  async getProducts(ctx) {
37
- const endpointInfo = Subscription_schema_1.SubscriptionEndpoints.GetProducts;
37
+ const endpointInfo = ctx
38
+ ? Subscription_schema_1.SubscriptionEndpoints.GetProductsByUser
39
+ : Subscription_schema_1.SubscriptionEndpoints.GetProducts;
38
40
  const data = await this.clientHTTP.makeRequest(this.env, endpointInfo.uri, endpointInfo.method, null, ctx);
39
41
  return data;
40
42
  }
@@ -23,6 +23,10 @@ declare const SubscriptionEndpoints: {
23
23
  uri: string;
24
24
  method: string;
25
25
  };
26
+ GetProductsByUser: {
27
+ uri: string;
28
+ method: string;
29
+ };
26
30
  Checkout: {
27
31
  uri: string;
28
32
  method: string;
@@ -18,6 +18,10 @@ const SubscriptionEndpoints = {
18
18
  uri: "/subscriptions/products/public/list/",
19
19
  method: "GET",
20
20
  },
21
+ GetProductsByUser: {
22
+ uri: "/subscriptions/products/list/",
23
+ method: "GET",
24
+ },
21
25
  Checkout: {
22
26
  uri: "/subscriptions/payment/checkout/",
23
27
  method: "POST",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shred-api-client",
3
- "version": "1.9.19",
3
+ "version": "1.9.20",
4
4
  "description": "API Client for Shred",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",