@wix/auto_sdk_viewer_site-structure-service 1.0.17 → 1.0.19

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 (50) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +13 -3
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +12 -1
  5. package/build/cjs/index.typings.js +13 -3
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +12 -1
  8. package/build/cjs/meta.js +13 -3
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +12 -2
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +12 -1
  14. package/build/es/index.typings.mjs +12 -2
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +12 -1
  17. package/build/es/meta.mjs +12 -2
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.typings.d.ts +102 -1
  21. package/build/internal/cjs/meta.d.ts +191 -1
  22. package/build/internal/es/index.d.mts +1 -1
  23. package/build/internal/es/index.typings.d.mts +102 -1
  24. package/build/internal/es/meta.d.mts +191 -1
  25. package/package.json +5 -12
  26. package/build/cjs/schemas.d.ts +0 -102
  27. package/build/cjs/schemas.js +0 -216
  28. package/build/cjs/schemas.js.map +0 -1
  29. package/build/es/schemas.d.mts +0 -102
  30. package/build/es/schemas.mjs +0 -176
  31. package/build/es/schemas.mjs.map +0 -1
  32. package/build/internal/cjs/index.js +0 -284
  33. package/build/internal/cjs/index.js.map +0 -1
  34. package/build/internal/cjs/index.typings.js +0 -263
  35. package/build/internal/cjs/index.typings.js.map +0 -1
  36. package/build/internal/cjs/meta.js +0 -206
  37. package/build/internal/cjs/meta.js.map +0 -1
  38. package/build/internal/cjs/schemas.d.ts +0 -102
  39. package/build/internal/cjs/schemas.js +0 -216
  40. package/build/internal/cjs/schemas.js.map +0 -1
  41. package/build/internal/es/index.mjs +0 -257
  42. package/build/internal/es/index.mjs.map +0 -1
  43. package/build/internal/es/index.typings.mjs +0 -236
  44. package/build/internal/es/index.typings.mjs.map +0 -1
  45. package/build/internal/es/meta.mjs +0 -176
  46. package/build/internal/es/meta.mjs.map +0 -1
  47. package/build/internal/es/schemas.d.mts +0 -102
  48. package/build/internal/es/schemas.mjs +0 -176
  49. package/build/internal/es/schemas.mjs.map +0 -1
  50. package/schemas/package.json +0 -3
@@ -264,6 +264,11 @@ interface Sorting {
264
264
  fieldName?: string;
265
265
  /** Sort order. */
266
266
  order?: SortOrderWithLiterals;
267
+ /**
268
+ * Origin point for geo-distance sorting on a GEO field
269
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
270
+ */
271
+ origin?: AddressLocation;
267
272
  }
