@wix/auto_sdk_portfolio_project-items 1.0.49 → 1.0.51

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/portfolio-project-items-v1-project-item-project-items.http.ts","../../src/portfolio-project-items-v1-project-item-project-items.types.ts","../../src/portfolio-project-items-v1-project-item-project-items.meta.ts"],"sourcesContent":["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 resolveComWixpressPortfolioPortfolioappMediaServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n _: [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/portfolio/v1/settings',\n destPath: '/api/v1/portfolio/settings',\n },\n {\n srcPath: '/portfolio/portfolio-app/api/v1/portfolio/settings',\n destPath: '/api/v1/portfolio/settings',\n },\n {\n srcPath:\n '/portfolio/project-items/api/v1/portfolio/project/items/media',\n destPath: '/api/v1/portfolio/project/items/media',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/portfolio/portfolio-app/api/v1/portfolio/settings',\n destPath: '/api/v1/portfolio/settings',\n },\n {\n srcPath:\n '/portfolio/project-items/api/v1/portfolio/project/items/media',\n destPath: '/api/v1/portfolio/project/items/media',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/create',\n destPath: '/api/v1/bulk/portfolio/items/create',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/items/duplicate',\n destPath: '/api/v1/items/duplicate',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/delete',\n destPath: '/api/v1/bulk/portfolio/items/delete',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/update',\n destPath: '/api/v1/bulk/portfolio/items/update',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/portfolio/v1/projectItems',\n destPath: '/api/v1/portfolio/projects',\n },\n {\n srcPath: '/portfolio/v1/items',\n destPath: '/api/v1/portfolio/items',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/create',\n destPath: '/api/v1/bulk/portfolio/items/create',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/items/duplicate',\n destPath: '/api/v1/items/duplicate',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/delete',\n destPath: '/api/v1/bulk/portfolio/items/delete',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/update',\n destPath: '/api/v1/bulk/portfolio/items/update',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/portfolio/items',\n destPath: '/api/v1/portfolio/items',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/portfolio/projects',\n destPath: '/api/v1/portfolio/projects',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/project-items-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/create',\n destPath: '/api/v1/bulk/portfolio/items/create',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/items/duplicate',\n destPath: '/api/v1/items/duplicate',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/delete',\n destPath: '/api/v1/bulk/portfolio/items/delete',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/update',\n destPath: '/api/v1/bulk/portfolio/items/update',\n },\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_portfolio_project-items';\n\n/** Creates a project item. */\nexport function createProjectItem(payload: object): RequestOptionsFactory<any> {\n function __createProjectItem({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate' },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.CreateProjectItem',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/items',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createProjectItem;\n}\n\n/**\n * Creates multiple project items.\n *\n * To create a single project item, call Create Project Item.\n */\nexport function bulkCreateProjectItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateProjectItems({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'items.sortOrder' },\n { path: 'items.image.focalPoint.x' },\n { path: 'items.image.focalPoint.y' },\n { path: 'items.image.unsharpMasking.amount' },\n { path: 'items.image.unsharpMasking.radius' },\n { path: 'items.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'items.createdDate' },\n { path: 'items.updatedDate' },\n { path: 'items.image.imageInfo.urlExpirationDate' },\n { path: 'items.video.videoInfo.urlExpirationDate' },\n {\n path: 'items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'items.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.BulkCreateProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/bulk/portfolio/items/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.sortOrder' },\n { path: 'results.item.image.focalPoint.x' },\n { path: 'results.item.image.focalPoint.y' },\n { path: 'results.item.image.unsharpMasking.amount' },\n { path: 'results.item.image.unsharpMasking.radius' },\n { path: 'results.item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.image.imageInfo.urlExpirationDate' },\n { path: 'results.item.video.videoInfo.urlExpirationDate' },\n {\n path: 'results.item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'results.item.video.videoInfo.posters.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateProjectItems;\n}\n\n/** Retrieves a project item. */\nexport function getProjectItem(payload: object): RequestOptionsFactory<any> {\n function __getProjectItem({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.GetProjectItem',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/items/{itemId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'GET' as any,\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/items/{itemId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n },\n ],\n };\n\n return metadata;\n }\n\n return __getProjectItem;\n}\n\n/** Retrieves a list of all project items in the specified project. */\nexport function listProjectItems(payload: object): RequestOptionsFactory<any> {\n function __listProjectItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.ListProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/projects/{projectId}/items',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'items.sortOrder' },\n { path: 'items.image.focalPoint.x' },\n { path: 'items.image.focalPoint.y' },\n { path: 'items.image.unsharpMasking.amount' },\n { path: 'items.image.unsharpMasking.radius' },\n { path: 'items.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'items.createdDate' },\n { path: 'items.updatedDate' },\n { path: 'items.image.imageInfo.urlExpirationDate' },\n { path: 'items.video.videoInfo.urlExpirationDate' },\n {\n path: 'items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'items.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listProjectItems;\n}\n\n/** Updates a project item. */\nexport function updateProjectItem(payload: object): RequestOptionsFactory<any> {\n function __updateProjectItem({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate' },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.UpdateProjectItem',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/items/{item.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProjectItem;\n}\n\n/**\n * Updates multiple project items.\n *\n * To update a single project item, call Update Project Item.\n */\nexport function bulkUpdateProjectItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateProjectItems({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'items.fieldMask' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'items.item.sortOrder' },\n { path: 'items.item.image.focalPoint.x' },\n { path: 'items.item.image.focalPoint.y' },\n { path: 'items.item.image.unsharpMasking.amount' },\n { path: 'items.item.image.unsharpMasking.radius' },\n { path: 'items.item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'items.item.createdDate' },\n { path: 'items.item.updatedDate' },\n { path: 'items.item.image.imageInfo.urlExpirationDate' },\n { path: 'items.item.video.videoInfo.urlExpirationDate' },\n {\n path: 'items.item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'items.item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.BulkUpdateProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/bulk/portfolio/items/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.sortOrder' },\n { path: 'results.item.image.focalPoint.x' },\n { path: 'results.item.image.focalPoint.y' },\n { path: 'results.item.image.unsharpMasking.amount' },\n { path: 'results.item.image.unsharpMasking.radius' },\n { path: 'results.item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.image.imageInfo.urlExpirationDate' },\n { path: 'results.item.video.videoInfo.urlExpirationDate' },\n {\n path: 'results.item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'results.item.video.videoInfo.posters.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateProjectItems;\n}\n\n/** Deletes a project item. */\nexport function deleteProjectItem(payload: object): RequestOptionsFactory<any> {\n function __deleteProjectItem({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.DeleteProjectItem',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/items/{itemId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProjectItem;\n}\n\n/**\n * Deletes multiple project items.\n *\n * To delete a single project item, call Delete Project Item.\n */\nexport function bulkDeleteProjectItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteProjectItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.BulkDeleteProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/bulk/portfolio/items/delete',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __bulkDeleteProjectItems;\n}\n\n/**\n * Duplicates project items from one project (the origin) to another project (the target).\n *\n * <blockquote class=\"important\">\n * <strong>Important:</strong>\n *\n * Both the origin and target projects must exist before calling this method.\n * </blockquote>\n */\nexport function duplicateProjectItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __duplicateProjectItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.DuplicateProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/items/duplicate',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __duplicateProjectItems;\n}\n\n/** Generate media token for project items */\nexport function generateTokenForProjectItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateTokenForProjectItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({\n protoPath: '/api/v1/portfolio/project/items/media',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateTokenForProjectItems;\n}\n","export interface Item extends ItemMetadataOneOf {\n /** Information about the Wix Media image. */\n image?: Image;\n /** Information about the Wix Media video. */\n video?: Video;\n /**\n * Project ID.\n * @format GUID\n */\n projectId?: string | null;\n /**\n * Project item ID.\n * @readonly\n * @format GUID\n */\n id?: string | null;\n /**\n * Index that determines which position a project is displayed in the project. <br />\n *\n * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />\n */\n sortOrder?: number | null;\n /** Project item title. */\n title?: string | null;\n /** Project item description. */\n description?: string | null;\n /**\n * Project item data type.\n * @readonly\n */\n type?: TypeWithLiterals;\n /**\n * Date and time the project item was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the project item was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Project item tags.\n * @internal\n */\n tags?: Tags;\n /** Project item link. */\n link?: Link;\n}\n\n/** @oneof */\nexport interface ItemMetadataOneOf {\n /** Information about the Wix Media image. */\n image?: Image;\n /** Information about the Wix Media video. */\n video?: Video;\n}\n\nexport enum Type {\n /** Undefined item type. */\n UNDEFINED = 'UNDEFINED',\n /** Image item type. */\n IMAGE = 'IMAGE',\n /** Video item type. */\n VIDEO = 'VIDEO',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'UNDEFINED' | 'IMAGE' | 'VIDEO';\n\nexport interface Image {\n /**\n * @internal\n * @deprecated\n * @targetRemovalDate 2026-02-05\n */\n type?: ImageTypeWithLiterals;\n /** Information about the Wix Media image. */\n imageInfo?: CommonImage;\n /** Focal point of the image. */\n focalPoint?: Point;\n /**\n * Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif).\n * @internal\n */\n exif?: Record<string, any> | null;\n /**\n * Image compression level. <br />\n *\n * Min: `30` <br />\n * Max: `100`\n * @internal\n * @min 30\n * @max 100\n */\n quality?: number | null;\n /**\n * [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image.\n * @internal\n */\n unsharpMasking?: UnsharpMasking;\n /**\n * Whether the image is saved in secure media.\n * @internal\n */\n secure?: boolean | null;\n /**\n * When image is saved in secure media, token is generated.\n * @internal\n * @readonly\n * @maxLength 5000\n */\n token?: string | null;\n}\n\nexport enum ImageType {\n UNDEFINED = 'UNDEFINED',\n WIX_MEDIA = 'WIX_MEDIA',\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type ImageTypeWithLiterals =\n | ImageType\n | 'UNDEFINED'\n | 'WIX_MEDIA'\n | 'EXTERNAL';\n\nexport interface CommonImage {\n /**\n * WixMedia image ID. Required.\n * @maxLength 512\n */\n id?: string;\n /**\n * Image URL.\n * @readonly\n * @maxLength 8000\n */\n url?: string;\n /** Original image height. Required. */\n height?: number;\n /** Original image width. Required. */\n width?: number;\n /**\n * Image alt text.\n * @maxLength 5000\n */\n altText?: string | null;\n /**\n * Image URL expiration date (when relevant).\n * @internal\n */\n urlExpirationDate?: Date | null;\n /**\n * Image filename.\n * @maxLength 512\n */\n filename?: string | null;\n /**\n * Image size in bytes.\n * @internal\n * @decimalValue options { maxScale:100 }\n */\n sizeInBytes?: string | null;\n}\n\nexport interface Point {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n}\n\nexport interface UnsharpMasking {\n /**\n * Unsharp masking amount. Controls the sharpening strength. <br />\n *\n * Min: `0` <br />\n * Max: `5`\n * @max 5\n */\n amount?: number | null;\n /** Unsharp masking radius in pixels. Controls the sharpening width. */\n radius?: number | null;\n /**\n * Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />\n *\n * Min: `0` <br />\n * Max: `1`\n * @max 1\n */\n threshold?: number | null;\n}\n\nexport interface Video {\n /** Information about the Wix Media video. */\n videoInfo?: VideoV2;\n /** Manually defined Video duration in milliseconds. */\n durationInMillis?: number | null;\n}\n\nexport interface VideoV2 {\n /**\n * WixMedia ID. Required.\n * @maxLength 512\n */\n id?: string;\n /**\n * Video URL.\n * @maxLength 8000\n */\n url?: string;\n /**\n * Available resolutions for the video, starting with the optimal resolution.\n * @maxSize 100\n */\n resolutions?: VideoResolution[];\n /**\n * Video filename.\n * @maxLength 512\n */\n filename?: string | null;\n /**\n * Video posters.\n * @maxSize 100\n */\n posters?: CommonImage[];\n /**\n * Original video size in bytes.\n * @internal\n * @decimalValue options { maxScale:100 }\n */\n sizeInBytes?: string | null;\n /**\n * Video URL expiration date (when relevant).\n * @internal\n */\n urlExpirationDate?: Date | null;\n}\n\nexport interface VideoResolution {\n /**\n * Video URL. Required.\n * @maxLength 8000\n */\n url?: string;\n /** Video height. Required. */\n height?: number;\n /** Video width. Required. */\n width?: number;\n /**\n * Video poster. Deprecated, please use the `posters` property in the parent entity\n * @internal\n * @deprecated Video poster. Deprecated, please use the `posters` property in the parent entity\n * @targetRemovalDate 2026-02-05\n */\n poster?: CommonImage;\n /**\n * Video format for example, mp4, hls. Required.\n * @maxLength 50\n */\n format?: string;\n /**\n * Video quality for example 480p, 720p.\n * @maxLength 50\n */\n quality?: string | null;\n /**\n * Video filename.\n * @maxLength 512\n */\n filename?: string | null;\n}\n\nexport interface Tags {\n /**\n * List of tags assigned to the media item.\n * @maxSize 50\n * @maxLength 100\n */\n values?: string[];\n}\n\nexport interface Link {\n /** Display text of the link. */\n text?: string | null;\n /**\n * Target URL of the link.\n * @format WEB_URL\n */\n url?: string | null;\n /**\n * Whether the link opens in a new tab or window. One of:\n * * `'_blank'`: The link opens in a new tab or window.\n * * `'_self'`: The link opens in the same tab or window.\n * @maxLength 50\n */\n target?: string | null;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n /**\n * Optional caller-provided ID for tracking this invalidation through the system.\n * When set, the corresponding CDN purge completion event will include this ID,\n * allowing you to confirm when the invalidation has fully propagated.\n * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.\n * @maxLength 256\n */\n correlationId?: string | null;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface Pages {\n /**\n * the msid the pages are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by multiple Page IDs in a single message\n * @maxSize 100\n * @minLength 1\n */\n pageIds?: string[];\n}\n\nexport interface URIs {\n /**\n * the msid the URIs are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @maxSize 100\n * @minLength 1\n */\n uriPaths?: string[];\n}\n\nexport interface CreateProjectItemRequest {\n /** Project item to create. */\n item: Item;\n}\n\nexport interface CreateProjectItemResponse {\n /**\n * @internal\n * @format GUID\n * @deprecated\n * @targetRemovalDate 2025-05-25\n */\n projectId?: string;\n /** Newly created project item. */\n item?: Item;\n}\n\nexport interface BulkCreateProjectItemsRequest {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId: string;\n /**\n * Project items to create.\n * @minSize 1\n * @maxSize 1000\n */\n items: Item[];\n /**\n * Whether to return the created project items.\n *\n * Set to `true` to return the project items in the response.\n *\n * Default: `false`\n */\n returnFullEntity?: boolean | null;\n}\n\nexport interface BulkCreateProjectItemsResponse {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId?: string;\n /** List of individual Bulk Create Project Items results. */\n results?: BulkCreateProjectItemResult[];\n /** Total number of successes and failures for Bulk Create Project Items. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkCreateProjectItemResult {\n /**\n * Information about the created project item.\n * Including its ID, index in the bulk request and whether it was successfully created.\n */\n itemMetadata?: ItemMetadata;\n /** Created project item. Only returned if `returnEntity` is set to `true` in the request. */\n item?: Item;\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 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 GetProjectItemRequest {\n /**\n * Project item ID.\n * @format GUID\n */\n itemId: string;\n}\n\nexport interface GetProjectItemResponse {\n /** Project item. */\n item?: Item;\n}\n\nexport interface ListProjectItemsRequest {\n /**\n * Project ID.\n * @format GUID\n */\n projectId: string;\n /** Maximum number of items to return in the results. */\n paging?: Paging;\n}\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 ListProjectItemsResponse {\n /**\n * @internal\n * @format GUID\n * @deprecated\n * @targetRemovalDate 2025-05-25\n */\n projectId?: string;\n /** Project items. */\n items?: Item[];\n /**\n * @deprecated\n * @targetRemovalDate 2025-05-25\n */\n pagingMetadataV2?: PagingMetadataV2;\n /** Paging metadata. */\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 * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n * @internal\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface QueryProjectItemsRequest {\n /** WQL expression */\n query?: QueryV2;\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 * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n /**\n * Origin point for geo-distance sorting on a GEO field\n * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n */\n origin?: AddressLocation;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface 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 QueryProjectItemsResponse {\n /** Project items. */\n items?: Item[];\n /** Paging metadata. */\n metadata?: PagingMetadataV2;\n}\n\nexport interface UpdateProjectItemRequest {\n /** The project item to update. */\n item: Item;\n /**\n * Explicit list of fields to update\n * @internal\n */\n mask?: string[];\n}\n\nexport interface UpdateProjectItemResponse {\n /**\n * @internal\n * @format GUID\n * @deprecated\n * @targetRemovalDate 2025-05-25\n */\n projectId?: string;\n /** The updated project item. */\n item?: Item;\n}\n\nexport interface BulkUpdateProjectItemsRequest {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId: string;\n /**\n * Project items to update.\n * @maxSize 100\n */\n items?: MaskedItem[];\n /**\n * Whether to return the updated project items.\n *\n * Set to `true` to return the project items in the response.\n *\n * Default: `false`\n */\n returnFullEntity?: boolean | null;\n}\n\nexport interface MaskedItem {\n /** Item to be updated. */\n item?: Item;\n /**\n * Fields to update.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface BulkUpdateProjectItemsResponse {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId?: string;\n /** List of individual Bulk Update Project Items results. */\n results?: BulkUpdateProjectItemResult[];\n /** Total number of successes and failures for Bulk Update Project Items. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateProjectItemResult {\n /**\n * Information about the updated project item.\n * Including its ID, index in the bulk request and whether it was successfully updated.\n */\n itemMetadata?: ItemMetadata;\n /** Updated project item. Only returned if `returnEntity` is set to `true` in the request. */\n item?: Item;\n}\n\nexport interface DeleteProjectItemRequest {\n /**\n * ID of the project item to delete.\n * @format GUID\n */\n itemId: string;\n}\n\nexport interface DeleteProjectItemResponse {\n /**\n * ID of the deleted project item.\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface BulkDeleteProjectItemsRequest {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId: string;\n /**\n * IDs of project items to delete.\n * @format GUID\n * @minSize 1\n * @maxLength 100\n */\n itemIds: string[];\n}\n\nexport interface BulkDeleteProjectItemsResponse {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId?: string;\n /** List of individual Bulk Delete Project Items results. */\n results?: BulkDeleteProjectItemResult[];\n /** Total number of successes and failures for Bulk Delete Project Items. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteProjectItemResult {\n /**\n * Information about the deleted project item.\n * Including its ID, index in the bulk request and whether it was successfully deleted.\n */\n itemMetadata?: ItemMetadata;\n /**\n * ID of the deleted project item.\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface CreateProjectGalleryRequest {\n /**\n * Id of Project to create\n * @format GUID\n */\n projectId?: string;\n}\n\nexport interface CreateProjectGalleryResponse {\n /**\n * Id of created Project\n * @format GUID\n */\n projectId?: string;\n /**\n * Id of created gallery\n * @format GUID\n */\n galleryId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface DeletedProjectRestored {\n /**\n * the id of the project that was restored\n * @format GUID\n */\n projectId?: string;\n /** timestamp for when the project was originally deleted. */\n deletionTimestamp?: Date | null;\n}\n\nexport interface DuplicateProjectItemsRequest {\n /**\n * ID of the project containing the items to duplicate.\n * @format GUID\n */\n originProjectId: string;\n /**\n * ID of the project where the duplicated items will be added.\n * @format GUID\n */\n targetProjectId: string;\n}\n\nexport interface DuplicateProjectItemsResponse {\n /**\n * Project ID where the duplicated items have been added.\n * @format GUID\n */\n projectId?: string;\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface GenerateTokenForProjectItemsRequest {\n /**\n * Media ids of requested project items\n * @minSize 1\n * @maxLength 100\n */\n mediaIds: string[];\n}\n\nexport interface GenerateTokenForProjectItemsResponse {\n /** Generated media tokens for project items */\n mediaTokens?: ProjectItemMediaToken[];\n}\n\nexport interface ProjectItemMediaToken {\n /** Media id of project item */\n mediaId?: string;\n /** Generated media token for project item */\n mediaToken?: string;\n}\n","import * as ambassadorWixPortfolioProjectItemsV1ProjectItem from './portfolio-project-items-v1-project-item-project-items.http.js';\nimport * as ambassadorWixPortfolioProjectItemsV1ProjectItemTypes from './portfolio-project-items-v1-project-item-project-items.types.js';\nimport * as ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes from './portfolio-project-items-v1-project-item-project-items.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createProjectItem(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.CreateProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.CreateProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.CreateProjectItemResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.CreateProjectItemResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.createProjectItem(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/api/v1/portfolio/items',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkCreateProjectItems(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkCreateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkCreateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkCreateProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkCreateProjectItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.bulkCreateProjectItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/api/v1/bulk/portfolio/items/create',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getProjectItem(): __PublicMethodMetaInfo<\n 'GET',\n { itemId: string },\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.GetProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.GetProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.GetProjectItemResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.GetProjectItemResponse\n> {\n const payload = { itemId: ':itemId' } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.getProjectItem(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/api/v1/portfolio/items/{itemId}',\n pathParams: { itemId: 'itemId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listProjectItems(): __PublicMethodMetaInfo<\n 'GET',\n { projectId: string },\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.ListProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.ListProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.ListProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.ListProjectItemsResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.listProjectItems(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/api/v1/portfolio/projects/{projectId}/items',\n pathParams: { projectId: 'projectId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateProjectItem(): __PublicMethodMetaInfo<\n 'PATCH',\n { itemId: string },\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.UpdateProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.UpdateProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.UpdateProjectItemResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.UpdateProjectItemResponse\n> {\n const payload = { item: { id: ':itemId' } } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.updateProjectItem(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/api/v1/portfolio/items/{item.id}',\n pathParams: { itemId: 'itemId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateProjectItems(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkUpdateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkUpdateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkUpdateProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkUpdateProjectItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.bulkUpdateProjectItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/api/v1/bulk/portfolio/items/update',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteProjectItem(): __PublicMethodMetaInfo<\n 'DELETE',\n { itemId: string },\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.DeleteProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.DeleteProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.DeleteProjectItemResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.DeleteProjectItemResponse\n> {\n const payload = { itemId: ':itemId' } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.deleteProjectItem(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/api/v1/portfolio/items/{itemId}',\n pathParams: { itemId: 'itemId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkDeleteProjectItems(): __PublicMethodMetaInfo<\n 'DELETE',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkDeleteProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkDeleteProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkDeleteProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkDeleteProjectItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.bulkDeleteProjectItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/api/v1/bulk/portfolio/items/delete',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function duplicateProjectItems(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.DuplicateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.DuplicateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.DuplicateProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.DuplicateProjectItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.duplicateProjectItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/api/v1/items/duplicate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateTokenForProjectItems(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.GenerateTokenForProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.GenerateTokenForProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.GenerateTokenForProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.GenerateTokenForProjectItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.generateTokenForProjectItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/api/v1/portfolio/project/items/media',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Item as ItemOriginal,\n ItemMetadataOneOf as ItemMetadataOneOfOriginal,\n Type as TypeOriginal,\n TypeWithLiterals as TypeWithLiteralsOriginal,\n Image as ImageOriginal,\n ImageType as ImageTypeOriginal,\n ImageTypeWithLiterals as ImageTypeWithLiteralsOriginal,\n CommonImage as CommonImageOriginal,\n Point as PointOriginal,\n UnsharpMasking as UnsharpMaskingOriginal,\n Video as VideoOriginal,\n VideoV2 as VideoV2Original,\n VideoResolution as VideoResolutionOriginal,\n Tags as TagsOriginal,\n Link as LinkOriginal,\n InvalidateCache as InvalidateCacheOriginal,\n InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal,\n App as AppOriginal,\n Page as PageOriginal,\n URI as URIOriginal,\n File as FileOriginal,\n CustomTag as CustomTagOriginal,\n Pages as PagesOriginal,\n URIs as URIsOriginal,\n CreateProjectItemRequest as CreateProjectItemRequestOriginal,\n CreateProjectItemResponse as CreateProjectItemResponseOriginal,\n BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequestOriginal,\n BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponseOriginal,\n BulkCreateProjectItemResult as BulkCreateProjectItemResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n GetProjectItemRequest as GetProjectItemRequestOriginal,\n GetProjectItemResponse as GetProjectItemResponseOriginal,\n ListProjectItemsRequest as ListProjectItemsRequestOriginal,\n Paging as PagingOriginal,\n ListProjectItemsResponse as ListProjectItemsResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n QueryProjectItemsRequest as QueryProjectItemsRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n AddressLocation as AddressLocationOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryProjectItemsResponse as QueryProjectItemsResponseOriginal,\n UpdateProjectItemRequest as UpdateProjectItemRequestOriginal,\n UpdateProjectItemResponse as UpdateProjectItemResponseOriginal,\n BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequestOriginal,\n MaskedItem as MaskedItemOriginal,\n BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponseOriginal,\n BulkUpdateProjectItemResult as BulkUpdateProjectItemResultOriginal,\n DeleteProjectItemRequest as DeleteProjectItemRequestOriginal,\n DeleteProjectItemResponse as DeleteProjectItemResponseOriginal,\n BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequestOriginal,\n BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponseOriginal,\n BulkDeleteProjectItemResult as BulkDeleteProjectItemResultOriginal,\n CreateProjectGalleryRequest as CreateProjectGalleryRequestOriginal,\n CreateProjectGalleryResponse as CreateProjectGalleryResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n DeletedProjectRestored as DeletedProjectRestoredOriginal,\n DuplicateProjectItemsRequest as DuplicateProjectItemsRequestOriginal,\n DuplicateProjectItemsResponse as DuplicateProjectItemsResponseOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequestOriginal,\n GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponseOriginal,\n ProjectItemMediaToken as ProjectItemMediaTokenOriginal,\n} from './portfolio-project-items-v1-project-item-project-items.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,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AAU,CAAC;AAEjB,QAAM,oBAC4C;AAAA,IAC9C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4C;AAAA,IAC9C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4C;AAAA,IAC9C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Type","ImageType","SortOrder","WebhookIdentityType","createProjectItem","bulkCreateProjectItems","getProjectItem","listProjectItems","updateProjectItem","bulkUpdateProjectItems","deleteProjectItem","bulkDeleteProjectItems","duplicateProjectItems","generateTokenForProjectItems"]}
1
+ {"version":3,"sources":["../../src/portfolio-project-items-v1-project-item-project-items.http.ts","../../src/portfolio-project-items-v1-project-item-project-items.types.ts","../../src/portfolio-project-items-v1-project-item-project-items.meta.ts"],"sourcesContent":["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 resolveComWixpressPortfolioPortfolioappMediaServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n _: [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/_api/portfolio-app-service',\n destPath: '/api',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/portfolio/v1/settings',\n destPath: '/api/v1/portfolio/settings',\n },\n {\n srcPath: '/portfolio/portfolio-app/api/v1/portfolio/settings',\n destPath: '/api/v1/portfolio/settings',\n },\n {\n srcPath:\n '/portfolio/project-items/api/v1/portfolio/project/items/media',\n destPath: '/api/v1/portfolio/project/items/media',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/portfolio/portfolio-app/api/v1/portfolio/settings',\n destPath: '/api/v1/portfolio/settings',\n },\n {\n srcPath:\n '/portfolio/project-items/api/v1/portfolio/project/items/media',\n destPath: '/api/v1/portfolio/project/items/media',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/create',\n destPath: '/api/v1/bulk/portfolio/items/create',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/items/duplicate',\n destPath: '/api/v1/items/duplicate',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/delete',\n destPath: '/api/v1/bulk/portfolio/items/delete',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/update',\n destPath: '/api/v1/bulk/portfolio/items/update',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/portfolio/v1/projectItems',\n destPath: '/api/v1/portfolio/projects',\n },\n {\n srcPath: '/portfolio/v1/items',\n destPath: '/api/v1/portfolio/items',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/create',\n destPath: '/api/v1/bulk/portfolio/items/create',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/items/duplicate',\n destPath: '/api/v1/items/duplicate',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/delete',\n destPath: '/api/v1/bulk/portfolio/items/delete',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/update',\n destPath: '/api/v1/bulk/portfolio/items/update',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/portfolio/items',\n destPath: '/api/v1/portfolio/items',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/portfolio/projects',\n destPath: '/api/v1/portfolio/projects',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/project-items-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/create',\n destPath: '/api/v1/bulk/portfolio/items/create',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/items/duplicate',\n destPath: '/api/v1/items/duplicate',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/delete',\n destPath: '/api/v1/bulk/portfolio/items/delete',\n },\n {\n srcPath: '/portfolio/project-items/api/v1/bulk/portfolio/items/update',\n destPath: '/api/v1/bulk/portfolio/items/update',\n },\n {\n srcPath: '/_api/project-items-service',\n destPath: '/api',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_portfolio_project-items';\n\n/** Creates a project item. */\nexport function createProjectItem(payload: object): RequestOptionsFactory<any> {\n function __createProjectItem({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate' },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.CreateProjectItem',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/items',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createProjectItem;\n}\n\n/**\n * Creates multiple project items.\n *\n * To create a single project item, call Create Project Item.\n */\nexport function bulkCreateProjectItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateProjectItems({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'items.sortOrder' },\n { path: 'items.image.focalPoint.x' },\n { path: 'items.image.focalPoint.y' },\n { path: 'items.image.unsharpMasking.amount' },\n { path: 'items.image.unsharpMasking.radius' },\n { path: 'items.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'items.createdDate' },\n { path: 'items.updatedDate' },\n { path: 'items.image.imageInfo.urlExpirationDate' },\n { path: 'items.video.videoInfo.urlExpirationDate' },\n {\n path: 'items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'items.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.BulkCreateProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/bulk/portfolio/items/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.sortOrder' },\n { path: 'results.item.image.focalPoint.x' },\n { path: 'results.item.image.focalPoint.y' },\n { path: 'results.item.image.unsharpMasking.amount' },\n { path: 'results.item.image.unsharpMasking.radius' },\n { path: 'results.item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.image.imageInfo.urlExpirationDate' },\n { path: 'results.item.video.videoInfo.urlExpirationDate' },\n {\n path: 'results.item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'results.item.video.videoInfo.posters.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateProjectItems;\n}\n\n/** Retrieves a project item. */\nexport function getProjectItem(payload: object): RequestOptionsFactory<any> {\n function __getProjectItem({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.GetProjectItem',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/items/{itemId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'GET' as any,\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/items/{itemId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n },\n ],\n };\n\n return metadata;\n }\n\n return __getProjectItem;\n}\n\n/** Retrieves a list of all project items in the specified project. */\nexport function listProjectItems(payload: object): RequestOptionsFactory<any> {\n function __listProjectItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.ListProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/projects/{projectId}/items',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'items.sortOrder' },\n { path: 'items.image.focalPoint.x' },\n { path: 'items.image.focalPoint.y' },\n { path: 'items.image.unsharpMasking.amount' },\n { path: 'items.image.unsharpMasking.radius' },\n { path: 'items.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'items.createdDate' },\n { path: 'items.updatedDate' },\n { path: 'items.image.imageInfo.urlExpirationDate' },\n { path: 'items.video.videoInfo.urlExpirationDate' },\n {\n path: 'items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'items.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listProjectItems;\n}\n\n/** Updates a project item. */\nexport function updateProjectItem(payload: object): RequestOptionsFactory<any> {\n function __updateProjectItem({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate' },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.UpdateProjectItem',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/items/{item.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProjectItem;\n}\n\n/**\n * Updates multiple project items.\n *\n * To update a single project item, call Update Project Item.\n */\nexport function bulkUpdateProjectItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateProjectItems({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'items.fieldMask' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'items.item.sortOrder' },\n { path: 'items.item.image.focalPoint.x' },\n { path: 'items.item.image.focalPoint.y' },\n { path: 'items.item.image.unsharpMasking.amount' },\n { path: 'items.item.image.unsharpMasking.radius' },\n { path: 'items.item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'items.item.createdDate' },\n { path: 'items.item.updatedDate' },\n { path: 'items.item.image.imageInfo.urlExpirationDate' },\n { path: 'items.item.video.videoInfo.urlExpirationDate' },\n {\n path: 'items.item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'items.item.video.videoInfo.posters.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.BulkUpdateProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/bulk/portfolio/items/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.sortOrder' },\n { path: 'results.item.image.focalPoint.x' },\n { path: 'results.item.image.focalPoint.y' },\n { path: 'results.item.image.unsharpMasking.amount' },\n { path: 'results.item.image.unsharpMasking.radius' },\n { path: 'results.item.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.image.imageInfo.urlExpirationDate' },\n { path: 'results.item.video.videoInfo.urlExpirationDate' },\n {\n path: 'results.item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'results.item.video.videoInfo.posters.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateProjectItems;\n}\n\n/** Deletes a project item. */\nexport function deleteProjectItem(payload: object): RequestOptionsFactory<any> {\n function __deleteProjectItem({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.DeleteProjectItem',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/portfolio/items/{itemId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProjectItem;\n}\n\n/**\n * Deletes multiple project items.\n *\n * To delete a single project item, call Delete Project Item.\n */\nexport function bulkDeleteProjectItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteProjectItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.BulkDeleteProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/bulk/portfolio/items/delete',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __bulkDeleteProjectItems;\n}\n\n/**\n * Duplicates project items from one project (the origin) to another project (the target).\n *\n * <blockquote class=\"important\">\n * <strong>Important:</strong>\n *\n * Both the origin and target projects must exist before calling this method.\n * </blockquote>\n */\nexport function duplicateProjectItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __duplicateProjectItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.portfolio.projectitems.ProjectItemsService.DuplicateProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({\n protoPath: '/api/v1/items/duplicate',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __duplicateProjectItems;\n}\n\n/** Generate media token for project items */\nexport function generateTokenForProjectItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateTokenForProjectItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.portfolio.project_items.v1.project_item',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({\n protoPath: '/api/v1/portfolio/project/items/media',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateTokenForProjectItems;\n}\n","export interface Item extends ItemMetadataOneOf {\n /** Information about the Wix Media image. */\n image?: Image;\n /** Information about the Wix Media video. */\n video?: Video;\n /**\n * Project ID.\n * @format GUID\n */\n projectId?: string | null;\n /**\n * Project item ID.\n * @readonly\n * @format GUID\n */\n id?: string | null;\n /**\n * Index that determines which position a project is displayed in the project. <br />\n *\n * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />\n */\n sortOrder?: number | null;\n /** Project item title. */\n title?: string | null;\n /** Project item description. */\n description?: string | null;\n /**\n * Project item data type.\n * @readonly\n */\n type?: TypeWithLiterals;\n /**\n * Date and time the project item was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the project item was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Project item tags.\n * @internal\n */\n tags?: Tags;\n /** Project item link. */\n link?: Link;\n}\n\n/** @oneof */\nexport interface ItemMetadataOneOf {\n /** Information about the Wix Media image. */\n image?: Image;\n /** Information about the Wix Media video. */\n video?: Video;\n}\n\nexport enum Type {\n /** Undefined item type. */\n UNDEFINED = 'UNDEFINED',\n /** Image item type. */\n IMAGE = 'IMAGE',\n /** Video item type. */\n VIDEO = 'VIDEO',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'UNDEFINED' | 'IMAGE' | 'VIDEO';\n\nexport interface Image {\n /**\n * @internal\n * @deprecated\n * @targetRemovalDate 2026-02-05\n */\n type?: ImageTypeWithLiterals;\n /** Information about the Wix Media image. */\n imageInfo?: CommonImage;\n /** Focal point of the image. */\n focalPoint?: Point;\n /**\n * Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif).\n * @internal\n */\n exif?: Record<string, any> | null;\n /**\n * Image compression level. <br />\n *\n * Min: `30` <br />\n * Max: `100`\n * @internal\n * @min 30\n * @max 100\n */\n quality?: number | null;\n /**\n * [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image.\n * @internal\n */\n unsharpMasking?: UnsharpMasking;\n /**\n * Whether the image is saved in secure media.\n * @internal\n */\n secure?: boolean | null;\n /**\n * When image is saved in secure media, token is generated.\n * @internal\n * @readonly\n * @maxLength 5000\n */\n token?: string | null;\n}\n\nexport enum ImageType {\n UNDEFINED = 'UNDEFINED',\n WIX_MEDIA = 'WIX_MEDIA',\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type ImageTypeWithLiterals =\n | ImageType\n | 'UNDEFINED'\n | 'WIX_MEDIA'\n | 'EXTERNAL';\n\nexport interface CommonImage {\n /**\n * WixMedia image ID. Required.\n * @maxLength 512\n */\n id?: string;\n /**\n * Image URL.\n * @readonly\n * @maxLength 8000\n */\n url?: string;\n /** Original image height. Required. */\n height?: number;\n /** Original image width. Required. */\n width?: number;\n /**\n * Image alt text.\n * @maxLength 5000\n */\n altText?: string | null;\n /**\n * Image URL expiration date (when relevant).\n * @internal\n */\n urlExpirationDate?: Date | null;\n /**\n * Image filename.\n * @maxLength 512\n */\n filename?: string | null;\n /**\n * Image size in bytes.\n * @internal\n * @decimalValue options { maxScale:100 }\n */\n sizeInBytes?: string | null;\n}\n\nexport interface Point {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n}\n\nexport interface UnsharpMasking {\n /**\n * Unsharp masking amount. Controls the sharpening strength. <br />\n *\n * Min: `0` <br />\n * Max: `5`\n * @max 5\n */\n amount?: number | null;\n /** Unsharp masking radius in pixels. Controls the sharpening width. */\n radius?: number | null;\n /**\n * Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />\n *\n * Min: `0` <br />\n * Max: `1`\n * @max 1\n */\n threshold?: number | null;\n}\n\nexport interface Video {\n /** Information about the Wix Media video. */\n videoInfo?: VideoV2;\n /** Manually defined Video duration in milliseconds. */\n durationInMillis?: number | null;\n}\n\nexport interface VideoV2 {\n /**\n * WixMedia ID. Required.\n * @maxLength 512\n */\n id?: string;\n /**\n * Video URL.\n * @maxLength 8000\n */\n url?: string;\n /**\n * Available resolutions for the video, starting with the optimal resolution.\n * @maxSize 100\n */\n resolutions?: VideoResolution[];\n /**\n * Video filename.\n * @maxLength 512\n */\n filename?: string | null;\n /**\n * Video posters.\n * @maxSize 100\n */\n posters?: CommonImage[];\n /**\n * Original video size in bytes.\n * @internal\n * @decimalValue options { maxScale:100 }\n */\n sizeInBytes?: string | null;\n /**\n * Video URL expiration date (when relevant).\n * @internal\n */\n urlExpirationDate?: Date | null;\n}\n\nexport interface VideoResolution {\n /**\n * Video URL. Required.\n * @maxLength 8000\n */\n url?: string;\n /** Video height. Required. */\n height?: number;\n /** Video width. Required. */\n width?: number;\n /**\n * Video poster. Deprecated, please use the `posters` property in the parent entity\n * @internal\n * @deprecated Video poster. Deprecated, please use the `posters` property in the parent entity\n * @targetRemovalDate 2026-02-05\n */\n poster?: CommonImage;\n /**\n * Video format for example, mp4, hls. Required.\n * @maxLength 50\n */\n format?: string;\n /**\n * Video quality for example 480p, 720p.\n * @maxLength 50\n */\n quality?: string | null;\n /**\n * Video filename.\n * @maxLength 512\n */\n filename?: string | null;\n}\n\nexport interface Tags {\n /**\n * List of tags assigned to the media item.\n * @maxSize 50\n * @maxLength 100\n */\n values?: string[];\n}\n\nexport interface Link {\n /** Display text of the link. */\n text?: string | null;\n /**\n * Target URL of the link.\n * @format WEB_URL\n */\n url?: string | null;\n /**\n * Whether the link opens in a new tab or window. One of:\n * * `'_blank'`: The link opens in a new tab or window.\n * * `'_self'`: The link opens in the same tab or window.\n * @maxLength 50\n */\n target?: string | null;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n /**\n * Optional caller-provided ID for tracking this invalidation through the system.\n * When set, the corresponding CDN purge completion event will include this ID,\n * allowing you to confirm when the invalidation has fully propagated.\n * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.\n * @maxLength 256\n */\n correlationId?: string | null;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface Pages {\n /**\n * the msid the pages are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by multiple Page IDs in a single message\n * @maxSize 100\n * @minLength 1\n */\n pageIds?: string[];\n}\n\nexport interface URIs {\n /**\n * the msid the URIs are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @maxSize 100\n * @minLength 1\n */\n uriPaths?: string[];\n}\n\nexport interface CreateProjectItemRequest {\n /** Project item to create. */\n item: Item;\n}\n\nexport interface CreateProjectItemResponse {\n /**\n * @internal\n * @format GUID\n * @deprecated\n * @targetRemovalDate 2025-05-25\n */\n projectId?: string;\n /** Newly created project item. */\n item?: Item;\n}\n\nexport interface BulkCreateProjectItemsRequest {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId: string;\n /**\n * Project items to create.\n * @minSize 1\n * @maxSize 1000\n */\n items: Item[];\n /**\n * Whether to return the created project items.\n *\n * Set to `true` to return the project items in the response.\n *\n * Default: `false`\n */\n returnFullEntity?: boolean | null;\n}\n\nexport interface BulkCreateProjectItemsResponse {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId?: string;\n /** List of individual Bulk Create Project Items results. */\n results?: BulkCreateProjectItemResult[];\n /** Total number of successes and failures for Bulk Create Project Items. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkCreateProjectItemResult {\n /**\n * Information about the created project item.\n * Including its ID, index in the bulk request and whether it was successfully created.\n */\n itemMetadata?: ItemMetadata;\n /** Created project item. Only returned if `returnEntity` is set to `true` in the request. */\n item?: Item;\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 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 GetProjectItemRequest {\n /**\n * Project item ID.\n * @format GUID\n */\n itemId: string;\n}\n\nexport interface GetProjectItemResponse {\n /** Project item. */\n item?: Item;\n}\n\nexport interface ListProjectItemsRequest {\n /**\n * Project ID.\n * @format GUID\n */\n projectId: string;\n /** Maximum number of items to return in the results. */\n paging?: Paging;\n}\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 ListProjectItemsResponse {\n /**\n * @internal\n * @format GUID\n * @deprecated\n * @targetRemovalDate 2025-05-25\n */\n projectId?: string;\n /** Project items. */\n items?: Item[];\n /**\n * @deprecated\n * @targetRemovalDate 2025-05-25\n */\n pagingMetadataV2?: PagingMetadataV2;\n /** Paging metadata. */\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 * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n * @internal\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface QueryProjectItemsRequest {\n /** WQL expression */\n query?: QueryV2;\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 * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n /**\n * Origin point for geo-distance sorting on a GEO field\n * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n */\n origin?: AddressLocation;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface 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 QueryProjectItemsResponse {\n /** Project items. */\n items?: Item[];\n /** Paging metadata. */\n metadata?: PagingMetadataV2;\n}\n\nexport interface UpdateProjectItemRequest {\n /** The project item to update. */\n item: Item;\n /**\n * Explicit list of fields to update\n * @internal\n */\n mask?: string[];\n}\n\nexport interface UpdateProjectItemResponse {\n /**\n * @internal\n * @format GUID\n * @deprecated\n * @targetRemovalDate 2025-05-25\n */\n projectId?: string;\n /** The updated project item. */\n item?: Item;\n}\n\nexport interface BulkUpdateProjectItemsRequest {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId: string;\n /**\n * Project items to update.\n * @maxSize 100\n */\n items?: MaskedItem[];\n /**\n * Whether to return the updated project items.\n *\n * Set to `true` to return the project items in the response.\n *\n * Default: `false`\n */\n returnFullEntity?: boolean | null;\n}\n\nexport interface MaskedItem {\n /** Item to be updated. */\n item?: Item;\n /**\n * Fields to update.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface BulkUpdateProjectItemsResponse {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId?: string;\n /** List of individual Bulk Update Project Items results. */\n results?: BulkUpdateProjectItemResult[];\n /** Total number of successes and failures for Bulk Update Project Items. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateProjectItemResult {\n /**\n * Information about the updated project item.\n * Including its ID, index in the bulk request and whether it was successfully updated.\n */\n itemMetadata?: ItemMetadata;\n /** Updated project item. Only returned if `returnEntity` is set to `true` in the request. */\n item?: Item;\n}\n\nexport interface DeleteProjectItemRequest {\n /**\n * ID of the project item to delete.\n * @format GUID\n */\n itemId: string;\n}\n\nexport interface DeleteProjectItemResponse {\n /**\n * ID of the deleted project item.\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface BulkDeleteProjectItemsRequest {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId: string;\n /**\n * IDs of project items to delete.\n * @format GUID\n * @minSize 1\n * @maxLength 100\n */\n itemIds: string[];\n}\n\nexport interface BulkDeleteProjectItemsResponse {\n /**\n * Project ID.\n * @internal\n * @format GUID\n */\n projectId?: string;\n /** List of individual Bulk Delete Project Items results. */\n results?: BulkDeleteProjectItemResult[];\n /** Total number of successes and failures for Bulk Delete Project Items. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteProjectItemResult {\n /**\n * Information about the deleted project item.\n * Including its ID, index in the bulk request and whether it was successfully deleted.\n */\n itemMetadata?: ItemMetadata;\n /**\n * ID of the deleted project item.\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface CreateProjectGalleryRequest {\n /**\n * Id of Project to create\n * @format GUID\n */\n projectId?: string;\n}\n\nexport interface CreateProjectGalleryResponse {\n /**\n * Id of created Project\n * @format GUID\n */\n projectId?: string;\n /**\n * Id of created gallery\n * @format GUID\n */\n galleryId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface DeletedProjectRestored {\n /**\n * the id of the project that was restored\n * @format GUID\n */\n projectId?: string;\n /** timestamp for when the project was originally deleted. */\n deletionTimestamp?: Date | null;\n}\n\nexport interface DuplicateProjectItemsRequest {\n /**\n * ID of the project containing the items to duplicate.\n * @format GUID\n */\n originProjectId: string;\n /**\n * ID of the project where the duplicated items will be added.\n * @format GUID\n */\n targetProjectId: string;\n}\n\nexport interface DuplicateProjectItemsResponse {\n /**\n * Project ID where the duplicated items have been added.\n * @format GUID\n */\n projectId?: string;\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface CloneFromOriginRequest {\n /** @format GUID */\n originInstanceId?: string;\n}\n\nexport interface CloneFromOriginResponse {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface GenerateTokenForProjectItemsRequest {\n /**\n * Media ids of requested project items\n * @minSize 1\n * @maxLength 100\n */\n mediaIds: string[];\n}\n\nexport interface GenerateTokenForProjectItemsResponse {\n /** Generated media tokens for project items */\n mediaTokens?: ProjectItemMediaToken[];\n}\n\nexport interface ProjectItemMediaToken {\n /** Media id of project item */\n mediaId?: string;\n /** Generated media token for project item */\n mediaToken?: string;\n}\n","import * as ambassadorWixPortfolioProjectItemsV1ProjectItem from './portfolio-project-items-v1-project-item-project-items.http.js';\nimport * as ambassadorWixPortfolioProjectItemsV1ProjectItemTypes from './portfolio-project-items-v1-project-item-project-items.types.js';\nimport * as ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes from './portfolio-project-items-v1-project-item-project-items.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createProjectItem(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.CreateProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.CreateProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.CreateProjectItemResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.CreateProjectItemResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.createProjectItem(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/api/v1/portfolio/items',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkCreateProjectItems(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkCreateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkCreateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkCreateProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkCreateProjectItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.bulkCreateProjectItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/api/v1/bulk/portfolio/items/create',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getProjectItem(): __PublicMethodMetaInfo<\n 'GET',\n { itemId: string },\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.GetProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.GetProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.GetProjectItemResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.GetProjectItemResponse\n> {\n const payload = { itemId: ':itemId' } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.getProjectItem(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/api/v1/portfolio/items/{itemId}',\n pathParams: { itemId: 'itemId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listProjectItems(): __PublicMethodMetaInfo<\n 'GET',\n { projectId: string },\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.ListProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.ListProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.ListProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.ListProjectItemsResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.listProjectItems(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/api/v1/portfolio/projects/{projectId}/items',\n pathParams: { projectId: 'projectId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateProjectItem(): __PublicMethodMetaInfo<\n 'PATCH',\n { itemId: string },\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.UpdateProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.UpdateProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.UpdateProjectItemResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.UpdateProjectItemResponse\n> {\n const payload = { item: { id: ':itemId' } } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.updateProjectItem(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/api/v1/portfolio/items/{item.id}',\n pathParams: { itemId: 'itemId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateProjectItems(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkUpdateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkUpdateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkUpdateProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkUpdateProjectItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.bulkUpdateProjectItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/api/v1/bulk/portfolio/items/update',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteProjectItem(): __PublicMethodMetaInfo<\n 'DELETE',\n { itemId: string },\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.DeleteProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.DeleteProjectItemRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.DeleteProjectItemResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.DeleteProjectItemResponse\n> {\n const payload = { itemId: ':itemId' } as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.deleteProjectItem(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/api/v1/portfolio/items/{itemId}',\n pathParams: { itemId: 'itemId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkDeleteProjectItems(): __PublicMethodMetaInfo<\n 'DELETE',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkDeleteProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkDeleteProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.BulkDeleteProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.BulkDeleteProjectItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.bulkDeleteProjectItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/api/v1/bulk/portfolio/items/delete',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function duplicateProjectItems(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.DuplicateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.DuplicateProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.DuplicateProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.DuplicateProjectItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.duplicateProjectItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/api/v1/items/duplicate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateTokenForProjectItems(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.GenerateTokenForProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.GenerateTokenForProjectItemsRequest,\n ambassadorWixPortfolioProjectItemsV1ProjectItemUniversalTypes.GenerateTokenForProjectItemsResponse,\n ambassadorWixPortfolioProjectItemsV1ProjectItemTypes.GenerateTokenForProjectItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPortfolioProjectItemsV1ProjectItem.generateTokenForProjectItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/api/v1/portfolio/project/items/media',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Item as ItemOriginal,\n ItemMetadataOneOf as ItemMetadataOneOfOriginal,\n Type as TypeOriginal,\n TypeWithLiterals as TypeWithLiteralsOriginal,\n Image as ImageOriginal,\n ImageType as ImageTypeOriginal,\n ImageTypeWithLiterals as ImageTypeWithLiteralsOriginal,\n CommonImage as CommonImageOriginal,\n Point as PointOriginal,\n UnsharpMasking as UnsharpMaskingOriginal,\n Video as VideoOriginal,\n VideoV2 as VideoV2Original,\n VideoResolution as VideoResolutionOriginal,\n Tags as TagsOriginal,\n Link as LinkOriginal,\n InvalidateCache as InvalidateCacheOriginal,\n InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal,\n App as AppOriginal,\n Page as PageOriginal,\n URI as URIOriginal,\n File as FileOriginal,\n CustomTag as CustomTagOriginal,\n Pages as PagesOriginal,\n URIs as URIsOriginal,\n CreateProjectItemRequest as CreateProjectItemRequestOriginal,\n CreateProjectItemResponse as CreateProjectItemResponseOriginal,\n BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequestOriginal,\n BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponseOriginal,\n BulkCreateProjectItemResult as BulkCreateProjectItemResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n GetProjectItemRequest as GetProjectItemRequestOriginal,\n GetProjectItemResponse as GetProjectItemResponseOriginal,\n ListProjectItemsRequest as ListProjectItemsRequestOriginal,\n Paging as PagingOriginal,\n ListProjectItemsResponse as ListProjectItemsResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n QueryProjectItemsRequest as QueryProjectItemsRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n AddressLocation as AddressLocationOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryProjectItemsResponse as QueryProjectItemsResponseOriginal,\n UpdateProjectItemRequest as UpdateProjectItemRequestOriginal,\n UpdateProjectItemResponse as UpdateProjectItemResponseOriginal,\n BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequestOriginal,\n MaskedItem as MaskedItemOriginal,\n BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponseOriginal,\n BulkUpdateProjectItemResult as BulkUpdateProjectItemResultOriginal,\n DeleteProjectItemRequest as DeleteProjectItemRequestOriginal,\n DeleteProjectItemResponse as DeleteProjectItemResponseOriginal,\n BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequestOriginal,\n BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponseOriginal,\n BulkDeleteProjectItemResult as BulkDeleteProjectItemResultOriginal,\n CreateProjectGalleryRequest as CreateProjectGalleryRequestOriginal,\n CreateProjectGalleryResponse as CreateProjectGalleryResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n DeletedProjectRestored as DeletedProjectRestoredOriginal,\n DuplicateProjectItemsRequest as DuplicateProjectItemsRequestOriginal,\n DuplicateProjectItemsResponse as DuplicateProjectItemsResponseOriginal,\n CloneFromOriginRequest as CloneFromOriginRequestOriginal,\n CloneFromOriginResponse as CloneFromOriginResponseOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequestOriginal,\n GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponseOriginal,\n ProjectItemMediaToken as ProjectItemMediaTokenOriginal,\n} from './portfolio-project-items-v1-project-item-project-items.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CA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CAAC;AAEjB,QAAM,oBAC4C;AAAA,IAC9C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4C;AAAA,IAC9C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4C;AAAA,IAC9C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Type","ImageType","SortOrder","WebhookIdentityType","createProjectItem","bulkCreateProjectItems","getProjectItem","listProjectItems","updateProjectItem","bulkUpdateProjectItems","deleteProjectItem","bulkDeleteProjectItems","duplicateProjectItems","generateTokenForProjectItems"]}
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
2
  import { Item, BulkCreateProjectItemsOptions, BulkCreateProjectItemsResponse, ListProjectItemsOptions, ListProjectItemsResponse, UpdateProjectItem, BulkUpdateProjectItemsOptions, BulkUpdateProjectItemsResponse, DeleteProjectItemResponse, BulkDeleteProjectItemsOptions, BulkDeleteProjectItemsResponse, DuplicateProjectItemsOptions, DuplicateProjectItemsResponse, GenerateTokenForProjectItemsResponse, ProjectItemCreatedEnvelope, ProjectItemDeletedEnvelope, ProjectItemUpdatedEnvelope } from './index.typings.js';
3
- export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateProjectItemResult, BulkCreateProjectItemsRequest, BulkDeleteProjectItemResult, BulkDeleteProjectItemsRequest, BulkUpdateProjectItemResult, BulkUpdateProjectItemsRequest, CreateProjectGalleryRequest, CreateProjectGalleryResponse, CreateProjectItemRequest, CreateProjectItemResponse, CursorPaging, Cursors, CustomTag, DeleteProjectItemRequest, DeletedProjectRestored, DomainEvent, DomainEventBodyOneOf, DuplicateProjectItemsRequest, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, File, GenerateTokenForProjectItemsRequest, GetProjectItemRequest, GetProjectItemResponse, IdentificationData, IdentificationDataIdOneOf, Image, ImageType, ImageTypeWithLiterals, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ItemMetadataOneOf, Link, ListProjectItemsRequest, MaskedItem, MessageEnvelope, Page, Pages, Paging, PagingMetadataV2, Point, ProjectItemMediaToken, QueryProjectItemsRequest, QueryProjectItemsResponse, QueryV2, QueryV2PagingMethodOneOf, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Tags, Type, TypeWithLiterals, URI, URIs, UnsharpMasking, UpdateProjectItemRequest, UpdateProjectItemResponse, Video, VideoResolution, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
3
+ export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateProjectItemResult, BulkCreateProjectItemsRequest, BulkDeleteProjectItemResult, BulkDeleteProjectItemsRequest, BulkUpdateProjectItemResult, BulkUpdateProjectItemsRequest, CloneFromOriginRequest, CloneFromOriginResponse, CreateProjectGalleryRequest, CreateProjectGalleryResponse, CreateProjectItemRequest, CreateProjectItemResponse, CursorPaging, Cursors, CustomTag, DeleteProjectItemRequest, DeletedProjectRestored, DomainEvent, DomainEventBodyOneOf, DuplicateProjectItemsRequest, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, File, GenerateTokenForProjectItemsRequest, GetProjectItemRequest, GetProjectItemResponse, IdentificationData, IdentificationDataIdOneOf, Image, ImageType, ImageTypeWithLiterals, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ItemMetadataOneOf, Link, ListProjectItemsRequest, MaskedItem, MessageEnvelope, Page, Pages, Paging, PagingMetadataV2, Point, ProjectItemMediaToken, QueryProjectItemsRequest, QueryProjectItemsResponse, QueryV2, QueryV2PagingMethodOneOf, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Tags, Type, TypeWithLiterals, URI, URIs, UnsharpMasking, UpdateProjectItemRequest, UpdateProjectItemResponse, Video, VideoResolution, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
4
 
5
5
  declare function createProjectItem$1(httpClient: HttpClient): CreateProjectItemSignature;
6
6
  interface CreateProjectItemSignature {
@@ -9,7 +9,7 @@ interface CreateProjectItemSignature {
9
9
  * @param - Project item to create.
10
10
  * @returns Newly created project item.
11
11
  */
12
- (item: Item): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`, 4>>;
12
+ (item: Item): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`, 2>>;
13
13
  }
14
14
  declare function bulkCreateProjectItems$1(httpClient: HttpClient): BulkCreateProjectItemsSignature;
15
15
  interface BulkCreateProjectItemsSignature {
@@ -18,7 +18,7 @@ interface BulkCreateProjectItemsSignature {
18
18
  *
19
19
  * To create a single project item, call Create Project Item.
20
20
  */
21
- (options?: NonNullablePaths<BulkCreateProjectItemsOptions, `items`, 2>): Promise<NonNullablePaths<BulkCreateProjectItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.type` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
21
+ (options?: NonNullablePaths<BulkCreateProjectItemsOptions, `items`, 0>): Promise<NonNullablePaths<BulkCreateProjectItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.type` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4>>;
22
22
  }
23
23
  declare function getProjectItem$1(httpClient: HttpClient): GetProjectItemSignature;
24
24
  interface GetProjectItemSignature {
@@ -27,7 +27,7 @@ interface GetProjectItemSignature {
27
27
  * @param - Project item ID.
28
28
  * @returns Project item.
29
29
  */
30
- (itemId: string): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`, 4>>;
30
+ (itemId: string): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`, 2>>;
31
31
  }
32
32
  declare function listProjectItems$1(httpClient: HttpClient): ListProjectItemsSignature;
33
33
  interface ListProjectItemsSignature {
@@ -35,7 +35,7 @@ interface ListProjectItemsSignature {
35
35
  * Retrieves a list of all project items in the specified project.
36
36
  * @param - Project ID.
37
37
  */
38
- (projectId: string, options?: ListProjectItemsOptions): Promise<NonNullablePaths<ListProjectItemsResponse, `items` | `items.${number}.image.focalPoint.x` | `items.${number}.image.focalPoint.y` | `items.${number}.type`, 6>>;
38
+ (projectId: string, options?: ListProjectItemsOptions): Promise<NonNullablePaths<ListProjectItemsResponse, `items` | `items.${number}.image.focalPoint.x` | `items.${number}.image.focalPoint.y` | `items.${number}.type`, 4>>;
39
39
  }
40
40
  declare function updateProjectItem$1(httpClient: HttpClient): UpdateProjectItemSignature;
41
41
  interface UpdateProjectItemSignature {
@@ -44,7 +44,7 @@ interface UpdateProjectItemSignature {
44
44
  * @param - Project item ID.
45
45
  * @returns The updated project item.
46
46
  */
47
- (_id: string, item: UpdateProjectItem): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`, 4>>;
47
+ (_id: string, item: UpdateProjectItem): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`, 2>>;
48
48
  }
49
49
  declare function bulkUpdateProjectItems$1(httpClient: HttpClient): BulkUpdateProjectItemsSignature;
50
50
  interface BulkUpdateProjectItemsSignature {
@@ -53,7 +53,7 @@ interface BulkUpdateProjectItemsSignature {
53
53
  *
54
54
  * To update a single project item, call Update Project Item.
55
55
  */
56
- (options?: NonNullablePaths<BulkUpdateProjectItemsOptions, `items.${number}.item` | `items.${number}.item._id`, 5>): Promise<NonNullablePaths<BulkUpdateProjectItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.type` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
56
+ (options?: NonNullablePaths<BulkUpdateProjectItemsOptions, `items.${number}.item` | `items.${number}.item._id`, 3>): Promise<NonNullablePaths<BulkUpdateProjectItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.type` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4>>;
57
57
  }
58
58
  declare function deleteProjectItem$1(httpClient: HttpClient): DeleteProjectItemSignature;
59
59
  interface DeleteProjectItemSignature {
@@ -61,7 +61,7 @@ interface DeleteProjectItemSignature {
61
61
  * Deletes a project item.
62
62
  * @param - ID of the project item to delete.
63
63
  */
64
- (itemId: string): Promise<NonNullablePaths<DeleteProjectItemResponse, `itemId`, 2>>;
64
+ (itemId: string): Promise<NonNullablePaths<DeleteProjectItemResponse, `itemId`, 0>>;
65
65
  }
66
66
  declare function bulkDeleteProjectItems$1(httpClient: HttpClient): BulkDeleteProjectItemsSignature;
67
67
  interface BulkDeleteProjectItemsSignature {
@@ -70,7 +70,7 @@ interface BulkDeleteProjectItemsSignature {
70
70
  *
71
71
  * To delete a single project item, call Delete Project Item.
72
72
  */
73
- (options: NonNullablePaths<BulkDeleteProjectItemsOptions, `itemIds`, 2>): Promise<NonNullablePaths<BulkDeleteProjectItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.itemId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
73
+ (options: NonNullablePaths<BulkDeleteProjectItemsOptions, `itemIds`, 0>): Promise<NonNullablePaths<BulkDeleteProjectItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.itemId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4>>;
74
74
  }
75
75
  declare function duplicateProjectItems$1(httpClient: HttpClient): DuplicateProjectItemsSignature;
76
76
  interface DuplicateProjectItemsSignature {
@@ -84,7 +84,7 @@ interface DuplicateProjectItemsSignature {
84
84
  * </blockquote>
85
85
  * @param - ID of the project containing the items to duplicate.
86
86
  */
87
- (originProjectId: string, options: NonNullablePaths<DuplicateProjectItemsOptions, `targetProjectId`, 2>): Promise<NonNullablePaths<DuplicateProjectItemsResponse, `projectId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 3>>;
87
+ (originProjectId: string, options: NonNullablePaths<DuplicateProjectItemsOptions, `targetProjectId`, 0>): Promise<NonNullablePaths<DuplicateProjectItemsResponse, `projectId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 1>>;
88
88
  }
89
89
  declare function generateTokenForProjectItems$1(httpClient: HttpClient): GenerateTokenForProjectItemsSignature;
90
90
  interface GenerateTokenForProjectItemsSignature {
@@ -92,7 +92,7 @@ interface GenerateTokenForProjectItemsSignature {
92
92
  * Generate media token for project items
93
93
  * @param - Media ids of requested project items
94
94
  */
95
- (mediaIds: string[]): Promise<NonNullablePaths<GenerateTokenForProjectItemsResponse, `mediaTokens` | `mediaTokens.${number}.mediaId` | `mediaTokens.${number}.mediaToken`, 4>>;
95
+ (mediaIds: string[]): Promise<NonNullablePaths<GenerateTokenForProjectItemsResponse, `mediaTokens` | `mediaTokens.${number}.mediaId` | `mediaTokens.${number}.mediaToken`, 2>>;
96
96
  }
97
97
  declare const onProjectItemCreated$1: EventDefinition<ProjectItemCreatedEnvelope, "wix.portfolio.project_items.v1.project_item_created">;
98
98
  declare const onProjectItemDeleted$1: EventDefinition<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;