@wix/portfolio 1.0.95 → 1.0.97

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.
@@ -408,50 +408,53 @@ type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
408
408
  host: Host;
409
409
  } ? BuildDescriptors<T, globalThis.ContextualClient['host']> : T;
410
410
 
411
- /** Collection is the main entity of CollectionsService */
412
411
  interface Collection {
413
412
  /**
414
- * Collection ID
413
+ * Collection ID.
415
414
  * @readonly
416
415
  */
417
416
  _id?: string | null;
418
417
  /**
419
- * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision
418
+ * Revision number, which increments by 1 each time the collection is updated. To prevent conflicting changes, the existing revision must be passed when updating the collection object.
420
419
  * @readonly
421
420
  */
422
421
  revision?: string | null;
423
- /** Title of Collection */
422
+ /** Collection title. */
424
423
  title?: string | null;
425
- /** Description of Collection */
424
+ /** Collection description. */
426
425
  description?: string | null;
427
- /** Url of Collection */
426
+ /** Collection slug. */
428
427
  slug?: string | null;
429
- /** Collection's cover photo */
428
+ /** Collection cover image. */
430
429
  coverImage?: Image$3;
431
- /** Indicates if the collection is hidden from Portfolio */
430
+ /** Whether the collection is hidden from the portfolio. */
432
431
  hidden?: boolean | null;
433
- /** if not present in an update it means the collection will be added as currentTimestamp - as the last collection */
432
+ /**
433
+ * Index that determines which position a media item is displayed in the gallery. <br />
434
+ *
435
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
436
+ */
434
437
  sortOrder?: number | null;
435
438
  /**
436
- * Represents the time this Collection was created
439
+ * Date and time the collection was created.
437
440
  * @readonly
438
441
  */
439
442
  _createdDate?: Date;
440
443
  /**
441
- * Represents the time this Collection was last updated
444
+ * Date and time the collection was updated.
442
445
  * @readonly
443
446
  */
444
447
  _updatedDate?: Date;
445
448
  /**
446
- * Url and relative url of Collection - in order to receive this field in READ requests you will need to pass the `include_page_url` field as part of request
449
+ * Collection's page URL and relative path. To receive this field in the response, pass the `includePageUrl` query parameter in the request.
447
450
  * @readonly
448
451
  */
449
452
  url?: string;
450
- /** SEO data for Collection */
453
+ /** Collection SEO data. */
451
454
  seoData?: SeoSchema$2;
452
455
  }
