@wix/portfolio 1.0.82 → 1.0.83
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/package.json +8 -8
- package/type-bundles/context.bundle.d.ts +388 -206
- package/type-bundles/index.bundle.d.ts +388 -206
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
+
interface HttpClient {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4
|
+
fetchWithAuth: typeof fetch;
|
|
5
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
|
+
}
|
|
7
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
+
type HttpResponse<T = any> = {
|
|
9
|
+
data: T;
|
|
10
|
+
status: number;
|
|
11
|
+
statusText: string;
|
|
12
|
+
headers: any;
|
|
13
|
+
request?: any;
|
|
14
|
+
};
|
|
15
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
16
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
|
+
url: string;
|
|
18
|
+
data?: Data;
|
|
19
|
+
params?: URLSearchParams;
|
|
20
|
+
} & APIMetadata;
|
|
21
|
+
type APIMetadata = {
|
|
22
|
+
methodFqn?: string;
|
|
23
|
+
entityFqdn?: string;
|
|
24
|
+
packageName?: string;
|
|
25
|
+
};
|
|
26
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
28
|
+
__type: 'event-definition';
|
|
29
|
+
type: Type;
|
|
30
|
+
isDomainEvent?: boolean;
|
|
31
|
+
transformations?: (envelope: unknown) => Payload;
|
|
32
|
+
__payload: Payload;
|
|
33
|
+
};
|
|
34
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
37
|
+
|
|
38
|
+
declare global {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
40
|
+
interface SymbolConstructor {
|
|
41
|
+
readonly observable: symbol;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
1
45
|
/** Collection is the main entity of CollectionsService */
|
|
2
46
|
interface Collection {
|
|
3
47
|
/**
|
|
@@ -674,84 +718,79 @@ interface CollectionsQueryBuilder {
|
|
|
674
718
|
find: () => Promise<CollectionsQueryResult>;
|
|
675
719
|
}
|
|
676
720
|
|
|
677
|
-
|
|
678
|
-
interface
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
721
|
+
declare function createCollection$1(httpClient: HttpClient): CreateCollectionSignature;
|
|
722
|
+
interface CreateCollectionSignature {
|
|
723
|
+
/**
|
|
724
|
+
* Creates a new Collection
|
|
725
|
+
* @param - Collection to be created
|
|
726
|
+
* @returns The created Collection
|
|
727
|
+
*/
|
|
728
|
+
(collection: Collection): Promise<Collection & CollectionNonNullableFields>;
|
|
682
729
|
}
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
730
|
+
declare function getCollection$1(httpClient: HttpClient): GetCollectionSignature;
|
|
731
|
+
interface GetCollectionSignature {
|
|
732
|
+
/**
|
|
733
|
+
* Get a Collection by id
|
|
734
|
+
* @param - Id of the Collection to retrieve
|
|
735
|
+
* @returns The retrieved Collection
|
|
736
|
+
*/
|
|
737
|
+
(collectionId: string, options?: GetCollectionOptions | undefined): Promise<Collection & CollectionNonNullableFields>;
|
|
738
|
+
}
|
|
739
|
+
declare function listCollections$1(httpClient: HttpClient): ListCollectionsSignature;
|
|
740
|
+
interface ListCollectionsSignature {
|
|
741
|
+
/**
|
|
742
|
+
* List all Collections in portfolio
|
|
743
|
+
*/
|
|
744
|
+
(options?: ListCollectionsOptions | undefined): Promise<ListCollectionsResponse & ListCollectionsResponseNonNullableFields>;
|
|
745
|
+
}
|
|
746
|
+
declare function updateCollection$1(httpClient: HttpClient): UpdateCollectionSignature;
|
|
747
|
+
interface UpdateCollectionSignature {
|
|
748
|
+
/**
|
|
749
|
+
* Update a Collection, supports partial update
|
|
750
|
+
* Pass the latest `revision` for a successful update
|
|
751
|
+
* @param - Collection ID
|
|
752
|
+
* @returns The updated Collection
|
|
753
|
+
*/
|
|
754
|
+
(_id: string | null, collection: UpdateCollection): Promise<Collection & CollectionNonNullableFields>;
|
|
755
|
+
}
|
|
756
|
+
declare function deleteCollection$1(httpClient: HttpClient): DeleteCollectionSignature;
|
|
757
|
+
interface DeleteCollectionSignature {
|
|
758
|
+
/**
|
|
759
|
+
* Delete a Collection
|
|
760
|
+
* @param - Id of the Collection to delete
|
|
761
|
+
*/
|
|
762
|
+
(collectionId: string): Promise<DeleteCollectionResponse & DeleteCollectionResponseNonNullableFields>;
|
|
763
|
+
}
|
|
764
|
+
declare function queryCollections$1(httpClient: HttpClient): QueryCollectionsSignature;
|
|
765
|
+
interface QueryCollectionsSignature {
|
|
766
|
+
/**
|
|
767
|
+
* Query Collections using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
768
|
+
*/
|
|
769
|
+
(options?: QueryCollectionsOptions | undefined): CollectionsQueryBuilder;
|
|
719
770
|
}
|
|
720
|
-
|
|
721
|
-
declare function createCollection$1(httpClient: HttpClient): (collection: Collection) => Promise<Collection & CollectionNonNullableFields>;
|
|
722
|
-
declare function getCollection$1(httpClient: HttpClient): (collectionId: string, options?: GetCollectionOptions) => Promise<Collection & CollectionNonNullableFields>;
|
|
723
|
-
declare function listCollections$1(httpClient: HttpClient): (options?: ListCollectionsOptions) => Promise<ListCollectionsResponse & ListCollectionsResponseNonNullableFields>;
|
|
724
|
-
declare function updateCollection$1(httpClient: HttpClient): (_id: string | null, collection: UpdateCollection) => Promise<Collection & CollectionNonNullableFields>;
|
|
725
|
-
declare function deleteCollection$1(httpClient: HttpClient): (collectionId: string) => Promise<DeleteCollectionResponse & DeleteCollectionResponseNonNullableFields>;
|
|
726
|
-
declare function queryCollections$1(httpClient: HttpClient): (options?: QueryCollectionsOptions) => CollectionsQueryBuilder;
|
|
727
771
|
declare const onCollectionCreated$1: EventDefinition<CollectionCreatedEnvelope, "wix.portfolio.collections.v1.collection_created">;
|
|
728
772
|
declare const onCollectionUpdated$1: EventDefinition<CollectionUpdatedEnvelope, "wix.portfolio.collections.v1.collection_updated">;
|
|
729
773
|
declare const onCollectionDeleted$1: EventDefinition<CollectionDeletedEnvelope, "wix.portfolio.collections.v1.collection_deleted">;
|
|
730
774
|
|
|
731
|
-
declare function createRESTModule$5<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
732
|
-
|
|
733
775
|
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
734
776
|
|
|
735
|
-
|
|
736
|
-
declare const
|
|
737
|
-
|
|
738
|
-
declare const
|
|
739
|
-
|
|
740
|
-
declare const
|
|
741
|
-
type _publicUpdateCollectionType = typeof updateCollection$1;
|
|
742
|
-
declare const updateCollection: ReturnType<typeof createRESTModule$5<_publicUpdateCollectionType>>;
|
|
743
|
-
type _publicDeleteCollectionType = typeof deleteCollection$1;
|
|
744
|
-
declare const deleteCollection: ReturnType<typeof createRESTModule$5<_publicDeleteCollectionType>>;
|
|
745
|
-
type _publicQueryCollectionsType = typeof queryCollections$1;
|
|
746
|
-
declare const queryCollections: ReturnType<typeof createRESTModule$5<_publicQueryCollectionsType>>;
|
|
777
|
+
declare const createCollection: BuildRESTFunction<typeof createCollection$1> & typeof createCollection$1;
|
|
778
|
+
declare const getCollection: BuildRESTFunction<typeof getCollection$1> & typeof getCollection$1;
|
|
779
|
+
declare const listCollections: BuildRESTFunction<typeof listCollections$1> & typeof listCollections$1;
|
|
780
|
+
declare const updateCollection: BuildRESTFunction<typeof updateCollection$1> & typeof updateCollection$1;
|
|
781
|
+
declare const deleteCollection: BuildRESTFunction<typeof deleteCollection$1> & typeof deleteCollection$1;
|
|
782
|
+
declare const queryCollections: BuildRESTFunction<typeof queryCollections$1> & typeof queryCollections$1;
|
|
747
783
|
|
|
748
784
|
type _publicOnCollectionCreatedType = typeof onCollectionCreated$1;
|
|
785
|
+
/** */
|
|
749
786
|
declare const onCollectionCreated: ReturnType<typeof createEventModule$3<_publicOnCollectionCreatedType>>;
|
|
750
787
|
|
|
751
788
|
type _publicOnCollectionUpdatedType = typeof onCollectionUpdated$1;
|
|
789
|
+
/** */
|
|
752
790
|
declare const onCollectionUpdated: ReturnType<typeof createEventModule$3<_publicOnCollectionUpdatedType>>;
|
|
753
791
|
|
|
754
792
|
type _publicOnCollectionDeletedType = typeof onCollectionDeleted$1;
|
|
793
|
+
/** */
|
|
755
794
|
declare const onCollectionDeleted: ReturnType<typeof createEventModule$3<_publicOnCollectionDeletedType>>;
|
|
756
795
|
|
|
757
796
|
type index_d$5_AdminRemoveMenuItemsResponse = AdminRemoveMenuItemsResponse;
|
|
@@ -784,15 +823,9 @@ type index_d$5_UpdateCollection = UpdateCollection;
|
|
|
784
823
|
type index_d$5_UpdateCollectionRequest = UpdateCollectionRequest;
|
|
785
824
|
type index_d$5_UpdateCollectionResponse = UpdateCollectionResponse;
|
|
786
825
|
type index_d$5_UpdateCollectionResponseNonNullableFields = UpdateCollectionResponseNonNullableFields;
|
|
787
|
-
type index_d$5__publicCreateCollectionType = _publicCreateCollectionType;
|
|
788
|
-
type index_d$5__publicDeleteCollectionType = _publicDeleteCollectionType;
|
|
789
|
-
type index_d$5__publicGetCollectionType = _publicGetCollectionType;
|
|
790
|
-
type index_d$5__publicListCollectionsType = _publicListCollectionsType;
|
|
791
826
|
type index_d$5__publicOnCollectionCreatedType = _publicOnCollectionCreatedType;
|
|
792
827
|
type index_d$5__publicOnCollectionDeletedType = _publicOnCollectionDeletedType;
|
|
793
828
|
type index_d$5__publicOnCollectionUpdatedType = _publicOnCollectionUpdatedType;
|
|
794
|
-
type index_d$5__publicQueryCollectionsType = _publicQueryCollectionsType;
|
|
795
|
-
type index_d$5__publicUpdateCollectionType = _publicUpdateCollectionType;
|
|
796
829
|
declare const index_d$5_createCollection: typeof createCollection;
|
|
797
830
|
declare const index_d$5_deleteCollection: typeof deleteCollection;
|
|
798
831
|
declare const index_d$5_getCollection: typeof getCollection;
|
|
@@ -803,7 +836,7 @@ declare const index_d$5_onCollectionUpdated: typeof onCollectionUpdated;
|
|
|
803
836
|
declare const index_d$5_queryCollections: typeof queryCollections;
|
|
804
837
|
declare const index_d$5_updateCollection: typeof updateCollection;
|
|
805
838
|
declare namespace index_d$5 {
|
|
806
|
-
export { type ActionEvent$5 as ActionEvent, type index_d$5_AdminRemoveMenuItemsResponse as AdminRemoveMenuItemsResponse, type App$2 as App, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$5_Collection as Collection, type index_d$5_CollectionCreatedEnvelope as CollectionCreatedEnvelope, type index_d$5_CollectionDeletedEnvelope as CollectionDeletedEnvelope, type index_d$5_CollectionNonNullableFields as CollectionNonNullableFields, type index_d$5_CollectionUpdatedEnvelope as CollectionUpdatedEnvelope, type index_d$5_CollectionsQueryBuilder as CollectionsQueryBuilder, type index_d$5_CollectionsQueryResult as CollectionsQueryResult, type index_d$5_CreateCollectionRequest as CreateCollectionRequest, type index_d$5_CreateCollectionResponse as CreateCollectionResponse, type index_d$5_CreateCollectionResponseNonNullableFields as CreateCollectionResponseNonNullableFields, type CursorPaging$4 as CursorPaging, type Cursors$4 as Cursors, type index_d$5_DeleteCollectionRequest as DeleteCollectionRequest, type index_d$5_DeleteCollectionResponse as DeleteCollectionResponse, type index_d$5_DeleteCollectionResponseNonNullableFields as DeleteCollectionResponseNonNullableFields, type DomainEvent$5 as DomainEvent, type DomainEventBodyOneOf$5 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$5 as EntityCreatedEvent, type EntityDeletedEvent$5 as EntityDeletedEvent, type EntityUpdatedEvent$5 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type File$2 as File, type index_d$5_GetCollectionOptions as GetCollectionOptions, type index_d$5_GetCollectionRequest as GetCollectionRequest, type index_d$5_GetCollectionResponse as GetCollectionResponse, type index_d$5_GetCollectionResponseNonNullableFields as GetCollectionResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type Image$3 as Image, ImageType$3 as ImageType, type InvalidateCache$2 as InvalidateCache, type InvalidateCacheGetByOneOf$2 as InvalidateCacheGetByOneOf, type Keyword$2 as Keyword, type index_d$5_ListCollectionsOptions as ListCollectionsOptions, type index_d$5_ListCollectionsRequest as ListCollectionsRequest, type index_d$5_ListCollectionsResponse as ListCollectionsResponse, type index_d$5_ListCollectionsResponseNonNullableFields as ListCollectionsResponseNonNullableFields, type MessageEnvelope$5 as MessageEnvelope, type Page$2 as Page, type Paging$3 as Paging, type PagingMetadataV2$4 as PagingMetadataV2, type Point$3 as Point, type index_d$5_QueryCollectionsOptions as QueryCollectionsOptions, type index_d$5_QueryCollectionsRequest as QueryCollectionsRequest, type index_d$5_QueryCollectionsResponse as QueryCollectionsResponse, type index_d$5_QueryCollectionsResponseNonNullableFields as QueryCollectionsResponseNonNullableFields, type QueryV2$3 as QueryV2, type QueryV2PagingMethodOneOf$3 as QueryV2PagingMethodOneOf, type RestoreInfo$5 as RestoreInfo, type SeoSchema$2 as SeoSchema, type Settings$2 as Settings, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, type Tag$2 as Tag, type URI$2 as URI, type UnsharpMasking$3 as UnsharpMasking, type index_d$5_UpdateCollection as UpdateCollection, type index_d$5_UpdateCollectionRequest as UpdateCollectionRequest, type index_d$5_UpdateCollectionResponse as UpdateCollectionResponse, type index_d$5_UpdateCollectionResponseNonNullableFields as UpdateCollectionResponseNonNullableFields, WebhookIdentityType$5 as WebhookIdentityType, type index_d$
|
|
839
|
+
export { type ActionEvent$5 as ActionEvent, type index_d$5_AdminRemoveMenuItemsResponse as AdminRemoveMenuItemsResponse, type App$2 as App, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$5_Collection as Collection, type index_d$5_CollectionCreatedEnvelope as CollectionCreatedEnvelope, type index_d$5_CollectionDeletedEnvelope as CollectionDeletedEnvelope, type index_d$5_CollectionNonNullableFields as CollectionNonNullableFields, type index_d$5_CollectionUpdatedEnvelope as CollectionUpdatedEnvelope, type index_d$5_CollectionsQueryBuilder as CollectionsQueryBuilder, type index_d$5_CollectionsQueryResult as CollectionsQueryResult, type index_d$5_CreateCollectionRequest as CreateCollectionRequest, type index_d$5_CreateCollectionResponse as CreateCollectionResponse, type index_d$5_CreateCollectionResponseNonNullableFields as CreateCollectionResponseNonNullableFields, type CursorPaging$4 as CursorPaging, type Cursors$4 as Cursors, type index_d$5_DeleteCollectionRequest as DeleteCollectionRequest, type index_d$5_DeleteCollectionResponse as DeleteCollectionResponse, type index_d$5_DeleteCollectionResponseNonNullableFields as DeleteCollectionResponseNonNullableFields, type DomainEvent$5 as DomainEvent, type DomainEventBodyOneOf$5 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$5 as EntityCreatedEvent, type EntityDeletedEvent$5 as EntityDeletedEvent, type EntityUpdatedEvent$5 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type File$2 as File, type index_d$5_GetCollectionOptions as GetCollectionOptions, type index_d$5_GetCollectionRequest as GetCollectionRequest, type index_d$5_GetCollectionResponse as GetCollectionResponse, type index_d$5_GetCollectionResponseNonNullableFields as GetCollectionResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type Image$3 as Image, ImageType$3 as ImageType, type InvalidateCache$2 as InvalidateCache, type InvalidateCacheGetByOneOf$2 as InvalidateCacheGetByOneOf, type Keyword$2 as Keyword, type index_d$5_ListCollectionsOptions as ListCollectionsOptions, type index_d$5_ListCollectionsRequest as ListCollectionsRequest, type index_d$5_ListCollectionsResponse as ListCollectionsResponse, type index_d$5_ListCollectionsResponseNonNullableFields as ListCollectionsResponseNonNullableFields, type MessageEnvelope$5 as MessageEnvelope, type Page$2 as Page, type Paging$3 as Paging, type PagingMetadataV2$4 as PagingMetadataV2, type Point$3 as Point, type index_d$5_QueryCollectionsOptions as QueryCollectionsOptions, type index_d$5_QueryCollectionsRequest as QueryCollectionsRequest, type index_d$5_QueryCollectionsResponse as QueryCollectionsResponse, type index_d$5_QueryCollectionsResponseNonNullableFields as QueryCollectionsResponseNonNullableFields, type QueryV2$3 as QueryV2, type QueryV2PagingMethodOneOf$3 as QueryV2PagingMethodOneOf, type RestoreInfo$5 as RestoreInfo, type SeoSchema$2 as SeoSchema, type Settings$2 as Settings, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, type Tag$2 as Tag, type URI$2 as URI, type UnsharpMasking$3 as UnsharpMasking, type index_d$5_UpdateCollection as UpdateCollection, type index_d$5_UpdateCollectionRequest as UpdateCollectionRequest, type index_d$5_UpdateCollectionResponse as UpdateCollectionResponse, type index_d$5_UpdateCollectionResponseNonNullableFields as UpdateCollectionResponseNonNullableFields, WebhookIdentityType$5 as WebhookIdentityType, type index_d$5__publicOnCollectionCreatedType as _publicOnCollectionCreatedType, type index_d$5__publicOnCollectionDeletedType as _publicOnCollectionDeletedType, type index_d$5__publicOnCollectionUpdatedType as _publicOnCollectionUpdatedType, index_d$5_createCollection as createCollection, index_d$5_deleteCollection as deleteCollection, index_d$5_getCollection as getCollection, index_d$5_listCollections as listCollections, index_d$5_onCollectionCreated as onCollectionCreated, index_d$5_onCollectionDeleted as onCollectionDeleted, index_d$5_onCollectionUpdated as onCollectionUpdated, onCollectionCreated$1 as publicOnCollectionCreated, onCollectionDeleted$1 as publicOnCollectionDeleted, onCollectionUpdated$1 as publicOnCollectionUpdated, index_d$5_queryCollections as queryCollections, index_d$5_updateCollection as updateCollection };
|
|
807
840
|
}
|
|
808
841
|
|
|
809
842
|
interface PortfolioSettings {
|
|
@@ -1001,18 +1034,34 @@ interface UpdatePortfolioSettingsResponseNonNullableFields {
|
|
|
1001
1034
|
updatedPortfolioSettings?: PortfolioSettingsNonNullableFields;
|
|
1002
1035
|
}
|
|
1003
1036
|
|
|
1004
|
-
declare function createPortfolioSettings$1(httpClient: HttpClient):
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1037
|
+
declare function createPortfolioSettings$1(httpClient: HttpClient): CreatePortfolioSettingsSignature;
|
|
1038
|
+
interface CreatePortfolioSettingsSignature {
|
|
1039
|
+
/**
|
|
1040
|
+
* Create a new portfolio settings
|
|
1041
|
+
* @param - The portfolio settings to create
|
|
1042
|
+
* @returns The created portfolio settings
|
|
1043
|
+
*/
|
|
1044
|
+
(portfolioSettings: PortfolioSettings): Promise<PortfolioSettings & PortfolioSettingsNonNullableFields>;
|
|
1045
|
+
}
|
|
1046
|
+
declare function getPortfolioSettings$1(httpClient: HttpClient): GetPortfolioSettingsSignature;
|
|
1047
|
+
interface GetPortfolioSettingsSignature {
|
|
1048
|
+
/**
|
|
1049
|
+
* Get the portfolio settings
|
|
1050
|
+
*/
|
|
1051
|
+
(): Promise<GetPortfolioSettingsResponse & GetPortfolioSettingsResponseNonNullableFields>;
|
|
1052
|
+
}
|
|
1053
|
+
declare function updatePortfolioSettings$1(httpClient: HttpClient): UpdatePortfolioSettingsSignature;
|
|
1054
|
+
interface UpdatePortfolioSettingsSignature {
|
|
1055
|
+
/**
|
|
1056
|
+
* Update the portfolio settings
|
|
1057
|
+
* @param - The portfolio settings to update
|
|
1058
|
+
*/
|
|
1059
|
+
(portfolioSettings: PortfolioSettings): Promise<UpdatePortfolioSettingsResponse & UpdatePortfolioSettingsResponseNonNullableFields>;
|
|
1060
|
+
}
|
|
1009
1061
|
|
|
1010
|
-
|
|
1011
|
-
declare const
|
|
1012
|
-
|
|
1013
|
-
declare const getPortfolioSettings: ReturnType<typeof createRESTModule$4<_publicGetPortfolioSettingsType>>;
|
|
1014
|
-
type _publicUpdatePortfolioSettingsType = typeof updatePortfolioSettings$1;
|
|
1015
|
-
declare const updatePortfolioSettings: ReturnType<typeof createRESTModule$4<_publicUpdatePortfolioSettingsType>>;
|
|
1062
|
+
declare const createPortfolioSettings: BuildRESTFunction<typeof createPortfolioSettings$1> & typeof createPortfolioSettings$1;
|
|
1063
|
+
declare const getPortfolioSettings: BuildRESTFunction<typeof getPortfolioSettings$1> & typeof getPortfolioSettings$1;
|
|
1064
|
+
declare const updatePortfolioSettings: BuildRESTFunction<typeof updatePortfolioSettings$1> & typeof updatePortfolioSettings$1;
|
|
1016
1065
|
|
|
1017
1066
|
type index_d$4_AddItemDirection = AddItemDirection;
|
|
1018
1067
|
declare const index_d$4_AddItemDirection: typeof AddItemDirection;
|
|
@@ -1032,14 +1081,11 @@ type index_d$4_SiteMenuSettings = SiteMenuSettings;
|
|
|
1032
1081
|
type index_d$4_UpdatePortfolioSettingsRequest = UpdatePortfolioSettingsRequest;
|
|
1033
1082
|
type index_d$4_UpdatePortfolioSettingsResponse = UpdatePortfolioSettingsResponse;
|
|
1034
1083
|
type index_d$4_UpdatePortfolioSettingsResponseNonNullableFields = UpdatePortfolioSettingsResponseNonNullableFields;
|
|
1035
|
-
type index_d$4__publicCreatePortfolioSettingsType = _publicCreatePortfolioSettingsType;
|
|
1036
|
-
type index_d$4__publicGetPortfolioSettingsType = _publicGetPortfolioSettingsType;
|
|
1037
|
-
type index_d$4__publicUpdatePortfolioSettingsType = _publicUpdatePortfolioSettingsType;
|
|
1038
1084
|
declare const index_d$4_createPortfolioSettings: typeof createPortfolioSettings;
|
|
1039
1085
|
declare const index_d$4_getPortfolioSettings: typeof getPortfolioSettings;
|
|
1040
1086
|
declare const index_d$4_updatePortfolioSettings: typeof updatePortfolioSettings;
|
|
1041
1087
|
declare namespace index_d$4 {
|
|
1042
|
-
export { type ActionEvent$4 as ActionEvent, index_d$4_AddItemDirection as AddItemDirection, type index_d$4_CreatePortfolioSettingsRequest as CreatePortfolioSettingsRequest, type index_d$4_CreatePortfolioSettingsResponse as CreatePortfolioSettingsResponse, type index_d$4_CreatePortfolioSettingsResponseNonNullableFields as CreatePortfolioSettingsResponseNonNullableFields, index_d$4_DefaultItemName as DefaultItemName, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type index_d$4_GetPortfolioSettingsRequest as GetPortfolioSettingsRequest, type index_d$4_GetPortfolioSettingsResponse as GetPortfolioSettingsResponse, type index_d$4_GetPortfolioSettingsResponseNonNullableFields as GetPortfolioSettingsResponseNonNullableFields, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, type index_d$4_MediaSettings as MediaSettings, type MessageEnvelope$4 as MessageEnvelope, type index_d$4_PortfolioSettings as PortfolioSettings, type index_d$4_PortfolioSettingsNonNullableFields as PortfolioSettingsNonNullableFields, type index_d$4_ProjectItemSettings as ProjectItemSettings, type RestoreInfo$4 as RestoreInfo, type index_d$4_SiteMenuSettings as SiteMenuSettings, type index_d$4_UpdatePortfolioSettingsRequest as UpdatePortfolioSettingsRequest, type index_d$4_UpdatePortfolioSettingsResponse as UpdatePortfolioSettingsResponse, type index_d$4_UpdatePortfolioSettingsResponseNonNullableFields as UpdatePortfolioSettingsResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType,
|
|
1088
|
+
export { type ActionEvent$4 as ActionEvent, index_d$4_AddItemDirection as AddItemDirection, type index_d$4_CreatePortfolioSettingsRequest as CreatePortfolioSettingsRequest, type index_d$4_CreatePortfolioSettingsResponse as CreatePortfolioSettingsResponse, type index_d$4_CreatePortfolioSettingsResponseNonNullableFields as CreatePortfolioSettingsResponseNonNullableFields, index_d$4_DefaultItemName as DefaultItemName, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type index_d$4_GetPortfolioSettingsRequest as GetPortfolioSettingsRequest, type index_d$4_GetPortfolioSettingsResponse as GetPortfolioSettingsResponse, type index_d$4_GetPortfolioSettingsResponseNonNullableFields as GetPortfolioSettingsResponseNonNullableFields, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, type index_d$4_MediaSettings as MediaSettings, type MessageEnvelope$4 as MessageEnvelope, type index_d$4_PortfolioSettings as PortfolioSettings, type index_d$4_PortfolioSettingsNonNullableFields as PortfolioSettingsNonNullableFields, type index_d$4_ProjectItemSettings as ProjectItemSettings, type RestoreInfo$4 as RestoreInfo, type index_d$4_SiteMenuSettings as SiteMenuSettings, type index_d$4_UpdatePortfolioSettingsRequest as UpdatePortfolioSettingsRequest, type index_d$4_UpdatePortfolioSettingsResponse as UpdatePortfolioSettingsResponse, type index_d$4_UpdatePortfolioSettingsResponseNonNullableFields as UpdatePortfolioSettingsResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, index_d$4_createPortfolioSettings as createPortfolioSettings, index_d$4_getPortfolioSettings as getPortfolioSettings, index_d$4_updatePortfolioSettings as updatePortfolioSettings };
|
|
1043
1089
|
}
|
|
1044
1090
|
|
|
1045
1091
|
/** ProjectItem is the main entity of ProjectItemsService */
|
|
@@ -1819,49 +1865,104 @@ interface DuplicateProjectItemsOptions {
|
|
|
1819
1865
|
targetProjectId: string;
|
|
1820
1866
|
}
|
|
1821
1867
|
|
|
1822
|
-
declare function createProjectItem$1(httpClient: HttpClient):
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1868
|
+
declare function createProjectItem$1(httpClient: HttpClient): CreateProjectItemSignature;
|
|
1869
|
+
interface CreateProjectItemSignature {
|
|
1870
|
+
/**
|
|
1871
|
+
* Creates a new ProjectItem
|
|
1872
|
+
* @param - Item to be created
|
|
1873
|
+
* @returns The created item
|
|
1874
|
+
*/
|
|
1875
|
+
(item: Item): Promise<Item & ItemNonNullableFields>;
|
|
1876
|
+
}
|
|
1877
|
+
declare function bulkCreateProjectItems$1(httpClient: HttpClient): BulkCreateProjectItemsSignature;
|
|
1878
|
+
interface BulkCreateProjectItemsSignature {
|
|
1879
|
+
/**
|
|
1880
|
+
* Create items in bulk
|
|
1881
|
+
*/
|
|
1882
|
+
(options?: BulkCreateProjectItemsOptions | undefined): Promise<BulkCreateProjectItemsResponse & BulkCreateProjectItemsResponseNonNullableFields>;
|
|
1883
|
+
}
|
|
1884
|
+
declare function getProjectItem$1(httpClient: HttpClient): GetProjectItemSignature;
|
|
1885
|
+
interface GetProjectItemSignature {
|
|
1886
|
+
/**
|
|
1887
|
+
* Get a ProjectItem by id
|
|
1888
|
+
* @param - Id of the ProjectItem to retrieve
|
|
1889
|
+
* @returns The retrieved ProjectItem
|
|
1890
|
+
*/
|
|
1891
|
+
(itemId: string): Promise<Item & ItemNonNullableFields>;
|
|
1892
|
+
}
|
|
1893
|
+
declare function listProjectItems$1(httpClient: HttpClient): ListProjectItemsSignature;
|
|
1894
|
+
interface ListProjectItemsSignature {
|
|
1895
|
+
/**
|
|
1896
|
+
* List all items in project
|
|
1897
|
+
* @param - Id of the Project the item is part of
|
|
1898
|
+
*/
|
|
1899
|
+
(projectId: string, options?: ListProjectItemsOptions | undefined): Promise<ListProjectItemsResponse & ListProjectItemsResponseNonNullableFields>;
|
|
1900
|
+
}
|
|
1901
|
+
declare function updateProjectItem$1(httpClient: HttpClient): UpdateProjectItemSignature;
|
|
1902
|
+
interface UpdateProjectItemSignature {
|
|
1903
|
+
/**
|
|
1904
|
+
* Update a ProjectItem, supports partial update
|
|
1905
|
+
* @param - Item ID.
|
|
1906
|
+
* @returns The updated ProjectItem
|
|
1907
|
+
*/
|
|
1908
|
+
(_id: string | null, item: UpdateProjectItem): Promise<Item & ItemNonNullableFields>;
|
|
1909
|
+
}
|
|
1910
|
+
declare function bulkUpdateProjectItems$1(httpClient: HttpClient): BulkUpdateProjectItemsSignature;
|
|
1911
|
+
interface BulkUpdateProjectItemsSignature {
|
|
1912
|
+
/**
|
|
1913
|
+
* Update ProjectItems in bulk
|
|
1914
|
+
*/
|
|
1915
|
+
(options?: BulkUpdateProjectItemsOptions | undefined): Promise<BulkUpdateProjectItemsResponse & BulkUpdateProjectItemsResponseNonNullableFields>;
|
|
1916
|
+
}
|
|
1917
|
+
declare function deleteProjectItem$1(httpClient: HttpClient): DeleteProjectItemSignature;
|
|
1918
|
+
interface DeleteProjectItemSignature {
|
|
1919
|
+
/**
|
|
1920
|
+
* Delete a ProjectItem
|
|
1921
|
+
* @param - Id of the Item to delete
|
|
1922
|
+
*/
|
|
1923
|
+
(itemId: string): Promise<DeleteProjectItemResponse & DeleteProjectItemResponseNonNullableFields>;
|
|
1924
|
+
}
|
|
1925
|
+
declare function bulkDeleteProjectItems$1(httpClient: HttpClient): BulkDeleteProjectItemsSignature;
|
|
1926
|
+
interface BulkDeleteProjectItemsSignature {
|
|
1927
|
+
/**
|
|
1928
|
+
* Delete items in bulk
|
|
1929
|
+
*/
|
|
1930
|
+
(options: BulkDeleteProjectItemsOptions): Promise<BulkDeleteProjectItemsResponse & BulkDeleteProjectItemsResponseNonNullableFields>;
|
|
1931
|
+
}
|
|
1932
|
+
declare function duplicateProjectItems$1(httpClient: HttpClient): DuplicateProjectItemsSignature;
|
|
1933
|
+
interface DuplicateProjectItemsSignature {
|
|
1934
|
+
/**
|
|
1935
|
+
* Given an 'origin' Project and 'target' Project, copy all ProjectItems in 'origin' Project to 'target' Project.
|
|
1936
|
+
* @param - Id of Project to duplicate
|
|
1937
|
+
*/
|
|
1938
|
+
(originProjectId: string, options: DuplicateProjectItemsOptions): Promise<DuplicateProjectItemsResponse & DuplicateProjectItemsResponseNonNullableFields>;
|
|
1939
|
+
}
|
|
1831
1940
|
declare const onProjectItemCreated$1: EventDefinition<ProjectItemCreatedEnvelope, "wix.portfolio.project_items.v1.project_item_created">;
|
|
1832
1941
|
declare const onProjectItemUpdated$1: EventDefinition<ProjectItemUpdatedEnvelope, "wix.portfolio.project_items.v1.project_item_updated">;
|
|
1833
1942
|
declare const onProjectItemDeleted$1: EventDefinition<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;
|
|
1834
1943
|
|
|
1835
|
-
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1836
|
-
|
|
1837
1944
|
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1838
1945
|
|
|
1839
|
-
|
|
1840
|
-
declare const
|
|
1841
|
-
|
|
1842
|
-
declare const
|
|
1843
|
-
|
|
1844
|
-
declare const
|
|
1845
|
-
|
|
1846
|
-
declare const
|
|
1847
|
-
|
|
1848
|
-
declare const updateProjectItem: ReturnType<typeof createRESTModule$3<_publicUpdateProjectItemType>>;
|
|
1849
|
-
type _publicBulkUpdateProjectItemsType = typeof bulkUpdateProjectItems$1;
|
|
1850
|
-
declare const bulkUpdateProjectItems: ReturnType<typeof createRESTModule$3<_publicBulkUpdateProjectItemsType>>;
|
|
1851
|
-
type _publicDeleteProjectItemType = typeof deleteProjectItem$1;
|
|
1852
|
-
declare const deleteProjectItem: ReturnType<typeof createRESTModule$3<_publicDeleteProjectItemType>>;
|
|
1853
|
-
type _publicBulkDeleteProjectItemsType = typeof bulkDeleteProjectItems$1;
|
|
1854
|
-
declare const bulkDeleteProjectItems: ReturnType<typeof createRESTModule$3<_publicBulkDeleteProjectItemsType>>;
|
|
1855
|
-
type _publicDuplicateProjectItemsType = typeof duplicateProjectItems$1;
|
|
1856
|
-
declare const duplicateProjectItems: ReturnType<typeof createRESTModule$3<_publicDuplicateProjectItemsType>>;
|
|
1946
|
+
declare const createProjectItem: BuildRESTFunction<typeof createProjectItem$1> & typeof createProjectItem$1;
|
|
1947
|
+
declare const bulkCreateProjectItems: BuildRESTFunction<typeof bulkCreateProjectItems$1> & typeof bulkCreateProjectItems$1;
|
|
1948
|
+
declare const getProjectItem: BuildRESTFunction<typeof getProjectItem$1> & typeof getProjectItem$1;
|
|
1949
|
+
declare const listProjectItems: BuildRESTFunction<typeof listProjectItems$1> & typeof listProjectItems$1;
|
|
1950
|
+
declare const updateProjectItem: BuildRESTFunction<typeof updateProjectItem$1> & typeof updateProjectItem$1;
|
|
1951
|
+
declare const bulkUpdateProjectItems: BuildRESTFunction<typeof bulkUpdateProjectItems$1> & typeof bulkUpdateProjectItems$1;
|
|
1952
|
+
declare const deleteProjectItem: BuildRESTFunction<typeof deleteProjectItem$1> & typeof deleteProjectItem$1;
|
|
1953
|
+
declare const bulkDeleteProjectItems: BuildRESTFunction<typeof bulkDeleteProjectItems$1> & typeof bulkDeleteProjectItems$1;
|
|
1954
|
+
declare const duplicateProjectItems: BuildRESTFunction<typeof duplicateProjectItems$1> & typeof duplicateProjectItems$1;
|
|
1857
1955
|
|
|
1858
1956
|
type _publicOnProjectItemCreatedType = typeof onProjectItemCreated$1;
|
|
1957
|
+
/** */
|
|
1859
1958
|
declare const onProjectItemCreated: ReturnType<typeof createEventModule$2<_publicOnProjectItemCreatedType>>;
|
|
1860
1959
|
|
|
1861
1960
|
type _publicOnProjectItemUpdatedType = typeof onProjectItemUpdated$1;
|
|
1961
|
+
/** */
|
|
1862
1962
|
declare const onProjectItemUpdated: ReturnType<typeof createEventModule$2<_publicOnProjectItemUpdatedType>>;
|
|
1863
1963
|
|
|
1864
1964
|
type _publicOnProjectItemDeletedType = typeof onProjectItemDeleted$1;
|
|
1965
|
+
/** */
|
|
1865
1966
|
declare const onProjectItemDeleted: ReturnType<typeof createEventModule$2<_publicOnProjectItemDeletedType>>;
|
|
1866
1967
|
|
|
1867
1968
|
type index_d$3_BulkCreateProjectItemResult = BulkCreateProjectItemResult;
|
|
@@ -1918,18 +2019,9 @@ type index_d$3_UpdateProjectItem = UpdateProjectItem;
|
|
|
1918
2019
|
type index_d$3_UpdateProjectItemRequest = UpdateProjectItemRequest;
|
|
1919
2020
|
type index_d$3_UpdateProjectItemResponse = UpdateProjectItemResponse;
|
|
1920
2021
|
type index_d$3_UpdateProjectItemResponseNonNullableFields = UpdateProjectItemResponseNonNullableFields;
|
|
1921
|
-
type index_d$3__publicBulkCreateProjectItemsType = _publicBulkCreateProjectItemsType;
|
|
1922
|
-
type index_d$3__publicBulkDeleteProjectItemsType = _publicBulkDeleteProjectItemsType;
|
|
1923
|
-
type index_d$3__publicBulkUpdateProjectItemsType = _publicBulkUpdateProjectItemsType;
|
|
1924
|
-
type index_d$3__publicCreateProjectItemType = _publicCreateProjectItemType;
|
|
1925
|
-
type index_d$3__publicDeleteProjectItemType = _publicDeleteProjectItemType;
|
|
1926
|
-
type index_d$3__publicDuplicateProjectItemsType = _publicDuplicateProjectItemsType;
|
|
1927
|
-
type index_d$3__publicGetProjectItemType = _publicGetProjectItemType;
|
|
1928
|
-
type index_d$3__publicListProjectItemsType = _publicListProjectItemsType;
|
|
1929
2022
|
type index_d$3__publicOnProjectItemCreatedType = _publicOnProjectItemCreatedType;
|
|
1930
2023
|
type index_d$3__publicOnProjectItemDeletedType = _publicOnProjectItemDeletedType;
|
|
1931
2024
|
type index_d$3__publicOnProjectItemUpdatedType = _publicOnProjectItemUpdatedType;
|
|
1932
|
-
type index_d$3__publicUpdateProjectItemType = _publicUpdateProjectItemType;
|
|
1933
2025
|
declare const index_d$3_bulkCreateProjectItems: typeof bulkCreateProjectItems;
|
|
1934
2026
|
declare const index_d$3_bulkDeleteProjectItems: typeof bulkDeleteProjectItems;
|
|
1935
2027
|
declare const index_d$3_bulkUpdateProjectItems: typeof bulkUpdateProjectItems;
|
|
@@ -1943,7 +2035,7 @@ declare const index_d$3_onProjectItemDeleted: typeof onProjectItemDeleted;
|
|
|
1943
2035
|
declare const index_d$3_onProjectItemUpdated: typeof onProjectItemUpdated;
|
|
1944
2036
|
declare const index_d$3_updateProjectItem: typeof updateProjectItem;
|
|
1945
2037
|
declare namespace index_d$3 {
|
|
1946
|
-
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 index_d$3_BulkCreateProjectItemResult as BulkCreateProjectItemResult, type index_d$3_BulkCreateProjectItemsOptions as BulkCreateProjectItemsOptions, type index_d$3_BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest, type index_d$3_BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse, type index_d$3_BulkCreateProjectItemsResponseNonNullableFields as BulkCreateProjectItemsResponseNonNullableFields, type index_d$3_BulkDeleteProjectItemResult as BulkDeleteProjectItemResult, type index_d$3_BulkDeleteProjectItemsOptions as BulkDeleteProjectItemsOptions, type index_d$3_BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest, type index_d$3_BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse, type index_d$3_BulkDeleteProjectItemsResponseNonNullableFields as BulkDeleteProjectItemsResponseNonNullableFields, type index_d$3_BulkUpdateProjectItemResult as BulkUpdateProjectItemResult, type index_d$3_BulkUpdateProjectItemsOptions as BulkUpdateProjectItemsOptions, type index_d$3_BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest, type index_d$3_BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse, type index_d$3_BulkUpdateProjectItemsResponseNonNullableFields as BulkUpdateProjectItemsResponseNonNullableFields, type index_d$3_CreateProjectGalleryRequest as CreateProjectGalleryRequest, type index_d$3_CreateProjectGalleryResponse as CreateProjectGalleryResponse, type index_d$3_CreateProjectItemRequest as CreateProjectItemRequest, type index_d$3_CreateProjectItemResponse as CreateProjectItemResponse, type index_d$3_CreateProjectItemResponseNonNullableFields as CreateProjectItemResponseNonNullableFields, type CursorPaging$3 as CursorPaging, type Cursors$3 as Cursors, type index_d$3_DeleteProjectItemRequest as DeleteProjectItemRequest, type index_d$3_DeleteProjectItemResponse as DeleteProjectItemResponse, type index_d$3_DeleteProjectItemResponseNonNullableFields as DeleteProjectItemResponseNonNullableFields, type DeletedProjectRestored$1 as DeletedProjectRestored, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$3_DuplicateProjectItemsOptions as DuplicateProjectItemsOptions, type index_d$3_DuplicateProjectItemsRequest as DuplicateProjectItemsRequest, type index_d$3_DuplicateProjectItemsResponse as DuplicateProjectItemsResponse, type index_d$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 index_d$3_GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequest, type index_d$3_GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponse, type index_d$3_GetProjectItemRequest as GetProjectItemRequest, type index_d$3_GetProjectItemResponse as GetProjectItemResponse, type index_d$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 index_d$3_Item as Item, type ItemMetadata$1 as ItemMetadata, type index_d$3_ItemMetadataOneOf as ItemMetadataOneOf, type index_d$3_ItemNonNullableFields as ItemNonNullableFields, type index_d$3_Link as Link, type index_d$3_ListProjectItemsOptions as ListProjectItemsOptions, type index_d$3_ListProjectItemsRequest as ListProjectItemsRequest, type index_d$3_ListProjectItemsResponse as ListProjectItemsResponse, type index_d$3_ListProjectItemsResponseNonNullableFields as ListProjectItemsResponseNonNullableFields, type index_d$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 index_d$3_ProjectItemCreatedEnvelope as ProjectItemCreatedEnvelope, type index_d$3_ProjectItemDeletedEnvelope as ProjectItemDeletedEnvelope, type index_d$3_ProjectItemMediaToken as ProjectItemMediaToken, type index_d$3_ProjectItemUpdatedEnvelope as ProjectItemUpdatedEnvelope, type index_d$3_QueryProjectItemsRequest as QueryProjectItemsRequest, type index_d$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 index_d$3_Tags as Tags, index_d$3_Type as Type, type URI$1 as URI, type UnsharpMasking$2 as UnsharpMasking, type index_d$3_UpdateProjectItem as UpdateProjectItem, type index_d$3_UpdateProjectItemRequest as UpdateProjectItemRequest, type index_d$3_UpdateProjectItemResponse as UpdateProjectItemResponse, type index_d$3_UpdateProjectItemResponseNonNullableFields as UpdateProjectItemResponseNonNullableFields, type Video$2 as Video, type VideoResolution$2 as VideoResolution, WebhookIdentityType$3 as WebhookIdentityType, type index_d$
|
|
2038
|
+
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 index_d$3_BulkCreateProjectItemResult as BulkCreateProjectItemResult, type index_d$3_BulkCreateProjectItemsOptions as BulkCreateProjectItemsOptions, type index_d$3_BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest, type index_d$3_BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse, type index_d$3_BulkCreateProjectItemsResponseNonNullableFields as BulkCreateProjectItemsResponseNonNullableFields, type index_d$3_BulkDeleteProjectItemResult as BulkDeleteProjectItemResult, type index_d$3_BulkDeleteProjectItemsOptions as BulkDeleteProjectItemsOptions, type index_d$3_BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest, type index_d$3_BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse, type index_d$3_BulkDeleteProjectItemsResponseNonNullableFields as BulkDeleteProjectItemsResponseNonNullableFields, type index_d$3_BulkUpdateProjectItemResult as BulkUpdateProjectItemResult, type index_d$3_BulkUpdateProjectItemsOptions as BulkUpdateProjectItemsOptions, type index_d$3_BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest, type index_d$3_BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse, type index_d$3_BulkUpdateProjectItemsResponseNonNullableFields as BulkUpdateProjectItemsResponseNonNullableFields, type index_d$3_CreateProjectGalleryRequest as CreateProjectGalleryRequest, type index_d$3_CreateProjectGalleryResponse as CreateProjectGalleryResponse, type index_d$3_CreateProjectItemRequest as CreateProjectItemRequest, type index_d$3_CreateProjectItemResponse as CreateProjectItemResponse, type index_d$3_CreateProjectItemResponseNonNullableFields as CreateProjectItemResponseNonNullableFields, type CursorPaging$3 as CursorPaging, type Cursors$3 as Cursors, type index_d$3_DeleteProjectItemRequest as DeleteProjectItemRequest, type index_d$3_DeleteProjectItemResponse as DeleteProjectItemResponse, type index_d$3_DeleteProjectItemResponseNonNullableFields as DeleteProjectItemResponseNonNullableFields, type DeletedProjectRestored$1 as DeletedProjectRestored, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$3_DuplicateProjectItemsOptions as DuplicateProjectItemsOptions, type index_d$3_DuplicateProjectItemsRequest as DuplicateProjectItemsRequest, type index_d$3_DuplicateProjectItemsResponse as DuplicateProjectItemsResponse, type index_d$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 index_d$3_GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequest, type index_d$3_GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponse, type index_d$3_GetProjectItemRequest as GetProjectItemRequest, type index_d$3_GetProjectItemResponse as GetProjectItemResponse, type index_d$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 index_d$3_Item as Item, type ItemMetadata$1 as ItemMetadata, type index_d$3_ItemMetadataOneOf as ItemMetadataOneOf, type index_d$3_ItemNonNullableFields as ItemNonNullableFields, type index_d$3_Link as Link, type index_d$3_ListProjectItemsOptions as ListProjectItemsOptions, type index_d$3_ListProjectItemsRequest as ListProjectItemsRequest, type index_d$3_ListProjectItemsResponse as ListProjectItemsResponse, type index_d$3_ListProjectItemsResponseNonNullableFields as ListProjectItemsResponseNonNullableFields, type index_d$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 index_d$3_ProjectItemCreatedEnvelope as ProjectItemCreatedEnvelope, type index_d$3_ProjectItemDeletedEnvelope as ProjectItemDeletedEnvelope, type index_d$3_ProjectItemMediaToken as ProjectItemMediaToken, type index_d$3_ProjectItemUpdatedEnvelope as ProjectItemUpdatedEnvelope, type index_d$3_QueryProjectItemsRequest as QueryProjectItemsRequest, type index_d$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 index_d$3_Tags as Tags, index_d$3_Type as Type, type URI$1 as URI, type UnsharpMasking$2 as UnsharpMasking, type index_d$3_UpdateProjectItem as UpdateProjectItem, type index_d$3_UpdateProjectItemRequest as UpdateProjectItemRequest, type index_d$3_UpdateProjectItemResponse as UpdateProjectItemResponse, type index_d$3_UpdateProjectItemResponseNonNullableFields as UpdateProjectItemResponseNonNullableFields, type Video$2 as Video, type VideoResolution$2 as VideoResolution, WebhookIdentityType$3 as WebhookIdentityType, type index_d$3__publicOnProjectItemCreatedType as _publicOnProjectItemCreatedType, type index_d$3__publicOnProjectItemDeletedType as _publicOnProjectItemDeletedType, type index_d$3__publicOnProjectItemUpdatedType as _publicOnProjectItemUpdatedType, index_d$3_bulkCreateProjectItems as bulkCreateProjectItems, index_d$3_bulkDeleteProjectItems as bulkDeleteProjectItems, index_d$3_bulkUpdateProjectItems as bulkUpdateProjectItems, index_d$3_createProjectItem as createProjectItem, index_d$3_deleteProjectItem as deleteProjectItem, index_d$3_duplicateProjectItems as duplicateProjectItems, index_d$3_getProjectItem as getProjectItem, index_d$3_listProjectItems as listProjectItems, index_d$3_onProjectItemCreated as onProjectItemCreated, index_d$3_onProjectItemDeleted as onProjectItemDeleted, index_d$3_onProjectItemUpdated as onProjectItemUpdated, onProjectItemCreated$1 as publicOnProjectItemCreated, onProjectItemDeleted$1 as publicOnProjectItemDeleted, onProjectItemUpdated$1 as publicOnProjectItemUpdated, index_d$3_updateProjectItem as updateProjectItem };
|
|
1947
2039
|
}
|
|
1948
2040
|
|
|
1949
2041
|
/** Project is the main entity of ProjectsService */
|
|
@@ -3187,52 +3279,117 @@ interface QueryProjectsWithCollectionInfoOptions {
|
|
|
3187
3279
|
includePageUrl?: boolean | null;
|
|
3188
3280
|
}
|
|
3189
3281
|
|
|
3190
|
-
declare function getProjectPageData$1(httpClient: HttpClient):
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
declare function
|
|
3198
|
-
|
|
3199
|
-
|
|
3282
|
+
declare function getProjectPageData$1(httpClient: HttpClient): GetProjectPageDataSignature;
|
|
3283
|
+
interface GetProjectPageDataSignature {
|
|
3284
|
+
/**
|
|
3285
|
+
* Get project data for a specific project
|
|
3286
|
+
*/
|
|
3287
|
+
(identifiers: GetProjectPageDataIdentifiers): Promise<GetProjectPageDataResponse & GetProjectPageDataResponseNonNullableFields>;
|
|
3288
|
+
}
|
|
3289
|
+
declare function createProject$1(httpClient: HttpClient): CreateProjectSignature;
|
|
3290
|
+
interface CreateProjectSignature {
|
|
3291
|
+
/**
|
|
3292
|
+
* Creates a new Project
|
|
3293
|
+
* @param - Project to be created
|
|
3294
|
+
* @returns The created Project
|
|
3295
|
+
*/
|
|
3296
|
+
(project: Project$1): Promise<Project$1 & ProjectNonNullableFields$1>;
|
|
3297
|
+
}
|
|
3298
|
+
declare function getProject$1(httpClient: HttpClient): GetProjectSignature;
|
|
3299
|
+
interface GetProjectSignature {
|
|
3300
|
+
/**
|
|
3301
|
+
* Get a Project by id
|
|
3302
|
+
* @param - Id of the Project to retrieve
|
|
3303
|
+
* @returns The retrieved Project
|
|
3304
|
+
*/
|
|
3305
|
+
(projectId: string, options?: GetProjectOptions | undefined): Promise<Project$1 & ProjectNonNullableFields$1>;
|
|
3306
|
+
}
|
|
3307
|
+
declare function listProjects$1(httpClient: HttpClient): ListProjectsSignature;
|
|
3308
|
+
interface ListProjectsSignature {
|
|
3309
|
+
/**
|
|
3310
|
+
* List all projects in portfolio by creation date
|
|
3311
|
+
*/
|
|
3312
|
+
(options?: ListProjectsOptions | undefined): Promise<ListProjectsResponse & ListProjectsResponseNonNullableFields>;
|
|
3313
|
+
}
|
|
3314
|
+
declare function updateProject$1(httpClient: HttpClient): UpdateProjectSignature;
|
|
3315
|
+
interface UpdateProjectSignature {
|
|
3316
|
+
/**
|
|
3317
|
+
* Update a Project, supports partial update
|
|
3318
|
+
* Pass the latest `revision` for a successful update
|
|
3319
|
+
* @param - Project ID
|
|
3320
|
+
* @returns The updated Project
|
|
3321
|
+
*/
|
|
3322
|
+
(_id: string | null, project: UpdateProject): Promise<Project$1 & ProjectNonNullableFields$1>;
|
|
3323
|
+
}
|
|
3324
|
+
declare function bulkUpdateProjects$1(httpClient: HttpClient): BulkUpdateProjectsSignature;
|
|
3325
|
+
interface BulkUpdateProjectsSignature {
|
|
3326
|
+
/**
|
|
3327
|
+
* Update Projects in bulk
|
|
3328
|
+
*/
|
|
3329
|
+
(options?: BulkUpdateProjectsOptions | undefined): Promise<BulkUpdateProjectsResponse & BulkUpdateProjectsResponseNonNullableFields>;
|
|
3330
|
+
}
|
|
3331
|
+
declare function deleteProject$1(httpClient: HttpClient): DeleteProjectSignature;
|
|
3332
|
+
interface DeleteProjectSignature {
|
|
3333
|
+
/**
|
|
3334
|
+
* Delete a Project
|
|
3335
|
+
* @param - Id of the Project to delete
|
|
3336
|
+
*/
|
|
3337
|
+
(projectId: string): Promise<DeleteProjectResponse & DeleteProjectResponseNonNullableFields>;
|
|
3338
|
+
}
|
|
3339
|
+
declare function queryProjects$1(httpClient: HttpClient): QueryProjectsSignature;
|
|
3340
|
+
interface QueryProjectsSignature {
|
|
3341
|
+
/**
|
|
3342
|
+
* Query Projects using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
3343
|
+
*/
|
|
3344
|
+
(options?: QueryProjectsOptions | undefined): ProjectsQueryBuilder;
|
|
3345
|
+
}
|
|
3346
|
+
declare function updateProjectOrderInCollection$3(httpClient: HttpClient): UpdateProjectOrderInCollectionSignature$1;
|
|
3347
|
+
interface UpdateProjectOrderInCollectionSignature$1 {
|
|
3348
|
+
/**
|
|
3349
|
+
* Deprecated - please use ProjectsInCollectionsService.UpdateProjectOrderInCollection instead
|
|
3350
|
+
* our Client still use it
|
|
3351
|
+
* @param - The new sort order of the project in the given collection
|
|
3352
|
+
* @deprecated
|
|
3353
|
+
*/
|
|
3354
|
+
(identifiers: UpdateProjectOrderInCollectionIdentifiers$1, sortOrder: number | null): Promise<UpdateProjectOrderInCollectionResponse$1 & UpdateProjectOrderInCollectionResponseNonNullableFields$1>;
|
|
3355
|
+
}
|
|
3356
|
+
declare function queryProjectsWithCollectionInfo$1(httpClient: HttpClient): QueryProjectsWithCollectionInfoSignature;
|
|
3357
|
+
interface QueryProjectsWithCollectionInfoSignature {
|
|
3358
|
+
/**
|
|
3359
|
+
* Deprecated - please use ProjectsInCollectionsService.QueryProjectsInCollections instead
|
|
3360
|
+
* our Client still use it
|
|
3361
|
+
* @param - WQL expression
|
|
3362
|
+
* @deprecated
|
|
3363
|
+
*/
|
|
3364
|
+
(query: QueryV2$1, options?: QueryProjectsWithCollectionInfoOptions | undefined): Promise<QueryProjectWithCollectionInfoResponse & QueryProjectWithCollectionInfoResponseNonNullableFields>;
|
|
3365
|
+
}
|
|
3200
3366
|
declare const onProjectCreated$1: EventDefinition<ProjectCreatedEnvelope, "wix.portfolio.projects.v1.project_created">;
|
|
3201
3367
|
declare const onProjectUpdated$1: EventDefinition<ProjectUpdatedEnvelope, "wix.portfolio.projects.v1.project_updated">;
|
|
3202
3368
|
declare const onProjectDeleted$1: EventDefinition<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
|
|
3203
3369
|
|
|
3204
|
-
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3205
|
-
|
|
3206
3370
|
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3207
3371
|
|
|
3208
|
-
|
|
3209
|
-
declare const
|
|
3210
|
-
|
|
3211
|
-
declare const
|
|
3212
|
-
|
|
3213
|
-
declare const
|
|
3214
|
-
|
|
3215
|
-
declare const
|
|
3216
|
-
|
|
3217
|
-
declare const
|
|
3218
|
-
type _publicBulkUpdateProjectsType = typeof bulkUpdateProjects$1;
|
|
3219
|
-
declare const bulkUpdateProjects: ReturnType<typeof createRESTModule$2<_publicBulkUpdateProjectsType>>;
|
|
3220
|
-
type _publicDeleteProjectType = typeof deleteProject$1;
|
|
3221
|
-
declare const deleteProject: ReturnType<typeof createRESTModule$2<_publicDeleteProjectType>>;
|
|
3222
|
-
type _publicQueryProjectsType = typeof queryProjects$1;
|
|
3223
|
-
declare const queryProjects: ReturnType<typeof createRESTModule$2<_publicQueryProjectsType>>;
|
|
3224
|
-
type _publicUpdateProjectOrderInCollectionType$1 = typeof updateProjectOrderInCollection$3;
|
|
3225
|
-
declare const updateProjectOrderInCollection$2: ReturnType<typeof createRESTModule$2<_publicUpdateProjectOrderInCollectionType>>;
|
|
3226
|
-
type _publicQueryProjectsWithCollectionInfoType = typeof queryProjectsWithCollectionInfo$1;
|
|
3227
|
-
declare const queryProjectsWithCollectionInfo: ReturnType<typeof createRESTModule$2<_publicQueryProjectsWithCollectionInfoType>>;
|
|
3372
|
+
declare const getProjectPageData: BuildRESTFunction<typeof getProjectPageData$1> & typeof getProjectPageData$1;
|
|
3373
|
+
declare const createProject: BuildRESTFunction<typeof createProject$1> & typeof createProject$1;
|
|
3374
|
+
declare const getProject: BuildRESTFunction<typeof getProject$1> & typeof getProject$1;
|
|
3375
|
+
declare const listProjects: BuildRESTFunction<typeof listProjects$1> & typeof listProjects$1;
|
|
3376
|
+
declare const updateProject: BuildRESTFunction<typeof updateProject$1> & typeof updateProject$1;
|
|
3377
|
+
declare const bulkUpdateProjects: BuildRESTFunction<typeof bulkUpdateProjects$1> & typeof bulkUpdateProjects$1;
|
|
3378
|
+
declare const deleteProject: BuildRESTFunction<typeof deleteProject$1> & typeof deleteProject$1;
|
|
3379
|
+
declare const queryProjects: BuildRESTFunction<typeof queryProjects$1> & typeof queryProjects$1;
|
|
3380
|
+
declare const updateProjectOrderInCollection$2: BuildRESTFunction<typeof updateProjectOrderInCollection$3> & typeof updateProjectOrderInCollection$3;
|
|
3381
|
+
declare const queryProjectsWithCollectionInfo: BuildRESTFunction<typeof queryProjectsWithCollectionInfo$1> & typeof queryProjectsWithCollectionInfo$1;
|
|
3228
3382
|
|
|
3229
3383
|
type _publicOnProjectCreatedType = typeof onProjectCreated$1;
|
|
3384
|
+
/** */
|
|
3230
3385
|
declare const onProjectCreated: ReturnType<typeof createEventModule$1<_publicOnProjectCreatedType>>;
|
|
3231
3386
|
|
|
3232
3387
|
type _publicOnProjectUpdatedType = typeof onProjectUpdated$1;
|
|
3388
|
+
/** */
|
|
3233
3389
|
declare const onProjectUpdated: ReturnType<typeof createEventModule$1<_publicOnProjectUpdatedType>>;
|
|
3234
3390
|
|
|
3235
3391
|
type _publicOnProjectDeletedType = typeof onProjectDeleted$1;
|
|
3392
|
+
/** */
|
|
3236
3393
|
declare const onProjectDeleted: ReturnType<typeof createEventModule$1<_publicOnProjectDeletedType>>;
|
|
3237
3394
|
|
|
3238
3395
|
type index_d$2_App = App;
|
|
@@ -3293,18 +3450,9 @@ type index_d$2_UpdateProject = UpdateProject;
|
|
|
3293
3450
|
type index_d$2_UpdateProjectRequest = UpdateProjectRequest;
|
|
3294
3451
|
type index_d$2_UpdateProjectResponse = UpdateProjectResponse;
|
|
3295
3452
|
type index_d$2_UpdateProjectResponseNonNullableFields = UpdateProjectResponseNonNullableFields;
|
|
3296
|
-
type index_d$2__publicBulkUpdateProjectsType = _publicBulkUpdateProjectsType;
|
|
3297
|
-
type index_d$2__publicCreateProjectType = _publicCreateProjectType;
|
|
3298
|
-
type index_d$2__publicDeleteProjectType = _publicDeleteProjectType;
|
|
3299
|
-
type index_d$2__publicGetProjectPageDataType = _publicGetProjectPageDataType;
|
|
3300
|
-
type index_d$2__publicGetProjectType = _publicGetProjectType;
|
|
3301
|
-
type index_d$2__publicListProjectsType = _publicListProjectsType;
|
|
3302
3453
|
type index_d$2__publicOnProjectCreatedType = _publicOnProjectCreatedType;
|
|
3303
3454
|
type index_d$2__publicOnProjectDeletedType = _publicOnProjectDeletedType;
|
|
3304
3455
|
type index_d$2__publicOnProjectUpdatedType = _publicOnProjectUpdatedType;
|
|
3305
|
-
type index_d$2__publicQueryProjectsType = _publicQueryProjectsType;
|
|
3306
|
-
type index_d$2__publicQueryProjectsWithCollectionInfoType = _publicQueryProjectsWithCollectionInfoType;
|
|
3307
|
-
type index_d$2__publicUpdateProjectType = _publicUpdateProjectType;
|
|
3308
3456
|
declare const index_d$2_bulkUpdateProjects: typeof bulkUpdateProjects;
|
|
3309
3457
|
declare const index_d$2_createProject: typeof createProject;
|
|
3310
3458
|
declare const index_d$2_deleteProject: typeof deleteProject;
|
|
@@ -3318,7 +3466,7 @@ declare const index_d$2_queryProjects: typeof queryProjects;
|
|
|
3318
3466
|
declare const index_d$2_queryProjectsWithCollectionInfo: typeof queryProjectsWithCollectionInfo;
|
|
3319
3467
|
declare const index_d$2_updateProject: typeof updateProject;
|
|
3320
3468
|
declare namespace index_d$2 {
|
|
3321
|
-
export { type ActionEvent$2 as ActionEvent, type index_d$2_App as App, type index_d$2_ApplicationError as ApplicationError, type Asset$1 as Asset, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_BulkActionMetadata as BulkActionMetadata, type index_d$2_BulkUpdateProjectsOptions as BulkUpdateProjectsOptions, type index_d$2_BulkUpdateProjectsRequest as BulkUpdateProjectsRequest, type index_d$2_BulkUpdateProjectsResponse as BulkUpdateProjectsResponse, type index_d$2_BulkUpdateProjectsResponseNonNullableFields as BulkUpdateProjectsResponseNonNullableFields, type index_d$2_BulkUpdateProjectsResult as BulkUpdateProjectsResult, type index_d$2_CreateNewPortfolioAppRequest as CreateNewPortfolioAppRequest, type index_d$2_CreateNewPortfolioAppResponse as CreateNewPortfolioAppResponse, type index_d$2_CreateProjectRequest as CreateProjectRequest, type index_d$2_CreateProjectResponse as CreateProjectResponse, type index_d$2_CreateProjectResponseNonNullableFields as CreateProjectResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type Cursors$2 as Cursors, type DeleteContext$1 as DeleteContext, type index_d$2_DeleteProjectRequest as DeleteProjectRequest, type index_d$2_DeleteProjectResponse as DeleteProjectResponse, type index_d$2_DeleteProjectResponseNonNullableFields as DeleteProjectResponseNonNullableFields, DeleteStatus$1 as DeleteStatus, type index_d$2_DeletedProjectRestored as DeletedProjectRestored, type DetailsLink$1 as DetailsLink, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$2_File as File, type index_d$2_GetProjectOptions as GetProjectOptions, type index_d$2_GetProjectPageDataIdentifiers as GetProjectPageDataIdentifiers, type index_d$2_GetProjectPageDataRequest as GetProjectPageDataRequest, type index_d$2_GetProjectPageDataResponse as GetProjectPageDataResponse, type index_d$2_GetProjectPageDataResponseNonNullableFields as GetProjectPageDataResponseNonNullableFields, type index_d$2_GetProjectRequest as GetProjectRequest, type index_d$2_GetProjectResponse as GetProjectResponse, type index_d$2_GetProjectResponseNonNullableFields as GetProjectResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type Image$1 as Image, ImageType$1 as ImageType, type index_d$2_InvalidateCache as InvalidateCache, type index_d$2_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d$2_ItemMetadata as ItemMetadata, type Keyword$1 as Keyword, type index_d$2_ListProjectsOptions as ListProjectsOptions, type index_d$2_ListProjectsRequest as ListProjectsRequest, type index_d$2_ListProjectsResponse as ListProjectsResponse, type index_d$2_ListProjectsResponseNonNullableFields as ListProjectsResponseNonNullableFields, type index_d$2_MaskedProject as MaskedProject, type index_d$2_MenuSettingUpdatedEvent as MenuSettingUpdatedEvent, type MessageEnvelope$2 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type index_d$2_Page as Page, type Paging$1 as Paging, type PagingMetadataV2$2 as PagingMetadataV2, type Point$1 as Point, type Project$1 as Project, type ProjectCoverOneOf$1 as ProjectCoverOneOf, type index_d$2_ProjectCreatedEnvelope as ProjectCreatedEnvelope, type index_d$2_ProjectDeletedEnvelope as ProjectDeletedEnvelope, type ProjectDetail$1 as ProjectDetail, type ProjectDetailValueOneOf$1 as ProjectDetailValueOneOf, type ProjectInCollection$1 as ProjectInCollection, type ProjectNonNullableFields$1 as ProjectNonNullableFields, type index_d$2_ProjectSlug as ProjectSlug, type ProjectSource$1 as ProjectSource, type index_d$2_ProjectUpdatedEnvelope as ProjectUpdatedEnvelope, type index_d$2_ProjectsQueryBuilder as ProjectsQueryBuilder, type index_d$2_ProjectsQueryResult as ProjectsQueryResult, type index_d$2_QueryProjectWithCollectionInfoRequest as QueryProjectWithCollectionInfoRequest, type index_d$2_QueryProjectWithCollectionInfoResponse as QueryProjectWithCollectionInfoResponse, type index_d$2_QueryProjectWithCollectionInfoResponseNonNullableFields as QueryProjectWithCollectionInfoResponseNonNullableFields, type index_d$2_QueryProjectsOptions as QueryProjectsOptions, type index_d$2_QueryProjectsRequest as QueryProjectsRequest, type index_d$2_QueryProjectsResponse as QueryProjectsResponse, type index_d$2_QueryProjectsResponseNonNullableFields as QueryProjectsResponseNonNullableFields, type index_d$2_QueryProjectsWithCollectionInfoOptions as QueryProjectsWithCollectionInfoOptions, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type RestoreInfo$2 as RestoreInfo, type index_d$2_RestoreProjectFromTrashBinRequest as RestoreProjectFromTrashBinRequest, type index_d$2_RestoreProjectFromTrashBinResponse as RestoreProjectFromTrashBinResponse, type SeoSchema$1 as SeoSchema, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type Settings$1 as Settings, type SiteCreated$1 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type index_d$2_SyncProjectWithCollectionMappings as SyncProjectWithCollectionMappings, SyncStatus$2 as SyncStatus, type Tag$1 as Tag, type index_d$2_URI as URI, type UnsharpMasking$1 as UnsharpMasking, type index_d$2_UpdateProject as UpdateProject, type UpdateProjectOrderInCollectionIdentifiers$1 as UpdateProjectOrderInCollectionIdentifiers, type UpdateProjectOrderInCollectionRequest$1 as UpdateProjectOrderInCollectionRequest, type UpdateProjectOrderInCollectionResponse$1 as UpdateProjectOrderInCollectionResponse, type UpdateProjectOrderInCollectionResponseNonNullableFields$1 as UpdateProjectOrderInCollectionResponseNonNullableFields, type index_d$2_UpdateProjectRequest as UpdateProjectRequest, type index_d$2_UpdateProjectResponse as UpdateProjectResponse, type index_d$2_UpdateProjectResponseNonNullableFields as UpdateProjectResponseNonNullableFields, type Video$1 as Video, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, type index_d$
|
|
3469
|
+
export { type ActionEvent$2 as ActionEvent, type index_d$2_App as App, type index_d$2_ApplicationError as ApplicationError, type Asset$1 as Asset, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_BulkActionMetadata as BulkActionMetadata, type index_d$2_BulkUpdateProjectsOptions as BulkUpdateProjectsOptions, type index_d$2_BulkUpdateProjectsRequest as BulkUpdateProjectsRequest, type index_d$2_BulkUpdateProjectsResponse as BulkUpdateProjectsResponse, type index_d$2_BulkUpdateProjectsResponseNonNullableFields as BulkUpdateProjectsResponseNonNullableFields, type index_d$2_BulkUpdateProjectsResult as BulkUpdateProjectsResult, type index_d$2_CreateNewPortfolioAppRequest as CreateNewPortfolioAppRequest, type index_d$2_CreateNewPortfolioAppResponse as CreateNewPortfolioAppResponse, type index_d$2_CreateProjectRequest as CreateProjectRequest, type index_d$2_CreateProjectResponse as CreateProjectResponse, type index_d$2_CreateProjectResponseNonNullableFields as CreateProjectResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type Cursors$2 as Cursors, type DeleteContext$1 as DeleteContext, type index_d$2_DeleteProjectRequest as DeleteProjectRequest, type index_d$2_DeleteProjectResponse as DeleteProjectResponse, type index_d$2_DeleteProjectResponseNonNullableFields as DeleteProjectResponseNonNullableFields, DeleteStatus$1 as DeleteStatus, type index_d$2_DeletedProjectRestored as DeletedProjectRestored, type DetailsLink$1 as DetailsLink, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$2_File as File, type index_d$2_GetProjectOptions as GetProjectOptions, type index_d$2_GetProjectPageDataIdentifiers as GetProjectPageDataIdentifiers, type index_d$2_GetProjectPageDataRequest as GetProjectPageDataRequest, type index_d$2_GetProjectPageDataResponse as GetProjectPageDataResponse, type index_d$2_GetProjectPageDataResponseNonNullableFields as GetProjectPageDataResponseNonNullableFields, type index_d$2_GetProjectRequest as GetProjectRequest, type index_d$2_GetProjectResponse as GetProjectResponse, type index_d$2_GetProjectResponseNonNullableFields as GetProjectResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type Image$1 as Image, ImageType$1 as ImageType, type index_d$2_InvalidateCache as InvalidateCache, type index_d$2_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d$2_ItemMetadata as ItemMetadata, type Keyword$1 as Keyword, type index_d$2_ListProjectsOptions as ListProjectsOptions, type index_d$2_ListProjectsRequest as ListProjectsRequest, type index_d$2_ListProjectsResponse as ListProjectsResponse, type index_d$2_ListProjectsResponseNonNullableFields as ListProjectsResponseNonNullableFields, type index_d$2_MaskedProject as MaskedProject, type index_d$2_MenuSettingUpdatedEvent as MenuSettingUpdatedEvent, type MessageEnvelope$2 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type index_d$2_Page as Page, type Paging$1 as Paging, type PagingMetadataV2$2 as PagingMetadataV2, type Point$1 as Point, type Project$1 as Project, type ProjectCoverOneOf$1 as ProjectCoverOneOf, type index_d$2_ProjectCreatedEnvelope as ProjectCreatedEnvelope, type index_d$2_ProjectDeletedEnvelope as ProjectDeletedEnvelope, type ProjectDetail$1 as ProjectDetail, type ProjectDetailValueOneOf$1 as ProjectDetailValueOneOf, type ProjectInCollection$1 as ProjectInCollection, type ProjectNonNullableFields$1 as ProjectNonNullableFields, type index_d$2_ProjectSlug as ProjectSlug, type ProjectSource$1 as ProjectSource, type index_d$2_ProjectUpdatedEnvelope as ProjectUpdatedEnvelope, type index_d$2_ProjectsQueryBuilder as ProjectsQueryBuilder, type index_d$2_ProjectsQueryResult as ProjectsQueryResult, type index_d$2_QueryProjectWithCollectionInfoRequest as QueryProjectWithCollectionInfoRequest, type index_d$2_QueryProjectWithCollectionInfoResponse as QueryProjectWithCollectionInfoResponse, type index_d$2_QueryProjectWithCollectionInfoResponseNonNullableFields as QueryProjectWithCollectionInfoResponseNonNullableFields, type index_d$2_QueryProjectsOptions as QueryProjectsOptions, type index_d$2_QueryProjectsRequest as QueryProjectsRequest, type index_d$2_QueryProjectsResponse as QueryProjectsResponse, type index_d$2_QueryProjectsResponseNonNullableFields as QueryProjectsResponseNonNullableFields, type index_d$2_QueryProjectsWithCollectionInfoOptions as QueryProjectsWithCollectionInfoOptions, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type RestoreInfo$2 as RestoreInfo, type index_d$2_RestoreProjectFromTrashBinRequest as RestoreProjectFromTrashBinRequest, type index_d$2_RestoreProjectFromTrashBinResponse as RestoreProjectFromTrashBinResponse, type SeoSchema$1 as SeoSchema, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type Settings$1 as Settings, type SiteCreated$1 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type index_d$2_SyncProjectWithCollectionMappings as SyncProjectWithCollectionMappings, SyncStatus$2 as SyncStatus, type Tag$1 as Tag, type index_d$2_URI as URI, type UnsharpMasking$1 as UnsharpMasking, type index_d$2_UpdateProject as UpdateProject, type UpdateProjectOrderInCollectionIdentifiers$1 as UpdateProjectOrderInCollectionIdentifiers, type UpdateProjectOrderInCollectionRequest$1 as UpdateProjectOrderInCollectionRequest, type UpdateProjectOrderInCollectionResponse$1 as UpdateProjectOrderInCollectionResponse, type UpdateProjectOrderInCollectionResponseNonNullableFields$1 as UpdateProjectOrderInCollectionResponseNonNullableFields, type index_d$2_UpdateProjectRequest as UpdateProjectRequest, type index_d$2_UpdateProjectResponse as UpdateProjectResponse, type index_d$2_UpdateProjectResponseNonNullableFields as UpdateProjectResponseNonNullableFields, type Video$1 as Video, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, type index_d$2__publicOnProjectCreatedType as _publicOnProjectCreatedType, type index_d$2__publicOnProjectDeletedType as _publicOnProjectDeletedType, type index_d$2__publicOnProjectUpdatedType as _publicOnProjectUpdatedType, index_d$2_bulkUpdateProjects as bulkUpdateProjects, index_d$2_createProject as createProject, index_d$2_deleteProject as deleteProject, index_d$2_getProject as getProject, index_d$2_getProjectPageData as getProjectPageData, index_d$2_listProjects as listProjects, index_d$2_onProjectCreated as onProjectCreated, index_d$2_onProjectDeleted as onProjectDeleted, index_d$2_onProjectUpdated as onProjectUpdated, onProjectCreated$1 as publicOnProjectCreated, onProjectDeleted$1 as publicOnProjectDeleted, onProjectUpdated$1 as publicOnProjectUpdated, index_d$2_queryProjects as queryProjects, index_d$2_queryProjectsWithCollectionInfo as queryProjectsWithCollectionInfo, index_d$2_updateProject as updateProject, updateProjectOrderInCollection$2 as updateProjectOrderInCollection };
|
|
3322
3470
|
}
|
|
3323
3471
|
|
|
3324
3472
|
interface ProjectInCollection {
|
|
@@ -3953,20 +4101,36 @@ interface UpdateProjectOrderInCollectionIdentifiers {
|
|
|
3953
4101
|
collectionId: string;
|
|
3954
4102
|
}
|
|
3955
4103
|
|
|
3956
|
-
declare function queryProjectInCollections$1(httpClient: HttpClient):
|
|
3957
|
-
|
|
4104
|
+
declare function queryProjectInCollections$1(httpClient: HttpClient): QueryProjectInCollectionsSignature;
|
|
4105
|
+
interface QueryProjectInCollectionsSignature {
|
|
4106
|
+
/**
|
|
4107
|
+
* Query project in collection context using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
4108
|
+
*
|
|
4109
|
+
* Because project can be ordered different in each collection, use this when want to query the projects in a Collection ordered by the order in given collection
|
|
4110
|
+
*
|
|
4111
|
+
* Supported Fields for query and ordering: collectionId, project.id, sortOrder, project.hidden, project.slug
|
|
4112
|
+
*
|
|
4113
|
+
* If you want to Query project by Project properties please use ProjectsService.Query method - link [Query Projects](https://dev.wix.com/docs/rest/business-solutions/portfolio/project-v1/query-projects)
|
|
4114
|
+
*/
|
|
4115
|
+
(options?: QueryProjectInCollectionsOptions | undefined): ProjectInCollectionsQueryBuilder;
|
|
4116
|
+
}
|
|
4117
|
+
declare function updateProjectOrderInCollection$1(httpClient: HttpClient): UpdateProjectOrderInCollectionSignature;
|
|
4118
|
+
interface UpdateProjectOrderInCollectionSignature {
|
|
4119
|
+
/**
|
|
4120
|
+
* Updates Project's order in a given Collection
|
|
4121
|
+
* @param - The new sort order of the project in the given collection
|
|
4122
|
+
*/
|
|
4123
|
+
(identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number | null): Promise<UpdateProjectOrderInCollectionResponse & UpdateProjectOrderInCollectionResponseNonNullableFields>;
|
|
4124
|
+
}
|
|
3958
4125
|
declare const onProjectInCollectionProjectOrderInCollectionUpdatedEvent$1: EventDefinition<ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope, "wix.portfolio.projects.v1.project_in_collection_project_order_in_collection_updated_event">;
|
|
3959
4126
|
|
|
3960
|
-
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3961
|
-
|
|
3962
4127
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3963
4128
|
|
|
3964
|
-
|
|
3965
|
-
declare const
|
|
3966
|
-
type _publicUpdateProjectOrderInCollectionType = typeof updateProjectOrderInCollection$1;
|
|
3967
|
-
declare const updateProjectOrderInCollection: ReturnType<typeof createRESTModule$1<_publicUpdateProjectOrderInCollectionType>>;
|
|
4129
|
+
declare const queryProjectInCollections: BuildRESTFunction<typeof queryProjectInCollections$1> & typeof queryProjectInCollections$1;
|
|
4130
|
+
declare const updateProjectOrderInCollection: BuildRESTFunction<typeof updateProjectOrderInCollection$1> & typeof updateProjectOrderInCollection$1;
|
|
3968
4131
|
|
|
3969
4132
|
type _publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType = typeof onProjectInCollectionProjectOrderInCollectionUpdatedEvent$1;
|
|
4133
|
+
/** */
|
|
3970
4134
|
declare const onProjectInCollectionProjectOrderInCollectionUpdatedEvent: ReturnType<typeof createEventModule<_publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType>>;
|
|
3971
4135
|
|
|
3972
4136
|
type index_d$1_BaseEventMetadata = BaseEventMetadata;
|
|
@@ -4008,13 +4172,11 @@ type index_d$1_UpdateProjectOrderInCollectionResponseNonNullableFields = UpdateP
|
|
|
4008
4172
|
type index_d$1_Video = Video;
|
|
4009
4173
|
type index_d$1_VideoResolution = VideoResolution;
|
|
4010
4174
|
type index_d$1__publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType = _publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType;
|
|
4011
|
-
type index_d$1__publicQueryProjectInCollectionsType = _publicQueryProjectInCollectionsType;
|
|
4012
|
-
type index_d$1__publicUpdateProjectOrderInCollectionType = _publicUpdateProjectOrderInCollectionType;
|
|
4013
4175
|
declare const index_d$1_onProjectInCollectionProjectOrderInCollectionUpdatedEvent: typeof onProjectInCollectionProjectOrderInCollectionUpdatedEvent;
|
|
4014
4176
|
declare const index_d$1_queryProjectInCollections: typeof queryProjectInCollections;
|
|
4015
4177
|
declare const index_d$1_updateProjectOrderInCollection: typeof updateProjectOrderInCollection;
|
|
4016
4178
|
declare namespace index_d$1 {
|
|
4017
|
-
export { type ActionEvent$1 as ActionEvent, type index_d$1_BaseEventMetadata as BaseEventMetadata, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type index_d$1_DetailsLink as DetailsLink, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Image as Image, index_d$1_ImageType as ImageType, type index_d$1_Keyword as Keyword, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Paging as Paging, type PagingMetadataV2$1 as PagingMetadataV2, type index_d$1_Point as Point, type index_d$1_Project as Project, type index_d$1_ProjectCoverOneOf as ProjectCoverOneOf, type index_d$1_ProjectDetail as ProjectDetail, type index_d$1_ProjectDetailValueOneOf as ProjectDetailValueOneOf, type index_d$1_ProjectInCollection as ProjectInCollection, type index_d$1_ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope as ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope, type index_d$1_ProjectInCollectionsQueryBuilder as ProjectInCollectionsQueryBuilder, type index_d$1_ProjectInCollectionsQueryResult as ProjectInCollectionsQueryResult, type index_d$1_ProjectOrderInCollectionUpdatedEvent as ProjectOrderInCollectionUpdatedEvent, type index_d$1_ProjectSource as ProjectSource, type index_d$1_QueryProjectInCollectionsOptions as QueryProjectInCollectionsOptions, type index_d$1_QueryProjectInCollectionsRequest as QueryProjectInCollectionsRequest, type index_d$1_QueryProjectInCollectionsResponse as QueryProjectInCollectionsResponse, type index_d$1_QueryProjectInCollectionsResponseNonNullableFields as QueryProjectInCollectionsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type RestoreInfo$1 as RestoreInfo, type index_d$1_SeoSchema as SeoSchema, type index_d$1_Settings as Settings, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, SyncStatus$1 as SyncStatus, type index_d$1_Tag as Tag, type index_d$1_UnsharpMasking as UnsharpMasking, type index_d$1_UpdateProjectOrderInCollectionIdentifiers as UpdateProjectOrderInCollectionIdentifiers, type index_d$1_UpdateProjectOrderInCollectionRequest as UpdateProjectOrderInCollectionRequest, type index_d$1_UpdateProjectOrderInCollectionResponse as UpdateProjectOrderInCollectionResponse, type index_d$1_UpdateProjectOrderInCollectionResponseNonNullableFields as UpdateProjectOrderInCollectionResponseNonNullableFields, type index_d$1_Video as Video, type index_d$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType as _publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType,
|
|
4179
|
+
export { type ActionEvent$1 as ActionEvent, type index_d$1_BaseEventMetadata as BaseEventMetadata, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type index_d$1_DetailsLink as DetailsLink, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Image as Image, index_d$1_ImageType as ImageType, type index_d$1_Keyword as Keyword, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Paging as Paging, type PagingMetadataV2$1 as PagingMetadataV2, type index_d$1_Point as Point, type index_d$1_Project as Project, type index_d$1_ProjectCoverOneOf as ProjectCoverOneOf, type index_d$1_ProjectDetail as ProjectDetail, type index_d$1_ProjectDetailValueOneOf as ProjectDetailValueOneOf, type index_d$1_ProjectInCollection as ProjectInCollection, type index_d$1_ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope as ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope, type index_d$1_ProjectInCollectionsQueryBuilder as ProjectInCollectionsQueryBuilder, type index_d$1_ProjectInCollectionsQueryResult as ProjectInCollectionsQueryResult, type index_d$1_ProjectOrderInCollectionUpdatedEvent as ProjectOrderInCollectionUpdatedEvent, type index_d$1_ProjectSource as ProjectSource, type index_d$1_QueryProjectInCollectionsOptions as QueryProjectInCollectionsOptions, type index_d$1_QueryProjectInCollectionsRequest as QueryProjectInCollectionsRequest, type index_d$1_QueryProjectInCollectionsResponse as QueryProjectInCollectionsResponse, type index_d$1_QueryProjectInCollectionsResponseNonNullableFields as QueryProjectInCollectionsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type RestoreInfo$1 as RestoreInfo, type index_d$1_SeoSchema as SeoSchema, type index_d$1_Settings as Settings, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, SyncStatus$1 as SyncStatus, type index_d$1_Tag as Tag, type index_d$1_UnsharpMasking as UnsharpMasking, type index_d$1_UpdateProjectOrderInCollectionIdentifiers as UpdateProjectOrderInCollectionIdentifiers, type index_d$1_UpdateProjectOrderInCollectionRequest as UpdateProjectOrderInCollectionRequest, type index_d$1_UpdateProjectOrderInCollectionResponse as UpdateProjectOrderInCollectionResponse, type index_d$1_UpdateProjectOrderInCollectionResponseNonNullableFields as UpdateProjectOrderInCollectionResponseNonNullableFields, type index_d$1_Video as Video, type index_d$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType as _publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType, index_d$1_onProjectInCollectionProjectOrderInCollectionUpdatedEvent as onProjectInCollectionProjectOrderInCollectionUpdatedEvent, onProjectInCollectionProjectOrderInCollectionUpdatedEvent$1 as publicOnProjectInCollectionProjectOrderInCollectionUpdatedEvent, index_d$1_queryProjectInCollections as queryProjectInCollections, index_d$1_updateProjectOrderInCollection as updateProjectOrderInCollection };
|
|
4018
4180
|
}
|
|
4019
4181
|
|
|
4020
4182
|
interface SyncedProject {
|
|
@@ -4072,7 +4234,9 @@ interface SyncProjectPagingEvent {
|
|
|
4072
4234
|
/** Project Revision */
|
|
4073
4235
|
projectSyncRevision?: Date;
|
|
4074
4236
|
}
|
|
4075
|
-
interface
|
|
4237
|
+
interface SyncSiteEvent {
|
|
4238
|
+
/** Portfolio instance id */
|
|
4239
|
+
instanceId?: string;
|
|
4076
4240
|
/** Paging */
|
|
4077
4241
|
paging?: CursorPaging;
|
|
4078
4242
|
}
|
|
@@ -4087,12 +4251,6 @@ interface CursorPaging {
|
|
|
4087
4251
|
*/
|
|
4088
4252
|
cursor?: string | null;
|
|
4089
4253
|
}
|
|
4090
|
-
interface SyncSiteEvent {
|
|
4091
|
-
/** Portfolio instance id */
|
|
4092
|
-
instanceId?: string;
|
|
4093
|
-
/** Paging */
|
|
4094
|
-
paging?: CursorPaging;
|
|
4095
|
-
}
|
|
4096
4254
|
interface SyncProjectRequest {
|
|
4097
4255
|
/** Provider appDefId */
|
|
4098
4256
|
appDefId: string;
|
|
@@ -4566,6 +4724,10 @@ interface StudioAssigned {
|
|
|
4566
4724
|
/** Unassigned Studio editor */
|
|
4567
4725
|
interface StudioUnassigned {
|
|
4568
4726
|
}
|
|
4727
|
+
interface SyncAllSitesEvent {
|
|
4728
|
+
/** Paging */
|
|
4729
|
+
paging?: CursorPaging;
|
|
4730
|
+
}
|
|
4569
4731
|
interface MessageEnvelope {
|
|
4570
4732
|
/** App instance ID. */
|
|
4571
4733
|
instanceId?: string | null;
|
|
@@ -4653,24 +4815,49 @@ interface StopSyncIdentifiers {
|
|
|
4653
4815
|
externalId: string;
|
|
4654
4816
|
}
|
|
4655
4817
|
|
|
4656
|
-
declare function getProjects$1(httpClient: HttpClient):
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4818
|
+
declare function getProjects$1(httpClient: HttpClient): GetProjectsSignature;
|
|
4819
|
+
interface GetProjectsSignature {
|
|
4820
|
+
/**
|
|
4821
|
+
* Get projects per app
|
|
4822
|
+
* @param - Provider appDefId
|
|
4823
|
+
*/
|
|
4824
|
+
(appDefId: string, options?: GetProjectsOptions | undefined): Promise<GetProjectsResponse & GetProjectsResponseNonNullableFields>;
|
|
4825
|
+
}
|
|
4826
|
+
declare function syncProject$1(httpClient: HttpClient): SyncProjectSignature;
|
|
4827
|
+
interface SyncProjectSignature {
|
|
4828
|
+
/**
|
|
4829
|
+
* Async Sync project
|
|
4830
|
+
*/
|
|
4831
|
+
(identifiers: SyncProjectIdentifiers): Promise<SyncProjectResponse & SyncProjectResponseNonNullableFields>;
|
|
4832
|
+
}
|
|
4833
|
+
declare function getSyncStatus$1(httpClient: HttpClient): GetSyncStatusSignature;
|
|
4834
|
+
interface GetSyncStatusSignature {
|
|
4835
|
+
/**
|
|
4836
|
+
* Get sync status (when was last synced and etc..)
|
|
4837
|
+
*/
|
|
4838
|
+
(identifiers: GetSyncStatusIdentifiers): Promise<GetSyncStatusResponse & GetSyncStatusResponseNonNullableFields>;
|
|
4839
|
+
}
|
|
4840
|
+
declare function stopSync$1(httpClient: HttpClient): StopSyncSignature;
|
|
4841
|
+
interface StopSyncSignature {
|
|
4842
|
+
/**
|
|
4843
|
+
* Stop sync project
|
|
4844
|
+
*/
|
|
4845
|
+
(identifiers: StopSyncIdentifiers): Promise<StopSyncResponse & StopSyncResponseNonNullableFields>;
|
|
4846
|
+
}
|
|
4847
|
+
declare function getLoginRedirectableUrl$1(httpClient: HttpClient): GetLoginRedirectableUrlSignature;
|
|
4848
|
+
interface GetLoginRedirectableUrlSignature {
|
|
4849
|
+
/**
|
|
4850
|
+
* Get login redirectable url
|
|
4851
|
+
* @param - Provider appDefId
|
|
4852
|
+
*/
|
|
4853
|
+
(appDefId: string): Promise<GetLoginRedirectableUrlResponse & GetLoginRedirectableUrlResponseNonNullableFields>;
|
|
4854
|
+
}
|
|
4663
4855
|
|
|
4664
|
-
|
|
4665
|
-
declare const
|
|
4666
|
-
|
|
4667
|
-
declare const
|
|
4668
|
-
|
|
4669
|
-
declare const getSyncStatus: ReturnType<typeof createRESTModule<_publicGetSyncStatusType>>;
|
|
4670
|
-
type _publicStopSyncType = typeof stopSync$1;
|
|
4671
|
-
declare const stopSync: ReturnType<typeof createRESTModule<_publicStopSyncType>>;
|
|
4672
|
-
type _publicGetLoginRedirectableUrlType = typeof getLoginRedirectableUrl$1;
|
|
4673
|
-
declare const getLoginRedirectableUrl: ReturnType<typeof createRESTModule<_publicGetLoginRedirectableUrlType>>;
|
|
4856
|
+
declare const getProjects: BuildRESTFunction<typeof getProjects$1> & typeof getProjects$1;
|
|
4857
|
+
declare const syncProject: BuildRESTFunction<typeof syncProject$1> & typeof syncProject$1;
|
|
4858
|
+
declare const getSyncStatus: BuildRESTFunction<typeof getSyncStatus$1> & typeof getSyncStatus$1;
|
|
4859
|
+
declare const stopSync: BuildRESTFunction<typeof stopSync$1> & typeof stopSync$1;
|
|
4860
|
+
declare const getLoginRedirectableUrl: BuildRESTFunction<typeof getLoginRedirectableUrl$1> & typeof getLoginRedirectableUrl$1;
|
|
4674
4861
|
|
|
4675
4862
|
type index_d_ActionEvent = ActionEvent;
|
|
4676
4863
|
type index_d_Asset = Asset;
|
|
@@ -4748,18 +4935,13 @@ type index_d_SyncedProject = SyncedProject;
|
|
|
4748
4935
|
type index_d_SyncingProjectEvent = SyncingProjectEvent;
|
|
4749
4936
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
4750
4937
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
4751
|
-
type index_d__publicGetLoginRedirectableUrlType = _publicGetLoginRedirectableUrlType;
|
|
4752
|
-
type index_d__publicGetProjectsType = _publicGetProjectsType;
|
|
4753
|
-
type index_d__publicGetSyncStatusType = _publicGetSyncStatusType;
|
|
4754
|
-
type index_d__publicStopSyncType = _publicStopSyncType;
|
|
4755
|
-
type index_d__publicSyncProjectType = _publicSyncProjectType;
|
|
4756
4938
|
declare const index_d_getLoginRedirectableUrl: typeof getLoginRedirectableUrl;
|
|
4757
4939
|
declare const index_d_getProjects: typeof getProjects;
|
|
4758
4940
|
declare const index_d_getSyncStatus: typeof getSyncStatus;
|
|
4759
4941
|
declare const index_d_stopSync: typeof stopSync;
|
|
4760
4942
|
declare const index_d_syncProject: typeof syncProject;
|
|
4761
4943
|
declare namespace index_d {
|
|
4762
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_Asset as Asset, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteContext as DeleteContext, index_d_DeleteStatus as DeleteStatus, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_GetLoginRedirectableUrlRequest as GetLoginRedirectableUrlRequest, type index_d_GetLoginRedirectableUrlResponse as GetLoginRedirectableUrlResponse, type index_d_GetLoginRedirectableUrlResponseNonNullableFields as GetLoginRedirectableUrlResponseNonNullableFields, type index_d_GetProjectsOptions as GetProjectsOptions, type index_d_GetProjectsRequest as GetProjectsRequest, type index_d_GetProjectsResponse as GetProjectsResponse, type index_d_GetProjectsResponseNonNullableFields as GetProjectsResponseNonNullableFields, type index_d_GetSyncStatusIdentifiers as GetSyncStatusIdentifiers, type index_d_GetSyncStatusRequest as GetSyncStatusRequest, type index_d_GetSyncStatusResponse as GetSyncStatusResponse, type index_d_GetSyncStatusResponseNonNullableFields as GetSyncStatusResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemCreatedMediaCallbackRequest as ItemCreatedMediaCallbackRequest, type index_d_ItemCreatedMediaCallbackResponse as ItemCreatedMediaCallbackResponse, type index_d_MediaFileOutput as MediaFileOutput, type index_d_MediaImageOutput as MediaImageOutput, type index_d_MediaVideoOutput as MediaVideoOutput, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_ProjectCoverImageCreatedMediaCallbackRequest as ProjectCoverImageCreatedMediaCallbackRequest, type index_d_ProjectCoverImageCreatedMediaCallbackResponse as ProjectCoverImageCreatedMediaCallbackResponse, type index_d_RestoreInfo as RestoreInfo, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_State as State, type index_d_StopSyncIdentifiers as StopSyncIdentifiers, type index_d_StopSyncRequest as StopSyncRequest, type index_d_StopSyncResponse as StopSyncResponse, type index_d_StopSyncResponseNonNullableFields as StopSyncResponseNonNullableFields, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, type index_d_SyncAllSitesEvent as SyncAllSitesEvent, type index_d_SyncProjectIdentifiers as SyncProjectIdentifiers, type index_d_SyncProjectPagingEvent as SyncProjectPagingEvent, type index_d_SyncProjectRequest as SyncProjectRequest, type index_d_SyncProjectResponse as SyncProjectResponse, type index_d_SyncProjectResponseNonNullableFields as SyncProjectResponseNonNullableFields, type index_d_SyncSiteEvent as SyncSiteEvent, index_d_SyncStatus as SyncStatus, type index_d_SyncedProject as SyncedProject, type index_d_SyncingProjectEvent as SyncingProjectEvent, index_d_WebhookIdentityType as WebhookIdentityType,
|
|
4944
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_Asset as Asset, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteContext as DeleteContext, index_d_DeleteStatus as DeleteStatus, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_GetLoginRedirectableUrlRequest as GetLoginRedirectableUrlRequest, type index_d_GetLoginRedirectableUrlResponse as GetLoginRedirectableUrlResponse, type index_d_GetLoginRedirectableUrlResponseNonNullableFields as GetLoginRedirectableUrlResponseNonNullableFields, type index_d_GetProjectsOptions as GetProjectsOptions, type index_d_GetProjectsRequest as GetProjectsRequest, type index_d_GetProjectsResponse as GetProjectsResponse, type index_d_GetProjectsResponseNonNullableFields as GetProjectsResponseNonNullableFields, type index_d_GetSyncStatusIdentifiers as GetSyncStatusIdentifiers, type index_d_GetSyncStatusRequest as GetSyncStatusRequest, type index_d_GetSyncStatusResponse as GetSyncStatusResponse, type index_d_GetSyncStatusResponseNonNullableFields as GetSyncStatusResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemCreatedMediaCallbackRequest as ItemCreatedMediaCallbackRequest, type index_d_ItemCreatedMediaCallbackResponse as ItemCreatedMediaCallbackResponse, type index_d_MediaFileOutput as MediaFileOutput, type index_d_MediaImageOutput as MediaImageOutput, type index_d_MediaVideoOutput as MediaVideoOutput, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_ProjectCoverImageCreatedMediaCallbackRequest as ProjectCoverImageCreatedMediaCallbackRequest, type index_d_ProjectCoverImageCreatedMediaCallbackResponse as ProjectCoverImageCreatedMediaCallbackResponse, type index_d_RestoreInfo as RestoreInfo, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_State as State, type index_d_StopSyncIdentifiers as StopSyncIdentifiers, type index_d_StopSyncRequest as StopSyncRequest, type index_d_StopSyncResponse as StopSyncResponse, type index_d_StopSyncResponseNonNullableFields as StopSyncResponseNonNullableFields, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, type index_d_SyncAllSitesEvent as SyncAllSitesEvent, type index_d_SyncProjectIdentifiers as SyncProjectIdentifiers, type index_d_SyncProjectPagingEvent as SyncProjectPagingEvent, type index_d_SyncProjectRequest as SyncProjectRequest, type index_d_SyncProjectResponse as SyncProjectResponse, type index_d_SyncProjectResponseNonNullableFields as SyncProjectResponseNonNullableFields, type index_d_SyncSiteEvent as SyncSiteEvent, index_d_SyncStatus as SyncStatus, type index_d_SyncedProject as SyncedProject, type index_d_SyncingProjectEvent as SyncingProjectEvent, index_d_WebhookIdentityType as WebhookIdentityType, index_d_getLoginRedirectableUrl as getLoginRedirectableUrl, index_d_getProjects as getProjects, index_d_getSyncStatus as getSyncStatus, index_d_stopSync as stopSync, index_d_syncProject as syncProject };
|
|
4763
4945
|
}
|
|
4764
4946
|
|
|
4765
4947
|
export { index_d$5 as collections, index_d$4 as portfolioSettings, index_d$1 as projectInCollections, index_d$3 as projectItems, index_d$2 as projects, index_d as syncedProject };
|