@gethydra/sdk 0.1.20 → 0.1.22
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 +674 -233
- package/dist/index.js +44 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -148,7 +148,13 @@ interface components {
|
|
|
148
148
|
/** @example true */
|
|
149
149
|
checkout_order_notes: boolean;
|
|
150
150
|
/** @example false */
|
|
151
|
-
|
|
151
|
+
checkout_auto_fulfill_physical: boolean;
|
|
152
|
+
/** @example true */
|
|
153
|
+
checkout_auto_fulfill_digital: boolean;
|
|
154
|
+
/** @example true */
|
|
155
|
+
checkout_auto_fulfill_service: boolean;
|
|
156
|
+
/** @example true */
|
|
157
|
+
checkout_auto_fulfill_booking: boolean;
|
|
152
158
|
/** @example null */
|
|
153
159
|
checkout_auto_archive_days: number | null;
|
|
154
160
|
/** @example true */
|
|
@@ -748,8 +754,11 @@ interface components {
|
|
|
748
754
|
hs_code: string | null;
|
|
749
755
|
/** @example US */
|
|
750
756
|
country_of_origin: string | null;
|
|
751
|
-
/**
|
|
752
|
-
|
|
757
|
+
/**
|
|
758
|
+
* @description null when product does not track inventory (service/digital)
|
|
759
|
+
* @example 150
|
|
760
|
+
*/
|
|
761
|
+
inventory_quantity: number | null;
|
|
753
762
|
/** @example 10 */
|
|
754
763
|
low_stock_threshold: number | null;
|
|
755
764
|
/** @example 1 */
|
|
@@ -3491,6 +3500,84 @@ interface components {
|
|
|
3491
3500
|
*/
|
|
3492
3501
|
updated_at: string;
|
|
3493
3502
|
};
|
|
3503
|
+
Lookbook: {
|
|
3504
|
+
/** @example lb_abc123 */
|
|
3505
|
+
id: string;
|
|
3506
|
+
/** @example Curated Helix Stack */
|
|
3507
|
+
title: string;
|
|
3508
|
+
/** @example curated-helix-stack */
|
|
3509
|
+
handle: string;
|
|
3510
|
+
/** @example A beautiful helix piercing combination. */
|
|
3511
|
+
description: string | null;
|
|
3512
|
+
/** @example Helix piercing stack with gold hoops */
|
|
3513
|
+
alt_text: string | null;
|
|
3514
|
+
/** @example https://cdn.hydrajs.dev/store_abc/lookbooks/abc123.webp */
|
|
3515
|
+
image_url: string | null;
|
|
3516
|
+
/** @example https://cdn.hydrajs.dev/store_abc/lookbooks/def456.webp */
|
|
3517
|
+
image_color_url: string | null;
|
|
3518
|
+
/**
|
|
3519
|
+
* @example [
|
|
3520
|
+
* "prod_abc123"
|
|
3521
|
+
* ]
|
|
3522
|
+
*/
|
|
3523
|
+
linked_product_ids: string[];
|
|
3524
|
+
tags: {
|
|
3525
|
+
/** @example lbt_abc123 */
|
|
3526
|
+
id: string;
|
|
3527
|
+
/** @example helix */
|
|
3528
|
+
slug: string;
|
|
3529
|
+
/** @example Helix */
|
|
3530
|
+
label: string;
|
|
3531
|
+
}[];
|
|
3532
|
+
/** @example 0 */
|
|
3533
|
+
position: number;
|
|
3534
|
+
/** @example false */
|
|
3535
|
+
pinned: boolean;
|
|
3536
|
+
/**
|
|
3537
|
+
* @example published
|
|
3538
|
+
* @enum {string}
|
|
3539
|
+
*/
|
|
3540
|
+
status: "draft" | "published";
|
|
3541
|
+
seo: {
|
|
3542
|
+
/** @example Curated Helix Stack | Piercing Ideas */
|
|
3543
|
+
title?: string;
|
|
3544
|
+
/** @example Explore this curated helix stack. */
|
|
3545
|
+
description?: string;
|
|
3546
|
+
};
|
|
3547
|
+
metadata: {
|
|
3548
|
+
[key: string]: unknown;
|
|
3549
|
+
};
|
|
3550
|
+
/**
|
|
3551
|
+
* Format: date-time
|
|
3552
|
+
* @example 2026-11-15T10:00:00.000Z
|
|
3553
|
+
*/
|
|
3554
|
+
created_at: string;
|
|
3555
|
+
/**
|
|
3556
|
+
* Format: date-time
|
|
3557
|
+
* @example 2026-11-15T14:30:00.000Z
|
|
3558
|
+
*/
|
|
3559
|
+
updated_at: string;
|
|
3560
|
+
};
|
|
3561
|
+
LookbookTag: {
|
|
3562
|
+
/** @example lbt_abc123 */
|
|
3563
|
+
id: string;
|
|
3564
|
+
/** @example helix */
|
|
3565
|
+
slug: string;
|
|
3566
|
+
/** @example Helix */
|
|
3567
|
+
label: string;
|
|
3568
|
+
/** @example 0 */
|
|
3569
|
+
position: number;
|
|
3570
|
+
/**
|
|
3571
|
+
* Format: date-time
|
|
3572
|
+
* @example 2026-11-15T10:00:00.000Z
|
|
3573
|
+
*/
|
|
3574
|
+
created_at: string;
|
|
3575
|
+
/**
|
|
3576
|
+
* Format: date-time
|
|
3577
|
+
* @example 2026-11-15T14:30:00.000Z
|
|
3578
|
+
*/
|
|
3579
|
+
updated_at: string;
|
|
3580
|
+
};
|
|
3494
3581
|
Post: {
|
|
3495
3582
|
/** @example post_abc123 */
|
|
3496
3583
|
id: string;
|
|
@@ -4236,7 +4323,13 @@ interface operations {
|
|
|
4236
4323
|
/** @example true */
|
|
4237
4324
|
checkout_order_notes?: boolean;
|
|
4238
4325
|
/** @example false */
|
|
4239
|
-
|
|
4326
|
+
checkout_auto_fulfill_physical?: boolean;
|
|
4327
|
+
/** @example true */
|
|
4328
|
+
checkout_auto_fulfill_digital?: boolean;
|
|
4329
|
+
/** @example true */
|
|
4330
|
+
checkout_auto_fulfill_service?: boolean;
|
|
4331
|
+
/** @example true */
|
|
4332
|
+
checkout_auto_fulfill_booking?: boolean;
|
|
4240
4333
|
/** @example 14 */
|
|
4241
4334
|
checkout_auto_archive_days?: number | null;
|
|
4242
4335
|
/** @example true */
|
|
@@ -11505,6 +11598,11 @@ interface operations {
|
|
|
11505
11598
|
* @example 0
|
|
11506
11599
|
*/
|
|
11507
11600
|
discount?: number;
|
|
11601
|
+
/**
|
|
11602
|
+
* @description Discount code applied to this order.
|
|
11603
|
+
* @example SAVE10
|
|
11604
|
+
*/
|
|
11605
|
+
discount_code?: string;
|
|
11508
11606
|
/**
|
|
11509
11607
|
* @example card
|
|
11510
11608
|
* @enum {string}
|
|
@@ -11527,6 +11625,11 @@ interface operations {
|
|
|
11527
11625
|
metadata?: {
|
|
11528
11626
|
[key: string]: string | number;
|
|
11529
11627
|
};
|
|
11628
|
+
/**
|
|
11629
|
+
* @description Auto-fulfill all items after creation (e.g. POS in-store sales).
|
|
11630
|
+
* @example true
|
|
11631
|
+
*/
|
|
11632
|
+
auto_fulfill?: boolean;
|
|
11530
11633
|
};
|
|
11531
11634
|
};
|
|
11532
11635
|
};
|
|
@@ -12414,6 +12517,8 @@ interface operations {
|
|
|
12414
12517
|
sort?: "updated_at";
|
|
12415
12518
|
order?: "asc" | "desc";
|
|
12416
12519
|
product_id?: string;
|
|
12520
|
+
/** @description Comma-separated list of variant IDs to filter by */
|
|
12521
|
+
variant_ids?: string;
|
|
12417
12522
|
sku?: string;
|
|
12418
12523
|
low_stock?: boolean | null;
|
|
12419
12524
|
location_id?: string;
|
|
@@ -12998,7 +13103,7 @@ interface operations {
|
|
|
12998
13103
|
* "order.paid"
|
|
12999
13104
|
* ]
|
|
13000
13105
|
*/
|
|
13001
|
-
events: ("product.created" | "product.updated" | "product.deleted" | "order.created" | "order.paid" | "order.fulfilled" | "order.cancelled" | "order.refunded" | "channel.created" | "channel.updated" | "channel.archived" | "collection.created" | "collection.updated" | "collection.deleted" | "company.created" | "company.updated" | "company.deleted" | "customer.created" | "customer.updated" | "customer_photo.submitted" | "customer_photo.approved" | "customer_photo.rejected" | "discount.created" | "discount.updated" | "discount.deleted" | "draft_order.created" | "draft_order.updated" | "draft_order.completed" | "draft_order.deleted" | "filter_attribute.created" | "filter_attribute.updated" | "filter_attribute.deleted" | "fulfillment.created" | "fulfillment.updated" | "fulfillment.cancelled" | "fulfillment_order.created" | "inventory.low" | "location.created" | "location.updated" | "location.deleted" | "navigation.created" | "navigation.updated" | "navigation.deleted" | "shipping.zone.created" | "shipping.zone.updated" | "shipping.zone.deleted" | "post.created" | "post.updated" | "post.deleted" | "post.published" | "post.unpublished" | "promotion.created" | "promotion.updated" | "promotion.deleted" | "purchase_order.created" | "purchase_order.updated" | "purchase_order.received" | "purchase_order.cancelled" | "refund.created" | "refund.succeeded" | "refund.failed" | "return.requested" | "return.approved" | "return.received" | "return.rejected" | "return.cancelled" | "return.closed" | "store.published" | "store_credit.issued" | "store_credit.used" | "store_credit.expired" | "membership.created" | "membership.updated" | "membership.cancelled" | "membership.expired" | "usage.warning" | "booking.created" | "booking.confirmed" | "booking.cancelled" | "booking.completed")[];
|
|
13106
|
+
events: ("product.created" | "product.updated" | "product.deleted" | "order.created" | "order.paid" | "order.fulfilled" | "order.cancelled" | "order.refunded" | "channel.created" | "channel.updated" | "channel.archived" | "collection.created" | "collection.updated" | "collection.deleted" | "company.created" | "company.updated" | "company.deleted" | "customer.created" | "customer.updated" | "customer_photo.submitted" | "customer_photo.approved" | "customer_photo.rejected" | "discount.created" | "discount.updated" | "discount.deleted" | "draft_order.created" | "draft_order.updated" | "draft_order.completed" | "draft_order.deleted" | "filter_attribute.created" | "filter_attribute.updated" | "filter_attribute.deleted" | "fulfillment.created" | "fulfillment.updated" | "fulfillment.cancelled" | "fulfillment_order.created" | "inventory.low" | "location.created" | "location.updated" | "location.deleted" | "navigation.created" | "navigation.updated" | "navigation.deleted" | "shipping.zone.created" | "shipping.zone.updated" | "shipping.zone.deleted" | "post.created" | "post.updated" | "post.deleted" | "post.published" | "post.unpublished" | "promotion.created" | "promotion.updated" | "promotion.deleted" | "purchase_order.created" | "purchase_order.updated" | "purchase_order.received" | "purchase_order.cancelled" | "refund.created" | "refund.succeeded" | "refund.failed" | "return.requested" | "return.approved" | "return.received" | "return.rejected" | "return.cancelled" | "return.closed" | "store.published" | "store_credit.issued" | "store_credit.used" | "store_credit.expired" | "membership.created" | "membership.updated" | "membership.cancelled" | "membership.expired" | "usage.warning" | "booking.created" | "booking.confirmed" | "booking.cancelled" | "booking.completed" | "lookbook.created" | "lookbook.updated" | "lookbook.deleted")[];
|
|
13002
13107
|
/**
|
|
13003
13108
|
* @default active
|
|
13004
13109
|
* @example active
|
|
@@ -13092,7 +13197,7 @@ interface operations {
|
|
|
13092
13197
|
* "product.updated"
|
|
13093
13198
|
* ]
|
|
13094
13199
|
*/
|
|
13095
|
-
events?: ("product.created" | "product.updated" | "product.deleted" | "order.created" | "order.paid" | "order.fulfilled" | "order.cancelled" | "order.refunded" | "channel.created" | "channel.updated" | "channel.archived" | "collection.created" | "collection.updated" | "collection.deleted" | "company.created" | "company.updated" | "company.deleted" | "customer.created" | "customer.updated" | "customer_photo.submitted" | "customer_photo.approved" | "customer_photo.rejected" | "discount.created" | "discount.updated" | "discount.deleted" | "draft_order.created" | "draft_order.updated" | "draft_order.completed" | "draft_order.deleted" | "filter_attribute.created" | "filter_attribute.updated" | "filter_attribute.deleted" | "fulfillment.created" | "fulfillment.updated" | "fulfillment.cancelled" | "fulfillment_order.created" | "inventory.low" | "location.created" | "location.updated" | "location.deleted" | "navigation.created" | "navigation.updated" | "navigation.deleted" | "shipping.zone.created" | "shipping.zone.updated" | "shipping.zone.deleted" | "post.created" | "post.updated" | "post.deleted" | "post.published" | "post.unpublished" | "promotion.created" | "promotion.updated" | "promotion.deleted" | "purchase_order.created" | "purchase_order.updated" | "purchase_order.received" | "purchase_order.cancelled" | "refund.created" | "refund.succeeded" | "refund.failed" | "return.requested" | "return.approved" | "return.received" | "return.rejected" | "return.cancelled" | "return.closed" | "store.published" | "store_credit.issued" | "store_credit.used" | "store_credit.expired" | "membership.created" | "membership.updated" | "membership.cancelled" | "membership.expired" | "usage.warning" | "booking.created" | "booking.confirmed" | "booking.cancelled" | "booking.completed")[];
|
|
13200
|
+
events?: ("product.created" | "product.updated" | "product.deleted" | "order.created" | "order.paid" | "order.fulfilled" | "order.cancelled" | "order.refunded" | "channel.created" | "channel.updated" | "channel.archived" | "collection.created" | "collection.updated" | "collection.deleted" | "company.created" | "company.updated" | "company.deleted" | "customer.created" | "customer.updated" | "customer_photo.submitted" | "customer_photo.approved" | "customer_photo.rejected" | "discount.created" | "discount.updated" | "discount.deleted" | "draft_order.created" | "draft_order.updated" | "draft_order.completed" | "draft_order.deleted" | "filter_attribute.created" | "filter_attribute.updated" | "filter_attribute.deleted" | "fulfillment.created" | "fulfillment.updated" | "fulfillment.cancelled" | "fulfillment_order.created" | "inventory.low" | "location.created" | "location.updated" | "location.deleted" | "navigation.created" | "navigation.updated" | "navigation.deleted" | "shipping.zone.created" | "shipping.zone.updated" | "shipping.zone.deleted" | "post.created" | "post.updated" | "post.deleted" | "post.published" | "post.unpublished" | "promotion.created" | "promotion.updated" | "promotion.deleted" | "purchase_order.created" | "purchase_order.updated" | "purchase_order.received" | "purchase_order.cancelled" | "refund.created" | "refund.succeeded" | "refund.failed" | "return.requested" | "return.approved" | "return.received" | "return.rejected" | "return.cancelled" | "return.closed" | "store.published" | "store_credit.issued" | "store_credit.used" | "store_credit.expired" | "membership.created" | "membership.updated" | "membership.cancelled" | "membership.expired" | "usage.warning" | "booking.created" | "booking.confirmed" | "booking.cancelled" | "booking.completed" | "lookbook.created" | "lookbook.updated" | "lookbook.deleted")[];
|
|
13096
13201
|
/**
|
|
13097
13202
|
* @example active
|
|
13098
13203
|
* @enum {string}
|
|
@@ -16646,6 +16751,312 @@ interface operations {
|
|
|
16646
16751
|
};
|
|
16647
16752
|
};
|
|
16648
16753
|
};
|
|
16754
|
+
listLookbooks: {
|
|
16755
|
+
parameters: {
|
|
16756
|
+
query?: {
|
|
16757
|
+
limit?: number;
|
|
16758
|
+
cursor?: string;
|
|
16759
|
+
fields?: string;
|
|
16760
|
+
status?: "draft" | "published";
|
|
16761
|
+
/** @description Filter by tag slug */
|
|
16762
|
+
tag?: string;
|
|
16763
|
+
pinned?: "true" | "false";
|
|
16764
|
+
sort?: "position" | "created_at" | "updated_at" | "title";
|
|
16765
|
+
order?: "asc" | "desc";
|
|
16766
|
+
};
|
|
16767
|
+
header?: never;
|
|
16768
|
+
path?: never;
|
|
16769
|
+
cookie?: never;
|
|
16770
|
+
};
|
|
16771
|
+
requestBody?: never;
|
|
16772
|
+
responses: {
|
|
16773
|
+
/** @description Paginated lookbook list */
|
|
16774
|
+
200: {
|
|
16775
|
+
headers: {
|
|
16776
|
+
[name: string]: unknown;
|
|
16777
|
+
};
|
|
16778
|
+
content: {
|
|
16779
|
+
"application/json": {
|
|
16780
|
+
data: components["schemas"]["Lookbook"][];
|
|
16781
|
+
pagination: {
|
|
16782
|
+
cursor: string | null;
|
|
16783
|
+
has_more: boolean;
|
|
16784
|
+
total: number;
|
|
16785
|
+
};
|
|
16786
|
+
};
|
|
16787
|
+
};
|
|
16788
|
+
};
|
|
16789
|
+
};
|
|
16790
|
+
};
|
|
16791
|
+
createLookbook: {
|
|
16792
|
+
parameters: {
|
|
16793
|
+
query?: never;
|
|
16794
|
+
header?: never;
|
|
16795
|
+
path?: never;
|
|
16796
|
+
cookie?: never;
|
|
16797
|
+
};
|
|
16798
|
+
requestBody?: {
|
|
16799
|
+
content: {
|
|
16800
|
+
"application/json": {
|
|
16801
|
+
/** @example Curated Helix Stack */
|
|
16802
|
+
title: string;
|
|
16803
|
+
/** @example curated-helix-stack */
|
|
16804
|
+
handle?: string;
|
|
16805
|
+
/** @example A beautiful helix piercing combination. */
|
|
16806
|
+
description?: string;
|
|
16807
|
+
/** @example Helix piercing stack with gold hoops */
|
|
16808
|
+
alt_text?: string;
|
|
16809
|
+
/**
|
|
16810
|
+
* @default []
|
|
16811
|
+
* @example [
|
|
16812
|
+
* "prod_abc123"
|
|
16813
|
+
* ]
|
|
16814
|
+
*/
|
|
16815
|
+
linked_product_ids?: string[];
|
|
16816
|
+
/**
|
|
16817
|
+
* @default []
|
|
16818
|
+
* @example [
|
|
16819
|
+
* "curated",
|
|
16820
|
+
* "helix"
|
|
16821
|
+
* ]
|
|
16822
|
+
*/
|
|
16823
|
+
tags?: string[];
|
|
16824
|
+
/**
|
|
16825
|
+
* @default 0
|
|
16826
|
+
* @example 0
|
|
16827
|
+
*/
|
|
16828
|
+
position?: number | null;
|
|
16829
|
+
/**
|
|
16830
|
+
* @default false
|
|
16831
|
+
* @example false
|
|
16832
|
+
*/
|
|
16833
|
+
pinned?: boolean;
|
|
16834
|
+
/**
|
|
16835
|
+
* @default draft
|
|
16836
|
+
* @example draft
|
|
16837
|
+
* @enum {string}
|
|
16838
|
+
*/
|
|
16839
|
+
status?: "draft" | "published";
|
|
16840
|
+
/** @default {} */
|
|
16841
|
+
seo?: {
|
|
16842
|
+
title?: string;
|
|
16843
|
+
description?: string;
|
|
16844
|
+
};
|
|
16845
|
+
/** @default {} */
|
|
16846
|
+
metadata?: {
|
|
16847
|
+
[key: string]: string | number;
|
|
16848
|
+
};
|
|
16849
|
+
};
|
|
16850
|
+
};
|
|
16851
|
+
};
|
|
16852
|
+
responses: {
|
|
16853
|
+
/** @description Lookbook created */
|
|
16854
|
+
201: {
|
|
16855
|
+
headers: {
|
|
16856
|
+
[name: string]: unknown;
|
|
16857
|
+
};
|
|
16858
|
+
content: {
|
|
16859
|
+
"application/json": {
|
|
16860
|
+
data: components["schemas"]["Lookbook"];
|
|
16861
|
+
};
|
|
16862
|
+
};
|
|
16863
|
+
};
|
|
16864
|
+
};
|
|
16865
|
+
};
|
|
16866
|
+
listLookbookTags: {
|
|
16867
|
+
parameters: {
|
|
16868
|
+
query?: never;
|
|
16869
|
+
header?: never;
|
|
16870
|
+
path?: never;
|
|
16871
|
+
cookie?: never;
|
|
16872
|
+
};
|
|
16873
|
+
requestBody?: never;
|
|
16874
|
+
responses: {
|
|
16875
|
+
/** @description Tag list */
|
|
16876
|
+
200: {
|
|
16877
|
+
headers: {
|
|
16878
|
+
[name: string]: unknown;
|
|
16879
|
+
};
|
|
16880
|
+
content: {
|
|
16881
|
+
"application/json": {
|
|
16882
|
+
data: components["schemas"]["LookbookTag"][];
|
|
16883
|
+
};
|
|
16884
|
+
};
|
|
16885
|
+
};
|
|
16886
|
+
};
|
|
16887
|
+
};
|
|
16888
|
+
getLookbook: {
|
|
16889
|
+
parameters: {
|
|
16890
|
+
query?: never;
|
|
16891
|
+
header?: never;
|
|
16892
|
+
path: {
|
|
16893
|
+
id: string;
|
|
16894
|
+
};
|
|
16895
|
+
cookie?: never;
|
|
16896
|
+
};
|
|
16897
|
+
requestBody?: never;
|
|
16898
|
+
responses: {
|
|
16899
|
+
/** @description Lookbook details */
|
|
16900
|
+
200: {
|
|
16901
|
+
headers: {
|
|
16902
|
+
[name: string]: unknown;
|
|
16903
|
+
};
|
|
16904
|
+
content: {
|
|
16905
|
+
"application/json": {
|
|
16906
|
+
data: components["schemas"]["Lookbook"];
|
|
16907
|
+
};
|
|
16908
|
+
};
|
|
16909
|
+
};
|
|
16910
|
+
};
|
|
16911
|
+
};
|
|
16912
|
+
deleteLookbook: {
|
|
16913
|
+
parameters: {
|
|
16914
|
+
query?: never;
|
|
16915
|
+
header?: never;
|
|
16916
|
+
path: {
|
|
16917
|
+
id: string;
|
|
16918
|
+
};
|
|
16919
|
+
cookie?: never;
|
|
16920
|
+
};
|
|
16921
|
+
requestBody?: never;
|
|
16922
|
+
responses: {
|
|
16923
|
+
/** @description Lookbook deleted */
|
|
16924
|
+
204: {
|
|
16925
|
+
headers: {
|
|
16926
|
+
[name: string]: unknown;
|
|
16927
|
+
};
|
|
16928
|
+
content?: never;
|
|
16929
|
+
};
|
|
16930
|
+
};
|
|
16931
|
+
};
|
|
16932
|
+
updateLookbook: {
|
|
16933
|
+
parameters: {
|
|
16934
|
+
query?: never;
|
|
16935
|
+
header?: never;
|
|
16936
|
+
path: {
|
|
16937
|
+
id: string;
|
|
16938
|
+
};
|
|
16939
|
+
cookie?: never;
|
|
16940
|
+
};
|
|
16941
|
+
requestBody?: {
|
|
16942
|
+
content: {
|
|
16943
|
+
"application/json": {
|
|
16944
|
+
/** @example Curated Helix Stack */
|
|
16945
|
+
title?: string;
|
|
16946
|
+
/** @example curated-helix-stack */
|
|
16947
|
+
handle?: string;
|
|
16948
|
+
/** @example Updated description. */
|
|
16949
|
+
description?: string | null;
|
|
16950
|
+
/** @example Updated alt text */
|
|
16951
|
+
alt_text?: string | null;
|
|
16952
|
+
/**
|
|
16953
|
+
* @example [
|
|
16954
|
+
* "prod_abc123"
|
|
16955
|
+
* ]
|
|
16956
|
+
*/
|
|
16957
|
+
linked_product_ids?: string[];
|
|
16958
|
+
/**
|
|
16959
|
+
* @example [
|
|
16960
|
+
* "curated",
|
|
16961
|
+
* "helix"
|
|
16962
|
+
* ]
|
|
16963
|
+
*/
|
|
16964
|
+
tags?: string[];
|
|
16965
|
+
/** @example 1 */
|
|
16966
|
+
position?: number | null;
|
|
16967
|
+
/** @example true */
|
|
16968
|
+
pinned?: boolean;
|
|
16969
|
+
/**
|
|
16970
|
+
* @example published
|
|
16971
|
+
* @enum {string}
|
|
16972
|
+
*/
|
|
16973
|
+
status?: "draft" | "published";
|
|
16974
|
+
seo?: {
|
|
16975
|
+
title?: string;
|
|
16976
|
+
description?: string;
|
|
16977
|
+
};
|
|
16978
|
+
metadata?: {
|
|
16979
|
+
[key: string]: string | number;
|
|
16980
|
+
};
|
|
16981
|
+
};
|
|
16982
|
+
};
|
|
16983
|
+
};
|
|
16984
|
+
responses: {
|
|
16985
|
+
/** @description Lookbook updated */
|
|
16986
|
+
200: {
|
|
16987
|
+
headers: {
|
|
16988
|
+
[name: string]: unknown;
|
|
16989
|
+
};
|
|
16990
|
+
content: {
|
|
16991
|
+
"application/json": {
|
|
16992
|
+
data: components["schemas"]["Lookbook"];
|
|
16993
|
+
};
|
|
16994
|
+
};
|
|
16995
|
+
};
|
|
16996
|
+
};
|
|
16997
|
+
};
|
|
16998
|
+
uploadLookbookImage: {
|
|
16999
|
+
parameters: {
|
|
17000
|
+
query?: never;
|
|
17001
|
+
header?: never;
|
|
17002
|
+
path: {
|
|
17003
|
+
id: string;
|
|
17004
|
+
};
|
|
17005
|
+
cookie?: never;
|
|
17006
|
+
};
|
|
17007
|
+
requestBody?: {
|
|
17008
|
+
content: {
|
|
17009
|
+
"multipart/form-data": {
|
|
17010
|
+
/** Format: binary */
|
|
17011
|
+
image?: string;
|
|
17012
|
+
};
|
|
17013
|
+
};
|
|
17014
|
+
};
|
|
17015
|
+
responses: {
|
|
17016
|
+
/** @description Image uploaded */
|
|
17017
|
+
200: {
|
|
17018
|
+
headers: {
|
|
17019
|
+
[name: string]: unknown;
|
|
17020
|
+
};
|
|
17021
|
+
content: {
|
|
17022
|
+
"application/json": {
|
|
17023
|
+
data: components["schemas"]["Lookbook"];
|
|
17024
|
+
};
|
|
17025
|
+
};
|
|
17026
|
+
};
|
|
17027
|
+
};
|
|
17028
|
+
};
|
|
17029
|
+
uploadLookbookColorImage: {
|
|
17030
|
+
parameters: {
|
|
17031
|
+
query?: never;
|
|
17032
|
+
header?: never;
|
|
17033
|
+
path: {
|
|
17034
|
+
id: string;
|
|
17035
|
+
};
|
|
17036
|
+
cookie?: never;
|
|
17037
|
+
};
|
|
17038
|
+
requestBody?: {
|
|
17039
|
+
content: {
|
|
17040
|
+
"multipart/form-data": {
|
|
17041
|
+
/** Format: binary */
|
|
17042
|
+
image?: string;
|
|
17043
|
+
};
|
|
17044
|
+
};
|
|
17045
|
+
};
|
|
17046
|
+
responses: {
|
|
17047
|
+
/** @description Color image uploaded */
|
|
17048
|
+
200: {
|
|
17049
|
+
headers: {
|
|
17050
|
+
[name: string]: unknown;
|
|
17051
|
+
};
|
|
17052
|
+
content: {
|
|
17053
|
+
"application/json": {
|
|
17054
|
+
data: components["schemas"]["Lookbook"];
|
|
17055
|
+
};
|
|
17056
|
+
};
|
|
17057
|
+
};
|
|
17058
|
+
};
|
|
17059
|
+
};
|
|
16649
17060
|
listPosts: {
|
|
16650
17061
|
parameters: {
|
|
16651
17062
|
query?: {
|
|
@@ -18960,6 +19371,8 @@ type AvailabilityOverride$1 = components['schemas']['AvailabilityOverride'];
|
|
|
18960
19371
|
type Slot = components['schemas']['Slot'];
|
|
18961
19372
|
type DayAvailability$1 = components['schemas']['DayAvailability'];
|
|
18962
19373
|
type SuggestedSlot$1 = components['schemas']['SuggestedSlot'];
|
|
19374
|
+
type Lookbook$1 = components['schemas']['Lookbook'];
|
|
19375
|
+
type LookbookTag$1 = components['schemas']['LookbookTag'];
|
|
18963
19376
|
interface Pagination {
|
|
18964
19377
|
cursor: string | null;
|
|
18965
19378
|
has_more: boolean;
|
|
@@ -19004,9 +19417,9 @@ type ProductStats = components['schemas']['ProductStats'];
|
|
|
19004
19417
|
type Variant$1 = components['schemas']['Variant'];
|
|
19005
19418
|
type Image$1 = components['schemas']['Image'];
|
|
19006
19419
|
type GenerateVariantsResult = components['schemas']['GenerateVariantsResult'];
|
|
19007
|
-
type ListParams$
|
|
19008
|
-
type CreateBody$
|
|
19009
|
-
type UpdateBody$
|
|
19420
|
+
type ListParams$u = NonNullable<operations['listProducts']['parameters']['query']>;
|
|
19421
|
+
type CreateBody$p = NonNullable<operations['createProduct']['requestBody']>['content']['application/json'];
|
|
19422
|
+
type UpdateBody$q = NonNullable<operations['updateProduct']['requestBody']>['content']['application/json'];
|
|
19010
19423
|
type DuplicateBody = NonNullable<operations['duplicateProduct']['requestBody']>['content']['application/json'];
|
|
19011
19424
|
type CreateVariantBody = NonNullable<operations['createProductVariant']['requestBody']>['content']['application/json'];
|
|
19012
19425
|
type GenerateVariantsBody = NonNullable<operations['generateProductVariants']['requestBody']>['content']['application/json'];
|
|
@@ -19016,17 +19429,17 @@ type CreateProductLinkBody = NonNullable<operations['createProductLink']['reques
|
|
|
19016
19429
|
declare class ProductsResource {
|
|
19017
19430
|
private client;
|
|
19018
19431
|
constructor(client: Hydra);
|
|
19019
|
-
list(params?: ListParams$
|
|
19020
|
-
iterate(params?: Omit<ListParams$
|
|
19021
|
-
toArray(params?: Omit<ListParams$
|
|
19432
|
+
list(params?: ListParams$u): Promise<ListResponse<Product>>;
|
|
19433
|
+
iterate(params?: Omit<ListParams$u, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Product, void, undefined>;
|
|
19434
|
+
toArray(params?: Omit<ListParams$u, 'cursor'>, options?: PaginateOptions & {
|
|
19022
19435
|
limit?: number;
|
|
19023
19436
|
}): Promise<Product[]>;
|
|
19024
|
-
get(id: string, params?: Pick<ListParams$
|
|
19025
|
-
create(body: CreateBody$
|
|
19026
|
-
update(id: string, body: UpdateBody$
|
|
19437
|
+
get(id: string, params?: Pick<ListParams$u, 'expand' | 'currency' | 'fields'>): Promise<DataResponse<Product>>;
|
|
19438
|
+
create(body: CreateBody$p, options?: ResourceRequestOptions): Promise<DataResponse<Product>>;
|
|
19439
|
+
update(id: string, body: UpdateBody$q): Promise<DataResponse<Product>>;
|
|
19027
19440
|
delete(id: string): Promise<void>;
|
|
19028
19441
|
batchCreate(body: {
|
|
19029
|
-
products: CreateBody$
|
|
19442
|
+
products: CreateBody$p[];
|
|
19030
19443
|
}, options?: ResourceRequestOptions): Promise<DataResponse<Product[]>>;
|
|
19031
19444
|
duplicate(id: string, body: DuplicateBody): Promise<DataResponse<Product>>;
|
|
19032
19445
|
getStats(id: string): Promise<DataResponse<ProductStats>>;
|
|
@@ -19047,7 +19460,7 @@ declare class ProductsResource {
|
|
|
19047
19460
|
|
|
19048
19461
|
type Variant = components['schemas']['Variant'];
|
|
19049
19462
|
type VariantPrice = components['schemas']['VariantPrice'];
|
|
19050
|
-
type UpdateBody$
|
|
19463
|
+
type UpdateBody$p = NonNullable<operations['updateVariant']['requestBody']>['content']['application/json'];
|
|
19051
19464
|
type UpsertPriceBody = NonNullable<operations['upsertVariantPrice']['requestBody']>['content']['application/json'];
|
|
19052
19465
|
declare class VariantsResource {
|
|
19053
19466
|
private client;
|
|
@@ -19057,7 +19470,7 @@ declare class VariantsResource {
|
|
|
19057
19470
|
currency?: string;
|
|
19058
19471
|
fields?: string;
|
|
19059
19472
|
}): Promise<DataResponse<Variant>>;
|
|
19060
|
-
update(id: string, body: UpdateBody$
|
|
19473
|
+
update(id: string, body: UpdateBody$p): Promise<DataResponse<Variant>>;
|
|
19061
19474
|
delete(id: string): Promise<void>;
|
|
19062
19475
|
listPrices(variantId: string): Promise<DataResponse<Record<string, VariantPrice>>>;
|
|
19063
19476
|
upsertPrice(variantId: string, priceKeySlug: string, body: UpsertPriceBody): Promise<DataResponse<VariantPrice>>;
|
|
@@ -19069,23 +19482,23 @@ declare class VariantsResource {
|
|
|
19069
19482
|
}
|
|
19070
19483
|
|
|
19071
19484
|
type Collection = components['schemas']['Collection'];
|
|
19072
|
-
type ListParams$
|
|
19073
|
-
type CreateBody$
|
|
19074
|
-
type UpdateBody$
|
|
19485
|
+
type ListParams$t = NonNullable<operations['listCollections']['parameters']['query']>;
|
|
19486
|
+
type CreateBody$o = NonNullable<operations['createCollection']['requestBody']>['content']['application/json'];
|
|
19487
|
+
type UpdateBody$o = NonNullable<operations['updateCollection']['requestBody']>['content']['application/json'];
|
|
19075
19488
|
type AddProductsBody = NonNullable<operations['addCollectionProducts']['requestBody']>['content']['application/json'];
|
|
19076
19489
|
type ReorderProductsBody = NonNullable<operations['reorderCollectionProducts']['requestBody']>['content']['application/json'];
|
|
19077
19490
|
type ReorderCollectionsBody = NonNullable<operations['reorderCollections']['requestBody']>['content']['application/json'];
|
|
19078
19491
|
declare class CollectionsResource {
|
|
19079
19492
|
private client;
|
|
19080
19493
|
constructor(client: Hydra);
|
|
19081
|
-
list(params?: ListParams$
|
|
19082
|
-
iterate(params?: Omit<ListParams$
|
|
19083
|
-
toArray(params?: Omit<ListParams$
|
|
19494
|
+
list(params?: ListParams$t): Promise<ListResponse<Collection>>;
|
|
19495
|
+
iterate(params?: Omit<ListParams$t, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Collection, void, undefined>;
|
|
19496
|
+
toArray(params?: Omit<ListParams$t, 'cursor'>, options?: PaginateOptions & {
|
|
19084
19497
|
limit?: number;
|
|
19085
19498
|
}): Promise<Collection[]>;
|
|
19086
|
-
get(id: string, params?: Pick<ListParams$
|
|
19087
|
-
create(body: CreateBody$
|
|
19088
|
-
update(id: string, body: UpdateBody$
|
|
19499
|
+
get(id: string, params?: Pick<ListParams$t, 'expand' | 'fields'>): Promise<DataResponse<Collection>>;
|
|
19500
|
+
create(body: CreateBody$o, options?: ResourceRequestOptions): Promise<DataResponse<Collection>>;
|
|
19501
|
+
update(id: string, body: UpdateBody$o): Promise<DataResponse<Collection>>;
|
|
19089
19502
|
delete(id: string): Promise<void>;
|
|
19090
19503
|
tree(): Promise<DataResponse<unknown>>;
|
|
19091
19504
|
reorder(body: ReorderCollectionsBody): Promise<void>;
|
|
@@ -19115,13 +19528,13 @@ declare class CartResource {
|
|
|
19115
19528
|
|
|
19116
19529
|
type CheckoutCreate = components['schemas']['CheckoutCreate'];
|
|
19117
19530
|
type CheckoutGet = components['schemas']['CheckoutGet'];
|
|
19118
|
-
type CreateBody$
|
|
19531
|
+
type CreateBody$n = NonNullable<operations['createCheckout']['requestBody']>['content']['application/json'];
|
|
19119
19532
|
type ApplyDiscountBody = NonNullable<operations['applyCheckoutDiscount']['requestBody']>['content']['application/json'];
|
|
19120
19533
|
type ApplyCreditBody = NonNullable<operations['applyCheckoutCredit']['requestBody']>['content']['application/json'];
|
|
19121
19534
|
declare class CheckoutResource {
|
|
19122
19535
|
private client;
|
|
19123
19536
|
constructor(client: Hydra);
|
|
19124
|
-
create(body: CreateBody$
|
|
19537
|
+
create(body: CreateBody$n, options?: ResourceRequestOptions): Promise<DataResponse<CheckoutCreate>>;
|
|
19125
19538
|
get(id: string): Promise<DataResponse<CheckoutGet>>;
|
|
19126
19539
|
applyDiscount(checkoutId: string, body: ApplyDiscountBody): Promise<DataResponse<CheckoutGet>>;
|
|
19127
19540
|
removeDiscount(checkoutId: string): Promise<DataResponse<CheckoutGet>>;
|
|
@@ -19132,15 +19545,15 @@ declare class CheckoutResource {
|
|
|
19132
19545
|
|
|
19133
19546
|
type Order$1 = components['schemas']['Order'];
|
|
19134
19547
|
type FulfillmentOrder$1 = components['schemas']['FulfillmentOrder'];
|
|
19135
|
-
type ListParams$
|
|
19136
|
-
type CreateBody$
|
|
19137
|
-
type UpdateBody$
|
|
19548
|
+
type ListParams$s = NonNullable<operations['listOrders']['parameters']['query']>;
|
|
19549
|
+
type CreateBody$m = NonNullable<operations['createOrder']['requestBody']>['content']['application/json'];
|
|
19550
|
+
type UpdateBody$n = NonNullable<operations['updateOrder']['requestBody']>['content']['application/json'];
|
|
19138
19551
|
declare class OrdersResource {
|
|
19139
19552
|
private client;
|
|
19140
19553
|
constructor(client: Hydra);
|
|
19141
|
-
list(params?: ListParams$
|
|
19142
|
-
iterate(params?: Omit<ListParams$
|
|
19143
|
-
toArray(params?: Omit<ListParams$
|
|
19554
|
+
list(params?: ListParams$s): Promise<ListResponse<Order$1>>;
|
|
19555
|
+
iterate(params?: Omit<ListParams$s, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Order$1, void, undefined>;
|
|
19556
|
+
toArray(params?: Omit<ListParams$s, 'cursor'>, options?: PaginateOptions & {
|
|
19144
19557
|
limit?: number;
|
|
19145
19558
|
}): Promise<Order$1[]>;
|
|
19146
19559
|
get(id: string, params?: {
|
|
@@ -19148,8 +19561,8 @@ declare class OrdersResource {
|
|
|
19148
19561
|
currency?: string;
|
|
19149
19562
|
fields?: string;
|
|
19150
19563
|
}): Promise<DataResponse<Order$1>>;
|
|
19151
|
-
create(body: CreateBody$
|
|
19152
|
-
update(id: string, body: UpdateBody$
|
|
19564
|
+
create(body: CreateBody$m, options?: ResourceRequestOptions): Promise<DataResponse<Order$1>>;
|
|
19565
|
+
update(id: string, body: UpdateBody$n): Promise<DataResponse<Order$1>>;
|
|
19153
19566
|
listFulfillmentOrders(orderId: string): Promise<DataResponse<FulfillmentOrder$1[]>>;
|
|
19154
19567
|
/**
|
|
19155
19568
|
* Returns the API path for downloading the invoice PDF for an order.
|
|
@@ -19163,34 +19576,34 @@ declare class OrdersResource {
|
|
|
19163
19576
|
}
|
|
19164
19577
|
|
|
19165
19578
|
type Fulfillment = components['schemas']['Fulfillment'];
|
|
19166
|
-
type CreateBody$
|
|
19167
|
-
type UpdateBody$
|
|
19579
|
+
type CreateBody$l = NonNullable<operations['createFulfillment']['requestBody']>['content']['application/json'];
|
|
19580
|
+
type UpdateBody$m = NonNullable<operations['updateFulfillment']['requestBody']>['content']['application/json'];
|
|
19168
19581
|
type CancelBody = NonNullable<operations['cancelFulfillment']['requestBody']>['content']['application/json'];
|
|
19169
19582
|
declare class FulfillmentsResource {
|
|
19170
19583
|
private client;
|
|
19171
19584
|
constructor(client: Hydra);
|
|
19172
19585
|
/** Create a fulfillment for a fulfillment order */
|
|
19173
|
-
create(fulfillmentOrderId: string, body: CreateBody$
|
|
19174
|
-
update(id: string, body: UpdateBody$
|
|
19586
|
+
create(fulfillmentOrderId: string, body: CreateBody$l, options?: ResourceRequestOptions): Promise<DataResponse<Fulfillment>>;
|
|
19587
|
+
update(id: string, body: UpdateBody$m): Promise<DataResponse<Fulfillment>>;
|
|
19175
19588
|
cancel(id: string, body?: CancelBody): Promise<DataResponse<Fulfillment>>;
|
|
19176
19589
|
}
|
|
19177
19590
|
|
|
19178
19591
|
type Refund = components['schemas']['Refund'];
|
|
19179
|
-
type ListParams$
|
|
19180
|
-
type CreateBody$
|
|
19592
|
+
type ListParams$r = NonNullable<operations['listRefunds']['parameters']['query']>;
|
|
19593
|
+
type CreateBody$k = NonNullable<operations['createOrderRefund']['requestBody']>['content']['application/json'];
|
|
19181
19594
|
declare class RefundsResource {
|
|
19182
19595
|
private client;
|
|
19183
19596
|
constructor(client: Hydra);
|
|
19184
|
-
list(params?: ListParams$
|
|
19185
|
-
iterate(params?: Omit<ListParams$
|
|
19186
|
-
toArray(params?: Omit<ListParams$
|
|
19597
|
+
list(params?: ListParams$r): Promise<ListResponse<Refund>>;
|
|
19598
|
+
iterate(params?: Omit<ListParams$r, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Refund, void, undefined>;
|
|
19599
|
+
toArray(params?: Omit<ListParams$r, 'cursor'>, options?: PaginateOptions & {
|
|
19187
19600
|
limit?: number;
|
|
19188
19601
|
}): Promise<Refund[]>;
|
|
19189
19602
|
get(id: string, params?: {
|
|
19190
19603
|
expand?: string;
|
|
19191
19604
|
fields?: string;
|
|
19192
19605
|
}): Promise<DataResponse<Refund>>;
|
|
19193
|
-
create(orderId: string, body: CreateBody$
|
|
19606
|
+
create(orderId: string, body: CreateBody$k, options?: ResourceRequestOptions): Promise<DataResponse<Refund>>;
|
|
19194
19607
|
listByOrder(orderId: string): Promise<DataResponse<Refund[]>>;
|
|
19195
19608
|
retry(id: string): Promise<DataResponse<Refund>>;
|
|
19196
19609
|
/**
|
|
@@ -19201,24 +19614,24 @@ declare class RefundsResource {
|
|
|
19201
19614
|
}
|
|
19202
19615
|
|
|
19203
19616
|
type Return = components['schemas']['Return'];
|
|
19204
|
-
type ListParams$
|
|
19205
|
-
type CreateBody$
|
|
19617
|
+
type ListParams$q = NonNullable<operations['listReturns']['parameters']['query']>;
|
|
19618
|
+
type CreateBody$j = NonNullable<operations['createOrderReturn']['requestBody']>['content']['application/json'];
|
|
19206
19619
|
type ApproveBody = NonNullable<operations['approveReturn']['requestBody']>['content']['application/json'];
|
|
19207
19620
|
type ReceiveBody$1 = NonNullable<operations['receiveReturn']['requestBody']>['content']['application/json'];
|
|
19208
19621
|
type RejectBody$1 = NonNullable<operations['rejectReturn']['requestBody']>['content']['application/json'];
|
|
19209
19622
|
declare class ReturnsResource {
|
|
19210
19623
|
private client;
|
|
19211
19624
|
constructor(client: Hydra);
|
|
19212
|
-
list(params?: ListParams$
|
|
19213
|
-
iterate(params?: Omit<ListParams$
|
|
19214
|
-
toArray(params?: Omit<ListParams$
|
|
19625
|
+
list(params?: ListParams$q): Promise<ListResponse<Return>>;
|
|
19626
|
+
iterate(params?: Omit<ListParams$q, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Return, void, undefined>;
|
|
19627
|
+
toArray(params?: Omit<ListParams$q, 'cursor'>, options?: PaginateOptions & {
|
|
19215
19628
|
limit?: number;
|
|
19216
19629
|
}): Promise<Return[]>;
|
|
19217
19630
|
get(id: string, params?: {
|
|
19218
19631
|
expand?: string;
|
|
19219
19632
|
fields?: string;
|
|
19220
19633
|
}): Promise<DataResponse<Return>>;
|
|
19221
|
-
create(orderId: string, body: CreateBody$
|
|
19634
|
+
create(orderId: string, body: CreateBody$j, options?: ResourceRequestOptions): Promise<DataResponse<Return>>;
|
|
19222
19635
|
listByOrder(orderId: string): Promise<DataResponse<Return[]>>;
|
|
19223
19636
|
approve(id: string, body?: ApproveBody): Promise<DataResponse<Return>>;
|
|
19224
19637
|
receive(id: string, body?: ReceiveBody$1): Promise<DataResponse<Return>>;
|
|
@@ -19230,17 +19643,17 @@ declare class ReturnsResource {
|
|
|
19230
19643
|
type DraftOrder = components['schemas']['DraftOrder'];
|
|
19231
19644
|
type DraftOrderLineItem = components['schemas']['DraftOrderLineItem'];
|
|
19232
19645
|
type Order = components['schemas']['Order'];
|
|
19233
|
-
type ListParams$
|
|
19234
|
-
type CreateBody$
|
|
19235
|
-
type UpdateBody$
|
|
19646
|
+
type ListParams$p = NonNullable<operations['listDraftOrders']['parameters']['query']>;
|
|
19647
|
+
type CreateBody$i = NonNullable<operations['createDraftOrder']['requestBody']>['content']['application/json'];
|
|
19648
|
+
type UpdateBody$l = NonNullable<operations['updateDraftOrder']['requestBody']>['content']['application/json'];
|
|
19236
19649
|
type AddItemsBody = NonNullable<operations['addDraftOrderItems']['requestBody']>['content']['application/json'];
|
|
19237
19650
|
type UpdateItemBody$2 = NonNullable<operations['updateDraftOrderItem']['requestBody']>['content']['application/json'];
|
|
19238
19651
|
declare class DraftOrdersResource {
|
|
19239
19652
|
private client;
|
|
19240
19653
|
constructor(client: Hydra);
|
|
19241
|
-
list(params?: ListParams$
|
|
19242
|
-
iterate(params?: Omit<ListParams$
|
|
19243
|
-
toArray(params?: Omit<ListParams$
|
|
19654
|
+
list(params?: ListParams$p): Promise<ListResponse<DraftOrder>>;
|
|
19655
|
+
iterate(params?: Omit<ListParams$p, 'cursor'>, options?: PaginateOptions): AsyncGenerator<DraftOrder, void, undefined>;
|
|
19656
|
+
toArray(params?: Omit<ListParams$p, 'cursor'>, options?: PaginateOptions & {
|
|
19244
19657
|
limit?: number;
|
|
19245
19658
|
}): Promise<DraftOrder[]>;
|
|
19246
19659
|
get(id: string, params?: {
|
|
@@ -19248,8 +19661,8 @@ declare class DraftOrdersResource {
|
|
|
19248
19661
|
currency?: string;
|
|
19249
19662
|
fields?: string;
|
|
19250
19663
|
}): Promise<DataResponse<DraftOrder>>;
|
|
19251
|
-
create(body: CreateBody$
|
|
19252
|
-
update(id: string, body: UpdateBody$
|
|
19664
|
+
create(body: CreateBody$i, options?: ResourceRequestOptions): Promise<DataResponse<DraftOrder>>;
|
|
19665
|
+
update(id: string, body: UpdateBody$l): Promise<DataResponse<DraftOrder>>;
|
|
19253
19666
|
delete(id: string): Promise<void>;
|
|
19254
19667
|
addItems(draftOrderId: string, body: AddItemsBody): Promise<DataResponse<DraftOrderLineItem[]>>;
|
|
19255
19668
|
updateItem(draftOrderId: string, itemId: string, body: UpdateItemBody$2): Promise<DataResponse<DraftOrderLineItem>>;
|
|
@@ -19264,22 +19677,22 @@ declare class DraftOrdersResource {
|
|
|
19264
19677
|
}
|
|
19265
19678
|
|
|
19266
19679
|
type Customer = components['schemas']['Customer'];
|
|
19267
|
-
type ListParams$
|
|
19268
|
-
type CreateBody$
|
|
19269
|
-
type UpdateBody$
|
|
19680
|
+
type ListParams$o = NonNullable<operations['listCustomers']['parameters']['query']>;
|
|
19681
|
+
type CreateBody$h = NonNullable<operations['createCustomer']['requestBody']>['content']['application/json'];
|
|
19682
|
+
type UpdateBody$k = NonNullable<operations['updateCustomer']['requestBody']>['content']['application/json'];
|
|
19270
19683
|
type CreateAddressBody$1 = NonNullable<operations['createCustomerAddress']['requestBody']>['content']['application/json'];
|
|
19271
19684
|
type CreateNoteBody$1 = NonNullable<operations['createCustomerNote']['requestBody']>['content']['application/json'];
|
|
19272
19685
|
declare class CustomersResource {
|
|
19273
19686
|
private client;
|
|
19274
19687
|
constructor(client: Hydra);
|
|
19275
|
-
list(params?: ListParams$
|
|
19276
|
-
iterate(params?: Omit<ListParams$
|
|
19277
|
-
toArray(params?: Omit<ListParams$
|
|
19688
|
+
list(params?: ListParams$o): Promise<ListResponse<Customer>>;
|
|
19689
|
+
iterate(params?: Omit<ListParams$o, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Customer, void, undefined>;
|
|
19690
|
+
toArray(params?: Omit<ListParams$o, 'cursor'>, options?: PaginateOptions & {
|
|
19278
19691
|
limit?: number;
|
|
19279
19692
|
}): Promise<Customer[]>;
|
|
19280
|
-
get(id: string, params?: Pick<ListParams$
|
|
19281
|
-
create(body: CreateBody$
|
|
19282
|
-
update(id: string, body: UpdateBody$
|
|
19693
|
+
get(id: string, params?: Pick<ListParams$o, 'expand' | 'fields'>): Promise<DataResponse<Customer>>;
|
|
19694
|
+
create(body: CreateBody$h, options?: ResourceRequestOptions): Promise<DataResponse<Customer>>;
|
|
19695
|
+
update(id: string, body: UpdateBody$k): Promise<DataResponse<Customer>>;
|
|
19283
19696
|
delete(id: string): Promise<void>;
|
|
19284
19697
|
listAddresses(customerId: string): Promise<DataResponse<unknown[]>>;
|
|
19285
19698
|
createAddress(customerId: string, body: CreateAddressBody$1): Promise<DataResponse<unknown>>;
|
|
@@ -19293,29 +19706,29 @@ declare class CustomersResource {
|
|
|
19293
19706
|
}
|
|
19294
19707
|
|
|
19295
19708
|
type CustomerGroup = components['schemas']['CustomerGroup'];
|
|
19296
|
-
type ListParams$
|
|
19297
|
-
type CreateBody$
|
|
19298
|
-
type UpdateBody$
|
|
19709
|
+
type ListParams$n = NonNullable<operations['listCustomerGroups']['parameters']['query']>;
|
|
19710
|
+
type CreateBody$g = NonNullable<operations['createCustomerGroup']['requestBody']>['content']['application/json'];
|
|
19711
|
+
type UpdateBody$j = NonNullable<operations['updateCustomerGroup']['requestBody']>['content']['application/json'];
|
|
19299
19712
|
type AddMembersBody = NonNullable<operations['addCustomerGroupMembers']['requestBody']>['content']['application/json'];
|
|
19300
19713
|
declare class CustomerGroupsResource {
|
|
19301
19714
|
private client;
|
|
19302
19715
|
constructor(client: Hydra);
|
|
19303
|
-
list(params?: ListParams$
|
|
19304
|
-
iterate(params?: Omit<ListParams$
|
|
19305
|
-
toArray(params?: Omit<ListParams$
|
|
19716
|
+
list(params?: ListParams$n): Promise<ListResponse<CustomerGroup>>;
|
|
19717
|
+
iterate(params?: Omit<ListParams$n, 'cursor'>, options?: PaginateOptions): AsyncGenerator<CustomerGroup, void, undefined>;
|
|
19718
|
+
toArray(params?: Omit<ListParams$n, 'cursor'>, options?: PaginateOptions & {
|
|
19306
19719
|
limit?: number;
|
|
19307
19720
|
}): Promise<CustomerGroup[]>;
|
|
19308
19721
|
get(id: string): Promise<DataResponse<CustomerGroup>>;
|
|
19309
|
-
create(body: CreateBody$
|
|
19310
|
-
update(id: string, body: UpdateBody$
|
|
19722
|
+
create(body: CreateBody$g, options?: ResourceRequestOptions): Promise<DataResponse<CustomerGroup>>;
|
|
19723
|
+
update(id: string, body: UpdateBody$j): Promise<DataResponse<CustomerGroup>>;
|
|
19311
19724
|
delete(id: string): Promise<void>;
|
|
19312
19725
|
addMembers(groupId: string, body: AddMembersBody): Promise<void>;
|
|
19313
19726
|
removeMember(groupId: string, customerId: string): Promise<void>;
|
|
19314
19727
|
}
|
|
19315
19728
|
|
|
19316
19729
|
type CustomerPhoto = components['schemas']['CustomerPhoto'];
|
|
19317
|
-
type ListParams$
|
|
19318
|
-
type UpdateBody$
|
|
19730
|
+
type ListParams$m = NonNullable<operations['listCustomerPhotos']['parameters']['query']>;
|
|
19731
|
+
type UpdateBody$i = NonNullable<operations['updateCustomerPhoto']['requestBody']>['content']['application/json'];
|
|
19319
19732
|
type RejectBody = NonNullable<operations['rejectCustomerPhoto']['requestBody']>['content']['application/json'];
|
|
19320
19733
|
declare class CustomerPhotosResource {
|
|
19321
19734
|
private client;
|
|
@@ -19324,15 +19737,15 @@ declare class CustomerPhotosResource {
|
|
|
19324
19737
|
* List customer photos (secret key only).
|
|
19325
19738
|
* Filter by product, status, etc.
|
|
19326
19739
|
*/
|
|
19327
|
-
list(params?: ListParams$
|
|
19740
|
+
list(params?: ListParams$m): Promise<ListResponse<CustomerPhoto>>;
|
|
19328
19741
|
/**
|
|
19329
19742
|
* Iterate through all customer photos with automatic pagination.
|
|
19330
19743
|
*/
|
|
19331
|
-
iterate(params?: Omit<ListParams$
|
|
19744
|
+
iterate(params?: Omit<ListParams$m, 'cursor'>, options?: PaginateOptions): AsyncGenerator<CustomerPhoto, void, undefined>;
|
|
19332
19745
|
/**
|
|
19333
19746
|
* Fetch all customer photos as an array (use with caution on large datasets).
|
|
19334
19747
|
*/
|
|
19335
|
-
toArray(params?: Omit<ListParams$
|
|
19748
|
+
toArray(params?: Omit<ListParams$m, 'cursor'>, options?: PaginateOptions & {
|
|
19336
19749
|
limit?: number;
|
|
19337
19750
|
}): Promise<CustomerPhoto[]>;
|
|
19338
19751
|
/**
|
|
@@ -19348,7 +19761,7 @@ declare class CustomerPhotosResource {
|
|
|
19348
19761
|
* Update customer photo metadata (secret key only).
|
|
19349
19762
|
* Fields: credit, link_url, link_text, alt_text, show_in_gallery.
|
|
19350
19763
|
*/
|
|
19351
|
-
update(id: string, body: UpdateBody$
|
|
19764
|
+
update(id: string, body: UpdateBody$i): Promise<DataResponse<CustomerPhoto>>;
|
|
19352
19765
|
/**
|
|
19353
19766
|
* Approve a customer photo (secret key only).
|
|
19354
19767
|
* Sets status to 'approved' and makes it visible on storefront.
|
|
@@ -19375,18 +19788,18 @@ declare class CustomerPhotosResource {
|
|
|
19375
19788
|
getForProduct(productId: string): Promise<DataResponse<CustomerPhoto[]>>;
|
|
19376
19789
|
}
|
|
19377
19790
|
|
|
19378
|
-
type UpdateBody$
|
|
19791
|
+
type UpdateBody$h = NonNullable<operations['updateAddress']['requestBody']>['content']['application/json'];
|
|
19379
19792
|
declare class AddressesResource {
|
|
19380
19793
|
private client;
|
|
19381
19794
|
constructor(client: Hydra);
|
|
19382
|
-
update(id: string, body: UpdateBody$
|
|
19795
|
+
update(id: string, body: UpdateBody$h): Promise<DataResponse<unknown>>;
|
|
19383
19796
|
delete(id: string): Promise<void>;
|
|
19384
19797
|
}
|
|
19385
19798
|
|
|
19386
19799
|
type InventoryLevel = components['schemas']['InventoryLevel'];
|
|
19387
19800
|
type InventoryAdjustment = components['schemas']['InventoryAdjustment'];
|
|
19388
19801
|
type ProductAdjustment = components['schemas']['ProductAdjustment'];
|
|
19389
|
-
type ListParams$
|
|
19802
|
+
type ListParams$l = NonNullable<operations['listInventory']['parameters']['query']>;
|
|
19390
19803
|
type SetBody = NonNullable<operations['setInventory']['requestBody']>['content']['application/json'];
|
|
19391
19804
|
type AdjustBody = NonNullable<operations['adjustInventory']['requestBody']>['content']['application/json'];
|
|
19392
19805
|
type InventoryResult = InventoryLevel & {
|
|
@@ -19395,9 +19808,9 @@ type InventoryResult = InventoryLevel & {
|
|
|
19395
19808
|
declare class InventoryResource {
|
|
19396
19809
|
private client;
|
|
19397
19810
|
constructor(client: Hydra);
|
|
19398
|
-
list(params?: ListParams$
|
|
19399
|
-
iterate(params?: Omit<ListParams$
|
|
19400
|
-
toArray(params?: Omit<ListParams$
|
|
19811
|
+
list(params?: ListParams$l): Promise<ListResponse<InventoryLevel>>;
|
|
19812
|
+
iterate(params?: Omit<ListParams$l, 'cursor'>, options?: PaginateOptions): AsyncGenerator<InventoryLevel, void, undefined>;
|
|
19813
|
+
toArray(params?: Omit<ListParams$l, 'cursor'>, options?: PaginateOptions & {
|
|
19401
19814
|
limit?: number;
|
|
19402
19815
|
}): Promise<InventoryLevel[]>;
|
|
19403
19816
|
listAdjustments(params: {
|
|
@@ -19469,56 +19882,56 @@ declare class ShippingResource {
|
|
|
19469
19882
|
}
|
|
19470
19883
|
|
|
19471
19884
|
type Promotion = components['schemas']['Promotion'];
|
|
19472
|
-
type ListParams$
|
|
19473
|
-
type CreateBody$
|
|
19474
|
-
type UpdateBody$
|
|
19885
|
+
type ListParams$k = NonNullable<operations['listPromotions']['parameters']['query']>;
|
|
19886
|
+
type CreateBody$f = NonNullable<operations['createPromotion']['requestBody']>['content']['application/json'];
|
|
19887
|
+
type UpdateBody$g = NonNullable<operations['updatePromotion']['requestBody']>['content']['application/json'];
|
|
19475
19888
|
declare class PromotionsResource {
|
|
19476
19889
|
private client;
|
|
19477
19890
|
constructor(client: Hydra);
|
|
19478
|
-
list(params?: ListParams$
|
|
19479
|
-
iterate(params?: Omit<ListParams$
|
|
19480
|
-
toArray(params?: Omit<ListParams$
|
|
19891
|
+
list(params?: ListParams$k): Promise<ListResponse<Promotion>>;
|
|
19892
|
+
iterate(params?: Omit<ListParams$k, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Promotion, void, undefined>;
|
|
19893
|
+
toArray(params?: Omit<ListParams$k, 'cursor'>, options?: PaginateOptions & {
|
|
19481
19894
|
limit?: number;
|
|
19482
19895
|
}): Promise<Promotion[]>;
|
|
19483
19896
|
get(id: string): Promise<DataResponse<Promotion>>;
|
|
19484
|
-
create(body: CreateBody$
|
|
19485
|
-
update(id: string, body: UpdateBody$
|
|
19897
|
+
create(body: CreateBody$f, options?: ResourceRequestOptions): Promise<DataResponse<Promotion>>;
|
|
19898
|
+
update(id: string, body: UpdateBody$g): Promise<DataResponse<Promotion>>;
|
|
19486
19899
|
delete(id: string): Promise<void>;
|
|
19487
19900
|
}
|
|
19488
19901
|
|
|
19489
19902
|
type Discount = components['schemas']['Discount'];
|
|
19490
|
-
type ListParams$
|
|
19491
|
-
type CreateBody$
|
|
19492
|
-
type UpdateBody$
|
|
19903
|
+
type ListParams$j = NonNullable<operations['listDiscounts']['parameters']['query']>;
|
|
19904
|
+
type CreateBody$e = NonNullable<operations['createDiscount']['requestBody']>['content']['application/json'];
|
|
19905
|
+
type UpdateBody$f = NonNullable<operations['updateDiscount']['requestBody']>['content']['application/json'];
|
|
19493
19906
|
declare class DiscountsResource {
|
|
19494
19907
|
private client;
|
|
19495
19908
|
constructor(client: Hydra);
|
|
19496
|
-
list(params?: ListParams$
|
|
19497
|
-
iterate(params?: Omit<ListParams$
|
|
19498
|
-
toArray(params?: Omit<ListParams$
|
|
19909
|
+
list(params?: ListParams$j): Promise<ListResponse<Discount>>;
|
|
19910
|
+
iterate(params?: Omit<ListParams$j, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Discount, void, undefined>;
|
|
19911
|
+
toArray(params?: Omit<ListParams$j, 'cursor'>, options?: PaginateOptions & {
|
|
19499
19912
|
limit?: number;
|
|
19500
19913
|
}): Promise<Discount[]>;
|
|
19501
19914
|
get(id: string): Promise<DataResponse<Discount>>;
|
|
19502
|
-
create(body: CreateBody$
|
|
19503
|
-
update(id: string, body: UpdateBody$
|
|
19915
|
+
create(body: CreateBody$e, options?: ResourceRequestOptions): Promise<DataResponse<Discount>>;
|
|
19916
|
+
update(id: string, body: UpdateBody$f): Promise<DataResponse<Discount>>;
|
|
19504
19917
|
delete(id: string): Promise<void>;
|
|
19505
19918
|
}
|
|
19506
19919
|
|
|
19507
19920
|
type Image = components['schemas']['Image'];
|
|
19508
|
-
type ListParams$
|
|
19509
|
-
type UpdateBody$
|
|
19921
|
+
type ListParams$i = NonNullable<operations['listImages']['parameters']['query']>;
|
|
19922
|
+
type UpdateBody$e = NonNullable<operations['updateImage']['requestBody']>['content']['application/json'];
|
|
19510
19923
|
type ReorderBody$2 = NonNullable<operations['reorderImages']['requestBody']>['content']['application/json'];
|
|
19511
19924
|
declare class ImagesResource {
|
|
19512
19925
|
private client;
|
|
19513
19926
|
constructor(client: Hydra);
|
|
19514
|
-
list(params?: ListParams$
|
|
19515
|
-
iterate(params?: Omit<ListParams$
|
|
19516
|
-
toArray(params?: Omit<ListParams$
|
|
19927
|
+
list(params?: ListParams$i): Promise<ListResponse<Image>>;
|
|
19928
|
+
iterate(params?: Omit<ListParams$i, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Image, void, undefined>;
|
|
19929
|
+
toArray(params?: Omit<ListParams$i, 'cursor'>, options?: PaginateOptions & {
|
|
19517
19930
|
limit?: number;
|
|
19518
19931
|
}): Promise<Image[]>;
|
|
19519
19932
|
/** Upload an image to the store library */
|
|
19520
19933
|
upload(formData: FormData): Promise<DataResponse<Image>>;
|
|
19521
|
-
update(id: string, body: UpdateBody$
|
|
19934
|
+
update(id: string, body: UpdateBody$e): Promise<DataResponse<Image>>;
|
|
19522
19935
|
delete(id: string): Promise<void>;
|
|
19523
19936
|
detach(id: string): Promise<void>;
|
|
19524
19937
|
batchDelete(imageIds: string[]): Promise<void>;
|
|
@@ -19527,32 +19940,32 @@ declare class ImagesResource {
|
|
|
19527
19940
|
}
|
|
19528
19941
|
|
|
19529
19942
|
type Webhook = components['schemas']['Webhook'];
|
|
19530
|
-
type ListParams$
|
|
19531
|
-
type CreateBody$
|
|
19532
|
-
type UpdateBody$
|
|
19943
|
+
type ListParams$h = NonNullable<operations['listWebhooks']['parameters']['query']>;
|
|
19944
|
+
type CreateBody$d = NonNullable<operations['createWebhook']['requestBody']>['content']['application/json'];
|
|
19945
|
+
type UpdateBody$d = NonNullable<operations['updateWebhook']['requestBody']>['content']['application/json'];
|
|
19533
19946
|
declare class WebhooksResource {
|
|
19534
19947
|
private client;
|
|
19535
19948
|
constructor(client: Hydra);
|
|
19536
|
-
list(params?: ListParams$
|
|
19537
|
-
iterate(params?: Omit<ListParams$
|
|
19538
|
-
toArray(params?: Omit<ListParams$
|
|
19949
|
+
list(params?: ListParams$h): Promise<ListResponse<Webhook>>;
|
|
19950
|
+
iterate(params?: Omit<ListParams$h, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Webhook, void, undefined>;
|
|
19951
|
+
toArray(params?: Omit<ListParams$h, 'cursor'>, options?: PaginateOptions & {
|
|
19539
19952
|
limit?: number;
|
|
19540
19953
|
}): Promise<Webhook[]>;
|
|
19541
19954
|
get(id: string): Promise<DataResponse<Webhook>>;
|
|
19542
|
-
create(body: CreateBody$
|
|
19543
|
-
update(id: string, body: UpdateBody$
|
|
19955
|
+
create(body: CreateBody$d, options?: ResourceRequestOptions): Promise<DataResponse<Webhook>>;
|
|
19956
|
+
update(id: string, body: UpdateBody$d): Promise<DataResponse<Webhook>>;
|
|
19544
19957
|
delete(id: string): Promise<void>;
|
|
19545
19958
|
}
|
|
19546
19959
|
|
|
19547
19960
|
type Store = components['schemas']['Store'];
|
|
19548
|
-
type UpdateBody$
|
|
19961
|
+
type UpdateBody$c = NonNullable<operations['updateStore']['requestBody']>['content']['application/json'];
|
|
19549
19962
|
declare class StoreResource {
|
|
19550
19963
|
private client;
|
|
19551
19964
|
constructor(client: Hydra);
|
|
19552
19965
|
get(params?: {
|
|
19553
19966
|
fields?: string;
|
|
19554
19967
|
}): Promise<DataResponse<Store>>;
|
|
19555
|
-
update(body: UpdateBody$
|
|
19968
|
+
update(body: UpdateBody$c): Promise<DataResponse<Store>>;
|
|
19556
19969
|
getDomainRecord(): Promise<DataResponse<unknown>>;
|
|
19557
19970
|
verifyDomain(): Promise<DataResponse<unknown>>;
|
|
19558
19971
|
publish(): Promise<DataResponse<{
|
|
@@ -19564,42 +19977,42 @@ declare class StoreResource {
|
|
|
19564
19977
|
}
|
|
19565
19978
|
|
|
19566
19979
|
type Tag = components['schemas']['Tag'];
|
|
19567
|
-
type ListParams$
|
|
19568
|
-
type CreateBody$
|
|
19569
|
-
type UpdateBody$
|
|
19980
|
+
type ListParams$g = NonNullable<operations['listTags']['parameters']['query']>;
|
|
19981
|
+
type CreateBody$c = NonNullable<operations['createTag']['requestBody']>['content']['application/json'];
|
|
19982
|
+
type UpdateBody$b = NonNullable<operations['updateTag']['requestBody']>['content']['application/json'];
|
|
19570
19983
|
declare class TagsResource {
|
|
19571
19984
|
private client;
|
|
19572
19985
|
constructor(client: Hydra);
|
|
19573
|
-
list(params?: ListParams$
|
|
19574
|
-
iterate(params?: Omit<ListParams$
|
|
19575
|
-
toArray(params?: Omit<ListParams$
|
|
19986
|
+
list(params?: ListParams$g): Promise<ListResponse<Tag>>;
|
|
19987
|
+
iterate(params?: Omit<ListParams$g, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Tag, void, undefined>;
|
|
19988
|
+
toArray(params?: Omit<ListParams$g, 'cursor'>, options?: PaginateOptions & {
|
|
19576
19989
|
limit?: number;
|
|
19577
19990
|
}): Promise<Tag[]>;
|
|
19578
|
-
create(body: CreateBody$
|
|
19579
|
-
update(id: string, body: UpdateBody$
|
|
19991
|
+
create(body: CreateBody$c, options?: ResourceRequestOptions): Promise<DataResponse<Tag>>;
|
|
19992
|
+
update(id: string, body: UpdateBody$b): Promise<DataResponse<Tag>>;
|
|
19580
19993
|
delete(id: string): Promise<void>;
|
|
19581
19994
|
}
|
|
19582
19995
|
|
|
19583
19996
|
type Redirect = components['schemas']['Redirect'];
|
|
19584
|
-
type ListParams$
|
|
19585
|
-
type CreateBody$
|
|
19997
|
+
type ListParams$f = NonNullable<operations['listRedirects']['parameters']['query']>;
|
|
19998
|
+
type CreateBody$b = NonNullable<operations['createRedirect']['requestBody']>['content']['application/json'];
|
|
19586
19999
|
declare class RedirectsResource {
|
|
19587
20000
|
private client;
|
|
19588
20001
|
constructor(client: Hydra);
|
|
19589
|
-
list(params?: ListParams$
|
|
19590
|
-
iterate(params?: Omit<ListParams$
|
|
19591
|
-
toArray(params?: Omit<ListParams$
|
|
20002
|
+
list(params?: ListParams$f): Promise<ListResponse<Redirect>>;
|
|
20003
|
+
iterate(params?: Omit<ListParams$f, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Redirect, void, undefined>;
|
|
20004
|
+
toArray(params?: Omit<ListParams$f, 'cursor'>, options?: PaginateOptions & {
|
|
19592
20005
|
limit?: number;
|
|
19593
20006
|
}): Promise<Redirect[]>;
|
|
19594
|
-
create(body: CreateBody$
|
|
20007
|
+
create(body: CreateBody$b, options?: ResourceRequestOptions): Promise<DataResponse<Redirect>>;
|
|
19595
20008
|
lookup(path: string): Promise<DataResponse<Redirect>>;
|
|
19596
20009
|
delete(id: string): Promise<void>;
|
|
19597
20010
|
}
|
|
19598
20011
|
|
|
19599
20012
|
type Company = components['schemas']['Company'];
|
|
19600
|
-
type ListParams$
|
|
19601
|
-
type CreateBody$
|
|
19602
|
-
type UpdateBody$
|
|
20013
|
+
type ListParams$e = NonNullable<operations['listCompanies']['parameters']['query']>;
|
|
20014
|
+
type CreateBody$a = NonNullable<operations['createCompany']['requestBody']>['content']['application/json'];
|
|
20015
|
+
type UpdateBody$a = NonNullable<operations['updateCompany']['requestBody']>['content']['application/json'];
|
|
19603
20016
|
type CreateAddressBody = NonNullable<operations['createCompanyAddress']['requestBody']>['content']['application/json'];
|
|
19604
20017
|
type UpdateAddressBody = NonNullable<operations['updateCompanyAddress']['requestBody']>['content']['application/json'];
|
|
19605
20018
|
type CreateContactBody = NonNullable<operations['createCompanyContact']['requestBody']>['content']['application/json'];
|
|
@@ -19608,14 +20021,14 @@ type CreateNoteBody = NonNullable<operations['createCompanyNote']['requestBody']
|
|
|
19608
20021
|
declare class CompaniesResource {
|
|
19609
20022
|
private client;
|
|
19610
20023
|
constructor(client: Hydra);
|
|
19611
|
-
list(params?: ListParams$
|
|
19612
|
-
iterate(params?: Omit<ListParams$
|
|
19613
|
-
toArray(params?: Omit<ListParams$
|
|
20024
|
+
list(params?: ListParams$e): Promise<ListResponse<Company>>;
|
|
20025
|
+
iterate(params?: Omit<ListParams$e, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Company, void, undefined>;
|
|
20026
|
+
toArray(params?: Omit<ListParams$e, 'cursor'>, options?: PaginateOptions & {
|
|
19614
20027
|
limit?: number;
|
|
19615
20028
|
}): Promise<Company[]>;
|
|
19616
|
-
get(id: string, params?: Pick<ListParams$
|
|
19617
|
-
create(body: CreateBody$
|
|
19618
|
-
update(id: string, body: UpdateBody$
|
|
20029
|
+
get(id: string, params?: Pick<ListParams$e, 'expand' | 'fields'>): Promise<DataResponse<Company>>;
|
|
20030
|
+
create(body: CreateBody$a, options?: ResourceRequestOptions): Promise<DataResponse<Company>>;
|
|
20031
|
+
update(id: string, body: UpdateBody$a): Promise<DataResponse<Company>>;
|
|
19619
20032
|
delete(id: string): Promise<void>;
|
|
19620
20033
|
listAddresses(companyId: string): Promise<DataResponse<unknown[]>>;
|
|
19621
20034
|
createAddress(companyId: string, body: CreateAddressBody): Promise<DataResponse<unknown>>;
|
|
@@ -19631,23 +20044,23 @@ declare class CompaniesResource {
|
|
|
19631
20044
|
}
|
|
19632
20045
|
|
|
19633
20046
|
type PurchaseOrder = components['schemas']['PurchaseOrder'];
|
|
19634
|
-
type ListParams$
|
|
19635
|
-
type CreateBody$
|
|
19636
|
-
type UpdateBody$
|
|
20047
|
+
type ListParams$d = NonNullable<operations['listPurchaseOrders']['parameters']['query']>;
|
|
20048
|
+
type CreateBody$9 = NonNullable<operations['createPurchaseOrder']['requestBody']>['content']['application/json'];
|
|
20049
|
+
type UpdateBody$9 = NonNullable<operations['updatePurchaseOrder']['requestBody']>['content']['application/json'];
|
|
19637
20050
|
type AddItemBody = NonNullable<operations['addPurchaseOrderItems']['requestBody']>['content']['application/json'];
|
|
19638
20051
|
type UpdateItemBody$1 = NonNullable<operations['updatePurchaseOrderItem']['requestBody']>['content']['application/json'];
|
|
19639
20052
|
type ReceiveBody = NonNullable<operations['receivePurchaseOrderItems']['requestBody']>['content']['application/json'];
|
|
19640
20053
|
declare class PurchaseOrdersResource {
|
|
19641
20054
|
private client;
|
|
19642
20055
|
constructor(client: Hydra);
|
|
19643
|
-
list(params?: ListParams$
|
|
19644
|
-
iterate(params?: Omit<ListParams$
|
|
19645
|
-
toArray(params?: Omit<ListParams$
|
|
20056
|
+
list(params?: ListParams$d): Promise<ListResponse<PurchaseOrder>>;
|
|
20057
|
+
iterate(params?: Omit<ListParams$d, 'cursor'>, options?: PaginateOptions): AsyncGenerator<PurchaseOrder, void, undefined>;
|
|
20058
|
+
toArray(params?: Omit<ListParams$d, 'cursor'>, options?: PaginateOptions & {
|
|
19646
20059
|
limit?: number;
|
|
19647
20060
|
}): Promise<PurchaseOrder[]>;
|
|
19648
|
-
get(id: string, params?: Pick<ListParams$
|
|
19649
|
-
create(body: CreateBody$
|
|
19650
|
-
update(id: string, body: UpdateBody$
|
|
20061
|
+
get(id: string, params?: Pick<ListParams$d, 'expand' | 'fields'>): Promise<DataResponse<PurchaseOrder>>;
|
|
20062
|
+
create(body: CreateBody$9, options?: ResourceRequestOptions): Promise<DataResponse<PurchaseOrder>>;
|
|
20063
|
+
update(id: string, body: UpdateBody$9): Promise<DataResponse<PurchaseOrder>>;
|
|
19651
20064
|
delete(id: string): Promise<void>;
|
|
19652
20065
|
addItem(purchaseOrderId: string, body: AddItemBody): Promise<DataResponse<unknown>>;
|
|
19653
20066
|
updateItem(purchaseOrderId: string, itemId: string, body: UpdateItemBody$1): Promise<DataResponse<unknown>>;
|
|
@@ -19670,17 +20083,17 @@ declare class FulfillmentOrdersResource {
|
|
|
19670
20083
|
listForOrder(orderId: string): Promise<DataResponse<FulfillmentOrder[]>>;
|
|
19671
20084
|
}
|
|
19672
20085
|
|
|
19673
|
-
type ListParams$
|
|
19674
|
-
type CreateBody$
|
|
19675
|
-
type UpdateBody$
|
|
20086
|
+
type ListParams$c = NonNullable<operations['listMetafieldDefinitions']['parameters']['query']>;
|
|
20087
|
+
type CreateBody$8 = NonNullable<operations['createMetafieldDefinition']['requestBody']>['content']['application/json'];
|
|
20088
|
+
type UpdateBody$8 = NonNullable<operations['updateMetafieldDefinition']['requestBody']>['content']['application/json'];
|
|
19676
20089
|
type ReorderBody$1 = NonNullable<operations['reorderMetafieldDefinitions']['requestBody']>['content']['application/json'];
|
|
19677
20090
|
declare class MetafieldsResource {
|
|
19678
20091
|
private client;
|
|
19679
20092
|
constructor(client: Hydra);
|
|
19680
20093
|
/** List metafield definitions for the store */
|
|
19681
|
-
listDefinitions(params?: ListParams$
|
|
19682
|
-
createDefinition(body: CreateBody$
|
|
19683
|
-
updateDefinition(ownerType: string, slug: string, body: UpdateBody$
|
|
20094
|
+
listDefinitions(params?: ListParams$c): Promise<DataResponse<unknown[]>>;
|
|
20095
|
+
createDefinition(body: CreateBody$8): Promise<DataResponse<unknown>>;
|
|
20096
|
+
updateDefinition(ownerType: string, slug: string, body: UpdateBody$8): Promise<DataResponse<unknown>>;
|
|
19684
20097
|
archiveDefinition(ownerType: string, slug: string): Promise<void>;
|
|
19685
20098
|
reorderDefinitions(ownerType: string, body: ReorderBody$1): Promise<void>;
|
|
19686
20099
|
}
|
|
@@ -19726,30 +20139,30 @@ declare class TaxResource {
|
|
|
19726
20139
|
}
|
|
19727
20140
|
|
|
19728
20141
|
type ExchangeRate = components['schemas']['ExchangeRate'];
|
|
19729
|
-
type ListParams$
|
|
20142
|
+
type ListParams$b = NonNullable<operations['listExchangeRates']['parameters']['query']>;
|
|
19730
20143
|
declare class ExchangeRatesResource {
|
|
19731
20144
|
private client;
|
|
19732
20145
|
constructor(client: Hydra);
|
|
19733
|
-
list(params?: ListParams$
|
|
20146
|
+
list(params?: ListParams$b): Promise<DataResponse<ExchangeRate[]>>;
|
|
19734
20147
|
refresh(): Promise<DataResponse<unknown>>;
|
|
19735
20148
|
}
|
|
19736
20149
|
|
|
19737
20150
|
type FilterAttribute = components['schemas']['FilterAttribute'];
|
|
19738
|
-
type ListParams$
|
|
19739
|
-
type CreateBody$
|
|
19740
|
-
type UpdateBody$
|
|
20151
|
+
type ListParams$a = NonNullable<operations['listFilterAttributes']['parameters']['query']>;
|
|
20152
|
+
type CreateBody$7 = NonNullable<operations['createFilterAttribute']['requestBody']>['content']['application/json'];
|
|
20153
|
+
type UpdateBody$7 = NonNullable<operations['updateFilterAttribute']['requestBody']>['content']['application/json'];
|
|
19741
20154
|
type ReorderBody = NonNullable<operations['reorderFilterAttributes']['requestBody']>['content']['application/json'];
|
|
19742
20155
|
declare class FilterAttributesResource {
|
|
19743
20156
|
private client;
|
|
19744
20157
|
constructor(client: Hydra);
|
|
19745
|
-
list(params?: ListParams$
|
|
19746
|
-
iterate(params?: Omit<ListParams$
|
|
19747
|
-
toArray(params?: Omit<ListParams$
|
|
20158
|
+
list(params?: ListParams$a): Promise<ListResponse<FilterAttribute>>;
|
|
20159
|
+
iterate(params?: Omit<ListParams$a, 'cursor'>, options?: PaginateOptions): AsyncGenerator<FilterAttribute, void, undefined>;
|
|
20160
|
+
toArray(params?: Omit<ListParams$a, 'cursor'>, options?: PaginateOptions & {
|
|
19748
20161
|
limit?: number;
|
|
19749
20162
|
}): Promise<FilterAttribute[]>;
|
|
19750
20163
|
get(id: string): Promise<DataResponse<FilterAttribute>>;
|
|
19751
|
-
create(body: CreateBody$
|
|
19752
|
-
update(id: string, body: UpdateBody$
|
|
20164
|
+
create(body: CreateBody$7, options?: ResourceRequestOptions): Promise<DataResponse<FilterAttribute>>;
|
|
20165
|
+
update(id: string, body: UpdateBody$7): Promise<DataResponse<FilterAttribute>>;
|
|
19753
20166
|
delete(id: string): Promise<void>;
|
|
19754
20167
|
reorder(body: ReorderBody): Promise<ListResponse<FilterAttribute>>;
|
|
19755
20168
|
discover(): Promise<DataResponse<unknown[]>>;
|
|
@@ -19757,23 +20170,23 @@ declare class FilterAttributesResource {
|
|
|
19757
20170
|
|
|
19758
20171
|
type NavigationMenu = components['schemas']['NavigationMenu'];
|
|
19759
20172
|
type NavigationItem = components['schemas']['NavigationItem'];
|
|
19760
|
-
type ListParams$
|
|
19761
|
-
type CreateBody$
|
|
19762
|
-
type UpdateBody$
|
|
20173
|
+
type ListParams$9 = NonNullable<operations['listNavigationMenus']['parameters']['query']>;
|
|
20174
|
+
type CreateBody$6 = NonNullable<operations['createNavigationMenu']['requestBody']>['content']['application/json'];
|
|
20175
|
+
type UpdateBody$6 = NonNullable<operations['updateNavigationMenu']['requestBody']>['content']['application/json'];
|
|
19763
20176
|
type CreateItemBody = NonNullable<operations['addNavigationItem']['requestBody']>['content']['application/json'];
|
|
19764
20177
|
type UpdateItemBody = NonNullable<operations['updateNavigationItem']['requestBody']>['content']['application/json'];
|
|
19765
20178
|
type ReorderItemsBody = NonNullable<operations['reorderNavigationItems']['requestBody']>['content']['application/json'];
|
|
19766
20179
|
declare class NavigationResource {
|
|
19767
20180
|
private client;
|
|
19768
20181
|
constructor(client: Hydra);
|
|
19769
|
-
list(params?: ListParams$
|
|
19770
|
-
iterate(params?: Omit<ListParams$
|
|
19771
|
-
toArray(params?: Omit<ListParams$
|
|
20182
|
+
list(params?: ListParams$9): Promise<ListResponse<NavigationMenu>>;
|
|
20183
|
+
iterate(params?: Omit<ListParams$9, 'cursor'>, options?: PaginateOptions): AsyncGenerator<NavigationMenu, void, undefined>;
|
|
20184
|
+
toArray(params?: Omit<ListParams$9, 'cursor'>, options?: PaginateOptions & {
|
|
19772
20185
|
limit?: number;
|
|
19773
20186
|
}): Promise<NavigationMenu[]>;
|
|
19774
20187
|
get(id: string): Promise<DataResponse<NavigationMenu>>;
|
|
19775
|
-
create(body: CreateBody$
|
|
19776
|
-
update(id: string, body: UpdateBody$
|
|
20188
|
+
create(body: CreateBody$6, options?: ResourceRequestOptions): Promise<DataResponse<NavigationMenu>>;
|
|
20189
|
+
update(id: string, body: UpdateBody$6): Promise<DataResponse<NavigationMenu>>;
|
|
19777
20190
|
delete(id: string): Promise<void>;
|
|
19778
20191
|
addItem(menuId: string, body: CreateItemBody): Promise<DataResponse<NavigationItem>>;
|
|
19779
20192
|
updateItem(menuId: string, itemId: string, body: UpdateItemBody): Promise<DataResponse<NavigationItem>>;
|
|
@@ -19782,26 +20195,26 @@ declare class NavigationResource {
|
|
|
19782
20195
|
}
|
|
19783
20196
|
|
|
19784
20197
|
type NotificationLog = components['schemas']['NotificationLog'];
|
|
19785
|
-
type ListParams$
|
|
20198
|
+
type ListParams$8 = NonNullable<operations['listNotifications']['parameters']['query']>;
|
|
19786
20199
|
declare class NotificationsResource {
|
|
19787
20200
|
private client;
|
|
19788
20201
|
constructor(client: Hydra);
|
|
19789
|
-
list(params?: ListParams$
|
|
19790
|
-
iterate(params?: Omit<ListParams$
|
|
19791
|
-
toArray(params?: Omit<ListParams$
|
|
20202
|
+
list(params?: ListParams$8): Promise<ListResponse<NotificationLog>>;
|
|
20203
|
+
iterate(params?: Omit<ListParams$8, 'cursor'>, options?: PaginateOptions): AsyncGenerator<NotificationLog, void, undefined>;
|
|
20204
|
+
toArray(params?: Omit<ListParams$8, 'cursor'>, options?: PaginateOptions & {
|
|
19792
20205
|
limit?: number;
|
|
19793
20206
|
}): Promise<NotificationLog[]>;
|
|
19794
20207
|
get(id: string): Promise<DataResponse<NotificationLog>>;
|
|
19795
20208
|
}
|
|
19796
20209
|
|
|
19797
20210
|
type CheckoutListItem = components['schemas']['CheckoutListItem'];
|
|
19798
|
-
type ListParams$
|
|
20211
|
+
type ListParams$7 = NonNullable<operations['listCheckouts']['parameters']['query']>;
|
|
19799
20212
|
declare class CheckoutsResource {
|
|
19800
20213
|
private client;
|
|
19801
20214
|
constructor(client: Hydra);
|
|
19802
|
-
list(params?: ListParams$
|
|
19803
|
-
iterate(params?: Omit<ListParams$
|
|
19804
|
-
toArray(params?: Omit<ListParams$
|
|
20215
|
+
list(params?: ListParams$7): Promise<ListResponse<CheckoutListItem>>;
|
|
20216
|
+
iterate(params?: Omit<ListParams$7, 'cursor'>, options?: PaginateOptions): AsyncGenerator<CheckoutListItem, void, undefined>;
|
|
20217
|
+
toArray(params?: Omit<ListParams$7, 'cursor'>, options?: PaginateOptions & {
|
|
19805
20218
|
limit?: number;
|
|
19806
20219
|
}): Promise<CheckoutListItem[]>;
|
|
19807
20220
|
}
|
|
@@ -19827,16 +20240,16 @@ declare class AnalyticsResource {
|
|
|
19827
20240
|
|
|
19828
20241
|
type CreditTransaction = NonNullable<operations['issueCustomerCredit']['responses']['201']['content']['application/json']['data']>;
|
|
19829
20242
|
type CreditBalance = NonNullable<operations['getCustomerCredit']['responses']['200']['content']['application/json']['data']>;
|
|
19830
|
-
type ListParams$
|
|
20243
|
+
type ListParams$6 = NonNullable<operations['listCustomerCreditTransactions']['parameters']['query']>;
|
|
19831
20244
|
type IssueCreditBody = NonNullable<operations['issueCustomerCredit']['requestBody']>['content']['application/json'];
|
|
19832
20245
|
declare class StoreCreditResource {
|
|
19833
20246
|
private client;
|
|
19834
20247
|
constructor(client: Hydra);
|
|
19835
20248
|
getBalance(customerId: string): Promise<DataResponse<CreditBalance>>;
|
|
19836
20249
|
issue(customerId: string, body: IssueCreditBody, options?: ResourceRequestOptions): Promise<DataResponse<CreditTransaction>>;
|
|
19837
|
-
listTransactions(customerId: string, params?: ListParams$
|
|
19838
|
-
iterateTransactions(customerId: string, params?: Omit<ListParams$
|
|
19839
|
-
transactionsToArray(customerId: string, params?: Omit<ListParams$
|
|
20250
|
+
listTransactions(customerId: string, params?: ListParams$6): Promise<ListResponse<CreditTransaction>>;
|
|
20251
|
+
iterateTransactions(customerId: string, params?: Omit<ListParams$6, 'cursor'>, options?: PaginateOptions): AsyncGenerator<CreditTransaction, void, undefined>;
|
|
20252
|
+
transactionsToArray(customerId: string, params?: Omit<ListParams$6, 'cursor'>, options?: PaginateOptions & {
|
|
19840
20253
|
limit?: number;
|
|
19841
20254
|
}): Promise<CreditTransaction[]>;
|
|
19842
20255
|
}
|
|
@@ -19856,41 +20269,41 @@ declare class SearchResource {
|
|
|
19856
20269
|
}
|
|
19857
20270
|
|
|
19858
20271
|
type Channel = components['schemas']['Channel'];
|
|
19859
|
-
type ListParams$
|
|
19860
|
-
type CreateBody$
|
|
19861
|
-
type UpdateBody$
|
|
20272
|
+
type ListParams$5 = NonNullable<operations['listChannels']['parameters']['query']>;
|
|
20273
|
+
type CreateBody$5 = NonNullable<operations['createChannel']['requestBody']>['content']['application/json'];
|
|
20274
|
+
type UpdateBody$5 = NonNullable<operations['updateChannel']['requestBody']>['content']['application/json'];
|
|
19862
20275
|
declare class ChannelsResource {
|
|
19863
20276
|
private client;
|
|
19864
20277
|
constructor(client: Hydra);
|
|
19865
|
-
list(params?: ListParams$
|
|
19866
|
-
iterate(params?: Omit<ListParams$
|
|
19867
|
-
toArray(params?: Omit<ListParams$
|
|
20278
|
+
list(params?: ListParams$5): Promise<ListResponse<Channel>>;
|
|
20279
|
+
iterate(params?: Omit<ListParams$5, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Channel, void, undefined>;
|
|
20280
|
+
toArray(params?: Omit<ListParams$5, 'cursor'>, options?: PaginateOptions & {
|
|
19868
20281
|
limit?: number;
|
|
19869
20282
|
}): Promise<Channel[]>;
|
|
19870
|
-
get(slug: string, params?: Pick<ListParams$
|
|
19871
|
-
create(body: CreateBody$
|
|
19872
|
-
update(slug: string, body: UpdateBody$
|
|
20283
|
+
get(slug: string, params?: Pick<ListParams$5, 'fields'>): Promise<DataResponse<Channel>>;
|
|
20284
|
+
create(body: CreateBody$5, options?: ResourceRequestOptions): Promise<DataResponse<Channel>>;
|
|
20285
|
+
update(slug: string, body: UpdateBody$5): Promise<DataResponse<Channel>>;
|
|
19873
20286
|
archive(slug: string): Promise<void>;
|
|
19874
20287
|
setDefault(slug: string): Promise<DataResponse<Channel>>;
|
|
19875
20288
|
}
|
|
19876
20289
|
|
|
19877
20290
|
type Location = components['schemas']['Location'];
|
|
19878
20291
|
type TransferResult = components['schemas']['TransferResult'];
|
|
19879
|
-
type ListParams$
|
|
19880
|
-
type CreateBody$
|
|
19881
|
-
type UpdateBody$
|
|
20292
|
+
type ListParams$4 = NonNullable<operations['listLocations']['parameters']['query']>;
|
|
20293
|
+
type CreateBody$4 = NonNullable<operations['createLocation']['requestBody']>['content']['application/json'];
|
|
20294
|
+
type UpdateBody$4 = NonNullable<operations['updateLocation']['requestBody']>['content']['application/json'];
|
|
19882
20295
|
type TransferBody = NonNullable<operations['transferLocationInventory']['requestBody']>['content']['application/json'];
|
|
19883
20296
|
declare class LocationsResource {
|
|
19884
20297
|
private client;
|
|
19885
20298
|
constructor(client: Hydra);
|
|
19886
|
-
list(params?: ListParams$
|
|
19887
|
-
iterate(params?: Omit<ListParams$
|
|
19888
|
-
toArray(params?: Omit<ListParams$
|
|
20299
|
+
list(params?: ListParams$4): Promise<ListResponse<Location>>;
|
|
20300
|
+
iterate(params?: Omit<ListParams$4, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Location, void, undefined>;
|
|
20301
|
+
toArray(params?: Omit<ListParams$4, 'cursor'>, options?: PaginateOptions & {
|
|
19889
20302
|
limit?: number;
|
|
19890
20303
|
}): Promise<Location[]>;
|
|
19891
20304
|
get(id: string): Promise<DataResponse<Location>>;
|
|
19892
|
-
create(body: CreateBody$
|
|
19893
|
-
update(id: string, body: UpdateBody$
|
|
20305
|
+
create(body: CreateBody$4, options?: ResourceRequestOptions): Promise<DataResponse<Location>>;
|
|
20306
|
+
update(id: string, body: UpdateBody$4): Promise<DataResponse<Location>>;
|
|
19894
20307
|
delete(id: string): Promise<void>;
|
|
19895
20308
|
setDefault(id: string): Promise<DataResponse<Location>>;
|
|
19896
20309
|
transfer(id: string, body: TransferBody): Promise<DataResponse<TransferResult>>;
|
|
@@ -19956,41 +20369,41 @@ declare class IntegrationsResource {
|
|
|
19956
20369
|
}
|
|
19957
20370
|
|
|
19958
20371
|
type Post = components['schemas']['Post'];
|
|
19959
|
-
type ListParams$
|
|
19960
|
-
type CreateBody$
|
|
19961
|
-
type UpdateBody$
|
|
20372
|
+
type ListParams$3 = NonNullable<operations['listPosts']['parameters']['query']>;
|
|
20373
|
+
type CreateBody$3 = NonNullable<operations['createPost']['requestBody']>['content']['application/json'];
|
|
20374
|
+
type UpdateBody$3 = NonNullable<operations['updatePost']['requestBody']>['content']['application/json'];
|
|
19962
20375
|
type AddCategoriesBody = NonNullable<operations['addPostCategories']['requestBody']>['content']['application/json'];
|
|
19963
20376
|
declare class PostsResource {
|
|
19964
20377
|
private client;
|
|
19965
20378
|
constructor(client: Hydra);
|
|
19966
|
-
list(params?: ListParams$
|
|
19967
|
-
iterate(params?: Omit<ListParams$
|
|
19968
|
-
toArray(params?: Omit<ListParams$
|
|
20379
|
+
list(params?: ListParams$3): Promise<ListResponse<Post>>;
|
|
20380
|
+
iterate(params?: Omit<ListParams$3, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Post, void, undefined>;
|
|
20381
|
+
toArray(params?: Omit<ListParams$3, 'cursor'>, options?: PaginateOptions & {
|
|
19969
20382
|
limit?: number;
|
|
19970
20383
|
}): Promise<Post[]>;
|
|
19971
|
-
get(id: string, params?: Pick<ListParams$
|
|
19972
|
-
create(body: CreateBody$
|
|
19973
|
-
update(id: string, body: UpdateBody$
|
|
20384
|
+
get(id: string, params?: Pick<ListParams$3, 'expand' | 'fields'>): Promise<DataResponse<Post>>;
|
|
20385
|
+
create(body: CreateBody$3, options?: ResourceRequestOptions): Promise<DataResponse<Post>>;
|
|
20386
|
+
update(id: string, body: UpdateBody$3): Promise<DataResponse<Post>>;
|
|
19974
20387
|
delete(id: string): Promise<void>;
|
|
19975
20388
|
addCategories(postId: string, body: AddCategoriesBody): Promise<DataResponse<Post>>;
|
|
19976
20389
|
removeCategory(postId: string, categoryId: string): Promise<void>;
|
|
19977
20390
|
}
|
|
19978
20391
|
|
|
19979
20392
|
type ContentCategory = components['schemas']['ContentCategory'];
|
|
19980
|
-
type ListParams$
|
|
19981
|
-
type CreateBody$
|
|
19982
|
-
type UpdateBody$
|
|
20393
|
+
type ListParams$2 = NonNullable<operations['listContentCategories']['parameters']['query']>;
|
|
20394
|
+
type CreateBody$2 = NonNullable<operations['createContentCategory']['requestBody']>['content']['application/json'];
|
|
20395
|
+
type UpdateBody$2 = NonNullable<operations['updateContentCategory']['requestBody']>['content']['application/json'];
|
|
19983
20396
|
declare class ContentCategoriesResource {
|
|
19984
20397
|
private client;
|
|
19985
20398
|
constructor(client: Hydra);
|
|
19986
|
-
list(params?: ListParams$
|
|
19987
|
-
iterate(params?: Omit<ListParams$
|
|
19988
|
-
toArray(params?: Omit<ListParams$
|
|
20399
|
+
list(params?: ListParams$2): Promise<ListResponse<ContentCategory>>;
|
|
20400
|
+
iterate(params?: Omit<ListParams$2, 'cursor'>, options?: PaginateOptions): AsyncGenerator<ContentCategory, void, undefined>;
|
|
20401
|
+
toArray(params?: Omit<ListParams$2, 'cursor'>, options?: PaginateOptions & {
|
|
19989
20402
|
limit?: number;
|
|
19990
20403
|
}): Promise<ContentCategory[]>;
|
|
19991
20404
|
get(id: string): Promise<DataResponse<ContentCategory>>;
|
|
19992
|
-
create(body: CreateBody$
|
|
19993
|
-
update(id: string, body: UpdateBody$
|
|
20405
|
+
create(body: CreateBody$2, options?: ResourceRequestOptions): Promise<DataResponse<ContentCategory>>;
|
|
20406
|
+
update(id: string, body: UpdateBody$2): Promise<DataResponse<ContentCategory>>;
|
|
19994
20407
|
delete(id: string): Promise<void>;
|
|
19995
20408
|
listPosts(categoryId: string, params?: {
|
|
19996
20409
|
limit?: number;
|
|
@@ -20026,21 +20439,21 @@ interface CategoryPost {
|
|
|
20026
20439
|
|
|
20027
20440
|
type MembershipPlan = components['schemas']['MembershipPlan'];
|
|
20028
20441
|
type CustomerMembership = components['schemas']['CustomerMembership'];
|
|
20029
|
-
type ListParams = NonNullable<operations['listMembershipPlans']['parameters']['query']>;
|
|
20030
|
-
type CreateBody = NonNullable<operations['createMembershipPlan']['requestBody']>['content']['application/json'];
|
|
20031
|
-
type UpdateBody = NonNullable<operations['updateMembershipPlan']['requestBody']>['content']['application/json'];
|
|
20442
|
+
type ListParams$1 = NonNullable<operations['listMembershipPlans']['parameters']['query']>;
|
|
20443
|
+
type CreateBody$1 = NonNullable<operations['createMembershipPlan']['requestBody']>['content']['application/json'];
|
|
20444
|
+
type UpdateBody$1 = NonNullable<operations['updateMembershipPlan']['requestBody']>['content']['application/json'];
|
|
20032
20445
|
type SubscriptionListParams = NonNullable<operations['listMembershipSubscriptions']['parameters']['query']>;
|
|
20033
20446
|
declare class MembershipPlansResource {
|
|
20034
20447
|
private client;
|
|
20035
20448
|
constructor(client: Hydra);
|
|
20036
|
-
list(params?: ListParams): Promise<ListResponse<MembershipPlan>>;
|
|
20037
|
-
iterate(params?: Omit<ListParams, 'cursor'>, options?: PaginateOptions): AsyncGenerator<MembershipPlan, void, undefined>;
|
|
20038
|
-
toArray(params?: Omit<ListParams, 'cursor'>, options?: PaginateOptions & {
|
|
20449
|
+
list(params?: ListParams$1): Promise<ListResponse<MembershipPlan>>;
|
|
20450
|
+
iterate(params?: Omit<ListParams$1, 'cursor'>, options?: PaginateOptions): AsyncGenerator<MembershipPlan, void, undefined>;
|
|
20451
|
+
toArray(params?: Omit<ListParams$1, 'cursor'>, options?: PaginateOptions & {
|
|
20039
20452
|
limit?: number;
|
|
20040
20453
|
}): Promise<MembershipPlan[]>;
|
|
20041
20454
|
get(id: string): Promise<DataResponse<MembershipPlan>>;
|
|
20042
|
-
create(body: CreateBody, options?: ResourceRequestOptions): Promise<DataResponse<MembershipPlan>>;
|
|
20043
|
-
update(id: string, body: UpdateBody): Promise<DataResponse<MembershipPlan>>;
|
|
20455
|
+
create(body: CreateBody$1, options?: ResourceRequestOptions): Promise<DataResponse<MembershipPlan>>;
|
|
20456
|
+
update(id: string, body: UpdateBody$1): Promise<DataResponse<MembershipPlan>>;
|
|
20044
20457
|
delete(id: string): Promise<void>;
|
|
20045
20458
|
listSubscriptions(params?: SubscriptionListParams): Promise<ListResponse<CustomerMembership>>;
|
|
20046
20459
|
}
|
|
@@ -20090,6 +20503,33 @@ declare class BookingsResource {
|
|
|
20090
20503
|
deleteOverride(id: string): Promise<void>;
|
|
20091
20504
|
}
|
|
20092
20505
|
|
|
20506
|
+
type Lookbook = components['schemas']['Lookbook'];
|
|
20507
|
+
type LookbookTag = components['schemas']['LookbookTag'];
|
|
20508
|
+
type ListParams = NonNullable<operations['listLookbooks']['parameters']['query']>;
|
|
20509
|
+
type CreateBody = NonNullable<operations['createLookbook']['requestBody']>['content']['application/json'];
|
|
20510
|
+
type UpdateBody = NonNullable<operations['updateLookbook']['requestBody']>['content']['application/json'];
|
|
20511
|
+
declare class LookbooksResource {
|
|
20512
|
+
private client;
|
|
20513
|
+
constructor(client: Hydra);
|
|
20514
|
+
list(params?: ListParams): Promise<ListResponse<Lookbook>>;
|
|
20515
|
+
iterate(params?: Omit<ListParams, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Lookbook, void, undefined>;
|
|
20516
|
+
toArray(params?: Omit<ListParams, 'cursor'>, options?: PaginateOptions & {
|
|
20517
|
+
limit?: number;
|
|
20518
|
+
}): Promise<Lookbook[]>;
|
|
20519
|
+
get(id: string, params?: Pick<ListParams, 'fields'>): Promise<DataResponse<Lookbook>>;
|
|
20520
|
+
create(body: CreateBody, options?: ResourceRequestOptions): Promise<DataResponse<Lookbook>>;
|
|
20521
|
+
update(id: string, body: UpdateBody): Promise<DataResponse<Lookbook>>;
|
|
20522
|
+
delete(id: string): Promise<void>;
|
|
20523
|
+
/** Upload or replace the primary (BW) image for a lookbook. */
|
|
20524
|
+
uploadImage(id: string, formData: FormData): Promise<DataResponse<Lookbook>>;
|
|
20525
|
+
/** Upload or replace the color (hover) image for a lookbook. */
|
|
20526
|
+
uploadColorImage(id: string, formData: FormData): Promise<DataResponse<Lookbook>>;
|
|
20527
|
+
/** List all lookbook tags for this store, ordered by position then slug. */
|
|
20528
|
+
listTags(): Promise<{
|
|
20529
|
+
data: LookbookTag[];
|
|
20530
|
+
}>;
|
|
20531
|
+
}
|
|
20532
|
+
|
|
20093
20533
|
interface AppInfo {
|
|
20094
20534
|
/** Integration/plugin name (e.g. "MyShopTheme") */
|
|
20095
20535
|
name: string;
|
|
@@ -20172,6 +20612,7 @@ declare class Hydra {
|
|
|
20172
20612
|
readonly contentCategories: ContentCategoriesResource;
|
|
20173
20613
|
readonly membershipPlans: MembershipPlansResource;
|
|
20174
20614
|
readonly bookings: BookingsResource;
|
|
20615
|
+
readonly lookbooks: LookbooksResource;
|
|
20175
20616
|
constructor(config: HydraConfig);
|
|
20176
20617
|
request<T>(method: string, path: string, options?: RequestOptions): Promise<T>;
|
|
20177
20618
|
/** Multipart upload for file-based endpoints (e.g. images) */
|
|
@@ -20253,4 +20694,4 @@ declare class HydraIdempotencyError extends HydraError {
|
|
|
20253
20694
|
constructor(body: HydraErrorBody, headers: Headers);
|
|
20254
20695
|
}
|
|
20255
20696
|
|
|
20256
|
-
export { AddressesResource, type AnalyticsActionItems$1 as AnalyticsActionItems, type AnalyticsOrdersSeries$1 as AnalyticsOrdersSeries, AnalyticsResource, type AnalyticsSummary$1 as AnalyticsSummary, type AnalyticsTimeSeries$1 as AnalyticsTimeSeries, type AnalyticsTopProduct$1 as AnalyticsTopProduct, type AppInfo, type Appointment$1 as Appointment, type AvailabilityOverride$1 as AvailabilityOverride, BookingsResource, type Cart$1 as Cart, type CartItem, CartResource, type Channel$1 as Channel, ChannelsResource, type CheckoutCreate$1 as CheckoutCreate, type CheckoutGet$1 as CheckoutGet, type CheckoutListItem$1 as CheckoutListItem, CheckoutResource, CheckoutsResource, type Collection$1 as Collection, CollectionsResource, CompaniesResource, type Company$1 as Company, ContentCategoriesResource, type ContentCategory$1 as ContentCategory, type Customer$1 as Customer, type CustomerGroup$1 as CustomerGroup, CustomerGroupsResource, type CustomerMembership$1 as CustomerMembership, type CustomerPhoto$1 as CustomerPhoto, CustomerPhotosResource, CustomersResource, type DataResponse, type DayAvailability$1 as DayAvailability, type Discount$1 as Discount, DiscountsResource, type DraftOrder$1 as DraftOrder, DraftOrdersResource, type ExchangeRate$1 as ExchangeRate, ExchangeRatesResource, type Fulfillment$1 as Fulfillment, type FulfillmentOrder$2 as FulfillmentOrder, FulfillmentOrdersResource, FulfillmentsResource, type GenerateVariantsResult$1 as GenerateVariantsResult, Hydra, HydraAuthenticationError, type HydraConfig, HydraConnectionError, HydraError, type HydraErrorBody, HydraIdempotencyError, HydraNotFoundError, HydraPermissionError, HydraRateLimitError, HydraValidationError, type Image$2 as Image, ImagesResource, IntegrationsResource, type InventoryLevel$1 as InventoryLevel, InventoryResource, type ListResponse, type Location$1 as Location, LocationsResource, type MembershipPlan$1 as MembershipPlan, MembershipPlansResource, MetafieldsResource, type NotificationLog$1 as NotificationLog, NotificationsResource, type Order$2 as Order, OrdersResource, type PaginateOptions, type Pagination, type Post$1 as Post, PostsResource, type Product$1 as Product, type ProductStats$1 as ProductStats, ProductsResource, type Promotion$1 as Promotion, PromotionsResource, type PurchaseOrder$1 as PurchaseOrder, PurchaseOrdersResource, type Redirect$1 as Redirect, RedirectsResource, type Refund$1 as Refund, RefundsResource, type RequestOptions, type ResourceRequestOptions, type Return$1 as Return, ReturnsResource, SearchResource, type ShippingRate$1 as ShippingRate, ShippingResource, type ShippingZone$1 as ShippingZone, type Slot, type Store$1 as Store, StoreCreditResource, StoreResource, type SuggestedSlot$1 as SuggestedSlot, type Tag$1 as Tag, TagsResource, type TaxExemption$1 as TaxExemption, type TaxGroup$1 as TaxGroup, type TaxRate$1 as TaxRate, TaxResource, type Variant$2 as Variant, type VariantPrice$1 as VariantPrice, VariantsResource, type Webhook$1 as Webhook, WebhooksResource, paginate, toArray };
|
|
20697
|
+
export { AddressesResource, type AnalyticsActionItems$1 as AnalyticsActionItems, type AnalyticsOrdersSeries$1 as AnalyticsOrdersSeries, AnalyticsResource, type AnalyticsSummary$1 as AnalyticsSummary, type AnalyticsTimeSeries$1 as AnalyticsTimeSeries, type AnalyticsTopProduct$1 as AnalyticsTopProduct, type AppInfo, type Appointment$1 as Appointment, type AvailabilityOverride$1 as AvailabilityOverride, BookingsResource, type Cart$1 as Cart, type CartItem, CartResource, type Channel$1 as Channel, ChannelsResource, type CheckoutCreate$1 as CheckoutCreate, type CheckoutGet$1 as CheckoutGet, type CheckoutListItem$1 as CheckoutListItem, CheckoutResource, CheckoutsResource, type Collection$1 as Collection, CollectionsResource, CompaniesResource, type Company$1 as Company, ContentCategoriesResource, type ContentCategory$1 as ContentCategory, type Customer$1 as Customer, type CustomerGroup$1 as CustomerGroup, CustomerGroupsResource, type CustomerMembership$1 as CustomerMembership, type CustomerPhoto$1 as CustomerPhoto, CustomerPhotosResource, CustomersResource, type DataResponse, type DayAvailability$1 as DayAvailability, type Discount$1 as Discount, DiscountsResource, type DraftOrder$1 as DraftOrder, DraftOrdersResource, type ExchangeRate$1 as ExchangeRate, ExchangeRatesResource, type Fulfillment$1 as Fulfillment, type FulfillmentOrder$2 as FulfillmentOrder, FulfillmentOrdersResource, FulfillmentsResource, type GenerateVariantsResult$1 as GenerateVariantsResult, Hydra, HydraAuthenticationError, type HydraConfig, HydraConnectionError, HydraError, type HydraErrorBody, HydraIdempotencyError, HydraNotFoundError, HydraPermissionError, HydraRateLimitError, HydraValidationError, type Image$2 as Image, ImagesResource, IntegrationsResource, type InventoryLevel$1 as InventoryLevel, InventoryResource, type ListResponse, type Location$1 as Location, LocationsResource, type Lookbook$1 as Lookbook, type LookbookTag$1 as LookbookTag, LookbooksResource, type MembershipPlan$1 as MembershipPlan, MembershipPlansResource, MetafieldsResource, type NotificationLog$1 as NotificationLog, NotificationsResource, type Order$2 as Order, OrdersResource, type PaginateOptions, type Pagination, type Post$1 as Post, PostsResource, type Product$1 as Product, type ProductStats$1 as ProductStats, ProductsResource, type Promotion$1 as Promotion, PromotionsResource, type PurchaseOrder$1 as PurchaseOrder, PurchaseOrdersResource, type Redirect$1 as Redirect, RedirectsResource, type Refund$1 as Refund, RefundsResource, type RequestOptions, type ResourceRequestOptions, type Return$1 as Return, ReturnsResource, SearchResource, type ShippingRate$1 as ShippingRate, ShippingResource, type ShippingZone$1 as ShippingZone, type Slot, type Store$1 as Store, StoreCreditResource, StoreResource, type SuggestedSlot$1 as SuggestedSlot, type Tag$1 as Tag, TagsResource, type TaxExemption$1 as TaxExemption, type TaxGroup$1 as TaxGroup, type TaxRate$1 as TaxRate, TaxResource, type Variant$2 as Variant, type VariantPrice$1 as VariantPrice, VariantsResource, type Webhook$1 as Webhook, WebhooksResource, paginate, toArray };
|