@wix/portfolio 1.0.81 → 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/build/cjs/index.d.ts +7 -6
- package/build/cjs/index.js +12 -6
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.ts +7 -6
- package/build/es/index.js +7 -6
- package/build/es/index.js.map +1 -1
- package/package.json +10 -9
- package/type-bundles/context.bundle.d.ts +436 -104
- package/type-bundles/index.bundle.d.ts +436 -104
|
@@ -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,63 +718,80 @@ 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
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
692
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
693
|
-
url: string;
|
|
694
|
-
data?: Data;
|
|
695
|
-
params?: URLSearchParams;
|
|
696
|
-
} & APIMetadata;
|
|
697
|
-
type APIMetadata = {
|
|
698
|
-
methodFqn?: string;
|
|
699
|
-
entityFqdn?: string;
|
|
700
|
-
packageName?: string;
|
|
701
|
-
};
|
|
702
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
703
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
704
|
-
__type: 'event-definition';
|
|
705
|
-
type: Type;
|
|
706
|
-
isDomainEvent?: boolean;
|
|
707
|
-
transformations?: (envelope: unknown) => Payload;
|
|
708
|
-
__payload: Payload;
|
|
709
|
-
};
|
|
710
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
711
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
712
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
713
|
-
|
|
714
|
-
declare global {
|
|
715
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
716
|
-
interface SymbolConstructor {
|
|
717
|
-
readonly observable: symbol;
|
|
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>;
|
|
719
738
|
}
|
|
720
|
-
|
|
721
|
-
|
|
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;
|
|
770
|
+
}
|
|
771
|
+
declare const onCollectionCreated$1: EventDefinition<CollectionCreatedEnvelope, "wix.portfolio.collections.v1.collection_created">;
|
|
772
|
+
declare const onCollectionUpdated$1: EventDefinition<CollectionUpdatedEnvelope, "wix.portfolio.collections.v1.collection_updated">;
|
|
773
|
+
declare const onCollectionDeleted$1: EventDefinition<CollectionDeletedEnvelope, "wix.portfolio.collections.v1.collection_deleted">;
|
|
722
774
|
|
|
723
775
|
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
724
776
|
|
|
725
|
-
declare const createCollection:
|
|
726
|
-
declare const getCollection:
|
|
727
|
-
declare const listCollections:
|
|
728
|
-
declare const updateCollection:
|
|
729
|
-
declare const deleteCollection:
|
|
730
|
-
declare const queryCollections:
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
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;
|
|
783
|
+
|
|
784
|
+
type _publicOnCollectionCreatedType = typeof onCollectionCreated$1;
|
|
785
|
+
/** */
|
|
786
|
+
declare const onCollectionCreated: ReturnType<typeof createEventModule$3<_publicOnCollectionCreatedType>>;
|
|
787
|
+
|
|
788
|
+
type _publicOnCollectionUpdatedType = typeof onCollectionUpdated$1;
|
|
789
|
+
/** */
|
|
790
|
+
declare const onCollectionUpdated: ReturnType<typeof createEventModule$3<_publicOnCollectionUpdatedType>>;
|
|
791
|
+
|
|
792
|
+
type _publicOnCollectionDeletedType = typeof onCollectionDeleted$1;
|
|
793
|
+
/** */
|
|
794
|
+
declare const onCollectionDeleted: ReturnType<typeof createEventModule$3<_publicOnCollectionDeletedType>>;
|
|
734
795
|
|
|
735
796
|
type context$5_AdminRemoveMenuItemsResponse = AdminRemoveMenuItemsResponse;
|
|
736
797
|
type context$5_Collection = Collection;
|
|
@@ -762,6 +823,9 @@ type context$5_UpdateCollection = UpdateCollection;
|
|
|
762
823
|
type context$5_UpdateCollectionRequest = UpdateCollectionRequest;
|
|
763
824
|
type context$5_UpdateCollectionResponse = UpdateCollectionResponse;
|
|
764
825
|
type context$5_UpdateCollectionResponseNonNullableFields = UpdateCollectionResponseNonNullableFields;
|
|
826
|
+
type context$5__publicOnCollectionCreatedType = _publicOnCollectionCreatedType;
|
|
827
|
+
type context$5__publicOnCollectionDeletedType = _publicOnCollectionDeletedType;
|
|
828
|
+
type context$5__publicOnCollectionUpdatedType = _publicOnCollectionUpdatedType;
|
|
765
829
|
declare const context$5_createCollection: typeof createCollection;
|
|
766
830
|
declare const context$5_deleteCollection: typeof deleteCollection;
|
|
767
831
|
declare const context$5_getCollection: typeof getCollection;
|
|
@@ -772,7 +836,7 @@ declare const context$5_onCollectionUpdated: typeof onCollectionUpdated;
|
|
|
772
836
|
declare const context$5_queryCollections: typeof queryCollections;
|
|
773
837
|
declare const context$5_updateCollection: typeof updateCollection;
|
|
774
838
|
declare namespace context$5 {
|
|
775
|
-
export { type ActionEvent$5 as ActionEvent, type context$5_AdminRemoveMenuItemsResponse as AdminRemoveMenuItemsResponse, type App$2 as App, type BaseEventMetadata$3 as BaseEventMetadata, type context$5_Collection as Collection, type context$5_CollectionCreatedEnvelope as CollectionCreatedEnvelope, type context$5_CollectionDeletedEnvelope as CollectionDeletedEnvelope, type context$5_CollectionNonNullableFields as CollectionNonNullableFields, type context$5_CollectionUpdatedEnvelope as CollectionUpdatedEnvelope, type context$5_CollectionsQueryBuilder as CollectionsQueryBuilder, type context$5_CollectionsQueryResult as CollectionsQueryResult, type context$5_CreateCollectionRequest as CreateCollectionRequest, type context$5_CreateCollectionResponse as CreateCollectionResponse, type context$5_CreateCollectionResponseNonNullableFields as CreateCollectionResponseNonNullableFields, type CursorPaging$4 as CursorPaging, type Cursors$4 as Cursors, type context$5_DeleteCollectionRequest as DeleteCollectionRequest, type context$5_DeleteCollectionResponse as DeleteCollectionResponse, type context$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 context$5_GetCollectionOptions as GetCollectionOptions, type context$5_GetCollectionRequest as GetCollectionRequest, type context$5_GetCollectionResponse as GetCollectionResponse, type context$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 context$5_ListCollectionsOptions as ListCollectionsOptions, type context$5_ListCollectionsRequest as ListCollectionsRequest, type context$5_ListCollectionsResponse as ListCollectionsResponse, type context$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 context$5_QueryCollectionsOptions as QueryCollectionsOptions, type context$5_QueryCollectionsRequest as QueryCollectionsRequest, type context$5_QueryCollectionsResponse as QueryCollectionsResponse, type context$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 context$5_UpdateCollection as UpdateCollection, type context$5_UpdateCollectionRequest as UpdateCollectionRequest, type context$5_UpdateCollectionResponse as UpdateCollectionResponse, type context$5_UpdateCollectionResponseNonNullableFields as UpdateCollectionResponseNonNullableFields, WebhookIdentityType$5 as WebhookIdentityType, context$5_createCollection as createCollection, context$5_deleteCollection as deleteCollection, context$5_getCollection as getCollection, context$5_listCollections as listCollections, context$5_onCollectionCreated as onCollectionCreated, context$5_onCollectionDeleted as onCollectionDeleted, context$5_onCollectionUpdated as onCollectionUpdated, context$5_queryCollections as queryCollections, context$5_updateCollection as updateCollection };
|
|
839
|
+
export { type ActionEvent$5 as ActionEvent, type context$5_AdminRemoveMenuItemsResponse as AdminRemoveMenuItemsResponse, type App$2 as App, type BaseEventMetadata$3 as BaseEventMetadata, type context$5_Collection as Collection, type context$5_CollectionCreatedEnvelope as CollectionCreatedEnvelope, type context$5_CollectionDeletedEnvelope as CollectionDeletedEnvelope, type context$5_CollectionNonNullableFields as CollectionNonNullableFields, type context$5_CollectionUpdatedEnvelope as CollectionUpdatedEnvelope, type context$5_CollectionsQueryBuilder as CollectionsQueryBuilder, type context$5_CollectionsQueryResult as CollectionsQueryResult, type context$5_CreateCollectionRequest as CreateCollectionRequest, type context$5_CreateCollectionResponse as CreateCollectionResponse, type context$5_CreateCollectionResponseNonNullableFields as CreateCollectionResponseNonNullableFields, type CursorPaging$4 as CursorPaging, type Cursors$4 as Cursors, type context$5_DeleteCollectionRequest as DeleteCollectionRequest, type context$5_DeleteCollectionResponse as DeleteCollectionResponse, type context$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 context$5_GetCollectionOptions as GetCollectionOptions, type context$5_GetCollectionRequest as GetCollectionRequest, type context$5_GetCollectionResponse as GetCollectionResponse, type context$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 context$5_ListCollectionsOptions as ListCollectionsOptions, type context$5_ListCollectionsRequest as ListCollectionsRequest, type context$5_ListCollectionsResponse as ListCollectionsResponse, type context$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 context$5_QueryCollectionsOptions as QueryCollectionsOptions, type context$5_QueryCollectionsRequest as QueryCollectionsRequest, type context$5_QueryCollectionsResponse as QueryCollectionsResponse, type context$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 context$5_UpdateCollection as UpdateCollection, type context$5_UpdateCollectionRequest as UpdateCollectionRequest, type context$5_UpdateCollectionResponse as UpdateCollectionResponse, type context$5_UpdateCollectionResponseNonNullableFields as UpdateCollectionResponseNonNullableFields, WebhookIdentityType$5 as WebhookIdentityType, type context$5__publicOnCollectionCreatedType as _publicOnCollectionCreatedType, type context$5__publicOnCollectionDeletedType as _publicOnCollectionDeletedType, type context$5__publicOnCollectionUpdatedType as _publicOnCollectionUpdatedType, context$5_createCollection as createCollection, context$5_deleteCollection as deleteCollection, context$5_getCollection as getCollection, context$5_listCollections as listCollections, context$5_onCollectionCreated as onCollectionCreated, context$5_onCollectionDeleted as onCollectionDeleted, context$5_onCollectionUpdated as onCollectionUpdated, onCollectionCreated$1 as publicOnCollectionCreated, onCollectionDeleted$1 as publicOnCollectionDeleted, onCollectionUpdated$1 as publicOnCollectionUpdated, context$5_queryCollections as queryCollections, context$5_updateCollection as updateCollection };
|
|
776
840
|
}
|
|
777
841
|
|
|
778
842
|
interface PortfolioSettings {
|
|
@@ -970,11 +1034,34 @@ interface UpdatePortfolioSettingsResponseNonNullableFields {
|
|
|
970
1034
|
updatedPortfolioSettings?: PortfolioSettingsNonNullableFields;
|
|
971
1035
|
}
|
|
972
1036
|
|
|
973
|
-
declare function
|
|
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
|
+
}
|
|
974
1061
|
|
|
975
|
-
declare const createPortfolioSettings:
|
|
976
|
-
declare const getPortfolioSettings:
|
|
977
|
-
declare const updatePortfolioSettings:
|
|
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;
|
|
978
1065
|
|
|
979
1066
|
type context$4_AddItemDirection = AddItemDirection;
|
|
980
1067
|
declare const context$4_AddItemDirection: typeof AddItemDirection;
|
|
@@ -1778,22 +1865,105 @@ interface DuplicateProjectItemsOptions {
|
|
|
1778
1865
|
targetProjectId: string;
|
|
1779
1866
|
}
|
|
1780
1867
|
|
|
1781
|
-
declare function
|
|
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
|
+
}
|
|
1940
|
+
declare const onProjectItemCreated$1: EventDefinition<ProjectItemCreatedEnvelope, "wix.portfolio.project_items.v1.project_item_created">;
|
|
1941
|
+
declare const onProjectItemUpdated$1: EventDefinition<ProjectItemUpdatedEnvelope, "wix.portfolio.project_items.v1.project_item_updated">;
|
|
1942
|
+
declare const onProjectItemDeleted$1: EventDefinition<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;
|
|
1782
1943
|
|
|
1783
1944
|
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1784
1945
|
|
|
1785
|
-
declare const createProjectItem:
|
|
1786
|
-
declare const bulkCreateProjectItems:
|
|
1787
|
-
declare const getProjectItem:
|
|
1788
|
-
declare const listProjectItems:
|
|
1789
|
-
declare const updateProjectItem:
|
|
1790
|
-
declare const bulkUpdateProjectItems:
|
|
1791
|
-
declare const deleteProjectItem:
|
|
1792
|
-
declare const bulkDeleteProjectItems:
|
|
1793
|
-
declare const duplicateProjectItems:
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
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;
|
|
1955
|
+
|
|
1956
|
+
type _publicOnProjectItemCreatedType = typeof onProjectItemCreated$1;
|
|
1957
|
+
/** */
|
|
1958
|
+
declare const onProjectItemCreated: ReturnType<typeof createEventModule$2<_publicOnProjectItemCreatedType>>;
|
|
1959
|
+
|
|
1960
|
+
type _publicOnProjectItemUpdatedType = typeof onProjectItemUpdated$1;
|
|
1961
|
+
/** */
|
|
1962
|
+
declare const onProjectItemUpdated: ReturnType<typeof createEventModule$2<_publicOnProjectItemUpdatedType>>;
|
|
1963
|
+
|
|
1964
|
+
type _publicOnProjectItemDeletedType = typeof onProjectItemDeleted$1;
|
|
1965
|
+
/** */
|
|
1966
|
+
declare const onProjectItemDeleted: ReturnType<typeof createEventModule$2<_publicOnProjectItemDeletedType>>;
|
|
1797
1967
|
|
|
1798
1968
|
type context$3_BulkCreateProjectItemResult = BulkCreateProjectItemResult;
|
|
1799
1969
|
type context$3_BulkCreateProjectItemsOptions = BulkCreateProjectItemsOptions;
|
|
@@ -1849,6 +2019,9 @@ type context$3_UpdateProjectItem = UpdateProjectItem;
|
|
|
1849
2019
|
type context$3_UpdateProjectItemRequest = UpdateProjectItemRequest;
|
|
1850
2020
|
type context$3_UpdateProjectItemResponse = UpdateProjectItemResponse;
|
|
1851
2021
|
type context$3_UpdateProjectItemResponseNonNullableFields = UpdateProjectItemResponseNonNullableFields;
|
|
2022
|
+
type context$3__publicOnProjectItemCreatedType = _publicOnProjectItemCreatedType;
|
|
2023
|
+
type context$3__publicOnProjectItemDeletedType = _publicOnProjectItemDeletedType;
|
|
2024
|
+
type context$3__publicOnProjectItemUpdatedType = _publicOnProjectItemUpdatedType;
|
|
1852
2025
|
declare const context$3_bulkCreateProjectItems: typeof bulkCreateProjectItems;
|
|
1853
2026
|
declare const context$3_bulkDeleteProjectItems: typeof bulkDeleteProjectItems;
|
|
1854
2027
|
declare const context$3_bulkUpdateProjectItems: typeof bulkUpdateProjectItems;
|
|
@@ -1862,7 +2035,7 @@ declare const context$3_onProjectItemDeleted: typeof onProjectItemDeleted;
|
|
|
1862
2035
|
declare const context$3_onProjectItemUpdated: typeof onProjectItemUpdated;
|
|
1863
2036
|
declare const context$3_updateProjectItem: typeof updateProjectItem;
|
|
1864
2037
|
declare namespace context$3 {
|
|
1865
|
-
export { type ActionEvent$3 as ActionEvent, type App$1 as App, type ApplicationError$1 as ApplicationError, type BaseEventMetadata$2 as BaseEventMetadata, type BulkActionMetadata$1 as BulkActionMetadata, type context$3_BulkCreateProjectItemResult as BulkCreateProjectItemResult, type context$3_BulkCreateProjectItemsOptions as BulkCreateProjectItemsOptions, type context$3_BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest, type context$3_BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse, type context$3_BulkCreateProjectItemsResponseNonNullableFields as BulkCreateProjectItemsResponseNonNullableFields, type context$3_BulkDeleteProjectItemResult as BulkDeleteProjectItemResult, type context$3_BulkDeleteProjectItemsOptions as BulkDeleteProjectItemsOptions, type context$3_BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest, type context$3_BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse, type context$3_BulkDeleteProjectItemsResponseNonNullableFields as BulkDeleteProjectItemsResponseNonNullableFields, type context$3_BulkUpdateProjectItemResult as BulkUpdateProjectItemResult, type context$3_BulkUpdateProjectItemsOptions as BulkUpdateProjectItemsOptions, type context$3_BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest, type context$3_BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse, type context$3_BulkUpdateProjectItemsResponseNonNullableFields as BulkUpdateProjectItemsResponseNonNullableFields, type context$3_CreateProjectGalleryRequest as CreateProjectGalleryRequest, type context$3_CreateProjectGalleryResponse as CreateProjectGalleryResponse, type context$3_CreateProjectItemRequest as CreateProjectItemRequest, type context$3_CreateProjectItemResponse as CreateProjectItemResponse, type context$3_CreateProjectItemResponseNonNullableFields as CreateProjectItemResponseNonNullableFields, type CursorPaging$3 as CursorPaging, type Cursors$3 as Cursors, type context$3_DeleteProjectItemRequest as DeleteProjectItemRequest, type context$3_DeleteProjectItemResponse as DeleteProjectItemResponse, type context$3_DeleteProjectItemResponseNonNullableFields as DeleteProjectItemResponseNonNullableFields, type DeletedProjectRestored$1 as DeletedProjectRestored, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type context$3_DuplicateProjectItemsOptions as DuplicateProjectItemsOptions, type context$3_DuplicateProjectItemsRequest as DuplicateProjectItemsRequest, type context$3_DuplicateProjectItemsResponse as DuplicateProjectItemsResponse, type context$3_DuplicateProjectItemsResponseNonNullableFields as DuplicateProjectItemsResponseNonNullableFields, type Empty$2 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type File$1 as File, type context$3_GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequest, type context$3_GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponse, type context$3_GetProjectItemRequest as GetProjectItemRequest, type context$3_GetProjectItemResponse as GetProjectItemResponse, type context$3_GetProjectItemResponseNonNullableFields as GetProjectItemResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type Image$2 as Image, ImageType$2 as ImageType, type InvalidateCache$1 as InvalidateCache, type InvalidateCacheGetByOneOf$1 as InvalidateCacheGetByOneOf, type context$3_Item as Item, type ItemMetadata$1 as ItemMetadata, type context$3_ItemMetadataOneOf as ItemMetadataOneOf, type context$3_ItemNonNullableFields as ItemNonNullableFields, type context$3_Link as Link, type context$3_ListProjectItemsOptions as ListProjectItemsOptions, type context$3_ListProjectItemsRequest as ListProjectItemsRequest, type context$3_ListProjectItemsResponse as ListProjectItemsResponse, type context$3_ListProjectItemsResponseNonNullableFields as ListProjectItemsResponseNonNullableFields, type context$3_MaskedItem as MaskedItem, type MessageEnvelope$3 as MessageEnvelope, type Page$1 as Page, type Paging$2 as Paging, type PagingMetadataV2$3 as PagingMetadataV2, type Point$2 as Point, type context$3_ProjectItemCreatedEnvelope as ProjectItemCreatedEnvelope, type context$3_ProjectItemDeletedEnvelope as ProjectItemDeletedEnvelope, type context$3_ProjectItemMediaToken as ProjectItemMediaToken, type context$3_ProjectItemUpdatedEnvelope as ProjectItemUpdatedEnvelope, type context$3_QueryProjectItemsRequest as QueryProjectItemsRequest, type context$3_QueryProjectItemsResponse as QueryProjectItemsResponse, type QueryV2$2 as QueryV2, type QueryV2PagingMethodOneOf$2 as QueryV2PagingMethodOneOf, type RestoreInfo$3 as RestoreInfo, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type context$3_Tags as Tags, context$3_Type as Type, type URI$1 as URI, type UnsharpMasking$2 as UnsharpMasking, type context$3_UpdateProjectItem as UpdateProjectItem, type context$3_UpdateProjectItemRequest as UpdateProjectItemRequest, type context$3_UpdateProjectItemResponse as UpdateProjectItemResponse, type context$3_UpdateProjectItemResponseNonNullableFields as UpdateProjectItemResponseNonNullableFields, type Video$2 as Video, type VideoResolution$2 as VideoResolution, WebhookIdentityType$3 as WebhookIdentityType, context$3_bulkCreateProjectItems as bulkCreateProjectItems, context$3_bulkDeleteProjectItems as bulkDeleteProjectItems, context$3_bulkUpdateProjectItems as bulkUpdateProjectItems, context$3_createProjectItem as createProjectItem, context$3_deleteProjectItem as deleteProjectItem, context$3_duplicateProjectItems as duplicateProjectItems, context$3_getProjectItem as getProjectItem, context$3_listProjectItems as listProjectItems, context$3_onProjectItemCreated as onProjectItemCreated, context$3_onProjectItemDeleted as onProjectItemDeleted, context$3_onProjectItemUpdated as onProjectItemUpdated, context$3_updateProjectItem as updateProjectItem };
|
|
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 context$3_BulkCreateProjectItemResult as BulkCreateProjectItemResult, type context$3_BulkCreateProjectItemsOptions as BulkCreateProjectItemsOptions, type context$3_BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest, type context$3_BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse, type context$3_BulkCreateProjectItemsResponseNonNullableFields as BulkCreateProjectItemsResponseNonNullableFields, type context$3_BulkDeleteProjectItemResult as BulkDeleteProjectItemResult, type context$3_BulkDeleteProjectItemsOptions as BulkDeleteProjectItemsOptions, type context$3_BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest, type context$3_BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse, type context$3_BulkDeleteProjectItemsResponseNonNullableFields as BulkDeleteProjectItemsResponseNonNullableFields, type context$3_BulkUpdateProjectItemResult as BulkUpdateProjectItemResult, type context$3_BulkUpdateProjectItemsOptions as BulkUpdateProjectItemsOptions, type context$3_BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest, type context$3_BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse, type context$3_BulkUpdateProjectItemsResponseNonNullableFields as BulkUpdateProjectItemsResponseNonNullableFields, type context$3_CreateProjectGalleryRequest as CreateProjectGalleryRequest, type context$3_CreateProjectGalleryResponse as CreateProjectGalleryResponse, type context$3_CreateProjectItemRequest as CreateProjectItemRequest, type context$3_CreateProjectItemResponse as CreateProjectItemResponse, type context$3_CreateProjectItemResponseNonNullableFields as CreateProjectItemResponseNonNullableFields, type CursorPaging$3 as CursorPaging, type Cursors$3 as Cursors, type context$3_DeleteProjectItemRequest as DeleteProjectItemRequest, type context$3_DeleteProjectItemResponse as DeleteProjectItemResponse, type context$3_DeleteProjectItemResponseNonNullableFields as DeleteProjectItemResponseNonNullableFields, type DeletedProjectRestored$1 as DeletedProjectRestored, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type context$3_DuplicateProjectItemsOptions as DuplicateProjectItemsOptions, type context$3_DuplicateProjectItemsRequest as DuplicateProjectItemsRequest, type context$3_DuplicateProjectItemsResponse as DuplicateProjectItemsResponse, type context$3_DuplicateProjectItemsResponseNonNullableFields as DuplicateProjectItemsResponseNonNullableFields, type Empty$2 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type File$1 as File, type context$3_GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequest, type context$3_GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponse, type context$3_GetProjectItemRequest as GetProjectItemRequest, type context$3_GetProjectItemResponse as GetProjectItemResponse, type context$3_GetProjectItemResponseNonNullableFields as GetProjectItemResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type Image$2 as Image, ImageType$2 as ImageType, type InvalidateCache$1 as InvalidateCache, type InvalidateCacheGetByOneOf$1 as InvalidateCacheGetByOneOf, type context$3_Item as Item, type ItemMetadata$1 as ItemMetadata, type context$3_ItemMetadataOneOf as ItemMetadataOneOf, type context$3_ItemNonNullableFields as ItemNonNullableFields, type context$3_Link as Link, type context$3_ListProjectItemsOptions as ListProjectItemsOptions, type context$3_ListProjectItemsRequest as ListProjectItemsRequest, type context$3_ListProjectItemsResponse as ListProjectItemsResponse, type context$3_ListProjectItemsResponseNonNullableFields as ListProjectItemsResponseNonNullableFields, type context$3_MaskedItem as MaskedItem, type MessageEnvelope$3 as MessageEnvelope, type Page$1 as Page, type Paging$2 as Paging, type PagingMetadataV2$3 as PagingMetadataV2, type Point$2 as Point, type context$3_ProjectItemCreatedEnvelope as ProjectItemCreatedEnvelope, type context$3_ProjectItemDeletedEnvelope as ProjectItemDeletedEnvelope, type context$3_ProjectItemMediaToken as ProjectItemMediaToken, type context$3_ProjectItemUpdatedEnvelope as ProjectItemUpdatedEnvelope, type context$3_QueryProjectItemsRequest as QueryProjectItemsRequest, type context$3_QueryProjectItemsResponse as QueryProjectItemsResponse, type QueryV2$2 as QueryV2, type QueryV2PagingMethodOneOf$2 as QueryV2PagingMethodOneOf, type RestoreInfo$3 as RestoreInfo, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type context$3_Tags as Tags, context$3_Type as Type, type URI$1 as URI, type UnsharpMasking$2 as UnsharpMasking, type context$3_UpdateProjectItem as UpdateProjectItem, type context$3_UpdateProjectItemRequest as UpdateProjectItemRequest, type context$3_UpdateProjectItemResponse as UpdateProjectItemResponse, type context$3_UpdateProjectItemResponseNonNullableFields as UpdateProjectItemResponseNonNullableFields, type Video$2 as Video, type VideoResolution$2 as VideoResolution, WebhookIdentityType$3 as WebhookIdentityType, type context$3__publicOnProjectItemCreatedType as _publicOnProjectItemCreatedType, type context$3__publicOnProjectItemDeletedType as _publicOnProjectItemDeletedType, type context$3__publicOnProjectItemUpdatedType as _publicOnProjectItemUpdatedType, context$3_bulkCreateProjectItems as bulkCreateProjectItems, context$3_bulkDeleteProjectItems as bulkDeleteProjectItems, context$3_bulkUpdateProjectItems as bulkUpdateProjectItems, context$3_createProjectItem as createProjectItem, context$3_deleteProjectItem as deleteProjectItem, context$3_duplicateProjectItems as duplicateProjectItems, context$3_getProjectItem as getProjectItem, context$3_listProjectItems as listProjectItems, context$3_onProjectItemCreated as onProjectItemCreated, context$3_onProjectItemDeleted as onProjectItemDeleted, context$3_onProjectItemUpdated as onProjectItemUpdated, onProjectItemCreated$1 as publicOnProjectItemCreated, onProjectItemDeleted$1 as publicOnProjectItemDeleted, onProjectItemUpdated$1 as publicOnProjectItemUpdated, context$3_updateProjectItem as updateProjectItem };
|
|
1866
2039
|
}
|
|
1867
2040
|
|
|
1868
2041
|
/** Project is the main entity of ProjectsService */
|
|
@@ -3106,23 +3279,118 @@ interface QueryProjectsWithCollectionInfoOptions {
|
|
|
3106
3279
|
includePageUrl?: boolean | null;
|
|
3107
3280
|
}
|
|
3108
3281
|
|
|
3109
|
-
declare function
|
|
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
|
+
}
|
|
3366
|
+
declare const onProjectCreated$1: EventDefinition<ProjectCreatedEnvelope, "wix.portfolio.projects.v1.project_created">;
|
|
3367
|
+
declare const onProjectUpdated$1: EventDefinition<ProjectUpdatedEnvelope, "wix.portfolio.projects.v1.project_updated">;
|
|
3368
|
+
declare const onProjectDeleted$1: EventDefinition<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
|
|
3110
3369
|
|
|
3111
3370
|
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3112
3371
|
|
|
3113
|
-
declare const getProjectPageData:
|
|
3114
|
-
declare const createProject:
|
|
3115
|
-
declare const getProject:
|
|
3116
|
-
declare const listProjects:
|
|
3117
|
-
declare const updateProject:
|
|
3118
|
-
declare const bulkUpdateProjects:
|
|
3119
|
-
declare const deleteProject:
|
|
3120
|
-
declare const queryProjects:
|
|
3121
|
-
declare const updateProjectOrderInCollection$
|
|
3122
|
-
declare const queryProjectsWithCollectionInfo:
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
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;
|
|
3382
|
+
|
|
3383
|
+
type _publicOnProjectCreatedType = typeof onProjectCreated$1;
|
|
3384
|
+
/** */
|
|
3385
|
+
declare const onProjectCreated: ReturnType<typeof createEventModule$1<_publicOnProjectCreatedType>>;
|
|
3386
|
+
|
|
3387
|
+
type _publicOnProjectUpdatedType = typeof onProjectUpdated$1;
|
|
3388
|
+
/** */
|
|
3389
|
+
declare const onProjectUpdated: ReturnType<typeof createEventModule$1<_publicOnProjectUpdatedType>>;
|
|
3390
|
+
|
|
3391
|
+
type _publicOnProjectDeletedType = typeof onProjectDeleted$1;
|
|
3392
|
+
/** */
|
|
3393
|
+
declare const onProjectDeleted: ReturnType<typeof createEventModule$1<_publicOnProjectDeletedType>>;
|
|
3126
3394
|
|
|
3127
3395
|
type context$2_App = App;
|
|
3128
3396
|
type context$2_ApplicationError = ApplicationError;
|
|
@@ -3182,6 +3450,9 @@ type context$2_UpdateProject = UpdateProject;
|
|
|
3182
3450
|
type context$2_UpdateProjectRequest = UpdateProjectRequest;
|
|
3183
3451
|
type context$2_UpdateProjectResponse = UpdateProjectResponse;
|
|
3184
3452
|
type context$2_UpdateProjectResponseNonNullableFields = UpdateProjectResponseNonNullableFields;
|
|
3453
|
+
type context$2__publicOnProjectCreatedType = _publicOnProjectCreatedType;
|
|
3454
|
+
type context$2__publicOnProjectDeletedType = _publicOnProjectDeletedType;
|
|
3455
|
+
type context$2__publicOnProjectUpdatedType = _publicOnProjectUpdatedType;
|
|
3185
3456
|
declare const context$2_bulkUpdateProjects: typeof bulkUpdateProjects;
|
|
3186
3457
|
declare const context$2_createProject: typeof createProject;
|
|
3187
3458
|
declare const context$2_deleteProject: typeof deleteProject;
|
|
@@ -3195,7 +3466,7 @@ declare const context$2_queryProjects: typeof queryProjects;
|
|
|
3195
3466
|
declare const context$2_queryProjectsWithCollectionInfo: typeof queryProjectsWithCollectionInfo;
|
|
3196
3467
|
declare const context$2_updateProject: typeof updateProject;
|
|
3197
3468
|
declare namespace context$2 {
|
|
3198
|
-
export { type ActionEvent$2 as ActionEvent, type context$2_App as App, type context$2_ApplicationError as ApplicationError, type Asset$1 as Asset, type BaseEventMetadata$1 as BaseEventMetadata, type context$2_BulkActionMetadata as BulkActionMetadata, type context$2_BulkUpdateProjectsOptions as BulkUpdateProjectsOptions, type context$2_BulkUpdateProjectsRequest as BulkUpdateProjectsRequest, type context$2_BulkUpdateProjectsResponse as BulkUpdateProjectsResponse, type context$2_BulkUpdateProjectsResponseNonNullableFields as BulkUpdateProjectsResponseNonNullableFields, type context$2_BulkUpdateProjectsResult as BulkUpdateProjectsResult, type context$2_CreateNewPortfolioAppRequest as CreateNewPortfolioAppRequest, type context$2_CreateNewPortfolioAppResponse as CreateNewPortfolioAppResponse, type context$2_CreateProjectRequest as CreateProjectRequest, type context$2_CreateProjectResponse as CreateProjectResponse, type context$2_CreateProjectResponseNonNullableFields as CreateProjectResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type Cursors$2 as Cursors, type DeleteContext$1 as DeleteContext, type context$2_DeleteProjectRequest as DeleteProjectRequest, type context$2_DeleteProjectResponse as DeleteProjectResponse, type context$2_DeleteProjectResponseNonNullableFields as DeleteProjectResponseNonNullableFields, DeleteStatus$1 as DeleteStatus, type context$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 context$2_File as File, type context$2_GetProjectOptions as GetProjectOptions, type context$2_GetProjectPageDataIdentifiers as GetProjectPageDataIdentifiers, type context$2_GetProjectPageDataRequest as GetProjectPageDataRequest, type context$2_GetProjectPageDataResponse as GetProjectPageDataResponse, type context$2_GetProjectPageDataResponseNonNullableFields as GetProjectPageDataResponseNonNullableFields, type context$2_GetProjectRequest as GetProjectRequest, type context$2_GetProjectResponse as GetProjectResponse, type context$2_GetProjectResponseNonNullableFields as GetProjectResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type Image$1 as Image, ImageType$1 as ImageType, type context$2_InvalidateCache as InvalidateCache, type context$2_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type context$2_ItemMetadata as ItemMetadata, type Keyword$1 as Keyword, type context$2_ListProjectsOptions as ListProjectsOptions, type context$2_ListProjectsRequest as ListProjectsRequest, type context$2_ListProjectsResponse as ListProjectsResponse, type context$2_ListProjectsResponseNonNullableFields as ListProjectsResponseNonNullableFields, type context$2_MaskedProject as MaskedProject, type context$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 context$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 context$2_ProjectCreatedEnvelope as ProjectCreatedEnvelope, type context$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 context$2_ProjectSlug as ProjectSlug, type ProjectSource$1 as ProjectSource, type context$2_ProjectUpdatedEnvelope as ProjectUpdatedEnvelope, type context$2_ProjectsQueryBuilder as ProjectsQueryBuilder, type context$2_ProjectsQueryResult as ProjectsQueryResult, type context$2_QueryProjectWithCollectionInfoRequest as QueryProjectWithCollectionInfoRequest, type context$2_QueryProjectWithCollectionInfoResponse as QueryProjectWithCollectionInfoResponse, type context$2_QueryProjectWithCollectionInfoResponseNonNullableFields as QueryProjectWithCollectionInfoResponseNonNullableFields, type context$2_QueryProjectsOptions as QueryProjectsOptions, type context$2_QueryProjectsRequest as QueryProjectsRequest, type context$2_QueryProjectsResponse as QueryProjectsResponse, type context$2_QueryProjectsResponseNonNullableFields as QueryProjectsResponseNonNullableFields, type context$2_QueryProjectsWithCollectionInfoOptions as QueryProjectsWithCollectionInfoOptions, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type RestoreInfo$2 as RestoreInfo, type context$2_RestoreProjectFromTrashBinRequest as RestoreProjectFromTrashBinRequest, type context$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 context$2_SyncProjectWithCollectionMappings as SyncProjectWithCollectionMappings, SyncStatus$2 as SyncStatus, type Tag$1 as Tag, type context$2_URI as URI, type UnsharpMasking$1 as UnsharpMasking, type context$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 context$2_UpdateProjectRequest as UpdateProjectRequest, type context$2_UpdateProjectResponse as UpdateProjectResponse, type context$2_UpdateProjectResponseNonNullableFields as UpdateProjectResponseNonNullableFields, type Video$1 as Video, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, context$2_bulkUpdateProjects as bulkUpdateProjects, context$2_createProject as createProject, context$2_deleteProject as deleteProject, context$2_getProject as getProject, context$2_getProjectPageData as getProjectPageData, context$2_listProjects as listProjects, context$2_onProjectCreated as onProjectCreated, context$2_onProjectDeleted as onProjectDeleted, context$2_onProjectUpdated as onProjectUpdated, context$2_queryProjects as queryProjects, context$2_queryProjectsWithCollectionInfo as queryProjectsWithCollectionInfo, context$2_updateProject as updateProject, updateProjectOrderInCollection$
|
|
3469
|
+
export { type ActionEvent$2 as ActionEvent, type context$2_App as App, type context$2_ApplicationError as ApplicationError, type Asset$1 as Asset, type BaseEventMetadata$1 as BaseEventMetadata, type context$2_BulkActionMetadata as BulkActionMetadata, type context$2_BulkUpdateProjectsOptions as BulkUpdateProjectsOptions, type context$2_BulkUpdateProjectsRequest as BulkUpdateProjectsRequest, type context$2_BulkUpdateProjectsResponse as BulkUpdateProjectsResponse, type context$2_BulkUpdateProjectsResponseNonNullableFields as BulkUpdateProjectsResponseNonNullableFields, type context$2_BulkUpdateProjectsResult as BulkUpdateProjectsResult, type context$2_CreateNewPortfolioAppRequest as CreateNewPortfolioAppRequest, type context$2_CreateNewPortfolioAppResponse as CreateNewPortfolioAppResponse, type context$2_CreateProjectRequest as CreateProjectRequest, type context$2_CreateProjectResponse as CreateProjectResponse, type context$2_CreateProjectResponseNonNullableFields as CreateProjectResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type Cursors$2 as Cursors, type DeleteContext$1 as DeleteContext, type context$2_DeleteProjectRequest as DeleteProjectRequest, type context$2_DeleteProjectResponse as DeleteProjectResponse, type context$2_DeleteProjectResponseNonNullableFields as DeleteProjectResponseNonNullableFields, DeleteStatus$1 as DeleteStatus, type context$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 context$2_File as File, type context$2_GetProjectOptions as GetProjectOptions, type context$2_GetProjectPageDataIdentifiers as GetProjectPageDataIdentifiers, type context$2_GetProjectPageDataRequest as GetProjectPageDataRequest, type context$2_GetProjectPageDataResponse as GetProjectPageDataResponse, type context$2_GetProjectPageDataResponseNonNullableFields as GetProjectPageDataResponseNonNullableFields, type context$2_GetProjectRequest as GetProjectRequest, type context$2_GetProjectResponse as GetProjectResponse, type context$2_GetProjectResponseNonNullableFields as GetProjectResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type Image$1 as Image, ImageType$1 as ImageType, type context$2_InvalidateCache as InvalidateCache, type context$2_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type context$2_ItemMetadata as ItemMetadata, type Keyword$1 as Keyword, type context$2_ListProjectsOptions as ListProjectsOptions, type context$2_ListProjectsRequest as ListProjectsRequest, type context$2_ListProjectsResponse as ListProjectsResponse, type context$2_ListProjectsResponseNonNullableFields as ListProjectsResponseNonNullableFields, type context$2_MaskedProject as MaskedProject, type context$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 context$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 context$2_ProjectCreatedEnvelope as ProjectCreatedEnvelope, type context$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 context$2_ProjectSlug as ProjectSlug, type ProjectSource$1 as ProjectSource, type context$2_ProjectUpdatedEnvelope as ProjectUpdatedEnvelope, type context$2_ProjectsQueryBuilder as ProjectsQueryBuilder, type context$2_ProjectsQueryResult as ProjectsQueryResult, type context$2_QueryProjectWithCollectionInfoRequest as QueryProjectWithCollectionInfoRequest, type context$2_QueryProjectWithCollectionInfoResponse as QueryProjectWithCollectionInfoResponse, type context$2_QueryProjectWithCollectionInfoResponseNonNullableFields as QueryProjectWithCollectionInfoResponseNonNullableFields, type context$2_QueryProjectsOptions as QueryProjectsOptions, type context$2_QueryProjectsRequest as QueryProjectsRequest, type context$2_QueryProjectsResponse as QueryProjectsResponse, type context$2_QueryProjectsResponseNonNullableFields as QueryProjectsResponseNonNullableFields, type context$2_QueryProjectsWithCollectionInfoOptions as QueryProjectsWithCollectionInfoOptions, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type RestoreInfo$2 as RestoreInfo, type context$2_RestoreProjectFromTrashBinRequest as RestoreProjectFromTrashBinRequest, type context$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 context$2_SyncProjectWithCollectionMappings as SyncProjectWithCollectionMappings, SyncStatus$2 as SyncStatus, type Tag$1 as Tag, type context$2_URI as URI, type UnsharpMasking$1 as UnsharpMasking, type context$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 context$2_UpdateProjectRequest as UpdateProjectRequest, type context$2_UpdateProjectResponse as UpdateProjectResponse, type context$2_UpdateProjectResponseNonNullableFields as UpdateProjectResponseNonNullableFields, type Video$1 as Video, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, type context$2__publicOnProjectCreatedType as _publicOnProjectCreatedType, type context$2__publicOnProjectDeletedType as _publicOnProjectDeletedType, type context$2__publicOnProjectUpdatedType as _publicOnProjectUpdatedType, context$2_bulkUpdateProjects as bulkUpdateProjects, context$2_createProject as createProject, context$2_deleteProject as deleteProject, context$2_getProject as getProject, context$2_getProjectPageData as getProjectPageData, context$2_listProjects as listProjects, context$2_onProjectCreated as onProjectCreated, context$2_onProjectDeleted as onProjectDeleted, context$2_onProjectUpdated as onProjectUpdated, onProjectCreated$1 as publicOnProjectCreated, onProjectDeleted$1 as publicOnProjectDeleted, onProjectUpdated$1 as publicOnProjectUpdated, context$2_queryProjects as queryProjects, context$2_queryProjectsWithCollectionInfo as queryProjectsWithCollectionInfo, context$2_updateProject as updateProject, updateProjectOrderInCollection$2 as updateProjectOrderInCollection };
|
|
3199
3470
|
}
|
|
3200
3471
|
|
|
3201
3472
|
interface ProjectInCollection {
|
|
@@ -3830,13 +4101,37 @@ interface UpdateProjectOrderInCollectionIdentifiers {
|
|
|
3830
4101
|
collectionId: string;
|
|
3831
4102
|
}
|
|
3832
4103
|
|
|
3833
|
-
declare function
|
|
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
|
+
}
|
|
4125
|
+
declare const onProjectInCollectionProjectOrderInCollectionUpdatedEvent$1: EventDefinition<ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope, "wix.portfolio.projects.v1.project_in_collection_project_order_in_collection_updated_event">;
|
|
3834
4126
|
|
|
3835
4127
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3836
4128
|
|
|
3837
|
-
declare const queryProjectInCollections:
|
|
3838
|
-
declare const updateProjectOrderInCollection:
|
|
3839
|
-
|
|
4129
|
+
declare const queryProjectInCollections: BuildRESTFunction<typeof queryProjectInCollections$1> & typeof queryProjectInCollections$1;
|
|
4130
|
+
declare const updateProjectOrderInCollection: BuildRESTFunction<typeof updateProjectOrderInCollection$1> & typeof updateProjectOrderInCollection$1;
|
|
4131
|
+
|
|
4132
|
+
type _publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType = typeof onProjectInCollectionProjectOrderInCollectionUpdatedEvent$1;
|
|
4133
|
+
/** */
|
|
4134
|
+
declare const onProjectInCollectionProjectOrderInCollectionUpdatedEvent: ReturnType<typeof createEventModule<_publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType>>;
|
|
3840
4135
|
|
|
3841
4136
|
type context$1_BaseEventMetadata = BaseEventMetadata;
|
|
3842
4137
|
type context$1_DetailsLink = DetailsLink;
|
|
@@ -3876,11 +4171,12 @@ type context$1_UpdateProjectOrderInCollectionResponse = UpdateProjectOrderInColl
|
|
|
3876
4171
|
type context$1_UpdateProjectOrderInCollectionResponseNonNullableFields = UpdateProjectOrderInCollectionResponseNonNullableFields;
|
|
3877
4172
|
type context$1_Video = Video;
|
|
3878
4173
|
type context$1_VideoResolution = VideoResolution;
|
|
4174
|
+
type context$1__publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType = _publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType;
|
|
3879
4175
|
declare const context$1_onProjectInCollectionProjectOrderInCollectionUpdatedEvent: typeof onProjectInCollectionProjectOrderInCollectionUpdatedEvent;
|
|
3880
4176
|
declare const context$1_queryProjectInCollections: typeof queryProjectInCollections;
|
|
3881
4177
|
declare const context$1_updateProjectOrderInCollection: typeof updateProjectOrderInCollection;
|
|
3882
4178
|
declare namespace context$1 {
|
|
3883
|
-
export { type ActionEvent$1 as ActionEvent, type context$1_BaseEventMetadata as BaseEventMetadata, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type context$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 context$1_EventMetadata as EventMetadata, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$1_Image as Image, context$1_ImageType as ImageType, type context$1_Keyword as Keyword, type MessageEnvelope$1 as MessageEnvelope, type context$1_Paging as Paging, type PagingMetadataV2$1 as PagingMetadataV2, type context$1_Point as Point, type context$1_Project as Project, type context$1_ProjectCoverOneOf as ProjectCoverOneOf, type context$1_ProjectDetail as ProjectDetail, type context$1_ProjectDetailValueOneOf as ProjectDetailValueOneOf, type context$1_ProjectInCollection as ProjectInCollection, type context$1_ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope as ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope, type context$1_ProjectInCollectionsQueryBuilder as ProjectInCollectionsQueryBuilder, type context$1_ProjectInCollectionsQueryResult as ProjectInCollectionsQueryResult, type context$1_ProjectOrderInCollectionUpdatedEvent as ProjectOrderInCollectionUpdatedEvent, type context$1_ProjectSource as ProjectSource, type context$1_QueryProjectInCollectionsOptions as QueryProjectInCollectionsOptions, type context$1_QueryProjectInCollectionsRequest as QueryProjectInCollectionsRequest, type context$1_QueryProjectInCollectionsResponse as QueryProjectInCollectionsResponse, type context$1_QueryProjectInCollectionsResponseNonNullableFields as QueryProjectInCollectionsResponseNonNullableFields, type context$1_QueryV2 as QueryV2, type context$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type RestoreInfo$1 as RestoreInfo, type context$1_SeoSchema as SeoSchema, type context$1_Settings as Settings, context$1_SortOrder as SortOrder, type context$1_Sorting as Sorting, SyncStatus$1 as SyncStatus, type context$1_Tag as Tag, type context$1_UnsharpMasking as UnsharpMasking, type context$1_UpdateProjectOrderInCollectionIdentifiers as UpdateProjectOrderInCollectionIdentifiers, type context$1_UpdateProjectOrderInCollectionRequest as UpdateProjectOrderInCollectionRequest, type context$1_UpdateProjectOrderInCollectionResponse as UpdateProjectOrderInCollectionResponse, type context$1_UpdateProjectOrderInCollectionResponseNonNullableFields as UpdateProjectOrderInCollectionResponseNonNullableFields, type context$1_Video as Video, type context$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, context$1_onProjectInCollectionProjectOrderInCollectionUpdatedEvent as onProjectInCollectionProjectOrderInCollectionUpdatedEvent, context$1_queryProjectInCollections as queryProjectInCollections, context$1_updateProjectOrderInCollection as updateProjectOrderInCollection };
|
|
4179
|
+
export { type ActionEvent$1 as ActionEvent, type context$1_BaseEventMetadata as BaseEventMetadata, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type context$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 context$1_EventMetadata as EventMetadata, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$1_Image as Image, context$1_ImageType as ImageType, type context$1_Keyword as Keyword, type MessageEnvelope$1 as MessageEnvelope, type context$1_Paging as Paging, type PagingMetadataV2$1 as PagingMetadataV2, type context$1_Point as Point, type context$1_Project as Project, type context$1_ProjectCoverOneOf as ProjectCoverOneOf, type context$1_ProjectDetail as ProjectDetail, type context$1_ProjectDetailValueOneOf as ProjectDetailValueOneOf, type context$1_ProjectInCollection as ProjectInCollection, type context$1_ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope as ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope, type context$1_ProjectInCollectionsQueryBuilder as ProjectInCollectionsQueryBuilder, type context$1_ProjectInCollectionsQueryResult as ProjectInCollectionsQueryResult, type context$1_ProjectOrderInCollectionUpdatedEvent as ProjectOrderInCollectionUpdatedEvent, type context$1_ProjectSource as ProjectSource, type context$1_QueryProjectInCollectionsOptions as QueryProjectInCollectionsOptions, type context$1_QueryProjectInCollectionsRequest as QueryProjectInCollectionsRequest, type context$1_QueryProjectInCollectionsResponse as QueryProjectInCollectionsResponse, type context$1_QueryProjectInCollectionsResponseNonNullableFields as QueryProjectInCollectionsResponseNonNullableFields, type context$1_QueryV2 as QueryV2, type context$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type RestoreInfo$1 as RestoreInfo, type context$1_SeoSchema as SeoSchema, type context$1_Settings as Settings, context$1_SortOrder as SortOrder, type context$1_Sorting as Sorting, SyncStatus$1 as SyncStatus, type context$1_Tag as Tag, type context$1_UnsharpMasking as UnsharpMasking, type context$1_UpdateProjectOrderInCollectionIdentifiers as UpdateProjectOrderInCollectionIdentifiers, type context$1_UpdateProjectOrderInCollectionRequest as UpdateProjectOrderInCollectionRequest, type context$1_UpdateProjectOrderInCollectionResponse as UpdateProjectOrderInCollectionResponse, type context$1_UpdateProjectOrderInCollectionResponseNonNullableFields as UpdateProjectOrderInCollectionResponseNonNullableFields, type context$1_Video as Video, type context$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType as _publicOnProjectInCollectionProjectOrderInCollectionUpdatedEventType, context$1_onProjectInCollectionProjectOrderInCollectionUpdatedEvent as onProjectInCollectionProjectOrderInCollectionUpdatedEvent, onProjectInCollectionProjectOrderInCollectionUpdatedEvent$1 as publicOnProjectInCollectionProjectOrderInCollectionUpdatedEvent, context$1_queryProjectInCollections as queryProjectInCollections, context$1_updateProjectOrderInCollection as updateProjectOrderInCollection };
|
|
3884
4180
|
}
|
|
3885
4181
|
|
|
3886
4182
|
interface SyncedProject {
|
|
@@ -3938,7 +4234,9 @@ interface SyncProjectPagingEvent {
|
|
|
3938
4234
|
/** Project Revision */
|
|
3939
4235
|
projectSyncRevision?: Date;
|
|
3940
4236
|
}
|
|
3941
|
-
interface
|
|
4237
|
+
interface SyncSiteEvent {
|
|
4238
|
+
/** Portfolio instance id */
|
|
4239
|
+
instanceId?: string;
|
|
3942
4240
|
/** Paging */
|
|
3943
4241
|
paging?: CursorPaging;
|
|
3944
4242
|
}
|
|
@@ -3953,12 +4251,6 @@ interface CursorPaging {
|
|
|
3953
4251
|
*/
|
|
3954
4252
|
cursor?: string | null;
|
|
3955
4253
|
}
|
|
3956
|
-
interface SyncSiteEvent {
|
|
3957
|
-
/** Portfolio instance id */
|
|
3958
|
-
instanceId?: string;
|
|
3959
|
-
/** Paging */
|
|
3960
|
-
paging?: CursorPaging;
|
|
3961
|
-
}
|
|
3962
4254
|
interface SyncProjectRequest {
|
|
3963
4255
|
/** Provider appDefId */
|
|
3964
4256
|
appDefId: string;
|
|
@@ -4432,6 +4724,10 @@ interface StudioAssigned {
|
|
|
4432
4724
|
/** Unassigned Studio editor */
|
|
4433
4725
|
interface StudioUnassigned {
|
|
4434
4726
|
}
|
|
4727
|
+
interface SyncAllSitesEvent {
|
|
4728
|
+
/** Paging */
|
|
4729
|
+
paging?: CursorPaging;
|
|
4730
|
+
}
|
|
4435
4731
|
interface MessageEnvelope {
|
|
4436
4732
|
/** App instance ID. */
|
|
4437
4733
|
instanceId?: string | null;
|
|
@@ -4519,13 +4815,49 @@ interface StopSyncIdentifiers {
|
|
|
4519
4815
|
externalId: string;
|
|
4520
4816
|
}
|
|
4521
4817
|
|
|
4522
|
-
declare function
|
|
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
|
+
}
|
|
4523
4855
|
|
|
4524
|
-
declare const getProjects:
|
|
4525
|
-
declare const syncProject:
|
|
4526
|
-
declare const getSyncStatus:
|
|
4527
|
-
declare const stopSync:
|
|
4528
|
-
declare const getLoginRedirectableUrl:
|
|
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;
|
|
4529
4861
|
|
|
4530
4862
|
type context_ActionEvent = ActionEvent;
|
|
4531
4863
|
type context_Asset = Asset;
|