@wix/auto_sdk_portfolio_projects 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +9 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +13 -26
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -5
- package/build/es/index.d.mts +9 -18
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +13 -26
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -5
- package/build/internal/cjs/index.d.ts +9 -18
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +13 -26
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +5 -5
- package/build/internal/es/index.d.mts +9 -18
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +13 -26
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +5 -5
- package/package.json +3 -3
|
@@ -233,21 +233,21 @@ interface Tag {
|
|
|
233
233
|
* For example: `{"name": "description", "content": "the description itself"}`.
|
|
234
234
|
*/
|
|
235
235
|
props?: Record<string, any> | null;
|
|
236
|
-
/** SEO tag
|
|
236
|
+
/** SEO tag metadata. For example, `{"height": 300, "width": 240}`. */
|
|
237
237
|
meta?: Record<string, any> | null;
|
|
238
238
|
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
239
239
|
children?: string;
|
|
240
|
-
/** Whether the tag is a custom tag. */
|
|
240
|
+
/** Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages). */
|
|
241
241
|
custom?: boolean;
|
|
242
|
-
/** Whether the tag is disabled. */
|
|
242
|
+
/** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
|
|
243
243
|
disabled?: boolean;
|
|
244
244
|
}
|
|
245
245
|
interface Settings {
|
|
246
246
|
/**
|
|
247
|
-
* Whether the
|
|
247
|
+
* Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.
|
|
248
248
|
*
|
|
249
249
|
*
|
|
250
|
-
* Default: `false` (
|
|
250
|
+
* Default: `false` (automatical redirect is enabled).
|
|
251
251
|
*/
|
|
252
252
|
preventAutoRedirect?: boolean;
|
|
253
253
|
/**
|
|
@@ -1405,7 +1405,6 @@ interface ProjectUpdatedEnvelope {
|
|
|
1405
1405
|
* @slug updated
|
|
1406
1406
|
*/
|
|
1407
1407
|
declare function onProjectUpdated(handler: (event: ProjectUpdatedEnvelope) => void | Promise<void>): void;
|
|
1408
|
-
type ProjectNonNullablePaths = `coverImage.focalPoint.x` | `coverImage.focalPoint.y` | `collectionIds` | `details` | `details.${number}.text` | `details.${number}.label` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `watermark.position` | `watermark.size` | `watermark.opacity` | `watermark.imageUrl`;
|
|
1409
1408
|
/**
|
|
1410
1409
|
* Creates a project.
|
|
1411
1410
|
* @param project - Project to create.
|
|
@@ -1416,7 +1415,7 @@ type ProjectNonNullablePaths = `coverImage.focalPoint.x` | `coverImage.focalPoin
|
|
|
1416
1415
|
* @returns Created project.
|
|
1417
1416
|
* @fqn com.wixpress.portfolio.projects.ProjectsService.CreateProject
|
|
1418
1417
|
*/
|
|
1419
|
-
declare function createProject(project: Project): Promise<NonNullablePaths<Project,
|
|
1418
|
+
declare function createProject(project: Project): Promise<NonNullablePaths<Project, `coverImage.focalPoint.x` | `coverImage.focalPoint.y` | `collectionIds` | `details` | `details.${number}.text` | `details.${number}.label` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `watermark.position` | `watermark.size` | `watermark.opacity` | `watermark.imageUrl`, 6>>;
|
|
1420
1419
|
/**
|
|
1421
1420
|
* Retrieves a project.
|
|
1422
1421
|
* @param projectId - ID of the project to retrieve.
|
|
@@ -1424,11 +1423,10 @@ declare function createProject(project: Project): Promise<NonNullablePaths<Proje
|
|
|
1424
1423
|
* @requiredField projectId
|
|
1425
1424
|
* @permissionId PORTFOLIO.PROJECT_READ
|
|
1426
1425
|
* @applicableIdentity APP
|
|
1427
|
-
* @applicableIdentity VISITOR
|
|
1428
1426
|
* @returns The requested project.
|
|
1429
1427
|
* @fqn com.wixpress.portfolio.projects.ProjectsService.GetProject
|
|
1430
1428
|
*/
|
|
1431
|
-
declare function getProject(projectId: string, options?: GetProjectOptions): Promise<NonNullablePaths<Project,
|
|
1429
|
+
declare function getProject(projectId: string, options?: GetProjectOptions): Promise<NonNullablePaths<Project, `coverImage.focalPoint.x` | `coverImage.focalPoint.y` | `collectionIds` | `details` | `details.${number}.text` | `details.${number}.label` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `watermark.position` | `watermark.size` | `watermark.opacity` | `watermark.imageUrl`, 6>>;
|
|
1432
1430
|
interface GetProjectOptions {
|
|
1433
1431
|
/** Whether to include the project's relative path and full URL in the response. Default: `false` */
|
|
1434
1432
|
includePageUrl?: boolean | null;
|
|
@@ -1438,12 +1436,9 @@ interface GetProjectOptions {
|
|
|
1438
1436
|
* @public
|
|
1439
1437
|
* @permissionId PORTFOLIO.PROJECT_READ
|
|
1440
1438
|
* @applicableIdentity APP
|
|
1441
|
-
* @applicableIdentity VISITOR
|
|
1442
1439
|
* @fqn com.wixpress.portfolio.projects.ProjectsService.ListProjects
|
|
1443
1440
|
*/
|
|
1444
|
-
declare function listProjects(options?: ListProjectsOptions): Promise<NonNullablePaths<ListProjectsResponse, {
|
|
1445
|
-
[P in ProjectNonNullablePaths]: `projects.${number}.${P}`;
|
|
1446
|
-
}[ProjectNonNullablePaths]>>;
|
|
1441
|
+
declare function listProjects(options?: ListProjectsOptions): Promise<NonNullablePaths<ListProjectsResponse, `projects` | `projects.${number}.coverImage.focalPoint.x` | `projects.${number}.coverImage.focalPoint.y` | `projects.${number}.seoData.settings.preventAutoRedirect` | `projects.${number}.watermark.position` | `projects.${number}.watermark.size` | `projects.${number}.watermark.opacity` | `projects.${number}.watermark.imageUrl`, 6>>;
|
|
1447
1442
|
interface ListProjectsOptions {
|
|
1448
1443
|
/** Projects limit per response is maximum 100, In the first request the cursor is None ? */
|
|
1449
1444
|
paging?: CursorPaging;
|
|
@@ -1462,7 +1457,7 @@ interface ListProjectsOptions {
|
|
|
1462
1457
|
* @returns Updated project.
|
|
1463
1458
|
* @fqn com.wixpress.portfolio.projects.ProjectsService.UpdateProject
|
|
1464
1459
|
*/
|
|
1465
|
-
declare function updateProject(_id: string, project: NonNullablePaths<UpdateProject, `revision
|
|
1460
|
+
declare function updateProject(_id: string, project: NonNullablePaths<UpdateProject, `revision`, 2>): Promise<NonNullablePaths<Project, `coverImage.focalPoint.x` | `coverImage.focalPoint.y` | `collectionIds` | `details` | `details.${number}.text` | `details.${number}.label` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `watermark.position` | `watermark.size` | `watermark.opacity` | `watermark.imageUrl`, 6>>;
|
|
1466
1461
|
interface UpdateProject {
|
|
1467
1462
|
/** Project cover image. */
|
|
1468
1463
|
coverImage?: Image;
|
|
@@ -1528,9 +1523,7 @@ interface UpdateProject {
|
|
|
1528
1523
|
* @applicableIdentity APP
|
|
1529
1524
|
* @fqn com.wixpress.portfolio.projects.ProjectsService.BulkUpdateProjects
|
|
1530
1525
|
*/
|
|
1531
|
-
declare function bulkUpdateProjects(options?: NonNullablePaths<BulkUpdateProjectsOptions, `projects.${number}.project` | `projects.${number}.project._id` | `projects.${number}.project.revision
|
|
1532
|
-
[P in ProjectNonNullablePaths]: `results.${number}.project.${P}`;
|
|
1533
|
-
}[ProjectNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
1526
|
+
declare function bulkUpdateProjects(options?: NonNullablePaths<BulkUpdateProjectsOptions, `projects.${number}.project` | `projects.${number}.project._id` | `projects.${number}.project.revision`, 5>): Promise<NonNullablePaths<BulkUpdateProjectsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.project.watermark.position` | `results.${number}.project.watermark.size` | `results.${number}.project.watermark.opacity` | `results.${number}.project.watermark.imageUrl` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
1534
1527
|
interface BulkUpdateProjectsOptions {
|
|
1535
1528
|
/**
|
|
1536
1529
|
* Projects to update.
|
|
@@ -1549,7 +1542,7 @@ interface BulkUpdateProjectsOptions {
|
|
|
1549
1542
|
* @applicableIdentity APP
|
|
1550
1543
|
* @fqn com.wixpress.portfolio.projects.ProjectsService.DeleteProject
|
|
1551
1544
|
*/
|
|
1552
|
-
declare function deleteProject(projectId: string): Promise<NonNullablePaths<DeleteProjectResponse, `projectId
|
|
1545
|
+
declare function deleteProject(projectId: string): Promise<NonNullablePaths<DeleteProjectResponse, `projectId`, 2>>;
|
|
1553
1546
|
/**
|
|
1554
1547
|
* Creates a query to retrieve a list of projects.
|
|
1555
1548
|
*
|
|
@@ -1568,7 +1561,6 @@ declare function deleteProject(projectId: string): Promise<NonNullablePaths<Dele
|
|
|
1568
1561
|
* @public
|
|
1569
1562
|
* @permissionId PORTFOLIO.PROJECT_READ
|
|
1570
1563
|
* @applicableIdentity APP
|
|
1571
|
-
* @applicableIdentity VISITOR
|
|
1572
1564
|
* @fqn com.wixpress.portfolio.projects.ProjectsService.QueryProjects
|
|
1573
1565
|
*/
|
|
1574
1566
|
declare function queryProjects(options?: QueryProjectsOptions): ProjectsQueryBuilder;
|
|
@@ -1652,9 +1644,7 @@ interface ProjectsQueryBuilder {
|
|
|
1652
1644
|
* @fqn com.wixpress.portfolio.projects.ProjectsService.UpdateProjectOrderInCollection
|
|
1653
1645
|
* @deprecated
|
|
1654
1646
|
*/
|
|
1655
|
-
declare function updateProjectOrderInCollection(identifiers: NonNullablePaths<UpdateProjectOrderInCollectionIdentifiers, `collectionId` | `projectId
|
|
1656
|
-
[P in ProjectNonNullablePaths]: `projectInCollection.project.${P}`;
|
|
1657
|
-
}[ProjectNonNullablePaths]>>;
|
|
1647
|
+
declare function updateProjectOrderInCollection(identifiers: NonNullablePaths<UpdateProjectOrderInCollectionIdentifiers, `collectionId` | `projectId`, 2>, sortOrder: number): Promise<NonNullablePaths<UpdateProjectOrderInCollectionResponse, `projectInCollection.collectionId` | `projectInCollection.project.coverImage.focalPoint.x` | `projectInCollection.project.coverImage.focalPoint.y` | `projectInCollection.project.collectionIds` | `projectInCollection.project.details` | `projectInCollection.project.details.${number}.text` | `projectInCollection.project.details.${number}.label` | `projectInCollection.project.seoData.tags` | `projectInCollection.project.seoData.tags.${number}.type` | `projectInCollection.project.seoData.tags.${number}.children` | `projectInCollection.project.seoData.tags.${number}.custom` | `projectInCollection.project.seoData.tags.${number}.disabled` | `projectInCollection.project.seoData.settings.preventAutoRedirect` | `projectInCollection.project.seoData.settings.keywords` | `projectInCollection.project.seoData.settings.keywords.${number}.term` | `projectInCollection.project.seoData.settings.keywords.${number}.isMain` | `projectInCollection.project.watermark.position` | `projectInCollection.project.watermark.size` | `projectInCollection.project.watermark.opacity` | `projectInCollection.project.watermark.imageUrl`, 8>>;
|
|
1658
1648
|
interface UpdateProjectOrderInCollectionIdentifiers {
|
|
1659
1649
|
/**
|
|
1660
1650
|
* ID of the project to update.
|
|
@@ -1675,13 +1665,10 @@ interface UpdateProjectOrderInCollectionIdentifiers {
|
|
|
1675
1665
|
* @requiredField query
|
|
1676
1666
|
* @permissionId PORTFOLIO.PROJECT_READ
|
|
1677
1667
|
* @applicableIdentity APP
|
|
1678
|
-
* @applicableIdentity VISITOR
|
|
1679
1668
|
* @fqn com.wixpress.portfolio.projects.ProjectsService.QueryProjectsWithCollectionInfo
|
|
1680
1669
|
* @deprecated
|
|
1681
1670
|
*/
|
|
1682
|
-
declare function queryProjectsWithCollectionInfo(query: QueryV2, options?: QueryProjectsWithCollectionInfoOptions): Promise<NonNullablePaths<QueryProjectWithCollectionInfoResponse, `projects` | `projects.${number}.collectionId` | {
|
|
1683
|
-
[P in ProjectNonNullablePaths]: `projects.${number}.project.${P}`;
|
|
1684
|
-
}[ProjectNonNullablePaths]>>;
|
|
1671
|
+
declare function queryProjectsWithCollectionInfo(query: QueryV2, options?: QueryProjectsWithCollectionInfoOptions): Promise<NonNullablePaths<QueryProjectWithCollectionInfoResponse, `projects` | `projects.${number}.collectionId` | `projects.${number}.project.watermark.position` | `projects.${number}.project.watermark.size` | `projects.${number}.project.watermark.opacity` | `projects.${number}.project.watermark.imageUrl`, 6>>;
|
|
1685
1672
|
interface QueryProjectsWithCollectionInfoOptions {
|
|
1686
1673
|
/** Include page url */
|
|
1687
1674
|
includePageUrl?: boolean | null;
|