@gethydra/sdk 0.1.7 → 0.1.9

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +41 -37
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2320,9 +2320,13 @@ interface components {
2320
2320
  * @example product
2321
2321
  * @enum {string}
2322
2322
  */
2323
- type: "product" | "collection" | "product_type";
2323
+ type: "product" | "collection" | "product_type" | "tag";
2324
2324
  /** @example prod_abc123 */
2325
2325
  id?: string;
2326
+ /** @example classic-cotton-t-shirt */
2327
+ handle?: string;
2328
+ /** @example https://cdn.hydrajs.dev/images/product.webp */
2329
+ image?: string;
2326
2330
  }[];
2327
2331
  };
2328
2332
  InventoryLevel: {
@@ -13503,6 +13507,42 @@ interface operations {
13503
13507
  };
13504
13508
  };
13505
13509
  };
13510
+ listMembershipSubscriptions: {
13511
+ parameters: {
13512
+ query?: {
13513
+ limit?: number;
13514
+ cursor?: string;
13515
+ fields?: string;
13516
+ sort?: "created_at" | "updated_at";
13517
+ order?: "asc" | "desc";
13518
+ status?: "active" | "trialing" | "past_due" | "cancelled" | "expired" | "pending";
13519
+ plan_id?: string;
13520
+ customer_id?: string;
13521
+ };
13522
+ header?: never;
13523
+ path?: never;
13524
+ cookie?: never;
13525
+ };
13526
+ requestBody?: never;
13527
+ responses: {
13528
+ /** @description Paginated subscription list */
13529
+ 200: {
13530
+ headers: {
13531
+ [name: string]: unknown;
13532
+ };
13533
+ content: {
13534
+ "application/json": {
13535
+ data: components["schemas"]["CustomerMembership"][];
13536
+ pagination: {
13537
+ cursor: string | null;
13538
+ has_more: boolean;
13539
+ total: number;
13540
+ };
13541
+ };
13542
+ };
13543
+ };
13544
+ };
13545
+ };
13506
13546
  getMembershipPlan: {
13507
13547
  parameters: {
13508
13548
  query?: never;
@@ -13592,42 +13632,6 @@ interface operations {
13592
13632
  };
13593
13633
  };
13594
13634
  };
13595
- listMembershipSubscriptions: {
13596
- parameters: {
13597
- query?: {
13598
- limit?: number;
13599
- cursor?: string;
13600
- fields?: string;
13601
- sort?: "created_at" | "updated_at";
13602
- order?: "asc" | "desc";
13603
- status?: "active" | "trialing" | "past_due" | "cancelled" | "expired" | "pending";
13604
- plan_id?: string;
13605
- customer_id?: string;
13606
- };
13607
- header?: never;
13608
- path?: never;
13609
- cookie?: never;
13610
- };
13611
- requestBody?: never;
13612
- responses: {
13613
- /** @description Paginated subscription list */
13614
- 200: {
13615
- headers: {
13616
- [name: string]: unknown;
13617
- };
13618
- content: {
13619
- "application/json": {
13620
- data: components["schemas"]["CustomerMembership"][];
13621
- pagination: {
13622
- cursor: string | null;
13623
- has_more: boolean;
13624
- total: number;
13625
- };
13626
- };
13627
- };
13628
- };
13629
- };
13630
- };
13631
13635
  listRefunds: {
13632
13636
  parameters: {
13633
13637
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethydra/sdk",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Official TypeScript SDK for the Hydra Commerce API",
5
5
  "license": "MIT",
6
6
  "author": "Grant Capital Group",