@wix/auto_sdk_portfolio_projects 1.0.23 → 1.0.25

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.
Files changed (29) hide show
  1. package/build/cjs/index.d.ts +12 -12
  2. package/build/cjs/index.js +14 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/{portfolio-projects-v1-project-projects.universal-nCVjlWBr.d.ts → index.typings.d.ts} +196 -25
  5. package/build/cjs/index.typings.js +1235 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +38 -1
  8. package/build/es/index.d.mts +12 -12
  9. package/build/es/index.mjs +13 -0
  10. package/build/es/index.mjs.map +1 -1
  11. package/build/es/{portfolio-projects-v1-project-projects.universal-nCVjlWBr.d.mts → index.typings.d.mts} +196 -25
  12. package/build/es/index.typings.mjs +1194 -0
  13. package/build/es/index.typings.mjs.map +1 -0
  14. package/build/es/meta.d.mts +38 -1
  15. package/build/internal/cjs/index.d.ts +12 -12
  16. package/build/internal/cjs/index.js +14 -0
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/{portfolio-projects-v1-project-projects.universal-nCVjlWBr.d.ts → index.typings.d.ts} +196 -25
  19. package/build/internal/cjs/index.typings.js +1235 -0
  20. package/build/internal/cjs/index.typings.js.map +1 -0
  21. package/build/internal/cjs/meta.d.ts +38 -1
  22. package/build/internal/es/index.d.mts +12 -12
  23. package/build/internal/es/index.mjs +13 -0
  24. package/build/internal/es/index.mjs.map +1 -1
  25. package/build/internal/es/{portfolio-projects-v1-project-projects.universal-nCVjlWBr.d.mts → index.typings.d.mts} +196 -25
  26. package/build/internal/es/index.typings.mjs +1194 -0
  27. package/build/internal/es/index.typings.mjs.map +1 -0
  28. package/build/internal/es/meta.d.mts +38 -1
  29. package/package.json +4 -3
