@wix/auto_sdk_ecom_delivery-profile 1.0.292 → 1.0.293

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/ecom-v1-delivery-profile-delivery-profile.universal.ts","../../../src/ecom-v1-delivery-profile-delivery-profile.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixEcomV1DeliveryProfile from './ecom-v1-delivery-profile-delivery-profile.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/**\n * A delivery profile is a collection of delivery regions that define shipping options for products.\n * Each profile contains delivery regions, which specify where products can be shipped and which carriers can deliver to those destinations.\n */\nexport interface DeliveryProfile {\n /**\n * Delivery profile ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Delivery profile name.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /**\n * Whether this is the default delivery profile.\n *\n * > **Notes:**\n * >\n * > - The first delivery profile is automatically created and marked as default when the Wix Stores, Wix Bookings, Wix Events, or Wix Restaurants business solutions are installed on a site.\n * > - Default status can't be changed or transferred to another profile.\n * > - The default profile can't be deleted because every site requires one for core delivery functionality.\n * @readonly\n */\n default?: boolean | null;\n /**\n * Delivery regions in this profile.\n * @maxSize 100\n */\n deliveryRegions?: DeliveryRegion[];\n /**\n * Information about who created the delivery profile.\n *\n * Currently only for use with Wix Restaurants.\n */\n createdBy?: CreatedBy;\n /**\n * Revision number, which increments by 1 each time the delivery profile is updated. To prevent conflicting changes, the current revision must be passed when updating the delivery profile. Ignored when creating a delivery profile.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the delivery profile was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the delivery profile was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Custom field data for the delivery profile object. [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. */\n extendedFields?: ExtendedFields;\n}\n\n/**\n * A delivery region defines a geographic area and its associated delivery carriers.\n * Each region specifies destinations (countries and subdivisions) where products can be shipped and the carriers available for those deliveries.\n *\n * During the eCommerce onboarding flow, an \"International\" region with empty destinations is automatically created. This serves as a \"Rest of World\" configuration that applies to destinations not explicitly defined in other regions.\n */\nexport interface DeliveryRegion {\n /**\n * Delivery region ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Delivery region name. For example, `\"Domestic\"` or `\"International\"`.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /**\n * Whether this delivery region is active and available during checkout.\n *\n * Default: `true`\n */\n active?: boolean | null;\n /**\n * Delivery carriers assigned to this region. Carriers are managed using the [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier), [Update Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-carrier), and [Remove Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-carrier) methods.\n * @maxSize 25\n * @readonly\n */\n deliveryCarriers?: DeliveryCarrier[];\n /**\n * Geographic destinations covered by this region. If empty, the region applies globally (Rest of World). A site can have up to 250 destinations across all delivery profiles.\n * @maxSize 250\n */\n destinations?: Destination[];\n /**\n * Date and time the delivery region was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\nexport interface DeliveryCarrier {\n /**\n * Carrier app ID.\n *\n * Get app IDs from the [app dashboard](https://dev.wix.com/dc3/my-apps/), or by calling [List Installed Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-installed-delivery-carriers).\n * @format GUID\n */\n appId?: string;\n /**\n * Backup rate to use when the carrier doesn't return a rate for a specific shipping option.\n *\n * When `active` is `false` and the carrier doesn't return a rate, the carrier's shipping options aren't shown to customers.\n */\n backupRate?: BackupRate;\n /**\n * Additional charges to add to the delivery rate. These charges are combined with the carrier's rate into a single shipping cost and itemized in order details.\n * @maxSize 10\n */\n additionalCharges?: AdditionalCharge[];\n}\n\nexport interface BackupRate {\n /**\n * Title displayed for the backup rate. For example, `\"Standard Shipping\"`.\n * @minLength 1\n * @maxLength 256\n */\n title?: string | null;\n /**\n * Backup rate amount.\n * @decimalValue options { gte:0, maxScale:6 }\n */\n amount?: string | null;\n /**\n * Whether the backup rate is active.\n *\n * The backup rate is used in the following situations:\n * + When `active` is `true`.\n * + When the carrier does not return a cost for any reason.\n *\n * If active, and no cost is returned by the carrier, the backup rate will be displayed to customers as the shipping option.\n *\n * Default: `false`\n */\n active?: boolean;\n}\n\nexport interface AdditionalCharge {\n /**\n * Description of the additional charge. For example, `\"Handling fee of $5 applied for gift wrapping\"`.\n * @maxLength 250\n */\n description?: string | null;\n /**\n * Additional fixed charge amount to add to the delivery rate. For example, `\"12.50\"`.\n * @maxLength 16\n */\n amount?: string;\n}\n\n/** Geographic destination for a delivery region. */\nexport interface Destination {\n /**\n * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n countryCode?: string;\n /**\n * Subdivision codes in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. For example, `\"US-CA\"` for California. If empty, the delivery region applies to the entire country.\n * @maxSize 100\n * @minLength 1\n * @maxLength 256\n */\n subdivisions?: string[];\n}\n\nexport interface CreatedBy extends CreatedByIdOneOf {\n /**\n * App ID, when the delivery profile was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string | null;\n /**\n * Wix user ID, when the delivery profile was created by a Wix user using the dashboard or an API call.\n * @format GUID\n */\n userId?: string | null;\n}\n\n/** @oneof */\nexport interface CreatedByIdOneOf {\n /**\n * App ID, when the delivery profile was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string | null;\n /**\n * Wix user ID, when the delivery profile was created by a Wix user using the dashboard or an API call.\n * @format GUID\n */\n userId?: string | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\n/** Event payload for when a delivery region is added to a delivery profile. */\nexport interface DeliveryRegionAdded {\n /**\n * ID of the delivery profile containing the region.\n * @format GUID\n */\n deliveryProfileId?: string;\n /**\n * ID of the added delivery region.\n * @format GUID\n * @readonly\n */\n deliveryRegionId?: string | null;\n /**\n * Delivery region name. For example, `\"Domestic\"`.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /** Whether the delivery region is active. */\n active?: boolean | null;\n /**\n * Delivery carriers assigned to this region.\n * @maxSize 25\n * @readonly\n */\n deliveryCarriers?: DeliveryCarrier[];\n /**\n * Geographic destinations covered by this region.\n * @maxSize 200\n */\n destinations?: Destination[];\n /**\n * Date and time the delivery region was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\n/** Event payload for when a delivery region is removed from a delivery profile. */\nexport interface DeliveryRegionRemoved {\n /**\n * ID of the delivery profile that contained the region.\n * @format GUID\n */\n deliveryProfileId?: string;\n /**\n * ID of the removed delivery region.\n * @format GUID\n */\n deliveryRegionId?: string;\n}\n\n/** Event payload for when a delivery region is updated. */\nexport interface DeliveryRegionUpdated {\n /**\n * ID of the delivery profile containing the region.\n * @format GUID\n */\n deliveryProfileId?: string;\n /**\n * ID of the updated delivery region.\n * @format GUID\n * @readonly\n */\n deliveryRegionId?: string | null;\n /**\n * Delivery region name. For example, `\"Domestic\"`.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /** Whether the delivery region is active. */\n active?: boolean | null;\n /**\n * Delivery carriers assigned to this region.\n * @maxSize 25\n * @readonly\n */\n deliveryCarriers?: DeliveryCarrier[];\n /**\n * Geographic destinations covered by this region. If empty, the region applies globally.\n * @maxSize 200\n */\n destinations?: Destination[];\n /**\n * Date and time the delivery region was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\nexport interface CreateDeliveryProfileRequest {\n /** Delivery profile to create. */\n deliveryProfile: DeliveryProfile;\n}\n\nexport interface CreateDeliveryProfileResponse {\n /** Created delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface GetDeliveryProfileRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n}\n\nexport interface GetDeliveryProfileResponse {\n /** Retrieved delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface UpdateDeliveryProfileRequest {\n /** Delivery profile to update. */\n deliveryProfile: DeliveryProfile;\n}\n\nexport interface UpdateDeliveryProfileResponse {\n /** Updated delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface DeleteDeliveryProfileRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n}\n\nexport interface DeleteDeliveryProfileResponse {}\n\nexport interface DeleteDefaultDeliveryProfileRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId?: string;\n}\n\nexport interface DeleteDefaultDeliveryProfileResponse {}\n\nexport interface QueryDeliveryProfilesRequest {\n /** Query options. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryDeliveryProfilesResponse {\n /**\n * List of delivery profiles.\n * @maxSize 100\n */\n deliveryProfiles?: DeliveryProfile[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface AddDeliveryRegionRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /** Delivery region to add. */\n deliveryRegion: DeliveryRegion;\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface AddDeliveryRegionResponse {\n /** Updated delivery profile with the new delivery region. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface UpdateDeliveryRegionRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /** Delivery region to update. */\n deliveryRegion: DeliveryRegion;\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface UpdateDeliveryRegionResponse {\n /** Updated delivery profile with the updated delivery region. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface GetDeliveryProfileByDeliveryRegionIdRequest {\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n}\n\nexport interface GetDeliveryProfileByDeliveryRegionIdResponse {\n /** Delivery profile containing the requested region. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface RemoveDeliveryRegionRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface RemoveDeliveryRegionResponse {\n /** Updated delivery profile with the delivery region removed. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface AddDeliveryCarrierRequest {\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n /** Delivery carrier to add. */\n deliveryCarrier: DeliveryCarrier;\n}\n\nexport interface AddDeliveryCarrierResponse {\n /** Updated delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface RemoveDeliveryCarrierRequest {\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n /**\n * App ID of the delivery carrier to remove.\n * @format GUID\n */\n appId: string;\n}\n\nexport interface RemoveDeliveryCarrierResponse {\n /** Updated delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface UpdateDeliveryCarrierRequest {\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n /** Delivery carrier to update. */\n deliveryCarrier?: DeliveryCarrier;\n}\n\nexport interface UpdateDeliveryCarrierResponse {\n /** Updated delivery profile with the updated delivery carrier. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface ListInstalledDeliveryCarriersRequest {}\n\nexport interface ListInstalledDeliveryCarriersResponse {\n /**\n * List of installed delivery carriers on the site.\n * @maxSize 100\n */\n installedDeliveryCarriers?: InstalledDeliveryCarrier[];\n}\n\nexport interface InstalledDeliveryCarrier {\n /**\n * Carrier app ID.\n * @format GUID\n */\n _id?: string;\n /**\n * Carrier display name.\n * @maxLength 256\n */\n displayName?: string;\n /**\n * Carrier description.\n * @maxLength 200\n */\n description?: string | null;\n /**\n * URL to learn more about the carrier.\n * @maxLength 200\n */\n learnMoreUrl?: string | null;\n /**\n * URL to the carrier's dashboard.\n * @minLength 1\n * @maxLength 2048\n * @format WEB_URL\n */\n dashboardUrl?: string | null;\n /** Whether a backup rate is required for this carrier. */\n fallbackDefinitionMandatory?: boolean | null;\n /**\n * URL for the carrier's thumbnail image.\n * @format WEB_URL\n */\n thumbnailUrl?: string | null;\n /** Whether the carrier supports retrieving carrier settings. */\n toggleGetCarrierSettingsEnabled?: boolean;\n}\n\nexport interface ListDeliveryDestinationsRequest {}\n\nexport interface ListDeliveryDestinationsResponse {\n /** Scope of destinations. When `WORLDWIDE` is selected, the `destinations` list is empty. */\n destinationScope?: DestinationScopeWithLiterals;\n /**\n * List of configured destinations.\n * @maxSize 200\n */\n destinations?: Destination[];\n}\n\nexport enum DestinationScope {\n /** Specific destinations are configured. */\n SPECIFIC_DESTINATIONS = 'SPECIFIC_DESTINATIONS',\n /** All destinations worldwide. */\n WORLDWIDE = 'WORLDWIDE',\n}\n\n/** @enumType */\nexport type DestinationScopeWithLiterals =\n | DestinationScope\n | 'SPECIFIC_DESTINATIONS'\n | 'WORLDWIDE';\n\nexport interface RequiredZipcodeRequest {}\n\nexport interface RequiredZipcodeResponse {\n /** Whether the site requires a postal code for delivery. */\n requiredZipcode?: boolean;\n}\n\nexport interface GetDeliveryDestinationPropertiesRequest {}\n\nexport interface GetDeliveryDestinationPropertiesResponse {\n /** Delivery destination properties for Rest of World. */\n restOfWorld?: DeliveryDestinationProperties;\n /**\n * List of countries and their delivery destination properties.\n * @maxSize 195\n */\n countries?: CountryDeliveryProperties[];\n}\n\nexport interface DeliveryDestinationProperties {\n /** Whether a postal code is required for delivery to this destination. */\n postalCodeRequired?: boolean;\n /** Whether only pickup is available at this destination. */\n pickupOnly?: boolean;\n}\n\nexport interface CountryDeliveryProperties {\n /**\n * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n country?: string;\n /** Delivery destination properties for the country. */\n deliveryDestinationProperties?: DeliveryDestinationProperties;\n /**\n * List of subdivisions and their delivery destination properties.\n * @maxSize 100\n */\n subdivisions?: SubdivisionDeliveryProperties[];\n}\n\nexport interface SubdivisionDeliveryProperties {\n /**\n * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.\n * @minLength 1\n * @maxLength 5\n */\n subdivision?: string;\n /** Delivery destination properties for the subdivision. */\n deliveryDestinationProperties?: DeliveryDestinationProperties;\n}\n\nexport interface ListDeliveryCarriersRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /**\n * App IDs of the delivery carriers to retrieve settings for.\n * @format GUID\n * @minSize 1\n * @maxSize 25\n */\n appIds?: string[];\n}\n\nexport interface ListDeliveryCarriersResponse {\n /**\n * List of delivery carrier results.\n * @maxSize 100\n */\n results?: ListDeliveryCarriersResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ListDeliveryCarriersResult {\n /** Metadata for the result, including success or error information. */\n deliveryCarrierMetadata?: ItemMetadata;\n /** Delivery carrier details. */\n deliveryCarrierDetails?: DeliveryCarrierDetails;\n /**\n * Regional settings for the delivery carrier.\n * @minSize 1\n * @maxSize 5\n */\n deliveryCarrierRegionalSettings?: DeliveryCarrierRegionalSettings[];\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n _id?: string | null;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface DeliveryCarrierDetails {\n /**\n * Carrier app ID.\n * @format GUID\n */\n _id?: string;\n /**\n * Carrier display name.\n * @maxLength 256\n */\n displayName?: string;\n /**\n * Carrier description.\n * @maxLength 200\n */\n description?: string | null;\n /**\n * URL to learn more about the carrier.\n * @maxLength 200\n */\n learnMoreUrl?: string | null;\n /**\n * URL to the carrier's dashboard.\n * @minLength 1\n * @maxLength 2048\n * @format WEB_URL\n */\n dashboardUrl?: string | null;\n /** Whether a backup rate is required for this carrier. */\n fallbackDefinitionMandatory?: boolean | null;\n /**\n * URL for the carrier's thumbnail image.\n * @format WEB_URL\n */\n thumbnailUrl?: string | null;\n /** Whether the carrier supports retrieving carrier settings. */\n toggleGetCarrierSettingsEnabled?: boolean;\n /** Whether the carrier supports updating carrier active status. */\n toggleUpdateCarrierActiveStatusEnabled?: boolean;\n}\n\nexport interface DeliveryCarrierRegionalSettings {\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId?: string;\n /**\n * Dashboard tables with shipping configuration for this region. Multiple tables can exist if the carrier is an aggregator of multiple services.\n * @minSize 1\n * @maxSize 5\n */\n dashboardTables?: DashboardTable[];\n}\n\nexport interface DashboardTable {\n /**\n * Table title.\n * @maxLength 256\n */\n title?: string;\n /**\n * Table columns.\n * @maxSize 200\n */\n columns?: Column[];\n /**\n * Table rows containing the configuration data.\n * @maxSize 25\n */\n rows?: Row[];\n}\n\nexport interface Column {\n /**\n * Column key, used to retrieve data from rows.\n * @maxLength 256\n */\n key?: string;\n /**\n * Column display name.\n * @maxLength 256\n */\n name?: string;\n}\n\nexport interface Row {\n /**\n * Unique row identifier, used to identify the row for editing.\n * @maxLength 256\n */\n key?: string;\n /** Row data as a JSON object. Each key corresponds to a column key. */\n data?: Record<string, any> | null;\n /** Whether this row's configuration is active. */\n active?: boolean;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface UpdateCarrierSettingsRequest {\n /**\n * Carrier app ID.\n * @format GUID\n */\n carrierId: string;\n /**\n * Row ID in the carrier's dashboard settings table that identifies the specific shipping configuration to update. Retrieved from [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).\n * @format GUID\n */\n rowId: string;\n /** New active status. */\n active: boolean | null;\n}\n\nexport interface UpdateCarrierSettingsResponse {}\n\nexport interface SetDeliveryCarrierActiveStatusRequest {\n /**\n * Carrier app ID.\n * @format GUID\n */\n carrierAppId: string;\n /**\n * Row identifier in the carrier's dashboard settings table that identifies the specific shipping configuration to update.\n *\n * Pass the `row.key` field from the response of [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).\n * @format GUID\n */\n rowId: string;\n /** Whether the configuration defined in the row is active. */\n active: boolean | null;\n}\n\nexport interface SetDeliveryCarrierActiveStatusResponse {}\n\nexport interface UpdateExtendedFieldsRequest {\n /** ID of the entity to update. */\n _id: string;\n /** Identifier for the app whose extended fields are being updated. */\n namespace: string;\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n /** Updated delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /** Emitted when media from user domain is enabled. */\n userDomainMediaEnabled?: UserDomainMediaEnabled;\n /** Emitted when media from user domain is disabled. */\n userDomainMediaDisabled?: UserDomainMediaDisabled;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /** Emitted when media from user domain is enabled. */\n userDomainMediaEnabled?: UserDomainMediaEnabled;\n /** Emitted when media from user domain is disabled. */\n userDomainMediaDisabled?: UserDomainMediaDisabled;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n /** Base44 headless sites. */\n BASE44 = 'BASE44',\n /** Wix Channels Sites */\n CHANNELS = 'CHANNELS',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44'\n | 'CHANNELS';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\n\n/** Media from user domain is enabled. */\nexport interface UserDomainMediaEnabled {}\n\n/** Media from user domain is disabled. */\nexport interface UserDomainMediaDisabled {}\n\nexport interface Empty {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateDeliveryProfileApplicationErrors =\n | {\n code?: 'DELIVERY_PROFILES_LIMIT_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DESTINATIONS_COLLISION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SINGLE_DEFAULT_DELIVERY_PROFILE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNKNOWN_DELIVERY_CARRIER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_CARRIER_MISSING_BACKUP_RATE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateDeliveryProfileApplicationErrors =\n | {\n code?: 'DELIVERY_REGION_CANNOT_BE_UPDATED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DEFAULT_CANNOT_BE_UPDATED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddDeliveryRegionApplicationErrors =\n | {\n code?: 'DELIVERY_PROFILE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DESTINATIONS_COLLISION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNKNOWN_DELIVERY_CARRIER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_CARRIER_MISSING_BACKUP_RATE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddDeliveryRegionValidationErrors = {\n ruleName?: 'DELIVERY_REGION_NAME_ALREADY_EXISTS';\n};\n/** @docsIgnore */\nexport type UpdateDeliveryRegionApplicationErrors =\n | {\n code?: 'DELIVERY_PROFILE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DESTINATIONS_COLLISION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_CARRIER_CANNOT_BE_UPDATED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateDeliveryRegionValidationErrors = {\n ruleName?: 'DELIVERY_REGION_NAME_ALREADY_EXISTS';\n};\n/** @docsIgnore */\nexport type GetDeliveryProfileByDeliveryRegionIdApplicationErrors = {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type RemoveDeliveryRegionApplicationErrors =\n | {\n code?: 'DELIVERY_PROFILE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddDeliveryCarrierApplicationErrors =\n | {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CARRIER_ALREADY_EXISTS_IN_REGION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_CARRIER_MISSING_BACKUP_RATE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNKNOWN_DELIVERY_CARRIER';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddDeliveryCarrierValidationErrors = {\n ruleName?: 'DELIVERY_CARRIER_MISSING_BACKUP_RATE';\n};\n/** @docsIgnore */\nexport type RemoveDeliveryCarrierApplicationErrors = {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type UpdateDeliveryCarrierApplicationErrors =\n | {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_CARRIER_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNKNOWN_DELIVERY_CARRIER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'APP_ID_CANNOT_BE_UPDATED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type ListDeliveryCarriersApplicationErrors =\n | {\n code?: 'DELIVERY_CARRIER_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_PROFILE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateCarrierSettingsApplicationErrors = {\n code?: 'DELIVERY_CARRIER_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type SetDeliveryCarrierActiveStatusApplicationErrors = {\n code?: 'DELIVERY_CARRIER_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface DeliveryProfileCreatedEnvelope {\n entity: DeliveryProfile;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a delivery profile is created.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileCreated(\n handler: (event: DeliveryProfileCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface DeliveryProfileDeletedEnvelope {\n entity: DeliveryProfile;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a delivery profile is deleted.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileDeleted(\n handler: (event: DeliveryProfileDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface DeliveryProfileRegionAddedEnvelope {\n data: DeliveryRegionAdded;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a delivery region is added to a delivery profile.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_region_added\n * @slug region_added\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileRegionAdded(\n handler: (event: DeliveryProfileRegionAddedEnvelope) => void | Promise<void>\n): void;\n\nexport interface DeliveryProfileRegionRemovedEnvelope {\n data: DeliveryRegionRemoved;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a delivery region is removed from a delivery profile.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_region_removed\n * @slug region_removed\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileRegionRemoved(\n handler: (event: DeliveryProfileRegionRemovedEnvelope) => void | Promise<void>\n): void;\n\nexport interface DeliveryProfileRegionUpdatedEnvelope {\n data: DeliveryRegionUpdated;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a delivery region is updated.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_region_updated\n * @slug region_updated\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileRegionUpdated(\n handler: (event: DeliveryProfileRegionUpdatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface DeliveryProfileUpdatedEnvelope {\n entity: DeliveryProfile;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when a delivery profile is updated.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_updated\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileUpdated(\n handler: (event: DeliveryProfileUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates a delivery profile.\n *\n *\n * A site can have up to 99 delivery profiles.\n * Attempting to exceed this limit returns a `DELIVERY_PROFILES_LIMIT_EXCEEDED` error.\n * @param deliveryProfile - Delivery profile to create.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryProfile\n * @requiredField deliveryProfile.deliveryRegions.destinations.countryCode\n * @requiredField deliveryProfile.deliveryRegions.name\n * @requiredField deliveryProfile.name\n * @permissionId ECOM.DELIVERY_PROFILE_CREATE\n * @applicableIdentity APP\n * @returns Created delivery profile.\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.CreateDeliveryProfile\n */\nexport async function createDeliveryProfile(\n deliveryProfile: NonNullablePaths<\n DeliveryProfile,\n | `deliveryRegions.${number}.destinations.${number}.countryCode`\n | `deliveryRegions.${number}.name`\n | `name`,\n 6\n >\n): Promise<\n NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2> & {\n __applicationErrorsType?: CreateDeliveryProfileApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfile: deliveryProfile,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.createDeliveryProfile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.deliveryProfile!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { deliveryProfile: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['deliveryProfile']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a delivery profile.\n * @param deliveryProfileId - Delivery profile ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryProfileId\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @applicableIdentity APP\n * @returns Retrieved delivery profile.\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfile\n */\nexport async function getDeliveryProfile(\n deliveryProfileId: string\n): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: deliveryProfileId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.getDeliveryProfile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.deliveryProfile!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { deliveryProfileId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['deliveryProfileId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a delivery profile.\n *\n * Each time the delivery profile is updated, `revision` increments by 1. The current `revision` must be passed when updating the delivery profile. This ensures you're working with the latest delivery profile and prevents unintended overwrites.\n *\n * This method doesn't support updating delivery regions in the profile. To manage delivery regions, use [Add Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-region), [Update Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-region), or [Remove Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-region).\n * @param _id - Delivery profile ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField deliveryProfile\n * @requiredField deliveryProfile.revision\n * @permissionId ECOM.DELIVERY_PROFILE_UPDATE\n * @applicableIdentity APP\n * @returns Updated delivery profile.\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryProfile\n */\nexport async function updateDeliveryProfile(\n _id: string,\n deliveryProfile: NonNullablePaths<UpdateDeliveryProfile, `revision`, 2>\n): Promise<\n NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2> & {\n __applicationErrorsType?: UpdateDeliveryProfileApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfile: { ...deliveryProfile, id: _id },\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.updateDeliveryProfile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.deliveryProfile!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { deliveryProfile: '$[1]' },\n explicitPathsToArguments: { 'deliveryProfile.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'deliveryProfile']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateDeliveryProfile {\n /**\n * Delivery profile ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Delivery profile name.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /**\n * Whether this is the default delivery profile.\n *\n * > **Notes:**\n * >\n * > - The first delivery profile is automatically created and marked as default when the Wix Stores, Wix Bookings, Wix Events, or Wix Restaurants business solutions are installed on a site.\n * > - Default status can't be changed or transferred to another profile.\n * > - The default profile can't be deleted because every site requires one for core delivery functionality.\n * @readonly\n */\n default?: boolean | null;\n /**\n * Delivery regions in this profile.\n * @maxSize 100\n */\n deliveryRegions?: DeliveryRegion[];\n /**\n * Information about who created the delivery profile.\n *\n * Currently only for use with Wix Restaurants.\n */\n createdBy?: CreatedBy;\n /**\n * Revision number, which increments by 1 each time the delivery profile is updated. To prevent conflicting changes, the current revision must be passed when updating the delivery profile. Ignored when creating a delivery profile.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the delivery profile was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the delivery profile was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Custom field data for the delivery profile object. [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. */\n extendedFields?: ExtendedFields;\n}\n\n/**\n * Deletes a delivery profile.\n *\n *\n * Permanently deletes the delivery profile and its delivery regions and carrier configurations. Delivery regions are unique to each profile and aren't shared across profiles. This action can't be undone.\n *\n * The default delivery profile can't be deleted because every site requires one for core delivery functionality.\n * @param deliveryProfileId - Delivery profile ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryProfileId\n * @permissionId ECOM.DELIVERY_PROFILE_DELETE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.DeleteDeliveryProfile\n */\nexport async function deleteDeliveryProfile(\n deliveryProfileId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: deliveryProfileId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.deleteDeliveryProfile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { deliveryProfileId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['deliveryProfileId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of up to 100 delivery profiles, given the provided paging, filtering, and sorting.\n *\n * Query Delivery Profiles runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n *\n * To learn how to query delivery profiles, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language).\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.QueryDeliveryProfiles\n */\nexport function queryDeliveryProfiles(): DeliveryProfilesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n DeliveryProfile,\n 'CURSOR',\n QueryDeliveryProfilesRequest,\n QueryDeliveryProfilesResponse\n >({\n func: async (payload: QueryDeliveryProfilesRequest) => {\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.queryDeliveryProfiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryDeliveryProfilesRequest['query']) => {\n const args = [query, {}] as [QueryDeliveryProfilesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryDeliveryProfilesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.deliveryProfiles,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface DeliveryProfilesQueryResult extends QueryCursorResult {\n items: DeliveryProfile[];\n query: DeliveryProfilesQueryBuilder;\n next: () => Promise<DeliveryProfilesQueryResult>;\n prev: () => Promise<DeliveryProfilesQueryResult>;\n}\n\nexport interface DeliveryProfilesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName:\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName:\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName:\n | '_id'\n | 'name'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName:\n | '_id'\n | 'name'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName:\n | '_id'\n | 'name'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName:\n | '_id'\n | 'name'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: '_id' | 'name' | 'createdBy.appId' | 'createdBy.userId',\n value: string\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (\n propertyName:\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any[]\n ) => DeliveryProfilesQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName:\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: boolean\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate'\n >\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate'\n >\n ) => DeliveryProfilesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => DeliveryProfilesQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => DeliveryProfilesQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<DeliveryProfilesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.QueryDeliveryProfiles\n * @requiredField query\n */\nexport async function typedQueryDeliveryProfiles(\n query: DeliveryProfileQuery\n): Promise<\n NonNullablePaths<QueryDeliveryProfilesResponse, `deliveryProfiles`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.queryDeliveryProfiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeliveryProfileQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: [\n '_createdDate',\n '_id',\n '_updatedDate',\n 'createdBy',\n 'createdBy.appId',\n 'createdBy.userId',\n 'default',\n 'name'\n ];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n DeliveryProfile,\n DeliveryProfileQuerySpec\n>;\nexport type DeliveryProfileQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object in the following format:\n `\"filter\" : {\n \"fieldName1\": \"value1\",\n \"fieldName2\":{\"$operator\":\"value2\"}\n }`\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object in the following format:\n `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]` \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\nexport const { QueryBuilder, Filter, Sort } = createQueryUtils<\n DeliveryProfile,\n DeliveryProfileQuerySpec,\n DeliveryProfileQuery\n>();\n\n/**\n * Adds a delivery region to an existing delivery profile.\n * @param deliveryProfileId - Delivery profile ID.\n * @param deliveryRegion - Delivery region to add.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryProfileId\n * @requiredField deliveryRegion\n * @requiredField deliveryRegion.destinations.countryCode\n * @requiredField deliveryRegion.name\n * @permissionId ECOM.DELIVERY_PROFILE_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryRegion\n */\nexport async function addDeliveryRegion(\n deliveryProfileId: string,\n deliveryRegion: NonNullablePaths<\n DeliveryRegion,\n `destinations.${number}.countryCode` | `name`,\n 4\n >,\n options?: AddDeliveryRegionOptions\n): Promise<\n NonNullablePaths<\n AddDeliveryRegionResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: AddDeliveryRegionApplicationErrors;\n __validationErrorsType?: AddDeliveryRegionValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: deliveryProfileId,\n deliveryRegion: deliveryRegion,\n revision: options?.revision,\n });\n\n const reqOpts = ambassadorWixEcomV1DeliveryProfile.addDeliveryRegion(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryProfileId: '$[0]',\n deliveryRegion: '$[1]',\n revision: '$[2].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['deliveryProfileId', 'deliveryRegion', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface AddDeliveryRegionOptions {\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\n/**\n * Updates a delivery region.\n *\n *\n * This method doesn't support updating delivery carriers in the region. To manage carriers, use [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier), [Update Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-carrier), or [Remove Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-carrier).\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegion\n * @requiredField identifiers\n * @requiredField identifiers.deliveryProfileId\n * @requiredField identifiers.deliveryRegionId\n * @permissionId ECOM.DELIVERY_REGION_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryRegion\n */\nexport async function updateDeliveryRegion(\n identifiers: NonNullablePaths<\n UpdateDeliveryRegionIdentifiers,\n `deliveryProfileId` | `deliveryRegionId`,\n 2\n >,\n deliveryRegion: UpdateDeliveryRegion,\n options?: UpdateDeliveryRegionOptions\n): Promise<\n NonNullablePaths<\n UpdateDeliveryRegionResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: UpdateDeliveryRegionApplicationErrors;\n __validationErrorsType?: UpdateDeliveryRegionValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: identifiers?.deliveryProfileId,\n deliveryRegion: { ...deliveryRegion, id: identifiers?.deliveryRegionId },\n revision: options?.revision,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.updateDeliveryRegion(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { deliveryRegion: '$[1]' },\n explicitPathsToArguments: {\n deliveryProfileId: '$[0].deliveryProfileId',\n 'deliveryRegion.id': '$[0].deliveryRegionId',\n revision: '$[2].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'deliveryRegion', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateDeliveryRegionIdentifiers {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /**\n * Delivery region ID.\n * @format GUID\n * @readonly\n */\n deliveryRegionId?: string | null;\n}\n\nexport interface UpdateDeliveryRegion {\n /**\n * Delivery region ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Delivery region name. For example, `\"Domestic\"` or `\"International\"`.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /**\n * Whether this delivery region is active and available during checkout.\n *\n * Default: `true`\n */\n active?: boolean | null;\n /**\n * Delivery carriers assigned to this region. Carriers are managed using the [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier), [Update Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-carrier), and [Remove Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-carrier) methods.\n * @maxSize 25\n * @readonly\n */\n deliveryCarriers?: DeliveryCarrier[];\n /**\n * Geographic destinations covered by this region. If empty, the region applies globally (Rest of World). A site can have up to 250 destinations across all delivery profiles.\n * @maxSize 250\n */\n destinations?: Destination[];\n /**\n * Date and time the delivery region was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\nexport interface UpdateDeliveryRegionOptions {\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\n/**\n * Retrieves a delivery profile by delivery region ID.\n * @param deliveryRegionId - Delivery region ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegionId\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfileByDeliveryRegionId\n */\nexport async function getDeliveryProfileByDeliveryRegionId(\n deliveryRegionId: string\n): Promise<\n NonNullablePaths<\n GetDeliveryProfileByDeliveryRegionIdResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: GetDeliveryProfileByDeliveryRegionIdApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryRegionId: deliveryRegionId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.getDeliveryProfileByDeliveryRegionId(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { deliveryRegionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['deliveryRegionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Removes a delivery region from a delivery profile.\n *\n *\n * You can remove all delivery regions from a profile, leaving the profile empty. An empty profile won't provide shipping options until a new delivery region is added.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.deliveryProfileId\n * @requiredField identifiers.deliveryRegionId\n * @permissionId ECOM.DELIVERY_PROFILE_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryRegion\n */\nexport async function removeDeliveryRegion(\n identifiers: NonNullablePaths<\n RemoveDeliveryRegionIdentifiers,\n `deliveryProfileId` | `deliveryRegionId`,\n 2\n >,\n options?: RemoveDeliveryRegionOptions\n): Promise<\n NonNullablePaths<\n RemoveDeliveryRegionResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: RemoveDeliveryRegionApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: identifiers?.deliveryProfileId,\n deliveryRegionId: identifiers?.deliveryRegionId,\n revision: options?.revision,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.removeDeliveryRegion(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryProfileId: '$[0].deliveryProfileId',\n deliveryRegionId: '$[0].deliveryRegionId',\n revision: '$[1].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface RemoveDeliveryRegionIdentifiers {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n}\n\nexport interface RemoveDeliveryRegionOptions {\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\n/**\n * Adds a delivery carrier to a delivery region.\n * @param deliveryRegionId - Delivery region ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegionId\n * @requiredField options\n * @requiredField options.deliveryCarrier\n * @requiredField options.deliveryCarrier.backupRate.amount\n * @permissionId ECOM.DELIVERY_CARRIER_ADD\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryCarrier\n */\nexport async function addDeliveryCarrier(\n deliveryRegionId: string,\n options: NonNullablePaths<\n AddDeliveryCarrierOptions,\n `deliveryCarrier` | `deliveryCarrier.backupRate.amount`,\n 4\n >\n): Promise<\n NonNullablePaths<\n AddDeliveryCarrierResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: AddDeliveryCarrierApplicationErrors;\n __validationErrorsType?: AddDeliveryCarrierValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryRegionId: deliveryRegionId,\n deliveryCarrier: options?.deliveryCarrier,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.addDeliveryCarrier(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryRegionId: '$[0]',\n deliveryCarrier: '$[1].deliveryCarrier',\n },\n singleArgumentUnchanged: false,\n },\n ['deliveryRegionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface AddDeliveryCarrierOptions {\n /** Delivery carrier to add. */\n deliveryCarrier: DeliveryCarrier;\n}\n\n/**\n * Removes a delivery carrier from a delivery region.\n * @param deliveryRegionId - Delivery region ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegionId\n * @requiredField options\n * @requiredField options.appId\n * @permissionId ECOM.DELIVERY_CARRIER_REMOVE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryCarrier\n */\nexport async function removeDeliveryCarrier(\n deliveryRegionId: string,\n options: NonNullablePaths<RemoveDeliveryCarrierOptions, `appId`, 2>\n): Promise<\n NonNullablePaths<\n RemoveDeliveryCarrierResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: RemoveDeliveryCarrierApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryRegionId: deliveryRegionId,\n appId: options?.appId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.removeDeliveryCarrier(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryRegionId: '$[0]',\n appId: '$[1].appId',\n },\n singleArgumentUnchanged: false,\n },\n ['deliveryRegionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface RemoveDeliveryCarrierOptions {\n /**\n * App ID of the delivery carrier to remove.\n * @format GUID\n */\n appId: string;\n}\n\n/**\n * Updates a delivery carrier's settings in a delivery region.\n *\n *\n * This method updates an existing carrier's settings (such as backup rate and additional charges) using a partial update. Only the fields you provide are updated; other carrier settings remain unchanged.\n *\n * To add a new carrier to a region, use [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier).\n * @param deliveryRegionId - Delivery region ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegionId\n * @requiredField options.deliveryCarrier.appId\n * @permissionId ECOM.DELIVERY_CARRIER_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryCarrier\n */\nexport async function updateDeliveryCarrier(\n deliveryRegionId: string,\n options?: NonNullablePaths<\n UpdateDeliveryCarrierOptions,\n `deliveryCarrier.appId`,\n 3\n >\n): Promise<\n NonNullablePaths<\n UpdateDeliveryCarrierResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: UpdateDeliveryCarrierApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryRegionId: deliveryRegionId,\n deliveryCarrier: options?.deliveryCarrier,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.updateDeliveryCarrier(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryRegionId: '$[0]',\n deliveryCarrier: '$[1].deliveryCarrier',\n },\n singleArgumentUnchanged: false,\n },\n ['deliveryRegionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateDeliveryCarrierOptions {\n /** Delivery carrier to update. */\n deliveryCarrier?: DeliveryCarrier;\n}\n\n/**\n * Retrieves a list of all delivery carriers installed on a site.\n *\n *\n * Use this method to discover available carriers before adding them to delivery regions.\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DELIVERY_CARRIER_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListInstalledDeliveryCarriers\n */\nexport async function listInstalledDeliveryCarriers(): Promise<\n NonNullablePaths<\n ListInstalledDeliveryCarriersResponse,\n | `installedDeliveryCarriers`\n | `installedDeliveryCarriers.${number}._id`\n | `installedDeliveryCarriers.${number}.displayName`\n | `installedDeliveryCarriers.${number}.toggleGetCarrierSettingsEnabled`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.listInstalledDeliveryCarriers(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves delivery destination properties.\n *\n *\n * Returns properties for Rest of World, as well as aggregated country and subdivision data. Properties include whether postal codes are required and whether pickup is the only delivery option for each destination.\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryDestinationProperties\n */\nexport async function getDeliveryDestinationProperties(): Promise<\n NonNullablePaths<\n GetDeliveryDestinationPropertiesResponse,\n | `restOfWorld.postalCodeRequired`\n | `restOfWorld.pickupOnly`\n | `countries`\n | `countries.${number}.country`\n | `countries.${number}.deliveryDestinationProperties.postalCodeRequired`\n | `countries.${number}.deliveryDestinationProperties.pickupOnly`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.getDeliveryDestinationProperties(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves delivery carrier settings for a delivery profile.\n *\n *\n * Returns detailed carrier configurations, including regional settings for each carrier. This method provides more comprehensive information than [List Installed Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-installed-delivery-carriers).\n * @param deliveryProfileId - Delivery profile ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryProfileId\n * @permissionId ECOM.DELIVERY_CARRIER_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarriers\n */\nexport async function listDeliveryCarriers(\n deliveryProfileId: string,\n options?: ListDeliveryCarriersOptions\n): Promise<\n NonNullablePaths<\n ListDeliveryCarriersResponse,\n | `results`\n | `results.${number}.deliveryCarrierMetadata.success`\n | `results.${number}.deliveryCarrierMetadata.error.code`\n | `results.${number}.deliveryCarrierMetadata.error.description`\n | `results.${number}.deliveryCarrierDetails._id`\n | `results.${number}.deliveryCarrierDetails.displayName`\n | `results.${number}.deliveryCarrierDetails.toggleGetCarrierSettingsEnabled`\n | `results.${number}.deliveryCarrierDetails.toggleUpdateCarrierActiveStatusEnabled`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n > & {\n __applicationErrorsType?: ListDeliveryCarriersApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: deliveryProfileId,\n appIds: options?.appIds,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.listDeliveryCarriers(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryProfileId: '$[0]',\n appIds: '$[1].appIds',\n },\n singleArgumentUnchanged: false,\n },\n ['deliveryProfileId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListDeliveryCarriersOptions {\n /**\n * App IDs of the delivery carriers to retrieve settings for.\n * @format GUID\n * @minSize 1\n * @maxSize 25\n */\n appIds?: string[];\n}\n\n/**\n * Updates a carrier's external active settings.\n * @param carrierId - Carrier app ID.\n * @internal\n * @documentationMaturity preview\n * @requiredField carrierId\n * @requiredField options\n * @requiredField options.active\n * @requiredField options.rowId\n * @permissionId ECOM.DELIVERY_CARRIER_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateCarrierSettings\n */\nexport async function updateCarrierSettings(\n carrierId: string,\n options: NonNullablePaths<UpdateCarrierSettingsOptions, `active` | `rowId`, 2>\n): Promise<\n void & {\n __applicationErrorsType?: UpdateCarrierSettingsApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n carrierId: carrierId,\n rowId: options?.rowId,\n active: options?.active,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.updateCarrierSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n carrierId: '$[0]',\n rowId: '$[1].rowId',\n active: '$[1].active',\n },\n singleArgumentUnchanged: false,\n },\n ['carrierId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateCarrierSettingsOptions {\n /**\n * Row ID in the carrier's dashboard settings table that identifies the specific shipping configuration to update. Retrieved from [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).\n * @format GUID\n */\n rowId: string;\n /** New active status. */\n active: boolean | null;\n}\n\n/**\n * Sets a delivery carrier's active status.\n * @param carrierAppId - Carrier app ID.\n * @public\n * @documentationMaturity preview\n * @requiredField carrierAppId\n * @requiredField options\n * @requiredField options.active\n * @requiredField options.rowId\n * @permissionId ECOM.DELIVERY_CARRIER_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.SetDeliveryCarrierActiveStatus\n */\nexport async function setDeliveryCarrierActiveStatus(\n carrierAppId: string,\n options: NonNullablePaths<\n SetDeliveryCarrierActiveStatusOptions,\n `active` | `rowId`,\n 2\n >\n): Promise<\n void & {\n __applicationErrorsType?: SetDeliveryCarrierActiveStatusApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n carrierAppId: carrierAppId,\n rowId: options?.rowId,\n active: options?.active,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.setDeliveryCarrierActiveStatus(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n carrierAppId: '$[0]',\n rowId: '$[1].rowId',\n active: '$[1].active',\n },\n singleArgumentUnchanged: false,\n },\n ['carrierAppId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SetDeliveryCarrierActiveStatusOptions {\n /**\n * Row identifier in the carrier's dashboard settings table that identifies the specific shipping configuration to update.\n *\n * Pass the `row.key` field from the response of [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).\n * @format GUID\n */\n rowId: string;\n /** Whether the configuration defined in the row is active. */\n active: boolean | null;\n}\n\n/**\n * Updates extended fields of a delivery profile without incrementing revision.\n * @param _id - ID of the entity to update.\n * @param namespace - Identifier for the app whose extended fields are being updated.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField namespace\n * @requiredField options\n * @requiredField options.namespaceData\n * @permissionId ECOM.DELIVERY_PROFILE_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateExtendedFields\n */\nexport async function updateExtendedFields(\n _id: string,\n namespace: string,\n options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>\n): Promise<\n NonNullablePaths<\n UpdateExtendedFieldsResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n namespace: namespace,\n namespaceData: options?.namespaceData,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.updateExtendedFields(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n namespace: '$[1]',\n namespaceData: '$[2].namespaceData',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'namespace', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateExtendedFieldsOptions {\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData: Record<string, any> | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/ecom/v1/delivery-profiles',\n destPath: '/v1/delivery-profiles',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/delivery-profiles-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/delivery-profiles',\n destPath: '/v1/delivery-profiles',\n },\n {\n srcPath: '/ecom/v1/delivery-profiles/update-carrier-settings',\n destPath: '/v1/delivery-carriers/update-settings',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/ecom/v1/delivery-profiles',\n destPath: '/v1/delivery-profiles',\n },\n {\n srcPath: '/ecom/v1/delivery-profiles/update-carrier-settings',\n destPath: '/v1/delivery-carriers/update-settings',\n },\n ],\n _: [\n {\n srcPath: '/ecom/v1/delivery-profiles',\n destPath: '/v1/delivery-profiles',\n },\n {\n srcPath: '/ecom/v1/delivery-profiles/update-carrier-settings',\n destPath: '/v1/delivery-carriers/update-settings',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_delivery-profile';\n\n/**\n * Creates a delivery profile.\n *\n *\n * A site can have up to 99 delivery profiles.\n * Attempting to exceed this limit returns a `DELIVERY_PROFILES_LIMIT_EXCEEDED` error.\n */\nexport function createDeliveryProfile(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDeliveryProfile({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.CreateDeliveryProfile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDeliveryProfile;\n}\n\n/** Retrieves a delivery profile. */\nexport function getDeliveryProfile(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDeliveryProfile({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/{deliveryProfileId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDeliveryProfile;\n}\n\n/**\n * Updates a delivery profile.\n *\n * Each time the delivery profile is updated, `revision` increments by 1. The current `revision` must be passed when updating the delivery profile. This ensures you're working with the latest delivery profile and prevents unintended overwrites.\n *\n * This method doesn't support updating delivery regions in the profile. To manage delivery regions, use [Add Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-region), [Update Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-region), or [Remove Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-region).\n */\nexport function updateDeliveryProfile(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateDeliveryProfile({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryProfile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/{deliveryProfile.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDeliveryProfile;\n}\n\n/**\n * Deletes a delivery profile.\n *\n *\n * Permanently deletes the delivery profile and its delivery regions and carrier configurations. Delivery regions are unique to each profile and aren't shared across profiles. This action can't be undone.\n *\n * The default delivery profile can't be deleted because every site requires one for core delivery functionality.\n */\nexport function deleteDeliveryProfile(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteDeliveryProfile({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.DeleteDeliveryProfile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/{deliveryProfileId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteDeliveryProfile;\n}\n\n/**\n * Retrieves a list of up to 100 delivery profiles, given the provided paging, filtering, and sorting.\n *\n * Query Delivery Profiles runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n *\n * To learn how to query delivery profiles, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language).\n */\nexport function queryDeliveryProfiles(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDeliveryProfiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.QueryDeliveryProfiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfiles.createdDate' },\n { path: 'deliveryProfiles.updatedDate' },\n { path: 'deliveryProfiles.deliveryRegions.createdDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDeliveryProfiles;\n}\n\n/** Adds a delivery region to an existing delivery profile. */\nexport function addDeliveryRegion(payload: object): RequestOptionsFactory<any> {\n function __addDeliveryRegion({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'deliveryRegion.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/{deliveryProfileId}/delivery-region',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addDeliveryRegion;\n}\n\n/**\n * Updates a delivery region.\n *\n *\n * This method doesn't support updating delivery carriers in the region. To manage carriers, use [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier), [Update Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-carrier), or [Remove Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-carrier).\n */\nexport function updateDeliveryRegion(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateDeliveryRegion({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'deliveryRegion.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath:\n '/v1/delivery-profiles/{deliveryProfileId}/delivery-region/{deliveryRegion.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDeliveryRegion;\n}\n\n/** Retrieves a delivery profile by delivery region ID. */\nexport function getDeliveryProfileByDeliveryRegionId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDeliveryProfileByDeliveryRegionId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfileByDeliveryRegionId',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/delivery-regions/{deliveryRegionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDeliveryProfileByDeliveryRegionId;\n}\n\n/**\n * Removes a delivery region from a delivery profile.\n *\n *\n * You can remove all delivery regions from a profile, leaving the profile empty. An empty profile won't provide shipping options until a new delivery region is added.\n */\nexport function removeDeliveryRegion(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeDeliveryRegion({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath:\n '/v1/delivery-profiles/{deliveryProfileId}/delivery-region/{deliveryRegionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeDeliveryRegion;\n}\n\n/** Adds a delivery carrier to a delivery region. */\nexport function addDeliveryCarrier(\n payload: object\n): RequestOptionsFactory<any> {\n function __addDeliveryCarrier({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryCarrier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/add-delivery-carrier',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addDeliveryCarrier;\n}\n\n/** Removes a delivery carrier from a delivery region. */\nexport function removeDeliveryCarrier(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeDeliveryCarrier({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryCarrier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/remove-delivery-carrier',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeDeliveryCarrier;\n}\n\n/**\n * Updates a delivery carrier's settings in a delivery region.\n *\n *\n * This method updates an existing carrier's settings (such as backup rate and additional charges) using a partial update. Only the fields you provide are updated; other carrier settings remain unchanged.\n *\n * To add a new carrier to a region, use [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier).\n */\nexport function updateDeliveryCarrier(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateDeliveryCarrier({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryCarrier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/update-delivery-carrier',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDeliveryCarrier;\n}\n\n/**\n * Retrieves a list of all delivery carriers installed on a site.\n *\n *\n * Use this method to discover available carriers before adding them to delivery regions.\n */\nexport function listInstalledDeliveryCarriers(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstalledDeliveryCarriers({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListInstalledDeliveryCarriers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/installed-carriers',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listInstalledDeliveryCarriers;\n}\n\n/**\n * Retrieves delivery destination properties.\n *\n *\n * Returns properties for Rest of World, as well as aggregated country and subdivision data. Properties include whether postal codes are required and whether pickup is the only delivery option for each destination.\n */\nexport function getDeliveryDestinationProperties(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDeliveryDestinationProperties({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryDestinationProperties',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/delivery-destination-properties',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getDeliveryDestinationProperties;\n}\n\n/**\n * Retrieves delivery carrier settings for a delivery profile.\n *\n *\n * Returns detailed carrier configurations, including regional settings for each carrier. This method provides more comprehensive information than [List Installed Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-installed-delivery-carriers).\n */\nexport function listDeliveryCarriers(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDeliveryCarriers({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarriers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath:\n '/v1/delivery-profiles/{deliveryProfileId}/delivery-carriers',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __listDeliveryCarriers;\n}\n\n/** Updates a carrier's external active settings. */\nexport function updateCarrierSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCarrierSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateCarrierSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-carriers/update-settings',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __updateCarrierSettings;\n}\n\n/** Sets a delivery carrier's active status. */\nexport function setDeliveryCarrierActiveStatus(\n payload: object\n): RequestOptionsFactory<any> {\n function __setDeliveryCarrierActiveStatus({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.SetDeliveryCarrierActiveStatus',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/delivery-carriers/set-active-status',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __setDeliveryCarrierActiveStatus;\n}\n\n/** Updates extended fields of a delivery profile without incrementing revision. */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/{id}/update-extended-fields',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,mDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QAC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AAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD,IAAI;AAAA,IACJ;AAAA,IACA,eAAe,SAAS;AAAA,EAC1B,CAAC;AAED,QAAM,UAC+B,qBAAqB,OAAO;AAEjE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,IAAI;AAAA,UACJ,WAAW;AAAA,UACX,eAAe;AAAA,QACjB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,OAAO,aAAa,SAAS;AAAA,IAChC;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","SortOrder","DestinationScope","State","SiteCreatedContext","Namespace","DeleteStatus","WebhookIdentityType","createDeliveryProfile","getDeliveryProfile","updateDeliveryProfile","deleteDeliveryProfile","queryDeliveryProfiles","addDeliveryRegion","updateDeliveryRegion","getDeliveryProfileByDeliveryRegionId","removeDeliveryRegion","addDeliveryCarrier","removeDeliveryCarrier","updateDeliveryCarrier","listInstalledDeliveryCarriers","getDeliveryDestinationProperties","listDeliveryCarriers","updateCarrierSettings","setDeliveryCarrierActiveStatus","updateExtendedFields"]}
1
+ {"version":3,"sources":["../../../src/ecom-v1-delivery-profile-delivery-profile.universal.ts","../../../src/ecom-v1-delivery-profile-delivery-profile.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixEcomV1DeliveryProfile from './ecom-v1-delivery-profile-delivery-profile.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/**\n * A delivery profile is a collection of delivery regions that define shipping options for products.\n * Each profile contains delivery regions, which specify where products can be shipped and which carriers can deliver to those destinations.\n */\nexport interface DeliveryProfile {\n /**\n * Delivery profile ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Delivery profile name.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /**\n * Whether this is the default delivery profile.\n *\n * > **Notes:**\n * >\n * > - The first delivery profile is automatically created and marked as default when the Wix Stores, Wix Bookings, Wix Events, or Wix Restaurants business solutions are installed on a site.\n * > - Default status can't be changed or transferred to another profile.\n * > - The default profile can't be deleted because every site requires one for core delivery functionality.\n * @readonly\n */\n default?: boolean | null;\n /**\n * Delivery regions in this profile.\n * @maxSize 100\n */\n deliveryRegions?: DeliveryRegion[];\n /**\n * Information about who created the delivery profile.\n *\n * Currently only for use with Wix Restaurants.\n */\n createdBy?: CreatedBy;\n /**\n * Revision number, which increments by 1 each time the delivery profile is updated. To prevent conflicting changes, the current revision must be passed when updating the delivery profile. Ignored when creating a delivery profile.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the delivery profile was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the delivery profile was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Custom field data for the delivery profile object. [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. */\n extendedFields?: ExtendedFields;\n}\n\n/**\n * A delivery region defines a geographic area and its associated delivery carriers.\n * Each region specifies destinations (countries and subdivisions) where products can be shipped and the carriers available for those deliveries.\n *\n * During the eCommerce onboarding flow, an \"International\" region with empty destinations is automatically created. This serves as a \"Rest of World\" configuration that applies to destinations not explicitly defined in other regions.\n */\nexport interface DeliveryRegion {\n /**\n * Delivery region ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Delivery region name. For example, `\"Domestic\"` or `\"International\"`.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /**\n * Whether this delivery region is active and available during checkout.\n *\n * Default: `true`\n */\n active?: boolean | null;\n /**\n * Delivery carriers assigned to this region. Carriers are managed using the [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier), [Update Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-carrier), and [Remove Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-carrier) methods.\n * @maxSize 25\n * @readonly\n */\n deliveryCarriers?: DeliveryCarrier[];\n /**\n * Geographic destinations covered by this region. If empty, the region applies globally (Rest of World). A site can have up to 250 destinations across all delivery profiles.\n * @maxSize 250\n */\n destinations?: Destination[];\n /**\n * Date and time the delivery region was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\nexport interface DeliveryCarrier {\n /**\n * Carrier app ID.\n *\n * Get app IDs from the [app dashboard](https://dev.wix.com/dc3/my-apps/), or by calling [List Installed Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-installed-delivery-carriers).\n * @format GUID\n */\n appId?: string;\n /**\n * Backup rate to use when the carrier doesn't return a rate for a specific shipping option.\n *\n * When `active` is `false` and the carrier doesn't return a rate, the carrier's shipping options aren't shown to customers.\n */\n backupRate?: BackupRate;\n /**\n * Additional charges to add to the delivery rate. These charges are combined with the carrier's rate into a single shipping cost and itemized in order details.\n * @maxSize 10\n */\n additionalCharges?: AdditionalCharge[];\n}\n\nexport interface BackupRate {\n /**\n * Title displayed for the backup rate. For example, `\"Standard Shipping\"`.\n * @minLength 1\n * @maxLength 256\n */\n title?: string | null;\n /**\n * Backup rate amount.\n * @decimalValue options { gte:0, maxScale:6 }\n */\n amount?: string | null;\n /**\n * Whether the backup rate is active.\n *\n * The backup rate is used in the following situations:\n * + When `active` is `true`.\n * + When the carrier does not return a cost for any reason.\n *\n * If active, and no cost is returned by the carrier, the backup rate will be displayed to customers as the shipping option.\n *\n * Default: `false`\n */\n active?: boolean;\n}\n\nexport interface AdditionalCharge {\n /**\n * Description of the additional charge. For example, `\"Handling fee of $5 applied for gift wrapping\"`.\n * @maxLength 250\n */\n description?: string | null;\n /**\n * Additional fixed charge amount to add to the delivery rate. For example, `\"12.50\"`.\n * @maxLength 16\n */\n amount?: string;\n}\n\n/** Geographic destination for a delivery region. */\nexport interface Destination {\n /**\n * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n countryCode?: string;\n /**\n * Subdivision codes in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. For example, `\"US-CA\"` for California. If empty, the delivery region applies to the entire country.\n * @maxSize 100\n * @minLength 1\n * @maxLength 256\n */\n subdivisions?: string[];\n}\n\nexport interface CreatedBy extends CreatedByIdOneOf {\n /**\n * App ID, when the delivery profile was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string | null;\n /**\n * Wix user ID, when the delivery profile was created by a Wix user using the dashboard or an API call.\n * @format GUID\n */\n userId?: string | null;\n}\n\n/** @oneof */\nexport interface CreatedByIdOneOf {\n /**\n * App ID, when the delivery profile was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string | null;\n /**\n * Wix user ID, when the delivery profile was created by a Wix user using the dashboard or an API call.\n * @format GUID\n */\n userId?: string | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\n/** Event payload for when a delivery region is added to a delivery profile. */\nexport interface DeliveryRegionAdded {\n /**\n * ID of the delivery profile containing the region.\n * @format GUID\n */\n deliveryProfileId?: string;\n /**\n * ID of the added delivery region.\n * @format GUID\n * @readonly\n */\n deliveryRegionId?: string | null;\n /**\n * Delivery region name. For example, `\"Domestic\"`.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /** Whether the delivery region is active. */\n active?: boolean | null;\n /**\n * Delivery carriers assigned to this region.\n * @maxSize 25\n * @readonly\n */\n deliveryCarriers?: DeliveryCarrier[];\n /**\n * Geographic destinations covered by this region.\n * @maxSize 200\n */\n destinations?: Destination[];\n /**\n * Date and time the delivery region was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\n/** Event payload for when a delivery region is removed from a delivery profile. */\nexport interface DeliveryRegionRemoved {\n /**\n * ID of the delivery profile that contained the region.\n * @format GUID\n */\n deliveryProfileId?: string;\n /**\n * ID of the removed delivery region.\n * @format GUID\n */\n deliveryRegionId?: string;\n}\n\n/** Event payload for when a delivery region is updated. */\nexport interface DeliveryRegionUpdated {\n /**\n * ID of the delivery profile containing the region.\n * @format GUID\n */\n deliveryProfileId?: string;\n /**\n * ID of the updated delivery region.\n * @format GUID\n * @readonly\n */\n deliveryRegionId?: string | null;\n /**\n * Delivery region name. For example, `\"Domestic\"`.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /** Whether the delivery region is active. */\n active?: boolean | null;\n /**\n * Delivery carriers assigned to this region.\n * @maxSize 25\n * @readonly\n */\n deliveryCarriers?: DeliveryCarrier[];\n /**\n * Geographic destinations covered by this region. If empty, the region applies globally.\n * @maxSize 200\n */\n destinations?: Destination[];\n /**\n * Date and time the delivery region was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\nexport interface CreateDeliveryProfileRequest {\n /** Delivery profile to create. */\n deliveryProfile: DeliveryProfile;\n}\n\nexport interface CreateDeliveryProfileResponse {\n /** Created delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface GetDeliveryProfileRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n}\n\nexport interface GetDeliveryProfileResponse {\n /** Retrieved delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface UpdateDeliveryProfileRequest {\n /** Delivery profile to update. */\n deliveryProfile: DeliveryProfile;\n}\n\nexport interface UpdateDeliveryProfileResponse {\n /** Updated delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface DeleteDeliveryProfileRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n}\n\nexport interface DeleteDeliveryProfileResponse {}\n\nexport interface DeleteDefaultDeliveryProfileRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId?: string;\n}\n\nexport interface DeleteDefaultDeliveryProfileResponse {}\n\nexport interface QueryDeliveryProfilesRequest {\n /** Query options. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryDeliveryProfilesResponse {\n /**\n * List of delivery profiles.\n * @maxSize 100\n */\n deliveryProfiles?: DeliveryProfile[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface AddDeliveryRegionRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /** Delivery region to add. */\n deliveryRegion: DeliveryRegion;\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface AddDeliveryRegionResponse {\n /** Updated delivery profile with the new delivery region. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface UpdateDeliveryRegionRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /** Delivery region to update. */\n deliveryRegion: DeliveryRegion;\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface UpdateDeliveryRegionResponse {\n /** Updated delivery profile with the updated delivery region. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface GetDeliveryProfileByDeliveryRegionIdRequest {\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n}\n\nexport interface GetDeliveryProfileByDeliveryRegionIdResponse {\n /** Delivery profile containing the requested region. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface RemoveDeliveryRegionRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface RemoveDeliveryRegionResponse {\n /** Updated delivery profile with the delivery region removed. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface AddDeliveryCarrierRequest {\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n /** Delivery carrier to add. */\n deliveryCarrier: DeliveryCarrier;\n}\n\nexport interface AddDeliveryCarrierResponse {\n /** Updated delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface RemoveDeliveryCarrierRequest {\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n /**\n * App ID of the delivery carrier to remove.\n * @format GUID\n */\n appId: string;\n}\n\nexport interface RemoveDeliveryCarrierResponse {\n /** Updated delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface UpdateDeliveryCarrierRequest {\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n /** Delivery carrier to update. */\n deliveryCarrier?: DeliveryCarrier;\n}\n\nexport interface UpdateDeliveryCarrierResponse {\n /** Updated delivery profile with the updated delivery carrier. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface ListInstalledDeliveryCarriersRequest {}\n\nexport interface ListInstalledDeliveryCarriersResponse {\n /**\n * List of installed delivery carriers on the site.\n * @maxSize 100\n */\n installedDeliveryCarriers?: InstalledDeliveryCarrier[];\n}\n\nexport interface InstalledDeliveryCarrier {\n /**\n * Carrier app ID.\n * @format GUID\n */\n _id?: string;\n /**\n * Carrier display name.\n * @maxLength 256\n */\n displayName?: string;\n /**\n * Carrier description.\n * @maxLength 200\n */\n description?: string | null;\n /**\n * URL to learn more about the carrier.\n * @maxLength 200\n */\n learnMoreUrl?: string | null;\n /**\n * URL to the carrier's dashboard.\n * @minLength 1\n * @maxLength 2048\n * @format WEB_URL\n */\n dashboardUrl?: string | null;\n /** Whether a backup rate is required for this carrier. */\n fallbackDefinitionMandatory?: boolean | null;\n /**\n * URL for the carrier's thumbnail image.\n * @format WEB_URL\n */\n thumbnailUrl?: string | null;\n /** Whether the carrier supports retrieving carrier settings. */\n toggleGetCarrierSettingsEnabled?: boolean;\n}\n\nexport interface ListDeliveryDestinationsRequest {}\n\nexport interface ListDeliveryDestinationsResponse {\n /** Scope of destinations. When `WORLDWIDE` is selected, the `destinations` list is empty. */\n destinationScope?: DestinationScopeWithLiterals;\n /**\n * List of configured destinations.\n * @maxSize 200\n */\n destinations?: Destination[];\n}\n\nexport enum DestinationScope {\n /** Specific destinations are configured. */\n SPECIFIC_DESTINATIONS = 'SPECIFIC_DESTINATIONS',\n /** All destinations worldwide. */\n WORLDWIDE = 'WORLDWIDE',\n}\n\n/** @enumType */\nexport type DestinationScopeWithLiterals =\n | DestinationScope\n | 'SPECIFIC_DESTINATIONS'\n | 'WORLDWIDE';\n\nexport interface RequiredZipcodeRequest {}\n\nexport interface RequiredZipcodeResponse {\n /** Whether the site requires a postal code for delivery. */\n requiredZipcode?: boolean;\n}\n\nexport interface GetDeliveryDestinationPropertiesRequest {}\n\nexport interface GetDeliveryDestinationPropertiesResponse {\n /** Delivery destination properties for Rest of World. */\n restOfWorld?: DeliveryDestinationProperties;\n /**\n * List of countries and their delivery destination properties.\n * @maxSize 195\n */\n countries?: CountryDeliveryProperties[];\n}\n\nexport interface DeliveryDestinationProperties {\n /** Whether a postal code is required for delivery to this destination. */\n postalCodeRequired?: boolean;\n /** Whether only pickup is available at this destination. */\n pickupOnly?: boolean;\n}\n\nexport interface CountryDeliveryProperties {\n /**\n * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n country?: string;\n /** Delivery destination properties for the country. */\n deliveryDestinationProperties?: DeliveryDestinationProperties;\n /**\n * List of subdivisions and their delivery destination properties.\n * @maxSize 100\n */\n subdivisions?: SubdivisionDeliveryProperties[];\n}\n\nexport interface SubdivisionDeliveryProperties {\n /**\n * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.\n * @minLength 1\n * @maxLength 5\n */\n subdivision?: string;\n /** Delivery destination properties for the subdivision. */\n deliveryDestinationProperties?: DeliveryDestinationProperties;\n}\n\nexport interface ListDeliveryCarriersRequest {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /**\n * App IDs of the delivery carriers to retrieve settings for.\n * @format GUID\n * @minSize 1\n * @maxSize 25\n */\n appIds?: string[];\n}\n\nexport interface ListDeliveryCarriersResponse {\n /**\n * List of delivery carrier results.\n * @maxSize 100\n */\n results?: ListDeliveryCarriersResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ListDeliveryCarriersResult {\n /** Metadata for the result, including success or error information. */\n deliveryCarrierMetadata?: ItemMetadata;\n /** Delivery carrier details. */\n deliveryCarrierDetails?: DeliveryCarrierDetails;\n /**\n * Regional settings for the delivery carrier.\n * @minSize 1\n * @maxSize 5\n */\n deliveryCarrierRegionalSettings?: DeliveryCarrierRegionalSettings[];\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n _id?: string | null;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface DeliveryCarrierDetails {\n /**\n * Carrier app ID.\n * @format GUID\n */\n _id?: string;\n /**\n * Carrier display name.\n * @maxLength 256\n */\n displayName?: string;\n /**\n * Carrier description.\n * @maxLength 200\n */\n description?: string | null;\n /**\n * URL to learn more about the carrier.\n * @maxLength 200\n */\n learnMoreUrl?: string | null;\n /**\n * URL to the carrier's dashboard.\n * @minLength 1\n * @maxLength 2048\n * @format WEB_URL\n */\n dashboardUrl?: string | null;\n /** Whether a backup rate is required for this carrier. */\n fallbackDefinitionMandatory?: boolean | null;\n /**\n * URL for the carrier's thumbnail image.\n * @format WEB_URL\n */\n thumbnailUrl?: string | null;\n /** Whether the carrier supports retrieving carrier settings. */\n toggleGetCarrierSettingsEnabled?: boolean;\n /** Whether the carrier supports updating carrier active status. */\n toggleUpdateCarrierActiveStatusEnabled?: boolean;\n}\n\nexport interface DeliveryCarrierRegionalSettings {\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId?: string;\n /**\n * Dashboard tables with shipping configuration for this region. Multiple tables can exist if the carrier is an aggregator of multiple services.\n * @minSize 1\n * @maxSize 5\n */\n dashboardTables?: DashboardTable[];\n}\n\nexport interface DashboardTable {\n /**\n * Table title.\n * @maxLength 256\n */\n title?: string;\n /**\n * Table columns.\n * @maxSize 200\n */\n columns?: Column[];\n /**\n * Table rows containing the configuration data.\n * @maxSize 25\n */\n rows?: Row[];\n}\n\nexport interface Column {\n /**\n * Column key, used to retrieve data from rows.\n * @maxLength 256\n */\n key?: string;\n /**\n * Column display name.\n * @maxLength 256\n */\n name?: string;\n}\n\nexport interface Row {\n /**\n * Unique row identifier, used to identify the row for editing.\n * @maxLength 256\n */\n key?: string;\n /** Row data as a JSON object. Each key corresponds to a column key. */\n data?: Record<string, any> | null;\n /** Whether this row's configuration is active. */\n active?: boolean;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface UpdateCarrierSettingsRequest {\n /**\n * Carrier app ID.\n * @format GUID\n */\n carrierId: string;\n /**\n * Row ID in the carrier's dashboard settings table that identifies the specific shipping configuration to update. Retrieved from [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).\n * @format GUID\n */\n rowId: string;\n /** New active status. */\n active: boolean | null;\n}\n\nexport interface UpdateCarrierSettingsResponse {}\n\nexport interface SetDeliveryCarrierActiveStatusRequest {\n /**\n * Carrier app ID.\n * @format GUID\n */\n carrierAppId: string;\n /**\n * Row identifier in the carrier's dashboard settings table that identifies the specific shipping configuration to update.\n *\n * Pass the `row.key` field from the response of [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).\n * @format GUID\n */\n rowId: string;\n /** Whether the configuration defined in the row is active. */\n active: boolean | null;\n}\n\nexport interface SetDeliveryCarrierActiveStatusResponse {}\n\nexport interface UpdateExtendedFieldsRequest {\n /** ID of the entity to update. */\n _id: string;\n /** Identifier for the app whose extended fields are being updated. */\n namespace: string;\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n /** Updated delivery profile. */\n deliveryProfile?: DeliveryProfile;\n}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /** Emitted when media from user domain is enabled. */\n userDomainMediaEnabled?: UserDomainMediaEnabled;\n /** Emitted when media from user domain is disabled. */\n userDomainMediaDisabled?: UserDomainMediaDisabled;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /** Emitted when media from user domain is enabled. */\n userDomainMediaEnabled?: UserDomainMediaEnabled;\n /** Emitted when media from user domain is disabled. */\n userDomainMediaDisabled?: UserDomainMediaDisabled;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n /** Base44 headless sites. */\n BASE44 = 'BASE44',\n /** Wix Channels Sites */\n CHANNELS = 'CHANNELS',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44'\n | 'CHANNELS';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\n\n/** Media from user domain is enabled. */\nexport interface UserDomainMediaEnabled {}\n\n/** Media from user domain is disabled. */\nexport interface UserDomainMediaDisabled {}\n\nexport interface Empty {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateDeliveryProfileApplicationErrors =\n | {\n code?: 'DELIVERY_PROFILES_LIMIT_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DESTINATIONS_COLLISION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SINGLE_DEFAULT_DELIVERY_PROFILE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNKNOWN_DELIVERY_CARRIER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_CARRIER_MISSING_BACKUP_RATE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateDeliveryProfileApplicationErrors =\n | {\n code?: 'DELIVERY_REGION_CANNOT_BE_UPDATED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DEFAULT_CANNOT_BE_UPDATED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddDeliveryRegionApplicationErrors =\n | {\n code?: 'DELIVERY_PROFILE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DESTINATIONS_COLLISION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNKNOWN_DELIVERY_CARRIER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_CARRIER_MISSING_BACKUP_RATE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddDeliveryRegionValidationErrors = {\n ruleName?: 'DELIVERY_REGION_NAME_ALREADY_EXISTS';\n};\n/** @docsIgnore */\nexport type UpdateDeliveryRegionApplicationErrors =\n | {\n code?: 'DELIVERY_PROFILE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DESTINATIONS_COLLISION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_CARRIER_CANNOT_BE_UPDATED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateDeliveryRegionValidationErrors = {\n ruleName?: 'DELIVERY_REGION_NAME_ALREADY_EXISTS';\n};\n/** @docsIgnore */\nexport type GetDeliveryProfileByDeliveryRegionIdApplicationErrors = {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type RemoveDeliveryRegionApplicationErrors =\n | {\n code?: 'DELIVERY_PROFILE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddDeliveryCarrierApplicationErrors =\n | {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CARRIER_ALREADY_EXISTS_IN_REGION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_CARRIER_MISSING_BACKUP_RATE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNKNOWN_DELIVERY_CARRIER';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddDeliveryCarrierValidationErrors = {\n ruleName?: 'DELIVERY_CARRIER_MISSING_BACKUP_RATE';\n};\n/** @docsIgnore */\nexport type RemoveDeliveryCarrierApplicationErrors = {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type UpdateDeliveryCarrierApplicationErrors =\n | {\n code?: 'DELIVERY_REGION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_CARRIER_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNKNOWN_DELIVERY_CARRIER';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'APP_ID_CANNOT_BE_UPDATED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type ListDeliveryCarriersApplicationErrors =\n | {\n code?: 'DELIVERY_CARRIER_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_PROFILE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateCarrierSettingsApplicationErrors = {\n code?: 'DELIVERY_CARRIER_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type SetDeliveryCarrierActiveStatusApplicationErrors = {\n code?: 'DELIVERY_CARRIER_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface DeliveryProfileCreatedEnvelope {\n entity: DeliveryProfile;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a delivery profile is created.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileCreated(\n handler: (event: DeliveryProfileCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface DeliveryProfileDeletedEnvelope {\n entity: DeliveryProfile;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a delivery profile is deleted.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileDeleted(\n handler: (event: DeliveryProfileDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface DeliveryProfileRegionAddedEnvelope {\n data: DeliveryRegionAdded;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a delivery region is added to a delivery profile.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_region_added\n * @slug region_added\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileRegionAdded(\n handler: (event: DeliveryProfileRegionAddedEnvelope) => void | Promise<void>\n): void;\n\nexport interface DeliveryProfileRegionRemovedEnvelope {\n data: DeliveryRegionRemoved;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a delivery region is removed from a delivery profile.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_region_removed\n * @slug region_removed\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileRegionRemoved(\n handler: (event: DeliveryProfileRegionRemovedEnvelope) => void | Promise<void>\n): void;\n\nexport interface DeliveryProfileRegionUpdatedEnvelope {\n data: DeliveryRegionUpdated;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a delivery region is updated.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_region_updated\n * @slug region_updated\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileRegionUpdated(\n handler: (event: DeliveryProfileRegionUpdatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface DeliveryProfileUpdatedEnvelope {\n entity: DeliveryProfile;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when a delivery profile is updated.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @webhook\n * @eventType wix.ecom.v1.delivery_profile_updated\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onDeliveryProfileUpdated(\n handler: (event: DeliveryProfileUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates a delivery profile.\n *\n *\n * A site can have up to 99 delivery profiles.\n * Attempting to exceed this limit returns a `DELIVERY_PROFILES_LIMIT_EXCEEDED` error.\n * @param deliveryProfile - Delivery profile to create.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryProfile\n * @requiredField deliveryProfile.deliveryRegions.destinations.countryCode\n * @requiredField deliveryProfile.deliveryRegions.name\n * @requiredField deliveryProfile.name\n * @permissionId ECOM.DELIVERY_PROFILE_CREATE\n * @applicableIdentity APP\n * @returns Created delivery profile.\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.CreateDeliveryProfile\n */\nexport async function createDeliveryProfile(\n deliveryProfile: NonNullablePaths<\n DeliveryProfile,\n | `deliveryRegions.${number}.destinations.${number}.countryCode`\n | `deliveryRegions.${number}.name`\n | `name`,\n 6\n >\n): Promise<\n NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2> & {\n __applicationErrorsType?: CreateDeliveryProfileApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfile: deliveryProfile,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.createDeliveryProfile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.deliveryProfile!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { deliveryProfile: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['deliveryProfile']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a delivery profile.\n * @param deliveryProfileId - Delivery profile ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryProfileId\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @applicableIdentity APP\n * @returns Retrieved delivery profile.\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfile\n */\nexport async function getDeliveryProfile(\n deliveryProfileId: string\n): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: deliveryProfileId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.getDeliveryProfile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.deliveryProfile!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { deliveryProfileId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['deliveryProfileId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a delivery profile.\n *\n * Each time the delivery profile is updated, `revision` increments by 1. The current `revision` must be passed when updating the delivery profile. This ensures you're working with the latest delivery profile and prevents unintended overwrites.\n *\n * This method doesn't support updating delivery regions in the profile. To manage delivery regions, use [Add Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-region), [Update Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-region), or [Remove Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-region).\n * @param _id - Delivery profile ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField deliveryProfile\n * @requiredField deliveryProfile.revision\n * @permissionId ECOM.DELIVERY_PROFILE_UPDATE\n * @applicableIdentity APP\n * @returns Updated delivery profile.\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryProfile\n */\nexport async function updateDeliveryProfile(\n _id: string,\n deliveryProfile: NonNullablePaths<UpdateDeliveryProfile, `revision`, 2>\n): Promise<\n NonNullablePaths<DeliveryProfile, `deliveryRegions`, 2> & {\n __applicationErrorsType?: UpdateDeliveryProfileApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfile: { ...deliveryProfile, id: _id },\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.updateDeliveryProfile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.deliveryProfile!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { deliveryProfile: '$[1]' },\n explicitPathsToArguments: { 'deliveryProfile.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'deliveryProfile']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateDeliveryProfile {\n /**\n * Delivery profile ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Delivery profile name.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /**\n * Whether this is the default delivery profile.\n *\n * > **Notes:**\n * >\n * > - The first delivery profile is automatically created and marked as default when the Wix Stores, Wix Bookings, Wix Events, or Wix Restaurants business solutions are installed on a site.\n * > - Default status can't be changed or transferred to another profile.\n * > - The default profile can't be deleted because every site requires one for core delivery functionality.\n * @readonly\n */\n default?: boolean | null;\n /**\n * Delivery regions in this profile.\n * @maxSize 100\n */\n deliveryRegions?: DeliveryRegion[];\n /**\n * Information about who created the delivery profile.\n *\n * Currently only for use with Wix Restaurants.\n */\n createdBy?: CreatedBy;\n /**\n * Revision number, which increments by 1 each time the delivery profile is updated. To prevent conflicting changes, the current revision must be passed when updating the delivery profile. Ignored when creating a delivery profile.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the delivery profile was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the delivery profile was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Custom field data for the delivery profile object. [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. */\n extendedFields?: ExtendedFields;\n}\n\n/**\n * Deletes a delivery profile.\n *\n *\n * Permanently deletes the delivery profile and its delivery regions and carrier configurations. Delivery regions are unique to each profile and aren't shared across profiles. This action can't be undone.\n *\n * The default delivery profile can't be deleted because every site requires one for core delivery functionality.\n * @param deliveryProfileId - Delivery profile ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryProfileId\n * @permissionId ECOM.DELIVERY_PROFILE_DELETE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.DeleteDeliveryProfile\n */\nexport async function deleteDeliveryProfile(\n deliveryProfileId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: deliveryProfileId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.deleteDeliveryProfile(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { deliveryProfileId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['deliveryProfileId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of up to 100 delivery profiles, given the provided paging, filtering, and sorting.\n *\n * Query Delivery Profiles runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n *\n * To learn how to query delivery profiles, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language).\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.QueryDeliveryProfiles\n */\nexport function queryDeliveryProfiles(): DeliveryProfilesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n DeliveryProfile,\n 'CURSOR',\n QueryDeliveryProfilesRequest,\n QueryDeliveryProfilesResponse\n >({\n func: async (payload: QueryDeliveryProfilesRequest) => {\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.queryDeliveryProfiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryDeliveryProfilesRequest['query']) => {\n const args = [query, {}] as [QueryDeliveryProfilesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryDeliveryProfilesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.deliveryProfiles,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface DeliveryProfilesQueryResult extends QueryCursorResult {\n items: DeliveryProfile[];\n query: DeliveryProfilesQueryBuilder;\n next: () => Promise<DeliveryProfilesQueryResult>;\n prev: () => Promise<DeliveryProfilesQueryResult>;\n}\n\nexport interface DeliveryProfilesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName:\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName:\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName:\n | '_id'\n | 'name'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName:\n | '_id'\n | 'name'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName:\n | '_id'\n | 'name'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName:\n | '_id'\n | 'name'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: '_id' | 'name' | 'createdBy.appId' | 'createdBy.userId',\n value: string\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (\n propertyName:\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any[]\n ) => DeliveryProfilesQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: any\n ) => DeliveryProfilesQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName:\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate',\n value: boolean\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate'\n >\n ) => DeliveryProfilesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<\n | '_id'\n | 'name'\n | 'default'\n | 'createdBy'\n | 'createdBy.appId'\n | 'createdBy.userId'\n | '_createdDate'\n | '_updatedDate'\n >\n ) => DeliveryProfilesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => DeliveryProfilesQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => DeliveryProfilesQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<DeliveryProfilesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.QueryDeliveryProfiles\n * @requiredField query\n */\nexport async function typedQueryDeliveryProfiles(\n query: DeliveryProfileQuery\n): Promise<\n NonNullablePaths<QueryDeliveryProfilesResponse, `deliveryProfiles`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.queryDeliveryProfiles(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeliveryProfileQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: [\n '_createdDate',\n '_id',\n '_updatedDate',\n 'createdBy',\n 'createdBy.appId',\n 'createdBy.userId',\n 'default',\n 'name'\n ];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n DeliveryProfile,\n DeliveryProfileQuerySpec\n>;\nexport type DeliveryProfileQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object in the following format:\n `\"filter\" : {\n \"fieldName1\": \"value1\",\n \"fieldName2\":{\"$operator\":\"value2\"}\n }`\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object in the following format:\n `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]` \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\nexport const { QueryBuilder, Filter, Sort } = createQueryUtils<\n DeliveryProfile,\n DeliveryProfileQuerySpec,\n DeliveryProfileQuery\n>();\n\n/**\n * Adds a delivery region to an existing delivery profile.\n * @param deliveryProfileId - Delivery profile ID.\n * @param deliveryRegion - Delivery region to add.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryProfileId\n * @requiredField deliveryRegion\n * @requiredField deliveryRegion.destinations.countryCode\n * @requiredField deliveryRegion.name\n * @permissionId ECOM.DELIVERY_PROFILE_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryRegion\n */\nexport async function addDeliveryRegion(\n deliveryProfileId: string,\n deliveryRegion: NonNullablePaths<\n DeliveryRegion,\n `destinations.${number}.countryCode` | `name`,\n 4\n >,\n options?: AddDeliveryRegionOptions\n): Promise<\n NonNullablePaths<\n AddDeliveryRegionResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: AddDeliveryRegionApplicationErrors;\n __validationErrorsType?: AddDeliveryRegionValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: deliveryProfileId,\n deliveryRegion: deliveryRegion,\n revision: options?.revision,\n });\n\n const reqOpts = ambassadorWixEcomV1DeliveryProfile.addDeliveryRegion(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryProfileId: '$[0]',\n deliveryRegion: '$[1]',\n revision: '$[2].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['deliveryProfileId', 'deliveryRegion', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface AddDeliveryRegionOptions {\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\n/**\n * Updates a delivery region.\n *\n *\n * This method doesn't support updating delivery carriers in the region. To manage carriers, use [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier), [Update Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-carrier), or [Remove Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-carrier).\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegion\n * @requiredField identifiers\n * @requiredField identifiers.deliveryProfileId\n * @requiredField identifiers.deliveryRegionId\n * @permissionId ECOM.DELIVERY_REGION_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryRegion\n */\nexport async function updateDeliveryRegion(\n identifiers: NonNullablePaths<\n UpdateDeliveryRegionIdentifiers,\n `deliveryProfileId` | `deliveryRegionId`,\n 2\n >,\n deliveryRegion: UpdateDeliveryRegion,\n options?: UpdateDeliveryRegionOptions\n): Promise<\n NonNullablePaths<\n UpdateDeliveryRegionResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: UpdateDeliveryRegionApplicationErrors;\n __validationErrorsType?: UpdateDeliveryRegionValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: identifiers?.deliveryProfileId,\n deliveryRegion: { ...deliveryRegion, id: identifiers?.deliveryRegionId },\n revision: options?.revision,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.updateDeliveryRegion(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { deliveryRegion: '$[1]' },\n explicitPathsToArguments: {\n deliveryProfileId: '$[0].deliveryProfileId',\n 'deliveryRegion.id': '$[0].deliveryRegionId',\n revision: '$[2].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'deliveryRegion', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateDeliveryRegionIdentifiers {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /**\n * Delivery region ID.\n * @format GUID\n * @readonly\n */\n deliveryRegionId?: string | null;\n}\n\nexport interface UpdateDeliveryRegion {\n /**\n * Delivery region ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Delivery region name. For example, `\"Domestic\"` or `\"International\"`.\n * @minLength 1\n * @maxLength 256\n */\n name?: string | null;\n /**\n * Whether this delivery region is active and available during checkout.\n *\n * Default: `true`\n */\n active?: boolean | null;\n /**\n * Delivery carriers assigned to this region. Carriers are managed using the [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier), [Update Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-carrier), and [Remove Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-carrier) methods.\n * @maxSize 25\n * @readonly\n */\n deliveryCarriers?: DeliveryCarrier[];\n /**\n * Geographic destinations covered by this region. If empty, the region applies globally (Rest of World). A site can have up to 250 destinations across all delivery profiles.\n * @maxSize 250\n */\n destinations?: Destination[];\n /**\n * Date and time the delivery region was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\nexport interface UpdateDeliveryRegionOptions {\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\n/**\n * Retrieves a delivery profile by delivery region ID.\n * @param deliveryRegionId - Delivery region ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegionId\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfileByDeliveryRegionId\n */\nexport async function getDeliveryProfileByDeliveryRegionId(\n deliveryRegionId: string\n): Promise<\n NonNullablePaths<\n GetDeliveryProfileByDeliveryRegionIdResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: GetDeliveryProfileByDeliveryRegionIdApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryRegionId: deliveryRegionId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.getDeliveryProfileByDeliveryRegionId(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { deliveryRegionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['deliveryRegionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Removes a delivery region from a delivery profile.\n *\n *\n * You can remove all delivery regions from a profile, leaving the profile empty. An empty profile won't provide shipping options until a new delivery region is added.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.deliveryProfileId\n * @requiredField identifiers.deliveryRegionId\n * @permissionId ECOM.DELIVERY_PROFILE_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryRegion\n */\nexport async function removeDeliveryRegion(\n identifiers: NonNullablePaths<\n RemoveDeliveryRegionIdentifiers,\n `deliveryProfileId` | `deliveryRegionId`,\n 2\n >,\n options?: RemoveDeliveryRegionOptions\n): Promise<\n NonNullablePaths<\n RemoveDeliveryRegionResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: RemoveDeliveryRegionApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: identifiers?.deliveryProfileId,\n deliveryRegionId: identifiers?.deliveryRegionId,\n revision: options?.revision,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.removeDeliveryRegion(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryProfileId: '$[0].deliveryProfileId',\n deliveryRegionId: '$[0].deliveryRegionId',\n revision: '$[1].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface RemoveDeliveryRegionIdentifiers {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId: string;\n /**\n * Delivery region ID.\n * @format GUID\n */\n deliveryRegionId: string;\n}\n\nexport interface RemoveDeliveryRegionOptions {\n /**\n * Delivery profile revision.\n * @readonly\n */\n revision?: string | null;\n}\n\n/**\n * Adds a delivery carrier to a delivery region.\n * @param deliveryRegionId - Delivery region ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegionId\n * @requiredField options\n * @requiredField options.deliveryCarrier\n * @requiredField options.deliveryCarrier.backupRate.amount\n * @permissionId ECOM.DELIVERY_CARRIER_ADD\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryCarrier\n */\nexport async function addDeliveryCarrier(\n deliveryRegionId: string,\n options: NonNullablePaths<\n AddDeliveryCarrierOptions,\n `deliveryCarrier` | `deliveryCarrier.backupRate.amount`,\n 4\n >\n): Promise<\n NonNullablePaths<\n AddDeliveryCarrierResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: AddDeliveryCarrierApplicationErrors;\n __validationErrorsType?: AddDeliveryCarrierValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryRegionId: deliveryRegionId,\n deliveryCarrier: options?.deliveryCarrier,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.addDeliveryCarrier(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryRegionId: '$[0]',\n deliveryCarrier: '$[1].deliveryCarrier',\n },\n singleArgumentUnchanged: false,\n },\n ['deliveryRegionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface AddDeliveryCarrierOptions {\n /** Delivery carrier to add. */\n deliveryCarrier: DeliveryCarrier;\n}\n\n/**\n * Removes a delivery carrier from a delivery region.\n * @param deliveryRegionId - Delivery region ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegionId\n * @requiredField options\n * @requiredField options.appId\n * @permissionId ECOM.DELIVERY_CARRIER_REMOVE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryCarrier\n */\nexport async function removeDeliveryCarrier(\n deliveryRegionId: string,\n options: NonNullablePaths<RemoveDeliveryCarrierOptions, `appId`, 2>\n): Promise<\n NonNullablePaths<\n RemoveDeliveryCarrierResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: RemoveDeliveryCarrierApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryRegionId: deliveryRegionId,\n appId: options?.appId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.removeDeliveryCarrier(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryRegionId: '$[0]',\n appId: '$[1].appId',\n },\n singleArgumentUnchanged: false,\n },\n ['deliveryRegionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface RemoveDeliveryCarrierOptions {\n /**\n * App ID of the delivery carrier to remove.\n * @format GUID\n */\n appId: string;\n}\n\n/**\n * Updates a delivery carrier's settings in a delivery region.\n *\n *\n * This method updates an existing carrier's settings (such as backup rate and additional charges) using a partial update. Only the fields you provide are updated; other carrier settings remain unchanged.\n *\n * To add a new carrier to a region, use [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier).\n * @param deliveryRegionId - Delivery region ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegionId\n * @requiredField options.deliveryCarrier.appId\n * @permissionId ECOM.DELIVERY_CARRIER_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryCarrier\n */\nexport async function updateDeliveryCarrier(\n deliveryRegionId: string,\n options?: NonNullablePaths<\n UpdateDeliveryCarrierOptions,\n `deliveryCarrier.appId`,\n 3\n >\n): Promise<\n NonNullablePaths<\n UpdateDeliveryCarrierResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n > & {\n __applicationErrorsType?: UpdateDeliveryCarrierApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryRegionId: deliveryRegionId,\n deliveryCarrier: options?.deliveryCarrier,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.updateDeliveryCarrier(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryRegionId: '$[0]',\n deliveryCarrier: '$[1].deliveryCarrier',\n },\n singleArgumentUnchanged: false,\n },\n ['deliveryRegionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateDeliveryCarrierOptions {\n /** Delivery carrier to update. */\n deliveryCarrier?: DeliveryCarrier;\n}\n\n/**\n * Retrieves a list of all delivery carriers installed on a site.\n *\n *\n * Use this method to discover available carriers before adding them to delivery regions.\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DELIVERY_CARRIER_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListInstalledDeliveryCarriers\n */\nexport async function listInstalledDeliveryCarriers(): Promise<\n NonNullablePaths<\n ListInstalledDeliveryCarriersResponse,\n | `installedDeliveryCarriers`\n | `installedDeliveryCarriers.${number}._id`\n | `installedDeliveryCarriers.${number}.displayName`\n | `installedDeliveryCarriers.${number}.toggleGetCarrierSettingsEnabled`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.listInstalledDeliveryCarriers(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves delivery destination properties.\n *\n *\n * Returns properties for Rest of World, as well as aggregated country and subdivision data. Properties include whether postal codes are required and whether pickup is the only delivery option for each destination.\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DELIVERY_PROFILE_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryDestinationProperties\n */\nexport async function getDeliveryDestinationProperties(): Promise<\n NonNullablePaths<\n GetDeliveryDestinationPropertiesResponse,\n | `restOfWorld.postalCodeRequired`\n | `restOfWorld.pickupOnly`\n | `countries`\n | `countries.${number}.country`\n | `countries.${number}.deliveryDestinationProperties.postalCodeRequired`\n | `countries.${number}.deliveryDestinationProperties.pickupOnly`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.getDeliveryDestinationProperties(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves delivery carrier settings for a delivery profile.\n *\n *\n * Returns detailed carrier configurations, including regional settings for each carrier. This method provides more comprehensive information than [List Installed Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-installed-delivery-carriers).\n * @param deliveryProfileId - Delivery profile ID.\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryProfileId\n * @permissionId ECOM.DELIVERY_CARRIER_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarriers\n */\nexport async function listDeliveryCarriers(\n deliveryProfileId: string,\n options?: ListDeliveryCarriersOptions\n): Promise<\n NonNullablePaths<\n ListDeliveryCarriersResponse,\n | `results`\n | `results.${number}.deliveryCarrierMetadata.success`\n | `results.${number}.deliveryCarrierMetadata.error.code`\n | `results.${number}.deliveryCarrierMetadata.error.description`\n | `results.${number}.deliveryCarrierDetails._id`\n | `results.${number}.deliveryCarrierDetails.displayName`\n | `results.${number}.deliveryCarrierDetails.toggleGetCarrierSettingsEnabled`\n | `results.${number}.deliveryCarrierDetails.toggleUpdateCarrierActiveStatusEnabled`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n > & {\n __applicationErrorsType?: ListDeliveryCarriersApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n deliveryProfileId: deliveryProfileId,\n appIds: options?.appIds,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.listDeliveryCarriers(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n deliveryProfileId: '$[0]',\n appIds: '$[1].appIds',\n },\n singleArgumentUnchanged: false,\n },\n ['deliveryProfileId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListDeliveryCarriersOptions {\n /**\n * App IDs of the delivery carriers to retrieve settings for.\n * @format GUID\n * @minSize 1\n * @maxSize 25\n */\n appIds?: string[];\n}\n\n/**\n * Updates a carrier's external active settings.\n * @param carrierId - Carrier app ID.\n * @internal\n * @documentationMaturity preview\n * @requiredField carrierId\n * @requiredField options\n * @requiredField options.active\n * @requiredField options.rowId\n * @permissionId ECOM.DELIVERY_CARRIER_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateCarrierSettings\n */\nexport async function updateCarrierSettings(\n carrierId: string,\n options: NonNullablePaths<UpdateCarrierSettingsOptions, `active` | `rowId`, 2>\n): Promise<\n void & {\n __applicationErrorsType?: UpdateCarrierSettingsApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n carrierId: carrierId,\n rowId: options?.rowId,\n active: options?.active,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.updateCarrierSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n carrierId: '$[0]',\n rowId: '$[1].rowId',\n active: '$[1].active',\n },\n singleArgumentUnchanged: false,\n },\n ['carrierId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateCarrierSettingsOptions {\n /**\n * Row ID in the carrier's dashboard settings table that identifies the specific shipping configuration to update. Retrieved from [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).\n * @format GUID\n */\n rowId: string;\n /** New active status. */\n active: boolean | null;\n}\n\n/**\n * Sets a delivery carrier's active status.\n * @param carrierAppId - Carrier app ID.\n * @public\n * @documentationMaturity preview\n * @requiredField carrierAppId\n * @requiredField options\n * @requiredField options.active\n * @requiredField options.rowId\n * @permissionId ECOM.DELIVERY_CARRIER_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.SetDeliveryCarrierActiveStatus\n */\nexport async function setDeliveryCarrierActiveStatus(\n carrierAppId: string,\n options: NonNullablePaths<\n SetDeliveryCarrierActiveStatusOptions,\n `active` | `rowId`,\n 2\n >\n): Promise<\n void & {\n __applicationErrorsType?: SetDeliveryCarrierActiveStatusApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n carrierAppId: carrierAppId,\n rowId: options?.rowId,\n active: options?.active,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.setDeliveryCarrierActiveStatus(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n carrierAppId: '$[0]',\n rowId: '$[1].rowId',\n active: '$[1].active',\n },\n singleArgumentUnchanged: false,\n },\n ['carrierAppId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SetDeliveryCarrierActiveStatusOptions {\n /**\n * Row identifier in the carrier's dashboard settings table that identifies the specific shipping configuration to update.\n *\n * Pass the `row.key` field from the response of [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).\n * @format GUID\n */\n rowId: string;\n /** Whether the configuration defined in the row is active. */\n active: boolean | null;\n}\n\n/**\n * Updates extended fields of a delivery profile without incrementing revision.\n * @param _id - ID of the entity to update.\n * @param namespace - Identifier for the app whose extended fields are being updated.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField namespace\n * @requiredField options\n * @requiredField options.namespaceData\n * @permissionId ECOM.DELIVERY_PROFILE_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateExtendedFields\n */\nexport async function updateExtendedFields(\n _id: string,\n namespace: string,\n options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>\n): Promise<\n NonNullablePaths<\n UpdateExtendedFieldsResponse,\n `deliveryProfile.deliveryRegions`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n namespace: namespace,\n namespaceData: options?.namespaceData,\n });\n\n const reqOpts =\n ambassadorWixEcomV1DeliveryProfile.updateExtendedFields(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n namespace: '$[1]',\n namespaceData: '$[2].namespaceData',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'namespace', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateExtendedFieldsOptions {\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData: Record<string, any> | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/ecom/v1/delivery-profiles',\n destPath: '/v1/delivery-profiles',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/delivery-profiles-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/delivery-profiles',\n destPath: '/v1/delivery-profiles',\n },\n {\n srcPath: '/ecom/v1/delivery-profiles/update-carrier-settings',\n destPath: '/v1/delivery-carriers/update-settings',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/ecom/v1/delivery-profiles',\n destPath: '/v1/delivery-profiles',\n },\n {\n srcPath: '/ecom/v1/delivery-profiles/update-carrier-settings',\n destPath: '/v1/delivery-carriers/update-settings',\n },\n ],\n _: [\n {\n srcPath: '/ecom/v1/delivery-profiles',\n destPath: '/v1/delivery-profiles',\n },\n {\n srcPath: '/ecom/v1/delivery-profiles/update-carrier-settings',\n destPath: '/v1/delivery-carriers/update-settings',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_delivery-profile';\n\n/**\n * Creates a delivery profile.\n *\n *\n * A site can have up to 99 delivery profiles.\n * Attempting to exceed this limit returns a `DELIVERY_PROFILES_LIMIT_EXCEEDED` error.\n */\nexport function createDeliveryProfile(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDeliveryProfile({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.CreateDeliveryProfile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDeliveryProfile;\n}\n\n/** Retrieves a delivery profile. */\nexport function getDeliveryProfile(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDeliveryProfile({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/{deliveryProfileId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDeliveryProfile;\n}\n\n/**\n * Updates a delivery profile.\n *\n * Each time the delivery profile is updated, `revision` increments by 1. The current `revision` must be passed when updating the delivery profile. This ensures you're working with the latest delivery profile and prevents unintended overwrites.\n *\n * This method doesn't support updating delivery regions in the profile. To manage delivery regions, use [Add Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-region), [Update Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-region), or [Remove Delivery Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-region).\n */\nexport function updateDeliveryProfile(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateDeliveryProfile({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryProfile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/{deliveryProfile.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDeliveryProfile;\n}\n\n/**\n * Deletes a delivery profile.\n *\n *\n * Permanently deletes the delivery profile and its delivery regions and carrier configurations. Delivery regions are unique to each profile and aren't shared across profiles. This action can't be undone.\n *\n * The default delivery profile can't be deleted because every site requires one for core delivery functionality.\n */\nexport function deleteDeliveryProfile(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteDeliveryProfile({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.DeleteDeliveryProfile',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/{deliveryProfileId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteDeliveryProfile;\n}\n\n/**\n * Retrieves a list of up to 100 delivery profiles, given the provided paging, filtering, and sorting.\n *\n * Query Delivery Profiles runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n *\n * To learn how to query delivery profiles, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language).\n */\nexport function queryDeliveryProfiles(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDeliveryProfiles({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.QueryDeliveryProfiles',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfiles.createdDate' },\n { path: 'deliveryProfiles.updatedDate' },\n { path: 'deliveryProfiles.deliveryRegions.createdDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDeliveryProfiles;\n}\n\n/** Adds a delivery region to an existing delivery profile. */\nexport function addDeliveryRegion(payload: object): RequestOptionsFactory<any> {\n function __addDeliveryRegion({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'deliveryRegion.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/{deliveryProfileId}/delivery-region',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addDeliveryRegion;\n}\n\n/**\n * Updates a delivery region.\n *\n *\n * This method doesn't support updating delivery carriers in the region. To manage carriers, use [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier), [Update Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-carrier), or [Remove Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-carrier).\n */\nexport function updateDeliveryRegion(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateDeliveryRegion({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'deliveryRegion.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath:\n '/v1/delivery-profiles/{deliveryProfileId}/delivery-region/{deliveryRegion.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDeliveryRegion;\n}\n\n/** Retrieves a delivery profile by delivery region ID. */\nexport function getDeliveryProfileByDeliveryRegionId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDeliveryProfileByDeliveryRegionId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfileByDeliveryRegionId',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/delivery-regions/{deliveryRegionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDeliveryProfileByDeliveryRegionId;\n}\n\n/**\n * Removes a delivery region from a delivery profile.\n *\n *\n * You can remove all delivery regions from a profile, leaving the profile empty. An empty profile won't provide shipping options until a new delivery region is added.\n */\nexport function removeDeliveryRegion(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeDeliveryRegion({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath:\n '/v1/delivery-profiles/{deliveryProfileId}/delivery-region/{deliveryRegionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeDeliveryRegion;\n}\n\n/** Adds a delivery carrier to a delivery region. */\nexport function addDeliveryCarrier(\n payload: object\n): RequestOptionsFactory<any> {\n function __addDeliveryCarrier({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryCarrier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/add-delivery-carrier',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addDeliveryCarrier;\n}\n\n/** Removes a delivery carrier from a delivery region. */\nexport function removeDeliveryCarrier(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeDeliveryCarrier({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryCarrier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/remove-delivery-carrier',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeDeliveryCarrier;\n}\n\n/**\n * Updates a delivery carrier's settings in a delivery region.\n *\n *\n * This method updates an existing carrier's settings (such as backup rate and additional charges) using a partial update. Only the fields you provide are updated; other carrier settings remain unchanged.\n *\n * To add a new carrier to a region, use [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier).\n */\nexport function updateDeliveryCarrier(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateDeliveryCarrier({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryCarrier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/update-delivery-carrier',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDeliveryCarrier;\n}\n\n/**\n * Retrieves a list of all delivery carriers installed on a site.\n *\n *\n * Use this method to discover available carriers before adding them to delivery regions.\n */\nexport function listInstalledDeliveryCarriers(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstalledDeliveryCarriers({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListInstalledDeliveryCarriers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/installed-carriers',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listInstalledDeliveryCarriers;\n}\n\n/**\n * Retrieves delivery destination properties.\n *\n *\n * Returns properties for Rest of World, as well as aggregated country and subdivision data. Properties include whether postal codes are required and whether pickup is the only delivery option for each destination.\n */\nexport function getDeliveryDestinationProperties(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDeliveryDestinationProperties({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryDestinationProperties',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/delivery-destination-properties',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getDeliveryDestinationProperties;\n}\n\n/**\n * Retrieves delivery carrier settings for a delivery profile.\n *\n *\n * Returns detailed carrier configurations, including regional settings for each carrier. This method provides more comprehensive information than [List Installed Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-installed-delivery-carriers).\n */\nexport function listDeliveryCarriers(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDeliveryCarriers({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarriers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath:\n '/v1/delivery-profiles/{deliveryProfileId}/delivery-carriers',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __listDeliveryCarriers;\n}\n\n/** Updates a carrier's external active settings. */\nexport function updateCarrierSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCarrierSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateCarrierSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-carriers/update-settings',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __updateCarrierSettings;\n}\n\n/** Sets a delivery carrier's active status. */\nexport function setDeliveryCarrierActiveStatus(\n payload: object\n): RequestOptionsFactory<any> {\n function __setDeliveryCarrierActiveStatus({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.SetDeliveryCarrierActiveStatus',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/delivery-carriers/set-active-status',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __setDeliveryCarrierActiveStatus;\n}\n\n/** Updates extended fields of a delivery profile without incrementing revision. */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.delivery_profile',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({\n protoPath: '/v1/delivery-profiles/{id}/update-extended-fields',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'deliveryProfile.createdDate' },\n { path: 'deliveryProfile.updatedDate' },\n { path: 'deliveryProfile.deliveryRegions.createdDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,mDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAA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AAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD,IAAI;AAAA,IACJ;AAAA,IACA,eAAe,SAAS;AAAA,EAC1B,CAAC;AAED,QAAM,UAC+B,qBAAqB,OAAO;AAEjE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,IAAI;AAAA,UACJ,WAAW;AAAA,UACX,eAAe;AAAA,QACjB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,OAAO,aAAa,SAAS;AAAA,IAChC;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","SortOrder","DestinationScope","State","SiteCreatedContext","Namespace","DeleteStatus","WebhookIdentityType","createDeliveryProfile","getDeliveryProfile","updateDeliveryProfile","deleteDeliveryProfile","queryDeliveryProfiles","addDeliveryRegion","updateDeliveryRegion","getDeliveryProfileByDeliveryRegionId","removeDeliveryRegion","addDeliveryCarrier","removeDeliveryCarrier","updateDeliveryCarrier","listInstalledDeliveryCarriers","getDeliveryDestinationProperties","listDeliveryCarriers","updateCarrierSettings","setDeliveryCarrierActiveStatus","updateExtendedFields"]}