268
273
  declare enum SortOrder {
269
274
  ASC = "ASC",
@@ -271,6 +276,12 @@ declare enum SortOrder {
271
276
  }
272
277
  /** @enumType */
273
278
  type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
279
+ interface AddressLocation {
280
+ /** Address latitude. */
281
+ latitude?: number | null;
282
+ /** Address longitude. */
283
+ longitude?: number | null;
284
+ }
274
285
  interface LanguageMetadata {
275
286
  /**
276
287
  * 2 chars language code (e.g. 'en')
@@ -438,4 +449,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
438
449
  declare function getSiteStructure(): __PublicMethodMetaInfo<'POST', {}, SiteStructureRequest$1, SiteStructureRequest, SiteStructureResponse$1, SiteStructureResponse>;
439
450
  declare function getSiteStructureMetadata(): __PublicMethodMetaInfo<'POST', {}, GetSiteStructureMetadataRequest$1, GetSiteStructureMetadataRequest, GetSiteStructureMetadataResponse$1, GetSiteStructureMetadataResponse>;
440
451
 
441
- export { type ChunkMetadata as ChunkMetadataOriginal, type CursorPagingMetaData as CursorPagingMetaDataOriginal, type CursorPaging as CursorPagingOriginal, type Document as DocumentOriginal, type FocalPoint as FocalPointOriginal, type GetSiteStructureChunkRequest as GetSiteStructureChunkRequestOriginal, type GetSiteStructureChunkResponse as GetSiteStructureChunkResponseOriginal, type GetSiteStructureChunksRequest as GetSiteStructureChunksRequestOriginal, type GetSiteStructureChunksResponse as GetSiteStructureChunksResponseOriginal, type GetSiteStructureMetadataRequest as GetSiteStructureMetadataRequestOriginal, type GetSiteStructureMetadataResponse as GetSiteStructureMetadataResponseOriginal, type Image as ImageOriginal, type LanguageMetadata as LanguageMetadataOriginal, type MediaItemMediaOneOf as MediaItemMediaOneOfOriginal, type MediaItem as MediaItemOriginal, PageSegment as PageSegmentOriginal, type PageSegmentWithLiterals as PageSegmentWithLiteralsOriginal, type SitePageType as SitePageTypeOriginal, type SiteStructureFetchErrorItemTypeOneOf as SiteStructureFetchErrorItemTypeOneOfOriginal, type SiteStructureFetchError as SiteStructureFetchErrorOriginal, type SiteStructureItem as SiteStructureItemOriginal, type SiteStructureRequestFilter as SiteStructureRequestFilterOriginal, type SiteStructureRequest as SiteStructureRequestOriginal, type SiteStructureResponse as SiteStructureResponseOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Video as VideoOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, type __PublicMethodMetaInfo, getSiteStructure, getSiteStructureMetadata };
452
+ export { type AddressLocation as AddressLocationOriginal, type ChunkMetadata as ChunkMetadataOriginal, type CursorPagingMetaData as CursorPagingMetaDataOriginal, type CursorPaging as CursorPagingOriginal, type Document as DocumentOriginal, type FocalPoint as FocalPointOriginal, type GetSiteStructureChunkRequest as GetSiteStructureChunkRequestOriginal, type GetSiteStructureChunkResponse as GetSiteStructureChunkResponseOriginal, type GetSiteStructureChunksRequest as GetSiteStructureChunksRequestOriginal, type GetSiteStructureChunksResponse as GetSiteStructureChunksResponseOriginal, type GetSiteStructureMetadataRequest as GetSiteStructureMetadataRequestOriginal, type GetSiteStructureMetadataResponse as GetSiteStructureMetadataResponseOriginal, type Image as ImageOriginal, type LanguageMetadata as LanguageMetadataOriginal, type MediaItemMediaOneOf as MediaItemMediaOneOfOriginal, type MediaItem as MediaItemOriginal, PageSegment as PageSegmentOriginal, type PageSegmentWithLiterals as PageSegmentWithLiteralsOriginal, type SitePageType as SitePageTypeOriginal, type SiteStructureFetchErrorItemTypeOneOf as SiteStructureFetchErrorItemTypeOneOfOriginal, type SiteStructureFetchError as SiteStructureFetchErrorOriginal, type SiteStructureItem as SiteStructureItemOriginal, type SiteStructureRequestFilter as SiteStructureRequestFilterOriginal, type SiteStructureRequest as SiteStructureRequestOriginal, type SiteStructureResponse as SiteStructureResponseOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Video as VideoOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, type __PublicMethodMetaInfo, getSiteStructure, getSiteStructureMetadata };
package/build/es/meta.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  // src/viewer-structure-v1-site-structure-item-site-structure-service.http.ts
2
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
2
3
  import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
3
4
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
4
5
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
@@ -41,6 +42,15 @@ function resolveComWixpressStructureApiSiteStructureServiceUrl(opts) {
41
42
  var PACKAGE_NAME = "@wix/auto_sdk_viewer_site-structure-service";
42
43
  function getSiteStructure(payload) {
43
44
  function __getSiteStructure({ host }) {
45
+ const serializedData = transformPaths(payload, [
46
+ {
47
+ transformFn: transformSDKFloatToRESTFloat,
48
+ paths: [
49
+ { path: "sorting.origin.latitude" },
50
+ { path: "sorting.origin.longitude" }
51
+ ]
52
+ }
53
+ ]);
44
54
  const metadata = {
45
55
  entityFqdn: "wix.viewer.structure.v1.site_structure_item",
46
56
  method: "POST",
@@ -51,10 +61,10 @@ function getSiteStructure(payload) {
51
61
  },
52
62
  url: resolveComWixpressStructureApiSiteStructureServiceUrl({
53
63
  protoPath: "/v1/site-structure",
54
- data: payload,
64
+ data: serializedData,
55
65
  host
56
66
  }),
57
- data: payload,
67
+ data: serializedData,
58
68
  transformResponse: (payload2) => transformPaths(payload2, [
59
69
  {
60
70
  transformFn: transformRESTTimestampToSDKTimestamp,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/viewer-structure-v1-site-structure-item-site-structure-service.http.ts","../../src/viewer-structure-v1-site-structure-item-site-structure-service.types.ts","../../src/viewer-structure-v1-site-structure-item-site-structure-service.meta.ts"],"sourcesContent":["import { 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\nfunction resolveComWixpressStructureApiSiteStructureServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'editor._base_domain_': [\n {\n srcPath: '/_api/site-structure-server',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/site-structure-server',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/site-structure-server',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/site-structure-server',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/site-structure-server',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_viewer_site-structure-service';\n\n/** Get Site's structure */\nexport function getSiteStructure(payload: object): RequestOptionsFactory<any> {\n function __getSiteStructure({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.viewer.structure.v1.site_structure_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.structure.api.SiteStructureService.GetSiteStructure',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressStructureApiSiteStructureServiceUrl({\n protoPath: '/v1/site-structure',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.updatedDate' },\n { path: 'results.media.image.urlExpirationDate' },\n { path: 'results.media.video.thumbnail.urlExpirationDate' },\n { path: 'results.media.document.urlExpirationDate' },\n { path: 'results.media.document.thumbnail.urlExpirationDate' },\n { path: 'results.image.urlExpirationDate' },\n { path: 'results.video.urlExpirationDate' },\n { path: 'results.video.resolutions.urlExpirationDate' },\n { path: 'results.video.resolutions.poster.urlExpirationDate' },\n { path: 'results.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.media.image.focalPoint.x' },\n { path: 'results.media.image.focalPoint.y' },\n { path: 'results.media.video.thumbnail.focalPoint.x' },\n { path: 'results.media.video.thumbnail.focalPoint.y' },\n { path: 'results.media.document.thumbnail.focalPoint.x' },\n { path: 'results.media.document.thumbnail.focalPoint.y' },\n { path: 'results.image.focalPoint.x' },\n { path: 'results.image.focalPoint.y' },\n { path: 'results.video.resolutions.poster.focalPoint.x' },\n { path: 'results.video.resolutions.poster.focalPoint.y' },\n { path: 'results.video.posters.focalPoint.x' },\n { path: 'results.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSiteStructure;\n}\n\n/** Get Site's structure meta-data */\nexport function getSiteStructureMetadata(\n payload: object\n): RequestOptionsFactory<any> {\n function __getSiteStructureMetadata({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.viewer.structure.v1.site_structure_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.structure.api.SiteStructureService.GetSiteStructureMetadata',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressStructureApiSiteStructureServiceUrl({\n protoPath: '/v1/site-structure-metadata',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getSiteStructureMetadata;\n}\n","export interface SiteStructureItem {\n /**\n * The end goal: this field should contain a unique identifier for this site-structure item.\\\n * Currently it contains:\n * - For site-structure integrated TPAs - the unique identifier provided by the TPA.\n * - For all other item types - empty string.\n */\n itemId?: string;\n /**\n * An identifier for the type of the item. One of:\n * - For the site's static pages - \"static_page\".\n * - For legacy integration TPAs - the TPA's app-def-id.\n * - For TPAs with new site-structure integration - the item type identifier provided by the TPA. Commonly one of that TPA's supported sub-pages.\n * - For items that are the result of a dynamic router - \"dynamic-page\".\n */\n itemTypeIdentifier?: string;\n /**\n * An identifier for the source of the item. One of:\n * - For the site's static pages - \"editor\".\n * - For legacy integration TPAs - the TPA's app-def-id.\n * - For TPAs with new site-structure integration - the TPA's app-def-id.\n * - For items that are the result of a dataBinding router - Wix-Data's app-def-id: 'e593b0bd-b783-45b8-97c2-873d42aacaf4'.\n * - For items that are the result of a dynamic router - Wix-Code's app-def-id: '675bbcef-18d8-41f5-800e-131ec9e08762'.\n */\n sourceId?: string;\n /**\n * An identifier for the configuration of the item. Used currently as some sort of a placeholder for further filtering.\n * - For items of type \"dynamic-page\" - The 'prefix' field that is part of the router-config object of the router that is related to this item (see WixCodeDynamicRouterResolver).\n * - For all other items types - empty string.\n */\n configId?: string;\n /**\n * A human readable name string associated with the item.\\\n * Currently exists only for new TPA site-structure integration items, and contains the 'name' field provided by the TPA for that item.\\\n * This field is not guaranteed to be unique across the item list.\n */\n name?: string | null;\n /**\n * Deprecated. Previously used for media content that is associated with an item.\\\n * See 'image' and 'video' fields of this message.\n * @deprecated\n */\n media?: MediaItem[];\n /** A relative url path that can be used, with the site's base-url, to reach the page represented by this item. */\n path?: string | null;\n /**\n * A timestamp representing the moment that this item was last changed.\n * - For static pages - the site's last publish time.\n * - For all kinds of TPAs - the last-modified field in the respective response item from the TPA.\n * - For items that are the result of a dynamic router - the content of the 'lastModified' optional field in the response item from Wix-Code's RPC endpoint, or, if missing, the site's last publish time. (see WixCodeDynamicRouterResolver).\n */\n updatedDate?: Date | null;\n /**\n * A value indicating whether the item is inactive or not. E.g. hidden product/finished event etc.\\\n * Currently exists only for new TPA site-structure integration items, and contains the 'inactive' field provided by the TPA for that item.\n */\n inactive?: boolean | null;\n /**\n * A general free schema field to include further metadata related to this item.\\\n * Currently exists only for:\\\n * Static pages - a JSON that is the merge of:\n * 1. The advancedSeoData JSON string that exists for the page in the master-page.\n * 2. A JSON of the form:\n * ```javascript\n * {\n * \"seo_legacy\": {\n * \"hidden_from_seo\": true / false\n * },\n * \"password_protected\": true / false\n * }\n * ```\n * New TPA site-structure integration items - the 'metadata' field provided by the TPA for that item.\n */\n metadata?: Record<string, any> | null;\n /**\n * An image media metadata the is related to this item.\\\n * Currently exists only for new TPA site-structure integration items, and contains the 'image' field provided by the TPA for that item.\n */\n image?: Image[];\n /**\n * A video media metadata the is related to this item.\\\n * Currently exists only for new TPA site-structure integration items, and contains the 'video' field provided by the TPA for that item.\n */\n video?: VideoV2[];\n /** A value indicating whether the item is protected or not, by password or login. */\n protected?: boolean | null;\n /**\n * ID of the translations of the item. As same item can have multiple instances, one for each language, we can match them by this ID.\\\n * For example:\n * Blog has one post, translated to 2 languages (EN, FR):\n * - EN item path is `/amazing-post`\n * - FR item path is `/poste-incroyable\n * Both of them might have different `item_id`, but will share the same `translation_id`, to be easily match together\n * Currently only relevant for Blog\n */\n translationId?: string;\n /** A value indicating whether the item is a custom error page or not. */\n isCustomErrorPage?: boolean | null;\n}\n\n/** Deprecated - Copy this message into your service, do not reference it */\nexport interface MediaItem extends MediaItemMediaOneOf {\n /** WixMedia image */\n image?: Image;\n /** WixMedia video */\n video?: Video;\n /** WixMedia document */\n document?: Document;\n}\n\n/** @oneof */\nexport interface MediaItemMediaOneOf {\n /** WixMedia image */\n image?: Image;\n /** WixMedia video */\n video?: Video;\n /** WixMedia document */\n document?: Document;\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\n/** Deprecated - use VideoV2 */\nexport interface Video {\n /** WixMedia ID */\n id?: string;\n /** URL of video */\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 /** Video poster */\n thumbnail?: Image;\n}\n\nexport interface Document {\n /** WixMedia ID. */\n id?: string;\n /** Document URL. */\n url?: string;\n /** Document filename. */\n filename?: string | null;\n}\n\nexport interface VideoV2 {\n /** WixMedia ID. */\n id?: string;\n /**\n * Available resolutions for the video, starting with the optimal resolution.\n * @readonly\n * @maxSize 100\n */\n resolutions?: VideoResolution[];\n /**\n * Video filename.\n * @readonly\n */\n filename?: string | null;\n}\n\nexport interface VideoResolution {\n /** Video URL. */\n url?: string;\n /** Video height. */\n height?: number;\n /** Video width. */\n width?: number;\n /** Video format for example, mp4, hls. */\n format?: string;\n}\n\nexport interface SiteStructureRequest {\n /** An enum indicating whether the request is for the latest published version (0) or the latest saved version (1) of the site */\n pageVersion?: PageSegmentWithLiterals;\n /**\n * Pagination request metadata, currently applicable for:\\\n * - Queries filtered for items from a TPA that is part of the new-integration (TpaSiteStructureService)\n * - Queries filtered for dynamic router items from the new dynamic-pages-router integration (DynamicSiteStructureService)\n */\n paging?: CursorPaging;\n /** Filtering metadata. Only items allowed by the filter will be returned. */\n filter?: SiteStructureRequestFilter;\n /** General sorting metadata. Currently not supported. */\n sorting?: Sorting;\n /** General field mask metadata. Currently not supported. */\n fieldSet?: string[];\n /** Language metadata. Contains 2 chars language code and/or 4 chars language tag. */\n languageMetadata?: LanguageMetadata;\n /**\n * Used to identify the branch of the site for which the structure is requested.\n * @format GUID\n */\n branchId?: string | null;\n}\n\nexport enum PageSegment {\n PUBLISHED = 'PUBLISHED',\n SAVED = 'SAVED',\n}\n\n/** @enumType */\nexport type PageSegmentWithLiterals = PageSegment | 'PUBLISHED' | 'SAVED';\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\n/** A filter metadata type. The filter forces an 'and' logic between all of its comprising parts. */\nexport interface SiteStructureRequestFilter {\n /** In accordance to SiteStructureItem.item_type_identifier */\n itemTypeIdentifier?: string;\n /** In accordance to SiteStructureItem.source_id */\n sourceId?: string;\n /** In accordance to SiteStructureItem.config_id */\n configId?: string;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface LanguageMetadata {\n /**\n * 2 chars language code (e.g. 'en')\n * @format LANGUAGE\n */\n code?: string;\n /**\n * 4 chars language tag (e.g. 'en-us')\n * @format LANGUAGE_TAG\n */\n tag?: string | null;\n}\n\nexport interface SiteStructureResponse {\n /** The total number of items to be returned, combining all paginated responses. */\n totalResults?: number;\n /** A cursor based paging response metadata, including the item count in the current page and a cursor string to be used for querying of the next page. */\n pageData?: CursorPagingMetaData;\n /** A list of all the result items. */\n results?: SiteStructureItem[];\n /** A list of errors that occurred during the fetch process (if any). */\n errors?: SiteStructureFetchError[];\n}\n\nexport interface CursorPagingMetaData {\n /** The item count in the current page */\n count?: number | null;\n /** The cursor which will be used to query the next page */\n cursor?: string | null;\n}\n\nexport interface SiteStructureFetchError\n extends SiteStructureFetchErrorItemTypeOneOf {\n /**\n * item type id of the failed fetch\n * @readonly\n * @minLength 1\n * @maxLength 200\n */\n itemTypeId?: string;\n /**\n * for dynamic pages: router prefix of the failed fetch\n * @readonly\n * @minLength 1\n * @maxLength 200\n */\n routerPrefix?: string;\n /**\n * Error message\n * @minLength 1\n * @maxLength 1000\n */\n errorMessage?: string;\n /**\n * if the fetch happened while fetching links from a TPA, this will hold the TPA appDefId\n * @readonly\n * @format GUID\n */\n appId?: string | null;\n}\n\n/** @oneof */\nexport interface SiteStructureFetchErrorItemTypeOneOf {\n /**\n * item type id of the failed fetch\n * @readonly\n * @minLength 1\n * @maxLength 200\n */\n itemTypeId?: string;\n /**\n * for dynamic pages: router prefix of the failed fetch\n * @readonly\n * @minLength 1\n * @maxLength 200\n */\n routerPrefix?: string;\n}\n\nexport interface GetSiteStructureMetadataRequest {\n /** Page's version */\n pageVersion?: PageSegmentWithLiterals;\n}\n\nexport interface GetSiteStructureMetadataResponse {\n /** A list of pages types */\n pageTypes?: SitePageType[];\n}\n\nexport interface SitePageType {\n /** Type identifier */\n itemTypeIdentifier?: string;\n /** Site's page-type sourceId */\n sourceId?: string;\n /** Site's page-type configId */\n configId?: string;\n}\n\nexport interface GetSiteStructureChunksRequest {\n /** @maxLength 8192 */\n siteUrl?: string | null;\n languageMetadata?: LanguageMetadata;\n /** The size of the chunk to split all the entries into. */\n chunkSize?: number;\n pageVersion?: PageSegmentWithLiterals;\n /** @maxLength 255 */\n itemTypeIdentifier?: string | null;\n /** @maxLength 36 */\n sourceId?: string;\n /** @maxLength 2048 */\n configId?: string;\n /** @maxLength 255 */\n pageIdentifier?: string | null;\n}\n\nexport interface GetSiteStructureChunksResponse {\n chunks?: ChunkMetadata[];\n}\n\nexport interface ChunkMetadata {\n /**\n * Chunk ID used in subsequent GetSiteMapChunk request.\n * Opaque provider-generated token; 1024 accommodates the largest known format (e.g. an Elasticsearch cursor).\n * @maxLength 1024\n */\n id?: string;\n /** The most recent date when any of the items in a chunk was updated */\n updatedDate?: Date | null;\n /**\n * Page identifier of the items in a chunk.\n * @maxLength 255\n */\n pageIdentifier?: string | null;\n}\n\nexport interface GetSiteStructureChunkRequest {\n /** @maxLength 8192 */\n siteUrl?: string | null;\n /**\n * Chunk ID previously returned in ChunkMetadata\n * @maxLength 1024\n */\n chunkId?: string;\n languageMetadata?: LanguageMetadata;\n /** Chunk size. It will match the chunk size used in GetSiteMapChunksRequest. */\n chunkSize?: number | null;\n pageVersion?: PageSegmentWithLiterals;\n /**\n * Used to identify the branch of the site for which the structure is requested.\n * @format GUID\n */\n branchId?: string | null;\n /** @maxLength 255 */\n itemTypeIdentifier?: string | null;\n /** @maxLength 36 */\n sourceId?: string;\n /** @maxLength 2048 */\n configId?: string;\n /** @maxLength 255 */\n pageIdentifier?: string | null;\n}\n\nexport interface GetSiteStructureChunkResponse {\n /** @maxSize 10000 */\n chunk?: SiteStructureItem[];\n}\n","import * as ambassadorWixViewerStructureV1SiteStructureItem from './viewer-structure-v1-site-structure-item-site-structure-service.http.js';\nimport * as ambassadorWixViewerStructureV1SiteStructureItemTypes from './viewer-structure-v1-site-structure-item-site-structure-service.types.js';\nimport * as ambassadorWixViewerStructureV1SiteStructureItemUniversalTypes from './viewer-structure-v1-site-structure-item-site-structure-service.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 getSiteStructure(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixViewerStructureV1SiteStructureItemUniversalTypes.SiteStructureRequest,\n ambassadorWixViewerStructureV1SiteStructureItemTypes.SiteStructureRequest,\n ambassadorWixViewerStructureV1SiteStructureItemUniversalTypes.SiteStructureResponse,\n ambassadorWixViewerStructureV1SiteStructureItemTypes.SiteStructureResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixViewerStructureV1SiteStructureItem.getSiteStructure(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/site-structure',\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 getSiteStructureMetadata(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixViewerStructureV1SiteStructureItemUniversalTypes.GetSiteStructureMetadataRequest,\n ambassadorWixViewerStructureV1SiteStructureItemTypes.GetSiteStructureMetadataRequest,\n ambassadorWixViewerStructureV1SiteStructureItemUniversalTypes.GetSiteStructureMetadataResponse,\n ambassadorWixViewerStructureV1SiteStructureItemTypes.GetSiteStructureMetadataResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixViewerStructureV1SiteStructureItem.getSiteStructureMetadata(\n payload\n );\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/site-structure-metadata',\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 SiteStructureItem as SiteStructureItemOriginal,\n MediaItem as MediaItemOriginal,\n MediaItemMediaOneOf as MediaItemMediaOneOfOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n Video as VideoOriginal,\n Document as DocumentOriginal,\n VideoV2 as VideoV2Original,\n VideoResolution as VideoResolutionOriginal,\n SiteStructureRequest as SiteStructureRequestOriginal,\n PageSegment as PageSegmentOriginal,\n PageSegmentWithLiterals as PageSegmentWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n SiteStructureRequestFilter as SiteStructureRequestFilterOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n LanguageMetadata as LanguageMetadataOriginal,\n SiteStructureResponse as SiteStructureResponseOriginal,\n CursorPagingMetaData as CursorPagingMetaDataOriginal,\n SiteStructureFetchError as SiteStructureFetchErrorOriginal,\n SiteStructureFetchErrorItemTypeOneOf as SiteStructureFetchErrorItemTypeOneOfOriginal,\n GetSiteStructureMetadataRequest as GetSiteStructureMetadataRequestOriginal,\n GetSiteStructureMetadataResponse as GetSiteStructureMetadataResponseOriginal,\n SitePageType as SitePageTypeOriginal,\n GetSiteStructureChunksRequest as GetSiteStructureChunksRequestOriginal,\n GetSiteStructureChunksResponse as GetSiteStructureChunksResponseOriginal,\n ChunkMetadata as ChunkMetadataOriginal,\n GetSiteStructureChunkRequest as GetSiteStructureChunkRequestOriginal,\n GetSiteStructureChunkResponse as GetSiteStructureChunkResponseOriginal,\n} from './viewer-structure-v1-site-structure-item-site-structure-service.types.js';\n"],"mappings":"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","names":["payload","PageSegment","SortOrder","getSiteStructure","getSiteStructureMetadata"]}
1
+ {"version":3,"sources":["../../src/viewer-structure-v1-site-structure-item-site-structure-service.http.ts","../../src/viewer-structure-v1-site-structure-item-site-structure-service.types.ts","../../src/viewer-structure-v1-site-structure-item-site-structure-service.meta.ts"],"sourcesContent":["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\nfunction resolveComWixpressStructureApiSiteStructureServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'editor._base_domain_': [\n {\n srcPath: '/_api/site-structure-server',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/site-structure-server',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/site-structure-server',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/site-structure-server',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/site-structure-server',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_viewer_site-structure-service';\n\n/** Get Site's structure */\nexport function getSiteStructure(payload: object): RequestOptionsFactory<any> {\n function __getSiteStructure({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'sorting.origin.latitude' },\n { path: 'sorting.origin.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.viewer.structure.v1.site_structure_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.structure.api.SiteStructureService.GetSiteStructure',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressStructureApiSiteStructureServiceUrl({\n protoPath: '/v1/site-structure',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.updatedDate' },\n { path: 'results.media.image.urlExpirationDate' },\n { path: 'results.media.video.thumbnail.urlExpirationDate' },\n { path: 'results.media.document.urlExpirationDate' },\n { path: 'results.media.document.thumbnail.urlExpirationDate' },\n { path: 'results.image.urlExpirationDate' },\n { path: 'results.video.urlExpirationDate' },\n { path: 'results.video.resolutions.urlExpirationDate' },\n { path: 'results.video.resolutions.poster.urlExpirationDate' },\n { path: 'results.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.media.image.focalPoint.x' },\n { path: 'results.media.image.focalPoint.y' },\n { path: 'results.media.video.thumbnail.focalPoint.x' },\n { path: 'results.media.video.thumbnail.focalPoint.y' },\n { path: 'results.media.document.thumbnail.focalPoint.x' },\n { path: 'results.media.document.thumbnail.focalPoint.y' },\n { path: 'results.image.focalPoint.x' },\n { path: 'results.image.focalPoint.y' },\n { path: 'results.video.resolutions.poster.focalPoint.x' },\n { path: 'results.video.resolutions.poster.focalPoint.y' },\n { path: 'results.video.posters.focalPoint.x' },\n { path: 'results.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSiteStructure;\n}\n\n/** Get Site's structure meta-data */\nexport function getSiteStructureMetadata(\n payload: object\n): RequestOptionsFactory<any> {\n function __getSiteStructureMetadata({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.viewer.structure.v1.site_structure_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.structure.api.SiteStructureService.GetSiteStructureMetadata',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressStructureApiSiteStructureServiceUrl({\n protoPath: '/v1/site-structure-metadata',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getSiteStructureMetadata;\n}\n","export interface SiteStructureItem {\n /**\n * The end goal: this field should contain a unique identifier for this site-structure item.\\\n * Currently it contains:\n * - For site-structure integrated TPAs - the unique identifier provided by the TPA.\n * - For all other item types - empty string.\n */\n itemId?: string;\n /**\n * An identifier for the type of the item. One of:\n * - For the site's static pages - \"static_page\".\n * - For legacy integration TPAs - the TPA's app-def-id.\n * - For TPAs with new site-structure integration - the item type identifier provided by the TPA. Commonly one of that TPA's supported sub-pages.\n * - For items that are the result of a dynamic router - \"dynamic-page\".\n */\n itemTypeIdentifier?: string;\n /**\n * An identifier for the source of the item. One of:\n * - For the site's static pages - \"editor\".\n * - For legacy integration TPAs - the TPA's app-def-id.\n * - For TPAs with new site-structure integration - the TPA's app-def-id.\n * - For items that are the result of a dataBinding router - Wix-Data's app-def-id: 'e593b0bd-b783-45b8-97c2-873d42aacaf4'.\n * - For items that are the result of a dynamic router - Wix-Code's app-def-id: '675bbcef-18d8-41f5-800e-131ec9e08762'.\n */\n sourceId?: string;\n /**\n * An identifier for the configuration of the item. Used currently as some sort of a placeholder for further filtering.\n * - For items of type \"dynamic-page\" - The 'prefix' field that is part of the router-config object of the router that is related to this item (see WixCodeDynamicRouterResolver).\n * - For all other items types - empty string.\n */\n configId?: string;\n /**\n * A human readable name string associated with the item.\\\n * Currently exists only for new TPA site-structure integration items, and contains the 'name' field provided by the TPA for that item.\\\n * This field is not guaranteed to be unique across the item list.\n */\n name?: string | null;\n /**\n * Deprecated. Previously used for media content that is associated with an item.\\\n * See 'image' and 'video' fields of this message.\n * @deprecated\n */\n media?: MediaItem[];\n /** A relative url path that can be used, with the site's base-url, to reach the page represented by this item. */\n path?: string | null;\n /**\n * A timestamp representing the moment that this item was last changed.\n * - For static pages - the site's last publish time.\n * - For all kinds of TPAs - the last-modified field in the respective response item from the TPA.\n * - For items that are the result of a dynamic router - the content of the 'lastModified' optional field in the response item from Wix-Code's RPC endpoint, or, if missing, the site's last publish time. (see WixCodeDynamicRouterResolver).\n */\n updatedDate?: Date | null;\n /**\n * A value indicating whether the item is inactive or not. E.g. hidden product/finished event etc.\\\n * Currently exists only for new TPA site-structure integration items, and contains the 'inactive' field provided by the TPA for that item.\n */\n inactive?: boolean | null;\n /**\n * A general free schema field to include further metadata related to this item.\\\n * Currently exists only for:\\\n * Static pages - a JSON that is the merge of:\n * 1. The advancedSeoData JSON string that exists for the page in the master-page.\n * 2. A JSON of the form:\n * ```javascript\n * {\n * \"seo_legacy\": {\n * \"hidden_from_seo\": true / false\n * },\n * \"password_protected\": true / false\n * }\n * ```\n * New TPA site-structure integration items - the 'metadata' field provided by the TPA for that item.\n */\n metadata?: Record<string, any> | null;\n /**\n * An image media metadata the is related to this item.\\\n * Currently exists only for new TPA site-structure integration items, and contains the 'image' field provided by the TPA for that item.\n */\n image?: Image[];\n /**\n * A video media metadata the is related to this item.\\\n * Currently exists only for new TPA site-structure integration items, and contains the 'video' field provided by the TPA for that item.\n */\n video?: VideoV2[];\n /** A value indicating whether the item is protected or not, by password or login. */\n protected?: boolean | null;\n /**\n * ID of the translations of the item. As same item can have multiple instances, one for each language, we can match them by this ID.\\\n * For example:\n * Blog has one post, translated to 2 languages (EN, FR):\n * - EN item path is `/amazing-post`\n * - FR item path is `/poste-incroyable\n * Both of them might have different `item_id`, but will share the same `translation_id`, to be easily match together\n * Currently only relevant for Blog\n */\n translationId?: string;\n /** A value indicating whether the item is a custom error page or not. */\n isCustomErrorPage?: boolean | null;\n /**\n * An page identifier.\n * For items that are the result of a dynamic router - page key\n * @internal\n */\n pageIdentifier?: string | null;\n}\n\n/** Deprecated - Copy this message into your service, do not reference it */\nexport interface MediaItem extends MediaItemMediaOneOf {\n /** WixMedia image */\n image?: Image;\n /** WixMedia video */\n video?: Video;\n /** WixMedia document */\n document?: Document;\n}\n\n/** @oneof */\nexport interface MediaItemMediaOneOf {\n /** WixMedia image */\n image?: Image;\n /** WixMedia video */\n video?: Video;\n /** WixMedia document */\n document?: Document;\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\n/** Deprecated - use VideoV2 */\nexport interface Video {\n /** WixMedia ID */\n id?: string;\n /** URL of video */\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 /** Video poster */\n thumbnail?: Image;\n}\n\nexport interface Document {\n /** WixMedia ID. */\n id?: string;\n /** Document URL. */\n url?: string;\n /**\n * Document URL expiration date (when relevant).\n * @internal\n */\n urlExpirationDate?: Date | null;\n /**\n * Document size in bytes.\n * @internal\n * @format DECIMAL_VALUE\n */\n sizeInBytes?: string | null;\n /** Document filename. */\n filename?: string | null;\n /**\n * Document thumbnail.\n * @internal\n * @readonly\n */\n thumbnail?: Image;\n}\n\nexport interface VideoV2 {\n /** WixMedia ID. */\n id?: string;\n /**\n * Original video URL.\n * @internal\n */\n url?: string;\n /**\n * Available resolutions for the video, starting with the optimal resolution.\n * @readonly\n * @maxSize 100\n */\n resolutions?: VideoResolution[];\n /**\n * Video filename.\n * @readonly\n */\n filename?: string | null;\n /**\n * Video posters.\n * @internal\n * @readonly\n */\n posters?: Image[];\n /**\n * Original video size in bytes.\n * @internal\n * @readonly\n * @format DECIMAL_VALUE\n */\n sizeInBytes?: string | null;\n /**\n * Video URL expiration date (when relevant).\n * @internal\n * @readonly\n */\n urlExpirationDate?: Date | null;\n /**\n * Original video duration in milliseconds.\n * @internal\n * @readonly\n */\n durationInMilliseconds?: number | null;\n /**\n * A short title for the video. will be used for SEO purposes.\n * @internal\n * @maxLength 300\n */\n title?: string | null;\n /**\n * A long description for the video. will be used for SEO purposes.\n * @internal\n * @maxLength 2000\n */\n description?: string | null;\n /**\n * Original video height.\n * @internal\n * @readonly\n */\n height?: number | null;\n /**\n * Original video width.\n * @internal\n * @readonly\n */\n width?: number | null;\n}\n\nexport interface VideoResolution {\n /** Video URL. */\n url?: string;\n /** Video height. */\n height?: number;\n /** Video width. */\n width?: number;\n /**\n * Deprecated. Use the `posters` property in the parent entity instead.\n * @internal\n * @deprecated\n */\n poster?: Image;\n /** Video format for example, mp4, hls. */\n format?: string;\n /**\n * Deprecated. Use the `urlExpirationDate` property in the parent entity instead.\n * @internal\n * @deprecated\n */\n urlExpirationDate?: Date | null;\n /**\n * Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.\n * @internal\n * @format DECIMAL_VALUE\n * @deprecated\n */\n sizeInBytes?: string | null;\n /**\n * Video quality. For example: 480p, 720p.\n * @internal\n */\n quality?: string | null;\n /**\n * Video filename.\n * @internal\n */\n filename?: string | null;\n /**\n * Video duration in seconds.\n * @internal\n * @readonly\n * @deprecated Video duration in seconds.\n * @replacedBy duration_in_milliseconds\n * @targetRemovalDate 2024-08-01\n */\n durationInSeconds?: number | null;\n /**\n * Video duration in milliseconds.\n * @internal\n * @readonly\n */\n durationInMilliseconds?: number | null;\n /**\n * When true, this is a protected asset, and calling the URL will return a 403 error.\n * In order to access private assets, make a request to:\n * `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request\n * @internal\n * @readonly\n */\n private?: boolean | null;\n /**\n * Key to identify the video resolution's relationship to the original media in WixMedia.\n * Can be used to request a download for the specific video resolution.\n * For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4\n * @internal\n * @readonly\n */\n assetKey?: string | null;\n}\n\nexport interface SiteStructureRequest {\n /** An enum indicating whether the request is for the latest published version (0) or the latest saved version (1) of the site */\n pageVersion?: PageSegmentWithLiterals;\n /**\n * Pagination request metadata, currently applicable for:\\\n * - Queries filtered for items from a TPA that is part of the new-integration (TpaSiteStructureService)\n * - Queries filtered for dynamic router items from the new dynamic-pages-router integration (DynamicSiteStructureService)\n */\n paging?: CursorPaging;\n /** Filtering metadata. Only items allowed by the filter will be returned. */\n filter?: SiteStructureRequestFilter;\n /** General sorting metadata. Currently not supported. */\n sorting?: Sorting;\n /** General field mask metadata. Currently not supported. */\n fieldSet?: string[];\n /** Language metadata. Contains 2 chars language code and/or 4 chars language tag. */\n languageMetadata?: LanguageMetadata;\n /**\n * Used to identify the branch of the site for which the structure is requested.\n * @format GUID\n */\n branchId?: string | null;\n}\n\nexport enum PageSegment {\n PUBLISHED = 'PUBLISHED',\n SAVED = 'SAVED',\n}\n\n/** @enumType */\nexport type PageSegmentWithLiterals = PageSegment | 'PUBLISHED' | 'SAVED';\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\n/** A filter metadata type. The filter forces an 'and' logic between all of its comprising parts. */\nexport interface SiteStructureRequestFilter {\n /** In accordance to SiteStructureItem.item_type_identifier */\n itemTypeIdentifier?: string;\n /** In accordance to SiteStructureItem.source_id */\n sourceId?: string;\n /** In accordance to SiteStructureItem.config_id */\n configId?: string;\n /**\n * In accordance to SiteStructureItem.page_identifier\n * @internal\n */\n pageIdentifier?: string | null;\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 LanguageMetadata {\n /**\n * 2 chars language code (e.g. 'en')\n * @format LANGUAGE\n */\n code?: string;\n /**\n * 4 chars language tag (e.g. 'en-us')\n * @format LANGUAGE_TAG\n */\n tag?: string | null;\n}\n\nexport interface SiteStructureResponse {\n /** The total number of items to be returned, combining all paginated responses. */\n totalResults?: number;\n /** A cursor based paging response metadata, including the item count in the current page and a cursor string to be used for querying of the next page. */\n pageData?: CursorPagingMetaData;\n /** A list of all the result items. */\n results?: SiteStructureItem[];\n /** A list of errors that occurred during the fetch process (if any). */\n errors?: SiteStructureFetchError[];\n}\n\nexport interface CursorPagingMetaData {\n /** The item count in the current page */\n count?: number | null;\n /** The cursor which will be used to query the next page */\n cursor?: string | null;\n}\n\nexport interface SiteStructureFetchError\n extends SiteStructureFetchErrorItemTypeOneOf {\n /**\n * item type id of the failed fetch\n * @readonly\n * @minLength 1\n * @maxLength 200\n */\n itemTypeId?: string;\n /**\n * for dynamic pages: router prefix of the failed fetch\n * @readonly\n * @minLength 1\n * @maxLength 200\n */\n routerPrefix?: string;\n /**\n * Error message\n * @minLength 1\n * @maxLength 1000\n */\n errorMessage?: string;\n /**\n * if the fetch happened while fetching links from a TPA, this will hold the TPA appDefId\n * @readonly\n * @format GUID\n */\n appId?: string | null;\n}\n\n/** @oneof */\nexport interface SiteStructureFetchErrorItemTypeOneOf {\n /**\n * item type id of the failed fetch\n * @readonly\n * @minLength 1\n * @maxLength 200\n */\n itemTypeId?: string;\n /**\n * for dynamic pages: router prefix of the failed fetch\n * @readonly\n * @minLength 1\n * @maxLength 200\n */\n routerPrefix?: string;\n}\n\nexport interface GetSiteStructureMetadataRequest {\n /** Page's version */\n pageVersion?: PageSegmentWithLiterals;\n}\n\nexport interface GetSiteStructureMetadataResponse {\n /** A list of pages types */\n pageTypes?: SitePageType[];\n}\n\nexport interface SitePageType {\n /** Type identifier */\n itemTypeIdentifier?: string;\n /** Site's page-type sourceId */\n sourceId?: string;\n /** Site's page-type configId */\n configId?: string;\n /**\n * Site's pages identifiers\n * @internal\n */\n pageIdentifiers?: string[];\n}\n\nexport interface GetSiteStructureChunksRequest {\n /** @maxLength 8192 */\n siteUrl?: string | null;\n languageMetadata?: LanguageMetadata;\n /** The size of the chunk to split all the entries into. */\n chunkSize?: number;\n pageVersion?: PageSegmentWithLiterals;\n /** @maxLength 255 */\n itemTypeIdentifier?: string | null;\n /** @maxLength 36 */\n sourceId?: string;\n /** @maxLength 2048 */\n configId?: string;\n /** @maxLength 255 */\n pageIdentifier?: string | null;\n}\n\nexport interface GetSiteStructureChunksResponse {\n chunks?: ChunkMetadata[];\n}\n\nexport interface ChunkMetadata {\n /**\n * Chunk ID used in subsequent GetSiteMapChunk request.\n * Opaque provider-generated token; 1024 accommodates the largest known format (e.g. an Elasticsearch cursor).\n * @maxLength 1024\n */\n id?: string;\n /** The most recent date when any of the items in a chunk was updated */\n updatedDate?: Date | null;\n /**\n * Page identifier of the items in a chunk.\n * @maxLength 255\n */\n pageIdentifier?: string | null;\n}\n\nexport interface GetSiteStructureChunkRequest {\n /** @maxLength 8192 */\n siteUrl?: string | null;\n /**\n * Chunk ID previously returned in ChunkMetadata\n * @maxLength 1024\n */\n chunkId?: string;\n languageMetadata?: LanguageMetadata;\n /** Chunk size. It will match the chunk size used in GetSiteMapChunksRequest. */\n chunkSize?: number | null;\n pageVersion?: PageSegmentWithLiterals;\n /**\n * Used to identify the branch of the site for which the structure is requested.\n * @format GUID\n */\n branchId?: string | null;\n /** @maxLength 255 */\n itemTypeIdentifier?: string | null;\n /** @maxLength 36 */\n sourceId?: string;\n /** @maxLength 2048 */\n configId?: string;\n /** @maxLength 255 */\n pageIdentifier?: string | null;\n}\n\nexport interface GetSiteStructureChunkResponse {\n /** @maxSize 10000 */\n chunk?: SiteStructureItem[];\n}\n","import * as ambassadorWixViewerStructureV1SiteStructureItem from './viewer-structure-v1-site-structure-item-site-structure-service.http.js';\nimport * as ambassadorWixViewerStructureV1SiteStructureItemTypes from './viewer-structure-v1-site-structure-item-site-structure-service.types.js';\nimport * as ambassadorWixViewerStructureV1SiteStructureItemUniversalTypes from './viewer-structure-v1-site-structure-item-site-structure-service.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 getSiteStructure(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixViewerStructureV1SiteStructureItemUniversalTypes.SiteStructureRequest,\n ambassadorWixViewerStructureV1SiteStructureItemTypes.SiteStructureRequest,\n ambassadorWixViewerStructureV1SiteStructureItemUniversalTypes.SiteStructureResponse,\n ambassadorWixViewerStructureV1SiteStructureItemTypes.SiteStructureResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixViewerStructureV1SiteStructureItem.getSiteStructure(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/site-structure',\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 getSiteStructureMetadata(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixViewerStructureV1SiteStructureItemUniversalTypes.GetSiteStructureMetadataRequest,\n ambassadorWixViewerStructureV1SiteStructureItemTypes.GetSiteStructureMetadataRequest,\n ambassadorWixViewerStructureV1SiteStructureItemUniversalTypes.GetSiteStructureMetadataResponse,\n ambassadorWixViewerStructureV1SiteStructureItemTypes.GetSiteStructureMetadataResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixViewerStructureV1SiteStructureItem.getSiteStructureMetadata(\n payload\n );\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/site-structure-metadata',\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 SiteStructureItem as SiteStructureItemOriginal,\n MediaItem as MediaItemOriginal,\n MediaItemMediaOneOf as MediaItemMediaOneOfOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n Video as VideoOriginal,\n Document as DocumentOriginal,\n VideoV2 as VideoV2Original,\n VideoResolution as VideoResolutionOriginal,\n SiteStructureRequest as SiteStructureRequestOriginal,\n PageSegment as PageSegmentOriginal,\n PageSegmentWithLiterals as PageSegmentWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n SiteStructureRequestFilter as SiteStructureRequestFilterOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n AddressLocation as AddressLocationOriginal,\n LanguageMetadata as LanguageMetadataOriginal,\n SiteStructureResponse as SiteStructureResponseOriginal,\n CursorPagingMetaData as CursorPagingMetaDataOriginal,\n SiteStructureFetchError as SiteStructureFetchErrorOriginal,\n SiteStructureFetchErrorItemTypeOneOf as SiteStructureFetchErrorItemTypeOneOfOriginal,\n GetSiteStructureMetadataRequest as GetSiteStructureMetadataRequestOriginal,\n GetSiteStructureMetadataResponse as GetSiteStructureMetadataResponseOriginal,\n SitePageType as SitePageTypeOriginal,\n GetSiteStructureChunksRequest as GetSiteStructureChunksRequestOriginal,\n GetSiteStructureChunksResponse as GetSiteStructureChunksResponseOriginal,\n ChunkMetadata as ChunkMetadataOriginal,\n GetSiteStructureChunkRequest as GetSiteStructureChunkRequestOriginal,\n GetSiteStructureChunkResponse as GetSiteStructureChunkResponseOriginal,\n} from './viewer-structure-v1-site-structure-item-site-structure-service.types.js';\n"],"mappings":"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","names":["payload","PageSegment","SortOrder","getSiteStructure","getSiteStructureMetadata"]}
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
2
  import { GetSiteStructureOptions, SiteStructureResponse, GetSiteStructureMetadataOptions, GetSiteStructureMetadataResponse } from './index.typings.js';
3
- export { ChunkMetadata, CursorPaging, CursorPagingMetaData, FocalPoint, GetSiteStructureChunkRequest, GetSiteStructureChunkResponse, GetSiteStructureChunksRequest, GetSiteStructureChunksResponse, GetSiteStructureMetadataRequest, LanguageMetadata, MediaItem, MediaItemMediaOneOf, PageSegment, PageSegmentWithLiterals, SitePageType, SiteStructureFetchError, SiteStructureFetchErrorItemTypeOneOf, SiteStructureItem, SiteStructureRequest, SiteStructureRequestFilter, SortOrder, SortOrderWithLiterals, Sorting, VideoResolution } from './index.typings.js';
3
+ export { AddressLocation, ChunkMetadata, CursorPaging, CursorPagingMetaData, FocalPoint, GetSiteStructureChunkRequest, GetSiteStructureChunkResponse, GetSiteStructureChunksRequest, GetSiteStructureChunksResponse, GetSiteStructureMetadataRequest, LanguageMetadata, MediaItem, MediaItemMediaOneOf, PageSegment, PageSegmentWithLiterals, SitePageType, SiteStructureFetchError, SiteStructureFetchErrorItemTypeOneOf, SiteStructureItem, SiteStructureRequest, SiteStructureRequestFilter, SortOrder, SortOrderWithLiterals, Sorting, VideoResolution } from './index.typings.js';
4
4
 
5
5
  declare function getSiteStructure$1(httpClient: HttpClient): GetSiteStructureSignature;
6
6
  interface GetSiteStructureSignature {
@@ -98,6 +98,12 @@ interface SiteStructureItem {
98
98
  translationId?: string;
99
99
  /** A value indicating whether the item is a custom error page or not. */
100
100
  isCustomErrorPage?: boolean | null;
101
+ /**
102
+ * An page identifier.
103
+ * For items that are the result of a dynamic router - page key
104
+ * @internal
105
+ */
106
+ pageIdentifier?: string | null;
101
107
  }
102
108
  /** Deprecated - Copy this message into your service, do not reference it */
103
109
  interface MediaItem extends MediaItemMediaOneOf {
@@ -134,8 +140,68 @@ interface VideoResolution {
134
140
  height?: number;
135
141
  /** Video width. */
136
142
  width?: number;
143
+ /**
144
+ * Deprecated. Use the `posters` property in the parent entity instead.
145
+ * @internal
146
+ * @deprecated
147
+ */
148
+ poster?: string;
137
149
  /** Video format for example, mp4, hls. */
138
150
  format?: string;
151
+ /**
152
+ * Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
153
+ * @internal
154
+ * @deprecated
155
+ */
156
+ urlExpirationDate?: Date | null;
157
+ /**
158
+ * Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
159
+ * @internal
160
+ * @format DECIMAL_VALUE
161
+ * @deprecated
162
+ */
163
+ sizeInBytes?: string | null;
164
+ /**
165
+ * Video quality. For example: 480p, 720p.
166
+ * @internal
167
+ */
168
+ quality?: string | null;
169
+ /**
170
+ * Video filename.
171
+ * @internal
172
+ */
173
+ filename?: string | null;
174
+ /**
175
+ * Video duration in seconds.
176
+ * @internal
177
+ * @readonly
178
+ * @deprecated Video duration in seconds.
179
+ * @replacedBy duration_in_milliseconds
180
+ * @targetRemovalDate 2024-08-01
181
+ */
182
+ durationInSeconds?: number | null;
183
+ /**
184
+ * Video duration in milliseconds.
185
+ * @internal
186
+ * @readonly
187
+ */
188
+ durationInMilliseconds?: number | null;
189
+ /**
190
+ * When true, this is a protected asset, and calling the URL will return a 403 error.
191
+ * In order to access private assets, make a request to:
192
+ * `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
193
+ * @internal
194
+ * @readonly
195
+ */
196
+ private?: boolean | null;
197
+ /**
198
+ * Key to identify the video resolution's relationship to the original media in WixMedia.
199
+ * Can be used to request a download for the specific video resolution.
200
+ * For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
201
+ * @internal
202
+ * @readonly
203
+ */
204
+ assetKey?: string | null;
139
205
  }
140
206
  interface SiteStructureRequest {
141
207
  /** An enum indicating whether the request is for the latest published version (0) or the latest saved version (1) of the site */
@@ -189,6 +255,11 @@ interface SiteStructureRequestFilter {
189
255
  sourceId?: string;
190
256
  /** In accordance to SiteStructureItem.config_id */
191
257
  configId?: string;
258
+ /**
259
+ * In accordance to SiteStructureItem.page_identifier
260
+ * @internal
261
+ */
262
+ pageIdentifier?: string | null;
192
263
  }
193
264
  interface Sorting {
194
265
  /**
@@ -198,6 +269,25 @@ interface Sorting {
198
269
  fieldName?: string;
199
270
  /** Sort order. */
200
271
  order?: SortOrderWithLiterals;
272
+ /**
273
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
274
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
275
+ *
276
+ * If multiple filters are provided, they are combined with AND operator.
277
+ *
278
+ * Example:
279
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
280
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
281
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
282
+ * @internal
283
+ * @maxSize 10
284
+ */
285
+ selectItemsBy?: Record<string, any>[] | null;
286
+ /**
287
+ * Origin point for geo-distance sorting on a GEO field
288
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
289
+ */
290
+ origin?: AddressLocation;
201
291
  }
202
292
  declare enum SortOrder {
203
293
  ASC = "ASC",
@@ -205,6 +295,12 @@ declare enum SortOrder {
205
295
  }
206
296
  /** @enumType */
207
297
  type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
298
+ interface AddressLocation {
299
+ /** Address latitude. */
300
+ latitude?: number | null;
301
+ /** Address longitude. */
302
+ longitude?: number | null;
303
+ }
208
304
  interface LanguageMetadata {
209
305
  /**
210
306
  * 2 chars language code (e.g. 'en')
@@ -293,6 +389,11 @@ interface SitePageType {
293
389
  sourceId?: string;
294
390
  /** Site's page-type configId */
295
391
  configId?: string;
392
+ /**
393
+ * Site's pages identifiers
394
+ * @internal
395
+ */
396
+ pageIdentifiers?: string[];
296
397
  }
297
398
  interface GetSiteStructureChunksRequest {
298
399
  /** @maxLength 8192 */
@@ -398,4 +499,4 @@ interface GetSiteStructureMetadataOptions {
398
499
  pageVersion?: PageSegmentWithLiterals;
399
500
  }
400
501
 
401
- export { type ChunkMetadata, type CursorPaging, type CursorPagingMetaData, type FocalPoint, type GetSiteStructureChunkRequest, type GetSiteStructureChunkResponse, type GetSiteStructureChunksRequest, type GetSiteStructureChunksResponse, type GetSiteStructureMetadataOptions, type GetSiteStructureMetadataRequest, type GetSiteStructureMetadataResponse, type GetSiteStructureOptions, type LanguageMetadata, type MediaItem, type MediaItemMediaOneOf, PageSegment, type PageSegmentWithLiterals, type SitePageType, type SiteStructureFetchError, type SiteStructureFetchErrorItemTypeOneOf, type SiteStructureItem, type SiteStructureRequest, type SiteStructureRequestFilter, type SiteStructureResponse, SortOrder, type SortOrderWithLiterals, type Sorting, type VideoResolution, getSiteStructure, getSiteStructureMetadata };
502
+ export { type AddressLocation, type ChunkMetadata, type CursorPaging, type CursorPagingMetaData, type FocalPoint, type GetSiteStructureChunkRequest, type GetSiteStructureChunkResponse, type GetSiteStructureChunksRequest, type GetSiteStructureChunksResponse, type GetSiteStructureMetadataOptions, type GetSiteStructureMetadataRequest, type GetSiteStructureMetadataResponse, type GetSiteStructureOptions, type LanguageMetadata, type MediaItem, type MediaItemMediaOneOf, PageSegment, type PageSegmentWithLiterals, type SitePageType, type SiteStructureFetchError, type SiteStructureFetchErrorItemTypeOneOf, type SiteStructureItem, type SiteStructureRequest, type SiteStructureRequestFilter, type SiteStructureResponse, SortOrder, type SortOrderWithLiterals, type Sorting, type VideoResolution, getSiteStructure, getSiteStructureMetadata };
@@ -99,6 +99,12 @@ interface SiteStructureItem {
99
99
  translationId?: string;
100
100
  /** A value indicating whether the item is a custom error page or not. */
101
101
  isCustomErrorPage?: boolean | null;
102
+ /**
103
+ * An page identifier.
104
+ * For items that are the result of a dynamic router - page key
105
+ * @internal
106
+ */
107
+ pageIdentifier?: string | null;
102
108
  }
103
109
  /** Deprecated - Copy this message into your service, do not reference it */
104
110
  interface MediaItem extends MediaItemMediaOneOf {
@@ -135,11 +141,29 @@ interface Image {
135
141
  width?: number;
136
142
  /** Image alt text. */
137
143
  altText?: string | null;
144
+ /**
145
+ * Image URL expiration date (when relevant).
146
+ * @internal
147
+ * @readonly
148
+ */
149
+ urlExpirationDate?: Date | null;
138
150
  /**
139
151
  * Image filename.
140
152
  * @readonly
141
153
  */
142
154
  filename?: string | null;
155
+ /**
156
+ * Image size in bytes.
157
+ * @internal
158
+ * @readonly
159
+ * @format DECIMAL_VALUE
160
+ */
161
+ sizeInBytes?: string | null;
162
+ /**
163
+ * Focal point of the image.
164
+ * @internal
165
+ */
166
+ focalPoint?: FocalPoint;
143
167
  }
144
168
  interface FocalPoint {
145
169
  /** X-coordinate of the focal point. */
@@ -175,12 +199,34 @@ interface Document {
175
199
  id?: string;
176
200
  /** Document URL. */
177
201
  url?: string;
202
+ /**
203
+ * Document URL expiration date (when relevant).
204
+ * @internal
205
+ */
206
+ urlExpirationDate?: Date | null;
207
+ /**
208
+ * Document size in bytes.
209
+ * @internal
210
+ * @format DECIMAL_VALUE
211
+ */
212
+ sizeInBytes?: string | null;
178
213
  /** Document filename. */
179
214
  filename?: string | null;
215
+ /**
216
+ * Document thumbnail.
217
+ * @internal
218
+ * @readonly
219
+ */
220
+ thumbnail?: Image;
180
221
  }
181
222
  interface VideoV2 {
182
223
  /** WixMedia ID. */
183
224
  id?: string;
225
+ /**
226
+ * Original video URL.
227
+ * @internal
228
+ */
229
+ url?: string;
184
230
  /**
185
231
  * Available resolutions for the video, starting with the optimal resolution.
186
232
  * @readonly
@@ -192,6 +238,55 @@ interface VideoV2 {
192
238
  * @readonly
193
239
  */
194
240
  filename?: string | null;
241
+ /**
242
+ * Video posters.
243
+ * @internal
244
+ * @readonly
245
+ */
246
+ posters?: Image[];
247
+ /**
248
+ * Original video size in bytes.
249
+ * @internal
250
+ * @readonly
251
+ * @format DECIMAL_VALUE
252
+ */
253
+ sizeInBytes?: string | null;
254
+ /**
255
+ * Video URL expiration date (when relevant).
256
+ * @internal
257
+ * @readonly
258
+ */
259
+ urlExpirationDate?: Date | null;
260
+ /**
261
+ * Original video duration in milliseconds.
262
+ * @internal
263
+ * @readonly
264
+ */
265
+ durationInMilliseconds?: number | null;
266
+ /**
267
+ * A short title for the video. will be used for SEO purposes.
268
+ * @internal
269
+ * @maxLength 300
270
+ */
271
+ title?: string | null;
272
+ /**
273
+ * A long description for the video. will be used for SEO purposes.
274
+ * @internal
275
+ * @maxLength 2000
276
+ */
277
+ description?: string | null;
278
+ /**
279
+ * Original video height.
280
+ * @internal
281
+ * @readonly
282
+ */
283
+ height?: number | null;
284
+ /**
285
+ * Original video width.
286
+ * @internal
287
+ * @readonly
288
+ */
289
+ width?: number | null;
195
290
  }
196
291
  interface VideoResolution {
197
292
  /** Video URL. */
@@ -200,8 +295,68 @@ interface VideoResolution {
200
295
  height?: number;
201
296
  /** Video width. */
202
297
  width?: number;
298
+ /**
299
+ * Deprecated. Use the `posters` property in the parent entity instead.
300
+ * @internal
301
+ * @deprecated
302
+ */
303
+ poster?: Image;
203
304
  /** Video format for example, mp4, hls. */
204
305
  format?: string;
306
+ /**
307
+ * Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
308
+ * @internal
309
+ * @deprecated
310
+ */
311
+ urlExpirationDate?: Date | null;
312
+ /**
313
+ * Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
314
+ * @internal
315
+ * @format DECIMAL_VALUE
316
+ * @deprecated
317
+ */
318
+ sizeInBytes?: string | null;
319
+ /**
320
+ * Video quality. For example: 480p, 720p.
321
+ * @internal
322
+ */
323
+ quality?: string | null;
324
+ /**
325
+ * Video filename.
326
+ * @internal
327
+ */
328
+ filename?: string | null;
329
+ /**
330
+ * Video duration in seconds.
331
+ * @internal
332
+ * @readonly
333
+ * @deprecated Video duration in seconds.
334
+ * @replacedBy duration_in_milliseconds
335
+ * @targetRemovalDate 2024-08-01
336
+ */
337
+ durationInSeconds?: number | null;
338
+ /**
339
+ * Video duration in milliseconds.
340
+ * @internal
341
+ * @readonly
342
+ */
343
+ durationInMilliseconds?: number | null;
344
+ /**
345
+ * When true, this is a protected asset, and calling the URL will return a 403 error.
346
+ * In order to access private assets, make a request to:
347
+ * `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
348
+ * @internal
349
+ * @readonly
350
+ */
351
+ private?: boolean | null;
352
+ /**
353
+ * Key to identify the video resolution's relationship to the original media in WixMedia.
354
+ * Can be used to request a download for the specific video resolution.
355
+ * For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
356
+ * @internal
357
+ * @readonly
358
+ */
359
+ assetKey?: string | null;
205
360
  }
206
361
  interface SiteStructureRequest {
207
362
  /** An enum indicating whether the request is for the latest published version (0) or the latest saved version (1) of the site */
@@ -255,6 +410,11 @@ interface SiteStructureRequestFilter {
255
410
  sourceId?: string;
256
411
  /** In accordance to SiteStructureItem.config_id */
257
412
  configId?: string;
413
+ /**
414
+ * In accordance to SiteStructureItem.page_identifier
415
+ * @internal
416
+ */
417
+ pageIdentifier?: string | null;
258
418
  }
259
419
  interface Sorting {
260
420
  /**
@@ -264,6 +424,25 @@ interface Sorting {
264
424
  fieldName?: string;
265
425
  /** Sort order. */
266
426
  order?: SortOrderWithLiterals;
427
+ /**
428
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
429
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
430
+ *
431
+ * If multiple filters are provided, they are combined with AND operator.
432
+ *
433
+ * Example:
434
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
435
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
436
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
437
+ * @internal
438
+ * @maxSize 10
439
+ */
440
+ selectItemsBy?: Record<string, any>[] | null;
441
+ /**
442
+ * Origin point for geo-distance sorting on a GEO field
443
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
444
+ */
445
+ origin?: AddressLocation;
267
446
  }
268
447
  declare enum SortOrder {
269
448
  ASC = "ASC",
@@ -271,6 +450,12 @@ declare enum SortOrder {
271
450
  }
272
451
  /** @enumType */
273
452
  type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
453
+ interface AddressLocation {
454
+ /** Address latitude. */
455
+ latitude?: number | null;
456
+ /** Address longitude. */
457
+ longitude?: number | null;
458
+ }
274
459
  interface LanguageMetadata {
275
460
  /**
276
461
  * 2 chars language code (e.g. 'en')
@@ -359,6 +544,11 @@ interface SitePageType {
359
544
  sourceId?: string;
360
545
  /** Site's page-type configId */
361
546
  configId?: string;
547
+ /**
548
+ * Site's pages identifiers
549
+ * @internal
550
+ */
551
+ pageIdentifiers?: string[];
362
552
  }
363
553
  interface GetSiteStructureChunksRequest {
364
554
  /** @maxLength 8192 */
@@ -438,4 +628,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
438
628
  declare function getSiteStructure(): __PublicMethodMetaInfo<'POST', {}, SiteStructureRequest$1, SiteStructureRequest, SiteStructureResponse$1, SiteStructureResponse>;
439
629
  declare function getSiteStructureMetadata(): __PublicMethodMetaInfo<'POST', {}, GetSiteStructureMetadataRequest$1, GetSiteStructureMetadataRequest, GetSiteStructureMetadataResponse$1, GetSiteStructureMetadataResponse>;
440
630
 
441
- export { type ChunkMetadata as ChunkMetadataOriginal, type CursorPagingMetaData as CursorPagingMetaDataOriginal, type CursorPaging as CursorPagingOriginal, type Document as DocumentOriginal, type FocalPoint as FocalPointOriginal, type GetSiteStructureChunkRequest as GetSiteStructureChunkRequestOriginal, type GetSiteStructureChunkResponse as GetSiteStructureChunkResponseOriginal, type GetSiteStructureChunksRequest as GetSiteStructureChunksRequestOriginal, type GetSiteStructureChunksResponse as GetSiteStructureChunksResponseOriginal, type GetSiteStructureMetadataRequest as GetSiteStructureMetadataRequestOriginal, type GetSiteStructureMetadataResponse as GetSiteStructureMetadataResponseOriginal, type Image as ImageOriginal, type LanguageMetadata as LanguageMetadataOriginal, type MediaItemMediaOneOf as MediaItemMediaOneOfOriginal, type MediaItem as MediaItemOriginal, PageSegment as PageSegmentOriginal, type PageSegmentWithLiterals as PageSegmentWithLiteralsOriginal, type SitePageType as SitePageTypeOriginal, type SiteStructureFetchErrorItemTypeOneOf as SiteStructureFetchErrorItemTypeOneOfOriginal, type SiteStructureFetchError as SiteStructureFetchErrorOriginal, type SiteStructureItem as SiteStructureItemOriginal, type SiteStructureRequestFilter as SiteStructureRequestFilterOriginal, type SiteStructureRequest as SiteStructureRequestOriginal, type SiteStructureResponse as SiteStructureResponseOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Video as VideoOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, type __PublicMethodMetaInfo, getSiteStructure, getSiteStructureMetadata };
631
+ export { type AddressLocation as AddressLocationOriginal, type ChunkMetadata as ChunkMetadataOriginal, type CursorPagingMetaData as CursorPagingMetaDataOriginal, type CursorPaging as CursorPagingOriginal, type Document as DocumentOriginal, type FocalPoint as FocalPointOriginal, type GetSiteStructureChunkRequest as GetSiteStructureChunkRequestOriginal, type GetSiteStructureChunkResponse as GetSiteStructureChunkResponseOriginal, type GetSiteStructureChunksRequest as GetSiteStructureChunksRequestOriginal, type GetSiteStructureChunksResponse as GetSiteStructureChunksResponseOriginal, type GetSiteStructureMetadataRequest as GetSiteStructureMetadataRequestOriginal, type GetSiteStructureMetadataResponse as GetSiteStructureMetadataResponseOriginal, type Image as ImageOriginal, type LanguageMetadata as LanguageMetadataOriginal, type MediaItemMediaOneOf as MediaItemMediaOneOfOriginal, type MediaItem as MediaItemOriginal, PageSegment as PageSegmentOriginal, type PageSegmentWithLiterals as PageSegmentWithLiteralsOriginal, type SitePageType as SitePageTypeOriginal, type SiteStructureFetchErrorItemTypeOneOf as SiteStructureFetchErrorItemTypeOneOfOriginal, type SiteStructureFetchError as SiteStructureFetchErrorOriginal, type SiteStructureItem as SiteStructureItemOriginal, type SiteStructureRequestFilter as SiteStructureRequestFilterOriginal, type SiteStructureRequest as SiteStructureRequestOriginal, type SiteStructureResponse as SiteStructureResponseOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Video as VideoOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, type __PublicMethodMetaInfo, getSiteStructure, getSiteStructureMetadata };