@wix/auto_sdk_metro_products 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/cjs/index.d.ts +5 -7
- package/build/cjs/index.js +17 -291
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +65 -3
- package/build/cjs/index.typings.js +17 -291
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +9 -291
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +5 -7
- package/build/es/index.mjs +14 -291
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +65 -3
- package/build/es/index.typings.mjs +14 -291
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +9 -291
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +5 -7
- package/build/internal/cjs/index.js +17 -291
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +65 -3
- package/build/internal/cjs/index.typings.js +17 -291
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +9 -291
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +5 -7
- package/build/internal/es/index.mjs +14 -291
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +65 -3
- package/build/internal/es/index.typings.mjs +14 -291
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +9 -291
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/metroinspector-v1-product-products.universal.ts","../../../src/metroinspector-v1-product-products.http.ts"],"sourcesContent":["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 { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixMetroinspectorV1Product from './metroinspector-v1-product-products.http.js';\n// @ts-ignore\nimport { transformSDKAudioToRESTAudio } from '@wix/sdk-runtime/transformations/audio';\nimport { transformRESTAudioToSDKAudio } from '@wix/sdk-runtime/transformations/audio';\nimport { transformSDKAddressToRESTAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformSDKVideoV2ToRESTVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformSDKDocumentToRESTDocument } from '@wix/sdk-runtime/transformations/document';\nimport { transformRESTDocumentToSDKDocument } from '@wix/sdk-runtime/transformations/document';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Product {\n title?: string | null;\n _id?: string;\n collectionId?: string;\n _createdDate?: Date | null;\n modifiedDate?: Date | null;\n image?: string;\n address?: Address;\n document?: string;\n video?: string;\n pageLink?: PageLink;\n audio?: string;\n /** @format COLOR_HEX */\n color?: string | null;\n /** @format LOCAL_DATE */\n localDate?: string | null;\n /** @format LOCAL_TIME */\n localTime?: string | null;\n /** @format LOCAL_DATE_TIME */\n localDateTime?: string | null;\n variants?: Variant[];\n mainVariant?: Variant;\n customAddress?: MyAddress;\n /**\n * @readonly\n * @format GUID\n */\n guid?: string;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\n/** Physical address */\nexport interface Address extends AddressStreetOneOf {\n /** Street name and number. */\n streetAddress?: StreetAddress;\n /** Main address line, usually street and number as free text. */\n addressLine1?: string | null;\n /**\n * Country code.\n * @format COUNTRY\n */\n country?: string | null;\n /** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */\n subdivision?: string | null;\n /** City name. */\n city?: string | null;\n /** Zip/postal code. */\n postalCode?: string | null;\n /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */\n addressLine2?: string | null;\n}\n\n/** @oneof */\nexport interface AddressStreetOneOf {\n /** Street name and number. */\n streetAddress?: StreetAddress;\n /** Main address line, usually street and number as free text. */\n addressLine?: string | null;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface Subdivision {\n /** Short subdivision code. */\n code?: string;\n /** Subdivision full name. */\n name?: string;\n}\n\nexport enum SubdivisionType {\n UNKNOWN_SUBDIVISION_TYPE = 'UNKNOWN_SUBDIVISION_TYPE',\n /** State */\n ADMINISTRATIVE_AREA_LEVEL_1 = 'ADMINISTRATIVE_AREA_LEVEL_1',\n /** County */\n ADMINISTRATIVE_AREA_LEVEL_2 = 'ADMINISTRATIVE_AREA_LEVEL_2',\n /** City/town */\n ADMINISTRATIVE_AREA_LEVEL_3 = 'ADMINISTRATIVE_AREA_LEVEL_3',\n /** Neighborhood/quarter */\n ADMINISTRATIVE_AREA_LEVEL_4 = 'ADMINISTRATIVE_AREA_LEVEL_4',\n /** Street/block */\n ADMINISTRATIVE_AREA_LEVEL_5 = 'ADMINISTRATIVE_AREA_LEVEL_5',\n /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */\n COUNTRY = 'COUNTRY',\n}\n\n/** @enumType */\nexport type SubdivisionTypeWithLiterals =\n | SubdivisionType\n | 'UNKNOWN_SUBDIVISION_TYPE'\n | 'ADMINISTRATIVE_AREA_LEVEL_1'\n | 'ADMINISTRATIVE_AREA_LEVEL_2'\n | 'ADMINISTRATIVE_AREA_LEVEL_3'\n | 'ADMINISTRATIVE_AREA_LEVEL_4'\n | 'ADMINISTRATIVE_AREA_LEVEL_5'\n | 'COUNTRY';\n\n/** Subdivision Concordance values */\nexport interface StandardDetails {\n /**\n * subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30\n * @maxLength 20\n */\n iso31662?: string | null;\n}\n\nexport interface VideoResolution {\n /** Video URL. */\n url?: string;\n /** Video height. */\n height?: number;\n /** Video width. */\n width?: number;\n /** Video format for example, mp4, hls. */\n format?: string;\n}\n\nexport interface PageLink {\n /** The page id we want from the site */\n pageId?: string;\n /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */\n target?: string | null;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\n/**\n * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.\n * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel\n * Following are the accepted 'rel' types by Wix applications.\n */\nexport enum LinkRel {\n /** default (not implemented) */\n unknown_link_rel = 'unknown_link_rel',\n /** Indicates that the current document's original author or publisher does not endorse the referenced document. */\n nofollow = 'nofollow',\n /** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */\n noopener = 'noopener',\n /** No Referer header will be included. Additionally, has the same effect as noopener. */\n noreferrer = 'noreferrer',\n /** Indicates a link that resulted from advertisements or paid placements. */\n sponsored = 'sponsored',\n}\n\n/** @enumType */\nexport type LinkRelWithLiterals =\n | LinkRel\n | 'unknown_link_rel'\n | 'nofollow'\n | 'noopener'\n | 'noreferrer'\n | 'sponsored';\n\nexport interface Variant {\n name?: string;\n value?: string;\n image?: string;\n}\n\nexport interface MyAddress {\n /** @format COUNTRY */\n country?: string | null;\n subdivision?: string | null;\n city?: string | null;\n postalCode?: string | null;\n streetAddress?: StreetAddress;\n}\n\nexport interface CreateProductRequest {\n product?: Product;\n}\n\nexport interface CreateProductResponse {\n product?: Product;\n}\n\nexport interface DeleteProductRequest {\n productId: string;\n}\n\nexport interface DeleteProductResponse {}\n\nexport interface UpdateProductRequest {\n productId: string;\n product?: Product;\n /** Explicit list of fields to update. */\n mask?: string[];\n}\n\nexport interface UpdateProductResponse {\n product?: Product;\n}\n\nexport interface GetProductRequest {\n productId: string;\n}\n\nexport interface GetProductResponse {\n product?: Product;\n}\n\nexport interface CountProductsRequest {\n filter?: Record<string, any> | null;\n /** Whether variants should be included in the response. */\n includeVariants?: boolean;\n /** Whether hidden products should be included in the response. Requires permissions to manage products. */\n includeHiddenProducts?: boolean;\n /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */\n includeMerchantSpecificData?: boolean;\n}\n\nexport interface CountProductsResponse {\n count?: number;\n}\n\nexport interface GetProductsStartWithRequest {\n title: string;\n addressLine2?: string | null;\n}\n\nexport interface GetProductsStartWithResponse {\n products?: Product[];\n}\n\nexport interface QueryProductsRequest {\n query?: QueryV2;\n /** Whether variants should be included in the response. */\n includeVariants?: boolean;\n /** Whether hidden products should be included in the response. Requires permissions to manage products. */\n includeHiddenProducts?: boolean;\n /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */\n includeMerchantSpecificData?: boolean;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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 Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\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 QueryProductsResponse {\n products?: Product[];\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface BulkCreateProductsRequest {\n /**\n * @minSize 1\n * @maxSize 100\n */\n products: Product[];\n /** set to `true` if you wish to receive back the created products in the response */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateProductsResponse {\n /**\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkProductResult[];\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkProductResult {\n /** Defined in wix.commons */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Product;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkUpdateProductsRequest {\n /**\n * @minSize 1\n * @maxSize 100\n */\n products: MaskedProduct[];\n /** set to `true` if you wish to receive back the updated products in the response */\n returnEntity?: boolean;\n}\n\nexport interface MaskedProduct {\n /** Product to be updated, may be partial */\n product?: Product;\n}\n\nexport interface BulkUpdateProductsResponse {\n /**\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateProductsResponseBulkProductResult[];\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateProductsResponseBulkProductResult {\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Product;\n}\n\nexport interface BulkDeleteProductsRequest {\n /**\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n productIds: string[];\n}\n\nexport interface BulkDeleteProductsResponse {\n /**\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteProductsResponseBulkProductResult[];\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteProductsResponseBulkProductResult {\n itemMetadata?: ItemMetadata;\n}\n\nexport interface ResetProductsDbRequest {}\n\nexport interface ResetProductsDbResponse {}\n\n/** @docsIgnore */\nexport type CreateProductApplicationErrors = {\n code?: 'PRODUCT_EXISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Creating a product\n * @public\n * @requiredField options.product.title\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.CreateProduct\n */\nexport async function createProduct(\n options?: NonNullablePaths<CreateProductOptions, `product.title`, 3>\n): Promise<\n NonNullablePaths<\n Product,\n | `_id`\n | `collectionId`\n | `address.streetAddress.number`\n | `address.streetAddress.name`\n | `pageLink.pageId`\n | `pageLink.rel`\n | `variants`\n | `variants.${number}.name`\n | `variants.${number}.value`\n | `guid`,\n 4\n > & {\n __applicationErrorsType?: CreateProductApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ product: options?.product }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'product.image' },\n { path: 'product.variants.image' },\n { path: 'product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [{ path: 'product.address' }, { path: 'product.customAddress' }],\n },\n {\n transformFn: transformSDKDocumentToRESTDocument,\n paths: [{ path: 'product.document' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'product.video' }],\n },\n {\n transformFn: transformSDKAudioToRESTAudio,\n paths: [{ path: 'product.audio' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.createProduct(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'product.image' },\n { path: 'product.variants.image' },\n { path: 'product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'product.address' },\n { path: 'product.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'product.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'product.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'product.audio' }],\n },\n ])\n )?.product!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { product: '$[0].product' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateProductOptions {\n product?: Product;\n}\n\n/** @public\n * @requiredField productId\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.DeleteProduct\n */\nexport async function deleteProduct(productId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n productId: productId,\n });\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.deleteProduct(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { productId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['productId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/** @public\n * @requiredField options.product._id\n * @requiredField productId\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.UpdateProduct\n */\nexport async function updateProduct(\n productId: string,\n options?: NonNullablePaths<UpdateProductOptions, `product._id`, 3>\n): Promise<\n NonNullablePaths<\n Product,\n | `_id`\n | `collectionId`\n | `address.streetAddress.number`\n | `address.streetAddress.name`\n | `pageLink.pageId`\n | `pageLink.rel`\n | `variants`\n | `variants.${number}.name`\n | `variants.${number}.value`\n | `guid`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n productId: productId,\n product: options?.product,\n mask: options?.mask,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'product.image' },\n { path: 'product.variants.image' },\n { path: 'product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [{ path: 'product.address' }, { path: 'product.customAddress' }],\n },\n {\n transformFn: transformSDKDocumentToRESTDocument,\n paths: [{ path: 'product.document' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'product.video' }],\n },\n {\n transformFn: transformSDKAudioToRESTAudio,\n paths: [{ path: 'product.audio' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.updateProduct(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'product.image' },\n { path: 'product.variants.image' },\n { path: 'product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'product.address' },\n { path: 'product.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'product.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'product.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'product.audio' }],\n },\n ])\n )?.product!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n productId: '$[0]',\n product: '$[1].product',\n mask: '$[1].mask',\n },\n singleArgumentUnchanged: false,\n },\n ['productId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateProductOptions {\n product?: Product;\n /** Explicit list of fields to update. */\n mask?: string[];\n}\n\n/**\n * override description\n * @public\n * @requiredField productId\n * @param arg1 - ## new override param 1\n * @returns ## override return\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.GetProduct\n */\nexport async function getProduct(\n productId: string\n): Promise<\n NonNullablePaths<\n Product,\n | `_id`\n | `collectionId`\n | `address.streetAddress.number`\n | `address.streetAddress.name`\n | `pageLink.pageId`\n | `pageLink.rel`\n | `variants`\n | `variants.${number}.name`\n | `variants.${number}.value`\n | `guid`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n productId: productId,\n });\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.getProduct(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'product.image' },\n { path: 'product.variants.image' },\n { path: 'product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'product.address' },\n { path: 'product.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'product.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'product.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'product.audio' }],\n },\n ])\n )?.product!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { productId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['productId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/** @public\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.CountProducts\n */\nexport async function countProducts(\n options?: CountProductsOptions\n): Promise<NonNullablePaths<CountProductsResponse, `count`, 2>> {\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 includeVariants: options?.includeVariants,\n includeHiddenProducts: options?.includeHiddenProducts,\n includeMerchantSpecificData: options?.includeMerchantSpecificData,\n });\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.countProducts(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: {\n filter: '$[0].filter',\n includeVariants: '$[0].includeVariants',\n includeHiddenProducts: '$[0].includeHiddenProducts',\n includeMerchantSpecificData: '$[0].includeMerchantSpecificData',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CountProductsOptions {\n filter?: Record<string, any> | null;\n /** Whether variants should be included in the response. */\n includeVariants?: boolean;\n /** Whether hidden products should be included in the response. Requires permissions to manage products. */\n includeHiddenProducts?: boolean;\n /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */\n includeMerchantSpecificData?: boolean;\n}\n\n/** @public\n * @requiredField title\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.GetProductsStartWith\n */\nexport async function getProductsStartWith(\n title: string,\n options?: GetProductsStartWithOptions\n): Promise<\n NonNullablePaths<\n GetProductsStartWithResponse,\n | `products`\n | `products.${number}._id`\n | `products.${number}.collectionId`\n | `products.${number}.address.streetAddress.number`\n | `products.${number}.address.streetAddress.name`\n | `products.${number}.pageLink.pageId`\n | `products.${number}.guid`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n title: title,\n addressLine2: options?.addressLine2,\n });\n\n const reqOpts =\n ambassadorWixMetroinspectorV1Product.getProductsStartWith(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'products.image' },\n { path: 'products.variants.image' },\n { path: 'products.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'products.address' },\n { path: 'products.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'products.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'products.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'products.audio' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n title: '$[0]',\n addressLine2: '$[1].addressLine2',\n },\n singleArgumentUnchanged: false,\n },\n ['title', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetProductsStartWithOptions {\n addressLine2?: string | null;\n}\n\n/** @public\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.QueryProducts\n */\nexport function queryProducts(\n options?: QueryProductsOptions\n): ProductsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Product,\n 'CURSOR',\n QueryProductsRequest,\n QueryProductsResponse\n >({\n func: async (payload: QueryProductsRequest) => {\n const reqOpts = ambassadorWixMetroinspectorV1Product.queryProducts({\n ...payload,\n ...(options ?? {}),\n });\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: QueryProductsRequest['query']) => {\n const args = [query, options] as [\n QueryProductsRequest['query'],\n QueryProductsOptions\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryProductsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'products.image' },\n { path: 'products.variants.image' },\n { path: 'products.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'products.address' },\n { path: 'products.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'products.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'products.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'products.audio' }],\n },\n ])\n );\n\n return {\n items: transformedData?.products,\n pagingMetadata: transformedData?.metadata,\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\nexport interface QueryProductsOptions {\n /** Whether variants should be included in the response. */\n includeVariants?: boolean | undefined;\n /** Whether hidden products should be included in the response. Requires permissions to manage products. */\n includeHiddenProducts?: boolean | undefined;\n /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */\n includeMerchantSpecificData?: boolean | undefined;\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ProductsQueryResult extends QueryCursorResult {\n items: Product[];\n query: ProductsQueryBuilder;\n next: () => Promise<ProductsQueryResult>;\n prev: () => Promise<ProductsQueryResult>;\n}\n\nexport interface ProductsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n eq: (\n propertyName: 'title' | 'collectionId' | 'guid',\n value: any\n ) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ne: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ge: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n gt: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n le: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n lt: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n */\n startsWith: (\n propertyName: 'title' | 'guid',\n value: string\n ) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n */\n hasSome: (\n propertyName: 'title' | 'guid',\n value: any[]\n ) => ProductsQueryBuilder;\n in: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n exists: (\n propertyName: 'title' | 'guid',\n value: boolean\n ) => ProductsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n ascending: (\n ...propertyNames: Array<'title' | 'collectionId' | 'guid'>\n ) => ProductsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n descending: (\n ...propertyNames: Array<'title' | 'collectionId' | 'guid'>\n ) => ProductsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */\n limit: (limit: number) => ProductsQueryBuilder;\n /** @param cursor - A pointer to specific record */\n skipTo: (cursor: string) => ProductsQueryBuilder;\n find: () => Promise<ProductsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.QueryProducts\n * @requiredField query\n */\nexport async function typedQueryProducts(\n query: QueryV2,\n options?: QueryProductsOptions\n): Promise<\n NonNullablePaths<\n QueryProductsResponse,\n | `products`\n | `products.${number}._id`\n | `products.${number}.collectionId`\n | `products.${number}.address.streetAddress.number`\n | `products.${number}.address.streetAddress.name`\n | `products.${number}.pageLink.pageId`\n | `products.${number}.guid`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n ...options,\n });\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.queryProducts(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'products.image' },\n { path: 'products.variants.image' },\n { path: 'products.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'products.address' },\n { path: 'products.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'products.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'products.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'products.audio' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * create multiple products in a single request. Works synchronously\n * @public\n * @requiredField products\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.BulkCreateProducts\n */\nexport async function bulkCreateProducts(\n products: Product[],\n options?: BulkCreateProductsOptions\n): Promise<\n NonNullablePaths<\n BulkCreateProductsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.collectionId`\n | `results.${number}.item.pageLink.pageId`\n | `results.${number}.item.guid`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n products: products,\n returnEntity: options?.returnEntity,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'products.image' },\n { path: 'products.variants.image' },\n { path: 'products.mainVariant.image' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [\n { path: 'products.address' },\n { path: 'products.customAddress' },\n ],\n },\n {\n transformFn: transformSDKDocumentToRESTDocument,\n paths: [{ path: 'products.document' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'products.video' }],\n },\n {\n transformFn: transformSDKAudioToRESTAudio,\n paths: [{ path: 'products.audio' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixMetroinspectorV1Product.bulkCreateProducts(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'results.item.image' },\n { path: 'results.item.variants.image' },\n { path: 'results.item.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'results.item.address' },\n { path: 'results.item.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'results.item.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'results.item.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'results.item.audio' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n products: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['products', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateProductsOptions {\n /** set to `true` if you wish to receive back the created products in the response */\n returnEntity?: boolean;\n}\n\n/**\n * update multiple products in a single request. Works synchronously.\n * @public\n * @requiredField products\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.BulkUpdateProducts\n */\nexport async function bulkUpdateProducts(\n products: MaskedProduct[],\n options?: BulkUpdateProductsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateProductsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.collectionId`\n | `results.${number}.item.pageLink.pageId`\n | `results.${number}.item.guid`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n products: products,\n returnEntity: options?.returnEntity,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'products.product.image' },\n { path: 'products.product.variants.image' },\n { path: 'products.product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [\n { path: 'products.product.address' },\n { path: 'products.product.customAddress' },\n ],\n },\n {\n transformFn: transformSDKDocumentToRESTDocument,\n paths: [{ path: 'products.product.document' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'products.product.video' }],\n },\n {\n transformFn: transformSDKAudioToRESTAudio,\n paths: [{ path: 'products.product.audio' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixMetroinspectorV1Product.bulkUpdateProducts(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'results.item.image' },\n { path: 'results.item.variants.image' },\n { path: 'results.item.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'results.item.address' },\n { path: 'results.item.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'results.item.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'results.item.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'results.item.audio' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n products: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['products', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateProductsOptions {\n /** set to `true` if you wish to receive back the updated products in the response */\n returnEntity?: boolean;\n}\n\n/**\n * deletes multiple products in a single request. Works synchronously.\n * @public\n * @requiredField productIds\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.BulkDeleteProducts\n */\nexport async function bulkDeleteProducts(\n productIds: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteProductsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n productIds: productIds,\n });\n\n const reqOpts =\n ambassadorWixMetroinspectorV1Product.bulkDeleteProducts(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: { productIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['productIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'apps._base_domain_': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'www.wixgateway.com': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n _: [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_metro_products';\n\n/** Creating a product */\nexport function createProduct(payload: object): RequestOptionsFactory<any> {\n function __createProduct({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'product.createdDate' },\n { path: 'product.modifiedDate' },\n { path: 'product.image.urlExpirationDate' },\n { path: 'product.document.urlExpirationDate' },\n { path: 'product.document.thumbnail.urlExpirationDate' },\n { path: 'product.video.urlExpirationDate' },\n { path: 'product.video.resolutions.urlExpirationDate' },\n { path: 'product.video.resolutions.poster.urlExpirationDate' },\n { path: 'product.video.posters.urlExpirationDate' },\n { path: 'product.audio.urlExpirationDate' },\n { path: 'product.variants.image.urlExpirationDate' },\n { path: 'product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'product.image.focalPoint.x' },\n { path: 'product.image.focalPoint.y' },\n { path: 'product.document.thumbnail.focalPoint.x' },\n { path: 'product.document.thumbnail.focalPoint.y' },\n { path: 'product.video.resolutions.poster.focalPoint.x' },\n { path: 'product.video.resolutions.poster.focalPoint.y' },\n { path: 'product.video.posters.focalPoint.x' },\n { path: 'product.video.posters.focalPoint.y' },\n { path: 'product.variants.image.focalPoint.x' },\n { path: 'product.variants.image.focalPoint.y' },\n { path: 'product.mainVariant.image.focalPoint.x' },\n { path: 'product.mainVariant.image.focalPoint.y' },\n { path: 'product.address.geocode.latitude' },\n { path: 'product.address.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'POST' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.CreateProduct',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'product.createdDate' },\n { path: 'product.modifiedDate' },\n { path: 'product.image.urlExpirationDate' },\n { path: 'product.document.urlExpirationDate' },\n { path: 'product.document.thumbnail.urlExpirationDate' },\n { path: 'product.video.urlExpirationDate' },\n { path: 'product.video.resolutions.urlExpirationDate' },\n { path: 'product.video.resolutions.poster.urlExpirationDate' },\n { path: 'product.video.posters.urlExpirationDate' },\n { path: 'product.audio.urlExpirationDate' },\n { path: 'product.variants.image.urlExpirationDate' },\n { path: 'product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'product.image.focalPoint.x' },\n { path: 'product.image.focalPoint.y' },\n { path: 'product.document.thumbnail.focalPoint.x' },\n { path: 'product.document.thumbnail.focalPoint.y' },\n { path: 'product.video.resolutions.poster.focalPoint.x' },\n { path: 'product.video.resolutions.poster.focalPoint.y' },\n { path: 'product.video.posters.focalPoint.x' },\n { path: 'product.video.posters.focalPoint.y' },\n { path: 'product.variants.image.focalPoint.x' },\n { path: 'product.variants.image.focalPoint.y' },\n { path: 'product.mainVariant.image.focalPoint.x' },\n { path: 'product.mainVariant.image.focalPoint.y' },\n { path: 'product.address.geocode.latitude' },\n { path: 'product.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createProduct;\n}\n\nexport function deleteProduct(payload: object): RequestOptionsFactory<any> {\n function __deleteProduct({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.DeleteProduct',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products/{productId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProduct;\n}\n\nexport function updateProduct(payload: object): RequestOptionsFactory<any> {\n function __updateProduct({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'product.createdDate' },\n { path: 'product.modifiedDate' },\n { path: 'product.image.urlExpirationDate' },\n { path: 'product.document.urlExpirationDate' },\n { path: 'product.document.thumbnail.urlExpirationDate' },\n { path: 'product.video.urlExpirationDate' },\n { path: 'product.video.resolutions.urlExpirationDate' },\n { path: 'product.video.resolutions.poster.urlExpirationDate' },\n { path: 'product.video.posters.urlExpirationDate' },\n { path: 'product.audio.urlExpirationDate' },\n { path: 'product.variants.image.urlExpirationDate' },\n { path: 'product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'product.image.focalPoint.x' },\n { path: 'product.image.focalPoint.y' },\n { path: 'product.document.thumbnail.focalPoint.x' },\n { path: 'product.document.thumbnail.focalPoint.y' },\n { path: 'product.video.resolutions.poster.focalPoint.x' },\n { path: 'product.video.resolutions.poster.focalPoint.y' },\n { path: 'product.video.posters.focalPoint.x' },\n { path: 'product.video.posters.focalPoint.y' },\n { path: 'product.variants.image.focalPoint.x' },\n { path: 'product.variants.image.focalPoint.y' },\n { path: 'product.mainVariant.image.focalPoint.x' },\n { path: 'product.mainVariant.image.focalPoint.y' },\n { path: 'product.address.geocode.latitude' },\n { path: 'product.address.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'PUT' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.UpdateProduct',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products/{productId}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'product.createdDate' },\n { path: 'product.modifiedDate' },\n { path: 'product.image.urlExpirationDate' },\n { path: 'product.document.urlExpirationDate' },\n { path: 'product.document.thumbnail.urlExpirationDate' },\n { path: 'product.video.urlExpirationDate' },\n { path: 'product.video.resolutions.urlExpirationDate' },\n { path: 'product.video.resolutions.poster.urlExpirationDate' },\n { path: 'product.video.posters.urlExpirationDate' },\n { path: 'product.audio.urlExpirationDate' },\n { path: 'product.variants.image.urlExpirationDate' },\n { path: 'product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'product.image.focalPoint.x' },\n { path: 'product.image.focalPoint.y' },\n { path: 'product.document.thumbnail.focalPoint.x' },\n { path: 'product.document.thumbnail.focalPoint.y' },\n { path: 'product.video.resolutions.poster.focalPoint.x' },\n { path: 'product.video.resolutions.poster.focalPoint.y' },\n { path: 'product.video.posters.focalPoint.x' },\n { path: 'product.video.posters.focalPoint.y' },\n { path: 'product.variants.image.focalPoint.x' },\n { path: 'product.variants.image.focalPoint.y' },\n { path: 'product.mainVariant.image.focalPoint.x' },\n { path: 'product.mainVariant.image.focalPoint.y' },\n { path: 'product.address.geocode.latitude' },\n { path: 'product.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProduct;\n}\n\n/** override description */\nexport function getProduct(payload: object): RequestOptionsFactory<any> {\n function __getProduct({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'GET' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.GetProduct',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products/{productId}',\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: 'product.createdDate' },\n { path: 'product.modifiedDate' },\n { path: 'product.image.urlExpirationDate' },\n { path: 'product.document.urlExpirationDate' },\n { path: 'product.document.thumbnail.urlExpirationDate' },\n { path: 'product.video.urlExpirationDate' },\n { path: 'product.video.resolutions.urlExpirationDate' },\n { path: 'product.video.resolutions.poster.urlExpirationDate' },\n { path: 'product.video.posters.urlExpirationDate' },\n { path: 'product.audio.urlExpirationDate' },\n { path: 'product.variants.image.urlExpirationDate' },\n { path: 'product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'product.image.focalPoint.x' },\n { path: 'product.image.focalPoint.y' },\n { path: 'product.document.thumbnail.focalPoint.x' },\n { path: 'product.document.thumbnail.focalPoint.y' },\n { path: 'product.video.resolutions.poster.focalPoint.x' },\n { path: 'product.video.resolutions.poster.focalPoint.y' },\n { path: 'product.video.posters.focalPoint.x' },\n { path: 'product.video.posters.focalPoint.y' },\n { path: 'product.variants.image.focalPoint.x' },\n { path: 'product.variants.image.focalPoint.y' },\n { path: 'product.mainVariant.image.focalPoint.x' },\n { path: 'product.mainVariant.image.focalPoint.y' },\n { path: 'product.address.geocode.latitude' },\n { path: 'product.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProduct;\n}\n\nexport function countProducts(payload: object): RequestOptionsFactory<any> {\n function __countProducts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'POST' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.CountProducts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countProducts;\n}\n\nexport function getProductsStartWith(\n payload: object\n): RequestOptionsFactory<any> {\n function __getProductsStartWith({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'GET' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.GetProductsStartWith',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products/start-with/{title}',\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: 'products.createdDate' },\n { path: 'products.modifiedDate' },\n { path: 'products.image.urlExpirationDate' },\n { path: 'products.document.urlExpirationDate' },\n { path: 'products.document.thumbnail.urlExpirationDate' },\n { path: 'products.video.urlExpirationDate' },\n { path: 'products.video.resolutions.urlExpirationDate' },\n { path: 'products.video.resolutions.poster.urlExpirationDate' },\n { path: 'products.video.posters.urlExpirationDate' },\n { path: 'products.audio.urlExpirationDate' },\n { path: 'products.variants.image.urlExpirationDate' },\n { path: 'products.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'products.image.focalPoint.x' },\n { path: 'products.image.focalPoint.y' },\n { path: 'products.document.thumbnail.focalPoint.x' },\n { path: 'products.document.thumbnail.focalPoint.y' },\n { path: 'products.video.resolutions.poster.focalPoint.x' },\n { path: 'products.video.resolutions.poster.focalPoint.y' },\n { path: 'products.video.posters.focalPoint.x' },\n { path: 'products.video.posters.focalPoint.y' },\n { path: 'products.variants.image.focalPoint.x' },\n { path: 'products.variants.image.focalPoint.y' },\n { path: 'products.mainVariant.image.focalPoint.x' },\n { path: 'products.mainVariant.image.focalPoint.y' },\n { path: 'products.address.geocode.latitude' },\n { path: 'products.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProductsStartWith;\n}\n\nexport function queryProducts(payload: object): RequestOptionsFactory<any> {\n function __queryProducts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'GET' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.QueryProducts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/query-products',\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: 'products.createdDate' },\n { path: 'products.modifiedDate' },\n { path: 'products.image.urlExpirationDate' },\n { path: 'products.document.urlExpirationDate' },\n { path: 'products.document.thumbnail.urlExpirationDate' },\n { path: 'products.video.urlExpirationDate' },\n { path: 'products.video.resolutions.urlExpirationDate' },\n { path: 'products.video.resolutions.poster.urlExpirationDate' },\n { path: 'products.video.posters.urlExpirationDate' },\n { path: 'products.audio.urlExpirationDate' },\n { path: 'products.variants.image.urlExpirationDate' },\n { path: 'products.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'products.image.focalPoint.x' },\n { path: 'products.image.focalPoint.y' },\n { path: 'products.document.thumbnail.focalPoint.x' },\n { path: 'products.document.thumbnail.focalPoint.y' },\n { path: 'products.video.resolutions.poster.focalPoint.x' },\n { path: 'products.video.resolutions.poster.focalPoint.y' },\n { path: 'products.video.posters.focalPoint.x' },\n { path: 'products.video.posters.focalPoint.y' },\n { path: 'products.variants.image.focalPoint.x' },\n { path: 'products.variants.image.focalPoint.y' },\n { path: 'products.mainVariant.image.focalPoint.x' },\n { path: 'products.mainVariant.image.focalPoint.y' },\n { path: 'products.address.geocode.latitude' },\n { path: 'products.address.geocode.longitude' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl(\n { protoPath: '/api/v1/query-products', data: payload, host }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryProducts;\n}\n\n/** create multiple products in a single request. Works synchronously */\nexport function bulkCreateProducts(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateProducts({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'products.createdDate' },\n { path: 'products.modifiedDate' },\n { path: 'products.image.urlExpirationDate' },\n { path: 'products.document.urlExpirationDate' },\n { path: 'products.document.thumbnail.urlExpirationDate' },\n { path: 'products.video.urlExpirationDate' },\n { path: 'products.video.resolutions.urlExpirationDate' },\n { path: 'products.video.resolutions.poster.urlExpirationDate' },\n { path: 'products.video.posters.urlExpirationDate' },\n { path: 'products.audio.urlExpirationDate' },\n { path: 'products.variants.image.urlExpirationDate' },\n { path: 'products.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'products.image.focalPoint.x' },\n { path: 'products.image.focalPoint.y' },\n { path: 'products.document.thumbnail.focalPoint.x' },\n { path: 'products.document.thumbnail.focalPoint.y' },\n { path: 'products.video.resolutions.poster.focalPoint.x' },\n { path: 'products.video.resolutions.poster.focalPoint.y' },\n { path: 'products.video.posters.focalPoint.x' },\n { path: 'products.video.posters.focalPoint.y' },\n { path: 'products.variants.image.focalPoint.x' },\n { path: 'products.variants.image.focalPoint.y' },\n { path: 'products.mainVariant.image.focalPoint.x' },\n { path: 'products.mainVariant.image.focalPoint.y' },\n { path: 'products.address.geocode.latitude' },\n { path: 'products.address.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'POST' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.BulkCreateProducts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/bulk/products/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.modifiedDate' },\n { path: 'results.item.image.urlExpirationDate' },\n { path: 'results.item.document.urlExpirationDate' },\n { path: 'results.item.document.thumbnail.urlExpirationDate' },\n { path: 'results.item.video.urlExpirationDate' },\n { path: 'results.item.video.resolutions.urlExpirationDate' },\n {\n path: 'results.item.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'results.item.video.posters.urlExpirationDate' },\n { path: 'results.item.audio.urlExpirationDate' },\n { path: 'results.item.variants.image.urlExpirationDate' },\n { path: 'results.item.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.image.focalPoint.x' },\n { path: 'results.item.image.focalPoint.y' },\n { path: 'results.item.document.thumbnail.focalPoint.x' },\n { path: 'results.item.document.thumbnail.focalPoint.y' },\n { path: 'results.item.video.resolutions.poster.focalPoint.x' },\n { path: 'results.item.video.resolutions.poster.focalPoint.y' },\n { path: 'results.item.video.posters.focalPoint.x' },\n { path: 'results.item.video.posters.focalPoint.y' },\n { path: 'results.item.variants.image.focalPoint.x' },\n { path: 'results.item.variants.image.focalPoint.y' },\n { path: 'results.item.mainVariant.image.focalPoint.x' },\n { path: 'results.item.mainVariant.image.focalPoint.y' },\n { path: 'results.item.address.geocode.latitude' },\n { path: 'results.item.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateProducts;\n}\n\n/** update multiple products in a single request. Works synchronously. */\nexport function bulkUpdateProducts(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateProducts({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'products.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'products.product.createdDate' },\n { path: 'products.product.modifiedDate' },\n { path: 'products.product.image.urlExpirationDate' },\n { path: 'products.product.document.urlExpirationDate' },\n { path: 'products.product.document.thumbnail.urlExpirationDate' },\n { path: 'products.product.video.urlExpirationDate' },\n { path: 'products.product.video.resolutions.urlExpirationDate' },\n {\n path: 'products.product.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'products.product.video.posters.urlExpirationDate' },\n { path: 'products.product.audio.urlExpirationDate' },\n { path: 'products.product.variants.image.urlExpirationDate' },\n { path: 'products.product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'products.product.image.focalPoint.x' },\n { path: 'products.product.image.focalPoint.y' },\n { path: 'products.product.document.thumbnail.focalPoint.x' },\n { path: 'products.product.document.thumbnail.focalPoint.y' },\n { path: 'products.product.video.resolutions.poster.focalPoint.x' },\n { path: 'products.product.video.resolutions.poster.focalPoint.y' },\n { path: 'products.product.video.posters.focalPoint.x' },\n { path: 'products.product.video.posters.focalPoint.y' },\n { path: 'products.product.variants.image.focalPoint.x' },\n { path: 'products.product.variants.image.focalPoint.y' },\n { path: 'products.product.mainVariant.image.focalPoint.x' },\n { path: 'products.product.mainVariant.image.focalPoint.y' },\n { path: 'products.product.address.geocode.latitude' },\n { path: 'products.product.address.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.BulkUpdateProducts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/bulk/products/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.modifiedDate' },\n { path: 'results.item.image.urlExpirationDate' },\n { path: 'results.item.document.urlExpirationDate' },\n { path: 'results.item.document.thumbnail.urlExpirationDate' },\n { path: 'results.item.video.urlExpirationDate' },\n { path: 'results.item.video.resolutions.urlExpirationDate' },\n {\n path: 'results.item.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'results.item.video.posters.urlExpirationDate' },\n { path: 'results.item.audio.urlExpirationDate' },\n { path: 'results.item.variants.image.urlExpirationDate' },\n { path: 'results.item.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.image.focalPoint.x' },\n { path: 'results.item.image.focalPoint.y' },\n { path: 'results.item.document.thumbnail.focalPoint.x' },\n { path: 'results.item.document.thumbnail.focalPoint.y' },\n { path: 'results.item.video.resolutions.poster.focalPoint.x' },\n { path: 'results.item.video.resolutions.poster.focalPoint.y' },\n { path: 'results.item.video.posters.focalPoint.x' },\n { path: 'results.item.video.posters.focalPoint.y' },\n { path: 'results.item.variants.image.focalPoint.x' },\n { path: 'results.item.variants.image.focalPoint.y' },\n { path: 'results.item.mainVariant.image.focalPoint.x' },\n { path: 'results.item.mainVariant.image.focalPoint.y' },\n { path: 'results.item.address.geocode.latitude' },\n { path: 'results.item.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateProducts;\n}\n\n/** deletes multiple products in a single request. Works synchronously. */\nexport function bulkDeleteProducts(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteProducts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'POST' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.BulkDeleteProducts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/bulk/products/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteProducts;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,iEACP,MACA;A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sCAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACiC,mBAAmB,OAAO;AAEjE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,YAAY,OAAO;AAAA,QAC/C,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,YAAY;AAAA,IACf;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","SubdivisionType","LinkRel","SortOrder","createProduct","deleteProduct","updateProduct","getProduct","countProducts","getProductsStartWith","queryProducts","bulkCreateProducts","bulkUpdateProducts","bulkDeleteProducts"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/metroinspector-v1-product-products.universal.ts","../../../src/metroinspector-v1-product-products.http.ts"],"sourcesContent":["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 ambassadorWixMetroinspectorV1Product from './metroinspector-v1-product-products.http.js';\n// @ts-ignore\nimport { transformSDKAudioToRESTAudio } from '@wix/sdk-runtime/transformations/audio';\nimport { transformRESTAudioToSDKAudio } from '@wix/sdk-runtime/transformations/audio';\nimport { transformSDKAddressToRESTAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformSDKVideoV2ToRESTVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformSDKDocumentToRESTDocument } from '@wix/sdk-runtime/transformations/document';\nimport { transformRESTDocumentToSDKDocument } from '@wix/sdk-runtime/transformations/document';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\nexport interface Product {\n title?: string | null;\n _id?: string;\n collectionId?: string;\n _createdDate?: Date | null;\n modifiedDate?: Date | null;\n image?: string;\n address?: Address;\n document?: string;\n video?: string;\n pageLink?: PageLink;\n audio?: string;\n /** @format COLOR_HEX */\n color?: string | null;\n /** @format LOCAL_DATE */\n localDate?: string | null;\n /** @format LOCAL_TIME */\n localTime?: string | null;\n /** @format LOCAL_DATE_TIME */\n localDateTime?: string | null;\n variants?: Variant[];\n mainVariant?: Variant;\n customAddress?: MyAddress;\n /**\n * @readonly\n * @format GUID\n */\n guid?: string;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\n/** Physical address */\nexport interface Address extends AddressStreetOneOf {\n /** Street name and number. */\n streetAddress?: StreetAddress;\n /** Main address line, usually street and number as free text. */\n addressLine1?: string | null;\n /**\n * Country code.\n * @format COUNTRY\n */\n country?: string | null;\n /** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */\n subdivision?: string | null;\n /** City name. */\n city?: string | null;\n /** Zip/postal code. */\n postalCode?: string | null;\n /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */\n addressLine2?: string | null;\n}\n\n/** @oneof */\nexport interface AddressStreetOneOf {\n /** Street name and number. */\n streetAddress?: StreetAddress;\n /** Main address line, usually street and number as free text. */\n addressLine?: string | null;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface Subdivision {\n /** Short subdivision code. */\n code?: string;\n /** Subdivision full name. */\n name?: string;\n}\n\nexport enum SubdivisionType {\n UNKNOWN_SUBDIVISION_TYPE = 'UNKNOWN_SUBDIVISION_TYPE',\n /** State */\n ADMINISTRATIVE_AREA_LEVEL_1 = 'ADMINISTRATIVE_AREA_LEVEL_1',\n /** County */\n ADMINISTRATIVE_AREA_LEVEL_2 = 'ADMINISTRATIVE_AREA_LEVEL_2',\n /** City/town */\n ADMINISTRATIVE_AREA_LEVEL_3 = 'ADMINISTRATIVE_AREA_LEVEL_3',\n /** Neighborhood/quarter */\n ADMINISTRATIVE_AREA_LEVEL_4 = 'ADMINISTRATIVE_AREA_LEVEL_4',\n /** Street/block */\n ADMINISTRATIVE_AREA_LEVEL_5 = 'ADMINISTRATIVE_AREA_LEVEL_5',\n /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */\n COUNTRY = 'COUNTRY',\n}\n\n/** @enumType */\nexport type SubdivisionTypeWithLiterals =\n | SubdivisionType\n | 'UNKNOWN_SUBDIVISION_TYPE'\n | 'ADMINISTRATIVE_AREA_LEVEL_1'\n | 'ADMINISTRATIVE_AREA_LEVEL_2'\n | 'ADMINISTRATIVE_AREA_LEVEL_3'\n | 'ADMINISTRATIVE_AREA_LEVEL_4'\n | 'ADMINISTRATIVE_AREA_LEVEL_5'\n | 'COUNTRY';\n\n/** Subdivision Concordance values */\nexport interface StandardDetails {\n /**\n * subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30\n * @maxLength 20\n */\n iso31662?: string | null;\n}\n\nexport interface VideoResolution {\n /** Video URL. */\n url?: string;\n /** Video height. */\n height?: number;\n /** Video width. */\n width?: number;\n /** Video format for example, mp4, hls. */\n format?: string;\n}\n\nexport interface PageLink {\n /** The page id we want from the site */\n pageId?: string;\n /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */\n target?: string | null;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\n/**\n * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.\n * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel\n * Following are the accepted 'rel' types by Wix applications.\n */\nexport enum LinkRel {\n /** default (not implemented) */\n unknown_link_rel = 'unknown_link_rel',\n /** Indicates that the current document's original author or publisher does not endorse the referenced document. */\n nofollow = 'nofollow',\n /** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */\n noopener = 'noopener',\n /** No Referer header will be included. Additionally, has the same effect as noopener. */\n noreferrer = 'noreferrer',\n /** Indicates a link that resulted from advertisements or paid placements. */\n sponsored = 'sponsored',\n}\n\n/** @enumType */\nexport type LinkRelWithLiterals =\n | LinkRel\n | 'unknown_link_rel'\n | 'nofollow'\n | 'noopener'\n | 'noreferrer'\n | 'sponsored';\n\nexport interface Variant {\n name?: string;\n value?: string;\n image?: string;\n}\n\nexport interface MyAddress {\n /** @format COUNTRY */\n country?: string | null;\n subdivision?: string | null;\n city?: string | null;\n postalCode?: string | null;\n streetAddress?: StreetAddress;\n}\n\nexport interface CreateProductRequest {\n product?: Product;\n}\n\nexport interface CreateProductResponse {\n product?: Product;\n}\n\nexport interface DeleteProductRequest {\n productId: string;\n}\n\nexport interface DeleteProductResponse {}\n\nexport interface UpdateProductRequest {\n productId: string;\n product?: Product;\n /** Explicit list of fields to update. */\n mask?: string[];\n}\n\nexport interface UpdateProductResponse {\n product?: Product;\n}\n\nexport interface GetProductRequest {\n productId: string;\n}\n\nexport interface GetProductResponse {\n product?: Product;\n}\n\nexport interface CountProductsRequest {\n filter?: Record<string, any> | null;\n /** Whether variants should be included in the response. */\n includeVariants?: boolean;\n /** Whether hidden products should be included in the response. Requires permissions to manage products. */\n includeHiddenProducts?: boolean;\n /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */\n includeMerchantSpecificData?: boolean;\n}\n\nexport interface CountProductsResponse {\n count?: number;\n}\n\nexport interface GetProductsStartWithRequest {\n title: string;\n addressLine2?: string | null;\n}\n\nexport interface GetProductsStartWithResponse {\n products?: Product[];\n}\n\nexport interface QueryProductsRequest {\n query?: QueryV2;\n /** Whether variants should be included in the response. */\n includeVariants?: boolean;\n /** Whether hidden products should be included in the response. Requires permissions to manage products. */\n includeHiddenProducts?: boolean;\n /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */\n includeMerchantSpecificData?: boolean;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\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 Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\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 QueryProductsResponse {\n products?: Product[];\n metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface BulkCreateProductsRequest {\n /**\n * @minSize 1\n * @maxSize 100\n */\n products: Product[];\n /** set to `true` if you wish to receive back the created products in the response */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateProductsResponse {\n /**\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkProductResult[];\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkProductResult {\n /** Defined in wix.commons */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Product;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkUpdateProductsRequest {\n /**\n * @minSize 1\n * @maxSize 100\n */\n products: MaskedProduct[];\n /** set to `true` if you wish to receive back the updated products in the response */\n returnEntity?: boolean;\n}\n\nexport interface MaskedProduct {\n /** Product to be updated, may be partial */\n product?: Product;\n}\n\nexport interface BulkUpdateProductsResponse {\n /**\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateProductsResponseBulkProductResult[];\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateProductsResponseBulkProductResult {\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Product;\n}\n\nexport interface BulkDeleteProductsRequest {\n /**\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n productIds: string[];\n}\n\nexport interface BulkDeleteProductsResponse {\n /**\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteProductsResponseBulkProductResult[];\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteProductsResponseBulkProductResult {\n itemMetadata?: ItemMetadata;\n}\n\nexport interface ResetProductsDbRequest {}\n\nexport interface ResetProductsDbResponse {}\n\n/** @docsIgnore */\nexport type CreateProductApplicationErrors = {\n code?: 'PRODUCT_EXISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Creating a product\n * @public\n * @requiredField options.product.title\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.CreateProduct\n */\nexport async function createProduct(\n options?: NonNullablePaths<CreateProductOptions, `product.title`, 3>\n): Promise<\n NonNullablePaths<\n Product,\n | `_id`\n | `collectionId`\n | `address.streetAddress.number`\n | `address.streetAddress.name`\n | `pageLink.pageId`\n | `pageLink.rel`\n | `variants`\n | `variants.${number}.name`\n | `variants.${number}.value`\n | `guid`,\n 4\n > & {\n __applicationErrorsType?: CreateProductApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ product: options?.product }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'product.image' },\n { path: 'product.variants.image' },\n { path: 'product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [{ path: 'product.address' }, { path: 'product.customAddress' }],\n },\n {\n transformFn: transformSDKDocumentToRESTDocument,\n paths: [{ path: 'product.document' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'product.video' }],\n },\n {\n transformFn: transformSDKAudioToRESTAudio,\n paths: [{ path: 'product.audio' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.createProduct(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'product.image' },\n { path: 'product.variants.image' },\n { path: 'product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'product.address' },\n { path: 'product.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'product.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'product.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'product.audio' }],\n },\n ])\n )?.product!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { product: '$[0].product' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateProductOptions {\n product?: Product;\n}\n\n/** @public\n * @requiredField productId\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.DeleteProduct\n */\nexport async function deleteProduct(productId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n productId: productId,\n });\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.deleteProduct(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { productId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['productId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/** @public\n * @requiredField options.product._id\n * @requiredField productId\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.UpdateProduct\n */\nexport async function updateProduct(\n productId: string,\n options?: NonNullablePaths<UpdateProductOptions, `product._id`, 3>\n): Promise<\n NonNullablePaths<\n Product,\n | `_id`\n | `collectionId`\n | `address.streetAddress.number`\n | `address.streetAddress.name`\n | `pageLink.pageId`\n | `pageLink.rel`\n | `variants`\n | `variants.${number}.name`\n | `variants.${number}.value`\n | `guid`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n productId: productId,\n product: options?.product,\n mask: options?.mask,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'product.image' },\n { path: 'product.variants.image' },\n { path: 'product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [{ path: 'product.address' }, { path: 'product.customAddress' }],\n },\n {\n transformFn: transformSDKDocumentToRESTDocument,\n paths: [{ path: 'product.document' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'product.video' }],\n },\n {\n transformFn: transformSDKAudioToRESTAudio,\n paths: [{ path: 'product.audio' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.updateProduct(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'product.image' },\n { path: 'product.variants.image' },\n { path: 'product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'product.address' },\n { path: 'product.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'product.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'product.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'product.audio' }],\n },\n ])\n )?.product!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n productId: '$[0]',\n product: '$[1].product',\n mask: '$[1].mask',\n },\n singleArgumentUnchanged: false,\n },\n ['productId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateProductOptions {\n product?: Product;\n /** Explicit list of fields to update. */\n mask?: string[];\n}\n\n/**\n * override description\n * @public\n * @requiredField productId\n * @param arg1 - ## new override param 1\n * @returns ## override return\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.GetProduct\n */\nexport async function getProduct(\n productId: string\n): Promise<\n NonNullablePaths<\n Product,\n | `_id`\n | `collectionId`\n | `address.streetAddress.number`\n | `address.streetAddress.name`\n | `pageLink.pageId`\n | `pageLink.rel`\n | `variants`\n | `variants.${number}.name`\n | `variants.${number}.value`\n | `guid`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n productId: productId,\n });\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.getProduct(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'product.image' },\n { path: 'product.variants.image' },\n { path: 'product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'product.address' },\n { path: 'product.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'product.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'product.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'product.audio' }],\n },\n ])\n )?.product!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { productId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['productId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/** @public\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.CountProducts\n */\nexport async function countProducts(\n options?: CountProductsOptions\n): Promise<NonNullablePaths<CountProductsResponse, `count`, 2>> {\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 includeVariants: options?.includeVariants,\n includeHiddenProducts: options?.includeHiddenProducts,\n includeMerchantSpecificData: options?.includeMerchantSpecificData,\n });\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.countProducts(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: {\n filter: '$[0].filter',\n includeVariants: '$[0].includeVariants',\n includeHiddenProducts: '$[0].includeHiddenProducts',\n includeMerchantSpecificData: '$[0].includeMerchantSpecificData',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CountProductsOptions {\n filter?: Record<string, any> | null;\n /** Whether variants should be included in the response. */\n includeVariants?: boolean;\n /** Whether hidden products should be included in the response. Requires permissions to manage products. */\n includeHiddenProducts?: boolean;\n /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */\n includeMerchantSpecificData?: boolean;\n}\n\n/** @public\n * @requiredField title\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.GetProductsStartWith\n */\nexport async function getProductsStartWith(\n title: string,\n options?: GetProductsStartWithOptions\n): Promise<\n NonNullablePaths<\n GetProductsStartWithResponse,\n | `products`\n | `products.${number}._id`\n | `products.${number}.collectionId`\n | `products.${number}.address.streetAddress.number`\n | `products.${number}.address.streetAddress.name`\n | `products.${number}.pageLink.pageId`\n | `products.${number}.guid`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n title: title,\n addressLine2: options?.addressLine2,\n });\n\n const reqOpts =\n ambassadorWixMetroinspectorV1Product.getProductsStartWith(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'products.image' },\n { path: 'products.variants.image' },\n { path: 'products.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'products.address' },\n { path: 'products.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'products.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'products.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'products.audio' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n title: '$[0]',\n addressLine2: '$[1].addressLine2',\n },\n singleArgumentUnchanged: false,\n },\n ['title', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetProductsStartWithOptions {\n addressLine2?: string | null;\n}\n\n/** @public\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.QueryProducts\n */\nexport function queryProducts(\n options?: QueryProductsOptions\n): ProductsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Product,\n 'CURSOR',\n QueryProductsRequest,\n QueryProductsResponse\n >({\n func: async (payload: QueryProductsRequest) => {\n const reqOpts = ambassadorWixMetroinspectorV1Product.queryProducts({\n ...payload,\n ...(options ?? {}),\n });\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: QueryProductsRequest['query']) => {\n const args = [query, options] as [\n QueryProductsRequest['query'],\n QueryProductsOptions\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryProductsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'products.image' },\n { path: 'products.variants.image' },\n { path: 'products.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'products.address' },\n { path: 'products.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'products.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'products.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'products.audio' }],\n },\n ])\n );\n\n return {\n items: transformedData?.products,\n pagingMetadata: transformedData?.metadata,\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\nexport interface QueryProductsOptions {\n /** Whether variants should be included in the response. */\n includeVariants?: boolean | undefined;\n /** Whether hidden products should be included in the response. Requires permissions to manage products. */\n includeHiddenProducts?: boolean | undefined;\n /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */\n includeMerchantSpecificData?: boolean | undefined;\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ProductsQueryResult extends QueryCursorResult {\n items: Product[];\n query: ProductsQueryBuilder;\n next: () => Promise<ProductsQueryResult>;\n prev: () => Promise<ProductsQueryResult>;\n}\n\nexport interface ProductsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n eq: (\n propertyName: 'title' | 'collectionId' | 'guid',\n value: any\n ) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ne: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ge: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n gt: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n le: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n lt: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n */\n startsWith: (\n propertyName: 'title' | 'guid',\n value: string\n ) => ProductsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n */\n hasSome: (\n propertyName: 'title' | 'guid',\n value: any[]\n ) => ProductsQueryBuilder;\n in: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;\n exists: (\n propertyName: 'title' | 'guid',\n value: boolean\n ) => ProductsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n ascending: (\n ...propertyNames: Array<'title' | 'collectionId' | 'guid'>\n ) => ProductsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n descending: (\n ...propertyNames: Array<'title' | 'collectionId' | 'guid'>\n ) => ProductsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */\n limit: (limit: number) => ProductsQueryBuilder;\n /** @param cursor - A pointer to specific record */\n skipTo: (cursor: string) => ProductsQueryBuilder;\n find: () => Promise<ProductsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.QueryProducts\n * @requiredField query\n */\nexport async function typedQueryProducts(\n query: ProductQuery,\n options?: QueryProductsOptions\n): Promise<\n NonNullablePaths<\n QueryProductsResponse,\n | `products`\n | `products.${number}._id`\n | `products.${number}.collectionId`\n | `products.${number}.address.streetAddress.number`\n | `products.${number}.address.streetAddress.name`\n | `products.${number}.pageLink.pageId`\n | `products.${number}.guid`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n ...options,\n });\n\n const reqOpts = ambassadorWixMetroinspectorV1Product.queryProducts(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'products.image' },\n { path: 'products.variants.image' },\n { path: 'products.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'products.address' },\n { path: 'products.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'products.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'products.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'products.audio' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ProductQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['guid', 'title'];\n operators: '*';\n sort: 'BOTH';\n },\n {\n fields: ['collectionId'];\n operators: ['$eq'];\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n Product,\n ProductQuerySpec\n>;\nexport type ProductQuery = {\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.\n\n Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). \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\nexport const { QueryBuilder, Filter, Sort } = createQueryUtils<\n Product,\n ProductQuerySpec,\n ProductQuery\n>();\n\n/**\n * create multiple products in a single request. Works synchronously\n * @public\n * @requiredField products\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.BulkCreateProducts\n */\nexport async function bulkCreateProducts(\n products: Product[],\n options?: BulkCreateProductsOptions\n): Promise<\n NonNullablePaths<\n BulkCreateProductsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.collectionId`\n | `results.${number}.item.pageLink.pageId`\n | `results.${number}.item.guid`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n products: products,\n returnEntity: options?.returnEntity,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'products.image' },\n { path: 'products.variants.image' },\n { path: 'products.mainVariant.image' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [\n { path: 'products.address' },\n { path: 'products.customAddress' },\n ],\n },\n {\n transformFn: transformSDKDocumentToRESTDocument,\n paths: [{ path: 'products.document' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'products.video' }],\n },\n {\n transformFn: transformSDKAudioToRESTAudio,\n paths: [{ path: 'products.audio' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixMetroinspectorV1Product.bulkCreateProducts(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'results.item.image' },\n { path: 'results.item.variants.image' },\n { path: 'results.item.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'results.item.address' },\n { path: 'results.item.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'results.item.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'results.item.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'results.item.audio' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n products: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['products', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateProductsOptions {\n /** set to `true` if you wish to receive back the created products in the response */\n returnEntity?: boolean;\n}\n\n/**\n * update multiple products in a single request. Works synchronously.\n * @public\n * @requiredField products\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.BulkUpdateProducts\n */\nexport async function bulkUpdateProducts(\n products: MaskedProduct[],\n options?: BulkUpdateProductsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateProductsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.collectionId`\n | `results.${number}.item.pageLink.pageId`\n | `results.${number}.item.guid`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n products: products,\n returnEntity: options?.returnEntity,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'products.product.image' },\n { path: 'products.product.variants.image' },\n { path: 'products.product.mainVariant.image' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [\n { path: 'products.product.address' },\n { path: 'products.product.customAddress' },\n ],\n },\n {\n transformFn: transformSDKDocumentToRESTDocument,\n paths: [{ path: 'products.product.document' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'products.product.video' }],\n },\n {\n transformFn: transformSDKAudioToRESTAudio,\n paths: [{ path: 'products.product.audio' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixMetroinspectorV1Product.bulkUpdateProducts(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'results.item.image' },\n { path: 'results.item.variants.image' },\n { path: 'results.item.mainVariant.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'results.item.address' },\n { path: 'results.item.customAddress' },\n ],\n },\n {\n transformFn: transformRESTDocumentToSDKDocument,\n paths: [{ path: 'results.item.document' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'results.item.video' }],\n },\n {\n transformFn: transformRESTAudioToSDKAudio,\n paths: [{ path: 'results.item.audio' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n products: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['products', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateProductsOptions {\n /** set to `true` if you wish to receive back the updated products in the response */\n returnEntity?: boolean;\n}\n\n/**\n * deletes multiple products in a single request. Works synchronously.\n * @public\n * @requiredField productIds\n * @fqn wix.coreservices.metroinspector.v1.products.ProductsService.BulkDeleteProducts\n */\nexport async function bulkDeleteProducts(\n productIds: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteProductsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n productIds: productIds,\n });\n\n const reqOpts =\n ambassadorWixMetroinspectorV1Product.bulkDeleteProducts(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: { productIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['productIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'apps._base_domain_': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'www.wixgateway.com': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n _: [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_metro_products';\n\n/** Creating a product */\nexport function createProduct(payload: object): RequestOptionsFactory<any> {\n function __createProduct({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'product.createdDate' },\n { path: 'product.modifiedDate' },\n { path: 'product.image.urlExpirationDate' },\n { path: 'product.document.urlExpirationDate' },\n { path: 'product.document.thumbnail.urlExpirationDate' },\n { path: 'product.video.urlExpirationDate' },\n { path: 'product.video.resolutions.urlExpirationDate' },\n { path: 'product.video.resolutions.poster.urlExpirationDate' },\n { path: 'product.video.posters.urlExpirationDate' },\n { path: 'product.audio.urlExpirationDate' },\n { path: 'product.variants.image.urlExpirationDate' },\n { path: 'product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'product.image.focalPoint.x' },\n { path: 'product.image.focalPoint.y' },\n { path: 'product.document.thumbnail.focalPoint.x' },\n { path: 'product.document.thumbnail.focalPoint.y' },\n { path: 'product.video.resolutions.poster.focalPoint.x' },\n { path: 'product.video.resolutions.poster.focalPoint.y' },\n { path: 'product.video.posters.focalPoint.x' },\n { path: 'product.video.posters.focalPoint.y' },\n { path: 'product.variants.image.focalPoint.x' },\n { path: 'product.variants.image.focalPoint.y' },\n { path: 'product.mainVariant.image.focalPoint.x' },\n { path: 'product.mainVariant.image.focalPoint.y' },\n { path: 'product.address.geocode.latitude' },\n { path: 'product.address.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'POST' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.CreateProduct',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'product.createdDate' },\n { path: 'product.modifiedDate' },\n { path: 'product.image.urlExpirationDate' },\n { path: 'product.document.urlExpirationDate' },\n { path: 'product.document.thumbnail.urlExpirationDate' },\n { path: 'product.video.urlExpirationDate' },\n { path: 'product.video.resolutions.urlExpirationDate' },\n { path: 'product.video.resolutions.poster.urlExpirationDate' },\n { path: 'product.video.posters.urlExpirationDate' },\n { path: 'product.audio.urlExpirationDate' },\n { path: 'product.variants.image.urlExpirationDate' },\n { path: 'product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'product.image.focalPoint.x' },\n { path: 'product.image.focalPoint.y' },\n { path: 'product.document.thumbnail.focalPoint.x' },\n { path: 'product.document.thumbnail.focalPoint.y' },\n { path: 'product.video.resolutions.poster.focalPoint.x' },\n { path: 'product.video.resolutions.poster.focalPoint.y' },\n { path: 'product.video.posters.focalPoint.x' },\n { path: 'product.video.posters.focalPoint.y' },\n { path: 'product.variants.image.focalPoint.x' },\n { path: 'product.variants.image.focalPoint.y' },\n { path: 'product.mainVariant.image.focalPoint.x' },\n { path: 'product.mainVariant.image.focalPoint.y' },\n { path: 'product.address.geocode.latitude' },\n { path: 'product.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createProduct;\n}\n\nexport function deleteProduct(payload: object): RequestOptionsFactory<any> {\n function __deleteProduct({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.DeleteProduct',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products/{productId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProduct;\n}\n\nexport function updateProduct(payload: object): RequestOptionsFactory<any> {\n function __updateProduct({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'product.createdDate' },\n { path: 'product.modifiedDate' },\n { path: 'product.image.urlExpirationDate' },\n { path: 'product.document.urlExpirationDate' },\n { path: 'product.document.thumbnail.urlExpirationDate' },\n { path: 'product.video.urlExpirationDate' },\n { path: 'product.video.resolutions.urlExpirationDate' },\n { path: 'product.video.resolutions.poster.urlExpirationDate' },\n { path: 'product.video.posters.urlExpirationDate' },\n { path: 'product.audio.urlExpirationDate' },\n { path: 'product.variants.image.urlExpirationDate' },\n { path: 'product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'product.image.focalPoint.x' },\n { path: 'product.image.focalPoint.y' },\n { path: 'product.document.thumbnail.focalPoint.x' },\n { path: 'product.document.thumbnail.focalPoint.y' },\n { path: 'product.video.resolutions.poster.focalPoint.x' },\n { path: 'product.video.resolutions.poster.focalPoint.y' },\n { path: 'product.video.posters.focalPoint.x' },\n { path: 'product.video.posters.focalPoint.y' },\n { path: 'product.variants.image.focalPoint.x' },\n { path: 'product.variants.image.focalPoint.y' },\n { path: 'product.mainVariant.image.focalPoint.x' },\n { path: 'product.mainVariant.image.focalPoint.y' },\n { path: 'product.address.geocode.latitude' },\n { path: 'product.address.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'PUT' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.UpdateProduct',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products/{productId}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'product.createdDate' },\n { path: 'product.modifiedDate' },\n { path: 'product.image.urlExpirationDate' },\n { path: 'product.document.urlExpirationDate' },\n { path: 'product.document.thumbnail.urlExpirationDate' },\n { path: 'product.video.urlExpirationDate' },\n { path: 'product.video.resolutions.urlExpirationDate' },\n { path: 'product.video.resolutions.poster.urlExpirationDate' },\n { path: 'product.video.posters.urlExpirationDate' },\n { path: 'product.audio.urlExpirationDate' },\n { path: 'product.variants.image.urlExpirationDate' },\n { path: 'product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'product.image.focalPoint.x' },\n { path: 'product.image.focalPoint.y' },\n { path: 'product.document.thumbnail.focalPoint.x' },\n { path: 'product.document.thumbnail.focalPoint.y' },\n { path: 'product.video.resolutions.poster.focalPoint.x' },\n { path: 'product.video.resolutions.poster.focalPoint.y' },\n { path: 'product.video.posters.focalPoint.x' },\n { path: 'product.video.posters.focalPoint.y' },\n { path: 'product.variants.image.focalPoint.x' },\n { path: 'product.variants.image.focalPoint.y' },\n { path: 'product.mainVariant.image.focalPoint.x' },\n { path: 'product.mainVariant.image.focalPoint.y' },\n { path: 'product.address.geocode.latitude' },\n { path: 'product.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProduct;\n}\n\n/** override description */\nexport function getProduct(payload: object): RequestOptionsFactory<any> {\n function __getProduct({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'GET' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.GetProduct',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products/{productId}',\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: 'product.createdDate' },\n { path: 'product.modifiedDate' },\n { path: 'product.image.urlExpirationDate' },\n { path: 'product.document.urlExpirationDate' },\n { path: 'product.document.thumbnail.urlExpirationDate' },\n { path: 'product.video.urlExpirationDate' },\n { path: 'product.video.resolutions.urlExpirationDate' },\n { path: 'product.video.resolutions.poster.urlExpirationDate' },\n { path: 'product.video.posters.urlExpirationDate' },\n { path: 'product.audio.urlExpirationDate' },\n { path: 'product.variants.image.urlExpirationDate' },\n { path: 'product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'product.image.focalPoint.x' },\n { path: 'product.image.focalPoint.y' },\n { path: 'product.document.thumbnail.focalPoint.x' },\n { path: 'product.document.thumbnail.focalPoint.y' },\n { path: 'product.video.resolutions.poster.focalPoint.x' },\n { path: 'product.video.resolutions.poster.focalPoint.y' },\n { path: 'product.video.posters.focalPoint.x' },\n { path: 'product.video.posters.focalPoint.y' },\n { path: 'product.variants.image.focalPoint.x' },\n { path: 'product.variants.image.focalPoint.y' },\n { path: 'product.mainVariant.image.focalPoint.x' },\n { path: 'product.mainVariant.image.focalPoint.y' },\n { path: 'product.address.geocode.latitude' },\n { path: 'product.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProduct;\n}\n\nexport function countProducts(payload: object): RequestOptionsFactory<any> {\n function __countProducts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'POST' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.CountProducts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countProducts;\n}\n\nexport function getProductsStartWith(\n payload: object\n): RequestOptionsFactory<any> {\n function __getProductsStartWith({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'GET' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.GetProductsStartWith',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/products/start-with/{title}',\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: 'products.createdDate' },\n { path: 'products.modifiedDate' },\n { path: 'products.image.urlExpirationDate' },\n { path: 'products.document.urlExpirationDate' },\n { path: 'products.document.thumbnail.urlExpirationDate' },\n { path: 'products.video.urlExpirationDate' },\n { path: 'products.video.resolutions.urlExpirationDate' },\n { path: 'products.video.resolutions.poster.urlExpirationDate' },\n { path: 'products.video.posters.urlExpirationDate' },\n { path: 'products.audio.urlExpirationDate' },\n { path: 'products.variants.image.urlExpirationDate' },\n { path: 'products.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'products.image.focalPoint.x' },\n { path: 'products.image.focalPoint.y' },\n { path: 'products.document.thumbnail.focalPoint.x' },\n { path: 'products.document.thumbnail.focalPoint.y' },\n { path: 'products.video.resolutions.poster.focalPoint.x' },\n { path: 'products.video.resolutions.poster.focalPoint.y' },\n { path: 'products.video.posters.focalPoint.x' },\n { path: 'products.video.posters.focalPoint.y' },\n { path: 'products.variants.image.focalPoint.x' },\n { path: 'products.variants.image.focalPoint.y' },\n { path: 'products.mainVariant.image.focalPoint.x' },\n { path: 'products.mainVariant.image.focalPoint.y' },\n { path: 'products.address.geocode.latitude' },\n { path: 'products.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProductsStartWith;\n}\n\nexport function queryProducts(payload: object): RequestOptionsFactory<any> {\n function __queryProducts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'GET' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.QueryProducts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/query-products',\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: 'products.createdDate' },\n { path: 'products.modifiedDate' },\n { path: 'products.image.urlExpirationDate' },\n { path: 'products.document.urlExpirationDate' },\n { path: 'products.document.thumbnail.urlExpirationDate' },\n { path: 'products.video.urlExpirationDate' },\n { path: 'products.video.resolutions.urlExpirationDate' },\n { path: 'products.video.resolutions.poster.urlExpirationDate' },\n { path: 'products.video.posters.urlExpirationDate' },\n { path: 'products.audio.urlExpirationDate' },\n { path: 'products.variants.image.urlExpirationDate' },\n { path: 'products.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'products.image.focalPoint.x' },\n { path: 'products.image.focalPoint.y' },\n { path: 'products.document.thumbnail.focalPoint.x' },\n { path: 'products.document.thumbnail.focalPoint.y' },\n { path: 'products.video.resolutions.poster.focalPoint.x' },\n { path: 'products.video.resolutions.poster.focalPoint.y' },\n { path: 'products.video.posters.focalPoint.x' },\n { path: 'products.video.posters.focalPoint.y' },\n { path: 'products.variants.image.focalPoint.x' },\n { path: 'products.variants.image.focalPoint.y' },\n { path: 'products.mainVariant.image.focalPoint.x' },\n { path: 'products.mainVariant.image.focalPoint.y' },\n { path: 'products.address.geocode.latitude' },\n { path: 'products.address.geocode.longitude' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl(\n { protoPath: '/api/v1/query-products', data: payload, host }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryProducts;\n}\n\n/** create multiple products in a single request. Works synchronously */\nexport function bulkCreateProducts(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateProducts({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'products.createdDate' },\n { path: 'products.modifiedDate' },\n { path: 'products.image.urlExpirationDate' },\n { path: 'products.document.urlExpirationDate' },\n { path: 'products.document.thumbnail.urlExpirationDate' },\n { path: 'products.video.urlExpirationDate' },\n { path: 'products.video.resolutions.urlExpirationDate' },\n { path: 'products.video.resolutions.poster.urlExpirationDate' },\n { path: 'products.video.posters.urlExpirationDate' },\n { path: 'products.audio.urlExpirationDate' },\n { path: 'products.variants.image.urlExpirationDate' },\n { path: 'products.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'products.image.focalPoint.x' },\n { path: 'products.image.focalPoint.y' },\n { path: 'products.document.thumbnail.focalPoint.x' },\n { path: 'products.document.thumbnail.focalPoint.y' },\n { path: 'products.video.resolutions.poster.focalPoint.x' },\n { path: 'products.video.resolutions.poster.focalPoint.y' },\n { path: 'products.video.posters.focalPoint.x' },\n { path: 'products.video.posters.focalPoint.y' },\n { path: 'products.variants.image.focalPoint.x' },\n { path: 'products.variants.image.focalPoint.y' },\n { path: 'products.mainVariant.image.focalPoint.x' },\n { path: 'products.mainVariant.image.focalPoint.y' },\n { path: 'products.address.geocode.latitude' },\n { path: 'products.address.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'POST' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.BulkCreateProducts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/bulk/products/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.modifiedDate' },\n { path: 'results.item.image.urlExpirationDate' },\n { path: 'results.item.document.urlExpirationDate' },\n { path: 'results.item.document.thumbnail.urlExpirationDate' },\n { path: 'results.item.video.urlExpirationDate' },\n { path: 'results.item.video.resolutions.urlExpirationDate' },\n {\n path: 'results.item.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'results.item.video.posters.urlExpirationDate' },\n { path: 'results.item.audio.urlExpirationDate' },\n { path: 'results.item.variants.image.urlExpirationDate' },\n { path: 'results.item.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.image.focalPoint.x' },\n { path: 'results.item.image.focalPoint.y' },\n { path: 'results.item.document.thumbnail.focalPoint.x' },\n { path: 'results.item.document.thumbnail.focalPoint.y' },\n { path: 'results.item.video.resolutions.poster.focalPoint.x' },\n { path: 'results.item.video.resolutions.poster.focalPoint.y' },\n { path: 'results.item.video.posters.focalPoint.x' },\n { path: 'results.item.video.posters.focalPoint.y' },\n { path: 'results.item.variants.image.focalPoint.x' },\n { path: 'results.item.variants.image.focalPoint.y' },\n { path: 'results.item.mainVariant.image.focalPoint.x' },\n { path: 'results.item.mainVariant.image.focalPoint.y' },\n { path: 'results.item.address.geocode.latitude' },\n { path: 'results.item.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateProducts;\n}\n\n/** update multiple products in a single request. Works synchronously. */\nexport function bulkUpdateProducts(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateProducts({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'products.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'products.product.createdDate' },\n { path: 'products.product.modifiedDate' },\n { path: 'products.product.image.urlExpirationDate' },\n { path: 'products.product.document.urlExpirationDate' },\n { path: 'products.product.document.thumbnail.urlExpirationDate' },\n { path: 'products.product.video.urlExpirationDate' },\n { path: 'products.product.video.resolutions.urlExpirationDate' },\n {\n path: 'products.product.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'products.product.video.posters.urlExpirationDate' },\n { path: 'products.product.audio.urlExpirationDate' },\n { path: 'products.product.variants.image.urlExpirationDate' },\n { path: 'products.product.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'products.product.image.focalPoint.x' },\n { path: 'products.product.image.focalPoint.y' },\n { path: 'products.product.document.thumbnail.focalPoint.x' },\n { path: 'products.product.document.thumbnail.focalPoint.y' },\n { path: 'products.product.video.resolutions.poster.focalPoint.x' },\n { path: 'products.product.video.resolutions.poster.focalPoint.y' },\n { path: 'products.product.video.posters.focalPoint.x' },\n { path: 'products.product.video.posters.focalPoint.y' },\n { path: 'products.product.variants.image.focalPoint.x' },\n { path: 'products.product.variants.image.focalPoint.y' },\n { path: 'products.product.mainVariant.image.focalPoint.x' },\n { path: 'products.product.mainVariant.image.focalPoint.y' },\n { path: 'products.product.address.geocode.latitude' },\n { path: 'products.product.address.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.BulkUpdateProducts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/bulk/products/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.modifiedDate' },\n { path: 'results.item.image.urlExpirationDate' },\n { path: 'results.item.document.urlExpirationDate' },\n { path: 'results.item.document.thumbnail.urlExpirationDate' },\n { path: 'results.item.video.urlExpirationDate' },\n { path: 'results.item.video.resolutions.urlExpirationDate' },\n {\n path: 'results.item.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'results.item.video.posters.urlExpirationDate' },\n { path: 'results.item.audio.urlExpirationDate' },\n { path: 'results.item.variants.image.urlExpirationDate' },\n { path: 'results.item.mainVariant.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.image.focalPoint.x' },\n { path: 'results.item.image.focalPoint.y' },\n { path: 'results.item.document.thumbnail.focalPoint.x' },\n { path: 'results.item.document.thumbnail.focalPoint.y' },\n { path: 'results.item.video.resolutions.poster.focalPoint.x' },\n { path: 'results.item.video.resolutions.poster.focalPoint.y' },\n { path: 'results.item.video.posters.focalPoint.x' },\n { path: 'results.item.video.posters.focalPoint.y' },\n { path: 'results.item.variants.image.focalPoint.x' },\n { path: 'results.item.variants.image.focalPoint.y' },\n { path: 'results.item.mainVariant.image.focalPoint.x' },\n { path: 'results.item.mainVariant.image.focalPoint.y' },\n { path: 'results.item.address.geocode.latitude' },\n { path: 'results.item.address.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateProducts;\n}\n\n/** deletes multiple products in a single request. Works synchronously. */\nexport function bulkDeleteProducts(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteProducts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.product',\n method: 'POST' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.products.ProductsService.BulkDeleteProducts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({\n protoPath: '/api/v1/bulk/products/delete',\n data: payload,\n host,\n }),\n data: payload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G;AAE1B,UAAM;AAAA,EACR;AACF;AAaA,eAAsBa,oBACpB,YAcA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACiC,mBAAmB,OAAO;AAEjE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,YAAY,OAAO;AAAA,QAC/C,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,YAAY;AAAA,IACf;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","SubdivisionType","LinkRel","SortOrder","createProduct","deleteProduct","updateProduct","getProduct","countProducts","getProductsStartWith","queryProducts","bulkCreateProducts","bulkUpdateProducts","bulkDeleteProducts"]}
|