@wix/portfolio 1.0.70 → 1.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/context.d.ts +1 -0
- package/build/cjs/context.js +2 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +2 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +1 -0
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +1 -0
- package/build/es/meta.js.map +1 -1
- package/package.json +8 -8
- package/type-bundles/context.bundle.d.ts +529 -184
- package/type-bundles/index.bundle.d.ts +1419 -551
- package/type-bundles/meta.bundle.d.ts +479 -193
|
@@ -125,11 +125,11 @@ interface Settings$2 {
|
|
|
125
125
|
/** User-selected keyword terms for a specific page. */
|
|
126
126
|
keywords?: Keyword$2[];
|
|
127
127
|
}
|
|
128
|
-
interface DomainEvent$
|
|
129
|
-
createdEvent?: EntityCreatedEvent$
|
|
130
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
131
|
-
deletedEvent?: EntityDeletedEvent$
|
|
132
|
-
actionEvent?: ActionEvent$
|
|
128
|
+
interface DomainEvent$5 extends DomainEventBodyOneOf$5 {
|
|
129
|
+
createdEvent?: EntityCreatedEvent$5;
|
|
130
|
+
updatedEvent?: EntityUpdatedEvent$5;
|
|
131
|
+
deletedEvent?: EntityDeletedEvent$5;
|
|
132
|
+
actionEvent?: ActionEvent$5;
|
|
133
133
|
/**
|
|
134
134
|
* Unique event ID.
|
|
135
135
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -168,19 +168,19 @@ interface DomainEvent$4 extends DomainEventBodyOneOf$4 {
|
|
|
168
168
|
entityEventSequence?: string | null;
|
|
169
169
|
}
|
|
170
170
|
/** @oneof */
|
|
171
|
-
interface DomainEventBodyOneOf$
|
|
172
|
-
createdEvent?: EntityCreatedEvent$
|
|
173
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
174
|
-
deletedEvent?: EntityDeletedEvent$
|
|
175
|
-
actionEvent?: ActionEvent$
|
|
171
|
+
interface DomainEventBodyOneOf$5 {
|
|
172
|
+
createdEvent?: EntityCreatedEvent$5;
|
|
173
|
+
updatedEvent?: EntityUpdatedEvent$5;
|
|
174
|
+
deletedEvent?: EntityDeletedEvent$5;
|
|
175
|
+
actionEvent?: ActionEvent$5;
|
|
176
176
|
}
|
|
177
|
-
interface EntityCreatedEvent$
|
|
177
|
+
interface EntityCreatedEvent$5 {
|
|
178
178
|
entity?: string;
|
|
179
179
|
}
|
|
180
180
|
interface UndeleteInfo$4 {
|
|
181
181
|
deletedDate?: Date;
|
|
182
182
|
}
|
|
183
|
-
interface EntityUpdatedEvent$
|
|
183
|
+
interface EntityUpdatedEvent$5 {
|
|
184
184
|
/**
|
|
185
185
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
186
186
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -188,14 +188,14 @@ interface EntityUpdatedEvent$4 {
|
|
|
188
188
|
*/
|
|
189
189
|
currentEntity?: string;
|
|
190
190
|
}
|
|
191
|
-
interface EntityDeletedEvent$
|
|
191
|
+
interface EntityDeletedEvent$5 {
|
|
192
192
|
/** Entity that was deleted */
|
|
193
193
|
deletedEntity?: string | null;
|
|
194
194
|
}
|
|
195
|
-
interface ActionEvent$
|
|
195
|
+
interface ActionEvent$5 {
|
|
196
196
|
body?: string;
|
|
197
197
|
}
|
|
198
|
-
interface Empty$
|
|
198
|
+
interface Empty$3 {
|
|
199
199
|
}
|
|
200
200
|
interface AdminRemoveMenuItemsResponse {
|
|
201
201
|
/** number of items queried for deletion */
|
|
@@ -203,17 +203,17 @@ interface AdminRemoveMenuItemsResponse {
|
|
|
203
203
|
/** number of items sucessfully deleted */
|
|
204
204
|
numItemsSuccessfullyDeleted?: number;
|
|
205
205
|
}
|
|
206
|
-
interface MessageEnvelope$
|
|
206
|
+
interface MessageEnvelope$5 {
|
|
207
207
|
/** App instance ID. */
|
|
208
208
|
instanceId?: string | null;
|
|
209
209
|
/** Event type. */
|
|
210
210
|
eventType?: string;
|
|
211
211
|
/** The identification type and identity data. */
|
|
212
|
-
identity?: IdentificationData$
|
|
212
|
+
identity?: IdentificationData$5;
|
|
213
213
|
/** Stringify payload. */
|
|
214
214
|
data?: string;
|
|
215
215
|
}
|
|
216
|
-
interface IdentificationData$
|
|
216
|
+
interface IdentificationData$5 extends IdentificationDataIdOneOf$5 {
|
|
217
217
|
/** ID of a site visitor that has not logged in to the site. */
|
|
218
218
|
anonymousVisitorId?: string;
|
|
219
219
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -223,10 +223,10 @@ interface IdentificationData$4 extends IdentificationDataIdOneOf$4 {
|
|
|
223
223
|
/** ID of an app. */
|
|
224
224
|
appId?: string;
|
|
225
225
|
/** @readonly */
|
|
226
|
-
identityType?: WebhookIdentityType$
|
|
226
|
+
identityType?: WebhookIdentityType$5;
|
|
227
227
|
}
|
|
228
228
|
/** @oneof */
|
|
229
|
-
interface IdentificationDataIdOneOf$
|
|
229
|
+
interface IdentificationDataIdOneOf$5 {
|
|
230
230
|
/** ID of a site visitor that has not logged in to the site. */
|
|
231
231
|
anonymousVisitorId?: string;
|
|
232
232
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -236,7 +236,7 @@ interface IdentificationDataIdOneOf$4 {
|
|
|
236
236
|
/** ID of an app. */
|
|
237
237
|
appId?: string;
|
|
238
238
|
}
|
|
239
|
-
declare enum WebhookIdentityType$
|
|
239
|
+
declare enum WebhookIdentityType$5 {
|
|
240
240
|
UNKNOWN = "UNKNOWN",
|
|
241
241
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
242
242
|
MEMBER = "MEMBER",
|
|
@@ -320,11 +320,11 @@ interface GetCollectionResponse {
|
|
|
320
320
|
}
|
|
321
321
|
interface ListCollectionsRequest {
|
|
322
322
|
/** Maximum limit per response is 100, in first request cursor is None */
|
|
323
|
-
paging?: CursorPaging$
|
|
323
|
+
paging?: CursorPaging$4;
|
|
324
324
|
/** Include page url */
|
|
325
325
|
includePageUrl?: boolean | null;
|
|
326
326
|
}
|
|
327
|
-
interface CursorPaging$
|
|
327
|
+
interface CursorPaging$4 {
|
|
328
328
|
/** Maximum number of items to return in the results. */
|
|
329
329
|
limit?: number | null;
|
|
330
330
|
/**
|
|
@@ -339,9 +339,9 @@ interface ListCollectionsResponse {
|
|
|
339
339
|
/** Retrieved Collections */
|
|
340
340
|
collections?: Collection[];
|
|
341
341
|
/** Paging metadata */
|
|
342
|
-
metadata?: PagingMetadataV2$
|
|
342
|
+
metadata?: PagingMetadataV2$4;
|
|
343
343
|
}
|
|
344
|
-
interface PagingMetadataV2$
|
|
344
|
+
interface PagingMetadataV2$4 {
|
|
345
345
|
/** Number of items returned in the response. */
|
|
346
346
|
count?: number | null;
|
|
347
347
|
/** Offset that was requested. */
|
|
@@ -351,9 +351,9 @@ interface PagingMetadataV2$3 {
|
|
|
351
351
|
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
352
352
|
tooManyToCount?: boolean | null;
|
|
353
353
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
354
|
-
cursors?: Cursors$
|
|
354
|
+
cursors?: Cursors$4;
|
|
355
355
|
}
|
|
356
|
-
interface Cursors$
|
|
356
|
+
interface Cursors$4 {
|
|
357
357
|
/** Cursor string pointing to the next page in the list of results. */
|
|
358
358
|
next?: string | null;
|
|
359
359
|
/** Cursor pointing to the previous page in the list of results. */
|
|
@@ -385,7 +385,7 @@ interface QueryV2$3 extends QueryV2PagingMethodOneOf$3 {
|
|
|
385
385
|
/** Paging options to limit and skip the number of items. */
|
|
386
386
|
paging?: Paging$3;
|
|
387
387
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
388
|
-
cursorPaging?: CursorPaging$
|
|
388
|
+
cursorPaging?: CursorPaging$4;
|
|
389
389
|
/**
|
|
390
390
|
* Filter object in the following format:
|
|
391
391
|
* `"filter" : {
|
|
@@ -410,7 +410,7 @@ interface QueryV2PagingMethodOneOf$3 {
|
|
|
410
410
|
/** Paging options to limit and skip the number of items. */
|
|
411
411
|
paging?: Paging$3;
|
|
412
412
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
413
|
-
cursorPaging?: CursorPaging$
|
|
413
|
+
cursorPaging?: CursorPaging$4;
|
|
414
414
|
}
|
|
415
415
|
interface Sorting$3 {
|
|
416
416
|
/** Name of the field to sort by. */
|
|
@@ -432,7 +432,7 @@ interface QueryCollectionsResponse {
|
|
|
432
432
|
/** The retrieved Collections */
|
|
433
433
|
collections?: Collection[];
|
|
434
434
|
/** Paging metadata */
|
|
435
|
-
metadata?: PagingMetadataV2$
|
|
435
|
+
metadata?: PagingMetadataV2$4;
|
|
436
436
|
}
|
|
437
437
|
interface CreateCollectionResponseNonNullableFields {
|
|
438
438
|
collection?: {
|
|
@@ -578,7 +578,7 @@ interface BaseEventMetadata$3 {
|
|
|
578
578
|
/** Event type. */
|
|
579
579
|
eventType?: string;
|
|
580
580
|
/** The identification type and identity data. */
|
|
581
|
-
identity?: IdentificationData$
|
|
581
|
+
identity?: IdentificationData$5;
|
|
582
582
|
}
|
|
583
583
|
interface EventMetadata$3 extends BaseEventMetadata$3 {
|
|
584
584
|
/**
|
|
@@ -635,7 +635,7 @@ interface GetCollectionOptions {
|
|
|
635
635
|
}
|
|
636
636
|
interface ListCollectionsOptions {
|
|
637
637
|
/** Maximum limit per response is 100, in first request cursor is None */
|
|
638
|
-
paging?: CursorPaging$
|
|
638
|
+
paging?: CursorPaging$4;
|
|
639
639
|
/** Include page url */
|
|
640
640
|
includePageUrl?: boolean | null;
|
|
641
641
|
}
|
|
@@ -685,7 +685,7 @@ interface QueryCollectionsOptions {
|
|
|
685
685
|
includePageUrl?: boolean | null | undefined;
|
|
686
686
|
}
|
|
687
687
|
interface QueryCursorResult$2 {
|
|
688
|
-
cursors: Cursors$
|
|
688
|
+
cursors: Cursors$4;
|
|
689
689
|
hasNext: () => boolean;
|
|
690
690
|
hasPrev: () => boolean;
|
|
691
691
|
length: number;
|
|
@@ -762,41 +762,49 @@ interface CollectionsQueryBuilder {
|
|
|
762
762
|
find: () => Promise<CollectionsQueryResult>;
|
|
763
763
|
}
|
|
764
764
|
|
|
765
|
-
interface HttpClient {
|
|
766
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
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>;
|
|
767
768
|
}
|
|
768
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
769
|
-
type HttpResponse<T = any> = {
|
|
769
|
+
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
770
|
+
type HttpResponse$5<T = any> = {
|
|
770
771
|
data: T;
|
|
771
772
|
status: number;
|
|
772
773
|
statusText: string;
|
|
773
774
|
headers: any;
|
|
774
775
|
request?: any;
|
|
775
776
|
};
|
|
776
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
777
|
+
type RequestOptions$5<_TResponse = any, Data = any> = {
|
|
777
778
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
778
779
|
url: string;
|
|
779
780
|
data?: Data;
|
|
780
781
|
params?: URLSearchParams;
|
|
781
|
-
} & APIMetadata;
|
|
782
|
-
type APIMetadata = {
|
|
782
|
+
} & APIMetadata$5;
|
|
783
|
+
type APIMetadata$5 = {
|
|
783
784
|
methodFqn?: string;
|
|
784
785
|
entityFqdn?: string;
|
|
785
786
|
packageName?: string;
|
|
786
787
|
};
|
|
787
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
788
|
+
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
788
789
|
__type: 'event-definition';
|
|
789
790
|
type: Type;
|
|
790
791
|
isDomainEvent?: boolean;
|
|
791
|
-
transformations?: unknown;
|
|
792
|
+
transformations?: (envelope: unknown) => Payload;
|
|
792
793
|
__payload: Payload;
|
|
793
794
|
};
|
|
794
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
795
|
+
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
795
796
|
|
|
796
|
-
declare
|
|
797
|
+
declare global {
|
|
798
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
799
|
+
interface SymbolConstructor {
|
|
800
|
+
readonly observable: symbol;
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
declare const __metadata$5: {
|
|
797
805
|
PACKAGE_NAME: string;
|
|
798
806
|
};
|
|
799
|
-
declare function createCollection(httpClient: HttpClient): (collection: Collection) => Promise<Collection & {
|
|
807
|
+
declare function createCollection(httpClient: HttpClient$5): (collection: Collection) => Promise<Collection & {
|
|
800
808
|
coverImage?: {
|
|
801
809
|
imageInfo: string;
|
|
802
810
|
focalPoint?: {
|
|
@@ -821,7 +829,7 @@ declare function createCollection(httpClient: HttpClient): (collection: Collecti
|
|
|
821
829
|
} | undefined;
|
|
822
830
|
} | undefined;
|
|
823
831
|
}>;
|
|
824
|
-
declare function getCollection(httpClient: HttpClient): (collectionId: string, options?: GetCollectionOptions) => Promise<Collection & {
|
|
832
|
+
declare function getCollection(httpClient: HttpClient$5): (collectionId: string, options?: GetCollectionOptions) => Promise<Collection & {
|
|
825
833
|
coverImage?: {
|
|
826
834
|
imageInfo: string;
|
|
827
835
|
focalPoint?: {
|
|
@@ -846,8 +854,8 @@ declare function getCollection(httpClient: HttpClient): (collectionId: string, o
|
|
|
846
854
|
} | undefined;
|
|
847
855
|
} | undefined;
|
|
848
856
|
}>;
|
|
849
|
-
declare function listCollections(httpClient: HttpClient): (options?: ListCollectionsOptions) => Promise<ListCollectionsResponse & ListCollectionsResponseNonNullableFields>;
|
|
850
|
-
declare function updateCollection(httpClient: HttpClient): (_id: string | null, collection: UpdateCollection) => Promise<Collection & {
|
|
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 & {
|
|
851
859
|
coverImage?: {
|
|
852
860
|
imageInfo: string;
|
|
853
861
|
focalPoint?: {
|
|
@@ -872,52 +880,52 @@ declare function updateCollection(httpClient: HttpClient): (_id: string | null,
|
|
|
872
880
|
} | undefined;
|
|
873
881
|
} | undefined;
|
|
874
882
|
}>;
|
|
875
|
-
declare function deleteCollection(httpClient: HttpClient): (collectionId: string) => Promise<DeleteCollectionResponse & DeleteCollectionResponseNonNullableFields>;
|
|
876
|
-
declare function queryCollections(httpClient: HttpClient): (options?: QueryCollectionsOptions) => CollectionsQueryBuilder;
|
|
877
|
-
declare const onCollectionCreated: EventDefinition<CollectionCreatedEnvelope, "wix.portfolio.collections.v1.collection_created">;
|
|
878
|
-
declare const onCollectionUpdated: EventDefinition<CollectionUpdatedEnvelope, "wix.portfolio.collections.v1.collection_updated">;
|
|
879
|
-
declare const onCollectionDeleted: EventDefinition<CollectionDeletedEnvelope, "wix.portfolio.collections.v1.collection_deleted">;
|
|
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">;
|
|
880
888
|
|
|
881
|
-
type index_d$
|
|
882
|
-
type index_d$
|
|
883
|
-
type index_d$
|
|
884
|
-
type index_d$
|
|
885
|
-
type index_d$
|
|
886
|
-
type index_d$
|
|
887
|
-
type index_d$
|
|
888
|
-
type index_d$
|
|
889
|
-
type index_d$
|
|
890
|
-
type index_d$
|
|
891
|
-
type index_d$
|
|
892
|
-
type index_d$
|
|
893
|
-
type index_d$
|
|
894
|
-
type index_d$
|
|
895
|
-
type index_d$
|
|
896
|
-
type index_d$
|
|
897
|
-
type index_d$
|
|
898
|
-
type index_d$
|
|
899
|
-
type index_d$
|
|
900
|
-
type index_d$
|
|
901
|
-
type index_d$
|
|
902
|
-
type index_d$
|
|
903
|
-
type index_d$
|
|
904
|
-
type index_d$
|
|
905
|
-
type index_d$
|
|
906
|
-
type index_d$
|
|
907
|
-
type index_d$
|
|
908
|
-
type index_d$
|
|
909
|
-
type index_d$
|
|
910
|
-
declare const index_d$
|
|
911
|
-
declare const index_d$
|
|
912
|
-
declare const index_d$
|
|
913
|
-
declare const index_d$
|
|
914
|
-
declare const index_d$
|
|
915
|
-
declare const index_d$
|
|
916
|
-
declare const index_d$
|
|
917
|
-
declare const index_d$
|
|
918
|
-
declare const index_d$
|
|
919
|
-
declare namespace index_d$
|
|
920
|
-
export { type ActionEvent$
|
|
889
|
+
type index_d$5_AdminRemoveMenuItemsResponse = AdminRemoveMenuItemsResponse;
|
|
890
|
+
type index_d$5_Collection = Collection;
|
|
891
|
+
type index_d$5_CollectionCreatedEnvelope = CollectionCreatedEnvelope;
|
|
892
|
+
type index_d$5_CollectionDeletedEnvelope = CollectionDeletedEnvelope;
|
|
893
|
+
type index_d$5_CollectionUpdatedEnvelope = CollectionUpdatedEnvelope;
|
|
894
|
+
type index_d$5_CollectionsQueryBuilder = CollectionsQueryBuilder;
|
|
895
|
+
type index_d$5_CollectionsQueryResult = CollectionsQueryResult;
|
|
896
|
+
type index_d$5_CreateCollectionRequest = CreateCollectionRequest;
|
|
897
|
+
type index_d$5_CreateCollectionResponse = CreateCollectionResponse;
|
|
898
|
+
type index_d$5_CreateCollectionResponseNonNullableFields = CreateCollectionResponseNonNullableFields;
|
|
899
|
+
type index_d$5_DeleteCollectionRequest = DeleteCollectionRequest;
|
|
900
|
+
type index_d$5_DeleteCollectionResponse = DeleteCollectionResponse;
|
|
901
|
+
type index_d$5_DeleteCollectionResponseNonNullableFields = DeleteCollectionResponseNonNullableFields;
|
|
902
|
+
type index_d$5_GetCollectionOptions = GetCollectionOptions;
|
|
903
|
+
type index_d$5_GetCollectionRequest = GetCollectionRequest;
|
|
904
|
+
type index_d$5_GetCollectionResponse = GetCollectionResponse;
|
|
905
|
+
type index_d$5_GetCollectionResponseNonNullableFields = GetCollectionResponseNonNullableFields;
|
|
906
|
+
type index_d$5_ListCollectionsOptions = ListCollectionsOptions;
|
|
907
|
+
type index_d$5_ListCollectionsRequest = ListCollectionsRequest;
|
|
908
|
+
type index_d$5_ListCollectionsResponse = ListCollectionsResponse;
|
|
909
|
+
type index_d$5_ListCollectionsResponseNonNullableFields = ListCollectionsResponseNonNullableFields;
|
|
910
|
+
type index_d$5_QueryCollectionsOptions = QueryCollectionsOptions;
|
|
911
|
+
type index_d$5_QueryCollectionsRequest = QueryCollectionsRequest;
|
|
912
|
+
type index_d$5_QueryCollectionsResponse = QueryCollectionsResponse;
|
|
913
|
+
type index_d$5_QueryCollectionsResponseNonNullableFields = QueryCollectionsResponseNonNullableFields;
|
|
914
|
+
type index_d$5_UpdateCollection = UpdateCollection;
|
|
915
|
+
type index_d$5_UpdateCollectionRequest = UpdateCollectionRequest;
|
|
916
|
+
type index_d$5_UpdateCollectionResponse = UpdateCollectionResponse;
|
|
917
|
+
type index_d$5_UpdateCollectionResponseNonNullableFields = UpdateCollectionResponseNonNullableFields;
|
|
918
|
+
declare const index_d$5_createCollection: typeof createCollection;
|
|
919
|
+
declare const index_d$5_deleteCollection: typeof deleteCollection;
|
|
920
|
+
declare const index_d$5_getCollection: typeof getCollection;
|
|
921
|
+
declare const index_d$5_listCollections: typeof listCollections;
|
|
922
|
+
declare const index_d$5_onCollectionCreated: typeof onCollectionCreated;
|
|
923
|
+
declare const index_d$5_onCollectionDeleted: typeof onCollectionDeleted;
|
|
924
|
+
declare const index_d$5_onCollectionUpdated: typeof onCollectionUpdated;
|
|
925
|
+
declare const index_d$5_queryCollections: typeof queryCollections;
|
|
926
|
+
declare const index_d$5_updateCollection: typeof updateCollection;
|
|
927
|
+
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 };
|
|
921
929
|
}
|
|
922
930
|
|
|
923
931
|
interface PortfolioSettings {
|
|
@@ -978,11 +986,11 @@ interface UpdatePortfolioSettingsResponse {
|
|
|
978
986
|
/** The updated portfolio settings */
|
|
979
987
|
updatedPortfolioSettings?: PortfolioSettings;
|
|
980
988
|
}
|
|
981
|
-
interface DomainEvent$
|
|
982
|
-
createdEvent?: EntityCreatedEvent$
|
|
983
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
984
|
-
deletedEvent?: EntityDeletedEvent$
|
|
985
|
-
actionEvent?: ActionEvent$
|
|
989
|
+
interface DomainEvent$4 extends DomainEventBodyOneOf$4 {
|
|
990
|
+
createdEvent?: EntityCreatedEvent$4;
|
|
991
|
+
updatedEvent?: EntityUpdatedEvent$4;
|
|
992
|
+
deletedEvent?: EntityDeletedEvent$4;
|
|
993
|
+
actionEvent?: ActionEvent$4;
|
|
986
994
|
/**
|
|
987
995
|
* Unique event ID.
|
|
988
996
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -1021,19 +1029,19 @@ interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
|
1021
1029
|
entityEventSequence?: string | null;
|
|
1022
1030
|
}
|
|
1023
1031
|
/** @oneof */
|
|
1024
|
-
interface DomainEventBodyOneOf$
|
|
1025
|
-
createdEvent?: EntityCreatedEvent$
|
|
1026
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
1027
|
-
deletedEvent?: EntityDeletedEvent$
|
|
1028
|
-
actionEvent?: ActionEvent$
|
|
1032
|
+
interface DomainEventBodyOneOf$4 {
|
|
1033
|
+
createdEvent?: EntityCreatedEvent$4;
|
|
1034
|
+
updatedEvent?: EntityUpdatedEvent$4;
|
|
1035
|
+
deletedEvent?: EntityDeletedEvent$4;
|
|
1036
|
+
actionEvent?: ActionEvent$4;
|
|
1029
1037
|
}
|
|
1030
|
-
interface EntityCreatedEvent$
|
|
1038
|
+
interface EntityCreatedEvent$4 {
|
|
1031
1039
|
entity?: string;
|
|
1032
1040
|
}
|
|
1033
1041
|
interface UndeleteInfo$3 {
|
|
1034
1042
|
deletedDate?: Date;
|
|
1035
1043
|
}
|
|
1036
|
-
interface EntityUpdatedEvent$
|
|
1044
|
+
interface EntityUpdatedEvent$4 {
|
|
1037
1045
|
/**
|
|
1038
1046
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1039
1047
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -1041,24 +1049,24 @@ interface EntityUpdatedEvent$3 {
|
|
|
1041
1049
|
*/
|
|
1042
1050
|
currentEntity?: string;
|
|
1043
1051
|
}
|
|
1044
|
-
interface EntityDeletedEvent$
|
|
1052
|
+
interface EntityDeletedEvent$4 {
|
|
1045
1053
|
/** Entity that was deleted */
|
|
1046
1054
|
deletedEntity?: string | null;
|
|
1047
1055
|
}
|
|
1048
|
-
interface ActionEvent$
|
|
1056
|
+
interface ActionEvent$4 {
|
|
1049
1057
|
body?: string;
|
|
1050
1058
|
}
|
|
1051
|
-
interface MessageEnvelope$
|
|
1059
|
+
interface MessageEnvelope$4 {
|
|
1052
1060
|
/** App instance ID. */
|
|
1053
1061
|
instanceId?: string | null;
|
|
1054
1062
|
/** Event type. */
|
|
1055
1063
|
eventType?: string;
|
|
1056
1064
|
/** The identification type and identity data. */
|
|
1057
|
-
identity?: IdentificationData$
|
|
1065
|
+
identity?: IdentificationData$4;
|
|
1058
1066
|
/** Stringify payload. */
|
|
1059
1067
|
data?: string;
|
|
1060
1068
|
}
|
|
1061
|
-
interface IdentificationData$
|
|
1069
|
+
interface IdentificationData$4 extends IdentificationDataIdOneOf$4 {
|
|
1062
1070
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1063
1071
|
anonymousVisitorId?: string;
|
|
1064
1072
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -1068,10 +1076,10 @@ interface IdentificationData$3 extends IdentificationDataIdOneOf$3 {
|
|
|
1068
1076
|
/** ID of an app. */
|
|
1069
1077
|
appId?: string;
|
|
1070
1078
|
/** @readonly */
|
|
1071
|
-
identityType?: WebhookIdentityType$
|
|
1079
|
+
identityType?: WebhookIdentityType$4;
|
|
1072
1080
|
}
|
|
1073
1081
|
/** @oneof */
|
|
1074
|
-
interface IdentificationDataIdOneOf$
|
|
1082
|
+
interface IdentificationDataIdOneOf$4 {
|
|
1075
1083
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1076
1084
|
anonymousVisitorId?: string;
|
|
1077
1085
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -1081,7 +1089,7 @@ interface IdentificationDataIdOneOf$3 {
|
|
|
1081
1089
|
/** ID of an app. */
|
|
1082
1090
|
appId?: string;
|
|
1083
1091
|
}
|
|
1084
|
-
declare enum WebhookIdentityType$
|
|
1092
|
+
declare enum WebhookIdentityType$4 {
|
|
1085
1093
|
UNKNOWN = "UNKNOWN",
|
|
1086
1094
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1087
1095
|
MEMBER = "MEMBER",
|
|
@@ -1113,40 +1121,71 @@ interface UpdatePortfolioSettingsResponseNonNullableFields {
|
|
|
1113
1121
|
};
|
|
1114
1122
|
}
|
|
1115
1123
|
|
|
1116
|
-
|
|
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>;
|
|
1127
|
+
}
|
|
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
|
+
|
|
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
|
+
}
|
|
1154
|
+
|
|
1155
|
+
declare const __metadata$4: {
|
|
1117
1156
|
PACKAGE_NAME: string;
|
|
1118
1157
|
};
|
|
1119
|
-
declare function createPortfolioSettings(httpClient: HttpClient): (portfolioSettings: PortfolioSettings) => Promise<PortfolioSettings & {
|
|
1158
|
+
declare function createPortfolioSettings(httpClient: HttpClient$4): (portfolioSettings: PortfolioSettings) => Promise<PortfolioSettings & {
|
|
1120
1159
|
projectItemSettings?: {
|
|
1121
1160
|
addItemDirection: AddItemDirection;
|
|
1122
1161
|
defaultItemName: DefaultItemName;
|
|
1123
1162
|
} | undefined;
|
|
1124
1163
|
}>;
|
|
1125
|
-
declare function getPortfolioSettings(httpClient: HttpClient): () => Promise<GetPortfolioSettingsResponse & GetPortfolioSettingsResponseNonNullableFields>;
|
|
1126
|
-
declare function updatePortfolioSettings(httpClient: HttpClient): (portfolioSettings: PortfolioSettings) => Promise<UpdatePortfolioSettingsResponse & UpdatePortfolioSettingsResponseNonNullableFields>;
|
|
1164
|
+
declare function getPortfolioSettings(httpClient: HttpClient$4): () => Promise<GetPortfolioSettingsResponse & GetPortfolioSettingsResponseNonNullableFields>;
|
|
1165
|
+
declare function updatePortfolioSettings(httpClient: HttpClient$4): (portfolioSettings: PortfolioSettings) => Promise<UpdatePortfolioSettingsResponse & UpdatePortfolioSettingsResponseNonNullableFields>;
|
|
1127
1166
|
|
|
1128
|
-
type index_d$
|
|
1129
|
-
declare const index_d$
|
|
1130
|
-
type index_d$
|
|
1131
|
-
type index_d$
|
|
1132
|
-
type index_d$
|
|
1133
|
-
type index_d$
|
|
1134
|
-
declare const index_d$
|
|
1135
|
-
type index_d$
|
|
1136
|
-
type index_d$
|
|
1137
|
-
type index_d$
|
|
1138
|
-
type index_d$
|
|
1139
|
-
type index_d$
|
|
1140
|
-
type index_d$
|
|
1141
|
-
type index_d$
|
|
1142
|
-
type index_d$
|
|
1143
|
-
type index_d$
|
|
1144
|
-
type index_d$
|
|
1145
|
-
declare const index_d$
|
|
1146
|
-
declare const index_d$
|
|
1147
|
-
declare const index_d$
|
|
1148
|
-
declare namespace index_d$
|
|
1149
|
-
export { type ActionEvent$
|
|
1167
|
+
type index_d$4_AddItemDirection = AddItemDirection;
|
|
1168
|
+
declare const index_d$4_AddItemDirection: typeof AddItemDirection;
|
|
1169
|
+
type index_d$4_CreatePortfolioSettingsRequest = CreatePortfolioSettingsRequest;
|
|
1170
|
+
type index_d$4_CreatePortfolioSettingsResponse = CreatePortfolioSettingsResponse;
|
|
1171
|
+
type index_d$4_CreatePortfolioSettingsResponseNonNullableFields = CreatePortfolioSettingsResponseNonNullableFields;
|
|
1172
|
+
type index_d$4_DefaultItemName = DefaultItemName;
|
|
1173
|
+
declare const index_d$4_DefaultItemName: typeof DefaultItemName;
|
|
1174
|
+
type index_d$4_GetPortfolioSettingsRequest = GetPortfolioSettingsRequest;
|
|
1175
|
+
type index_d$4_GetPortfolioSettingsResponse = GetPortfolioSettingsResponse;
|
|
1176
|
+
type index_d$4_GetPortfolioSettingsResponseNonNullableFields = GetPortfolioSettingsResponseNonNullableFields;
|
|
1177
|
+
type index_d$4_MediaSettings = MediaSettings;
|
|
1178
|
+
type index_d$4_PortfolioSettings = PortfolioSettings;
|
|
1179
|
+
type index_d$4_ProjectItemSettings = ProjectItemSettings;
|
|
1180
|
+
type index_d$4_SiteMenuSettings = SiteMenuSettings;
|
|
1181
|
+
type index_d$4_UpdatePortfolioSettingsRequest = UpdatePortfolioSettingsRequest;
|
|
1182
|
+
type index_d$4_UpdatePortfolioSettingsResponse = UpdatePortfolioSettingsResponse;
|
|
1183
|
+
type index_d$4_UpdatePortfolioSettingsResponseNonNullableFields = UpdatePortfolioSettingsResponseNonNullableFields;
|
|
1184
|
+
declare const index_d$4_createPortfolioSettings: typeof createPortfolioSettings;
|
|
1185
|
+
declare const index_d$4_getPortfolioSettings: typeof getPortfolioSettings;
|
|
1186
|
+
declare const index_d$4_updatePortfolioSettings: typeof updatePortfolioSettings;
|
|
1187
|
+
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 };
|
|
1150
1189
|
}
|
|
1151
1190
|
|
|
1152
1191
|
/** ProjectItem is the main entity of ProjectItemsService */
|
|
@@ -1285,7 +1324,7 @@ interface Link {
|
|
|
1285
1324
|
}
|
|
1286
1325
|
interface GenerateTokenForProjectItemsRequest {
|
|
1287
1326
|
/** Media ids of requested project items */
|
|
1288
|
-
mediaIds
|
|
1327
|
+
mediaIds?: string[];
|
|
1289
1328
|
}
|
|
1290
1329
|
interface GenerateTokenForProjectItemsResponse {
|
|
1291
1330
|
/** Generated media tokens for project items */
|
|
@@ -1297,11 +1336,11 @@ interface ProjectItemMediaToken {
|
|
|
1297
1336
|
/** Generated media token for project item */
|
|
1298
1337
|
mediaToken?: string;
|
|
1299
1338
|
}
|
|
1300
|
-
interface DomainEvent$
|
|
1301
|
-
createdEvent?: EntityCreatedEvent$
|
|
1302
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
1303
|
-
deletedEvent?: EntityDeletedEvent$
|
|
1304
|
-
actionEvent?: ActionEvent$
|
|
1339
|
+
interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
1340
|
+
createdEvent?: EntityCreatedEvent$3;
|
|
1341
|
+
updatedEvent?: EntityUpdatedEvent$3;
|
|
1342
|
+
deletedEvent?: EntityDeletedEvent$3;
|
|
1343
|
+
actionEvent?: ActionEvent$3;
|
|
1305
1344
|
/**
|
|
1306
1345
|
* Unique event ID.
|
|
1307
1346
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -1340,19 +1379,19 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
|
1340
1379
|
entityEventSequence?: string | null;
|
|
1341
1380
|
}
|
|
1342
1381
|
/** @oneof */
|
|
1343
|
-
interface DomainEventBodyOneOf$
|
|
1344
|
-
createdEvent?: EntityCreatedEvent$
|
|
1345
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
1346
|
-
deletedEvent?: EntityDeletedEvent$
|
|
1347
|
-
actionEvent?: ActionEvent$
|
|
1382
|
+
interface DomainEventBodyOneOf$3 {
|
|
1383
|
+
createdEvent?: EntityCreatedEvent$3;
|
|
1384
|
+
updatedEvent?: EntityUpdatedEvent$3;
|
|
1385
|
+
deletedEvent?: EntityDeletedEvent$3;
|
|
1386
|
+
actionEvent?: ActionEvent$3;
|
|
1348
1387
|
}
|
|
1349
|
-
interface EntityCreatedEvent$
|
|
1388
|
+
interface EntityCreatedEvent$3 {
|
|
1350
1389
|
entity?: string;
|
|
1351
1390
|
}
|
|
1352
|
-
interface
|
|
1391
|
+
interface RestoreInfo$1 {
|
|
1353
1392
|
deletedDate?: Date;
|
|
1354
1393
|
}
|
|
1355
|
-
interface EntityUpdatedEvent$
|
|
1394
|
+
interface EntityUpdatedEvent$3 {
|
|
1356
1395
|
/**
|
|
1357
1396
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1358
1397
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -1360,24 +1399,24 @@ interface EntityUpdatedEvent$2 {
|
|
|
1360
1399
|
*/
|
|
1361
1400
|
currentEntity?: string;
|
|
1362
1401
|
}
|
|
1363
|
-
interface EntityDeletedEvent$
|
|
1402
|
+
interface EntityDeletedEvent$3 {
|
|
1364
1403
|
/** Entity that was deleted */
|
|
1365
1404
|
deletedEntity?: string | null;
|
|
1366
1405
|
}
|
|
1367
|
-
interface ActionEvent$
|
|
1406
|
+
interface ActionEvent$3 {
|
|
1368
1407
|
body?: string;
|
|
1369
1408
|
}
|
|
1370
|
-
interface MessageEnvelope$
|
|
1409
|
+
interface MessageEnvelope$3 {
|
|
1371
1410
|
/** App instance ID. */
|
|
1372
1411
|
instanceId?: string | null;
|
|
1373
1412
|
/** Event type. */
|
|
1374
1413
|
eventType?: string;
|
|
1375
1414
|
/** The identification type and identity data. */
|
|
1376
|
-
identity?: IdentificationData$
|
|
1415
|
+
identity?: IdentificationData$3;
|
|
1377
1416
|
/** Stringify payload. */
|
|
1378
1417
|
data?: string;
|
|
1379
1418
|
}
|
|
1380
|
-
interface IdentificationData$
|
|
1419
|
+
interface IdentificationData$3 extends IdentificationDataIdOneOf$3 {
|
|
1381
1420
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1382
1421
|
anonymousVisitorId?: string;
|
|
1383
1422
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -1387,10 +1426,10 @@ interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
|
|
|
1387
1426
|
/** ID of an app. */
|
|
1388
1427
|
appId?: string;
|
|
1389
1428
|
/** @readonly */
|
|
1390
|
-
identityType?: WebhookIdentityType$
|
|
1429
|
+
identityType?: WebhookIdentityType$3;
|
|
1391
1430
|
}
|
|
1392
1431
|
/** @oneof */
|
|
1393
|
-
interface IdentificationDataIdOneOf$
|
|
1432
|
+
interface IdentificationDataIdOneOf$3 {
|
|
1394
1433
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1395
1434
|
anonymousVisitorId?: string;
|
|
1396
1435
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -1400,7 +1439,7 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
1400
1439
|
/** ID of an app. */
|
|
1401
1440
|
appId?: string;
|
|
1402
1441
|
}
|
|
1403
|
-
declare enum WebhookIdentityType$
|
|
1442
|
+
declare enum WebhookIdentityType$3 {
|
|
1404
1443
|
UNKNOWN = "UNKNOWN",
|
|
1405
1444
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1406
1445
|
MEMBER = "MEMBER",
|
|
@@ -1542,11 +1581,11 @@ interface ListProjectItemsResponse {
|
|
|
1542
1581
|
* Paging metadata
|
|
1543
1582
|
* @deprecated
|
|
1544
1583
|
*/
|
|
1545
|
-
pagingMetadataV2?: PagingMetadataV2$
|
|
1584
|
+
pagingMetadataV2?: PagingMetadataV2$3;
|
|
1546
1585
|
/** Paging metadata */
|
|
1547
|
-
metadata?: PagingMetadataV2$
|
|
1586
|
+
metadata?: PagingMetadataV2$3;
|
|
1548
1587
|
}
|
|
1549
|
-
interface PagingMetadataV2$
|
|
1588
|
+
interface PagingMetadataV2$3 {
|
|
1550
1589
|
/** Number of items returned in the response. */
|
|
1551
1590
|
count?: number | null;
|
|
1552
1591
|
/** Offset that was requested. */
|
|
@@ -1556,9 +1595,9 @@ interface PagingMetadataV2$2 {
|
|
|
1556
1595
|
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
1557
1596
|
tooManyToCount?: boolean | null;
|
|
1558
1597
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
1559
|
-
cursors?: Cursors$
|
|
1598
|
+
cursors?: Cursors$3;
|
|
1560
1599
|
}
|
|
1561
|
-
interface Cursors$
|
|
1600
|
+
interface Cursors$3 {
|
|
1562
1601
|
/** Cursor string pointing to the next page in the list of results. */
|
|
1563
1602
|
next?: string | null;
|
|
1564
1603
|
/** Cursor pointing to the previous page in the list of results. */
|
|
@@ -1572,7 +1611,7 @@ interface QueryV2$2 extends QueryV2PagingMethodOneOf$2 {
|
|
|
1572
1611
|
/** Paging options to limit and skip the number of items. */
|
|
1573
1612
|
paging?: Paging$2;
|
|
1574
1613
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1575
|
-
cursorPaging?: CursorPaging$
|
|
1614
|
+
cursorPaging?: CursorPaging$3;
|
|
1576
1615
|
/**
|
|
1577
1616
|
* Filter object in the following format:
|
|
1578
1617
|
* `"filter" : {
|
|
@@ -1597,7 +1636,7 @@ interface QueryV2PagingMethodOneOf$2 {
|
|
|
1597
1636
|
/** Paging options to limit and skip the number of items. */
|
|
1598
1637
|
paging?: Paging$2;
|
|
1599
1638
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1600
|
-
cursorPaging?: CursorPaging$
|
|
1639
|
+
cursorPaging?: CursorPaging$3;
|
|
1601
1640
|
}
|
|
1602
1641
|
interface Sorting$2 {
|
|
1603
1642
|
/** Name of the field to sort by. */
|
|
@@ -1609,7 +1648,7 @@ declare enum SortOrder$2 {
|
|
|
1609
1648
|
ASC = "ASC",
|
|
1610
1649
|
DESC = "DESC"
|
|
1611
1650
|
}
|
|
1612
|
-
interface CursorPaging$
|
|
1651
|
+
interface CursorPaging$3 {
|
|
1613
1652
|
/** Maximum number of items to return in the results. */
|
|
1614
1653
|
limit?: number | null;
|
|
1615
1654
|
/**
|
|
@@ -1624,7 +1663,7 @@ interface QueryProjectItemsResponse {
|
|
|
1624
1663
|
/** ProjectItems retrieved */
|
|
1625
1664
|
items?: Item[];
|
|
1626
1665
|
/** Paging metadata */
|
|
1627
|
-
metadata?: PagingMetadataV2$
|
|
1666
|
+
metadata?: PagingMetadataV2$3;
|
|
1628
1667
|
}
|
|
1629
1668
|
interface UpdateProjectItemRequest {
|
|
1630
1669
|
/** ProjectItem to be updated, may be partial */
|
|
@@ -1692,7 +1731,10 @@ interface CreateProjectGalleryResponse {
|
|
|
1692
1731
|
/** Id of created gallery */
|
|
1693
1732
|
galleryId?: string;
|
|
1694
1733
|
}
|
|
1695
|
-
interface
|
|
1734
|
+
interface UndeleteInfo$2 {
|
|
1735
|
+
deletedDate?: Date;
|
|
1736
|
+
}
|
|
1737
|
+
interface Empty$2 {
|
|
1696
1738
|
}
|
|
1697
1739
|
interface DeletedProjectRestored$1 {
|
|
1698
1740
|
/** the id of the project that was restored */
|
|
@@ -1712,12 +1754,6 @@ interface DuplicateProjectItemsResponse {
|
|
|
1712
1754
|
/** Result metadata */
|
|
1713
1755
|
bulkActionMetadata?: BulkActionMetadata$1;
|
|
1714
1756
|
}
|
|
1715
|
-
interface GenerateTokenForProjectItemsResponseNonNullableFields {
|
|
1716
|
-
mediaTokens: {
|
|
1717
|
-
mediaId: string;
|
|
1718
|
-
mediaToken: string;
|
|
1719
|
-
}[];
|
|
1720
|
-
}
|
|
1721
1757
|
interface CreateProjectItemResponseNonNullableFields {
|
|
1722
1758
|
item?: {
|
|
1723
1759
|
image?: {
|
|
@@ -1874,7 +1910,7 @@ interface BaseEventMetadata$2 {
|
|
|
1874
1910
|
/** Event type. */
|
|
1875
1911
|
eventType?: string;
|
|
1876
1912
|
/** The identification type and identity data. */
|
|
1877
|
-
identity?: IdentificationData$
|
|
1913
|
+
identity?: IdentificationData$3;
|
|
1878
1914
|
}
|
|
1879
1915
|
interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
1880
1916
|
/**
|
|
@@ -1996,11 +2032,49 @@ interface DuplicateProjectItemsOptions {
|
|
|
1996
2032
|
targetProjectId: string;
|
|
1997
2033
|
}
|
|
1998
2034
|
|
|
1999
|
-
|
|
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>;
|
|
2066
|
+
|
|
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
|
+
}
|
|
2073
|
+
|
|
2074
|
+
declare const __metadata$3: {
|
|
2000
2075
|
PACKAGE_NAME: string;
|
|
2001
2076
|
};
|
|
2002
|
-
declare function
|
|
2003
|
-
declare function createProjectItem(httpClient: HttpClient): (item: Item) => Promise<Item & {
|
|
2077
|
+
declare function createProjectItem(httpClient: HttpClient$3): (item: Item) => Promise<Item & {
|
|
2004
2078
|
image?: {
|
|
2005
2079
|
imageInfo: string;
|
|
2006
2080
|
focalPoint?: {
|
|
@@ -2013,8 +2087,8 @@ declare function createProjectItem(httpClient: HttpClient): (item: Item) => Prom
|
|
|
2013
2087
|
} | undefined;
|
|
2014
2088
|
type: Type;
|
|
2015
2089
|
}>;
|
|
2016
|
-
declare function bulkCreateProjectItems(httpClient: HttpClient): (options?: BulkCreateProjectItemsOptions) => Promise<BulkCreateProjectItemsResponse & BulkCreateProjectItemsResponseNonNullableFields>;
|
|
2017
|
-
declare function getProjectItem(httpClient: HttpClient): (itemId: string) => Promise<Item & {
|
|
2090
|
+
declare function bulkCreateProjectItems(httpClient: HttpClient$3): (options?: BulkCreateProjectItemsOptions) => Promise<BulkCreateProjectItemsResponse & BulkCreateProjectItemsResponseNonNullableFields>;
|
|
2091
|
+
declare function getProjectItem(httpClient: HttpClient$3): (itemId: string) => Promise<Item & {
|
|
2018
2092
|
image?: {
|
|
2019
2093
|
imageInfo: string;
|
|
2020
2094
|
focalPoint?: {
|
|
@@ -2027,8 +2101,8 @@ declare function getProjectItem(httpClient: HttpClient): (itemId: string) => Pro
|
|
|
2027
2101
|
} | undefined;
|
|
2028
2102
|
type: Type;
|
|
2029
2103
|
}>;
|
|
2030
|
-
declare function listProjectItems(httpClient: HttpClient): (projectId: string, options?: ListProjectItemsOptions) => Promise<ListProjectItemsResponse & ListProjectItemsResponseNonNullableFields>;
|
|
2031
|
-
declare function updateProjectItem(httpClient: HttpClient): (_id: string | null, item: UpdateProjectItem) => Promise<Item & {
|
|
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 & {
|
|
2032
2106
|
image?: {
|
|
2033
2107
|
imageInfo: string;
|
|
2034
2108
|
focalPoint?: {
|
|
@@ -2041,83 +2115,81 @@ declare function updateProjectItem(httpClient: HttpClient): (_id: string | null,
|
|
|
2041
2115
|
} | undefined;
|
|
2042
2116
|
type: Type;
|
|
2043
2117
|
}>;
|
|
2044
|
-
declare function bulkUpdateProjectItems(httpClient: HttpClient): (options?: BulkUpdateProjectItemsOptions) => Promise<BulkUpdateProjectItemsResponse & BulkUpdateProjectItemsResponseNonNullableFields>;
|
|
2045
|
-
declare function deleteProjectItem(httpClient: HttpClient): (itemId: string) => Promise<DeleteProjectItemResponse & DeleteProjectItemResponseNonNullableFields>;
|
|
2046
|
-
declare function bulkDeleteProjectItems(httpClient: HttpClient): (options: BulkDeleteProjectItemsOptions) => Promise<BulkDeleteProjectItemsResponse & BulkDeleteProjectItemsResponseNonNullableFields>;
|
|
2047
|
-
declare function duplicateProjectItems(httpClient: HttpClient): (originProjectId: string, options: DuplicateProjectItemsOptions) => Promise<DuplicateProjectItemsResponse & DuplicateProjectItemsResponseNonNullableFields>;
|
|
2048
|
-
declare const onProjectItemCreated: EventDefinition<ProjectItemCreatedEnvelope, "wix.portfolio.project_items.v1.project_item_created">;
|
|
2049
|
-
declare const onProjectItemUpdated: EventDefinition<ProjectItemUpdatedEnvelope, "wix.portfolio.project_items.v1.project_item_updated">;
|
|
2050
|
-
declare const onProjectItemDeleted: EventDefinition<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;
|
|
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">;
|
|
2051
2125
|
|
|
2052
|
-
type index_d$
|
|
2053
|
-
type index_d$
|
|
2054
|
-
type index_d$
|
|
2055
|
-
type index_d$
|
|
2056
|
-
type index_d$
|
|
2057
|
-
type index_d$
|
|
2058
|
-
type index_d$
|
|
2059
|
-
type index_d$
|
|
2060
|
-
type index_d$
|
|
2061
|
-
type index_d$
|
|
2062
|
-
type index_d$
|
|
2063
|
-
type index_d$
|
|
2064
|
-
type index_d$
|
|
2065
|
-
type index_d$
|
|
2066
|
-
type index_d$
|
|
2067
|
-
type index_d$
|
|
2068
|
-
type index_d$
|
|
2069
|
-
type index_d$
|
|
2070
|
-
type index_d$
|
|
2071
|
-
type index_d$
|
|
2072
|
-
type index_d$
|
|
2073
|
-
type index_d$
|
|
2074
|
-
type index_d$
|
|
2075
|
-
type index_d$
|
|
2076
|
-
type index_d$
|
|
2077
|
-
type index_d$
|
|
2078
|
-
type index_d$
|
|
2079
|
-
type index_d$
|
|
2080
|
-
type index_d$
|
|
2081
|
-
type index_d$
|
|
2082
|
-
type index_d$
|
|
2083
|
-
type index_d$
|
|
2084
|
-
type index_d$
|
|
2085
|
-
type index_d$
|
|
2086
|
-
type index_d$
|
|
2087
|
-
type index_d$
|
|
2088
|
-
type index_d$
|
|
2089
|
-
type index_d$
|
|
2090
|
-
type index_d$
|
|
2091
|
-
type index_d$
|
|
2092
|
-
type index_d$
|
|
2093
|
-
type index_d$
|
|
2094
|
-
type index_d$
|
|
2095
|
-
type index_d$
|
|
2096
|
-
type index_d$
|
|
2097
|
-
type index_d$
|
|
2098
|
-
type index_d$
|
|
2099
|
-
type index_d$
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
type index_d$
|
|
2103
|
-
type index_d$
|
|
2104
|
-
type index_d$
|
|
2105
|
-
|
|
2106
|
-
declare const index_d$
|
|
2107
|
-
declare const index_d$
|
|
2108
|
-
declare const index_d$
|
|
2109
|
-
declare const index_d$
|
|
2110
|
-
declare const index_d$
|
|
2111
|
-
declare const index_d$
|
|
2112
|
-
declare const index_d$
|
|
2113
|
-
declare const index_d$
|
|
2114
|
-
declare const index_d$
|
|
2115
|
-
declare const index_d$
|
|
2116
|
-
declare const index_d$
|
|
2117
|
-
declare
|
|
2118
|
-
|
|
2119
|
-
declare namespace index_d$2 {
|
|
2120
|
-
export { type ActionEvent$2 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$2_BulkCreateProjectItemResult as BulkCreateProjectItemResult, type index_d$2_BulkCreateProjectItemsOptions as BulkCreateProjectItemsOptions, type index_d$2_BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest, type index_d$2_BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse, type index_d$2_BulkCreateProjectItemsResponseNonNullableFields as BulkCreateProjectItemsResponseNonNullableFields, type index_d$2_BulkDeleteProjectItemResult as BulkDeleteProjectItemResult, type index_d$2_BulkDeleteProjectItemsOptions as BulkDeleteProjectItemsOptions, type index_d$2_BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest, type index_d$2_BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse, type index_d$2_BulkDeleteProjectItemsResponseNonNullableFields as BulkDeleteProjectItemsResponseNonNullableFields, type index_d$2_BulkUpdateProjectItemResult as BulkUpdateProjectItemResult, type index_d$2_BulkUpdateProjectItemsOptions as BulkUpdateProjectItemsOptions, type index_d$2_BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest, type index_d$2_BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse, type index_d$2_BulkUpdateProjectItemsResponseNonNullableFields as BulkUpdateProjectItemsResponseNonNullableFields, type index_d$2_CreateProjectGalleryRequest as CreateProjectGalleryRequest, type index_d$2_CreateProjectGalleryResponse as CreateProjectGalleryResponse, type index_d$2_CreateProjectItemRequest as CreateProjectItemRequest, type index_d$2_CreateProjectItemResponse as CreateProjectItemResponse, type index_d$2_CreateProjectItemResponseNonNullableFields as CreateProjectItemResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type Cursors$2 as Cursors, type index_d$2_DeleteProjectItemRequest as DeleteProjectItemRequest, type index_d$2_DeleteProjectItemResponse as DeleteProjectItemResponse, type index_d$2_DeleteProjectItemResponseNonNullableFields as DeleteProjectItemResponseNonNullableFields, type DeletedProjectRestored$1 as DeletedProjectRestored, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type index_d$2_DuplicateProjectItemsOptions as DuplicateProjectItemsOptions, type index_d$2_DuplicateProjectItemsRequest as DuplicateProjectItemsRequest, type index_d$2_DuplicateProjectItemsResponse as DuplicateProjectItemsResponse, type index_d$2_DuplicateProjectItemsResponseNonNullableFields as DuplicateProjectItemsResponseNonNullableFields, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type File$1 as File, type index_d$2_GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequest, type index_d$2_GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponse, type index_d$2_GenerateTokenForProjectItemsResponseNonNullableFields as GenerateTokenForProjectItemsResponseNonNullableFields, type index_d$2_GetProjectItemRequest as GetProjectItemRequest, type index_d$2_GetProjectItemResponse as GetProjectItemResponse, type index_d$2_GetProjectItemResponseNonNullableFields as GetProjectItemResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type Image$2 as Image, ImageType$2 as ImageType, type InvalidateCache$1 as InvalidateCache, type InvalidateCacheGetByOneOf$1 as InvalidateCacheGetByOneOf, type index_d$2_Item as Item, type ItemMetadata$1 as ItemMetadata, type index_d$2_ItemMetadataOneOf as ItemMetadataOneOf, type index_d$2_Link as Link, type index_d$2_ListProjectItemsOptions as ListProjectItemsOptions, type index_d$2_ListProjectItemsRequest as ListProjectItemsRequest, type index_d$2_ListProjectItemsResponse as ListProjectItemsResponse, type index_d$2_ListProjectItemsResponseNonNullableFields as ListProjectItemsResponseNonNullableFields, type index_d$2_MaskedItem as MaskedItem, type MessageEnvelope$2 as MessageEnvelope, type Page$1 as Page, type Paging$2 as Paging, type PagingMetadataV2$2 as PagingMetadataV2, type Point$2 as Point, type index_d$2_ProjectItemCreatedEnvelope as ProjectItemCreatedEnvelope, type index_d$2_ProjectItemDeletedEnvelope as ProjectItemDeletedEnvelope, type index_d$2_ProjectItemMediaToken as ProjectItemMediaToken, type index_d$2_ProjectItemUpdatedEnvelope as ProjectItemUpdatedEnvelope, type index_d$2_QueryProjectItemsRequest as QueryProjectItemsRequest, type index_d$2_QueryProjectItemsResponse as QueryProjectItemsResponse, type QueryV2$2 as QueryV2, type QueryV2PagingMethodOneOf$2 as QueryV2PagingMethodOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$2_Tags as Tags, index_d$2_Type as Type, type URI$1 as URI, type UndeleteInfo$2 as UndeleteInfo, type UnsharpMasking$2 as UnsharpMasking, type index_d$2_UpdateProjectItem as UpdateProjectItem, type index_d$2_UpdateProjectItemRequest as UpdateProjectItemRequest, type index_d$2_UpdateProjectItemResponse as UpdateProjectItemResponse, type index_d$2_UpdateProjectItemResponseNonNullableFields as UpdateProjectItemResponseNonNullableFields, type Video$2 as Video, type VideoResolution$2 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_bulkCreateProjectItems as bulkCreateProjectItems, index_d$2_bulkDeleteProjectItems as bulkDeleteProjectItems, index_d$2_bulkUpdateProjectItems as bulkUpdateProjectItems, index_d$2_createProjectItem as createProjectItem, index_d$2_deleteProjectItem as deleteProjectItem, index_d$2_duplicateProjectItems as duplicateProjectItems, index_d$2_generateTokenForProjectItems as generateTokenForProjectItems, index_d$2_getProjectItem as getProjectItem, index_d$2_listProjectItems as listProjectItems, index_d$2_onProjectItemCreated as onProjectItemCreated, index_d$2_onProjectItemDeleted as onProjectItemDeleted, index_d$2_onProjectItemUpdated as onProjectItemUpdated, index_d$2_updateProjectItem as updateProjectItem };
|
|
2126
|
+
type index_d$3_BulkCreateProjectItemResult = BulkCreateProjectItemResult;
|
|
2127
|
+
type index_d$3_BulkCreateProjectItemsOptions = BulkCreateProjectItemsOptions;
|
|
2128
|
+
type index_d$3_BulkCreateProjectItemsRequest = BulkCreateProjectItemsRequest;
|
|
2129
|
+
type index_d$3_BulkCreateProjectItemsResponse = BulkCreateProjectItemsResponse;
|
|
2130
|
+
type index_d$3_BulkCreateProjectItemsResponseNonNullableFields = BulkCreateProjectItemsResponseNonNullableFields;
|
|
2131
|
+
type index_d$3_BulkDeleteProjectItemResult = BulkDeleteProjectItemResult;
|
|
2132
|
+
type index_d$3_BulkDeleteProjectItemsOptions = BulkDeleteProjectItemsOptions;
|
|
2133
|
+
type index_d$3_BulkDeleteProjectItemsRequest = BulkDeleteProjectItemsRequest;
|
|
2134
|
+
type index_d$3_BulkDeleteProjectItemsResponse = BulkDeleteProjectItemsResponse;
|
|
2135
|
+
type index_d$3_BulkDeleteProjectItemsResponseNonNullableFields = BulkDeleteProjectItemsResponseNonNullableFields;
|
|
2136
|
+
type index_d$3_BulkUpdateProjectItemResult = BulkUpdateProjectItemResult;
|
|
2137
|
+
type index_d$3_BulkUpdateProjectItemsOptions = BulkUpdateProjectItemsOptions;
|
|
2138
|
+
type index_d$3_BulkUpdateProjectItemsRequest = BulkUpdateProjectItemsRequest;
|
|
2139
|
+
type index_d$3_BulkUpdateProjectItemsResponse = BulkUpdateProjectItemsResponse;
|
|
2140
|
+
type index_d$3_BulkUpdateProjectItemsResponseNonNullableFields = BulkUpdateProjectItemsResponseNonNullableFields;
|
|
2141
|
+
type index_d$3_CreateProjectGalleryRequest = CreateProjectGalleryRequest;
|
|
2142
|
+
type index_d$3_CreateProjectGalleryResponse = CreateProjectGalleryResponse;
|
|
2143
|
+
type index_d$3_CreateProjectItemRequest = CreateProjectItemRequest;
|
|
2144
|
+
type index_d$3_CreateProjectItemResponse = CreateProjectItemResponse;
|
|
2145
|
+
type index_d$3_CreateProjectItemResponseNonNullableFields = CreateProjectItemResponseNonNullableFields;
|
|
2146
|
+
type index_d$3_DeleteProjectItemRequest = DeleteProjectItemRequest;
|
|
2147
|
+
type index_d$3_DeleteProjectItemResponse = DeleteProjectItemResponse;
|
|
2148
|
+
type index_d$3_DeleteProjectItemResponseNonNullableFields = DeleteProjectItemResponseNonNullableFields;
|
|
2149
|
+
type index_d$3_DuplicateProjectItemsOptions = DuplicateProjectItemsOptions;
|
|
2150
|
+
type index_d$3_DuplicateProjectItemsRequest = DuplicateProjectItemsRequest;
|
|
2151
|
+
type index_d$3_DuplicateProjectItemsResponse = DuplicateProjectItemsResponse;
|
|
2152
|
+
type index_d$3_DuplicateProjectItemsResponseNonNullableFields = DuplicateProjectItemsResponseNonNullableFields;
|
|
2153
|
+
type index_d$3_GenerateTokenForProjectItemsRequest = GenerateTokenForProjectItemsRequest;
|
|
2154
|
+
type index_d$3_GenerateTokenForProjectItemsResponse = GenerateTokenForProjectItemsResponse;
|
|
2155
|
+
type index_d$3_GetProjectItemRequest = GetProjectItemRequest;
|
|
2156
|
+
type index_d$3_GetProjectItemResponse = GetProjectItemResponse;
|
|
2157
|
+
type index_d$3_GetProjectItemResponseNonNullableFields = GetProjectItemResponseNonNullableFields;
|
|
2158
|
+
type index_d$3_Item = Item;
|
|
2159
|
+
type index_d$3_ItemMetadataOneOf = ItemMetadataOneOf;
|
|
2160
|
+
type index_d$3_Link = Link;
|
|
2161
|
+
type index_d$3_ListProjectItemsOptions = ListProjectItemsOptions;
|
|
2162
|
+
type index_d$3_ListProjectItemsRequest = ListProjectItemsRequest;
|
|
2163
|
+
type index_d$3_ListProjectItemsResponse = ListProjectItemsResponse;
|
|
2164
|
+
type index_d$3_ListProjectItemsResponseNonNullableFields = ListProjectItemsResponseNonNullableFields;
|
|
2165
|
+
type index_d$3_MaskedItem = MaskedItem;
|
|
2166
|
+
type index_d$3_ProjectItemCreatedEnvelope = ProjectItemCreatedEnvelope;
|
|
2167
|
+
type index_d$3_ProjectItemDeletedEnvelope = ProjectItemDeletedEnvelope;
|
|
2168
|
+
type index_d$3_ProjectItemMediaToken = ProjectItemMediaToken;
|
|
2169
|
+
type index_d$3_ProjectItemUpdatedEnvelope = ProjectItemUpdatedEnvelope;
|
|
2170
|
+
type index_d$3_QueryProjectItemsRequest = QueryProjectItemsRequest;
|
|
2171
|
+
type index_d$3_QueryProjectItemsResponse = QueryProjectItemsResponse;
|
|
2172
|
+
type index_d$3_Tags = Tags;
|
|
2173
|
+
type index_d$3_Type = Type;
|
|
2174
|
+
declare const index_d$3_Type: typeof Type;
|
|
2175
|
+
type index_d$3_UpdateProjectItem = UpdateProjectItem;
|
|
2176
|
+
type index_d$3_UpdateProjectItemRequest = UpdateProjectItemRequest;
|
|
2177
|
+
type index_d$3_UpdateProjectItemResponse = UpdateProjectItemResponse;
|
|
2178
|
+
type index_d$3_UpdateProjectItemResponseNonNullableFields = UpdateProjectItemResponseNonNullableFields;
|
|
2179
|
+
declare const index_d$3_bulkCreateProjectItems: typeof bulkCreateProjectItems;
|
|
2180
|
+
declare const index_d$3_bulkDeleteProjectItems: typeof bulkDeleteProjectItems;
|
|
2181
|
+
declare const index_d$3_bulkUpdateProjectItems: typeof bulkUpdateProjectItems;
|
|
2182
|
+
declare const index_d$3_createProjectItem: typeof createProjectItem;
|
|
2183
|
+
declare const index_d$3_deleteProjectItem: typeof deleteProjectItem;
|
|
2184
|
+
declare const index_d$3_duplicateProjectItems: typeof duplicateProjectItems;
|
|
2185
|
+
declare const index_d$3_getProjectItem: typeof getProjectItem;
|
|
2186
|
+
declare const index_d$3_listProjectItems: typeof listProjectItems;
|
|
2187
|
+
declare const index_d$3_onProjectItemCreated: typeof onProjectItemCreated;
|
|
2188
|
+
declare const index_d$3_onProjectItemDeleted: typeof onProjectItemDeleted;
|
|
2189
|
+
declare const index_d$3_onProjectItemUpdated: typeof onProjectItemUpdated;
|
|
2190
|
+
declare const index_d$3_updateProjectItem: typeof updateProjectItem;
|
|
2191
|
+
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 };
|
|
2121
2193
|
}
|
|
2122
2194
|
|
|
2123
2195
|
/** Project is the main entity of ProjectsService */
|
|
@@ -2266,13 +2338,13 @@ interface ProjectSource$1 {
|
|
|
2266
2338
|
/** link to external source */
|
|
2267
2339
|
link?: string | null;
|
|
2268
2340
|
/** Sync status */
|
|
2269
|
-
syncStatus?: SyncStatus$
|
|
2341
|
+
syncStatus?: SyncStatus$2;
|
|
2270
2342
|
/** fields that are synced from external source, should be blocked to update in UI */
|
|
2271
2343
|
notEditableFields?: string[];
|
|
2272
2344
|
/** last date the project was synced */
|
|
2273
2345
|
lastSync?: Date;
|
|
2274
2346
|
}
|
|
2275
|
-
declare enum SyncStatus$
|
|
2347
|
+
declare enum SyncStatus$2 {
|
|
2276
2348
|
SYNCED = "SYNCED",
|
|
2277
2349
|
SYNCING = "SYNCING",
|
|
2278
2350
|
NOT_SYNCED = "NOT_SYNCED"
|
|
@@ -2353,37 +2425,37 @@ interface CreateNewPortfolioAppRequest {
|
|
|
2353
2425
|
}
|
|
2354
2426
|
interface CreateNewPortfolioAppResponse {
|
|
2355
2427
|
}
|
|
2356
|
-
interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
2428
|
+
interface MetaSiteSpecialEvent$1 extends MetaSiteSpecialEventPayloadOneOf$1 {
|
|
2357
2429
|
/** Emitted on a meta site creation. */
|
|
2358
|
-
siteCreated?: SiteCreated;
|
|
2430
|
+
siteCreated?: SiteCreated$1;
|
|
2359
2431
|
/** Emitted on a meta site transfer completion. */
|
|
2360
|
-
siteTransferred?: SiteTransferred;
|
|
2432
|
+
siteTransferred?: SiteTransferred$1;
|
|
2361
2433
|
/** Emitted on a meta site deletion. */
|
|
2362
|
-
siteDeleted?: SiteDeleted;
|
|
2434
|
+
siteDeleted?: SiteDeleted$1;
|
|
2363
2435
|
/** Emitted on a meta site restoration. */
|
|
2364
|
-
siteUndeleted?: SiteUndeleted;
|
|
2436
|
+
siteUndeleted?: SiteUndeleted$1;
|
|
2365
2437
|
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
2366
|
-
sitePublished?: SitePublished;
|
|
2438
|
+
sitePublished?: SitePublished$1;
|
|
2367
2439
|
/** Emitted on a meta site unpublish. */
|
|
2368
|
-
siteUnpublished?: SiteUnpublished;
|
|
2440
|
+
siteUnpublished?: SiteUnpublished$1;
|
|
2369
2441
|
/** Emitted when meta site is marked as template. */
|
|
2370
|
-
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
2442
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate$1;
|
|
2371
2443
|
/** Emitted when meta site is marked as a WixSite. */
|
|
2372
|
-
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
2444
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite$1;
|
|
2373
2445
|
/** Emitted when an application is provisioned (installed). */
|
|
2374
|
-
serviceProvisioned?: ServiceProvisioned;
|
|
2446
|
+
serviceProvisioned?: ServiceProvisioned$1;
|
|
2375
2447
|
/** Emitted when an application is removed (uninstalled). */
|
|
2376
|
-
serviceRemoved?: ServiceRemoved;
|
|
2448
|
+
serviceRemoved?: ServiceRemoved$1;
|
|
2377
2449
|
/** Emitted when meta site name (URL slug) is changed. */
|
|
2378
|
-
siteRenamedPayload?: SiteRenamed;
|
|
2450
|
+
siteRenamedPayload?: SiteRenamed$1;
|
|
2379
2451
|
/** Emitted when meta site was permanently deleted. */
|
|
2380
|
-
hardDeleted?: SiteHardDeleted;
|
|
2452
|
+
hardDeleted?: SiteHardDeleted$1;
|
|
2381
2453
|
/** Emitted on a namespace change. */
|
|
2382
|
-
namespaceChanged?: NamespaceChanged;
|
|
2454
|
+
namespaceChanged?: NamespaceChanged$1;
|
|
2383
2455
|
/** Emitted when Studio is attached. */
|
|
2384
|
-
studioAssigned?: StudioAssigned;
|
|
2456
|
+
studioAssigned?: StudioAssigned$1;
|
|
2385
2457
|
/** Emitted when Studio is detached. */
|
|
2386
|
-
studioUnassigned?: StudioUnassigned;
|
|
2458
|
+
studioUnassigned?: StudioUnassigned$1;
|
|
2387
2459
|
/** A meta site id. */
|
|
2388
2460
|
metaSiteId?: string;
|
|
2389
2461
|
/** A meta site version. Monotonically increasing. */
|
|
@@ -2391,63 +2463,63 @@ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
2391
2463
|
/** A timestamp of the event. */
|
|
2392
2464
|
timestamp?: string;
|
|
2393
2465
|
/** A list of "assets" (applications). The same as MetaSiteContext. */
|
|
2394
|
-
assets?: Asset[];
|
|
2466
|
+
assets?: Asset$1[];
|
|
2395
2467
|
}
|
|
2396
2468
|
/** @oneof */
|
|
2397
|
-
interface MetaSiteSpecialEventPayloadOneOf {
|
|
2469
|
+
interface MetaSiteSpecialEventPayloadOneOf$1 {
|
|
2398
2470
|
/** Emitted on a meta site creation. */
|
|
2399
|
-
siteCreated?: SiteCreated;
|
|
2471
|
+
siteCreated?: SiteCreated$1;
|
|
2400
2472
|
/** Emitted on a meta site transfer completion. */
|
|
2401
|
-
siteTransferred?: SiteTransferred;
|
|
2473
|
+
siteTransferred?: SiteTransferred$1;
|
|
2402
2474
|
/** Emitted on a meta site deletion. */
|
|
2403
|
-
siteDeleted?: SiteDeleted;
|
|
2475
|
+
siteDeleted?: SiteDeleted$1;
|
|
2404
2476
|
/** Emitted on a meta site restoration. */
|
|
2405
|
-
siteUndeleted?: SiteUndeleted;
|
|
2477
|
+
siteUndeleted?: SiteUndeleted$1;
|
|
2406
2478
|
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
2407
|
-
sitePublished?: SitePublished;
|
|
2479
|
+
sitePublished?: SitePublished$1;
|
|
2408
2480
|
/** Emitted on a meta site unpublish. */
|
|
2409
|
-
siteUnpublished?: SiteUnpublished;
|
|
2481
|
+
siteUnpublished?: SiteUnpublished$1;
|
|
2410
2482
|
/** Emitted when meta site is marked as template. */
|
|
2411
|
-
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
2483
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate$1;
|
|
2412
2484
|
/** Emitted when meta site is marked as a WixSite. */
|
|
2413
|
-
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
2485
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite$1;
|
|
2414
2486
|
/** Emitted when an application is provisioned (installed). */
|
|
2415
|
-
serviceProvisioned?: ServiceProvisioned;
|
|
2487
|
+
serviceProvisioned?: ServiceProvisioned$1;
|
|
2416
2488
|
/** Emitted when an application is removed (uninstalled). */
|
|
2417
|
-
serviceRemoved?: ServiceRemoved;
|
|
2489
|
+
serviceRemoved?: ServiceRemoved$1;
|
|
2418
2490
|
/** Emitted when meta site name (URL slug) is changed. */
|
|
2419
|
-
siteRenamedPayload?: SiteRenamed;
|
|
2491
|
+
siteRenamedPayload?: SiteRenamed$1;
|
|
2420
2492
|
/** Emitted when meta site was permanently deleted. */
|
|
2421
|
-
hardDeleted?: SiteHardDeleted;
|
|
2493
|
+
hardDeleted?: SiteHardDeleted$1;
|
|
2422
2494
|
/** Emitted on a namespace change. */
|
|
2423
|
-
namespaceChanged?: NamespaceChanged;
|
|
2495
|
+
namespaceChanged?: NamespaceChanged$1;
|
|
2424
2496
|
/** Emitted when Studio is attached. */
|
|
2425
|
-
studioAssigned?: StudioAssigned;
|
|
2497
|
+
studioAssigned?: StudioAssigned$1;
|
|
2426
2498
|
/** Emitted when Studio is detached. */
|
|
2427
|
-
studioUnassigned?: StudioUnassigned;
|
|
2499
|
+
studioUnassigned?: StudioUnassigned$1;
|
|
2428
2500
|
}
|
|
2429
|
-
interface Asset {
|
|
2501
|
+
interface Asset$1 {
|
|
2430
2502
|
/** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
|
|
2431
2503
|
appDefId?: string;
|
|
2432
2504
|
/** An instance id. For legacy reasons may be UUID or a string. */
|
|
2433
2505
|
instanceId?: string;
|
|
2434
2506
|
/** An application state. */
|
|
2435
|
-
state?: State;
|
|
2507
|
+
state?: State$1;
|
|
2436
2508
|
}
|
|
2437
|
-
declare enum State {
|
|
2509
|
+
declare enum State$1 {
|
|
2438
2510
|
UNKNOWN = "UNKNOWN",
|
|
2439
2511
|
ENABLED = "ENABLED",
|
|
2440
2512
|
DISABLED = "DISABLED",
|
|
2441
2513
|
PENDING = "PENDING",
|
|
2442
2514
|
DEMO = "DEMO"
|
|
2443
2515
|
}
|
|
2444
|
-
interface SiteCreated {
|
|
2516
|
+
interface SiteCreated$1 {
|
|
2445
2517
|
/** A template identifier (empty if not created from a template). */
|
|
2446
2518
|
originTemplateId?: string;
|
|
2447
2519
|
/** An account id of the owner. */
|
|
2448
2520
|
ownerId?: string;
|
|
2449
2521
|
/** A context in which meta site was created. */
|
|
2450
|
-
context?: SiteCreatedContext;
|
|
2522
|
+
context?: SiteCreatedContext$1;
|
|
2451
2523
|
/**
|
|
2452
2524
|
* A meta site id from which this site was created.
|
|
2453
2525
|
*
|
|
@@ -2458,9 +2530,9 @@ interface SiteCreated {
|
|
|
2458
2530
|
/** A meta site name (URL slug). */
|
|
2459
2531
|
siteName?: string;
|
|
2460
2532
|
/** A namespace. */
|
|
2461
|
-
namespace?: Namespace;
|
|
2533
|
+
namespace?: Namespace$1;
|
|
2462
2534
|
}
|
|
2463
|
-
declare enum SiteCreatedContext {
|
|
2535
|
+
declare enum SiteCreatedContext$1 {
|
|
2464
2536
|
/** A valid option, we don't expose all reasons why site might be created. */
|
|
2465
2537
|
OTHER = "OTHER",
|
|
2466
2538
|
/** A meta site was created from template. */
|
|
@@ -2474,7 +2546,7 @@ declare enum SiteCreatedContext {
|
|
|
2474
2546
|
/** deprecated A meta site was created for Flash editor. */
|
|
2475
2547
|
FLASH = "FLASH"
|
|
2476
2548
|
}
|
|
2477
|
-
declare enum Namespace {
|
|
2549
|
+
declare enum Namespace$1 {
|
|
2478
2550
|
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
2479
2551
|
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
2480
2552
|
WIX = "WIX",
|
|
@@ -2535,48 +2607,48 @@ declare enum Namespace {
|
|
|
2535
2607
|
BRANDED_FIRST = "BRANDED_FIRST"
|
|
2536
2608
|
}
|
|
2537
2609
|
/** Site transferred to another user. */
|
|
2538
|
-
interface SiteTransferred {
|
|
2610
|
+
interface SiteTransferred$1 {
|
|
2539
2611
|
/** A previous owner id (user that transfers meta site). */
|
|
2540
2612
|
oldOwnerId?: string;
|
|
2541
2613
|
/** A new owner id (user that accepts meta site). */
|
|
2542
2614
|
newOwnerId?: string;
|
|
2543
2615
|
}
|
|
2544
2616
|
/** Soft deletion of the meta site. Could be restored. */
|
|
2545
|
-
interface SiteDeleted {
|
|
2617
|
+
interface SiteDeleted$1 {
|
|
2546
2618
|
/** A deletion context. */
|
|
2547
|
-
deleteContext?: DeleteContext;
|
|
2619
|
+
deleteContext?: DeleteContext$1;
|
|
2548
2620
|
}
|
|
2549
|
-
interface DeleteContext {
|
|
2621
|
+
interface DeleteContext$1 {
|
|
2550
2622
|
/** When the meta site was deleted. */
|
|
2551
2623
|
dateDeleted?: Date;
|
|
2552
2624
|
/** A status. */
|
|
2553
|
-
deleteStatus?: DeleteStatus;
|
|
2625
|
+
deleteStatus?: DeleteStatus$1;
|
|
2554
2626
|
/** A reason (flow). */
|
|
2555
2627
|
deleteOrigin?: string;
|
|
2556
2628
|
/** A service that deleted it. */
|
|
2557
2629
|
initiatorId?: string | null;
|
|
2558
2630
|
}
|
|
2559
|
-
declare enum DeleteStatus {
|
|
2631
|
+
declare enum DeleteStatus$1 {
|
|
2560
2632
|
UNKNOWN = "UNKNOWN",
|
|
2561
2633
|
TRASH = "TRASH",
|
|
2562
2634
|
DELETED = "DELETED",
|
|
2563
2635
|
PENDING_PURGE = "PENDING_PURGE"
|
|
2564
2636
|
}
|
|
2565
2637
|
/** Restoration of the meta site. */
|
|
2566
|
-
interface SiteUndeleted {
|
|
2638
|
+
interface SiteUndeleted$1 {
|
|
2567
2639
|
}
|
|
2568
2640
|
/** First publish of a meta site. Or subsequent publish after unpublish. */
|
|
2569
|
-
interface SitePublished {
|
|
2641
|
+
interface SitePublished$1 {
|
|
2570
2642
|
}
|
|
2571
|
-
interface SiteUnpublished {
|
|
2643
|
+
interface SiteUnpublished$1 {
|
|
2572
2644
|
/** A list of URLs previously associated with the meta site. */
|
|
2573
2645
|
urls?: string[];
|
|
2574
2646
|
}
|
|
2575
|
-
interface SiteMarkedAsTemplate {
|
|
2647
|
+
interface SiteMarkedAsTemplate$1 {
|
|
2576
2648
|
}
|
|
2577
|
-
interface SiteMarkedAsWixSite {
|
|
2649
|
+
interface SiteMarkedAsWixSite$1 {
|
|
2578
2650
|
}
|
|
2579
|
-
interface ServiceProvisioned {
|
|
2651
|
+
interface ServiceProvisioned$1 {
|
|
2580
2652
|
/** Either UUID or EmbeddedServiceType. */
|
|
2581
2653
|
appDefId?: string;
|
|
2582
2654
|
/** Not only UUID. Something here could be something weird. */
|
|
@@ -2586,7 +2658,7 @@ interface ServiceProvisioned {
|
|
|
2586
2658
|
/** A version. */
|
|
2587
2659
|
version?: string | null;
|
|
2588
2660
|
}
|
|
2589
|
-
interface ServiceRemoved {
|
|
2661
|
+
interface ServiceRemoved$1 {
|
|
2590
2662
|
/** Either UUID or EmbeddedServiceType. */
|
|
2591
2663
|
appDefId?: string;
|
|
2592
2664
|
/** Not only UUID. Something here could be something weird. */
|
|
@@ -2595,7 +2667,7 @@ interface ServiceRemoved {
|
|
|
2595
2667
|
version?: string | null;
|
|
2596
2668
|
}
|
|
2597
2669
|
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
2598
|
-
interface SiteRenamed {
|
|
2670
|
+
interface SiteRenamed$1 {
|
|
2599
2671
|
/** A new meta site name (URL slug). */
|
|
2600
2672
|
newSiteName?: string;
|
|
2601
2673
|
/** A previous meta site name (URL slug). */
|
|
@@ -2606,29 +2678,29 @@ interface SiteRenamed {
|
|
|
2606
2678
|
*
|
|
2607
2679
|
* Could not be restored. Therefore it's desirable to cleanup data.
|
|
2608
2680
|
*/
|
|
2609
|
-
interface SiteHardDeleted {
|
|
2681
|
+
interface SiteHardDeleted$1 {
|
|
2610
2682
|
/** A deletion context. */
|
|
2611
|
-
deleteContext?: DeleteContext;
|
|
2683
|
+
deleteContext?: DeleteContext$1;
|
|
2612
2684
|
}
|
|
2613
|
-
interface NamespaceChanged {
|
|
2685
|
+
interface NamespaceChanged$1 {
|
|
2614
2686
|
/** A previous namespace. */
|
|
2615
|
-
oldNamespace?: Namespace;
|
|
2687
|
+
oldNamespace?: Namespace$1;
|
|
2616
2688
|
/** A new namespace. */
|
|
2617
|
-
newNamespace?: Namespace;
|
|
2689
|
+
newNamespace?: Namespace$1;
|
|
2618
2690
|
}
|
|
2619
2691
|
/** Assigned Studio editor */
|
|
2620
|
-
interface StudioAssigned {
|
|
2692
|
+
interface StudioAssigned$1 {
|
|
2621
2693
|
}
|
|
2622
2694
|
/** Unassigned Studio editor */
|
|
2623
|
-
interface StudioUnassigned {
|
|
2695
|
+
interface StudioUnassigned$1 {
|
|
2624
2696
|
}
|
|
2625
|
-
interface Empty {
|
|
2697
|
+
interface Empty$1 {
|
|
2626
2698
|
}
|
|
2627
|
-
interface DomainEvent$
|
|
2628
|
-
createdEvent?: EntityCreatedEvent$
|
|
2629
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
2630
|
-
deletedEvent?: EntityDeletedEvent$
|
|
2631
|
-
actionEvent?: ActionEvent$
|
|
2699
|
+
interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
2700
|
+
createdEvent?: EntityCreatedEvent$2;
|
|
2701
|
+
updatedEvent?: EntityUpdatedEvent$2;
|
|
2702
|
+
deletedEvent?: EntityDeletedEvent$2;
|
|
2703
|
+
actionEvent?: ActionEvent$2;
|
|
2632
2704
|
/**
|
|
2633
2705
|
* Unique event ID.
|
|
2634
2706
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -2667,19 +2739,19 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
|
2667
2739
|
entityEventSequence?: string | null;
|
|
2668
2740
|
}
|
|
2669
2741
|
/** @oneof */
|
|
2670
|
-
interface DomainEventBodyOneOf$
|
|
2671
|
-
createdEvent?: EntityCreatedEvent$
|
|
2672
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
2673
|
-
deletedEvent?: EntityDeletedEvent$
|
|
2674
|
-
actionEvent?: ActionEvent$
|
|
2742
|
+
interface DomainEventBodyOneOf$2 {
|
|
2743
|
+
createdEvent?: EntityCreatedEvent$2;
|
|
2744
|
+
updatedEvent?: EntityUpdatedEvent$2;
|
|
2745
|
+
deletedEvent?: EntityDeletedEvent$2;
|
|
2746
|
+
actionEvent?: ActionEvent$2;
|
|
2675
2747
|
}
|
|
2676
|
-
interface EntityCreatedEvent$
|
|
2748
|
+
interface EntityCreatedEvent$2 {
|
|
2677
2749
|
entity?: string;
|
|
2678
2750
|
}
|
|
2679
2751
|
interface UndeleteInfo$1 {
|
|
2680
2752
|
deletedDate?: Date;
|
|
2681
2753
|
}
|
|
2682
|
-
interface EntityUpdatedEvent$
|
|
2754
|
+
interface EntityUpdatedEvent$2 {
|
|
2683
2755
|
/**
|
|
2684
2756
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
2685
2757
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -2687,24 +2759,24 @@ interface EntityUpdatedEvent$1 {
|
|
|
2687
2759
|
*/
|
|
2688
2760
|
currentEntity?: string;
|
|
2689
2761
|
}
|
|
2690
|
-
interface EntityDeletedEvent$
|
|
2762
|
+
interface EntityDeletedEvent$2 {
|
|
2691
2763
|
/** Entity that was deleted */
|
|
2692
2764
|
deletedEntity?: string | null;
|
|
2693
2765
|
}
|
|
2694
|
-
interface ActionEvent$
|
|
2766
|
+
interface ActionEvent$2 {
|
|
2695
2767
|
body?: string;
|
|
2696
2768
|
}
|
|
2697
|
-
interface MessageEnvelope$
|
|
2769
|
+
interface MessageEnvelope$2 {
|
|
2698
2770
|
/** App instance ID. */
|
|
2699
2771
|
instanceId?: string | null;
|
|
2700
2772
|
/** Event type. */
|
|
2701
2773
|
eventType?: string;
|
|
2702
2774
|
/** The identification type and identity data. */
|
|
2703
|
-
identity?: IdentificationData$
|
|
2775
|
+
identity?: IdentificationData$2;
|
|
2704
2776
|
/** Stringify payload. */
|
|
2705
2777
|
data?: string;
|
|
2706
2778
|
}
|
|
2707
|
-
interface IdentificationData$
|
|
2779
|
+
interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
|
|
2708
2780
|
/** ID of a site visitor that has not logged in to the site. */
|
|
2709
2781
|
anonymousVisitorId?: string;
|
|
2710
2782
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -2714,10 +2786,10 @@ interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
|
|
|
2714
2786
|
/** ID of an app. */
|
|
2715
2787
|
appId?: string;
|
|
2716
2788
|
/** @readonly */
|
|
2717
|
-
identityType?: WebhookIdentityType$
|
|
2789
|
+
identityType?: WebhookIdentityType$2;
|
|
2718
2790
|
}
|
|
2719
2791
|
/** @oneof */
|
|
2720
|
-
interface IdentificationDataIdOneOf$
|
|
2792
|
+
interface IdentificationDataIdOneOf$2 {
|
|
2721
2793
|
/** ID of a site visitor that has not logged in to the site. */
|
|
2722
2794
|
anonymousVisitorId?: string;
|
|
2723
2795
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -2727,7 +2799,7 @@ interface IdentificationDataIdOneOf$1 {
|
|
|
2727
2799
|
/** ID of an app. */
|
|
2728
2800
|
appId?: string;
|
|
2729
2801
|
}
|
|
2730
|
-
declare enum WebhookIdentityType$
|
|
2802
|
+
declare enum WebhookIdentityType$2 {
|
|
2731
2803
|
UNKNOWN = "UNKNOWN",
|
|
2732
2804
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
2733
2805
|
MEMBER = "MEMBER",
|
|
@@ -2823,11 +2895,11 @@ interface GetProjectResponse {
|
|
|
2823
2895
|
}
|
|
2824
2896
|
interface ListProjectsRequest {
|
|
2825
2897
|
/** Projects limit per response is maximum 100, In the first request the cursor is None */
|
|
2826
|
-
paging?: CursorPaging$
|
|
2898
|
+
paging?: CursorPaging$2;
|
|
2827
2899
|
/** Include page url */
|
|
2828
2900
|
includePageUrl?: boolean | null;
|
|
2829
2901
|
}
|
|
2830
|
-
interface CursorPaging$
|
|
2902
|
+
interface CursorPaging$2 {
|
|
2831
2903
|
/** Maximum number of items to return in the results. */
|
|
2832
2904
|
limit?: number | null;
|
|
2833
2905
|
/**
|
|
@@ -2842,9 +2914,9 @@ interface ListProjectsResponse {
|
|
|
2842
2914
|
/** The retrieved Projects */
|
|
2843
2915
|
projects?: Project$1[];
|
|
2844
2916
|
/** Paging metadata */
|
|
2845
|
-
metadata?: PagingMetadataV2$
|
|
2917
|
+
metadata?: PagingMetadataV2$2;
|
|
2846
2918
|
}
|
|
2847
|
-
interface PagingMetadataV2$
|
|
2919
|
+
interface PagingMetadataV2$2 {
|
|
2848
2920
|
/** Number of items returned in the response. */
|
|
2849
2921
|
count?: number | null;
|
|
2850
2922
|
/** Offset that was requested. */
|
|
@@ -2854,9 +2926,9 @@ interface PagingMetadataV2$1 {
|
|
|
2854
2926
|
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
2855
2927
|
tooManyToCount?: boolean | null;
|
|
2856
2928
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
2857
|
-
cursors?: Cursors$
|
|
2929
|
+
cursors?: Cursors$2;
|
|
2858
2930
|
}
|
|
2859
|
-
interface Cursors$
|
|
2931
|
+
interface Cursors$2 {
|
|
2860
2932
|
/** Cursor string pointing to the next page in the list of results. */
|
|
2861
2933
|
next?: string | null;
|
|
2862
2934
|
/** Cursor pointing to the previous page in the list of results. */
|
|
@@ -2936,7 +3008,7 @@ interface QueryV2$1 extends QueryV2PagingMethodOneOf$1 {
|
|
|
2936
3008
|
/** Paging options to limit and skip the number of items. */
|
|
2937
3009
|
paging?: Paging$1;
|
|
2938
3010
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
2939
|
-
cursorPaging?: CursorPaging$
|
|
3011
|
+
cursorPaging?: CursorPaging$2;
|
|
2940
3012
|
/**
|
|
2941
3013
|
* Filter object in the following format:
|
|
2942
3014
|
* `"filter" : {
|
|
@@ -2961,7 +3033,7 @@ interface QueryV2PagingMethodOneOf$1 {
|
|
|
2961
3033
|
/** Paging options to limit and skip the number of items. */
|
|
2962
3034
|
paging?: Paging$1;
|
|
2963
3035
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
2964
|
-
cursorPaging?: CursorPaging$
|
|
3036
|
+
cursorPaging?: CursorPaging$2;
|
|
2965
3037
|
}
|
|
2966
3038
|
interface Sorting$1 {
|
|
2967
3039
|
/** Name of the field to sort by. */
|
|
@@ -2983,7 +3055,7 @@ interface QueryProjectsResponse {
|
|
|
2983
3055
|
/** The retrieved Projects */
|
|
2984
3056
|
projects?: Project$1[];
|
|
2985
3057
|
/** Paging metadata */
|
|
2986
|
-
metadata?: PagingMetadataV2$
|
|
3058
|
+
metadata?: PagingMetadataV2$2;
|
|
2987
3059
|
}
|
|
2988
3060
|
interface UpdateProjectOrderInCollectionRequest$1 {
|
|
2989
3061
|
/** Id of the Project to update its order */
|
|
@@ -3015,7 +3087,7 @@ interface QueryProjectWithCollectionInfoResponse {
|
|
|
3015
3087
|
/** The retrieved Projects in Collection */
|
|
3016
3088
|
projects?: ProjectInCollection$1[];
|
|
3017
3089
|
/** Paging metadata */
|
|
3018
|
-
metadata?: PagingMetadataV2$
|
|
3090
|
+
metadata?: PagingMetadataV2$2;
|
|
3019
3091
|
}
|
|
3020
3092
|
interface RestoreProjectFromTrashBinRequest {
|
|
3021
3093
|
/** id of deleted project to restore from trash bin. */
|
|
@@ -3378,7 +3450,7 @@ interface BaseEventMetadata$1 {
|
|
|
3378
3450
|
/** Event type. */
|
|
3379
3451
|
eventType?: string;
|
|
3380
3452
|
/** The identification type and identity data. */
|
|
3381
|
-
identity?: IdentificationData$
|
|
3453
|
+
identity?: IdentificationData$2;
|
|
3382
3454
|
}
|
|
3383
3455
|
interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
3384
3456
|
/**
|
|
@@ -3441,7 +3513,7 @@ interface GetProjectOptions {
|
|
|
3441
3513
|
}
|
|
3442
3514
|
interface ListProjectsOptions {
|
|
3443
3515
|
/** Projects limit per response is maximum 100, In the first request the cursor is None */
|
|
3444
|
-
paging?: CursorPaging$
|
|
3516
|
+
paging?: CursorPaging$2;
|
|
3445
3517
|
/** Include page url */
|
|
3446
3518
|
includePageUrl?: boolean | null;
|
|
3447
3519
|
}
|
|
@@ -3504,7 +3576,7 @@ interface QueryProjectsOptions {
|
|
|
3504
3576
|
includePageUrl?: boolean | null | undefined;
|
|
3505
3577
|
}
|
|
3506
3578
|
interface QueryCursorResult$1 {
|
|
3507
|
-
cursors: Cursors$
|
|
3579
|
+
cursors: Cursors$2;
|
|
3508
3580
|
hasNext: () => boolean;
|
|
3509
3581
|
hasPrev: () => boolean;
|
|
3510
3582
|
length: number;
|
|
@@ -3596,11 +3668,50 @@ interface QueryProjectsWithCollectionInfoOptions {
|
|
|
3596
3668
|
includePageUrl?: boolean | null;
|
|
3597
3669
|
}
|
|
3598
3670
|
|
|
3599
|
-
|
|
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>;
|
|
3702
|
+
|
|
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
|
+
}
|
|
3709
|
+
|
|
3710
|
+
declare const __metadata$2: {
|
|
3600
3711
|
PACKAGE_NAME: string;
|
|
3601
3712
|
};
|
|
3602
|
-
declare function getProjectPageData(httpClient: HttpClient): (identifiers: GetProjectPageDataIdentifiers) => Promise<GetProjectPageDataResponse & GetProjectPageDataResponseNonNullableFields>;
|
|
3603
|
-
declare function createProject(httpClient: HttpClient): (project: Project$1) => Promise<Project$1 & {
|
|
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 & {
|
|
3604
3715
|
coverImage?: {
|
|
3605
3716
|
imageInfo: string;
|
|
3606
3717
|
focalPoint?: {
|
|
@@ -3633,7 +3744,7 @@ declare function createProject(httpClient: HttpClient): (project: Project$1) =>
|
|
|
3633
3744
|
} | undefined;
|
|
3634
3745
|
} | undefined;
|
|
3635
3746
|
}>;
|
|
3636
|
-
declare function getProject(httpClient: HttpClient): (projectId: string, options?: GetProjectOptions) => Promise<Project$1 & {
|
|
3747
|
+
declare function getProject(httpClient: HttpClient$2): (projectId: string, options?: GetProjectOptions) => Promise<Project$1 & {
|
|
3637
3748
|
coverImage?: {
|
|
3638
3749
|
imageInfo: string;
|
|
3639
3750
|
focalPoint?: {
|
|
@@ -3666,8 +3777,8 @@ declare function getProject(httpClient: HttpClient): (projectId: string, options
|
|
|
3666
3777
|
} | undefined;
|
|
3667
3778
|
} | undefined;
|
|
3668
3779
|
}>;
|
|
3669
|
-
declare function listProjects(httpClient: HttpClient): (options?: ListProjectsOptions) => Promise<ListProjectsResponse & ListProjectsResponseNonNullableFields>;
|
|
3670
|
-
declare function updateProject(httpClient: HttpClient): (_id: string | null, project: UpdateProject) => Promise<Project$1 & {
|
|
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 & {
|
|
3671
3782
|
coverImage?: {
|
|
3672
3783
|
imageInfo: string;
|
|
3673
3784
|
focalPoint?: {
|
|
@@ -3700,115 +3811,87 @@ declare function updateProject(httpClient: HttpClient): (_id: string | null, pro
|
|
|
3700
3811
|
} | undefined;
|
|
3701
3812
|
} | undefined;
|
|
3702
3813
|
}>;
|
|
3703
|
-
declare function bulkUpdateProjects(httpClient: HttpClient): (options?: BulkUpdateProjectsOptions) => Promise<BulkUpdateProjectsResponse & BulkUpdateProjectsResponseNonNullableFields>;
|
|
3704
|
-
declare function deleteProject(httpClient: HttpClient): (projectId: string) => Promise<DeleteProjectResponse & DeleteProjectResponseNonNullableFields>;
|
|
3705
|
-
declare function queryProjects(httpClient: HttpClient): (options?: QueryProjectsOptions) => ProjectsQueryBuilder;
|
|
3706
|
-
declare function updateProjectOrderInCollection$1(httpClient: HttpClient): (identifiers: UpdateProjectOrderInCollectionIdentifiers$1, sortOrder: number | null) => Promise<UpdateProjectOrderInCollectionResponse$1 & UpdateProjectOrderInCollectionResponseNonNullableFields$1>;
|
|
3707
|
-
declare function queryProjectsWithCollectionInfo(httpClient: HttpClient): (query: QueryV2$1, options?: QueryProjectsWithCollectionInfoOptions) => Promise<QueryProjectWithCollectionInfoResponse & QueryProjectWithCollectionInfoResponseNonNullableFields>;
|
|
3708
|
-
declare const onProjectCreated: EventDefinition<ProjectCreatedEnvelope, "wix.portfolio.projects.v1.project_created">;
|
|
3709
|
-
declare const onProjectUpdated: EventDefinition<ProjectUpdatedEnvelope, "wix.portfolio.projects.v1.project_updated">;
|
|
3710
|
-
declare const onProjectDeleted: EventDefinition<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
|
|
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">;
|
|
3711
3822
|
|
|
3712
|
-
type index_d$
|
|
3713
|
-
type index_d$
|
|
3714
|
-
type index_d$
|
|
3715
|
-
type index_d$
|
|
3716
|
-
type index_d$
|
|
3717
|
-
type index_d$
|
|
3718
|
-
type index_d$
|
|
3719
|
-
type index_d$
|
|
3720
|
-
type index_d$
|
|
3721
|
-
type index_d$
|
|
3722
|
-
type index_d$
|
|
3723
|
-
type index_d$
|
|
3724
|
-
type index_d$
|
|
3725
|
-
type index_d$
|
|
3726
|
-
type index_d$
|
|
3727
|
-
type index_d$
|
|
3728
|
-
type index_d$
|
|
3729
|
-
type index_d$
|
|
3730
|
-
type index_d$
|
|
3731
|
-
|
|
3732
|
-
type index_d$
|
|
3733
|
-
type index_d$
|
|
3734
|
-
type index_d$
|
|
3735
|
-
type index_d$
|
|
3736
|
-
type index_d$
|
|
3737
|
-
type index_d$
|
|
3738
|
-
type index_d$
|
|
3739
|
-
type index_d$
|
|
3740
|
-
type index_d$
|
|
3741
|
-
type index_d$
|
|
3742
|
-
type index_d$
|
|
3743
|
-
type index_d$
|
|
3744
|
-
type index_d$
|
|
3745
|
-
type index_d$
|
|
3746
|
-
type index_d$
|
|
3747
|
-
type index_d$
|
|
3748
|
-
type index_d$
|
|
3749
|
-
type index_d$
|
|
3750
|
-
type index_d$
|
|
3751
|
-
type index_d$
|
|
3752
|
-
type index_d$
|
|
3753
|
-
type index_d$
|
|
3754
|
-
type index_d$
|
|
3755
|
-
|
|
3756
|
-
type index_d$
|
|
3757
|
-
type index_d$
|
|
3758
|
-
type index_d$
|
|
3759
|
-
type index_d$
|
|
3760
|
-
type index_d$
|
|
3761
|
-
type index_d$
|
|
3762
|
-
type index_d$
|
|
3763
|
-
type index_d$
|
|
3764
|
-
type index_d$
|
|
3765
|
-
type index_d$
|
|
3766
|
-
type index_d$
|
|
3767
|
-
type index_d$
|
|
3768
|
-
type index_d$
|
|
3769
|
-
type index_d$
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
declare const index_d$
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
type index_d$
|
|
3784
|
-
type index_d$1_SiteRenamed = SiteRenamed;
|
|
3785
|
-
type index_d$1_SiteTransferred = SiteTransferred;
|
|
3786
|
-
type index_d$1_SiteUndeleted = SiteUndeleted;
|
|
3787
|
-
type index_d$1_SiteUnpublished = SiteUnpublished;
|
|
3788
|
-
type index_d$1_State = State;
|
|
3789
|
-
declare const index_d$1_State: typeof State;
|
|
3790
|
-
type index_d$1_StudioAssigned = StudioAssigned;
|
|
3791
|
-
type index_d$1_StudioUnassigned = StudioUnassigned;
|
|
3792
|
-
type index_d$1_SyncProjectWithCollectionMappings = SyncProjectWithCollectionMappings;
|
|
3793
|
-
type index_d$1_URI = URI;
|
|
3794
|
-
type index_d$1_UpdateProject = UpdateProject;
|
|
3795
|
-
type index_d$1_UpdateProjectRequest = UpdateProjectRequest;
|
|
3796
|
-
type index_d$1_UpdateProjectResponse = UpdateProjectResponse;
|
|
3797
|
-
type index_d$1_UpdateProjectResponseNonNullableFields = UpdateProjectResponseNonNullableFields;
|
|
3798
|
-
declare const index_d$1_bulkUpdateProjects: typeof bulkUpdateProjects;
|
|
3799
|
-
declare const index_d$1_createProject: typeof createProject;
|
|
3800
|
-
declare const index_d$1_deleteProject: typeof deleteProject;
|
|
3801
|
-
declare const index_d$1_getProject: typeof getProject;
|
|
3802
|
-
declare const index_d$1_getProjectPageData: typeof getProjectPageData;
|
|
3803
|
-
declare const index_d$1_listProjects: typeof listProjects;
|
|
3804
|
-
declare const index_d$1_onProjectCreated: typeof onProjectCreated;
|
|
3805
|
-
declare const index_d$1_onProjectDeleted: typeof onProjectDeleted;
|
|
3806
|
-
declare const index_d$1_onProjectUpdated: typeof onProjectUpdated;
|
|
3807
|
-
declare const index_d$1_queryProjects: typeof queryProjects;
|
|
3808
|
-
declare const index_d$1_queryProjectsWithCollectionInfo: typeof queryProjectsWithCollectionInfo;
|
|
3809
|
-
declare const index_d$1_updateProject: typeof updateProject;
|
|
3810
|
-
declare namespace index_d$1 {
|
|
3811
|
-
export { type ActionEvent$1 as ActionEvent, type index_d$1_App as App, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Asset as Asset, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkUpdateProjectsOptions as BulkUpdateProjectsOptions, type index_d$1_BulkUpdateProjectsRequest as BulkUpdateProjectsRequest, type index_d$1_BulkUpdateProjectsResponse as BulkUpdateProjectsResponse, type index_d$1_BulkUpdateProjectsResponseNonNullableFields as BulkUpdateProjectsResponseNonNullableFields, type index_d$1_BulkUpdateProjectsResult as BulkUpdateProjectsResult, type index_d$1_CreateNewPortfolioAppRequest as CreateNewPortfolioAppRequest, type index_d$1_CreateNewPortfolioAppResponse as CreateNewPortfolioAppResponse, type index_d$1_CreateProjectRequest as CreateProjectRequest, type index_d$1_CreateProjectResponse as CreateProjectResponse, type index_d$1_CreateProjectResponseNonNullableFields as CreateProjectResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type index_d$1_DeleteContext as DeleteContext, type index_d$1_DeleteProjectRequest as DeleteProjectRequest, type index_d$1_DeleteProjectResponse as DeleteProjectResponse, type index_d$1_DeleteProjectResponseNonNullableFields as DeleteProjectResponseNonNullableFields, index_d$1_DeleteStatus as DeleteStatus, type index_d$1_DeletedProjectRestored as DeletedProjectRestored, type DetailsLink$1 as DetailsLink, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_Empty as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_File as File, type index_d$1_GetProjectOptions as GetProjectOptions, type index_d$1_GetProjectPageDataIdentifiers as GetProjectPageDataIdentifiers, type index_d$1_GetProjectPageDataRequest as GetProjectPageDataRequest, type index_d$1_GetProjectPageDataResponse as GetProjectPageDataResponse, type index_d$1_GetProjectPageDataResponseNonNullableFields as GetProjectPageDataResponseNonNullableFields, type index_d$1_GetProjectRequest as GetProjectRequest, type index_d$1_GetProjectResponse as GetProjectResponse, type index_d$1_GetProjectResponseNonNullableFields as GetProjectResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Image$1 as Image, ImageType$1 as ImageType, type index_d$1_InvalidateCache as InvalidateCache, type index_d$1_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d$1_ItemMetadata as ItemMetadata, type Keyword$1 as Keyword, type index_d$1_ListProjectsOptions as ListProjectsOptions, type index_d$1_ListProjectsRequest as ListProjectsRequest, type index_d$1_ListProjectsResponse as ListProjectsResponse, type index_d$1_ListProjectsResponseNonNullableFields as ListProjectsResponseNonNullableFields, type index_d$1_MaskedProject as MaskedProject, type index_d$1_MenuSettingUpdatedEvent as MenuSettingUpdatedEvent, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$1_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d$1_Namespace as Namespace, type index_d$1_NamespaceChanged as NamespaceChanged, type index_d$1_Page as Page, type Paging$1 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, type Point$1 as Point, type Project$1 as Project, type ProjectCoverOneOf$1 as ProjectCoverOneOf, type index_d$1_ProjectCreatedEnvelope as ProjectCreatedEnvelope, type index_d$1_ProjectDeletedEnvelope as ProjectDeletedEnvelope, type ProjectDetail$1 as ProjectDetail, type ProjectDetailValueOneOf$1 as ProjectDetailValueOneOf, type ProjectInCollection$1 as ProjectInCollection, type index_d$1_ProjectSlug as ProjectSlug, type ProjectSource$1 as ProjectSource, type index_d$1_ProjectUpdatedEnvelope as ProjectUpdatedEnvelope, type index_d$1_ProjectsQueryBuilder as ProjectsQueryBuilder, type index_d$1_ProjectsQueryResult as ProjectsQueryResult, type index_d$1_QueryProjectWithCollectionInfoRequest as QueryProjectWithCollectionInfoRequest, type index_d$1_QueryProjectWithCollectionInfoResponse as QueryProjectWithCollectionInfoResponse, type index_d$1_QueryProjectWithCollectionInfoResponseNonNullableFields as QueryProjectWithCollectionInfoResponseNonNullableFields, type index_d$1_QueryProjectsOptions as QueryProjectsOptions, type index_d$1_QueryProjectsRequest as QueryProjectsRequest, type index_d$1_QueryProjectsResponse as QueryProjectsResponse, type index_d$1_QueryProjectsResponseNonNullableFields as QueryProjectsResponseNonNullableFields, type index_d$1_QueryProjectsWithCollectionInfoOptions as QueryProjectsWithCollectionInfoOptions, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type index_d$1_RestoreProjectFromTrashBinRequest as RestoreProjectFromTrashBinRequest, type index_d$1_RestoreProjectFromTrashBinResponse as RestoreProjectFromTrashBinResponse, type SeoSchema$1 as SeoSchema, type index_d$1_ServiceProvisioned as ServiceProvisioned, type index_d$1_ServiceRemoved as ServiceRemoved, type Settings$1 as Settings, type index_d$1_SiteCreated as SiteCreated, index_d$1_SiteCreatedContext as SiteCreatedContext, type index_d$1_SiteDeleted as SiteDeleted, type index_d$1_SiteHardDeleted as SiteHardDeleted, type index_d$1_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$1_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$1_SitePublished as SitePublished, type index_d$1_SiteRenamed as SiteRenamed, type index_d$1_SiteTransferred as SiteTransferred, type index_d$1_SiteUndeleted as SiteUndeleted, type index_d$1_SiteUnpublished as SiteUnpublished, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_State as State, type index_d$1_StudioAssigned as StudioAssigned, type index_d$1_StudioUnassigned as StudioUnassigned, type index_d$1_SyncProjectWithCollectionMappings as SyncProjectWithCollectionMappings, SyncStatus$1 as SyncStatus, type Tag$1 as Tag, type index_d$1_URI as URI, type UndeleteInfo$1 as UndeleteInfo, type UnsharpMasking$1 as UnsharpMasking, type index_d$1_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$1_UpdateProjectRequest as UpdateProjectRequest, type index_d$1_UpdateProjectResponse as UpdateProjectResponse, type index_d$1_UpdateProjectResponseNonNullableFields as UpdateProjectResponseNonNullableFields, type Video$1 as Video, type VideoResolution$1 as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_bulkUpdateProjects as bulkUpdateProjects, index_d$1_createProject as createProject, index_d$1_deleteProject as deleteProject, index_d$1_getProject as getProject, index_d$1_getProjectPageData as getProjectPageData, index_d$1_listProjects as listProjects, index_d$1_onProjectCreated as onProjectCreated, index_d$1_onProjectDeleted as onProjectDeleted, index_d$1_onProjectUpdated as onProjectUpdated, index_d$1_queryProjects as queryProjects, index_d$1_queryProjectsWithCollectionInfo as queryProjectsWithCollectionInfo, index_d$1_updateProject as updateProject, updateProjectOrderInCollection$1 as updateProjectOrderInCollection };
|
|
3823
|
+
type index_d$2_App = App;
|
|
3824
|
+
type index_d$2_ApplicationError = ApplicationError;
|
|
3825
|
+
type index_d$2_BulkActionMetadata = BulkActionMetadata;
|
|
3826
|
+
type index_d$2_BulkUpdateProjectsOptions = BulkUpdateProjectsOptions;
|
|
3827
|
+
type index_d$2_BulkUpdateProjectsRequest = BulkUpdateProjectsRequest;
|
|
3828
|
+
type index_d$2_BulkUpdateProjectsResponse = BulkUpdateProjectsResponse;
|
|
3829
|
+
type index_d$2_BulkUpdateProjectsResponseNonNullableFields = BulkUpdateProjectsResponseNonNullableFields;
|
|
3830
|
+
type index_d$2_BulkUpdateProjectsResult = BulkUpdateProjectsResult;
|
|
3831
|
+
type index_d$2_CreateNewPortfolioAppRequest = CreateNewPortfolioAppRequest;
|
|
3832
|
+
type index_d$2_CreateNewPortfolioAppResponse = CreateNewPortfolioAppResponse;
|
|
3833
|
+
type index_d$2_CreateProjectRequest = CreateProjectRequest;
|
|
3834
|
+
type index_d$2_CreateProjectResponse = CreateProjectResponse;
|
|
3835
|
+
type index_d$2_CreateProjectResponseNonNullableFields = CreateProjectResponseNonNullableFields;
|
|
3836
|
+
type index_d$2_DeleteProjectRequest = DeleteProjectRequest;
|
|
3837
|
+
type index_d$2_DeleteProjectResponse = DeleteProjectResponse;
|
|
3838
|
+
type index_d$2_DeleteProjectResponseNonNullableFields = DeleteProjectResponseNonNullableFields;
|
|
3839
|
+
type index_d$2_DeletedProjectRestored = DeletedProjectRestored;
|
|
3840
|
+
type index_d$2_File = File;
|
|
3841
|
+
type index_d$2_GetProjectOptions = GetProjectOptions;
|
|
3842
|
+
type index_d$2_GetProjectPageDataIdentifiers = GetProjectPageDataIdentifiers;
|
|
3843
|
+
type index_d$2_GetProjectPageDataRequest = GetProjectPageDataRequest;
|
|
3844
|
+
type index_d$2_GetProjectPageDataResponse = GetProjectPageDataResponse;
|
|
3845
|
+
type index_d$2_GetProjectPageDataResponseNonNullableFields = GetProjectPageDataResponseNonNullableFields;
|
|
3846
|
+
type index_d$2_GetProjectRequest = GetProjectRequest;
|
|
3847
|
+
type index_d$2_GetProjectResponse = GetProjectResponse;
|
|
3848
|
+
type index_d$2_GetProjectResponseNonNullableFields = GetProjectResponseNonNullableFields;
|
|
3849
|
+
type index_d$2_InvalidateCache = InvalidateCache;
|
|
3850
|
+
type index_d$2_InvalidateCacheGetByOneOf = InvalidateCacheGetByOneOf;
|
|
3851
|
+
type index_d$2_ItemMetadata = ItemMetadata;
|
|
3852
|
+
type index_d$2_ListProjectsOptions = ListProjectsOptions;
|
|
3853
|
+
type index_d$2_ListProjectsRequest = ListProjectsRequest;
|
|
3854
|
+
type index_d$2_ListProjectsResponse = ListProjectsResponse;
|
|
3855
|
+
type index_d$2_ListProjectsResponseNonNullableFields = ListProjectsResponseNonNullableFields;
|
|
3856
|
+
type index_d$2_MaskedProject = MaskedProject;
|
|
3857
|
+
type index_d$2_MenuSettingUpdatedEvent = MenuSettingUpdatedEvent;
|
|
3858
|
+
type index_d$2_Page = Page;
|
|
3859
|
+
type index_d$2_ProjectCreatedEnvelope = ProjectCreatedEnvelope;
|
|
3860
|
+
type index_d$2_ProjectDeletedEnvelope = ProjectDeletedEnvelope;
|
|
3861
|
+
type index_d$2_ProjectSlug = ProjectSlug;
|
|
3862
|
+
type index_d$2_ProjectUpdatedEnvelope = ProjectUpdatedEnvelope;
|
|
3863
|
+
type index_d$2_ProjectsQueryBuilder = ProjectsQueryBuilder;
|
|
3864
|
+
type index_d$2_ProjectsQueryResult = ProjectsQueryResult;
|
|
3865
|
+
type index_d$2_QueryProjectWithCollectionInfoRequest = QueryProjectWithCollectionInfoRequest;
|
|
3866
|
+
type index_d$2_QueryProjectWithCollectionInfoResponse = QueryProjectWithCollectionInfoResponse;
|
|
3867
|
+
type index_d$2_QueryProjectWithCollectionInfoResponseNonNullableFields = QueryProjectWithCollectionInfoResponseNonNullableFields;
|
|
3868
|
+
type index_d$2_QueryProjectsOptions = QueryProjectsOptions;
|
|
3869
|
+
type index_d$2_QueryProjectsRequest = QueryProjectsRequest;
|
|
3870
|
+
type index_d$2_QueryProjectsResponse = QueryProjectsResponse;
|
|
3871
|
+
type index_d$2_QueryProjectsResponseNonNullableFields = QueryProjectsResponseNonNullableFields;
|
|
3872
|
+
type index_d$2_QueryProjectsWithCollectionInfoOptions = QueryProjectsWithCollectionInfoOptions;
|
|
3873
|
+
type index_d$2_RestoreProjectFromTrashBinRequest = RestoreProjectFromTrashBinRequest;
|
|
3874
|
+
type index_d$2_RestoreProjectFromTrashBinResponse = RestoreProjectFromTrashBinResponse;
|
|
3875
|
+
type index_d$2_SyncProjectWithCollectionMappings = SyncProjectWithCollectionMappings;
|
|
3876
|
+
type index_d$2_URI = URI;
|
|
3877
|
+
type index_d$2_UpdateProject = UpdateProject;
|
|
3878
|
+
type index_d$2_UpdateProjectRequest = UpdateProjectRequest;
|
|
3879
|
+
type index_d$2_UpdateProjectResponse = UpdateProjectResponse;
|
|
3880
|
+
type index_d$2_UpdateProjectResponseNonNullableFields = UpdateProjectResponseNonNullableFields;
|
|
3881
|
+
declare const index_d$2_bulkUpdateProjects: typeof bulkUpdateProjects;
|
|
3882
|
+
declare const index_d$2_createProject: typeof createProject;
|
|
3883
|
+
declare const index_d$2_deleteProject: typeof deleteProject;
|
|
3884
|
+
declare const index_d$2_getProject: typeof getProject;
|
|
3885
|
+
declare const index_d$2_getProjectPageData: typeof getProjectPageData;
|
|
3886
|
+
declare const index_d$2_listProjects: typeof listProjects;
|
|
3887
|
+
declare const index_d$2_onProjectCreated: typeof onProjectCreated;
|
|
3888
|
+
declare const index_d$2_onProjectDeleted: typeof onProjectDeleted;
|
|
3889
|
+
declare const index_d$2_onProjectUpdated: typeof onProjectUpdated;
|
|
3890
|
+
declare const index_d$2_queryProjects: typeof queryProjects;
|
|
3891
|
+
declare const index_d$2_queryProjectsWithCollectionInfo: typeof queryProjectsWithCollectionInfo;
|
|
3892
|
+
declare const index_d$2_updateProject: typeof updateProject;
|
|
3893
|
+
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 };
|
|
3812
3895
|
}
|
|
3813
3896
|
|
|
3814
3897
|
interface ProjectInCollection {
|
|
@@ -3965,13 +4048,13 @@ interface ProjectSource {
|
|
|
3965
4048
|
/** link to external source */
|
|
3966
4049
|
link?: string | null;
|
|
3967
4050
|
/** Sync status */
|
|
3968
|
-
syncStatus?: SyncStatus;
|
|
4051
|
+
syncStatus?: SyncStatus$1;
|
|
3969
4052
|
/** fields that are synced from external source, should be blocked to update in UI */
|
|
3970
4053
|
notEditableFields?: string[];
|
|
3971
4054
|
/** last date the project was synced */
|
|
3972
4055
|
lastSync?: Date;
|
|
3973
4056
|
}
|
|
3974
|
-
declare enum SyncStatus {
|
|
4057
|
+
declare enum SyncStatus$1 {
|
|
3975
4058
|
SYNCED = "SYNCED",
|
|
3976
4059
|
SYNCING = "SYNCING",
|
|
3977
4060
|
NOT_SYNCED = "NOT_SYNCED"
|
|
@@ -4036,7 +4119,7 @@ interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
4036
4119
|
/** Paging options to limit and skip the number of items. */
|
|
4037
4120
|
paging?: Paging;
|
|
4038
4121
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
4039
|
-
cursorPaging?: CursorPaging;
|
|
4122
|
+
cursorPaging?: CursorPaging$1;
|
|
4040
4123
|
/**
|
|
4041
4124
|
* Filter object in the following format:
|
|
4042
4125
|
* `"filter" : {
|
|
@@ -4061,7 +4144,7 @@ interface QueryV2PagingMethodOneOf {
|
|
|
4061
4144
|
/** Paging options to limit and skip the number of items. */
|
|
4062
4145
|
paging?: Paging;
|
|
4063
4146
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
4064
|
-
cursorPaging?: CursorPaging;
|
|
4147
|
+
cursorPaging?: CursorPaging$1;
|
|
4065
4148
|
}
|
|
4066
4149
|
interface Sorting {
|
|
4067
4150
|
/** Name of the field to sort by. */
|
|
@@ -4079,7 +4162,7 @@ interface Paging {
|
|
|
4079
4162
|
/** Number of items to skip in the current sort order. */
|
|
4080
4163
|
offset?: number | null;
|
|
4081
4164
|
}
|
|
4082
|
-
interface CursorPaging {
|
|
4165
|
+
interface CursorPaging$1 {
|
|
4083
4166
|
/** Maximum number of items to return in the results. */
|
|
4084
4167
|
limit?: number | null;
|
|
4085
4168
|
/**
|
|
@@ -4094,9 +4177,9 @@ interface QueryProjectInCollectionsResponse {
|
|
|
4094
4177
|
/** The retrieved Projects in Collections context */
|
|
4095
4178
|
projectInCollections?: ProjectInCollection[];
|
|
4096
4179
|
/** Paging metadata */
|
|
4097
|
-
metadata?: PagingMetadataV2;
|
|
4180
|
+
metadata?: PagingMetadataV2$1;
|
|
4098
4181
|
}
|
|
4099
|
-
interface PagingMetadataV2 {
|
|
4182
|
+
interface PagingMetadataV2$1 {
|
|
4100
4183
|
/** Number of items returned in the response. */
|
|
4101
4184
|
count?: number | null;
|
|
4102
4185
|
/** Offset that was requested. */
|
|
@@ -4106,9 +4189,9 @@ interface PagingMetadataV2 {
|
|
|
4106
4189
|
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
4107
4190
|
tooManyToCount?: boolean | null;
|
|
4108
4191
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
4109
|
-
cursors?: Cursors;
|
|
4192
|
+
cursors?: Cursors$1;
|
|
4110
4193
|
}
|
|
4111
|
-
interface Cursors {
|
|
4194
|
+
interface Cursors$1 {
|
|
4112
4195
|
/** Cursor string pointing to the next page in the list of results. */
|
|
4113
4196
|
next?: string | null;
|
|
4114
4197
|
/** Cursor pointing to the previous page in the list of results. */
|
|
@@ -4134,11 +4217,11 @@ interface ProjectOrderInCollectionUpdatedEvent {
|
|
|
4134
4217
|
/** The new sort order of the project in the given collection */
|
|
4135
4218
|
sortOrder?: number | null;
|
|
4136
4219
|
}
|
|
4137
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
4138
|
-
createdEvent?: EntityCreatedEvent;
|
|
4139
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
4140
|
-
deletedEvent?: EntityDeletedEvent;
|
|
4141
|
-
actionEvent?: ActionEvent;
|
|
4220
|
+
interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
4221
|
+
createdEvent?: EntityCreatedEvent$1;
|
|
4222
|
+
updatedEvent?: EntityUpdatedEvent$1;
|
|
4223
|
+
deletedEvent?: EntityDeletedEvent$1;
|
|
4224
|
+
actionEvent?: ActionEvent$1;
|
|
4142
4225
|
/**
|
|
4143
4226
|
* Unique event ID.
|
|
4144
4227
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -4177,19 +4260,19 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
4177
4260
|
entityEventSequence?: string | null;
|
|
4178
4261
|
}
|
|
4179
4262
|
/** @oneof */
|
|
4180
|
-
interface DomainEventBodyOneOf {
|
|
4181
|
-
createdEvent?: EntityCreatedEvent;
|
|
4182
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
4183
|
-
deletedEvent?: EntityDeletedEvent;
|
|
4184
|
-
actionEvent?: ActionEvent;
|
|
4263
|
+
interface DomainEventBodyOneOf$1 {
|
|
4264
|
+
createdEvent?: EntityCreatedEvent$1;
|
|
4265
|
+
updatedEvent?: EntityUpdatedEvent$1;
|
|
4266
|
+
deletedEvent?: EntityDeletedEvent$1;
|
|
4267
|
+
actionEvent?: ActionEvent$1;
|
|
4185
4268
|
}
|
|
4186
|
-
interface EntityCreatedEvent {
|
|
4269
|
+
interface EntityCreatedEvent$1 {
|
|
4187
4270
|
entity?: string;
|
|
4188
4271
|
}
|
|
4189
4272
|
interface UndeleteInfo {
|
|
4190
4273
|
deletedDate?: Date;
|
|
4191
4274
|
}
|
|
4192
|
-
interface EntityUpdatedEvent {
|
|
4275
|
+
interface EntityUpdatedEvent$1 {
|
|
4193
4276
|
/**
|
|
4194
4277
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4195
4278
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -4197,24 +4280,24 @@ interface EntityUpdatedEvent {
|
|
|
4197
4280
|
*/
|
|
4198
4281
|
currentEntity?: string;
|
|
4199
4282
|
}
|
|
4200
|
-
interface EntityDeletedEvent {
|
|
4283
|
+
interface EntityDeletedEvent$1 {
|
|
4201
4284
|
/** Entity that was deleted */
|
|
4202
4285
|
deletedEntity?: string | null;
|
|
4203
4286
|
}
|
|
4204
|
-
interface ActionEvent {
|
|
4287
|
+
interface ActionEvent$1 {
|
|
4205
4288
|
body?: string;
|
|
4206
4289
|
}
|
|
4207
|
-
interface MessageEnvelope {
|
|
4290
|
+
interface MessageEnvelope$1 {
|
|
4208
4291
|
/** App instance ID. */
|
|
4209
4292
|
instanceId?: string | null;
|
|
4210
4293
|
/** Event type. */
|
|
4211
4294
|
eventType?: string;
|
|
4212
4295
|
/** The identification type and identity data. */
|
|
4213
|
-
identity?: IdentificationData;
|
|
4296
|
+
identity?: IdentificationData$1;
|
|
4214
4297
|
/** Stringify payload. */
|
|
4215
4298
|
data?: string;
|
|
4216
4299
|
}
|
|
4217
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
4300
|
+
interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
|
|
4218
4301
|
/** ID of a site visitor that has not logged in to the site. */
|
|
4219
4302
|
anonymousVisitorId?: string;
|
|
4220
4303
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -4224,10 +4307,10 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
4224
4307
|
/** ID of an app. */
|
|
4225
4308
|
appId?: string;
|
|
4226
4309
|
/** @readonly */
|
|
4227
|
-
identityType?: WebhookIdentityType;
|
|
4310
|
+
identityType?: WebhookIdentityType$1;
|
|
4228
4311
|
}
|
|
4229
4312
|
/** @oneof */
|
|
4230
|
-
interface IdentificationDataIdOneOf {
|
|
4313
|
+
interface IdentificationDataIdOneOf$1 {
|
|
4231
4314
|
/** ID of a site visitor that has not logged in to the site. */
|
|
4232
4315
|
anonymousVisitorId?: string;
|
|
4233
4316
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -4237,7 +4320,7 @@ interface IdentificationDataIdOneOf {
|
|
|
4237
4320
|
/** ID of an app. */
|
|
4238
4321
|
appId?: string;
|
|
4239
4322
|
}
|
|
4240
|
-
declare enum WebhookIdentityType {
|
|
4323
|
+
declare enum WebhookIdentityType$1 {
|
|
4241
4324
|
UNKNOWN = "UNKNOWN",
|
|
4242
4325
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4243
4326
|
MEMBER = "MEMBER",
|
|
@@ -4326,7 +4409,7 @@ interface BaseEventMetadata {
|
|
|
4326
4409
|
/** Event type. */
|
|
4327
4410
|
eventType?: string;
|
|
4328
4411
|
/** The identification type and identity data. */
|
|
4329
|
-
identity?: IdentificationData;
|
|
4412
|
+
identity?: IdentificationData$1;
|
|
4330
4413
|
}
|
|
4331
4414
|
interface EventMetadata extends BaseEventMetadata {
|
|
4332
4415
|
/**
|
|
@@ -4375,7 +4458,7 @@ interface QueryProjectInCollectionsOptions {
|
|
|
4375
4458
|
includePageUrl?: boolean | null | undefined;
|
|
4376
4459
|
}
|
|
4377
4460
|
interface QueryCursorResult {
|
|
4378
|
-
cursors: Cursors;
|
|
4461
|
+
cursors: Cursors$1;
|
|
4379
4462
|
hasNext: () => boolean;
|
|
4380
4463
|
hasPrev: () => boolean;
|
|
4381
4464
|
length: number;
|
|
@@ -4458,74 +4541,859 @@ interface UpdateProjectOrderInCollectionIdentifiers {
|
|
|
4458
4541
|
collectionId: string;
|
|
4459
4542
|
}
|
|
4460
4543
|
|
|
4461
|
-
|
|
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>;
|
|
4575
|
+
|
|
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
|
+
}
|
|
4582
|
+
|
|
4583
|
+
declare const __metadata$1: {
|
|
4462
4584
|
PACKAGE_NAME: string;
|
|
4463
4585
|
};
|
|
4464
|
-
declare function queryProjectInCollections(httpClient: HttpClient): (options?: QueryProjectInCollectionsOptions) => ProjectInCollectionsQueryBuilder;
|
|
4465
|
-
declare function updateProjectOrderInCollection(httpClient: HttpClient): (identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number | null) => Promise<UpdateProjectOrderInCollectionResponse & UpdateProjectOrderInCollectionResponseNonNullableFields>;
|
|
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>;
|
|
4466
4588
|
declare const onProjectInCollectionProjectOrderInCollectionUpdatedEvent: EventDefinition<ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope, "wix.portfolio.projects.v1.project_in_collection_project_order_in_collection_updated_event">;
|
|
4467
4589
|
|
|
4590
|
+
type index_d$1_BaseEventMetadata = BaseEventMetadata;
|
|
4591
|
+
type index_d$1_DetailsLink = DetailsLink;
|
|
4592
|
+
type index_d$1_EventMetadata = EventMetadata;
|
|
4593
|
+
type index_d$1_Image = Image;
|
|
4594
|
+
type index_d$1_ImageType = ImageType;
|
|
4595
|
+
declare const index_d$1_ImageType: typeof ImageType;
|
|
4596
|
+
type index_d$1_Keyword = Keyword;
|
|
4597
|
+
type index_d$1_Paging = Paging;
|
|
4598
|
+
type index_d$1_Point = Point;
|
|
4599
|
+
type index_d$1_Project = Project;
|
|
4600
|
+
type index_d$1_ProjectCoverOneOf = ProjectCoverOneOf;
|
|
4601
|
+
type index_d$1_ProjectDetail = ProjectDetail;
|
|
4602
|
+
type index_d$1_ProjectDetailValueOneOf = ProjectDetailValueOneOf;
|
|
4603
|
+
type index_d$1_ProjectInCollection = ProjectInCollection;
|
|
4604
|
+
type index_d$1_ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope = ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope;
|
|
4605
|
+
type index_d$1_ProjectInCollectionsQueryBuilder = ProjectInCollectionsQueryBuilder;
|
|
4606
|
+
type index_d$1_ProjectInCollectionsQueryResult = ProjectInCollectionsQueryResult;
|
|
4607
|
+
type index_d$1_ProjectOrderInCollectionUpdatedEvent = ProjectOrderInCollectionUpdatedEvent;
|
|
4608
|
+
type index_d$1_ProjectSource = ProjectSource;
|
|
4609
|
+
type index_d$1_QueryProjectInCollectionsOptions = QueryProjectInCollectionsOptions;
|
|
4610
|
+
type index_d$1_QueryProjectInCollectionsRequest = QueryProjectInCollectionsRequest;
|
|
4611
|
+
type index_d$1_QueryProjectInCollectionsResponse = QueryProjectInCollectionsResponse;
|
|
4612
|
+
type index_d$1_QueryProjectInCollectionsResponseNonNullableFields = QueryProjectInCollectionsResponseNonNullableFields;
|
|
4613
|
+
type index_d$1_QueryV2 = QueryV2;
|
|
4614
|
+
type index_d$1_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
|
|
4615
|
+
type index_d$1_SeoSchema = SeoSchema;
|
|
4616
|
+
type index_d$1_Settings = Settings;
|
|
4617
|
+
type index_d$1_SortOrder = SortOrder;
|
|
4618
|
+
declare const index_d$1_SortOrder: typeof SortOrder;
|
|
4619
|
+
type index_d$1_Sorting = Sorting;
|
|
4620
|
+
type index_d$1_Tag = Tag;
|
|
4621
|
+
type index_d$1_UndeleteInfo = UndeleteInfo;
|
|
4622
|
+
type index_d$1_UnsharpMasking = UnsharpMasking;
|
|
4623
|
+
type index_d$1_UpdateProjectOrderInCollectionIdentifiers = UpdateProjectOrderInCollectionIdentifiers;
|
|
4624
|
+
type index_d$1_UpdateProjectOrderInCollectionRequest = UpdateProjectOrderInCollectionRequest;
|
|
4625
|
+
type index_d$1_UpdateProjectOrderInCollectionResponse = UpdateProjectOrderInCollectionResponse;
|
|
4626
|
+
type index_d$1_UpdateProjectOrderInCollectionResponseNonNullableFields = UpdateProjectOrderInCollectionResponseNonNullableFields;
|
|
4627
|
+
type index_d$1_Video = Video;
|
|
4628
|
+
type index_d$1_VideoResolution = VideoResolution;
|
|
4629
|
+
declare const index_d$1_onProjectInCollectionProjectOrderInCollectionUpdatedEvent: typeof onProjectInCollectionProjectOrderInCollectionUpdatedEvent;
|
|
4630
|
+
declare const index_d$1_queryProjectInCollections: typeof queryProjectInCollections;
|
|
4631
|
+
declare const index_d$1_updateProjectOrderInCollection: typeof updateProjectOrderInCollection;
|
|
4632
|
+
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 };
|
|
4634
|
+
}
|
|
4635
|
+
|
|
4636
|
+
interface SyncedProject {
|
|
4637
|
+
/** Project ID in Portfolio - if project was yet to be create, will be None */
|
|
4638
|
+
portfolioProjectId?: string | null;
|
|
4639
|
+
/** External Project ID */
|
|
4640
|
+
externalId?: string;
|
|
4641
|
+
/** Project name */
|
|
4642
|
+
title?: string | null;
|
|
4643
|
+
/** google.protobuf.StringValue description = 4 [(wix.api.maxLength) = 1000]; // Project description */
|
|
4644
|
+
mediaCount?: number;
|
|
4645
|
+
/** project image url */
|
|
4646
|
+
coverImage?: string | null;
|
|
4647
|
+
/** project url in external */
|
|
4648
|
+
link?: string | null;
|
|
4649
|
+
/**
|
|
4650
|
+
* Represents the last time project was synced - returned only if external project is synced
|
|
4651
|
+
* @readonly
|
|
4652
|
+
*/
|
|
4653
|
+
lastSynced?: Date;
|
|
4654
|
+
/** External Project synced status */
|
|
4655
|
+
status?: SyncStatus;
|
|
4656
|
+
}
|
|
4657
|
+
declare enum SyncStatus {
|
|
4658
|
+
/** Project was not synced */
|
|
4659
|
+
NOT_SYNCED = "NOT_SYNCED",
|
|
4660
|
+
/** Project is in pending state */
|
|
4661
|
+
PENDING = "PENDING",
|
|
4662
|
+
/** Project is in syncing state */
|
|
4663
|
+
SYNCING = "SYNCING",
|
|
4664
|
+
/** Project was synced */
|
|
4665
|
+
SYNCED = "SYNCED"
|
|
4666
|
+
}
|
|
4667
|
+
interface SyncingProjectEvent {
|
|
4668
|
+
/** provider appDefId */
|
|
4669
|
+
appDefId?: string;
|
|
4670
|
+
/** External Project ID */
|
|
4671
|
+
externalProjectId?: string;
|
|
4672
|
+
/** portfolio Project ID */
|
|
4673
|
+
portfolioProjectId?: string;
|
|
4674
|
+
/** when the first event was produced, and started syncing */
|
|
4675
|
+
firstProduceTimestamp?: Date;
|
|
4676
|
+
/** Project Revision */
|
|
4677
|
+
projectSyncRevision?: Date;
|
|
4678
|
+
}
|
|
4679
|
+
interface SyncProjectPagingEvent {
|
|
4680
|
+
/** provider appDefId */
|
|
4681
|
+
appDefId?: string;
|
|
4682
|
+
/** External Project ID */
|
|
4683
|
+
externalProjectId?: string;
|
|
4684
|
+
/** portfolio Project ID */
|
|
4685
|
+
portfolioProjectId?: string;
|
|
4686
|
+
/** next page cursor */
|
|
4687
|
+
nextPageCursor?: string | null;
|
|
4688
|
+
/** Project Revision */
|
|
4689
|
+
projectSyncRevision?: Date;
|
|
4690
|
+
}
|
|
4691
|
+
interface SyncAllSitesEvent {
|
|
4692
|
+
/** paging */
|
|
4693
|
+
paging?: CursorPaging;
|
|
4694
|
+
}
|
|
4695
|
+
interface CursorPaging {
|
|
4696
|
+
/** Maximum number of items to return in the results. */
|
|
4697
|
+
limit?: number | null;
|
|
4698
|
+
/**
|
|
4699
|
+
* Pointer to the next or previous page in the list of results.
|
|
4700
|
+
*
|
|
4701
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
4702
|
+
* Not relevant for the first request.
|
|
4703
|
+
*/
|
|
4704
|
+
cursor?: string | null;
|
|
4705
|
+
}
|
|
4706
|
+
interface SyncSiteEvent {
|
|
4707
|
+
/** portfolio instance id */
|
|
4708
|
+
instanceId?: string;
|
|
4709
|
+
/** paging */
|
|
4710
|
+
paging?: CursorPaging;
|
|
4711
|
+
}
|
|
4712
|
+
interface SyncProjectRequest {
|
|
4713
|
+
/** provider appDefId */
|
|
4714
|
+
appDefId: string;
|
|
4715
|
+
/** External Project ID */
|
|
4716
|
+
externalId: string;
|
|
4717
|
+
}
|
|
4718
|
+
interface GetProjectsRequest {
|
|
4719
|
+
/** provider appDefId */
|
|
4720
|
+
appDefId: string;
|
|
4721
|
+
/** paging */
|
|
4722
|
+
paging?: CursorPaging;
|
|
4723
|
+
}
|
|
4724
|
+
interface GetProjectsResponse {
|
|
4725
|
+
/** provider appDefId */
|
|
4726
|
+
projects?: SyncedProject[];
|
|
4727
|
+
/** Paging metadata */
|
|
4728
|
+
metadata?: PagingMetadataV2;
|
|
4729
|
+
}
|
|
4730
|
+
interface PagingMetadataV2 {
|
|
4731
|
+
/** Number of items returned in the response. */
|
|
4732
|
+
count?: number | null;
|
|
4733
|
+
/** Offset that was requested. */
|
|
4734
|
+
offset?: number | null;
|
|
4735
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
4736
|
+
total?: number | null;
|
|
4737
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
4738
|
+
tooManyToCount?: boolean | null;
|
|
4739
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
4740
|
+
cursors?: Cursors;
|
|
4741
|
+
}
|
|
4742
|
+
interface Cursors {
|
|
4743
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
4744
|
+
next?: string | null;
|
|
4745
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
4746
|
+
prev?: string | null;
|
|
4747
|
+
}
|
|
4748
|
+
interface SyncProjectResponse {
|
|
4749
|
+
/** Portfolio project */
|
|
4750
|
+
project?: SyncedProject;
|
|
4751
|
+
}
|
|
4752
|
+
interface GetSyncStatusRequest {
|
|
4753
|
+
/** provider appDefId */
|
|
4754
|
+
appDefId: string;
|
|
4755
|
+
/** External Project ID */
|
|
4756
|
+
externalId: string;
|
|
4757
|
+
}
|
|
4758
|
+
interface GetSyncStatusResponse {
|
|
4759
|
+
/** provider appDefId */
|
|
4760
|
+
appDefId?: string;
|
|
4761
|
+
/** External Project ID */
|
|
4762
|
+
externalId?: string;
|
|
4763
|
+
/** Synced status */
|
|
4764
|
+
status?: SyncStatus;
|
|
4765
|
+
}
|
|
4766
|
+
interface StopSyncRequest {
|
|
4767
|
+
/** provider appDefId */
|
|
4768
|
+
appDefId: string;
|
|
4769
|
+
/** External Project ID */
|
|
4770
|
+
externalId: string;
|
|
4771
|
+
}
|
|
4772
|
+
interface StopSyncResponse {
|
|
4773
|
+
/** provider appDefId */
|
|
4774
|
+
appDefId?: string;
|
|
4775
|
+
/** External Project ID */
|
|
4776
|
+
externalId?: string;
|
|
4777
|
+
}
|
|
4778
|
+
interface GetLoginRedirectableUrlRequest {
|
|
4779
|
+
/** provider appDefId */
|
|
4780
|
+
appDefId: string;
|
|
4781
|
+
}
|
|
4782
|
+
interface GetLoginRedirectableUrlResponse {
|
|
4783
|
+
/** provider appDefId */
|
|
4784
|
+
appDefId?: string;
|
|
4785
|
+
/** login url */
|
|
4786
|
+
url?: string;
|
|
4787
|
+
}
|
|
4788
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
4789
|
+
createdEvent?: EntityCreatedEvent;
|
|
4790
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
4791
|
+
deletedEvent?: EntityDeletedEvent;
|
|
4792
|
+
actionEvent?: ActionEvent;
|
|
4793
|
+
/**
|
|
4794
|
+
* Unique event ID.
|
|
4795
|
+
* Allows clients to ignore duplicate webhooks.
|
|
4796
|
+
*/
|
|
4797
|
+
_id?: string;
|
|
4798
|
+
/**
|
|
4799
|
+
* Assumes actions are also always typed to an entity_type
|
|
4800
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
4801
|
+
*/
|
|
4802
|
+
entityFqdn?: string;
|
|
4803
|
+
/**
|
|
4804
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
4805
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
4806
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
4807
|
+
*/
|
|
4808
|
+
slug?: string;
|
|
4809
|
+
/** ID of the entity associated with the event. */
|
|
4810
|
+
entityId?: string;
|
|
4811
|
+
/** Event timestamp. */
|
|
4812
|
+
eventTime?: Date;
|
|
4813
|
+
/**
|
|
4814
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
4815
|
+
* (for example, GDPR).
|
|
4816
|
+
*/
|
|
4817
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
4818
|
+
/** If present, indicates the action that triggered the event. */
|
|
4819
|
+
originatedFrom?: string | null;
|
|
4820
|
+
/**
|
|
4821
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
4822
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
4823
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
4824
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
4825
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
4826
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
4827
|
+
*/
|
|
4828
|
+
entityEventSequence?: string | null;
|
|
4829
|
+
}
|
|
4830
|
+
/** @oneof */
|
|
4831
|
+
interface DomainEventBodyOneOf {
|
|
4832
|
+
createdEvent?: EntityCreatedEvent;
|
|
4833
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
4834
|
+
deletedEvent?: EntityDeletedEvent;
|
|
4835
|
+
actionEvent?: ActionEvent;
|
|
4836
|
+
}
|
|
4837
|
+
interface EntityCreatedEvent {
|
|
4838
|
+
entity?: string;
|
|
4839
|
+
}
|
|
4840
|
+
interface RestoreInfo {
|
|
4841
|
+
deletedDate?: Date;
|
|
4842
|
+
}
|
|
4843
|
+
interface EntityUpdatedEvent {
|
|
4844
|
+
/**
|
|
4845
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4846
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
4847
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
4848
|
+
*/
|
|
4849
|
+
currentEntity?: string;
|
|
4850
|
+
}
|
|
4851
|
+
interface EntityDeletedEvent {
|
|
4852
|
+
/** Entity that was deleted */
|
|
4853
|
+
deletedEntity?: string | null;
|
|
4854
|
+
}
|
|
4855
|
+
interface ActionEvent {
|
|
4856
|
+
body?: string;
|
|
4857
|
+
}
|
|
4858
|
+
interface Empty {
|
|
4859
|
+
}
|
|
4860
|
+
interface ItemCreatedMediaCallbackRequest {
|
|
4861
|
+
appDefId?: string;
|
|
4862
|
+
/** External Project ID */
|
|
4863
|
+
projectExternalId?: string;
|
|
4864
|
+
/** External Project ID */
|
|
4865
|
+
itemExternalId?: string;
|
|
4866
|
+
fileName?: string | null;
|
|
4867
|
+
mediaType?: string | null;
|
|
4868
|
+
opStatus?: string | null;
|
|
4869
|
+
fileSize?: number | null;
|
|
4870
|
+
width?: number | null;
|
|
4871
|
+
height?: number | null;
|
|
4872
|
+
fileOutput?: MediaFileOutput;
|
|
4873
|
+
siteId?: string | null;
|
|
4874
|
+
}
|
|
4875
|
+
interface MediaFileOutput {
|
|
4876
|
+
video?: MediaVideoOutput[];
|
|
4877
|
+
image?: MediaImageOutput[];
|
|
4878
|
+
}
|
|
4879
|
+
interface MediaVideoOutput {
|
|
4880
|
+
key?: string | null;
|
|
4881
|
+
status?: string | null;
|
|
4882
|
+
url?: string | null;
|
|
4883
|
+
quality?: string | null;
|
|
4884
|
+
duration?: number | null;
|
|
4885
|
+
width?: number | null;
|
|
4886
|
+
height?: number | null;
|
|
4887
|
+
format?: string | null;
|
|
4888
|
+
}
|
|
4889
|
+
interface MediaImageOutput {
|
|
4890
|
+
key?: string | null;
|
|
4891
|
+
status?: string | null;
|
|
4892
|
+
url?: string | null;
|
|
4893
|
+
width?: number | null;
|
|
4894
|
+
height?: number | null;
|
|
4895
|
+
format?: string | null;
|
|
4896
|
+
}
|
|
4897
|
+
interface ItemCreatedMediaCallbackResponse {
|
|
4898
|
+
}
|
|
4899
|
+
interface ProjectCoverImageCreatedMediaCallbackRequest {
|
|
4900
|
+
appDefId?: string;
|
|
4901
|
+
/** External Project ID */
|
|
4902
|
+
projectExternalId?: string;
|
|
4903
|
+
fileName?: string | null;
|
|
4904
|
+
mediaType?: string | null;
|
|
4905
|
+
opStatus?: string | null;
|
|
4906
|
+
fileSize?: number | null;
|
|
4907
|
+
width?: number | null;
|
|
4908
|
+
height?: number | null;
|
|
4909
|
+
fileOutput?: MediaFileOutput;
|
|
4910
|
+
siteId?: string | null;
|
|
4911
|
+
}
|
|
4912
|
+
interface ProjectCoverImageCreatedMediaCallbackResponse {
|
|
4913
|
+
}
|
|
4914
|
+
interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
4915
|
+
/** Emitted on a meta site creation. */
|
|
4916
|
+
siteCreated?: SiteCreated;
|
|
4917
|
+
/** Emitted on a meta site transfer completion. */
|
|
4918
|
+
siteTransferred?: SiteTransferred;
|
|
4919
|
+
/** Emitted on a meta site deletion. */
|
|
4920
|
+
siteDeleted?: SiteDeleted;
|
|
4921
|
+
/** Emitted on a meta site restoration. */
|
|
4922
|
+
siteUndeleted?: SiteUndeleted;
|
|
4923
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
4924
|
+
sitePublished?: SitePublished;
|
|
4925
|
+
/** Emitted on a meta site unpublish. */
|
|
4926
|
+
siteUnpublished?: SiteUnpublished;
|
|
4927
|
+
/** Emitted when meta site is marked as template. */
|
|
4928
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
4929
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
4930
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
4931
|
+
/** Emitted when an application is provisioned (installed). */
|
|
4932
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
4933
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
4934
|
+
serviceRemoved?: ServiceRemoved;
|
|
4935
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
4936
|
+
siteRenamedPayload?: SiteRenamed;
|
|
4937
|
+
/** Emitted when meta site was permanently deleted. */
|
|
4938
|
+
hardDeleted?: SiteHardDeleted;
|
|
4939
|
+
/** Emitted on a namespace change. */
|
|
4940
|
+
namespaceChanged?: NamespaceChanged;
|
|
4941
|
+
/** Emitted when Studio is attached. */
|
|
4942
|
+
studioAssigned?: StudioAssigned;
|
|
4943
|
+
/** Emitted when Studio is detached. */
|
|
4944
|
+
studioUnassigned?: StudioUnassigned;
|
|
4945
|
+
/** A meta site id. */
|
|
4946
|
+
metaSiteId?: string;
|
|
4947
|
+
/** A meta site version. Monotonically increasing. */
|
|
4948
|
+
version?: string;
|
|
4949
|
+
/** A timestamp of the event. */
|
|
4950
|
+
timestamp?: string;
|
|
4951
|
+
/** A list of "assets" (applications). The same as MetaSiteContext. */
|
|
4952
|
+
assets?: Asset[];
|
|
4953
|
+
}
|
|
4954
|
+
/** @oneof */
|
|
4955
|
+
interface MetaSiteSpecialEventPayloadOneOf {
|
|
4956
|
+
/** Emitted on a meta site creation. */
|
|
4957
|
+
siteCreated?: SiteCreated;
|
|
4958
|
+
/** Emitted on a meta site transfer completion. */
|
|
4959
|
+
siteTransferred?: SiteTransferred;
|
|
4960
|
+
/** Emitted on a meta site deletion. */
|
|
4961
|
+
siteDeleted?: SiteDeleted;
|
|
4962
|
+
/** Emitted on a meta site restoration. */
|
|
4963
|
+
siteUndeleted?: SiteUndeleted;
|
|
4964
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
4965
|
+
sitePublished?: SitePublished;
|
|
4966
|
+
/** Emitted on a meta site unpublish. */
|
|
4967
|
+
siteUnpublished?: SiteUnpublished;
|
|
4968
|
+
/** Emitted when meta site is marked as template. */
|
|
4969
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
4970
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
4971
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
4972
|
+
/** Emitted when an application is provisioned (installed). */
|
|
4973
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
4974
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
4975
|
+
serviceRemoved?: ServiceRemoved;
|
|
4976
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
4977
|
+
siteRenamedPayload?: SiteRenamed;
|
|
4978
|
+
/** Emitted when meta site was permanently deleted. */
|
|
4979
|
+
hardDeleted?: SiteHardDeleted;
|
|
4980
|
+
/** Emitted on a namespace change. */
|
|
4981
|
+
namespaceChanged?: NamespaceChanged;
|
|
4982
|
+
/** Emitted when Studio is attached. */
|
|
4983
|
+
studioAssigned?: StudioAssigned;
|
|
4984
|
+
/** Emitted when Studio is detached. */
|
|
4985
|
+
studioUnassigned?: StudioUnassigned;
|
|
4986
|
+
}
|
|
4987
|
+
interface Asset {
|
|
4988
|
+
/** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
|
|
4989
|
+
appDefId?: string;
|
|
4990
|
+
/** An instance id. For legacy reasons may be UUID or a string. */
|
|
4991
|
+
instanceId?: string;
|
|
4992
|
+
/** An application state. */
|
|
4993
|
+
state?: State;
|
|
4994
|
+
}
|
|
4995
|
+
declare enum State {
|
|
4996
|
+
UNKNOWN = "UNKNOWN",
|
|
4997
|
+
ENABLED = "ENABLED",
|
|
4998
|
+
DISABLED = "DISABLED",
|
|
4999
|
+
PENDING = "PENDING",
|
|
5000
|
+
DEMO = "DEMO"
|
|
5001
|
+
}
|
|
5002
|
+
interface SiteCreated {
|
|
5003
|
+
/** A template identifier (empty if not created from a template). */
|
|
5004
|
+
originTemplateId?: string;
|
|
5005
|
+
/** An account id of the owner. */
|
|
5006
|
+
ownerId?: string;
|
|
5007
|
+
/** A context in which meta site was created. */
|
|
5008
|
+
context?: SiteCreatedContext;
|
|
5009
|
+
/**
|
|
5010
|
+
* A meta site id from which this site was created.
|
|
5011
|
+
*
|
|
5012
|
+
* In case of a creation from a template it's a template id.
|
|
5013
|
+
* In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
|
|
5014
|
+
*/
|
|
5015
|
+
originMetaSiteId?: string | null;
|
|
5016
|
+
/** A meta site name (URL slug). */
|
|
5017
|
+
siteName?: string;
|
|
5018
|
+
/** A namespace. */
|
|
5019
|
+
namespace?: Namespace;
|
|
5020
|
+
}
|
|
5021
|
+
declare enum SiteCreatedContext {
|
|
5022
|
+
/** A valid option, we don't expose all reasons why site might be created. */
|
|
5023
|
+
OTHER = "OTHER",
|
|
5024
|
+
/** A meta site was created from template. */
|
|
5025
|
+
FROM_TEMPLATE = "FROM_TEMPLATE",
|
|
5026
|
+
/** A meta site was created by copying of the transfferred meta site. */
|
|
5027
|
+
DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
|
|
5028
|
+
/** A copy of existing meta site. */
|
|
5029
|
+
DUPLICATE = "DUPLICATE",
|
|
5030
|
+
/** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
|
|
5031
|
+
OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
|
|
5032
|
+
/** deprecated A meta site was created for Flash editor. */
|
|
5033
|
+
FLASH = "FLASH"
|
|
5034
|
+
}
|
|
5035
|
+
declare enum Namespace {
|
|
5036
|
+
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
5037
|
+
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
5038
|
+
WIX = "WIX",
|
|
5039
|
+
/** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5040
|
+
SHOUT_OUT = "SHOUT_OUT",
|
|
5041
|
+
/** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5042
|
+
ALBUMS = "ALBUMS",
|
|
5043
|
+
/** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5044
|
+
WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
|
|
5045
|
+
/** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5046
|
+
HOTELS = "HOTELS",
|
|
5047
|
+
/** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5048
|
+
CLUBS = "CLUBS",
|
|
5049
|
+
/** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5050
|
+
ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
|
|
5051
|
+
/** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5052
|
+
DEV_SITE = "DEV_SITE",
|
|
5053
|
+
/** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5054
|
+
LOGOS = "LOGOS",
|
|
5055
|
+
/** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5056
|
+
VIDEO_MAKER = "VIDEO_MAKER",
|
|
5057
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5058
|
+
PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
|
|
5059
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5060
|
+
DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
|
|
5061
|
+
/**
|
|
5062
|
+
* A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
|
|
5063
|
+
*
|
|
5064
|
+
* Meta site with this namespace will *not* be shown in a user's site list by default.
|
|
5065
|
+
*/
|
|
5066
|
+
HTML_DRAFT = "HTML_DRAFT",
|
|
5067
|
+
/**
|
|
5068
|
+
* the user-journey for Fitness users who want to start from managing their business instead of designing their website.
|
|
5069
|
+
* Will be accessible from Site List and will not have a website app.
|
|
5070
|
+
* Once the user attaches a site, the site will become a regular wixsite.
|
|
5071
|
+
*/
|
|
5072
|
+
SITELESS_BUSINESS = "SITELESS_BUSINESS",
|
|
5073
|
+
/** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
|
|
5074
|
+
CREATOR_ECONOMY = "CREATOR_ECONOMY",
|
|
5075
|
+
/** It is to be used in the Business First efforts. */
|
|
5076
|
+
DASHBOARD_FIRST = "DASHBOARD_FIRST",
|
|
5077
|
+
/** Bookings business flow with no site. */
|
|
5078
|
+
ANYWHERE = "ANYWHERE",
|
|
5079
|
+
/** Namespace for Headless Backoffice with no editor */
|
|
5080
|
+
HEADLESS = "HEADLESS",
|
|
5081
|
+
/**
|
|
5082
|
+
* Namespace for master site that will exist in parent account that will be referenced by subaccounts
|
|
5083
|
+
* The site will be used for account level CSM feature for enterprise
|
|
5084
|
+
*/
|
|
5085
|
+
ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
|
|
5086
|
+
/** Rise.ai Siteless account management for Gift Cards and Store Credit. */
|
|
5087
|
+
RISE = "RISE",
|
|
5088
|
+
/**
|
|
5089
|
+
* As part of the branded app new funnel, users now can create a meta site that will be branded app first.
|
|
5090
|
+
* There's a blank site behind the scene but it's blank).
|
|
5091
|
+
* The Mobile company will be the owner of this namespace.
|
|
5092
|
+
*/
|
|
5093
|
+
BRANDED_FIRST = "BRANDED_FIRST"
|
|
5094
|
+
}
|
|
5095
|
+
/** Site transferred to another user. */
|
|
5096
|
+
interface SiteTransferred {
|
|
5097
|
+
/** A previous owner id (user that transfers meta site). */
|
|
5098
|
+
oldOwnerId?: string;
|
|
5099
|
+
/** A new owner id (user that accepts meta site). */
|
|
5100
|
+
newOwnerId?: string;
|
|
5101
|
+
}
|
|
5102
|
+
/** Soft deletion of the meta site. Could be restored. */
|
|
5103
|
+
interface SiteDeleted {
|
|
5104
|
+
/** A deletion context. */
|
|
5105
|
+
deleteContext?: DeleteContext;
|
|
5106
|
+
}
|
|
5107
|
+
interface DeleteContext {
|
|
5108
|
+
/** When the meta site was deleted. */
|
|
5109
|
+
dateDeleted?: Date;
|
|
5110
|
+
/** A status. */
|
|
5111
|
+
deleteStatus?: DeleteStatus;
|
|
5112
|
+
/** A reason (flow). */
|
|
5113
|
+
deleteOrigin?: string;
|
|
5114
|
+
/** A service that deleted it. */
|
|
5115
|
+
initiatorId?: string | null;
|
|
5116
|
+
}
|
|
5117
|
+
declare enum DeleteStatus {
|
|
5118
|
+
UNKNOWN = "UNKNOWN",
|
|
5119
|
+
TRASH = "TRASH",
|
|
5120
|
+
DELETED = "DELETED",
|
|
5121
|
+
PENDING_PURGE = "PENDING_PURGE"
|
|
5122
|
+
}
|
|
5123
|
+
/** Restoration of the meta site. */
|
|
5124
|
+
interface SiteUndeleted {
|
|
5125
|
+
}
|
|
5126
|
+
/** First publish of a meta site. Or subsequent publish after unpublish. */
|
|
5127
|
+
interface SitePublished {
|
|
5128
|
+
}
|
|
5129
|
+
interface SiteUnpublished {
|
|
5130
|
+
/** A list of URLs previously associated with the meta site. */
|
|
5131
|
+
urls?: string[];
|
|
5132
|
+
}
|
|
5133
|
+
interface SiteMarkedAsTemplate {
|
|
5134
|
+
}
|
|
5135
|
+
interface SiteMarkedAsWixSite {
|
|
5136
|
+
}
|
|
5137
|
+
interface ServiceProvisioned {
|
|
5138
|
+
/** Either UUID or EmbeddedServiceType. */
|
|
5139
|
+
appDefId?: string;
|
|
5140
|
+
/** Not only UUID. Something here could be something weird. */
|
|
5141
|
+
instanceId?: string;
|
|
5142
|
+
/** An instance id from which this instance is originated. */
|
|
5143
|
+
originInstanceId?: string;
|
|
5144
|
+
/** A version. */
|
|
5145
|
+
version?: string | null;
|
|
5146
|
+
}
|
|
5147
|
+
interface ServiceRemoved {
|
|
5148
|
+
/** Either UUID or EmbeddedServiceType. */
|
|
5149
|
+
appDefId?: string;
|
|
5150
|
+
/** Not only UUID. Something here could be something weird. */
|
|
5151
|
+
instanceId?: string;
|
|
5152
|
+
/** A version. */
|
|
5153
|
+
version?: string | null;
|
|
5154
|
+
}
|
|
5155
|
+
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
5156
|
+
interface SiteRenamed {
|
|
5157
|
+
/** A new meta site name (URL slug). */
|
|
5158
|
+
newSiteName?: string;
|
|
5159
|
+
/** A previous meta site name (URL slug). */
|
|
5160
|
+
oldSiteName?: string;
|
|
5161
|
+
}
|
|
5162
|
+
/**
|
|
5163
|
+
* Hard deletion of the meta site.
|
|
5164
|
+
*
|
|
5165
|
+
* Could not be restored. Therefore it's desirable to cleanup data.
|
|
5166
|
+
*/
|
|
5167
|
+
interface SiteHardDeleted {
|
|
5168
|
+
/** A deletion context. */
|
|
5169
|
+
deleteContext?: DeleteContext;
|
|
5170
|
+
}
|
|
5171
|
+
interface NamespaceChanged {
|
|
5172
|
+
/** A previous namespace. */
|
|
5173
|
+
oldNamespace?: Namespace;
|
|
5174
|
+
/** A new namespace. */
|
|
5175
|
+
newNamespace?: Namespace;
|
|
5176
|
+
}
|
|
5177
|
+
/** Assigned Studio editor */
|
|
5178
|
+
interface StudioAssigned {
|
|
5179
|
+
}
|
|
5180
|
+
/** Unassigned Studio editor */
|
|
5181
|
+
interface StudioUnassigned {
|
|
5182
|
+
}
|
|
5183
|
+
interface MessageEnvelope {
|
|
5184
|
+
/** App instance ID. */
|
|
5185
|
+
instanceId?: string | null;
|
|
5186
|
+
/** Event type. */
|
|
5187
|
+
eventType?: string;
|
|
5188
|
+
/** The identification type and identity data. */
|
|
5189
|
+
identity?: IdentificationData;
|
|
5190
|
+
/** Stringify payload. */
|
|
5191
|
+
data?: string;
|
|
5192
|
+
}
|
|
5193
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
5194
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
5195
|
+
anonymousVisitorId?: string;
|
|
5196
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
5197
|
+
memberId?: string;
|
|
5198
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
5199
|
+
wixUserId?: string;
|
|
5200
|
+
/** ID of an app. */
|
|
5201
|
+
appId?: string;
|
|
5202
|
+
/** @readonly */
|
|
5203
|
+
identityType?: WebhookIdentityType;
|
|
5204
|
+
}
|
|
5205
|
+
/** @oneof */
|
|
5206
|
+
interface IdentificationDataIdOneOf {
|
|
5207
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
5208
|
+
anonymousVisitorId?: string;
|
|
5209
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
5210
|
+
memberId?: string;
|
|
5211
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
5212
|
+
wixUserId?: string;
|
|
5213
|
+
/** ID of an app. */
|
|
5214
|
+
appId?: string;
|
|
5215
|
+
}
|
|
5216
|
+
declare enum WebhookIdentityType {
|
|
5217
|
+
UNKNOWN = "UNKNOWN",
|
|
5218
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
5219
|
+
MEMBER = "MEMBER",
|
|
5220
|
+
WIX_USER = "WIX_USER",
|
|
5221
|
+
APP = "APP"
|
|
5222
|
+
}
|
|
5223
|
+
interface GetProjectsResponseNonNullableFields {
|
|
5224
|
+
projects: {
|
|
5225
|
+
externalId: string;
|
|
5226
|
+
mediaCount: number;
|
|
5227
|
+
status: SyncStatus;
|
|
5228
|
+
}[];
|
|
5229
|
+
}
|
|
5230
|
+
interface SyncProjectResponseNonNullableFields {
|
|
5231
|
+
project?: {
|
|
5232
|
+
externalId: string;
|
|
5233
|
+
mediaCount: number;
|
|
5234
|
+
status: SyncStatus;
|
|
5235
|
+
};
|
|
5236
|
+
}
|
|
5237
|
+
interface GetSyncStatusResponseNonNullableFields {
|
|
5238
|
+
appDefId: string;
|
|
5239
|
+
externalId: string;
|
|
5240
|
+
status: SyncStatus;
|
|
5241
|
+
}
|
|
5242
|
+
interface StopSyncResponseNonNullableFields {
|
|
5243
|
+
appDefId: string;
|
|
5244
|
+
externalId: string;
|
|
5245
|
+
}
|
|
5246
|
+
interface GetLoginRedirectableUrlResponseNonNullableFields {
|
|
5247
|
+
appDefId: string;
|
|
5248
|
+
url: string;
|
|
5249
|
+
}
|
|
5250
|
+
interface GetProjectsOptions {
|
|
5251
|
+
/** paging */
|
|
5252
|
+
paging?: CursorPaging;
|
|
5253
|
+
}
|
|
5254
|
+
interface SyncProjectIdentifiers {
|
|
5255
|
+
/** provider appDefId */
|
|
5256
|
+
appDefId: string;
|
|
5257
|
+
/** External Project ID */
|
|
5258
|
+
externalId: string;
|
|
5259
|
+
}
|
|
5260
|
+
interface GetSyncStatusIdentifiers {
|
|
5261
|
+
/** provider appDefId */
|
|
5262
|
+
appDefId: string;
|
|
5263
|
+
/** External Project ID */
|
|
5264
|
+
externalId: string;
|
|
5265
|
+
}
|
|
5266
|
+
interface StopSyncIdentifiers {
|
|
5267
|
+
/** provider appDefId */
|
|
5268
|
+
appDefId: string;
|
|
5269
|
+
/** External Project ID */
|
|
5270
|
+
externalId: string;
|
|
5271
|
+
}
|
|
5272
|
+
|
|
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
|
+
}
|
|
5303
|
+
|
|
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>;
|
|
5312
|
+
|
|
4468
5313
|
type index_d_ActionEvent = ActionEvent;
|
|
4469
|
-
type
|
|
5314
|
+
type index_d_Asset = Asset;
|
|
4470
5315
|
type index_d_CursorPaging = CursorPaging;
|
|
4471
5316
|
type index_d_Cursors = Cursors;
|
|
4472
|
-
type
|
|
5317
|
+
type index_d_DeleteContext = DeleteContext;
|
|
5318
|
+
type index_d_DeleteStatus = DeleteStatus;
|
|
5319
|
+
declare const index_d_DeleteStatus: typeof DeleteStatus;
|
|
4473
5320
|
type index_d_DomainEvent = DomainEvent;
|
|
4474
5321
|
type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
5322
|
+
type index_d_Empty = Empty;
|
|
4475
5323
|
type index_d_EntityCreatedEvent = EntityCreatedEvent;
|
|
4476
5324
|
type index_d_EntityDeletedEvent = EntityDeletedEvent;
|
|
4477
5325
|
type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
4478
|
-
type
|
|
5326
|
+
type index_d_GetLoginRedirectableUrlRequest = GetLoginRedirectableUrlRequest;
|
|
5327
|
+
type index_d_GetLoginRedirectableUrlResponse = GetLoginRedirectableUrlResponse;
|
|
5328
|
+
type index_d_GetLoginRedirectableUrlResponseNonNullableFields = GetLoginRedirectableUrlResponseNonNullableFields;
|
|
5329
|
+
type index_d_GetProjectsOptions = GetProjectsOptions;
|
|
5330
|
+
type index_d_GetProjectsRequest = GetProjectsRequest;
|
|
5331
|
+
type index_d_GetProjectsResponse = GetProjectsResponse;
|
|
5332
|
+
type index_d_GetProjectsResponseNonNullableFields = GetProjectsResponseNonNullableFields;
|
|
5333
|
+
type index_d_GetSyncStatusIdentifiers = GetSyncStatusIdentifiers;
|
|
5334
|
+
type index_d_GetSyncStatusRequest = GetSyncStatusRequest;
|
|
5335
|
+
type index_d_GetSyncStatusResponse = GetSyncStatusResponse;
|
|
5336
|
+
type index_d_GetSyncStatusResponseNonNullableFields = GetSyncStatusResponseNonNullableFields;
|
|
4479
5337
|
type index_d_IdentificationData = IdentificationData;
|
|
4480
5338
|
type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
4481
|
-
type
|
|
4482
|
-
type
|
|
4483
|
-
|
|
4484
|
-
type
|
|
5339
|
+
type index_d_ItemCreatedMediaCallbackRequest = ItemCreatedMediaCallbackRequest;
|
|
5340
|
+
type index_d_ItemCreatedMediaCallbackResponse = ItemCreatedMediaCallbackResponse;
|
|
5341
|
+
type index_d_MediaFileOutput = MediaFileOutput;
|
|
5342
|
+
type index_d_MediaImageOutput = MediaImageOutput;
|
|
5343
|
+
type index_d_MediaVideoOutput = MediaVideoOutput;
|
|
4485
5344
|
type index_d_MessageEnvelope = MessageEnvelope;
|
|
4486
|
-
type
|
|
5345
|
+
type index_d_MetaSiteSpecialEvent = MetaSiteSpecialEvent;
|
|
5346
|
+
type index_d_MetaSiteSpecialEventPayloadOneOf = MetaSiteSpecialEventPayloadOneOf;
|
|
5347
|
+
type index_d_Namespace = Namespace;
|
|
5348
|
+
declare const index_d_Namespace: typeof Namespace;
|
|
5349
|
+
type index_d_NamespaceChanged = NamespaceChanged;
|
|
4487
5350
|
type index_d_PagingMetadataV2 = PagingMetadataV2;
|
|
4488
|
-
type
|
|
4489
|
-
type
|
|
4490
|
-
type
|
|
4491
|
-
type
|
|
4492
|
-
type
|
|
4493
|
-
type
|
|
4494
|
-
type
|
|
4495
|
-
|
|
4496
|
-
type
|
|
4497
|
-
type
|
|
4498
|
-
type
|
|
4499
|
-
type
|
|
4500
|
-
type
|
|
4501
|
-
type
|
|
4502
|
-
type
|
|
4503
|
-
type
|
|
4504
|
-
type
|
|
4505
|
-
type
|
|
4506
|
-
|
|
4507
|
-
type
|
|
4508
|
-
|
|
4509
|
-
type
|
|
5351
|
+
type index_d_ProjectCoverImageCreatedMediaCallbackRequest = ProjectCoverImageCreatedMediaCallbackRequest;
|
|
5352
|
+
type index_d_ProjectCoverImageCreatedMediaCallbackResponse = ProjectCoverImageCreatedMediaCallbackResponse;
|
|
5353
|
+
type index_d_RestoreInfo = RestoreInfo;
|
|
5354
|
+
type index_d_ServiceProvisioned = ServiceProvisioned;
|
|
5355
|
+
type index_d_ServiceRemoved = ServiceRemoved;
|
|
5356
|
+
type index_d_SiteCreated = SiteCreated;
|
|
5357
|
+
type index_d_SiteCreatedContext = SiteCreatedContext;
|
|
5358
|
+
declare const index_d_SiteCreatedContext: typeof SiteCreatedContext;
|
|
5359
|
+
type index_d_SiteDeleted = SiteDeleted;
|
|
5360
|
+
type index_d_SiteHardDeleted = SiteHardDeleted;
|
|
5361
|
+
type index_d_SiteMarkedAsTemplate = SiteMarkedAsTemplate;
|
|
5362
|
+
type index_d_SiteMarkedAsWixSite = SiteMarkedAsWixSite;
|
|
5363
|
+
type index_d_SitePublished = SitePublished;
|
|
5364
|
+
type index_d_SiteRenamed = SiteRenamed;
|
|
5365
|
+
type index_d_SiteTransferred = SiteTransferred;
|
|
5366
|
+
type index_d_SiteUndeleted = SiteUndeleted;
|
|
5367
|
+
type index_d_SiteUnpublished = SiteUnpublished;
|
|
5368
|
+
type index_d_State = State;
|
|
5369
|
+
declare const index_d_State: typeof State;
|
|
5370
|
+
type index_d_StopSyncIdentifiers = StopSyncIdentifiers;
|
|
5371
|
+
type index_d_StopSyncRequest = StopSyncRequest;
|
|
5372
|
+
type index_d_StopSyncResponse = StopSyncResponse;
|
|
5373
|
+
type index_d_StopSyncResponseNonNullableFields = StopSyncResponseNonNullableFields;
|
|
5374
|
+
type index_d_StudioAssigned = StudioAssigned;
|
|
5375
|
+
type index_d_StudioUnassigned = StudioUnassigned;
|
|
5376
|
+
type index_d_SyncAllSitesEvent = SyncAllSitesEvent;
|
|
5377
|
+
type index_d_SyncProjectIdentifiers = SyncProjectIdentifiers;
|
|
5378
|
+
type index_d_SyncProjectPagingEvent = SyncProjectPagingEvent;
|
|
5379
|
+
type index_d_SyncProjectRequest = SyncProjectRequest;
|
|
5380
|
+
type index_d_SyncProjectResponse = SyncProjectResponse;
|
|
5381
|
+
type index_d_SyncProjectResponseNonNullableFields = SyncProjectResponseNonNullableFields;
|
|
5382
|
+
type index_d_SyncSiteEvent = SyncSiteEvent;
|
|
4510
5383
|
type index_d_SyncStatus = SyncStatus;
|
|
4511
5384
|
declare const index_d_SyncStatus: typeof SyncStatus;
|
|
4512
|
-
type
|
|
4513
|
-
type
|
|
4514
|
-
type index_d_UnsharpMasking = UnsharpMasking;
|
|
4515
|
-
type index_d_UpdateProjectOrderInCollectionIdentifiers = UpdateProjectOrderInCollectionIdentifiers;
|
|
4516
|
-
type index_d_UpdateProjectOrderInCollectionRequest = UpdateProjectOrderInCollectionRequest;
|
|
4517
|
-
type index_d_UpdateProjectOrderInCollectionResponse = UpdateProjectOrderInCollectionResponse;
|
|
4518
|
-
type index_d_UpdateProjectOrderInCollectionResponseNonNullableFields = UpdateProjectOrderInCollectionResponseNonNullableFields;
|
|
4519
|
-
type index_d_Video = Video;
|
|
4520
|
-
type index_d_VideoResolution = VideoResolution;
|
|
5385
|
+
type index_d_SyncedProject = SyncedProject;
|
|
5386
|
+
type index_d_SyncingProjectEvent = SyncingProjectEvent;
|
|
4521
5387
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
4522
5388
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
4523
5389
|
declare const index_d___metadata: typeof __metadata;
|
|
4524
|
-
declare const
|
|
4525
|
-
declare const
|
|
4526
|
-
declare const
|
|
5390
|
+
declare const index_d_getLoginRedirectableUrl: typeof getLoginRedirectableUrl;
|
|
5391
|
+
declare const index_d_getProjects: typeof getProjects;
|
|
5392
|
+
declare const index_d_getSyncStatus: typeof getSyncStatus;
|
|
5393
|
+
declare const index_d_stopSync: typeof stopSync;
|
|
5394
|
+
declare const index_d_syncProject: typeof syncProject;
|
|
4527
5395
|
declare namespace index_d {
|
|
4528
|
-
export { type index_d_ActionEvent as ActionEvent, type
|
|
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 };
|
|
4529
5397
|
}
|
|
4530
5398
|
|
|
4531
|
-
export { index_d$
|
|
5399
|
+
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 };
|