@gethydra/sdk 0.1.1 → 0.1.3
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 +22 -7
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -407,7 +407,7 @@ interface components {
|
|
|
407
407
|
id: string;
|
|
408
408
|
/** @example CI Pipeline */
|
|
409
409
|
name: string | null;
|
|
410
|
-
/** @example
|
|
410
|
+
/** @example sk_live_example */
|
|
411
411
|
key: string;
|
|
412
412
|
/** @example sk_live_ */
|
|
413
413
|
key_prefix: string;
|
|
@@ -3353,6 +3353,8 @@ interface components {
|
|
|
3353
3353
|
parent_item_id: string | null;
|
|
3354
3354
|
label: string;
|
|
3355
3355
|
url: string | null;
|
|
3356
|
+
/** @enum {string|null} */
|
|
3357
|
+
resource_type: "collection" | "product" | "page" | "custom" | null;
|
|
3356
3358
|
/** @enum {string} */
|
|
3357
3359
|
item_type: "link" | "heading" | "featured";
|
|
3358
3360
|
position: number;
|
|
@@ -3373,6 +3375,8 @@ interface components {
|
|
|
3373
3375
|
parent_item_id: string | null;
|
|
3374
3376
|
label: string;
|
|
3375
3377
|
url: string | null;
|
|
3378
|
+
/** @enum {string|null} */
|
|
3379
|
+
resource_type: "collection" | "product" | "page" | "custom" | null;
|
|
3376
3380
|
/** @enum {string} */
|
|
3377
3381
|
item_type: "link" | "heading" | "featured";
|
|
3378
3382
|
position: number;
|
|
@@ -3819,13 +3823,13 @@ interface components {
|
|
|
3819
3823
|
slug: string;
|
|
3820
3824
|
};
|
|
3821
3825
|
api_keys: {
|
|
3822
|
-
/** @example
|
|
3826
|
+
/** @example sk_test_example */
|
|
3823
3827
|
sk_test: string;
|
|
3824
|
-
/** @example
|
|
3828
|
+
/** @example sk_live_example */
|
|
3825
3829
|
sk_live: string;
|
|
3826
|
-
/** @example
|
|
3830
|
+
/** @example pk_test_example */
|
|
3827
3831
|
pk_test: string;
|
|
3828
|
-
/** @example
|
|
3832
|
+
/** @example pk_live_example */
|
|
3829
3833
|
pk_live: string;
|
|
3830
3834
|
};
|
|
3831
3835
|
};
|
|
@@ -5914,6 +5918,7 @@ interface operations {
|
|
|
5914
5918
|
status?: "active" | "draft" | "archived" | "preorder" | "coming_soon" | "discontinued";
|
|
5915
5919
|
/** @description Filter by exact handle (URL slug) */
|
|
5916
5920
|
handle?: string;
|
|
5921
|
+
/** @description Filter by collection membership (supports both manual and automatic collections) */
|
|
5917
5922
|
collection_id?: string;
|
|
5918
5923
|
created_after?: string;
|
|
5919
5924
|
created_before?: string;
|
|
@@ -7440,7 +7445,7 @@ interface operations {
|
|
|
7440
7445
|
/** @example summer-essentials */
|
|
7441
7446
|
handle?: string;
|
|
7442
7447
|
/** @example Lightweight picks for warm weather. */
|
|
7443
|
-
description?: string;
|
|
7448
|
+
description?: string | null;
|
|
7444
7449
|
/**
|
|
7445
7450
|
* @default manual
|
|
7446
7451
|
* @example manual
|
|
@@ -7624,7 +7629,7 @@ interface operations {
|
|
|
7624
7629
|
/** @example summer-essentials */
|
|
7625
7630
|
handle?: string;
|
|
7626
7631
|
/** @example Lightweight picks for warm weather. */
|
|
7627
|
-
description?: string;
|
|
7632
|
+
description?: string | null;
|
|
7628
7633
|
/**
|
|
7629
7634
|
* @example manual
|
|
7630
7635
|
* @enum {string}
|
|
@@ -15310,6 +15315,8 @@ interface operations {
|
|
|
15310
15315
|
label: string;
|
|
15311
15316
|
/** @example /collections/women-dresses */
|
|
15312
15317
|
url?: string | null;
|
|
15318
|
+
/** @enum {string|null} */
|
|
15319
|
+
resource_type?: "collection" | "product" | "page" | "custom" | null;
|
|
15313
15320
|
/**
|
|
15314
15321
|
* @default link
|
|
15315
15322
|
* @enum {string}
|
|
@@ -15330,6 +15337,8 @@ interface operations {
|
|
|
15330
15337
|
label: string;
|
|
15331
15338
|
/** @example /collections/women-dresses */
|
|
15332
15339
|
url?: string | null;
|
|
15340
|
+
/** @enum {string|null} */
|
|
15341
|
+
resource_type?: "collection" | "product" | "page" | "custom" | null;
|
|
15333
15342
|
/**
|
|
15334
15343
|
* @default link
|
|
15335
15344
|
* @enum {string}
|
|
@@ -15350,6 +15359,8 @@ interface operations {
|
|
|
15350
15359
|
label: string;
|
|
15351
15360
|
/** @example /collections/women-dresses */
|
|
15352
15361
|
url?: string | null;
|
|
15362
|
+
/** @enum {string|null} */
|
|
15363
|
+
resource_type?: "collection" | "product" | "page" | "custom" | null;
|
|
15353
15364
|
/**
|
|
15354
15365
|
* @default link
|
|
15355
15366
|
* @enum {string}
|
|
@@ -15480,6 +15491,8 @@ interface operations {
|
|
|
15480
15491
|
label: string;
|
|
15481
15492
|
/** @example /collections/women */
|
|
15482
15493
|
url?: string | null;
|
|
15494
|
+
/** @enum {string|null} */
|
|
15495
|
+
resource_type?: "collection" | "product" | "page" | "custom" | null;
|
|
15483
15496
|
/**
|
|
15484
15497
|
* @default link
|
|
15485
15498
|
* @enum {string}
|
|
@@ -15582,6 +15595,8 @@ interface operations {
|
|
|
15582
15595
|
/** @example Women */
|
|
15583
15596
|
label?: string;
|
|
15584
15597
|
url?: string | null;
|
|
15598
|
+
/** @enum {string|null} */
|
|
15599
|
+
resource_type?: "collection" | "product" | "page" | "custom" | null;
|
|
15585
15600
|
/** @enum {string} */
|
|
15586
15601
|
item_type?: "link" | "heading" | "featured";
|
|
15587
15602
|
parent_item_id?: string | null;
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gethydra/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Official TypeScript SDK for the Hydra Commerce API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Grant Capital Group",
|
|
7
7
|
"homepage": "https://hydrajs.dev/docs",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/Hydra-headless-commerce/
|
|
11
|
-
"directory": "packages/sdk"
|
|
10
|
+
"url": "https://github.com/Hydra-headless-commerce/sdk.git"
|
|
12
11
|
},
|
|
13
12
|
"keywords": [
|
|
14
13
|
"hydra",
|