@wix/auto_sdk_sites_sites 1.0.12 → 1.0.14
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/index.d.mts +27 -0
- package/build/index.d.ts +27 -0
- package/build/index.js +320 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +292 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +27 -0
- package/build/internal/index.d.ts +27 -0
- package/build/internal/index.js +320 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +292 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/site-list-v2-site-sites.types.d.ts → internal/meta.d.mts} +34 -17
- package/build/internal/{cjs/src/site-list-v2-site-sites.types.d.ts → meta.d.ts} +34 -17
- package/build/internal/meta.js +227 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +199 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/internal/site-list-v2-site-sites.universal-DMSHEe0v.d.mts +274 -0
- package/build/internal/site-list-v2-site-sites.universal-DMSHEe0v.d.ts +274 -0
- package/build/{internal/es/src/site-list-v2-site-sites.types.d.ts → meta.d.mts} +34 -17
- package/build/{cjs/src/site-list-v2-site-sites.types.d.ts → meta.d.ts} +34 -17
- package/build/meta.js +227 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +199 -0
- package/build/meta.mjs.map +1 -0
- package/build/site-list-v2-site-sites.universal-DMSHEe0v.d.mts +274 -0
- package/build/site-list-v2-site-sites.universal-DMSHEe0v.d.ts +274 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/site-list-v2-site-sites.context.d.ts +0 -6
- package/build/cjs/src/site-list-v2-site-sites.context.js +0 -12
- package/build/cjs/src/site-list-v2-site-sites.context.js.map +0 -1
- package/build/cjs/src/site-list-v2-site-sites.http.d.ts +0 -13
- package/build/cjs/src/site-list-v2-site-sites.http.js +0 -165
- package/build/cjs/src/site-list-v2-site-sites.http.js.map +0 -1
- package/build/cjs/src/site-list-v2-site-sites.meta.d.ts +0 -14
- package/build/cjs/src/site-list-v2-site-sites.meta.js +0 -66
- package/build/cjs/src/site-list-v2-site-sites.meta.js.map +0 -1
- package/build/cjs/src/site-list-v2-site-sites.public.d.ts +0 -24
- package/build/cjs/src/site-list-v2-site-sites.public.js +0 -22
- package/build/cjs/src/site-list-v2-site-sites.public.js.map +0 -1
- package/build/cjs/src/site-list-v2-site-sites.types.js +0 -102
- package/build/cjs/src/site-list-v2-site-sites.types.js.map +0 -1
- package/build/cjs/src/site-list-v2-site-sites.universal.d.ts +0 -295
- package/build/cjs/src/site-list-v2-site-sites.universal.js +0 -192
- package/build/cjs/src/site-list-v2-site-sites.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/site-list-v2-site-sites.context.d.ts +0 -6
- package/build/es/src/site-list-v2-site-sites.context.js +0 -6
- package/build/es/src/site-list-v2-site-sites.context.js.map +0 -1
- package/build/es/src/site-list-v2-site-sites.http.d.ts +0 -13
- package/build/es/src/site-list-v2-site-sites.http.js +0 -160
- package/build/es/src/site-list-v2-site-sites.http.js.map +0 -1
- package/build/es/src/site-list-v2-site-sites.meta.d.ts +0 -14
- package/build/es/src/site-list-v2-site-sites.meta.js +0 -38
- package/build/es/src/site-list-v2-site-sites.meta.js.map +0 -1
- package/build/es/src/site-list-v2-site-sites.public.d.ts +0 -24
- package/build/es/src/site-list-v2-site-sites.public.js +0 -14
- package/build/es/src/site-list-v2-site-sites.public.js.map +0 -1
- package/build/es/src/site-list-v2-site-sites.types.js +0 -99
- package/build/es/src/site-list-v2-site-sites.types.js.map +0 -1
- package/build/es/src/site-list-v2-site-sites.universal.d.ts +0 -295
- package/build/es/src/site-list-v2-site-sites.universal.js +0 -164
- package/build/es/src/site-list-v2-site-sites.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/site-list-v2-site-sites.context.d.ts +0 -6
- package/build/internal/cjs/src/site-list-v2-site-sites.context.js +0 -12
- package/build/internal/cjs/src/site-list-v2-site-sites.context.js.map +0 -1
- package/build/internal/cjs/src/site-list-v2-site-sites.http.d.ts +0 -13
- package/build/internal/cjs/src/site-list-v2-site-sites.http.js +0 -165
- package/build/internal/cjs/src/site-list-v2-site-sites.http.js.map +0 -1
- package/build/internal/cjs/src/site-list-v2-site-sites.meta.d.ts +0 -14
- package/build/internal/cjs/src/site-list-v2-site-sites.meta.js +0 -66
- package/build/internal/cjs/src/site-list-v2-site-sites.meta.js.map +0 -1
- package/build/internal/cjs/src/site-list-v2-site-sites.public.d.ts +0 -24
- package/build/internal/cjs/src/site-list-v2-site-sites.public.js +0 -22
- package/build/internal/cjs/src/site-list-v2-site-sites.public.js.map +0 -1
- package/build/internal/cjs/src/site-list-v2-site-sites.types.js +0 -102
- package/build/internal/cjs/src/site-list-v2-site-sites.types.js.map +0 -1
- package/build/internal/cjs/src/site-list-v2-site-sites.universal.d.ts +0 -295
- package/build/internal/cjs/src/site-list-v2-site-sites.universal.js +0 -192
- package/build/internal/cjs/src/site-list-v2-site-sites.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/site-list-v2-site-sites.context.d.ts +0 -6
- package/build/internal/es/src/site-list-v2-site-sites.context.js +0 -6
- package/build/internal/es/src/site-list-v2-site-sites.context.js.map +0 -1
- package/build/internal/es/src/site-list-v2-site-sites.http.d.ts +0 -13
- package/build/internal/es/src/site-list-v2-site-sites.http.js +0 -160
- package/build/internal/es/src/site-list-v2-site-sites.http.js.map +0 -1
- package/build/internal/es/src/site-list-v2-site-sites.meta.d.ts +0 -14
- package/build/internal/es/src/site-list-v2-site-sites.meta.js +0 -38
- package/build/internal/es/src/site-list-v2-site-sites.meta.js.map +0 -1
- package/build/internal/es/src/site-list-v2-site-sites.public.d.ts +0 -24
- package/build/internal/es/src/site-list-v2-site-sites.public.js +0 -14
- package/build/internal/es/src/site-list-v2-site-sites.public.js.map +0 -1
- package/build/internal/es/src/site-list-v2-site-sites.types.js +0 -99
- package/build/internal/es/src/site-list-v2-site-sites.types.js.map +0 -1
- package/build/internal/es/src/site-list-v2-site-sites.universal.d.ts +0 -295
- package/build/internal/es/src/site-list-v2-site-sites.universal.js +0 -164
- package/build/internal/es/src/site-list-v2-site-sites.universal.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/site-list-v2-site-sites.universal.ts","../../src/site-list-v2-site-sites.http.ts","../../src/site-list-v2-site-sites.public.ts","../../src/site-list-v2-site-sites.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixSiteListV2Site from './site-list-v2-site-sites.http.js';\n\nexport interface Site {\n /**\n * Site ID.\n * @format GUID\n */\n _id?: string;\n /**\n * HTML app ID for the site.\n * @format GUID\n */\n htmlAppId?: string | null;\n /** Site name. Used in the site's URL. */\n name?: string;\n /** Site display name. Used for display purposes, such as in the browser's tab name. */\n displayName?: string;\n /** Site creation date. */\n _createdDate?: Date | null;\n /** Site updated date. */\n _updatedDate?: Date | null;\n /** Site trashed date. */\n trashedDate?: Date | null;\n /** Whether the site is published. */\n published?: boolean;\n /** Whether the site has a Wix Premium (paid) plan. */\n premium?: boolean;\n /** Live site URL. */\n viewUrl?: string;\n /** Editor site URL. */\n editUrl?: string;\n /** Site thumbnail. */\n thumbnail?: string;\n /**\n * Site owner's account ID.\n * @format GUID\n */\n ownerAccountId?: string;\n /**\n * Site contributors' account IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 1000\n */\n contributorAccountIds?: string[];\n /** Site's Wix editor type. */\n editorType?: EditorTypeWithLiterals;\n /** Whether Wix has blocked this site due to legal issues. */\n blocked?: boolean;\n /**\n * Folder ID that contains this site. Empty if site is at root level.\n * @format GUID\n */\n folderId?: string | null;\n /** Namespace of the site, for internal use. */\n namespace?: NamespaceWithLiterals;\n /** Whether the site has a connected domain. */\n domainConnected?: boolean;\n}\n\nexport enum EditorType {\n UNKNOWN = 'UNKNOWN',\n EDITOR = 'EDITOR',\n ADI = 'ADI',\n EDITORX = 'EDITORX',\n STUDIO = 'STUDIO',\n ODEDITOR = 'ODEDITOR',\n PICASSO = 'PICASSO',\n}\n\n/** @enumType */\nexport type EditorTypeWithLiterals =\n | EditorType\n | 'UNKNOWN'\n | 'EDITOR'\n | 'ADI'\n | 'EDITORX'\n | 'STUDIO'\n | 'ODEDITOR'\n | 'PICASSO';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR';\n\nexport interface QuerySitesRequest {\n /**\n * Filter and sorting with the following format:\n * `\"filter\" : { \"displayName\": \"my-site\" }`\n */\n query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /**\n * Paging options to limit and offset the number of items.\n * wix.common.Paging paging = 3;\n * Cursor token pointing to a page of results. Used in all calls following the first request.\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object with the following format:\n * `\"filter\" : {\n * \"displayName\": \"my-site\",\n * \"namespace\":{\"$in\":[\"value1\", \"value2\"]},\n * \"folderId\": {\"$exists\": false}\n * }`\n * Example of operators: `$in`, `$hasSome`, `$hasAll`, `$exists`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object with the following format:\n * `[{\"fieldName\":\"displayName\",\"order\":\"ASC\"},{\"fieldName\":\"createdDate\",\"order\":\"DESC\"}]`\n * @maxSize 4\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /**\n * Paging options to limit and offset the number of items.\n * wix.common.Paging paging = 3;\n * Cursor token pointing to a page of results. Used in all calls following the first request.\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface 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 QuerySitesResponse {\n /** List of retrieved sites. */\n sites?: Site[];\n /**\n * Paging information.\n * @deprecated\n */\n cursorPaging?: CursorPaging;\n /** Meta data about the returned sites */\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n}\n\nexport interface CountSitesRequest {\n /**\n * Filter object. See [Filter and Sort](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort) documentation.\n * Note: the `premium` and `appIds` filters are not supported in this endpoint.\n */\n filter?: Record<string, any> | null;\n}\n\nexport interface CountSitesResponse {\n /**\n * Number of sites retrieved basd on the filter.\n * Free Wix accounts are limited to max 1,000 sites.\n * Premium accounts can have an unlimited number of sites.\n */\n count?: number;\n}\n\ntype SiteNonNullablePaths =\n | `_id`\n | `name`\n | `displayName`\n | `published`\n | `premium`\n | `viewUrl`\n | `editUrl`\n | `thumbnail`\n | `ownerAccountId`\n | `contributorAccountIds`\n | `editorType`\n | `blocked`\n | `namespace`\n | `domainConnected`;\n\n/**\n * Retrieves a list of up to 1,000 sites, given the provided [paging, sorting and filtering](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort).\n *\n * > **Important**: You can only call this method when authenticated as a Wix user or by using an account level API key.\n * @public\n * @permissionId SITE_LIST.READ\n * @fqn com.wixpress.sitelist.api.SiteListServiceV2.QuerySites\n */\nexport async function querySites(\n options?: QuerySitesOptions\n): Promise<\n NonNullablePaths<\n QuerySitesResponse,\n {\n [P in SiteNonNullablePaths]: `sites.${number}.${P}`;\n }[SiteNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: options?.query,\n });\n\n const reqOpts = ambassadorWixSiteListV2Site.querySites(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].query' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface QuerySitesOptions {\n /**\n * Filter and sorting with the following format:\n * `\"filter\" : { \"displayName\": \"my-site\" }`\n */\n query?: QueryV2;\n}\n\n/**\n * Retrieves the number of sites, given the provided [filtering](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort).\n *\n * > **Important**: You can only call this method when authenticated as a Wix user or by using an account level API key.\n * @public\n * @permissionId SITE_LIST.READ\n * @fqn com.wixpress.sitelist.api.SiteListServiceV2.CountSites\n */\nexport async function countSites(\n options?: CountSitesOptions\n): Promise<NonNullablePaths<CountSitesResponse, `count`>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n filter: options?.filter,\n });\n\n const reqOpts = ambassadorWixSiteListV2Site.countSites(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: { filter: '$[0].filter' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CountSitesOptions {\n /**\n * Filter object. See [Filter and Sort](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort) documentation.\n * Note: the `premium` and `appIds` filters are not supported in this endpoint.\n */\n filter?: Record<string, any> | null;\n}\n","import { 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 resolveComWixpressSitelistApiSiteListServiceV2Url(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/_api/sites-list',\n destPath: '/api',\n },\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'feedback._base_domain_': [\n {\n srcPath: '/_api/sites-list',\n destPath: '/api',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/sites-list',\n destPath: '/api',\n },\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n {\n srcPath: '/_api/sites-list-data',\n destPath: '/api/sites-list-data',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/site-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/sites-list',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'online.codux.com': [\n {\n srcPath: '/_api/sites-list',\n destPath: '',\n },\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/site-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_sites_sites';\n\n/**\n * Retrieves a list of up to 1,000 sites, given the provided [paging, sorting and filtering](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort).\n *\n * > **Important**: You can only call this method when authenticated as a Wix user or by using an account level API key.\n */\nexport function querySites(payload: object): RequestOptionsFactory<any> {\n function __querySites({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.site_list.v2.site',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.sitelist.api.SiteListServiceV2.QuerySites',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSitelistApiSiteListServiceV2Url({\n protoPath: '/v2/sites/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'sites.createdDate' },\n { path: 'sites.updatedDate' },\n { path: 'sites.trashedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __querySites;\n}\n\n/**\n * Retrieves the number of sites, given the provided [filtering](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort).\n *\n * > **Important**: You can only call this method when authenticated as a Wix user or by using an account level API key.\n */\nexport function countSites(payload: object): RequestOptionsFactory<any> {\n function __countSites({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.site_list.v2.site',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.sitelist.api.SiteListServiceV2.CountSites',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSitelistApiSiteListServiceV2Url({\n protoPath: '/v2/sites/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countSites;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n CountSitesOptions,\n CountSitesResponse,\n QuerySitesOptions,\n QuerySitesResponse,\n countSites as universalCountSites,\n querySites as universalQuerySites,\n} from './site-list-v2-site-sites.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/sites' };\n\nexport function querySites(httpClient: HttpClient): QuerySitesSignature {\n return (options?: QuerySitesOptions) =>\n universalQuerySites(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QuerySitesSignature {\n /**\n * Retrieves a list of up to 1,000 sites, given the provided [paging, sorting and filtering](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort).\n *\n * > **Important**: You can only call this method when authenticated as a Wix user or by using an account level API key.\n */\n (options?: QuerySitesOptions | undefined): Promise<QuerySitesResponse>;\n}\n\nexport function countSites(httpClient: HttpClient): CountSitesSignature {\n return (options?: CountSitesOptions) =>\n universalCountSites(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CountSitesSignature {\n /**\n * Retrieves the number of sites, given the provided [filtering](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort).\n *\n * > **Important**: You can only call this method when authenticated as a Wix user or by using an account level API key.\n */\n (options?: CountSitesOptions | undefined): Promise<CountSitesResponse>;\n}\n\nexport {\n CountSitesOptions,\n CountSitesRequest,\n CountSitesResponse,\n CursorPaging,\n Cursors,\n EditorType,\n Namespace,\n PagingMetadataV2,\n QuerySitesOptions,\n QuerySitesRequest,\n QuerySitesResponse,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Site,\n SortOrder,\n Sorting,\n} from './site-list-v2-site-sites.universal.js';\n","import {\n querySites as publicQuerySites,\n countSites as publicCountSites,\n} from './site-list-v2-site-sites.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const querySites: MaybeContext<\n BuildRESTFunction<typeof publicQuerySites> & typeof publicQuerySites\n> = /*#__PURE__*/ createRESTModule(publicQuerySites);\nexport const countSites: MaybeContext<\n BuildRESTFunction<typeof publicCountSites> & typeof publicCountSites\n> = /*#__PURE__*/ createRESTModule(publicCountSites);\n\nexport {\n EditorType,\n Namespace,\n SortOrder,\n} from './site-list-v2-site-sites.universal.js';\nexport {\n Site,\n QuerySitesRequest,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n CursorPaging,\n QuerySitesResponse,\n PagingMetadataV2,\n Cursors,\n CountSitesRequest,\n CountSitesResponse,\n QuerySitesOptions,\n CountSitesOptions,\n} from './site-list-v2-site-sites.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,kDACP,MACA;AACA,QAAM,mBAAmB;AA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AA,EACf;AACJ;;;ACjCA,SAAS,wBAAwB;AAG1B,IAAMC,cAEK,iCAAiBA,WAAgB;AAC5C,IAAMC,cAEK,iCAAiBA,WAAgB;","names":["payload","EditorType","Namespace","SortOrder","querySites","countSites","querySites","countSites","querySites","countSites"]}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { d as QuerySitesRequest$1, a as QuerySitesResponse$1, j as CountSitesRequest$1, b as CountSitesResponse$1 } from './site-list-v2-site-sites.universal-DMSHEe0v.mjs';
|
|
2
|
+
|
|
3
|
+
interface Site {
|
|
2
4
|
/**
|
|
3
5
|
* Site ID.
|
|
4
6
|
* @format GUID
|
|
@@ -55,7 +57,7 @@ export interface Site {
|
|
|
55
57
|
/** Whether the site has a connected domain. */
|
|
56
58
|
domainConnected?: boolean;
|
|
57
59
|
}
|
|
58
|
-
|
|
60
|
+
declare enum EditorType {
|
|
59
61
|
UNKNOWN = "UNKNOWN",
|
|
60
62
|
EDITOR = "EDITOR",
|
|
61
63
|
ADI = "ADI",
|
|
@@ -65,8 +67,8 @@ export declare enum EditorType {
|
|
|
65
67
|
PICASSO = "PICASSO"
|
|
66
68
|
}
|
|
67
69
|
/** @enumType */
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
type EditorTypeWithLiterals = EditorType | 'UNKNOWN' | 'EDITOR' | 'ADI' | 'EDITORX' | 'STUDIO' | 'ODEDITOR' | 'PICASSO';
|
|
71
|
+
declare enum Namespace {
|
|
70
72
|
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
71
73
|
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
72
74
|
WIX = "WIX",
|
|
@@ -149,15 +151,15 @@ export declare enum Namespace {
|
|
|
149
151
|
MIMIR = "MIMIR"
|
|
150
152
|
}
|
|
151
153
|
/** @enumType */
|
|
152
|
-
|
|
153
|
-
|
|
154
|
+
type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR';
|
|
155
|
+
interface QuerySitesRequest {
|
|
154
156
|
/**
|
|
155
157
|
* Filter and sorting with the following format:
|
|
156
158
|
* `"filter" : { "displayName": "my-site" }`
|
|
157
159
|
*/
|
|
158
160
|
query?: QueryV2;
|
|
159
161
|
}
|
|
160
|
-
|
|
162
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
161
163
|
/**
|
|
162
164
|
* Paging options to limit and offset the number of items.
|
|
163
165
|
* wix.common.Paging paging = 3;
|
|
@@ -182,7 +184,7 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
182
184
|
sort?: Sorting[];
|
|
183
185
|
}
|
|
184
186
|
/** @oneof */
|
|
185
|
-
|
|
187
|
+
interface QueryV2PagingMethodOneOf {
|
|
186
188
|
/**
|
|
187
189
|
* Paging options to limit and offset the number of items.
|
|
188
190
|
* wix.common.Paging paging = 3;
|
|
@@ -190,7 +192,7 @@ export interface QueryV2PagingMethodOneOf {
|
|
|
190
192
|
*/
|
|
191
193
|
cursorPaging?: CursorPaging;
|
|
192
194
|
}
|
|
193
|
-
|
|
195
|
+
interface Sorting {
|
|
194
196
|
/**
|
|
195
197
|
* Name of the field to sort by.
|
|
196
198
|
* @maxLength 512
|
|
@@ -199,13 +201,13 @@ export interface Sorting {
|
|
|
199
201
|
/** Sort order. */
|
|
200
202
|
order?: SortOrderWithLiterals;
|
|
201
203
|
}
|
|
202
|
-
|
|
204
|
+
declare enum SortOrder {
|
|
203
205
|
ASC = "ASC",
|
|
204
206
|
DESC = "DESC"
|
|
205
207
|
}
|
|
206
208
|
/** @enumType */
|
|
207
|
-
|
|
208
|
-
|
|
209
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
210
|
+
interface CursorPaging {
|
|
209
211
|
/**
|
|
210
212
|
* Maximum number of items to return in the results.
|
|
211
213
|
* @max 100
|
|
@@ -220,7 +222,7 @@ export interface CursorPaging {
|
|
|
220
222
|
*/
|
|
221
223
|
cursor?: string | null;
|
|
222
224
|
}
|
|
223
|
-
|
|
225
|
+
interface QuerySitesResponse {
|
|
224
226
|
/** List of retrieved sites. */
|
|
225
227
|
sites?: Site[];
|
|
226
228
|
/**
|
|
@@ -231,24 +233,24 @@ export interface QuerySitesResponse {
|
|
|
231
233
|
/** Meta data about the returned sites */
|
|
232
234
|
metadata?: PagingMetadataV2;
|
|
233
235
|
}
|
|
234
|
-
|
|
236
|
+
interface PagingMetadataV2 {
|
|
235
237
|
/** Number of items returned in the response. */
|
|
236
238
|
count?: number | null;
|
|
237
239
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
238
240
|
cursors?: Cursors;
|
|
239
241
|
}
|
|
240
|
-
|
|
242
|
+
interface Cursors {
|
|
241
243
|
/** Cursor pointing to next page in the list of results. */
|
|
242
244
|
next?: string | null;
|
|
243
245
|
}
|
|
244
|
-
|
|
246
|
+
interface CountSitesRequest {
|
|
245
247
|
/**
|
|
246
248
|
* Filter object. See [Filter and Sort](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort) documentation.
|
|
247
249
|
* Note: the `premium` and `appIds` filters are not supported in this endpoint.
|
|
248
250
|
*/
|
|
249
251
|
filter?: Record<string, any> | null;
|
|
250
252
|
}
|
|
251
|
-
|
|
253
|
+
interface CountSitesResponse {
|
|
252
254
|
/**
|
|
253
255
|
* Number of sites retrieved basd on the filter.
|
|
254
256
|
* Free Wix accounts are limited to max 1,000 sites.
|
|
@@ -256,3 +258,18 @@ export interface CountSitesResponse {
|
|
|
256
258
|
*/
|
|
257
259
|
count?: number;
|
|
258
260
|
}
|
|
261
|
+
|
|
262
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
263
|
+
getUrl: (context: any) => string;
|
|
264
|
+
httpMethod: K;
|
|
265
|
+
path: string;
|
|
266
|
+
pathParams: M;
|
|
267
|
+
__requestType: T;
|
|
268
|
+
__originalRequestType: S;
|
|
269
|
+
__responseType: Q;
|
|
270
|
+
__originalResponseType: R;
|
|
271
|
+
};
|
|
272
|
+
declare function querySites(): __PublicMethodMetaInfo<'POST', {}, QuerySitesRequest$1, QuerySitesRequest, QuerySitesResponse$1, QuerySitesResponse>;
|
|
273
|
+
declare function countSites(): __PublicMethodMetaInfo<'POST', {}, CountSitesRequest$1, CountSitesRequest, CountSitesResponse$1, CountSitesResponse>;
|
|
274
|
+
|
|
275
|
+
export { type __PublicMethodMetaInfo, countSites, querySites };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { d as QuerySitesRequest$1, a as QuerySitesResponse$1, j as CountSitesRequest$1, b as CountSitesResponse$1 } from './site-list-v2-site-sites.universal-DMSHEe0v.js';
|
|
2
|
+
|
|
3
|
+
interface Site {
|
|
2
4
|
/**
|
|
3
5
|
* Site ID.
|
|
4
6
|
* @format GUID
|
|
@@ -55,7 +57,7 @@ export interface Site {
|
|
|
55
57
|
/** Whether the site has a connected domain. */
|
|
56
58
|
domainConnected?: boolean;
|
|
57
59
|
}
|
|
58
|
-
|
|
60
|
+
declare enum EditorType {
|
|
59
61
|
UNKNOWN = "UNKNOWN",
|
|
60
62
|
EDITOR = "EDITOR",
|
|
61
63
|
ADI = "ADI",
|
|
@@ -65,8 +67,8 @@ export declare enum EditorType {
|
|
|
65
67
|
PICASSO = "PICASSO"
|
|
66
68
|
}
|
|
67
69
|
/** @enumType */
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
type EditorTypeWithLiterals = EditorType | 'UNKNOWN' | 'EDITOR' | 'ADI' | 'EDITORX' | 'STUDIO' | 'ODEDITOR' | 'PICASSO';
|
|
71
|
+
declare enum Namespace {
|
|
70
72
|
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
71
73
|
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
72
74
|
WIX = "WIX",
|
|
@@ -149,15 +151,15 @@ export declare enum Namespace {
|
|
|
149
151
|
MIMIR = "MIMIR"
|
|
150
152
|
}
|
|
151
153
|
/** @enumType */
|
|
152
|
-
|
|
153
|
-
|
|
154
|
+
type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR';
|
|
155
|
+
interface QuerySitesRequest {
|
|
154
156
|
/**
|
|
155
157
|
* Filter and sorting with the following format:
|
|
156
158
|
* `"filter" : { "displayName": "my-site" }`
|
|
157
159
|
*/
|
|
158
160
|
query?: QueryV2;
|
|
159
161
|
}
|
|
160
|
-
|
|
162
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
161
163
|
/**
|
|
162
164
|
* Paging options to limit and offset the number of items.
|
|
163
165
|
* wix.common.Paging paging = 3;
|
|
@@ -182,7 +184,7 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
182
184
|
sort?: Sorting[];
|
|
183
185
|
}
|
|
184
186
|
/** @oneof */
|
|
185
|
-
|
|
187
|
+
interface QueryV2PagingMethodOneOf {
|
|
186
188
|
/**
|
|
187
189
|
* Paging options to limit and offset the number of items.
|
|
188
190
|
* wix.common.Paging paging = 3;
|
|
@@ -190,7 +192,7 @@ export interface QueryV2PagingMethodOneOf {
|
|
|
190
192
|
*/
|
|
191
193
|
cursorPaging?: CursorPaging;
|
|
192
194
|
}
|
|
193
|
-
|
|
195
|
+
interface Sorting {
|
|
194
196
|
/**
|
|
195
197
|
* Name of the field to sort by.
|
|
196
198
|
* @maxLength 512
|
|
@@ -199,13 +201,13 @@ export interface Sorting {
|
|
|
199
201
|
/** Sort order. */
|
|
200
202
|
order?: SortOrderWithLiterals;
|
|
201
203
|
}
|
|
202
|
-
|
|
204
|
+
declare enum SortOrder {
|
|
203
205
|
ASC = "ASC",
|
|
204
206
|
DESC = "DESC"
|
|
205
207
|
}
|
|
206
208
|
/** @enumType */
|
|
207
|
-
|
|
208
|
-
|
|
209
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
210
|
+
interface CursorPaging {
|
|
209
211
|
/**
|
|
210
212
|
* Maximum number of items to return in the results.
|
|
211
213
|
* @max 100
|
|
@@ -220,7 +222,7 @@ export interface CursorPaging {
|
|
|
220
222
|
*/
|
|
221
223
|
cursor?: string | null;
|
|
222
224
|
}
|
|
223
|
-
|
|
225
|
+
interface QuerySitesResponse {
|
|
224
226
|
/** List of retrieved sites. */
|
|
225
227
|
sites?: Site[];
|
|
226
228
|
/**
|
|
@@ -231,24 +233,24 @@ export interface QuerySitesResponse {
|
|
|
231
233
|
/** Meta data about the returned sites */
|
|
232
234
|
metadata?: PagingMetadataV2;
|
|
233
235
|
}
|
|
234
|
-
|
|
236
|
+
interface PagingMetadataV2 {
|
|
235
237
|
/** Number of items returned in the response. */
|
|
236
238
|
count?: number | null;
|
|
237
239
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
238
240
|
cursors?: Cursors;
|
|
239
241
|
}
|
|
240
|
-
|
|
242
|
+
interface Cursors {
|
|
241
243
|
/** Cursor pointing to next page in the list of results. */
|
|
242
244
|
next?: string | null;
|
|
243
245
|
}
|
|
244
|
-
|
|
246
|
+
interface CountSitesRequest {
|
|
245
247
|
/**
|
|
246
248
|
* Filter object. See [Filter and Sort](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort) documentation.
|
|
247
249
|
* Note: the `premium` and `appIds` filters are not supported in this endpoint.
|
|
248
250
|
*/
|
|
249
251
|
filter?: Record<string, any> | null;
|
|
250
252
|
}
|
|
251
|
-
|
|
253
|
+
interface CountSitesResponse {
|
|
252
254
|
/**
|
|
253
255
|
* Number of sites retrieved basd on the filter.
|
|
254
256
|
* Free Wix accounts are limited to max 1,000 sites.
|
|
@@ -256,3 +258,18 @@ export interface CountSitesResponse {
|
|
|
256
258
|
*/
|
|
257
259
|
count?: number;
|
|
258
260
|
}
|
|
261
|
+
|
|
262
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
263
|
+
getUrl: (context: any) => string;
|
|
264
|
+
httpMethod: K;
|
|
265
|
+
path: string;
|
|
266
|
+
pathParams: M;
|
|
267
|
+
__requestType: T;
|
|
268
|
+
__originalRequestType: S;
|
|
269
|
+
__responseType: Q;
|
|
270
|
+
__originalResponseType: R;
|
|
271
|
+
};
|
|
272
|
+
declare function querySites(): __PublicMethodMetaInfo<'POST', {}, QuerySitesRequest$1, QuerySitesRequest, QuerySitesResponse$1, QuerySitesResponse>;
|
|
273
|
+
declare function countSites(): __PublicMethodMetaInfo<'POST', {}, CountSitesRequest$1, CountSitesRequest, CountSitesResponse$1, CountSitesResponse>;
|
|
274
|
+
|
|
275
|
+
export { type __PublicMethodMetaInfo, countSites, querySites };
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// meta.ts
|
|
21
|
+
var meta_exports = {};
|
|
22
|
+
__export(meta_exports, {
|
|
23
|
+
countSites: () => countSites2,
|
|
24
|
+
querySites: () => querySites2
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(meta_exports);
|
|
27
|
+
|
|
28
|
+
// src/site-list-v2-site-sites.http.ts
|
|
29
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
30
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
32
|
+
function resolveComWixpressSitelistApiSiteListServiceV2Url(opts) {
|
|
33
|
+
const domainToMappings = {
|
|
34
|
+
"www._base_domain_": [
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/_api/sites-list",
|
|
37
|
+
destPath: "/api"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
srcPath: "/_api/sites-list/v2/sites",
|
|
41
|
+
destPath: "/v2/sites"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"feedback._base_domain_": [
|
|
45
|
+
{
|
|
46
|
+
srcPath: "/_api/sites-list",
|
|
47
|
+
destPath: "/api"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"manage._base_domain_": [
|
|
51
|
+
{
|
|
52
|
+
srcPath: "/_api/sites-list",
|
|
53
|
+
destPath: "/api"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
srcPath: "/_api/sites-list/v2/sites",
|
|
57
|
+
destPath: "/v2/sites"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
srcPath: "/_api/sites-list-data",
|
|
61
|
+
destPath: "/api/sites-list-data"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"www.wixapis.com": [
|
|
65
|
+
{
|
|
66
|
+
srcPath: "/site-list/v2/sites",
|
|
67
|
+
destPath: "/v2/sites"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"api._api_base_domain_": [
|
|
71
|
+
{
|
|
72
|
+
srcPath: "/sites-list",
|
|
73
|
+
destPath: ""
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"bo._base_domain_": [
|
|
77
|
+
{
|
|
78
|
+
srcPath: "/_api/sites-list/v2/sites",
|
|
79
|
+
destPath: "/v2/sites"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"wixbo.ai": [
|
|
83
|
+
{
|
|
84
|
+
srcPath: "/_api/sites-list/v2/sites",
|
|
85
|
+
destPath: "/v2/sites"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"wix-bo.com": [
|
|
89
|
+
{
|
|
90
|
+
srcPath: "/_api/sites-list/v2/sites",
|
|
91
|
+
destPath: "/v2/sites"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"dev._base_domain_": [
|
|
95
|
+
{
|
|
96
|
+
srcPath: "/_api/sites-list/v2/sites",
|
|
97
|
+
destPath: "/v2/sites"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"editor._base_domain_": [
|
|
101
|
+
{
|
|
102
|
+
srcPath: "/_api/sites-list/v2/sites",
|
|
103
|
+
destPath: "/v2/sites"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"blocks._base_domain_": [
|
|
107
|
+
{
|
|
108
|
+
srcPath: "/_api/sites-list/v2/sites",
|
|
109
|
+
destPath: "/v2/sites"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"create.editorx": [
|
|
113
|
+
{
|
|
114
|
+
srcPath: "/_api/sites-list/v2/sites",
|
|
115
|
+
destPath: "/v2/sites"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"online.codux.com": [
|
|
119
|
+
{
|
|
120
|
+
srcPath: "/_api/sites-list",
|
|
121
|
+
destPath: ""
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
srcPath: "/_api/sites-list/v2/sites",
|
|
125
|
+
destPath: "/v2/sites"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"*.dev.wix-code.com": [
|
|
129
|
+
{
|
|
130
|
+
srcPath: "/site-list/v2/sites",
|
|
131
|
+
destPath: "/v2/sites"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
};
|
|
135
|
+
return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
136
|
+
}
|
|
137
|
+
var PACKAGE_NAME = "@wix/auto_sdk_sites_sites";
|
|
138
|
+
function querySites(payload) {
|
|
139
|
+
function __querySites({ host }) {
|
|
140
|
+
const metadata = {
|
|
141
|
+
entityFqdn: "wix.site_list.v2.site",
|
|
142
|
+
method: "POST",
|
|
143
|
+
methodFqn: "com.wixpress.sitelist.api.SiteListServiceV2.QuerySites",
|
|
144
|
+
packageName: PACKAGE_NAME,
|
|
145
|
+
url: resolveComWixpressSitelistApiSiteListServiceV2Url({
|
|
146
|
+
protoPath: "/v2/sites/query",
|
|
147
|
+
data: payload,
|
|
148
|
+
host
|
|
149
|
+
}),
|
|
150
|
+
data: payload,
|
|
151
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
152
|
+
{
|
|
153
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
154
|
+
paths: [
|
|
155
|
+
{ path: "sites.createdDate" },
|
|
156
|
+
{ path: "sites.updatedDate" },
|
|
157
|
+
{ path: "sites.trashedDate" }
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
])
|
|
161
|
+
};
|
|
162
|
+
return metadata;
|
|
163
|
+
}
|
|
164
|
+
return __querySites;
|
|
165
|
+
}
|
|
166
|
+
function countSites(payload) {
|
|
167
|
+
function __countSites({ host }) {
|
|
168
|
+
const metadata = {
|
|
169
|
+
entityFqdn: "wix.site_list.v2.site",
|
|
170
|
+
method: "POST",
|
|
171
|
+
methodFqn: "com.wixpress.sitelist.api.SiteListServiceV2.CountSites",
|
|
172
|
+
packageName: PACKAGE_NAME,
|
|
173
|
+
url: resolveComWixpressSitelistApiSiteListServiceV2Url({
|
|
174
|
+
protoPath: "/v2/sites/count",
|
|
175
|
+
data: payload,
|
|
176
|
+
host
|
|
177
|
+
}),
|
|
178
|
+
data: payload
|
|
179
|
+
};
|
|
180
|
+
return metadata;
|
|
181
|
+
}
|
|
182
|
+
return __countSites;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// src/site-list-v2-site-sites.meta.ts
|
|
186
|
+
function querySites2() {
|
|
187
|
+
const payload = {};
|
|
188
|
+
const getRequestOptions = querySites(payload);
|
|
189
|
+
const getUrl = (context) => {
|
|
190
|
+
const { url } = getRequestOptions(context);
|
|
191
|
+
return url;
|
|
192
|
+
};
|
|
193
|
+
return {
|
|
194
|
+
getUrl,
|
|
195
|
+
httpMethod: "POST",
|
|
196
|
+
path: "/v2/sites/query",
|
|
197
|
+
pathParams: {},
|
|
198
|
+
__requestType: null,
|
|
199
|
+
__originalRequestType: null,
|
|
200
|
+
__responseType: null,
|
|
201
|
+
__originalResponseType: null
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
function countSites2() {
|
|
205
|
+
const payload = {};
|
|
206
|
+
const getRequestOptions = countSites(payload);
|
|
207
|
+
const getUrl = (context) => {
|
|
208
|
+
const { url } = getRequestOptions(context);
|
|
209
|
+
return url;
|
|
210
|
+
};
|
|
211
|
+
return {
|
|
212
|
+
getUrl,
|
|
213
|
+
httpMethod: "POST",
|
|
214
|
+
path: "/v2/sites/count",
|
|
215
|
+
pathParams: {},
|
|
216
|
+
__requestType: null,
|
|
217
|
+
__originalRequestType: null,
|
|
218
|
+
__responseType: null,
|
|
219
|
+
__originalResponseType: null
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
223
|
+
0 && (module.exports = {
|
|
224
|
+
countSites,
|
|
225
|
+
querySites
|
|
226
|
+
});
|
|
227
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/site-list-v2-site-sites.http.ts","../../src/site-list-v2-site-sites.meta.ts"],"sourcesContent":["export * from './src/site-list-v2-site-sites.meta.js';\n","import { 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 resolveComWixpressSitelistApiSiteListServiceV2Url(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/_api/sites-list',\n destPath: '/api',\n },\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'feedback._base_domain_': [\n {\n srcPath: '/_api/sites-list',\n destPath: '/api',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/sites-list',\n destPath: '/api',\n },\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n {\n srcPath: '/_api/sites-list-data',\n destPath: '/api/sites-list-data',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/site-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/sites-list',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n 'online.codux.com': [\n {\n srcPath: '/_api/sites-list',\n destPath: '',\n },\n {\n srcPath: '/_api/sites-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/site-list/v2/sites',\n destPath: '/v2/sites',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_sites_sites';\n\n/**\n * Retrieves a list of up to 1,000 sites, given the provided [paging, sorting and filtering](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort).\n *\n * > **Important**: You can only call this method when authenticated as a Wix user or by using an account level API key.\n */\nexport function querySites(payload: object): RequestOptionsFactory<any> {\n function __querySites({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.site_list.v2.site',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.sitelist.api.SiteListServiceV2.QuerySites',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSitelistApiSiteListServiceV2Url({\n protoPath: '/v2/sites/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'sites.createdDate' },\n { path: 'sites.updatedDate' },\n { path: 'sites.trashedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __querySites;\n}\n\n/**\n * Retrieves the number of sites, given the provided [filtering](https://dev.wix.com/api/rest/account-level-apis/sites/filter-&-sort).\n *\n * > **Important**: You can only call this method when authenticated as a Wix user or by using an account level API key.\n */\nexport function countSites(payload: object): RequestOptionsFactory<any> {\n function __countSites({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.site_list.v2.site',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.sitelist.api.SiteListServiceV2.CountSites',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressSitelistApiSiteListServiceV2Url({\n protoPath: '/v2/sites/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countSites;\n}\n","import * as ambassadorWixSiteListV2Site from './site-list-v2-site-sites.http.js';\nimport * as ambassadorWixSiteListV2SiteTypes from './site-list-v2-site-sites.types.js';\nimport * as ambassadorWixSiteListV2SiteUniversalTypes from './site-list-v2-site-sites.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function querySites(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixSiteListV2SiteUniversalTypes.QuerySitesRequest,\n ambassadorWixSiteListV2SiteTypes.QuerySitesRequest,\n ambassadorWixSiteListV2SiteUniversalTypes.QuerySitesResponse,\n ambassadorWixSiteListV2SiteTypes.QuerySitesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixSiteListV2Site.querySites(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/sites/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function countSites(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixSiteListV2SiteUniversalTypes.CountSitesRequest,\n ambassadorWixSiteListV2SiteTypes.CountSitesRequest,\n ambassadorWixSiteListV2SiteUniversalTypes.CountSitesResponse,\n ambassadorWixSiteListV2SiteTypes.CountSitesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixSiteListV2Site.countSites(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/sites/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,oBAAAA;AAAA,EAAA,kBAAAC;AAAA;AAAA;;;ACAA,uBAAqD;AACrD,6BAA+B;AAC/B,0BAA2B;AAI3B,SAAS,kDACP,MACA;AACA,QAAM,mBAAm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