@wix/portfolio 1.0.72 → 1.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/type-bundles/context.bundle.d.ts +91 -286
- package/type-bundles/index.bundle.d.ts +48 -227
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/portfolio",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.73",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"fqdn": ""
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "be8d191ae28ffe921dafe6c3448fa1e26762e8d0492dc4ae28491434"
|
|
51
51
|
}
|
|
@@ -391,41 +391,41 @@ interface CollectionsQueryBuilder {
|
|
|
391
391
|
find: () => Promise<CollectionsQueryResult>;
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
type RESTFunctionDescriptor
|
|
395
|
-
interface HttpClient
|
|
396
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
394
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
395
|
+
interface HttpClient {
|
|
396
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
397
397
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
398
398
|
}
|
|
399
|
-
type RequestOptionsFactory
|
|
400
|
-
type HttpResponse
|
|
399
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
400
|
+
type HttpResponse<T = any> = {
|
|
401
401
|
data: T;
|
|
402
402
|
status: number;
|
|
403
403
|
statusText: string;
|
|
404
404
|
headers: any;
|
|
405
405
|
request?: any;
|
|
406
406
|
};
|
|
407
|
-
type RequestOptions
|
|
407
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
408
408
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
409
409
|
url: string;
|
|
410
410
|
data?: Data;
|
|
411
411
|
params?: URLSearchParams;
|
|
412
|
-
} & APIMetadata
|
|
413
|
-
type APIMetadata
|
|
412
|
+
} & APIMetadata;
|
|
413
|
+
type APIMetadata = {
|
|
414
414
|
methodFqn?: string;
|
|
415
415
|
entityFqdn?: string;
|
|
416
416
|
packageName?: string;
|
|
417
417
|
};
|
|
418
|
-
type BuildRESTFunction
|
|
419
|
-
type EventDefinition
|
|
418
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
419
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
420
420
|
__type: 'event-definition';
|
|
421
421
|
type: Type;
|
|
422
422
|
isDomainEvent?: boolean;
|
|
423
423
|
transformations?: (envelope: unknown) => Payload;
|
|
424
424
|
__payload: Payload;
|
|
425
425
|
};
|
|
426
|
-
declare function EventDefinition
|
|
427
|
-
type EventHandler
|
|
428
|
-
type BuildEventDefinition
|
|
426
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
427
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
428
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
429
429
|
|
|
430
430
|
declare global {
|
|
431
431
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -434,7 +434,7 @@ declare global {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
-
declare function createCollection$1(httpClient: HttpClient
|
|
437
|
+
declare function createCollection$1(httpClient: HttpClient): (collection: Collection) => Promise<Collection & {
|
|
438
438
|
coverImage?: {
|
|
439
439
|
imageInfo: string;
|
|
440
440
|
focalPoint?: {
|
|
@@ -459,7 +459,7 @@ declare function createCollection$1(httpClient: HttpClient$5): (collection: Coll
|
|
|
459
459
|
} | undefined;
|
|
460
460
|
} | undefined;
|
|
461
461
|
}>;
|
|
462
|
-
declare function getCollection$1(httpClient: HttpClient
|
|
462
|
+
declare function getCollection$1(httpClient: HttpClient): (collectionId: string, options?: GetCollectionOptions) => Promise<Collection & {
|
|
463
463
|
coverImage?: {
|
|
464
464
|
imageInfo: string;
|
|
465
465
|
focalPoint?: {
|
|
@@ -484,8 +484,8 @@ declare function getCollection$1(httpClient: HttpClient$5): (collectionId: strin
|
|
|
484
484
|
} | undefined;
|
|
485
485
|
} | undefined;
|
|
486
486
|
}>;
|
|
487
|
-
declare function listCollections$1(httpClient: HttpClient
|
|
488
|
-
declare function updateCollection$1(httpClient: HttpClient
|
|
487
|
+
declare function listCollections$1(httpClient: HttpClient): (options?: ListCollectionsOptions) => Promise<ListCollectionsResponse & ListCollectionsResponseNonNullableFields>;
|
|
488
|
+
declare function updateCollection$1(httpClient: HttpClient): (_id: string | null, collection: UpdateCollection) => Promise<Collection & {
|
|
489
489
|
coverImage?: {
|
|
490
490
|
imageInfo: string;
|
|
491
491
|
focalPoint?: {
|
|
@@ -510,21 +510,21 @@ declare function updateCollection$1(httpClient: HttpClient$5): (_id: string | nu
|
|
|
510
510
|
} | undefined;
|
|
511
511
|
} | undefined;
|
|
512
512
|
}>;
|
|
513
|
-
declare function deleteCollection$1(httpClient: HttpClient
|
|
514
|
-
declare function queryCollections$1(httpClient: HttpClient
|
|
515
|
-
declare const onCollectionCreated$1: EventDefinition
|
|
516
|
-
declare const onCollectionUpdated$1: EventDefinition
|
|
517
|
-
declare const onCollectionDeleted$1: EventDefinition
|
|
513
|
+
declare function deleteCollection$1(httpClient: HttpClient): (collectionId: string) => Promise<DeleteCollectionResponse & DeleteCollectionResponseNonNullableFields>;
|
|
514
|
+
declare function queryCollections$1(httpClient: HttpClient): (options?: QueryCollectionsOptions) => CollectionsQueryBuilder;
|
|
515
|
+
declare const onCollectionCreated$1: EventDefinition<CollectionCreatedEnvelope, "wix.portfolio.collections.v1.collection_created">;
|
|
516
|
+
declare const onCollectionUpdated$1: EventDefinition<CollectionUpdatedEnvelope, "wix.portfolio.collections.v1.collection_updated">;
|
|
517
|
+
declare const onCollectionDeleted$1: EventDefinition<CollectionDeletedEnvelope, "wix.portfolio.collections.v1.collection_deleted">;
|
|
518
518
|
|
|
519
|
-
declare const createCollection: BuildRESTFunction
|
|
520
|
-
declare const getCollection: BuildRESTFunction
|
|
521
|
-
declare const listCollections: BuildRESTFunction
|
|
522
|
-
declare const updateCollection: BuildRESTFunction
|
|
523
|
-
declare const deleteCollection: BuildRESTFunction
|
|
524
|
-
declare const queryCollections: BuildRESTFunction
|
|
525
|
-
declare const onCollectionCreated: BuildEventDefinition
|
|
526
|
-
declare const onCollectionUpdated: BuildEventDefinition
|
|
527
|
-
declare const onCollectionDeleted: BuildEventDefinition
|
|
519
|
+
declare const createCollection: BuildRESTFunction<typeof createCollection$1>;
|
|
520
|
+
declare const getCollection: BuildRESTFunction<typeof getCollection$1>;
|
|
521
|
+
declare const listCollections: BuildRESTFunction<typeof listCollections$1>;
|
|
522
|
+
declare const updateCollection: BuildRESTFunction<typeof updateCollection$1>;
|
|
523
|
+
declare const deleteCollection: BuildRESTFunction<typeof deleteCollection$1>;
|
|
524
|
+
declare const queryCollections: BuildRESTFunction<typeof queryCollections$1>;
|
|
525
|
+
declare const onCollectionCreated: BuildEventDefinition<typeof onCollectionCreated$1>;
|
|
526
|
+
declare const onCollectionUpdated: BuildEventDefinition<typeof onCollectionUpdated$1>;
|
|
527
|
+
declare const onCollectionDeleted: BuildEventDefinition<typeof onCollectionDeleted$1>;
|
|
528
528
|
|
|
529
529
|
declare const context$5_createCollection: typeof createCollection;
|
|
530
530
|
declare const context$5_deleteCollection: typeof deleteCollection;
|
|
@@ -600,51 +600,18 @@ interface UpdatePortfolioSettingsResponseNonNullableFields {
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
|
|
604
|
-
interface HttpClient$4 {
|
|
605
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
606
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
607
|
-
}
|
|
608
|
-
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
609
|
-
type HttpResponse$4<T = any> = {
|
|
610
|
-
data: T;
|
|
611
|
-
status: number;
|
|
612
|
-
statusText: string;
|
|
613
|
-
headers: any;
|
|
614
|
-
request?: any;
|
|
615
|
-
};
|
|
616
|
-
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
617
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
618
|
-
url: string;
|
|
619
|
-
data?: Data;
|
|
620
|
-
params?: URLSearchParams;
|
|
621
|
-
} & APIMetadata$4;
|
|
622
|
-
type APIMetadata$4 = {
|
|
623
|
-
methodFqn?: string;
|
|
624
|
-
entityFqdn?: string;
|
|
625
|
-
packageName?: string;
|
|
626
|
-
};
|
|
627
|
-
type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
|
|
628
|
-
|
|
629
|
-
declare global {
|
|
630
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
631
|
-
interface SymbolConstructor {
|
|
632
|
-
readonly observable: symbol;
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
declare function createPortfolioSettings$1(httpClient: HttpClient$4): (portfolioSettings: PortfolioSettings) => Promise<PortfolioSettings & {
|
|
603
|
+
declare function createPortfolioSettings$1(httpClient: HttpClient): (portfolioSettings: PortfolioSettings) => Promise<PortfolioSettings & {
|
|
637
604
|
projectItemSettings?: {
|
|
638
605
|
addItemDirection: AddItemDirection;
|
|
639
606
|
defaultItemName: DefaultItemName;
|
|
640
607
|
} | undefined;
|
|
641
608
|
}>;
|
|
642
|
-
declare function getPortfolioSettings$1(httpClient: HttpClient
|
|
643
|
-
declare function updatePortfolioSettings$1(httpClient: HttpClient
|
|
609
|
+
declare function getPortfolioSettings$1(httpClient: HttpClient): () => Promise<GetPortfolioSettingsResponse & GetPortfolioSettingsResponseNonNullableFields>;
|
|
610
|
+
declare function updatePortfolioSettings$1(httpClient: HttpClient): (portfolioSettings: PortfolioSettings) => Promise<UpdatePortfolioSettingsResponse & UpdatePortfolioSettingsResponseNonNullableFields>;
|
|
644
611
|
|
|
645
|
-
declare const createPortfolioSettings: BuildRESTFunction
|
|
646
|
-
declare const getPortfolioSettings: BuildRESTFunction
|
|
647
|
-
declare const updatePortfolioSettings: BuildRESTFunction
|
|
612
|
+
declare const createPortfolioSettings: BuildRESTFunction<typeof createPortfolioSettings$1>;
|
|
613
|
+
declare const getPortfolioSettings: BuildRESTFunction<typeof getPortfolioSettings$1>;
|
|
614
|
+
declare const updatePortfolioSettings: BuildRESTFunction<typeof updatePortfolioSettings$1>;
|
|
648
615
|
|
|
649
616
|
declare const context$4_createPortfolioSettings: typeof createPortfolioSettings;
|
|
650
617
|
declare const context$4_getPortfolioSettings: typeof getPortfolioSettings;
|
|
@@ -1122,50 +1089,7 @@ interface DuplicateProjectItemsOptions {
|
|
|
1122
1089
|
targetProjectId: string;
|
|
1123
1090
|
}
|
|
1124
1091
|
|
|
1125
|
-
|
|
1126
|
-
interface HttpClient$3 {
|
|
1127
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
1128
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1129
|
-
}
|
|
1130
|
-
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
1131
|
-
type HttpResponse$3<T = any> = {
|
|
1132
|
-
data: T;
|
|
1133
|
-
status: number;
|
|
1134
|
-
statusText: string;
|
|
1135
|
-
headers: any;
|
|
1136
|
-
request?: any;
|
|
1137
|
-
};
|
|
1138
|
-
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
1139
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1140
|
-
url: string;
|
|
1141
|
-
data?: Data;
|
|
1142
|
-
params?: URLSearchParams;
|
|
1143
|
-
} & APIMetadata$3;
|
|
1144
|
-
type APIMetadata$3 = {
|
|
1145
|
-
methodFqn?: string;
|
|
1146
|
-
entityFqdn?: string;
|
|
1147
|
-
packageName?: string;
|
|
1148
|
-
};
|
|
1149
|
-
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
1150
|
-
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
1151
|
-
__type: 'event-definition';
|
|
1152
|
-
type: Type;
|
|
1153
|
-
isDomainEvent?: boolean;
|
|
1154
|
-
transformations?: (envelope: unknown) => Payload;
|
|
1155
|
-
__payload: Payload;
|
|
1156
|
-
};
|
|
1157
|
-
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
1158
|
-
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
1159
|
-
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
1160
|
-
|
|
1161
|
-
declare global {
|
|
1162
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1163
|
-
interface SymbolConstructor {
|
|
1164
|
-
readonly observable: symbol;
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
declare function createProjectItem$1(httpClient: HttpClient$3): (item: Item) => Promise<Item & {
|
|
1092
|
+
declare function createProjectItem$1(httpClient: HttpClient): (item: Item) => Promise<Item & {
|
|
1169
1093
|
image?: {
|
|
1170
1094
|
imageInfo: string;
|
|
1171
1095
|
focalPoint?: {
|
|
@@ -1178,8 +1102,8 @@ declare function createProjectItem$1(httpClient: HttpClient$3): (item: Item) =>
|
|
|
1178
1102
|
} | undefined;
|
|
1179
1103
|
type: Type;
|
|
1180
1104
|
}>;
|
|
1181
|
-
declare function bulkCreateProjectItems$1(httpClient: HttpClient
|
|
1182
|
-
declare function getProjectItem$1(httpClient: HttpClient
|
|
1105
|
+
declare function bulkCreateProjectItems$1(httpClient: HttpClient): (options?: BulkCreateProjectItemsOptions) => Promise<BulkCreateProjectItemsResponse & BulkCreateProjectItemsResponseNonNullableFields>;
|
|
1106
|
+
declare function getProjectItem$1(httpClient: HttpClient): (itemId: string) => Promise<Item & {
|
|
1183
1107
|
image?: {
|
|
1184
1108
|
imageInfo: string;
|
|
1185
1109
|
focalPoint?: {
|
|
@@ -1192,8 +1116,8 @@ declare function getProjectItem$1(httpClient: HttpClient$3): (itemId: string) =>
|
|
|
1192
1116
|
} | undefined;
|
|
1193
1117
|
type: Type;
|
|
1194
1118
|
}>;
|
|
1195
|
-
declare function listProjectItems$1(httpClient: HttpClient
|
|
1196
|
-
declare function updateProjectItem$1(httpClient: HttpClient
|
|
1119
|
+
declare function listProjectItems$1(httpClient: HttpClient): (projectId: string, options?: ListProjectItemsOptions) => Promise<ListProjectItemsResponse & ListProjectItemsResponseNonNullableFields>;
|
|
1120
|
+
declare function updateProjectItem$1(httpClient: HttpClient): (_id: string | null, item: UpdateProjectItem) => Promise<Item & {
|
|
1197
1121
|
image?: {
|
|
1198
1122
|
imageInfo: string;
|
|
1199
1123
|
focalPoint?: {
|
|
@@ -1206,26 +1130,26 @@ declare function updateProjectItem$1(httpClient: HttpClient$3): (_id: string | n
|
|
|
1206
1130
|
} | undefined;
|
|
1207
1131
|
type: Type;
|
|
1208
1132
|
}>;
|
|
1209
|
-
declare function bulkUpdateProjectItems$1(httpClient: HttpClient
|
|
1210
|
-
declare function deleteProjectItem$1(httpClient: HttpClient
|
|
1211
|
-
declare function bulkDeleteProjectItems$1(httpClient: HttpClient
|
|
1212
|
-
declare function duplicateProjectItems$1(httpClient: HttpClient
|
|
1213
|
-
declare const onProjectItemCreated$1: EventDefinition
|
|
1214
|
-
declare const onProjectItemUpdated$1: EventDefinition
|
|
1215
|
-
declare const onProjectItemDeleted$1: EventDefinition
|
|
1133
|
+
declare function bulkUpdateProjectItems$1(httpClient: HttpClient): (options?: BulkUpdateProjectItemsOptions) => Promise<BulkUpdateProjectItemsResponse & BulkUpdateProjectItemsResponseNonNullableFields>;
|
|
1134
|
+
declare function deleteProjectItem$1(httpClient: HttpClient): (itemId: string) => Promise<DeleteProjectItemResponse & DeleteProjectItemResponseNonNullableFields>;
|
|
1135
|
+
declare function bulkDeleteProjectItems$1(httpClient: HttpClient): (options: BulkDeleteProjectItemsOptions) => Promise<BulkDeleteProjectItemsResponse & BulkDeleteProjectItemsResponseNonNullableFields>;
|
|
1136
|
+
declare function duplicateProjectItems$1(httpClient: HttpClient): (originProjectId: string, options: DuplicateProjectItemsOptions) => Promise<DuplicateProjectItemsResponse & DuplicateProjectItemsResponseNonNullableFields>;
|
|
1137
|
+
declare const onProjectItemCreated$1: EventDefinition<ProjectItemCreatedEnvelope, "wix.portfolio.project_items.v1.project_item_created">;
|
|
1138
|
+
declare const onProjectItemUpdated$1: EventDefinition<ProjectItemUpdatedEnvelope, "wix.portfolio.project_items.v1.project_item_updated">;
|
|
1139
|
+
declare const onProjectItemDeleted$1: EventDefinition<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;
|
|
1216
1140
|
|
|
1217
|
-
declare const createProjectItem: BuildRESTFunction
|
|
1218
|
-
declare const bulkCreateProjectItems: BuildRESTFunction
|
|
1219
|
-
declare const getProjectItem: BuildRESTFunction
|
|
1220
|
-
declare const listProjectItems: BuildRESTFunction
|
|
1221
|
-
declare const updateProjectItem: BuildRESTFunction
|
|
1222
|
-
declare const bulkUpdateProjectItems: BuildRESTFunction
|
|
1223
|
-
declare const deleteProjectItem: BuildRESTFunction
|
|
1224
|
-
declare const bulkDeleteProjectItems: BuildRESTFunction
|
|
1225
|
-
declare const duplicateProjectItems: BuildRESTFunction
|
|
1226
|
-
declare const onProjectItemCreated: BuildEventDefinition
|
|
1227
|
-
declare const onProjectItemUpdated: BuildEventDefinition
|
|
1228
|
-
declare const onProjectItemDeleted: BuildEventDefinition
|
|
1141
|
+
declare const createProjectItem: BuildRESTFunction<typeof createProjectItem$1>;
|
|
1142
|
+
declare const bulkCreateProjectItems: BuildRESTFunction<typeof bulkCreateProjectItems$1>;
|
|
1143
|
+
declare const getProjectItem: BuildRESTFunction<typeof getProjectItem$1>;
|
|
1144
|
+
declare const listProjectItems: BuildRESTFunction<typeof listProjectItems$1>;
|
|
1145
|
+
declare const updateProjectItem: BuildRESTFunction<typeof updateProjectItem$1>;
|
|
1146
|
+
declare const bulkUpdateProjectItems: BuildRESTFunction<typeof bulkUpdateProjectItems$1>;
|
|
1147
|
+
declare const deleteProjectItem: BuildRESTFunction<typeof deleteProjectItem$1>;
|
|
1148
|
+
declare const bulkDeleteProjectItems: BuildRESTFunction<typeof bulkDeleteProjectItems$1>;
|
|
1149
|
+
declare const duplicateProjectItems: BuildRESTFunction<typeof duplicateProjectItems$1>;
|
|
1150
|
+
declare const onProjectItemCreated: BuildEventDefinition<typeof onProjectItemCreated$1>;
|
|
1151
|
+
declare const onProjectItemUpdated: BuildEventDefinition<typeof onProjectItemUpdated$1>;
|
|
1152
|
+
declare const onProjectItemDeleted: BuildEventDefinition<typeof onProjectItemDeleted$1>;
|
|
1229
1153
|
|
|
1230
1154
|
declare const context$3_bulkCreateProjectItems: typeof bulkCreateProjectItems;
|
|
1231
1155
|
declare const context$3_bulkDeleteProjectItems: typeof bulkDeleteProjectItems;
|
|
@@ -2011,51 +1935,8 @@ interface QueryProjectsWithCollectionInfoOptions {
|
|
|
2011
1935
|
includePageUrl?: boolean | null;
|
|
2012
1936
|
}
|
|
2013
1937
|
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
2017
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2018
|
-
}
|
|
2019
|
-
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
2020
|
-
type HttpResponse$2<T = any> = {
|
|
2021
|
-
data: T;
|
|
2022
|
-
status: number;
|
|
2023
|
-
statusText: string;
|
|
2024
|
-
headers: any;
|
|
2025
|
-
request?: any;
|
|
2026
|
-
};
|
|
2027
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
2028
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2029
|
-
url: string;
|
|
2030
|
-
data?: Data;
|
|
2031
|
-
params?: URLSearchParams;
|
|
2032
|
-
} & APIMetadata$2;
|
|
2033
|
-
type APIMetadata$2 = {
|
|
2034
|
-
methodFqn?: string;
|
|
2035
|
-
entityFqdn?: string;
|
|
2036
|
-
packageName?: string;
|
|
2037
|
-
};
|
|
2038
|
-
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
2039
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
2040
|
-
__type: 'event-definition';
|
|
2041
|
-
type: Type;
|
|
2042
|
-
isDomainEvent?: boolean;
|
|
2043
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2044
|
-
__payload: Payload;
|
|
2045
|
-
};
|
|
2046
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
2047
|
-
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
2048
|
-
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
2049
|
-
|
|
2050
|
-
declare global {
|
|
2051
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2052
|
-
interface SymbolConstructor {
|
|
2053
|
-
readonly observable: symbol;
|
|
2054
|
-
}
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
declare function getProjectPageData$1(httpClient: HttpClient$2): (identifiers: GetProjectPageDataIdentifiers) => Promise<GetProjectPageDataResponse & GetProjectPageDataResponseNonNullableFields>;
|
|
2058
|
-
declare function createProject$1(httpClient: HttpClient$2): (project: Project$1) => Promise<Project$1 & {
|
|
1938
|
+
declare function getProjectPageData$1(httpClient: HttpClient): (identifiers: GetProjectPageDataIdentifiers) => Promise<GetProjectPageDataResponse & GetProjectPageDataResponseNonNullableFields>;
|
|
1939
|
+
declare function createProject$1(httpClient: HttpClient): (project: Project$1) => Promise<Project$1 & {
|
|
2059
1940
|
coverImage?: {
|
|
2060
1941
|
imageInfo: string;
|
|
2061
1942
|
focalPoint?: {
|
|
@@ -2088,7 +1969,7 @@ declare function createProject$1(httpClient: HttpClient$2): (project: Project$1)
|
|
|
2088
1969
|
} | undefined;
|
|
2089
1970
|
} | undefined;
|
|
2090
1971
|
}>;
|
|
2091
|
-
declare function getProject$1(httpClient: HttpClient
|
|
1972
|
+
declare function getProject$1(httpClient: HttpClient): (projectId: string, options?: GetProjectOptions) => Promise<Project$1 & {
|
|
2092
1973
|
coverImage?: {
|
|
2093
1974
|
imageInfo: string;
|
|
2094
1975
|
focalPoint?: {
|
|
@@ -2121,8 +2002,8 @@ declare function getProject$1(httpClient: HttpClient$2): (projectId: string, opt
|
|
|
2121
2002
|
} | undefined;
|
|
2122
2003
|
} | undefined;
|
|
2123
2004
|
}>;
|
|
2124
|
-
declare function listProjects$1(httpClient: HttpClient
|
|
2125
|
-
declare function updateProject$1(httpClient: HttpClient
|
|
2005
|
+
declare function listProjects$1(httpClient: HttpClient): (options?: ListProjectsOptions) => Promise<ListProjectsResponse & ListProjectsResponseNonNullableFields>;
|
|
2006
|
+
declare function updateProject$1(httpClient: HttpClient): (_id: string | null, project: UpdateProject) => Promise<Project$1 & {
|
|
2126
2007
|
coverImage?: {
|
|
2127
2008
|
imageInfo: string;
|
|
2128
2009
|
focalPoint?: {
|
|
@@ -2155,28 +2036,28 @@ declare function updateProject$1(httpClient: HttpClient$2): (_id: string | null,
|
|
|
2155
2036
|
} | undefined;
|
|
2156
2037
|
} | undefined;
|
|
2157
2038
|
}>;
|
|
2158
|
-
declare function bulkUpdateProjects$1(httpClient: HttpClient
|
|
2159
|
-
declare function deleteProject$1(httpClient: HttpClient
|
|
2160
|
-
declare function queryProjects$1(httpClient: HttpClient
|
|
2161
|
-
declare function updateProjectOrderInCollection$3(httpClient: HttpClient
|
|
2162
|
-
declare function queryProjectsWithCollectionInfo$1(httpClient: HttpClient
|
|
2163
|
-
declare const onProjectCreated$1: EventDefinition
|
|
2164
|
-
declare const onProjectUpdated$1: EventDefinition
|
|
2165
|
-
declare const onProjectDeleted$1: EventDefinition
|
|
2039
|
+
declare function bulkUpdateProjects$1(httpClient: HttpClient): (options?: BulkUpdateProjectsOptions) => Promise<BulkUpdateProjectsResponse & BulkUpdateProjectsResponseNonNullableFields>;
|
|
2040
|
+
declare function deleteProject$1(httpClient: HttpClient): (projectId: string) => Promise<DeleteProjectResponse & DeleteProjectResponseNonNullableFields>;
|
|
2041
|
+
declare function queryProjects$1(httpClient: HttpClient): (options?: QueryProjectsOptions) => ProjectsQueryBuilder;
|
|
2042
|
+
declare function updateProjectOrderInCollection$3(httpClient: HttpClient): (identifiers: UpdateProjectOrderInCollectionIdentifiers$1, sortOrder: number | null) => Promise<UpdateProjectOrderInCollectionResponse$1 & UpdateProjectOrderInCollectionResponseNonNullableFields$1>;
|
|
2043
|
+
declare function queryProjectsWithCollectionInfo$1(httpClient: HttpClient): (query: QueryV2, options?: QueryProjectsWithCollectionInfoOptions) => Promise<QueryProjectWithCollectionInfoResponse & QueryProjectWithCollectionInfoResponseNonNullableFields>;
|
|
2044
|
+
declare const onProjectCreated$1: EventDefinition<ProjectCreatedEnvelope, "wix.portfolio.projects.v1.project_created">;
|
|
2045
|
+
declare const onProjectUpdated$1: EventDefinition<ProjectUpdatedEnvelope, "wix.portfolio.projects.v1.project_updated">;
|
|
2046
|
+
declare const onProjectDeleted$1: EventDefinition<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
|
|
2166
2047
|
|
|
2167
|
-
declare const getProjectPageData: BuildRESTFunction
|
|
2168
|
-
declare const createProject: BuildRESTFunction
|
|
2169
|
-
declare const getProject: BuildRESTFunction
|
|
2170
|
-
declare const listProjects: BuildRESTFunction
|
|
2171
|
-
declare const updateProject: BuildRESTFunction
|
|
2172
|
-
declare const bulkUpdateProjects: BuildRESTFunction
|
|
2173
|
-
declare const deleteProject: BuildRESTFunction
|
|
2174
|
-
declare const queryProjects: BuildRESTFunction
|
|
2175
|
-
declare const updateProjectOrderInCollection$2: BuildRESTFunction
|
|
2176
|
-
declare const queryProjectsWithCollectionInfo: BuildRESTFunction
|
|
2177
|
-
declare const onProjectCreated: BuildEventDefinition
|
|
2178
|
-
declare const onProjectUpdated: BuildEventDefinition
|
|
2179
|
-
declare const onProjectDeleted: BuildEventDefinition
|
|
2048
|
+
declare const getProjectPageData: BuildRESTFunction<typeof getProjectPageData$1>;
|
|
2049
|
+
declare const createProject: BuildRESTFunction<typeof createProject$1>;
|
|
2050
|
+
declare const getProject: BuildRESTFunction<typeof getProject$1>;
|
|
2051
|
+
declare const listProjects: BuildRESTFunction<typeof listProjects$1>;
|
|
2052
|
+
declare const updateProject: BuildRESTFunction<typeof updateProject$1>;
|
|
2053
|
+
declare const bulkUpdateProjects: BuildRESTFunction<typeof bulkUpdateProjects$1>;
|
|
2054
|
+
declare const deleteProject: BuildRESTFunction<typeof deleteProject$1>;
|
|
2055
|
+
declare const queryProjects: BuildRESTFunction<typeof queryProjects$1>;
|
|
2056
|
+
declare const updateProjectOrderInCollection$2: BuildRESTFunction<typeof updateProjectOrderInCollection$3>;
|
|
2057
|
+
declare const queryProjectsWithCollectionInfo: BuildRESTFunction<typeof queryProjectsWithCollectionInfo$1>;
|
|
2058
|
+
declare const onProjectCreated: BuildEventDefinition<typeof onProjectCreated$1>;
|
|
2059
|
+
declare const onProjectUpdated: BuildEventDefinition<typeof onProjectUpdated$1>;
|
|
2060
|
+
declare const onProjectDeleted: BuildEventDefinition<typeof onProjectDeleted$1>;
|
|
2180
2061
|
|
|
2181
2062
|
declare const context$2_bulkUpdateProjects: typeof bulkUpdateProjects;
|
|
2182
2063
|
declare const context$2_createProject: typeof createProject;
|
|
@@ -2573,55 +2454,12 @@ interface UpdateProjectOrderInCollectionIdentifiers {
|
|
|
2573
2454
|
collectionId: string;
|
|
2574
2455
|
}
|
|
2575
2456
|
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
2579
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2580
|
-
}
|
|
2581
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
2582
|
-
type HttpResponse$1<T = any> = {
|
|
2583
|
-
data: T;
|
|
2584
|
-
status: number;
|
|
2585
|
-
statusText: string;
|
|
2586
|
-
headers: any;
|
|
2587
|
-
request?: any;
|
|
2588
|
-
};
|
|
2589
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
2590
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2591
|
-
url: string;
|
|
2592
|
-
data?: Data;
|
|
2593
|
-
params?: URLSearchParams;
|
|
2594
|
-
} & APIMetadata$1;
|
|
2595
|
-
type APIMetadata$1 = {
|
|
2596
|
-
methodFqn?: string;
|
|
2597
|
-
entityFqdn?: string;
|
|
2598
|
-
packageName?: string;
|
|
2599
|
-
};
|
|
2600
|
-
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
2601
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
2602
|
-
__type: 'event-definition';
|
|
2603
|
-
type: Type;
|
|
2604
|
-
isDomainEvent?: boolean;
|
|
2605
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2606
|
-
__payload: Payload;
|
|
2607
|
-
};
|
|
2608
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
2609
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
2610
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
2611
|
-
|
|
2612
|
-
declare global {
|
|
2613
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2614
|
-
interface SymbolConstructor {
|
|
2615
|
-
readonly observable: symbol;
|
|
2616
|
-
}
|
|
2617
|
-
}
|
|
2618
|
-
|
|
2619
|
-
declare function queryProjectInCollections$1(httpClient: HttpClient$1): (options?: QueryProjectInCollectionsOptions) => ProjectInCollectionsQueryBuilder;
|
|
2620
|
-
declare function updateProjectOrderInCollection$1(httpClient: HttpClient$1): (identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number | null) => Promise<UpdateProjectOrderInCollectionResponse & UpdateProjectOrderInCollectionResponseNonNullableFields>;
|
|
2457
|
+
declare function queryProjectInCollections$1(httpClient: HttpClient): (options?: QueryProjectInCollectionsOptions) => ProjectInCollectionsQueryBuilder;
|
|
2458
|
+
declare function updateProjectOrderInCollection$1(httpClient: HttpClient): (identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number | null) => Promise<UpdateProjectOrderInCollectionResponse & UpdateProjectOrderInCollectionResponseNonNullableFields>;
|
|
2621
2459
|
declare const onProjectInCollectionProjectOrderInCollectionUpdatedEvent$1: EventDefinition<ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope, "wix.portfolio.projects.v1.project_in_collection_project_order_in_collection_updated_event">;
|
|
2622
2460
|
|
|
2623
|
-
declare const queryProjectInCollections: BuildRESTFunction
|
|
2624
|
-
declare const updateProjectOrderInCollection: BuildRESTFunction
|
|
2461
|
+
declare const queryProjectInCollections: BuildRESTFunction<typeof queryProjectInCollections$1>;
|
|
2462
|
+
declare const updateProjectOrderInCollection: BuildRESTFunction<typeof updateProjectOrderInCollection$1>;
|
|
2625
2463
|
declare const onProjectInCollectionProjectOrderInCollectionUpdatedEvent: BuildEventDefinition<typeof onProjectInCollectionProjectOrderInCollectionUpdatedEvent$1>;
|
|
2626
2464
|
|
|
2627
2465
|
declare const context$1_onProjectInCollectionProjectOrderInCollectionUpdatedEvent: typeof onProjectInCollectionProjectOrderInCollectionUpdatedEvent;
|
|
@@ -2771,39 +2609,6 @@ interface StopSyncIdentifiers {
|
|
|
2771
2609
|
externalId: string;
|
|
2772
2610
|
}
|
|
2773
2611
|
|
|
2774
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2775
|
-
interface HttpClient {
|
|
2776
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2777
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2778
|
-
}
|
|
2779
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2780
|
-
type HttpResponse<T = any> = {
|
|
2781
|
-
data: T;
|
|
2782
|
-
status: number;
|
|
2783
|
-
statusText: string;
|
|
2784
|
-
headers: any;
|
|
2785
|
-
request?: any;
|
|
2786
|
-
};
|
|
2787
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
2788
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2789
|
-
url: string;
|
|
2790
|
-
data?: Data;
|
|
2791
|
-
params?: URLSearchParams;
|
|
2792
|
-
} & APIMetadata;
|
|
2793
|
-
type APIMetadata = {
|
|
2794
|
-
methodFqn?: string;
|
|
2795
|
-
entityFqdn?: string;
|
|
2796
|
-
packageName?: string;
|
|
2797
|
-
};
|
|
2798
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
2799
|
-
|
|
2800
|
-
declare global {
|
|
2801
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2802
|
-
interface SymbolConstructor {
|
|
2803
|
-
readonly observable: symbol;
|
|
2804
|
-
}
|
|
2805
|
-
}
|
|
2806
|
-
|
|
2807
2612
|
declare function getProjects$1(httpClient: HttpClient): (appDefId: string, options?: GetProjectsOptions) => Promise<GetProjectsResponse & GetProjectsResponseNonNullableFields>;
|
|
2808
2613
|
declare function syncProject$1(httpClient: HttpClient): (identifiers: SyncProjectIdentifiers) => Promise<SyncProjectResponse & SyncProjectResponseNonNullableFields>;
|
|
2809
2614
|
declare function getSyncStatus$1(httpClient: HttpClient): (identifiers: GetSyncStatusIdentifiers) => Promise<GetSyncStatusResponse & GetSyncStatusResponseNonNullableFields>;
|
|
@@ -762,37 +762,37 @@ interface CollectionsQueryBuilder {
|
|
|
762
762
|
find: () => Promise<CollectionsQueryResult>;
|
|
763
763
|
}
|
|
764
764
|
|
|
765
|
-
interface HttpClient
|
|
766
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
765
|
+
interface HttpClient {
|
|
766
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
767
767
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
768
768
|
}
|
|
769
|
-
type RequestOptionsFactory
|
|
770
|
-
type HttpResponse
|
|
769
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
770
|
+
type HttpResponse<T = any> = {
|
|
771
771
|
data: T;
|
|
772
772
|
status: number;
|
|
773
773
|
statusText: string;
|
|
774
774
|
headers: any;
|
|
775
775
|
request?: any;
|
|
776
776
|
};
|
|
777
|
-
type RequestOptions
|
|
777
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
778
778
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
779
779
|
url: string;
|
|
780
780
|
data?: Data;
|
|
781
781
|
params?: URLSearchParams;
|
|
782
|
-
} & APIMetadata
|
|
783
|
-
type APIMetadata
|
|
782
|
+
} & APIMetadata;
|
|
783
|
+
type APIMetadata = {
|
|
784
784
|
methodFqn?: string;
|
|
785
785
|
entityFqdn?: string;
|
|
786
786
|
packageName?: string;
|
|
787
787
|
};
|
|
788
|
-
type EventDefinition
|
|
788
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
789
789
|
__type: 'event-definition';
|
|
790
790
|
type: Type;
|
|
791
791
|
isDomainEvent?: boolean;
|
|
792
792
|
transformations?: (envelope: unknown) => Payload;
|
|
793
793
|
__payload: Payload;
|
|
794
794
|
};
|
|
795
|
-
declare function EventDefinition
|
|
795
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
796
796
|
|
|
797
797
|
declare global {
|
|
798
798
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -804,7 +804,7 @@ declare global {
|
|
|
804
804
|
declare const __metadata$5: {
|
|
805
805
|
PACKAGE_NAME: string;
|
|
806
806
|
};
|
|
807
|
-
declare function createCollection(httpClient: HttpClient
|
|
807
|
+
declare function createCollection(httpClient: HttpClient): (collection: Collection) => Promise<Collection & {
|
|
808
808
|
coverImage?: {
|
|
809
809
|
imageInfo: string;
|
|
810
810
|
focalPoint?: {
|
|
@@ -829,7 +829,7 @@ declare function createCollection(httpClient: HttpClient$5): (collection: Collec
|
|
|
829
829
|
} | undefined;
|
|
830
830
|
} | undefined;
|
|
831
831
|
}>;
|
|
832
|
-
declare function getCollection(httpClient: HttpClient
|
|
832
|
+
declare function getCollection(httpClient: HttpClient): (collectionId: string, options?: GetCollectionOptions) => Promise<Collection & {
|
|
833
833
|
coverImage?: {
|
|
834
834
|
imageInfo: string;
|
|
835
835
|
focalPoint?: {
|
|
@@ -854,8 +854,8 @@ declare function getCollection(httpClient: HttpClient$5): (collectionId: string,
|
|
|
854
854
|
} | undefined;
|
|
855
855
|
} | undefined;
|
|
856
856
|
}>;
|
|
857
|
-
declare function listCollections(httpClient: HttpClient
|
|
858
|
-
declare function updateCollection(httpClient: HttpClient
|
|
857
|
+
declare function listCollections(httpClient: HttpClient): (options?: ListCollectionsOptions) => Promise<ListCollectionsResponse & ListCollectionsResponseNonNullableFields>;
|
|
858
|
+
declare function updateCollection(httpClient: HttpClient): (_id: string | null, collection: UpdateCollection) => Promise<Collection & {
|
|
859
859
|
coverImage?: {
|
|
860
860
|
imageInfo: string;
|
|
861
861
|
focalPoint?: {
|
|
@@ -880,11 +880,11 @@ declare function updateCollection(httpClient: HttpClient$5): (_id: string | null
|
|
|
880
880
|
} | undefined;
|
|
881
881
|
} | undefined;
|
|
882
882
|
}>;
|
|
883
|
-
declare function deleteCollection(httpClient: HttpClient
|
|
884
|
-
declare function queryCollections(httpClient: HttpClient
|
|
885
|
-
declare const onCollectionCreated: EventDefinition
|
|
886
|
-
declare const onCollectionUpdated: EventDefinition
|
|
887
|
-
declare const onCollectionDeleted: EventDefinition
|
|
883
|
+
declare function deleteCollection(httpClient: HttpClient): (collectionId: string) => Promise<DeleteCollectionResponse & DeleteCollectionResponseNonNullableFields>;
|
|
884
|
+
declare function queryCollections(httpClient: HttpClient): (options?: QueryCollectionsOptions) => CollectionsQueryBuilder;
|
|
885
|
+
declare const onCollectionCreated: EventDefinition<CollectionCreatedEnvelope, "wix.portfolio.collections.v1.collection_created">;
|
|
886
|
+
declare const onCollectionUpdated: EventDefinition<CollectionUpdatedEnvelope, "wix.portfolio.collections.v1.collection_updated">;
|
|
887
|
+
declare const onCollectionDeleted: EventDefinition<CollectionDeletedEnvelope, "wix.portfolio.collections.v1.collection_deleted">;
|
|
888
888
|
|
|
889
889
|
type index_d$5_AdminRemoveMenuItemsResponse = AdminRemoveMenuItemsResponse;
|
|
890
890
|
type index_d$5_Collection = Collection;
|
|
@@ -1121,48 +1121,17 @@ interface UpdatePortfolioSettingsResponseNonNullableFields {
|
|
|
1121
1121
|
};
|
|
1122
1122
|
}
|
|
1123
1123
|
|
|
1124
|
-
interface HttpClient$4 {
|
|
1125
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
1126
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
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
1124
|
declare const __metadata$4: {
|
|
1156
1125
|
PACKAGE_NAME: string;
|
|
1157
1126
|
};
|
|
1158
|
-
declare function createPortfolioSettings(httpClient: HttpClient
|
|
1127
|
+
declare function createPortfolioSettings(httpClient: HttpClient): (portfolioSettings: PortfolioSettings) => Promise<PortfolioSettings & {
|
|
1159
1128
|
projectItemSettings?: {
|
|
1160
1129
|
addItemDirection: AddItemDirection;
|
|
1161
1130
|
defaultItemName: DefaultItemName;
|
|
1162
1131
|
} | undefined;
|
|
1163
1132
|
}>;
|
|
1164
|
-
declare function getPortfolioSettings(httpClient: HttpClient
|
|
1165
|
-
declare function updatePortfolioSettings(httpClient: HttpClient
|
|
1133
|
+
declare function getPortfolioSettings(httpClient: HttpClient): () => Promise<GetPortfolioSettingsResponse & GetPortfolioSettingsResponseNonNullableFields>;
|
|
1134
|
+
declare function updatePortfolioSettings(httpClient: HttpClient): (portfolioSettings: PortfolioSettings) => Promise<UpdatePortfolioSettingsResponse & UpdatePortfolioSettingsResponseNonNullableFields>;
|
|
1166
1135
|
|
|
1167
1136
|
type index_d$4_AddItemDirection = AddItemDirection;
|
|
1168
1137
|
declare const index_d$4_AddItemDirection: typeof AddItemDirection;
|
|
@@ -2032,49 +2001,10 @@ interface DuplicateProjectItemsOptions {
|
|
|
2032
2001
|
targetProjectId: string;
|
|
2033
2002
|
}
|
|
2034
2003
|
|
|
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
2004
|
declare const __metadata$3: {
|
|
2075
2005
|
PACKAGE_NAME: string;
|
|
2076
2006
|
};
|
|
2077
|
-
declare function createProjectItem(httpClient: HttpClient
|
|
2007
|
+
declare function createProjectItem(httpClient: HttpClient): (item: Item) => Promise<Item & {
|
|
2078
2008
|
image?: {
|
|
2079
2009
|
imageInfo: string;
|
|
2080
2010
|
focalPoint?: {
|
|
@@ -2087,8 +2017,8 @@ declare function createProjectItem(httpClient: HttpClient$3): (item: Item) => Pr
|
|
|
2087
2017
|
} | undefined;
|
|
2088
2018
|
type: Type;
|
|
2089
2019
|
}>;
|
|
2090
|
-
declare function bulkCreateProjectItems(httpClient: HttpClient
|
|
2091
|
-
declare function getProjectItem(httpClient: HttpClient
|
|
2020
|
+
declare function bulkCreateProjectItems(httpClient: HttpClient): (options?: BulkCreateProjectItemsOptions) => Promise<BulkCreateProjectItemsResponse & BulkCreateProjectItemsResponseNonNullableFields>;
|
|
2021
|
+
declare function getProjectItem(httpClient: HttpClient): (itemId: string) => Promise<Item & {
|
|
2092
2022
|
image?: {
|
|
2093
2023
|
imageInfo: string;
|
|
2094
2024
|
focalPoint?: {
|
|
@@ -2101,8 +2031,8 @@ declare function getProjectItem(httpClient: HttpClient$3): (itemId: string) => P
|
|
|
2101
2031
|
} | undefined;
|
|
2102
2032
|
type: Type;
|
|
2103
2033
|
}>;
|
|
2104
|
-
declare function listProjectItems(httpClient: HttpClient
|
|
2105
|
-
declare function updateProjectItem(httpClient: HttpClient
|
|
2034
|
+
declare function listProjectItems(httpClient: HttpClient): (projectId: string, options?: ListProjectItemsOptions) => Promise<ListProjectItemsResponse & ListProjectItemsResponseNonNullableFields>;
|
|
2035
|
+
declare function updateProjectItem(httpClient: HttpClient): (_id: string | null, item: UpdateProjectItem) => Promise<Item & {
|
|
2106
2036
|
image?: {
|
|
2107
2037
|
imageInfo: string;
|
|
2108
2038
|
focalPoint?: {
|
|
@@ -2115,13 +2045,13 @@ declare function updateProjectItem(httpClient: HttpClient$3): (_id: string | nul
|
|
|
2115
2045
|
} | undefined;
|
|
2116
2046
|
type: Type;
|
|
2117
2047
|
}>;
|
|
2118
|
-
declare function bulkUpdateProjectItems(httpClient: HttpClient
|
|
2119
|
-
declare function deleteProjectItem(httpClient: HttpClient
|
|
2120
|
-
declare function bulkDeleteProjectItems(httpClient: HttpClient
|
|
2121
|
-
declare function duplicateProjectItems(httpClient: HttpClient
|
|
2122
|
-
declare const onProjectItemCreated: EventDefinition
|
|
2123
|
-
declare const onProjectItemUpdated: EventDefinition
|
|
2124
|
-
declare const onProjectItemDeleted: EventDefinition
|
|
2048
|
+
declare function bulkUpdateProjectItems(httpClient: HttpClient): (options?: BulkUpdateProjectItemsOptions) => Promise<BulkUpdateProjectItemsResponse & BulkUpdateProjectItemsResponseNonNullableFields>;
|
|
2049
|
+
declare function deleteProjectItem(httpClient: HttpClient): (itemId: string) => Promise<DeleteProjectItemResponse & DeleteProjectItemResponseNonNullableFields>;
|
|
2050
|
+
declare function bulkDeleteProjectItems(httpClient: HttpClient): (options: BulkDeleteProjectItemsOptions) => Promise<BulkDeleteProjectItemsResponse & BulkDeleteProjectItemsResponseNonNullableFields>;
|
|
2051
|
+
declare function duplicateProjectItems(httpClient: HttpClient): (originProjectId: string, options: DuplicateProjectItemsOptions) => Promise<DuplicateProjectItemsResponse & DuplicateProjectItemsResponseNonNullableFields>;
|
|
2052
|
+
declare const onProjectItemCreated: EventDefinition<ProjectItemCreatedEnvelope, "wix.portfolio.project_items.v1.project_item_created">;
|
|
2053
|
+
declare const onProjectItemUpdated: EventDefinition<ProjectItemUpdatedEnvelope, "wix.portfolio.project_items.v1.project_item_updated">;
|
|
2054
|
+
declare const onProjectItemDeleted: EventDefinition<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;
|
|
2125
2055
|
|
|
2126
2056
|
type index_d$3_BulkCreateProjectItemResult = BulkCreateProjectItemResult;
|
|
2127
2057
|
type index_d$3_BulkCreateProjectItemsOptions = BulkCreateProjectItemsOptions;
|
|
@@ -3668,50 +3598,11 @@ interface QueryProjectsWithCollectionInfoOptions {
|
|
|
3668
3598
|
includePageUrl?: boolean | null;
|
|
3669
3599
|
}
|
|
3670
3600
|
|
|
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
3601
|
declare const __metadata$2: {
|
|
3711
3602
|
PACKAGE_NAME: string;
|
|
3712
3603
|
};
|
|
3713
|
-
declare function getProjectPageData(httpClient: HttpClient
|
|
3714
|
-
declare function createProject(httpClient: HttpClient
|
|
3604
|
+
declare function getProjectPageData(httpClient: HttpClient): (identifiers: GetProjectPageDataIdentifiers) => Promise<GetProjectPageDataResponse & GetProjectPageDataResponseNonNullableFields>;
|
|
3605
|
+
declare function createProject(httpClient: HttpClient): (project: Project$1) => Promise<Project$1 & {
|
|
3715
3606
|
coverImage?: {
|
|
3716
3607
|
imageInfo: string;
|
|
3717
3608
|
focalPoint?: {
|
|
@@ -3744,7 +3635,7 @@ declare function createProject(httpClient: HttpClient$2): (project: Project$1) =
|
|
|
3744
3635
|
} | undefined;
|
|
3745
3636
|
} | undefined;
|
|
3746
3637
|
}>;
|
|
3747
|
-
declare function getProject(httpClient: HttpClient
|
|
3638
|
+
declare function getProject(httpClient: HttpClient): (projectId: string, options?: GetProjectOptions) => Promise<Project$1 & {
|
|
3748
3639
|
coverImage?: {
|
|
3749
3640
|
imageInfo: string;
|
|
3750
3641
|
focalPoint?: {
|
|
@@ -3777,8 +3668,8 @@ declare function getProject(httpClient: HttpClient$2): (projectId: string, optio
|
|
|
3777
3668
|
} | undefined;
|
|
3778
3669
|
} | undefined;
|
|
3779
3670
|
}>;
|
|
3780
|
-
declare function listProjects(httpClient: HttpClient
|
|
3781
|
-
declare function updateProject(httpClient: HttpClient
|
|
3671
|
+
declare function listProjects(httpClient: HttpClient): (options?: ListProjectsOptions) => Promise<ListProjectsResponse & ListProjectsResponseNonNullableFields>;
|
|
3672
|
+
declare function updateProject(httpClient: HttpClient): (_id: string | null, project: UpdateProject) => Promise<Project$1 & {
|
|
3782
3673
|
coverImage?: {
|
|
3783
3674
|
imageInfo: string;
|
|
3784
3675
|
focalPoint?: {
|
|
@@ -3811,14 +3702,14 @@ declare function updateProject(httpClient: HttpClient$2): (_id: string | null, p
|
|
|
3811
3702
|
} | undefined;
|
|
3812
3703
|
} | undefined;
|
|
3813
3704
|
}>;
|
|
3814
|
-
declare function bulkUpdateProjects(httpClient: HttpClient
|
|
3815
|
-
declare function deleteProject(httpClient: HttpClient
|
|
3816
|
-
declare function queryProjects(httpClient: HttpClient
|
|
3817
|
-
declare function updateProjectOrderInCollection$1(httpClient: HttpClient
|
|
3818
|
-
declare function queryProjectsWithCollectionInfo(httpClient: HttpClient
|
|
3819
|
-
declare const onProjectCreated: EventDefinition
|
|
3820
|
-
declare const onProjectUpdated: EventDefinition
|
|
3821
|
-
declare const onProjectDeleted: EventDefinition
|
|
3705
|
+
declare function bulkUpdateProjects(httpClient: HttpClient): (options?: BulkUpdateProjectsOptions) => Promise<BulkUpdateProjectsResponse & BulkUpdateProjectsResponseNonNullableFields>;
|
|
3706
|
+
declare function deleteProject(httpClient: HttpClient): (projectId: string) => Promise<DeleteProjectResponse & DeleteProjectResponseNonNullableFields>;
|
|
3707
|
+
declare function queryProjects(httpClient: HttpClient): (options?: QueryProjectsOptions) => ProjectsQueryBuilder;
|
|
3708
|
+
declare function updateProjectOrderInCollection$1(httpClient: HttpClient): (identifiers: UpdateProjectOrderInCollectionIdentifiers$1, sortOrder: number | null) => Promise<UpdateProjectOrderInCollectionResponse$1 & UpdateProjectOrderInCollectionResponseNonNullableFields$1>;
|
|
3709
|
+
declare function queryProjectsWithCollectionInfo(httpClient: HttpClient): (query: QueryV2$1, options?: QueryProjectsWithCollectionInfoOptions) => Promise<QueryProjectWithCollectionInfoResponse & QueryProjectWithCollectionInfoResponseNonNullableFields>;
|
|
3710
|
+
declare const onProjectCreated: EventDefinition<ProjectCreatedEnvelope, "wix.portfolio.projects.v1.project_created">;
|
|
3711
|
+
declare const onProjectUpdated: EventDefinition<ProjectUpdatedEnvelope, "wix.portfolio.projects.v1.project_updated">;
|
|
3712
|
+
declare const onProjectDeleted: EventDefinition<ProjectDeletedEnvelope, "wix.portfolio.projects.v1.project_deleted">;
|
|
3822
3713
|
|
|
3823
3714
|
type index_d$2_App = App;
|
|
3824
3715
|
type index_d$2_ApplicationError = ApplicationError;
|
|
@@ -4541,50 +4432,11 @@ interface UpdateProjectOrderInCollectionIdentifiers {
|
|
|
4541
4432
|
collectionId: string;
|
|
4542
4433
|
}
|
|
4543
4434
|
|
|
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
4435
|
declare const __metadata$1: {
|
|
4584
4436
|
PACKAGE_NAME: string;
|
|
4585
4437
|
};
|
|
4586
|
-
declare function queryProjectInCollections(httpClient: HttpClient
|
|
4587
|
-
declare function updateProjectOrderInCollection(httpClient: HttpClient
|
|
4438
|
+
declare function queryProjectInCollections(httpClient: HttpClient): (options?: QueryProjectInCollectionsOptions) => ProjectInCollectionsQueryBuilder;
|
|
4439
|
+
declare function updateProjectOrderInCollection(httpClient: HttpClient): (identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number | null) => Promise<UpdateProjectOrderInCollectionResponse & UpdateProjectOrderInCollectionResponseNonNullableFields>;
|
|
4588
4440
|
declare const onProjectInCollectionProjectOrderInCollectionUpdatedEvent: EventDefinition<ProjectInCollectionProjectOrderInCollectionUpdatedEnvelope, "wix.portfolio.projects.v1.project_in_collection_project_order_in_collection_updated_event">;
|
|
4589
4441
|
|
|
4590
4442
|
type index_d$1_BaseEventMetadata = BaseEventMetadata;
|
|
@@ -5270,37 +5122,6 @@ interface StopSyncIdentifiers {
|
|
|
5270
5122
|
externalId: string;
|
|
5271
5123
|
}
|
|
5272
5124
|
|
|
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
5125
|
declare const __metadata: {
|
|
5305
5126
|
PACKAGE_NAME: string;
|
|
5306
5127
|
};
|