@wix/auto_sdk_ecom_draft-orders 1.0.53 → 1.0.55
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.d.ts +3 -3
- package/build/cjs/index.js +9 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +63 -0
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +9 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +63 -0
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.js +9 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +63 -0
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.mjs +9 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +63 -0
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -317,6 +317,12 @@ interface OrderLineItem {
|
|
|
317
317
|
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
318
318
|
*/
|
|
319
319
|
extendedFields?: ExtendedFields;
|
|
320
|
+
/**
|
|
321
|
+
* Modifier groups that were added to the item.
|
|
322
|
+
* @readonly
|
|
323
|
+
* @maxSize 10
|
|
324
|
+
*/
|
|
325
|
+
modifierGroups?: ModifierGroup[];
|
|
320
326
|
}
|
|
321
327
|
interface ProductName {
|
|
322
328
|
/**
|
|
@@ -736,6 +742,63 @@ interface ExtendedFields {
|
|
|
736
742
|
*/
|
|
737
743
|
namespaces?: Record<string, Record<string, any>>;
|
|
738
744
|
}
|
|
745
|
+
interface ModifierGroup {
|
|
746
|
+
/**
|
|
747
|
+
* Modifier group ID.
|
|
748
|
+
* @minLength 1
|
|
749
|
+
* @maxLength 36
|
|
750
|
+
*/
|
|
751
|
+
id?: string;
|
|
752
|
+
/** Modifier group name. */
|
|
753
|
+
name?: TranslatableString;
|
|
754
|
+
/**
|
|
755
|
+
* List of modifiers in this group.
|
|
756
|
+
* @minSize 1
|
|
757
|
+
* @maxSize 10
|
|
758
|
+
*/
|
|
759
|
+
modifiers?: ItemModifier[];
|
|
760
|
+
}
|
|
761
|
+
interface TranslatableString {
|
|
762
|
+
/**
|
|
763
|
+
* __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
764
|
+
*
|
|
765
|
+
* Min: 1 character.
|
|
766
|
+
* Max: 200 characters.
|
|
767
|
+
* @minLength 1
|
|
768
|
+
* @maxLength 200
|
|
769
|
+
*/
|
|
770
|
+
original?: string;
|
|
771
|
+
/**
|
|
772
|
+
* String translated into the buyer's language.
|
|
773
|
+
*
|
|
774
|
+
* Min: 1 character.
|
|
775
|
+
* Max: 400 characters.
|
|
776
|
+
* Default: Same as `original`.
|
|
777
|
+
* @minLength 1
|
|
778
|
+
* @maxLength 400
|
|
779
|
+
*/
|
|
780
|
+
translated?: string | null;
|
|
781
|
+
}
|
|
782
|
+
interface ItemModifier {
|
|
783
|
+
/**
|
|
784
|
+
* Modifier ID.
|
|
785
|
+
* @minLength 1
|
|
786
|
+
* @maxLength 36
|
|
787
|
+
*/
|
|
788
|
+
id?: string;
|
|
789
|
+
/**
|
|
790
|
+
* The quantity of this modifier.
|
|
791
|
+
* @min 1
|
|
792
|
+
* @max 100000
|
|
793
|
+
*/
|
|
794
|
+
quantity?: number | null;
|
|
795
|
+
/** Primary display label for the modifier. */
|
|
796
|
+
label?: TranslatableString;
|
|
797
|
+
/** Additional details. */
|
|
798
|
+
details?: TranslatableString;
|
|
799
|
+
/** The price of the modifier. */
|
|
800
|
+
price?: Price;
|
|
801
|
+
}
|
|
739
802
|
interface ItemChangedDetails {
|
|
740
803
|
/**
|
|
741
804
|
* Line item quantity before change.
|
|
@@ -320,14 +320,14 @@ declare const setBusinessLocation: MaybeContext<BuildRESTFunction<typeof setBusi
|
|
|
320
320
|
/**
|
|
321
321
|
* Triggered when a draft order is created.
|
|
322
322
|
*/
|
|
323
|
-
declare const onDraftOrderCreated: BuildEventDefinition<typeof onDraftOrderCreated$1
|
|
323
|
+
declare const onDraftOrderCreated: BuildEventDefinition<typeof onDraftOrderCreated$1> & typeof onDraftOrderCreated$1;
|
|
324
324
|
/**
|
|
325
325
|
* Triggered when a draft order is deleted.
|
|
326
326
|
*/
|
|
327
|
-
declare const onDraftOrderDeleted: BuildEventDefinition<typeof onDraftOrderDeleted$1
|
|
327
|
+
declare const onDraftOrderDeleted: BuildEventDefinition<typeof onDraftOrderDeleted$1> & typeof onDraftOrderDeleted$1;
|
|
328
328
|
/**
|
|
329
329
|
* Triggered when a draft order is updated.
|
|
330
330
|
*/
|
|
331
|
-
declare const onDraftOrderUpdated: BuildEventDefinition<typeof onDraftOrderUpdated$1
|
|
331
|
+
declare const onDraftOrderUpdated: BuildEventDefinition<typeof onDraftOrderUpdated$1> & typeof onDraftOrderUpdated$1;
|
|
332
332
|
|
|
333
333
|
export { AddLineItemsToDraftOrderApplicationErrors, AddLineItemsToDraftOrderOptions, AddLineItemsToDraftOrderResponse, CommitDraftOrderApplicationErrors, CommitDraftOrderOptions, CommitDraftOrderResponse, CreateCustomAdditionalFeesApplicationErrors, CreateCustomAdditionalFeesOptions, CreateCustomAdditionalFeesResponse, CreateCustomDiscountsApplicationErrors, CreateCustomDiscountsOptions, CreateCustomDiscountsResponse, CreateDraftOrderApplicationErrors, CreateDraftOrderResponse, CreateEmptyDraftOrderApplicationErrors, CreateEmptyDraftOrderResponse, CreateOrderFromDraftApplicationErrors, CreateOrderFromDraftOptions, CreateOrderFromDraftResponse, DeleteCustomAdditionalFeesApplicationErrors, DeleteCustomAdditionalFeesResponse, DeleteCustomDiscountsApplicationErrors, DeleteCustomDiscountsResponse, DeleteDraftOrderApplicationErrors, DraftOrderCreatedEnvelope, DraftOrderDeletedEnvelope, DraftOrderUpdatedEnvelope, DraftOrdersQueryBuilder, GetDraftOrderApplicationErrors, GetDraftOrderResponse, GetOrderDraftabilityStatusResponse, IdAndApplied, LineItemChangeDetails, SetAdditionalFeesApplicationErrors, SetAdditionalFeesResponse, SetBillingInfoApplicationErrors, SetBillingInfoOptions, SetBillingInfoResponse, SetBusinessLocationApplicationErrors, SetBusinessLocationOptions, SetBusinessLocationResponse, SetBuyerInfoApplicationErrors, SetBuyerInfoOptions, SetBuyerInfoResponse, SetDiscountsApplicationErrors, SetDiscountsResponse, SetRecipientInfoApplicationErrors, SetRecipientInfoOptions, SetRecipientInfoResponse, SetShippingInfoApplicationErrors, SetShippingInfoOptions, SetShippingInfoResponse, SetTaxExemptionApplicationErrors, SetTaxExemptionOptions, SetTaxExemptionResponse, UpdateExtendedFieldsApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateLineItemsApplicationErrors, UpdateLineItemsResponse, addLineItemsToDraftOrder, commitDraftOrder, createCustomAdditionalFees, createCustomDiscounts, createDraftOrder, createEmptyDraftOrder, createOrderFromDraft, deleteCustomAdditionalFees, deleteCustomDiscounts, deleteDraftOrder, getDraftOrder, getOrderDraftabilityStatus, onDraftOrderCreated, onDraftOrderDeleted, onDraftOrderUpdated, queryDraftOrders, setAdditionalFees, setBillingInfo, setBusinessLocation, setBuyerInfo, setDiscounts, setRecipientInfo, setShippingInfo, setTaxExemption, updateExtendedFields, updateLineItems };
|
|
@@ -5342,9 +5342,15 @@ var queryDraftOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModul
|
|
|
5342
5342
|
var updateExtendedFields4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExtendedFields3);
|
|
5343
5343
|
var setTaxExemption4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setTaxExemption3);
|
|
5344
5344
|
var setBusinessLocation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setBusinessLocation3);
|
|
5345
|
-
var onDraftOrderCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
5346
|
-
|
|
5347
|
-
|
|
5345
|
+
var onDraftOrderCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
5346
|
+
onDraftOrderCreated
|
|
5347
|
+
);
|
|
5348
|
+
var onDraftOrderDeleted2 = (0, import_event_definition_modules.createEventModule)(
|
|
5349
|
+
onDraftOrderDeleted
|
|
5350
|
+
);
|
|
5351
|
+
var onDraftOrderUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
5352
|
+
onDraftOrderUpdated
|
|
5353
|
+
);
|
|
5348
5354
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5349
5355
|
0 && (module.exports = {
|
|
5350
5356
|
ActivityType,
|