@gethydra/sdk 0.1.47 → 0.1.48
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 +716 -184
- package/dist/index.js +69 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -341,6 +341,88 @@ interface components {
|
|
|
341
341
|
value: string;
|
|
342
342
|
};
|
|
343
343
|
};
|
|
344
|
+
FormDefinition: {
|
|
345
|
+
/** @example form_1 */
|
|
346
|
+
key: string;
|
|
347
|
+
/** @example consent */
|
|
348
|
+
slug: string;
|
|
349
|
+
/** @example Piercing Consent */
|
|
350
|
+
title: string;
|
|
351
|
+
fields: components["schemas"]["FormField"][];
|
|
352
|
+
/** @example {} */
|
|
353
|
+
settings: {
|
|
354
|
+
[key: string]: unknown;
|
|
355
|
+
};
|
|
356
|
+
/** @example false */
|
|
357
|
+
archived: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* Format: date-time
|
|
360
|
+
* @example 2026-11-19T14:30:00.000Z
|
|
361
|
+
*/
|
|
362
|
+
created_at: string;
|
|
363
|
+
};
|
|
364
|
+
FormField: {
|
|
365
|
+
/** @example ff_1 */
|
|
366
|
+
key: string;
|
|
367
|
+
/** @example date_of_birth */
|
|
368
|
+
slug: string;
|
|
369
|
+
/** @example Date of Birth */
|
|
370
|
+
label: string;
|
|
371
|
+
/** @example date */
|
|
372
|
+
type: string;
|
|
373
|
+
/** @example true */
|
|
374
|
+
required: boolean;
|
|
375
|
+
/**
|
|
376
|
+
* @example [
|
|
377
|
+
* "Option A",
|
|
378
|
+
* "Option B"
|
|
379
|
+
* ]
|
|
380
|
+
*/
|
|
381
|
+
choices?: string[];
|
|
382
|
+
/** @example Your date of birth for age verification */
|
|
383
|
+
description?: string;
|
|
384
|
+
/** @example 0 */
|
|
385
|
+
position: number;
|
|
386
|
+
/** @example false */
|
|
387
|
+
archived: boolean;
|
|
388
|
+
/**
|
|
389
|
+
* Format: date-time
|
|
390
|
+
* @example 2026-11-19T14:30:00.000Z
|
|
391
|
+
*/
|
|
392
|
+
created_at: string;
|
|
393
|
+
};
|
|
394
|
+
FormPublic: {
|
|
395
|
+
/** @example consent */
|
|
396
|
+
slug: string;
|
|
397
|
+
/** @example Piercing Consent */
|
|
398
|
+
title: string;
|
|
399
|
+
fields: components["schemas"]["FormFieldPublic"][];
|
|
400
|
+
/** @example {} */
|
|
401
|
+
settings: {
|
|
402
|
+
[key: string]: unknown;
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
FormFieldPublic: {
|
|
406
|
+
/** @example date_of_birth */
|
|
407
|
+
slug: string;
|
|
408
|
+
/** @example Date of Birth */
|
|
409
|
+
label: string;
|
|
410
|
+
/** @example date */
|
|
411
|
+
type: string;
|
|
412
|
+
/** @example true */
|
|
413
|
+
required: boolean;
|
|
414
|
+
/**
|
|
415
|
+
* @example [
|
|
416
|
+
* "Option A",
|
|
417
|
+
* "Option B"
|
|
418
|
+
* ]
|
|
419
|
+
*/
|
|
420
|
+
choices?: string[];
|
|
421
|
+
/** @example Your date of birth for age verification */
|
|
422
|
+
description?: string;
|
|
423
|
+
/** @example 0 */
|
|
424
|
+
position: number;
|
|
425
|
+
};
|
|
344
426
|
RoleDetail: {
|
|
345
427
|
/** @example role_1 */
|
|
346
428
|
key: string;
|
|
@@ -3685,6 +3767,34 @@ interface components {
|
|
|
3685
3767
|
*/
|
|
3686
3768
|
updated_at: string;
|
|
3687
3769
|
};
|
|
3770
|
+
FormSubmission: {
|
|
3771
|
+
/** @example fsub_abc123def456ghi789jk */
|
|
3772
|
+
id: string;
|
|
3773
|
+
/** @example form_1 */
|
|
3774
|
+
form_key: string;
|
|
3775
|
+
/**
|
|
3776
|
+
* @example {
|
|
3777
|
+
* "date_of_birth": "1998-03-15",
|
|
3778
|
+
* "medical_conditions": "None",
|
|
3779
|
+
* "acknowledgements": true
|
|
3780
|
+
* }
|
|
3781
|
+
*/
|
|
3782
|
+
form_data: {
|
|
3783
|
+
[key: string]: unknown;
|
|
3784
|
+
};
|
|
3785
|
+
/** @example 192.168.1.1 */
|
|
3786
|
+
ip_address: string | null;
|
|
3787
|
+
/**
|
|
3788
|
+
* Format: date-time
|
|
3789
|
+
* @example 2026-11-19T14:30:00.000Z
|
|
3790
|
+
*/
|
|
3791
|
+
created_at: string;
|
|
3792
|
+
/**
|
|
3793
|
+
* Format: date-time
|
|
3794
|
+
* @example 2026-11-19T14:30:00.000Z
|
|
3795
|
+
*/
|
|
3796
|
+
updated_at: string;
|
|
3797
|
+
};
|
|
3688
3798
|
Lookbook: {
|
|
3689
3799
|
/** @example lb_abc123 */
|
|
3690
3800
|
id: string;
|
|
@@ -4703,6 +4813,7 @@ interface operations {
|
|
|
4703
4813
|
gift_card_config?: {
|
|
4704
4814
|
default_expiry_days?: number | null;
|
|
4705
4815
|
};
|
|
4816
|
+
/** @description Partial update — only provided fields are changed, others are preserved. */
|
|
4706
4817
|
store_credit_config?: {
|
|
4707
4818
|
/** @example 30 */
|
|
4708
4819
|
expiring_soon_days?: number | null;
|
|
@@ -5225,6 +5336,257 @@ interface operations {
|
|
|
5225
5336
|
};
|
|
5226
5337
|
};
|
|
5227
5338
|
};
|
|
5339
|
+
listForms: {
|
|
5340
|
+
parameters: {
|
|
5341
|
+
query?: never;
|
|
5342
|
+
header?: never;
|
|
5343
|
+
path?: never;
|
|
5344
|
+
cookie?: never;
|
|
5345
|
+
};
|
|
5346
|
+
requestBody?: never;
|
|
5347
|
+
responses: {
|
|
5348
|
+
/** @description Form definition list */
|
|
5349
|
+
200: {
|
|
5350
|
+
headers: {
|
|
5351
|
+
[name: string]: unknown;
|
|
5352
|
+
};
|
|
5353
|
+
content: {
|
|
5354
|
+
"application/json": {
|
|
5355
|
+
data: components["schemas"]["FormDefinition"][];
|
|
5356
|
+
};
|
|
5357
|
+
};
|
|
5358
|
+
};
|
|
5359
|
+
};
|
|
5360
|
+
};
|
|
5361
|
+
createForm: {
|
|
5362
|
+
parameters: {
|
|
5363
|
+
query?: never;
|
|
5364
|
+
header?: never;
|
|
5365
|
+
path?: never;
|
|
5366
|
+
cookie?: never;
|
|
5367
|
+
};
|
|
5368
|
+
requestBody?: {
|
|
5369
|
+
content: {
|
|
5370
|
+
"application/json": {
|
|
5371
|
+
/** @example Piercing Consent */
|
|
5372
|
+
title: string;
|
|
5373
|
+
/** @example consent */
|
|
5374
|
+
slug?: string;
|
|
5375
|
+
/**
|
|
5376
|
+
* @default {}
|
|
5377
|
+
* @example {
|
|
5378
|
+
* "require_auth": true
|
|
5379
|
+
* }
|
|
5380
|
+
*/
|
|
5381
|
+
settings?: {
|
|
5382
|
+
[key: string]: unknown;
|
|
5383
|
+
};
|
|
5384
|
+
};
|
|
5385
|
+
};
|
|
5386
|
+
};
|
|
5387
|
+
responses: {
|
|
5388
|
+
/** @description Form definition created */
|
|
5389
|
+
201: {
|
|
5390
|
+
headers: {
|
|
5391
|
+
[name: string]: unknown;
|
|
5392
|
+
};
|
|
5393
|
+
content: {
|
|
5394
|
+
"application/json": {
|
|
5395
|
+
data: components["schemas"]["FormDefinition"];
|
|
5396
|
+
};
|
|
5397
|
+
};
|
|
5398
|
+
};
|
|
5399
|
+
};
|
|
5400
|
+
};
|
|
5401
|
+
getForm: {
|
|
5402
|
+
parameters: {
|
|
5403
|
+
query?: never;
|
|
5404
|
+
header?: never;
|
|
5405
|
+
path: {
|
|
5406
|
+
slug: string;
|
|
5407
|
+
};
|
|
5408
|
+
cookie?: never;
|
|
5409
|
+
};
|
|
5410
|
+
requestBody?: never;
|
|
5411
|
+
responses: {
|
|
5412
|
+
/** @description Form definition */
|
|
5413
|
+
200: {
|
|
5414
|
+
headers: {
|
|
5415
|
+
[name: string]: unknown;
|
|
5416
|
+
};
|
|
5417
|
+
content: {
|
|
5418
|
+
"application/json": {
|
|
5419
|
+
data: components["schemas"]["FormDefinition"];
|
|
5420
|
+
};
|
|
5421
|
+
};
|
|
5422
|
+
};
|
|
5423
|
+
};
|
|
5424
|
+
};
|
|
5425
|
+
updateForm: {
|
|
5426
|
+
parameters: {
|
|
5427
|
+
query?: never;
|
|
5428
|
+
header?: never;
|
|
5429
|
+
path: {
|
|
5430
|
+
slug: string;
|
|
5431
|
+
};
|
|
5432
|
+
cookie?: never;
|
|
5433
|
+
};
|
|
5434
|
+
requestBody?: {
|
|
5435
|
+
content: {
|
|
5436
|
+
"application/json": {
|
|
5437
|
+
/** @example Piercing Consent */
|
|
5438
|
+
title?: string;
|
|
5439
|
+
/** @example consent */
|
|
5440
|
+
slug?: string;
|
|
5441
|
+
/**
|
|
5442
|
+
* @example {
|
|
5443
|
+
* "require_auth": true
|
|
5444
|
+
* }
|
|
5445
|
+
*/
|
|
5446
|
+
settings?: {
|
|
5447
|
+
[key: string]: unknown;
|
|
5448
|
+
};
|
|
5449
|
+
/** @example false */
|
|
5450
|
+
archived?: boolean;
|
|
5451
|
+
};
|
|
5452
|
+
};
|
|
5453
|
+
};
|
|
5454
|
+
responses: {
|
|
5455
|
+
/** @description Form definition updated */
|
|
5456
|
+
200: {
|
|
5457
|
+
headers: {
|
|
5458
|
+
[name: string]: unknown;
|
|
5459
|
+
};
|
|
5460
|
+
content: {
|
|
5461
|
+
"application/json": {
|
|
5462
|
+
data: components["schemas"]["FormDefinition"];
|
|
5463
|
+
};
|
|
5464
|
+
};
|
|
5465
|
+
};
|
|
5466
|
+
};
|
|
5467
|
+
};
|
|
5468
|
+
createFormField: {
|
|
5469
|
+
parameters: {
|
|
5470
|
+
query?: never;
|
|
5471
|
+
header?: never;
|
|
5472
|
+
path: {
|
|
5473
|
+
slug: string;
|
|
5474
|
+
};
|
|
5475
|
+
cookie?: never;
|
|
5476
|
+
};
|
|
5477
|
+
requestBody?: {
|
|
5478
|
+
content: {
|
|
5479
|
+
"application/json": {
|
|
5480
|
+
/** @example Date of Birth */
|
|
5481
|
+
label: string;
|
|
5482
|
+
/** @example date_of_birth */
|
|
5483
|
+
slug?: string;
|
|
5484
|
+
/** @example date */
|
|
5485
|
+
type: string;
|
|
5486
|
+
/**
|
|
5487
|
+
* @default false
|
|
5488
|
+
* @example true
|
|
5489
|
+
*/
|
|
5490
|
+
required?: boolean;
|
|
5491
|
+
/**
|
|
5492
|
+
* @example [
|
|
5493
|
+
* "Option A",
|
|
5494
|
+
* "Option B"
|
|
5495
|
+
* ]
|
|
5496
|
+
*/
|
|
5497
|
+
choices?: string[];
|
|
5498
|
+
/** @example Your date of birth for age verification */
|
|
5499
|
+
description?: string;
|
|
5500
|
+
};
|
|
5501
|
+
};
|
|
5502
|
+
};
|
|
5503
|
+
responses: {
|
|
5504
|
+
/** @description Form field created */
|
|
5505
|
+
201: {
|
|
5506
|
+
headers: {
|
|
5507
|
+
[name: string]: unknown;
|
|
5508
|
+
};
|
|
5509
|
+
content: {
|
|
5510
|
+
"application/json": {
|
|
5511
|
+
data: components["schemas"]["FormField"];
|
|
5512
|
+
};
|
|
5513
|
+
};
|
|
5514
|
+
};
|
|
5515
|
+
};
|
|
5516
|
+
};
|
|
5517
|
+
updateFormField: {
|
|
5518
|
+
parameters: {
|
|
5519
|
+
query?: never;
|
|
5520
|
+
header?: never;
|
|
5521
|
+
path: {
|
|
5522
|
+
slug: string;
|
|
5523
|
+
field_slug: string;
|
|
5524
|
+
};
|
|
5525
|
+
cookie?: never;
|
|
5526
|
+
};
|
|
5527
|
+
requestBody?: {
|
|
5528
|
+
content: {
|
|
5529
|
+
"application/json": {
|
|
5530
|
+
/** @example Date of Birth */
|
|
5531
|
+
label?: string;
|
|
5532
|
+
/** @example date_of_birth */
|
|
5533
|
+
slug?: string;
|
|
5534
|
+
/** @example true */
|
|
5535
|
+
required?: boolean;
|
|
5536
|
+
/**
|
|
5537
|
+
* @example [
|
|
5538
|
+
* "Option A",
|
|
5539
|
+
* "Option B"
|
|
5540
|
+
* ]
|
|
5541
|
+
*/
|
|
5542
|
+
choices?: string[];
|
|
5543
|
+
/** @example Your date of birth */
|
|
5544
|
+
description?: string | null;
|
|
5545
|
+
/** @example 2 */
|
|
5546
|
+
position?: number;
|
|
5547
|
+
/** @example false */
|
|
5548
|
+
archived?: boolean;
|
|
5549
|
+
};
|
|
5550
|
+
};
|
|
5551
|
+
};
|
|
5552
|
+
responses: {
|
|
5553
|
+
/** @description Form field updated */
|
|
5554
|
+
200: {
|
|
5555
|
+
headers: {
|
|
5556
|
+
[name: string]: unknown;
|
|
5557
|
+
};
|
|
5558
|
+
content: {
|
|
5559
|
+
"application/json": {
|
|
5560
|
+
data: components["schemas"]["FormField"];
|
|
5561
|
+
};
|
|
5562
|
+
};
|
|
5563
|
+
};
|
|
5564
|
+
};
|
|
5565
|
+
};
|
|
5566
|
+
getFormPublic: {
|
|
5567
|
+
parameters: {
|
|
5568
|
+
query?: never;
|
|
5569
|
+
header?: never;
|
|
5570
|
+
path: {
|
|
5571
|
+
slug: string;
|
|
5572
|
+
};
|
|
5573
|
+
cookie?: never;
|
|
5574
|
+
};
|
|
5575
|
+
requestBody?: never;
|
|
5576
|
+
responses: {
|
|
5577
|
+
/** @description Public form config */
|
|
5578
|
+
200: {
|
|
5579
|
+
headers: {
|
|
5580
|
+
[name: string]: unknown;
|
|
5581
|
+
};
|
|
5582
|
+
content: {
|
|
5583
|
+
"application/json": {
|
|
5584
|
+
data: components["schemas"]["FormPublic"];
|
|
5585
|
+
};
|
|
5586
|
+
};
|
|
5587
|
+
};
|
|
5588
|
+
};
|
|
5589
|
+
};
|
|
5228
5590
|
listRoles: {
|
|
5229
5591
|
parameters: {
|
|
5230
5592
|
query?: never;
|
|
@@ -17233,6 +17595,105 @@ interface operations {
|
|
|
17233
17595
|
};
|
|
17234
17596
|
};
|
|
17235
17597
|
};
|
|
17598
|
+
listFormSubmissions: {
|
|
17599
|
+
parameters: {
|
|
17600
|
+
query?: {
|
|
17601
|
+
limit?: number;
|
|
17602
|
+
cursor?: string;
|
|
17603
|
+
fields?: string;
|
|
17604
|
+
/** @description Filter by form slug */
|
|
17605
|
+
form?: string;
|
|
17606
|
+
};
|
|
17607
|
+
header?: never;
|
|
17608
|
+
path?: never;
|
|
17609
|
+
cookie?: never;
|
|
17610
|
+
};
|
|
17611
|
+
requestBody?: never;
|
|
17612
|
+
responses: {
|
|
17613
|
+
/** @description Paginated form submission list */
|
|
17614
|
+
200: {
|
|
17615
|
+
headers: {
|
|
17616
|
+
[name: string]: unknown;
|
|
17617
|
+
};
|
|
17618
|
+
content: {
|
|
17619
|
+
"application/json": {
|
|
17620
|
+
data: components["schemas"]["FormSubmission"][];
|
|
17621
|
+
pagination: {
|
|
17622
|
+
cursor: string | null;
|
|
17623
|
+
has_more: boolean;
|
|
17624
|
+
total: number;
|
|
17625
|
+
};
|
|
17626
|
+
};
|
|
17627
|
+
};
|
|
17628
|
+
};
|
|
17629
|
+
};
|
|
17630
|
+
};
|
|
17631
|
+
createFormSubmission: {
|
|
17632
|
+
parameters: {
|
|
17633
|
+
query?: never;
|
|
17634
|
+
header?: never;
|
|
17635
|
+
path?: never;
|
|
17636
|
+
cookie?: never;
|
|
17637
|
+
};
|
|
17638
|
+
requestBody?: {
|
|
17639
|
+
content: {
|
|
17640
|
+
"application/json": {
|
|
17641
|
+
/**
|
|
17642
|
+
* @description Form slug
|
|
17643
|
+
* @example consent
|
|
17644
|
+
*/
|
|
17645
|
+
form: string;
|
|
17646
|
+
/**
|
|
17647
|
+
* @example {
|
|
17648
|
+
* "date_of_birth": "1998-03-15",
|
|
17649
|
+
* "medical_conditions": "None",
|
|
17650
|
+
* "acknowledgements": true
|
|
17651
|
+
* }
|
|
17652
|
+
*/
|
|
17653
|
+
form_data: {
|
|
17654
|
+
[key: string]: unknown;
|
|
17655
|
+
};
|
|
17656
|
+
};
|
|
17657
|
+
};
|
|
17658
|
+
};
|
|
17659
|
+
responses: {
|
|
17660
|
+
/** @description Form submission created */
|
|
17661
|
+
201: {
|
|
17662
|
+
headers: {
|
|
17663
|
+
[name: string]: unknown;
|
|
17664
|
+
};
|
|
17665
|
+
content: {
|
|
17666
|
+
"application/json": {
|
|
17667
|
+
data: components["schemas"]["FormSubmission"];
|
|
17668
|
+
};
|
|
17669
|
+
};
|
|
17670
|
+
};
|
|
17671
|
+
};
|
|
17672
|
+
};
|
|
17673
|
+
getFormSubmission: {
|
|
17674
|
+
parameters: {
|
|
17675
|
+
query?: never;
|
|
17676
|
+
header?: never;
|
|
17677
|
+
path: {
|
|
17678
|
+
id: string;
|
|
17679
|
+
};
|
|
17680
|
+
cookie?: never;
|
|
17681
|
+
};
|
|
17682
|
+
requestBody?: never;
|
|
17683
|
+
responses: {
|
|
17684
|
+
/** @description Form submission details */
|
|
17685
|
+
200: {
|
|
17686
|
+
headers: {
|
|
17687
|
+
[name: string]: unknown;
|
|
17688
|
+
};
|
|
17689
|
+
content: {
|
|
17690
|
+
"application/json": {
|
|
17691
|
+
data: components["schemas"]["FormSubmission"];
|
|
17692
|
+
};
|
|
17693
|
+
};
|
|
17694
|
+
};
|
|
17695
|
+
};
|
|
17696
|
+
};
|
|
17236
17697
|
listLookbooks: {
|
|
17237
17698
|
parameters: {
|
|
17238
17699
|
query?: {
|
|
@@ -18873,7 +19334,7 @@ interface operations {
|
|
|
18873
19334
|
sort?: "created_at" | "updated_at" | "title" | "relevance";
|
|
18874
19335
|
order?: "asc" | "desc";
|
|
18875
19336
|
/** @description Filter by notification type */
|
|
18876
|
-
type?: "email_verification" | "welcome" | "password_reset" | "password_changed" | "order_confirmation" | "order_cancelled" | "refund_issued" | "draft_order_payment_request" | "shipping_confirmation" | "delivery_confirmation" | "cart_recovery" | "booking_confirmation" | "gift_card_delivery" | "new_order" | "low_stock" | "domain_warning" | "domain_revoked" | "domain_recovered";
|
|
19337
|
+
type?: "email_verification" | "welcome" | "password_reset" | "password_changed" | "order_confirmation" | "order_cancelled" | "refund_issued" | "draft_order_payment_request" | "shipping_confirmation" | "delivery_confirmation" | "cart_recovery" | "booking_confirmation" | "gift_card_delivery" | "credit_expiring" | "new_order" | "low_stock" | "domain_warning" | "domain_revoked" | "domain_recovered";
|
|
18877
19338
|
/** @description Filter by delivery status */
|
|
18878
19339
|
status?: "sent" | "failed" | "skipped";
|
|
18879
19340
|
/** @description Filter by recipient email */
|
|
@@ -18946,7 +19407,7 @@ interface operations {
|
|
|
18946
19407
|
* @example new_order
|
|
18947
19408
|
* @enum {string}
|
|
18948
19409
|
*/
|
|
18949
|
-
type: "email_verification" | "welcome" | "password_reset" | "password_changed" | "order_confirmation" | "order_cancelled" | "refund_issued" | "draft_order_payment_request" | "shipping_confirmation" | "delivery_confirmation" | "cart_recovery" | "booking_confirmation" | "gift_card_delivery" | "new_order" | "low_stock" | "domain_warning" | "domain_revoked" | "domain_recovered";
|
|
19410
|
+
type: "email_verification" | "welcome" | "password_reset" | "password_changed" | "order_confirmation" | "order_cancelled" | "refund_issued" | "draft_order_payment_request" | "shipping_confirmation" | "delivery_confirmation" | "cart_recovery" | "booking_confirmation" | "gift_card_delivery" | "credit_expiring" | "new_order" | "low_stock" | "domain_warning" | "domain_revoked" | "domain_recovered";
|
|
18950
19411
|
/**
|
|
18951
19412
|
* Format: email
|
|
18952
19413
|
* @description Email address to send the test to
|
|
@@ -19869,6 +20330,24 @@ interface operations {
|
|
|
19869
20330
|
};
|
|
19870
20331
|
};
|
|
19871
20332
|
};
|
|
20333
|
+
getCustomerLoyaltySelf: {
|
|
20334
|
+
parameters: {
|
|
20335
|
+
query?: never;
|
|
20336
|
+
header?: never;
|
|
20337
|
+
path?: never;
|
|
20338
|
+
cookie?: never;
|
|
20339
|
+
};
|
|
20340
|
+
requestBody?: never;
|
|
20341
|
+
responses: {
|
|
20342
|
+
/** @description Loyalty summary */
|
|
20343
|
+
200: {
|
|
20344
|
+
headers: {
|
|
20345
|
+
[name: string]: unknown;
|
|
20346
|
+
};
|
|
20347
|
+
content?: never;
|
|
20348
|
+
};
|
|
20349
|
+
};
|
|
20350
|
+
};
|
|
19872
20351
|
getCustomerMembership: {
|
|
19873
20352
|
parameters: {
|
|
19874
20353
|
query?: never;
|
|
@@ -20267,6 +20746,11 @@ type DayAvailability$1 = components['schemas']['DayAvailability'];
|
|
|
20267
20746
|
type SuggestedSlot$1 = components['schemas']['SuggestedSlot'];
|
|
20268
20747
|
type Lookbook$1 = components['schemas']['Lookbook'];
|
|
20269
20748
|
type LookbookTag$1 = components['schemas']['LookbookTag'];
|
|
20749
|
+
type FormDefinition$1 = components['schemas']['FormDefinition'];
|
|
20750
|
+
type FormField$1 = components['schemas']['FormField'];
|
|
20751
|
+
type FormFieldPublic = components['schemas']['FormFieldPublic'];
|
|
20752
|
+
type FormPublic$1 = components['schemas']['FormPublic'];
|
|
20753
|
+
type FormSubmission$1 = components['schemas']['FormSubmission'];
|
|
20270
20754
|
interface Pagination {
|
|
20271
20755
|
cursor: string | null;
|
|
20272
20756
|
has_more: boolean;
|
|
@@ -20311,8 +20795,8 @@ type ProductStats = components['schemas']['ProductStats'];
|
|
|
20311
20795
|
type Variant$1 = components['schemas']['Variant'];
|
|
20312
20796
|
type Image$1 = components['schemas']['Image'];
|
|
20313
20797
|
type GenerateVariantsResult = components['schemas']['GenerateVariantsResult'];
|
|
20314
|
-
type ListParams$
|
|
20315
|
-
type CreateBody$
|
|
20798
|
+
type ListParams$v = NonNullable<operations['listProducts']['parameters']['query']>;
|
|
20799
|
+
type CreateBody$q = NonNullable<operations['createProduct']['requestBody']>['content']['application/json'];
|
|
20316
20800
|
type UpdateBody$q = NonNullable<operations['updateProduct']['requestBody']>['content']['application/json'];
|
|
20317
20801
|
type DuplicateBody = NonNullable<operations['duplicateProduct']['requestBody']>['content']['application/json'];
|
|
20318
20802
|
type CreateVariantBody = NonNullable<operations['createProductVariant']['requestBody']>['content']['application/json'];
|
|
@@ -20323,17 +20807,17 @@ type CreateProductLinkBody = NonNullable<operations['createProductLink']['reques
|
|
|
20323
20807
|
declare class ProductsResource {
|
|
20324
20808
|
private client;
|
|
20325
20809
|
constructor(client: Hydra);
|
|
20326
|
-
list(params?: ListParams$
|
|
20327
|
-
iterate(params?: Omit<ListParams$
|
|
20328
|
-
toArray(params?: Omit<ListParams$
|
|
20810
|
+
list(params?: ListParams$v): Promise<ListResponse<Product>>;
|
|
20811
|
+
iterate(params?: Omit<ListParams$v, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Product, void, undefined>;
|
|
20812
|
+
toArray(params?: Omit<ListParams$v, 'cursor'>, options?: PaginateOptions & {
|
|
20329
20813
|
limit?: number;
|
|
20330
20814
|
}): Promise<Product[]>;
|
|
20331
|
-
get(id: string, params?: Pick<ListParams$
|
|
20332
|
-
create(body: CreateBody$
|
|
20815
|
+
get(id: string, params?: Pick<ListParams$v, 'expand' | 'currency' | 'fields'>): Promise<DataResponse<Product>>;
|
|
20816
|
+
create(body: CreateBody$q, options?: ResourceRequestOptions): Promise<DataResponse<Product>>;
|
|
20333
20817
|
update(id: string, body: UpdateBody$q): Promise<DataResponse<Product>>;
|
|
20334
20818
|
delete(id: string): Promise<void>;
|
|
20335
20819
|
batchCreate(body: {
|
|
20336
|
-
products: CreateBody$
|
|
20820
|
+
products: CreateBody$q[];
|
|
20337
20821
|
}, options?: ResourceRequestOptions): Promise<DataResponse<Product[]>>;
|
|
20338
20822
|
duplicate(id: string, body: DuplicateBody): Promise<DataResponse<Product>>;
|
|
20339
20823
|
getStats(id: string): Promise<DataResponse<ProductStats>>;
|
|
@@ -20376,8 +20860,8 @@ declare class VariantsResource {
|
|
|
20376
20860
|
}
|
|
20377
20861
|
|
|
20378
20862
|
type Collection = components['schemas']['Collection'];
|
|
20379
|
-
type ListParams$
|
|
20380
|
-
type CreateBody$
|
|
20863
|
+
type ListParams$u = NonNullable<operations['listCollections']['parameters']['query']>;
|
|
20864
|
+
type CreateBody$p = NonNullable<operations['createCollection']['requestBody']>['content']['application/json'];
|
|
20381
20865
|
type UpdateBody$o = NonNullable<operations['updateCollection']['requestBody']>['content']['application/json'];
|
|
20382
20866
|
type AddProductsBody = NonNullable<operations['addCollectionProducts']['requestBody']>['content']['application/json'];
|
|
20383
20867
|
type ReorderProductsBody = NonNullable<operations['reorderCollectionProducts']['requestBody']>['content']['application/json'];
|
|
@@ -20385,13 +20869,13 @@ type ReorderCollectionsBody = NonNullable<operations['reorderCollections']['requ
|
|
|
20385
20869
|
declare class CollectionsResource {
|
|
20386
20870
|
private client;
|
|
20387
20871
|
constructor(client: Hydra);
|
|
20388
|
-
list(params?: ListParams$
|
|
20389
|
-
iterate(params?: Omit<ListParams$
|
|
20390
|
-
toArray(params?: Omit<ListParams$
|
|
20872
|
+
list(params?: ListParams$u): Promise<ListResponse<Collection>>;
|
|
20873
|
+
iterate(params?: Omit<ListParams$u, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Collection, void, undefined>;
|
|
20874
|
+
toArray(params?: Omit<ListParams$u, 'cursor'>, options?: PaginateOptions & {
|
|
20391
20875
|
limit?: number;
|
|
20392
20876
|
}): Promise<Collection[]>;
|
|
20393
|
-
get(id: string, params?: Pick<ListParams$
|
|
20394
|
-
create(body: CreateBody$
|
|
20877
|
+
get(id: string, params?: Pick<ListParams$u, 'expand' | 'fields'>): Promise<DataResponse<Collection>>;
|
|
20878
|
+
create(body: CreateBody$p, options?: ResourceRequestOptions): Promise<DataResponse<Collection>>;
|
|
20395
20879
|
update(id: string, body: UpdateBody$o): Promise<DataResponse<Collection>>;
|
|
20396
20880
|
delete(id: string): Promise<void>;
|
|
20397
20881
|
tree(): Promise<DataResponse<unknown>>;
|
|
@@ -20422,13 +20906,13 @@ declare class CartResource {
|
|
|
20422
20906
|
|
|
20423
20907
|
type CheckoutCreate = components['schemas']['CheckoutCreate'];
|
|
20424
20908
|
type CheckoutGet = components['schemas']['CheckoutGet'];
|
|
20425
|
-
type CreateBody$
|
|
20909
|
+
type CreateBody$o = NonNullable<operations['createCheckout']['requestBody']>['content']['application/json'];
|
|
20426
20910
|
type ApplyDiscountBody = NonNullable<operations['applyCheckoutDiscount']['requestBody']>['content']['application/json'];
|
|
20427
20911
|
type ApplyCreditBody = NonNullable<operations['applyCheckoutCredit']['requestBody']>['content']['application/json'];
|
|
20428
20912
|
declare class CheckoutResource {
|
|
20429
20913
|
private client;
|
|
20430
20914
|
constructor(client: Hydra);
|
|
20431
|
-
create(body: CreateBody$
|
|
20915
|
+
create(body: CreateBody$o, options?: ResourceRequestOptions): Promise<DataResponse<CheckoutCreate>>;
|
|
20432
20916
|
get(id: string): Promise<DataResponse<CheckoutGet>>;
|
|
20433
20917
|
applyDiscount(checkoutId: string, body: ApplyDiscountBody): Promise<DataResponse<CheckoutGet>>;
|
|
20434
20918
|
removeDiscount(checkoutId: string): Promise<DataResponse<CheckoutGet>>;
|
|
@@ -20439,15 +20923,15 @@ declare class CheckoutResource {
|
|
|
20439
20923
|
|
|
20440
20924
|
type Order$1 = components['schemas']['Order'];
|
|
20441
20925
|
type FulfillmentOrder$1 = components['schemas']['FulfillmentOrder'];
|
|
20442
|
-
type ListParams$
|
|
20443
|
-
type CreateBody$
|
|
20926
|
+
type ListParams$t = NonNullable<operations['listOrders']['parameters']['query']>;
|
|
20927
|
+
type CreateBody$n = NonNullable<operations['createOrder']['requestBody']>['content']['application/json'];
|
|
20444
20928
|
type UpdateBody$n = NonNullable<operations['updateOrder']['requestBody']>['content']['application/json'];
|
|
20445
20929
|
declare class OrdersResource {
|
|
20446
20930
|
private client;
|
|
20447
20931
|
constructor(client: Hydra);
|
|
20448
|
-
list(params?: ListParams$
|
|
20449
|
-
iterate(params?: Omit<ListParams$
|
|
20450
|
-
toArray(params?: Omit<ListParams$
|
|
20932
|
+
list(params?: ListParams$t): Promise<ListResponse<Order$1>>;
|
|
20933
|
+
iterate(params?: Omit<ListParams$t, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Order$1, void, undefined>;
|
|
20934
|
+
toArray(params?: Omit<ListParams$t, 'cursor'>, options?: PaginateOptions & {
|
|
20451
20935
|
limit?: number;
|
|
20452
20936
|
}): Promise<Order$1[]>;
|
|
20453
20937
|
get(id: string, params?: {
|
|
@@ -20455,7 +20939,7 @@ declare class OrdersResource {
|
|
|
20455
20939
|
currency?: string;
|
|
20456
20940
|
fields?: string;
|
|
20457
20941
|
}): Promise<DataResponse<Order$1>>;
|
|
20458
|
-
create(body: CreateBody$
|
|
20942
|
+
create(body: CreateBody$n, options?: ResourceRequestOptions): Promise<DataResponse<Order$1>>;
|
|
20459
20943
|
update(id: string, body: UpdateBody$n): Promise<DataResponse<Order$1>>;
|
|
20460
20944
|
listFulfillmentOrders(orderId: string): Promise<DataResponse<FulfillmentOrder$1[]>>;
|
|
20461
20945
|
/**
|
|
@@ -20470,34 +20954,34 @@ declare class OrdersResource {
|
|
|
20470
20954
|
}
|
|
20471
20955
|
|
|
20472
20956
|
type Fulfillment = components['schemas']['Fulfillment'];
|
|
20473
|
-
type CreateBody$
|
|
20957
|
+
type CreateBody$m = NonNullable<operations['createFulfillment']['requestBody']>['content']['application/json'];
|
|
20474
20958
|
type UpdateBody$m = NonNullable<operations['updateFulfillment']['requestBody']>['content']['application/json'];
|
|
20475
20959
|
type CancelBody = NonNullable<operations['cancelFulfillment']['requestBody']>['content']['application/json'];
|
|
20476
20960
|
declare class FulfillmentsResource {
|
|
20477
20961
|
private client;
|
|
20478
20962
|
constructor(client: Hydra);
|
|
20479
20963
|
/** Create a fulfillment for a fulfillment order */
|
|
20480
|
-
create(fulfillmentOrderId: string, body: CreateBody$
|
|
20964
|
+
create(fulfillmentOrderId: string, body: CreateBody$m, options?: ResourceRequestOptions): Promise<DataResponse<Fulfillment>>;
|
|
20481
20965
|
update(id: string, body: UpdateBody$m): Promise<DataResponse<Fulfillment>>;
|
|
20482
20966
|
cancel(id: string, body?: CancelBody): Promise<DataResponse<Fulfillment>>;
|
|
20483
20967
|
}
|
|
20484
20968
|
|
|
20485
20969
|
type Refund = components['schemas']['Refund'];
|
|
20486
|
-
type ListParams$
|
|
20487
|
-
type CreateBody$
|
|
20970
|
+
type ListParams$s = NonNullable<operations['listRefunds']['parameters']['query']>;
|
|
20971
|
+
type CreateBody$l = NonNullable<operations['createOrderRefund']['requestBody']>['content']['application/json'];
|
|
20488
20972
|
declare class RefundsResource {
|
|
20489
20973
|
private client;
|
|
20490
20974
|
constructor(client: Hydra);
|
|
20491
|
-
list(params?: ListParams$
|
|
20492
|
-
iterate(params?: Omit<ListParams$
|
|
20493
|
-
toArray(params?: Omit<ListParams$
|
|
20975
|
+
list(params?: ListParams$s): Promise<ListResponse<Refund>>;
|
|
20976
|
+
iterate(params?: Omit<ListParams$s, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Refund, void, undefined>;
|
|
20977
|
+
toArray(params?: Omit<ListParams$s, 'cursor'>, options?: PaginateOptions & {
|
|
20494
20978
|
limit?: number;
|
|
20495
20979
|
}): Promise<Refund[]>;
|
|
20496
20980
|
get(id: string, params?: {
|
|
20497
20981
|
expand?: string;
|
|
20498
20982
|
fields?: string;
|
|
20499
20983
|
}): Promise<DataResponse<Refund>>;
|
|
20500
|
-
create(orderId: string, body: CreateBody$
|
|
20984
|
+
create(orderId: string, body: CreateBody$l, options?: ResourceRequestOptions): Promise<DataResponse<Refund>>;
|
|
20501
20985
|
listByOrder(orderId: string): Promise<DataResponse<Refund[]>>;
|
|
20502
20986
|
retry(id: string): Promise<DataResponse<Refund>>;
|
|
20503
20987
|
/**
|
|
@@ -20508,24 +20992,24 @@ declare class RefundsResource {
|
|
|
20508
20992
|
}
|
|
20509
20993
|
|
|
20510
20994
|
type Return = components['schemas']['Return'];
|
|
20511
|
-
type ListParams$
|
|
20512
|
-
type CreateBody$
|
|
20995
|
+
type ListParams$r = NonNullable<operations['listReturns']['parameters']['query']>;
|
|
20996
|
+
type CreateBody$k = NonNullable<operations['createOrderReturn']['requestBody']>['content']['application/json'];
|
|
20513
20997
|
type ApproveBody = NonNullable<operations['approveReturn']['requestBody']>['content']['application/json'];
|
|
20514
20998
|
type ReceiveBody$1 = NonNullable<operations['receiveReturn']['requestBody']>['content']['application/json'];
|
|
20515
20999
|
type RejectBody$1 = NonNullable<operations['rejectReturn']['requestBody']>['content']['application/json'];
|
|
20516
21000
|
declare class ReturnsResource {
|
|
20517
21001
|
private client;
|
|
20518
21002
|
constructor(client: Hydra);
|
|
20519
|
-
list(params?: ListParams$
|
|
20520
|
-
iterate(params?: Omit<ListParams$
|
|
20521
|
-
toArray(params?: Omit<ListParams$
|
|
21003
|
+
list(params?: ListParams$r): Promise<ListResponse<Return>>;
|
|
21004
|
+
iterate(params?: Omit<ListParams$r, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Return, void, undefined>;
|
|
21005
|
+
toArray(params?: Omit<ListParams$r, 'cursor'>, options?: PaginateOptions & {
|
|
20522
21006
|
limit?: number;
|
|
20523
21007
|
}): Promise<Return[]>;
|
|
20524
21008
|
get(id: string, params?: {
|
|
20525
21009
|
expand?: string;
|
|
20526
21010
|
fields?: string;
|
|
20527
21011
|
}): Promise<DataResponse<Return>>;
|
|
20528
|
-
create(orderId: string, body: CreateBody$
|
|
21012
|
+
create(orderId: string, body: CreateBody$k, options?: ResourceRequestOptions): Promise<DataResponse<Return>>;
|
|
20529
21013
|
listByOrder(orderId: string): Promise<DataResponse<Return[]>>;
|
|
20530
21014
|
approve(id: string, body?: ApproveBody): Promise<DataResponse<Return>>;
|
|
20531
21015
|
receive(id: string, body?: ReceiveBody$1): Promise<DataResponse<Return>>;
|
|
@@ -20537,17 +21021,17 @@ declare class ReturnsResource {
|
|
|
20537
21021
|
type DraftOrder = components['schemas']['DraftOrder'];
|
|
20538
21022
|
type DraftOrderLineItem = components['schemas']['DraftOrderLineItem'];
|
|
20539
21023
|
type Order = components['schemas']['Order'];
|
|
20540
|
-
type ListParams$
|
|
20541
|
-
type CreateBody$
|
|
21024
|
+
type ListParams$q = NonNullable<operations['listDraftOrders']['parameters']['query']>;
|
|
21025
|
+
type CreateBody$j = NonNullable<operations['createDraftOrder']['requestBody']>['content']['application/json'];
|
|
20542
21026
|
type UpdateBody$l = NonNullable<operations['updateDraftOrder']['requestBody']>['content']['application/json'];
|
|
20543
21027
|
type AddItemsBody = NonNullable<operations['addDraftOrderItems']['requestBody']>['content']['application/json'];
|
|
20544
21028
|
type UpdateItemBody$2 = NonNullable<operations['updateDraftOrderItem']['requestBody']>['content']['application/json'];
|
|
20545
21029
|
declare class DraftOrdersResource {
|
|
20546
21030
|
private client;
|
|
20547
21031
|
constructor(client: Hydra);
|
|
20548
|
-
list(params?: ListParams$
|
|
20549
|
-
iterate(params?: Omit<ListParams$
|
|
20550
|
-
toArray(params?: Omit<ListParams$
|
|
21032
|
+
list(params?: ListParams$q): Promise<ListResponse<DraftOrder>>;
|
|
21033
|
+
iterate(params?: Omit<ListParams$q, 'cursor'>, options?: PaginateOptions): AsyncGenerator<DraftOrder, void, undefined>;
|
|
21034
|
+
toArray(params?: Omit<ListParams$q, 'cursor'>, options?: PaginateOptions & {
|
|
20551
21035
|
limit?: number;
|
|
20552
21036
|
}): Promise<DraftOrder[]>;
|
|
20553
21037
|
get(id: string, params?: {
|
|
@@ -20555,7 +21039,7 @@ declare class DraftOrdersResource {
|
|
|
20555
21039
|
currency?: string;
|
|
20556
21040
|
fields?: string;
|
|
20557
21041
|
}): Promise<DataResponse<DraftOrder>>;
|
|
20558
|
-
create(body: CreateBody$
|
|
21042
|
+
create(body: CreateBody$j, options?: ResourceRequestOptions): Promise<DataResponse<DraftOrder>>;
|
|
20559
21043
|
update(id: string, body: UpdateBody$l): Promise<DataResponse<DraftOrder>>;
|
|
20560
21044
|
delete(id: string): Promise<void>;
|
|
20561
21045
|
addItems(draftOrderId: string, body: AddItemsBody): Promise<DataResponse<DraftOrderLineItem[]>>;
|
|
@@ -20571,21 +21055,21 @@ declare class DraftOrdersResource {
|
|
|
20571
21055
|
}
|
|
20572
21056
|
|
|
20573
21057
|
type Customer = components['schemas']['Customer'];
|
|
20574
|
-
type ListParams$
|
|
20575
|
-
type CreateBody$
|
|
21058
|
+
type ListParams$p = NonNullable<operations['listCustomers']['parameters']['query']>;
|
|
21059
|
+
type CreateBody$i = NonNullable<operations['createCustomer']['requestBody']>['content']['application/json'];
|
|
20576
21060
|
type UpdateBody$k = NonNullable<operations['updateCustomer']['requestBody']>['content']['application/json'];
|
|
20577
21061
|
type CreateAddressBody$2 = NonNullable<operations['createCustomerAddress']['requestBody']>['content']['application/json'];
|
|
20578
21062
|
type CreateNoteBody$1 = NonNullable<operations['createCustomerNote']['requestBody']>['content']['application/json'];
|
|
20579
21063
|
declare class CustomersResource {
|
|
20580
21064
|
private client;
|
|
20581
21065
|
constructor(client: Hydra);
|
|
20582
|
-
list(params?: ListParams$
|
|
20583
|
-
iterate(params?: Omit<ListParams$
|
|
20584
|
-
toArray(params?: Omit<ListParams$
|
|
21066
|
+
list(params?: ListParams$p): Promise<ListResponse<Customer>>;
|
|
21067
|
+
iterate(params?: Omit<ListParams$p, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Customer, void, undefined>;
|
|
21068
|
+
toArray(params?: Omit<ListParams$p, 'cursor'>, options?: PaginateOptions & {
|
|
20585
21069
|
limit?: number;
|
|
20586
21070
|
}): Promise<Customer[]>;
|
|
20587
|
-
get(id: string, params?: Pick<ListParams$
|
|
20588
|
-
create(body: CreateBody$
|
|
21071
|
+
get(id: string, params?: Pick<ListParams$p, 'expand' | 'fields'>): Promise<DataResponse<Customer>>;
|
|
21072
|
+
create(body: CreateBody$i, options?: ResourceRequestOptions): Promise<DataResponse<Customer>>;
|
|
20589
21073
|
update(id: string, body: UpdateBody$k): Promise<DataResponse<Customer>>;
|
|
20590
21074
|
delete(id: string): Promise<void>;
|
|
20591
21075
|
listAddresses(customerId: string): Promise<DataResponse<unknown[]>>;
|
|
@@ -20600,20 +21084,20 @@ declare class CustomersResource {
|
|
|
20600
21084
|
}
|
|
20601
21085
|
|
|
20602
21086
|
type CustomerGroup = components['schemas']['CustomerGroup'];
|
|
20603
|
-
type ListParams$
|
|
20604
|
-
type CreateBody$
|
|
21087
|
+
type ListParams$o = NonNullable<operations['listCustomerGroups']['parameters']['query']>;
|
|
21088
|
+
type CreateBody$h = NonNullable<operations['createCustomerGroup']['requestBody']>['content']['application/json'];
|
|
20605
21089
|
type UpdateBody$j = NonNullable<operations['updateCustomerGroup']['requestBody']>['content']['application/json'];
|
|
20606
21090
|
type AddMembersBody = NonNullable<operations['addCustomerGroupMembers']['requestBody']>['content']['application/json'];
|
|
20607
21091
|
declare class CustomerGroupsResource {
|
|
20608
21092
|
private client;
|
|
20609
21093
|
constructor(client: Hydra);
|
|
20610
|
-
list(params?: ListParams$
|
|
20611
|
-
iterate(params?: Omit<ListParams$
|
|
20612
|
-
toArray(params?: Omit<ListParams$
|
|
21094
|
+
list(params?: ListParams$o): Promise<ListResponse<CustomerGroup>>;
|
|
21095
|
+
iterate(params?: Omit<ListParams$o, 'cursor'>, options?: PaginateOptions): AsyncGenerator<CustomerGroup, void, undefined>;
|
|
21096
|
+
toArray(params?: Omit<ListParams$o, 'cursor'>, options?: PaginateOptions & {
|
|
20613
21097
|
limit?: number;
|
|
20614
21098
|
}): Promise<CustomerGroup[]>;
|
|
20615
21099
|
get(id: string): Promise<DataResponse<CustomerGroup>>;
|
|
20616
|
-
create(body: CreateBody$
|
|
21100
|
+
create(body: CreateBody$h, options?: ResourceRequestOptions): Promise<DataResponse<CustomerGroup>>;
|
|
20617
21101
|
update(id: string, body: UpdateBody$j): Promise<DataResponse<CustomerGroup>>;
|
|
20618
21102
|
delete(id: string): Promise<void>;
|
|
20619
21103
|
addMembers(groupId: string, body: AddMembersBody): Promise<void>;
|
|
@@ -20621,7 +21105,7 @@ declare class CustomerGroupsResource {
|
|
|
20621
21105
|
}
|
|
20622
21106
|
|
|
20623
21107
|
type CustomerPhoto = components['schemas']['CustomerPhoto'];
|
|
20624
|
-
type ListParams$
|
|
21108
|
+
type ListParams$n = NonNullable<operations['listCustomerPhotos']['parameters']['query']>;
|
|
20625
21109
|
type UpdateBody$i = NonNullable<operations['updateCustomerPhoto']['requestBody']>['content']['application/json'];
|
|
20626
21110
|
type RejectBody = NonNullable<operations['rejectCustomerPhoto']['requestBody']>['content']['application/json'];
|
|
20627
21111
|
declare class CustomerPhotosResource {
|
|
@@ -20631,15 +21115,15 @@ declare class CustomerPhotosResource {
|
|
|
20631
21115
|
* List customer photos (secret key only).
|
|
20632
21116
|
* Filter by product, status, etc.
|
|
20633
21117
|
*/
|
|
20634
|
-
list(params?: ListParams$
|
|
21118
|
+
list(params?: ListParams$n): Promise<ListResponse<CustomerPhoto>>;
|
|
20635
21119
|
/**
|
|
20636
21120
|
* Iterate through all customer photos with automatic pagination.
|
|
20637
21121
|
*/
|
|
20638
|
-
iterate(params?: Omit<ListParams$
|
|
21122
|
+
iterate(params?: Omit<ListParams$n, 'cursor'>, options?: PaginateOptions): AsyncGenerator<CustomerPhoto, void, undefined>;
|
|
20639
21123
|
/**
|
|
20640
21124
|
* Fetch all customer photos as an array (use with caution on large datasets).
|
|
20641
21125
|
*/
|
|
20642
|
-
toArray(params?: Omit<ListParams$
|
|
21126
|
+
toArray(params?: Omit<ListParams$n, 'cursor'>, options?: PaginateOptions & {
|
|
20643
21127
|
limit?: number;
|
|
20644
21128
|
}): Promise<CustomerPhoto[]>;
|
|
20645
21129
|
/**
|
|
@@ -20693,7 +21177,7 @@ declare class AddressesResource {
|
|
|
20693
21177
|
type InventoryLevel = components['schemas']['InventoryLevel'];
|
|
20694
21178
|
type InventoryAdjustment = components['schemas']['InventoryAdjustment'];
|
|
20695
21179
|
type ProductAdjustment = components['schemas']['ProductAdjustment'];
|
|
20696
|
-
type ListParams$
|
|
21180
|
+
type ListParams$m = NonNullable<operations['listInventory']['parameters']['query']>;
|
|
20697
21181
|
type SetBody = NonNullable<operations['setInventory']['requestBody']>['content']['application/json'];
|
|
20698
21182
|
type AdjustBody = NonNullable<operations['adjustInventory']['requestBody']>['content']['application/json'];
|
|
20699
21183
|
type InventoryResult = InventoryLevel & {
|
|
@@ -20702,9 +21186,9 @@ type InventoryResult = InventoryLevel & {
|
|
|
20702
21186
|
declare class InventoryResource {
|
|
20703
21187
|
private client;
|
|
20704
21188
|
constructor(client: Hydra);
|
|
20705
|
-
list(params?: ListParams$
|
|
20706
|
-
iterate(params?: Omit<ListParams$
|
|
20707
|
-
toArray(params?: Omit<ListParams$
|
|
21189
|
+
list(params?: ListParams$m): Promise<ListResponse<InventoryLevel>>;
|
|
21190
|
+
iterate(params?: Omit<ListParams$m, 'cursor'>, options?: PaginateOptions): AsyncGenerator<InventoryLevel, void, undefined>;
|
|
21191
|
+
toArray(params?: Omit<ListParams$m, 'cursor'>, options?: PaginateOptions & {
|
|
20708
21192
|
limit?: number;
|
|
20709
21193
|
}): Promise<InventoryLevel[]>;
|
|
20710
21194
|
listAdjustments(params: {
|
|
@@ -20776,51 +21260,51 @@ declare class ShippingResource {
|
|
|
20776
21260
|
}
|
|
20777
21261
|
|
|
20778
21262
|
type Promotion = components['schemas']['Promotion'];
|
|
20779
|
-
type ListParams$
|
|
20780
|
-
type CreateBody$
|
|
21263
|
+
type ListParams$l = NonNullable<operations['listPromotions']['parameters']['query']>;
|
|
21264
|
+
type CreateBody$g = NonNullable<operations['createPromotion']['requestBody']>['content']['application/json'];
|
|
20781
21265
|
type UpdateBody$g = NonNullable<operations['updatePromotion']['requestBody']>['content']['application/json'];
|
|
20782
21266
|
declare class PromotionsResource {
|
|
20783
21267
|
private client;
|
|
20784
21268
|
constructor(client: Hydra);
|
|
20785
|
-
list(params?: ListParams$
|
|
20786
|
-
iterate(params?: Omit<ListParams$
|
|
20787
|
-
toArray(params?: Omit<ListParams$
|
|
21269
|
+
list(params?: ListParams$l): Promise<ListResponse<Promotion>>;
|
|
21270
|
+
iterate(params?: Omit<ListParams$l, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Promotion, void, undefined>;
|
|
21271
|
+
toArray(params?: Omit<ListParams$l, 'cursor'>, options?: PaginateOptions & {
|
|
20788
21272
|
limit?: number;
|
|
20789
21273
|
}): Promise<Promotion[]>;
|
|
20790
21274
|
get(id: string): Promise<DataResponse<Promotion>>;
|
|
20791
|
-
create(body: CreateBody$
|
|
21275
|
+
create(body: CreateBody$g, options?: ResourceRequestOptions): Promise<DataResponse<Promotion>>;
|
|
20792
21276
|
update(id: string, body: UpdateBody$g): Promise<DataResponse<Promotion>>;
|
|
20793
21277
|
delete(id: string): Promise<void>;
|
|
20794
21278
|
}
|
|
20795
21279
|
|
|
20796
21280
|
type Discount = components['schemas']['Discount'];
|
|
20797
|
-
type ListParams$
|
|
20798
|
-
type CreateBody$
|
|
21281
|
+
type ListParams$k = NonNullable<operations['listDiscounts']['parameters']['query']>;
|
|
21282
|
+
type CreateBody$f = NonNullable<operations['createDiscount']['requestBody']>['content']['application/json'];
|
|
20799
21283
|
type UpdateBody$f = NonNullable<operations['updateDiscount']['requestBody']>['content']['application/json'];
|
|
20800
21284
|
declare class DiscountsResource {
|
|
20801
21285
|
private client;
|
|
20802
21286
|
constructor(client: Hydra);
|
|
20803
|
-
list(params?: ListParams$
|
|
20804
|
-
iterate(params?: Omit<ListParams$
|
|
20805
|
-
toArray(params?: Omit<ListParams$
|
|
21287
|
+
list(params?: ListParams$k): Promise<ListResponse<Discount>>;
|
|
21288
|
+
iterate(params?: Omit<ListParams$k, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Discount, void, undefined>;
|
|
21289
|
+
toArray(params?: Omit<ListParams$k, 'cursor'>, options?: PaginateOptions & {
|
|
20806
21290
|
limit?: number;
|
|
20807
21291
|
}): Promise<Discount[]>;
|
|
20808
21292
|
get(id: string): Promise<DataResponse<Discount>>;
|
|
20809
|
-
create(body: CreateBody$
|
|
21293
|
+
create(body: CreateBody$f, options?: ResourceRequestOptions): Promise<DataResponse<Discount>>;
|
|
20810
21294
|
update(id: string, body: UpdateBody$f): Promise<DataResponse<Discount>>;
|
|
20811
21295
|
delete(id: string): Promise<void>;
|
|
20812
21296
|
}
|
|
20813
21297
|
|
|
20814
21298
|
type Image = components['schemas']['Image'];
|
|
20815
|
-
type ListParams$
|
|
21299
|
+
type ListParams$j = NonNullable<operations['listImages']['parameters']['query']>;
|
|
20816
21300
|
type UpdateBody$e = NonNullable<operations['updateImage']['requestBody']>['content']['application/json'];
|
|
20817
21301
|
type ReorderBody$2 = NonNullable<operations['reorderImages']['requestBody']>['content']['application/json'];
|
|
20818
21302
|
declare class ImagesResource {
|
|
20819
21303
|
private client;
|
|
20820
21304
|
constructor(client: Hydra);
|
|
20821
|
-
list(params?: ListParams$
|
|
20822
|
-
iterate(params?: Omit<ListParams$
|
|
20823
|
-
toArray(params?: Omit<ListParams$
|
|
21305
|
+
list(params?: ListParams$j): Promise<ListResponse<Image>>;
|
|
21306
|
+
iterate(params?: Omit<ListParams$j, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Image, void, undefined>;
|
|
21307
|
+
toArray(params?: Omit<ListParams$j, 'cursor'>, options?: PaginateOptions & {
|
|
20824
21308
|
limit?: number;
|
|
20825
21309
|
}): Promise<Image[]>;
|
|
20826
21310
|
/** Upload an image to the store library */
|
|
@@ -20834,19 +21318,19 @@ declare class ImagesResource {
|
|
|
20834
21318
|
}
|
|
20835
21319
|
|
|
20836
21320
|
type Webhook = components['schemas']['Webhook'];
|
|
20837
|
-
type ListParams$
|
|
20838
|
-
type CreateBody$
|
|
21321
|
+
type ListParams$i = NonNullable<operations['listWebhooks']['parameters']['query']>;
|
|
21322
|
+
type CreateBody$e = NonNullable<operations['createWebhook']['requestBody']>['content']['application/json'];
|
|
20839
21323
|
type UpdateBody$d = NonNullable<operations['updateWebhook']['requestBody']>['content']['application/json'];
|
|
20840
21324
|
declare class WebhooksResource {
|
|
20841
21325
|
private client;
|
|
20842
21326
|
constructor(client: Hydra);
|
|
20843
|
-
list(params?: ListParams$
|
|
20844
|
-
iterate(params?: Omit<ListParams$
|
|
20845
|
-
toArray(params?: Omit<ListParams$
|
|
21327
|
+
list(params?: ListParams$i): Promise<ListResponse<Webhook>>;
|
|
21328
|
+
iterate(params?: Omit<ListParams$i, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Webhook, void, undefined>;
|
|
21329
|
+
toArray(params?: Omit<ListParams$i, 'cursor'>, options?: PaginateOptions & {
|
|
20846
21330
|
limit?: number;
|
|
20847
21331
|
}): Promise<Webhook[]>;
|
|
20848
21332
|
get(id: string): Promise<DataResponse<Webhook>>;
|
|
20849
|
-
create(body: CreateBody$
|
|
21333
|
+
create(body: CreateBody$e, options?: ResourceRequestOptions): Promise<DataResponse<Webhook>>;
|
|
20850
21334
|
update(id: string, body: UpdateBody$d): Promise<DataResponse<Webhook>>;
|
|
20851
21335
|
delete(id: string): Promise<void>;
|
|
20852
21336
|
}
|
|
@@ -20871,41 +21355,41 @@ declare class StoreResource {
|
|
|
20871
21355
|
}
|
|
20872
21356
|
|
|
20873
21357
|
type Tag = components['schemas']['Tag'];
|
|
20874
|
-
type ListParams$
|
|
20875
|
-
type CreateBody$
|
|
21358
|
+
type ListParams$h = NonNullable<operations['listTags']['parameters']['query']>;
|
|
21359
|
+
type CreateBody$d = NonNullable<operations['createTag']['requestBody']>['content']['application/json'];
|
|
20876
21360
|
type UpdateBody$b = NonNullable<operations['updateTag']['requestBody']>['content']['application/json'];
|
|
20877
21361
|
declare class TagsResource {
|
|
20878
21362
|
private client;
|
|
20879
21363
|
constructor(client: Hydra);
|
|
20880
|
-
list(params?: ListParams$
|
|
20881
|
-
iterate(params?: Omit<ListParams$
|
|
20882
|
-
toArray(params?: Omit<ListParams$
|
|
21364
|
+
list(params?: ListParams$h): Promise<ListResponse<Tag>>;
|
|
21365
|
+
iterate(params?: Omit<ListParams$h, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Tag, void, undefined>;
|
|
21366
|
+
toArray(params?: Omit<ListParams$h, 'cursor'>, options?: PaginateOptions & {
|
|
20883
21367
|
limit?: number;
|
|
20884
21368
|
}): Promise<Tag[]>;
|
|
20885
|
-
create(body: CreateBody$
|
|
21369
|
+
create(body: CreateBody$d, options?: ResourceRequestOptions): Promise<DataResponse<Tag>>;
|
|
20886
21370
|
update(id: string, body: UpdateBody$b): Promise<DataResponse<Tag>>;
|
|
20887
21371
|
delete(id: string): Promise<void>;
|
|
20888
21372
|
}
|
|
20889
21373
|
|
|
20890
21374
|
type Redirect = components['schemas']['Redirect'];
|
|
20891
|
-
type ListParams$
|
|
20892
|
-
type CreateBody$
|
|
21375
|
+
type ListParams$g = NonNullable<operations['listRedirects']['parameters']['query']>;
|
|
21376
|
+
type CreateBody$c = NonNullable<operations['createRedirect']['requestBody']>['content']['application/json'];
|
|
20893
21377
|
declare class RedirectsResource {
|
|
20894
21378
|
private client;
|
|
20895
21379
|
constructor(client: Hydra);
|
|
20896
|
-
list(params?: ListParams$
|
|
20897
|
-
iterate(params?: Omit<ListParams$
|
|
20898
|
-
toArray(params?: Omit<ListParams$
|
|
21380
|
+
list(params?: ListParams$g): Promise<ListResponse<Redirect>>;
|
|
21381
|
+
iterate(params?: Omit<ListParams$g, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Redirect, void, undefined>;
|
|
21382
|
+
toArray(params?: Omit<ListParams$g, 'cursor'>, options?: PaginateOptions & {
|
|
20899
21383
|
limit?: number;
|
|
20900
21384
|
}): Promise<Redirect[]>;
|
|
20901
|
-
create(body: CreateBody$
|
|
21385
|
+
create(body: CreateBody$c, options?: ResourceRequestOptions): Promise<DataResponse<Redirect>>;
|
|
20902
21386
|
lookup(path: string): Promise<DataResponse<Redirect>>;
|
|
20903
21387
|
delete(id: string): Promise<void>;
|
|
20904
21388
|
}
|
|
20905
21389
|
|
|
20906
21390
|
type Company = components['schemas']['Company'];
|
|
20907
|
-
type ListParams$
|
|
20908
|
-
type CreateBody$
|
|
21391
|
+
type ListParams$f = NonNullable<operations['listCompanies']['parameters']['query']>;
|
|
21392
|
+
type CreateBody$b = NonNullable<operations['createCompany']['requestBody']>['content']['application/json'];
|
|
20909
21393
|
type UpdateBody$a = NonNullable<operations['updateCompany']['requestBody']>['content']['application/json'];
|
|
20910
21394
|
type CreateAddressBody$1 = NonNullable<operations['createCompanyAddress']['requestBody']>['content']['application/json'];
|
|
20911
21395
|
type UpdateAddressBody$1 = NonNullable<operations['updateCompanyAddress']['requestBody']>['content']['application/json'];
|
|
@@ -20915,13 +21399,13 @@ type CreateNoteBody = NonNullable<operations['createCompanyNote']['requestBody']
|
|
|
20915
21399
|
declare class CompaniesResource {
|
|
20916
21400
|
private client;
|
|
20917
21401
|
constructor(client: Hydra);
|
|
20918
|
-
list(params?: ListParams$
|
|
20919
|
-
iterate(params?: Omit<ListParams$
|
|
20920
|
-
toArray(params?: Omit<ListParams$
|
|
21402
|
+
list(params?: ListParams$f): Promise<ListResponse<Company>>;
|
|
21403
|
+
iterate(params?: Omit<ListParams$f, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Company, void, undefined>;
|
|
21404
|
+
toArray(params?: Omit<ListParams$f, 'cursor'>, options?: PaginateOptions & {
|
|
20921
21405
|
limit?: number;
|
|
20922
21406
|
}): Promise<Company[]>;
|
|
20923
|
-
get(id: string, params?: Pick<ListParams$
|
|
20924
|
-
create(body: CreateBody$
|
|
21407
|
+
get(id: string, params?: Pick<ListParams$f, 'expand' | 'fields'>): Promise<DataResponse<Company>>;
|
|
21408
|
+
create(body: CreateBody$b, options?: ResourceRequestOptions): Promise<DataResponse<Company>>;
|
|
20925
21409
|
update(id: string, body: UpdateBody$a): Promise<DataResponse<Company>>;
|
|
20926
21410
|
delete(id: string): Promise<void>;
|
|
20927
21411
|
listAddresses(companyId: string): Promise<DataResponse<unknown[]>>;
|
|
@@ -20938,8 +21422,8 @@ declare class CompaniesResource {
|
|
|
20938
21422
|
}
|
|
20939
21423
|
|
|
20940
21424
|
type PurchaseOrder = components['schemas']['PurchaseOrder'];
|
|
20941
|
-
type ListParams$
|
|
20942
|
-
type CreateBody$
|
|
21425
|
+
type ListParams$e = NonNullable<operations['listPurchaseOrders']['parameters']['query']>;
|
|
21426
|
+
type CreateBody$a = NonNullable<operations['createPurchaseOrder']['requestBody']>['content']['application/json'];
|
|
20943
21427
|
type UpdateBody$9 = NonNullable<operations['updatePurchaseOrder']['requestBody']>['content']['application/json'];
|
|
20944
21428
|
type AddItemBody = NonNullable<operations['addPurchaseOrderItems']['requestBody']>['content']['application/json'];
|
|
20945
21429
|
type UpdateItemBody$1 = NonNullable<operations['updatePurchaseOrderItem']['requestBody']>['content']['application/json'];
|
|
@@ -20947,13 +21431,13 @@ type ReceiveBody = NonNullable<operations['receivePurchaseOrderItems']['requestB
|
|
|
20947
21431
|
declare class PurchaseOrdersResource {
|
|
20948
21432
|
private client;
|
|
20949
21433
|
constructor(client: Hydra);
|
|
20950
|
-
list(params?: ListParams$
|
|
20951
|
-
iterate(params?: Omit<ListParams$
|
|
20952
|
-
toArray(params?: Omit<ListParams$
|
|
21434
|
+
list(params?: ListParams$e): Promise<ListResponse<PurchaseOrder>>;
|
|
21435
|
+
iterate(params?: Omit<ListParams$e, 'cursor'>, options?: PaginateOptions): AsyncGenerator<PurchaseOrder, void, undefined>;
|
|
21436
|
+
toArray(params?: Omit<ListParams$e, 'cursor'>, options?: PaginateOptions & {
|
|
20953
21437
|
limit?: number;
|
|
20954
21438
|
}): Promise<PurchaseOrder[]>;
|
|
20955
|
-
get(id: string, params?: Pick<ListParams$
|
|
20956
|
-
create(body: CreateBody$
|
|
21439
|
+
get(id: string, params?: Pick<ListParams$e, 'expand' | 'fields'>): Promise<DataResponse<PurchaseOrder>>;
|
|
21440
|
+
create(body: CreateBody$a, options?: ResourceRequestOptions): Promise<DataResponse<PurchaseOrder>>;
|
|
20957
21441
|
update(id: string, body: UpdateBody$9): Promise<DataResponse<PurchaseOrder>>;
|
|
20958
21442
|
delete(id: string): Promise<void>;
|
|
20959
21443
|
addItem(purchaseOrderId: string, body: AddItemBody): Promise<DataResponse<unknown>>;
|
|
@@ -20977,16 +21461,16 @@ declare class FulfillmentOrdersResource {
|
|
|
20977
21461
|
listForOrder(orderId: string): Promise<DataResponse<FulfillmentOrder[]>>;
|
|
20978
21462
|
}
|
|
20979
21463
|
|
|
20980
|
-
type ListParams$
|
|
20981
|
-
type CreateBody$
|
|
21464
|
+
type ListParams$d = NonNullable<operations['listMetafieldDefinitions']['parameters']['query']>;
|
|
21465
|
+
type CreateBody$9 = NonNullable<operations['createMetafieldDefinition']['requestBody']>['content']['application/json'];
|
|
20982
21466
|
type UpdateBody$8 = NonNullable<operations['updateMetafieldDefinition']['requestBody']>['content']['application/json'];
|
|
20983
21467
|
type ReorderBody$1 = NonNullable<operations['reorderMetafieldDefinitions']['requestBody']>['content']['application/json'];
|
|
20984
21468
|
declare class MetafieldsResource {
|
|
20985
21469
|
private client;
|
|
20986
21470
|
constructor(client: Hydra);
|
|
20987
21471
|
/** List metafield definitions for the store */
|
|
20988
|
-
listDefinitions(params?: ListParams$
|
|
20989
|
-
createDefinition(body: CreateBody$
|
|
21472
|
+
listDefinitions(params?: ListParams$d): Promise<DataResponse<unknown[]>>;
|
|
21473
|
+
createDefinition(body: CreateBody$9): Promise<DataResponse<unknown>>;
|
|
20990
21474
|
updateDefinition(ownerType: string, slug: string, body: UpdateBody$8): Promise<DataResponse<unknown>>;
|
|
20991
21475
|
archiveDefinition(ownerType: string, slug: string): Promise<void>;
|
|
20992
21476
|
reorderDefinitions(ownerType: string, body: ReorderBody$1): Promise<void>;
|
|
@@ -21033,29 +21517,29 @@ declare class TaxResource {
|
|
|
21033
21517
|
}
|
|
21034
21518
|
|
|
21035
21519
|
type ExchangeRate = components['schemas']['ExchangeRate'];
|
|
21036
|
-
type ListParams$
|
|
21520
|
+
type ListParams$c = NonNullable<operations['listExchangeRates']['parameters']['query']>;
|
|
21037
21521
|
declare class ExchangeRatesResource {
|
|
21038
21522
|
private client;
|
|
21039
21523
|
constructor(client: Hydra);
|
|
21040
|
-
list(params?: ListParams$
|
|
21524
|
+
list(params?: ListParams$c): Promise<DataResponse<ExchangeRate[]>>;
|
|
21041
21525
|
refresh(): Promise<DataResponse<unknown>>;
|
|
21042
21526
|
}
|
|
21043
21527
|
|
|
21044
21528
|
type FilterAttribute = components['schemas']['FilterAttribute'];
|
|
21045
|
-
type ListParams$
|
|
21046
|
-
type CreateBody$
|
|
21529
|
+
type ListParams$b = NonNullable<operations['listFilterAttributes']['parameters']['query']>;
|
|
21530
|
+
type CreateBody$8 = NonNullable<operations['createFilterAttribute']['requestBody']>['content']['application/json'];
|
|
21047
21531
|
type UpdateBody$7 = NonNullable<operations['updateFilterAttribute']['requestBody']>['content']['application/json'];
|
|
21048
21532
|
type ReorderBody = NonNullable<operations['reorderFilterAttributes']['requestBody']>['content']['application/json'];
|
|
21049
21533
|
declare class FilterAttributesResource {
|
|
21050
21534
|
private client;
|
|
21051
21535
|
constructor(client: Hydra);
|
|
21052
|
-
list(params?: ListParams$
|
|
21053
|
-
iterate(params?: Omit<ListParams$
|
|
21054
|
-
toArray(params?: Omit<ListParams$
|
|
21536
|
+
list(params?: ListParams$b): Promise<ListResponse<FilterAttribute>>;
|
|
21537
|
+
iterate(params?: Omit<ListParams$b, 'cursor'>, options?: PaginateOptions): AsyncGenerator<FilterAttribute, void, undefined>;
|
|
21538
|
+
toArray(params?: Omit<ListParams$b, 'cursor'>, options?: PaginateOptions & {
|
|
21055
21539
|
limit?: number;
|
|
21056
21540
|
}): Promise<FilterAttribute[]>;
|
|
21057
21541
|
get(id: string): Promise<DataResponse<FilterAttribute>>;
|
|
21058
|
-
create(body: CreateBody$
|
|
21542
|
+
create(body: CreateBody$8, options?: ResourceRequestOptions): Promise<DataResponse<FilterAttribute>>;
|
|
21059
21543
|
update(id: string, body: UpdateBody$7): Promise<DataResponse<FilterAttribute>>;
|
|
21060
21544
|
delete(id: string): Promise<void>;
|
|
21061
21545
|
reorder(body: ReorderBody): Promise<ListResponse<FilterAttribute>>;
|
|
@@ -21064,8 +21548,8 @@ declare class FilterAttributesResource {
|
|
|
21064
21548
|
|
|
21065
21549
|
type NavigationMenu = components['schemas']['NavigationMenu'];
|
|
21066
21550
|
type NavigationItem = components['schemas']['NavigationItem'];
|
|
21067
|
-
type ListParams$
|
|
21068
|
-
type CreateBody$
|
|
21551
|
+
type ListParams$a = NonNullable<operations['listNavigationMenus']['parameters']['query']>;
|
|
21552
|
+
type CreateBody$7 = NonNullable<operations['createNavigationMenu']['requestBody']>['content']['application/json'];
|
|
21069
21553
|
type UpdateBody$6 = NonNullable<operations['updateNavigationMenu']['requestBody']>['content']['application/json'];
|
|
21070
21554
|
type CreateItemBody = NonNullable<operations['addNavigationItem']['requestBody']>['content']['application/json'];
|
|
21071
21555
|
type UpdateItemBody = NonNullable<operations['updateNavigationItem']['requestBody']>['content']['application/json'];
|
|
@@ -21073,13 +21557,13 @@ type ReorderItemsBody = NonNullable<operations['reorderNavigationItems']['reques
|
|
|
21073
21557
|
declare class NavigationResource {
|
|
21074
21558
|
private client;
|
|
21075
21559
|
constructor(client: Hydra);
|
|
21076
|
-
list(params?: ListParams$
|
|
21077
|
-
iterate(params?: Omit<ListParams$
|
|
21078
|
-
toArray(params?: Omit<ListParams$
|
|
21560
|
+
list(params?: ListParams$a): Promise<ListResponse<NavigationMenu>>;
|
|
21561
|
+
iterate(params?: Omit<ListParams$a, 'cursor'>, options?: PaginateOptions): AsyncGenerator<NavigationMenu, void, undefined>;
|
|
21562
|
+
toArray(params?: Omit<ListParams$a, 'cursor'>, options?: PaginateOptions & {
|
|
21079
21563
|
limit?: number;
|
|
21080
21564
|
}): Promise<NavigationMenu[]>;
|
|
21081
21565
|
get(id: string): Promise<DataResponse<NavigationMenu>>;
|
|
21082
|
-
create(body: CreateBody$
|
|
21566
|
+
create(body: CreateBody$7, options?: ResourceRequestOptions): Promise<DataResponse<NavigationMenu>>;
|
|
21083
21567
|
update(id: string, body: UpdateBody$6): Promise<DataResponse<NavigationMenu>>;
|
|
21084
21568
|
delete(id: string): Promise<void>;
|
|
21085
21569
|
addItem(menuId: string, body: CreateItemBody): Promise<DataResponse<NavigationItem>>;
|
|
@@ -21089,26 +21573,26 @@ declare class NavigationResource {
|
|
|
21089
21573
|
}
|
|
21090
21574
|
|
|
21091
21575
|
type NotificationLog = components['schemas']['NotificationLog'];
|
|
21092
|
-
type ListParams$
|
|
21576
|
+
type ListParams$9 = NonNullable<operations['listNotifications']['parameters']['query']>;
|
|
21093
21577
|
declare class NotificationsResource {
|
|
21094
21578
|
private client;
|
|
21095
21579
|
constructor(client: Hydra);
|
|
21096
|
-
list(params?: ListParams$
|
|
21097
|
-
iterate(params?: Omit<ListParams$
|
|
21098
|
-
toArray(params?: Omit<ListParams$
|
|
21580
|
+
list(params?: ListParams$9): Promise<ListResponse<NotificationLog>>;
|
|
21581
|
+
iterate(params?: Omit<ListParams$9, 'cursor'>, options?: PaginateOptions): AsyncGenerator<NotificationLog, void, undefined>;
|
|
21582
|
+
toArray(params?: Omit<ListParams$9, 'cursor'>, options?: PaginateOptions & {
|
|
21099
21583
|
limit?: number;
|
|
21100
21584
|
}): Promise<NotificationLog[]>;
|
|
21101
21585
|
get(id: string): Promise<DataResponse<NotificationLog>>;
|
|
21102
21586
|
}
|
|
21103
21587
|
|
|
21104
21588
|
type CheckoutListItem = components['schemas']['CheckoutListItem'];
|
|
21105
|
-
type ListParams$
|
|
21589
|
+
type ListParams$8 = NonNullable<operations['listCheckouts']['parameters']['query']>;
|
|
21106
21590
|
declare class CheckoutsResource {
|
|
21107
21591
|
private client;
|
|
21108
21592
|
constructor(client: Hydra);
|
|
21109
|
-
list(params?: ListParams$
|
|
21110
|
-
iterate(params?: Omit<ListParams$
|
|
21111
|
-
toArray(params?: Omit<ListParams$
|
|
21593
|
+
list(params?: ListParams$8): Promise<ListResponse<CheckoutListItem>>;
|
|
21594
|
+
iterate(params?: Omit<ListParams$8, 'cursor'>, options?: PaginateOptions): AsyncGenerator<CheckoutListItem, void, undefined>;
|
|
21595
|
+
toArray(params?: Omit<ListParams$8, 'cursor'>, options?: PaginateOptions & {
|
|
21112
21596
|
limit?: number;
|
|
21113
21597
|
}): Promise<CheckoutListItem[]>;
|
|
21114
21598
|
}
|
|
@@ -21191,7 +21675,7 @@ declare class AnalyticsResource {
|
|
|
21191
21675
|
|
|
21192
21676
|
type CreditTransaction = NonNullable<operations['issueCustomerCredit']['responses']['201']['content']['application/json']['data']>;
|
|
21193
21677
|
type CreditBalance$1 = NonNullable<operations['getCustomerCredit']['responses']['200']['content']['application/json']['data']>;
|
|
21194
|
-
type ListParams$
|
|
21678
|
+
type ListParams$7 = NonNullable<operations['listCustomerCreditTransactions']['parameters']['query']>;
|
|
21195
21679
|
type IssueCreditBody = NonNullable<operations['issueCustomerCredit']['requestBody']>['content']['application/json'];
|
|
21196
21680
|
interface LoyaltySummary {
|
|
21197
21681
|
enabled: boolean;
|
|
@@ -21215,9 +21699,9 @@ declare class StoreCreditResource {
|
|
|
21215
21699
|
getBalance(customerId: string): Promise<DataResponse<CreditBalance$1>>;
|
|
21216
21700
|
getLoyalty(customerId: string): Promise<DataResponse<LoyaltySummary>>;
|
|
21217
21701
|
issue(customerId: string, body: IssueCreditBody, options?: ResourceRequestOptions): Promise<DataResponse<CreditTransaction>>;
|
|
21218
|
-
listTransactions(customerId: string, params?: ListParams$
|
|
21219
|
-
iterateTransactions(customerId: string, params?: Omit<ListParams$
|
|
21220
|
-
transactionsToArray(customerId: string, params?: Omit<ListParams$
|
|
21702
|
+
listTransactions(customerId: string, params?: ListParams$7): Promise<ListResponse<CreditTransaction>>;
|
|
21703
|
+
iterateTransactions(customerId: string, params?: Omit<ListParams$7, 'cursor'>, options?: PaginateOptions): AsyncGenerator<CreditTransaction, void, undefined>;
|
|
21704
|
+
transactionsToArray(customerId: string, params?: Omit<ListParams$7, 'cursor'>, options?: PaginateOptions & {
|
|
21221
21705
|
limit?: number;
|
|
21222
21706
|
}): Promise<CreditTransaction[]>;
|
|
21223
21707
|
}
|
|
@@ -21237,19 +21721,19 @@ declare class SearchResource {
|
|
|
21237
21721
|
}
|
|
21238
21722
|
|
|
21239
21723
|
type Channel = components['schemas']['Channel'];
|
|
21240
|
-
type ListParams$
|
|
21241
|
-
type CreateBody$
|
|
21724
|
+
type ListParams$6 = NonNullable<operations['listChannels']['parameters']['query']>;
|
|
21725
|
+
type CreateBody$6 = NonNullable<operations['createChannel']['requestBody']>['content']['application/json'];
|
|
21242
21726
|
type UpdateBody$5 = NonNullable<operations['updateChannel']['requestBody']>['content']['application/json'];
|
|
21243
21727
|
declare class ChannelsResource {
|
|
21244
21728
|
private client;
|
|
21245
21729
|
constructor(client: Hydra);
|
|
21246
|
-
list(params?: ListParams$
|
|
21247
|
-
iterate(params?: Omit<ListParams$
|
|
21248
|
-
toArray(params?: Omit<ListParams$
|
|
21730
|
+
list(params?: ListParams$6): Promise<ListResponse<Channel>>;
|
|
21731
|
+
iterate(params?: Omit<ListParams$6, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Channel, void, undefined>;
|
|
21732
|
+
toArray(params?: Omit<ListParams$6, 'cursor'>, options?: PaginateOptions & {
|
|
21249
21733
|
limit?: number;
|
|
21250
21734
|
}): Promise<Channel[]>;
|
|
21251
|
-
get(slug: string, params?: Pick<ListParams$
|
|
21252
|
-
create(body: CreateBody$
|
|
21735
|
+
get(slug: string, params?: Pick<ListParams$6, 'fields'>): Promise<DataResponse<Channel>>;
|
|
21736
|
+
create(body: CreateBody$6, options?: ResourceRequestOptions): Promise<DataResponse<Channel>>;
|
|
21253
21737
|
update(slug: string, body: UpdateBody$5): Promise<DataResponse<Channel>>;
|
|
21254
21738
|
archive(slug: string): Promise<void>;
|
|
21255
21739
|
setDefault(slug: string): Promise<DataResponse<Channel>>;
|
|
@@ -21257,20 +21741,20 @@ declare class ChannelsResource {
|
|
|
21257
21741
|
|
|
21258
21742
|
type Location = components['schemas']['Location'];
|
|
21259
21743
|
type TransferResult = components['schemas']['TransferResult'];
|
|
21260
|
-
type ListParams$
|
|
21261
|
-
type CreateBody$
|
|
21744
|
+
type ListParams$5 = NonNullable<operations['listLocations']['parameters']['query']>;
|
|
21745
|
+
type CreateBody$5 = NonNullable<operations['createLocation']['requestBody']>['content']['application/json'];
|
|
21262
21746
|
type UpdateBody$4 = NonNullable<operations['updateLocation']['requestBody']>['content']['application/json'];
|
|
21263
21747
|
type TransferBody = NonNullable<operations['transferLocationInventory']['requestBody']>['content']['application/json'];
|
|
21264
21748
|
declare class LocationsResource {
|
|
21265
21749
|
private client;
|
|
21266
21750
|
constructor(client: Hydra);
|
|
21267
|
-
list(params?: ListParams$
|
|
21268
|
-
iterate(params?: Omit<ListParams$
|
|
21269
|
-
toArray(params?: Omit<ListParams$
|
|
21751
|
+
list(params?: ListParams$5): Promise<ListResponse<Location>>;
|
|
21752
|
+
iterate(params?: Omit<ListParams$5, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Location, void, undefined>;
|
|
21753
|
+
toArray(params?: Omit<ListParams$5, 'cursor'>, options?: PaginateOptions & {
|
|
21270
21754
|
limit?: number;
|
|
21271
21755
|
}): Promise<Location[]>;
|
|
21272
21756
|
get(id: string): Promise<DataResponse<Location>>;
|
|
21273
|
-
create(body: CreateBody$
|
|
21757
|
+
create(body: CreateBody$5, options?: ResourceRequestOptions): Promise<DataResponse<Location>>;
|
|
21274
21758
|
update(id: string, body: UpdateBody$4): Promise<DataResponse<Location>>;
|
|
21275
21759
|
delete(id: string): Promise<void>;
|
|
21276
21760
|
setDefault(id: string): Promise<DataResponse<Location>>;
|
|
@@ -21337,20 +21821,20 @@ declare class IntegrationsResource {
|
|
|
21337
21821
|
}
|
|
21338
21822
|
|
|
21339
21823
|
type Post = components['schemas']['Post'];
|
|
21340
|
-
type ListParams$
|
|
21341
|
-
type CreateBody$
|
|
21824
|
+
type ListParams$4 = NonNullable<operations['listPosts']['parameters']['query']>;
|
|
21825
|
+
type CreateBody$4 = NonNullable<operations['createPost']['requestBody']>['content']['application/json'];
|
|
21342
21826
|
type UpdateBody$3 = NonNullable<operations['updatePost']['requestBody']>['content']['application/json'];
|
|
21343
21827
|
type AddCategoriesBody = NonNullable<operations['addPostCategories']['requestBody']>['content']['application/json'];
|
|
21344
21828
|
declare class PostsResource {
|
|
21345
21829
|
private client;
|
|
21346
21830
|
constructor(client: Hydra);
|
|
21347
|
-
list(params?: ListParams$
|
|
21348
|
-
iterate(params?: Omit<ListParams$
|
|
21349
|
-
toArray(params?: Omit<ListParams$
|
|
21831
|
+
list(params?: ListParams$4): Promise<ListResponse<Post>>;
|
|
21832
|
+
iterate(params?: Omit<ListParams$4, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Post, void, undefined>;
|
|
21833
|
+
toArray(params?: Omit<ListParams$4, 'cursor'>, options?: PaginateOptions & {
|
|
21350
21834
|
limit?: number;
|
|
21351
21835
|
}): Promise<Post[]>;
|
|
21352
|
-
get(id: string, params?: Pick<ListParams$
|
|
21353
|
-
create(body: CreateBody$
|
|
21836
|
+
get(id: string, params?: Pick<ListParams$4, 'expand' | 'fields'>): Promise<DataResponse<Post>>;
|
|
21837
|
+
create(body: CreateBody$4, options?: ResourceRequestOptions): Promise<DataResponse<Post>>;
|
|
21354
21838
|
update(id: string, body: UpdateBody$3): Promise<DataResponse<Post>>;
|
|
21355
21839
|
delete(id: string): Promise<void>;
|
|
21356
21840
|
addCategories(postId: string, body: AddCategoriesBody): Promise<DataResponse<Post>>;
|
|
@@ -21358,19 +21842,19 @@ declare class PostsResource {
|
|
|
21358
21842
|
}
|
|
21359
21843
|
|
|
21360
21844
|
type ContentCategory = components['schemas']['ContentCategory'];
|
|
21361
|
-
type ListParams$
|
|
21362
|
-
type CreateBody$
|
|
21845
|
+
type ListParams$3 = NonNullable<operations['listContentCategories']['parameters']['query']>;
|
|
21846
|
+
type CreateBody$3 = NonNullable<operations['createContentCategory']['requestBody']>['content']['application/json'];
|
|
21363
21847
|
type UpdateBody$2 = NonNullable<operations['updateContentCategory']['requestBody']>['content']['application/json'];
|
|
21364
21848
|
declare class ContentCategoriesResource {
|
|
21365
21849
|
private client;
|
|
21366
21850
|
constructor(client: Hydra);
|
|
21367
|
-
list(params?: ListParams$
|
|
21368
|
-
iterate(params?: Omit<ListParams$
|
|
21369
|
-
toArray(params?: Omit<ListParams$
|
|
21851
|
+
list(params?: ListParams$3): Promise<ListResponse<ContentCategory>>;
|
|
21852
|
+
iterate(params?: Omit<ListParams$3, 'cursor'>, options?: PaginateOptions): AsyncGenerator<ContentCategory, void, undefined>;
|
|
21853
|
+
toArray(params?: Omit<ListParams$3, 'cursor'>, options?: PaginateOptions & {
|
|
21370
21854
|
limit?: number;
|
|
21371
21855
|
}): Promise<ContentCategory[]>;
|
|
21372
21856
|
get(id: string): Promise<DataResponse<ContentCategory>>;
|
|
21373
|
-
create(body: CreateBody$
|
|
21857
|
+
create(body: CreateBody$3, options?: ResourceRequestOptions): Promise<DataResponse<ContentCategory>>;
|
|
21374
21858
|
update(id: string, body: UpdateBody$2): Promise<DataResponse<ContentCategory>>;
|
|
21375
21859
|
delete(id: string): Promise<void>;
|
|
21376
21860
|
listPosts(categoryId: string, params?: {
|
|
@@ -21407,20 +21891,20 @@ interface CategoryPost {
|
|
|
21407
21891
|
|
|
21408
21892
|
type MembershipPlan = components['schemas']['MembershipPlan'];
|
|
21409
21893
|
type CustomerMembership = components['schemas']['CustomerMembership'];
|
|
21410
|
-
type ListParams$
|
|
21411
|
-
type CreateBody$
|
|
21894
|
+
type ListParams$2 = NonNullable<operations['listMembershipPlans']['parameters']['query']>;
|
|
21895
|
+
type CreateBody$2 = NonNullable<operations['createMembershipPlan']['requestBody']>['content']['application/json'];
|
|
21412
21896
|
type UpdateBody$1 = NonNullable<operations['updateMembershipPlan']['requestBody']>['content']['application/json'];
|
|
21413
21897
|
type SubscriptionListParams = NonNullable<operations['listMembershipSubscriptions']['parameters']['query']>;
|
|
21414
21898
|
declare class MembershipPlansResource {
|
|
21415
21899
|
private client;
|
|
21416
21900
|
constructor(client: Hydra);
|
|
21417
|
-
list(params?: ListParams$
|
|
21418
|
-
iterate(params?: Omit<ListParams$
|
|
21419
|
-
toArray(params?: Omit<ListParams$
|
|
21901
|
+
list(params?: ListParams$2): Promise<ListResponse<MembershipPlan>>;
|
|
21902
|
+
iterate(params?: Omit<ListParams$2, 'cursor'>, options?: PaginateOptions): AsyncGenerator<MembershipPlan, void, undefined>;
|
|
21903
|
+
toArray(params?: Omit<ListParams$2, 'cursor'>, options?: PaginateOptions & {
|
|
21420
21904
|
limit?: number;
|
|
21421
21905
|
}): Promise<MembershipPlan[]>;
|
|
21422
21906
|
get(id: string): Promise<DataResponse<MembershipPlan>>;
|
|
21423
|
-
create(body: CreateBody$
|
|
21907
|
+
create(body: CreateBody$2, options?: ResourceRequestOptions): Promise<DataResponse<MembershipPlan>>;
|
|
21424
21908
|
update(id: string, body: UpdateBody$1): Promise<DataResponse<MembershipPlan>>;
|
|
21425
21909
|
delete(id: string): Promise<void>;
|
|
21426
21910
|
listSubscriptions(params?: SubscriptionListParams): Promise<ListResponse<CustomerMembership>>;
|
|
@@ -21473,19 +21957,19 @@ declare class BookingsResource {
|
|
|
21473
21957
|
|
|
21474
21958
|
type Lookbook = components['schemas']['Lookbook'];
|
|
21475
21959
|
type LookbookTag = components['schemas']['LookbookTag'];
|
|
21476
|
-
type ListParams = NonNullable<operations['listLookbooks']['parameters']['query']>;
|
|
21477
|
-
type CreateBody = NonNullable<operations['createLookbook']['requestBody']>['content']['application/json'];
|
|
21960
|
+
type ListParams$1 = NonNullable<operations['listLookbooks']['parameters']['query']>;
|
|
21961
|
+
type CreateBody$1 = NonNullable<operations['createLookbook']['requestBody']>['content']['application/json'];
|
|
21478
21962
|
type UpdateBody = NonNullable<operations['updateLookbook']['requestBody']>['content']['application/json'];
|
|
21479
21963
|
declare class LookbooksResource {
|
|
21480
21964
|
private client;
|
|
21481
21965
|
constructor(client: Hydra);
|
|
21482
|
-
list(params?: ListParams): Promise<ListResponse<Lookbook>>;
|
|
21483
|
-
iterate(params?: Omit<ListParams, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Lookbook, void, undefined>;
|
|
21484
|
-
toArray(params?: Omit<ListParams, 'cursor'>, options?: PaginateOptions & {
|
|
21966
|
+
list(params?: ListParams$1): Promise<ListResponse<Lookbook>>;
|
|
21967
|
+
iterate(params?: Omit<ListParams$1, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Lookbook, void, undefined>;
|
|
21968
|
+
toArray(params?: Omit<ListParams$1, 'cursor'>, options?: PaginateOptions & {
|
|
21485
21969
|
limit?: number;
|
|
21486
21970
|
}): Promise<Lookbook[]>;
|
|
21487
|
-
get(id: string, params?: Pick<ListParams, 'fields'>): Promise<DataResponse<Lookbook>>;
|
|
21488
|
-
create(body: CreateBody, options?: ResourceRequestOptions): Promise<DataResponse<Lookbook>>;
|
|
21971
|
+
get(id: string, params?: Pick<ListParams$1, 'fields'>): Promise<DataResponse<Lookbook>>;
|
|
21972
|
+
create(body: CreateBody$1, options?: ResourceRequestOptions): Promise<DataResponse<Lookbook>>;
|
|
21489
21973
|
update(id: string, body: UpdateBody): Promise<DataResponse<Lookbook>>;
|
|
21490
21974
|
delete(id: string): Promise<void>;
|
|
21491
21975
|
/** Upload or replace the primary (BW) image for a lookbook. */
|
|
@@ -21627,6 +22111,52 @@ declare class GiftCardsResource {
|
|
|
21627
22111
|
lookup(code: string): Promise<DataResponse<GiftCardLookup>>;
|
|
21628
22112
|
}
|
|
21629
22113
|
|
|
22114
|
+
type FormDefinition = components['schemas']['FormDefinition'];
|
|
22115
|
+
type FormField = components['schemas']['FormField'];
|
|
22116
|
+
type FormPublic = components['schemas']['FormPublic'];
|
|
22117
|
+
type CreateFormBody = NonNullable<operations['createForm']['requestBody']>['content']['application/json'];
|
|
22118
|
+
type UpdateFormBody = NonNullable<operations['updateForm']['requestBody']>['content']['application/json'];
|
|
22119
|
+
type CreateFieldBody = NonNullable<operations['createFormField']['requestBody']>['content']['application/json'];
|
|
22120
|
+
type UpdateFieldBody = NonNullable<operations['updateFormField']['requestBody']>['content']['application/json'];
|
|
22121
|
+
declare class FormsResource {
|
|
22122
|
+
private client;
|
|
22123
|
+
constructor(client: Hydra);
|
|
22124
|
+
/** List all form definitions (including archived). Secret key required. */
|
|
22125
|
+
list(): Promise<{
|
|
22126
|
+
data: FormDefinition[];
|
|
22127
|
+
}>;
|
|
22128
|
+
/** Get a single form definition by slug. Secret key required. */
|
|
22129
|
+
get(slug: string): Promise<DataResponse<FormDefinition>>;
|
|
22130
|
+
/** Create a new form definition. Secret key required. */
|
|
22131
|
+
create(body: CreateFormBody, options?: ResourceRequestOptions): Promise<DataResponse<FormDefinition>>;
|
|
22132
|
+
/** Update a form definition (title, slug, settings, archived). Secret key required. */
|
|
22133
|
+
update(slug: string, body: UpdateFormBody): Promise<DataResponse<FormDefinition>>;
|
|
22134
|
+
/** Get a form's active fields and settings for public rendering. Publishable key accepted. */
|
|
22135
|
+
getPublic(slug: string): Promise<DataResponse<FormPublic>>;
|
|
22136
|
+
/** Add a field to a form. Secret key required. */
|
|
22137
|
+
createField(formSlug: string, body: CreateFieldBody, options?: ResourceRequestOptions): Promise<DataResponse<FormField>>;
|
|
22138
|
+
/** Update a field within a form. Secret key required. */
|
|
22139
|
+
updateField(formSlug: string, fieldSlug: string, body: UpdateFieldBody): Promise<DataResponse<FormField>>;
|
|
22140
|
+
}
|
|
22141
|
+
|
|
22142
|
+
type FormSubmission = components['schemas']['FormSubmission'];
|
|
22143
|
+
type ListParams = NonNullable<operations['listFormSubmissions']['parameters']['query']>;
|
|
22144
|
+
type CreateBody = NonNullable<operations['createFormSubmission']['requestBody']>['content']['application/json'];
|
|
22145
|
+
declare class FormSubmissionsResource {
|
|
22146
|
+
private client;
|
|
22147
|
+
constructor(client: Hydra);
|
|
22148
|
+
/** Submit form data. Publishable key accepted. */
|
|
22149
|
+
create(body: CreateBody, options?: ResourceRequestOptions): Promise<DataResponse<FormSubmission>>;
|
|
22150
|
+
/** List form submissions with optional form slug filter. Secret key required. */
|
|
22151
|
+
list(params?: ListParams): Promise<ListResponse<FormSubmission>>;
|
|
22152
|
+
iterate(params?: Omit<ListParams, 'cursor'>, options?: PaginateOptions): AsyncGenerator<FormSubmission, void, undefined>;
|
|
22153
|
+
toArray(params?: Omit<ListParams, 'cursor'>, options?: PaginateOptions & {
|
|
22154
|
+
limit?: number;
|
|
22155
|
+
}): Promise<FormSubmission[]>;
|
|
22156
|
+
/** Get a single form submission by ID. Secret key required. */
|
|
22157
|
+
get(id: string): Promise<DataResponse<FormSubmission>>;
|
|
22158
|
+
}
|
|
22159
|
+
|
|
21630
22160
|
interface AuthCustomer {
|
|
21631
22161
|
id: string;
|
|
21632
22162
|
email: string;
|
|
@@ -21867,6 +22397,8 @@ declare class Hydra {
|
|
|
21867
22397
|
readonly giftCards: GiftCardsResource;
|
|
21868
22398
|
readonly auth: AuthResource;
|
|
21869
22399
|
readonly me: MeResource;
|
|
22400
|
+
readonly forms: FormsResource;
|
|
22401
|
+
readonly formSubmissions: FormSubmissionsResource;
|
|
21870
22402
|
constructor(config: HydraConfig);
|
|
21871
22403
|
request<T>(method: string, path: string, options?: RequestOptions): Promise<T>;
|
|
21872
22404
|
/** Multipart upload for file-based endpoints (e.g. images) */
|
|
@@ -21948,4 +22480,4 @@ declare class HydraIdempotencyError extends HydraError {
|
|
|
21948
22480
|
constructor(body: HydraErrorBody, headers: Headers);
|
|
21949
22481
|
}
|
|
21950
22482
|
|
|
21951
|
-
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 AuthCustomer, AuthResource, type AvailabilityOverride$1 as AvailabilityOverride, BookingsResource, type Cart$1 as Cart, type CartItem, CartResource, type ChangePasswordBody, 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 CreateGiftCardBody, type CreditBalance, 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, type GiftCard, type GiftCardConvertResult, type CreditDebitBody as GiftCardCreditDebitBody, type GiftCardLookup, type GiftCardTransaction, GiftCardsResource, 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 ListGiftCardTransactionsParams, type ListGiftCardsParams, type ListResponse, type Location$1 as Location, LocationsResource, type LoginBody, type Lookbook$1 as Lookbook, type LookbookTag$1 as LookbookTag, LookbooksResource, type LoyaltySummary, type CreateAddressBody as MeCreateAddressBody, type MeOrdersParams, MeResource, type UpdateAddressBody as MeUpdateAddressBody, type MembershipPlan$1 as MembershipPlan, MembershipPlansResource, type MessageResponse, MetafieldsResource, type NotificationLog$1 as NotificationLog, NotificationsResource, type Order$2 as Order, OrdersResource, type PaginateOptions, type Pagination, type PosAnalyticsDashboard, 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 RegisterBody, 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 TokenResponse, type UpdateGiftCardBody, type UpdateProfileBody, type Variant$2 as Variant, type VariantPrice$1 as VariantPrice, VariantsResource, type Webhook$1 as Webhook, WebhooksResource, paginate, toArray };
|
|
22483
|
+
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 AuthCustomer, AuthResource, type AvailabilityOverride$1 as AvailabilityOverride, BookingsResource, type Cart$1 as Cart, type CartItem, CartResource, type ChangePasswordBody, 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 CreateGiftCardBody, type CreditBalance, 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 FormDefinition$1 as FormDefinition, type FormField$1 as FormField, type FormFieldPublic, type FormPublic$1 as FormPublic, type FormSubmission$1 as FormSubmission, FormSubmissionsResource, FormsResource, type Fulfillment$1 as Fulfillment, type FulfillmentOrder$2 as FulfillmentOrder, FulfillmentOrdersResource, FulfillmentsResource, type GenerateVariantsResult$1 as GenerateVariantsResult, type GiftCard, type GiftCardConvertResult, type CreditDebitBody as GiftCardCreditDebitBody, type GiftCardLookup, type GiftCardTransaction, GiftCardsResource, 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 ListGiftCardTransactionsParams, type ListGiftCardsParams, type ListResponse, type Location$1 as Location, LocationsResource, type LoginBody, type Lookbook$1 as Lookbook, type LookbookTag$1 as LookbookTag, LookbooksResource, type LoyaltySummary, type CreateAddressBody as MeCreateAddressBody, type MeOrdersParams, MeResource, type UpdateAddressBody as MeUpdateAddressBody, type MembershipPlan$1 as MembershipPlan, MembershipPlansResource, type MessageResponse, MetafieldsResource, type NotificationLog$1 as NotificationLog, NotificationsResource, type Order$2 as Order, OrdersResource, type PaginateOptions, type Pagination, type PosAnalyticsDashboard, 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 RegisterBody, 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 TokenResponse, type UpdateGiftCardBody, type UpdateProfileBody, type Variant$2 as Variant, type VariantPrice$1 as VariantPrice, VariantsResource, type Webhook$1 as Webhook, WebhooksResource, paginate, toArray };
|