@gethydra/sdk 0.1.41 → 0.1.43

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
@@ -4545,6 +4545,11 @@ interface operations {
4545
4545
  po_prefix?: string;
4546
4546
  /** @example INV */
4547
4547
  invoice_prefix?: string;
4548
+ /**
4549
+ * @description Next order number to be assigned
4550
+ * @example 1001
4551
+ */
4552
+ next_order_number?: number;
4548
4553
  /** @example false */
4549
4554
  require_email_verification?: boolean;
4550
4555
  /**
@@ -19284,13 +19289,13 @@ interface operations {
19284
19289
  };
19285
19290
  };
19286
19291
  responses: {
19287
- /** @description Account created, tokens returned */
19292
+ /** @description Account created — tokens returned or verification required */
19288
19293
  201: {
19289
19294
  headers: {
19290
19295
  [name: string]: unknown;
19291
19296
  };
19292
19297
  content: {
19293
- "application/json": components["schemas"]["TokenResponse"];
19298
+ "application/json": components["schemas"]["TokenResponse"] | components["schemas"]["MessageResponse"];
19294
19299
  };
19295
19300
  };
19296
19301
  };
@@ -19465,6 +19470,36 @@ interface operations {
19465
19470
  };
19466
19471
  };
19467
19472
  };
19473
+ resendVerificationEmail: {
19474
+ parameters: {
19475
+ query?: never;
19476
+ header?: never;
19477
+ path?: never;
19478
+ cookie?: never;
19479
+ };
19480
+ requestBody?: {
19481
+ content: {
19482
+ "application/json": {
19483
+ /**
19484
+ * Format: email
19485
+ * @example jane@example.com
19486
+ */
19487
+ email: string;
19488
+ };
19489
+ };
19490
+ };
19491
+ responses: {
19492
+ /** @description Verification email sent (if account exists) */
19493
+ 200: {
19494
+ headers: {
19495
+ [name: string]: unknown;
19496
+ };
19497
+ content: {
19498
+ "application/json": components["schemas"]["MessageResponse"];
19499
+ };
19500
+ };
19501
+ };
19502
+ };
19468
19503
  getCustomerProfile: {
19469
19504
  parameters: {
19470
19505
  query?: never;
@@ -21714,6 +21749,8 @@ declare class MeResource {
21714
21749
  sort?: string;
21715
21750
  order?: 'asc' | 'desc';
21716
21751
  }, accessToken?: string): Promise<ListResponse<unknown>>;
21752
+ /** Get loyalty programme summary. */
21753
+ getLoyalty(accessToken?: string): Promise<DataResponse<LoyaltySummary>>;
21717
21754
  /** List the customer's returns. */
21718
21755
  listReturns(accessToken?: string): Promise<DataResponse<unknown[]>>;
21719
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.41",
3
+ "version": "0.1.43",
4
4
  "description": "Official TypeScript SDK for the Hydra Commerce API",
5
5
  "license": "MIT",
6
6
  "author": "Grant Capital Group",