@gethydra/sdk 0.1.42 → 0.1.44

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.ts CHANGED
@@ -21749,6 +21749,8 @@ declare class MeResource {
21749
21749
  sort?: string;
21750
21750
  order?: 'asc' | 'desc';
21751
21751
  }, accessToken?: string): Promise<ListResponse<unknown>>;
21752
+ /** Get loyalty programme summary. */
21753
+ getLoyalty(accessToken?: string): Promise<DataResponse<LoyaltySummary>>;
21752
21754
  /** List the customer's returns. */
21753
21755
  listReturns(accessToken?: string): Promise<DataResponse<unknown[]>>;
21754
21756
  /** Get active membership. */
package/dist/index.js CHANGED
@@ -1934,6 +1934,10 @@ var MeResource = class {
1934
1934
  this.opts(accessToken, { params })
1935
1935
  );
1936
1936
  }
1937
+ /** Get loyalty programme summary. */
1938
+ async getLoyalty(accessToken) {
1939
+ return this.client.request("GET", "/v1/me/loyalty", this.opts(accessToken));
1940
+ }
1937
1941
  /** List the customer's returns. */
1938
1942
  async listReturns(accessToken) {
1939
1943
  return this.client.request("GET", "/v1/me/returns", this.opts(accessToken));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethydra/sdk",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "description": "Official TypeScript SDK for the Hydra Commerce API",
5
5
  "license": "MIT",
6
6
  "author": "Grant Capital Group",