{"version":3,"sources":["../../src/ricos-v1-embeddable-item-ricos-embeddables.universal.ts","../../src/ricos-v1-embeddable-item-ricos-embeddables.http.ts","../../src/ricos-v1-embeddable-item-ricos-embeddables.public.ts","../../src/ricos-v1-embeddable-item-ricos-embeddables.context.ts"],"sourcesContent":["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 } from '@wix/sdk-types';\nimport * as ambassadorWixRicosV1EmbeddableItem from './ricos-v1-embeddable-item-ricos-embeddables.http.js';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** An embeddable item represents business content from Wix applications that can be integrated into rich text content and applications. Each item contains unified data structure with core fields, media, pricing, and type-specific details. */\nexport interface EmbeddableItem extends EmbeddableItemItemTypeDetailsOneOf {\n  /** Booking-specific details. Available only when `itemType` is `BOOKING`. */\n  bookingDetails?: BookingDetails;\n  /** Event-specific details. Available only when `itemType` is `EVENT`. */\n  eventDetails?: EventDetails;\n  /**\n   * Embeddable item ID.\n   * @format GUID\n   */\n  _id?: string | null;\n  /**\n   * Display title of the embeddable item.\n   * @maxLength 300\n   */\n  title?: string;\n  /** Image associated with the embeddable item. */\n  image?: string;\n  /**\n   * Universal page URL for the embeddable item.\n   * @format WEB_URL\n   */\n  pageUrl?: string;\n  /** Pricing information for the embeddable item. Fields are populated based on business logic - single services show `minValue` only, variable pricing shows ranges, and `discountedValue` only appears during active promotions. */\n  pricingData?: PricingData;\n  /** Type of the app content */\n  itemType?: ItemTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface EmbeddableItemItemTypeDetailsOneOf {\n  /** Booking-specific details. Available only when `itemType` is `BOOKING`. */\n  bookingDetails?: BookingDetails;\n  /** Event-specific details. Available only when `itemType` is `EVENT`. */\n  eventDetails?: EventDetails;\n}\n\n/**\n * Embed provided pricing data\n * Pricing information for embeddable items. Fields are populated based on business logic and pricing model.\n */\nexport interface PricingData {\n  /**\n   * Minimum price value. For example, `10.99`.\n   * @decimalValue options { maxScale:2 }\n   */\n  minValue?: string | null;\n  /**\n   * Maximum price value. For example, `19.99`.\n   * @decimalValue options { maxScale:2 }\n   */\n  maxValue?: string | null;\n  /**\n   * Price value after discount application. For example, `15.99`. Available only during active promotions.\n   * @decimalValue options { maxScale:2 }\n   */\n  discountedValue?: string | null;\n  /**\n   * Three-letter currency code in @ISO-4217 alphabetic format.\n   * @format CURRENCY\n   */\n  currency?: string | null;\n  /**\n   * Pricing plan ID.\n   * @format GUID\n   */\n  pricingPlanId?: string | null;\n}\n\n/**\n * Type of the embeddable item.\n * Type of embeddable item from Wix business applications.\n */\nexport enum ItemType {\n  /** Booking service from Wix Bookings. */\n  BOOKING = 'BOOKING',\n  /** Event from Wix Events. */\n  EVENT = 'EVENT',\n  /** Product from Wix Stores. Only includes published and available products. */\n  PRODUCT = 'PRODUCT',\n}\n\n/** @enumType */\nexport type ItemTypeWithLiterals = ItemType | 'BOOKING' | 'EVENT' | 'PRODUCT';\n\n/**\n * Booking-specific details\n * Booking-specific details for embeddable items from Wix Bookings.\n */\nexport interface BookingDetails {\n  /**\n   * Available session durations in minutes.\n   * @min 1\n   * @max 44639\n   * @maxSize 50\n   */\n  durations?: number[];\n}\n\n/**\n * Event-specific details\n * Event-specific details for embeddable items from Wix Events.\n */\nexport interface EventDetails {\n  /**\n   * Human-readable date and time representation of the event.\n   * @maxLength 500\n   */\n  formattedDateAndTime?: string | null;\n  /** Date and time when the event starts. */\n  startDate?: Date | null;\n  /** Date and time when the event ends. */\n  endDate?: Date | null;\n  /**\n   * Event time zone ID in @IANA TZ database format.\n   * @maxLength 100\n   */\n  timeZoneId?: string | null;\n  /**\n   * Event location name.\n   * @maxLength 50\n   */\n  location?: string | null;\n}\n\n/**\n * Request message for getting app embedded content\n * Request to retrieve a specific embeddable item.\n */\nexport interface GetEmbeddableItemRequest {\n  /** Type of embeddable item to retrieve. */\n  itemType: ItemTypeWithLiterals;\n  /**\n   * ID of the embeddable item to retrieve.\n   * @format GUID\n   */\n  embeddableItemId: string;\n}\n\n/**\n * Response message containing app embedded content\n * Response containing the requested embeddable item.\n */\nexport interface GetEmbeddableItemResponse {\n  /** Retrieved embeddable item. */\n  embeddableItem?: EmbeddableItem;\n}\n\n/**\n * Request message for querying app embedded content\n * Request to list embeddable items with optional filtering.\n */\nexport interface ListEmbeddableItemsRequest {\n  /** Type of embeddable items to list. */\n  itemType: ItemTypeWithLiterals;\n  /**\n   * Search query to filter items by title.\n   * @maxLength 300\n   */\n  query?: string | null;\n  /** Cursor-based pagination parameters. */\n  paging?: CursorPaging;\n}\n\n/** Cursor-based pagination parameters for listing requests. */\nexport interface CursorPaging {\n  /**\n   * Number of items to load per page.\n   *\n   * Default: `50`\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Cursor token for pagination. Use the cursor from the previous response to get the next page of results.\n   * @maxLength 16000\n   */\n  cursor?: string | null;\n}\n\n/**\n * Response message containing app embedded content items\n * Response containing a list of embeddable items.\n */\nexport interface ListEmbeddableItemsResponse {\n  /** List of embeddable items matching the request criteria. */\n  items?: EmbeddableItem[];\n  /** Pagination metadata for navigating through results. */\n  pagingMetadata?: PagingMetadataV2;\n}\n\n/** Pagination metadata returned with list responses. */\nexport interface PagingMetadataV2 {\n  /** Number of items returned in the current response. */\n  count?: number | null;\n  /** Navigation cursors for moving between result pages. */\n  cursors?: Cursors;\n}\n\n/** Navigation cursors for pagination. */\nexport interface Cursors {\n  /**\n   * Cursor for retrieving the next page of results.\n   * @maxLength 16000\n   */\n  next?: string | null;\n  /**\n   * Cursor for retrieving the previous page of results.\n   * @maxLength 16000\n   */\n  prev?: string | null;\n}\n\n/**\n * Retrieves a specific embeddable item by ID and type.\n * @param embeddableItemId - ID of the embeddable item to retrieve.\n * @param itemType - Type of embeddable item to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField embeddableItemId\n * @requiredField itemType\n * @permissionId RICOS.RICOS_EMBEDDABLES_READ\n * @applicableIdentity APP\n * @returns Retrieved embeddable item.\n * @fqn wix.ricos.v1.RicosEmbeddables.GetEmbeddableItem\n */\nexport async function getEmbeddableItem(\n  embeddableItemId: string,\n  itemType: ItemTypeWithLiterals\n): Promise<EmbeddableItem> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    embeddableItemId: embeddableItemId,\n    itemType: itemType,\n  });\n\n  const reqOpts = ambassadorWixRicosV1EmbeddableItem.getEmbeddableItem(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: [{ path: 'embeddableItem.image' }],\n        },\n      ])\n    )?.embeddableItem!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          embeddableItemId: '$[0]',\n          itemType: '$[1]',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['embeddableItemId', 'itemType']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Lists embeddable items by type with optional search and pagination.\n * @param itemType - Type of embeddable items to list.\n * @public\n * @documentationMaturity preview\n * @requiredField itemType\n * @permissionId RICOS.RICOS_EMBEDDABLES_READ\n * @applicableIdentity APP\n * @returns Response message containing app embedded content items\n * Response containing a list of embeddable items.\n * @fqn wix.ricos.v1.RicosEmbeddables.ListEmbeddableItems\n */\nexport async function listEmbeddableItems(\n  itemType: ItemTypeWithLiterals,\n  options?: ListEmbeddableItemsOptions\n): Promise<ListEmbeddableItemsResponse> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    itemType: itemType,\n    query: options?.query,\n    paging: options?.paging,\n  });\n\n  const reqOpts =\n    ambassadorWixRicosV1EmbeddableItem.listEmbeddableItems(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: [{ path: 'items.image' }],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          itemType: '$[0]',\n          query: '$[1].query',\n          paging: '$[1].paging',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['itemType', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface ListEmbeddableItemsOptions {\n  /**\n   * Search query to filter items by title.\n   * @maxLength 300\n   */\n  query?: string | null;\n  /** Cursor-based pagination parameters. */\n  paging?: CursorPaging;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\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 resolveWixRicosV1RicosEmbeddablesUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www.wixapis.com': [\n      {\n        srcPath: '/ricos/v1/embeddable-items',\n        destPath: '/v1/embeddable-items',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/ricos-embeddables',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/ricos-embeddables',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/ricos-embeddables',\n        destPath: '',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/ricos-embeddables',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/ricos/v1/embeddable-items',\n        destPath: '/v1/embeddable-items',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/ricos/v1/embeddable-items',\n        destPath: '/v1/embeddable-items',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_rich-content_ricos-embeddables';\n\n/** Retrieves a specific embeddable item by ID and type. */\nexport function getEmbeddableItem(payload: object): RequestOptionsFactory<any> {\n  function __getEmbeddableItem({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ricos.v1.embeddable_item',\n      method: 'GET' as any,\n      methodFqn: 'wix.ricos.v1.RicosEmbeddables.GetEmbeddableItem',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRicosV1RicosEmbeddablesUrl({\n        protoPath: '/v1/embeddable-items/{embeddableItemId}',\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: 'embeddableItem.eventDetails.startDate' },\n              { path: 'embeddableItem.eventDetails.endDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getEmbeddableItem;\n}\n\n/** Lists embeddable items by type with optional search and pagination. */\nexport function listEmbeddableItems(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __listEmbeddableItems({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ricos.v1.embeddable_item',\n      method: 'POST' as any,\n      methodFqn: 'wix.ricos.v1.RicosEmbeddables.ListEmbeddableItems',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRicosV1RicosEmbeddablesUrl({\n        protoPath: '/v1/embeddable-items/list',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'items.eventDetails.startDate' },\n              { path: 'items.eventDetails.endDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __listEmbeddableItems;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n  EmbeddableItem,\n  ItemTypeWithLiterals,\n  ListEmbeddableItemsOptions,\n  ListEmbeddableItemsResponse,\n  getEmbeddableItem as universalGetEmbeddableItem,\n  listEmbeddableItems as universalListEmbeddableItems,\n} from './ricos-v1-embeddable-item-ricos-embeddables.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/rich-content' };\n\nexport function getEmbeddableItem(\n  httpClient: HttpClient\n): GetEmbeddableItemSignature {\n  return (embeddableItemId: string, itemType: ItemTypeWithLiterals) =>\n    universalGetEmbeddableItem(\n      embeddableItemId,\n      itemType,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetEmbeddableItemSignature {\n  /**\n   * Retrieves a specific embeddable item by ID and type.\n   * @param - ID of the embeddable item to retrieve.\n   * @param - Type of embeddable item to retrieve.\n   * @returns Retrieved embeddable item.\n   */\n  (\n    embeddableItemId: string,\n    itemType: ItemTypeWithLiterals\n  ): Promise<EmbeddableItem>;\n}\n\nexport function listEmbeddableItems(\n  httpClient: HttpClient\n): ListEmbeddableItemsSignature {\n  return (\n    itemType: ItemTypeWithLiterals,\n    options?: ListEmbeddableItemsOptions\n  ) =>\n    universalListEmbeddableItems(\n      itemType,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface ListEmbeddableItemsSignature {\n  /**\n   * Lists embeddable items by type with optional search and pagination.\n   * @param - Type of embeddable items to list.\n   * @returns Response message containing app embedded content items\n   * Response containing a list of embeddable items.\n   */\n  (\n    itemType: ItemTypeWithLiterals,\n    options?: ListEmbeddableItemsOptions\n  ): Promise<ListEmbeddableItemsResponse>;\n}\n\nexport {\n  BookingDetails,\n  CursorPaging,\n  Cursors,\n  EmbeddableItem,\n  EmbeddableItemItemTypeDetailsOneOf,\n  EventDetails,\n  GetEmbeddableItemRequest,\n  GetEmbeddableItemResponse,\n  ItemType,\n  ListEmbeddableItemsOptions,\n  ListEmbeddableItemsRequest,\n  ListEmbeddableItemsResponse,\n  PagingMetadataV2,\n  PricingData,\n} from './ricos-v1-embeddable-item-ricos-embeddables.universal.js';\n","import {\n  getEmbeddableItem as publicGetEmbeddableItem,\n  listEmbeddableItems as publicListEmbeddableItems,\n} from './ricos-v1-embeddable-item-ricos-embeddables.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getEmbeddableItem: MaybeContext<\n  BuildRESTFunction<typeof publicGetEmbeddableItem> &\n    typeof publicGetEmbeddableItem\n> = /*#__PURE__*/ createRESTModule(publicGetEmbeddableItem);\nexport const listEmbeddableItems: MaybeContext<\n  BuildRESTFunction<typeof publicListEmbeddableItems> &\n    typeof publicListEmbeddableItems\n> = /*#__PURE__*/ createRESTModule(publicListEmbeddableItems);\n\nexport { ItemType } from './ricos-v1-embeddable-item-ricos-embeddables.universal.js';\nexport {\n  EmbeddableItem,\n  EmbeddableItemItemTypeDetailsOneOf,\n  PricingData,\n  BookingDetails,\n  EventDetails,\n  GetEmbeddableItemRequest,\n  GetEmbeddableItemResponse,\n  ListEmbeddableItemsRequest,\n  CursorPaging,\n  ListEmbeddableItemsResponse,\n  PagingMetadataV2,\n  Cursors,\n  ListEmbeddableItemsOptions,\n} from './ricos-v1-embeddable-item-ricos-embeddables.universal.js';\nexport { ItemTypeWithLiterals } from './ricos-v1-embeddable-item-ricos-embeddables.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;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,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,kBAAkB,SAA6C;AAC7E,WAAS,oBAAoB,EAAE,KAAK,GAAQ;AAC1C,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK,qCAAqC;AAAA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,UACP,QAAQ;AAAA,QACV;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,YAAY,SAAS;AAAA,IACxB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE/UO,SAASI,mBACd,YAC4B;AAC5B,SAAO,CAAC,kBAA0B,aAChCA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAeO,SAASC,qBACd,YAC8B;AAC9B,SAAO,CACL,UACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC9CA,SAAS,wBAAwB;AAG1B,IAAMC,qBAGK,iCAAiBA,kBAAuB;AACnD,IAAMC,uBAGK,iCAAiBA,oBAAyB;","names":["payload","transformPaths","ItemType","getEmbeddableItem","listEmbeddableItems","getEmbeddableItem","listEmbeddableItems","getEmbeddableItem","listEmbeddableItems"]}