{"version":3,"sources":["../../src/quickpages-materializedpages-v1-materialized-page-materialized-pages.universal.ts","../../src/quickpages-materializedpages-v1-materialized-page-materialized-pages.http.ts","../../src/quickpages-materializedpages-v1-materialized-page-materialized-pages.public.ts","../../src/quickpages-materializedpages-v1-materialized-page-materialized-pages.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 {\n  HttpClient,\n  Search as SearchSdkType,\n  NonNullablePaths,\n  SearchSpec,\n} from '@wix/sdk-types';\nimport * as ambassadorWixQuickpagesMaterializedpagesV1MaterializedPage from './quickpages-materializedpages-v1-materialized-page-materialized-pages.http.js';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createSearchUtils } from '@wix/sdk-runtime/search-builder-utils';\n\nexport interface MaterializedPage {\n  /**\n   * Page ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * Revision number. Incremented on every update.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date and time the Page was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the Page was last updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * Date and time the Page was published or scheduled to be published depending on the status.\n   * @readonly\n   */\n  publishedDate?: Date | null;\n  /**\n   * Date and time the Page was unpublished or scheduled to be unpublished depending on the status.\n   * @readonly\n   */\n  unpublishedDate?: Date | null;\n  /**\n   * Page display name.\n   * @minLength 5\n   * @maxLength 100\n   */\n  name?: string | null;\n  /**\n   * The status of the Page.\n   * @readonly\n   */\n  status?: StatusWithLiterals;\n  /** An image specifically designated for display when the page URL is shared on social media platforms. */\n  socialPreviewImage?: string;\n  /** The small icon displayed in the browser tab, bookmarks, and potentially other areas. */\n  favicon?: string;\n  /**\n   * The title of the page, visible in the browser tab and used as the primary clickable link in search engine results.\n   * @maxLength 100\n   */\n  title?: string | null;\n  /**\n   * A brief summary of the page's content, often displayed below the title in search engine results.\n   * @maxLength 300\n   */\n  description?: string | null;\n  /** A flag to indicate whether search engines should be allowed to index this page and include it in their search results. */\n  searchEngineIndexingEnabled?: boolean;\n  /** Data Extensions */\n  extendedFields?: ExtendedFields;\n  /** Tags */\n  tags?: Tags;\n  /** Publication details */\n  publicationDetails?: PublicationDetails;\n  /** Content version details */\n  contentDetails?: ContentDetails;\n  /** The route information for the page. */\n  pageRoute?: PageRoute;\n}\n\nexport enum Status {\n  /** Unknown status. */\n  UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n  /** The Page is draft. */\n  DRAFT = 'DRAFT',\n  /** The Page is published. */\n  PUBLISHED = 'PUBLISHED',\n  /** The Page is scheduled to be published. */\n  SCHEDULED = 'SCHEDULED',\n  /** The Page is archived. */\n  ARCHIVED = 'ARCHIVED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n  | Status\n  | 'UNKNOWN_STATUS'\n  | 'DRAFT'\n  | 'PUBLISHED'\n  | 'SCHEDULED'\n  | 'ARCHIVED';\n\nexport interface ExtendedFields {\n  /**\n   * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n   * The value of each key is structured according to the schema defined when the extended fields were configured.\n   *\n   * You can only access fields for which you have the appropriate permissions.\n   *\n   * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n   */\n  namespaces?: Record<string, Record<string, any>>;\n}\n\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n  /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n  privateTags?: TagList;\n  /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n  tags?: TagList;\n}\n\nexport interface TagList {\n  /**\n   * List of tag IDs\n   * @maxSize 100\n   * @maxLength 5\n   */\n  tagIds?: string[];\n}\n\nexport interface PublicationDetails {\n  /**\n   * Published page ID\n   * @format GUID\n   */\n  publishedPageId?: string;\n  /**\n   * Published content ID\n   * @format GUID\n   */\n  contentId?: string;\n  /**\n   * Published page slug\n   * @minLength 3\n   * @maxLength 100\n   */\n  slug?: string;\n}\n\nexport interface ContentDetails {\n  /**\n   * Latest content ID\n   * @format GUID\n   */\n  latestContentId?: string;\n}\n\nexport interface PageRoute {\n  /**\n   * Page slug used in the URL.\n   * @minLength 3\n   * @maxLength 100\n   */\n  slug?: string;\n  /** The URL type for the page, determining how it's accessed (subdomain or path). */\n  urlType?: TypeWithLiterals;\n}\n\nexport enum Type {\n  /** The page is accessed via a path. */\n  PATH = 'PATH',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'PATH';\n\nexport interface GetMaterializedPageRequest {\n  /**\n   * ID of the MaterializedPage to retrieve.\n   * @format GUID\n   */\n  materializedPageId: string;\n}\n\nexport interface GetMaterializedPageResponse {\n  /** The requested MaterializedPage. */\n  materializedPage?: MaterializedPage;\n}\n\nexport interface SearchMaterializedPagesRequest {\n  /** WQL expression. */\n  search: CursorSearch;\n}\n\nexport interface CursorSearch extends CursorSearchPagingMethodOneOf {\n  /**\n   * Cursor pointing to page of results.\n   * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.\n   */\n  cursorPaging?: CursorPaging;\n  /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object in the form [{\"fieldName\":\"sortField1\"},{\"fieldName\":\"sortField2\",\"direction\":\"DESC\"}]\n   * @maxSize 10\n   */\n  sort?: Sorting[];\n  /**\n   * Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.\n   * @maxSize 10\n   */\n  aggregations?: Aggregation[];\n  /** Free text to match in searchable fields */\n  search?: SearchDetails;\n  /**\n   * UTC offset or IANA time zone. Valid values are\n   * ISO 8601 UTC offsets, such as +02:00 or -06:00,\n   * and IANA time zone IDs, such as Europe/Rome\n   *\n   * Affects all filters and aggregations returned values.\n   * You may override this behavior in a specific filter by providing\n   * timestamps including time zone. e.g. `\"2023-12-20T10:52:34.795Z\"`\n   * @maxLength 50\n   */\n  timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface CursorSearchPagingMethodOneOf {\n  /**\n   * Cursor pointing to page of results.\n   * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.\n   */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n  /**\n   * Name of the field to sort by.\n   * @maxLength 512\n   */\n  fieldName?: string;\n  /** Sort order. */\n  order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Aggregation extends AggregationKindOneOf {\n  /** Value aggregation */\n  value?: ValueAggregation;\n  /** Range aggregation */\n  range?: RangeAggregation;\n  /** Scalar aggregation */\n  scalar?: ScalarAggregation;\n  /** Date histogram aggregation */\n  dateHistogram?: DateHistogramAggregation;\n  /** Nested aggregation */\n  nested?: NestedAggregation;\n  /**\n   * User-defined name of aggregation, should be unique, will appear in aggregation results\n   * @maxLength 100\n   */\n  name?: string | null;\n  /** Type of aggregation, client must provide matching aggregation field below */\n  type?: AggregationTypeWithLiterals;\n  /**\n   * Field to aggregate by, use dot notation to specify json path\n   * @maxLength 200\n   */\n  fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationKindOneOf {\n  /** Value aggregation */\n  value?: ValueAggregation;\n  /** Range aggregation */\n  range?: RangeAggregation;\n  /** Scalar aggregation */\n  scalar?: ScalarAggregation;\n  /** Date histogram aggregation */\n  dateHistogram?: DateHistogramAggregation;\n  /** Nested aggregation */\n  nested?: NestedAggregation;\n}\n\nexport interface RangeBucket {\n  /** Inclusive lower bound of the range. Required if to is not given */\n  from?: number | null;\n  /** Exclusive upper bound of the range. Required if from is not given */\n  to?: number | null;\n}\n\nexport enum SortType {\n  /** Should sort by number of matches */\n  COUNT = 'COUNT',\n  /** Should sort by value of the field alphabetically */\n  VALUE = 'VALUE',\n}\n\n/** @enumType */\nexport type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';\n\nexport enum SortDirection {\n  /** Should sort in descending order */\n  DESC = 'DESC',\n  /** Should sort in ascending order */\n  ASC = 'ASC',\n}\n\n/** @enumType */\nexport type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';\n\nexport enum MissingValues {\n  /** Should missing values be excluded from the aggregation results */\n  EXCLUDE = 'EXCLUDE',\n  /** Should missing values be included in the aggregation results */\n  INCLUDE = 'INCLUDE',\n}\n\n/** @enumType */\nexport type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';\n\nexport interface IncludeMissingValuesOptions {\n  /**\n   * Can specify custom bucket name. Defaults are [string -> \"N/A\"], [int -> \"0\"], [bool -> \"false\"] ...\n   * @maxLength 20\n   */\n  addToBucket?: string;\n}\n\nexport enum ScalarType {\n  /** Count of distinct values */\n  COUNT_DISTINCT = 'COUNT_DISTINCT',\n  /** Minimum value */\n  MIN = 'MIN',\n  /** Maximum value */\n  MAX = 'MAX',\n}\n\n/** @enumType */\nexport type ScalarTypeWithLiterals =\n  | ScalarType\n  | 'COUNT_DISTINCT'\n  | 'MIN'\n  | 'MAX';\n\nexport interface ValueAggregation extends ValueAggregationOptionsOneOf {\n  /** Options for including missing values */\n  includeOptions?: IncludeMissingValuesOptions;\n  /** Should sort by number of matches or value of the field */\n  sortType?: SortTypeWithLiterals;\n  /** Should sort in ascending or descending order */\n  sortDirection?: SortDirectionWithLiterals;\n  /** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */\n  limit?: number | null;\n  /** Should missing values be included or excluded from the aggregation results. Default is EXCLUDE */\n  missingValues?: MissingValuesWithLiterals;\n}\n\n/** @oneof */\nexport interface ValueAggregationOptionsOneOf {\n  /** Options for including missing values */\n  includeOptions?: IncludeMissingValuesOptions;\n}\n\nexport enum NestedAggregationType {\n  /** An aggregation where result buckets are dynamically built - one per unique value */\n  VALUE = 'VALUE',\n  /** An aggregation, where user can define set of ranges - each representing a bucket */\n  RANGE = 'RANGE',\n  /** A single-value metric aggregation - e.g. min, max, sum, avg */\n  SCALAR = 'SCALAR',\n  /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */\n  DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n}\n\n/** @enumType */\nexport type NestedAggregationTypeWithLiterals =\n  | NestedAggregationType\n  | 'VALUE'\n  | 'RANGE'\n  | 'SCALAR'\n  | 'DATE_HISTOGRAM';\n\nexport interface RangeAggregation {\n  /**\n   * List of range buckets, where during aggregation each entity will be placed in the first bucket where its value falls into based on provided range bounds\n   * @maxSize 50\n   */\n  buckets?: RangeBucket[];\n}\n\nexport interface ScalarAggregation {\n  /** Define the operator for the scalar aggregation */\n  type?: ScalarTypeWithLiterals;\n}\n\nexport interface DateHistogramAggregation {\n  /** Interval for date histogram aggregation */\n  interval?: IntervalWithLiterals;\n}\n\nexport enum Interval {\n  /** Yearly interval */\n  YEAR = 'YEAR',\n  /** Monthly interval */\n  MONTH = 'MONTH',\n  /** Weekly interval */\n  WEEK = 'WEEK',\n  /** Daily interval */\n  DAY = 'DAY',\n  /** Hourly interval */\n  HOUR = 'HOUR',\n  /** Minute interval */\n  MINUTE = 'MINUTE',\n  /** Second interval */\n  SECOND = 'SECOND',\n}\n\n/** @enumType */\nexport type IntervalWithLiterals =\n  | Interval\n  | 'YEAR'\n  | 'MONTH'\n  | 'WEEK'\n  | 'DAY'\n  | 'HOUR'\n  | 'MINUTE'\n  | 'SECOND';\n\nexport interface NestedAggregationItem extends NestedAggregationItemKindOneOf {\n  /** Value aggregation */\n  value?: ValueAggregation;\n  /** Range aggregation */\n  range?: RangeAggregation;\n  /** Scalar aggregation */\n  scalar?: ScalarAggregation;\n  /** Date histogram aggregation */\n  dateHistogram?: DateHistogramAggregation;\n  /**\n   * User-defined name of aggregation, should be unique, will appear in aggregation results\n   * @maxLength 100\n   */\n  name?: string | null;\n  /** Type of aggregation, client must provide matching aggregation field below */\n  type?: NestedAggregationTypeWithLiterals;\n  /**\n   * Field to aggregate by, use dont notation to specify json path\n   * @maxLength 200\n   */\n  fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationItemKindOneOf {\n  /** Value aggregation */\n  value?: ValueAggregation;\n  /** Range aggregation */\n  range?: RangeAggregation;\n  /** Scalar aggregation */\n  scalar?: ScalarAggregation;\n  /** Date histogram aggregation */\n  dateHistogram?: DateHistogramAggregation;\n}\n\nexport enum AggregationType {\n  /** An aggregation where result buckets are dynamically built - one per unique value */\n  VALUE = 'VALUE',\n  /** An aggregation, where user can define set of ranges - each representing a bucket */\n  RANGE = 'RANGE',\n  /** A single-value metric aggregation - e.g. min, max, sum, avg */\n  SCALAR = 'SCALAR',\n  /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */\n  DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n  /** Multi-level aggregation, where each next aggregation is nested within previous one */\n  NESTED = 'NESTED',\n}\n\n/** @enumType */\nexport type AggregationTypeWithLiterals =\n  | AggregationType\n  | 'VALUE'\n  | 'RANGE'\n  | 'SCALAR'\n  | 'DATE_HISTOGRAM'\n  | 'NESTED';\n\n/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */\nexport interface NestedAggregation {\n  /**\n   * Flattened list of aggregations, where each next aggregation is nested within previous one\n   * @minSize 2\n   * @maxSize 3\n   */\n  nestedAggregations?: NestedAggregationItem[];\n}\n\nexport interface SearchDetails {\n  /** Defines how separate search terms in `expression` are combined */\n  mode?: ModeWithLiterals;\n  /**\n   * Search term or expression\n   * @maxLength 100\n   */\n  expression?: string | null;\n  /**\n   * Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path\n   * @maxLength 200\n   * @maxSize 20\n   */\n  fields?: string[];\n  /** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */\n  fuzzy?: boolean;\n}\n\nexport enum Mode {\n  /** Any of the search terms must be present */\n  OR = 'OR',\n  /** All search terms must be present */\n  AND = 'AND',\n}\n\n/** @enumType */\nexport type ModeWithLiterals = Mode | 'OR' | 'AND';\n\nexport interface CursorPaging {\n  /**\n   * Maximum number of items to return in the results.\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   * @maxLength 16000\n   */\n  cursor?: string | null;\n}\n\nexport interface SearchMaterializedPagesResponse {\n  /** List of MaterializedPages. */\n  materializedPages?: MaterializedPage[];\n  /** Paging metadata. */\n  pagingMetadata?: PagingMetadataV2;\n  /** Response aggregation data. */\n  aggregationData?: AggregationData;\n}\n\nexport interface PagingMetadataV2 {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Offset that was requested. */\n  offset?: number | null;\n  /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n  total?: number | null;\n  /** Flag that indicates the server failed to calculate the `total` field. */\n  tooManyToCount?: boolean | null;\n  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n  cursors?: Cursors;\n}\n\nexport interface Cursors {\n  /**\n   * Cursor string pointing to the next page in the list of results.\n   * @maxLength 16000\n   */\n  next?: string | null;\n  /**\n   * Cursor pointing to the previous page in the list of results.\n   * @maxLength 16000\n   */\n  prev?: string | null;\n}\n\nexport interface AggregationData {\n  /**\n   * key = aggregation name (as derived from search request)\n   * @maxSize 10000\n   */\n  results?: AggregationResults[];\n}\n\nexport interface ValueAggregationResult {\n  /**\n   * Value of the field\n   * @maxLength 100\n   */\n  value?: string;\n  /** Count of entities with this value */\n  count?: number;\n}\n\nexport interface RangeAggregationResult {\n  /** Inclusive lower bound of the range */\n  from?: number | null;\n  /** Exclusive upper bound of the range */\n  to?: number | null;\n  /** Count of entities in this range */\n  count?: number;\n}\n\nexport interface NestedAggregationResults\n  extends NestedAggregationResultsResultOneOf {\n  /** Value aggregation results */\n  values?: ValueResults;\n  /** Range aggregation results */\n  ranges?: RangeResults;\n  /** Scalar aggregation results */\n  scalar?: AggregationResultsScalarResult;\n  /**\n   * User-defined name of aggregation, matches the one provided in request\n   * @maxLength 100\n   */\n  name?: string;\n  /** Type of aggregation that matches result */\n  type?: AggregationTypeWithLiterals;\n  /**\n   * Field to aggregate by, matches the one provided in request\n   * @maxLength 200\n   */\n  fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationResultsResultOneOf {\n  /** Value aggregation results */\n  values?: ValueResults;\n  /** Range aggregation results */\n  ranges?: RangeResults;\n  /** Scalar aggregation results */\n  scalar?: AggregationResultsScalarResult;\n}\n\nexport interface ValueResults {\n  /**\n   * List of value aggregations\n   * @maxSize 250\n   */\n  results?: ValueAggregationResult[];\n}\n\nexport interface RangeResults {\n  /**\n   * List of ranges returned in same order as requested\n   * @maxSize 50\n   */\n  results?: RangeAggregationResult[];\n}\n\nexport interface AggregationResultsScalarResult {\n  /** Type of scalar aggregation */\n  type?: ScalarTypeWithLiterals;\n  /** Value of the scalar aggregation */\n  value?: number;\n}\n\nexport interface NestedValueAggregationResult {\n  /**\n   * Value of the field\n   * @maxLength 1000\n   */\n  value?: string;\n  /** Nested aggregations */\n  nestedResults?: NestedAggregationResults;\n}\n\nexport interface ValueResult {\n  /**\n   * Value of the field\n   * @maxLength 1000\n   */\n  value?: string;\n  /** Count of entities with this value */\n  count?: number | null;\n}\n\nexport interface RangeResult {\n  /** Inclusive lower bound of the range */\n  from?: number | null;\n  /** Exclusive upper bound of the range */\n  to?: number | null;\n  /** Count of entities in this range */\n  count?: number | null;\n}\n\nexport interface ScalarResult {\n  /** Value of the scalar aggregation */\n  value?: number;\n}\n\nexport interface NestedResultValue extends NestedResultValueResultOneOf {\n  /** Value aggregation result */\n  value?: ValueResult;\n  /** Range aggregation result */\n  range?: RangeResult;\n  /** Scalar aggregation result */\n  scalar?: ScalarResult;\n  /** Date histogram aggregation result */\n  dateHistogram?: ValueResult;\n}\n\n/** @oneof */\nexport interface NestedResultValueResultOneOf {\n  /** Value aggregation result */\n  value?: ValueResult;\n  /** Range aggregation result */\n  range?: RangeResult;\n  /** Scalar aggregation result */\n  scalar?: ScalarResult;\n  /** Date histogram aggregation result */\n  dateHistogram?: ValueResult;\n}\n\nexport interface Results {\n  /** List of nested aggregations */\n  results?: Record<string, NestedResultValue>;\n}\n\nexport interface DateHistogramResult {\n  /**\n   * Date in ISO 8601 format\n   * @maxLength 100\n   */\n  value?: string;\n  /** Count of documents in the bucket */\n  count?: number;\n}\n\nexport interface GroupByValueResults {\n  /**\n   * List of value aggregations\n   * @maxSize 1000\n   */\n  results?: NestedValueAggregationResult[];\n}\n\nexport interface DateHistogramResults {\n  /**\n   * List of date histogram aggregations\n   * @maxSize 200\n   */\n  results?: DateHistogramResult[];\n}\n\n/**\n * Results of `NESTED` aggregation type in a flattened form\n * aggregations in resulting array are keyed by requested aggregation `name`.\n */\nexport interface NestedResults {\n  /**\n   * List of nested aggregations\n   * @maxSize 1000\n   */\n  results?: Results[];\n}\n\nexport interface AggregationResults extends AggregationResultsResultOneOf {\n  /** Value aggregation results */\n  values?: ValueResults;\n  /** Range aggregation results */\n  ranges?: RangeResults;\n  /** Scalar aggregation results */\n  scalar?: AggregationResultsScalarResult;\n  /** Group by value aggregation results */\n  groupedByValue?: GroupByValueResults;\n  /** Date histogram aggregation results */\n  dateHistogram?: DateHistogramResults;\n  /** Nested aggregation results */\n  nested?: NestedResults;\n  /**\n   * User-defined name of aggregation as derived from search request\n   * @maxLength 100\n   */\n  name?: string;\n  /** Type of aggregation that must match provided kind as derived from search request */\n  type?: AggregationTypeWithLiterals;\n  /**\n   * Field to aggregate by as derived from search request\n   * @maxLength 200\n   */\n  fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationResultsResultOneOf {\n  /** Value aggregation results */\n  values?: ValueResults;\n  /** Range aggregation results */\n  ranges?: RangeResults;\n  /** Scalar aggregation results */\n  scalar?: AggregationResultsScalarResult;\n  /** Group by value aggregation results */\n  groupedByValue?: GroupByValueResults;\n  /** Date histogram aggregation results */\n  dateHistogram?: DateHistogramResults;\n  /** Nested aggregation results */\n  nested?: NestedResults;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  _id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entity?: string;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: string;\n}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\n/**\n * Retrieves a MaterializedPage.\n * @param materializedPageId - ID of the MaterializedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField materializedPageId\n * @permissionId QUICK_PAGES.MATERIALIZED_PAGE_READ\n * @returns The requested MaterializedPage.\n * @fqn wix.quickpages.materializedpages.v1.MaterializedPages.GetMaterializedPage\n */\nexport async function getMaterializedPage(\n  materializedPageId: string\n): Promise<\n  NonNullablePaths<\n    MaterializedPage,\n    | `status`\n    | `searchEngineIndexingEnabled`\n    | `tags.privateTags.tagIds`\n    | `publicationDetails.publishedPageId`\n    | `publicationDetails.contentId`\n    | `publicationDetails.slug`\n    | `contentDetails.latestContentId`\n    | `pageRoute.slug`\n    | `pageRoute.urlType`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    materializedPageId: materializedPageId,\n  });\n\n  const reqOpts =\n    ambassadorWixQuickpagesMaterializedpagesV1MaterializedPage.getMaterializedPage(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            { path: 'materializedPage.socialPreviewImage' },\n            { path: 'materializedPage.favicon' },\n          ],\n        },\n      ])\n    )?.materializedPage!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { materializedPageId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['materializedPageId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Retrieves a list of up to 100 materialized pages, given the specified filtering, search expression, sorting, and cursor paging ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language)).\n * @param search - WQL expression.\n * @internal\n * @documentationMaturity preview\n * @requiredField search\n * @permissionId QUICK_PAGES.MATERIALIZED_PAGE_READ\n * @fqn wix.quickpages.materializedpages.v1.MaterializedPages.SearchMaterializedPages\n */\nexport async function searchMaterializedPages(\n  search: MaterializedPageSearch\n): Promise<\n  NonNullablePaths<\n    SearchMaterializedPagesResponse,\n    | `materializedPages`\n    | `materializedPages.${number}.status`\n    | `materializedPages.${number}.searchEngineIndexingEnabled`\n    | `materializedPages.${number}.publicationDetails.publishedPageId`\n    | `materializedPages.${number}.publicationDetails.contentId`\n    | `materializedPages.${number}.publicationDetails.slug`\n    | `materializedPages.${number}.contentDetails.latestContentId`\n    | `materializedPages.${number}.pageRoute.slug`\n    | `materializedPages.${number}.pageRoute.urlType`\n    | `aggregationData.results`\n    | `aggregationData.results.${number}.scalar.type`\n    | `aggregationData.results.${number}.scalar.value`\n    | `aggregationData.results.${number}.name`\n    | `aggregationData.results.${number}.type`\n    | `aggregationData.results.${number}.fieldPath`,\n    6\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ search: search });\n\n  const reqOpts =\n    ambassadorWixQuickpagesMaterializedpagesV1MaterializedPage.searchMaterializedPages(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            { path: 'materializedPages.socialPreviewImage' },\n            { path: 'materializedPages.favicon' },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { search: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['search']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface MaterializedPageSearchSpec extends SearchSpec {\n  searchable: ['name', 'title'];\n  aggregatable: [\n    '_createdDate',\n    '_id',\n    '_updatedDate',\n    'name',\n    'publishedDate',\n    'status',\n    'title',\n    'unpublishedDate'\n  ];\n  paging: 'cursor';\n  wql: [\n    {\n      operators: '*';\n      fields: [\n        '_createdDate',\n        '_id',\n        '_updatedDate',\n        'name',\n        'publishedDate',\n        'status',\n        'title',\n        'unpublishedDate'\n      ];\n      sort: 'BOTH';\n    }\n  ];\n}\n\nexport type CommonSearchWithEntityContext = SearchSdkType<\n  MaterializedPage,\n  MaterializedPageSearchSpec\n>;\nexport type MaterializedPageSearch = {\n  /** \n  Cursor pointing to page of results.\n  When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.  \n  */\n  cursorPaging?: {\n    /** \n  Maximum number of items to return in the results. \n  @max: 100 \n  */\n    limit?:\n      | NonNullable<CommonSearchWithEntityContext['cursorPaging']>['limit']\n      | null;\n    /** \n  Pointer to the next or previous page in the list of results.\n\n  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n  Not relevant for the first request. \n  @maxLength: 16000 \n  */\n    cursor?:\n      | NonNullable<CommonSearchWithEntityContext['cursorPaging']>['cursor']\n      | null;\n  };\n  /** \n  A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf)  \n  */\n  filter?: CommonSearchWithEntityContext['filter'] | null;\n  /** \n  Sort object in the form [{\"fieldName\":\"sortField1\"},{\"fieldName\":\"sortField2\",\"direction\":\"DESC\"}] \n  @maxSize: 10 \n  */\n  sort?: {\n    /** \n  Name of the field to sort by. \n  @maxLength: 512 \n  */\n    fieldName?: NonNullable<\n      CommonSearchWithEntityContext['sort']\n    >[number]['fieldName'];\n    /** \n  Sort order.  \n  */\n    order?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['order'];\n  }[];\n  /** \n  Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. \n  @maxSize: 10 \n  */\n  aggregations?: {\n    /** \n  Value aggregation  \n  */\n    value?: NonNullable<\n      CommonSearchWithEntityContext['aggregations']\n    >[number]['value'];\n    /** \n  Range aggregation  \n  */\n    range?: NonNullable<\n      CommonSearchWithEntityContext['aggregations']\n    >[number]['range'];\n    /** \n  Scalar aggregation  \n  */\n    scalar?: NonNullable<\n      CommonSearchWithEntityContext['aggregations']\n    >[number]['scalar'];\n    /** \n  Date histogram aggregation  \n  */\n    dateHistogram?: NonNullable<\n      CommonSearchWithEntityContext['aggregations']\n    >[number]['dateHistogram'];\n    /** \n  Nested aggregation  \n  */\n    nested?: NonNullable<\n      CommonSearchWithEntityContext['aggregations']\n    >[number]['nested'];\n    /** \n  User-defined name of aggregation, should be unique, will appear in aggregation results \n  @maxLength: 100 \n  */\n    name?:\n      | NonNullable<\n          CommonSearchWithEntityContext['aggregations']\n        >[number]['name']\n      | null;\n    /** \n  Type of aggregation, client must provide matching aggregation field below  \n  */\n    type?: NonNullable<\n      CommonSearchWithEntityContext['aggregations']\n    >[number]['type'];\n    /** \n  Field to aggregate by, use dot notation to specify json path \n  @maxLength: 200 \n  */\n    fieldPath?: NonNullable<\n      CommonSearchWithEntityContext['aggregations']\n    >[number]['fieldPath'];\n  }[];\n  /** \n  Free text to match in searchable fields  \n  */\n  search?: {\n    /** \n  Defines how separate search terms in `expression` are combined  \n  */\n    mode?: NonNullable<CommonSearchWithEntityContext['search']>['mode'];\n    /** \n  Search term or expression \n  @maxLength: 100 \n  */\n    expression?:\n      | NonNullable<CommonSearchWithEntityContext['search']>['expression']\n      | null;\n    /** \n  Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path \n  @maxLength: 200,\n  @maxSize: 20 \n  */\n    fields?: NonNullable<CommonSearchWithEntityContext['search']>['fields'];\n    /** \n  Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm)  \n  */\n    fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];\n  };\n  /** \n  UTC offset or IANA time zone. Valid values are\n  ISO 8601 UTC offsets, such as +02:00 or -06:00,\n  and IANA time zone IDs, such as Europe/Rome\n\n  Affects all filters and aggregations returned values.\n  You may override this behavior in a specific filter by providing\n  timestamps including time zone. e.g. `\"2023-12-20T10:52:34.795Z\"` \n  @maxLength: 50 \n  */\n  timeZone?: CommonSearchWithEntityContext['timeZone'] | null;\n};\n\nexport const utils = {\n  search: {\n    ...createSearchUtils<\n      MaterializedPage,\n      MaterializedPageSearchSpec,\n      MaterializedPageSearch\n    >(),\n  },\n};\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { 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 resolveWixQuickpagesMaterializedpagesV1MaterializedPagesUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {};\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_quick-pages_materialized-pages';\n\n/** Retrieves a MaterializedPage. */\nexport function getMaterializedPage(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getMaterializedPage({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.quickpages.materializedpages.v1.materialized_page',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.quickpages.materializedpages.v1.MaterializedPages.GetMaterializedPage',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixQuickpagesMaterializedpagesV1MaterializedPagesUrl({\n        protoPath: '/v1/materialized-pages/{materializedPageId}',\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: 'materializedPage.createdDate' },\n              { path: 'materializedPage.updatedDate' },\n              { path: 'materializedPage.publishedDate' },\n              { path: 'materializedPage.unpublishedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getMaterializedPage;\n}\n\n/** Retrieves a list of up to 100 materialized pages, given the specified filtering, search expression, sorting, and cursor paging ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language)). */\nexport function searchMaterializedPages(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __searchMaterializedPages({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'search.aggregations.range.buckets.from' },\n          { path: 'search.aggregations.range.buckets.to' },\n          {\n            path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',\n          },\n          {\n            path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',\n          },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.quickpages.materializedpages.v1.materialized_page',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.quickpages.materializedpages.v1.MaterializedPages.SearchMaterializedPages',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixQuickpagesMaterializedpagesV1MaterializedPagesUrl({\n        protoPath: '/v1/materialized-pages/search',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'materializedPages.createdDate' },\n              { path: 'materializedPages.updatedDate' },\n              { path: 'materializedPages.publishedDate' },\n              { path: 'materializedPages.unpublishedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'aggregationData.results.ranges.results.from' },\n              { path: 'aggregationData.results.ranges.results.to' },\n              {\n                path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',\n              },\n              {\n                path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',\n              },\n              {\n                path: 'aggregationData.results.nested.results.results.*.range.from',\n              },\n              {\n                path: 'aggregationData.results.nested.results.results.*.range.to',\n              },\n              { path: 'aggregationData.results.scalar.value' },\n              {\n                path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',\n              },\n              {\n                path: 'aggregationData.results.nested.results.results.*.scalar.value',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __searchMaterializedPages;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  MaterializedPage,\n  MaterializedPageSearch,\n  SearchMaterializedPagesResponse,\n  getMaterializedPage as universalGetMaterializedPage,\n  searchMaterializedPages as universalSearchMaterializedPages,\n} from './quickpages-materializedpages-v1-materialized-page-materialized-pages.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/quick-pages' };\n\n/** @internal */\nexport function getMaterializedPage(\n  httpClient: HttpClient\n): GetMaterializedPageSignature {\n  return (materializedPageId: string) =>\n    universalGetMaterializedPage(\n      materializedPageId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetMaterializedPageSignature {\n  /**\n   * Retrieves a MaterializedPage.\n   * @param - ID of the MaterializedPage to retrieve.\n   * @returns The requested MaterializedPage.\n   */\n  (materializedPageId: string): Promise<\n    NonNullablePaths<\n      MaterializedPage,\n      | `status`\n      | `searchEngineIndexingEnabled`\n      | `tags.privateTags.tagIds`\n      | `publicationDetails.publishedPageId`\n      | `publicationDetails.contentId`\n      | `publicationDetails.slug`\n      | `contentDetails.latestContentId`\n      | `pageRoute.slug`\n      | `pageRoute.urlType`,\n      4\n    >\n  >;\n}\n\n/** @internal */\nexport function searchMaterializedPages(\n  httpClient: HttpClient\n): SearchMaterializedPagesSignature {\n  return (search: MaterializedPageSearch) =>\n    universalSearchMaterializedPages(\n      search,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SearchMaterializedPagesSignature {\n  /**\n   * Retrieves a list of up to 100 materialized pages, given the specified filtering, search expression, sorting, and cursor paging ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language)).\n   * @param - WQL expression.\n   */\n  (search: MaterializedPageSearch): Promise<\n    NonNullablePaths<\n      SearchMaterializedPagesResponse,\n      | `materializedPages`\n      | `materializedPages.${number}.status`\n      | `materializedPages.${number}.searchEngineIndexingEnabled`\n      | `materializedPages.${number}.publicationDetails.publishedPageId`\n      | `materializedPages.${number}.publicationDetails.contentId`\n      | `materializedPages.${number}.publicationDetails.slug`\n      | `materializedPages.${number}.contentDetails.latestContentId`\n      | `materializedPages.${number}.pageRoute.slug`\n      | `materializedPages.${number}.pageRoute.urlType`\n      | `aggregationData.results`\n      | `aggregationData.results.${number}.scalar.type`\n      | `aggregationData.results.${number}.scalar.value`\n      | `aggregationData.results.${number}.name`\n      | `aggregationData.results.${number}.type`\n      | `aggregationData.results.${number}.fieldPath`,\n      6\n    >\n  >;\n}\n\nexport {\n  AccountInfo,\n  ActionEvent,\n  Aggregation,\n  AggregationData,\n  AggregationKindOneOf,\n  AggregationResults,\n  AggregationResultsResultOneOf,\n  AggregationResultsScalarResult,\n  AggregationType,\n  ContentDetails,\n  CursorPaging,\n  CursorSearch,\n  CursorSearchPagingMethodOneOf,\n  Cursors,\n  DateHistogramAggregation,\n  DateHistogramResult,\n  DateHistogramResults,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  ExtendedFields,\n  GetMaterializedPageRequest,\n  GetMaterializedPageResponse,\n  GroupByValueResults,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  IncludeMissingValuesOptions,\n  Interval,\n  MaterializedPage,\n  MaterializedPageSearchSpec,\n  MessageEnvelope,\n  MissingValues,\n  Mode,\n  NestedAggregation,\n  NestedAggregationItem,\n  NestedAggregationItemKindOneOf,\n  NestedAggregationResults,\n  NestedAggregationResultsResultOneOf,\n  NestedAggregationType,\n  NestedResultValue,\n  NestedResultValueResultOneOf,\n  NestedResults,\n  NestedValueAggregationResult,\n  PageRoute,\n  PagingMetadataV2,\n  PublicationDetails,\n  RangeAggregation,\n  RangeAggregationResult,\n  RangeBucket,\n  RangeResult,\n  RangeResults,\n  RestoreInfo,\n  Results,\n  ScalarAggregation,\n  ScalarResult,\n  ScalarType,\n  SearchDetails,\n  SearchMaterializedPagesRequest,\n  SearchMaterializedPagesResponse,\n  SortDirection,\n  SortOrder,\n  SortType,\n  Sorting,\n  Status,\n  TagList,\n  Tags,\n  Type,\n  ValueAggregation,\n  ValueAggregationOptionsOneOf,\n  ValueAggregationResult,\n  ValueResult,\n  ValueResults,\n  WebhookIdentityType,\n  utils,\n} from './quickpages-materializedpages-v1-materialized-page-materialized-pages.universal.js';\n","import {\n  getMaterializedPage as publicGetMaterializedPage,\n  searchMaterializedPages as publicSearchMaterializedPages,\n} from './quickpages-materializedpages-v1-materialized-page-materialized-pages.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\n/** @internal */\nexport const getMaterializedPage: MaybeContext<\n  BuildRESTFunction<typeof publicGetMaterializedPage> &\n    typeof publicGetMaterializedPage\n> = /*#__PURE__*/ createRESTModule(publicGetMaterializedPage);\n/** @internal */\nexport const searchMaterializedPages: MaybeContext<\n  BuildRESTFunction<typeof publicSearchMaterializedPages> &\n    typeof publicSearchMaterializedPages\n> = /*#__PURE__*/ createRESTModule(publicSearchMaterializedPages);\n\nexport {\n  Status,\n  Type,\n  SortOrder,\n  SortType,\n  SortDirection,\n  MissingValues,\n  ScalarType,\n  NestedAggregationType,\n  Interval,\n  AggregationType,\n  Mode,\n  WebhookIdentityType,\n} from './quickpages-materializedpages-v1-materialized-page-materialized-pages.universal.js';\nexport {\n  MaterializedPage,\n  ExtendedFields,\n  Tags,\n  TagList,\n  PublicationDetails,\n  ContentDetails,\n  PageRoute,\n  GetMaterializedPageRequest,\n  GetMaterializedPageResponse,\n  SearchMaterializedPagesRequest,\n  CursorSearch,\n  CursorSearchPagingMethodOneOf,\n  Sorting,\n  Aggregation,\n  AggregationKindOneOf,\n  RangeBucket,\n  IncludeMissingValuesOptions,\n  ValueAggregation,\n  ValueAggregationOptionsOneOf,\n  RangeAggregation,\n  ScalarAggregation,\n  DateHistogramAggregation,\n  NestedAggregationItem,\n  NestedAggregationItemKindOneOf,\n  NestedAggregation,\n  SearchDetails,\n  CursorPaging,\n  SearchMaterializedPagesResponse,\n  PagingMetadataV2,\n  Cursors,\n  AggregationData,\n  ValueAggregationResult,\n  RangeAggregationResult,\n  NestedAggregationResults,\n  NestedAggregationResultsResultOneOf,\n  ValueResults,\n  RangeResults,\n  AggregationResultsScalarResult,\n  NestedValueAggregationResult,\n  ValueResult,\n  RangeResult,\n  ScalarResult,\n  NestedResultValue,\n  NestedResultValueResultOneOf,\n  Results,\n  DateHistogramResult,\n  GroupByValueResults,\n  DateHistogramResults,\n  NestedResults,\n  AggregationResults,\n  AggregationResultsResultOneOf,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  AccountInfo,\n  MaterializedPageSearchSpec,\n} from './quickpages-materializedpages-v1-materialized-page-materialized-pages.universal.js';\nexport { utils } from './quickpages-materializedpages-v1-materialized-page-materialized-pages.universal.js';\nexport {\n  StatusWithLiterals,\n  TypeWithLiterals,\n  SortOrderWithLiterals,\n  SortTypeWithLiterals,\n  SortDirectionWithLiterals,\n  MissingValuesWithLiterals,\n  ScalarTypeWithLiterals,\n  NestedAggregationTypeWithLiterals,\n  IntervalWithLiterals,\n  AggregationTypeWithLiterals,\n  ModeWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n  CommonSearchWithEntityContext,\n  MaterializedPageSearch,\n} from './quickpages-materializedpages-v1-materialized-page-materialized-pages.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS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AAa,YAAY,MAAM;AAE/B,WAAO;AAAA,MACLd,gBAAe,OAAO,MAAM;AAAA,QAC1B;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,uCAAuC;AAAA,YAC/C,EAAE,MAAM,4BAA4B;AAAA,UACtC;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,QAAQ,OAAO;AAAA,QAC3C,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,QAAQ;AAAA,IACX;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAmLO,IAAM,QAAQ;AAAA,EACnB,QAAQ;AAAA,IACN,GAAG,kBAID;AAAA,EACJ;AACF;;;AEtzCO,SAASe,qBACd,YAC8B;AAC9B,SAAO,CAAC,uBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA0BO,SAASC,yBACd,YACkC;AAClC,SAAO,CAAC,WACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACpDA,SAAS,wBAAwB;AAI1B,IAAMC,uBAGK,iCAAiBA,oBAAyB;AAErD,IAAMC,2BAGK,iCAAiBA,wBAA6B;","names":["payload","transformPaths","Status","Type","SortOrder","SortType","SortDirection","MissingValues","ScalarType","NestedAggregationType","Interval","AggregationType","Mode","WebhookIdentityType","getMaterializedPage","searchMaterializedPages","getMaterializedPage","searchMaterializedPages","getMaterializedPage","searchMaterializedPages"]}