@wix/auto_sdk_bookings_add-ons 1.0.13 → 1.0.14

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/addons-v1-add-on-add-ons.universal.ts","../../../src/addons-v1-add-on-add-ons.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 ambassadorWixAddonsV1AddOn from './addons-v1-add-on-add-ons.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Add-ons are optional extras that extend business offerings (such as booking services) with additional features, time, or products for an extra cost. */\nexport interface AddOn extends AddOnAddOnInfoOneOf {\n /**\n * Duration in minutes for duration-based add-ons that extend offering time.\n * @min 1\n * @max 1440\n */\n durationInMinutes?: number;\n /**\n * Maximum quantity customers can purchase for quantity-based add-ons.\n * @min 1\n * @max 9999\n */\n maxQuantity?: number;\n /**\n * Add-on ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the add-on is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the add-on.\n *\n * Ignored when creating an add-on.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the add-on was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the add-on was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Display name of the add-on shown to customers.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /** Pricing information for the add-on. */\n price?: Money;\n /**\n * ID of the [tax group](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/tax/tax-groups/introduction) to categorize the add-on for tax calculation in [Wix eCommerce](https://dev.wix.com/docs/rest/business-solutions/e-commerce/introduction).\n * Learn more about [how Wix eCommerce implements tax calculation](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/tax/introduction).\n *\n * This field doesn't apply to custom checkout/billing implementations.\n * @format GUID\n */\n taxGroup?: string | null;\n /** Data extensions enabling users to save custom data related to the add-on. */\n extendedFields?: ExtendedFields;\n /** [Tags](https://dev.wix.com/docs/rest/business-management/tags/introduction) assigned to add-ons for categorization and filtering purposes. */\n tags?: Tags;\n}\n\n/** @oneof */\nexport interface AddOnAddOnInfoOneOf {\n /**\n * Duration in minutes for duration-based add-ons that extend offering time.\n * @min 1\n * @max 1440\n */\n durationInMinutes?: number;\n /**\n * Maximum quantity customers can purchase for quantity-based add-ons.\n * @min 1\n * @max 9999\n */\n maxQuantity?: number;\n}\n\n/**\n * Money.\n * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.\n */\nexport interface Money {\n /**\n * Add-on price amount as a decimal string with period as decimal separator. For example, `3.99` for a $3.99 add-on or `15.00` for a $15.00 add-on.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:2 }\n */\n value?: string;\n /**\n * Currency code for the add-on price. Must be a valid [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. For example, `USD` for US dollars or `EUR` for euros.\n * @format CURRENCY\n */\n currency?: string;\n /**\n * Add-on price amount as a decimal string in local format for display purposes. For example, `$3.99` for US format or `3,99 €` for European format.\n * @maxLength 50\n */\n formattedValue?: 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/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface CreateAddOnRequest {\n /** Add-on to create. */\n addOn: AddOn;\n}\n\nexport interface CreateAddOnResponse {\n /** Created add-on. */\n addOn?: AddOn;\n}\n\nexport interface GetAddOnRequest {\n /**\n * ID of the add-on to retrieve.\n * @format GUID\n */\n addOnId: string;\n}\n\nexport interface GetAddOnResponse {\n /** Retrieved add-on. */\n addOn?: AddOn;\n}\n\nexport interface UpdateAddOnRequest {\n /** Add-on to update. */\n addOn: AddOn;\n}\n\nexport interface UpdateAddOnResponse {\n /** Updated add-on. */\n addOn?: AddOn;\n}\n\nexport interface DeleteAddOnRequest {\n /**\n * ID of the add-on to delete.\n * @format GUID\n */\n addOnId: string;\n}\n\nexport interface DeleteAddOnResponse {}\n\nexport interface QueryAddOnsRequest {\n /** Filtering, sorting, and paging details. */\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 * Refer to [supported filters](https://dev.wix.com/docs/rest/business-solutions/bookings/services/add-ons/supported-filters) for a complete list of supported fields.\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 QueryAddOnsResponse {\n /** List of add-ons matching the query. */\n addOns?: AddOn[];\n /** Paging metadata for the query results. */\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 QueryLocalizedAddOnsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface QueryLocalizedAddOnsResponse {\n /** List of AddOns. */\n addOns?: AddOn[];\n /** List of translated AddOns. */\n translatedAddOns?: AddOn[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface BulkCreateAddOnsRequest {\n /**\n * List of add-ons to create.\n * @minSize 1\n * @maxSize 100\n */\n addOns: AddOn[];\n /** Whether to return the created add-ons in the response. */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateAddOnsResponse {\n /**\n * Results of the bulk create operation including add-ons and metadata.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkAddOnResult[];\n /** Metadata for the bulk create operation. */\n bulkActionMetadata?: BulkActionMetadata;\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 /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\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 BulkAddOnResult {\n /** Metadata for the individual create operation. */\n itemMetadata?: ItemMetadata;\n /** Created add-on. Only present if `return_entity` was set to true in the request. */\n item?: AddOn;\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 BulkUpdateAddOnsRequest {\n /**\n * List of add-ons to update.\n * @minSize 1\n * @maxSize 100\n */\n addOns: MaskedAddOn[];\n /** Whether to return the updated add-ons in the response. */\n returnEntity?: boolean;\n}\n\nexport interface MaskedAddOn {\n /** Add-on to update. May be partial. */\n addOn?: AddOn;\n}\n\nexport interface BulkUpdateAddOnsResponse {\n /**\n * Results of the bulk update operation.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateAddOnsResponseBulkAddOnResult[];\n /** Metadata for the bulk update operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateAddOnsResponseBulkAddOnResult {\n /** Metadata for the individual update operation. */\n itemMetadata?: ItemMetadata;\n /** Updated add-on. Only present if `return_entity` was set to true in the request. */\n item?: AddOn;\n}\n\nexport interface BulkDeleteAddOnsRequest {\n /**\n * IDs of add-ons to delete.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n addOnIds: string[];\n}\n\nexport interface BulkDeleteAddOnsResponse {\n /**\n * Results of the bulk delete operation.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteAddOnsResponseBulkAddOnResult[];\n /** Metadata for the bulk delete operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteAddOnsResponseBulkAddOnResult {\n /** Metadata for the individual delete operation. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateAddOnTagsRequest {\n /**\n * IDs of add-ons to update tags for.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n addOnIds?: string[];\n /** Tags to assign to the add-ons. */\n assignTags?: Tags;\n /** Tags to remove from the add-ons. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateAddOnTagsResponse {\n /**\n * Results of the bulk tag update operation.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateAddOnTagsResult[];\n /** Metadata for the bulk tag update operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateAddOnTagsResult {\n /** Metadata for the individual tag update operation. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateAddOnTagsByFilterRequest {\n /** Filter to select add-ons for tag updates. */\n filter?: Record<string, any> | null;\n /** Tags to assign to the filtered add-ons. */\n assignTags?: Tags;\n /** Tags to remove from the filtered add-ons. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateAddOnTagsByFilterResponse {\n /**\n * Job ID for tracking the asynchronous operation.\n * @format GUID\n */\n jobId?: string;\n}\n\n/** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */\nexport interface SitePropertiesNotification {\n /** The site ID for which this update notification applies. */\n metasiteId?: string;\n /** The actual update event. */\n event?: SitePropertiesEvent;\n /**\n * A convenience set of mappings from the MetaSite ID to its constituent services.\n * @maxSize 500\n */\n translations?: Translation[];\n /** Context of the notification */\n changeContext?: ChangeContext;\n}\n\n/** The actual update event for a particular notification. */\nexport interface SitePropertiesEvent {\n /** Version of the site's properties represented by this update. */\n version?: number;\n /** Set of properties that were updated - corresponds to the fields in \"properties\". */\n fields?: string[];\n /** Updated properties. */\n properties?: Properties;\n}\n\nexport interface Properties {\n /** Site categories. */\n categories?: Categories;\n /** Site locale. */\n locale?: Locale;\n /**\n * Site language.\n *\n * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n */\n language?: string | null;\n /**\n * Site currency format used to bill customers.\n *\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n */\n paymentCurrency?: string | null;\n /** Timezone in `America/New_York` format. */\n timeZone?: string | null;\n /** Email address. */\n email?: string | null;\n /** Phone number. */\n phone?: string | null;\n /** Fax number. */\n fax?: string | null;\n /** Address. */\n address?: Address;\n /** Site display name. */\n siteDisplayName?: string | null;\n /** Business name. */\n businessName?: string | null;\n /** Path to the site's logo in Wix Media (without Wix Media base URL). */\n logo?: string | null;\n /** Site description. */\n description?: string | null;\n /**\n * Business schedule. Regular and exceptional time periods when the business is open or the service is available.\n *\n * __Note:__ Not supported by Wix Bookings.\n */\n businessSchedule?: BusinessSchedule;\n /** Supported languages of a site and the primary language. */\n multilingual?: Multilingual;\n /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */\n consentPolicy?: ConsentPolicy;\n /**\n * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.\n *\n * Site business type.\n */\n businessConfig?: string | null;\n /** External site URL that uses Wix as its headless business solution. */\n externalSiteUrl?: string | null;\n /** Track clicks analytics. */\n trackClicksAnalytics?: boolean;\n}\n\nexport interface Categories {\n /** Primary site category. */\n primary?: string;\n /**\n * Secondary site category.\n * @maxSize 50\n */\n secondary?: string[];\n /** Business Term Id */\n businessTermId?: string | null;\n}\n\nexport interface Locale {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */\n country?: string;\n}\n\nexport interface Address {\n /** Street name. */\n street?: string;\n /** City name. */\n city?: string;\n /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */\n country?: string;\n /** State. */\n state?: string;\n /**\n * Zip or postal code.\n * @maxLength 20\n */\n zip?: string;\n /** Extra information to be displayed in the address. */\n hint?: AddressHint;\n /** Whether this address represents a physical location. */\n isPhysical?: boolean;\n /** Google-formatted version of this address. */\n googleFormattedAddress?: string;\n /** Street number. */\n streetNumber?: string;\n /** Apartment number. */\n apartmentNumber?: string;\n /** Geographic coordinates of location. */\n coordinates?: GeoCoordinates;\n}\n\n/**\n * Extra information on displayed addresses.\n * This is used for display purposes. Used to add additional data about the address, such as \"In the passage\".\n * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.\n */\nexport interface AddressHint {\n /** Extra text displayed next to, or instead of, the actual address. */\n text?: string;\n /** Where the extra text should be displayed. */\n placement?: PlacementTypeWithLiterals;\n}\n\n/** Where the extra text should be displayed: before, after or instead of the actual address. */\nexport enum PlacementType {\n BEFORE = 'BEFORE',\n AFTER = 'AFTER',\n REPLACE = 'REPLACE',\n}\n\n/** @enumType */\nexport type PlacementTypeWithLiterals =\n | PlacementType\n | 'BEFORE'\n | 'AFTER'\n | 'REPLACE';\n\n/** Geocoordinates for a particular address. */\nexport interface GeoCoordinates {\n /** Latitude of the location. Must be between -90 and 90. */\n latitude?: number;\n /** Longitude of the location. Must be between -180 and 180. */\n longitude?: number;\n}\n\n/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */\nexport interface BusinessSchedule {\n /**\n * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.\n * @maxSize 100\n */\n periods?: TimePeriod[];\n /**\n * Exceptions to the business's regular hours. The business can be open or closed during the exception.\n * @maxSize 100\n */\n specialHourPeriod?: SpecialHourPeriod[];\n}\n\n/** Weekly recurring time periods when the business is regularly open or the service is available. */\nexport interface TimePeriod {\n /** Day of the week the period starts on. */\n openDay?: DayOfWeekWithLiterals;\n /**\n * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n */\n openTime?: string;\n /** Day of the week the period ends on. */\n closeDay?: DayOfWeekWithLiterals;\n /**\n * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n *\n * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.\n */\n closeTime?: string;\n}\n\n/** Enumerates the days of the week. */\nexport enum DayOfWeek {\n MONDAY = 'MONDAY',\n TUESDAY = 'TUESDAY',\n WEDNESDAY = 'WEDNESDAY',\n THURSDAY = 'THURSDAY',\n FRIDAY = 'FRIDAY',\n SATURDAY = 'SATURDAY',\n SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n | DayOfWeek\n | 'MONDAY'\n | 'TUESDAY'\n | 'WEDNESDAY'\n | 'THURSDAY'\n | 'FRIDAY'\n | 'SATURDAY'\n | 'SUNDAY';\n\n/** Exception to the business's regular hours. The business can be open or closed during the exception. */\nexport interface SpecialHourPeriod {\n /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n startDate?: string;\n /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n endDate?: string;\n /**\n * Whether the business is closed (or the service is not available) during the exception.\n *\n * Default: `true`.\n */\n isClosed?: boolean;\n /** Additional info about the exception. For example, \"We close earlier on New Year's Eve.\" */\n comment?: string;\n}\n\nexport interface Multilingual {\n /**\n * Supported languages list.\n * @maxSize 200\n */\n supportedLanguages?: SupportedLanguage[];\n /** Whether to redirect to user language. */\n autoRedirect?: boolean;\n}\n\nexport interface SupportedLanguage {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Locale. */\n locale?: Locale;\n /** Whether the supported language is the primary language for the site. */\n isPrimary?: boolean;\n /** Language icon. */\n countryCode?: string;\n /** How the language will be resolved. For internal use. */\n resolutionMethod?: ResolutionMethodWithLiterals;\n /** Whether the supported language is the primary language for site visitors. */\n isVisitorPrimary?: boolean | null;\n}\n\nexport enum ResolutionMethod {\n QUERY_PARAM = 'QUERY_PARAM',\n SUBDOMAIN = 'SUBDOMAIN',\n SUBDIRECTORY = 'SUBDIRECTORY',\n}\n\n/** @enumType */\nexport type ResolutionMethodWithLiterals =\n | ResolutionMethod\n | 'QUERY_PARAM'\n | 'SUBDOMAIN'\n | 'SUBDIRECTORY';\n\nexport interface ConsentPolicy {\n /** Whether the site uses cookies that are essential to site operation. Always `true`. */\n essential?: boolean | null;\n /** Whether the site uses cookies that affect site performance and other functional measurements. */\n functional?: boolean | null;\n /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */\n analytics?: boolean | null;\n /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */\n advertising?: boolean | null;\n /** CCPA compliance flag. */\n dataToThirdParty?: boolean | null;\n}\n\n/** A single mapping from the MetaSite ID to a particular service. */\nexport interface Translation {\n /** The service type. */\n serviceType?: string;\n /** The application definition ID; this only applies to services of type ThirdPartyApps. */\n appDefId?: string;\n /** The instance ID of the service. */\n instanceId?: string;\n}\n\nexport interface ChangeContext extends ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\n/** @oneof */\nexport interface ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface SiteCreated {\n /** Origin template site id. */\n originTemplateId?: string | null;\n}\n\nexport interface SiteCloned {\n /** Origin site id. */\n originMetaSiteId?: string;\n}\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}\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 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}\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}\n\nexport interface AddOnCreatedEnvelope {\n entity: AddOn;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when an add-on is created.\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId ADD_ONS.ADD_ON_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.addons.v1.add_on_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onAddOnCreated(\n handler: (event: AddOnCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface AddOnDeletedEnvelope {\n entity: AddOn;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when an add-on is deleted.\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId ADD_ONS.ADD_ON_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.addons.v1.add_on_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onAddOnDeleted(\n handler: (event: AddOnDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface AddOnUpdatedEnvelope {\n entity: AddOn;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when an add-on is updated.\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId ADD_ONS.ADD_ON_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.addons.v1.add_on_updated\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onAddOnUpdated(\n handler: (event: AddOnUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates an add-on.\n * @param addOn - Add-on to create.\n * @public\n * @documentationMaturity preview\n * @requiredField addOn\n * @permissionId ADD_ONS.ADD_ON_CREATE\n * @applicableIdentity APP\n * @returns Created add-on.\n * @fqn wix.addons.v1.AddOnsService.CreateAddOn\n */\nexport async function createAddOn(\n addOn: AddOn\n): Promise<\n NonNullablePaths<\n AddOn,\n | `durationInMinutes`\n | `maxQuantity`\n | `price.value`\n | `price.currency`\n | `tags.privateTags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ addOn: addOn });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.createAddOn(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.addOn!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { addOn: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['addOn']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves an add-on.\n * @param addOnId - ID of the add-on to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField addOnId\n * @permissionId ADD_ONS.ADD_ON_READ\n * @applicableIdentity APP\n * @returns Retrieved add-on.\n * @fqn wix.addons.v1.AddOnsService.GetAddOn\n */\nexport async function getAddOn(\n addOnId: string\n): Promise<\n NonNullablePaths<\n AddOn,\n | `durationInMinutes`\n | `maxQuantity`\n | `price.value`\n | `price.currency`\n | `tags.privateTags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ addOnId: addOnId });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.getAddOn(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.addOn!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { addOnId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['addOnId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates an existing add-on.\n *\n * Each time an add-on is updated, its revision number increments by 1.\n * The current revision must be passed when updating to ensure you're working with the latest version and prevent unintended overwrites.\n * @param _id - Add-on ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField addOn\n * @requiredField addOn.revision\n * @permissionId ADD_ONS.ADD_ON_UPDATE\n * @applicableIdentity APP\n * @returns Updated add-on.\n * @fqn wix.addons.v1.AddOnsService.UpdateAddOn\n */\nexport async function updateAddOn(\n _id: string,\n addOn: NonNullablePaths<UpdateAddOn, `revision`, 2>\n): Promise<\n NonNullablePaths<\n AddOn,\n | `durationInMinutes`\n | `maxQuantity`\n | `price.value`\n | `price.currency`\n | `tags.privateTags.tagIds`,\n 4\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 addOn: { ...addOn, id: _id },\n });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.updateAddOn(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.addOn!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { addOn: '$[1]' },\n explicitPathsToArguments: { 'addOn.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'addOn']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateAddOn {\n /**\n * Duration in minutes for duration-based add-ons that extend offering time.\n * @min 1\n * @max 1440\n */\n durationInMinutes?: number;\n /**\n * Maximum quantity customers can purchase for quantity-based add-ons.\n * @min 1\n * @max 9999\n */\n maxQuantity?: number;\n /**\n * Add-on ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the add-on is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the add-on.\n *\n * Ignored when creating an add-on.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the add-on was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the add-on was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Display name of the add-on shown to customers.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /** Pricing information for the add-on. */\n price?: Money;\n /**\n * ID of the [tax group](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/tax/tax-groups/introduction) to categorize the add-on for tax calculation in [Wix eCommerce](https://dev.wix.com/docs/rest/business-solutions/e-commerce/introduction).\n * Learn more about [how Wix eCommerce implements tax calculation](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/tax/introduction).\n *\n * This field doesn't apply to custom checkout/billing implementations.\n * @format GUID\n */\n taxGroup?: string | null;\n /** Data extensions enabling users to save custom data related to the add-on. */\n extendedFields?: ExtendedFields;\n /** [Tags](https://dev.wix.com/docs/rest/business-management/tags/introduction) assigned to add-ons for categorization and filtering purposes. */\n tags?: Tags;\n}\n\n/**\n * Deletes an add-on and removes it from all add-on groups.\n * @param addOnId - ID of the add-on to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField addOnId\n * @permissionId ADD_ONS.ADD_ON_DELETE\n * @applicableIdentity APP\n * @fqn wix.addons.v1.AddOnsService.DeleteAddOn\n */\nexport async function deleteAddOn(addOnId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ addOnId: addOnId });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.deleteAddOn(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: { addOnId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['addOnId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves up to 100 add-ons, given the specified filtering, sorting, and paging.\n *\n * By default, results are sorted by `id` in ascending order.\n *\n * For supported filtering options, see [Supported Filters](https://dev.wix.com/docs/rest/business-solutions/bookings/services/add-ons/supported-filters).\n * @public\n * @documentationMaturity preview\n * @permissionId ADD_ONS.ADD_ON_READ\n * @applicableIdentity APP\n * @fqn wix.addons.v1.AddOnsService.QueryAddOns\n */\nexport function queryAddOns(): AddOnsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<AddOn, 'CURSOR', QueryAddOnsRequest, QueryAddOnsResponse>(\n {\n func: async (payload: QueryAddOnsRequest) => {\n const reqOpts = ambassadorWixAddonsV1AddOn.queryAddOns(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: QueryAddOnsRequest['query']) => {\n const args = [query, {}] as [QueryAddOnsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryAddOnsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.addOns,\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}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface AddOnsQueryResult extends QueryCursorResult {\n items: AddOn[];\n query: AddOnsQueryBuilder;\n next: () => Promise<AddOnsQueryResult>;\n prev: () => Promise<AddOnsQueryResult>;\n}\n\nexport interface AddOnsQueryBuilder {\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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:\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: string\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any[]\n ) => AddOnsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName:\n | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: boolean\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup'\n >\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup'\n >\n ) => AddOnsQueryBuilder;\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) => AddOnsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => AddOnsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<AddOnsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.addons.v1.AddOnsService.QueryAddOns\n * @requiredField query\n */\nexport async function typedQueryAddOns(\n query: AddOnQuery\n): Promise<\n NonNullablePaths<\n QueryAddOnsResponse,\n | `addOns`\n | `addOns.${number}.durationInMinutes`\n | `addOns.${number}.maxQuantity`\n | `addOns.${number}.price.value`\n | `addOns.${number}.price.currency`,\n 5\n >\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 = ambassadorWixAddonsV1AddOn.queryAddOns(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 AddOnQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: [\n '_id',\n 'durationInMinutes',\n 'maxQuantity',\n 'name',\n 'price.currency',\n 'price.formattedValue',\n 'price.value',\n 'taxGroup'\n ];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<AddOn, AddOnQuerySpec>;\nexport type AddOnQuery = {\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 Refer to [supported filters](https://dev.wix.com/docs/rest/business-solutions/bookings/services/add-ons/supported-filters) for a complete list of supported fields. \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\n/**\n * Creates multiple add-ons in a single request.\n * @param addOns - List of add-ons to create.\n * @public\n * @documentationMaturity preview\n * @requiredField addOns\n * @permissionId ADD_ONS.ADD_ON_CREATE\n * @applicableIdentity APP\n * @fqn wix.addons.v1.AddOnsService.BulkCreateAddOns\n */\nexport async function bulkCreateAddOns(\n addOns: AddOn[],\n options?: BulkCreateAddOnsOptions\n): Promise<\n NonNullablePaths<\n BulkCreateAddOnsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.durationInMinutes`\n | `results.${number}.item.maxQuantity`\n | `results.${number}.item.price.value`\n | `results.${number}.item.price.currency`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\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 addOns: addOns,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.bulkCreateAddOns(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 addOns: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['addOns', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateAddOnsOptions {\n /** Whether to return the created add-ons in the response. */\n returnEntity?: boolean;\n}\n\n/**\n * Updates multiple add-ons in a single request.\n * @param addOns - List of add-ons to update.\n * @public\n * @documentationMaturity preview\n * @requiredField addOns\n * @requiredField addOns.addOn._id\n * @requiredField addOns.addOn.revision\n * @permissionId ADD_ONS.ADD_ON_UPDATE\n * @applicableIdentity APP\n * @fqn wix.addons.v1.AddOnsService.BulkUpdateAddOns\n */\nexport async function bulkUpdateAddOns(\n addOns: NonNullablePaths<MaskedAddOn, `addOn._id` | `addOn.revision`, 3>[],\n options?: BulkUpdateAddOnsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateAddOnsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.durationInMinutes`\n | `results.${number}.item.maxQuantity`\n | `results.${number}.item.price.value`\n | `results.${number}.item.price.currency`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\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 addOns: addOns,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.bulkUpdateAddOns(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 addOns: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['addOns', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateAddOnsOptions {\n /** Whether to return the updated add-ons in the response. */\n returnEntity?: boolean;\n}\n\n/**\n * Deletes multiple add-ons in a single request.\n * @param addOnIds - IDs of add-ons to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField addOnIds\n * @permissionId ADD_ONS.ADD_ON_DELETE\n * @applicableIdentity APP\n * @fqn wix.addons.v1.AddOnsService.BulkDeleteAddOns\n */\nexport async function bulkDeleteAddOns(\n addOnIds: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteAddOnsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ addOnIds: addOnIds });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.bulkDeleteAddOns(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: { addOnIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['addOnIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 resolveWixAddonsV1AddOnsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n {\n srcPath: '/addons/v1/add-ons',\n destPath: '/v1/add-ons',\n },\n {\n srcPath: '/addons/v1/bulk/add-ons',\n destPath: '/v1/bulk/add-ons',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/addons/v1/add-ons',\n destPath: '/v1/add-ons',\n },\n {\n srcPath: '/addons/v1/bulk/add-ons',\n destPath: '/v1/bulk/add-ons',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_add-ons';\n\n/** Creates an add-on. */\nexport function createAddOn(payload: object): RequestOptionsFactory<any> {\n function __createAddOn({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'addOn.createdDate' }, { path: 'addOn.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'POST' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.CreateAddOn',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'addOn.createdDate' },\n { path: 'addOn.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createAddOn;\n}\n\n/** Retrieves an add-on. */\nexport function getAddOn(payload: object): RequestOptionsFactory<any> {\n function __getAddOn({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'GET' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.GetAddOn',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons/{addOnId}',\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: 'addOn.createdDate' },\n { path: 'addOn.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getAddOn;\n}\n\n/**\n * Updates an existing add-on.\n *\n * Each time an add-on is updated, its revision number increments by 1.\n * The current revision must be passed when updating to ensure you're working with the latest version and prevent unintended overwrites.\n */\nexport function updateAddOn(payload: object): RequestOptionsFactory<any> {\n function __updateAddOn({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'addOn.createdDate' }, { path: 'addOn.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'PATCH' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.UpdateAddOn',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons/{addOn.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: 'addOn.createdDate' },\n { path: 'addOn.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateAddOn;\n}\n\n/** Deletes an add-on and removes it from all add-on groups. */\nexport function deleteAddOn(payload: object): RequestOptionsFactory<any> {\n function __deleteAddOn({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'DELETE' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.DeleteAddOn',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons/{addOnId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteAddOn;\n}\n\n/**\n * Retrieves up to 100 add-ons, given the specified filtering, sorting, and paging.\n *\n * By default, results are sorted by `id` in ascending order.\n *\n * For supported filtering options, see [Supported Filters](https://dev.wix.com/docs/rest/business-solutions/bookings/services/add-ons/supported-filters).\n */\nexport function queryAddOns(payload: object): RequestOptionsFactory<any> {\n function __queryAddOns({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'GET' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.QueryAddOns',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons/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: 'addOns.createdDate' },\n { path: 'addOns.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryAddOns;\n}\n\n/** Creates multiple add-ons in a single request. */\nexport function bulkCreateAddOns(payload: object): RequestOptionsFactory<any> {\n function __bulkCreateAddOns({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'addOns.createdDate' }, { path: 'addOns.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'POST' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.BulkCreateAddOns',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/bulk/add-ons/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateAddOns;\n}\n\n/** Updates multiple add-ons in a single request. */\nexport function bulkUpdateAddOns(payload: object): RequestOptionsFactory<any> {\n function __bulkUpdateAddOns({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'addOns.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'addOns.addOn.createdDate' },\n { path: 'addOns.addOn.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'POST' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.BulkUpdateAddOns',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/bulk/add-ons/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateAddOns;\n}\n\n/** Deletes multiple add-ons in a single request. */\nexport function bulkDeleteAddOns(payload: object): RequestOptionsFactory<any> {\n function __bulkDeleteAddOns({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'POST' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.BulkDeleteAddOns',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/bulk/add-ons/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n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Y,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC,EAAE,SAAmB,CAAC;AAE5E,QAAM,UAAqC,iBAAiB,OAAO;AAEnE,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,EAAE,UAAU,OAAO;AAAA,QAC7C,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU;AAAA,IACb;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","SortOrder","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","createAddOn","getAddOn","updateAddOn","deleteAddOn","queryAddOns","bulkCreateAddOns","bulkUpdateAddOns","bulkDeleteAddOns"]}
1
+ {"version":3,"sources":["../../../src/addons-v1-add-on-add-ons.universal.ts","../../../src/addons-v1-add-on-add-ons.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 ambassadorWixAddonsV1AddOn from './addons-v1-add-on-add-ons.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Add-ons are optional extras that extend business offerings (such as booking services) with additional features, time, or products for an extra cost. */\nexport interface AddOn extends AddOnAddOnInfoOneOf {\n /**\n * Duration in minutes for duration-based add-ons that extend offering time.\n * @min 1\n * @max 1440\n */\n durationInMinutes?: number;\n /**\n * Maximum quantity customers can purchase for quantity-based add-ons.\n * @min 1\n * @max 9999\n */\n maxQuantity?: number;\n /**\n * Add-on ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the add-on is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the add-on.\n *\n * Ignored when creating an add-on.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the add-on was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the add-on was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Display name of the add-on shown to customers.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /** Pricing information for the add-on. */\n price?: Money;\n /**\n * ID of the [tax group](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/tax/tax-groups/introduction) to categorize the add-on for tax calculation in [Wix eCommerce](https://dev.wix.com/docs/rest/business-solutions/e-commerce/introduction).\n * Learn more about [how Wix eCommerce implements tax calculation](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/tax/introduction).\n *\n * This field doesn't apply to custom checkout/billing implementations.\n * @format GUID\n */\n taxGroup?: string | null;\n /** Data extensions enabling users to save custom data related to the add-on. */\n extendedFields?: ExtendedFields;\n /** [Tags](https://dev.wix.com/docs/rest/business-management/tags/introduction) assigned to add-ons for categorization and filtering purposes. */\n tags?: Tags;\n}\n\n/** @oneof */\nexport interface AddOnAddOnInfoOneOf {\n /**\n * Duration in minutes for duration-based add-ons that extend offering time.\n * @min 1\n * @max 1440\n */\n durationInMinutes?: number;\n /**\n * Maximum quantity customers can purchase for quantity-based add-ons.\n * @min 1\n * @max 9999\n */\n maxQuantity?: number;\n}\n\n/**\n * Money.\n * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.\n */\nexport interface Money {\n /**\n * Add-on price amount as a decimal string with period as decimal separator. For example, `3.99` for a $3.99 add-on or `15.00` for a $15.00 add-on.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:2 }\n */\n value?: string;\n /**\n * Currency code for the add-on price. Must be a valid [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. For example, `USD` for US dollars or `EUR` for euros.\n * @format CURRENCY\n */\n currency?: string;\n /**\n * Add-on price amount as a decimal string in local format for display purposes. For example, `$3.99` for US format or `3,99 €` for European format.\n * @maxLength 50\n */\n formattedValue?: 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/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface CreateAddOnRequest {\n /** Add-on to create. */\n addOn: AddOn;\n}\n\nexport interface CreateAddOnResponse {\n /** Created add-on. */\n addOn?: AddOn;\n}\n\nexport interface GetAddOnRequest {\n /**\n * ID of the add-on to retrieve.\n * @format GUID\n */\n addOnId: string;\n}\n\nexport interface GetAddOnResponse {\n /** Retrieved add-on. */\n addOn?: AddOn;\n}\n\nexport interface UpdateAddOnRequest {\n /** Add-on to update. */\n addOn: AddOn;\n}\n\nexport interface UpdateAddOnResponse {\n /** Updated add-on. */\n addOn?: AddOn;\n}\n\nexport interface DeleteAddOnRequest {\n /**\n * ID of the add-on to delete.\n * @format GUID\n */\n addOnId: string;\n}\n\nexport interface DeleteAddOnResponse {}\n\nexport interface QueryAddOnsRequest {\n /** Filtering, sorting, and paging details. */\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 * Refer to [supported filters](https://dev.wix.com/docs/rest/business-solutions/bookings/services/add-ons/supported-filters) for a complete list of supported fields.\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 QueryAddOnsResponse {\n /** List of add-ons matching the query. */\n addOns?: AddOn[];\n /** Paging metadata for the query results. */\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 QueryLocalizedAddOnsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface QueryLocalizedAddOnsResponse {\n /** List of AddOns. */\n addOns?: AddOn[];\n /** List of translated AddOns. */\n translatedAddOns?: AddOn[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface BulkCreateAddOnsRequest {\n /**\n * List of add-ons to create.\n * @minSize 1\n * @maxSize 100\n */\n addOns: AddOn[];\n /** Whether to return the created add-ons in the response. */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateAddOnsResponse {\n /**\n * Results of the bulk create operation including add-ons and metadata.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkAddOnResult[];\n /** Metadata for the bulk create operation. */\n bulkActionMetadata?: BulkActionMetadata;\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 /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\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 BulkAddOnResult {\n /** Metadata for the individual create operation. */\n itemMetadata?: ItemMetadata;\n /** Created add-on. Only present if `return_entity` was set to true in the request. */\n item?: AddOn;\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 BulkUpdateAddOnsRequest {\n /**\n * List of add-ons to update.\n * @minSize 1\n * @maxSize 100\n */\n addOns: MaskedAddOn[];\n /** Whether to return the updated add-ons in the response. */\n returnEntity?: boolean;\n}\n\nexport interface MaskedAddOn {\n /** Add-on to update. May be partial. */\n addOn?: AddOn;\n}\n\nexport interface BulkUpdateAddOnsResponse {\n /**\n * Results of the bulk update operation.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateAddOnsResponseBulkAddOnResult[];\n /** Metadata for the bulk update operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateAddOnsResponseBulkAddOnResult {\n /** Metadata for the individual update operation. */\n itemMetadata?: ItemMetadata;\n /** Updated add-on. Only present if `return_entity` was set to true in the request. */\n item?: AddOn;\n}\n\nexport interface BulkDeleteAddOnsRequest {\n /**\n * IDs of add-ons to delete.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n addOnIds: string[];\n}\n\nexport interface BulkDeleteAddOnsResponse {\n /**\n * Results of the bulk delete operation.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteAddOnsResponseBulkAddOnResult[];\n /** Metadata for the bulk delete operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteAddOnsResponseBulkAddOnResult {\n /** Metadata for the individual delete operation. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateAddOnTagsRequest {\n /**\n * IDs of add-ons to update tags for.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n addOnIds?: string[];\n /** Tags to assign to the add-ons. */\n assignTags?: Tags;\n /** Tags to remove from the add-ons. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateAddOnTagsResponse {\n /**\n * Results of the bulk tag update operation.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateAddOnTagsResult[];\n /** Metadata for the bulk tag update operation. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateAddOnTagsResult {\n /** Metadata for the individual tag update operation. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateAddOnTagsByFilterRequest {\n /** Filter to select add-ons for tag updates. */\n filter?: Record<string, any> | null;\n /** Tags to assign to the filtered add-ons. */\n assignTags?: Tags;\n /** Tags to remove from the filtered add-ons. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateAddOnTagsByFilterResponse {\n /**\n * Job ID for tracking the asynchronous operation.\n * @format GUID\n */\n jobId?: string;\n}\n\n/** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */\nexport interface SitePropertiesNotification {\n /** The site ID for which this update notification applies. */\n metasiteId?: string;\n /** The actual update event. */\n event?: SitePropertiesEvent;\n /**\n * A convenience set of mappings from the MetaSite ID to its constituent services.\n * @maxSize 500\n */\n translations?: Translation[];\n /** Context of the notification */\n changeContext?: ChangeContext;\n}\n\n/** The actual update event for a particular notification. */\nexport interface SitePropertiesEvent {\n /** Version of the site's properties represented by this update. */\n version?: number;\n /** Set of properties that were updated - corresponds to the fields in \"properties\". */\n fields?: string[];\n /** Updated properties. */\n properties?: Properties;\n}\n\nexport interface Properties {\n /** Site categories. */\n categories?: Categories;\n /** Site locale. */\n locale?: Locale;\n /**\n * Site language.\n *\n * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n */\n language?: string | null;\n /**\n * Site currency format used to bill customers.\n *\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n */\n paymentCurrency?: string | null;\n /** Timezone in `America/New_York` format. */\n timeZone?: string | null;\n /** Email address. */\n email?: string | null;\n /** Phone number. */\n phone?: string | null;\n /** Fax number. */\n fax?: string | null;\n /** Address. */\n address?: Address;\n /** Site display name. */\n siteDisplayName?: string | null;\n /** Business name. */\n businessName?: string | null;\n /** Path to the site's logo in Wix Media (without Wix Media base URL). */\n logo?: string | null;\n /** Site description. */\n description?: string | null;\n /**\n * Business schedule. Regular and exceptional time periods when the business is open or the service is available.\n *\n * __Note:__ Not supported by Wix Bookings.\n */\n businessSchedule?: BusinessSchedule;\n /** Supported languages of a site and the primary language. */\n multilingual?: Multilingual;\n /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */\n consentPolicy?: ConsentPolicy;\n /**\n * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.\n *\n * Site business type.\n */\n businessConfig?: string | null;\n /** External site URL that uses Wix as its headless business solution. */\n externalSiteUrl?: string | null;\n /** Track clicks analytics. */\n trackClicksAnalytics?: boolean;\n}\n\nexport interface Categories {\n /** Primary site category. */\n primary?: string;\n /**\n * Secondary site category.\n * @maxSize 50\n */\n secondary?: string[];\n /** Business Term Id */\n businessTermId?: string | null;\n}\n\nexport interface Locale {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */\n country?: string;\n}\n\nexport interface Address {\n /** Street name. */\n street?: string;\n /** City name. */\n city?: string;\n /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */\n country?: string;\n /** State. */\n state?: string;\n /**\n * Zip or postal code.\n * @maxLength 20\n */\n zip?: string;\n /** Extra information to be displayed in the address. */\n hint?: AddressHint;\n /** Whether this address represents a physical location. */\n isPhysical?: boolean;\n /** Google-formatted version of this address. */\n googleFormattedAddress?: string;\n /** Street number. */\n streetNumber?: string;\n /** Apartment number. */\n apartmentNumber?: string;\n /** Geographic coordinates of location. */\n coordinates?: GeoCoordinates;\n}\n\n/**\n * Extra information on displayed addresses.\n * This is used for display purposes. Used to add additional data about the address, such as \"In the passage\".\n * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.\n */\nexport interface AddressHint {\n /** Extra text displayed next to, or instead of, the actual address. */\n text?: string;\n /** Where the extra text should be displayed. */\n placement?: PlacementTypeWithLiterals;\n}\n\n/** Where the extra text should be displayed: before, after or instead of the actual address. */\nexport enum PlacementType {\n BEFORE = 'BEFORE',\n AFTER = 'AFTER',\n REPLACE = 'REPLACE',\n}\n\n/** @enumType */\nexport type PlacementTypeWithLiterals =\n | PlacementType\n | 'BEFORE'\n | 'AFTER'\n | 'REPLACE';\n\n/** Geocoordinates for a particular address. */\nexport interface GeoCoordinates {\n /** Latitude of the location. Must be between -90 and 90. */\n latitude?: number;\n /** Longitude of the location. Must be between -180 and 180. */\n longitude?: number;\n}\n\n/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */\nexport interface BusinessSchedule {\n /**\n * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.\n * @maxSize 100\n */\n periods?: TimePeriod[];\n /**\n * Exceptions to the business's regular hours. The business can be open or closed during the exception.\n * @maxSize 100\n */\n specialHourPeriod?: SpecialHourPeriod[];\n}\n\n/** Weekly recurring time periods when the business is regularly open or the service is available. */\nexport interface TimePeriod {\n /** Day of the week the period starts on. */\n openDay?: DayOfWeekWithLiterals;\n /**\n * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n */\n openTime?: string;\n /** Day of the week the period ends on. */\n closeDay?: DayOfWeekWithLiterals;\n /**\n * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n *\n * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.\n */\n closeTime?: string;\n}\n\n/** Enumerates the days of the week. */\nexport enum DayOfWeek {\n MONDAY = 'MONDAY',\n TUESDAY = 'TUESDAY',\n WEDNESDAY = 'WEDNESDAY',\n THURSDAY = 'THURSDAY',\n FRIDAY = 'FRIDAY',\n SATURDAY = 'SATURDAY',\n SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n | DayOfWeek\n | 'MONDAY'\n | 'TUESDAY'\n | 'WEDNESDAY'\n | 'THURSDAY'\n | 'FRIDAY'\n | 'SATURDAY'\n | 'SUNDAY';\n\n/** Exception to the business's regular hours. The business can be open or closed during the exception. */\nexport interface SpecialHourPeriod {\n /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n startDate?: string;\n /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n endDate?: string;\n /**\n * Whether the business is closed (or the service is not available) during the exception.\n *\n * Default: `true`.\n */\n isClosed?: boolean;\n /** Additional info about the exception. For example, \"We close earlier on New Year's Eve.\" */\n comment?: string;\n}\n\nexport interface Multilingual {\n /**\n * Supported languages list.\n * @maxSize 200\n */\n supportedLanguages?: SupportedLanguage[];\n /** Whether to redirect to user language. */\n autoRedirect?: boolean;\n}\n\nexport interface SupportedLanguage {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Locale. */\n locale?: Locale;\n /** Whether the supported language is the primary language for the site. */\n isPrimary?: boolean;\n /** Language icon. */\n countryCode?: string;\n /** How the language will be resolved. For internal use. */\n resolutionMethod?: ResolutionMethodWithLiterals;\n /** Whether the supported language is the primary language for site visitors. */\n isVisitorPrimary?: boolean | null;\n}\n\nexport enum ResolutionMethod {\n QUERY_PARAM = 'QUERY_PARAM',\n SUBDOMAIN = 'SUBDOMAIN',\n SUBDIRECTORY = 'SUBDIRECTORY',\n}\n\n/** @enumType */\nexport type ResolutionMethodWithLiterals =\n | ResolutionMethod\n | 'QUERY_PARAM'\n | 'SUBDOMAIN'\n | 'SUBDIRECTORY';\n\nexport interface ConsentPolicy {\n /** Whether the site uses cookies that are essential to site operation. Always `true`. */\n essential?: boolean | null;\n /** Whether the site uses cookies that affect site performance and other functional measurements. */\n functional?: boolean | null;\n /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */\n analytics?: boolean | null;\n /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */\n advertising?: boolean | null;\n /** CCPA compliance flag. */\n dataToThirdParty?: boolean | null;\n}\n\n/** A single mapping from the MetaSite ID to a particular service. */\nexport interface Translation {\n /** The service type. */\n serviceType?: string;\n /** The application definition ID; this only applies to services of type ThirdPartyApps. */\n appDefId?: string;\n /** The instance ID of the service. */\n instanceId?: string;\n}\n\nexport interface ChangeContext extends ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\n/** @oneof */\nexport interface ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface SiteCreated {\n /** Origin template site id. */\n originTemplateId?: string | null;\n}\n\nexport interface SiteCloned {\n /** Origin site id. */\n originMetaSiteId?: string;\n}\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}\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 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}\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}\n\nexport interface AddOnCreatedEnvelope {\n entity: AddOn;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when an add-on is created.\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId ADD_ONS.ADD_ON_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.addons.v1.add_on_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onAddOnCreated(\n handler: (event: AddOnCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface AddOnDeletedEnvelope {\n entity: AddOn;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when an add-on is deleted.\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId ADD_ONS.ADD_ON_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.addons.v1.add_on_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onAddOnDeleted(\n handler: (event: AddOnDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface AddOnUpdatedEnvelope {\n entity: AddOn;\n metadata: EventMetadata;\n modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when an add-on is updated.\n * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read\n * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionId ADD_ONS.ADD_ON_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.addons.v1.add_on_updated\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onAddOnUpdated(\n handler: (event: AddOnUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates an add-on.\n * @param addOn - Add-on to create.\n * @public\n * @documentationMaturity preview\n * @requiredField addOn\n * @permissionId ADD_ONS.ADD_ON_CREATE\n * @applicableIdentity APP\n * @returns Created add-on.\n * @fqn wix.addons.v1.AddOnsService.CreateAddOn\n */\nexport async function createAddOn(\n addOn: AddOn\n): Promise<\n NonNullablePaths<\n AddOn,\n | `durationInMinutes`\n | `maxQuantity`\n | `price.value`\n | `price.currency`\n | `tags.privateTags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ addOn: addOn });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.createAddOn(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.addOn!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { addOn: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['addOn']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves an add-on.\n * @param addOnId - ID of the add-on to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField addOnId\n * @permissionId ADD_ONS.ADD_ON_READ\n * @applicableIdentity APP\n * @returns Retrieved add-on.\n * @fqn wix.addons.v1.AddOnsService.GetAddOn\n */\nexport async function getAddOn(\n addOnId: string\n): Promise<\n NonNullablePaths<\n AddOn,\n | `durationInMinutes`\n | `maxQuantity`\n | `price.value`\n | `price.currency`\n | `tags.privateTags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ addOnId: addOnId });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.getAddOn(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.addOn!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { addOnId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['addOnId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates an existing add-on.\n *\n * Each time an add-on is updated, its revision number increments by 1.\n * The current revision must be passed when updating to ensure you're working with the latest version and prevent unintended overwrites.\n * @param _id - Add-on ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField addOn\n * @requiredField addOn.revision\n * @permissionId ADD_ONS.ADD_ON_UPDATE\n * @applicableIdentity APP\n * @returns Updated add-on.\n * @fqn wix.addons.v1.AddOnsService.UpdateAddOn\n */\nexport async function updateAddOn(\n _id: string,\n addOn: NonNullablePaths<UpdateAddOn, `revision`, 2>\n): Promise<\n NonNullablePaths<\n AddOn,\n | `durationInMinutes`\n | `maxQuantity`\n | `price.value`\n | `price.currency`\n | `tags.privateTags.tagIds`,\n 4\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 addOn: { ...addOn, id: _id },\n });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.updateAddOn(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.addOn!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { addOn: '$[1]' },\n explicitPathsToArguments: { 'addOn.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'addOn']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateAddOn {\n /**\n * Duration in minutes for duration-based add-ons that extend offering time.\n * @min 1\n * @max 1440\n */\n durationInMinutes?: number;\n /**\n * Maximum quantity customers can purchase for quantity-based add-ons.\n * @min 1\n * @max 9999\n */\n maxQuantity?: number;\n /**\n * Add-on ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the add-on is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the add-on.\n *\n * Ignored when creating an add-on.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the add-on was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the add-on was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Display name of the add-on shown to customers.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /** Pricing information for the add-on. */\n price?: Money;\n /**\n * ID of the [tax group](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/tax/tax-groups/introduction) to categorize the add-on for tax calculation in [Wix eCommerce](https://dev.wix.com/docs/rest/business-solutions/e-commerce/introduction).\n * Learn more about [how Wix eCommerce implements tax calculation](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/tax/introduction).\n *\n * This field doesn't apply to custom checkout/billing implementations.\n * @format GUID\n */\n taxGroup?: string | null;\n /** Data extensions enabling users to save custom data related to the add-on. */\n extendedFields?: ExtendedFields;\n /** [Tags](https://dev.wix.com/docs/rest/business-management/tags/introduction) assigned to add-ons for categorization and filtering purposes. */\n tags?: Tags;\n}\n\n/**\n * Deletes an add-on and removes it from all add-on groups.\n * @param addOnId - ID of the add-on to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField addOnId\n * @permissionId ADD_ONS.ADD_ON_DELETE\n * @applicableIdentity APP\n * @fqn wix.addons.v1.AddOnsService.DeleteAddOn\n */\nexport async function deleteAddOn(addOnId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ addOnId: addOnId });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.deleteAddOn(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: { addOnId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['addOnId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves up to 100 add-ons, given the specified filtering, sorting, and paging.\n *\n * By default, results are sorted by `id` in ascending order.\n *\n * For supported filtering options, see [Supported Filters](https://dev.wix.com/docs/rest/business-solutions/bookings/services/add-ons/supported-filters).\n * @public\n * @documentationMaturity preview\n * @permissionId ADD_ONS.ADD_ON_READ\n * @applicableIdentity APP\n * @fqn wix.addons.v1.AddOnsService.QueryAddOns\n */\nexport function queryAddOns(): AddOnsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<AddOn, 'CURSOR', QueryAddOnsRequest, QueryAddOnsResponse>(\n {\n func: async (payload: QueryAddOnsRequest) => {\n const reqOpts = ambassadorWixAddonsV1AddOn.queryAddOns(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: QueryAddOnsRequest['query']) => {\n const args = [query, {}] as [QueryAddOnsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryAddOnsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.addOns,\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}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface AddOnsQueryResult extends QueryCursorResult {\n items: AddOn[];\n query: AddOnsQueryBuilder;\n next: () => Promise<AddOnsQueryResult>;\n prev: () => Promise<AddOnsQueryResult>;\n}\n\nexport interface AddOnsQueryBuilder {\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\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:\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: string\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any[]\n ) => AddOnsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: any\n ) => AddOnsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName:\n | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup',\n value: boolean\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup'\n >\n ) => AddOnsQueryBuilder;\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 | 'durationInMinutes'\n | 'maxQuantity'\n | '_id'\n | 'name'\n | 'price.value'\n | 'price.currency'\n | 'price.formattedValue'\n | 'taxGroup'\n >\n ) => AddOnsQueryBuilder;\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) => AddOnsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => AddOnsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<AddOnsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.addons.v1.AddOnsService.QueryAddOns\n * @requiredField query\n */\nexport async function typedQueryAddOns(\n query: AddOnQuery\n): Promise<\n NonNullablePaths<\n QueryAddOnsResponse,\n | `addOns`\n | `addOns.${number}.durationInMinutes`\n | `addOns.${number}.maxQuantity`\n | `addOns.${number}.price.value`\n | `addOns.${number}.price.currency`,\n 5\n >\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 = ambassadorWixAddonsV1AddOn.queryAddOns(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 AddOnQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: [\n '_id',\n 'durationInMinutes',\n 'maxQuantity',\n 'name',\n 'price.currency',\n 'price.formattedValue',\n 'price.value',\n 'taxGroup'\n ];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<AddOn, AddOnQuerySpec>;\nexport type AddOnQuery = {\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 Refer to [supported filters](https://dev.wix.com/docs/rest/business-solutions/bookings/services/add-ons/supported-filters) for a complete list of supported fields. \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\n/**\n * Creates multiple add-ons in a single request.\n * @param addOns - List of add-ons to create.\n * @public\n * @documentationMaturity preview\n * @requiredField addOns\n * @permissionId ADD_ONS.ADD_ON_CREATE\n * @applicableIdentity APP\n * @fqn wix.addons.v1.AddOnsService.BulkCreateAddOns\n */\nexport async function bulkCreateAddOns(\n addOns: AddOn[],\n options?: BulkCreateAddOnsOptions\n): Promise<\n NonNullablePaths<\n BulkCreateAddOnsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.durationInMinutes`\n | `results.${number}.item.maxQuantity`\n | `results.${number}.item.price.value`\n | `results.${number}.item.price.currency`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\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 addOns: addOns,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.bulkCreateAddOns(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 addOns: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['addOns', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateAddOnsOptions {\n /** Whether to return the created add-ons in the response. */\n returnEntity?: boolean;\n}\n\n/**\n * Updates multiple add-ons in a single request.\n * @param addOns - List of add-ons to update.\n * @public\n * @documentationMaturity preview\n * @requiredField addOns\n * @requiredField addOns.addOn._id\n * @requiredField addOns.addOn.revision\n * @permissionId ADD_ONS.ADD_ON_UPDATE\n * @applicableIdentity APP\n * @fqn wix.addons.v1.AddOnsService.BulkUpdateAddOns\n */\nexport async function bulkUpdateAddOns(\n addOns: NonNullablePaths<MaskedAddOn, `addOn._id` | `addOn.revision`, 3>[],\n options?: BulkUpdateAddOnsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateAddOnsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.durationInMinutes`\n | `results.${number}.item.maxQuantity`\n | `results.${number}.item.price.value`\n | `results.${number}.item.price.currency`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\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 addOns: addOns,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.bulkUpdateAddOns(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 addOns: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['addOns', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateAddOnsOptions {\n /** Whether to return the updated add-ons in the response. */\n returnEntity?: boolean;\n}\n\n/**\n * Deletes multiple add-ons in a single request.\n * @param addOnIds - IDs of add-ons to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField addOnIds\n * @permissionId ADD_ONS.ADD_ON_DELETE\n * @applicableIdentity APP\n * @fqn wix.addons.v1.AddOnsService.BulkDeleteAddOns\n */\nexport async function bulkDeleteAddOns(\n addOnIds: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteAddOnsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ addOnIds: addOnIds });\n\n const reqOpts = ambassadorWixAddonsV1AddOn.bulkDeleteAddOns(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: { addOnIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['addOnIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 resolveWixAddonsV1AddOnsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/add-ons-service',\n destPath: '',\n },\n {\n srcPath: '/addons/v1/add-ons',\n destPath: '/v1/add-ons',\n },\n {\n srcPath: '/addons/v1/bulk/add-ons',\n destPath: '/v1/bulk/add-ons',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/addons/v1/add-ons',\n destPath: '/v1/add-ons',\n },\n {\n srcPath: '/addons/v1/bulk/add-ons',\n destPath: '/v1/bulk/add-ons',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_add-ons';\n\n/** Creates an add-on. */\nexport function createAddOn(payload: object): RequestOptionsFactory<any> {\n function __createAddOn({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'addOn.createdDate' }, { path: 'addOn.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'POST' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.CreateAddOn',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'addOn.createdDate' },\n { path: 'addOn.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createAddOn;\n}\n\n/** Retrieves an add-on. */\nexport function getAddOn(payload: object): RequestOptionsFactory<any> {\n function __getAddOn({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'GET' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.GetAddOn',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons/{addOnId}',\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: 'addOn.createdDate' },\n { path: 'addOn.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getAddOn;\n}\n\n/**\n * Updates an existing add-on.\n *\n * Each time an add-on is updated, its revision number increments by 1.\n * The current revision must be passed when updating to ensure you're working with the latest version and prevent unintended overwrites.\n */\nexport function updateAddOn(payload: object): RequestOptionsFactory<any> {\n function __updateAddOn({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'addOn.createdDate' }, { path: 'addOn.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'PATCH' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.UpdateAddOn',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons/{addOn.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: 'addOn.createdDate' },\n { path: 'addOn.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateAddOn;\n}\n\n/** Deletes an add-on and removes it from all add-on groups. */\nexport function deleteAddOn(payload: object): RequestOptionsFactory<any> {\n function __deleteAddOn({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'DELETE' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.DeleteAddOn',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons/{addOnId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteAddOn;\n}\n\n/**\n * Retrieves up to 100 add-ons, given the specified filtering, sorting, and paging.\n *\n * By default, results are sorted by `id` in ascending order.\n *\n * For supported filtering options, see [Supported Filters](https://dev.wix.com/docs/rest/business-solutions/bookings/services/add-ons/supported-filters).\n */\nexport function queryAddOns(payload: object): RequestOptionsFactory<any> {\n function __queryAddOns({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'GET' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.QueryAddOns',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons/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: 'addOns.createdDate' },\n { path: 'addOns.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/add-ons/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryAddOns;\n}\n\n/** Creates multiple add-ons in a single request. */\nexport function bulkCreateAddOns(payload: object): RequestOptionsFactory<any> {\n function __bulkCreateAddOns({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'addOns.createdDate' }, { path: 'addOns.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'POST' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.BulkCreateAddOns',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/bulk/add-ons/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateAddOns;\n}\n\n/** Updates multiple add-ons in a single request. */\nexport function bulkUpdateAddOns(payload: object): RequestOptionsFactory<any> {\n function __bulkUpdateAddOns({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'addOns.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'addOns.addOn.createdDate' },\n { path: 'addOns.addOn.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'POST' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.BulkUpdateAddOns',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/bulk/add-ons/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateAddOns;\n}\n\n/** Deletes multiple add-ons in a single request. */\nexport function bulkDeleteAddOns(payload: object): RequestOptionsFactory<any> {\n function __bulkDeleteAddOns({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.addons.v1.add_on',\n method: 'POST' as any,\n methodFqn: 'wix.addons.v1.AddOnsService.BulkDeleteAddOns',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixAddonsV1AddOnsServiceUrl({\n protoPath: '/v1/bulk/add-ons/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteAddOns;\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,mCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAA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ACzB,CAAC;AAED,QAAM,UAAqC,iBAAiB,OAAO;AAEnE,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,QAAQ;AAAA,UACR,cAAc;AAAA,QAChB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,SAAS;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAiBA,eAAsBC,kBACpB,UAcA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC,EAAE,SAAmB,CAAC;AAE5E,QAAM,UAAqC,iBAAiB,OAAO;AAEnE,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,EAAE,UAAU,OAAO;AAAA,QAC7C,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU;AAAA,IACb;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","SortOrder","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","createAddOn","getAddOn","updateAddOn","deleteAddOn","queryAddOns","bulkCreateAddOns","bulkUpdateAddOns","bulkDeleteAddOns"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_bookings_add-ons",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.addons.v1.add_on"
51
51
  }
52
52
  },
53
- "falconPackageHash": "d40caad66789c84d2a02eb09e337f46939b5e0b26371084306d48ac6"
53
+ "falconPackageHash": "e2be2d69ba5c1acce0ae6ef54a823a5b0f8d7ab997cb144b0cf65789"
54
54
  }