@wix/auto_sdk_papyrus_templates 1.0.2 → 1.0.4

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.
Files changed (35) hide show
  1. package/build/cjs/index.js +6 -8
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +1 -5
  4. package/build/cjs/index.typings.js +1 -3
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.js +6 -6
  8. package/build/cjs/schemas.js.map +1 -1
  9. package/build/es/index.mjs +6 -8
  10. package/build/es/index.mjs.map +1 -1
  11. package/build/es/index.typings.d.mts +1 -5
  12. package/build/es/index.typings.mjs +1 -3
  13. package/build/es/index.typings.mjs.map +1 -1
  14. package/build/es/meta.mjs.map +1 -1
  15. package/build/es/schemas.mjs +6 -6
  16. package/build/es/schemas.mjs.map +1 -1
  17. package/build/internal/cjs/index.js +6 -8
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/index.typings.d.ts +36 -5
  20. package/build/internal/cjs/index.typings.js +1 -3
  21. package/build/internal/cjs/index.typings.js.map +1 -1
  22. package/build/internal/cjs/meta.d.ts +81 -0
  23. package/build/internal/cjs/meta.js.map +1 -1
  24. package/build/internal/cjs/schemas.js +6 -6
  25. package/build/internal/cjs/schemas.js.map +1 -1
  26. package/build/internal/es/index.mjs +6 -8
  27. package/build/internal/es/index.mjs.map +1 -1
  28. package/build/internal/es/index.typings.d.mts +36 -5
  29. package/build/internal/es/index.typings.mjs +1 -3
  30. package/build/internal/es/index.typings.mjs.map +1 -1
  31. package/build/internal/es/meta.d.mts +81 -0
  32. package/build/internal/es/meta.mjs.map +1 -1
  33. package/build/internal/es/schemas.mjs +6 -6
  34. package/build/internal/es/schemas.mjs.map +1 -1
  35. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.typings.ts","../../src/papyrus-v1-template-settings-templates.universal.ts","../../src/papyrus-v1-template-settings-templates.http.ts"],"sourcesContent":["export * from './src/papyrus-v1-template-settings-templates.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixPapyrusV1TemplateSettings from './papyrus-v1-template-settings-templates.http.js';\n// @ts-ignore\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\nexport interface TemplateSettings {\n /**\n * Auto generated ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Wix app definition ID.\n * @minLength 1\n * @maxLength 20\n */\n appSlug?: string | null;\n /**\n * The type of the template.\n * @minLength 1\n * @maxLength 20\n */\n templateType?: string | null;\n /**\n * The id of the template.\n * @minLength 1\n * @maxLength 20\n */\n templateId?: string | null;\n /**\n * Template settings external ID. For example ticket definition ID.\n * Must be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Date settings were created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date settings were updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** @maxSize 10 */\n settingGroups?: SettingsGroup[];\n /** Paper size */\n paperSize?: PaperSizeWithLiterals;\n pageOverflow?: PageOverflowWithLiterals;\n}\n\nexport interface TextSetting {\n /**\n * Font family class name\n * @maxLength 20\n */\n fontFamily?: string | null;\n /**\n * Font style class names\n * @maxSize 10\n * @maxLength 20\n */\n fontStyle?: string[];\n /**\n * Text alignment class name\n * @maxLength 20\n */\n textAlignment?: string | null;\n /**\n * Text color hex code\n * @minLength 7\n * @maxLength 7\n */\n textColor?: string | null;\n /**\n * Font size\n * @min 1\n */\n fontSize?: number | null;\n /** Text content setting */\n textContent?: TextContent[];\n}\n\nexport interface TextContent {\n /**\n * @minLength 3\n * @maxLength 50\n */\n _id?: string;\n /** @maxLength 500 */\n value?: string | null;\n visible?: boolean;\n}\n\nexport interface ImageSetting {\n /** Wix media Image */\n image?: string;\n /** Image resizing mode */\n resize?: ResizeOptionWithLiterals;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum ResizeOption {\n /** Automatically resizes full image to fit image field */\n FIT = 'FIT',\n /** Enables user to manually crop image to fit image field */\n CROP = 'CROP',\n}\n\n/** @enumType */\nexport type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';\n\nexport interface SelectSetting {\n /** Selected value */\n value?: string | null;\n /**\n * Color hex code\n * @minLength 7\n * @maxLength 7\n */\n primaryColor?: string | null;\n /**\n * Color hex code\n * @minLength 7\n * @maxLength 7\n */\n secondaryColor?: string | null;\n /** Size */\n size?: number | null;\n}\n\nexport interface BackgroundSetting {\n /**\n * Color of the background hex code\n * @minLength 7\n * @maxLength 9\n */\n color?: string | null;\n /** Wix media Image */\n image?: string;\n}\n\nexport interface SettingsGroup {\n /**\n * Id of the control group\n * @minLength 5\n * @maxLength 50\n */\n groupId?: string;\n /**\n * Display settings.\n * @maxSize 20\n */\n display?: Record<string, boolean>;\n /**\n * Texts settings.\n * @maxSize 20\n */\n texts?: Record<string, TextSetting>;\n /**\n * Images settings.\n * @maxSize 10\n */\n images?: Record<string, ImageSetting>;\n /**\n * Select option settings.\n * @maxSize 20\n */\n selects?: Record<string, SelectSetting>;\n /**\n * Backgrounds settings.\n * @maxSize 20\n */\n backgrounds?: Record<string, BackgroundSetting>;\n}\n\nexport enum PaperSize {\n A4_PORTRAIT = 'A4_PORTRAIT',\n A4_LANDSCAPE = 'A4_LANDSCAPE',\n}\n\n/** @enumType */\nexport type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';\n\nexport enum PageOverflow {\n CONTENT_HIDDEN = 'CONTENT_HIDDEN',\n CONTENT_BREAK = 'CONTENT_BREAK',\n}\n\n/** @enumType */\nexport type PageOverflowWithLiterals =\n | PageOverflow\n | 'CONTENT_HIDDEN'\n | 'CONTENT_BREAK';\n\nexport interface CreateTemplateSettingsRequest {\n /** Settings to be created. */\n settings?: TemplateSettings;\n}\n\nexport interface CreateTemplateSettingsResponse {\n /** Created settings. */\n settings?: TemplateSettings;\n}\n\nexport interface BulkCreateTemplateSettingsRequest {\n /**\n * Settings to be created.\n * @minSize 1\n * @maxSize 100\n */\n settings?: TemplateSettings[];\n}\n\nexport interface BulkCreateTemplateSettingsResponse {\n /** Created settings */\n settings?: TemplateSettings[];\n}\n\nexport interface UpsertTemplateSettingsRequest {\n /** Settings to be upserted. */\n settings?: TemplateSettings;\n}\n\nexport interface UpsertTemplateSettingsResponse {\n /** Upserted settings. */\n settings?: TemplateSettings;\n}\n\nexport interface GetTemplateSettingsRequest {\n /**\n * Settings ID.\n * @format GUID\n */\n templateSettingsId?: string;\n}\n\nexport interface GetTemplateSettingsResponse {\n /** Retrieved settings. */\n settings?: TemplateSettings;\n}\n\nexport interface UpdateTemplateSettingsRequest {\n /** Template Settings to be updated. */\n settings?: TemplateSettings;\n}\n\nexport interface UpdateTemplateSettingsResponse {\n /** Updated settings. */\n settings?: TemplateSettings;\n}\n\nexport interface DeleteTemplateSettingsRequest {\n /**\n * Settings ID.\n * @format GUID\n */\n templateSettingsId?: string;\n}\n\nexport interface DeleteTemplateSettingsResponse {\n /** Deleted settings. */\n settings?: TemplateSettings;\n}\n\nexport interface QueryTemplateSettingsRequest {\n /** Generic query object. */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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 * Origin point for geo-distance sorting on a GEO field\n * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n */\n origin?: AddressLocation;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryTemplateSettingsResponse {\n /** Template settings results. */\n settings?: TemplateSettings[];\n /** Query result's metadata. */\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface ResolveTemplateSettingsRequest {\n /**\n * The id of the settings.\n * @format GUID\n */\n templateSettingsId?: string | null;\n /**\n * External ID.\n * @maxLength 100\n */\n templateSettingsExternalId?: string | null;\n /**\n * The type of the template. Used to resolve default settings.\n * @minLength 1\n * @maxLength 20\n */\n templateType: string | null;\n /**\n * Wix app slug.\n * @minLength 1\n * @maxLength 20\n */\n appSlug: string | null;\n /**\n * The id of template.\n * @minLength 1\n * @maxLength 20\n */\n templateId?: string | null;\n}\n\nexport interface ResolveTemplateSettingsResponse {\n /** Retrieved settings. */\n settings?: TemplateSettings;\n}\n\nexport interface GetTemplateControlsRequest {}\n\nexport interface GetTemplateControlsResponse {\n templateControls?: TemplateControls;\n}\n\nexport interface TemplateControls {\n /**\n * The name of the template\n * @maxLength 50\n */\n templateName?: string;\n /**\n * The controls groups configuration\n * @minSize 1\n * @maxSize 10\n */\n controlGroups?: ControlGroup[];\n}\n\n/** Represents control groups on the left side of the UI */\nexport interface ControlGroup {\n /**\n * @minLength 3\n * @maxLength 50\n */\n groupId?: string;\n /**\n * @minLength 3\n * @maxLength 50\n */\n icon?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n labelKey?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n titleKey?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n descriptionKey?: string;\n /** @maxLength 100 */\n linkKey?: string | null;\n /** @maxLength 50 */\n linkUrl?: string | null;\n /** @maxLength 100 */\n tooltipKey?: string | null;\n /**\n * Display controls\n * @maxSize 20\n */\n display?: DisplayControl[];\n /**\n * Text controls\n * @maxSize 20\n */\n texts?: TextControl[];\n /**\n * Image controls\n * @maxSize 10\n */\n images?: ImageControl[];\n /**\n * Select controls\n * @maxSize 20\n */\n selects?: SelectControl[];\n /**\n * Background controls\n * @maxSize 20\n */\n backgrounds?: BackgroundControl[];\n}\n\nexport interface DisplayControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n _id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: boolean;\n}\n\nexport interface TextControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n _id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: TextSetting;\n /**\n * Text properties\n * @maxSize 5\n */\n textProperties?: TextPropertyControl[];\n /** @maxSize 10 */\n textContent?: TextContentControl[];\n}\n\nexport interface TextPropertyControl {\n /**\n * One of \"fontFamily\", \"fontStyle\", \"fontSize\", \"textAlignment\"\n * @maxLength 15\n */\n type?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /**\n * List of possible options. Used for \"fontFamily\", \"fontStyle\", \"textAlignment\"\n * @maxSize 50\n */\n options?: ValueOption[];\n /** Optional range of the value. Used for \"fontSize\" */\n range?: Range;\n}\n\nexport interface ValueOption {\n /**\n * The label key for translations\n * @maxLength 100\n */\n labelKey?: string;\n /**\n * The value\n * @maxLength 20\n */\n value?: string;\n}\n\nexport interface Range {\n /** Minimum value. */\n min?: number | null;\n /** Maximum value. */\n max?: number | null;\n}\n\nexport interface TextContentControl {\n /**\n * @minLength 3\n * @maxLength 50\n */\n _id?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n labelKey?: string | null;\n /** @max 1000 */\n maxLength?: number | null;\n}\n\nexport interface ImageControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n _id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: ImageSetting;\n /**\n * Optional description key for translations\n * @maxLength 100\n */\n descriptionKey?: string | null;\n /** Enable logo builder support */\n showLogoBuilder?: boolean;\n}\n\nexport interface SelectControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n _id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: SelectSetting;\n /**\n * List of possible options\n * @minSize 1\n * @maxSize 20\n */\n options?: ValueOption[];\n /** Allows to use primary colour setting from template designer */\n showPrimaryColorPicker?: boolean;\n /** Allows to use secondary colour setting from template designer */\n showSecondaryColorPicker?: boolean;\n /** Allows to use size setting from template designer. */\n showSize?: boolean;\n /** Optional range of the size value. */\n sizeRange?: Range;\n}\n\nexport interface BackgroundControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n _id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: BackgroundSetting;\n /** Allows to use colour setting from template designer */\n showColorPicker?: boolean;\n /** Allows to use image setting from template designer */\n showImagePicker?: boolean;\n /** Enables background opacity control */\n opacityEnabled?: boolean | null;\n /** Enables background image opacity control */\n imageOpacityEnabled?: boolean | null;\n /**\n * Default media manager folder with background images\n * @maxLength 256\n */\n mediaRootFolder?: string | null;\n}\n\nexport interface GetTemplateRegistryRequest {}\n\nexport interface GetTemplateRegistryResponse {\n templateRegistry?: TemplateRegistry;\n}\n\nexport interface TemplateRegistry {\n /**\n * Templates.\n * @minSize 1\n * @maxSize 1000\n */\n templates?: WixAppTemplate[];\n}\n\n/** Defines a template and it's styles. */\nexport interface WixAppTemplate {\n /** Wix App Id */\n wixAppId?: string;\n /** App Slug */\n appSlug?: string;\n /**\n * Template type.\n * @minLength 1\n * @maxLength 20\n */\n templateType?: string;\n /**\n * Templates\n * @minSize 1\n * @maxSize 1000\n */\n templates?: TemplateStyle[];\n /**\n * Short artifact name (key from template-statics-config.json.erb)\n * @minLength 3\n * @maxLength 64\n * @format SYSTEM_SLUG\n */\n templateArtifactName?: string | null;\n /**\n * Local path\n * @minLength 1\n * @maxLength 200\n * @readonly\n */\n localPath?: string | null;\n /**\n * Statics URL\n * @minLength 1\n * @maxLength 200\n * @readonly\n */\n staticsUrl?: string | null;\n}\n\n/**\n * Defines a template style.\n *\n * Path to TemplateControls json file:\n * papyrus-templates-lib/\n * src/\n * templates/\n * {app_slug}/\n * {template_type}/\n * {id}/\n * controls.json\n */\nexport interface TemplateStyle {\n /**\n * The id of the template.\n * @minLength 1\n * @maxLength 20\n */\n _id?: string;\n /**\n * Determines which template should be used if user did not choose it yet.\n * Only single template per wix_app_id can be default.\n */\n default?: boolean;\n /** Determines if template cannot be selected for a new entity. */\n inactive?: boolean;\n /** Paper size */\n paperSize?: PaperSizeWithLiterals;\n pageOverflow?: PageOverflowWithLiterals;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type UpsertTemplateSettingsApplicationErrors = {\n code?: 'INVALID_TEMPLATE_SETTINGS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ResolveTemplateSettingsApplicationErrors = {\n code?: 'TEMPLATE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface TemplateSettingsCreatedEnvelope {\n entity: TemplateSettings;\n metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.papyrus.v1.template_settings_created\n * @serviceIdentifier wix.papyrus.v1.TemplateSettingsService\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onTemplateSettingsCreated(\n handler: (event: TemplateSettingsCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface TemplateSettingsUpdatedEnvelope {\n entity: TemplateSettings;\n metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.papyrus.v1.template_settings_updated\n * @serviceIdentifier wix.papyrus.v1.TemplateSettingsService\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onTemplateSettingsUpdated(\n handler: (event: TemplateSettingsUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Upsert Template Settings.\n * @public\n * @documentationMaturity preview\n * @requiredField options.settings.appSlug\n * @requiredField options.settings.externalId\n * @requiredField options.settings.templateId\n * @requiredField options.settings.templateType\n * @permissionId PAPYRUS.MANAGE_TEMPLATE_SETTINGS\n * @applicableIdentity APP\n * @fqn wix.papyrus.v1.TemplateSettingsService.UpsertTemplateSettings\n */\nexport async function upsertTemplateSettings(\n options?: UpsertTemplateSettingsOptions\n): Promise<\n UpsertTemplateSettingsResponse & {\n __applicationErrorsType?: UpsertTemplateSettingsApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ settings: options?.settings }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'settings.settingGroups.images.*.image' },\n { path: 'settings.settingGroups.backgrounds.*.image' },\n ],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixPapyrusV1TemplateSettings.upsertTemplateSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'settings.settingGroups.images.*.image' },\n { path: 'settings.settingGroups.backgrounds.*.image' },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { settings: '$[0].settings' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpsertTemplateSettingsOptions {\n /** Settings to be upserted. */\n settings?: TemplateSettings;\n}\n\n/**\n * Lists Template Settings.\n * @public\n * @documentationMaturity preview\n * @permissionId PAPYRUS.READ_TEMPLATE_SETTINGS\n * @applicableIdentity APP\n * @fqn wix.papyrus.v1.TemplateSettingsService.QueryTemplateSettings\n */\nexport function queryTemplateSettings(): SettingsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n TemplateSettings,\n 'CURSOR',\n QueryTemplateSettingsRequest,\n QueryTemplateSettingsResponse\n >({\n func: async (payload: QueryTemplateSettingsRequest) => {\n const reqOpts =\n ambassadorWixPapyrusV1TemplateSettings.queryTemplateSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryTemplateSettingsRequest['query']) => {\n const args = [query, {}] as [QueryTemplateSettingsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryTemplateSettingsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'settings.settingGroups.images.*.image' },\n { path: 'settings.settingGroups.backgrounds.*.image' },\n ],\n },\n ])\n );\n\n return {\n items: transformedData?.settings,\n pagingMetadata: transformedData?.metadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface SettingsQueryResult extends QueryCursorResult {\n items: TemplateSettings[];\n query: SettingsQueryBuilder;\n next: () => Promise<SettingsQueryResult>;\n prev: () => Promise<SettingsQueryResult>;\n}\n\nexport interface SettingsQueryBuilder {\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => SettingsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => SettingsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<SettingsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.papyrus.v1.TemplateSettingsService.QueryTemplateSettings\n * @requiredField query\n */\nexport async function typedQueryTemplateSettings(\n query: TemplateSettingsQuery\n): Promise<QueryTemplateSettingsResponse> {\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 ambassadorWixPapyrusV1TemplateSettings.queryTemplateSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'settings.settingGroups.images.*.image' },\n { path: 'settings.settingGroups.backgrounds.*.image' },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface TemplateSettingsQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n TemplateSettings,\n TemplateSettingsQuerySpec\n>;\nexport type TemplateSettingsQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n /** \n Origin point for geo-distance sorting on a GEO field\n results are ordered by distance from this point (ASC = nearest first, DESC = farthest first). \n */\n origin?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['origin'];\n }[];\n};\n\nexport const utils = {\n query: {\n ...createQueryUtils<\n TemplateSettings,\n TemplateSettingsQuerySpec,\n TemplateSettingsQuery\n >(),\n },\n};\n\n/**\n * Resolve Template Settings. Returns default Template Settings if it does not exist.\n * @public\n * @documentationMaturity preview\n * @requiredField options.appSlug\n * @requiredField options.templateType\n * @permissionId PAPYRUS.READ_TEMPLATE_SETTINGS\n * @applicableIdentity APP\n * @fqn wix.papyrus.v1.TemplateSettingsService.ResolveTemplateSettings\n */\nexport async function resolveTemplateSettings(\n options?: ResolveTemplateSettingsOptions\n): Promise<\n ResolveTemplateSettingsResponse & {\n __applicationErrorsType?: ResolveTemplateSettingsApplicationErrors;\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 templateSettingsId: options?.templateSettingsId,\n templateSettingsExternalId: options?.templateSettingsExternalId,\n templateType: options?.templateType,\n appSlug: options?.appSlug,\n templateId: options?.templateId,\n });\n\n const reqOpts =\n ambassadorWixPapyrusV1TemplateSettings.resolveTemplateSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'settings.settingGroups.images.*.image' },\n { path: 'settings.settingGroups.backgrounds.*.image' },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n templateSettingsId: '$[0].templateSettingsId',\n templateSettingsExternalId: '$[0].templateSettingsExternalId',\n templateType: '$[0].templateType',\n appSlug: '$[0].appSlug',\n templateId: '$[0].templateId',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ResolveTemplateSettingsOptions {\n /**\n * The id of the settings.\n * @format GUID\n */\n templateSettingsId?: string | null;\n /**\n * External ID.\n * @maxLength 100\n */\n templateSettingsExternalId?: string | null;\n /**\n * The type of the template. Used to resolve default settings.\n * @minLength 1\n * @maxLength 20\n */\n templateType: string | null;\n /**\n * Wix app slug.\n * @minLength 1\n * @maxLength 20\n */\n appSlug: string | null;\n /**\n * The id of template.\n * @minLength 1\n * @maxLength 20\n */\n templateId?: string | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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 resolveWixPapyrusV1TemplateSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._base_domain_': [\n {\n srcPath: '/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/seating-plans/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/papyrus-templates/v1/template-settings',\n destPath: '/v1/template-settings',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/papyrus-templates',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_papyrus_templates';\n\n/** Upsert Template Settings. */\nexport function upsertTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __upsertTemplateSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n { path: 'settings.settingGroups.images.*.image.urlExpirationDate' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n { path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'POST' as any,\n methodFqn:\n 'wix.papyrus.v1.TemplateSettingsService.UpsertTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/upsert',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __upsertTemplateSettings;\n}\n\n/** Lists Template Settings. */\nexport function queryTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryTemplateSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'query.sort.origin.latitude' },\n { path: 'query.sort.origin.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'POST' as any,\n methodFqn: 'wix.papyrus.v1.TemplateSettingsService.QueryTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/query',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTemplateSettings;\n}\n\n/** Resolve Template Settings. Returns default Template Settings if it does not exist. */\nexport function resolveTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __resolveTemplateSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.papyrus.v1.TemplateSettingsService.ResolveTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/resolve',\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: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __resolveTemplateSettings;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAAA;AAAA,EAAA,+BAAAC;AAAA,EAAA;AAAA,gCAAAC;AAAA,EAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,2BAA2B;AAAA,MACzB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA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AC,OAAO;AAAA,IACV;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAmEO,IAAM,QAAQ;AAAA,EACnB,OAAO;AAAA,IACL,OAAG,6CAID;AAAA,EACJ;AACF;AAYA,eAAsBE,yBACpB,SAKA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD,oBAAoB,SAAS;AAAA,IAC7B,4BAA4B,SAAS;AAAA,IACrC,cAAc,SAAS;AAAA,IACvB,SAAS,SAAS;AAAA,IAClB,YAAY,SAAS;AAAA,EACvB,CAAC;AAED,QAAM,UACmC,wBAAwB,OAAO;AAExE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO;AAAA,UACL,wCAAe,OAAO,MAAM;AAAA,QAC1B;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,wCAAwC;AAAA,YAChD,EAAE,MAAM,6CAA6C;AAAA,UACvD;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAF;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,oBAAoB;AAAA,UACpB,4BAA4B;AAAA,UAC5B,cAAc;AAAA,UACd,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["queryTemplateSettings","resolveTemplateSettings","upsertTemplateSettings","import_float","import_timestamp","import_rest_modules","payload","import_image","import_transform_paths","ResizeOption","PaperSize","PageOverflow","SortOrder","WebhookIdentityType","upsertTemplateSettings","sdkTransformError","queryTemplateSettings","resolveTemplateSettings"]}
1
+ {"version":3,"sources":["../../index.typings.ts","../../src/papyrus-v1-template-settings-templates.universal.ts","../../src/papyrus-v1-template-settings-templates.http.ts"],"sourcesContent":["export * from './src/papyrus-v1-template-settings-templates.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixPapyrusV1TemplateSettings from './papyrus-v1-template-settings-templates.http.js';\n// @ts-ignore\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\nexport interface TemplateSettings {\n /**\n * Auto generated ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Wix app definition ID.\n * @minLength 1\n * @maxLength 20\n */\n appSlug?: string | null;\n /**\n * The type of the template.\n * @minLength 1\n * @maxLength 20\n */\n templateType?: string | null;\n /**\n * The id of the template.\n * @minLength 1\n * @maxLength 20\n */\n templateId?: string | null;\n /**\n * Template settings external ID. For example ticket definition ID.\n * Must be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Date settings were created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date settings were updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** @maxSize 10 */\n settingGroups?: SettingsGroup[];\n /** Paper size */\n paperSize?: PaperSizeWithLiterals;\n pageOverflow?: PageOverflowWithLiterals;\n}\n\nexport interface TextSetting {\n /**\n * Font family class name\n * @maxLength 20\n */\n fontFamily?: string | null;\n /**\n * Font style class names\n * @maxSize 10\n * @maxLength 20\n */\n fontStyle?: string[];\n /**\n * Text alignment class name\n * @maxLength 20\n */\n textAlignment?: string | null;\n /**\n * Text color hex code\n * @minLength 7\n * @maxLength 7\n */\n textColor?: string | null;\n /**\n * Font size\n * @min 1\n */\n fontSize?: number | null;\n /** Text content setting */\n textContent?: TextContent[];\n}\n\nexport interface TextContent {\n /**\n * @minLength 3\n * @maxLength 50\n */\n _id?: string;\n /** @maxLength 500 */\n value?: string | null;\n visible?: boolean;\n}\n\nexport interface ImageSetting {\n /** Wix media Image */\n image?: string;\n /** Image resizing mode */\n resize?: ResizeOptionWithLiterals;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum ResizeOption {\n /** Automatically resizes full image to fit image field */\n FIT = 'FIT',\n /** Enables user to manually crop image to fit image field */\n CROP = 'CROP',\n}\n\n/** @enumType */\nexport type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';\n\nexport interface SelectSetting {\n /** Selected value */\n value?: string | null;\n /**\n * Color hex code\n * @minLength 7\n * @maxLength 7\n */\n primaryColor?: string | null;\n /**\n * Color hex code\n * @minLength 7\n * @maxLength 7\n */\n secondaryColor?: string | null;\n /** Size */\n size?: number | null;\n}\n\nexport interface BackgroundSetting {\n /**\n * Color of the background hex code\n * @minLength 7\n * @maxLength 9\n */\n color?: string | null;\n /** Wix media Image */\n image?: string;\n}\n\nexport interface SettingsGroup {\n /**\n * Id of the control group\n * @minLength 5\n * @maxLength 50\n */\n groupId?: string;\n /**\n * Display settings.\n * @maxSize 20\n */\n display?: Record<string, boolean>;\n /**\n * Texts settings.\n * @maxSize 20\n */\n texts?: Record<string, TextSetting>;\n /**\n * Images settings.\n * @maxSize 10\n */\n images?: Record<string, ImageSetting>;\n /**\n * Select option settings.\n * @maxSize 20\n */\n selects?: Record<string, SelectSetting>;\n /**\n * Backgrounds settings.\n * @maxSize 20\n */\n backgrounds?: Record<string, BackgroundSetting>;\n}\n\nexport enum PaperSize {\n A4_PORTRAIT = 'A4_PORTRAIT',\n A4_LANDSCAPE = 'A4_LANDSCAPE',\n}\n\n/** @enumType */\nexport type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';\n\nexport enum PageOverflow {\n CONTENT_HIDDEN = 'CONTENT_HIDDEN',\n CONTENT_BREAK = 'CONTENT_BREAK',\n}\n\n/** @enumType */\nexport type PageOverflowWithLiterals =\n | PageOverflow\n | 'CONTENT_HIDDEN'\n | 'CONTENT_BREAK';\n\nexport interface CreateTemplateSettingsRequest {\n /** Settings to be created. */\n settings?: TemplateSettings;\n}\n\nexport interface CreateTemplateSettingsResponse {\n /** Created settings. */\n settings?: TemplateSettings;\n}\n\nexport interface BulkCreateTemplateSettingsRequest {\n /**\n * Settings to be created.\n * @minSize 1\n * @maxSize 100\n */\n settings?: TemplateSettings[];\n}\n\nexport interface BulkCreateTemplateSettingsResponse {\n /** Created settings */\n settings?: TemplateSettings[];\n}\n\nexport interface UpsertTemplateSettingsRequest {\n /** Settings to be upserted. */\n settings?: TemplateSettings;\n}\n\nexport interface UpsertTemplateSettingsResponse {\n /** Upserted settings. */\n settings?: TemplateSettings;\n}\n\nexport interface GetTemplateSettingsRequest {\n /**\n * Settings ID.\n * @format GUID\n */\n templateSettingsId?: string;\n}\n\nexport interface GetTemplateSettingsResponse {\n /** Retrieved settings. */\n settings?: TemplateSettings;\n}\n\nexport interface UpdateTemplateSettingsRequest {\n /** Template Settings to be updated. */\n settings?: TemplateSettings;\n}\n\nexport interface UpdateTemplateSettingsResponse {\n /** Updated settings. */\n settings?: TemplateSettings;\n}\n\nexport interface DeleteTemplateSettingsRequest {\n /**\n * Settings ID.\n * @format GUID\n */\n templateSettingsId?: string;\n}\n\nexport interface DeleteTemplateSettingsResponse {\n /** Deleted settings. */\n settings?: TemplateSettings;\n}\n\nexport interface QueryTemplateSettingsRequest {\n /** Generic query object. */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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 * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n /**\n * Origin point for geo-distance sorting on a GEO field\n * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n */\n origin?: AddressLocation;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryTemplateSettingsResponse {\n /** Template settings results. */\n settings?: TemplateSettings[];\n /** Query result's metadata. */\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\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 * @internal\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface ResolveTemplateSettingsRequest {\n /**\n * The id of the settings.\n * @format GUID\n */\n templateSettingsId?: string | null;\n /**\n * External ID.\n * @maxLength 100\n */\n templateSettingsExternalId?: string | null;\n /**\n * The type of the template. Used to resolve default settings.\n * @minLength 1\n * @maxLength 20\n */\n templateType: string | null;\n /**\n * Wix app slug.\n * @minLength 1\n * @maxLength 20\n */\n appSlug: string | null;\n /**\n * The id of template.\n * @minLength 1\n * @maxLength 20\n */\n templateId?: string | null;\n}\n\nexport interface ResolveTemplateSettingsResponse {\n /** Retrieved settings. */\n settings?: TemplateSettings;\n}\n\nexport interface GetTemplateControlsRequest {}\n\nexport interface GetTemplateControlsResponse {\n templateControls?: TemplateControls;\n}\n\nexport interface TemplateControls {\n /**\n * The name of the template\n * @maxLength 50\n */\n templateName?: string;\n /**\n * The controls groups configuration\n * @minSize 1\n * @maxSize 10\n */\n controlGroups?: ControlGroup[];\n}\n\n/** Represents control groups on the left side of the UI */\nexport interface ControlGroup {\n /**\n * @minLength 3\n * @maxLength 50\n */\n groupId?: string;\n /**\n * @minLength 3\n * @maxLength 50\n */\n icon?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n labelKey?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n titleKey?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n descriptionKey?: string;\n /** @maxLength 100 */\n linkKey?: string | null;\n /** @maxLength 50 */\n linkUrl?: string | null;\n /** @maxLength 100 */\n tooltipKey?: string | null;\n /**\n * Display controls\n * @maxSize 20\n */\n display?: DisplayControl[];\n /**\n * Text controls\n * @maxSize 20\n */\n texts?: TextControl[];\n /**\n * Image controls\n * @maxSize 10\n */\n images?: ImageControl[];\n /**\n * Select controls\n * @maxSize 20\n */\n selects?: SelectControl[];\n /**\n * Background controls\n * @maxSize 20\n */\n backgrounds?: BackgroundControl[];\n}\n\nexport interface DisplayControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n _id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: boolean;\n}\n\nexport interface TextControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n _id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: TextSetting;\n /**\n * Text properties\n * @maxSize 5\n */\n textProperties?: TextPropertyControl[];\n /** @maxSize 10 */\n textContent?: TextContentControl[];\n}\n\nexport interface TextPropertyControl {\n /**\n * One of \"fontFamily\", \"fontStyle\", \"fontSize\", \"textAlignment\"\n * @maxLength 15\n */\n type?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /**\n * List of possible options. Used for \"fontFamily\", \"fontStyle\", \"textAlignment\"\n * @maxSize 50\n */\n options?: ValueOption[];\n /** Optional range of the value. Used for \"fontSize\" */\n range?: Range;\n}\n\nexport interface ValueOption {\n /**\n * The label key for translations\n * @maxLength 100\n */\n labelKey?: string;\n /**\n * The value\n * @maxLength 20\n */\n value?: string;\n}\n\nexport interface Range {\n /** Minimum value. */\n min?: number | null;\n /** Maximum value. */\n max?: number | null;\n}\n\nexport interface TextContentControl {\n /**\n * @minLength 3\n * @maxLength 50\n */\n _id?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n labelKey?: string | null;\n /** @max 1000 */\n maxLength?: number | null;\n}\n\nexport interface ImageControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n _id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: ImageSetting;\n /**\n * Optional description key for translations\n * @maxLength 100\n */\n descriptionKey?: string | null;\n /** Enable logo builder support */\n showLogoBuilder?: boolean;\n}\n\nexport interface SelectControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n _id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: SelectSetting;\n /**\n * List of possible options\n * @minSize 1\n * @maxSize 20\n */\n options?: ValueOption[];\n /** Allows to use primary colour setting from template designer */\n showPrimaryColorPicker?: boolean;\n /** Allows to use secondary colour setting from template designer */\n showSecondaryColorPicker?: boolean;\n /** Allows to use size setting from template designer. */\n showSize?: boolean;\n /** Optional range of the size value. */\n sizeRange?: Range;\n}\n\nexport interface BackgroundControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n _id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: BackgroundSetting;\n /** Allows to use colour setting from template designer */\n showColorPicker?: boolean;\n /** Allows to use image setting from template designer */\n showImagePicker?: boolean;\n /** Enables background opacity control */\n opacityEnabled?: boolean | null;\n /** Enables background image opacity control */\n imageOpacityEnabled?: boolean | null;\n /**\n * Default media manager folder with background images\n * @maxLength 256\n */\n mediaRootFolder?: string | null;\n}\n\nexport interface GetTemplateRegistryRequest {}\n\nexport interface GetTemplateRegistryResponse {\n templateRegistry?: TemplateRegistry;\n}\n\nexport interface TemplateRegistry {\n /**\n * Templates.\n * @minSize 1\n * @maxSize 1000\n */\n templates?: WixAppTemplate[];\n}\n\n/** Defines a template and it's styles. */\nexport interface WixAppTemplate {\n /** Wix App Id */\n wixAppId?: string;\n /** App Slug */\n appSlug?: string;\n /**\n * Template type.\n * @minLength 1\n * @maxLength 20\n */\n templateType?: string;\n /**\n * Templates\n * @minSize 1\n * @maxSize 1000\n */\n templates?: TemplateStyle[];\n /**\n * Short artifact name (key from template-statics-config.json.erb)\n * @minLength 3\n * @maxLength 64\n * @format SYSTEM_SLUG\n */\n templateArtifactName?: string | null;\n /**\n * Local path\n * @minLength 1\n * @maxLength 200\n * @readonly\n */\n localPath?: string | null;\n /**\n * Statics URL\n * @minLength 1\n * @maxLength 200\n * @readonly\n */\n staticsUrl?: string | null;\n}\n\n/**\n * Defines a template style.\n *\n * Path to TemplateControls json file:\n * papyrus-templates-lib/\n * src/\n * templates/\n * {app_slug}/\n * {template_type}/\n * {id}/\n * controls.json\n */\nexport interface TemplateStyle {\n /**\n * The id of the template.\n * @minLength 1\n * @maxLength 20\n */\n _id?: string;\n /**\n * Determines which template should be used if user did not choose it yet.\n * Only single template per wix_app_id can be default.\n */\n default?: boolean;\n /** Determines if template cannot be selected for a new entity. */\n inactive?: boolean;\n /** Paper size */\n paperSize?: PaperSizeWithLiterals;\n pageOverflow?: PageOverflowWithLiterals;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type UpsertTemplateSettingsApplicationErrors = {\n code?: 'INVALID_TEMPLATE_SETTINGS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ResolveTemplateSettingsApplicationErrors = {\n code?: 'TEMPLATE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface TemplateSettingsCreatedEnvelope {\n entity: TemplateSettings;\n metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.papyrus.v1.template_settings_created\n * @serviceIdentifier wix.papyrus.v1.TemplateSettingsService\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onTemplateSettingsCreated(\n handler: (event: TemplateSettingsCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface TemplateSettingsUpdatedEnvelope {\n entity: TemplateSettings;\n metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.papyrus.v1.template_settings_updated\n * @serviceIdentifier wix.papyrus.v1.TemplateSettingsService\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onTemplateSettingsUpdated(\n handler: (event: TemplateSettingsUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Upsert Template Settings.\n * @public\n * @documentationMaturity preview\n * @requiredField options.settings.appSlug\n * @requiredField options.settings.externalId\n * @requiredField options.settings.templateId\n * @requiredField options.settings.templateType\n * @permissionId PAPYRUS.MANAGE_TEMPLATE_SETTINGS\n * @applicableIdentity APP\n * @fqn wix.papyrus.v1.TemplateSettingsService.UpsertTemplateSettings\n */\nexport async function upsertTemplateSettings(\n options?: UpsertTemplateSettingsOptions\n): Promise<\n UpsertTemplateSettingsResponse & {\n __applicationErrorsType?: UpsertTemplateSettingsApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ settings: options?.settings }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'settings.settingGroups.images.*.image' },\n { path: 'settings.settingGroups.backgrounds.*.image' },\n ],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixPapyrusV1TemplateSettings.upsertTemplateSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'settings.settingGroups.images.*.image' },\n { path: 'settings.settingGroups.backgrounds.*.image' },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { settings: '$[0].settings' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpsertTemplateSettingsOptions {\n /** Settings to be upserted. */\n settings?: TemplateSettings;\n}\n\n/**\n * Lists Template Settings.\n * @public\n * @documentationMaturity preview\n * @permissionId PAPYRUS.READ_TEMPLATE_SETTINGS\n * @applicableIdentity APP\n * @fqn wix.papyrus.v1.TemplateSettingsService.QueryTemplateSettings\n */\nexport function queryTemplateSettings(): SettingsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n TemplateSettings,\n 'CURSOR',\n QueryTemplateSettingsRequest,\n QueryTemplateSettingsResponse\n >({\n func: async (payload: QueryTemplateSettingsRequest) => {\n const reqOpts =\n ambassadorWixPapyrusV1TemplateSettings.queryTemplateSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryTemplateSettingsRequest['query']) => {\n const args = [query, {}] as [QueryTemplateSettingsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryTemplateSettingsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'settings.settingGroups.images.*.image' },\n { path: 'settings.settingGroups.backgrounds.*.image' },\n ],\n },\n ])\n );\n\n return {\n items: transformedData?.settings,\n pagingMetadata: transformedData?.metadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface SettingsQueryResult extends QueryCursorResult {\n items: TemplateSettings[];\n query: SettingsQueryBuilder;\n next: () => Promise<SettingsQueryResult>;\n prev: () => Promise<SettingsQueryResult>;\n}\n\nexport interface SettingsQueryBuilder {\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => SettingsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => SettingsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<SettingsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.papyrus.v1.TemplateSettingsService.QueryTemplateSettings\n * @requiredField query\n */\nexport async function typedQueryTemplateSettings(\n query: TemplateSettingsQuery\n): Promise<QueryTemplateSettingsResponse> {\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 ambassadorWixPapyrusV1TemplateSettings.queryTemplateSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'settings.settingGroups.images.*.image' },\n { path: 'settings.settingGroups.backgrounds.*.image' },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface TemplateSettingsQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n TemplateSettings,\n TemplateSettingsQuerySpec\n>;\nexport type TemplateSettingsQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n /** \n When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n\n If multiple filters are provided, they are combined with AND operator.\n\n Example:\n Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] } \n @internal: undefined,\n @maxSize: 10 \n */\n selectItemsBy?:\n | NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['selectItemsBy']\n | null;\n /** \n Origin point for geo-distance sorting on a GEO field\n results are ordered by distance from this point (ASC = nearest first, DESC = farthest first). \n */\n origin?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['origin'];\n }[];\n};\n\nexport const utils = {\n query: /*#__PURE__*/ createQueryUtils<\n TemplateSettings,\n TemplateSettingsQuerySpec,\n TemplateSettingsQuery\n >(),\n};\n\n/**\n * Resolve Template Settings. Returns default Template Settings if it does not exist.\n * @public\n * @documentationMaturity preview\n * @requiredField options.appSlug\n * @requiredField options.templateType\n * @permissionId PAPYRUS.READ_TEMPLATE_SETTINGS\n * @applicableIdentity APP\n * @fqn wix.papyrus.v1.TemplateSettingsService.ResolveTemplateSettings\n */\nexport async function resolveTemplateSettings(\n options?: ResolveTemplateSettingsOptions\n): Promise<\n ResolveTemplateSettingsResponse & {\n __applicationErrorsType?: ResolveTemplateSettingsApplicationErrors;\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 templateSettingsId: options?.templateSettingsId,\n templateSettingsExternalId: options?.templateSettingsExternalId,\n templateType: options?.templateType,\n appSlug: options?.appSlug,\n templateId: options?.templateId,\n });\n\n const reqOpts =\n ambassadorWixPapyrusV1TemplateSettings.resolveTemplateSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'settings.settingGroups.images.*.image' },\n { path: 'settings.settingGroups.backgrounds.*.image' },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n templateSettingsId: '$[0].templateSettingsId',\n templateSettingsExternalId: '$[0].templateSettingsExternalId',\n templateType: '$[0].templateType',\n appSlug: '$[0].appSlug',\n templateId: '$[0].templateId',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ResolveTemplateSettingsOptions {\n /**\n * The id of the settings.\n * @format GUID\n */\n templateSettingsId?: string | null;\n /**\n * External ID.\n * @maxLength 100\n */\n templateSettingsExternalId?: string | null;\n /**\n * The type of the template. Used to resolve default settings.\n * @minLength 1\n * @maxLength 20\n */\n templateType: string | null;\n /**\n * Wix app slug.\n * @minLength 1\n * @maxLength 20\n */\n appSlug: string | null;\n /**\n * The id of template.\n * @minLength 1\n * @maxLength 20\n */\n templateId?: string | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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 resolveWixPapyrusV1TemplateSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._base_domain_': [\n {\n srcPath: '/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/seating-plans/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/papyrus-templates/v1/template-settings',\n destPath: '/v1/template-settings',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/papyrus-templates',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_papyrus_templates';\n\n/** Upsert Template Settings. */\nexport function upsertTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __upsertTemplateSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n { path: 'settings.settingGroups.images.*.image.urlExpirationDate' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n { path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'POST' as any,\n methodFqn:\n 'wix.papyrus.v1.TemplateSettingsService.UpsertTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/upsert',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __upsertTemplateSettings;\n}\n\n/** Lists Template Settings. */\nexport function queryTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryTemplateSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'query.sort.origin.latitude' },\n { path: 'query.sort.origin.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'POST' as any,\n methodFqn: 'wix.papyrus.v1.TemplateSettingsService.QueryTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/query',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTemplateSettings;\n}\n\n/** Resolve Template Settings. Returns default Template Settings if it does not exist. */\nexport function resolveTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __resolveTemplateSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.papyrus.v1.TemplateSettingsService.ResolveTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/resolve',\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: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __resolveTemplateSettings;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAAA;AAAA,EAAA,+BAAAC;AAAA,EAAA;AAAA,gCAAAC;AAAA,EAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,2BAA2B;AAAA,MACzB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,I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A,IACpD,oBAAoB,SAAS;AAAA,IAC7B,4BAA4B,SAAS;AAAA,IACrC,cAAc,SAAS;AAAA,IACvB,SAAS,SAAS;AAAA,IAClB,YAAY,SAAS;AAAA,EACvB,CAAC;AAED,QAAM,UACmC,wBAAwB,OAAO;AAExE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO;AAAA,UACL,wCAAe,OAAO,MAAM;AAAA,QAC1B;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,wCAAwC;AAAA,YAChD,EAAE,MAAM,6CAA6C;AAAA,UACvD;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAF;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,oBAAoB;AAAA,UACpB,4BAA4B;AAAA,UAC5B,cAAc;AAAA,UACd,SAAS;AAAA,UACT,YAAY;AAAA,QACd;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["queryTemplateSettings","resolveTemplateSettings","upsertTemplateSettings","import_float","import_timestamp","import_rest_modules","payload","import_image","import_transform_paths","ResizeOption","PaperSize","PageOverflow","SortOrder","WebhookIdentityType","upsertTemplateSettings","sdkTransformError","queryTemplateSettings","resolveTemplateSettings"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/papyrus-v1-template-settings-templates.http.ts","../../src/papyrus-v1-template-settings-templates.types.ts","../../src/papyrus-v1-template-settings-templates.meta.ts"],"sourcesContent":["export * from './src/papyrus-v1-template-settings-templates.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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 resolveWixPapyrusV1TemplateSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._base_domain_': [\n {\n srcPath: '/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/seating-plans/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/papyrus-templates/v1/template-settings',\n destPath: '/v1/template-settings',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/papyrus-templates',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_papyrus_templates';\n\n/** Upsert Template Settings. */\nexport function upsertTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __upsertTemplateSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n { path: 'settings.settingGroups.images.*.image.urlExpirationDate' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n { path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'POST' as any,\n methodFqn:\n 'wix.papyrus.v1.TemplateSettingsService.UpsertTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/upsert',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __upsertTemplateSettings;\n}\n\n/** Lists Template Settings. */\nexport function queryTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryTemplateSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'query.sort.origin.latitude' },\n { path: 'query.sort.origin.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'POST' as any,\n methodFqn: 'wix.papyrus.v1.TemplateSettingsService.QueryTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/query',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTemplateSettings;\n}\n\n/** Resolve Template Settings. Returns default Template Settings if it does not exist. */\nexport function resolveTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __resolveTemplateSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.papyrus.v1.TemplateSettingsService.ResolveTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/resolve',\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: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __resolveTemplateSettings;\n}\n","export interface TemplateSettings {\n /**\n * Auto generated ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Wix app definition ID.\n * @minLength 1\n * @maxLength 20\n */\n appSlug?: string | null;\n /**\n * The type of the template.\n * @minLength 1\n * @maxLength 20\n */\n templateType?: string | null;\n /**\n * The id of the template.\n * @minLength 1\n * @maxLength 20\n */\n templateId?: string | null;\n /**\n * Template settings external ID. For example ticket definition ID.\n * Must be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Date settings were created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date settings were updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** @maxSize 10 */\n settingGroups?: SettingsGroup[];\n /** Paper size */\n paperSize?: PaperSizeWithLiterals;\n pageOverflow?: PageOverflowWithLiterals;\n}\n\nexport interface TextSetting {\n /**\n * Font family class name\n * @maxLength 20\n */\n fontFamily?: string | null;\n /**\n * Font style class names\n * @maxSize 10\n * @maxLength 20\n */\n fontStyle?: string[];\n /**\n * Text alignment class name\n * @maxLength 20\n */\n textAlignment?: string | null;\n /**\n * Text color hex code\n * @minLength 7\n * @maxLength 7\n */\n textColor?: string | null;\n /**\n * Font size\n * @min 1\n */\n fontSize?: number | null;\n /** Text content setting */\n textContent?: TextContent[];\n}\n\nexport interface TextContent {\n /**\n * @minLength 3\n * @maxLength 50\n */\n id?: string;\n /** @maxLength 500 */\n value?: string | null;\n visible?: boolean;\n}\n\nexport interface ImageSetting {\n /** Wix media Image */\n image?: Image;\n /** Image resizing mode */\n resize?: ResizeOptionWithLiterals;\n}\n\nexport interface Image {\n /** WixMedia image ID. */\n id?: string;\n /** Image URL. */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /** Image alt text. */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n */\n filename?: string | null;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum ResizeOption {\n /** Automatically resizes full image to fit image field */\n FIT = 'FIT',\n /** Enables user to manually crop image to fit image field */\n CROP = 'CROP',\n}\n\n/** @enumType */\nexport type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';\n\nexport interface SelectSetting {\n /** Selected value */\n value?: string | null;\n /**\n * Color hex code\n * @minLength 7\n * @maxLength 7\n */\n primaryColor?: string | null;\n /**\n * Color hex code\n * @minLength 7\n * @maxLength 7\n */\n secondaryColor?: string | null;\n /** Size */\n size?: number | null;\n}\n\nexport interface BackgroundSetting {\n /**\n * Color of the background hex code\n * @minLength 7\n * @maxLength 9\n */\n color?: string | null;\n /** Wix media Image */\n image?: Image;\n}\n\nexport interface SettingsGroup {\n /**\n * Id of the control group\n * @minLength 5\n * @maxLength 50\n */\n groupId?: string;\n /**\n * Display settings.\n * @maxSize 20\n */\n display?: Record<string, boolean>;\n /**\n * Texts settings.\n * @maxSize 20\n */\n texts?: Record<string, TextSetting>;\n /**\n * Images settings.\n * @maxSize 10\n */\n images?: Record<string, ImageSetting>;\n /**\n * Select option settings.\n * @maxSize 20\n */\n selects?: Record<string, SelectSetting>;\n /**\n * Backgrounds settings.\n * @maxSize 20\n */\n backgrounds?: Record<string, BackgroundSetting>;\n}\n\nexport enum PaperSize {\n A4_PORTRAIT = 'A4_PORTRAIT',\n A4_LANDSCAPE = 'A4_LANDSCAPE',\n}\n\n/** @enumType */\nexport type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';\n\nexport enum PageOverflow {\n CONTENT_HIDDEN = 'CONTENT_HIDDEN',\n CONTENT_BREAK = 'CONTENT_BREAK',\n}\n\n/** @enumType */\nexport type PageOverflowWithLiterals =\n | PageOverflow\n | 'CONTENT_HIDDEN'\n | 'CONTENT_BREAK';\n\nexport interface CreateTemplateSettingsRequest {\n /** Settings to be created. */\n settings?: TemplateSettings;\n}\n\nexport interface CreateTemplateSettingsResponse {\n /** Created settings. */\n settings?: TemplateSettings;\n}\n\nexport interface BulkCreateTemplateSettingsRequest {\n /**\n * Settings to be created.\n * @minSize 1\n * @maxSize 100\n */\n settings?: TemplateSettings[];\n}\n\nexport interface BulkCreateTemplateSettingsResponse {\n /** Created settings */\n settings?: TemplateSettings[];\n}\n\nexport interface UpsertTemplateSettingsRequest {\n /** Settings to be upserted. */\n settings?: TemplateSettings;\n}\n\nexport interface UpsertTemplateSettingsResponse {\n /** Upserted settings. */\n settings?: TemplateSettings;\n}\n\nexport interface GetTemplateSettingsRequest {\n /**\n * Settings ID.\n * @format GUID\n */\n templateSettingsId?: string;\n}\n\nexport interface GetTemplateSettingsResponse {\n /** Retrieved settings. */\n settings?: TemplateSettings;\n}\n\nexport interface UpdateTemplateSettingsRequest {\n /** Template Settings to be updated. */\n settings?: TemplateSettings;\n}\n\nexport interface UpdateTemplateSettingsResponse {\n /** Updated settings. */\n settings?: TemplateSettings;\n}\n\nexport interface DeleteTemplateSettingsRequest {\n /**\n * Settings ID.\n * @format GUID\n */\n templateSettingsId?: string;\n}\n\nexport interface DeleteTemplateSettingsResponse {\n /** Deleted settings. */\n settings?: TemplateSettings;\n}\n\nexport interface QueryTemplateSettingsRequest {\n /** Generic query object. */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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 * Origin point for geo-distance sorting on a GEO field\n * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n */\n origin?: AddressLocation;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryTemplateSettingsResponse {\n /** Template settings results. */\n settings?: TemplateSettings[];\n /** Query result's metadata. */\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface ResolveTemplateSettingsRequest {\n /**\n * The id of the settings.\n * @format GUID\n */\n templateSettingsId?: string | null;\n /**\n * External ID.\n * @maxLength 100\n */\n templateSettingsExternalId?: string | null;\n /**\n * The type of the template. Used to resolve default settings.\n * @minLength 1\n * @maxLength 20\n */\n templateType: string | null;\n /**\n * Wix app slug.\n * @minLength 1\n * @maxLength 20\n */\n appSlug: string | null;\n /**\n * The id of template.\n * @minLength 1\n * @maxLength 20\n */\n templateId?: string | null;\n}\n\nexport interface ResolveTemplateSettingsResponse {\n /** Retrieved settings. */\n settings?: TemplateSettings;\n}\n\nexport interface GetTemplateControlsRequest {}\n\nexport interface GetTemplateControlsResponse {\n templateControls?: TemplateControls;\n}\n\nexport interface TemplateControls {\n /**\n * The name of the template\n * @maxLength 50\n */\n templateName?: string;\n /**\n * The controls groups configuration\n * @minSize 1\n * @maxSize 10\n */\n controlGroups?: ControlGroup[];\n}\n\n/** Represents control groups on the left side of the UI */\nexport interface ControlGroup {\n /**\n * @minLength 3\n * @maxLength 50\n */\n groupId?: string;\n /**\n * @minLength 3\n * @maxLength 50\n */\n icon?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n labelKey?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n titleKey?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n descriptionKey?: string;\n /** @maxLength 100 */\n linkKey?: string | null;\n /** @maxLength 50 */\n linkUrl?: string | null;\n /** @maxLength 100 */\n tooltipKey?: string | null;\n /**\n * Display controls\n * @maxSize 20\n */\n display?: DisplayControl[];\n /**\n * Text controls\n * @maxSize 20\n */\n texts?: TextControl[];\n /**\n * Image controls\n * @maxSize 10\n */\n images?: ImageControl[];\n /**\n * Select controls\n * @maxSize 20\n */\n selects?: SelectControl[];\n /**\n * Background controls\n * @maxSize 20\n */\n backgrounds?: BackgroundControl[];\n}\n\nexport interface DisplayControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: boolean;\n}\n\nexport interface TextControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: TextSetting;\n /**\n * Text properties\n * @maxSize 5\n */\n textProperties?: TextPropertyControl[];\n /** @maxSize 10 */\n textContent?: TextContentControl[];\n}\n\nexport interface TextPropertyControl {\n /**\n * One of \"fontFamily\", \"fontStyle\", \"fontSize\", \"textAlignment\"\n * @maxLength 15\n */\n type?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /**\n * List of possible options. Used for \"fontFamily\", \"fontStyle\", \"textAlignment\"\n * @maxSize 50\n */\n options?: ValueOption[];\n /** Optional range of the value. Used for \"fontSize\" */\n range?: Range;\n}\n\nexport interface ValueOption {\n /**\n * The label key for translations\n * @maxLength 100\n */\n labelKey?: string;\n /**\n * The value\n * @maxLength 20\n */\n value?: string;\n}\n\nexport interface Range {\n /** Minimum value. */\n min?: number | null;\n /** Maximum value. */\n max?: number | null;\n}\n\nexport interface TextContentControl {\n /**\n * @minLength 3\n * @maxLength 50\n */\n id?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n labelKey?: string | null;\n /** @max 1000 */\n maxLength?: number | null;\n}\n\nexport interface ImageControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: ImageSetting;\n /**\n * Optional description key for translations\n * @maxLength 100\n */\n descriptionKey?: string | null;\n /** Enable logo builder support */\n showLogoBuilder?: boolean;\n}\n\nexport interface SelectControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: SelectSetting;\n /**\n * List of possible options\n * @minSize 1\n * @maxSize 20\n */\n options?: ValueOption[];\n /** Allows to use primary colour setting from template designer */\n showPrimaryColorPicker?: boolean;\n /** Allows to use secondary colour setting from template designer */\n showSecondaryColorPicker?: boolean;\n /** Allows to use size setting from template designer. */\n showSize?: boolean;\n /** Optional range of the size value. */\n sizeRange?: Range;\n}\n\nexport interface BackgroundControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: BackgroundSetting;\n /** Allows to use colour setting from template designer */\n showColorPicker?: boolean;\n /** Allows to use image setting from template designer */\n showImagePicker?: boolean;\n /** Enables background opacity control */\n opacityEnabled?: boolean | null;\n /** Enables background image opacity control */\n imageOpacityEnabled?: boolean | null;\n /**\n * Default media manager folder with background images\n * @maxLength 256\n */\n mediaRootFolder?: string | null;\n}\n\nexport interface GetTemplateRegistryRequest {}\n\nexport interface GetTemplateRegistryResponse {\n templateRegistry?: TemplateRegistry;\n}\n\nexport interface TemplateRegistry {\n /**\n * Templates.\n * @minSize 1\n * @maxSize 1000\n */\n templates?: WixAppTemplate[];\n}\n\n/** Defines a template and it's styles. */\nexport interface WixAppTemplate {\n /** Wix App Id */\n wixAppId?: string;\n /** App Slug */\n appSlug?: string;\n /**\n * Template type.\n * @minLength 1\n * @maxLength 20\n */\n templateType?: string;\n /**\n * Templates\n * @minSize 1\n * @maxSize 1000\n */\n templates?: TemplateStyle[];\n /**\n * Short artifact name (key from template-statics-config.json.erb)\n * @minLength 3\n * @maxLength 64\n * @format SYSTEM_SLUG\n */\n templateArtifactName?: string | null;\n /**\n * Local path\n * @minLength 1\n * @maxLength 200\n * @readonly\n */\n localPath?: string | null;\n /**\n * Statics URL\n * @minLength 1\n * @maxLength 200\n * @readonly\n */\n staticsUrl?: string | null;\n}\n\n/**\n * Defines a template style.\n *\n * Path to TemplateControls json file:\n * papyrus-templates-lib/\n * src/\n * templates/\n * {app_slug}/\n * {template_type}/\n * {id}/\n * controls.json\n */\nexport interface TemplateStyle {\n /**\n * The id of the template.\n * @minLength 1\n * @maxLength 20\n */\n id?: string;\n /**\n * Determines which template should be used if user did not choose it yet.\n * Only single template per wix_app_id can be default.\n */\n default?: boolean;\n /** Determines if template cannot be selected for a new entity. */\n inactive?: boolean;\n /** Paper size */\n paperSize?: PaperSizeWithLiterals;\n pageOverflow?: PageOverflowWithLiterals;\n}\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 entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type UpsertTemplateSettingsApplicationErrors = {\n code?: 'INVALID_TEMPLATE_SETTINGS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ResolveTemplateSettingsApplicationErrors = {\n code?: 'TEMPLATE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixPapyrusV1TemplateSettings from './papyrus-v1-template-settings-templates.http.js';\nimport * as ambassadorWixPapyrusV1TemplateSettingsTypes from './papyrus-v1-template-settings-templates.types.js';\nimport * as ambassadorWixPapyrusV1TemplateSettingsUniversalTypes from './papyrus-v1-template-settings-templates.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function upsertTemplateSettings(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.UpsertTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsTypes.UpsertTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.UpsertTemplateSettingsResponse,\n ambassadorWixPapyrusV1TemplateSettingsTypes.UpsertTemplateSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1TemplateSettings.upsertTemplateSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/template-settings/upsert',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryTemplateSettings(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.QueryTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsTypes.QueryTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.QueryTemplateSettingsResponse,\n ambassadorWixPapyrusV1TemplateSettingsTypes.QueryTemplateSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1TemplateSettings.queryTemplateSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/template-settings/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function resolveTemplateSettings(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.ResolveTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsTypes.ResolveTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.ResolveTemplateSettingsResponse,\n ambassadorWixPapyrusV1TemplateSettingsTypes.ResolveTemplateSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1TemplateSettings.resolveTemplateSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/template-settings/resolve',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n TemplateSettings as TemplateSettingsOriginal,\n TextSetting as TextSettingOriginal,\n TextContent as TextContentOriginal,\n ImageSetting as ImageSettingOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n ResizeOption as ResizeOptionOriginal,\n ResizeOptionWithLiterals as ResizeOptionWithLiteralsOriginal,\n SelectSetting as SelectSettingOriginal,\n BackgroundSetting as BackgroundSettingOriginal,\n SettingsGroup as SettingsGroupOriginal,\n PaperSize as PaperSizeOriginal,\n PaperSizeWithLiterals as PaperSizeWithLiteralsOriginal,\n PageOverflow as PageOverflowOriginal,\n PageOverflowWithLiterals as PageOverflowWithLiteralsOriginal,\n CreateTemplateSettingsRequest as CreateTemplateSettingsRequestOriginal,\n CreateTemplateSettingsResponse as CreateTemplateSettingsResponseOriginal,\n BulkCreateTemplateSettingsRequest as BulkCreateTemplateSettingsRequestOriginal,\n BulkCreateTemplateSettingsResponse as BulkCreateTemplateSettingsResponseOriginal,\n UpsertTemplateSettingsRequest as UpsertTemplateSettingsRequestOriginal,\n UpsertTemplateSettingsResponse as UpsertTemplateSettingsResponseOriginal,\n GetTemplateSettingsRequest as GetTemplateSettingsRequestOriginal,\n GetTemplateSettingsResponse as GetTemplateSettingsResponseOriginal,\n UpdateTemplateSettingsRequest as UpdateTemplateSettingsRequestOriginal,\n UpdateTemplateSettingsResponse as UpdateTemplateSettingsResponseOriginal,\n DeleteTemplateSettingsRequest as DeleteTemplateSettingsRequestOriginal,\n DeleteTemplateSettingsResponse as DeleteTemplateSettingsResponseOriginal,\n QueryTemplateSettingsRequest as QueryTemplateSettingsRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n AddressLocation as AddressLocationOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryTemplateSettingsResponse as QueryTemplateSettingsResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n ResolveTemplateSettingsRequest as ResolveTemplateSettingsRequestOriginal,\n ResolveTemplateSettingsResponse as ResolveTemplateSettingsResponseOriginal,\n GetTemplateControlsRequest as GetTemplateControlsRequestOriginal,\n GetTemplateControlsResponse as GetTemplateControlsResponseOriginal,\n TemplateControls as TemplateControlsOriginal,\n ControlGroup as ControlGroupOriginal,\n DisplayControl as DisplayControlOriginal,\n TextControl as TextControlOriginal,\n TextPropertyControl as TextPropertyControlOriginal,\n ValueOption as ValueOptionOriginal,\n Range as RangeOriginal,\n TextContentControl as TextContentControlOriginal,\n ImageControl as ImageControlOriginal,\n SelectControl as SelectControlOriginal,\n BackgroundControl as BackgroundControlOriginal,\n GetTemplateRegistryRequest as GetTemplateRegistryRequestOriginal,\n GetTemplateRegistryResponse as GetTemplateRegistryResponseOriginal,\n TemplateRegistry as TemplateRegistryOriginal,\n WixAppTemplate as WixAppTemplateOriginal,\n TemplateStyle as TemplateStyleOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n UpsertTemplateSettingsApplicationErrors as UpsertTemplateSettingsApplicationErrorsOriginal,\n ResolveTemplateSettingsApplicationErrors as ResolveTemplateSettingsApplicationErrorsOriginal,\n} from './papyrus-v1-template-settings-templates.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAAA;AAAA,EAAA,+BAAAC;AAAA,EAAA,8BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mB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B;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,sBAAsB,OAAO;AAEtE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,2BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,wBAAwB,OAAO;AAExE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["queryTemplateSettings","resolveTemplateSettings","upsertTemplateSettings","import_float","import_timestamp","import_rest_modules","payload","ResizeOption","PaperSize","PageOverflow","SortOrder","WebhookIdentityType","upsertTemplateSettings","queryTemplateSettings","resolveTemplateSettings"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/papyrus-v1-template-settings-templates.http.ts","../../src/papyrus-v1-template-settings-templates.types.ts","../../src/papyrus-v1-template-settings-templates.meta.ts"],"sourcesContent":["export * from './src/papyrus-v1-template-settings-templates.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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 resolveWixPapyrusV1TemplateSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._base_domain_': [\n {\n srcPath: '/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/seating-plans/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/papyrus-templates',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/papyrus-templates/v1/template-settings',\n destPath: '/v1/template-settings',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/papyrus-templates',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_papyrus_templates';\n\n/** Upsert Template Settings. */\nexport function upsertTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __upsertTemplateSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n { path: 'settings.settingGroups.images.*.image.urlExpirationDate' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n { path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'POST' as any,\n methodFqn:\n 'wix.papyrus.v1.TemplateSettingsService.UpsertTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/upsert',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __upsertTemplateSettings;\n}\n\n/** Lists Template Settings. */\nexport function queryTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryTemplateSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'query.sort.origin.latitude' },\n { path: 'query.sort.origin.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'POST' as any,\n methodFqn: 'wix.papyrus.v1.TemplateSettingsService.QueryTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/query',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTemplateSettings;\n}\n\n/** Resolve Template Settings. Returns default Template Settings if it does not exist. */\nexport function resolveTemplateSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __resolveTemplateSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.papyrus.v1.template_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.papyrus.v1.TemplateSettingsService.ResolveTemplateSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPapyrusV1TemplateSettingsServiceUrl({\n protoPath: '/v1/template-settings/resolve',\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: 'settings.createdDate' },\n { path: 'settings.updatedDate' },\n {\n path: 'settings.settingGroups.images.*.image.urlExpirationDate',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'settings.settingGroups.images.*.image.focalPoint.x' },\n { path: 'settings.settingGroups.images.*.image.focalPoint.y' },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.x',\n },\n {\n path: 'settings.settingGroups.backgrounds.*.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __resolveTemplateSettings;\n}\n","export interface TemplateSettings {\n /**\n * Auto generated ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Wix app definition ID.\n * @minLength 1\n * @maxLength 20\n */\n appSlug?: string | null;\n /**\n * The type of the template.\n * @minLength 1\n * @maxLength 20\n */\n templateType?: string | null;\n /**\n * The id of the template.\n * @minLength 1\n * @maxLength 20\n */\n templateId?: string | null;\n /**\n * Template settings external ID. For example ticket definition ID.\n * Must be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)\n * @minLength 1\n * @maxLength 100\n */\n externalId?: string | null;\n /**\n * Date settings were created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date settings were updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** @maxSize 10 */\n settingGroups?: SettingsGroup[];\n /** Paper size */\n paperSize?: PaperSizeWithLiterals;\n pageOverflow?: PageOverflowWithLiterals;\n}\n\nexport interface TextSetting {\n /**\n * Font family class name\n * @maxLength 20\n */\n fontFamily?: string | null;\n /**\n * Font style class names\n * @maxSize 10\n * @maxLength 20\n */\n fontStyle?: string[];\n /**\n * Text alignment class name\n * @maxLength 20\n */\n textAlignment?: string | null;\n /**\n * Text color hex code\n * @minLength 7\n * @maxLength 7\n */\n textColor?: string | null;\n /**\n * Font size\n * @min 1\n */\n fontSize?: number | null;\n /** Text content setting */\n textContent?: TextContent[];\n}\n\nexport interface TextContent {\n /**\n * @minLength 3\n * @maxLength 50\n */\n id?: string;\n /** @maxLength 500 */\n value?: string | null;\n visible?: boolean;\n}\n\nexport interface ImageSetting {\n /** Wix media Image */\n image?: Image;\n /** Image resizing mode */\n resize?: ResizeOptionWithLiterals;\n}\n\nexport interface Image {\n /** WixMedia image ID. */\n id?: string;\n /** Image URL. */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /** Image alt text. */\n altText?: string | null;\n /**\n * Image URL expiration date (when relevant).\n * @internal\n * @readonly\n */\n urlExpirationDate?: Date | null;\n /**\n * Image filename.\n * @readonly\n */\n filename?: string | null;\n /**\n * Image size in bytes.\n * @internal\n * @readonly\n * @format DECIMAL_VALUE\n */\n sizeInBytes?: string | null;\n /**\n * Focal point of the image.\n * @internal\n */\n focalPoint?: FocalPoint;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum ResizeOption {\n /** Automatically resizes full image to fit image field */\n FIT = 'FIT',\n /** Enables user to manually crop image to fit image field */\n CROP = 'CROP',\n}\n\n/** @enumType */\nexport type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';\n\nexport interface SelectSetting {\n /** Selected value */\n value?: string | null;\n /**\n * Color hex code\n * @minLength 7\n * @maxLength 7\n */\n primaryColor?: string | null;\n /**\n * Color hex code\n * @minLength 7\n * @maxLength 7\n */\n secondaryColor?: string | null;\n /** Size */\n size?: number | null;\n}\n\nexport interface BackgroundSetting {\n /**\n * Color of the background hex code\n * @minLength 7\n * @maxLength 9\n */\n color?: string | null;\n /** Wix media Image */\n image?: Image;\n}\n\nexport interface SettingsGroup {\n /**\n * Id of the control group\n * @minLength 5\n * @maxLength 50\n */\n groupId?: string;\n /**\n * Display settings.\n * @maxSize 20\n */\n display?: Record<string, boolean>;\n /**\n * Texts settings.\n * @maxSize 20\n */\n texts?: Record<string, TextSetting>;\n /**\n * Images settings.\n * @maxSize 10\n */\n images?: Record<string, ImageSetting>;\n /**\n * Select option settings.\n * @maxSize 20\n */\n selects?: Record<string, SelectSetting>;\n /**\n * Backgrounds settings.\n * @maxSize 20\n */\n backgrounds?: Record<string, BackgroundSetting>;\n}\n\nexport enum PaperSize {\n A4_PORTRAIT = 'A4_PORTRAIT',\n A4_LANDSCAPE = 'A4_LANDSCAPE',\n}\n\n/** @enumType */\nexport type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';\n\nexport enum PageOverflow {\n CONTENT_HIDDEN = 'CONTENT_HIDDEN',\n CONTENT_BREAK = 'CONTENT_BREAK',\n}\n\n/** @enumType */\nexport type PageOverflowWithLiterals =\n | PageOverflow\n | 'CONTENT_HIDDEN'\n | 'CONTENT_BREAK';\n\nexport interface CreateTemplateSettingsRequest {\n /** Settings to be created. */\n settings?: TemplateSettings;\n}\n\nexport interface CreateTemplateSettingsResponse {\n /** Created settings. */\n settings?: TemplateSettings;\n}\n\nexport interface BulkCreateTemplateSettingsRequest {\n /**\n * Settings to be created.\n * @minSize 1\n * @maxSize 100\n */\n settings?: TemplateSettings[];\n}\n\nexport interface BulkCreateTemplateSettingsResponse {\n /** Created settings */\n settings?: TemplateSettings[];\n}\n\nexport interface UpsertTemplateSettingsRequest {\n /** Settings to be upserted. */\n settings?: TemplateSettings;\n}\n\nexport interface UpsertTemplateSettingsResponse {\n /** Upserted settings. */\n settings?: TemplateSettings;\n}\n\nexport interface GetTemplateSettingsRequest {\n /**\n * Settings ID.\n * @format GUID\n */\n templateSettingsId?: string;\n}\n\nexport interface GetTemplateSettingsResponse {\n /** Retrieved settings. */\n settings?: TemplateSettings;\n}\n\nexport interface UpdateTemplateSettingsRequest {\n /** Template Settings to be updated. */\n settings?: TemplateSettings;\n}\n\nexport interface UpdateTemplateSettingsResponse {\n /** Updated settings. */\n settings?: TemplateSettings;\n}\n\nexport interface DeleteTemplateSettingsRequest {\n /**\n * Settings ID.\n * @format GUID\n */\n templateSettingsId?: string;\n}\n\nexport interface DeleteTemplateSettingsResponse {\n /** Deleted settings. */\n settings?: TemplateSettings;\n}\n\nexport interface QueryTemplateSettingsRequest {\n /** Generic query object. */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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 * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n /**\n * Origin point for geo-distance sorting on a GEO field\n * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n */\n origin?: AddressLocation;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryTemplateSettingsResponse {\n /** Template settings results. */\n settings?: TemplateSettings[];\n /** Query result's metadata. */\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\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 * @internal\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface ResolveTemplateSettingsRequest {\n /**\n * The id of the settings.\n * @format GUID\n */\n templateSettingsId?: string | null;\n /**\n * External ID.\n * @maxLength 100\n */\n templateSettingsExternalId?: string | null;\n /**\n * The type of the template. Used to resolve default settings.\n * @minLength 1\n * @maxLength 20\n */\n templateType: string | null;\n /**\n * Wix app slug.\n * @minLength 1\n * @maxLength 20\n */\n appSlug: string | null;\n /**\n * The id of template.\n * @minLength 1\n * @maxLength 20\n */\n templateId?: string | null;\n}\n\nexport interface ResolveTemplateSettingsResponse {\n /** Retrieved settings. */\n settings?: TemplateSettings;\n}\n\nexport interface GetTemplateControlsRequest {}\n\nexport interface GetTemplateControlsResponse {\n templateControls?: TemplateControls;\n}\n\nexport interface TemplateControls {\n /**\n * The name of the template\n * @maxLength 50\n */\n templateName?: string;\n /**\n * The controls groups configuration\n * @minSize 1\n * @maxSize 10\n */\n controlGroups?: ControlGroup[];\n}\n\n/** Represents control groups on the left side of the UI */\nexport interface ControlGroup {\n /**\n * @minLength 3\n * @maxLength 50\n */\n groupId?: string;\n /**\n * @minLength 3\n * @maxLength 50\n */\n icon?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n labelKey?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n titleKey?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n descriptionKey?: string;\n /** @maxLength 100 */\n linkKey?: string | null;\n /** @maxLength 50 */\n linkUrl?: string | null;\n /** @maxLength 100 */\n tooltipKey?: string | null;\n /**\n * Display controls\n * @maxSize 20\n */\n display?: DisplayControl[];\n /**\n * Text controls\n * @maxSize 20\n */\n texts?: TextControl[];\n /**\n * Image controls\n * @maxSize 10\n */\n images?: ImageControl[];\n /**\n * Select controls\n * @maxSize 20\n */\n selects?: SelectControl[];\n /**\n * Background controls\n * @maxSize 20\n */\n backgrounds?: BackgroundControl[];\n}\n\nexport interface DisplayControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: boolean;\n}\n\nexport interface TextControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: TextSetting;\n /**\n * Text properties\n * @maxSize 5\n */\n textProperties?: TextPropertyControl[];\n /** @maxSize 10 */\n textContent?: TextContentControl[];\n}\n\nexport interface TextPropertyControl {\n /**\n * One of \"fontFamily\", \"fontStyle\", \"fontSize\", \"textAlignment\"\n * @maxLength 15\n */\n type?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /**\n * List of possible options. Used for \"fontFamily\", \"fontStyle\", \"textAlignment\"\n * @maxSize 50\n */\n options?: ValueOption[];\n /** Optional range of the value. Used for \"fontSize\" */\n range?: Range;\n}\n\nexport interface ValueOption {\n /**\n * The label key for translations\n * @maxLength 100\n */\n labelKey?: string;\n /**\n * The value\n * @maxLength 20\n */\n value?: string;\n}\n\nexport interface Range {\n /** Minimum value. */\n min?: number | null;\n /** Maximum value. */\n max?: number | null;\n}\n\nexport interface TextContentControl {\n /**\n * @minLength 3\n * @maxLength 50\n */\n id?: string;\n /**\n * @minLength 3\n * @maxLength 100\n */\n labelKey?: string | null;\n /** @max 1000 */\n maxLength?: number | null;\n}\n\nexport interface ImageControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: ImageSetting;\n /**\n * Optional description key for translations\n * @maxLength 100\n */\n descriptionKey?: string | null;\n /** Enable logo builder support */\n showLogoBuilder?: boolean;\n}\n\nexport interface SelectControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: SelectSetting;\n /**\n * List of possible options\n * @minSize 1\n * @maxSize 20\n */\n options?: ValueOption[];\n /** Allows to use primary colour setting from template designer */\n showPrimaryColorPicker?: boolean;\n /** Allows to use secondary colour setting from template designer */\n showSecondaryColorPicker?: boolean;\n /** Allows to use size setting from template designer. */\n showSize?: boolean;\n /** Optional range of the size value. */\n sizeRange?: Range;\n}\n\nexport interface BackgroundControl {\n /**\n * The id of the setting\n * @maxLength 50\n */\n id?: string;\n /**\n * Optional label key for translations\n * @maxLength 100\n */\n labelKey?: string | null;\n /** Default setting for this control */\n default?: BackgroundSetting;\n /** Allows to use colour setting from template designer */\n showColorPicker?: boolean;\n /** Allows to use image setting from template designer */\n showImagePicker?: boolean;\n /** Enables background opacity control */\n opacityEnabled?: boolean | null;\n /** Enables background image opacity control */\n imageOpacityEnabled?: boolean | null;\n /**\n * Default media manager folder with background images\n * @maxLength 256\n */\n mediaRootFolder?: string | null;\n}\n\nexport interface GetTemplateRegistryRequest {}\n\nexport interface GetTemplateRegistryResponse {\n templateRegistry?: TemplateRegistry;\n}\n\nexport interface TemplateRegistry {\n /**\n * Templates.\n * @minSize 1\n * @maxSize 1000\n */\n templates?: WixAppTemplate[];\n}\n\n/** Defines a template and it's styles. */\nexport interface WixAppTemplate {\n /** Wix App Id */\n wixAppId?: string;\n /** App Slug */\n appSlug?: string;\n /**\n * Template type.\n * @minLength 1\n * @maxLength 20\n */\n templateType?: string;\n /**\n * Templates\n * @minSize 1\n * @maxSize 1000\n */\n templates?: TemplateStyle[];\n /**\n * Short artifact name (key from template-statics-config.json.erb)\n * @minLength 3\n * @maxLength 64\n * @format SYSTEM_SLUG\n */\n templateArtifactName?: string | null;\n /**\n * Local path\n * @minLength 1\n * @maxLength 200\n * @readonly\n */\n localPath?: string | null;\n /**\n * Statics URL\n * @minLength 1\n * @maxLength 200\n * @readonly\n */\n staticsUrl?: string | null;\n}\n\n/**\n * Defines a template style.\n *\n * Path to TemplateControls json file:\n * papyrus-templates-lib/\n * src/\n * templates/\n * {app_slug}/\n * {template_type}/\n * {id}/\n * controls.json\n */\nexport interface TemplateStyle {\n /**\n * The id of the template.\n * @minLength 1\n * @maxLength 20\n */\n id?: string;\n /**\n * Determines which template should be used if user did not choose it yet.\n * Only single template per wix_app_id can be default.\n */\n default?: boolean;\n /** Determines if template cannot be selected for a new entity. */\n inactive?: boolean;\n /** Paper size */\n paperSize?: PaperSizeWithLiterals;\n pageOverflow?: PageOverflowWithLiterals;\n}\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 entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\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 currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type UpsertTemplateSettingsApplicationErrors = {\n code?: 'INVALID_TEMPLATE_SETTINGS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ResolveTemplateSettingsApplicationErrors = {\n code?: 'TEMPLATE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixPapyrusV1TemplateSettings from './papyrus-v1-template-settings-templates.http.js';\nimport * as ambassadorWixPapyrusV1TemplateSettingsTypes from './papyrus-v1-template-settings-templates.types.js';\nimport * as ambassadorWixPapyrusV1TemplateSettingsUniversalTypes from './papyrus-v1-template-settings-templates.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function upsertTemplateSettings(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.UpsertTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsTypes.UpsertTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.UpsertTemplateSettingsResponse,\n ambassadorWixPapyrusV1TemplateSettingsTypes.UpsertTemplateSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1TemplateSettings.upsertTemplateSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/template-settings/upsert',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryTemplateSettings(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.QueryTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsTypes.QueryTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.QueryTemplateSettingsResponse,\n ambassadorWixPapyrusV1TemplateSettingsTypes.QueryTemplateSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1TemplateSettings.queryTemplateSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/template-settings/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function resolveTemplateSettings(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.ResolveTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsTypes.ResolveTemplateSettingsRequest,\n ambassadorWixPapyrusV1TemplateSettingsUniversalTypes.ResolveTemplateSettingsResponse,\n ambassadorWixPapyrusV1TemplateSettingsTypes.ResolveTemplateSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPapyrusV1TemplateSettings.resolveTemplateSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/template-settings/resolve',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n TemplateSettings as TemplateSettingsOriginal,\n TextSetting as TextSettingOriginal,\n TextContent as TextContentOriginal,\n ImageSetting as ImageSettingOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n ResizeOption as ResizeOptionOriginal,\n ResizeOptionWithLiterals as ResizeOptionWithLiteralsOriginal,\n SelectSetting as SelectSettingOriginal,\n BackgroundSetting as BackgroundSettingOriginal,\n SettingsGroup as SettingsGroupOriginal,\n PaperSize as PaperSizeOriginal,\n PaperSizeWithLiterals as PaperSizeWithLiteralsOriginal,\n PageOverflow as PageOverflowOriginal,\n PageOverflowWithLiterals as PageOverflowWithLiteralsOriginal,\n CreateTemplateSettingsRequest as CreateTemplateSettingsRequestOriginal,\n CreateTemplateSettingsResponse as CreateTemplateSettingsResponseOriginal,\n BulkCreateTemplateSettingsRequest as BulkCreateTemplateSettingsRequestOriginal,\n BulkCreateTemplateSettingsResponse as BulkCreateTemplateSettingsResponseOriginal,\n UpsertTemplateSettingsRequest as UpsertTemplateSettingsRequestOriginal,\n UpsertTemplateSettingsResponse as UpsertTemplateSettingsResponseOriginal,\n GetTemplateSettingsRequest as GetTemplateSettingsRequestOriginal,\n GetTemplateSettingsResponse as GetTemplateSettingsResponseOriginal,\n UpdateTemplateSettingsRequest as UpdateTemplateSettingsRequestOriginal,\n UpdateTemplateSettingsResponse as UpdateTemplateSettingsResponseOriginal,\n DeleteTemplateSettingsRequest as DeleteTemplateSettingsRequestOriginal,\n DeleteTemplateSettingsResponse as DeleteTemplateSettingsResponseOriginal,\n QueryTemplateSettingsRequest as QueryTemplateSettingsRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n AddressLocation as AddressLocationOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryTemplateSettingsResponse as QueryTemplateSettingsResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n ResolveTemplateSettingsRequest as ResolveTemplateSettingsRequestOriginal,\n ResolveTemplateSettingsResponse as ResolveTemplateSettingsResponseOriginal,\n GetTemplateControlsRequest as GetTemplateControlsRequestOriginal,\n GetTemplateControlsResponse as GetTemplateControlsResponseOriginal,\n TemplateControls as TemplateControlsOriginal,\n ControlGroup as ControlGroupOriginal,\n DisplayControl as DisplayControlOriginal,\n TextControl as TextControlOriginal,\n TextPropertyControl as TextPropertyControlOriginal,\n ValueOption as ValueOptionOriginal,\n Range as RangeOriginal,\n TextContentControl as TextContentControlOriginal,\n ImageControl as ImageControlOriginal,\n SelectControl as SelectControlOriginal,\n BackgroundControl as BackgroundControlOriginal,\n GetTemplateRegistryRequest as GetTemplateRegistryRequestOriginal,\n GetTemplateRegistryResponse as GetTemplateRegistryResponseOriginal,\n TemplateRegistry as TemplateRegistryOriginal,\n WixAppTemplate as WixAppTemplateOriginal,\n TemplateStyle as TemplateStyleOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n UpsertTemplateSettingsApplicationErrors as UpsertTemplateSettingsApplicationErrorsOriginal,\n ResolveTemplateSettingsApplicationErrors as ResolveTemplateSettingsApplicationErrorsOriginal,\n} from './papyrus-v1-template-settings-templates.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAAA;AAAA,EAAA,+BAAAC;AAAA,EAAA,8BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,2BAA2B;AAAA,MACzB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;A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,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["queryTemplateSettings","resolveTemplateSettings","upsertTemplateSettings","import_float","import_timestamp","import_rest_modules","payload","ResizeOption","PaperSize","PageOverflow","SortOrder","WebhookIdentityType","upsertTemplateSettings","queryTemplateSettings","resolveTemplateSettings"]}
@@ -41,7 +41,7 @@ module.exports = __toCommonJS(schemas_exports);
41
41
 
42
42
  // src/papyrus-v1-template-settings-templates.schemas.ts
43
43
  var z = __toESM(require("zod"));
44
- var UpsertTemplateSettingsRequest = z.object({
44
+ var UpsertTemplateSettingsRequest = /* @__PURE__ */ z.object({
45
45
  options: z.object({
46
46
  settings: z.object({
47
47
  _id: z.string().describe("Auto generated ID.").regex(
@@ -107,7 +107,7 @@ var UpsertTemplateSettingsRequest = z.object({
107
107
  }).describe("Settings to be upserted.").optional()
108
108
  }).optional()
109
109
  });
110
- var UpsertTemplateSettingsResponse = z.object({
110
+ var UpsertTemplateSettingsResponse = /* @__PURE__ */ z.object({
111
111
  settings: z.object({
112
112
  _id: z.string().describe("Auto generated ID.").regex(
113
113
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
@@ -171,7 +171,7 @@ var UpsertTemplateSettingsResponse = z.object({
171
171
  pageOverflow: z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
172
172
  }).describe("Upserted settings.").optional()
173
173
  });
174
- var QueryTemplateSettingsRequest = z.object({
174
+ var QueryTemplateSettingsRequest = /* @__PURE__ */ z.object({
175
175
  query: z.intersection(
176
176
  z.object({
177
177
  filter: z.record(z.string(), z.any()).describe(
@@ -218,7 +218,7 @@ var QueryTemplateSettingsRequest = z.object({
218
218
  ])
219
219
  ).describe("Generic query object.")
220
220
  });
221
- var QueryTemplateSettingsResponse = z.object({
221
+ var QueryTemplateSettingsResponse = /* @__PURE__ */ z.object({
222
222
  settings: z.array(
223
223
  z.object({
224
224
  _id: z.string().describe("Auto generated ID.").regex(
@@ -304,7 +304,7 @@ var QueryTemplateSettingsResponse = z.object({
304
304
  ).optional()
305
305
  }).describe("Query result's metadata.").optional()
306
306
  });
307
- var ResolveTemplateSettingsRequest = z.object({
307
+ var ResolveTemplateSettingsRequest = /* @__PURE__ */ z.object({
308
308
  options: z.object({
309
309
  templateSettingsId: z.string().describe("The id of the settings.").regex(
310
310
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
@@ -316,7 +316,7 @@ var ResolveTemplateSettingsRequest = z.object({
316
316
  templateId: z.string().describe("The id of template.").min(1).max(20).optional().nullable()
317
317
  })
318
318
  });
319
- var ResolveTemplateSettingsResponse = z.object({
319
+ var ResolveTemplateSettingsResponse = /* @__PURE__ */ z.object({
320
320
  settings: z.object({
321
321
  _id: z.string().describe("Auto generated ID.").regex(
322
322
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,