@wix/auto_sdk_quick-pages_published-pages 1.0.10 → 1.0.12
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.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +7 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +7 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +7 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +7 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +7 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +7 -5
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +7 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +7 -5
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MaybeContext, BuildRESTFunction, HttpClient } from '@wix/sdk-types';
|
|
2
2
|
import { PublishedPagesQueryBuilder, PublishedPageQuery, typedQueryPublishedPages } from './index.typings.js';
|
|
3
|
-
export {
|
|
3
|
+
export { AccountInfo, ActionEvent, CommonQueryWithEntityContext, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetPublishedPageByPageIdRequest, GetPublishedPageByPageIdResponse, GetPublishedPageBySlugRequest, GetPublishedPageBySlugResponse, GetPublishedPageRequest, GetPublishedPageResponse, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, PublishedPage, PublishedPageQuerySpec, PublishedPagesQueryResult, QueryPublishedPagesRequest, QueryPublishedPagesResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function customQueryPublishedPages(httpClient: HttpClient): {
|
|
6
6
|
(): PublishedPagesQueryBuilder;
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/quickpages-v1-published-page-published-pages.universal.ts","../../src/quickpages-v1-published-page-published-pages.http.ts","../../src/quickpages-v1-published-page-published-pages.public.ts","../../src/quickpages-v1-published-page-published-pages.context.ts"],"sourcesContent":["export * from './src/quickpages-v1-published-page-published-pages.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixQuickpagesV1PublishedPage from './quickpages-v1-published-page-published-pages.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** A PublishedPage of QuickPages */\nexport interface PublishedPage {\n /**\n * PublishedPage ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the PublishedPage is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the PublishedPage.\n *\n * Ignored when creating a PublishedPage.\n * @readonly\n */\n revision?: string | null;\n /**\n * QuickPage page ID.\n * @format GUID\n * @immutable\n */\n pageId?: string;\n /**\n * QuickPage page ID.\n * @format GUID\n * @immutable\n */\n contentId?: string;\n /**\n * Page slug used in the URL.\n * @minLength 3\n * @maxLength 100\n */\n slug?: string;\n /**\n * Date and time the PublishedPage was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the PublishedPage was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\nexport interface GetPublishedPageRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @format GUID\n */\n publishedPageId: string;\n}\n\nexport interface GetPublishedPageResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface GetPublishedPageBySlugRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @minLength 3\n * @maxLength 100\n */\n slug: string;\n}\n\nexport interface GetPublishedPageBySlugResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface GetPublishedPageByPageIdRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @format GUID\n */\n pageId: string;\n}\n\nexport interface GetPublishedPageByPageIdResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface QueryPublishedPagesRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\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 QueryPublishedPagesResponse {\n /** List of PublishedPages. */\n publishedPages?: PublishedPage[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface 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 Empty {}\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}\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 AccountDetails {\n /**\n * ID of the account.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the site, if applicable.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Retrieves a PublishedPage.\n * @param publishedPageId - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField publishedPageId\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @returns The requested PublishedPage.\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPage\n */\nexport async function getPublishedPage(\n publishedPageId: string\n): Promise<\n NonNullablePaths<PublishedPage, `pageId` | `contentId` | `slug`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n publishedPageId: publishedPageId,\n });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPage(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.publishedPage!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { publishedPageId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['publishedPageId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PublishedPage by slug.\n * @param slug - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField slug\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageBySlug\n */\nexport async function getPublishedPageBySlug(\n slug: string\n): Promise<\n NonNullablePaths<\n GetPublishedPageBySlugResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ slug: slug });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPageBySlug(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { slug: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['slug']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PublishedPage by slug.\n * @param pageId - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField pageId\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageByPageId\n */\nexport async function getPublishedPageByPageId(\n pageId: string\n): Promise<\n NonNullablePaths<\n GetPublishedPageByPageIdResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ pageId: pageId });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPageByPageId(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pageId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['pageId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n * @internal\n * @documentationMaturity preview\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages\n */\nexport function queryPublishedPages(): PublishedPagesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n PublishedPage,\n 'CURSOR',\n QueryPublishedPagesRequest,\n QueryPublishedPagesResponse\n >({\n func: async (payload: QueryPublishedPagesRequest) => {\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.queryPublishedPages(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryPublishedPagesRequest['query']) => {\n const args = [query, {}] as [QueryPublishedPagesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryPublishedPagesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.publishedPages,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface PublishedPagesQueryResult extends QueryCursorResult {\n items: PublishedPage[];\n query: PublishedPagesQueryBuilder;\n next: () => Promise<PublishedPagesQueryResult>;\n prev: () => Promise<PublishedPagesQueryResult>;\n}\n\nexport interface PublishedPagesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: '_id',\n value: string\n ) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (propertyName: '_id', value: any[]) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n in: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n exists: (propertyName: '_id', value: boolean) => PublishedPagesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => PublishedPagesQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<PublishedPagesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages\n * @requiredField query\n */\nexport async function typedQueryPublishedPages(\n query: PublishedPageQuery\n): Promise<\n NonNullablePaths<\n QueryPublishedPagesResponse,\n | `publishedPages`\n | `publishedPages.${number}.pageId`\n | `publishedPages.${number}.contentId`\n | `publishedPages.${number}.slug`,\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({ query: query });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.queryPublishedPages(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface PublishedPageQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['_id'];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n PublishedPage,\n PublishedPageQuerySpec\n>;\nexport type PublishedPageQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object in the following format:\n `\"filter\" : {\n \"fieldName1\": \"value1\",\n \"fieldName2\":{\"$operator\":\"value2\"}\n }`\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object in the following format:\n `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]` \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/quick-pages/v1/published-pages',\n destPath: '/v1/published-pages',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/quick-pages/v1/published-pages',\n destPath: '/v1/published-pages',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_quick-pages_published-pages';\n\n/** Retrieves a PublishedPage. */\nexport function getPublishedPage(payload: object): RequestOptionsFactory<any> {\n function __getPublishedPage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPage',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{publishedPageId}',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPage;\n}\n\n/** Retrieves a PublishedPage by slug. */\nexport function getPublishedPageBySlug(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPublishedPageBySlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageBySlug',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{slug}/slug',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPageBySlug;\n}\n\n/** Retrieves a PublishedPage by slug. */\nexport function getPublishedPageByPageId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPublishedPageByPageId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageByPageId',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{pageId}/page-id',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPageByPageId;\n}\n\n/**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\nexport function queryPublishedPages(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPublishedPages({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'publishedPages.createdDate' },\n { path: 'publishedPages.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryPublishedPages;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n GetPublishedPageByPageIdResponse,\n GetPublishedPageBySlugResponse,\n PublishedPage,\n PublishedPageQuery,\n PublishedPagesQueryBuilder,\n QueryPublishedPagesResponse,\n getPublishedPage as universalGetPublishedPage,\n getPublishedPageByPageId as universalGetPublishedPageByPageId,\n getPublishedPageBySlug as universalGetPublishedPageBySlug,\n queryPublishedPages as universalQueryPublishedPages,\n typedQueryPublishedPages as universalTypedQueryPublishedPages,\n} from './quickpages-v1-published-page-published-pages.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/quick-pages' };\n\n/** @internal */\nexport function getPublishedPage(\n httpClient: HttpClient\n): GetPublishedPageSignature {\n return (publishedPageId: string) =>\n universalGetPublishedPage(\n publishedPageId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetPublishedPageSignature {\n /**\n * Retrieves a PublishedPage.\n * @param - ID of the PublishedPage to retrieve.\n * @returns The requested PublishedPage.\n */\n (publishedPageId: string): Promise<\n NonNullablePaths<PublishedPage, `pageId` | `contentId` | `slug`, 2>\n >;\n}\n\n/** @internal */\nexport function getPublishedPageBySlug(\n httpClient: HttpClient\n): GetPublishedPageBySlugSignature {\n return (slug: string) =>\n universalGetPublishedPageBySlug(\n slug,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetPublishedPageBySlugSignature {\n /**\n * Retrieves a PublishedPage by slug.\n * @param - ID of the PublishedPage to retrieve.\n */\n (slug: string): Promise<\n NonNullablePaths<\n GetPublishedPageBySlugResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n >;\n}\n\n/** @internal */\nexport function getPublishedPageByPageId(\n httpClient: HttpClient\n): GetPublishedPageByPageIdSignature {\n return (pageId: string) =>\n universalGetPublishedPageByPageId(\n pageId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetPublishedPageByPageIdSignature {\n /**\n * Retrieves a PublishedPage by slug.\n * @param - ID of the PublishedPage to retrieve.\n */\n (pageId: string): Promise<\n NonNullablePaths<\n GetPublishedPageByPageIdResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n >;\n}\n\n/** @internal */\nexport function queryPublishedPages(\n httpClient: HttpClient\n): QueryPublishedPagesSignature {\n return () =>\n universalQueryPublishedPages(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryPublishedPagesSignature {\n /**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\n (): PublishedPagesQueryBuilder;\n}\n\nexport function typedQueryPublishedPages(\n httpClient: HttpClient\n): TypedQueryPublishedPagesSignature {\n return (query: PublishedPageQuery) =>\n universalTypedQueryPublishedPages(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryPublishedPagesSignature {\n /** */\n (query: PublishedPageQuery): Promise<\n NonNullablePaths<\n QueryPublishedPagesResponse,\n | `publishedPages`\n | `publishedPages.${number}.pageId`\n | `publishedPages.${number}.contentId`\n | `publishedPages.${number}.slug`,\n 4\n >\n >;\n}\n\nexport {\n AccountDetails,\n ActionEvent,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n GetPublishedPageByPageIdRequest,\n GetPublishedPageByPageIdResponse,\n GetPublishedPageBySlugRequest,\n GetPublishedPageBySlugResponse,\n GetPublishedPageRequest,\n GetPublishedPageResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n MessageEnvelope,\n PublishedPage,\n PublishedPageQuerySpec,\n PublishedPagesQueryBuilder,\n PublishedPagesQueryResult,\n QueryPublishedPagesRequest,\n QueryPublishedPagesResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n WebhookIdentityType,\n} from './quickpages-v1-published-page-published-pages.universal.js';\n","import {\n getPublishedPage as publicGetPublishedPage,\n getPublishedPageBySlug as publicGetPublishedPageBySlug,\n getPublishedPageByPageId as publicGetPublishedPageByPageId,\n queryPublishedPages as publicQueryPublishedPages,\n typedQueryPublishedPages as publicTypedQueryPublishedPages,\n} from './quickpages-v1-published-page-published-pages.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n PublishedPageQuery,\n PublishedPagesQueryBuilder,\n typedQueryPublishedPages as universalTypedQueryPublishedPages,\n} from './quickpages-v1-published-page-published-pages.universal.js';\n\nfunction customQueryPublishedPages(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: () => publicQueryPublishedPages(httpClient)(),\n typedQueryFunction: (query: PublishedPageQuery) =>\n publicTypedQueryPublishedPages(httpClient)(query),\n hasOptionsParameter: false,\n });\n\n function overloadedQuery(): PublishedPagesQueryBuilder;\n function overloadedQuery(\n query: PublishedPageQuery\n ): ReturnType<typeof universalTypedQueryPublishedPages>;\n function overloadedQuery(query?: PublishedPageQuery): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\n/** @internal */\nexport const getPublishedPage: MaybeContext<\n BuildRESTFunction<typeof publicGetPublishedPage> &\n typeof publicGetPublishedPage\n> = /*#__PURE__*/ createRESTModule(publicGetPublishedPage);\n/** @internal */\nexport const getPublishedPageBySlug: MaybeContext<\n BuildRESTFunction<typeof publicGetPublishedPageBySlug> &\n typeof publicGetPublishedPageBySlug\n> = /*#__PURE__*/ createRESTModule(publicGetPublishedPageBySlug);\n/** @internal */\nexport const getPublishedPageByPageId: MaybeContext<\n BuildRESTFunction<typeof publicGetPublishedPageByPageId> &\n typeof publicGetPublishedPageByPageId\n> = /*#__PURE__*/ createRESTModule(publicGetPublishedPageByPageId);\nexport const queryPublishedPages: MaybeContext<\n BuildRESTFunction<typeof customQueryPublishedPages> &\n typeof customQueryPublishedPages\n> = /*#__PURE__*/ createRESTModule(customQueryPublishedPages);\n\nexport {\n SortOrder,\n WebhookIdentityType,\n} from './quickpages-v1-published-page-published-pages.universal.js';\nexport {\n PublishedPage,\n GetPublishedPageRequest,\n GetPublishedPageResponse,\n GetPublishedPageBySlugRequest,\n GetPublishedPageBySlugResponse,\n GetPublishedPageByPageIdRequest,\n GetPublishedPageByPageIdResponse,\n QueryPublishedPagesRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryPublishedPagesResponse,\n CursorPagingMetadata,\n Cursors,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountDetails,\n PublishedPagesQueryResult,\n PublishedPagesQueryBuilder,\n PublishedPageQuerySpec,\n} from './quickpages-v1-published-page-published-pages.universal.js';\nexport {\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CommonQueryWithEntityContext,\n PublishedPageQuery,\n} from './quickpages-v1-published-page-published-pages.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,sDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AA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,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE1sBO,SAASI,kBACd,YAC2B;AAC3B,SAAO,CAAC,oBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAcO,SAASC,wBACd,YACiC;AACjC,SAAO,CAAC,SACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAiBO,SAASC,0BACd,YACmC;AACnC,SAAO,CAAC,WACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAiBO,SAASC,qBACd,YAC8B;AAC9B,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;AAgBO,SAASC,0BACd,YACmC;AACnC,SAAO,CAAC,UACN;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACvHA,IAAAC,uBAAiC;AAGjC,iCAA0C;AAO1C,SAAS,0BAA0B,YAAwB;AACzD,QAAM,aAAS,sDAA0B;AAAA,IACvC,sBAAsB,MAAMC,qBAA0B,UAAU,EAAE;AAAA,IAClE,oBAAoB,CAAC,UACnBC,0BAA+B,UAAU,EAAE,KAAK;AAAA,IAClD,qBAAqB;AAAA,EACvB,CAAC;AAMD,WAAS,gBAAgB,OAAiC;AACxD,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAGO,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAElD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AAExD,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMJ,uBAGK,2DAAiB,yBAAyB;","names":["getPublishedPage","getPublishedPageByPageId","getPublishedPageBySlug","queryPublishedPages","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","getPublishedPage","sdkTransformError","getPublishedPageBySlug","getPublishedPageByPageId","queryPublishedPages","getPublishedPage","getPublishedPageBySlug","getPublishedPageByPageId","queryPublishedPages","typedQueryPublishedPages","import_rest_modules","queryPublishedPages","typedQueryPublishedPages","getPublishedPage","getPublishedPageBySlug","getPublishedPageByPageId"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/quickpages-v1-published-page-published-pages.universal.ts","../../src/quickpages-v1-published-page-published-pages.http.ts","../../src/quickpages-v1-published-page-published-pages.public.ts","../../src/quickpages-v1-published-page-published-pages.context.ts"],"sourcesContent":["export * from './src/quickpages-v1-published-page-published-pages.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixQuickpagesV1PublishedPage from './quickpages-v1-published-page-published-pages.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** A PublishedPage of QuickPages */\nexport interface PublishedPage {\n /**\n * PublishedPage ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the PublishedPage is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the PublishedPage.\n *\n * Ignored when creating a PublishedPage.\n * @readonly\n */\n revision?: string | null;\n /**\n * QuickPage page ID.\n * @format GUID\n * @immutable\n */\n pageId?: string;\n /**\n * QuickPage page ID.\n * @format GUID\n * @immutable\n */\n contentId?: string;\n /**\n * Page slug used in the URL.\n * @minLength 3\n * @maxLength 100\n */\n slug?: string;\n /**\n * Date and time the PublishedPage was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the PublishedPage was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\nexport interface GetPublishedPageRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @format GUID\n */\n publishedPageId: string;\n}\n\nexport interface GetPublishedPageResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface GetPublishedPageBySlugRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @minLength 3\n * @maxLength 100\n */\n slug: string;\n}\n\nexport interface GetPublishedPageBySlugResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface GetPublishedPageByPageIdRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @format GUID\n */\n pageId: string;\n}\n\nexport interface GetPublishedPageByPageIdResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface QueryPublishedPagesRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\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 QueryPublishedPagesResponse {\n /** List of PublishedPages. */\n publishedPages?: PublishedPage[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface 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 Empty {}\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 PublishedPage.\n * @param publishedPageId - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField publishedPageId\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @returns The requested PublishedPage.\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPage\n */\nexport async function getPublishedPage(\n publishedPageId: string\n): Promise<\n NonNullablePaths<PublishedPage, `pageId` | `contentId` | `slug`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n publishedPageId: publishedPageId,\n });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPage(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.publishedPage!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { publishedPageId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['publishedPageId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PublishedPage by slug.\n * @param slug - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField slug\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageBySlug\n */\nexport async function getPublishedPageBySlug(\n slug: string\n): Promise<\n NonNullablePaths<\n GetPublishedPageBySlugResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ slug: slug });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPageBySlug(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { slug: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['slug']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PublishedPage by slug.\n * @param pageId - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField pageId\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageByPageId\n */\nexport async function getPublishedPageByPageId(\n pageId: string\n): Promise<\n NonNullablePaths<\n GetPublishedPageByPageIdResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ pageId: pageId });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPageByPageId(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pageId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['pageId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n * @internal\n * @documentationMaturity preview\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages\n */\nexport function queryPublishedPages(): PublishedPagesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n PublishedPage,\n 'CURSOR',\n QueryPublishedPagesRequest,\n QueryPublishedPagesResponse\n >({\n func: async (payload: QueryPublishedPagesRequest) => {\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.queryPublishedPages(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryPublishedPagesRequest['query']) => {\n const args = [query, {}] as [QueryPublishedPagesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryPublishedPagesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.publishedPages,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface PublishedPagesQueryResult extends QueryCursorResult {\n items: PublishedPage[];\n query: PublishedPagesQueryBuilder;\n next: () => Promise<PublishedPagesQueryResult>;\n prev: () => Promise<PublishedPagesQueryResult>;\n}\n\nexport interface PublishedPagesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: '_id',\n value: string\n ) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (propertyName: '_id', value: any[]) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n in: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n exists: (propertyName: '_id', value: boolean) => PublishedPagesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => PublishedPagesQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<PublishedPagesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages\n * @requiredField query\n */\nexport async function typedQueryPublishedPages(\n query: PublishedPageQuery\n): Promise<\n NonNullablePaths<\n QueryPublishedPagesResponse,\n | `publishedPages`\n | `publishedPages.${number}.pageId`\n | `publishedPages.${number}.contentId`\n | `publishedPages.${number}.slug`,\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({ query: query });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.queryPublishedPages(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface PublishedPageQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['_id'];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n PublishedPage,\n PublishedPageQuerySpec\n>;\nexport type PublishedPageQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object in the following format:\n `\"filter\" : {\n \"fieldName1\": \"value1\",\n \"fieldName2\":{\"$operator\":\"value2\"}\n }`\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object in the following format:\n `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]` \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/quick-pages/v1/published-pages',\n destPath: '/v1/published-pages',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/quick-pages/v1/published-pages',\n destPath: '/v1/published-pages',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_quick-pages_published-pages';\n\n/** Retrieves a PublishedPage. */\nexport function getPublishedPage(payload: object): RequestOptionsFactory<any> {\n function __getPublishedPage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPage',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{publishedPageId}',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPage;\n}\n\n/** Retrieves a PublishedPage by slug. */\nexport function getPublishedPageBySlug(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPublishedPageBySlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageBySlug',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{slug}/slug',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPageBySlug;\n}\n\n/** Retrieves a PublishedPage by slug. */\nexport function getPublishedPageByPageId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPublishedPageByPageId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageByPageId',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{pageId}/page-id',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPageByPageId;\n}\n\n/**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\nexport function queryPublishedPages(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPublishedPages({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'publishedPages.createdDate' },\n { path: 'publishedPages.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryPublishedPages;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n GetPublishedPageByPageIdResponse,\n GetPublishedPageBySlugResponse,\n PublishedPage,\n PublishedPageQuery,\n PublishedPagesQueryBuilder,\n QueryPublishedPagesResponse,\n getPublishedPage as universalGetPublishedPage,\n getPublishedPageByPageId as universalGetPublishedPageByPageId,\n getPublishedPageBySlug as universalGetPublishedPageBySlug,\n queryPublishedPages as universalQueryPublishedPages,\n typedQueryPublishedPages as universalTypedQueryPublishedPages,\n} from './quickpages-v1-published-page-published-pages.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/quick-pages' };\n\n/** @internal */\nexport function getPublishedPage(\n httpClient: HttpClient\n): GetPublishedPageSignature {\n return (publishedPageId: string) =>\n universalGetPublishedPage(\n publishedPageId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetPublishedPageSignature {\n /**\n * Retrieves a PublishedPage.\n * @param - ID of the PublishedPage to retrieve.\n * @returns The requested PublishedPage.\n */\n (publishedPageId: string): Promise<\n NonNullablePaths<PublishedPage, `pageId` | `contentId` | `slug`, 2>\n >;\n}\n\n/** @internal */\nexport function getPublishedPageBySlug(\n httpClient: HttpClient\n): GetPublishedPageBySlugSignature {\n return (slug: string) =>\n universalGetPublishedPageBySlug(\n slug,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetPublishedPageBySlugSignature {\n /**\n * Retrieves a PublishedPage by slug.\n * @param - ID of the PublishedPage to retrieve.\n */\n (slug: string): Promise<\n NonNullablePaths<\n GetPublishedPageBySlugResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n >;\n}\n\n/** @internal */\nexport function getPublishedPageByPageId(\n httpClient: HttpClient\n): GetPublishedPageByPageIdSignature {\n return (pageId: string) =>\n universalGetPublishedPageByPageId(\n pageId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetPublishedPageByPageIdSignature {\n /**\n * Retrieves a PublishedPage by slug.\n * @param - ID of the PublishedPage to retrieve.\n */\n (pageId: string): Promise<\n NonNullablePaths<\n GetPublishedPageByPageIdResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n >;\n}\n\n/** @internal */\nexport function queryPublishedPages(\n httpClient: HttpClient\n): QueryPublishedPagesSignature {\n return () =>\n universalQueryPublishedPages(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryPublishedPagesSignature {\n /**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\n (): PublishedPagesQueryBuilder;\n}\n\nexport function typedQueryPublishedPages(\n httpClient: HttpClient\n): TypedQueryPublishedPagesSignature {\n return (query: PublishedPageQuery) =>\n universalTypedQueryPublishedPages(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryPublishedPagesSignature {\n /** */\n (query: PublishedPageQuery): Promise<\n NonNullablePaths<\n QueryPublishedPagesResponse,\n | `publishedPages`\n | `publishedPages.${number}.pageId`\n | `publishedPages.${number}.contentId`\n | `publishedPages.${number}.slug`,\n 4\n >\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n GetPublishedPageByPageIdRequest,\n GetPublishedPageByPageIdResponse,\n GetPublishedPageBySlugRequest,\n GetPublishedPageBySlugResponse,\n GetPublishedPageRequest,\n GetPublishedPageResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n MessageEnvelope,\n PublishedPage,\n PublishedPageQuerySpec,\n PublishedPagesQueryBuilder,\n PublishedPagesQueryResult,\n QueryPublishedPagesRequest,\n QueryPublishedPagesResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n WebhookIdentityType,\n} from './quickpages-v1-published-page-published-pages.universal.js';\n","import {\n getPublishedPage as publicGetPublishedPage,\n getPublishedPageBySlug as publicGetPublishedPageBySlug,\n getPublishedPageByPageId as publicGetPublishedPageByPageId,\n queryPublishedPages as publicQueryPublishedPages,\n typedQueryPublishedPages as publicTypedQueryPublishedPages,\n} from './quickpages-v1-published-page-published-pages.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n PublishedPageQuery,\n PublishedPagesQueryBuilder,\n typedQueryPublishedPages as universalTypedQueryPublishedPages,\n} from './quickpages-v1-published-page-published-pages.universal.js';\n\nfunction customQueryPublishedPages(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: () => publicQueryPublishedPages(httpClient)(),\n typedQueryFunction: (query: PublishedPageQuery) =>\n publicTypedQueryPublishedPages(httpClient)(query),\n hasOptionsParameter: false,\n });\n\n function overloadedQuery(): PublishedPagesQueryBuilder;\n function overloadedQuery(\n query: PublishedPageQuery\n ): ReturnType<typeof universalTypedQueryPublishedPages>;\n function overloadedQuery(query?: PublishedPageQuery): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\n/** @internal */\nexport const getPublishedPage: MaybeContext<\n BuildRESTFunction<typeof publicGetPublishedPage> &\n typeof publicGetPublishedPage\n> = /*#__PURE__*/ createRESTModule(publicGetPublishedPage);\n/** @internal */\nexport const getPublishedPageBySlug: MaybeContext<\n BuildRESTFunction<typeof publicGetPublishedPageBySlug> &\n typeof publicGetPublishedPageBySlug\n> = /*#__PURE__*/ createRESTModule(publicGetPublishedPageBySlug);\n/** @internal */\nexport const getPublishedPageByPageId: MaybeContext<\n BuildRESTFunction<typeof publicGetPublishedPageByPageId> &\n typeof publicGetPublishedPageByPageId\n> = /*#__PURE__*/ createRESTModule(publicGetPublishedPageByPageId);\nexport const queryPublishedPages: MaybeContext<\n BuildRESTFunction<typeof customQueryPublishedPages> &\n typeof customQueryPublishedPages\n> = /*#__PURE__*/ createRESTModule(customQueryPublishedPages);\n\nexport {\n SortOrder,\n WebhookIdentityType,\n} from './quickpages-v1-published-page-published-pages.universal.js';\nexport {\n PublishedPage,\n GetPublishedPageRequest,\n GetPublishedPageResponse,\n GetPublishedPageBySlugRequest,\n GetPublishedPageBySlugResponse,\n GetPublishedPageByPageIdRequest,\n GetPublishedPageByPageIdResponse,\n QueryPublishedPagesRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryPublishedPagesResponse,\n CursorPagingMetadata,\n Cursors,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n PublishedPagesQueryResult,\n PublishedPagesQueryBuilder,\n PublishedPageQuerySpec,\n} from './quickpages-v1-published-page-published-pages.universal.js';\nexport {\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CommonQueryWithEntityContext,\n PublishedPageQuery,\n} from './quickpages-v1-published-page-published-pages.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,sDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SA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;AAcO,SAASC,wBACd,YACiC;AACjC,SAAO,CAAC,SACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAiBO,SAASC,0BACd,YACmC;AACnC,SAAO,CAAC,WACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAiBO,SAASC,qBACd,YAC8B;AAC9B,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;AAgBO,SAASC,0BACd,YACmC;AACnC,SAAO,CAAC,UACN;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACvHA,IAAAC,uBAAiC;AAGjC,iCAA0C;AAO1C,SAAS,0BAA0B,YAAwB;AACzD,QAAM,aAAS,sDAA0B;AAAA,IACvC,sBAAsB,MAAMC,qBAA0B,UAAU,EAAE;AAAA,IAClE,oBAAoB,CAAC,UACnBC,0BAA+B,UAAU,EAAE,KAAK;AAAA,IAClD,qBAAqB;AAAA,EACvB,CAAC;AAMD,WAAS,gBAAgB,OAAiC;AACxD,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAGO,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAElD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AAExD,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMJ,uBAGK,2DAAiB,yBAAyB;","names":["getPublishedPage","getPublishedPageByPageId","getPublishedPageBySlug","queryPublishedPages","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","getPublishedPage","sdkTransformError","getPublishedPageBySlug","getPublishedPageByPageId","queryPublishedPages","getPublishedPage","getPublishedPageBySlug","getPublishedPageByPageId","queryPublishedPages","typedQueryPublishedPages","import_rest_modules","queryPublishedPages","typedQueryPublishedPages","getPublishedPage","getPublishedPageBySlug","getPublishedPageByPageId"]}
|
|
@@ -248,6 +248,8 @@ interface MessageEnvelope {
|
|
|
248
248
|
identity?: IdentificationData;
|
|
249
249
|
/** Stringify payload. */
|
|
250
250
|
data?: string;
|
|
251
|
+
/** Details related to the account */
|
|
252
|
+
accountInfo?: AccountInfo;
|
|
251
253
|
}
|
|
252
254
|
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
253
255
|
/**
|
|
@@ -305,19 +307,19 @@ declare enum WebhookIdentityType {
|
|
|
305
307
|
}
|
|
306
308
|
/** @enumType */
|
|
307
309
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
308
|
-
interface
|
|
310
|
+
interface AccountInfo {
|
|
309
311
|
/**
|
|
310
|
-
* ID of the account.
|
|
312
|
+
* ID of the Wix account associated with the event.
|
|
311
313
|
* @format GUID
|
|
312
314
|
*/
|
|
313
315
|
accountId?: string | null;
|
|
314
316
|
/**
|
|
315
|
-
* ID of the parent account.
|
|
317
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
316
318
|
* @format GUID
|
|
317
319
|
*/
|
|
318
320
|
parentAccountId?: string | null;
|
|
319
321
|
/**
|
|
320
|
-
* ID of the site
|
|
322
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
321
323
|
* @format GUID
|
|
322
324
|
*/
|
|
323
325
|
siteId?: string | null;
|
|
@@ -462,4 +464,4 @@ type PublishedPageQuery = {
|
|
|
462
464
|
}[];
|
|
463
465
|
};
|
|
464
466
|
|
|
465
|
-
export { type
|
|
467
|
+
export { type AccountInfo, type ActionEvent, type CommonQueryWithEntityContext, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetPublishedPageByPageIdRequest, type GetPublishedPageByPageIdResponse, type GetPublishedPageBySlugRequest, type GetPublishedPageBySlugResponse, type GetPublishedPageRequest, type GetPublishedPageResponse, type IdentificationData, type IdentificationDataIdOneOf, type MessageEnvelope, type PublishedPage, type PublishedPageQuery, type PublishedPageQuerySpec, type PublishedPagesQueryBuilder, type PublishedPagesQueryResult, type QueryPublishedPagesRequest, type QueryPublishedPagesResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, typedQueryPublishedPages };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.typings.ts","../../src/quickpages-v1-published-page-published-pages.universal.ts","../../src/quickpages-v1-published-page-published-pages.http.ts"],"sourcesContent":["export * from './src/quickpages-v1-published-page-published-pages.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixQuickpagesV1PublishedPage from './quickpages-v1-published-page-published-pages.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** A PublishedPage of QuickPages */\nexport interface PublishedPage {\n /**\n * PublishedPage ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the PublishedPage is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the PublishedPage.\n *\n * Ignored when creating a PublishedPage.\n * @readonly\n */\n revision?: string | null;\n /**\n * QuickPage page ID.\n * @format GUID\n * @immutable\n */\n pageId?: string;\n /**\n * QuickPage page ID.\n * @format GUID\n * @immutable\n */\n contentId?: string;\n /**\n * Page slug used in the URL.\n * @minLength 3\n * @maxLength 100\n */\n slug?: string;\n /**\n * Date and time the PublishedPage was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the PublishedPage was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\nexport interface GetPublishedPageRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @format GUID\n */\n publishedPageId: string;\n}\n\nexport interface GetPublishedPageResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface GetPublishedPageBySlugRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @minLength 3\n * @maxLength 100\n */\n slug: string;\n}\n\nexport interface GetPublishedPageBySlugResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface GetPublishedPageByPageIdRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @format GUID\n */\n pageId: string;\n}\n\nexport interface GetPublishedPageByPageIdResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface QueryPublishedPagesRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\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 QueryPublishedPagesResponse {\n /** List of PublishedPages. */\n publishedPages?: PublishedPage[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface 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 Empty {}\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}\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 AccountDetails {\n /**\n * ID of the account.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the site, if applicable.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Retrieves a PublishedPage.\n * @param publishedPageId - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField publishedPageId\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @returns The requested PublishedPage.\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPage\n */\nexport async function getPublishedPage(\n publishedPageId: string\n): Promise<\n NonNullablePaths<PublishedPage, `pageId` | `contentId` | `slug`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n publishedPageId: publishedPageId,\n });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPage(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.publishedPage!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { publishedPageId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['publishedPageId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PublishedPage by slug.\n * @param slug - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField slug\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageBySlug\n */\nexport async function getPublishedPageBySlug(\n slug: string\n): Promise<\n NonNullablePaths<\n GetPublishedPageBySlugResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ slug: slug });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPageBySlug(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { slug: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['slug']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PublishedPage by slug.\n * @param pageId - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField pageId\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageByPageId\n */\nexport async function getPublishedPageByPageId(\n pageId: string\n): Promise<\n NonNullablePaths<\n GetPublishedPageByPageIdResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ pageId: pageId });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPageByPageId(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pageId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['pageId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n * @internal\n * @documentationMaturity preview\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages\n */\nexport function queryPublishedPages(): PublishedPagesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n PublishedPage,\n 'CURSOR',\n QueryPublishedPagesRequest,\n QueryPublishedPagesResponse\n >({\n func: async (payload: QueryPublishedPagesRequest) => {\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.queryPublishedPages(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryPublishedPagesRequest['query']) => {\n const args = [query, {}] as [QueryPublishedPagesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryPublishedPagesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.publishedPages,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface PublishedPagesQueryResult extends QueryCursorResult {\n items: PublishedPage[];\n query: PublishedPagesQueryBuilder;\n next: () => Promise<PublishedPagesQueryResult>;\n prev: () => Promise<PublishedPagesQueryResult>;\n}\n\nexport interface PublishedPagesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: '_id',\n value: string\n ) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (propertyName: '_id', value: any[]) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n in: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n exists: (propertyName: '_id', value: boolean) => PublishedPagesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => PublishedPagesQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<PublishedPagesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages\n * @requiredField query\n */\nexport async function typedQueryPublishedPages(\n query: PublishedPageQuery\n): Promise<\n NonNullablePaths<\n QueryPublishedPagesResponse,\n | `publishedPages`\n | `publishedPages.${number}.pageId`\n | `publishedPages.${number}.contentId`\n | `publishedPages.${number}.slug`,\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({ query: query });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.queryPublishedPages(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface PublishedPageQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['_id'];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n PublishedPage,\n PublishedPageQuerySpec\n>;\nexport type PublishedPageQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object in the following format:\n `\"filter\" : {\n \"fieldName1\": \"value1\",\n \"fieldName2\":{\"$operator\":\"value2\"}\n }`\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object in the following format:\n `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]` \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/quick-pages/v1/published-pages',\n destPath: '/v1/published-pages',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/quick-pages/v1/published-pages',\n destPath: '/v1/published-pages',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_quick-pages_published-pages';\n\n/** Retrieves a PublishedPage. */\nexport function getPublishedPage(payload: object): RequestOptionsFactory<any> {\n function __getPublishedPage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPage',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{publishedPageId}',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPage;\n}\n\n/** Retrieves a PublishedPage by slug. */\nexport function getPublishedPageBySlug(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPublishedPageBySlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageBySlug',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{slug}/slug',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPageBySlug;\n}\n\n/** Retrieves a PublishedPage by slug. */\nexport function getPublishedPageByPageId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPublishedPageByPageId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageByPageId',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{pageId}/page-id',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPageByPageId;\n}\n\n/**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\nexport function queryPublishedPages(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPublishedPages({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'publishedPages.createdDate' },\n { path: 'publishedPages.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryPublishedPages;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,u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EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAA;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,OAAO,OAAO;AAAA,QAC1C,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,OAAO;AAAA,IACV;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["getPublishedPage","getPublishedPageByPageId","getPublishedPageBySlug","queryPublishedPages","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","getPublishedPage","sdkTransformError","getPublishedPageBySlug","getPublishedPageByPageId","queryPublishedPages"]}
|
|
1
|
+
{"version":3,"sources":["../../index.typings.ts","../../src/quickpages-v1-published-page-published-pages.universal.ts","../../src/quickpages-v1-published-page-published-pages.http.ts"],"sourcesContent":["export * from './src/quickpages-v1-published-page-published-pages.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixQuickpagesV1PublishedPage from './quickpages-v1-published-page-published-pages.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** A PublishedPage of QuickPages */\nexport interface PublishedPage {\n /**\n * PublishedPage ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the PublishedPage is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the PublishedPage.\n *\n * Ignored when creating a PublishedPage.\n * @readonly\n */\n revision?: string | null;\n /**\n * QuickPage page ID.\n * @format GUID\n * @immutable\n */\n pageId?: string;\n /**\n * QuickPage page ID.\n * @format GUID\n * @immutable\n */\n contentId?: string;\n /**\n * Page slug used in the URL.\n * @minLength 3\n * @maxLength 100\n */\n slug?: string;\n /**\n * Date and time the PublishedPage was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the PublishedPage was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\nexport interface GetPublishedPageRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @format GUID\n */\n publishedPageId: string;\n}\n\nexport interface GetPublishedPageResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface GetPublishedPageBySlugRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @minLength 3\n * @maxLength 100\n */\n slug: string;\n}\n\nexport interface GetPublishedPageBySlugResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface GetPublishedPageByPageIdRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @format GUID\n */\n pageId: string;\n}\n\nexport interface GetPublishedPageByPageIdResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface QueryPublishedPagesRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\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 QueryPublishedPagesResponse {\n /** List of PublishedPages. */\n publishedPages?: PublishedPage[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface 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 Empty {}\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 PublishedPage.\n * @param publishedPageId - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField publishedPageId\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @returns The requested PublishedPage.\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPage\n */\nexport async function getPublishedPage(\n publishedPageId: string\n): Promise<\n NonNullablePaths<PublishedPage, `pageId` | `contentId` | `slug`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n publishedPageId: publishedPageId,\n });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPage(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.publishedPage!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { publishedPageId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['publishedPageId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PublishedPage by slug.\n * @param slug - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField slug\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageBySlug\n */\nexport async function getPublishedPageBySlug(\n slug: string\n): Promise<\n NonNullablePaths<\n GetPublishedPageBySlugResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ slug: slug });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPageBySlug(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { slug: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['slug']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PublishedPage by slug.\n * @param pageId - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField pageId\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageByPageId\n */\nexport async function getPublishedPageByPageId(\n pageId: string\n): Promise<\n NonNullablePaths<\n GetPublishedPageByPageIdResponse,\n `publishedPage.pageId` | `publishedPage.contentId` | `publishedPage.slug`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ pageId: pageId });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPageByPageId(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pageId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['pageId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n * @internal\n * @documentationMaturity preview\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages\n */\nexport function queryPublishedPages(): PublishedPagesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n PublishedPage,\n 'CURSOR',\n QueryPublishedPagesRequest,\n QueryPublishedPagesResponse\n >({\n func: async (payload: QueryPublishedPagesRequest) => {\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.queryPublishedPages(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryPublishedPagesRequest['query']) => {\n const args = [query, {}] as [QueryPublishedPagesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryPublishedPagesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.publishedPages,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface PublishedPagesQueryResult extends QueryCursorResult {\n items: PublishedPage[];\n query: PublishedPagesQueryBuilder;\n next: () => Promise<PublishedPagesQueryResult>;\n prev: () => Promise<PublishedPagesQueryResult>;\n}\n\nexport interface PublishedPagesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: '_id',\n value: string\n ) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (propertyName: '_id', value: any[]) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n in: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n exists: (propertyName: '_id', value: boolean) => PublishedPagesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => PublishedPagesQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<PublishedPagesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages\n * @requiredField query\n */\nexport async function typedQueryPublishedPages(\n query: PublishedPageQuery\n): Promise<\n NonNullablePaths<\n QueryPublishedPagesResponse,\n | `publishedPages`\n | `publishedPages.${number}.pageId`\n | `publishedPages.${number}.contentId`\n | `publishedPages.${number}.slug`,\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({ query: query });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.queryPublishedPages(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface PublishedPageQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['_id'];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n PublishedPage,\n PublishedPageQuerySpec\n>;\nexport type PublishedPageQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object in the following format:\n `\"filter\" : {\n \"fieldName1\": \"value1\",\n \"fieldName2\":{\"$operator\":\"value2\"}\n }`\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object in the following format:\n `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]` \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/quick-pages/v1/published-pages',\n destPath: '/v1/published-pages',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/quick-pages/v1/published-pages',\n destPath: '/v1/published-pages',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_quick-pages_published-pages';\n\n/** Retrieves a PublishedPage. */\nexport function getPublishedPage(payload: object): RequestOptionsFactory<any> {\n function __getPublishedPage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPage',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{publishedPageId}',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPage;\n}\n\n/** Retrieves a PublishedPage by slug. */\nexport function getPublishedPageBySlug(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPublishedPageBySlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageBySlug',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{slug}/slug',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPageBySlug;\n}\n\n/** Retrieves a PublishedPage by slug. */\nexport function getPublishedPageByPageId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPublishedPageByPageId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageByPageId',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{pageId}/page-id',\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: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPageByPageId;\n}\n\n/**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\nexport function queryPublishedPages(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPublishedPages({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'publishedPages.createdDate' },\n { path: 'publishedPages.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryPublishedPages;\n}\n"],"mappings":";;;;;;;;;;;;;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,qEAAsC,EAAE,MAAa,CAAC;AAEtE,QAAM,UACmC,oBAAoB,OAAO;AAEpE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAA;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,OAAO,OAAO;AAAA,QAC1C,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,OAAO;AAAA,IACV;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["getPublishedPage","getPublishedPageByPageId","getPublishedPageBySlug","queryPublishedPages","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","getPublishedPage","sdkTransformError","getPublishedPageBySlug","getPublishedPageByPageId","queryPublishedPages"]}
|
package/build/cjs/meta.d.ts
CHANGED
|
@@ -251,6 +251,8 @@ interface MessageEnvelope {
|
|
|
251
251
|
identity?: IdentificationData;
|
|
252
252
|
/** Stringify payload. */
|
|
253
253
|
data?: string;
|
|
254
|
+
/** Details related to the account */
|
|
255
|
+
accountInfo?: AccountInfo;
|
|
254
256
|
}
|
|
255
257
|
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
256
258
|
/**
|
|
@@ -308,19 +310,19 @@ declare enum WebhookIdentityType {
|
|
|
308
310
|
}
|
|
309
311
|
/** @enumType */
|
|
310
312
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
311
|
-
interface
|
|
313
|
+
interface AccountInfo {
|
|
312
314
|
/**
|
|
313
|
-
* ID of the account.
|
|
315
|
+
* ID of the Wix account associated with the event.
|
|
314
316
|
* @format GUID
|
|
315
317
|
*/
|
|
316
318
|
accountId?: string | null;
|
|
317
319
|
/**
|
|
318
|
-
* ID of the parent account.
|
|
320
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
319
321
|
* @format GUID
|
|
320
322
|
*/
|
|
321
323
|
parentAccountId?: string | null;
|
|
322
324
|
/**
|
|
323
|
-
* ID of the site
|
|
325
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
324
326
|
* @format GUID
|
|
325
327
|
*/
|
|
326
328
|
siteId?: string | null;
|
|
@@ -347,4 +349,4 @@ declare function getPublishedPageByPageId(): __PublicMethodMetaInfo<'GET', {
|
|
|
347
349
|
}, GetPublishedPageByPageIdRequest$1, GetPublishedPageByPageIdRequest, GetPublishedPageByPageIdResponse$1, GetPublishedPageByPageIdResponse>;
|
|
348
350
|
declare function queryPublishedPages(): __PublicMethodMetaInfo<'GET', {}, QueryPublishedPagesRequest$1, QueryPublishedPagesRequest, QueryPublishedPagesResponse$1, QueryPublishedPagesResponse>;
|
|
349
351
|
|
|
350
|
-
export { type
|
|
352
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetPublishedPageByPageIdRequest as GetPublishedPageByPageIdRequestOriginal, type GetPublishedPageByPageIdResponse as GetPublishedPageByPageIdResponseOriginal, type GetPublishedPageBySlugRequest as GetPublishedPageBySlugRequestOriginal, type GetPublishedPageBySlugResponse as GetPublishedPageBySlugResponseOriginal, type GetPublishedPageRequest as GetPublishedPageRequestOriginal, type GetPublishedPageResponse as GetPublishedPageResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PublishedPage as PublishedPageOriginal, type QueryPublishedPagesRequest as QueryPublishedPagesRequestOriginal, type QueryPublishedPagesResponse as QueryPublishedPagesResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getPublishedPage, getPublishedPageByPageId, getPublishedPageBySlug, queryPublishedPages };
|