@wix/auto_sdk_standalone-forms_standalone-forms 1.0.0 → 1.0.2

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":["../../index.ts","../../src/forms-v1-standalone-form-standalone-forms.universal.ts","../../src/forms-v1-standalone-form-standalone-forms.http.ts","../../src/forms-v1-standalone-form-standalone-forms.public.ts","../../src/forms-v1-standalone-form-standalone-forms.context.ts"],"sourcesContent":["export * from './src/forms-v1-standalone-form-standalone-forms.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixFormsV1StandaloneForm from './forms-v1-standalone-form-standalone-forms.http.js';\n\nexport interface StandaloneForm {\n /**\n * Standalone form ID. Automatically generated when the standalone form is created.\n *\n * Together with `accountSlug`, this ID forms part of the standalone form's public URL.\n * @maxLength 36\n * @readonly\n */\n _id?: string | null;\n /**\n * ID of the form, managed through the Wix Forms API, that this record marks as standalone.\n *\n * A form doesn't itself indicate whether it's standalone. The existence of a standalone form\n * record that references it is what makes the form standalone.\n * @format GUID\n */\n formId?: string | null;\n /**\n * ID of the meta site that owns the standalone form.\n *\n * The meta site owns the form. Because this service doesn't use meta site tenancy, the owning\n * meta site is stored explicitly in this field. Set from the calling context when the form is created.\n * @format GUID\n * @readonly\n */\n metaSiteId?: string | null;\n /**\n * Date and time the standalone form was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the standalone form was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Account slug of the site owner, captured when the standalone form was created.\n *\n * Together with `id`, the slug forms part of the standalone form's public URL. May be empty\n * if it couldn't be resolved at creation time.\n * @maxLength 50\n * @readonly\n */\n accountSlug?: string | null;\n}\n\nexport interface GetOrCreateFormStandaloneMetaSiteRequest {}\n\nexport interface GetOrCreateFormStandaloneMetaSiteResponse {\n /**\n * MetaSiteId\n * @format GUID\n */\n metaSiteId?: string;\n}\n\nexport interface CreateStandaloneFormRequest {\n /** Standalone form */\n standaloneForm: StandaloneForm;\n}\n\nexport interface CreateStandaloneFormResponse {\n /** Standalone form */\n standaloneForm?: StandaloneForm;\n}\n\nexport interface GetStandaloneFormRequest {\n /**\n * Standalone form id\n * @maxLength 36\n */\n standaloneFormId: string;\n}\n\nexport interface GetStandaloneFormResponse {\n /** Standalone form */\n standaloneForm?: StandaloneForm;\n}\n\nexport interface DeleteStandaloneFormRequest {\n /**\n * Standalone form id\n * @maxLength 36\n */\n standaloneFormId: string;\n /**\n * Whether to permanently delete a standalone form bypassing the trash bin.\n *\n * Default: `false`\n */\n permanent?: boolean;\n}\n\nexport interface DeleteStandaloneFormResponse {}\n\nexport interface RemoveStandaloneFormFromTrashBinRequest {\n /**\n * Standalone form id\n * @maxLength 36\n */\n standaloneFormId: string;\n}\n\nexport interface RemoveStandaloneFormFromTrashBinResponse {}\n\nexport interface RestoreStandaloneFormFromTrashBinRequest {\n /**\n * Standalone form id\n * @maxLength 36\n */\n standaloneFormId: string;\n}\n\nexport interface RestoreStandaloneFormFromTrashBinResponse {\n /** Standalone form */\n standaloneForm?: StandaloneForm;\n}\n\nexport interface GetDeletedStandaloneFormRequest {\n /**\n * Standalone form id\n * @maxLength 36\n */\n standaloneFormId: string;\n}\n\nexport interface GetDeletedStandaloneFormResponse {\n /** Standalone form */\n standaloneForm?: StandaloneForm;\n}\n\nexport interface ListDeletedStandaloneFormsRequest {\n /**\n * Standalone Form ids.\n * @maxSize 100\n * @maxLength 36\n */\n standaloneFormIds?: string[];\n /** Cursor token pointing to a page of results. Not used in the first request. */\n paging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * 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 ListDeletedStandaloneFormsResponse {\n /**\n * The retrieved standalone forms\n * @maxSize 100\n */\n standaloneForms?: StandaloneForm[];\n /** Details on the paged set of results returned. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor pointing to next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface QueryStandaloneFormsRequest {\n /** WQL expression. */\n query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 3\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 QueryStandaloneFormsResponse {\n /**\n * The retrieved standalone forms\n * @maxSize 100\n */\n standaloneForms?: StandaloneForm[];\n /** Details on the paged set of results returned. */\n metadata?: CursorPagingMetadata;\n}\n\nexport interface GetSitePropertiesRequest {}\n\nexport interface GetSitePropertiesResponse {\n /** Standalone MetaSite properties */\n siteProperties?: StandaloneMetaSiteProperties;\n}\n\nexport interface StandaloneMetaSiteProperties {\n /** Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. */\n paymentCurrency?: string | null;\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 * Empty if the site's locale isn't set.\n * @maxLength 2\n */\n localeLanguageCode?: string;\n /**\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 *\n * Empty if the site's locale isn't set.\n * @maxLength 2\n */\n localeCountry?: 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 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 /** Site time zone in IANA time zone database format. For example, `America/New_York`. */\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 * Company ID issued to the business by local authorities. Appears on invoices and price quotes.\n * @maxLength 50\n */\n companyId?: string | null;\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?: V4SiteCreated;\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?: V4SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface V4SiteCreated {\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 MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /** Emitted when media from user domain is enabled. */\n userDomainMediaEnabled?: UserDomainMediaEnabled;\n /** Emitted when media from user domain is disabled. */\n userDomainMediaDisabled?: UserDomainMediaDisabled;\n /** Emitted when Editorless is attached. */\n editorlessAssigned?: EditorlessAssigned;\n /** Emitted when Editorless is detached. */\n editorlessUnassigned?: EditorlessUnassigned;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /** Emitted when media from user domain is enabled. */\n userDomainMediaEnabled?: UserDomainMediaEnabled;\n /** Emitted when media from user domain is disabled. */\n userDomainMediaDisabled?: UserDomainMediaDisabled;\n /** Emitted when Editorless is attached. */\n editorlessAssigned?: EditorlessAssigned;\n /** Emitted when Editorless is detached. */\n editorlessUnassigned?: EditorlessUnassigned;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /**\n * AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default.\n * Not the dev-center dev site (see Flag.DEV_CENTER_DEV_SITE_FLAG).\n */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n /** Base44 headless sites. */\n BASE44 = 'BASE44',\n /** Wix Channels Sites */\n CHANNELS = 'CHANNELS',\n /** Nautilus platform. */\n NAUTILUS = 'NAUTILUS',\n /**\n * Symphony — a siteless site representing a project within Symphony (the evolution of Orion).\n * Holds project data, conversations, assets, and manages collaborators / shared team members for the project.\n */\n SYMPHONY = 'SYMPHONY',\n /** Nautilus platform app. */\n NAUTILUS_APPS = 'NAUTILUS_APPS',\n /**\n * Vibu — a siteless site representing a project built with Vibu (the AI app builder).\n * Holds the project's generated code, conversations, assets, and manages collaborators for the project.\n */\n VIBU = 'VIBU',\n /**\n * Ghost site for the BrandKit multi-site platform. Each ghost backs a single BrandKit\n * (an Enterprise account may have several), holding that BrandKit's brand definition\n * (theme, typography, assets) which is rolled out to the BrandKit's connected sites.\n * MetaSites with this namespace will *not* be shown in a user's site list by default.\n */\n ENTERPRISE_BRAND_KIT = 'ENTERPRISE_BRAND_KIT',\n /**\n * Dev-center development sites (com.wixpress.devcenter.dsm).\n * DEPRECATED: replaced by Flag.DEV_CENTER_DEV_SITE_FLAG (a dev site is orthogonal to the namespace). Do not use for new sites.\n */\n DEV_CENTER_DEV_SITE = 'DEV_CENTER_DEV_SITE',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44'\n | 'CHANNELS'\n | 'NAUTILUS'\n | 'SYMPHONY'\n | 'NAUTILUS_APPS'\n | 'VIBU'\n | 'ENTERPRISE_BRAND_KIT'\n | 'DEV_CENTER_DEV_SITE';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\n\n/** Media from user domain is enabled. */\nexport interface UserDomainMediaEnabled {}\n\n/** Media from user domain is disabled. */\nexport interface UserDomainMediaDisabled {}\n\n/** Assigned Editorless */\nexport interface EditorlessAssigned {}\n\n/** Unassigned Editorless */\nexport interface EditorlessUnassigned {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateStandaloneFormApplicationErrors = {\n code?: 'FAILED_PRECONDITION';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type GetSitePropertiesApplicationErrors = {\n code?: 'SITE_PROPERTIES_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Returns the standalone meta site owned by the caller's account, provisioning a new siteless\n * meta site if one doesn't exist yet.\n *\n * Use this when the caller doesn't already have a meta site, for example when a form is built\n * before the user becomes a Wix user. The returned meta site can then own standalone forms.\n * @public\n * @documentationMaturity preview\n * @permissionId MetaSite.Create\n * @fqn wix.forms.v1.FormStandaloneService.GetOrCreateFormStandaloneMetaSite\n */\nexport async function getOrCreateFormStandaloneMetaSite(): Promise<\n NonNullablePaths<GetOrCreateFormStandaloneMetaSiteResponse, `metaSiteId`, 0>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.getOrCreateFormStandaloneMetaSite(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Marks an existing form as standalone by creating a standalone form record that binds the form\n * to the meta site that owns it.\n *\n * The form referenced by `formId` must already exist. The owning meta site is taken from the\n * calling context. A given form can be marked standalone by only one record per meta site.\n * @param standaloneForm - Standalone form\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneForm\n * @requiredField standaloneForm.formId\n * @permissionId WIX_FORMS.STANDALONE_FORM_CREATE\n * @applicableIdentity APP\n * @returns Standalone form\n * @fqn wix.forms.v1.FormStandaloneService.CreateStandaloneForm\n */\nexport async function createStandaloneForm(\n standaloneForm: NonNullablePaths<StandaloneForm, `formId`, 0>\n): Promise<\n StandaloneForm & {\n __applicationErrorsType?: CreateStandaloneFormApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneForm: standaloneForm,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.createStandaloneForm(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 ?.standaloneForm!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { standaloneForm: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['standaloneForm']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a standalone form by ID.\n * @param standaloneFormId - Standalone form id\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneFormId\n * @permissionId WIX_FORMS.STANDALONE_FORM_READ\n * @applicableIdentity APP\n * @returns Standalone form\n * @fqn wix.forms.v1.FormStandaloneService.GetStandaloneForm\n */\nexport async function getStandaloneForm(\n standaloneFormId: string\n): Promise<StandaloneForm> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormId: standaloneFormId,\n });\n\n const reqOpts = ambassadorWixFormsV1StandaloneForm.getStandaloneForm(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 ?.standaloneForm!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { standaloneFormId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['standaloneFormId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Deletes a standalone form record\n *\n * By default the record is moved to the trash bin. Set `permanent` to `true` to delete it permanently.\n * @param standaloneFormId - Standalone form id\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneFormId\n * @permissionId WIX_FORMS.STANDALONE_FORM_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.DeleteStandaloneForm\n */\nexport async function deleteStandaloneForm(\n standaloneFormId: string,\n options?: DeleteStandaloneFormOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormId: standaloneFormId,\n permanent: options?.permanent,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.deleteStandaloneForm(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: {\n standaloneFormId: '$[0]',\n permanent: '$[1].permanent',\n },\n singleArgumentUnchanged: false,\n },\n ['standaloneFormId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteStandaloneFormOptions {\n /**\n * Whether to permanently delete a standalone form bypassing the trash bin.\n *\n * Default: `false`\n */\n permanent?: boolean;\n}\n\n/**\n * Permanently deletes a standalone form record that is in the trash bin.\n * @param standaloneFormId - Standalone form id\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneFormId\n * @permissionId WIX_FORMS.STANDALONE_FORM_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.RemoveStandaloneFormFromTrashBin\n */\nexport async function removeStandaloneFormFromTrashBin(\n standaloneFormId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormId: standaloneFormId,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.removeStandaloneFormFromTrashBin(\n payload\n );\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: { standaloneFormId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['standaloneFormId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Restores a standalone form record from the trash bin.\n * @param standaloneFormId - Standalone form id\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneFormId\n * @permissionId WIX_FORMS.STANDALONE_FORM_CREATE\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.RestoreStandaloneFormFromTrashBin\n */\nexport async function restoreStandaloneFormFromTrashBin(\n standaloneFormId: string\n): Promise<RestoreStandaloneFormFromTrashBinResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormId: standaloneFormId,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.restoreStandaloneFormFromTrashBin(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { standaloneFormId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['standaloneFormId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a standalone form record from the trash bin by ID.\n * @param standaloneFormId - Standalone form id\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneFormId\n * @permissionId WIX_FORMS.STANDALONE_FORM_READ\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.GetDeletedStandaloneForm\n */\nexport async function getDeletedStandaloneForm(\n standaloneFormId: string\n): Promise<GetDeletedStandaloneFormResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormId: standaloneFormId,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.getDeletedStandaloneForm(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: { standaloneFormId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['standaloneFormId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of standalone form records that are in the trash bin.\n * @public\n * @documentationMaturity preview\n * @permissionId WIX_FORMS.STANDALONE_FORM_READ\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.ListDeletedStandaloneForms\n */\nexport async function listDeletedStandaloneForms(\n options?: ListDeletedStandaloneFormsOptions\n): Promise<\n NonNullablePaths<ListDeletedStandaloneFormsResponse, `standaloneForms`, 0>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormIds: options?.standaloneFormIds,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.listDeletedStandaloneForms(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 standaloneFormIds: '$[0].standaloneFormIds',\n paging: '$[0].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListDeletedStandaloneFormsOptions {\n /**\n * Standalone Form ids.\n * @maxSize 100\n * @maxLength 36\n */\n standaloneFormIds?: string[];\n /** Cursor token pointing to a page of results. Not used in the first request. */\n paging?: CursorPaging;\n}\n\n/**\n * Retrieves a list of standalone forms, given the provided filtering, sorting, and paging.\n *\n * Supported filterable and sortable fields: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.\n * @param query - WQL expression.\n * @public\n * @documentationMaturity preview\n * @requiredField query\n * @permissionId WIX_FORMS.STANDALONE_FORM_READ\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.QueryStandaloneForms\n */\nexport async function queryStandaloneForms(\n query: CursorQuery\n): Promise<\n NonNullablePaths<QueryStandaloneFormsResponse, `standaloneForms`, 0>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.queryStandaloneForms(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\n/**\n * Gets site properties (currency and locale) for the caller's standalone meta site.\n *\n * Results may be cached and are not guaranteed to reflect real-time changes.\n * @public\n * @documentationMaturity preview\n * @permissionId WIX_FORMS.STANDALONE_FORM_READ\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.GetSiteProperties\n */\nexport async function getSiteProperties(): Promise<\n NonNullablePaths<\n GetSitePropertiesResponse,\n `siteProperties.localeLanguageCode` | `siteProperties.localeCountry`,\n 1\n > & {\n __applicationErrorsType?: GetSitePropertiesApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixFormsV1StandaloneForm.getSiteProperties(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 { 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 resolveWixFormsV1FormStandaloneServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/form-standalone-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n {\n srcPath: '/forms/v4/standalone-forms',\n destPath: '/v4/standalone-forms',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/forms/v4/standalone-forms',\n destPath: '/v4/standalone-forms',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/forms/v4/standalone-forms',\n destPath: '/v4/standalone-forms',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_standalone-forms_standalone-forms';\n\n/**\n * Returns the standalone meta site owned by the caller's account, provisioning a new siteless\n * meta site if one doesn't exist yet.\n *\n * Use this when the caller doesn't already have a meta site, for example when a form is built\n * before the user becomes a Wix user. The returned meta site can then own standalone forms.\n */\nexport function getOrCreateFormStandaloneMetaSite(\n payload: object\n): RequestOptionsFactory<any> {\n function __getOrCreateFormStandaloneMetaSite({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'GET' as any,\n methodFqn:\n 'wix.forms.v1.FormStandaloneService.GetOrCreateFormStandaloneMetaSite',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/metasite',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getOrCreateFormStandaloneMetaSite;\n}\n\n/**\n * Marks an existing form as standalone by creating a standalone form record that binds the form\n * to the meta site that owns it.\n *\n * The form referenced by `formId` must already exist. The owning meta site is taken from the\n * calling context. A given form can be marked standalone by only one record per meta site.\n */\nexport function createStandaloneForm(\n payload: object\n): RequestOptionsFactory<any> {\n function __createStandaloneForm({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'standaloneForm.createdDate' },\n { path: 'standaloneForm.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'POST' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.CreateStandaloneForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'standaloneForm.createdDate' },\n { path: 'standaloneForm.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createStandaloneForm;\n}\n\n/** Retrieves a standalone form by ID. */\nexport function getStandaloneForm(payload: object): RequestOptionsFactory<any> {\n function __getStandaloneForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'GET' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.GetStandaloneForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/{standaloneFormId}',\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: 'standaloneForm.createdDate' },\n { path: 'standaloneForm.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getStandaloneForm;\n}\n\n/**\n * Deletes a standalone form record\n *\n * By default the record is moved to the trash bin. Set `permanent` to `true` to delete it permanently.\n */\nexport function deleteStandaloneForm(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteStandaloneForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'DELETE' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.DeleteStandaloneForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/{standaloneFormId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteStandaloneForm;\n}\n\n/** Permanently deletes a standalone form record that is in the trash bin. */\nexport function removeStandaloneFormFromTrashBin(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeStandaloneFormFromTrashBin({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.forms.v1.FormStandaloneService.RemoveStandaloneFormFromTrashBin',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/trash-bin/{standaloneFormId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __removeStandaloneFormFromTrashBin;\n}\n\n/** Restores a standalone form record from the trash bin. */\nexport function restoreStandaloneFormFromTrashBin(\n payload: object\n): RequestOptionsFactory<any> {\n function __restoreStandaloneFormFromTrashBin({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v1.FormStandaloneService.RestoreStandaloneFormFromTrashBin',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/trash-bin/{standaloneFormId}/restore',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'standaloneForm.createdDate' },\n { path: 'standaloneForm.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __restoreStandaloneFormFromTrashBin;\n}\n\n/** Retrieves a standalone form record from the trash bin by ID. */\nexport function getDeletedStandaloneForm(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDeletedStandaloneForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'GET' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.GetDeletedStandaloneForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/trash-bin/{standaloneFormId}',\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: 'standaloneForm.createdDate' },\n { path: 'standaloneForm.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDeletedStandaloneForm;\n}\n\n/** Retrieves a list of standalone form records that are in the trash bin. */\nexport function listDeletedStandaloneForms(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDeletedStandaloneForms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'GET' as any,\n methodFqn:\n 'wix.forms.v1.FormStandaloneService.ListDeletedStandaloneForms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/trash-bin',\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: 'standaloneForms.createdDate' },\n { path: 'standaloneForms.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDeletedStandaloneForms;\n}\n\n/**\n * Retrieves a list of standalone forms, given the provided filtering, sorting, and paging.\n *\n * Supported filterable and sortable fields: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.\n */\nexport function queryStandaloneForms(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryStandaloneForms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'POST' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.QueryStandaloneForms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'standaloneForms.createdDate' },\n { path: 'standaloneForms.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryStandaloneForms;\n}\n\n/**\n * Gets site properties (currency and locale) for the caller's standalone meta site.\n *\n * Results may be cached and are not guaranteed to reflect real-time changes.\n */\nexport function getSiteProperties(payload: object): RequestOptionsFactory<any> {\n function __getSiteProperties({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'GET' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.GetSiteProperties',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/site-properties',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getSiteProperties;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CreateStandaloneFormApplicationErrors,\n CursorQuery,\n DeleteStandaloneFormOptions,\n GetDeletedStandaloneFormResponse,\n GetOrCreateFormStandaloneMetaSiteResponse,\n GetSitePropertiesApplicationErrors,\n GetSitePropertiesResponse,\n ListDeletedStandaloneFormsOptions,\n ListDeletedStandaloneFormsResponse,\n QueryStandaloneFormsResponse,\n RestoreStandaloneFormFromTrashBinResponse,\n StandaloneForm,\n createStandaloneForm as universalCreateStandaloneForm,\n deleteStandaloneForm as universalDeleteStandaloneForm,\n getDeletedStandaloneForm as universalGetDeletedStandaloneForm,\n getOrCreateFormStandaloneMetaSite as universalGetOrCreateFormStandaloneMetaSite,\n getSiteProperties as universalGetSiteProperties,\n getStandaloneForm as universalGetStandaloneForm,\n listDeletedStandaloneForms as universalListDeletedStandaloneForms,\n queryStandaloneForms as universalQueryStandaloneForms,\n removeStandaloneFormFromTrashBin as universalRemoveStandaloneFormFromTrashBin,\n restoreStandaloneFormFromTrashBin as universalRestoreStandaloneFormFromTrashBin,\n} from './forms-v1-standalone-form-standalone-forms.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/standalone-forms' };\n\nexport function getOrCreateFormStandaloneMetaSite(\n httpClient: HttpClient\n): GetOrCreateFormStandaloneMetaSiteSignature {\n return () =>\n universalGetOrCreateFormStandaloneMetaSite(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetOrCreateFormStandaloneMetaSiteSignature {\n /**\n * Returns the standalone meta site owned by the caller's account, provisioning a new siteless\n * meta site if one doesn't exist yet.\n *\n * Use this when the caller doesn't already have a meta site, for example when a form is built\n * before the user becomes a Wix user. The returned meta site can then own standalone forms.\n */\n (): Promise<\n NonNullablePaths<GetOrCreateFormStandaloneMetaSiteResponse, `metaSiteId`, 0>\n >;\n}\n\nexport function createStandaloneForm(\n httpClient: HttpClient\n): CreateStandaloneFormSignature {\n return (standaloneForm: NonNullablePaths<StandaloneForm, `formId`, 0>) =>\n universalCreateStandaloneForm(\n standaloneForm,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateStandaloneFormSignature {\n /**\n * Marks an existing form as standalone by creating a standalone form record that binds the form\n * to the meta site that owns it.\n *\n * The form referenced by `formId` must already exist. The owning meta site is taken from the\n * calling context. A given form can be marked standalone by only one record per meta site.\n * @param - Standalone form\n * @returns Standalone form\n */\n (standaloneForm: NonNullablePaths<StandaloneForm, `formId`, 0>): Promise<\n StandaloneForm & {\n __applicationErrorsType?: CreateStandaloneFormApplicationErrors;\n }\n >;\n}\n\nexport function getStandaloneForm(\n httpClient: HttpClient\n): GetStandaloneFormSignature {\n return (standaloneFormId: string) =>\n universalGetStandaloneForm(\n standaloneFormId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetStandaloneFormSignature {\n /**\n * Retrieves a standalone form by ID.\n * @param - Standalone form id\n * @returns Standalone form\n */\n (standaloneFormId: string): Promise<StandaloneForm>;\n}\n\nexport function deleteStandaloneForm(\n httpClient: HttpClient\n): DeleteStandaloneFormSignature {\n return (standaloneFormId: string, options?: DeleteStandaloneFormOptions) =>\n universalDeleteStandaloneForm(\n standaloneFormId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteStandaloneFormSignature {\n /**\n * Deletes a standalone form record\n *\n * By default the record is moved to the trash bin. Set `permanent` to `true` to delete it permanently.\n * @param - Standalone form id\n */\n (\n standaloneFormId: string,\n options?: DeleteStandaloneFormOptions\n ): Promise<void>;\n}\n\nexport function removeStandaloneFormFromTrashBin(\n httpClient: HttpClient\n): RemoveStandaloneFormFromTrashBinSignature {\n return (standaloneFormId: string) =>\n universalRemoveStandaloneFormFromTrashBin(\n standaloneFormId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveStandaloneFormFromTrashBinSignature {\n /**\n * Permanently deletes a standalone form record that is in the trash bin.\n * @param - Standalone form id\n */\n (standaloneFormId: string): Promise<void>;\n}\n\nexport function restoreStandaloneFormFromTrashBin(\n httpClient: HttpClient\n): RestoreStandaloneFormFromTrashBinSignature {\n return (standaloneFormId: string) =>\n universalRestoreStandaloneFormFromTrashBin(\n standaloneFormId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RestoreStandaloneFormFromTrashBinSignature {\n /**\n * Restores a standalone form record from the trash bin.\n * @param - Standalone form id\n */\n (\n standaloneFormId: string\n ): Promise<RestoreStandaloneFormFromTrashBinResponse>;\n}\n\nexport function getDeletedStandaloneForm(\n httpClient: HttpClient\n): GetDeletedStandaloneFormSignature {\n return (standaloneFormId: string) =>\n universalGetDeletedStandaloneForm(\n standaloneFormId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDeletedStandaloneFormSignature {\n /**\n * Retrieves a standalone form record from the trash bin by ID.\n * @param - Standalone form id\n */\n (standaloneFormId: string): Promise<GetDeletedStandaloneFormResponse>;\n}\n\nexport function listDeletedStandaloneForms(\n httpClient: HttpClient\n): ListDeletedStandaloneFormsSignature {\n return (options?: ListDeletedStandaloneFormsOptions) =>\n universalListDeletedStandaloneForms(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListDeletedStandaloneFormsSignature {\n /**\n * Retrieves a list of standalone form records that are in the trash bin.\n */\n (options?: ListDeletedStandaloneFormsOptions): Promise<\n NonNullablePaths<ListDeletedStandaloneFormsResponse, `standaloneForms`, 0>\n >;\n}\n\nexport function queryStandaloneForms(\n httpClient: HttpClient\n): QueryStandaloneFormsSignature {\n return (query: CursorQuery) =>\n universalQueryStandaloneForms(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryStandaloneFormsSignature {\n /**\n * Retrieves a list of standalone forms, given the provided filtering, sorting, and paging.\n *\n * Supported filterable and sortable fields: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.\n * @param - WQL expression.\n */\n (query: CursorQuery): Promise<\n NonNullablePaths<QueryStandaloneFormsResponse, `standaloneForms`, 0>\n >;\n}\n\nexport function getSiteProperties(\n httpClient: HttpClient\n): GetSitePropertiesSignature {\n return () =>\n universalGetSiteProperties(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSitePropertiesSignature {\n /**\n * Gets site properties (currency and locale) for the caller's standalone meta site.\n *\n * Results may be cached and are not guaranteed to reflect real-time changes.\n */\n (): Promise<\n NonNullablePaths<\n GetSitePropertiesResponse,\n `siteProperties.localeLanguageCode` | `siteProperties.localeCountry`,\n 1\n > & {\n __applicationErrorsType?: GetSitePropertiesApplicationErrors;\n }\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n Address,\n AddressHint,\n Asset,\n BusinessSchedule,\n Categories,\n ChangeContext,\n ChangeContextPayloadOneOf,\n ConsentPolicy,\n CreateStandaloneFormRequest,\n CreateStandaloneFormResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DayOfWeek,\n DeleteContext,\n DeleteStandaloneFormOptions,\n DeleteStandaloneFormRequest,\n DeleteStandaloneFormResponse,\n DeleteStatus,\n DomainEvent,\n DomainEventBodyOneOf,\n EditorlessAssigned,\n EditorlessUnassigned,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n GeoCoordinates,\n GetDeletedStandaloneFormRequest,\n GetDeletedStandaloneFormResponse,\n GetOrCreateFormStandaloneMetaSiteRequest,\n GetOrCreateFormStandaloneMetaSiteResponse,\n GetSitePropertiesRequest,\n GetSitePropertiesResponse,\n GetStandaloneFormRequest,\n GetStandaloneFormResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListDeletedStandaloneFormsOptions,\n ListDeletedStandaloneFormsRequest,\n ListDeletedStandaloneFormsResponse,\n Locale,\n MessageEnvelope,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n Multilingual,\n Namespace,\n NamespaceChanged,\n OdeditorAssigned,\n OdeditorUnassigned,\n PicassoAssigned,\n PicassoUnassigned,\n PlacementType,\n Properties,\n PropertiesChange,\n QueryStandaloneFormsRequest,\n QueryStandaloneFormsResponse,\n RemoveStandaloneFormFromTrashBinRequest,\n RemoveStandaloneFormFromTrashBinResponse,\n ResolutionMethod,\n RestoreInfo,\n RestoreStandaloneFormFromTrashBinRequest,\n RestoreStandaloneFormFromTrashBinResponse,\n ServiceProvisioned,\n ServiceRemoved,\n SiteCloned,\n SiteCreated,\n SiteCreatedContext,\n SiteDeleted,\n SiteHardDeleted,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n SitePropertiesEvent,\n SitePropertiesNotification,\n SitePublished,\n SitePurgedExternally,\n SiteRenamed,\n SiteTransferred,\n SiteUndeleted,\n SiteUnpublished,\n SiteUrlChanged,\n SortOrder,\n Sorting,\n SpecialHourPeriod,\n StandaloneForm,\n StandaloneMetaSiteProperties,\n State,\n StudioAssigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n StudioUnassigned,\n SupportedLanguage,\n TimePeriod,\n Translation,\n UserDomainMediaDisabled,\n UserDomainMediaEnabled,\n V4SiteCreated,\n WebhookIdentityType,\n WixelAssigned,\n WixelUnassigned,\n} from './forms-v1-standalone-form-standalone-forms.universal.js';\n","import {\n getOrCreateFormStandaloneMetaSite as publicGetOrCreateFormStandaloneMetaSite,\n createStandaloneForm as publicCreateStandaloneForm,\n getStandaloneForm as publicGetStandaloneForm,\n deleteStandaloneForm as publicDeleteStandaloneForm,\n removeStandaloneFormFromTrashBin as publicRemoveStandaloneFormFromTrashBin,\n restoreStandaloneFormFromTrashBin as publicRestoreStandaloneFormFromTrashBin,\n getDeletedStandaloneForm as publicGetDeletedStandaloneForm,\n listDeletedStandaloneForms as publicListDeletedStandaloneForms,\n queryStandaloneForms as publicQueryStandaloneForms,\n getSiteProperties as publicGetSiteProperties,\n} from './forms-v1-standalone-form-standalone-forms.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getOrCreateFormStandaloneMetaSite: MaybeContext<\n BuildRESTFunction<typeof publicGetOrCreateFormStandaloneMetaSite> &\n typeof publicGetOrCreateFormStandaloneMetaSite\n> = /*#__PURE__*/ createRESTModule(publicGetOrCreateFormStandaloneMetaSite);\nexport const createStandaloneForm: MaybeContext<\n BuildRESTFunction<typeof publicCreateStandaloneForm> &\n typeof publicCreateStandaloneForm\n> = /*#__PURE__*/ createRESTModule(publicCreateStandaloneForm);\nexport const getStandaloneForm: MaybeContext<\n BuildRESTFunction<typeof publicGetStandaloneForm> &\n typeof publicGetStandaloneForm\n> = /*#__PURE__*/ createRESTModule(publicGetStandaloneForm);\nexport const deleteStandaloneForm: MaybeContext<\n BuildRESTFunction<typeof publicDeleteStandaloneForm> &\n typeof publicDeleteStandaloneForm\n> = /*#__PURE__*/ createRESTModule(publicDeleteStandaloneForm);\nexport const removeStandaloneFormFromTrashBin: MaybeContext<\n BuildRESTFunction<typeof publicRemoveStandaloneFormFromTrashBin> &\n typeof publicRemoveStandaloneFormFromTrashBin\n> = /*#__PURE__*/ createRESTModule(publicRemoveStandaloneFormFromTrashBin);\nexport const restoreStandaloneFormFromTrashBin: MaybeContext<\n BuildRESTFunction<typeof publicRestoreStandaloneFormFromTrashBin> &\n typeof publicRestoreStandaloneFormFromTrashBin\n> = /*#__PURE__*/ createRESTModule(publicRestoreStandaloneFormFromTrashBin);\nexport const getDeletedStandaloneForm: MaybeContext<\n BuildRESTFunction<typeof publicGetDeletedStandaloneForm> &\n typeof publicGetDeletedStandaloneForm\n> = /*#__PURE__*/ createRESTModule(publicGetDeletedStandaloneForm);\nexport const listDeletedStandaloneForms: MaybeContext<\n BuildRESTFunction<typeof publicListDeletedStandaloneForms> &\n typeof publicListDeletedStandaloneForms\n> = /*#__PURE__*/ createRESTModule(publicListDeletedStandaloneForms);\nexport const queryStandaloneForms: MaybeContext<\n BuildRESTFunction<typeof publicQueryStandaloneForms> &\n typeof publicQueryStandaloneForms\n> = /*#__PURE__*/ createRESTModule(publicQueryStandaloneForms);\nexport const getSiteProperties: MaybeContext<\n BuildRESTFunction<typeof publicGetSiteProperties> &\n typeof publicGetSiteProperties\n> = /*#__PURE__*/ createRESTModule(publicGetSiteProperties);\n\nexport {\n SortOrder,\n PlacementType,\n DayOfWeek,\n ResolutionMethod,\n State,\n SiteCreatedContext,\n Namespace,\n DeleteStatus,\n WebhookIdentityType,\n} from './forms-v1-standalone-form-standalone-forms.universal.js';\nexport {\n StandaloneForm,\n GetOrCreateFormStandaloneMetaSiteRequest,\n GetOrCreateFormStandaloneMetaSiteResponse,\n CreateStandaloneFormRequest,\n CreateStandaloneFormResponse,\n GetStandaloneFormRequest,\n GetStandaloneFormResponse,\n DeleteStandaloneFormRequest,\n DeleteStandaloneFormResponse,\n RemoveStandaloneFormFromTrashBinRequest,\n RemoveStandaloneFormFromTrashBinResponse,\n RestoreStandaloneFormFromTrashBinRequest,\n RestoreStandaloneFormFromTrashBinResponse,\n GetDeletedStandaloneFormRequest,\n GetDeletedStandaloneFormResponse,\n ListDeletedStandaloneFormsRequest,\n CursorPaging,\n ListDeletedStandaloneFormsResponse,\n CursorPagingMetadata,\n Cursors,\n QueryStandaloneFormsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n QueryStandaloneFormsResponse,\n GetSitePropertiesRequest,\n GetSitePropertiesResponse,\n StandaloneMetaSiteProperties,\n SitePropertiesNotification,\n SitePropertiesEvent,\n Properties,\n Categories,\n Locale,\n Address,\n AddressHint,\n GeoCoordinates,\n BusinessSchedule,\n TimePeriod,\n SpecialHourPeriod,\n Multilingual,\n SupportedLanguage,\n ConsentPolicy,\n Translation,\n ChangeContext,\n ChangeContextPayloadOneOf,\n PropertiesChange,\n V4SiteCreated,\n SiteCloned,\n Empty,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n Asset,\n SiteCreated,\n SiteTransferred,\n SiteDeleted,\n DeleteContext,\n SiteUndeleted,\n SitePublished,\n SiteUnpublished,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n ServiceProvisioned,\n ServiceRemoved,\n SiteRenamed,\n SiteHardDeleted,\n NamespaceChanged,\n StudioAssigned,\n StudioUnassigned,\n SiteUrlChanged,\n SitePurgedExternally,\n OdeditorAssigned,\n OdeditorUnassigned,\n PicassoAssigned,\n PicassoUnassigned,\n WixelAssigned,\n WixelUnassigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n UserDomainMediaEnabled,\n UserDomainMediaDisabled,\n EditorlessAssigned,\n EditorlessUnassigned,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n DeleteStandaloneFormOptions,\n ListDeletedStandaloneFormsOptions,\n} from './forms-v1-standalone-form-standalone-forms.universal.js';\nexport {\n SortOrderWithLiterals,\n PlacementTypeWithLiterals,\n DayOfWeekWithLiterals,\n ResolutionMethodWithLiterals,\n StateWithLiterals,\n SiteCreatedContextWithLiterals,\n NamespaceWithLiterals,\n DeleteStatusWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CreateStandaloneFormApplicationErrors,\n GetSitePropertiesApplicationErrors,\n} from './forms-v1-standalone-form-standalone-forms.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAAA;AAAA,EAAA,4BAAAC;AAAA,EAAA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MC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,8BAGK,2DAAiBA,2BAAgC;AAC5D,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,qBAGK,2DAAiBA,kBAAuB;","names":["createStandaloneForm","deleteStandaloneForm","getDeletedStandaloneForm","getOrCreateFormStandaloneMetaSite","getSiteProperties","getStandaloneForm","listDeletedStandaloneForms","queryStandaloneForms","removeStandaloneFormFromTrashBin","restoreStandaloneFormFromTrashBin","import_timestamp","import_rest_modules","payload","SortOrder","PlacementType","DayOfWeek","ResolutionMethod","State","SiteCreatedContext","Namespace","DeleteStatus","WebhookIdentityType","getOrCreateFormStandaloneMetaSite","sdkTransformError","createStandaloneForm","getStandaloneForm","deleteStandaloneForm","removeStandaloneFormFromTrashBin","restoreStandaloneFormFromTrashBin","getDeletedStandaloneForm","listDeletedStandaloneForms","queryStandaloneForms","getSiteProperties","getOrCreateFormStandaloneMetaSite","createStandaloneForm","getStandaloneForm","deleteStandaloneForm","removeStandaloneFormFromTrashBin","restoreStandaloneFormFromTrashBin","getDeletedStandaloneForm","listDeletedStandaloneForms","queryStandaloneForms","getSiteProperties","import_rest_modules","getOrCreateFormStandaloneMetaSite","createStandaloneForm","getStandaloneForm","deleteStandaloneForm","removeStandaloneFormFromTrashBin","restoreStandaloneFormFromTrashBin","getDeletedStandaloneForm","listDeletedStandaloneForms","queryStandaloneForms","getSiteProperties"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/forms-v1-standalone-form-standalone-forms.universal.ts","../../src/forms-v1-standalone-form-standalone-forms.http.ts","../../src/forms-v1-standalone-form-standalone-forms.public.ts","../../src/forms-v1-standalone-form-standalone-forms.context.ts"],"sourcesContent":["export * from './src/forms-v1-standalone-form-standalone-forms.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixFormsV1StandaloneForm from './forms-v1-standalone-form-standalone-forms.http.js';\n\n/**\n * A standalone form marks a [form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/introduction) as standalone, so responders can reach it at its own public URL\n * instead of on a Wix site.\n *\n * A form doesn't indicate whether it's standalone. A standalone form that references the form is what makes it\n * standalone.\n */\nexport interface StandaloneForm {\n /**\n * Standalone form ID.\n *\n * Used in the standalone form's public URL. See `accountSlug` for the URL format.\n * @maxLength 36\n * @readonly\n */\n _id?: string | null;\n /**\n * ID of the [form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/introduction) that the standalone form marks as standalone.\n *\n * The form must exist before you create the standalone form.\n * @format GUID\n */\n formId?: string | null;\n /**\n * ID of the site that owns the standalone form.\n *\n * Set to the site your request is authorized for when the standalone form is created.\n * @format GUID\n * @readonly\n */\n metaSiteId?: string | null;\n /**\n * Date and time the standalone form was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the standalone form was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Account slug of the site owner, used in the standalone form's public URL.\n *\n * The standalone form's public URL is:\n * - `https://{accountSlug}.wixforms.com/f/{id}` when `accountSlug` is set.\n * - `https://www.wixforms.com/f/{id}` when `accountSlug` is empty.\n *\n * Set when the standalone form is created and doesn't change afterward.\n * @maxLength 50\n * @readonly\n */\n accountSlug?: string | null;\n}\n\nexport interface GetOrCreateFormStandaloneMetaSiteRequest {}\n\nexport interface GetOrCreateFormStandaloneMetaSiteResponse {\n /**\n * Meta site ID.\n * @format GUID\n */\n metaSiteId?: string;\n}\n\nexport interface CreateStandaloneFormRequest {\n /** Standalone form to create. */\n standaloneForm: StandaloneForm;\n}\n\nexport interface CreateStandaloneFormResponse {\n /** Created standalone form. */\n standaloneForm?: StandaloneForm;\n}\n\nexport interface GetStandaloneFormRequest {\n /**\n * ID of the standalone form to retrieve.\n * @maxLength 36\n */\n standaloneFormId: string;\n}\n\nexport interface GetStandaloneFormResponse {\n /** Retrieved standalone form. */\n standaloneForm?: StandaloneForm;\n}\n\nexport interface DeleteStandaloneFormRequest {\n /**\n * ID of the standalone form to delete.\n * @maxLength 36\n */\n standaloneFormId: string;\n /**\n * Whether to permanently delete the standalone form instead of moving it to the trash bin.\n *\n * Default: `false`\n */\n permanent?: boolean;\n}\n\nexport interface DeleteStandaloneFormResponse {}\n\nexport interface RemoveStandaloneFormFromTrashBinRequest {\n /**\n * ID of the standalone form to permanently delete.\n * @maxLength 36\n */\n standaloneFormId: string;\n}\n\nexport interface RemoveStandaloneFormFromTrashBinResponse {}\n\nexport interface RestoreStandaloneFormFromTrashBinRequest {\n /**\n * ID of the standalone form to restore.\n * @maxLength 36\n */\n standaloneFormId: string;\n}\n\nexport interface RestoreStandaloneFormFromTrashBinResponse {\n /** Restored standalone form. */\n standaloneForm?: StandaloneForm;\n}\n\nexport interface GetDeletedStandaloneFormRequest {\n /**\n * ID of the standalone form to retrieve from the trash bin.\n * @maxLength 36\n */\n standaloneFormId: string;\n}\n\nexport interface GetDeletedStandaloneFormResponse {\n /** Retrieved standalone form. */\n standaloneForm?: StandaloneForm;\n}\n\nexport interface ListDeletedStandaloneFormsRequest {\n /**\n * IDs of the standalone forms to retrieve from the trash bin.\n *\n * Default: All standalone forms in the trash bin.\n * @maxSize 100\n * @maxLength 36\n */\n standaloneFormIds?: string[];\n /** Cursor paging options. */\n paging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * 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 ListDeletedStandaloneFormsResponse {\n /**\n * Retrieved standalone forms.\n * @maxSize 100\n */\n standaloneForms?: StandaloneForm[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor pointing to next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface QueryStandaloneFormsRequest {\n /** Query options. See [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) for more information. */\n query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 3\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 QueryStandaloneFormsResponse {\n /**\n * Retrieved standalone forms.\n * @maxSize 100\n */\n standaloneForms?: StandaloneForm[];\n /** Paging metadata. */\n metadata?: CursorPagingMetadata;\n}\n\nexport interface GetSitePropertiesRequest {}\n\nexport interface GetSitePropertiesResponse {\n /** Site's currency and locale. */\n siteProperties?: StandaloneMetaSiteProperties;\n}\n\n/** Currency and locale settings of a site. */\nexport interface StandaloneMetaSiteProperties {\n /**\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * Empty if the site's payment currency isn't set.\n */\n paymentCurrency?: string | null;\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 * Empty if the site's locale isn't set.\n * @maxLength 2\n */\n localeLanguageCode?: string;\n /**\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 *\n * Empty if the site's locale isn't set.\n * @maxLength 2\n */\n localeCountry?: 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 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 /** Site time zone in IANA time zone database format. For example, `America/New_York`. */\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 * Company ID issued to the business by local authorities. Appears on invoices and price quotes.\n * @maxLength 50\n */\n companyId?: string | null;\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?: V4SiteCreated;\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?: V4SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface V4SiteCreated {\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 MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /** Emitted when media from user domain is enabled. */\n userDomainMediaEnabled?: UserDomainMediaEnabled;\n /** Emitted when media from user domain is disabled. */\n userDomainMediaDisabled?: UserDomainMediaDisabled;\n /** Emitted when Editorless is attached. */\n editorlessAssigned?: EditorlessAssigned;\n /** Emitted when Editorless is detached. */\n editorlessUnassigned?: EditorlessUnassigned;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /** Emitted when media from user domain is enabled. */\n userDomainMediaEnabled?: UserDomainMediaEnabled;\n /** Emitted when media from user domain is disabled. */\n userDomainMediaDisabled?: UserDomainMediaDisabled;\n /** Emitted when Editorless is attached. */\n editorlessAssigned?: EditorlessAssigned;\n /** Emitted when Editorless is detached. */\n editorlessUnassigned?: EditorlessUnassigned;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /**\n * AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default.\n * Not the dev-center dev site (see Flag.DEV_CENTER_DEV_SITE_FLAG).\n */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n /** Base44 headless sites. */\n BASE44 = 'BASE44',\n /** Wix Channels Sites */\n CHANNELS = 'CHANNELS',\n /** Nautilus platform. */\n NAUTILUS = 'NAUTILUS',\n /**\n * Symphony — a siteless site representing a project within Symphony (the evolution of Orion).\n * Holds project data, conversations, assets, and manages collaborators / shared team members for the project.\n */\n SYMPHONY = 'SYMPHONY',\n /** Nautilus platform app. */\n NAUTILUS_APPS = 'NAUTILUS_APPS',\n /**\n * Vibu — a siteless site representing a project built with Vibu (the AI app builder).\n * Holds the project's generated code, conversations, assets, and manages collaborators for the project.\n */\n VIBU = 'VIBU',\n /**\n * Ghost site for the BrandKit multi-site platform. Each ghost backs a single BrandKit\n * (an Enterprise account may have several), holding that BrandKit's brand definition\n * (theme, typography, assets) which is rolled out to the BrandKit's connected sites.\n * MetaSites with this namespace will *not* be shown in a user's site list by default.\n */\n ENTERPRISE_BRAND_KIT = 'ENTERPRISE_BRAND_KIT',\n /**\n * Dev-center development sites (com.wixpress.devcenter.dsm).\n * DEPRECATED: replaced by Flag.DEV_CENTER_DEV_SITE_FLAG (a dev site is orthogonal to the namespace). Do not use for new sites.\n */\n DEV_CENTER_DEV_SITE = 'DEV_CENTER_DEV_SITE',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44'\n | 'CHANNELS'\n | 'NAUTILUS'\n | 'SYMPHONY'\n | 'NAUTILUS_APPS'\n | 'VIBU'\n | 'ENTERPRISE_BRAND_KIT'\n | 'DEV_CENTER_DEV_SITE';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\n\n/** Media from user domain is enabled. */\nexport interface UserDomainMediaEnabled {}\n\n/** Media from user domain is disabled. */\nexport interface UserDomainMediaDisabled {}\n\n/** Assigned Editorless */\nexport interface EditorlessAssigned {}\n\n/** Unassigned Editorless */\nexport interface EditorlessUnassigned {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateStandaloneFormApplicationErrors = {\n code?: 'FAILED_PRECONDITION';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type GetSitePropertiesApplicationErrors = {\n code?: 'SITE_PROPERTIES_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Creates a standalone form, which marks a form as standalone so responders can reach it at its own public URL.\n *\n * The form must already exist. Create it with [Create Form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/create-form) first. The standalone form is owned by\n * the site your request is authorized for. Each form can be marked standalone once per site.\n *\n * The response includes the `id` and `accountSlug` that make up the standalone form's public URL.\n *\n * To stop hosting the form as standalone, call [Delete Standalone Form](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/delete-standalone-form).\n * @param standaloneForm - Standalone form to create.\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneForm\n * @requiredField standaloneForm.formId\n * @permissionId WIX_FORMS.STANDALONE_FORM_CREATE\n * @applicableIdentity APP\n * @returns Created standalone form.\n * @fqn wix.forms.v1.FormStandaloneService.CreateStandaloneForm\n */\nexport async function createStandaloneForm(\n standaloneForm: NonNullablePaths<StandaloneForm, `formId`, 0>\n): Promise<\n StandaloneForm & {\n __applicationErrorsType?: CreateStandaloneFormApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneForm: standaloneForm,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.createStandaloneForm(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 ?.standaloneForm!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { standaloneForm: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['standaloneForm']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a standalone form.\n *\n * To retrieve the form's fields and settings, pass the returned `formId` to [Get Form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/get-form).\n * @param standaloneFormId - ID of the standalone form to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneFormId\n * @permissionId WIX_FORMS.STANDALONE_FORM_READ\n * @applicableIdentity APP\n * @returns Retrieved standalone form.\n * @fqn wix.forms.v1.FormStandaloneService.GetStandaloneForm\n */\nexport async function getStandaloneForm(\n standaloneFormId: string\n): Promise<StandaloneForm> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormId: standaloneFormId,\n });\n\n const reqOpts = ambassadorWixFormsV1StandaloneForm.getStandaloneForm(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 ?.standaloneForm!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { standaloneFormId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['standaloneFormId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Deletes a standalone form.\n *\n * Deleting a standalone form means the form is no longer standalone. The form itself isn't deleted.\n *\n * By default, the standalone form is moved to the trash bin. From there, you can restore it with\n * [Restore Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/restore-standalone-form-from-trash-bin) or permanently delete it with\n * [Remove Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/remove-standalone-form-from-trash-bin). To permanently delete the standalone form right away, set\n * `permanent` to `true`.\n * @param standaloneFormId - ID of the standalone form to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneFormId\n * @permissionId WIX_FORMS.STANDALONE_FORM_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.DeleteStandaloneForm\n */\nexport async function deleteStandaloneForm(\n standaloneFormId: string,\n options?: DeleteStandaloneFormOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormId: standaloneFormId,\n permanent: options?.permanent,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.deleteStandaloneForm(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: {\n standaloneFormId: '$[0]',\n permanent: '$[1].permanent',\n },\n singleArgumentUnchanged: false,\n },\n ['standaloneFormId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteStandaloneFormOptions {\n /**\n * Whether to permanently delete the standalone form instead of moving it to the trash bin.\n *\n * Default: `false`\n */\n permanent?: boolean;\n}\n\n/**\n * Permanently deletes a standalone form from the trash bin.\n *\n * To move a standalone form to the trash bin, call [Delete Standalone Form](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/delete-standalone-form).\n * @param standaloneFormId - ID of the standalone form to permanently delete.\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneFormId\n * @permissionId WIX_FORMS.STANDALONE_FORM_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.RemoveStandaloneFormFromTrashBin\n */\nexport async function removeStandaloneFormFromTrashBin(\n standaloneFormId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormId: standaloneFormId,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.removeStandaloneFormFromTrashBin(\n payload\n );\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: { standaloneFormId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['standaloneFormId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Restores a standalone form from the trash bin.\n *\n * The restored standalone form keeps its `id` and `accountSlug`, so its public URL works again.\n * @param standaloneFormId - ID of the standalone form to restore.\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneFormId\n * @permissionId WIX_FORMS.STANDALONE_FORM_CREATE\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.RestoreStandaloneFormFromTrashBin\n */\nexport async function restoreStandaloneFormFromTrashBin(\n standaloneFormId: string\n): Promise<RestoreStandaloneFormFromTrashBinResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormId: standaloneFormId,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.restoreStandaloneFormFromTrashBin(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { standaloneFormId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['standaloneFormId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a standalone form from the trash bin.\n * @param standaloneFormId - ID of the standalone form to retrieve from the trash bin.\n * @public\n * @documentationMaturity preview\n * @requiredField standaloneFormId\n * @permissionId WIX_FORMS.STANDALONE_FORM_READ\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.GetDeletedStandaloneForm\n */\nexport async function getDeletedStandaloneForm(\n standaloneFormId: string\n): Promise<GetDeletedStandaloneFormResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormId: standaloneFormId,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.getDeletedStandaloneForm(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: { standaloneFormId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['standaloneFormId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of standalone forms in the trash bin.\n *\n * To retrieve specific standalone forms, specify their IDs in `standaloneFormIds`.\n * @public\n * @documentationMaturity preview\n * @permissionId WIX_FORMS.STANDALONE_FORM_READ\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.ListDeletedStandaloneForms\n */\nexport async function listDeletedStandaloneForms(\n options?: ListDeletedStandaloneFormsOptions\n): Promise<\n NonNullablePaths<ListDeletedStandaloneFormsResponse, `standaloneForms`, 0>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n standaloneFormIds: options?.standaloneFormIds,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.listDeletedStandaloneForms(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 standaloneFormIds: '$[0].standaloneFormIds',\n paging: '$[0].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListDeletedStandaloneFormsOptions {\n /**\n * IDs of the standalone forms to retrieve from the trash bin.\n *\n * Default: All standalone forms in the trash bin.\n * @maxSize 100\n * @maxLength 36\n */\n standaloneFormIds?: string[];\n /** Cursor paging options. */\n paging?: CursorPaging;\n}\n\n/**\n * Retrieves a list of up to 100 standalone forms, given the provided paging, filtering, and sorting.\n *\n * Query Standalone Forms runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `cursorPaging.limit` is `50`\n *\n * Supported properties for filtering and sorting: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.\n *\n * To learn about working with Query methods, see\n * [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language),\n * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging),\n * and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n * @param query - Query options. See [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) for more information.\n * @public\n * @documentationMaturity preview\n * @requiredField query\n * @permissionId WIX_FORMS.STANDALONE_FORM_READ\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.QueryStandaloneForms\n */\nexport async function queryStandaloneForms(\n query: CursorQuery\n): Promise<\n NonNullablePaths<QueryStandaloneFormsResponse, `standaloneForms`, 0>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixFormsV1StandaloneForm.queryStandaloneForms(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\n/**\n * Retrieves the currency and locale of the site your request is authorized for.\n *\n * Use these values to display prices and labels correctly when you render a standalone form. Results may be cached,\n * so recent changes to the site's settings might not appear right away.\n * @public\n * @documentationMaturity preview\n * @permissionId WIX_FORMS.STANDALONE_FORM_READ\n * @applicableIdentity APP\n * @fqn wix.forms.v1.FormStandaloneService.GetSiteProperties\n */\nexport async function getSiteProperties(): Promise<\n NonNullablePaths<\n GetSitePropertiesResponse,\n `siteProperties.localeLanguageCode` | `siteProperties.localeCountry`,\n 1\n > & {\n __applicationErrorsType?: GetSitePropertiesApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixFormsV1StandaloneForm.getSiteProperties(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 { 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\nconst TRANSFORM_PATHS_0 = [\n { path: 'standaloneForm.createdDate' },\n { path: 'standaloneForm.updatedDate' },\n];\nconst TRANSFORM_PATHS_1 = [\n { path: 'standaloneForms.createdDate' },\n { path: 'standaloneForms.updatedDate' },\n];\n\nfunction resolveWixFormsV1FormStandaloneServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/form-standalone-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n {\n srcPath: '/forms/v4/standalone-forms',\n destPath: '/v4/standalone-forms',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/forms/v4/standalone-forms',\n destPath: '/v4/standalone-forms',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/forms/v4/standalone-forms',\n destPath: '/v4/standalone-forms',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/form-standalone-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_standalone-forms_standalone-forms';\n\n/**\n * Creates a standalone form, which marks a form as standalone so responders can reach it at its own public URL.\n *\n * The form must already exist. Create it with [Create Form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/create-form) first. The standalone form is owned by\n * the site your request is authorized for. Each form can be marked standalone once per site.\n *\n * The response includes the `id` and `accountSlug` that make up the standalone form's public URL.\n *\n * To stop hosting the form as standalone, call [Delete Standalone Form](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/delete-standalone-form).\n */\nexport function createStandaloneForm(\n payload: object\n): RequestOptionsFactory<any> {\n function __createStandaloneForm({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'POST' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.CreateStandaloneForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createStandaloneForm;\n}\n\n/**\n * Retrieves a standalone form.\n *\n * To retrieve the form's fields and settings, pass the returned `formId` to [Get Form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/get-form).\n */\nexport function getStandaloneForm(payload: object): RequestOptionsFactory<any> {\n function __getStandaloneForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'GET' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.GetStandaloneForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/{standaloneFormId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getStandaloneForm;\n}\n\n/**\n * Deletes a standalone form.\n *\n * Deleting a standalone form means the form is no longer standalone. The form itself isn't deleted.\n *\n * By default, the standalone form is moved to the trash bin. From there, you can restore it with\n * [Restore Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/restore-standalone-form-from-trash-bin) or permanently delete it with\n * [Remove Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/remove-standalone-form-from-trash-bin). To permanently delete the standalone form right away, set\n * `permanent` to `true`.\n */\nexport function deleteStandaloneForm(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteStandaloneForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'DELETE' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.DeleteStandaloneForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/{standaloneFormId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteStandaloneForm;\n}\n\n/**\n * Permanently deletes a standalone form from the trash bin.\n *\n * To move a standalone form to the trash bin, call [Delete Standalone Form](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/delete-standalone-form).\n */\nexport function removeStandaloneFormFromTrashBin(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeStandaloneFormFromTrashBin({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.forms.v1.FormStandaloneService.RemoveStandaloneFormFromTrashBin',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/trash-bin/{standaloneFormId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __removeStandaloneFormFromTrashBin;\n}\n\n/**\n * Restores a standalone form from the trash bin.\n *\n * The restored standalone form keeps its `id` and `accountSlug`, so its public URL works again.\n */\nexport function restoreStandaloneFormFromTrashBin(\n payload: object\n): RequestOptionsFactory<any> {\n function __restoreStandaloneFormFromTrashBin({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v1.FormStandaloneService.RestoreStandaloneFormFromTrashBin',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/trash-bin/{standaloneFormId}/restore',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __restoreStandaloneFormFromTrashBin;\n}\n\n/** Retrieves a standalone form from the trash bin. */\nexport function getDeletedStandaloneForm(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDeletedStandaloneForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'GET' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.GetDeletedStandaloneForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/trash-bin/{standaloneFormId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDeletedStandaloneForm;\n}\n\n/**\n * Retrieves a list of standalone forms in the trash bin.\n *\n * To retrieve specific standalone forms, specify their IDs in `standaloneFormIds`.\n */\nexport function listDeletedStandaloneForms(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDeletedStandaloneForms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'GET' as any,\n methodFqn:\n 'wix.forms.v1.FormStandaloneService.ListDeletedStandaloneForms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/trash-bin',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDeletedStandaloneForms;\n}\n\n/**\n * Retrieves a list of up to 100 standalone forms, given the provided paging, filtering, and sorting.\n *\n * Query Standalone Forms runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `cursorPaging.limit` is `50`\n *\n * Supported properties for filtering and sorting: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.\n *\n * To learn about working with Query methods, see\n * [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language),\n * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging),\n * and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n */\nexport function queryStandaloneForms(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryStandaloneForms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'POST' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.QueryStandaloneForms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryStandaloneForms;\n}\n\n/**\n * Retrieves the currency and locale of the site your request is authorized for.\n *\n * Use these values to display prices and labels correctly when you render a standalone form. Results may be cached,\n * so recent changes to the site's settings might not appear right away.\n */\nexport function getSiteProperties(payload: object): RequestOptionsFactory<any> {\n function __getSiteProperties({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v1.standalone_form',\n method: 'GET' as any,\n methodFqn: 'wix.forms.v1.FormStandaloneService.GetSiteProperties',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsV1FormStandaloneServiceUrl({\n protoPath: '/v4/standalone-forms/site-properties',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getSiteProperties;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CreateStandaloneFormApplicationErrors,\n CursorQuery,\n DeleteStandaloneFormOptions,\n GetDeletedStandaloneFormResponse,\n GetSitePropertiesApplicationErrors,\n GetSitePropertiesResponse,\n ListDeletedStandaloneFormsOptions,\n ListDeletedStandaloneFormsResponse,\n QueryStandaloneFormsResponse,\n RestoreStandaloneFormFromTrashBinResponse,\n StandaloneForm,\n createStandaloneForm as universalCreateStandaloneForm,\n deleteStandaloneForm as universalDeleteStandaloneForm,\n getDeletedStandaloneForm as universalGetDeletedStandaloneForm,\n getSiteProperties as universalGetSiteProperties,\n getStandaloneForm as universalGetStandaloneForm,\n listDeletedStandaloneForms as universalListDeletedStandaloneForms,\n queryStandaloneForms as universalQueryStandaloneForms,\n removeStandaloneFormFromTrashBin as universalRemoveStandaloneFormFromTrashBin,\n restoreStandaloneFormFromTrashBin as universalRestoreStandaloneFormFromTrashBin,\n} from './forms-v1-standalone-form-standalone-forms.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/standalone-forms' };\n\nexport function createStandaloneForm(\n httpClient: HttpClient\n): CreateStandaloneFormSignature {\n return (standaloneForm: NonNullablePaths<StandaloneForm, `formId`, 0>) =>\n universalCreateStandaloneForm(\n standaloneForm,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateStandaloneFormSignature {\n /**\n * Creates a standalone form, which marks a form as standalone so responders can reach it at its own public URL.\n *\n * The form must already exist. Create it with [Create Form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/create-form) first. The standalone form is owned by\n * the site your request is authorized for. Each form can be marked standalone once per site.\n *\n * The response includes the `id` and `accountSlug` that make up the standalone form's public URL.\n *\n * To stop hosting the form as standalone, call [Delete Standalone Form](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/delete-standalone-form).\n * @param - Standalone form to create.\n * @returns Created standalone form.\n */\n (standaloneForm: NonNullablePaths<StandaloneForm, `formId`, 0>): Promise<\n StandaloneForm & {\n __applicationErrorsType?: CreateStandaloneFormApplicationErrors;\n }\n >;\n}\n\nexport function getStandaloneForm(\n httpClient: HttpClient\n): GetStandaloneFormSignature {\n return (standaloneFormId: string) =>\n universalGetStandaloneForm(\n standaloneFormId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetStandaloneFormSignature {\n /**\n * Retrieves a standalone form.\n *\n * To retrieve the form's fields and settings, pass the returned `formId` to [Get Form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/get-form).\n * @param - ID of the standalone form to retrieve.\n * @returns Retrieved standalone form.\n */\n (standaloneFormId: string): Promise<StandaloneForm>;\n}\n\nexport function deleteStandaloneForm(\n httpClient: HttpClient\n): DeleteStandaloneFormSignature {\n return (standaloneFormId: string, options?: DeleteStandaloneFormOptions) =>\n universalDeleteStandaloneForm(\n standaloneFormId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteStandaloneFormSignature {\n /**\n * Deletes a standalone form.\n *\n * Deleting a standalone form means the form is no longer standalone. The form itself isn't deleted.\n *\n * By default, the standalone form is moved to the trash bin. From there, you can restore it with\n * [Restore Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/restore-standalone-form-from-trash-bin) or permanently delete it with\n * [Remove Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/remove-standalone-form-from-trash-bin). To permanently delete the standalone form right away, set\n * `permanent` to `true`.\n * @param - ID of the standalone form to delete.\n */\n (\n standaloneFormId: string,\n options?: DeleteStandaloneFormOptions\n ): Promise<void>;\n}\n\nexport function removeStandaloneFormFromTrashBin(\n httpClient: HttpClient\n): RemoveStandaloneFormFromTrashBinSignature {\n return (standaloneFormId: string) =>\n universalRemoveStandaloneFormFromTrashBin(\n standaloneFormId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveStandaloneFormFromTrashBinSignature {\n /**\n * Permanently deletes a standalone form from the trash bin.\n *\n * To move a standalone form to the trash bin, call [Delete Standalone Form](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/delete-standalone-form).\n * @param - ID of the standalone form to permanently delete.\n */\n (standaloneFormId: string): Promise<void>;\n}\n\nexport function restoreStandaloneFormFromTrashBin(\n httpClient: HttpClient\n): RestoreStandaloneFormFromTrashBinSignature {\n return (standaloneFormId: string) =>\n universalRestoreStandaloneFormFromTrashBin(\n standaloneFormId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RestoreStandaloneFormFromTrashBinSignature {\n /**\n * Restores a standalone form from the trash bin.\n *\n * The restored standalone form keeps its `id` and `accountSlug`, so its public URL works again.\n * @param - ID of the standalone form to restore.\n */\n (\n standaloneFormId: string\n ): Promise<RestoreStandaloneFormFromTrashBinResponse>;\n}\n\nexport function getDeletedStandaloneForm(\n httpClient: HttpClient\n): GetDeletedStandaloneFormSignature {\n return (standaloneFormId: string) =>\n universalGetDeletedStandaloneForm(\n standaloneFormId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDeletedStandaloneFormSignature {\n /**\n * Retrieves a standalone form from the trash bin.\n * @param - ID of the standalone form to retrieve from the trash bin.\n */\n (standaloneFormId: string): Promise<GetDeletedStandaloneFormResponse>;\n}\n\nexport function listDeletedStandaloneForms(\n httpClient: HttpClient\n): ListDeletedStandaloneFormsSignature {\n return (options?: ListDeletedStandaloneFormsOptions) =>\n universalListDeletedStandaloneForms(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListDeletedStandaloneFormsSignature {\n /**\n * Retrieves a list of standalone forms in the trash bin.\n *\n * To retrieve specific standalone forms, specify their IDs in `standaloneFormIds`.\n */\n (options?: ListDeletedStandaloneFormsOptions): Promise<\n NonNullablePaths<ListDeletedStandaloneFormsResponse, `standaloneForms`, 0>\n >;\n}\n\nexport function queryStandaloneForms(\n httpClient: HttpClient\n): QueryStandaloneFormsSignature {\n return (query: CursorQuery) =>\n universalQueryStandaloneForms(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryStandaloneFormsSignature {\n /**\n * Retrieves a list of up to 100 standalone forms, given the provided paging, filtering, and sorting.\n *\n * Query Standalone Forms runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `cursorPaging.limit` is `50`\n *\n * Supported properties for filtering and sorting: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.\n *\n * To learn about working with Query methods, see\n * [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language),\n * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging),\n * and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n * @param - Query options. See [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) for more information.\n */\n (query: CursorQuery): Promise<\n NonNullablePaths<QueryStandaloneFormsResponse, `standaloneForms`, 0>\n >;\n}\n\nexport function getSiteProperties(\n httpClient: HttpClient\n): GetSitePropertiesSignature {\n return () =>\n universalGetSiteProperties(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSitePropertiesSignature {\n /**\n * Retrieves the currency and locale of the site your request is authorized for.\n *\n * Use these values to display prices and labels correctly when you render a standalone form. Results may be cached,\n * so recent changes to the site's settings might not appear right away.\n */\n (): Promise<\n NonNullablePaths<\n GetSitePropertiesResponse,\n `siteProperties.localeLanguageCode` | `siteProperties.localeCountry`,\n 1\n > & {\n __applicationErrorsType?: GetSitePropertiesApplicationErrors;\n }\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n Address,\n AddressHint,\n Asset,\n BusinessSchedule,\n Categories,\n ChangeContext,\n ChangeContextPayloadOneOf,\n ConsentPolicy,\n CreateStandaloneFormRequest,\n CreateStandaloneFormResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DayOfWeek,\n DeleteContext,\n DeleteStandaloneFormOptions,\n DeleteStandaloneFormRequest,\n DeleteStandaloneFormResponse,\n DeleteStatus,\n DomainEvent,\n DomainEventBodyOneOf,\n EditorlessAssigned,\n EditorlessUnassigned,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n GeoCoordinates,\n GetDeletedStandaloneFormRequest,\n GetDeletedStandaloneFormResponse,\n GetOrCreateFormStandaloneMetaSiteRequest,\n GetOrCreateFormStandaloneMetaSiteResponse,\n GetSitePropertiesRequest,\n GetSitePropertiesResponse,\n GetStandaloneFormRequest,\n GetStandaloneFormResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListDeletedStandaloneFormsOptions,\n ListDeletedStandaloneFormsRequest,\n ListDeletedStandaloneFormsResponse,\n Locale,\n MessageEnvelope,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n Multilingual,\n Namespace,\n NamespaceChanged,\n OdeditorAssigned,\n OdeditorUnassigned,\n PicassoAssigned,\n PicassoUnassigned,\n PlacementType,\n Properties,\n PropertiesChange,\n QueryStandaloneFormsRequest,\n QueryStandaloneFormsResponse,\n RemoveStandaloneFormFromTrashBinRequest,\n RemoveStandaloneFormFromTrashBinResponse,\n ResolutionMethod,\n RestoreInfo,\n RestoreStandaloneFormFromTrashBinRequest,\n RestoreStandaloneFormFromTrashBinResponse,\n ServiceProvisioned,\n ServiceRemoved,\n SiteCloned,\n SiteCreated,\n SiteCreatedContext,\n SiteDeleted,\n SiteHardDeleted,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n SitePropertiesEvent,\n SitePropertiesNotification,\n SitePublished,\n SitePurgedExternally,\n SiteRenamed,\n SiteTransferred,\n SiteUndeleted,\n SiteUnpublished,\n SiteUrlChanged,\n SortOrder,\n Sorting,\n SpecialHourPeriod,\n StandaloneForm,\n StandaloneMetaSiteProperties,\n State,\n StudioAssigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n StudioUnassigned,\n SupportedLanguage,\n TimePeriod,\n Translation,\n UserDomainMediaDisabled,\n UserDomainMediaEnabled,\n V4SiteCreated,\n WebhookIdentityType,\n WixelAssigned,\n WixelUnassigned,\n} from './forms-v1-standalone-form-standalone-forms.universal.js';\n","import {\n createStandaloneForm as publicCreateStandaloneForm,\n getStandaloneForm as publicGetStandaloneForm,\n deleteStandaloneForm as publicDeleteStandaloneForm,\n removeStandaloneFormFromTrashBin as publicRemoveStandaloneFormFromTrashBin,\n restoreStandaloneFormFromTrashBin as publicRestoreStandaloneFormFromTrashBin,\n getDeletedStandaloneForm as publicGetDeletedStandaloneForm,\n listDeletedStandaloneForms as publicListDeletedStandaloneForms,\n queryStandaloneForms as publicQueryStandaloneForms,\n getSiteProperties as publicGetSiteProperties,\n} from './forms-v1-standalone-form-standalone-forms.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const createStandaloneForm: MaybeContext<\n BuildRESTFunction<typeof publicCreateStandaloneForm> &\n typeof publicCreateStandaloneForm\n> = /*#__PURE__*/ createRESTModule(publicCreateStandaloneForm);\nexport const getStandaloneForm: MaybeContext<\n BuildRESTFunction<typeof publicGetStandaloneForm> &\n typeof publicGetStandaloneForm\n> = /*#__PURE__*/ createRESTModule(publicGetStandaloneForm);\nexport const deleteStandaloneForm: MaybeContext<\n BuildRESTFunction<typeof publicDeleteStandaloneForm> &\n typeof publicDeleteStandaloneForm\n> = /*#__PURE__*/ createRESTModule(publicDeleteStandaloneForm);\nexport const removeStandaloneFormFromTrashBin: MaybeContext<\n BuildRESTFunction<typeof publicRemoveStandaloneFormFromTrashBin> &\n typeof publicRemoveStandaloneFormFromTrashBin\n> = /*#__PURE__*/ createRESTModule(publicRemoveStandaloneFormFromTrashBin);\nexport const restoreStandaloneFormFromTrashBin: MaybeContext<\n BuildRESTFunction<typeof publicRestoreStandaloneFormFromTrashBin> &\n typeof publicRestoreStandaloneFormFromTrashBin\n> = /*#__PURE__*/ createRESTModule(publicRestoreStandaloneFormFromTrashBin);\nexport const getDeletedStandaloneForm: MaybeContext<\n BuildRESTFunction<typeof publicGetDeletedStandaloneForm> &\n typeof publicGetDeletedStandaloneForm\n> = /*#__PURE__*/ createRESTModule(publicGetDeletedStandaloneForm);\nexport const listDeletedStandaloneForms: MaybeContext<\n BuildRESTFunction<typeof publicListDeletedStandaloneForms> &\n typeof publicListDeletedStandaloneForms\n> = /*#__PURE__*/ createRESTModule(publicListDeletedStandaloneForms);\nexport const queryStandaloneForms: MaybeContext<\n BuildRESTFunction<typeof publicQueryStandaloneForms> &\n typeof publicQueryStandaloneForms\n> = /*#__PURE__*/ createRESTModule(publicQueryStandaloneForms);\nexport const getSiteProperties: MaybeContext<\n BuildRESTFunction<typeof publicGetSiteProperties> &\n typeof publicGetSiteProperties\n> = /*#__PURE__*/ createRESTModule(publicGetSiteProperties);\n\nexport {\n SortOrder,\n PlacementType,\n DayOfWeek,\n ResolutionMethod,\n State,\n SiteCreatedContext,\n Namespace,\n DeleteStatus,\n WebhookIdentityType,\n} from './forms-v1-standalone-form-standalone-forms.universal.js';\nexport {\n StandaloneForm,\n GetOrCreateFormStandaloneMetaSiteRequest,\n GetOrCreateFormStandaloneMetaSiteResponse,\n CreateStandaloneFormRequest,\n CreateStandaloneFormResponse,\n GetStandaloneFormRequest,\n GetStandaloneFormResponse,\n DeleteStandaloneFormRequest,\n DeleteStandaloneFormResponse,\n RemoveStandaloneFormFromTrashBinRequest,\n RemoveStandaloneFormFromTrashBinResponse,\n RestoreStandaloneFormFromTrashBinRequest,\n RestoreStandaloneFormFromTrashBinResponse,\n GetDeletedStandaloneFormRequest,\n GetDeletedStandaloneFormResponse,\n ListDeletedStandaloneFormsRequest,\n CursorPaging,\n ListDeletedStandaloneFormsResponse,\n CursorPagingMetadata,\n Cursors,\n QueryStandaloneFormsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n QueryStandaloneFormsResponse,\n GetSitePropertiesRequest,\n GetSitePropertiesResponse,\n StandaloneMetaSiteProperties,\n SitePropertiesNotification,\n SitePropertiesEvent,\n Properties,\n Categories,\n Locale,\n Address,\n AddressHint,\n GeoCoordinates,\n BusinessSchedule,\n TimePeriod,\n SpecialHourPeriod,\n Multilingual,\n SupportedLanguage,\n ConsentPolicy,\n Translation,\n ChangeContext,\n ChangeContextPayloadOneOf,\n PropertiesChange,\n V4SiteCreated,\n SiteCloned,\n Empty,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n Asset,\n SiteCreated,\n SiteTransferred,\n SiteDeleted,\n DeleteContext,\n SiteUndeleted,\n SitePublished,\n SiteUnpublished,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n ServiceProvisioned,\n ServiceRemoved,\n SiteRenamed,\n SiteHardDeleted,\n NamespaceChanged,\n StudioAssigned,\n StudioUnassigned,\n SiteUrlChanged,\n SitePurgedExternally,\n OdeditorAssigned,\n OdeditorUnassigned,\n PicassoAssigned,\n PicassoUnassigned,\n WixelAssigned,\n WixelUnassigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n UserDomainMediaEnabled,\n UserDomainMediaDisabled,\n EditorlessAssigned,\n EditorlessUnassigned,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n DeleteStandaloneFormOptions,\n ListDeletedStandaloneFormsOptions,\n} from './forms-v1-standalone-form-standalone-forms.universal.js';\nexport {\n SortOrderWithLiterals,\n PlacementTypeWithLiterals,\n DayOfWeekWithLiterals,\n ResolutionMethodWithLiterals,\n StateWithLiterals,\n SiteCreatedContextWithLiterals,\n NamespaceWithLiterals,\n DeleteStatusWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CreateStandaloneFormApplicationErrors,\n GetSitePropertiesApplicationErrors,\n} from './forms-v1-standalone-form-standalone-forms.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAAA;AAAA,EAAA,4BAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,kCAAAC;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O,SAASC,sBACd,YAC+B;AAC/B,SAAO,CAAC,kBAA0B,YAChCA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAoBO,SAASC,kCACd,YAC2C;AAC3C,SAAO,CAAC,qBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAYO,SAASC,mCACd,YAC4C;AAC5C,SAAO,CAAC,qBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAcO,SAASC,0BACd,YACmC;AACnC,SAAO,CAAC,qBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAUO,SAASC,4BACd,YACqC;AACrC,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAaO,SAASC,sBACd,YAC+B;AAC/B,SAAO,CAAC,UACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAwBO,SAASC,mBACd,YAC4B;AAC5B,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;;;AChOA,IAAAC,uBAAiC;AAG1B,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,qBAGK,2DAAiBA,kBAAuB;AACnD,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,oCAGK,2DAAiBA,iCAAsC;AAClE,IAAMC,qCAGK,2DAAiBA,kCAAuC;AACnE,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,8BAGK,2DAAiBA,2BAAgC;AAC5D,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,qBAGK,2DAAiBA,kBAAuB;","names":["createStandaloneForm","deleteStandaloneForm","getDeletedStandaloneForm","getSiteProperties","getStandaloneForm","listDeletedStandaloneForms","queryStandaloneForms","removeStandaloneFormFromTrashBin","restoreStandaloneFormFromTrashBin","import_timestamp","import_rest_modules","payload","SortOrder","PlacementType","DayOfWeek","ResolutionMethod","State","SiteCreatedContext","Namespace","DeleteStatus","WebhookIdentityType","createStandaloneForm","sdkTransformError","getStandaloneForm","deleteStandaloneForm","removeStandaloneFormFromTrashBin","restoreStandaloneFormFromTrashBin","getDeletedStandaloneForm","listDeletedStandaloneForms","queryStandaloneForms","getSiteProperties","createStandaloneForm","getStandaloneForm","deleteStandaloneForm","removeStandaloneFormFromTrashBin","restoreStandaloneFormFromTrashBin","getDeletedStandaloneForm","listDeletedStandaloneForms","queryStandaloneForms","getSiteProperties","import_rest_modules","createStandaloneForm","getStandaloneForm","deleteStandaloneForm","removeStandaloneFormFromTrashBin","restoreStandaloneFormFromTrashBin","getDeletedStandaloneForm","listDeletedStandaloneForms","queryStandaloneForms","getSiteProperties"]}