{"version":3,"sources":["jsdelivr-header.js","/npm/@wix/auto_sdk_portfolio_project-in-collections@1.0.52/index.ts","/npm/@wix/auto_sdk_portfolio_project-in-collections@1.0.52/src/portfolio-projects-v1-project-in-collection-project-in-collections.public.ts","/npm/@wix/auto_sdk_portfolio_project-in-collections@1.0.52/src/portfolio-projects-v1-project-in-collection-project-in-collections.universal.ts","/npm/@wix/auto_sdk_portfolio_project-in-collections@1.0.52/src/portfolio-projects-v1-project-in-collection-project-in-collections.http.ts","/npm/@wix/auto_sdk_portfolio_project-in-collections@1.0.52/src/portfolio-projects-v1-project-in-collection-project-in-collections.context.ts"],"names":[],"mappings":"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","file":"/npm/@wix/auto_sdk_portfolio_project-in-collections@1.0.52/build/cjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/@wix/auto_sdk_portfolio_project-in-collections@1.0.52/build/cjs/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","export * from './src/portfolio-projects-v1-project-in-collection-project-in-collections.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope,\n  UpdateProjectOrderInCollectionIdentifiers,\n  UpdateProjectOrderInCollectionResponse,\n  updateProjectOrderInCollection as universalUpdateProjectOrderInCollection,\n} from './portfolio-projects-v1-project-in-collection-project-in-collections.universal.js';\n\nconst TRANSFORM_PATHS_0 = [{ path: 'data.sortOrder' }];\nconst TRANSFORM_PATHS_1 = [{ path: 'metadata.eventTime' }];\nexport const __metadata = { PACKAGE_NAME: '@wix/portfolio' };\n\nexport function updateProjectOrderInCollection(\n  httpClient: HttpClient\n): UpdateProjectOrderInCollectionSignature {\n  return (\n    identifiers: NonNullablePaths<\n      UpdateProjectOrderInCollectionIdentifiers,\n      `collectionId` | `projectId`,\n      0\n    >,\n    sortOrder: number\n  ) =>\n    universalUpdateProjectOrderInCollection(\n      identifiers,\n      sortOrder,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateProjectOrderInCollectionSignature {\n  /**\n   * Updates the placement of a project within a specified collection.\n   * @param - Index that determines the placement of a project within the collection. Projects with a lower `sortOrder` are displayed first.\n   */\n  (\n    identifiers: NonNullablePaths<\n      UpdateProjectOrderInCollectionIdentifiers,\n      `collectionId` | `projectId`,\n      0\n    >,\n    sortOrder: number\n  ): Promise<\n    NonNullablePaths<\n      UpdateProjectOrderInCollectionResponse,\n      | `projectInCollection.collectionId`\n      | `projectInCollection.project.coverImage.focalPoint.x`\n      | `projectInCollection.project.coverImage.focalPoint.y`\n      | `projectInCollection.project.collectionIds`\n      | `projectInCollection.project.details`\n      | `projectInCollection.project.details.${number}.text`\n      | `projectInCollection.project.details.${number}.label`\n      | `projectInCollection.project.seoData.tags`\n      | `projectInCollection.project.seoData.tags.${number}.type`\n      | `projectInCollection.project.seoData.tags.${number}.children`\n      | `projectInCollection.project.seoData.tags.${number}.custom`\n      | `projectInCollection.project.seoData.tags.${number}.disabled`\n      | `projectInCollection.project.seoData.settings.preventAutoRedirect`\n      | `projectInCollection.project.seoData.settings.keywords`\n      | `projectInCollection.project.seoData.settings.keywords.${number}.term`\n      | `projectInCollection.project.seoData.settings.keywords.${number}.isMain`\n      | `projectInCollection.project.watermark.position`\n      | `projectInCollection.project.watermark.size`\n      | `projectInCollection.project.watermark.opacity`\n      | `projectInCollection.project.watermark.imageUrl`\n      | `projectInCollection.project.watermark.enabled`,\n      6\n    >\n  >;\n}\n\nexport const onProjectInCollectionProjectOrderInCollectionUpdatedEvent =\n  /*#__PURE__*/ EventDefinition(\n    'wix.portfolio.projects.v1.project_in_collection_project_order_in_collection_updated_event',\n    true,\n    (event: ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope) =>\n      renameKeysFromRESTResponseToSDKResponse(\n        transformPaths(event, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: TRANSFORM_PATHS_0,\n          },\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_1,\n          },\n        ])\n      )\n  )<ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope>();\n\nexport {\n  AccountInfo,\n  AccountInfoMetadata,\n  ActionEvent,\n  AddressLocation,\n  BaseEventMetadata,\n  CursorPaging,\n  Cursors,\n  DetailsLink,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  EventMetadata,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  Image,\n  ImageType,\n  Keyword,\n  MessageEnvelope,\n  Paging,\n  PagingMetadataV2,\n  Point,\n  Position,\n  Project,\n  ProjectCoverOneOf,\n  ProjectDetail,\n  ProjectDetailValueOneOf,\n  ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope,\n  ProjectOrderInCollectionUpdatedEvent,\n  ProjectSource,\n  ProjectsInCollections,\n  QueryProjectInCollectionsRequest,\n  QueryProjectInCollectionsResponse,\n  QueryV2,\n  QueryV2PagingMethodOneOf,\n  RestoreInfo,\n  SeoSchema,\n  Settings,\n  SortOrder,\n  Sorting,\n  SyncStatus,\n  Tag,\n  UnsharpMasking,\n  UpdateProjectOrderInCollectionIdentifiers,\n  UpdateProjectOrderInCollectionRequest,\n  UpdateProjectOrderInCollectionResponse,\n  Video,\n  VideoResolution,\n  Watermark,\n  WebhookIdentityType,\n} from './portfolio-projects-v1-project-in-collection-project-in-collections.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPortfolioProjectsV1ProjectInCollection from './portfolio-projects-v1-project-in-collection-project-in-collections.http.js';\n// @ts-ignore\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformRESTPageURLV2ToSDKPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';\n\nconst TRANSFORM_PATHS_0 = [\n  { path: 'project.project.url' },\n  { path: 'projectInCollection.project.url' },\n];\nconst TRANSFORM_PATHS_1 = [\n  { path: 'project.project.coverImage.imageInfo' },\n  { path: 'projectInCollection.project.coverImage.imageInfo' },\n];\nconst TRANSFORM_PATHS_2 = [\n  { path: 'project.project.coverVideo.videoInfo' },\n  { path: 'projectInCollection.project.coverVideo.videoInfo' },\n];\n\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface ProjectsInCollections {\n  /**\n   * Collection ID.\n   * @format GUID\n   */\n  collectionId?: string;\n  /** Project object. */\n  project?: Project;\n  /**\n   * Index that determines the placement of a project within the collection. Projects with a lower `sortOrder` are displayed first. <br />\n   *\n   * Default: Negative [Epoch](https://www.epoch101.com/) timestamp in milliseconds, so a newly added project is displayed first. <br />\n   * This value is independent of the site-wide project order set by `sortOrder` on the project itself. <br />\n   */\n  sortOrder?: number | null;\n  /**\n   * Project placement ID.\n   * @readonly\n   * @format GUID\n   */\n  _id?: string | null;\n}\n\nexport interface Project extends ProjectCoverOneOf {\n  /** Project cover image. */\n  coverImage?: Image;\n  /** Project cover video. */\n  coverVideo?: Video;\n  /**\n   * Project ID.\n   * @readonly\n   * @format GUID\n   */\n  _id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the project is updated. To prevent conflicting changes, the existing revision must be passed when updating the project object.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Project title.\n   * @maxLength 100\n   */\n  title?: string | null;\n  /** Project description. */\n  description?: string | null;\n  /** Whether the project is hidden from the portfolio. Default: `false` */\n  hidden?: boolean | null;\n  /**\n   * IDs of the collections that include the project.\n   * @format GUID\n   * @maxSize 1000\n   */\n  collectionIds?: string[];\n  /** Project details. */\n  details?: ProjectDetail[];\n  /** Project slug. */\n  slug?: string | null;\n  /**\n   * Date and time the project was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the project was updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * project source - When project is synced from external platform, this field will represent the app & source the projects synced from.\n   * @internal\n   */\n  source?: ProjectSource;\n  /**\n   * Project page URL and relative path. Returned when `includePageUrl` is `true` in the request.\n   * @readonly\n   */\n  url?: string;\n  /** Project SEO data. */\n  seoData?: SeoSchema;\n  /**\n   * Whether the project is synced to an external platform and will receive daily updates.\n   * @internal\n   * @readonly\n   */\n  syncedProject?: boolean | null;\n  /** Optional watermark that can be applied to all project's images. */\n  watermark?: Watermark;\n  /**\n   * Whether the project is featured. Default: `false`. INTERNAL exposure keeps it out of the public docs and SDK; any caller with project write permission may set it.\n   * @internal\n   */\n  featured?: boolean | null;\n  /**\n   * Position of the project in the site-wide project order, as shown on the All Projects page. <br />\n   * Projects with a lower `sortOrder` are displayed first. To retrieve projects in this order, sort by `sortOrder` in `ASC`, then by `createdDate` in `DESC`, then by `id` in `ASC`. <br />\n   * Projects without a `sortOrder` come first in that sort, newest first. Projects created before this field existed have no value until a one-time migration assigns one, so don't use this sort for a site until that migration has completed. <br />\n   * This value is independent of a project's placement inside a collection. To change where a project appears within a collection, call Update Project Order In Collection. <br />\n   *\n   * Default: The negative of the project creation time as an [Epoch](https://www.epoch101.com/) timestamp in milliseconds, so a new project is displayed first. <br />\n   * To change this value, call Update Project Order. Update Project ignores this field and rejects a `mask` that contains nothing else.\n   * @internal\n   */\n  sortOrder?: number | null;\n}\n\n/** @oneof */\nexport interface ProjectCoverOneOf {\n  /** Project cover image. */\n  coverImage?: Image;\n  /** Project cover video. */\n  coverVideo?: Video;\n}\n\nexport interface Image {\n  /**\n   * @internal\n   * @deprecated\n   * @targetRemovalDate 2026-02-05\n   */\n  type?: ImageTypeWithLiterals;\n  /** Information about the Wix Media image. */\n  imageInfo?: string;\n  /** Focal point of the image. */\n  focalPoint?: Point;\n  /**\n   * Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif).\n   * @internal\n   */\n  exif?: Record<string, any> | null;\n  /**\n   * Image compression level. <br />\n   *\n   * Min: `30` <br />\n   * Max: `100`\n   * @internal\n   * @min 30\n   * @max 100\n   */\n  quality?: number | null;\n  /**\n   * [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image.\n   * @internal\n   */\n  unsharpMasking?: UnsharpMasking;\n  /**\n   * Whether the image is saved in secure media.\n   * @internal\n   */\n  secure?: boolean | null;\n  /**\n   * When image is saved in secure media, token is generated.\n   * @internal\n   * @readonly\n   * @maxLength 5000\n   */\n  token?: string | null;\n  /**\n   * Alt text of the image, for screen readers and SEO. On read, the same value as\n   * `image_info.alt_text`. On write, both fields set the same stored value; when the update\n   * mask names this field, it wins. Use this field from the SDK, where `image_info` is a\n   * `wix:image` string that cannot carry alt text.\n   * @maxLength 5000\n   */\n  altText?: string | null;\n}\n\nexport enum ImageType {\n  UNDEFINED = 'UNDEFINED',\n  WIX_MEDIA = 'WIX_MEDIA',\n  EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type ImageTypeWithLiterals =\n  | ImageType\n  | 'UNDEFINED'\n  | 'WIX_MEDIA'\n  | 'EXTERNAL';\n\nexport interface Point {\n  /** X-coordinate of the focal point. */\n  x?: number;\n  /** Y-coordinate of the focal point. */\n  y?: number;\n}\n\nexport interface UnsharpMasking {\n  /**\n   * Unsharp masking amount. Controls the sharpening strength. <br />\n   *\n   * Min: `0` <br />\n   * Max: `5`\n   * @max 5\n   */\n  amount?: number | null;\n  /** Unsharp masking radius in pixels. Controls the sharpening width. */\n  radius?: number | null;\n  /**\n   * Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />\n   *\n   * Min: `0` <br />\n   * Max: `1`\n   * @max 1\n   */\n  threshold?: number | null;\n}\n\nexport interface Video {\n  /** Information about the Wix Media video. */\n  videoInfo?: string;\n  /** Manually defined Video duration in milliseconds. */\n  durationInMillis?: number | null;\n}\n\nexport interface VideoResolution {\n  /**\n   * Video URL.  Required.\n   * @maxLength 8000\n   */\n  url?: string;\n  /** Video height. Required. */\n  height?: number;\n  /** Video width.  Required. */\n  width?: number;\n  /**\n   * Video poster. Deprecated, please use the `posters` property in the parent entity\n   * @internal\n   * @deprecated Video poster. Deprecated, please use the `posters` property in the parent entity\n   * @targetRemovalDate 2026-02-05\n   */\n  poster?: string;\n  /**\n   * Video format for example, mp4, hls.  Required.\n   * @maxLength 50\n   */\n  format?: string;\n  /**\n   * Video quality for example 480p, 720p.\n   * @maxLength 50\n   */\n  quality?: string | null;\n  /**\n   * Video filename.\n   * @maxLength 512\n   */\n  filename?: string | null;\n}\n\n/**\n * Project label.\n * One of:\n * + `text`\n * + `link`\n */\nexport interface ProjectDetail extends ProjectDetailValueOneOf {\n  /** Project label in plain text format. */\n  text?: string;\n  /** Project label in link format. */\n  link?: DetailsLink;\n  /** Project label. */\n  label?: string;\n}\n\n/** @oneof */\nexport interface ProjectDetailValueOneOf {\n  /** Project label in plain text format. */\n  text?: string;\n  /** Project label in link format. */\n  link?: DetailsLink;\n}\n\nexport interface DetailsLink {\n  /** Display text of the link. */\n  text?: string | null;\n  /**\n   * Target URL of the link.\n   * @format WEB_URL\n   */\n  url?: string | null;\n  /**\n   * Whether the link opens in a new tab or window. One of:\n   * * `'_blank'`: The link opens in a new tab or window.\n   * * `'_self'`: The link opens in the same tab or window.\n   */\n  target?: string | null;\n}\n\nexport interface ProjectSource {\n  /**\n   * App definition id\n   * @immutable\n   */\n  appDefId?: string;\n  /**\n   * External source id\n   * @immutable\n   */\n  externalId?: string;\n  /**\n   * Source name\n   * @maxLength 100\n   * @immutable\n   */\n  sourceName?: string;\n  /**\n   * Source description\n   * @immutable\n   */\n  description?: string | null;\n  /**\n   * link to external source\n   * @format WEB_URL\n   */\n  link?: string | null;\n  /** Sync status */\n  syncStatus?: SyncStatusWithLiterals;\n  /** fields that are synced from external source, should be blocked to update in UI */\n  notEditableFields?: string[];\n  /** last date the project was synced */\n  lastSync?: Date | null;\n}\n\nexport enum SyncStatus {\n  SYNCED = 'SYNCED',\n  SYNCING = 'SYNCING',\n  NOT_SYNCED = 'NOT_SYNCED',\n}\n\n/** @enumType */\nexport type SyncStatusWithLiterals =\n  | SyncStatus\n  | 'SYNCED'\n  | 'SYNCING'\n  | 'NOT_SYNCED';\n\n/**\n * The SEO data for a single page or dynamic item, in the shape stored today.\n *\n * FROZEN. Existing server code maps onto this message field by field, so its\n * field set must never change (see the file header). New writers use\n * `SeoSchemaV2`.\n *\n * These tags are rendered into the <head> of the HTML document and are not\n * visible on the page itself. They override every other source of tags\n * (site defaults, vertical presets, patterns) for this page.\n */\nexport interface SeoSchema {\n  /**\n   * The tags rendered into <head>, in no particular order. Render order is\n   * decided by the renderer, not by position in this list.\n   *\n   * No maxSize: this list is already populated by data written years ago, and\n   * a bound added now could reject a page that is already stored.\n   */\n  tags?: Tag[];\n  /** Page-level SEO settings that are not themselves tags. */\n  settings?: Settings;\n}\n\n/** A keyword term the user is targeting. */\nexport interface Keyword {\n  /**\n   * The term itself, e.g. \"trail running shoes\".\n   *\n   * No maxLength, for the same reason as the legacy tag fields: keywords are\n   * already stored, and a bound added now could reject a record written\n   * before the bound existed. The flynt `missing-string-validations` warning\n   * on this field is accepted deliberately.\n   */\n  term?: string;\n  /** Whether this is the page's primary focus keyword. At most one per page. */\n  isMain?: boolean;\n  /**\n   * Which surface added the term, e.g. a panel or a suggestion flow. Used for\n   * attribution in BI. Opaque to the renderer.\n   * @maxLength 1000\n   */\n  origin?: string | null;\n}\n\n/**\n * One tag in the page's <head>.\n *\n * Not deprecated, and with no removal date, deliberately: stored data is\n * never migrated, so this shape stays valid input forever. `seo-renderer`\n * normalizes both shapes on READ.\n */\nexport interface Tag {\n  /**\n   * Legacy. Was a free-form string: \"title\" | \"meta\" | \"script\" | \"link\".\n   * The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes\n   * the invalid combinations unrepresentable rather than merely discouraged.\n   *\n   * Which of these an API actually accepts depends on where the tag is being\n   * set: this list is not a blanket guarantee across every API that reuses\n   * this message. Site SEO Tags in particular accepts only `meta` (see\n   * `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation\n   * error even though they appear here — check the field description of the\n   * specific `tags`-typed field you are writing to.\n   *\n   * Limitation: `title` and `script` (e.g. a `script` tag with `props.type`\n   * \"application/ld+json\" carrying structured data) are supported only when\n   * `custom` is unset or `false`. Setting `custom: true` on a `title` or\n   * `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because\n   * `custom: true` routes the write through the site's Advanced/Custom Tags\n   * list. To write structured data, omit `custom` (or set it to `false`).\n   *\n   * No length limit: this field holds data written years ago by writers we\n   * are not migrating. A constraint here could reject a record that is\n   * already stored, which is exactly the promise this design makes.\n   */\n  type?: string;\n  /**\n   * Legacy. Was an untyped bag of HTML attributes.\n   * Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.\n   */\n  props?: Record<string, any> | null;\n  /**\n   * Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2`\n   * its contents are split by purpose: per-page structured-data state moves to\n   * StructuredDataTag, authorship to `written_by`, and render-time preset\n   * logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the\n   * stored document entirely — it belongs to the preset definition, not to the\n   * page. See the design log for the full key-by-key mapping.\n   */\n  meta?: Record<string, any> | null;\n  /**\n   * Legacy. Was the tag's inner content, doubling as the JSON-LD payload\n   * for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and\n   * `StructuredDataTag.json_ld`.\n   * No length limit, for the same reason as `type` above.\n   */\n  children?: string;\n  /**\n   * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —\n   * i.e. an entry from the site's Advanced/Custom Tags list.\n   *\n   * Setting this to `true` on a write restricts which `type` values are\n   * accepted — the same restriction the Advanced/Custom Tags UI enforces.\n   * `title` and `script` tags (including JSON-LD structured data) must be sent\n   * with `custom` omitted or `false`; sending them with `custom: true` is\n   * rejected with `TAG_TYPE_NOT_ALLOWED`.\n   *\n   * Note this is a separate restriction from Site SEO Tags' own type\n   * restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags\n   * rejects `script` (e.g. for site-wide structured data) unconditionally.\n   * There is currently no way to set site-wide, every-page structured data\n   * through any of these APIs — write a per-page `script` tag through the Item\n   * SEO Tags API instead.\n   *\n   * This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag\n   * (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed\n   * default/pattern — standard tags always resolve with `custom: false`, even when their content comes\n   * from a page's manually saved SEO title/description override. Don't use this field to verify whether\n   * a live page reflects a manual per-page SEO edit.\n   *\n   * Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\n   * only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\n   * or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the\n   * response entirely — there, `false` means this API could not tell, not that no custom tag exists.\n   * Pass `seoData` explicitly to resolve against a known set of tags.\n   *\n   * `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.\n   */\n  custom?: boolean;\n  /**\n   * Whether the tag is excluded from the rendered <head>.\n   *\n   * A disabled tag is still stored, so the user can re-enable it and so a\n   * pattern-provided tag stays suppressed on this page. Default false.\n   */\n  disabled?: boolean;\n}\n\n/** Page-level SEO settings that are not tags. */\nexport interface Settings {\n  /**\n   * Whether to suppress the automatic redirect from this page's previous URL to\n   * its current one after a slug change.\n   *\n   * Default false, meaning the redirect IS created. The field is named for the\n   * exception rather than the rule, which reads backwards; kept as-is because\n   * renaming a stored boolean is not worth the migration.\n   */\n  preventAutoRedirect?: boolean;\n  /**\n   * Keyword terms the user is targeting for this page. Used by the SEO\n   * assistant and checklist; never rendered into <head>.\n   *\n   * 20 is a sanity bound, not the product limit. v1 declared 5 — the number\n   * the panel happens to allow today — which is exactly the mistake we are\n   * fixing for structured data. A product decision to allow 8 should not need\n   * a proto release, so the panel owns that number and the proto only stops\n   * something absurd.\n   * @maxSize 20\n   */\n  keywords?: Keyword[];\n}\n\n/** Optional Watermark that can be applied to all project's images */\nexport interface Watermark {\n  /** Position of the watermark on the image. */\n  position?: PositionWithLiterals;\n  /**\n   * Size of the watermark, from 0 to 100.\n   * @max 100\n   */\n  size?: number;\n  /**\n   * Opacity of the watermark.\n   * @min 1\n   * @max 100\n   */\n  opacity?: number;\n  /**\n   * Image ID of the Watermark as saved in Media Platform.\n   * @maxLength 300\n   */\n  imageUrl?: string;\n  /** Whether the watermark is to be displayed on Items & Cover Photos. */\n  enabled?: boolean;\n}\n\nexport enum Position {\n  NORTH_WEST = 'NORTH_WEST',\n  NORTH = 'NORTH',\n  NORTH_EAST = 'NORTH_EAST',\n  WEST = 'WEST',\n  CENTER = 'CENTER',\n  EAST = 'EAST',\n  SOUTH_WEST = 'SOUTH_WEST',\n  SOUTH = 'SOUTH',\n  SOUTH_EAST = 'SOUTH_EAST',\n}\n\n/** @enumType */\nexport type PositionWithLiterals =\n  | Position\n  | 'NORTH_WEST'\n  | 'NORTH'\n  | 'NORTH_EAST'\n  | 'WEST'\n  | 'CENTER'\n  | 'EAST'\n  | 'SOUTH_WEST'\n  | 'SOUTH'\n  | 'SOUTH_EAST';\n\nexport interface QueryProjectInCollectionsRequest {\n  /** Query options. */\n  query?: QueryV2;\n  /**\n   * Whether to include the project's relative path and full URL in the response.\n   * Default: `false`\n   */\n  includePageUrl?: boolean | null;\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 QueryProjectInCollectionsResponse {\n  /** List of projects and their placement within the specified collections. */\n  projectInCollections?: ProjectsInCollections[];\n  /** Paging 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 UpdateProjectOrderInCollectionRequest {\n  /**\n   * ID of the project to update.\n   * @format GUID\n   */\n  projectId: string;\n  /**\n   * Collection ID.\n   * @format GUID\n   */\n  collectionId: string;\n  /** Index that determines the placement of a project within the collection. Projects with a lower `sortOrder` are displayed first. */\n  sortOrder: number | null;\n}\n\nexport interface UpdateProjectOrderInCollectionResponse {\n  /**\n   * @internal\n   * @deprecated\n   */\n  project?: ProjectsInCollections;\n  /** Updated project placement within the specified collection. */\n  projectInCollection?: ProjectsInCollections;\n}\n\nexport interface ProjectOrderInCollectionUpdatedEvent {\n  /**\n   * ID of the project to update.\n   * @format GUID\n   */\n  projectId?: string;\n  /**\n   * Collection ID.\n   * @format GUID\n   */\n  collectionId?: string;\n  /** Index that determines the placement of a project within the collection. Projects with a lower `sortOrder` are displayed first. */\n  sortOrder?: number | null;\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\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 ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope {\n  data: ProjectOrderInCollectionUpdatedEvent;\n  metadata: EventMetadata;\n}\n\n/**\n * Triggered when the placement of a project within a specified collection is updated.\n * @permissionScope Manage Portfolio\n * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO\n * @permissionId PORTFOLIO.PROJECT_READ\n * @webhook\n * @eventType wix.portfolio.projects.v1.project_in_collection_project_order_in_collection_updated_event\n * @serviceIdentifier com.wixpress.portfolio.projects.ProjectInCollectionsService\n * @slug project_order_in_collection_updated_event\n */\nexport declare function onProjectInCollectionProjectOrderInCollectionUpdatedEvent(\n  handler: (\n    event: ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope\n  ) => void | Promise<void>\n): void;\n\n/**\n * Updates the placement of a project within a specified collection.\n * @param sortOrder - Index that determines the placement of a project within the collection. Projects with a lower `sortOrder` are displayed first.\n * @public\n * @requiredField identifiers\n * @requiredField identifiers.collectionId\n * @requiredField identifiers.projectId\n * @requiredField sortOrder\n * @permissionId PORTFOLIO.PROJECT_UPDATE\n * @applicableIdentity APP\n * @fqn com.wixpress.portfolio.projects.ProjectInCollectionsService.UpdateProjectOrderInCollection\n */\nexport async function updateProjectOrderInCollection(\n  identifiers: NonNullablePaths<\n    UpdateProjectOrderInCollectionIdentifiers,\n    `collectionId` | `projectId`,\n    0\n  >,\n  sortOrder: number\n): Promise<\n  NonNullablePaths<\n    UpdateProjectOrderInCollectionResponse,\n    | `projectInCollection.collectionId`\n    | `projectInCollection.project.coverImage.focalPoint.x`\n    | `projectInCollection.project.coverImage.focalPoint.y`\n    | `projectInCollection.project.collectionIds`\n    | `projectInCollection.project.details`\n    | `projectInCollection.project.details.${number}.text`\n    | `projectInCollection.project.details.${number}.label`\n    | `projectInCollection.project.seoData.tags`\n    | `projectInCollection.project.seoData.tags.${number}.type`\n    | `projectInCollection.project.seoData.tags.${number}.children`\n    | `projectInCollection.project.seoData.tags.${number}.custom`\n    | `projectInCollection.project.seoData.tags.${number}.disabled`\n    | `projectInCollection.project.seoData.settings.preventAutoRedirect`\n    | `projectInCollection.project.seoData.settings.keywords`\n    | `projectInCollection.project.seoData.settings.keywords.${number}.term`\n    | `projectInCollection.project.seoData.settings.keywords.${number}.isMain`\n    | `projectInCollection.project.watermark.position`\n    | `projectInCollection.project.watermark.size`\n    | `projectInCollection.project.watermark.opacity`\n    | `projectInCollection.project.watermark.imageUrl`\n    | `projectInCollection.project.watermark.enabled`,\n    6\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    projectId: identifiers?.projectId,\n    collectionId: identifiers?.collectionId,\n    sortOrder: sortOrder,\n  });\n\n  const reqOpts =\n    ambassadorWixPortfolioProjectsV1ProjectInCollection.updateProjectOrderInCollection(\n      payload\n    );\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: transformRESTPageURLV2ToSDKPageURLV2,\n          paths: TRANSFORM_PATHS_0,\n        },\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: TRANSFORM_PATHS_1,\n        },\n        {\n          transformFn: transformRESTVideoV2ToSDKVideoV2,\n          paths: TRANSFORM_PATHS_2,\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          projectId: '$[0].projectId',\n          collectionId: '$[0].collectionId',\n          sortOrder: '$[1]',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['identifiers', 'sortOrder']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface UpdateProjectOrderInCollectionIdentifiers {\n  /**\n   * ID of the project to update.\n   * @format GUID\n   */\n  projectId: string;\n  /**\n   * Collection ID.\n   * @format GUID\n   */\n  collectionId: string;\n}\n","import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [{ path: 'sortOrder' }];\nconst TRANSFORM_PATHS_1 = [\n  { path: 'project.sortOrder' },\n  { path: 'project.project.sortOrder' },\n  { path: 'projectInCollection.sortOrder' },\n  { path: 'projectInCollection.project.sortOrder' },\n  { path: 'project.project.coverImage.focalPoint.x' },\n  { path: 'project.project.coverImage.focalPoint.y' },\n  { path: 'projectInCollection.project.coverImage.focalPoint.x' },\n  { path: 'projectInCollection.project.coverImage.focalPoint.y' },\n  { path: 'project.project.coverImage.unsharpMasking.amount' },\n  { path: 'project.project.coverImage.unsharpMasking.radius' },\n  { path: 'project.project.coverImage.unsharpMasking.threshold' },\n  { path: 'projectInCollection.project.coverImage.unsharpMasking.amount' },\n  { path: 'projectInCollection.project.coverImage.unsharpMasking.radius' },\n  { path: 'projectInCollection.project.coverImage.unsharpMasking.threshold' },\n];\nconst TRANSFORM_PATHS_2 = [\n  { path: 'project.project.createdDate' },\n  { path: 'project.project.updatedDate' },\n  { path: 'project.project.coverImage.imageInfo.urlExpirationDate' },\n  { path: 'project.project.coverVideo.videoInfo.urlExpirationDate' },\n  {\n    path: 'project.project.coverVideo.videoInfo.resolutions.poster.urlExpirationDate',\n  },\n  { path: 'project.project.coverVideo.videoInfo.posters.urlExpirationDate' },\n  { path: 'project.project.source.lastSync' },\n  { path: 'projectInCollection.project.createdDate' },\n  { path: 'projectInCollection.project.updatedDate' },\n  {\n    path: 'projectInCollection.project.coverImage.imageInfo.urlExpirationDate',\n  },\n  {\n    path: 'projectInCollection.project.coverVideo.videoInfo.urlExpirationDate',\n  },\n  {\n    path: 'projectInCollection.project.coverVideo.videoInfo.resolutions.poster.urlExpirationDate',\n  },\n  {\n    path: 'projectInCollection.project.coverVideo.videoInfo.posters.urlExpirationDate',\n  },\n  { path: 'projectInCollection.project.source.lastSync' },\n];\n\nfunction resolveComWixpressPortfolioProjectsProjectInCollectionsServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/projects-service',\n        destPath: '/api',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/projects-service',\n        destPath: '/api',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/projects-service',\n        destPath: '/api',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/projects-service',\n        destPath: '/api',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/projects-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/portfolio/projects/projects/api/v1/bulk/portfolio/projects',\n        destPath: '/api/v1/bulk/portfolio/projects',\n      },\n      {\n        srcPath: '/portfolio/projects/projects/api/1/portfolio/projects',\n        destPath: '/api/1/portfolio/projects',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/projects-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/portfolio/projects/projects/api/v1/bulk/portfolio/projects',\n        destPath: '/api/v1/bulk/portfolio/projects',\n      },\n      {\n        srcPath: '/portfolio/projects/projects/api/1/portfolio/projects',\n        destPath: '/api/1/portfolio/projects',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/projects-service',\n        destPath: '/api',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/portfolio/v1/projects',\n        destPath: '/api/v1/portfolio/projects',\n      },\n      {\n        srcPath: '/portfolio/projects/projects/api/v1/bulk/portfolio/projects',\n        destPath: '/api/v1/bulk/portfolio/projects',\n      },\n      {\n        srcPath: '/portfolio/projects/projects/api/v1/portfolio/projects',\n        destPath: '/api/v1/portfolio/projects',\n      },\n      {\n        srcPath: '/portfolio/projects/projects/api/1/portfolio/projects',\n        destPath: '/api/1/portfolio/projects',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/projects-service',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_portfolio_project-in-collections';\n\n/** Updates the placement of a project within a specified collection. */\nexport function updateProjectOrderInCollection(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __updateProjectOrderInCollection({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: TRANSFORM_PATHS_0,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.portfolio.projects.v1.project_in_collection',\n      method: 'PATCH' as any,\n      methodFqn:\n        'com.wixpress.portfolio.projects.ProjectInCollectionsService.UpdateProjectOrderInCollection',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressPortfolioProjectsProjectInCollectionsServiceUrl({\n        protoPath:\n          '/api/v1/portfolio/projects/{projectId}/collections/{collectionId}/order',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: TRANSFORM_PATHS_1,\n          },\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_2,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateProjectOrderInCollection;\n}\n","import { updateProjectOrderInCollection as publicUpdateProjectOrderInCollection } from './portfolio-projects-v1-project-in-collection-project-in-collections.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n  BuildRESTFunction,\n  MaybeContext,\n  BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onProjectInCollectionProjectOrderInCollectionUpdatedEvent as publicOnProjectInCollectionProjectOrderInCollectionUpdatedEvent } from './portfolio-projects-v1-project-in-collection-project-in-collections.public.js';\n\nexport const updateProjectOrderInCollection: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateProjectOrderInCollection> &\n    typeof publicUpdateProjectOrderInCollection\n> = /*#__PURE__*/ createRESTModule(publicUpdateProjectOrderInCollection);\n/**\n * Triggered when the placement of a project within a specified collection is updated.\n */\nexport const onProjectInCollectionProjectOrderInCollectionUpdatedEvent: BuildEventDefinition<\n  typeof publicOnProjectInCollectionProjectOrderInCollectionUpdatedEvent\n> &\n  typeof publicOnProjectInCollectionProjectOrderInCollectionUpdatedEvent =\n  /*#__PURE__*/ createEventModule(\n    publicOnProjectInCollectionProjectOrderInCollectionUpdatedEvent\n  );\n\nexport {\n  ImageType,\n  SyncStatus,\n  Position,\n  SortOrder,\n  WebhookIdentityType,\n} from './portfolio-projects-v1-project-in-collection-project-in-collections.universal.js';\nexport {\n  ProjectsInCollections,\n  Project,\n  ProjectCoverOneOf,\n  Image,\n  Point,\n  UnsharpMasking,\n  Video,\n  VideoResolution,\n  ProjectDetail,\n  ProjectDetailValueOneOf,\n  DetailsLink,\n  ProjectSource,\n  SeoSchema,\n  Keyword,\n  Tag,\n  Settings,\n  Watermark,\n  QueryProjectInCollectionsRequest,\n  QueryV2,\n  QueryV2PagingMethodOneOf,\n  Sorting,\n  AddressLocation,\n  Paging,\n  CursorPaging,\n  QueryProjectInCollectionsResponse,\n  PagingMetadataV2,\n  Cursors,\n  UpdateProjectOrderInCollectionRequest,\n  UpdateProjectOrderInCollectionResponse,\n  ProjectOrderInCollectionUpdatedEvent,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  AccountInfo,\n  BaseEventMetadata,\n  EventMetadata,\n  AccountInfoMetadata,\n  ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope,\n  UpdateProjectOrderInCollectionIdentifiers,\n} from './portfolio-projects-v1-project-in-collection-project-in-collections.universal.js';\nexport {\n  ImageTypeWithLiterals,\n  SyncStatusWithLiterals,\n  PositionWithLiterals,\n  SortOrderWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n} from './portfolio-projects-v1-project-in-collection-project-in-collections.universal.js';\n"]}