@gethydra/sdk 0.1.8 → 0.1.10

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 +44 -37
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2261,6 +2261,13 @@ interface components {
2261
2261
  * ]
2262
2262
  */
2263
2263
  tags: string[];
2264
+ /**
2265
+ * @example [
2266
+ * "SKU-001",
2267
+ * "SKU-002"
2268
+ * ]
2269
+ */
2270
+ skus: string[];
2264
2271
  /** @example 2999 */
2265
2272
  price: number | null;
2266
2273
  /** @example 3999 */
@@ -2320,7 +2327,7 @@ interface components {
2320
2327
  * @example product
2321
2328
  * @enum {string}
2322
2329
  */
2323
- type: "product" | "collection" | "product_type";
2330
+ type: "product" | "collection" | "product_type" | "tag" | "variant";
2324
2331
  /** @example prod_abc123 */
2325
2332
  id?: string;
2326
2333
  /** @example classic-cotton-t-shirt */
@@ -13507,6 +13514,42 @@ interface operations {
13507
13514
  };
13508
13515
  };
13509
13516
  };
13517
+ listMembershipSubscriptions: {
13518
+ parameters: {
13519
+ query?: {
13520
+ limit?: number;
13521
+ cursor?: string;
13522
+ fields?: string;
13523
+ sort?: "created_at" | "updated_at";
13524
+ order?: "asc" | "desc";
13525
+ status?: "active" | "trialing" | "past_due" | "cancelled" | "expired" | "pending";
13526
+ plan_id?: string;
13527
+ customer_id?: string;
13528
+ };
13529
+ header?: never;
13530
+ path?: never;
13531
+ cookie?: never;
13532
+ };
13533
+ requestBody?: never;
13534
+ responses: {
13535
+ /** @description Paginated subscription list */
13536
+ 200: {
13537
+ headers: {
13538
+ [name: string]: unknown;
13539
+ };
13540
+ content: {
13541
+ "application/json": {
13542
+ data: components["schemas"]["CustomerMembership"][];
13543
+ pagination: {
13544
+ cursor: string | null;
13545
+ has_more: boolean;
13546
+ total: number;
13547
+ };
13548
+ };
13549
+ };
13550
+ };
13551
+ };
13552
+ };
13510
13553
  getMembershipPlan: {
13511
13554
  parameters: {
13512
13555
  query?: never;
@@ -13596,42 +13639,6 @@ interface operations {
13596
13639
  };
13597
13640
  };
13598
13641
  };
13599
- listMembershipSubscriptions: {
13600
- parameters: {
13601
- query?: {
13602
- limit?: number;
13603
- cursor?: string;
13604
- fields?: string;
13605
- sort?: "created_at" | "updated_at";
13606
- order?: "asc" | "desc";
13607
- status?: "active" | "trialing" | "past_due" | "cancelled" | "expired" | "pending";
13608
- plan_id?: string;
13609
- customer_id?: string;
13610
- };
13611
- header?: never;
13612
- path?: never;
13613
- cookie?: never;
13614
- };
13615
- requestBody?: never;
13616
- responses: {
13617
- /** @description Paginated subscription list */
13618
- 200: {
13619
- headers: {
13620
- [name: string]: unknown;
13621
- };
13622
- content: {
13623
- "application/json": {
13624
- data: components["schemas"]["CustomerMembership"][];
13625
- pagination: {
13626
- cursor: string | null;
13627
- has_more: boolean;
13628
- total: number;
13629
- };
13630
- };
13631
- };
13632
- };
13633
- };
13634
- };
13635
13642
  listRefunds: {
13636
13643
  parameters: {
13637
13644
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethydra/sdk",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Official TypeScript SDK for the Hydra Commerce API",
5
5
  "license": "MIT",
6
6
  "author": "Grant Capital Group",