@wix/portfolio 1.0.75 → 1.0.76

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.
@@ -177,7 +177,7 @@ interface DomainEventBodyOneOf$5 {
177
177
  interface EntityCreatedEvent$5 {
178
178
  entity?: string;
179
179
  }
180
- interface UndeleteInfo$4 {
180
+ interface UndeleteInfo$3 {
181
181
  deletedDate?: Date;
182
182
  }
183
183
  interface EntityUpdatedEvent$5 {
@@ -434,143 +434,55 @@ interface QueryCollectionsResponse {
434
434
  /** Paging metadata */
435
435
  metadata?: PagingMetadataV2$4;
436
436
  }
437
+ interface PointNonNullableFields$3 {
438
+ x: number;
439
+ y: number;
440
+ }
441
+ interface ImageNonNullableFields$3 {
442
+ type: ImageType$3;
443
+ imageInfo: string;
444
+ focalPoint?: PointNonNullableFields$3;
445
+ }
446
+ interface TagNonNullableFields$2 {
447
+ type: string;
448
+ children: string;
449
+ custom: boolean;
450
+ disabled: boolean;
451
+ }
452
+ interface KeywordNonNullableFields$2 {
453
+ term: string;
454
+ isMain: boolean;
455
+ }
456
+ interface SettingsNonNullableFields$2 {
457
+ preventAutoRedirect: boolean;
458
+ keywords: KeywordNonNullableFields$2[];
459
+ }
460
+ interface SeoSchemaNonNullableFields$2 {
461
+ tags: TagNonNullableFields$2[];
462
+ settings?: SettingsNonNullableFields$2;
463
+ }
464
+ interface CollectionNonNullableFields {
465
+ coverImage?: ImageNonNullableFields$3;
466
+ url: string;
467
+ seoData?: SeoSchemaNonNullableFields$2;
468
+ }
437
469
  interface CreateCollectionResponseNonNullableFields {
438
- collection?: {
439
- coverImage?: {
440
- imageInfo: string;
441
- focalPoint?: {
442
- x: number;
443
- y: number;
444
- };
445
- };
446
- url: string;
447
- seoData?: {
448
- tags: {
449
- type: string;
450
- children: string;
451
- custom: boolean;
452
- disabled: boolean;
453
- }[];
454
- settings?: {
455
- preventAutoRedirect: boolean;
456
- keywords: {
457
- term: string;
458
- isMain: boolean;
459
- }[];
460
- };
461
- };
462
- };
470
+ collection?: CollectionNonNullableFields;
463
471
  }
464
472
  interface GetCollectionResponseNonNullableFields {
465
- collection?: {
466
- coverImage?: {
467
- imageInfo: string;
468
- focalPoint?: {
469
- x: number;
470
- y: number;
471
- };
472
- };
473
- url: string;
474
- seoData?: {
475
- tags: {
476
- type: string;
477
- children: string;
478
- custom: boolean;
479
- disabled: boolean;
480
- }[];
481
- settings?: {
482
- preventAutoRedirect: boolean;
483
- keywords: {
484
- term: string;
485
- isMain: boolean;
486
- }[];
487
- };
488
- };
489
- };
473
+ collection?: CollectionNonNullableFields;
490
474
  }
491
475
  interface ListCollectionsResponseNonNullableFields {
492
- collections: {
493
- coverImage?: {
494
- imageInfo: string;
495
- focalPoint?: {
496
- x: number;
497
- y: number;
498
- };
499
- };
500
- url: string;
501
- seoData?: {
502
- tags: {
503
- type: string;
504
- children: string;
505
- custom: boolean;
506
- disabled: boolean;
507
- }[];
508
- settings?: {
509
- preventAutoRedirect: boolean;
510
- keywords: {
511
- term: string;
512
- isMain: boolean;
513
- }[];
514
- };
515
- };
516
- }[];
476
+ collections: CollectionNonNullableFields[];
517
477
  }
518
478
  interface UpdateCollectionResponseNonNullableFields {
519
- collection?: {
520
- coverImage?: {
521
- imageInfo: string;
522
- focalPoint?: {
523
- x: number;
524
- y: number;
525
- };
526
- };
527
- url: string;
528
- seoData?: {
529
- tags: {
530
- type: string;
531
- children: string;
532
- custom: boolean;
533
- disabled: boolean;
534
- }[];
535
- settings?: {
536
- preventAutoRedirect: boolean;
537
- keywords: {
538
- term: string;
539
- isMain: boolean;
540
- }[];
541
- };
542
- };
543
- };
479
+ collection?: CollectionNonNullableFields;
544
480
  }
545
481
  interface DeleteCollectionResponseNonNullableFields {
546
482
  collectionId: string;
547
483
  }
548
484
  interface QueryCollectionsResponseNonNullableFields {
549
- collections: {
550
- coverImage?: {
551
- imageInfo: string;
552
- focalPoint?: {
553
- x: number;
554
- y: number;
555
- };
556
- };
557
- url: string;
558
- seoData?: {
559
- tags: {
560
- type: string;
561
- children: string;
562
- custom: boolean;
563
- disabled: boolean;
564
- }[];
565
- settings?: {
566
- preventAutoRedirect: boolean;
567
- keywords: {
568
- term: string;
569
- isMain: boolean;
570
- }[];
571
- };
572
- };
573
- }[];
485
+ collections: CollectionNonNullableFields[];
574
486
  }
575
487
  interface BaseEventMetadata$3 {
576
488
  /** App instance ID. */
@@ -762,37 +674,42 @@ interface CollectionsQueryBuilder {
762
674
  find: () => Promise<CollectionsQueryResult>;
763
675
  }
764
676
 
765
- interface HttpClient$5 {
766
- request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
767
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
677
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
678
+ interface HttpClient {
679
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
680
+ fetchWithAuth: typeof fetch;
681
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
768
682
  }
769
- type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
770
- type HttpResponse$5<T = any> = {
683
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
684
+ type HttpResponse<T = any> = {
771
685
  data: T;
772
686
  status: number;
773
687
  statusText: string;
774
688
  headers: any;
775
689
  request?: any;
776
690
  };
777
- type RequestOptions$5<_TResponse = any, Data = any> = {
691
+ type RequestOptions<_TResponse = any, Data = any> = {
778
692
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
779
693
  url: string;
780
694
  data?: Data;
781
695
  params?: URLSearchParams;
782
- } & APIMetadata$5;
783
- type APIMetadata$5 = {
696
+ } & APIMetadata;
697
+ type APIMetadata = {
784
698
  methodFqn?: string;
785
699
  entityFqdn?: string;
786
700
  packageName?: string;
787
701
  };
788
- type EventDefinition$3<Payload = unknown, Type extends string = string> = {
702
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
703
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
789
704
  __type: 'event-definition';
790
705
  type: Type;
791
706
  isDomainEvent?: boolean;
792
707
  transformations?: (envelope: unknown) => Payload;
793
708
  __payload: Payload;
794
709
  };
795
- declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
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;
796
713
 
797
714
  declare global {
798
715
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -801,95 +718,25 @@ declare global {
801
718
  }
802
719
  }
803
720
 
804
- declare const __metadata$5: {
805
- PACKAGE_NAME: string;
806
- };
807
- declare function createCollection(httpClient: HttpClient$5): (collection: Collection) => Promise<Collection & {
808
- coverImage?: {
809
- imageInfo: string;
810
- focalPoint?: {
811
- x: number;
812
- y: number;
813
- } | undefined;
814
- } | undefined;
815
- url: string;
816
- seoData?: {
817
- tags: {
818
- type: string;
819
- children: string;
820
- custom: boolean;
821
- disabled: boolean;
822
- }[];
823
- settings?: {
824
- preventAutoRedirect: boolean;
825
- keywords: {
826
- term: string;
827
- isMain: boolean;
828
- }[];
829
- } | undefined;
830
- } | undefined;
831
- }>;
832
- declare function getCollection(httpClient: HttpClient$5): (collectionId: string, options?: GetCollectionOptions) => Promise<Collection & {
833
- coverImage?: {
834
- imageInfo: string;
835
- focalPoint?: {
836
- x: number;
837
- y: number;
838
- } | undefined;
839
- } | undefined;
840
- url: string;
841
- seoData?: {
842
- tags: {
843
- type: string;
844
- children: string;
845
- custom: boolean;
846
- disabled: boolean;
847
- }[];
848
- settings?: {
849
- preventAutoRedirect: boolean;
850
- keywords: {
851
- term: string;
852
- isMain: boolean;
853
- }[];
854
- } | undefined;
855
- } | undefined;
856
- }>;
857
- declare function listCollections(httpClient: HttpClient$5): (options?: ListCollectionsOptions) => Promise<ListCollectionsResponse & ListCollectionsResponseNonNullableFields>;
858
- declare function updateCollection(httpClient: HttpClient$5): (_id: string | null, collection: UpdateCollection) => Promise<Collection & {
859
- coverImage?: {
860
- imageInfo: string;
861
- focalPoint?: {
862
- x: number;
863
- y: number;
864
- } | undefined;
865
- } | undefined;
866
- url: string;
867
- seoData?: {
868
- tags: {
869
- type: string;
870
- children: string;
871
- custom: boolean;
872
- disabled: boolean;
873
- }[];
874
- settings?: {
875
- preventAutoRedirect: boolean;
876
- keywords: {
877
- term: string;
878
- isMain: boolean;
879
- }[];
880
- } | undefined;
881
- } | undefined;
882
- }>;
883
- declare function deleteCollection(httpClient: HttpClient$5): (collectionId: string) => Promise<DeleteCollectionResponse & DeleteCollectionResponseNonNullableFields>;
884
- declare function queryCollections(httpClient: HttpClient$5): (options?: QueryCollectionsOptions) => CollectionsQueryBuilder;
885
- declare const onCollectionCreated: EventDefinition$3<CollectionCreatedEnvelope, "wix.portfolio.collections.v1.collection_created">;
886
- declare const onCollectionUpdated: EventDefinition$3<CollectionUpdatedEnvelope, "wix.portfolio.collections.v1.collection_updated">;
887
- declare const onCollectionDeleted: EventDefinition$3<CollectionDeletedEnvelope, "wix.portfolio.collections.v1.collection_deleted">;
721
+ declare function createRESTModule$5<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
722
+
723
+ declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
724
+
725
+ declare const createCollection: ReturnType<typeof createRESTModule$5<typeof publicCreateCollection>>;
726
+ declare const getCollection: ReturnType<typeof createRESTModule$5<typeof publicGetCollection>>;
727
+ declare const listCollections: ReturnType<typeof createRESTModule$5<typeof publicListCollections>>;
728
+ declare const updateCollection: ReturnType<typeof createRESTModule$5<typeof publicUpdateCollection>>;
729
+ declare const deleteCollection: ReturnType<typeof createRESTModule$5<typeof publicDeleteCollection>>;
730
+ declare const queryCollections: ReturnType<typeof createRESTModule$5<typeof publicQueryCollections>>;
731
+ declare const onCollectionCreated: ReturnType<typeof createEventModule$3<typeof publicOnCollectionCreated>>;
732
+ declare const onCollectionUpdated: ReturnType<typeof createEventModule$3<typeof publicOnCollectionUpdated>>;
733
+ declare const onCollectionDeleted: ReturnType<typeof createEventModule$3<typeof publicOnCollectionDeleted>>;
888
734
 
889
735
  type index_d$5_AdminRemoveMenuItemsResponse = AdminRemoveMenuItemsResponse;
890
736
  type index_d$5_Collection = Collection;
891
737
  type index_d$5_CollectionCreatedEnvelope = CollectionCreatedEnvelope;
892
738
  type index_d$5_CollectionDeletedEnvelope = CollectionDeletedEnvelope;
739
+ type index_d$5_CollectionNonNullableFields = CollectionNonNullableFields;
893
740
  type index_d$5_CollectionUpdatedEnvelope = CollectionUpdatedEnvelope;
894
741
  type index_d$5_CollectionsQueryBuilder = CollectionsQueryBuilder;
895
742
  type index_d$5_CollectionsQueryResult = CollectionsQueryResult;
@@ -925,7 +772,7 @@ declare const index_d$5_onCollectionUpdated: typeof onCollectionUpdated;
925
772
  declare const index_d$5_queryCollections: typeof queryCollections;
926
773
  declare const index_d$5_updateCollection: typeof updateCollection;
927
774
  declare namespace index_d$5 {
928
- 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_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 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 UndeleteInfo$4 as UndeleteInfo, 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, __metadata$5 as __metadata, 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, index_d$5_queryCollections as queryCollections, index_d$5_updateCollection as updateCollection };
775
+ 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 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 UndeleteInfo$3 as UndeleteInfo, 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, 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, index_d$5_queryCollections as queryCollections, index_d$5_updateCollection as updateCollection };
929
776
  }
930
777
 
931
778
  interface PortfolioSettings {
@@ -1038,7 +885,7 @@ interface DomainEventBodyOneOf$4 {
1038
885
  interface EntityCreatedEvent$4 {
1039
886
  entity?: string;
1040
887
  }
1041
- interface UndeleteInfo$3 {
888
+ interface UndeleteInfo$2 {
1042
889
  deletedDate?: Date;
1043
890
  }
1044
891
  interface EntityUpdatedEvent$4 {
@@ -1096,73 +943,28 @@ declare enum WebhookIdentityType$4 {
1096
943
  WIX_USER = "WIX_USER",
1097
944
  APP = "APP"
1098
945
  }
946
+ interface ProjectItemSettingsNonNullableFields {
947
+ addItemDirection: AddItemDirection;
948
+ defaultItemName: DefaultItemName;
949
+ }
950
+ interface PortfolioSettingsNonNullableFields {
951
+ projectItemSettings?: ProjectItemSettingsNonNullableFields;
952
+ }
1099
953
  interface CreatePortfolioSettingsResponseNonNullableFields {
1100
- portfolioSettings?: {
1101
- projectItemSettings?: {
1102
- addItemDirection: AddItemDirection;
1103
- defaultItemName: DefaultItemName;
1104
- };
1105
- };
954
+ portfolioSettings?: PortfolioSettingsNonNullableFields;
1106
955
  }
1107
956
  interface GetPortfolioSettingsResponseNonNullableFields {
1108
- portfolioSettings?: {
1109
- projectItemSettings?: {
1110
- addItemDirection: AddItemDirection;
1111
- defaultItemName: DefaultItemName;
1112
- };
1113
- };
957
+ portfolioSettings?: PortfolioSettingsNonNullableFields;
1114
958
  }
1115
959
  interface UpdatePortfolioSettingsResponseNonNullableFields {
1116
- updatedPortfolioSettings?: {
1117
- projectItemSettings?: {
1118
- addItemDirection: AddItemDirection;
1119
- defaultItemName: DefaultItemName;
1120
- };
1121
- };
1122
- }
1123
-
1124
- interface HttpClient$4 {
1125
- request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
1126
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
960
+ updatedPortfolioSettings?: PortfolioSettingsNonNullableFields;
1127
961
  }
1128
- type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
1129
- type HttpResponse$4<T = any> = {
1130
- data: T;
1131
- status: number;
1132
- statusText: string;
1133
- headers: any;
1134
- request?: any;
1135
- };
1136
- type RequestOptions$4<_TResponse = any, Data = any> = {
1137
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1138
- url: string;
1139
- data?: Data;
1140
- params?: URLSearchParams;
1141
- } & APIMetadata$4;
1142
- type APIMetadata$4 = {
1143
- methodFqn?: string;
1144
- entityFqdn?: string;
1145
- packageName?: string;
1146
- };
1147
962
 
1148
- declare global {
1149
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1150
- interface SymbolConstructor {
1151
- readonly observable: symbol;
1152
- }
1153
- }
963
+ declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1154
964
 
1155
- declare const __metadata$4: {
1156
- PACKAGE_NAME: string;
1157
- };
1158
- declare function createPortfolioSettings(httpClient: HttpClient$4): (portfolioSettings: PortfolioSettings) => Promise<PortfolioSettings & {
1159
- projectItemSettings?: {
1160
- addItemDirection: AddItemDirection;
1161
- defaultItemName: DefaultItemName;
1162
- } | undefined;
1163
- }>;
1164
- declare function getPortfolioSettings(httpClient: HttpClient$4): () => Promise<GetPortfolioSettingsResponse & GetPortfolioSettingsResponseNonNullableFields>;
1165
- declare function updatePortfolioSettings(httpClient: HttpClient$4): (portfolioSettings: PortfolioSettings) => Promise<UpdatePortfolioSettingsResponse & UpdatePortfolioSettingsResponseNonNullableFields>;
965
+ declare const createPortfolioSettings: ReturnType<typeof createRESTModule$4<typeof publicCreatePortfolioSettings>>;
966
+ declare const getPortfolioSettings: ReturnType<typeof createRESTModule$4<typeof publicGetPortfolioSettings>>;
967
+ declare const updatePortfolioSettings: ReturnType<typeof createRESTModule$4<typeof publicUpdatePortfolioSettings>>;
1166
968
 
1167
969
  type index_d$4_AddItemDirection = AddItemDirection;
1168
970
  declare const index_d$4_AddItemDirection: typeof AddItemDirection;
@@ -1176,6 +978,7 @@ type index_d$4_GetPortfolioSettingsResponse = GetPortfolioSettingsResponse;
1176
978
  type index_d$4_GetPortfolioSettingsResponseNonNullableFields = GetPortfolioSettingsResponseNonNullableFields;
1177
979
  type index_d$4_MediaSettings = MediaSettings;
1178
980
  type index_d$4_PortfolioSettings = PortfolioSettings;
981
+ type index_d$4_PortfolioSettingsNonNullableFields = PortfolioSettingsNonNullableFields;
1179
982
  type index_d$4_ProjectItemSettings = ProjectItemSettings;
1180
983
  type index_d$4_SiteMenuSettings = SiteMenuSettings;
1181
984
  type index_d$4_UpdatePortfolioSettingsRequest = UpdatePortfolioSettingsRequest;
@@ -1185,7 +988,7 @@ declare const index_d$4_createPortfolioSettings: typeof createPortfolioSettings;
1185
988
  declare const index_d$4_getPortfolioSettings: typeof getPortfolioSettings;
1186
989
  declare const index_d$4_updatePortfolioSettings: typeof updatePortfolioSettings;
1187
990
  declare namespace index_d$4 {
1188
- 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_ProjectItemSettings as ProjectItemSettings, type index_d$4_SiteMenuSettings as SiteMenuSettings, type UndeleteInfo$3 as UndeleteInfo, 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, __metadata$4 as __metadata, index_d$4_createPortfolioSettings as createPortfolioSettings, index_d$4_getPortfolioSettings as getPortfolioSettings, index_d$4_updatePortfolioSettings as updatePortfolioSettings };
991
+ 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 index_d$4_SiteMenuSettings as SiteMenuSettings, type UndeleteInfo$2 as UndeleteInfo, 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 };
1189
992
  }
1190
993
 
1191
994
  /** ProjectItem is the main entity of ProjectItemsService */
@@ -1359,7 +1162,7 @@ interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
1359
1162
  slug?: string;
1360
1163
  /** ID of the entity associated with the event. */
1361
1164
  entityId?: string;
1362
- /** Event timestamp. */
1165
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1363
1166
  eventTime?: Date;
1364
1167
  /**
1365
1168
  * Whether the event was triggered as a result of a privacy regulation application
@@ -1388,7 +1191,7 @@ interface DomainEventBodyOneOf$3 {
1388
1191
  interface EntityCreatedEvent$3 {
1389
1192
  entity?: string;
1390
1193
  }
1391
- interface RestoreInfo$1 {
1194
+ interface RestoreInfo$2 {
1392
1195
  deletedDate?: Date;
1393
1196
  }
1394
1197
  interface EntityUpdatedEvent$3 {
@@ -1731,9 +1534,6 @@ interface CreateProjectGalleryResponse {
1731
1534
  /** Id of created gallery */
1732
1535
  galleryId?: string;
1733
1536
  }
1734
- interface UndeleteInfo$2 {
1735
- deletedDate?: Date;
1736
- }
1737
1537
  interface Empty$2 {
1738
1538
  }
1739
1539
  interface DeletedProjectRestored$1 {
@@ -1754,155 +1554,91 @@ interface DuplicateProjectItemsResponse {
1754
1554
  /** Result metadata */
1755
1555
  bulkActionMetadata?: BulkActionMetadata$1;
1756
1556
  }
1557
+ interface PointNonNullableFields$2 {
1558
+ x: number;
1559
+ y: number;
1560
+ }
1561
+ interface ImageNonNullableFields$2 {
1562
+ type: ImageType$2;
1563
+ imageInfo: string;
1564
+ focalPoint?: PointNonNullableFields$2;
1565
+ }
1566
+ interface VideoNonNullableFields$2 {
1567
+ videoInfo: string;
1568
+ }
1569
+ interface TagsNonNullableFields {
1570
+ values: string[];
1571
+ }
1572
+ interface ItemNonNullableFields {
1573
+ image?: ImageNonNullableFields$2;
1574
+ video?: VideoNonNullableFields$2;
1575
+ type: Type;
1576
+ tags?: TagsNonNullableFields;
1577
+ }
1757
1578
  interface CreateProjectItemResponseNonNullableFields {
1758
- item?: {
1759
- image?: {
1760
- imageInfo: string;
1761
- focalPoint?: {
1762
- x: number;
1763
- y: number;
1764
- };
1765
- };
1766
- video?: {
1767
- videoInfo: string;
1768
- };
1769
- type: Type;
1770
- };
1579
+ projectId: string;
1580
+ item?: ItemNonNullableFields;
1581
+ }
1582
+ interface ApplicationErrorNonNullableFields$1 {
1583
+ code: string;
1584
+ description: string;
1585
+ }
1586
+ interface ItemMetadataNonNullableFields$1 {
1587
+ originalIndex: number;
1588
+ success: boolean;
1589
+ error?: ApplicationErrorNonNullableFields$1;
1590
+ }
1591
+ interface BulkCreateProjectItemResultNonNullableFields {
1592
+ itemMetadata?: ItemMetadataNonNullableFields$1;
1593
+ item?: ItemNonNullableFields;
1594
+ }
1595
+ interface BulkActionMetadataNonNullableFields$1 {
1596
+ totalSuccesses: number;
1597
+ totalFailures: number;
1598
+ undetailedFailures: number;
1771
1599
  }
1772
1600
  interface BulkCreateProjectItemsResponseNonNullableFields {
1773
- results: {
1774
- itemMetadata?: {
1775
- originalIndex: number;
1776
- success: boolean;
1777
- error?: {
1778
- code: string;
1779
- description: string;
1780
- };
1781
- };
1782
- item?: {
1783
- image?: {
1784
- imageInfo: string;
1785
- focalPoint?: {
1786
- x: number;
1787
- y: number;
1788
- };
1789
- };
1790
- video?: {
1791
- videoInfo: string;
1792
- };
1793
- type: Type;
1794
- };
1795
- }[];
1796
- bulkActionMetadata?: {
1797
- totalSuccesses: number;
1798
- totalFailures: number;
1799
- undetailedFailures: number;
1800
- };
1601
+ projectId: string;
1602
+ results: BulkCreateProjectItemResultNonNullableFields[];
1603
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
1801
1604
  }
1802
1605
  interface GetProjectItemResponseNonNullableFields {
1803
- item?: {
1804
- image?: {
1805
- imageInfo: string;
1806
- focalPoint?: {
1807
- x: number;
1808
- y: number;
1809
- };
1810
- };
1811
- video?: {
1812
- videoInfo: string;
1813
- };
1814
- type: Type;
1815
- };
1606
+ projectId: string;
1607
+ item?: ItemNonNullableFields;
1816
1608
  }
1817
1609
  interface ListProjectItemsResponseNonNullableFields {
1818
- items: {
1819
- image?: {
1820
- imageInfo: string;
1821
- focalPoint?: {
1822
- x: number;
1823
- y: number;
1824
- };
1825
- };
1826
- video?: {
1827
- videoInfo: string;
1828
- };
1829
- type: Type;
1830
- }[];
1610
+ projectId: string;
1611
+ items: ItemNonNullableFields[];
1831
1612
  }
1832
1613
  interface UpdateProjectItemResponseNonNullableFields {
1833
- item?: {
1834
- image?: {
1835
- imageInfo: string;
1836
- focalPoint?: {
1837
- x: number;
1838
- y: number;
1839
- };
1840
- };
1841
- video?: {
1842
- videoInfo: string;
1843
- };
1844
- type: Type;
1845
- };
1614
+ projectId: string;
1615
+ item?: ItemNonNullableFields;
1616
+ }
1617
+ interface BulkUpdateProjectItemResultNonNullableFields {
1618
+ itemMetadata?: ItemMetadataNonNullableFields$1;
1619
+ item?: ItemNonNullableFields;
1846
1620
  }
1847
1621
  interface BulkUpdateProjectItemsResponseNonNullableFields {
1848
- results: {
1849
- itemMetadata?: {
1850
- originalIndex: number;
1851
- success: boolean;
1852
- error?: {
1853
- code: string;
1854
- description: string;
1855
- };
1856
- };
1857
- item?: {
1858
- image?: {
1859
- imageInfo: string;
1860
- focalPoint?: {
1861
- x: number;
1862
- y: number;
1863
- };
1864
- };
1865
- video?: {
1866
- videoInfo: string;
1867
- };
1868
- type: Type;
1869
- };
1870
- }[];
1871
- bulkActionMetadata?: {
1872
- totalSuccesses: number;
1873
- totalFailures: number;
1874
- undetailedFailures: number;
1875
- };
1622
+ projectId: string;
1623
+ results: BulkUpdateProjectItemResultNonNullableFields[];
1624
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
1876
1625
  }
1877
1626
  interface DeleteProjectItemResponseNonNullableFields {
1878
1627
  projectId: string;
1879
1628
  itemId: string;
1880
1629
  }
1630
+ interface BulkDeleteProjectItemResultNonNullableFields {
1631
+ itemMetadata?: ItemMetadataNonNullableFields$1;
1632
+ itemId: string;
1633
+ }
1881
1634
  interface BulkDeleteProjectItemsResponseNonNullableFields {
1882
- results: {
1883
- itemMetadata?: {
1884
- originalIndex: number;
1885
- success: boolean;
1886
- error?: {
1887
- code: string;
1888
- description: string;
1889
- };
1890
- };
1891
- itemId: string;
1892
- }[];
1893
- bulkActionMetadata?: {
1894
- totalSuccesses: number;
1895
- totalFailures: number;
1896
- undetailedFailures: number;
1897
- };
1635
+ projectId: string;
1636
+ results: BulkDeleteProjectItemResultNonNullableFields[];
1637
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
1898
1638
  }
1899
1639
  interface DuplicateProjectItemsResponseNonNullableFields {
1900
1640
  projectId: string;
1901
- bulkActionMetadata?: {
1902
- totalSuccesses: number;
1903
- totalFailures: number;
1904
- undetailedFailures: number;
1905
- };
1641
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
1906
1642
  }
1907
1643
  interface BaseEventMetadata$2 {
1908
1644
  /** App instance ID. */
@@ -1931,7 +1667,7 @@ interface EventMetadata$2 extends BaseEventMetadata$2 {
1931
1667
  slug?: string;
1932
1668
  /** ID of the entity associated with the event. */
1933
1669
  entityId?: string;
1934
- /** Event timestamp. */
1670
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1935
1671
  eventTime?: Date;
1936
1672
  /**
1937
1673
  * Whether the event was triggered as a result of a privacy regulation application
@@ -2032,96 +1768,22 @@ interface DuplicateProjectItemsOptions {
2032
1768
  targetProjectId: string;
2033
1769
  }
2034
1770
 
2035
- interface HttpClient$3 {
2036
- request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
2037
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2038
- }
2039
- type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
2040
- type HttpResponse$3<T = any> = {
2041
- data: T;
2042
- status: number;
2043
- statusText: string;
2044
- headers: any;
2045
- request?: any;
2046
- };
2047
- type RequestOptions$3<_TResponse = any, Data = any> = {
2048
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2049
- url: string;
2050
- data?: Data;
2051
- params?: URLSearchParams;
2052
- } & APIMetadata$3;
2053
- type APIMetadata$3 = {
2054
- methodFqn?: string;
2055
- entityFqdn?: string;
2056
- packageName?: string;
2057
- };
2058
- type EventDefinition$2<Payload = unknown, Type extends string = string> = {
2059
- __type: 'event-definition';
2060
- type: Type;
2061
- isDomainEvent?: boolean;
2062
- transformations?: (envelope: unknown) => Payload;
2063
- __payload: Payload;
2064
- };
2065
- declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
1771
+ declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2066
1772
 
2067
- declare global {
2068
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2069
- interface SymbolConstructor {
2070
- readonly observable: symbol;
2071
- }
2072
- }
1773
+ declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2073
1774
 
2074
- declare const __metadata$3: {
2075
- PACKAGE_NAME: string;
2076
- };
2077
- declare function createProjectItem(httpClient: HttpClient$3): (item: Item) => Promise<Item & {
2078
- image?: {
2079
- imageInfo: string;
2080
- focalPoint?: {
2081
- x: number;
2082
- y: number;
2083
- } | undefined;
2084
- } | undefined;
2085
- video?: {
2086
- videoInfo: string;
2087
- } | undefined;
2088
- type: Type;
2089
- }>;
2090
- declare function bulkCreateProjectItems(httpClient: HttpClient$3): (options?: BulkCreateProjectItemsOptions) => Promise<BulkCreateProjectItemsResponse & BulkCreateProjectItemsResponseNonNullableFields>;
2091
- declare function getProjectItem(httpClient: HttpClient$3): (itemId: string) => Promise<Item & {
2092
- image?: {
2093
- imageInfo: string;
2094
- focalPoint?: {
2095
- x: number;
2096
- y: number;
2097
- } | undefined;
2098
- } | undefined;
2099
- video?: {
2100
- videoInfo: string;
2101
- } | undefined;
2102
- type: Type;
2103
- }>;
2104
- declare function listProjectItems(httpClient: HttpClient$3): (projectId: string, options?: ListProjectItemsOptions) => Promise<ListProjectItemsResponse & ListProjectItemsResponseNonNullableFields>;
2105
- declare function updateProjectItem(httpClient: HttpClient$3): (_id: string | null, item: UpdateProjectItem) => Promise<Item & {
2106
- image?: {
2107
- imageInfo: string;
2108
- focalPoint?: {
2109
- x: number;
2110
- y: number;
2111
- } | undefined;
2112
- } | undefined;
2113
- video?: {
2114
- videoInfo: string;
2115
- } | undefined;
2116
- type: Type;
2117
- }>;
2118
- declare function bulkUpdateProjectItems(httpClient: HttpClient$3): (options?: BulkUpdateProjectItemsOptions) => Promise<BulkUpdateProjectItemsResponse & BulkUpdateProjectItemsResponseNonNullableFields>;
2119
- declare function deleteProjectItem(httpClient: HttpClient$3): (itemId: string) => Promise<DeleteProjectItemResponse & DeleteProjectItemResponseNonNullableFields>;
2120
- declare function bulkDeleteProjectItems(httpClient: HttpClient$3): (options: BulkDeleteProjectItemsOptions) => Promise<BulkDeleteProjectItemsResponse & BulkDeleteProjectItemsResponseNonNullableFields>;
2121
- declare function duplicateProjectItems(httpClient: HttpClient$3): (originProjectId: string, options: DuplicateProjectItemsOptions) => Promise<DuplicateProjectItemsResponse & DuplicateProjectItemsResponseNonNullableFields>;
2122
- declare const onProjectItemCreated: EventDefinition$2<ProjectItemCreatedEnvelope, "wix.portfolio.project_items.v1.project_item_created">;
2123
- declare const onProjectItemUpdated: EventDefinition$2<ProjectItemUpdatedEnvelope, "wix.portfolio.project_items.v1.project_item_updated">;
2124
- declare const onProjectItemDeleted: EventDefinition$2<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;
1775
+ declare const createProjectItem: ReturnType<typeof createRESTModule$3<typeof publicCreateProjectItem>>;
1776
+ declare const bulkCreateProjectItems: ReturnType<typeof createRESTModule$3<typeof publicBulkCreateProjectItems>>;
1777
+ declare const getProjectItem: ReturnType<typeof createRESTModule$3<typeof publicGetProjectItem>>;
1778
+ declare const listProjectItems: ReturnType<typeof createRESTModule$3<typeof publicListProjectItems>>;
1779
+ declare const updateProjectItem: ReturnType<typeof createRESTModule$3<typeof publicUpdateProjectItem>>;
1780
+ declare const bulkUpdateProjectItems: ReturnType<typeof createRESTModule$3<typeof publicBulkUpdateProjectItems>>;
1781
+ declare const deleteProjectItem: ReturnType<typeof createRESTModule$3<typeof publicDeleteProjectItem>>;
1782
+ declare const bulkDeleteProjectItems: ReturnType<typeof createRESTModule$3<typeof publicBulkDeleteProjectItems>>;
1783
+ declare const duplicateProjectItems: ReturnType<typeof createRESTModule$3<typeof publicDuplicateProjectItems>>;
1784
+ declare const onProjectItemCreated: ReturnType<typeof createEventModule$2<typeof publicOnProjectItemCreated>>;
1785
+ declare const onProjectItemUpdated: ReturnType<typeof createEventModule$2<typeof publicOnProjectItemUpdated>>;
1786
+ declare const onProjectItemDeleted: ReturnType<typeof createEventModule$2<typeof publicOnProjectItemDeleted>>;
2125
1787
 
2126
1788
  type index_d$3_BulkCreateProjectItemResult = BulkCreateProjectItemResult;
2127
1789
  type index_d$3_BulkCreateProjectItemsOptions = BulkCreateProjectItemsOptions;
@@ -2157,6 +1819,7 @@ type index_d$3_GetProjectItemResponse = GetProjectItemResponse;
2157
1819
  type index_d$3_GetProjectItemResponseNonNullableFields = GetProjectItemResponseNonNullableFields;
2158
1820
  type index_d$3_Item = Item;
2159
1821
  type index_d$3_ItemMetadataOneOf = ItemMetadataOneOf;
1822
+ type index_d$3_ItemNonNullableFields = ItemNonNullableFields;
2160
1823
  type index_d$3_Link = Link;
2161
1824
  type index_d$3_ListProjectItemsOptions = ListProjectItemsOptions;
2162
1825
  type index_d$3_ListProjectItemsRequest = ListProjectItemsRequest;
@@ -2189,7 +1852,7 @@ declare const index_d$3_onProjectItemDeleted: typeof onProjectItemDeleted;
2189
1852
  declare const index_d$3_onProjectItemUpdated: typeof onProjectItemUpdated;
2190
1853
  declare const index_d$3_updateProjectItem: typeof updateProjectItem;
2191
1854
  declare namespace index_d$3 {
2192
- 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_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$1 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 UndeleteInfo$2 as UndeleteInfo, 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, __metadata$3 as __metadata, 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, index_d$3_updateProjectItem as updateProjectItem };
1855
+ 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$2 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, 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, index_d$3_updateProjectItem as updateProjectItem };
2193
1856
  }
2194
1857
 
2195
1858
  /** Project is the main entity of ProjectsService */
@@ -2719,7 +2382,7 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
2719
2382
  slug?: string;
2720
2383
  /** ID of the entity associated with the event. */
2721
2384
  entityId?: string;
2722
- /** Event timestamp. */
2385
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2723
2386
  eventTime?: Date;
2724
2387
  /**
2725
2388
  * Whether the event was triggered as a result of a privacy regulation application
@@ -3097,352 +2760,118 @@ interface RestoreProjectFromTrashBinResponse {
3097
2760
  /** project that was restored from trash bin */
3098
2761
  project?: Project$1;
3099
2762
  }
2763
+ interface RestoreInfo$1 {
2764
+ deletedDate?: Date;
2765
+ }
2766
+ interface PointNonNullableFields$1 {
2767
+ x: number;
2768
+ y: number;
2769
+ }
2770
+ interface ImageNonNullableFields$1 {
2771
+ type: ImageType$1;
2772
+ imageInfo: string;
2773
+ focalPoint?: PointNonNullableFields$1;
2774
+ }
2775
+ interface VideoNonNullableFields$1 {
2776
+ videoInfo: string;
2777
+ }
2778
+ interface ProjectDetailNonNullableFields$1 {
2779
+ text: string;
2780
+ label: string;
2781
+ }
2782
+ interface ProjectSourceNonNullableFields$1 {
2783
+ appDefId: string;
2784
+ externalId: string;
2785
+ sourceName: string;
2786
+ syncStatus: SyncStatus$2;
2787
+ notEditableFields: string[];
2788
+ }
2789
+ interface TagNonNullableFields$1 {
2790
+ type: string;
2791
+ children: string;
2792
+ custom: boolean;
2793
+ disabled: boolean;
2794
+ }
2795
+ interface KeywordNonNullableFields$1 {
2796
+ term: string;
2797
+ isMain: boolean;
2798
+ }
2799
+ interface SettingsNonNullableFields$1 {
2800
+ preventAutoRedirect: boolean;
2801
+ keywords: KeywordNonNullableFields$1[];
2802
+ }
2803
+ interface SeoSchemaNonNullableFields$1 {
2804
+ tags: TagNonNullableFields$1[];
2805
+ settings?: SettingsNonNullableFields$1;
2806
+ }
2807
+ interface ProjectNonNullableFields$1 {
2808
+ coverImage?: ImageNonNullableFields$1;
2809
+ coverVideo?: VideoNonNullableFields$1;
2810
+ collectionIds: string[];
2811
+ details: ProjectDetailNonNullableFields$1[];
2812
+ source?: ProjectSourceNonNullableFields$1;
2813
+ url: string;
2814
+ seoData?: SeoSchemaNonNullableFields$1;
2815
+ }
2816
+ interface ProjectSlugNonNullableFields {
2817
+ projectId: string;
2818
+ slug: string;
2819
+ }
3100
2820
  interface GetProjectPageDataResponseNonNullableFields {
3101
- project?: {
3102
- coverImage?: {
3103
- imageInfo: string;
3104
- focalPoint?: {
3105
- x: number;
3106
- y: number;
3107
- };
3108
- };
3109
- coverVideo?: {
3110
- videoInfo: string;
3111
- };
3112
- collectionIds: string[];
3113
- details: {
3114
- text: string;
3115
- label: string;
3116
- }[];
3117
- url: string;
3118
- seoData?: {
3119
- tags: {
3120
- type: string;
3121
- children: string;
3122
- custom: boolean;
3123
- disabled: boolean;
3124
- }[];
3125
- settings?: {
3126
- preventAutoRedirect: boolean;
3127
- keywords: {
3128
- term: string;
3129
- isMain: boolean;
3130
- }[];
3131
- };
3132
- };
3133
- };
3134
- previousProject?: {
3135
- projectId: string;
3136
- slug: string;
3137
- };
3138
- nextProject?: {
3139
- projectId: string;
3140
- slug: string;
3141
- };
2821
+ project?: ProjectNonNullableFields$1;
2822
+ previousProject?: ProjectSlugNonNullableFields;
2823
+ nextProject?: ProjectSlugNonNullableFields;
3142
2824
  }
3143
2825
  interface CreateProjectResponseNonNullableFields {
3144
- project?: {
3145
- coverImage?: {
3146
- imageInfo: string;
3147
- focalPoint?: {
3148
- x: number;
3149
- y: number;
3150
- };
3151
- };
3152
- coverVideo?: {
3153
- videoInfo: string;
3154
- };
3155
- collectionIds: string[];
3156
- details: {
3157
- text: string;
3158
- label: string;
3159
- }[];
3160
- url: string;
3161
- seoData?: {
3162
- tags: {
3163
- type: string;
3164
- children: string;
3165
- custom: boolean;
3166
- disabled: boolean;
3167
- }[];
3168
- settings?: {
3169
- preventAutoRedirect: boolean;
3170
- keywords: {
3171
- term: string;
3172
- isMain: boolean;
3173
- }[];
3174
- };
3175
- };
3176
- };
2826
+ project?: ProjectNonNullableFields$1;
3177
2827
  }
3178
2828
  interface GetProjectResponseNonNullableFields {
3179
- project?: {
3180
- coverImage?: {
3181
- imageInfo: string;
3182
- focalPoint?: {
3183
- x: number;
3184
- y: number;
3185
- };
3186
- };
3187
- coverVideo?: {
3188
- videoInfo: string;
3189
- };
3190
- collectionIds: string[];
3191
- details: {
3192
- text: string;
3193
- label: string;
3194
- }[];
3195
- url: string;
3196
- seoData?: {
3197
- tags: {
3198
- type: string;
3199
- children: string;
3200
- custom: boolean;
3201
- disabled: boolean;
3202
- }[];
3203
- settings?: {
3204
- preventAutoRedirect: boolean;
3205
- keywords: {
3206
- term: string;
3207
- isMain: boolean;
3208
- }[];
3209
- };
3210
- };
3211
- };
2829
+ project?: ProjectNonNullableFields$1;
3212
2830
  }
3213
2831
  interface ListProjectsResponseNonNullableFields {
3214
- projects: {
3215
- coverImage?: {
3216
- imageInfo: string;
3217
- focalPoint?: {
3218
- x: number;
3219
- y: number;
3220
- };
3221
- };
3222
- coverVideo?: {
3223
- videoInfo: string;
3224
- };
3225
- collectionIds: string[];
3226
- details: {
3227
- text: string;
3228
- label: string;
3229
- }[];
3230
- url: string;
3231
- seoData?: {
3232
- tags: {
3233
- type: string;
3234
- children: string;
3235
- custom: boolean;
3236
- disabled: boolean;
3237
- }[];
3238
- settings?: {
3239
- preventAutoRedirect: boolean;
3240
- keywords: {
3241
- term: string;
3242
- isMain: boolean;
3243
- }[];
3244
- };
3245
- };
3246
- }[];
2832
+ projects: ProjectNonNullableFields$1[];
3247
2833
  }
3248
2834
  interface UpdateProjectResponseNonNullableFields {
3249
- project?: {
3250
- coverImage?: {
3251
- imageInfo: string;
3252
- focalPoint?: {
3253
- x: number;
3254
- y: number;
3255
- };
3256
- };
3257
- coverVideo?: {
3258
- videoInfo: string;
3259
- };
3260
- collectionIds: string[];
3261
- details: {
3262
- text: string;
3263
- label: string;
3264
- }[];
3265
- url: string;
3266
- seoData?: {
3267
- tags: {
3268
- type: string;
3269
- children: string;
3270
- custom: boolean;
3271
- disabled: boolean;
3272
- }[];
3273
- settings?: {
3274
- preventAutoRedirect: boolean;
3275
- keywords: {
3276
- term: string;
3277
- isMain: boolean;
3278
- }[];
3279
- };
3280
- };
3281
- };
2835
+ project?: ProjectNonNullableFields$1;
2836
+ }
2837
+ interface ApplicationErrorNonNullableFields {
2838
+ code: string;
2839
+ description: string;
2840
+ }
2841
+ interface ItemMetadataNonNullableFields {
2842
+ originalIndex: number;
2843
+ success: boolean;
2844
+ error?: ApplicationErrorNonNullableFields;
2845
+ }
2846
+ interface BulkUpdateProjectsResultNonNullableFields {
2847
+ itemMetadata?: ItemMetadataNonNullableFields;
2848
+ project?: ProjectNonNullableFields$1;
2849
+ }
2850
+ interface BulkActionMetadataNonNullableFields {
2851
+ totalSuccesses: number;
2852
+ totalFailures: number;
2853
+ undetailedFailures: number;
3282
2854
  }
3283
2855
  interface BulkUpdateProjectsResponseNonNullableFields {
3284
- results: {
3285
- itemMetadata?: {
3286
- originalIndex: number;
3287
- success: boolean;
3288
- error?: {
3289
- code: string;
3290
- description: string;
3291
- };
3292
- };
3293
- project?: {
3294
- coverImage?: {
3295
- imageInfo: string;
3296
- focalPoint?: {
3297
- x: number;
3298
- y: number;
3299
- };
3300
- };
3301
- coverVideo?: {
3302
- videoInfo: string;
3303
- };
3304
- collectionIds: string[];
3305
- details: {
3306
- text: string;
3307
- label: string;
3308
- }[];
3309
- url: string;
3310
- seoData?: {
3311
- tags: {
3312
- type: string;
3313
- children: string;
3314
- custom: boolean;
3315
- disabled: boolean;
3316
- }[];
3317
- settings?: {
3318
- preventAutoRedirect: boolean;
3319
- keywords: {
3320
- term: string;
3321
- isMain: boolean;
3322
- }[];
3323
- };
3324
- };
3325
- };
3326
- }[];
3327
- bulkActionMetadata?: {
3328
- totalSuccesses: number;
3329
- totalFailures: number;
3330
- undetailedFailures: number;
3331
- };
2856
+ results: BulkUpdateProjectsResultNonNullableFields[];
2857
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
3332
2858
  }
3333
2859
  interface DeleteProjectResponseNonNullableFields {
3334
2860
  projectId: string;
3335
2861
  }
3336
2862
  interface QueryProjectsResponseNonNullableFields {
3337
- projects: {
3338
- coverImage?: {
3339
- imageInfo: string;
3340
- focalPoint?: {
3341
- x: number;
3342
- y: number;
3343
- };
3344
- };
3345
- coverVideo?: {
3346
- videoInfo: string;
3347
- };
3348
- collectionIds: string[];
3349
- details: {
3350
- text: string;
3351
- label: string;
3352
- }[];
3353
- url: string;
3354
- seoData?: {
3355
- tags: {
3356
- type: string;
3357
- children: string;
3358
- custom: boolean;
3359
- disabled: boolean;
3360
- }[];
3361
- settings?: {
3362
- preventAutoRedirect: boolean;
3363
- keywords: {
3364
- term: string;
3365
- isMain: boolean;
3366
- }[];
3367
- };
3368
- };
3369
- }[];
2863
+ projects: ProjectNonNullableFields$1[];
2864
+ }
2865
+ interface ProjectInCollectionNonNullableFields$1 {
2866
+ collectionId: string;
2867
+ project?: ProjectNonNullableFields$1;
3370
2868
  }
3371
2869
  interface UpdateProjectOrderInCollectionResponseNonNullableFields$1 {
3372
- projectInCollection?: {
3373
- collectionId: string;
3374
- project?: {
3375
- coverImage?: {
3376
- imageInfo: string;
3377
- focalPoint?: {
3378
- x: number;
3379
- y: number;
3380
- };
3381
- };
3382
- coverVideo?: {
3383
- videoInfo: string;
3384
- };
3385
- collectionIds: string[];
3386
- details: {
3387
- text: string;
3388
- label: string;
3389
- }[];
3390
- url: string;
3391
- seoData?: {
3392
- tags: {
3393
- type: string;
3394
- children: string;
3395
- custom: boolean;
3396
- disabled: boolean;
3397
- }[];
3398
- settings?: {
3399
- preventAutoRedirect: boolean;
3400
- keywords: {
3401
- term: string;
3402
- isMain: boolean;
3403
- }[];
3404
- };
3405
- };
3406
- };
3407
- };
2870
+ project?: ProjectInCollectionNonNullableFields$1;
2871
+ projectInCollection?: ProjectInCollectionNonNullableFields$1;
3408
2872
  }
3409
2873
  interface QueryProjectWithCollectionInfoResponseNonNullableFields {
3410
- projects: {
3411
- collectionId: string;
3412
- project?: {
3413
- coverImage?: {
3414
- imageInfo: string;
3415
- focalPoint?: {
3416
- x: number;
3417
- y: number;
3418
- };
3419
- };
3420
- coverVideo?: {
3421
- videoInfo: string;
3422
- };
3423
- collectionIds: string[];
3424
- details: {
3425
- text: string;
3426
- label: string;
3427
- }[];
3428
- url: string;
3429
- seoData?: {
3430
- tags: {
3431
- type: string;
3432
- children: string;
3433
- custom: boolean;
3434
- disabled: boolean;
3435
- }[];
3436
- settings?: {
3437
- preventAutoRedirect: boolean;
3438
- keywords: {
3439
- term: string;
3440
- isMain: boolean;
3441
- }[];
3442
- };
3443
- };
3444
- };
3445
- }[];
2874
+ projects: ProjectInCollectionNonNullableFields$1[];
3446
2875
  }
3447
2876
  interface BaseEventMetadata$1 {
3448
2877
  /** App instance ID. */
@@ -3471,7 +2900,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
3471
2900
  slug?: string;
3472
2901
  /** ID of the entity associated with the event. */
3473
2902
  entityId?: string;
3474
- /** Event timestamp. */
2903
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3475
2904
  eventTime?: Date;
3476
2905
  /**
3477
2906
  * Whether the event was triggered as a result of a privacy regulation application
@@ -3668,157 +3097,23 @@ interface QueryProjectsWithCollectionInfoOptions {
3668
3097
  includePageUrl?: boolean | null;
3669
3098
  }
3670
3099
 
3671
- interface HttpClient$2 {
3672
- request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
3673
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
3674
- }
3675
- type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
3676
- type HttpResponse$2<T = any> = {
3677
- data: T;
3678
- status: number;
3679
- statusText: string;
3680
- headers: any;
3681
- request?: any;
3682
- };
3683
- type RequestOptions$2<_TResponse = any, Data = any> = {
3684
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
3685
- url: string;
3686
- data?: Data;
3687
- params?: URLSearchParams;
3688
- } & APIMetadata$2;
3689
- type APIMetadata$2 = {
3690
- methodFqn?: string;
3691
- entityFqdn?: string;
3692
- packageName?: string;
3693
- };
3694
- type EventDefinition$1<Payload = unknown, Type extends string = string> = {
3695
- __type: 'event-definition';
3696
- type: Type;
3697
- isDomainEvent?: boolean;
3698
- transformations?: (envelope: unknown) => Payload;
3699
- __payload: Payload;
3700
- };
3701
- declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
3100
+ declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3702
3101
 
3703
- declare global {
3704
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
3705
- interface SymbolConstructor {
3706
- readonly observable: symbol;
3707
- }
3708
- }
3102
+ declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3709
3103
 
3710
- declare const __metadata$2: {
3711
- PACKAGE_NAME: string;
3712
- };
3713
- declare function getProjectPageData(httpClient: HttpClient$2): (identifiers: GetProjectPageDataIdentifiers) => Promise<GetProjectPageDataResponse & GetProjectPageDataResponseNonNullableFields>;
3714
- declare function createProject(httpClient: HttpClient$2): (project: Project$1) => Promise<Project$1 & {
3715
- coverImage?: {
3716
- imageInfo: string;
3717
- focalPoint?: {
3718
- x: number;
3719
- y: number;
3720
- } | undefined;
3721
- } | undefined;
3722
- coverVideo?: {
3723
- videoInfo: string;
3724
- } | undefined;
3725
- collectionIds: string[];
3726
- details: {
3727
- text: string;
3728
- label: string;
3729
- }[];
3730
- url: string;
3731
- seoData?: {
3732
- tags: {
3733
- type: string;
3734
- children: string;
3735
- custom: boolean;
3736
- disabled: boolean;
3737
- }[];
3738
- settings?: {
3739
- preventAutoRedirect: boolean;
3740
- keywords: {
3741
- term: string;
3742
- isMain: boolean;
3743
- }[];
3744
- } | undefined;
3745
- } | undefined;
3746
- }>;
3747
- declare function getProject(httpClient: HttpClient$2): (projectId: string, options?: GetProjectOptions) => Promise<Project$1 & {
3748
- coverImage?: {
3749
- imageInfo: string;
3750
- focalPoint?: {
3751
- x: number;
3752
- y: number;
3753
- } | undefined;
3754
- } | undefined;
3755
- coverVideo?: {
3756
- videoInfo: string;
3757
- } | undefined;
3758
- collectionIds: string[];
3759
- details: {
3760
- text: string;
3761
- label: string;
3762
- }[];
3763
- url: string;
3764
- seoData?: {
3765
- tags: {
3766
- type: string;
3767
- children: string;
3768
- custom: boolean;
3769
- disabled: boolean;
3770
- }[];
3771
- settings?: {
3772
- preventAutoRedirect: boolean;
3773
- keywords: {
3774
- term: string;
3775
- isMain: boolean;
3776
- }[];
3777
- } | undefined;
3778
- } | undefined;
3779
- }>;
3780
- declare function listProjects(httpClient: HttpClient$2): (options?: ListProjectsOptions) => Promise<ListProjectsResponse & ListProjectsResponseNonNullableFields>;
3781
- declare function updateProject(httpClient: HttpClient$2): (_id: string | null, project: UpdateProject) => Promise<Project$1 & {
3782
- coverImage?: {
3783
- imageInfo: string;
3784
- focalPoint?: {
3785
- x: number;
3786
- y: number;
3787
- } | undefined;
3788
- } | undefined;
3789
- coverVideo?: {
3790
- videoInfo: string;
3791
- } | undefined;
3792
- collectionIds: string[];
3793
- details: {
3794
- text: string;
3795
- label: string;
3796
- }[];
3797
- url: string;
3798
- seoData?: {
3799
- tags: {
3800
- type: string;
3801
- children: string;
3802
- custom: boolean;
3803
- disabled: boolean;
3804
- }[];
3805
- settings?: {
3806
- preventAutoRedirect: boolean;
3807
- keywords: {
3808
- term: string;
3809
- isMain: boolean;
3810
- }[];
3811
- } | undefined;
3812
- } | undefined;
3813
- }>;
3814
- declare function bulkUpdateProjects(httpClient: HttpClient$2): (options?: BulkUpdateProjectsOptions) => Promise<BulkUpdateProjectsResponse & BulkUpdateProjectsResponseNonNullableFields>;
3815
- declare function deleteProject(httpClient: HttpClient$2): (projectId: string) => Promise<DeleteProjectResponse & DeleteProjectResponseNonNullableFields>;
3816
- declare function queryProjects(httpClient: HttpClient$2): (options?: QueryProjectsOptions) => ProjectsQueryBuilder;
3817
- declare function updateProjectOrderInCollection$1(httpClient: HttpClient$2): (identifiers: UpdateProjectOrderInCollectionIdentifiers$1, sortOrder: number | null) => Promise<UpdateProjectOrderInCollectionResponse$1 & UpdateProjectOrderInCollectionResponseNonNullableFields$1>;
3818
- declare function queryProjectsWithCollectionInfo(httpClient: HttpClient$2): (query: QueryV2$1, options?: QueryProjectsWithCollectionInfoOptions) => Promise<QueryProjectWithCollectionInfoResponse & QueryProjectWithCollectionInfoResponseNonNullableFields>;
3819
- declare const onProjectCreated: EventDefinition$1<ProjectCreatedEnvelope, "wix.portfolio.projects.v1.project_created">;
3820
- declare const onProjectUpdated: EventDefinition$1<ProjectUpdatedEnvelope, "wix.portfolio.projects.v1.project_updated">;
3821
- declare const onProjectDeleted: EventDefinition$1<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
3104
+ declare const getProjectPageData: ReturnType<typeof createRESTModule$2<typeof publicGetProjectPageData>>;
3105
+ declare const createProject: ReturnType<typeof createRESTModule$2<typeof publicCreateProject>>;
3106
+ declare const getProject: ReturnType<typeof createRESTModule$2<typeof publicGetProject>>;
3107
+ declare const listProjects: ReturnType<typeof createRESTModule$2<typeof publicListProjects>>;
3108
+ declare const updateProject: ReturnType<typeof createRESTModule$2<typeof publicUpdateProject>>;
3109
+ declare const bulkUpdateProjects: ReturnType<typeof createRESTModule$2<typeof publicBulkUpdateProjects>>;
3110
+ declare const deleteProject: ReturnType<typeof createRESTModule$2<typeof publicDeleteProject>>;
3111
+ declare const queryProjects: ReturnType<typeof createRESTModule$2<typeof publicQueryProjects>>;
3112
+ declare const updateProjectOrderInCollection$1: ReturnType<typeof createRESTModule$2<typeof publicUpdateProjectOrderInCollection>>;
3113
+ declare const queryProjectsWithCollectionInfo: ReturnType<typeof createRESTModule$2<typeof publicQueryProjectsWithCollectionInfo>>;
3114
+ declare const onProjectCreated: ReturnType<typeof createEventModule$1<typeof publicOnProjectCreated>>;
3115
+ declare const onProjectUpdated: ReturnType<typeof createEventModule$1<typeof publicOnProjectUpdated>>;
3116
+ declare const onProjectDeleted: ReturnType<typeof createEventModule$1<typeof publicOnProjectDeleted>>;
3822
3117
 
3823
3118
  type index_d$2_App = App;
3824
3119
  type index_d$2_ApplicationError = ApplicationError;
@@ -3891,7 +3186,7 @@ declare const index_d$2_queryProjects: typeof queryProjects;
3891
3186
  declare const index_d$2_queryProjectsWithCollectionInfo: typeof queryProjectsWithCollectionInfo;
3892
3187
  declare const index_d$2_updateProject: typeof updateProject;
3893
3188
  declare namespace index_d$2 {
3894
- 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 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 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 UndeleteInfo$1 as UndeleteInfo, 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, __metadata$2 as __metadata, 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, index_d$2_queryProjects as queryProjects, index_d$2_queryProjectsWithCollectionInfo as queryProjectsWithCollectionInfo, index_d$2_updateProject as updateProject, updateProjectOrderInCollection$1 as updateProjectOrderInCollection };
3189
+ 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$1 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 UndeleteInfo$1 as UndeleteInfo, 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, 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, index_d$2_queryProjects as queryProjects, index_d$2_queryProjectsWithCollectionInfo as queryProjectsWithCollectionInfo, index_d$2_updateProject as updateProject, updateProjectOrderInCollection$1 as updateProjectOrderInCollection };
3895
3190
  }
3896
3191
 
3897
3192
  interface ProjectInCollection {
@@ -4327,81 +3622,66 @@ declare enum WebhookIdentityType$1 {
4327
3622
  WIX_USER = "WIX_USER",
4328
3623
  APP = "APP"
4329
3624
  }
3625
+ interface PointNonNullableFields {
3626
+ x: number;
3627
+ y: number;
3628
+ }
3629
+ interface ImageNonNullableFields {
3630
+ type: ImageType;
3631
+ imageInfo: string;
3632
+ focalPoint?: PointNonNullableFields;
3633
+ }
3634
+ interface VideoNonNullableFields {
3635
+ videoInfo: string;
3636
+ }
3637
+ interface ProjectDetailNonNullableFields {
3638
+ text: string;
3639
+ label: string;
3640
+ }
3641
+ interface ProjectSourceNonNullableFields {
3642
+ appDefId: string;
3643
+ externalId: string;
3644
+ sourceName: string;
3645
+ syncStatus: SyncStatus$1;
3646
+ notEditableFields: string[];
3647
+ }
3648
+ interface TagNonNullableFields {
3649
+ type: string;
3650
+ children: string;
3651
+ custom: boolean;
3652
+ disabled: boolean;
3653
+ }
3654
+ interface KeywordNonNullableFields {
3655
+ term: string;
3656
+ isMain: boolean;
3657
+ }
3658
+ interface SettingsNonNullableFields {
3659
+ preventAutoRedirect: boolean;
3660
+ keywords: KeywordNonNullableFields[];
3661
+ }
3662
+ interface SeoSchemaNonNullableFields {
3663
+ tags: TagNonNullableFields[];
3664
+ settings?: SettingsNonNullableFields;
3665
+ }
3666
+ interface ProjectNonNullableFields {
3667
+ coverImage?: ImageNonNullableFields;
3668
+ coverVideo?: VideoNonNullableFields;
3669
+ collectionIds: string[];
3670
+ details: ProjectDetailNonNullableFields[];
3671
+ source?: ProjectSourceNonNullableFields;
3672
+ url: string;
3673
+ seoData?: SeoSchemaNonNullableFields;
3674
+ }
3675
+ interface ProjectInCollectionNonNullableFields {
3676
+ collectionId: string;
3677
+ project?: ProjectNonNullableFields;
3678
+ }
4330
3679
  interface QueryProjectInCollectionsResponseNonNullableFields {
4331
- projectInCollections: {
4332
- collectionId: string;
4333
- project?: {
4334
- coverImage?: {
4335
- imageInfo: string;
4336
- focalPoint?: {
4337
- x: number;
4338
- y: number;
4339
- };
4340
- };
4341
- coverVideo?: {
4342
- videoInfo: string;
4343
- };
4344
- collectionIds: string[];
4345
- details: {
4346
- text: string;
4347
- label: string;
4348
- }[];
4349
- url: string;
4350
- seoData?: {
4351
- tags: {
4352
- type: string;
4353
- children: string;
4354
- custom: boolean;
4355
- disabled: boolean;
4356
- }[];
4357
- settings?: {
4358
- preventAutoRedirect: boolean;
4359
- keywords: {
4360
- term: string;
4361
- isMain: boolean;
4362
- }[];
4363
- };
4364
- };
4365
- };
4366
- }[];
3680
+ projectInCollections: ProjectInCollectionNonNullableFields[];
4367
3681
  }
4368
3682
  interface UpdateProjectOrderInCollectionResponseNonNullableFields {
4369
- projectInCollection?: {
4370
- collectionId: string;
4371
- project?: {
4372
- coverImage?: {
4373
- imageInfo: string;
4374
- focalPoint?: {
4375
- x: number;
4376
- y: number;
4377
- };
4378
- };
4379
- coverVideo?: {
4380
- videoInfo: string;
4381
- };
4382
- collectionIds: string[];
4383
- details: {
4384
- text: string;
4385
- label: string;
4386
- }[];
4387
- url: string;
4388
- seoData?: {
4389
- tags: {
4390
- type: string;
4391
- children: string;
4392
- custom: boolean;
4393
- disabled: boolean;
4394
- }[];
4395
- settings?: {
4396
- preventAutoRedirect: boolean;
4397
- keywords: {
4398
- term: string;
4399
- isMain: boolean;
4400
- }[];
4401
- };
4402
- };
4403
- };
4404
- };
3683
+ project?: ProjectInCollectionNonNullableFields;
3684
+ projectInCollection?: ProjectInCollectionNonNullableFields;
4405
3685
  }
4406
3686
  interface BaseEventMetadata {
4407
3687
  /** App instance ID. */
@@ -4541,51 +3821,13 @@ interface UpdateProjectOrderInCollectionIdentifiers {
4541
3821
  collectionId: string;
4542
3822
  }
4543
3823
 
4544
- interface HttpClient$1 {
4545
- request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
4546
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
4547
- }
4548
- type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
4549
- type HttpResponse$1<T = any> = {
4550
- data: T;
4551
- status: number;
4552
- statusText: string;
4553
- headers: any;
4554
- request?: any;
4555
- };
4556
- type RequestOptions$1<_TResponse = any, Data = any> = {
4557
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
4558
- url: string;
4559
- data?: Data;
4560
- params?: URLSearchParams;
4561
- } & APIMetadata$1;
4562
- type APIMetadata$1 = {
4563
- methodFqn?: string;
4564
- entityFqdn?: string;
4565
- packageName?: string;
4566
- };
4567
- type EventDefinition<Payload = unknown, Type extends string = string> = {
4568
- __type: 'event-definition';
4569
- type: Type;
4570
- isDomainEvent?: boolean;
4571
- transformations?: (envelope: unknown) => Payload;
4572
- __payload: Payload;
4573
- };
4574
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
3824
+ declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
4575
3825
 
4576
- declare global {
4577
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
4578
- interface SymbolConstructor {
4579
- readonly observable: symbol;
4580
- }
4581
- }
3826
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
4582
3827
 
4583
- declare const __metadata$1: {
4584
- PACKAGE_NAME: string;
4585
- };
4586
- declare function queryProjectInCollections(httpClient: HttpClient$1): (options?: QueryProjectInCollectionsOptions) => ProjectInCollectionsQueryBuilder;
4587
- declare function updateProjectOrderInCollection(httpClient: HttpClient$1): (identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number | null) => Promise<UpdateProjectOrderInCollectionResponse & UpdateProjectOrderInCollectionResponseNonNullableFields>;
4588
- declare const onProjectInCollectionProjectOrderInCollectionUpdatedEvent: EventDefinition<ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope, "wix.portfolio.projects.v1.project_in_collection_project_order_in_collection_updated_event">;
3828
+ declare const queryProjectInCollections: ReturnType<typeof createRESTModule$1<typeof publicQueryProjectInCollections>>;
3829
+ declare const updateProjectOrderInCollection: ReturnType<typeof createRESTModule$1<typeof publicUpdateProjectOrderInCollection>>;
3830
+ declare const onProjectInCollectionProjectOrderInCollectionUpdatedEvent: ReturnType<typeof createEventModule<typeof publicOnProjectInCollectionProjectOrderInCollectionUpdatedEvent>>;
4589
3831
 
4590
3832
  type index_d$1_BaseEventMetadata = BaseEventMetadata;
4591
3833
  type index_d$1_DetailsLink = DetailsLink;
@@ -4630,7 +3872,7 @@ declare const index_d$1_onProjectInCollectionProjectOrderInCollectionUpdatedEven
4630
3872
  declare const index_d$1_queryProjectInCollections: typeof queryProjectInCollections;
4631
3873
  declare const index_d$1_updateProjectOrderInCollection: typeof updateProjectOrderInCollection;
4632
3874
  declare namespace index_d$1 {
4633
- 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 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_UndeleteInfo as UndeleteInfo, 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, __metadata$1 as __metadata, index_d$1_onProjectInCollectionProjectOrderInCollectionUpdatedEvent as onProjectInCollectionProjectOrderInCollectionUpdatedEvent, index_d$1_queryProjectInCollections as queryProjectInCollections, index_d$1_updateProjectOrderInCollection as updateProjectOrderInCollection };
3875
+ 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 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_UndeleteInfo as UndeleteInfo, 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, index_d$1_onProjectInCollectionProjectOrderInCollectionUpdatedEvent as onProjectInCollectionProjectOrderInCollectionUpdatedEvent, index_d$1_queryProjectInCollections as queryProjectInCollections, index_d$1_updateProjectOrderInCollection as updateProjectOrderInCollection };
4634
3876
  }
4635
3877
 
4636
3878
  interface SyncedProject {
@@ -5220,19 +4462,16 @@ declare enum WebhookIdentityType {
5220
4462
  WIX_USER = "WIX_USER",
5221
4463
  APP = "APP"
5222
4464
  }
4465
+ interface SyncedProjectNonNullableFields {
4466
+ externalId: string;
4467
+ mediaCount: number;
4468
+ status: SyncStatus;
4469
+ }
5223
4470
  interface GetProjectsResponseNonNullableFields {
5224
- projects: {
5225
- externalId: string;
5226
- mediaCount: number;
5227
- status: SyncStatus;
5228
- }[];
4471
+ projects: SyncedProjectNonNullableFields[];
5229
4472
  }
5230
4473
  interface SyncProjectResponseNonNullableFields {
5231
- project?: {
5232
- externalId: string;
5233
- mediaCount: number;
5234
- status: SyncStatus;
5235
- };
4474
+ project?: SyncedProjectNonNullableFields;
5236
4475
  }
5237
4476
  interface GetSyncStatusResponseNonNullableFields {
5238
4477
  appDefId: string;
@@ -5270,45 +4509,13 @@ interface StopSyncIdentifiers {
5270
4509
  externalId: string;
5271
4510
  }
5272
4511
 
5273
- interface HttpClient {
5274
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
5275
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
5276
- }
5277
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
5278
- type HttpResponse<T = any> = {
5279
- data: T;
5280
- status: number;
5281
- statusText: string;
5282
- headers: any;
5283
- request?: any;
5284
- };
5285
- type RequestOptions<_TResponse = any, Data = any> = {
5286
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
5287
- url: string;
5288
- data?: Data;
5289
- params?: URLSearchParams;
5290
- } & APIMetadata;
5291
- type APIMetadata = {
5292
- methodFqn?: string;
5293
- entityFqdn?: string;
5294
- packageName?: string;
5295
- };
5296
-
5297
- declare global {
5298
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5299
- interface SymbolConstructor {
5300
- readonly observable: symbol;
5301
- }
5302
- }
4512
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
5303
4513
 
5304
- declare const __metadata: {
5305
- PACKAGE_NAME: string;
5306
- };
5307
- declare function getProjects(httpClient: HttpClient): (appDefId: string, options?: GetProjectsOptions) => Promise<GetProjectsResponse & GetProjectsResponseNonNullableFields>;
5308
- declare function syncProject(httpClient: HttpClient): (identifiers: SyncProjectIdentifiers) => Promise<SyncProjectResponse & SyncProjectResponseNonNullableFields>;
5309
- declare function getSyncStatus(httpClient: HttpClient): (identifiers: GetSyncStatusIdentifiers) => Promise<GetSyncStatusResponse & GetSyncStatusResponseNonNullableFields>;
5310
- declare function stopSync(httpClient: HttpClient): (identifiers: StopSyncIdentifiers) => Promise<StopSyncResponse & StopSyncResponseNonNullableFields>;
5311
- declare function getLoginRedirectableUrl(httpClient: HttpClient): (appDefId: string) => Promise<GetLoginRedirectableUrlResponse & GetLoginRedirectableUrlResponseNonNullableFields>;
4514
+ declare const getProjects: ReturnType<typeof createRESTModule<typeof publicGetProjects>>;
4515
+ declare const syncProject: ReturnType<typeof createRESTModule<typeof publicSyncProject>>;
4516
+ declare const getSyncStatus: ReturnType<typeof createRESTModule<typeof publicGetSyncStatus>>;
4517
+ declare const stopSync: ReturnType<typeof createRESTModule<typeof publicStopSync>>;
4518
+ declare const getLoginRedirectableUrl: ReturnType<typeof createRESTModule<typeof publicGetLoginRedirectableUrl>>;
5312
4519
 
5313
4520
  type index_d_ActionEvent = ActionEvent;
5314
4521
  type index_d_Asset = Asset;
@@ -5386,14 +4593,13 @@ type index_d_SyncedProject = SyncedProject;
5386
4593
  type index_d_SyncingProjectEvent = SyncingProjectEvent;
5387
4594
  type index_d_WebhookIdentityType = WebhookIdentityType;
5388
4595
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
5389
- declare const index_d___metadata: typeof __metadata;
5390
4596
  declare const index_d_getLoginRedirectableUrl: typeof getLoginRedirectableUrl;
5391
4597
  declare const index_d_getProjects: typeof getProjects;
5392
4598
  declare const index_d_getSyncStatus: typeof getSyncStatus;
5393
4599
  declare const index_d_stopSync: typeof stopSync;
5394
4600
  declare const index_d_syncProject: typeof syncProject;
5395
4601
  declare namespace index_d {
5396
- 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___metadata as __metadata, 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 };
4602
+ 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 };
5397
4603
  }
5398
4604
 
5399
4605
  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 };