@@ -1,6 +1,6 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { P as Project, G as GetProjectOptions, L as ListProjectsOptions, a as ListProjectsResponse, U as UpdateProject, B as BulkUpdateProjectsOptions, b as BulkUpdateProjectsResponse, D as DeleteProjectResponse, Q as QueryProjectsOptions, c as ProjectsQueryBuilder, d as UpdateProjectOrderInCollectionIdentifiers, e as UpdateProjectOrderInCollectionResponse, f as QueryV2, g as QueryProjectsWithCollectionInfoOptions, h as QueryProjectWithCollectionInfoResponse, i as ProjectCreatedEnvelope, j as ProjectDeletedEnvelope, k as ProjectUpdatedEnvelope } from './portfolio-projects-v1-project-projects.universal-nCVjlWBr.js';
3
- export { a$ as ActionEvent, an as App, aI as ApplicationError, R as Asset, b0 as BaseEventMetadata, aJ as BulkActionMetadata, aE as BulkUpdateProjectsRequest, aG as BulkUpdateProjectsResult, F as CreateNewPortfolioAppRequest, H as CreateNewPortfolioAppResponse, au as CreateProjectRequest, av as CreateProjectResponse, az as CursorPaging, aB as Cursors, ar as CustomTag, _ as DeleteContext, aK as DeleteProjectRequest, n as DeleteStatus, at as DeletedProjectRestored, w as DetailsLink, aV as DomainEvent, aW as DomainEventBodyOneOf, ah as Empty, aX as EntityCreatedEvent, a_ as EntityDeletedEvent, aZ as EntityUpdatedEvent, b1 as EventMetadata, aq as File, A as GetProjectPageDataRequest, C as GetProjectPageDataResponse, aw as GetProjectRequest, ax as GetProjectResponse, aj as IdentificationData, ak as IdentificationDataIdOneOf, q as Image, I as ImageType, al as InvalidateCache, am as InvalidateCacheGetByOneOf, aH as ItemMetadata, K as Keyword, ay as ListProjectsRequest, aF as MaskedProject, M as MenuSettingUpdatedEvent, ai as MessageEnvelope, J as MetaSiteSpecialEvent, O as MetaSiteSpecialEventPayloadOneOf, N as Namespace, a8 as NamespaceChanged, ad as OdeditorAssigned, ae as OdeditorUnassigned, ao as Page, aO as Paging, aA as PagingMetadataV2, af as PicassoAssigned, ag as PicassoUnassigned, r as Point, p as ProjectCoverOneOf, u as ProjectDetail, v as ProjectDetailValueOneOf, E as ProjectSlug, x as ProjectSource, aR as ProjectsInCollections, b2 as ProjectsQueryResult, aS as QueryProjectWithCollectionInfoRequest, aL as QueryProjectsRequest, aP as QueryProjectsResponse, aM as QueryV2PagingMethodOneOf, aY as RestoreInfo, aT as RestoreProjectFromTrashBinRequest, aU as RestoreProjectFromTrashBinResponse, y as SeoSchema, a4 as ServiceProvisioned, a5 as ServiceRemoved, z as Settings, X as SiteCreated, m as SiteCreatedContext, Z as SiteDeleted, a7 as SiteHardDeleted, a2 as SiteMarkedAsTemplate, a3 as SiteMarkedAsWixSite, a0 as SitePublished, ac as SitePurgedExternally, a6 as SiteRenamed, Y as SiteTransferred, $ as SiteUndeleted, a1 as SiteUnpublished, ab as SiteUrlChanged, o as SortOrder, aN as Sorting, l as State, a9 as StudioAssigned, aa as StudioUnassigned, as as SyncProjectWithCollectionMappings, S as SyncStatus, T as Tag, ap as URI, s as UnsharpMasking, aQ as UpdateProjectOrderInCollectionRequest, aC as UpdateProjectRequest, aD as UpdateProjectResponse, V as Video, t as VideoResolution, W as WebhookIdentityType } from './portfolio-projects-v1-project-projects.universal-nCVjlWBr.js';
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, DeleteStatusWithLiterals, DeletedProjectRestored, DetailsLink, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, File, GetProjectPageDataRequest, GetProjectPageDataResponse, GetProjectRequest, GetProjectResponse, IdentificationData, IdentificationDataIdOneOf, Image, ImageType, ImageTypeWithLiterals, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, Keyword, ListProjectsRequest, MaskedProject, MenuSettingUpdatedEvent, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, Page, Paging, PagingMetadataV2, PicassoAssigned, PicassoUnassigned, Point, Position, PositionWithLiterals, ProjectCoverOneOf, ProjectDetail, ProjectDetailValueOneOf, ProjectSlug, ProjectSource, ProjectsInCollections, ProjectsQueryResult, QueryProjectWithCollectionInfoRequest, QueryProjectsRequest, QueryProjectsResponse, QueryV2PagingMethodOneOf, RestoreInfo, RestoreProjectFromTrashBinRequest, RestoreProjectFromTrashBinResponse, SeoSchema, ServiceProvisioned, ServiceRemoved, Settings, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, StudioAssigned, StudioUnassigned, SyncProjectWithCollectionMappings, SyncStatus, SyncStatusWithLiterals, Tag, URI, UnsharpMasking, UpdateProjectOrderInCollectionRequest, UpdateProjectRequest, UpdateProjectResponse, Video, VideoResolution, Watermark, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
4
 
5
5
  declare function createProject$1(httpClient: HttpClient): CreateProjectSignature;
6
6
  interface CreateProjectSignature {
@@ -9,7 +9,7 @@ interface CreateProjectSignature {
9
9
  * @param - Project to create.
10
10
  * @returns Created project.
11
11
  */
12
- (project: Project): Promise<Project>;
12
+ (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>>;
13
13
  }
14
14
  declare function getProject$1(httpClient: HttpClient): GetProjectSignature;
15
15
  interface GetProjectSignature {
@@ -18,14 +18,14 @@ interface GetProjectSignature {
18
18
  * @param - ID of the project to retrieve.
19
19
  * @returns The requested project.
20
20
  */
21
- (projectId: string, options?: GetProjectOptions | undefined): Promise<Project>;
21
+ (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>>;
22
22
  }
23
23
  declare function listProjects$1(httpClient: HttpClient): ListProjectsSignature;
24
24
  interface ListProjectsSignature {
25
25
  /**
26
26
  * Retrieves a list of all projects in a portfolio.
27
27
  */
28
- (options?: ListProjectsOptions | undefined): Promise<ListProjectsResponse>;
28
+ (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>>;
29
29
  }
30
30
  declare function updateProject$1(httpClient: HttpClient): UpdateProjectSignature;
31
31
  interface UpdateProjectSignature {
@@ -34,14 +34,14 @@ interface UpdateProjectSignature {
34
34
  * @param - Project ID.
35
35
  * @returns Updated project.
36
36
  */
37
- (_id: string, project: UpdateProject): Promise<Project>;
37
+ (_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>>;
38
38
  }
39
39
  declare function bulkUpdateProjects$1(httpClient: HttpClient): BulkUpdateProjectsSignature;
40
40
  interface BulkUpdateProjectsSignature {
41
41
  /**
42
42
  * Updates multiple projects.
43
43
  */
44
- (options?: BulkUpdateProjectsOptions | undefined): Promise<BulkUpdateProjectsResponse>;
44
+ (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>>;
45
45
  }
46
46
  declare function deleteProject$1(httpClient: HttpClient): DeleteProjectSignature;
47
47
  interface DeleteProjectSignature {
@@ -49,7 +49,7 @@ interface DeleteProjectSignature {
49
49
  * Deletes a project.
50
50
  * @param - ID of the project to delete.
51
51
  */
52
- (projectId: string): Promise<DeleteProjectResponse>;
52
+ (projectId: string): Promise<NonNullablePaths<DeleteProjectResponse, `projectId`, 2>>;
53
53
  }
54
54
  declare function queryProjects$1(httpClient: HttpClient): QueryProjectsSignature;
55
55
  interface QueryProjectsSignature {
@@ -69,7 +69,7 @@ interface QueryProjectsSignature {
69
69
  *
70
70
  * 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
71
  */
72
- (options?: QueryProjectsOptions | undefined): ProjectsQueryBuilder;
72
+ (options?: QueryProjectsOptions): ProjectsQueryBuilder;
73
73
  }
74
74
  declare function updateProjectOrderInCollection$1(httpClient: HttpClient): UpdateProjectOrderInCollectionSignature;
75
75
  interface UpdateProjectOrderInCollectionSignature {
@@ -79,7 +79,7 @@ interface UpdateProjectOrderInCollectionSignature {
79
79
  * @param - Index that determines the placement of a project within the collection.
80
80
  * @deprecated
81
81
  */
82
- (identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number): Promise<UpdateProjectOrderInCollectionResponse>;
82
+ (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>>;
83
83
  }
84
84
  declare function queryProjectsWithCollectionInfo$1(httpClient: HttpClient): QueryProjectsWithCollectionInfoSignature;
85
85
  interface QueryProjectsWithCollectionInfoSignature {
@@ -89,7 +89,7 @@ interface QueryProjectsWithCollectionInfoSignature {
89
89
  * @param - WQL expression
90
90
  * @deprecated
91
91
  */
92
- (query: QueryV2, options?: QueryProjectsWithCollectionInfoOptions | undefined): Promise<QueryProjectWithCollectionInfoResponse>;
92
+ (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>>;
93
93
  }
94
94
  declare const onProjectCreated$1: EventDefinition<ProjectCreatedEnvelope, "wix.portfolio.projects.v1.project_created">;
95
95
  declare const onProjectDeleted$1: EventDefinition<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
@@ -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,