453
456
  interface Image$3 {
454
- /** Image info - Wix Media Image. */
457
+ /** Information about the Wix Media image. */
455
458
  imageInfo?: string;
456
459
  /** Focal point of the image. */
457
460
  focalPoint?: Point$3;
@@ -674,27 +677,27 @@ interface File$2 {
674
677
  fileName?: string;
675
678
  }
676
679
  interface CreateCollectionRequest {
677
- /** Collection to be created */
680
+ /** Collection to create. */
678
681
  collection: Collection;
679
682
  }
680
683
  interface CreateCollectionResponse {
681
- /** The created Collection */
684
+ /** Created collection. */
682
685
  collection?: Collection;
683
686
  }
684
687
  interface GetCollectionRequest {
685
- /** Id of the Collection to retrieve */
688
+ /** ID of the collection to retrieve. */
686
689
  collectionId: string;
687
- /** Include page url */
690
+ /** Whether to include the collection's page URL and relative path in the response. */
688
691
  includePageUrl?: boolean | null;
689
692
  }
690
693
  interface GetCollectionResponse {
691
- /** The retrieved Collection */
694
+ /** The requested collection. */
692
695
  collection?: Collection;
693
696
  }
694
697
  interface ListCollectionsRequest {
695
- /** Maximum limit per response is 100, in first request cursor is None */
698
+ /** Maximum limit per response is 100, in first request cursor is None ? */
696
699
  paging?: CursorPaging$4;
697
- /** Include page url */
700
+ /** Whether to include the collection's page URL and relative path in the response. */
698
701
  includePageUrl?: boolean | null;
699
702
  }
700
703
  interface CursorPaging$4 {
@@ -709,9 +712,9 @@ interface CursorPaging$4 {
709
712
  cursor?: string | null;
710
713
  }
711
714
  interface ListCollectionsResponse {
712
- /** Retrieved Collections */
715
+ /** List of collections. */
713
716
  collections?: Collection[];
714
- /** Paging metadata */
717
+ /** Paging metadata. */
715
718
  metadata?: PagingMetadataV2$4;
716
719
  }
717
720
  interface PagingMetadataV2$4 {
@@ -733,25 +736,25 @@ interface Cursors$4 {
733
736
  prev?: string | null;
734
737
  }
735
738
  interface UpdateCollectionRequest {
736
- /** Collection to be updated, may be partial */
739
+ /** Collection to update. */
737
740
  collection: Collection;
738
741
  }
739
742
  interface UpdateCollectionResponse {
740
- /** The updated Collection */
743
+ /** Updated collection. */
741
744
  collection?: Collection;
742
745
  }
743
746
  interface DeleteCollectionRequest {
744
- /** Id of the Collection to delete */
747
+ /** ID of the collection to delete. */
745
748
  collectionId: string;
746
749
  }
747
750
  interface DeleteCollectionResponse {
748
- /** Id of the Deleted Collection */
751
+ /** ID of the deleted collection. */
749
752
  collectionId?: string;
750
753
  }
751
754
  interface QueryCollectionsRequest {
752
- /** WQL expression */
755
+ /** Query options. */
753
756
  query: QueryV2$3;
754
- /** Include page url */
757
+ /** Whether to include the collection's page URL and relative path in the response. */
755
758
  includePageUrl?: boolean | null;
756
759
  }
757
760
  interface QueryV2$3 extends QueryV2PagingMethodOneOf$3 {
@@ -800,9 +803,9 @@ interface Paging$3 {
800
803
  offset?: number | null;
801
804
  }
802
805
  interface QueryCollectionsResponse {
803
- /** The retrieved Collections */
806
+ /** List of collections. */
804
807
  collections?: Collection[];
805
- /** Paging metadata */
808
+ /** Paging metadata. */
806
809
  metadata?: PagingMetadataV2$4;
807
810
  }
808
811
  interface MessageEnvelope$5 {
@@ -953,58 +956,62 @@ interface CollectionDeletedEnvelope {
953
956
  metadata: EventMetadata$3;
954
957
  }
955
958
  interface GetCollectionOptions {
956
- /** Include page url */
959
+ /** Whether to include the collection's page URL and relative path in the response. */
957
960
  includePageUrl?: boolean | null;
958
961
  }
959
962
  interface ListCollectionsOptions {
960
- /** Maximum limit per response is 100, in first request cursor is None */
963
+ /** Maximum limit per response is 100, in first request cursor is None ? */
961
964
  paging?: CursorPaging$4;
962
- /** Include page url */
965
+ /** Whether to include the collection's page URL and relative path in the response. */
963
966
  includePageUrl?: boolean | null;
964
967
  }
965
968
  interface UpdateCollection {
966
969
  /**
967
- * Collection ID
970
+ * Collection ID.
968
971
  * @readonly
969
972
  */
970
973
  _id?: string | null;
971
974
  /**
972
- * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision
975
+ * Revision number, which increments by 1 each time the collection is updated. To prevent conflicting changes, the existing revision must be passed when updating the collection object.
973
976
  * @readonly
974
977
  */
975
978
  revision?: string | null;
976
- /** Title of Collection */
979
+ /** Collection title. */
977
980
  title?: string | null;
978
- /** Description of Collection */
981
+ /** Collection description. */
979
982
  description?: string | null;
980
- /** Url of Collection */
983
+ /** Collection slug. */
981
984
  slug?: string | null;
982
- /** Collection's cover photo */
985
+ /** Collection cover image. */
983
986
  coverImage?: Image$3;
984
- /** Indicates if the collection is hidden from Portfolio */
987
+ /** Whether the collection is hidden from the portfolio. */
985
988
  hidden?: boolean | null;
986
- /** if not present in an update it means the collection will be added as currentTimestamp - as the last collection */
989
+ /**
990
+ * Index that determines which position a media item is displayed in the gallery. <br />
991
+ *
992
+ * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
993
+ */
987
994
  sortOrder?: number | null;
988
995
  /**
989
- * Represents the time this Collection was created
996
+ * Date and time the collection was created.
990
997
  * @readonly
991
998
  */
992
999
  _createdDate?: Date;
993
1000
  /**
994
- * Represents the time this Collection was last updated
1001
+ * Date and time the collection was updated.
995
1002
  * @readonly
996
1003
  */
997
1004
  _updatedDate?: Date;
998
1005
  /**
999
- * Url and relative url of Collection - in order to receive this field in READ requests you will need to pass the `include_page_url` field as part of request
1006
+ * Collection's page URL and relative path. To receive this field in the response, pass the `includePageUrl` query parameter in the request.
1000
1007
  * @readonly
1001
1008
  */
1002
1009
  url?: string;
1003
- /** SEO data for Collection */
1010
+ /** Collection SEO data. */
1004
1011
  seoData?: SeoSchema$2;
1005
1012
  }
1006
1013
  interface QueryCollectionsOptions {
1007
- /** Include page url */
1014
+ /** Whether to include the collection's page URL and relative path in the response. */
1008
1015
  includePageUrl?: boolean | null | undefined;
1009
1016
  }
1010
1017
  interface QueryCursorResult$2 {
@@ -1088,50 +1095,54 @@ interface CollectionsQueryBuilder {
1088
1095
  declare function createCollection$1(httpClient: HttpClient): CreateCollectionSignature;
1089
1096
  interface CreateCollectionSignature {
1090
1097
  /**
1091
- * Creates a new Collection
1092
- * @param - Collection to be created
1093
- * @returns The created Collection
1098
+ * Creates a collection.
1099
+ * @param - Collection to create.
1100
+ * @returns Created collection.
1094
1101
  */
1095
1102
  (collection: Collection): Promise<Collection & CollectionNonNullableFields>;
1096
1103
  }
1097
1104
  declare function getCollection$1(httpClient: HttpClient): GetCollectionSignature;
1098
1105
  interface GetCollectionSignature {
1099
1106
  /**
1100
- * Get a Collection by id
1101
- * @param - Id of the Collection to retrieve
1102
- * @returns The retrieved Collection
1107
+ * Retrieves a collection.
1108
+ * @param - ID of the collection to retrieve.
1109
+ * @returns The requested collection.
1103
1110
  */
1104
1111
  (collectionId: string, options?: GetCollectionOptions | undefined): Promise<Collection & CollectionNonNullableFields>;
1105
1112
  }
1106
1113
  declare function listCollections$1(httpClient: HttpClient): ListCollectionsSignature;
1107
1114
  interface ListCollectionsSignature {
1108
1115
  /**
1109
- * List all Collections in portfolio
1116
+ * Retrieves a list all collections in a portfolio.
1110
1117
  */
1111
1118
  (options?: ListCollectionsOptions | undefined): Promise<ListCollectionsResponse & ListCollectionsResponseNonNullableFields>;
1112
1119
  }
1113
1120
  declare function updateCollection$1(httpClient: HttpClient): UpdateCollectionSignature;
1114
1121
  interface UpdateCollectionSignature {
1115
1122
  /**
1116
- * Update a Collection, supports partial update
1117
- * Pass the latest `revision` for a successful update
1118
- * @param - Collection ID
1119
- * @returns The updated Collection
1123
+ * Updates a collection.
1124
+ * @param - Collection ID.
1125
+ * @returns Updated collection.
1120
1126
  */
1121
1127
  (_id: string | null, collection: UpdateCollection): Promise<Collection & CollectionNonNullableFields>;
1122
1128
  }
1123
1129
  declare function deleteCollection$1(httpClient: HttpClient): DeleteCollectionSignature;
1124
1130
  interface DeleteCollectionSignature {
1125
1131
  /**
1126
- * Delete a Collection
1127
- * @param - Id of the Collection to delete
1132
+ * Deletes a collection.
1133
+ * @param - ID of the collection to delete.
1128
1134
  */
1129
1135
  (collectionId: string): Promise<DeleteCollectionResponse & DeleteCollectionResponseNonNullableFields>;
1130
1136
  }
1131
1137
  declare function queryCollections$1(httpClient: HttpClient): QueryCollectionsSignature;
1132
1138
  interface QueryCollectionsSignature {
1133
1139
  /**
1134
- * Query Collections using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
1140
+ * Retrieves a list of collections, given the provided paging, filtering, and sorting. Up to 100 collections can be returned per request.
1141
+ *
1142
+ * The default `sort` is `id` in `ASC`.
1143
+ *
1144
+ * For a detailed list of supported operations, see [Collections: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-solutions/portfolio/collections/sort-and-filter).
1145
+ * To learn how to query collections, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
1135
1146
  */
1136
1147
  (options?: QueryCollectionsOptions | undefined): CollectionsQueryBuilder;
1137
1148
  }
@@ -1167,15 +1178,21 @@ declare const deleteCollection: MaybeContext<BuildRESTFunction<typeof deleteColl
1167
1178
  declare const queryCollections: MaybeContext<BuildRESTFunction<typeof queryCollections$1> & typeof queryCollections$1>;
1168
1179
 
1169
1180
  type _publicOnCollectionCreatedType = typeof onCollectionCreated$1;
1170
- /** */
1181
+ /**
1182
+ * Triggered when a collection is created.
1183
+ */
1171
1184
  declare const onCollectionCreated: ReturnType<typeof createEventModule$3<_publicOnCollectionCreatedType>>;
1172
1185
 
1173
1186
  type _publicOnCollectionUpdatedType = typeof onCollectionUpdated$1;
1174
- /** */
1187
+ /**
1188
+ * Triggered when a collection is updated.
1189
+ */
1175
1190
  declare const onCollectionUpdated: ReturnType<typeof createEventModule$3<_publicOnCollectionUpdatedType>>;
1176
1191
 
1177
1192
  type _publicOnCollectionDeletedType = typeof onCollectionDeleted$1;
1178
- /** */
1193
+ /**
1194
+ * Triggered when a collection is deleted.
1195
+ */
1179
1196
  declare const onCollectionDeleted: ReturnType<typeof createEventModule$3<_publicOnCollectionDeletedType>>;
1180
1197
 
1181
1198
  type context$5_AdminRemoveMenuItemsResponse = AdminRemoveMenuItemsResponse;
@@ -1534,7 +1551,7 @@ declare enum Type {
1534
1551
  VIDEO = "VIDEO"
1535
1552
  }
1536
1553
  interface Image$2 {
1537
- /** Image info - Wix Media Image. */
1554
+ /** Information about the Wix Media image. */
1538
1555
  imageInfo?: string;
1539
1556
  /** Focal point of the image. */
1540
1557
  focalPoint?: Point$2;
@@ -1569,7 +1586,7 @@ interface UnsharpMasking$2 {
1569
1586
  threshold?: number | null;
1570
1587
  }
1571
1588
  interface Video$2 {
1572
- /** Video info - Wix Media Image. */
1589
+ /** Information about the Wix Media video. */
1573
1590
  videoInfo?: string;
1574
1591
  /** Manually defined Video duration in milliseconds. */
1575
1592
  durationInMillis?: number | null;
@@ -2444,59 +2461,60 @@ declare namespace context$3 {
2444
2461
  export { type ActionEvent$3 as ActionEvent, type App$1 as App, type ApplicationError$1 as ApplicationError, type BaseEventMetadata$2 as BaseEventMetadata, type BulkActionMetadata$1 as BulkActionMetadata, type context$3_BulkCreateProjectItemResult as BulkCreateProjectItemResult, type context$3_BulkCreateProjectItemsOptions as BulkCreateProjectItemsOptions, type context$3_BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest, type context$3_BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse, type context$3_BulkCreateProjectItemsResponseNonNullableFields as BulkCreateProjectItemsResponseNonNullableFields, type context$3_BulkDeleteProjectItemResult as BulkDeleteProjectItemResult, type context$3_BulkDeleteProjectItemsOptions as BulkDeleteProjectItemsOptions, type context$3_BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest, type context$3_BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse, type context$3_BulkDeleteProjectItemsResponseNonNullableFields as BulkDeleteProjectItemsResponseNonNullableFields, type context$3_BulkUpdateProjectItemResult as BulkUpdateProjectItemResult, type context$3_BulkUpdateProjectItemsOptions as BulkUpdateProjectItemsOptions, type context$3_BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest, type context$3_BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse, type context$3_BulkUpdateProjectItemsResponseNonNullableFields as BulkUpdateProjectItemsResponseNonNullableFields, type context$3_CreateProjectGalleryRequest as CreateProjectGalleryRequest, type context$3_CreateProjectGalleryResponse as CreateProjectGalleryResponse, type context$3_CreateProjectItemRequest as CreateProjectItemRequest, type context$3_CreateProjectItemResponse as CreateProjectItemResponse, type context$3_CreateProjectItemResponseNonNullableFields as CreateProjectItemResponseNonNullableFields, type CursorPaging$3 as CursorPaging, type Cursors$3 as Cursors, type context$3_DeleteProjectItemRequest as DeleteProjectItemRequest, type context$3_DeleteProjectItemResponse as DeleteProjectItemResponse, type context$3_DeleteProjectItemResponseNonNullableFields as DeleteProjectItemResponseNonNullableFields, type DeletedProjectRestored$1 as DeletedProjectRestored, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type context$3_DuplicateProjectItemsOptions as DuplicateProjectItemsOptions, type context$3_DuplicateProjectItemsRequest as DuplicateProjectItemsRequest, type context$3_DuplicateProjectItemsResponse as DuplicateProjectItemsResponse, type context$3_DuplicateProjectItemsResponseNonNullableFields as DuplicateProjectItemsResponseNonNullableFields, type Empty$2 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type File$1 as File, type context$3_GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequest, type context$3_GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponse, type context$3_GetProjectItemRequest as GetProjectItemRequest, type context$3_GetProjectItemResponse as GetProjectItemResponse, type context$3_GetProjectItemResponseNonNullableFields as GetProjectItemResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type Image$2 as Image, ImageType$2 as ImageType, type InvalidateCache$1 as InvalidateCache, type InvalidateCacheGetByOneOf$1 as InvalidateCacheGetByOneOf, type context$3_Item as Item, type ItemMetadata$1 as ItemMetadata, type context$3_ItemMetadataOneOf as ItemMetadataOneOf, type context$3_ItemNonNullableFields as ItemNonNullableFields, type context$3_Link as Link, type context$3_ListProjectItemsOptions as ListProjectItemsOptions, type context$3_ListProjectItemsRequest as ListProjectItemsRequest, type context$3_ListProjectItemsResponse as ListProjectItemsResponse, type context$3_ListProjectItemsResponseNonNullableFields as ListProjectItemsResponseNonNullableFields, type context$3_MaskedItem as MaskedItem, type MessageEnvelope$3 as MessageEnvelope, type Page$1 as Page, type Paging$2 as Paging, type PagingMetadataV2$3 as PagingMetadataV2, type Point$2 as Point, type context$3_ProjectItemCreatedEnvelope as ProjectItemCreatedEnvelope, type context$3_ProjectItemDeletedEnvelope as ProjectItemDeletedEnvelope, type context$3_ProjectItemMediaToken as ProjectItemMediaToken, type context$3_ProjectItemUpdatedEnvelope as ProjectItemUpdatedEnvelope, type context$3_QueryProjectItemsRequest as QueryProjectItemsRequest, type context$3_QueryProjectItemsResponse as QueryProjectItemsResponse, type QueryV2$2 as QueryV2, type QueryV2PagingMethodOneOf$2 as QueryV2PagingMethodOneOf, type RestoreInfo$3 as RestoreInfo, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type context$3_Tags as Tags, context$3_Type as Type, type URI$1 as URI, type UnsharpMasking$2 as UnsharpMasking, type context$3_UpdateProjectItem as UpdateProjectItem, type context$3_UpdateProjectItemRequest as UpdateProjectItemRequest, type context$3_UpdateProjectItemResponse as UpdateProjectItemResponse, type context$3_UpdateProjectItemResponseNonNullableFields as UpdateProjectItemResponseNonNullableFields, type Video$2 as Video, type VideoResolution$2 as VideoResolution, WebhookIdentityType$3 as WebhookIdentityType, type context$3__publicOnProjectItemCreatedType as _publicOnProjectItemCreatedType, type context$3__publicOnProjectItemDeletedType as _publicOnProjectItemDeletedType, type context$3__publicOnProjectItemUpdatedType as _publicOnProjectItemUpdatedType, context$3_bulkCreateProjectItems as bulkCreateProjectItems, context$3_bulkDeleteProjectItems as bulkDeleteProjectItems, context$3_bulkUpdateProjectItems as bulkUpdateProjectItems, context$3_createProjectItem as createProjectItem, context$3_deleteProjectItem as deleteProjectItem, context$3_duplicateProjectItems as duplicateProjectItems, context$3_getProjectItem as getProjectItem, context$3_listProjectItems as listProjectItems, context$3_onProjectItemCreated as onProjectItemCreated, context$3_onProjectItemDeleted as onProjectItemDeleted, context$3_onProjectItemUpdated as onProjectItemUpdated, onProjectItemCreated$1 as publicOnProjectItemCreated, onProjectItemDeleted$1 as publicOnProjectItemDeleted, onProjectItemUpdated$1 as publicOnProjectItemUpdated, context$3_updateProjectItem as updateProjectItem };
2445
2462
  }
2446
2463
 
2447
- /** Project is the main entity of ProjectsService */
2448
2464
  interface Project$1 extends ProjectCoverOneOf$1 {
2449
- /** project's cover photo */
2465
+ /** Project cover image. */
2450
2466
  coverImage?: Image$1;
2451
- /** project's cover video */
2467
+ /** Project cover video. */
2452
2468
  coverVideo?: Video$1;
2453
2469
  /**
2454
- * Project ID
2470
+ * Project ID.
2455
2471
  * @readonly
2456
2472
  */
2457
2473
  _id?: string | null;
2458
2474
  /**
2459
- * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision
2475
+ * Revision number, which increments by 1 each time the project is updated. To prevent conflicting changes, the existing revision must be passed when updating the project object.
2460
2476
  * @readonly
2461
2477
  */
2462
2478
  revision?: string | null;
2479
+ /** Project title. */
2463
2480
  title?: string | null;
2481
+ /** Project description. */
2464
2482
  description?: string | null;
2465
- /** indicates if the project should be hidden from Portfolio */
2483
+ /** Whether the project is hidden from the portfolio. */
2466
2484
  hidden?: boolean | null;
2467
- /** Collections must exist to be added to a project. Can be created/updated/deleted using [Collection Service](https://dev.wix.com/docs/rest/business-solutions/portfolio/collection) */
2485
+ /** IDs of the collections that include the project. */
2468
2486
  collectionIds?: string[];
2469
- /** Custom project details */
2487
+ /** Project details. */
2470
2488
  details?: ProjectDetail$1[];
2471
- /** Project's slug */
2489
+ /** Project slug. */
2472
2490
  slug?: string | null;
2473
2491
  /**
2474
- * Represents the time this Project was created
2492
+ * Date and time the project was created.
2475
2493
  * @readonly
2476
2494
  */
2477
2495
  _createdDate?: Date;
2478
2496
  /**
2479
- * Represents the time this Project was last updated
2497
+ * Date and time the project was updated.
2480
2498
  * @readonly
2481
2499
  */
2482
2500
  _updatedDate?: Date;
2483
2501
  /**
2484
- * Url and relative url of Project - in order to receive this field in READ requests you will need to pass the `include_page_url` field as part of request
2502
+ * Project's page URL and relative path. To receive this field in the response, pass the `includePageUrl` query parameter in the request.
2485
2503
  * @readonly
2486
2504
  */
2487
2505
  url?: string;
2488
- /** SEO data for the project */
2506
+ /** Project SEO data. */
2489
2507
  seoData?: SeoSchema$1;
2490
2508
  }
2491
2509
  /** @oneof */
2492
2510
  interface ProjectCoverOneOf$1 {
2493
- /** project's cover photo */
2511
+ /** Project cover image. */
2494
2512
  coverImage?: Image$1;
2495
- /** project's cover video */
2513
+ /** Project cover video. */
2496
2514
  coverVideo?: Video$1;
2497
2515
  }
2498
2516
  interface Image$1 {
2499
- /** Image info - Wix Media Image. */
2517
+ /** Information about the Wix Media image. */
2500
2518
  imageInfo?: string;
2501
2519
  /** Focal point of the image. */
2502
2520
  focalPoint?: Point$1;
@@ -2531,7 +2549,7 @@ interface UnsharpMasking$1 {
2531
2549
  threshold?: number | null;
2532
2550
  }
2533
2551
  interface Video$1 {
2534
- /** Video info - Wix Media Image. */
2552
+ /** Information about the Wix Media video. */
2535
2553
  videoInfo?: string;
2536
2554
  /** Manually defined Video duration in milliseconds. */
2537
2555
  durationInMillis?: number | null;
@@ -2550,21 +2568,30 @@ interface VideoResolution$1 {
2550
2568
  /** Video filename. */
2551
2569
  filename?: string | null;
2552
2570
  }
2571
+ /**
2572
+ * Project label.
2573
+ * One of:
2574
+ * + `text`
2575
+ * + `link`
2576
+ */
2553
2577
  interface ProjectDetail$1 extends ProjectDetailValueOneOf$1 {
2578
+ /** Project label in plain text format. */
2554
2579
  text?: string;
2555
- /** Details link */
2580
+ /** Project label in link format. */
2556
2581
  link?: DetailsLink$1;
2557
2582
  label?: string;
2558
2583
  }
2559
2584
  /** @oneof */
2560
2585
  interface ProjectDetailValueOneOf$1 {
2586
+ /** Project label in plain text format. */
2561
2587
  text?: string;
2562
- /** Details link */
2588
+ /** Project label in link format. */
2563
2589
  link?: DetailsLink$1;
2564
2590
  }
2565
2591
  interface DetailsLink$1 {
2592
+ /** Display text of the link. */
2566
2593
  text?: string | null;
2567
- /** link to external source */
2594
+ /** Target URL of the link. */
2568
2595
  url?: string | null;
2569
2596
  /**
2570
2597
  * Whether the link opens in a new tab or window. One of:
@@ -3070,27 +3097,27 @@ interface DeletedProjectRestored {
3070
3097
  deletionTimestamp?: Date;
3071
3098
  }
3072
3099
  interface CreateProjectRequest {
3073
- /** Project to be created */
3100
+ /** Project to create. */
3074
3101
  project: Project$1;
3075
3102
  }
3076
3103
  interface CreateProjectResponse {
3077
- /** The created Project */
3104
+ /** Created project. */
3078
3105
  project?: Project$1;
3079
3106
  }
3080
3107
  interface GetProjectRequest {
3081
- /** Id of the Project to retrieve */
3108
+ /** ID of the project to retrieve. */
3082
3109
  projectId: string;
3083
3110
  /** Include page url */
3084
3111
  includePageUrl?: boolean | null;
3085
3112
  }
3086
3113
  interface GetProjectResponse {
3087
- /** The retrieved Project */
3114
+ /** The requested project. */
3088
3115
  project?: Project$1;
3089
3116
  }
3090
3117
  interface ListProjectsRequest {
3091
- /** Projects limit per response is maximum 100, In the first request the cursor is None */
3118
+ /** Projects limit per response is maximum 100, In the first request the cursor is None ? */
3092
3119
  paging?: CursorPaging$2;
3093
- /** Include page url */
3120
+ /** Include page url ? */
3094
3121
  includePageUrl?: boolean | null;
3095
3122
  }
3096
3123
  interface CursorPaging$2 {
@@ -3105,9 +3132,9 @@ interface CursorPaging$2 {
3105
3132
  cursor?: string | null;
3106
3133
  }
3107
3134
  interface ListProjectsResponse {
3108
- /** The retrieved Projects */
3135
+ /** List of projects. */
3109
3136
  projects?: Project$1[];
3110
- /** Paging metadata */
3137
+ /** Paging metadata ? */
3111
3138
  metadata?: PagingMetadataV2$2;
3112
3139
  }
3113
3140
  interface PagingMetadataV2$2 {
@@ -3129,33 +3156,33 @@ interface Cursors$2 {
3129
3156
  prev?: string | null;
3130
3157
  }
3131
3158
  interface UpdateProjectRequest {
3132
- /** Project to be updated, may be partial */
3159
+ /** Project to update. */
3133
3160
  project: Project$1;
3134
3161
  }
3135
3162
  interface UpdateProjectResponse {
3136
- /** The updated Project */
3163
+ /** Updated project. */
3137
3164
  project?: Project$1;
3138
3165
  }
3139
3166
  interface BulkUpdateProjectsRequest {
3140
- /** projects to be updated. */
3167
+ /** Projects to update. */
3141
3168
  projects?: MaskedProject[];
3142
- /** Flag to return full entity in response */
3169
+ /** Whether to include the updated projects in the response. Set to `true`` to receive the projects in the response. */
3143
3170
  returnFullEntity?: boolean | null;
3144
3171
  }
3145
3172
  interface MaskedProject {
3146
- /** Project to be updated */
3173
+ /** Project to update. */
3147
3174
  project?: Project$1;
3148
3175
  }
3149
3176
  interface BulkUpdateProjectsResponse {
3150
- /** Array with all updated items results. */
3177
+ /** Items created by bulk action. */
3151
3178
  results?: BulkUpdateProjectsResult[];
3152
- /** Holds metadata of the entire bulk update operation */
3179
+ /** Bulk action metadata. */
3153
3180
  bulkActionMetadata?: BulkActionMetadata;
3154
3181
  }
3155
3182
  interface BulkUpdateProjectsResult {
3156
- /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
3183
+ /** Item metadata. */
3157
3184
  itemMetadata?: ItemMetadata;
3158
- /** Updated Project */
3185
+ /** Updated project. */
3159
3186
  project?: Project$1;
3160
3187
  }
3161
3188
  interface ItemMetadata {
@@ -3185,17 +3212,17 @@ interface BulkActionMetadata {
3185
3212
  undetailedFailures?: number;
3186
3213
  }
3187
3214
  interface DeleteProjectRequest {
3188
- /** Id of the Project to delete */
3215
+ /** ID of the project to delete. */
3189
3216
  projectId: string;
3190
3217
  }
3191
3218
  interface DeleteProjectResponse {
3192
- /** Id of the deleted Project */
3219
+ /** ID of the deleted project. */
3193
3220
  projectId?: string;
3194
3221
  }
3195
3222
  interface QueryProjectsRequest {
3196
- /** WQL expression */
3223
+ /** Query options. */
3197
3224
  query: QueryV2$1;
3198
- /** Include page url */
3225
+ /** Include page url ? */
3199
3226
  includePageUrl?: boolean | null;
3200
3227
  }
3201
3228
  interface QueryV2$1 extends QueryV2PagingMethodOneOf$1 {
@@ -3244,9 +3271,9 @@ interface Paging$1 {
3244
3271
  offset?: number | null;
3245
3272
  }
3246
3273
  interface QueryProjectsResponse {
3247
- /** The retrieved Projects */
3274
+ /** List of projects. */
3248
3275
  projects?: Project$1[];
3249
- /** Paging metadata */
3276
+ /** Paging metadata ? */
3250
3277
  metadata?: PagingMetadataV2$2;
3251
3278
  }
3252
3279
  interface UpdateProjectOrderInCollectionRequest$1 {
@@ -3537,62 +3564,64 @@ interface GetProjectOptions {
3537
3564
  includePageUrl?: boolean | null;
3538
3565
  }
3539
3566
  interface ListProjectsOptions {
3540
- /** Projects limit per response is maximum 100, In the first request the cursor is None */
3567
+ /** Projects limit per response is maximum 100, In the first request the cursor is None ? */
3541
3568
  paging?: CursorPaging$2;
3542
- /** Include page url */
3569
+ /** Include page url ? */
3543
3570
  includePageUrl?: boolean | null;
3544
3571
  }
3545
3572
  interface UpdateProject {
3546
- /** project's cover photo */
3573
+ /** Project cover image. */
3547
3574
  coverImage?: Image$1;
3548
- /** project's cover video */
3575
+ /** Project cover video. */
3549
3576
  coverVideo?: Video$1;
3550
3577
  /**
3551
- * Project ID
3578
+ * Project ID.
3552
3579
  * @readonly
3553
3580
  */
3554
3581
  _id?: string | null;
3555
3582
  /**
3556
- * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision
3583
+ * Revision number, which increments by 1 each time the project is updated. To prevent conflicting changes, the existing revision must be passed when updating the project object.
3557
3584
  * @readonly
3558
3585
  */
3559
3586
  revision?: string | null;
3587
+ /** Project title. */
3560
3588
  title?: string | null;
3589
+ /** Project description. */
3561
3590
  description?: string | null;
3562
- /** indicates if the project should be hidden from Portfolio */
3591
+ /** Whether the project is hidden from the portfolio. */
3563
3592
  hidden?: boolean | null;
3564
- /** Collections must exist to be added to a project. Can be created/updated/deleted using [Collection Service](https://dev.wix.com/docs/rest/business-solutions/portfolio/collection) */
3593
+ /** IDs of the collections that include the project. */
3565
3594
  collectionIds?: string[];
3566
- /** Custom project details */
3595
+ /** Project details. */
3567
3596
  details?: ProjectDetail$1[];
3568
- /** Project's slug */
3597
+ /** Project slug. */
3569
3598
  slug?: string | null;
3570
3599
  /**
3571
- * Represents the time this Project was created
3600
+ * Date and time the project was created.
3572
3601
  * @readonly
3573
3602
  */
3574
3603
  _createdDate?: Date;
3575
3604
  /**
3576
- * Represents the time this Project was last updated
3605
+ * Date and time the project was updated.
3577
3606
  * @readonly
3578
3607
  */
3579
3608
  _updatedDate?: Date;
3580
3609
  /**
3581
- * Url and relative url of Project - in order to receive this field in READ requests you will need to pass the `include_page_url` field as part of request
3610
+ * Project's page URL and relative path. To receive this field in the response, pass the `includePageUrl` query parameter in the request.
3582
3611
  * @readonly
3583
3612
  */
3584
3613
  url?: string;
3585
- /** SEO data for the project */
3614
+ /** Project SEO data. */
3586
3615
  seoData?: SeoSchema$1;
3587
3616
  }
3588
3617
  interface BulkUpdateProjectsOptions {
3589
- /** projects to be updated. */
3618
+ /** Projects to update. */
3590
3619
  projects?: MaskedProject[];
3591
- /** Flag to return full entity in response */
3620
+ /** Whether to include the updated projects in the response. Set to `true`` to receive the projects in the response. */
3592
3621
  returnFullEntity?: boolean | null;
3593
3622
  }
3594
3623
  interface QueryProjectsOptions {
3595
- /** Include page url */
3624
+ /** Include page url ? */
3596
3625
  includePageUrl?: boolean | null | undefined;
3597
3626
  }
3598
3627
  interface QueryCursorResult$1 {
@@ -3698,57 +3727,61 @@ interface GetProjectPageDataSignature {
3698
3727
  declare function createProject$1(httpClient: HttpClient): CreateProjectSignature;
3699
3728
  interface CreateProjectSignature {
3700
3729
  /**
3701
- * Creates a new Project
3702
- * @param - Project to be created
3703
- * @returns The created Project
3730
+ * Creates a project.
3731
+ * @param - Project to create.
3732
+ * @returns Created project.
3704
3733
  */
3705
3734
  (project: Project$1): Promise<Project$1 & ProjectNonNullableFields$1>;
3706
3735
  }
3707
3736
  declare function getProject$1(httpClient: HttpClient): GetProjectSignature;
3708
3737
  interface GetProjectSignature {
3709
3738
  /**
3710
- * Get a Project by id
3711
- * @param - Id of the Project to retrieve
3712
- * @returns The retrieved Project
3739
+ * Retrieves a project.
3740
+ * @param - ID of the project to retrieve.
3741
+ * @returns The requested project.
3713
3742
  */
3714
3743
  (projectId: string, options?: GetProjectOptions | undefined): Promise<Project$1 & ProjectNonNullableFields$1>;
3715
3744
  }
3716
3745
  declare function listProjects$1(httpClient: HttpClient): ListProjectsSignature;
3717
3746
  interface ListProjectsSignature {
3718
3747
  /**
3719
- * List all projects in portfolio by creation date
3748
+ * Retrieves a list of all projects in a portfolio.
3720
3749
  */
3721
3750
  (options?: ListProjectsOptions | undefined): Promise<ListProjectsResponse & ListProjectsResponseNonNullableFields>;
3722
3751
  }
3723
3752
  declare function updateProject$1(httpClient: HttpClient): UpdateProjectSignature;
3724
3753
  interface UpdateProjectSignature {
3725
3754
  /**
3726
- * Update a Project, supports partial update
3727
- * Pass the latest `revision` for a successful update
3728
- * @param - Project ID
3729
- * @returns The updated Project
3755
+ * Updates a project.
3756
+ * @param - Project ID.
3757
+ * @returns Updated project.
3730
3758
  */
3731
3759
  (_id: string | null, project: UpdateProject): Promise<Project$1 & ProjectNonNullableFields$1>;
3732
3760
  }
3733
3761
  declare function bulkUpdateProjects$1(httpClient: HttpClient): BulkUpdateProjectsSignature;
3734
3762
  interface BulkUpdateProjectsSignature {
3735
3763
  /**
3736
- * Update Projects in bulk
3764
+ * Updates multiple projects.
3737
3765
  */
3738
3766
  (options?: BulkUpdateProjectsOptions | undefined): Promise<BulkUpdateProjectsResponse & BulkUpdateProjectsResponseNonNullableFields>;
3739
3767
  }
3740
3768
  declare function deleteProject$1(httpClient: HttpClient): DeleteProjectSignature;
3741
3769
  interface DeleteProjectSignature {
3742
3770
  /**
3743
- * Delete a Project
3744
- * @param - Id of the Project to delete
3771
+ * Deletes a project.
3772
+ * @param - ID of the project to delete.
3745
3773
  */
3746
3774
  (projectId: string): Promise<DeleteProjectResponse & DeleteProjectResponseNonNullableFields>;
3747
3775
  }
3748
3776
  declare function queryProjects$1(httpClient: HttpClient): QueryProjectsSignature;
3749
3777
  interface QueryProjectsSignature {
3750
3778
  /**
3751
- * Query Projects using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
3779
+ * Retrieves a list of projects, given the provided paging, filtering, and sorting. Up to 100 projects can be returned per request.
3780
+ *
3781
+ * The default `sort` is `id` in `ASC`.
3782
+ *
3783
+ * For a detailed list of supported operations, see [Projects: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-solutions/portfolio/projects/sort-and-filter).
3784
+ * To learn how to query projects, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
3752
3785
  */
3753
3786
  (options?: QueryProjectsOptions | undefined): ProjectsQueryBuilder;
3754
3787
  }
@@ -3808,7 +3841,9 @@ declare const updateProjectOrderInCollection$2: MaybeContext<BuildRESTFunction<t
3808
3841
  declare const queryProjectsWithCollectionInfo: MaybeContext<BuildRESTFunction<typeof queryProjectsWithCollectionInfo$1> & typeof queryProjectsWithCollectionInfo$1>;
3809
3842
 
3810
3843
  type _publicOnProjectCreatedType = typeof onProjectCreated$1;
3811
- /** */
3844
+ /**
3845
+ * Triggered when a project is created.
3846
+ */
3812
3847
  declare const onProjectCreated: ReturnType<typeof createEventModule$1<_publicOnProjectCreatedType>>;
3813
3848
 
3814
3849
  type _publicOnProjectUpdatedType = typeof onProjectUpdated$1;
@@ -3816,7 +3851,9 @@ type _publicOnProjectUpdatedType = typeof onProjectUpdated$1;
3816
3851
  declare const onProjectUpdated: ReturnType<typeof createEventModule$1<_publicOnProjectUpdatedType>>;
3817
3852
 
3818
3853
  type _publicOnProjectDeletedType = typeof onProjectDeleted$1;
3819
- /** */
3854
+ /**
3855
+ * Triggered when a project is deleted.
3856
+ */
3820
3857
  declare const onProjectDeleted: ReturnType<typeof createEventModule$1<_publicOnProjectDeletedType>>;
3821
3858
 
3822
3859
  type context$2_App = App;
@@ -3904,59 +3941,60 @@ interface ProjectInCollection {
3904
3941
  /** The sort order of the project in the given Collection */
3905
3942
  sortOrder?: number | null;
3906
3943
  }
3907
- /** Project is the main entity of ProjectsService */
3908
3944
  interface Project extends ProjectCoverOneOf {
3909
- /** project's cover photo */
3945
+ /** Project cover image. */
3910
3946
  coverImage?: Image;
3911
- /** project's cover video */
3947
+ /** Project cover video. */
3912
3948
  coverVideo?: Video;
3913
3949
  /**
3914
- * Project ID
3950
+ * Project ID.
3915
3951
  * @readonly
3916
3952
  */
3917
3953
  _id?: string | null;
3918
3954
  /**
3919
- * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision
3955
+ * Revision number, which increments by 1 each time the project is updated. To prevent conflicting changes, the existing revision must be passed when updating the project object.
3920
3956
  * @readonly
3921
3957
  */
3922
3958
  revision?: string | null;
3959
+ /** Project title. */
3923
3960
  title?: string | null;
3961
+ /** Project description. */
3924
3962
  description?: string | null;
3925
- /** indicates if the project should be hidden from Portfolio */
3963
+ /** Whether the project is hidden from the portfolio. */
3926
3964
  hidden?: boolean | null;
3927
- /** Collections must exist to be added to a project. Can be created/updated/deleted using [Collection Service](https://dev.wix.com/docs/rest/business-solutions/portfolio/collection) */
3965
+ /** IDs of the collections that include the project. */
3928
3966
  collectionIds?: string[];
3929
- /** Custom project details */
3967
+ /** Project details. */
3930
3968
  details?: ProjectDetail[];
3931
- /** Project's slug */
3969
+ /** Project slug. */
3932
3970
  slug?: string | null;
3933
3971
  /**
3934
- * Represents the time this Project was created
3972
+ * Date and time the project was created.
3935
3973
  * @readonly
3936
3974
  */
3937
3975
  _createdDate?: Date;
3938
3976
  /**
3939
- * Represents the time this Project was last updated
3977
+ * Date and time the project was updated.
3940
3978
  * @readonly
3941
3979
  */
3942
3980
  _updatedDate?: Date;
3943
3981
  /**
3944
- * Url and relative url of Project - in order to receive this field in READ requests you will need to pass the `include_page_url` field as part of request
3982
+ * Project's page URL and relative path. To receive this field in the response, pass the `includePageUrl` query parameter in the request.
3945
3983
  * @readonly
3946
3984
  */
3947
3985
  url?: string;
3948
- /** SEO data for the project */
3986
+ /** Project SEO data. */
3949
3987
  seoData?: SeoSchema;
3950
3988
  }
3951
3989
  /** @oneof */
3952
3990
  interface ProjectCoverOneOf {
3953
- /** project's cover photo */
3991
+ /** Project cover image. */
3954
3992
  coverImage?: Image;
3955
- /** project's cover video */
3993
+ /** Project cover video. */
3956
3994
  coverVideo?: Video;
3957
3995
  }
3958
3996
  interface Image {
3959
- /** Image info - Wix Media Image. */
3997
+ /** Information about the Wix Media image. */
3960
3998
  imageInfo?: string;
3961
3999
  /** Focal point of the image. */
3962
4000
  focalPoint?: Point;
@@ -3991,7 +4029,7 @@ interface UnsharpMasking {
3991
4029
  threshold?: number | null;
3992
4030
  }
3993
4031
  interface Video {
3994
- /** Video info - Wix Media Image. */
4032
+ /** Information about the Wix Media video. */
3995
4033
  videoInfo?: string;
3996
4034
  /** Manually defined Video duration in milliseconds. */
3997
4035
  durationInMillis?: number | null;
@@ -4010,21 +4048,30 @@ interface VideoResolution {
4010
4048
  /** Video filename. */
4011
4049
  filename?: string | null;
4012
4050
  }
4051
+ /**
4052
+ * Project label.
4053
+ * One of:
4054
+ * + `text`
4055
+ * + `link`
4056
+ */
4013
4057
  interface ProjectDetail extends ProjectDetailValueOneOf {
4058
+ /** Project label in plain text format. */
4014
4059
  text?: string;
4015
- /** Details link */
4060
+ /** Project label in link format. */
4016
4061
  link?: DetailsLink;
4017
4062
  label?: string;
4018
4063
  }
4019
4064
  /** @oneof */
4020
4065
  interface ProjectDetailValueOneOf {
4066
+ /** Project label in plain text format. */
4021
4067
  text?: string;
4022
- /** Details link */
4068
+ /** Project label in link format. */
4023
4069
  link?: DetailsLink;
4024
4070
  }
4025
4071
  interface DetailsLink {
4072
+ /** Display text of the link. */
4026
4073
  text?: string | null;
4027
- /** link to external source */
4074
+ /** Target URL of the link. */
4028
4075
  url?: string | null;
4029
4076
  /**
4030
4077
  * Whether the link opens in a new tab or window. One of: