@gethydra/sdk 0.1.21 → 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 +669 -231
- 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 */
|
|
@@ -3494,6 +3500,84 @@ interface components {
|
|
|
3494
3500
|
*/
|
|
3495
3501
|
updated_at: string;
|
|
3496
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
|
+
};
|
|
3497
3581
|
Post: {
|
|
3498
3582
|
/** @example post_abc123 */
|
|
3499
3583
|
id: string;
|
|
@@ -4239,7 +4323,13 @@ interface operations {
|
|
|
4239
4323
|
/** @example true */
|
|
4240
4324
|
checkout_order_notes?: boolean;
|
|
4241
4325
|
/** @example false */
|
|
4242
|
-
|
|
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;
|
|
4243
4333
|
/** @example 14 */
|
|
4244
4334
|
checkout_auto_archive_days?: number | null;
|
|
4245
4335
|
/** @example true */
|
|
@@ -11508,6 +11598,11 @@ interface operations {
|
|
|
11508
11598
|
* @example 0
|
|
11509
11599
|
*/
|
|
11510
11600
|
discount?: number;
|
|
11601
|
+
/**
|
|
11602
|
+
* @description Discount code applied to this order.
|
|
11603
|
+
* @example SAVE10
|
|
11604
|
+
*/
|
|
11605
|
+
discount_code?: string;
|
|
11511
11606
|
/**
|
|
11512
11607
|
* @example card
|
|
11513
11608
|
* @enum {string}
|
|
@@ -11530,6 +11625,11 @@ interface operations {
|
|
|
11530
11625
|
metadata?: {
|
|
11531
11626
|
[key: string]: string | number;
|
|
11532
11627
|
};
|
|
11628
|
+
/**
|
|
11629
|
+
* @description Auto-fulfill all items after creation (e.g. POS in-store sales).
|
|
11630
|
+
* @example true
|
|
11631
|
+
*/
|
|
11632
|
+
auto_fulfill?: boolean;
|
|
11533
11633
|
};
|
|
11534
11634
|
};
|
|
11535
11635
|
};
|
|
@@ -12417,6 +12517,8 @@ interface operations {
|
|
|
12417
12517
|
sort?: "updated_at";
|
|
12418
12518
|
order?: "asc" | "desc";
|
|
12419
12519
|
product_id?: string;
|
|
12520
|
+
/** @description Comma-separated list of variant IDs to filter by */
|
|
12521
|
+
variant_ids?: string;
|
|
12420
12522
|
sku?: string;
|
|
12421
12523
|
low_stock?: boolean | null;
|
|
12422
12524
|
location_id?: string;
|
|
@@ -13001,7 +13103,7 @@ interface operations {
|
|
|
13001
13103
|
* "order.paid"
|
|
13002
13104
|
* ]
|
|
13003
13105
|
*/
|
|
13004
|
-
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")[];
|
|
13005
13107
|
/**
|
|
13006
13108
|
* @default active
|
|
13007
13109
|
* @example active
|
|
@@ -13095,7 +13197,7 @@ interface operations {
|
|
|
13095
13197
|
* "product.updated"
|
|
13096
13198
|
* ]
|
|
13097
13199
|
*/
|
|
13098
|
-
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")[];
|
|
13099
13201
|
/**
|
|
13100
13202
|
* @example active
|
|
13101
13203
|
* @enum {string}
|
|
@@ -16649,6 +16751,312 @@ interface operations {
|
|
|
16649
16751
|
};
|
|
16650
16752
|
};
|
|
16651
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
|
+
};
|
|
16652
17060
|
listPosts: {
|
|
16653
17061
|
parameters: {
|
|
16654
17062
|
query?: {
|
|
@@ -18963,6 +19371,8 @@ type AvailabilityOverride$1 = components['schemas']['AvailabilityOverride'];
|
|
|
18963
19371
|
type Slot = components['schemas']['Slot'];
|
|
18964
19372
|
type DayAvailability$1 = components['schemas']['DayAvailability'];
|
|
18965
19373
|
type SuggestedSlot$1 = components['schemas']['SuggestedSlot'];
|
|
19374
|
+
type Lookbook$1 = components['schemas']['Lookbook'];
|
|
19375
|
+
type LookbookTag$1 = components['schemas']['LookbookTag'];
|
|
18966
19376
|
interface Pagination {
|
|
18967
19377
|
cursor: string | null;
|
|
18968
19378
|
has_more: boolean;
|
|
@@ -19007,9 +19417,9 @@ type ProductStats = components['schemas']['ProductStats'];
|
|
|
19007
19417
|
type Variant$1 = components['schemas']['Variant'];
|
|
19008
19418
|
type Image$1 = components['schemas']['Image'];
|
|
19009
19419
|
type GenerateVariantsResult = components['schemas']['GenerateVariantsResult'];
|
|
19010
|
-
type ListParams$
|
|
19011
|
-
type CreateBody$
|
|
19012
|
-
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'];
|
|
19013
19423
|
type DuplicateBody = NonNullable<operations['duplicateProduct']['requestBody']>['content']['application/json'];
|
|
19014
19424
|
type CreateVariantBody = NonNullable<operations['createProductVariant']['requestBody']>['content']['application/json'];
|
|
19015
19425
|
type GenerateVariantsBody = NonNullable<operations['generateProductVariants']['requestBody']>['content']['application/json'];
|
|
@@ -19019,17 +19429,17 @@ type CreateProductLinkBody = NonNullable<operations['createProductLink']['reques
|
|
|
19019
19429
|
declare class ProductsResource {
|
|
19020
19430
|
private client;
|
|
19021
19431
|
constructor(client: Hydra);
|
|
19022
|
-
list(params?: ListParams$
|
|
19023
|
-
iterate(params?: Omit<ListParams$
|
|
19024
|
-
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 & {
|
|
19025
19435
|
limit?: number;
|
|
19026
19436
|
}): Promise<Product[]>;
|
|
19027
|
-
get(id: string, params?: Pick<ListParams$
|
|
19028
|
-
create(body: CreateBody$
|
|
19029
|
-
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>>;
|
|
19030
19440
|
delete(id: string): Promise<void>;
|
|
19031
19441
|
batchCreate(body: {
|
|
19032
|
-
products: CreateBody$
|
|
19442
|
+
products: CreateBody$p[];
|
|
19033
19443
|
}, options?: ResourceRequestOptions): Promise<DataResponse<Product[]>>;
|
|
19034
19444
|
duplicate(id: string, body: DuplicateBody): Promise<DataResponse<Product>>;
|
|
19035
19445
|
getStats(id: string): Promise<DataResponse<ProductStats>>;
|
|
@@ -19050,7 +19460,7 @@ declare class ProductsResource {
|
|
|
19050
19460
|
|
|
19051
19461
|
type Variant = components['schemas']['Variant'];
|
|
19052
19462
|
type VariantPrice = components['schemas']['VariantPrice'];
|
|
19053
|
-
type UpdateBody$
|
|
19463
|
+
type UpdateBody$p = NonNullable<operations['updateVariant']['requestBody']>['content']['application/json'];
|
|
19054
19464
|
type UpsertPriceBody = NonNullable<operations['upsertVariantPrice']['requestBody']>['content']['application/json'];
|
|
19055
19465
|
declare class VariantsResource {
|
|
19056
19466
|
private client;
|
|
@@ -19060,7 +19470,7 @@ declare class VariantsResource {
|
|
|
19060
19470
|
currency?: string;
|
|
19061
19471
|
fields?: string;
|
|
19062
19472
|
}): Promise<DataResponse<Variant>>;
|
|
19063
|
-
update(id: string, body: UpdateBody$
|
|
19473
|
+
update(id: string, body: UpdateBody$p): Promise<DataResponse<Variant>>;
|
|
19064
19474
|
delete(id: string): Promise<void>;
|
|
19065
19475
|
listPrices(variantId: string): Promise<DataResponse<Record<string, VariantPrice>>>;
|
|
19066
19476
|
upsertPrice(variantId: string, priceKeySlug: string, body: UpsertPriceBody): Promise<DataResponse<VariantPrice>>;
|
|
@@ -19072,23 +19482,23 @@ declare class VariantsResource {
|
|
|
19072
19482
|
}
|
|
19073
19483
|
|
|
19074
19484
|
type Collection = components['schemas']['Collection'];
|
|
19075
|
-
type ListParams$
|
|
19076
|
-
type CreateBody$
|
|
19077
|
-
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'];
|
|
19078
19488
|
type AddProductsBody = NonNullable<operations['addCollectionProducts']['requestBody']>['content']['application/json'];
|
|
19079
19489
|
type ReorderProductsBody = NonNullable<operations['reorderCollectionProducts']['requestBody']>['content']['application/json'];
|
|
19080
19490
|
type ReorderCollectionsBody = NonNullable<operations['reorderCollections']['requestBody']>['content']['application/json'];
|
|
19081
19491
|
declare class CollectionsResource {
|
|
19082
19492
|
private client;
|
|
19083
19493
|
constructor(client: Hydra);
|
|
19084
|
-
list(params?: ListParams$
|
|
19085
|
-
iterate(params?: Omit<ListParams$
|
|
19086
|
-
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 & {
|
|
19087
19497
|
limit?: number;
|
|
19088
19498
|
}): Promise<Collection[]>;
|
|
19089
|
-
get(id: string, params?: Pick<ListParams$
|
|
19090
|
-
create(body: CreateBody$
|
|
19091
|
-
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>>;
|
|
19092
19502
|
delete(id: string): Promise<void>;
|
|
19093
19503
|
tree(): Promise<DataResponse<unknown>>;
|
|
19094
19504
|
reorder(body: ReorderCollectionsBody): Promise<void>;
|
|
@@ -19118,13 +19528,13 @@ declare class CartResource {
|
|
|
19118
19528
|
|
|
19119
19529
|
type CheckoutCreate = components['schemas']['CheckoutCreate'];
|
|
19120
19530
|
type CheckoutGet = components['schemas']['CheckoutGet'];
|
|
19121
|
-
type CreateBody$
|
|
19531
|
+
type CreateBody$n = NonNullable<operations['createCheckout']['requestBody']>['content']['application/json'];
|
|
19122
19532
|
type ApplyDiscountBody = NonNullable<operations['applyCheckoutDiscount']['requestBody']>['content']['application/json'];
|
|
19123
19533
|
type ApplyCreditBody = NonNullable<operations['applyCheckoutCredit']['requestBody']>['content']['application/json'];
|
|
19124
19534
|
declare class CheckoutResource {
|
|
19125
19535
|
private client;
|
|
19126
19536
|
constructor(client: Hydra);
|
|
19127
|
-
create(body: CreateBody$
|
|
19537
|
+
create(body: CreateBody$n, options?: ResourceRequestOptions): Promise<DataResponse<CheckoutCreate>>;
|
|
19128
19538
|
get(id: string): Promise<DataResponse<CheckoutGet>>;
|
|
19129
19539
|
applyDiscount(checkoutId: string, body: ApplyDiscountBody): Promise<DataResponse<CheckoutGet>>;
|
|
19130
19540
|
removeDiscount(checkoutId: string): Promise<DataResponse<CheckoutGet>>;
|
|
@@ -19135,15 +19545,15 @@ declare class CheckoutResource {
|
|
|
19135
19545
|
|
|
19136
19546
|
type Order$1 = components['schemas']['Order'];
|
|
19137
19547
|
type FulfillmentOrder$1 = components['schemas']['FulfillmentOrder'];
|
|
19138
|
-
type ListParams$
|
|
19139
|
-
type CreateBody$
|
|
19140
|
-
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'];
|
|
19141
19551
|
declare class OrdersResource {
|
|
19142
19552
|
private client;
|
|
19143
19553
|
constructor(client: Hydra);
|
|
19144
|
-
list(params?: ListParams$
|
|
19145
|
-
iterate(params?: Omit<ListParams$
|
|
19146
|
-
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 & {
|
|
19147
19557
|
limit?: number;
|
|
19148
19558
|
}): Promise<Order$1[]>;
|
|
19149
19559
|
get(id: string, params?: {
|
|
@@ -19151,8 +19561,8 @@ declare class OrdersResource {
|
|
|
19151
19561
|
currency?: string;
|
|
19152
19562
|
fields?: string;
|
|
19153
19563
|
}): Promise<DataResponse<Order$1>>;
|
|
19154
|
-
create(body: CreateBody$
|
|
19155
|
-
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>>;
|
|
19156
19566
|
listFulfillmentOrders(orderId: string): Promise<DataResponse<FulfillmentOrder$1[]>>;
|
|
19157
19567
|
/**
|
|
19158
19568
|
* Returns the API path for downloading the invoice PDF for an order.
|
|
@@ -19166,34 +19576,34 @@ declare class OrdersResource {
|
|
|
19166
19576
|
}
|
|
19167
19577
|
|
|
19168
19578
|
type Fulfillment = components['schemas']['Fulfillment'];
|
|
19169
|
-
type CreateBody$
|
|
19170
|
-
type UpdateBody$
|
|
19579
|
+
type CreateBody$l = NonNullable<operations['createFulfillment']['requestBody']>['content']['application/json'];
|
|
19580
|
+
type UpdateBody$m = NonNullable<operations['updateFulfillment']['requestBody']>['content']['application/json'];
|
|
19171
19581
|
type CancelBody = NonNullable<operations['cancelFulfillment']['requestBody']>['content']['application/json'];
|
|
19172
19582
|
declare class FulfillmentsResource {
|
|
19173
19583
|
private client;
|
|
19174
19584
|
constructor(client: Hydra);
|
|
19175
19585
|
/** Create a fulfillment for a fulfillment order */
|
|
19176
|
-
create(fulfillmentOrderId: string, body: CreateBody$
|
|
19177
|
-
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>>;
|
|
19178
19588
|
cancel(id: string, body?: CancelBody): Promise<DataResponse<Fulfillment>>;
|
|
19179
19589
|
}
|
|
19180
19590
|
|
|
19181
19591
|
type Refund = components['schemas']['Refund'];
|
|
19182
|
-
type ListParams$
|
|
19183
|
-
type CreateBody$
|
|
19592
|
+
type ListParams$r = NonNullable<operations['listRefunds']['parameters']['query']>;
|
|
19593
|
+
type CreateBody$k = NonNullable<operations['createOrderRefund']['requestBody']>['content']['application/json'];
|
|
19184
19594
|
declare class RefundsResource {
|
|
19185
19595
|
private client;
|
|
19186
19596
|
constructor(client: Hydra);
|
|
19187
|
-
list(params?: ListParams$
|
|
19188
|
-
iterate(params?: Omit<ListParams$
|
|
19189
|
-
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 & {
|
|
19190
19600
|
limit?: number;
|
|
19191
19601
|
}): Promise<Refund[]>;
|
|
19192
19602
|
get(id: string, params?: {
|
|
19193
19603
|
expand?: string;
|
|
19194
19604
|
fields?: string;
|
|
19195
19605
|
}): Promise<DataResponse<Refund>>;
|
|
19196
|
-
create(orderId: string, body: CreateBody$
|
|
19606
|
+
create(orderId: string, body: CreateBody$k, options?: ResourceRequestOptions): Promise<DataResponse<Refund>>;
|
|
19197
19607
|
listByOrder(orderId: string): Promise<DataResponse<Refund[]>>;
|
|
19198
19608
|
retry(id: string): Promise<DataResponse<Refund>>;
|
|
19199
19609
|
/**
|
|
@@ -19204,24 +19614,24 @@ declare class RefundsResource {
|
|
|
19204
19614
|
}
|
|
19205
19615
|
|
|
19206
19616
|
type Return = components['schemas']['Return'];
|
|
19207
|
-
type ListParams$
|
|
19208
|
-
type CreateBody$
|
|
19617
|
+
type ListParams$q = NonNullable<operations['listReturns']['parameters']['query']>;
|
|
19618
|
+
type CreateBody$j = NonNullable<operations['createOrderReturn']['requestBody']>['content']['application/json'];
|
|
19209
19619
|
type ApproveBody = NonNullable<operations['approveReturn']['requestBody']>['content']['application/json'];
|
|
19210
19620
|
type ReceiveBody$1 = NonNullable<operations['receiveReturn']['requestBody']>['content']['application/json'];
|
|
19211
19621
|
type RejectBody$1 = NonNullable<operations['rejectReturn']['requestBody']>['content']['application/json'];
|
|
19212
19622
|
declare class ReturnsResource {
|
|
19213
19623
|
private client;
|
|
19214
19624
|
constructor(client: Hydra);
|
|
19215
|
-
list(params?: ListParams$
|
|
19216
|
-
iterate(params?: Omit<ListParams$
|
|
19217
|
-
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 & {
|
|
19218
19628
|
limit?: number;
|
|
19219
19629
|
}): Promise<Return[]>;
|
|
19220
19630
|
get(id: string, params?: {
|
|
19221
19631
|
expand?: string;
|
|
19222
19632
|
fields?: string;
|
|
19223
19633
|
}): Promise<DataResponse<Return>>;
|
|
19224
|
-
create(orderId: string, body: CreateBody$
|
|
19634
|
+
create(orderId: string, body: CreateBody$j, options?: ResourceRequestOptions): Promise<DataResponse<Return>>;
|
|
19225
19635
|
listByOrder(orderId: string): Promise<DataResponse<Return[]>>;
|
|
19226
19636
|
approve(id: string, body?: ApproveBody): Promise<DataResponse<Return>>;
|
|
19227
19637
|
receive(id: string, body?: ReceiveBody$1): Promise<DataResponse<Return>>;
|
|
@@ -19233,17 +19643,17 @@ declare class ReturnsResource {
|
|
|
19233
19643
|
type DraftOrder = components['schemas']['DraftOrder'];
|
|
19234
19644
|
type DraftOrderLineItem = components['schemas']['DraftOrderLineItem'];
|
|
19235
19645
|
type Order = components['schemas']['Order'];
|
|
19236
|
-
type ListParams$
|
|
19237
|
-
type CreateBody$
|
|
19238
|
-
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'];
|
|
19239
19649
|
type AddItemsBody = NonNullable<operations['addDraftOrderItems']['requestBody']>['content']['application/json'];
|
|
19240
19650
|
type UpdateItemBody$2 = NonNullable<operations['updateDraftOrderItem']['requestBody']>['content']['application/json'];
|
|
19241
19651
|
declare class DraftOrdersResource {
|
|
19242
19652
|
private client;
|
|
19243
19653
|
constructor(client: Hydra);
|
|
19244
|
-
list(params?: ListParams$
|
|
19245
|
-
iterate(params?: Omit<ListParams$
|
|
19246
|
-
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 & {
|
|
19247
19657
|
limit?: number;
|
|
19248
19658
|
}): Promise<DraftOrder[]>;
|
|
19249
19659
|
get(id: string, params?: {
|
|
@@ -19251,8 +19661,8 @@ declare class DraftOrdersResource {
|
|
|
19251
19661
|
currency?: string;
|
|
19252
19662
|
fields?: string;
|
|
19253
19663
|
}): Promise<DataResponse<DraftOrder>>;
|
|
19254
|
-
create(body: CreateBody$
|
|
19255
|
-
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>>;
|
|
19256
19666
|
delete(id: string): Promise<void>;
|
|
19257
19667
|
addItems(draftOrderId: string, body: AddItemsBody): Promise<DataResponse<DraftOrderLineItem[]>>;
|
|
19258
19668
|
updateItem(draftOrderId: string, itemId: string, body: UpdateItemBody$2): Promise<DataResponse<DraftOrderLineItem>>;
|
|
@@ -19267,22 +19677,22 @@ declare class DraftOrdersResource {
|
|
|
19267
19677
|
}
|
|
19268
19678
|
|
|
19269
19679
|
type Customer = components['schemas']['Customer'];
|
|
19270
|
-
type ListParams$
|
|
19271
|
-
type CreateBody$
|
|
19272
|
-
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'];
|
|
19273
19683
|
type CreateAddressBody$1 = NonNullable<operations['createCustomerAddress']['requestBody']>['content']['application/json'];
|
|
19274
19684
|
type CreateNoteBody$1 = NonNullable<operations['createCustomerNote']['requestBody']>['content']['application/json'];
|
|
19275
19685
|
declare class CustomersResource {
|
|
19276
19686
|
private client;
|
|
19277
19687
|
constructor(client: Hydra);
|
|
19278
|
-
list(params?: ListParams$
|
|
19279
|
-
iterate(params?: Omit<ListParams$
|
|
19280
|
-
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 & {
|
|
19281
19691
|
limit?: number;
|
|
19282
19692
|
}): Promise<Customer[]>;
|
|
19283
|
-
get(id: string, params?: Pick<ListParams$
|
|
19284
|
-
create(body: CreateBody$
|
|
19285
|
-
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>>;
|
|
19286
19696
|
delete(id: string): Promise<void>;
|
|
19287
19697
|
listAddresses(customerId: string): Promise<DataResponse<unknown[]>>;
|
|
19288
19698
|
createAddress(customerId: string, body: CreateAddressBody$1): Promise<DataResponse<unknown>>;
|
|
@@ -19296,29 +19706,29 @@ declare class CustomersResource {
|
|
|
19296
19706
|
}
|
|
19297
19707
|
|
|
19298
19708
|
type CustomerGroup = components['schemas']['CustomerGroup'];
|
|
19299
|
-
type ListParams$
|
|
19300
|
-
type CreateBody$
|
|
19301
|
-
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'];
|
|
19302
19712
|
type AddMembersBody = NonNullable<operations['addCustomerGroupMembers']['requestBody']>['content']['application/json'];
|
|
19303
19713
|
declare class CustomerGroupsResource {
|
|
19304
19714
|
private client;
|
|
19305
19715
|
constructor(client: Hydra);
|
|
19306
|
-
list(params?: ListParams$
|
|
19307
|
-
iterate(params?: Omit<ListParams$
|
|
19308
|
-
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 & {
|
|
19309
19719
|
limit?: number;
|
|
19310
19720
|
}): Promise<CustomerGroup[]>;
|
|
19311
19721
|
get(id: string): Promise<DataResponse<CustomerGroup>>;
|
|
19312
|
-
create(body: CreateBody$
|
|
19313
|
-
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>>;
|
|
19314
19724
|
delete(id: string): Promise<void>;
|
|
19315
19725
|
addMembers(groupId: string, body: AddMembersBody): Promise<void>;
|
|
19316
19726
|
removeMember(groupId: string, customerId: string): Promise<void>;
|
|
19317
19727
|
}
|
|
19318
19728
|
|
|
19319
19729
|
type CustomerPhoto = components['schemas']['CustomerPhoto'];
|
|
19320
|
-
type ListParams$
|
|
19321
|
-
type UpdateBody$
|
|
19730
|
+
type ListParams$m = NonNullable<operations['listCustomerPhotos']['parameters']['query']>;
|
|
19731
|
+
type UpdateBody$i = NonNullable<operations['updateCustomerPhoto']['requestBody']>['content']['application/json'];
|
|
19322
19732
|
type RejectBody = NonNullable<operations['rejectCustomerPhoto']['requestBody']>['content']['application/json'];
|
|
19323
19733
|
declare class CustomerPhotosResource {
|
|
19324
19734
|
private client;
|
|
@@ -19327,15 +19737,15 @@ declare class CustomerPhotosResource {
|
|
|
19327
19737
|
* List customer photos (secret key only).
|
|
19328
19738
|
* Filter by product, status, etc.
|
|
19329
19739
|
*/
|
|
19330
|
-
list(params?: ListParams$
|
|
19740
|
+
list(params?: ListParams$m): Promise<ListResponse<CustomerPhoto>>;
|
|
19331
19741
|
/**
|
|
19332
19742
|
* Iterate through all customer photos with automatic pagination.
|
|
19333
19743
|
*/
|
|
19334
|
-
iterate(params?: Omit<ListParams$
|
|
19744
|
+
iterate(params?: Omit<ListParams$m, 'cursor'>, options?: PaginateOptions): AsyncGenerator<CustomerPhoto, void, undefined>;
|
|
19335
19745
|
/**
|
|
19336
19746
|
* Fetch all customer photos as an array (use with caution on large datasets).
|
|
19337
19747
|
*/
|
|
19338
|
-
toArray(params?: Omit<ListParams$
|
|
19748
|
+
toArray(params?: Omit<ListParams$m, 'cursor'>, options?: PaginateOptions & {
|
|
19339
19749
|
limit?: number;
|
|
19340
19750
|
}): Promise<CustomerPhoto[]>;
|
|
19341
19751
|
/**
|
|
@@ -19351,7 +19761,7 @@ declare class CustomerPhotosResource {
|
|
|
19351
19761
|
* Update customer photo metadata (secret key only).
|
|
19352
19762
|
* Fields: credit, link_url, link_text, alt_text, show_in_gallery.
|
|
19353
19763
|
*/
|
|
19354
|
-
update(id: string, body: UpdateBody$
|
|
19764
|
+
update(id: string, body: UpdateBody$i): Promise<DataResponse<CustomerPhoto>>;
|
|
19355
19765
|
/**
|
|
19356
19766
|
* Approve a customer photo (secret key only).
|
|
19357
19767
|
* Sets status to 'approved' and makes it visible on storefront.
|
|
@@ -19378,18 +19788,18 @@ declare class CustomerPhotosResource {
|
|
|
19378
19788
|
getForProduct(productId: string): Promise<DataResponse<CustomerPhoto[]>>;
|
|
19379
19789
|
}
|
|
19380
19790
|
|
|
19381
|
-
type UpdateBody$
|
|
19791
|
+
type UpdateBody$h = NonNullable<operations['updateAddress']['requestBody']>['content']['application/json'];
|
|
19382
19792
|
declare class AddressesResource {
|
|
19383
19793
|
private client;
|
|
19384
19794
|
constructor(client: Hydra);
|
|
19385
|
-
update(id: string, body: UpdateBody$
|
|
19795
|
+
update(id: string, body: UpdateBody$h): Promise<DataResponse<unknown>>;
|
|
19386
19796
|
delete(id: string): Promise<void>;
|
|
19387
19797
|
}
|
|
19388
19798
|
|
|
19389
19799
|
type InventoryLevel = components['schemas']['InventoryLevel'];
|
|
19390
19800
|
type InventoryAdjustment = components['schemas']['InventoryAdjustment'];
|
|
19391
19801
|
type ProductAdjustment = components['schemas']['ProductAdjustment'];
|
|
19392
|
-
type ListParams$
|
|
19802
|
+
type ListParams$l = NonNullable<operations['listInventory']['parameters']['query']>;
|
|
19393
19803
|
type SetBody = NonNullable<operations['setInventory']['requestBody']>['content']['application/json'];
|
|
19394
19804
|
type AdjustBody = NonNullable<operations['adjustInventory']['requestBody']>['content']['application/json'];
|
|
19395
19805
|
type InventoryResult = InventoryLevel & {
|
|
@@ -19398,9 +19808,9 @@ type InventoryResult = InventoryLevel & {
|
|
|
19398
19808
|
declare class InventoryResource {
|
|
19399
19809
|
private client;
|
|
19400
19810
|
constructor(client: Hydra);
|
|
19401
|
-
list(params?: ListParams$
|
|
19402
|
-
iterate(params?: Omit<ListParams$
|
|
19403
|
-
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 & {
|
|
19404
19814
|
limit?: number;
|
|
19405
19815
|
}): Promise<InventoryLevel[]>;
|
|
19406
19816
|
listAdjustments(params: {
|
|
@@ -19472,56 +19882,56 @@ declare class ShippingResource {
|
|
|
19472
19882
|
}
|
|
19473
19883
|
|
|
19474
19884
|
type Promotion = components['schemas']['Promotion'];
|
|
19475
|
-
type ListParams$
|
|
19476
|
-
type CreateBody$
|
|
19477
|
-
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'];
|
|
19478
19888
|
declare class PromotionsResource {
|
|
19479
19889
|
private client;
|
|
19480
19890
|
constructor(client: Hydra);
|
|
19481
|
-
list(params?: ListParams$
|
|
19482
|
-
iterate(params?: Omit<ListParams$
|
|
19483
|
-
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 & {
|
|
19484
19894
|
limit?: number;
|
|
19485
19895
|
}): Promise<Promotion[]>;
|
|
19486
19896
|
get(id: string): Promise<DataResponse<Promotion>>;
|
|
19487
|
-
create(body: CreateBody$
|
|
19488
|
-
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>>;
|
|
19489
19899
|
delete(id: string): Promise<void>;
|
|
19490
19900
|
}
|
|
19491
19901
|
|
|
19492
19902
|
type Discount = components['schemas']['Discount'];
|
|
19493
|
-
type ListParams$
|
|
19494
|
-
type CreateBody$
|
|
19495
|
-
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'];
|
|
19496
19906
|
declare class DiscountsResource {
|
|
19497
19907
|
private client;
|
|
19498
19908
|
constructor(client: Hydra);
|
|
19499
|
-
list(params?: ListParams$
|
|
19500
|
-
iterate(params?: Omit<ListParams$
|
|
19501
|
-
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 & {
|
|
19502
19912
|
limit?: number;
|
|
19503
19913
|
}): Promise<Discount[]>;
|
|
19504
19914
|
get(id: string): Promise<DataResponse<Discount>>;
|
|
19505
|
-
create(body: CreateBody$
|
|
19506
|
-
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>>;
|
|
19507
19917
|
delete(id: string): Promise<void>;
|
|
19508
19918
|
}
|
|
19509
19919
|
|
|
19510
19920
|
type Image = components['schemas']['Image'];
|
|
19511
|
-
type ListParams$
|
|
19512
|
-
type UpdateBody$
|
|
19921
|
+
type ListParams$i = NonNullable<operations['listImages']['parameters']['query']>;
|
|
19922
|
+
type UpdateBody$e = NonNullable<operations['updateImage']['requestBody']>['content']['application/json'];
|
|
19513
19923
|
type ReorderBody$2 = NonNullable<operations['reorderImages']['requestBody']>['content']['application/json'];
|
|
19514
19924
|
declare class ImagesResource {
|
|
19515
19925
|
private client;
|
|
19516
19926
|
constructor(client: Hydra);
|
|
19517
|
-
list(params?: ListParams$
|
|
19518
|
-
iterate(params?: Omit<ListParams$
|
|
19519
|
-
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 & {
|
|
19520
19930
|
limit?: number;
|
|
19521
19931
|
}): Promise<Image[]>;
|
|
19522
19932
|
/** Upload an image to the store library */
|
|
19523
19933
|
upload(formData: FormData): Promise<DataResponse<Image>>;
|
|
19524
|
-
update(id: string, body: UpdateBody$
|
|
19934
|
+
update(id: string, body: UpdateBody$e): Promise<DataResponse<Image>>;
|
|
19525
19935
|
delete(id: string): Promise<void>;
|
|
19526
19936
|
detach(id: string): Promise<void>;
|
|
19527
19937
|
batchDelete(imageIds: string[]): Promise<void>;
|
|
@@ -19530,32 +19940,32 @@ declare class ImagesResource {
|
|
|
19530
19940
|
}
|
|
19531
19941
|
|
|
19532
19942
|
type Webhook = components['schemas']['Webhook'];
|
|
19533
|
-
type ListParams$
|
|
19534
|
-
type CreateBody$
|
|
19535
|
-
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'];
|
|
19536
19946
|
declare class WebhooksResource {
|
|
19537
19947
|
private client;
|
|
19538
19948
|
constructor(client: Hydra);
|
|
19539
|
-
list(params?: ListParams$
|
|
19540
|
-
iterate(params?: Omit<ListParams$
|
|
19541
|
-
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 & {
|
|
19542
19952
|
limit?: number;
|
|
19543
19953
|
}): Promise<Webhook[]>;
|
|
19544
19954
|
get(id: string): Promise<DataResponse<Webhook>>;
|
|
19545
|
-
create(body: CreateBody$
|
|
19546
|
-
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>>;
|
|
19547
19957
|
delete(id: string): Promise<void>;
|
|
19548
19958
|
}
|
|
19549
19959
|
|
|
19550
19960
|
type Store = components['schemas']['Store'];
|
|
19551
|
-
type UpdateBody$
|
|
19961
|
+
type UpdateBody$c = NonNullable<operations['updateStore']['requestBody']>['content']['application/json'];
|
|
19552
19962
|
declare class StoreResource {
|
|
19553
19963
|
private client;
|
|
19554
19964
|
constructor(client: Hydra);
|
|
19555
19965
|
get(params?: {
|
|
19556
19966
|
fields?: string;
|
|
19557
19967
|
}): Promise<DataResponse<Store>>;
|
|
19558
|
-
update(body: UpdateBody$
|
|
19968
|
+
update(body: UpdateBody$c): Promise<DataResponse<Store>>;
|
|
19559
19969
|
getDomainRecord(): Promise<DataResponse<unknown>>;
|
|
19560
19970
|
verifyDomain(): Promise<DataResponse<unknown>>;
|
|
19561
19971
|
publish(): Promise<DataResponse<{
|
|
@@ -19567,42 +19977,42 @@ declare class StoreResource {
|
|
|
19567
19977
|
}
|
|
19568
19978
|
|
|
19569
19979
|
type Tag = components['schemas']['Tag'];
|
|
19570
|
-
type ListParams$
|
|
19571
|
-
type CreateBody$
|
|
19572
|
-
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'];
|
|
19573
19983
|
declare class TagsResource {
|
|
19574
19984
|
private client;
|
|
19575
19985
|
constructor(client: Hydra);
|
|
19576
|
-
list(params?: ListParams$
|
|
19577
|
-
iterate(params?: Omit<ListParams$
|
|
19578
|
-
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 & {
|
|
19579
19989
|
limit?: number;
|
|
19580
19990
|
}): Promise<Tag[]>;
|
|
19581
|
-
create(body: CreateBody$
|
|
19582
|
-
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>>;
|
|
19583
19993
|
delete(id: string): Promise<void>;
|
|
19584
19994
|
}
|
|
19585
19995
|
|
|
19586
19996
|
type Redirect = components['schemas']['Redirect'];
|
|
19587
|
-
type ListParams$
|
|
19588
|
-
type CreateBody$
|
|
19997
|
+
type ListParams$f = NonNullable<operations['listRedirects']['parameters']['query']>;
|
|
19998
|
+
type CreateBody$b = NonNullable<operations['createRedirect']['requestBody']>['content']['application/json'];
|
|
19589
19999
|
declare class RedirectsResource {
|
|
19590
20000
|
private client;
|
|
19591
20001
|
constructor(client: Hydra);
|
|
19592
|
-
list(params?: ListParams$
|
|
19593
|
-
iterate(params?: Omit<ListParams$
|
|
19594
|
-
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 & {
|
|
19595
20005
|
limit?: number;
|
|
19596
20006
|
}): Promise<Redirect[]>;
|
|
19597
|
-
create(body: CreateBody$
|
|
20007
|
+
create(body: CreateBody$b, options?: ResourceRequestOptions): Promise<DataResponse<Redirect>>;
|
|
19598
20008
|
lookup(path: string): Promise<DataResponse<Redirect>>;
|
|
19599
20009
|
delete(id: string): Promise<void>;
|
|
19600
20010
|
}
|
|
19601
20011
|
|
|
19602
20012
|
type Company = components['schemas']['Company'];
|
|
19603
|
-
type ListParams$
|
|
19604
|
-
type CreateBody$
|
|
19605
|
-
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'];
|
|
19606
20016
|
type CreateAddressBody = NonNullable<operations['createCompanyAddress']['requestBody']>['content']['application/json'];
|
|
19607
20017
|
type UpdateAddressBody = NonNullable<operations['updateCompanyAddress']['requestBody']>['content']['application/json'];
|
|
19608
20018
|
type CreateContactBody = NonNullable<operations['createCompanyContact']['requestBody']>['content']['application/json'];
|
|
@@ -19611,14 +20021,14 @@ type CreateNoteBody = NonNullable<operations['createCompanyNote']['requestBody']
|
|
|
19611
20021
|
declare class CompaniesResource {
|
|
19612
20022
|
private client;
|
|
19613
20023
|
constructor(client: Hydra);
|
|
19614
|
-
list(params?: ListParams$
|
|
19615
|
-
iterate(params?: Omit<ListParams$
|
|
19616
|
-
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 & {
|
|
19617
20027
|
limit?: number;
|
|
19618
20028
|
}): Promise<Company[]>;
|
|
19619
|
-
get(id: string, params?: Pick<ListParams$
|
|
19620
|
-
create(body: CreateBody$
|
|
19621
|
-
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>>;
|
|
19622
20032
|
delete(id: string): Promise<void>;
|
|
19623
20033
|
listAddresses(companyId: string): Promise<DataResponse<unknown[]>>;
|
|
19624
20034
|
createAddress(companyId: string, body: CreateAddressBody): Promise<DataResponse<unknown>>;
|
|
@@ -19634,23 +20044,23 @@ declare class CompaniesResource {
|
|
|
19634
20044
|
}
|
|
19635
20045
|
|
|
19636
20046
|
type PurchaseOrder = components['schemas']['PurchaseOrder'];
|
|
19637
|
-
type ListParams$
|
|
19638
|
-
type CreateBody$
|
|
19639
|
-
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'];
|
|
19640
20050
|
type AddItemBody = NonNullable<operations['addPurchaseOrderItems']['requestBody']>['content']['application/json'];
|
|
19641
20051
|
type UpdateItemBody$1 = NonNullable<operations['updatePurchaseOrderItem']['requestBody']>['content']['application/json'];
|
|
19642
20052
|
type ReceiveBody = NonNullable<operations['receivePurchaseOrderItems']['requestBody']>['content']['application/json'];
|
|
19643
20053
|
declare class PurchaseOrdersResource {
|
|
19644
20054
|
private client;
|
|
19645
20055
|
constructor(client: Hydra);
|
|
19646
|
-
list(params?: ListParams$
|
|
19647
|
-
iterate(params?: Omit<ListParams$
|
|
19648
|
-
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 & {
|
|
19649
20059
|
limit?: number;
|
|
19650
20060
|
}): Promise<PurchaseOrder[]>;
|
|
19651
|
-
get(id: string, params?: Pick<ListParams$
|
|
19652
|
-
create(body: CreateBody$
|
|
19653
|
-
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>>;
|
|
19654
20064
|
delete(id: string): Promise<void>;
|
|
19655
20065
|
addItem(purchaseOrderId: string, body: AddItemBody): Promise<DataResponse<unknown>>;
|
|
19656
20066
|
updateItem(purchaseOrderId: string, itemId: string, body: UpdateItemBody$1): Promise<DataResponse<unknown>>;
|
|
@@ -19673,17 +20083,17 @@ declare class FulfillmentOrdersResource {
|
|
|
19673
20083
|
listForOrder(orderId: string): Promise<DataResponse<FulfillmentOrder[]>>;
|
|
19674
20084
|
}
|
|
19675
20085
|
|
|
19676
|
-
type ListParams$
|
|
19677
|
-
type CreateBody$
|
|
19678
|
-
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'];
|
|
19679
20089
|
type ReorderBody$1 = NonNullable<operations['reorderMetafieldDefinitions']['requestBody']>['content']['application/json'];
|
|
19680
20090
|
declare class MetafieldsResource {
|
|
19681
20091
|
private client;
|
|
19682
20092
|
constructor(client: Hydra);
|
|
19683
20093
|
/** List metafield definitions for the store */
|
|
19684
|
-
listDefinitions(params?: ListParams$
|
|
19685
|
-
createDefinition(body: CreateBody$
|
|
19686
|
-
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>>;
|
|
19687
20097
|
archiveDefinition(ownerType: string, slug: string): Promise<void>;
|
|
19688
20098
|
reorderDefinitions(ownerType: string, body: ReorderBody$1): Promise<void>;
|
|
19689
20099
|
}
|
|
@@ -19729,30 +20139,30 @@ declare class TaxResource {
|
|
|
19729
20139
|
}
|
|
19730
20140
|
|
|
19731
20141
|
type ExchangeRate = components['schemas']['ExchangeRate'];
|
|
19732
|
-
type ListParams$
|
|
20142
|
+
type ListParams$b = NonNullable<operations['listExchangeRates']['parameters']['query']>;
|
|
19733
20143
|
declare class ExchangeRatesResource {
|
|
19734
20144
|
private client;
|
|
19735
20145
|
constructor(client: Hydra);
|
|
19736
|
-
list(params?: ListParams$
|
|
20146
|
+
list(params?: ListParams$b): Promise<DataResponse<ExchangeRate[]>>;
|
|
19737
20147
|
refresh(): Promise<DataResponse<unknown>>;
|
|
19738
20148
|
}
|
|
19739
20149
|
|
|
19740
20150
|
type FilterAttribute = components['schemas']['FilterAttribute'];
|
|
19741
|
-
type ListParams$
|
|
19742
|
-
type CreateBody$
|
|
19743
|
-
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'];
|
|
19744
20154
|
type ReorderBody = NonNullable<operations['reorderFilterAttributes']['requestBody']>['content']['application/json'];
|
|
19745
20155
|
declare class FilterAttributesResource {
|
|
19746
20156
|
private client;
|
|
19747
20157
|
constructor(client: Hydra);
|
|
19748
|
-
list(params?: ListParams$
|
|
19749
|
-
iterate(params?: Omit<ListParams$
|
|
19750
|
-
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 & {
|
|
19751
20161
|
limit?: number;
|
|
19752
20162
|
}): Promise<FilterAttribute[]>;
|
|
19753
20163
|
get(id: string): Promise<DataResponse<FilterAttribute>>;
|
|
19754
|
-
create(body: CreateBody$
|
|
19755
|
-
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>>;
|
|
19756
20166
|
delete(id: string): Promise<void>;
|
|
19757
20167
|
reorder(body: ReorderBody): Promise<ListResponse<FilterAttribute>>;
|
|
19758
20168
|
discover(): Promise<DataResponse<unknown[]>>;
|
|
@@ -19760,23 +20170,23 @@ declare class FilterAttributesResource {
|
|
|
19760
20170
|
|
|
19761
20171
|
type NavigationMenu = components['schemas']['NavigationMenu'];
|
|
19762
20172
|
type NavigationItem = components['schemas']['NavigationItem'];
|
|
19763
|
-
type ListParams$
|
|
19764
|
-
type CreateBody$
|
|
19765
|
-
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'];
|
|
19766
20176
|
type CreateItemBody = NonNullable<operations['addNavigationItem']['requestBody']>['content']['application/json'];
|
|
19767
20177
|
type UpdateItemBody = NonNullable<operations['updateNavigationItem']['requestBody']>['content']['application/json'];
|
|
19768
20178
|
type ReorderItemsBody = NonNullable<operations['reorderNavigationItems']['requestBody']>['content']['application/json'];
|
|
19769
20179
|
declare class NavigationResource {
|
|
19770
20180
|
private client;
|
|
19771
20181
|
constructor(client: Hydra);
|
|
19772
|
-
list(params?: ListParams$
|
|
19773
|
-
iterate(params?: Omit<ListParams$
|
|
19774
|
-
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 & {
|
|
19775
20185
|
limit?: number;
|
|
19776
20186
|
}): Promise<NavigationMenu[]>;
|
|
19777
20187
|
get(id: string): Promise<DataResponse<NavigationMenu>>;
|
|
19778
|
-
create(body: CreateBody$
|
|
19779
|
-
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>>;
|
|
19780
20190
|
delete(id: string): Promise<void>;
|
|
19781
20191
|
addItem(menuId: string, body: CreateItemBody): Promise<DataResponse<NavigationItem>>;
|
|
19782
20192
|
updateItem(menuId: string, itemId: string, body: UpdateItemBody): Promise<DataResponse<NavigationItem>>;
|
|
@@ -19785,26 +20195,26 @@ declare class NavigationResource {
|
|
|
19785
20195
|
}
|
|
19786
20196
|
|
|
19787
20197
|
type NotificationLog = components['schemas']['NotificationLog'];
|
|
19788
|
-
type ListParams$
|
|
20198
|
+
type ListParams$8 = NonNullable<operations['listNotifications']['parameters']['query']>;
|
|
19789
20199
|
declare class NotificationsResource {
|
|
19790
20200
|
private client;
|
|
19791
20201
|
constructor(client: Hydra);
|
|
19792
|
-
list(params?: ListParams$
|
|
19793
|
-
iterate(params?: Omit<ListParams$
|
|
19794
|
-
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 & {
|
|
19795
20205
|
limit?: number;
|
|
19796
20206
|
}): Promise<NotificationLog[]>;
|
|
19797
20207
|
get(id: string): Promise<DataResponse<NotificationLog>>;
|
|
19798
20208
|
}
|
|
19799
20209
|
|
|
19800
20210
|
type CheckoutListItem = components['schemas']['CheckoutListItem'];
|
|
19801
|
-
type ListParams$
|
|
20211
|
+
type ListParams$7 = NonNullable<operations['listCheckouts']['parameters']['query']>;
|
|
19802
20212
|
declare class CheckoutsResource {
|
|
19803
20213
|
private client;
|
|
19804
20214
|
constructor(client: Hydra);
|
|
19805
|
-
list(params?: ListParams$
|
|
19806
|
-
iterate(params?: Omit<ListParams$
|
|
19807
|
-
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 & {
|
|
19808
20218
|
limit?: number;
|
|
19809
20219
|
}): Promise<CheckoutListItem[]>;
|
|
19810
20220
|
}
|
|
@@ -19830,16 +20240,16 @@ declare class AnalyticsResource {
|
|
|
19830
20240
|
|
|
19831
20241
|
type CreditTransaction = NonNullable<operations['issueCustomerCredit']['responses']['201']['content']['application/json']['data']>;
|
|
19832
20242
|
type CreditBalance = NonNullable<operations['getCustomerCredit']['responses']['200']['content']['application/json']['data']>;
|
|
19833
|
-
type ListParams$
|
|
20243
|
+
type ListParams$6 = NonNullable<operations['listCustomerCreditTransactions']['parameters']['query']>;
|
|
19834
20244
|
type IssueCreditBody = NonNullable<operations['issueCustomerCredit']['requestBody']>['content']['application/json'];
|
|
19835
20245
|
declare class StoreCreditResource {
|
|
19836
20246
|
private client;
|
|
19837
20247
|
constructor(client: Hydra);
|
|
19838
20248
|
getBalance(customerId: string): Promise<DataResponse<CreditBalance>>;
|
|
19839
20249
|
issue(customerId: string, body: IssueCreditBody, options?: ResourceRequestOptions): Promise<DataResponse<CreditTransaction>>;
|
|
19840
|
-
listTransactions(customerId: string, params?: ListParams$
|
|
19841
|
-
iterateTransactions(customerId: string, params?: Omit<ListParams$
|
|
19842
|
-
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 & {
|
|
19843
20253
|
limit?: number;
|
|
19844
20254
|
}): Promise<CreditTransaction[]>;
|
|
19845
20255
|
}
|
|
@@ -19859,41 +20269,41 @@ declare class SearchResource {
|
|
|
19859
20269
|
}
|
|
19860
20270
|
|
|
19861
20271
|
type Channel = components['schemas']['Channel'];
|
|
19862
|
-
type ListParams$
|
|
19863
|
-
type CreateBody$
|
|
19864
|
-
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'];
|
|
19865
20275
|
declare class ChannelsResource {
|
|
19866
20276
|
private client;
|
|
19867
20277
|
constructor(client: Hydra);
|
|
19868
|
-
list(params?: ListParams$
|
|
19869
|
-
iterate(params?: Omit<ListParams$
|
|
19870
|
-
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 & {
|
|
19871
20281
|
limit?: number;
|
|
19872
20282
|
}): Promise<Channel[]>;
|
|
19873
|
-
get(slug: string, params?: Pick<ListParams$
|
|
19874
|
-
create(body: CreateBody$
|
|
19875
|
-
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>>;
|
|
19876
20286
|
archive(slug: string): Promise<void>;
|
|
19877
20287
|
setDefault(slug: string): Promise<DataResponse<Channel>>;
|
|
19878
20288
|
}
|
|
19879
20289
|
|
|
19880
20290
|
type Location = components['schemas']['Location'];
|
|
19881
20291
|
type TransferResult = components['schemas']['TransferResult'];
|
|
19882
|
-
type ListParams$
|
|
19883
|
-
type CreateBody$
|
|
19884
|
-
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'];
|
|
19885
20295
|
type TransferBody = NonNullable<operations['transferLocationInventory']['requestBody']>['content']['application/json'];
|
|
19886
20296
|
declare class LocationsResource {
|
|
19887
20297
|
private client;
|
|
19888
20298
|
constructor(client: Hydra);
|
|
19889
|
-
list(params?: ListParams$
|
|
19890
|
-
iterate(params?: Omit<ListParams$
|
|
19891
|
-
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 & {
|
|
19892
20302
|
limit?: number;
|
|
19893
20303
|
}): Promise<Location[]>;
|
|
19894
20304
|
get(id: string): Promise<DataResponse<Location>>;
|
|
19895
|
-
create(body: CreateBody$
|
|
19896
|
-
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>>;
|
|
19897
20307
|
delete(id: string): Promise<void>;
|
|
19898
20308
|
setDefault(id: string): Promise<DataResponse<Location>>;
|
|
19899
20309
|
transfer(id: string, body: TransferBody): Promise<DataResponse<TransferResult>>;
|
|
@@ -19959,41 +20369,41 @@ declare class IntegrationsResource {
|
|
|
19959
20369
|
}
|
|
19960
20370
|
|
|
19961
20371
|
type Post = components['schemas']['Post'];
|
|
19962
|
-
type ListParams$
|
|
19963
|
-
type CreateBody$
|
|
19964
|
-
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'];
|
|
19965
20375
|
type AddCategoriesBody = NonNullable<operations['addPostCategories']['requestBody']>['content']['application/json'];
|
|
19966
20376
|
declare class PostsResource {
|
|
19967
20377
|
private client;
|
|
19968
20378
|
constructor(client: Hydra);
|
|
19969
|
-
list(params?: ListParams$
|
|
19970
|
-
iterate(params?: Omit<ListParams$
|
|
19971
|
-
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 & {
|
|
19972
20382
|
limit?: number;
|
|
19973
20383
|
}): Promise<Post[]>;
|
|
19974
|
-
get(id: string, params?: Pick<ListParams$
|
|
19975
|
-
create(body: CreateBody$
|
|
19976
|
-
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>>;
|
|
19977
20387
|
delete(id: string): Promise<void>;
|
|
19978
20388
|
addCategories(postId: string, body: AddCategoriesBody): Promise<DataResponse<Post>>;
|
|
19979
20389
|
removeCategory(postId: string, categoryId: string): Promise<void>;
|
|
19980
20390
|
}
|
|
19981
20391
|
|
|
19982
20392
|
type ContentCategory = components['schemas']['ContentCategory'];
|
|
19983
|
-
type ListParams$
|
|
19984
|
-
type CreateBody$
|
|
19985
|
-
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'];
|
|
19986
20396
|
declare class ContentCategoriesResource {
|
|
19987
20397
|
private client;
|
|
19988
20398
|
constructor(client: Hydra);
|
|
19989
|
-
list(params?: ListParams$
|
|
19990
|
-
iterate(params?: Omit<ListParams$
|
|
19991
|
-
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 & {
|
|
19992
20402
|
limit?: number;
|
|
19993
20403
|
}): Promise<ContentCategory[]>;
|
|
19994
20404
|
get(id: string): Promise<DataResponse<ContentCategory>>;
|
|
19995
|
-
create(body: CreateBody$
|
|
19996
|
-
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>>;
|
|
19997
20407
|
delete(id: string): Promise<void>;
|
|
19998
20408
|
listPosts(categoryId: string, params?: {
|
|
19999
20409
|
limit?: number;
|
|
@@ -20029,21 +20439,21 @@ interface CategoryPost {
|
|
|
20029
20439
|
|
|
20030
20440
|
type MembershipPlan = components['schemas']['MembershipPlan'];
|
|
20031
20441
|
type CustomerMembership = components['schemas']['CustomerMembership'];
|
|
20032
|
-
type ListParams = NonNullable<operations['listMembershipPlans']['parameters']['query']>;
|
|
20033
|
-
type CreateBody = NonNullable<operations['createMembershipPlan']['requestBody']>['content']['application/json'];
|
|
20034
|
-
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'];
|
|
20035
20445
|
type SubscriptionListParams = NonNullable<operations['listMembershipSubscriptions']['parameters']['query']>;
|
|
20036
20446
|
declare class MembershipPlansResource {
|
|
20037
20447
|
private client;
|
|
20038
20448
|
constructor(client: Hydra);
|
|
20039
|
-
list(params?: ListParams): Promise<ListResponse<MembershipPlan>>;
|
|
20040
|
-
iterate(params?: Omit<ListParams, 'cursor'>, options?: PaginateOptions): AsyncGenerator<MembershipPlan, void, undefined>;
|
|
20041
|
-
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 & {
|
|
20042
20452
|
limit?: number;
|
|
20043
20453
|
}): Promise<MembershipPlan[]>;
|
|
20044
20454
|
get(id: string): Promise<DataResponse<MembershipPlan>>;
|
|
20045
|
-
create(body: CreateBody, options?: ResourceRequestOptions): Promise<DataResponse<MembershipPlan>>;
|
|
20046
|
-
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>>;
|
|
20047
20457
|
delete(id: string): Promise<void>;
|
|
20048
20458
|
listSubscriptions(params?: SubscriptionListParams): Promise<ListResponse<CustomerMembership>>;
|
|
20049
20459
|
}
|
|
@@ -20093,6 +20503,33 @@ declare class BookingsResource {
|
|
|
20093
20503
|
deleteOverride(id: string): Promise<void>;
|
|
20094
20504
|
}
|
|
20095
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
|
+
|
|
20096
20533
|
interface AppInfo {
|
|
20097
20534
|
/** Integration/plugin name (e.g. "MyShopTheme") */
|
|
20098
20535
|
name: string;
|
|
@@ -20175,6 +20612,7 @@ declare class Hydra {
|
|
|
20175
20612
|
readonly contentCategories: ContentCategoriesResource;
|
|
20176
20613
|
readonly membershipPlans: MembershipPlansResource;
|
|
20177
20614
|
readonly bookings: BookingsResource;
|
|
20615
|
+
readonly lookbooks: LookbooksResource;
|
|
20178
20616
|
constructor(config: HydraConfig);
|
|
20179
20617
|
request<T>(method: string, path: string, options?: RequestOptions): Promise<T>;
|
|
20180
20618
|
/** Multipart upload for file-based endpoints (e.g. images) */
|
|
@@ -20256,4 +20694,4 @@ declare class HydraIdempotencyError extends HydraError {
|
|
|
20256
20694
|
constructor(body: HydraErrorBody, headers: Headers);
|
|
20257
20695
|
}
|
|
20258
20696
|
|
|
20259
|
-
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 };
|