@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 +2 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
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));
|