@wix/auto_sdk_portfolio_projects 1.0.23 → 1.0.24
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 +21 -12
- package/build/cjs/index.js +14 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{portfolio-projects-v1-project-projects.universal-nCVjlWBr.d.ts → index.typings.d.ts} +205 -25
- package/build/cjs/index.typings.js +1235 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +38 -1
- package/build/es/index.d.mts +21 -12
- package/build/es/index.mjs +13 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/{portfolio-projects-v1-project-projects.universal-nCVjlWBr.d.mts → index.typings.d.mts} +205 -25
- package/build/es/index.typings.mjs +1194 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +38 -1
- package/build/internal/cjs/index.d.ts +21 -12
- package/build/internal/cjs/index.js +14 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{portfolio-projects-v1-project-projects.universal-nCVjlWBr.d.ts → index.typings.d.ts} +205 -25
- package/build/internal/cjs/index.typings.js +1235 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +38 -1
- package/build/internal/es/index.d.mts +21 -12
- package/build/internal/es/index.mjs +13 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{portfolio-projects-v1-project-projects.universal-nCVjlWBr.d.mts → index.typings.d.mts} +205 -25
- package/build/internal/es/index.typings.mjs +1194 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +38 -1
- package/package.json +3 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { Project, GetProjectOptions, ListProjectsOptions, ListProjectsResponse, UpdateProject, BulkUpdateProjectsOptions, BulkUpdateProjectsResponse, DeleteProjectResponse, QueryProjectsOptions, ProjectsQueryBuilder, UpdateProjectOrderInCollectionIdentifiers, UpdateProjectOrderInCollectionResponse, QueryV2, QueryProjectsWithCollectionInfoOptions, QueryProjectWithCollectionInfoResponse, ProjectCreatedEnvelope, ProjectDeletedEnvelope, ProjectUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, App, ApplicationError, Asset, BaseEventMetadata, BulkActionMetadata, BulkUpdateProjectsRequest, BulkUpdateProjectsResult, CreateNewPortfolioAppRequest, CreateNewPortfolioAppResponse, CreateProjectRequest, CreateProjectResponse, CursorPaging, Cursors, CustomTag, DeleteContext, DeleteProjectRequest, DeleteStatus, DeletedProjectRestored, DetailsLink, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, File, GetProjectPageDataRequest, GetProjectPageDataResponse, GetProjectRequest, GetProjectResponse, IdentificationData, IdentificationDataIdOneOf, Image, ImageType, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, Keyword, ListProjectsRequest, MaskedProject, MenuSettingUpdatedEvent, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, OdeditorAssigned, OdeditorUnassigned, Page, Paging, PagingMetadataV2, PicassoAssigned, PicassoUnassigned, Point, Position, ProjectCoverOneOf, ProjectDetail, ProjectDetailValueOneOf, ProjectSlug, ProjectSource, ProjectsInCollections, ProjectsQueryResult, QueryProjectWithCollectionInfoRequest, QueryProjectsRequest, QueryProjectsResponse, QueryV2PagingMethodOneOf, RestoreInfo, RestoreProjectFromTrashBinRequest, RestoreProjectFromTrashBinResponse, SeoSchema, ServiceProvisioned, ServiceRemoved, Settings, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, Sorting, State, StudioAssigned, StudioUnassigned, SyncProjectWithCollectionMappings, SyncStatus, Tag, URI, UnsharpMasking, UpdateProjectOrderInCollectionRequest, UpdateProjectRequest, UpdateProjectResponse, Video, VideoResolution, Watermark, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
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`;
|
|
5
6
|
declare function createProject$1(httpClient: HttpClient): CreateProjectSignature;
|
|
6
7
|
interface CreateProjectSignature {
|
|
7
8
|
/**
|
|
@@ -9,7 +10,7 @@ interface CreateProjectSignature {
|
|
|
9
10
|
* @param - Project to create.
|
|
10
11
|
* @returns Created project.
|
|
11
12
|
*/
|
|
12
|
-
(project: Project): Promise<Project
|
|
13
|
+
(project: Project): Promise<NonNullablePaths<Project, ProjectNonNullablePaths>>;
|
|
13
14
|
}
|
|
14
15
|
declare function getProject$1(httpClient: HttpClient): GetProjectSignature;
|
|
15
16
|
interface GetProjectSignature {
|
|
@@ -18,14 +19,16 @@ interface GetProjectSignature {
|
|
|
18
19
|
* @param - ID of the project to retrieve.
|
|
19
20
|
* @returns The requested project.
|
|
20
21
|
*/
|
|
21
|
-
(projectId: string, options?: GetProjectOptions
|
|
22
|
+
(projectId: string, options?: GetProjectOptions): Promise<NonNullablePaths<Project, ProjectNonNullablePaths>>;
|
|
22
23
|
}
|
|
23
24
|
declare function listProjects$1(httpClient: HttpClient): ListProjectsSignature;
|
|
24
25
|
interface ListProjectsSignature {
|
|
25
26
|
/**
|
|
26
27
|
* Retrieves a list of all projects in a portfolio.
|
|
27
28
|
*/
|
|
28
|
-
(options?: ListProjectsOptions
|
|
29
|
+
(options?: ListProjectsOptions): Promise<NonNullablePaths<ListProjectsResponse, {
|
|
30
|
+
[P in ProjectNonNullablePaths]: `projects.${number}.${P}`;
|
|
31
|
+
}[ProjectNonNullablePaths]>>;
|
|
29
32
|
}
|
|
30
33
|
declare function updateProject$1(httpClient: HttpClient): UpdateProjectSignature;
|
|
31
34
|
interface UpdateProjectSignature {
|
|
@@ -34,14 +37,16 @@ interface UpdateProjectSignature {
|
|
|
34
37
|
* @param - Project ID.
|
|
35
38
|
* @returns Updated project.
|
|
36
39
|
*/
|
|
37
|
-
(_id: string, project: UpdateProject): Promise<Project
|
|
40
|
+
(_id: string, project: NonNullablePaths<UpdateProject, `revision`>): Promise<NonNullablePaths<Project, ProjectNonNullablePaths>>;
|
|
38
41
|
}
|
|
39
42
|
declare function bulkUpdateProjects$1(httpClient: HttpClient): BulkUpdateProjectsSignature;
|
|
40
43
|
interface BulkUpdateProjectsSignature {
|
|
41
44
|
/**
|
|
42
45
|
* Updates multiple projects.
|
|
43
46
|
*/
|
|
44
|
-
(options?: BulkUpdateProjectsOptions |
|
|
47
|
+
(options?: NonNullablePaths<BulkUpdateProjectsOptions, `projects.${number}.project` | `projects.${number}.project._id` | `projects.${number}.project.revision`>): Promise<NonNullablePaths<BulkUpdateProjectsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
48
|
+
[P in ProjectNonNullablePaths]: `results.${number}.project.${P}`;
|
|
49
|
+
}[ProjectNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
45
50
|
}
|
|
46
51
|
declare function deleteProject$1(httpClient: HttpClient): DeleteProjectSignature;
|
|
47
52
|
interface DeleteProjectSignature {
|
|
@@ -49,7 +54,7 @@ interface DeleteProjectSignature {
|
|
|
49
54
|
* Deletes a project.
|
|
50
55
|
* @param - ID of the project to delete.
|
|
51
56
|
*/
|
|
52
|
-
(projectId: string): Promise<DeleteProjectResponse
|
|
57
|
+
(projectId: string): Promise<NonNullablePaths<DeleteProjectResponse, `projectId`>>;
|
|
53
58
|
}
|
|
54
59
|
declare function queryProjects$1(httpClient: HttpClient): QueryProjectsSignature;
|
|
55
60
|
interface QueryProjectsSignature {
|
|
@@ -69,7 +74,7 @@ interface QueryProjectsSignature {
|
|
|
69
74
|
*
|
|
70
75
|
* The following `ProjectsQueryBuilder` methods are supported for `queryProjects()`. For a full description of the operations object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/portfolio/projects/projects-query-result/items) property in `ProjectsQueryResult`.
|
|
71
76
|
*/
|
|
72
|
-
(options?: QueryProjectsOptions
|
|
77
|
+
(options?: QueryProjectsOptions): ProjectsQueryBuilder;
|
|
73
78
|
}
|
|
74
79
|
declare function updateProjectOrderInCollection$1(httpClient: HttpClient): UpdateProjectOrderInCollectionSignature;
|
|
75
80
|
interface UpdateProjectOrderInCollectionSignature {
|
|
@@ -79,7 +84,9 @@ interface UpdateProjectOrderInCollectionSignature {
|
|
|
79
84
|
* @param - Index that determines the placement of a project within the collection.
|
|
80
85
|
* @deprecated
|
|
81
86
|
*/
|
|
82
|
-
(identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number): Promise<UpdateProjectOrderInCollectionResponse
|
|
87
|
+
(identifiers: NonNullablePaths<UpdateProjectOrderInCollectionIdentifiers, `collectionId` | `projectId`>, sortOrder: number): Promise<NonNullablePaths<UpdateProjectOrderInCollectionResponse, `projectInCollection.collectionId` | {
|
|
88
|
+
[P in ProjectNonNullablePaths]: `projectInCollection.project.${P}`;
|
|
89
|
+
}[ProjectNonNullablePaths]>>;
|
|
83
90
|
}
|
|
84
91
|
declare function queryProjectsWithCollectionInfo$1(httpClient: HttpClient): QueryProjectsWithCollectionInfoSignature;
|
|
85
92
|
interface QueryProjectsWithCollectionInfoSignature {
|
|
@@ -89,7 +96,9 @@ interface QueryProjectsWithCollectionInfoSignature {
|
|
|
89
96
|
* @param - WQL expression
|
|
90
97
|
* @deprecated
|
|
91
98
|
*/
|
|
92
|
-
(query: QueryV2, options?: QueryProjectsWithCollectionInfoOptions
|
|
99
|
+
(query: QueryV2, options?: QueryProjectsWithCollectionInfoOptions): Promise<NonNullablePaths<QueryProjectWithCollectionInfoResponse, `projects` | `projects.${number}.collectionId` | {
|
|
100
|
+
[P in ProjectNonNullablePaths]: `projects.${number}.project.${P}`;
|
|
101
|
+
}[ProjectNonNullablePaths]>>;
|
|
93
102
|
}
|
|
94
103
|
declare const onProjectCreated$1: EventDefinition<ProjectCreatedEnvelope, "wix.portfolio.projects.v1.project_created">;
|
|
95
104
|
declare const onProjectDeleted$1: EventDefinition<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
|
package/build/cjs/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __export(index_exports, {
|
|
|
23
23
|
DeleteStatus: () => DeleteStatus,
|
|
24
24
|
ImageType: () => ImageType,
|
|
25
25
|
Namespace: () => Namespace,
|
|
26
|
+
Position: () => Position,
|
|
26
27
|
SiteCreatedContext: () => SiteCreatedContext,
|
|
27
28
|
SortOrder: () => SortOrder,
|
|
28
29
|
State: () => State,
|
|
@@ -697,6 +698,18 @@ var SyncStatus = /* @__PURE__ */ ((SyncStatus2) => {
|
|
|
697
698
|
SyncStatus2["NOT_SYNCED"] = "NOT_SYNCED";
|
|
698
699
|
return SyncStatus2;
|
|
699
700
|
})(SyncStatus || {});
|
|
701
|
+
var Position = /* @__PURE__ */ ((Position2) => {
|
|
702
|
+
Position2["NORTH_WEST"] = "NORTH_WEST";
|
|
703
|
+
Position2["NORTH"] = "NORTH";
|
|
704
|
+
Position2["NORTH_EAST"] = "NORTH_EAST";
|
|
705
|
+
Position2["WEST"] = "WEST";
|
|
706
|
+
Position2["CENTER"] = "CENTER";
|
|
707
|
+
Position2["EAST"] = "EAST";
|
|
708
|
+
Position2["SOUTH_WEST"] = "SOUTH_WEST";
|
|
709
|
+
Position2["SOUTH"] = "SOUTH";
|
|
710
|
+
Position2["SOUTH_EAST"] = "SOUTH_EAST";
|
|
711
|
+
return Position2;
|
|
712
|
+
})(Position || {});
|
|
700
713
|
var State = /* @__PURE__ */ ((State2) => {
|
|
701
714
|
State2["UNKNOWN"] = "UNKNOWN";
|
|
702
715
|
State2["ENABLED"] = "ENABLED";
|
|
@@ -1418,6 +1431,7 @@ var onProjectUpdated2 = (0, import_event_definition_modules.createEventModule)(o
|
|
|
1418
1431
|
DeleteStatus,
|
|
1419
1432
|
ImageType,
|
|
1420
1433
|
Namespace,
|
|
1434
|
+
Position,
|
|
1421
1435
|
SiteCreatedContext,
|
|
1422
1436
|
SortOrder,
|
|
1423
1437
|
State,
|