@wix/auto_sdk_ecom_draft-orders 1.0.73 → 1.0.75
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/build/cjs/index.js +21 -21
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +69 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +68 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +21 -21
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +69 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +68 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +21 -21
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +69 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +68 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +21 -21
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +69 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +68 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -4463,6 +4463,10 @@ type AddLineItemsToDraftOrderApplicationErrors = {
|
|
|
4463
4463
|
code?: 'DUPLICATED_EXTERNAL_LINE_ITEM_ID';
|
|
4464
4464
|
description?: string;
|
|
4465
4465
|
data?: Record<string, any>;
|
|
4466
|
+
} | {
|
|
4467
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4468
|
+
description?: string;
|
|
4469
|
+
data?: Record<string, any>;
|
|
4466
4470
|
};
|
|
4467
4471
|
/** @docsIgnore */
|
|
4468
4472
|
type UpdateLineItemsApplicationErrors = {
|
|
@@ -4489,6 +4493,10 @@ type UpdateLineItemsApplicationErrors = {
|
|
|
4489
4493
|
code?: 'UPDATING_LINE_ITEM_WITH_LOCATIONS';
|
|
4490
4494
|
description?: string;
|
|
4491
4495
|
data?: Record<string, any>;
|
|
4496
|
+
} | {
|
|
4497
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4498
|
+
description?: string;
|
|
4499
|
+
data?: Record<string, any>;
|
|
4492
4500
|
};
|
|
4493
4501
|
/** @docsIgnore */
|
|
4494
4502
|
type SetDepositApplicationErrors = {
|
|
@@ -4503,6 +4511,10 @@ type SetDepositApplicationErrors = {
|
|
|
4503
4511
|
code?: 'SET_DEPOSIT_NOT_ALLOWED_IN_EDIT_MODE';
|
|
4504
4512
|
description?: string;
|
|
4505
4513
|
data?: Record<string, any>;
|
|
4514
|
+
} | {
|
|
4515
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4516
|
+
description?: string;
|
|
4517
|
+
data?: Record<string, any>;
|
|
4506
4518
|
};
|
|
4507
4519
|
/** @docsIgnore */
|
|
4508
4520
|
type SetDiscountsApplicationErrors = {
|
|
@@ -4517,6 +4529,10 @@ type SetDiscountsApplicationErrors = {
|
|
|
4517
4529
|
code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
|
|
4518
4530
|
description?: string;
|
|
4519
4531
|
data?: Record<string, any>;
|
|
4532
|
+
} | {
|
|
4533
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4534
|
+
description?: string;
|
|
4535
|
+
data?: Record<string, any>;
|
|
4520
4536
|
};
|
|
4521
4537
|
/** @docsIgnore */
|
|
4522
4538
|
type CreateCustomDiscountsApplicationErrors = {
|
|
@@ -4539,6 +4555,10 @@ type CreateCustomDiscountsApplicationErrors = {
|
|
|
4539
4555
|
code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
|
|
4540
4556
|
description?: string;
|
|
4541
4557
|
data?: Record<string, any>;
|
|
4558
|
+
} | {
|
|
4559
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4560
|
+
description?: string;
|
|
4561
|
+
data?: Record<string, any>;
|
|
4542
4562
|
};
|
|
4543
4563
|
/** @docsIgnore */
|
|
4544
4564
|
type DeleteCustomDiscountsApplicationErrors = {
|
|
@@ -4553,12 +4573,20 @@ type DeleteCustomDiscountsApplicationErrors = {
|
|
|
4553
4573
|
code?: 'DISCOUNT_REMOVE_NOT_SUPPORTED';
|
|
4554
4574
|
description?: string;
|
|
4555
4575
|
data?: Record<string, any>;
|
|
4576
|
+
} | {
|
|
4577
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4578
|
+
description?: string;
|
|
4579
|
+
data?: Record<string, any>;
|
|
4556
4580
|
};
|
|
4557
4581
|
/** @docsIgnore */
|
|
4558
4582
|
type SetAdditionalFeesApplicationErrors = {
|
|
4559
4583
|
code?: 'ADDITIONAL_FEE_NOT_FOUND';
|
|
4560
4584
|
description?: string;
|
|
4561
4585
|
data?: Record<string, any>;
|
|
4586
|
+
} | {
|
|
4587
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4588
|
+
description?: string;
|
|
4589
|
+
data?: Record<string, any>;
|
|
4562
4590
|
};
|
|
4563
4591
|
/** @docsIgnore */
|
|
4564
4592
|
type CreateCustomAdditionalFeesApplicationErrors = {
|
|
@@ -4569,6 +4597,10 @@ type CreateCustomAdditionalFeesApplicationErrors = {
|
|
|
4569
4597
|
code?: 'LINE_ITEM_NOT_FOUND';
|
|
4570
4598
|
description?: string;
|
|
4571
4599
|
data?: Record<string, any>;
|
|
4600
|
+
} | {
|
|
4601
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4602
|
+
description?: string;
|
|
4603
|
+
data?: Record<string, any>;
|
|
4572
4604
|
};
|
|
4573
4605
|
/** @docsIgnore */
|
|
4574
4606
|
type DeleteCustomAdditionalFeesApplicationErrors = {
|
|
@@ -4583,30 +4615,50 @@ type DeleteCustomAdditionalFeesApplicationErrors = {
|
|
|
4583
4615
|
code?: 'ADDITIONAL_FEE_REMOVE_NOT_SUPPORTED';
|
|
4584
4616
|
description?: string;
|
|
4585
4617
|
data?: Record<string, any>;
|
|
4618
|
+
} | {
|
|
4619
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4620
|
+
description?: string;
|
|
4621
|
+
data?: Record<string, any>;
|
|
4586
4622
|
};
|
|
4587
4623
|
/** @docsIgnore */
|
|
4588
4624
|
type SetShippingInfoApplicationErrors = {
|
|
4589
4625
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4590
4626
|
description?: string;
|
|
4591
4627
|
data?: Record<string, any>;
|
|
4628
|
+
} | {
|
|
4629
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4630
|
+
description?: string;
|
|
4631
|
+
data?: Record<string, any>;
|
|
4592
4632
|
};
|
|
4593
4633
|
/** @docsIgnore */
|
|
4594
4634
|
type SetBuyerInfoApplicationErrors = {
|
|
4595
4635
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4596
4636
|
description?: string;
|
|
4597
4637
|
data?: Record<string, any>;
|
|
4638
|
+
} | {
|
|
4639
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4640
|
+
description?: string;
|
|
4641
|
+
data?: Record<string, any>;
|
|
4598
4642
|
};
|
|
4599
4643
|
/** @docsIgnore */
|
|
4600
4644
|
type SetRecipientInfoApplicationErrors = {
|
|
4601
4645
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4602
4646
|
description?: string;
|
|
4603
4647
|
data?: Record<string, any>;
|
|
4648
|
+
} | {
|
|
4649
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4650
|
+
description?: string;
|
|
4651
|
+
data?: Record<string, any>;
|
|
4604
4652
|
};
|
|
4605
4653
|
/** @docsIgnore */
|
|
4606
4654
|
type SetBillingInfoApplicationErrors = {
|
|
4607
4655
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4608
4656
|
description?: string;
|
|
4609
4657
|
data?: Record<string, any>;
|
|
4658
|
+
} | {
|
|
4659
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4660
|
+
description?: string;
|
|
4661
|
+
data?: Record<string, any>;
|
|
4610
4662
|
};
|
|
4611
4663
|
/** @docsIgnore */
|
|
4612
4664
|
type GetDraftOrderApplicationErrors = {
|
|
@@ -4623,6 +4675,10 @@ type CommitDraftOrderApplicationErrors = {
|
|
|
4623
4675
|
code?: 'DRAFT_ORDER_COMMIT_FAILED_VALIDATIONS';
|
|
4624
4676
|
description?: string;
|
|
4625
4677
|
data?: Record<string, any>;
|
|
4678
|
+
} | {
|
|
4679
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4680
|
+
description?: string;
|
|
4681
|
+
data?: Record<string, any>;
|
|
4626
4682
|
};
|
|
4627
4683
|
/** @docsIgnore */
|
|
4628
4684
|
type CreateOrderFromDraftApplicationErrors = {
|
|
@@ -4649,12 +4705,20 @@ type UpdateExtendedFieldsApplicationErrors = {
|
|
|
4649
4705
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4650
4706
|
description?: string;
|
|
4651
4707
|
data?: Record<string, any>;
|
|
4708
|
+
} | {
|
|
4709
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4710
|
+
description?: string;
|
|
4711
|
+
data?: Record<string, any>;
|
|
4652
4712
|
};
|
|
4653
4713
|
/** @docsIgnore */
|
|
4654
4714
|
type SetTaxExemptionApplicationErrors = {
|
|
4655
4715
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4656
4716
|
description?: string;
|
|
4657
4717
|
data?: Record<string, any>;
|
|
4718
|
+
} | {
|
|
4719
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4720
|
+
description?: string;
|
|
4721
|
+
data?: Record<string, any>;
|
|
4658
4722
|
};
|
|
4659
4723
|
/** @docsIgnore */
|
|
4660
4724
|
type SetBusinessLocationApplicationErrors = {
|
|
@@ -4665,6 +4729,10 @@ type SetBusinessLocationApplicationErrors = {
|
|
|
4665
4729
|
code?: 'BUSINESS_LOCATION_CANNOT_BE_EDITED';
|
|
4666
4730
|
description?: string;
|
|
4667
4731
|
data?: Record<string, any>;
|
|
4732
|
+
} | {
|
|
4733
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4734
|
+
description?: string;
|
|
4735
|
+
data?: Record<string, any>;
|
|
4668
4736
|
};
|
|
4669
4737
|
interface BaseEventMetadata {
|
|
4670
4738
|
/**
|
|
@@ -4732,6 +4800,7 @@ interface DraftOrderCreatedEnvelope {
|
|
|
4732
4800
|
*/
|
|
4733
4801
|
declare function onDraftOrderCreated(handler: (event: DraftOrderCreatedEnvelope) => void | Promise<void>): void;
|
|
4734
4802
|
interface DraftOrderDeletedEnvelope {
|
|
4803
|
+
entity: DraftOrder;
|
|
4735
4804
|
metadata: EventMetadata;
|
|
4736
4805
|
}
|
|
4737
4806
|
/**
|