@wix/seatings 1.0.12 → 1.0.14
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.js +0 -1
- package/build/cjs/index.js +0 -1
- package/build/cjs/meta.js +0 -1
- package/package.json +4 -4
- package/type-bundles/context.bundle.d.ts +79 -35
- package/type-bundles/index.bundle.d.ts +79 -35
- package/build/cjs/context.js.map +0 -1
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/meta.js.map +0 -1
package/build/cjs/context.js
CHANGED
|
@@ -26,4 +26,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.seatingReservation = exports.seatingPlan = void 0;
|
|
27
27
|
exports.seatingPlan = __importStar(require("@wix/seatings_seating-plan/context"));
|
|
28
28
|
exports.seatingReservation = __importStar(require("@wix/seatings_seating-reservation/context"));
|
|
29
|
-
//# sourceMappingURL=context.js.map
|
package/build/cjs/index.js
CHANGED
|
@@ -28,4 +28,3 @@ const seatingPlan = __importStar(require("@wix/seatings_seating-plan"));
|
|
|
28
28
|
exports.seatingPlan = seatingPlan;
|
|
29
29
|
const seatingReservation = __importStar(require("@wix/seatings_seating-reservation"));
|
|
30
30
|
exports.seatingReservation = seatingReservation;
|
|
31
|
-
//# sourceMappingURL=index.js.map
|
package/build/cjs/meta.js
CHANGED
|
@@ -26,4 +26,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.seatingReservation = exports.seatingPlan = void 0;
|
|
27
27
|
exports.seatingPlan = __importStar(require("@wix/seatings_seating-plan/meta"));
|
|
28
28
|
exports.seatingReservation = __importStar(require("@wix/seatings_seating-reservation/meta"));
|
|
29
|
-
//# sourceMappingURL=meta.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/seatings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/seatings_seating-plan": "1.0.
|
|
22
|
-
"@wix/seatings_seating-reservation": "1.0.
|
|
21
|
+
"@wix/seatings_seating-plan": "1.0.12",
|
|
22
|
+
"@wix/seatings_seating-reservation": "1.0.10"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"glob": "^10.4.1",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"fqdn": ""
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
"falconPackageHash": "
|
|
47
|
+
"falconPackageHash": "2ec1da8bc5e18a8e9fa372aa3d1650c5d0f9be2765cb845eea432c6f"
|
|
48
48
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
-
interface HttpClient {
|
|
3
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
2
|
+
interface HttpClient$1 {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
4
4
|
fetchWithAuth: typeof fetch;
|
|
5
5
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
6
|
}
|
|
7
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
-
type HttpResponse<T = any> = {
|
|
7
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
8
|
+
type HttpResponse$1<T = any> = {
|
|
9
9
|
data: T;
|
|
10
10
|
status: number;
|
|
11
11
|
statusText: string;
|
|
12
12
|
headers: any;
|
|
13
13
|
request?: any;
|
|
14
14
|
};
|
|
15
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
15
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
16
16
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
17
|
url: string;
|
|
18
18
|
data?: Data;
|
|
19
19
|
params?: URLSearchParams;
|
|
20
|
-
} & APIMetadata;
|
|
21
|
-
type APIMetadata = {
|
|
20
|
+
} & APIMetadata$1;
|
|
21
|
+
type APIMetadata$1 = {
|
|
22
22
|
methodFqn?: string;
|
|
23
23
|
entityFqdn?: string;
|
|
24
24
|
packageName?: string;
|
|
25
25
|
};
|
|
26
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
26
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
27
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
28
28
|
__type: 'event-definition';
|
|
29
29
|
type: Type;
|
|
30
30
|
isDomainEvent?: boolean;
|
|
31
31
|
transformations?: (envelope: unknown) => Payload;
|
|
32
32
|
__payload: Payload;
|
|
33
33
|
};
|
|
34
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
34
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
35
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
37
37
|
|
|
38
38
|
declare global {
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -971,7 +971,7 @@ interface FindSeatingPlanOptions {
|
|
|
971
971
|
seatingPlanMask?: SeatingPlanMask;
|
|
972
972
|
}
|
|
973
973
|
|
|
974
|
-
declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
|
|
974
|
+
declare function createSeatingPlan$1(httpClient: HttpClient$1): CreateSeatingPlanSignature;
|
|
975
975
|
interface CreateSeatingPlanSignature {
|
|
976
976
|
/**
|
|
977
977
|
* Crates a seating plan
|
|
@@ -980,7 +980,7 @@ interface CreateSeatingPlanSignature {
|
|
|
980
980
|
*/
|
|
981
981
|
(plan: SeatingPlan$1): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
982
982
|
}
|
|
983
|
-
declare function updateSeatingPlan$1(httpClient: HttpClient): UpdateSeatingPlanSignature;
|
|
983
|
+
declare function updateSeatingPlan$1(httpClient: HttpClient$1): UpdateSeatingPlanSignature;
|
|
984
984
|
interface UpdateSeatingPlanSignature {
|
|
985
985
|
/**
|
|
986
986
|
* Updates the seating plan
|
|
@@ -988,7 +988,7 @@ interface UpdateSeatingPlanSignature {
|
|
|
988
988
|
*/
|
|
989
989
|
(options?: UpdateSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
990
990
|
}
|
|
991
|
-
declare function copySeatingPlan$1(httpClient: HttpClient): CopySeatingPlanSignature;
|
|
991
|
+
declare function copySeatingPlan$1(httpClient: HttpClient$1): CopySeatingPlanSignature;
|
|
992
992
|
interface CopySeatingPlanSignature {
|
|
993
993
|
/**
|
|
994
994
|
* Copies the seating plan
|
|
@@ -996,14 +996,14 @@ interface CopySeatingPlanSignature {
|
|
|
996
996
|
*/
|
|
997
997
|
(_id: string | null, options: CopySeatingPlanOptions): Promise<CopySeatingPlanResponse & CopySeatingPlanResponseNonNullableFields>;
|
|
998
998
|
}
|
|
999
|
-
declare function querySeatingPlan$1(httpClient: HttpClient): QuerySeatingPlanSignature;
|
|
999
|
+
declare function querySeatingPlan$1(httpClient: HttpClient$1): QuerySeatingPlanSignature;
|
|
1000
1000
|
interface QuerySeatingPlanSignature {
|
|
1001
1001
|
/**
|
|
1002
1002
|
* Lists seating plans by provided query request
|
|
1003
1003
|
*/
|
|
1004
1004
|
(options?: QuerySeatingPlanOptions | undefined): PlansQueryBuilder;
|
|
1005
1005
|
}
|
|
1006
|
-
declare function getSeatingPlan$1(httpClient: HttpClient): GetSeatingPlanSignature;
|
|
1006
|
+
declare function getSeatingPlan$1(httpClient: HttpClient$1): GetSeatingPlanSignature;
|
|
1007
1007
|
interface GetSeatingPlanSignature {
|
|
1008
1008
|
/**
|
|
1009
1009
|
* Returns the seating plan. Fails of not fond.
|
|
@@ -1012,7 +1012,7 @@ interface GetSeatingPlanSignature {
|
|
|
1012
1012
|
*/
|
|
1013
1013
|
(_id: string | null, options?: GetSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
1014
1014
|
}
|
|
1015
|
-
declare function findSeatingPlan$1(httpClient: HttpClient): FindSeatingPlanSignature;
|
|
1015
|
+
declare function findSeatingPlan$1(httpClient: HttpClient$1): FindSeatingPlanSignature;
|
|
1016
1016
|
interface FindSeatingPlanSignature {
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Returns the first seating plan found by filter request.
|
|
@@ -1020,7 +1020,7 @@ interface FindSeatingPlanSignature {
|
|
|
1020
1020
|
*/
|
|
1021
1021
|
(filter: Record<string, any> | null, options?: FindSeatingPlanOptions | undefined): Promise<FindSeatingPlanResponse & FindSeatingPlanResponseNonNullableFields>;
|
|
1022
1022
|
}
|
|
1023
|
-
declare function deleteSeatingPlan$1(httpClient: HttpClient): DeleteSeatingPlanSignature;
|
|
1023
|
+
declare function deleteSeatingPlan$1(httpClient: HttpClient$1): DeleteSeatingPlanSignature;
|
|
1024
1024
|
interface DeleteSeatingPlanSignature {
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Deletes the seating plan.
|
|
@@ -1028,35 +1028,35 @@ interface DeleteSeatingPlanSignature {
|
|
|
1028
1028
|
*/
|
|
1029
1029
|
(_id: string | null): Promise<DeleteSeatingPlanResponse & DeleteSeatingPlanResponseNonNullableFields>;
|
|
1030
1030
|
}
|
|
1031
|
-
declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient): UpdateSeatingPlanThumbnailSignature;
|
|
1031
|
+
declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient$1): UpdateSeatingPlanThumbnailSignature;
|
|
1032
1032
|
interface UpdateSeatingPlanThumbnailSignature {
|
|
1033
1033
|
/**
|
|
1034
1034
|
* Updates seating plan thumbnail.
|
|
1035
1035
|
*/
|
|
1036
1036
|
(thumbnail: SeatingPlanThumbnail): Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
1037
1037
|
}
|
|
1038
|
-
declare function getSeatingPlanThumbnail$1(httpClient: HttpClient): GetSeatingPlanThumbnailSignature;
|
|
1038
|
+
declare function getSeatingPlanThumbnail$1(httpClient: HttpClient$1): GetSeatingPlanThumbnailSignature;
|
|
1039
1039
|
interface GetSeatingPlanThumbnailSignature {
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Get seating plan thumbnail.
|
|
1042
1042
|
*/
|
|
1043
1043
|
(_id: string | null): Promise<GetSeatingPlanThumbnailResponse>;
|
|
1044
1044
|
}
|
|
1045
|
-
declare const onSeatingPlanCreated$1: EventDefinition<SeatingPlanCreatedEnvelope, "wix.seating.v1.seating_plan_created">;
|
|
1046
|
-
declare const onSeatingPlanUpdated$1: EventDefinition<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
|
|
1047
|
-
declare const onSeatingPlanDeleted$1: EventDefinition<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
|
|
1045
|
+
declare const onSeatingPlanCreated$1: EventDefinition$1<SeatingPlanCreatedEnvelope, "wix.seating.v1.seating_plan_created">;
|
|
1046
|
+
declare const onSeatingPlanUpdated$1: EventDefinition$1<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
|
|
1047
|
+
declare const onSeatingPlanDeleted$1: EventDefinition$1<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
|
|
1048
1048
|
|
|
1049
|
-
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1049
|
+
declare function createEventModule$1<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
|
|
1050
1050
|
|
|
1051
|
-
declare const createSeatingPlan: BuildRESTFunction<typeof createSeatingPlan$1> & typeof createSeatingPlan$1;
|
|
1052
|
-
declare const updateSeatingPlan: BuildRESTFunction<typeof updateSeatingPlan$1> & typeof updateSeatingPlan$1;
|
|
1053
|
-
declare const copySeatingPlan: BuildRESTFunction<typeof copySeatingPlan$1> & typeof copySeatingPlan$1;
|
|
1054
|
-
declare const querySeatingPlan: BuildRESTFunction<typeof querySeatingPlan$1> & typeof querySeatingPlan$1;
|
|
1055
|
-
declare const getSeatingPlan: BuildRESTFunction<typeof getSeatingPlan$1> & typeof getSeatingPlan$1;
|
|
1056
|
-
declare const findSeatingPlan: BuildRESTFunction<typeof findSeatingPlan$1> & typeof findSeatingPlan$1;
|
|
1057
|
-
declare const deleteSeatingPlan: BuildRESTFunction<typeof deleteSeatingPlan$1> & typeof deleteSeatingPlan$1;
|
|
1058
|
-
declare const updateSeatingPlanThumbnail: BuildRESTFunction<typeof updateSeatingPlanThumbnail$1> & typeof updateSeatingPlanThumbnail$1;
|
|
1059
|
-
declare const getSeatingPlanThumbnail: BuildRESTFunction<typeof getSeatingPlanThumbnail$1> & typeof getSeatingPlanThumbnail$1;
|
|
1051
|
+
declare const createSeatingPlan: BuildRESTFunction$1<typeof createSeatingPlan$1> & typeof createSeatingPlan$1;
|
|
1052
|
+
declare const updateSeatingPlan: BuildRESTFunction$1<typeof updateSeatingPlan$1> & typeof updateSeatingPlan$1;
|
|
1053
|
+
declare const copySeatingPlan: BuildRESTFunction$1<typeof copySeatingPlan$1> & typeof copySeatingPlan$1;
|
|
1054
|
+
declare const querySeatingPlan: BuildRESTFunction$1<typeof querySeatingPlan$1> & typeof querySeatingPlan$1;
|
|
1055
|
+
declare const getSeatingPlan: BuildRESTFunction$1<typeof getSeatingPlan$1> & typeof getSeatingPlan$1;
|
|
1056
|
+
declare const findSeatingPlan: BuildRESTFunction$1<typeof findSeatingPlan$1> & typeof findSeatingPlan$1;
|
|
1057
|
+
declare const deleteSeatingPlan: BuildRESTFunction$1<typeof deleteSeatingPlan$1> & typeof deleteSeatingPlan$1;
|
|
1058
|
+
declare const updateSeatingPlanThumbnail: BuildRESTFunction$1<typeof updateSeatingPlanThumbnail$1> & typeof updateSeatingPlanThumbnail$1;
|
|
1059
|
+
declare const getSeatingPlanThumbnail: BuildRESTFunction$1<typeof getSeatingPlanThumbnail$1> & typeof getSeatingPlanThumbnail$1;
|
|
1060
1060
|
|
|
1061
1061
|
type _publicOnSeatingPlanCreatedType = typeof onSeatingPlanCreated$1;
|
|
1062
1062
|
/** */
|
|
@@ -1137,6 +1137,50 @@ declare namespace context$1 {
|
|
|
1137
1137
|
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CapacityExceededViolation as CapacityExceededViolation, type Category$1 as Category, type context$1_CopySeatingPlanOptions as CopySeatingPlanOptions, type context$1_CopySeatingPlanRequest as CopySeatingPlanRequest, type context$1_CopySeatingPlanResponse as CopySeatingPlanResponse, type context$1_CopySeatingPlanResponseNonNullableFields as CopySeatingPlanResponseNonNullableFields, type context$1_CreateSeatingPlanRequest as CreateSeatingPlanRequest, type context$1_CreateSeatingPlanResponse as CreateSeatingPlanResponse, type context$1_CreateSeatingPlanResponseNonNullableFields as CreateSeatingPlanResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type context$1_DeleteSeatingPlanRequest as DeleteSeatingPlanRequest, type context$1_DeleteSeatingPlanResponse as DeleteSeatingPlanResponse, type context$1_DeleteSeatingPlanResponseNonNullableFields as DeleteSeatingPlanResponseNonNullableFields, type context$1_DiscardSeatingPlanVersionsRequest as DiscardSeatingPlanVersionsRequest, type context$1_DiscardSeatingPlanVersionsResponse as DiscardSeatingPlanVersionsResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Element$1 as Element, type ElementGroup$1 as ElementGroup, type ElementGroupUiProperties$1 as ElementGroupUiProperties, type ElementUiProperties$1 as ElementUiProperties, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type ExtendedFields$1 as ExtendedFields, context$1_Fieldset as Fieldset, type context$1_FindSeatingPlanOptions as FindSeatingPlanOptions, type context$1_FindSeatingPlanRequest as FindSeatingPlanRequest, type context$1_FindSeatingPlanResponse as FindSeatingPlanResponse, type context$1_FindSeatingPlanResponseNonNullableFields as FindSeatingPlanResponseNonNullableFields, type context$1_GetSeatingPlanOptions as GetSeatingPlanOptions, type context$1_GetSeatingPlanRequest as GetSeatingPlanRequest, type context$1_GetSeatingPlanResponse as GetSeatingPlanResponse, type context$1_GetSeatingPlanResponseNonNullableFields as GetSeatingPlanResponseNonNullableFields, type context$1_GetSeatingPlanThumbnailRequest as GetSeatingPlanThumbnailRequest, type context$1_GetSeatingPlanThumbnailResponse as GetSeatingPlanThumbnailResponse, Icon$1 as Icon, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Image$1 as Image, type MessageEnvelope$1 as MessageEnvelope, type MultiRowProperties$1 as MultiRowProperties, Numbering$1 as Numbering, type Paging$1 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, type Place$1 as Place, PlaceTypeEnumType$1 as PlaceTypeEnumType, type context$1_PlansQueryBuilder as PlansQueryBuilder, type context$1_PlansQueryResult as PlansQueryResult, Position$1 as Position, type context$1_QuerySeatingPlanOptions as QuerySeatingPlanOptions, type context$1_QuerySeatingPlanRequest as QuerySeatingPlanRequest, type context$1_QuerySeatingPlanResponse as QuerySeatingPlanResponse, type context$1_QuerySeatingPlanResponseNonNullableFields as QuerySeatingPlanResponseNonNullableFields, type context$1_QuerySeatingPlanVersionsRequest as QuerySeatingPlanVersionsRequest, type context$1_QuerySeatingPlanVersionsResponse as QuerySeatingPlanVersionsResponse, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type ReservationOptions$1 as ReservationOptions, type RestoreInfo$1 as RestoreInfo, type context$1_RestoreSeatingPlanRequest as RestoreSeatingPlanRequest, type context$1_RestoreSeatingPlanResponse as RestoreSeatingPlanResponse, type RowElement$1 as RowElement, type RowElementUiProperties$1 as RowElementUiProperties, type context$1_SaveSeatingPlanVersionRequest as SaveSeatingPlanVersionRequest, type context$1_SaveSeatingPlanVersionResponse as SaveSeatingPlanVersionResponse, type SeatingPlan$1 as SeatingPlan, type context$1_SeatingPlanCreatedEnvelope as SeatingPlanCreatedEnvelope, type context$1_SeatingPlanDeletedEnvelope as SeatingPlanDeletedEnvelope, type context$1_SeatingPlanMask as SeatingPlanMask, type SeatingPlanNonNullableFields$1 as SeatingPlanNonNullableFields, type context$1_SeatingPlanThumbnail as SeatingPlanThumbnail, type SeatingPlanUiProperties$1 as SeatingPlanUiProperties, type context$1_SeatingPlanUpdatedEnvelope as SeatingPlanUpdatedEnvelope, type Section$1 as Section, type Sequencing$1 as Sequencing, ShapeTypeEnumType$1 as ShapeTypeEnumType, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Type$1 as Type, type context$1_UpdateSeatingPlanOptions as UpdateSeatingPlanOptions, type context$1_UpdateSeatingPlanRequest as UpdateSeatingPlanRequest, type context$1_UpdateSeatingPlanResponse as UpdateSeatingPlanResponse, type context$1_UpdateSeatingPlanResponseNonNullableFields as UpdateSeatingPlanResponseNonNullableFields, type context$1_UpdateSeatingPlanThumbnailRequest as UpdateSeatingPlanThumbnailRequest, type context$1_UpdateSeatingPlanThumbnailResponse as UpdateSeatingPlanThumbnailResponse, type VerticalSequencing$1 as VerticalSequencing, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnSeatingPlanCreatedType as _publicOnSeatingPlanCreatedType, type context$1__publicOnSeatingPlanDeletedType as _publicOnSeatingPlanDeletedType, type context$1__publicOnSeatingPlanUpdatedType as _publicOnSeatingPlanUpdatedType, context$1_copySeatingPlan as copySeatingPlan, context$1_createSeatingPlan as createSeatingPlan, context$1_deleteSeatingPlan as deleteSeatingPlan, context$1_findSeatingPlan as findSeatingPlan, context$1_getSeatingPlan as getSeatingPlan, context$1_getSeatingPlanThumbnail as getSeatingPlanThumbnail, context$1_onSeatingPlanCreated as onSeatingPlanCreated, context$1_onSeatingPlanDeleted as onSeatingPlanDeleted, context$1_onSeatingPlanUpdated as onSeatingPlanUpdated, onSeatingPlanCreated$1 as publicOnSeatingPlanCreated, onSeatingPlanDeleted$1 as publicOnSeatingPlanDeleted, onSeatingPlanUpdated$1 as publicOnSeatingPlanUpdated, context$1_querySeatingPlan as querySeatingPlan, context$1_updateSeatingPlan as updateSeatingPlan, context$1_updateSeatingPlanThumbnail as updateSeatingPlanThumbnail };
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
1141
|
+
interface HttpClient {
|
|
1142
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1143
|
+
fetchWithAuth: typeof fetch;
|
|
1144
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1145
|
+
}
|
|
1146
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1147
|
+
type HttpResponse<T = any> = {
|
|
1148
|
+
data: T;
|
|
1149
|
+
status: number;
|
|
1150
|
+
statusText: string;
|
|
1151
|
+
headers: any;
|
|
1152
|
+
request?: any;
|
|
1153
|
+
};
|
|
1154
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1155
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1156
|
+
url: string;
|
|
1157
|
+
data?: Data;
|
|
1158
|
+
params?: URLSearchParams;
|
|
1159
|
+
} & APIMetadata;
|
|
1160
|
+
type APIMetadata = {
|
|
1161
|
+
methodFqn?: string;
|
|
1162
|
+
entityFqdn?: string;
|
|
1163
|
+
packageName?: string;
|
|
1164
|
+
};
|
|
1165
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
1166
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1167
|
+
__type: 'event-definition';
|
|
1168
|
+
type: Type;
|
|
1169
|
+
isDomainEvent?: boolean;
|
|
1170
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1171
|
+
__payload: Payload;
|
|
1172
|
+
};
|
|
1173
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1174
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
1175
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
1176
|
+
|
|
1177
|
+
declare global {
|
|
1178
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1179
|
+
interface SymbolConstructor {
|
|
1180
|
+
readonly observable: symbol;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1140
1184
|
interface SeatingReservation {
|
|
1141
1185
|
/**
|
|
1142
1186
|
* The id of the reservation
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
-
interface HttpClient {
|
|
3
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
2
|
+
interface HttpClient$1 {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
4
4
|
fetchWithAuth: typeof fetch;
|
|
5
5
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
6
|
}
|
|
7
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
-
type HttpResponse<T = any> = {
|
|
7
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
8
|
+
type HttpResponse$1<T = any> = {
|
|
9
9
|
data: T;
|
|
10
10
|
status: number;
|
|
11
11
|
statusText: string;
|
|
12
12
|
headers: any;
|
|
13
13
|
request?: any;
|
|
14
14
|
};
|
|
15
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
15
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
16
16
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
17
|
url: string;
|
|
18
18
|
data?: Data;
|
|
19
19
|
params?: URLSearchParams;
|
|
20
|
-
} & APIMetadata;
|
|
21
|
-
type APIMetadata = {
|
|
20
|
+
} & APIMetadata$1;
|
|
21
|
+
type APIMetadata$1 = {
|
|
22
22
|
methodFqn?: string;
|
|
23
23
|
entityFqdn?: string;
|
|
24
24
|
packageName?: string;
|
|
25
25
|
};
|
|
26
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
26
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
27
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
28
28
|
__type: 'event-definition';
|
|
29
29
|
type: Type;
|
|
30
30
|
isDomainEvent?: boolean;
|
|
31
31
|
transformations?: (envelope: unknown) => Payload;
|
|
32
32
|
__payload: Payload;
|
|
33
33
|
};
|
|
34
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
34
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
35
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
37
37
|
|
|
38
38
|
declare global {
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -971,7 +971,7 @@ interface FindSeatingPlanOptions {
|
|
|
971
971
|
seatingPlanMask?: SeatingPlanMask;
|
|
972
972
|
}
|
|
973
973
|
|
|
974
|
-
declare function createSeatingPlan$1(httpClient: HttpClient): CreateSeatingPlanSignature;
|
|
974
|
+
declare function createSeatingPlan$1(httpClient: HttpClient$1): CreateSeatingPlanSignature;
|
|
975
975
|
interface CreateSeatingPlanSignature {
|
|
976
976
|
/**
|
|
977
977
|
* Crates a seating plan
|
|
@@ -980,7 +980,7 @@ interface CreateSeatingPlanSignature {
|
|
|
980
980
|
*/
|
|
981
981
|
(plan: SeatingPlan$1): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
982
982
|
}
|
|
983
|
-
declare function updateSeatingPlan$1(httpClient: HttpClient): UpdateSeatingPlanSignature;
|
|
983
|
+
declare function updateSeatingPlan$1(httpClient: HttpClient$1): UpdateSeatingPlanSignature;
|
|
984
984
|
interface UpdateSeatingPlanSignature {
|
|
985
985
|
/**
|
|
986
986
|
* Updates the seating plan
|
|
@@ -988,7 +988,7 @@ interface UpdateSeatingPlanSignature {
|
|
|
988
988
|
*/
|
|
989
989
|
(options?: UpdateSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
990
990
|
}
|
|
991
|
-
declare function copySeatingPlan$1(httpClient: HttpClient): CopySeatingPlanSignature;
|
|
991
|
+
declare function copySeatingPlan$1(httpClient: HttpClient$1): CopySeatingPlanSignature;
|
|
992
992
|
interface CopySeatingPlanSignature {
|
|
993
993
|
/**
|
|
994
994
|
* Copies the seating plan
|
|
@@ -996,14 +996,14 @@ interface CopySeatingPlanSignature {
|
|
|
996
996
|
*/
|
|
997
997
|
(_id: string | null, options: CopySeatingPlanOptions): Promise<CopySeatingPlanResponse & CopySeatingPlanResponseNonNullableFields>;
|
|
998
998
|
}
|
|
999
|
-
declare function querySeatingPlan$1(httpClient: HttpClient): QuerySeatingPlanSignature;
|
|
999
|
+
declare function querySeatingPlan$1(httpClient: HttpClient$1): QuerySeatingPlanSignature;
|
|
1000
1000
|
interface QuerySeatingPlanSignature {
|
|
1001
1001
|
/**
|
|
1002
1002
|
* Lists seating plans by provided query request
|
|
1003
1003
|
*/
|
|
1004
1004
|
(options?: QuerySeatingPlanOptions | undefined): PlansQueryBuilder;
|
|
1005
1005
|
}
|
|
1006
|
-
declare function getSeatingPlan$1(httpClient: HttpClient): GetSeatingPlanSignature;
|
|
1006
|
+
declare function getSeatingPlan$1(httpClient: HttpClient$1): GetSeatingPlanSignature;
|
|
1007
1007
|
interface GetSeatingPlanSignature {
|
|
1008
1008
|
/**
|
|
1009
1009
|
* Returns the seating plan. Fails of not fond.
|
|
@@ -1012,7 +1012,7 @@ interface GetSeatingPlanSignature {
|
|
|
1012
1012
|
*/
|
|
1013
1013
|
(_id: string | null, options?: GetSeatingPlanOptions | undefined): Promise<SeatingPlan$1 & SeatingPlanNonNullableFields$1>;
|
|
1014
1014
|
}
|
|
1015
|
-
declare function findSeatingPlan$1(httpClient: HttpClient): FindSeatingPlanSignature;
|
|
1015
|
+
declare function findSeatingPlan$1(httpClient: HttpClient$1): FindSeatingPlanSignature;
|
|
1016
1016
|
interface FindSeatingPlanSignature {
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Returns the first seating plan found by filter request.
|
|
@@ -1020,7 +1020,7 @@ interface FindSeatingPlanSignature {
|
|
|
1020
1020
|
*/
|
|
1021
1021
|
(filter: Record<string, any> | null, options?: FindSeatingPlanOptions | undefined): Promise<FindSeatingPlanResponse & FindSeatingPlanResponseNonNullableFields>;
|
|
1022
1022
|
}
|
|
1023
|
-
declare function deleteSeatingPlan$1(httpClient: HttpClient): DeleteSeatingPlanSignature;
|
|
1023
|
+
declare function deleteSeatingPlan$1(httpClient: HttpClient$1): DeleteSeatingPlanSignature;
|
|
1024
1024
|
interface DeleteSeatingPlanSignature {
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Deletes the seating plan.
|
|
@@ -1028,35 +1028,35 @@ interface DeleteSeatingPlanSignature {
|
|
|
1028
1028
|
*/
|
|
1029
1029
|
(_id: string | null): Promise<DeleteSeatingPlanResponse & DeleteSeatingPlanResponseNonNullableFields>;
|
|
1030
1030
|
}
|
|
1031
|
-
declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient): UpdateSeatingPlanThumbnailSignature;
|
|
1031
|
+
declare function updateSeatingPlanThumbnail$1(httpClient: HttpClient$1): UpdateSeatingPlanThumbnailSignature;
|
|
1032
1032
|
interface UpdateSeatingPlanThumbnailSignature {
|
|
1033
1033
|
/**
|
|
1034
1034
|
* Updates seating plan thumbnail.
|
|
1035
1035
|
*/
|
|
1036
1036
|
(thumbnail: SeatingPlanThumbnail): Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
1037
1037
|
}
|
|
1038
|
-
declare function getSeatingPlanThumbnail$1(httpClient: HttpClient): GetSeatingPlanThumbnailSignature;
|
|
1038
|
+
declare function getSeatingPlanThumbnail$1(httpClient: HttpClient$1): GetSeatingPlanThumbnailSignature;
|
|
1039
1039
|
interface GetSeatingPlanThumbnailSignature {
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Get seating plan thumbnail.
|
|
1042
1042
|
*/
|
|
1043
1043
|
(_id: string | null): Promise<GetSeatingPlanThumbnailResponse>;
|
|
1044
1044
|
}
|
|
1045
|
-
declare const onSeatingPlanCreated$1: EventDefinition<SeatingPlanCreatedEnvelope, "wix.seating.v1.seating_plan_created">;
|
|
1046
|
-
declare const onSeatingPlanUpdated$1: EventDefinition<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
|
|
1047
|
-
declare const onSeatingPlanDeleted$1: EventDefinition<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
|
|
1045
|
+
declare const onSeatingPlanCreated$1: EventDefinition$1<SeatingPlanCreatedEnvelope, "wix.seating.v1.seating_plan_created">;
|
|
1046
|
+
declare const onSeatingPlanUpdated$1: EventDefinition$1<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
|
|
1047
|
+
declare const onSeatingPlanDeleted$1: EventDefinition$1<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
|
|
1048
1048
|
|
|
1049
|
-
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1049
|
+
declare function createEventModule$1<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
|
|
1050
1050
|
|
|
1051
|
-
declare const createSeatingPlan: BuildRESTFunction<typeof createSeatingPlan$1> & typeof createSeatingPlan$1;
|
|
1052
|
-
declare const updateSeatingPlan: BuildRESTFunction<typeof updateSeatingPlan$1> & typeof updateSeatingPlan$1;
|
|
1053
|
-
declare const copySeatingPlan: BuildRESTFunction<typeof copySeatingPlan$1> & typeof copySeatingPlan$1;
|
|
1054
|
-
declare const querySeatingPlan: BuildRESTFunction<typeof querySeatingPlan$1> & typeof querySeatingPlan$1;
|
|
1055
|
-
declare const getSeatingPlan: BuildRESTFunction<typeof getSeatingPlan$1> & typeof getSeatingPlan$1;
|
|
1056
|
-
declare const findSeatingPlan: BuildRESTFunction<typeof findSeatingPlan$1> & typeof findSeatingPlan$1;
|
|
1057
|
-
declare const deleteSeatingPlan: BuildRESTFunction<typeof deleteSeatingPlan$1> & typeof deleteSeatingPlan$1;
|
|
1058
|
-
declare const updateSeatingPlanThumbnail: BuildRESTFunction<typeof updateSeatingPlanThumbnail$1> & typeof updateSeatingPlanThumbnail$1;
|
|
1059
|
-
declare const getSeatingPlanThumbnail: BuildRESTFunction<typeof getSeatingPlanThumbnail$1> & typeof getSeatingPlanThumbnail$1;
|
|
1051
|
+
declare const createSeatingPlan: BuildRESTFunction$1<typeof createSeatingPlan$1> & typeof createSeatingPlan$1;
|
|
1052
|
+
declare const updateSeatingPlan: BuildRESTFunction$1<typeof updateSeatingPlan$1> & typeof updateSeatingPlan$1;
|
|
1053
|
+
declare const copySeatingPlan: BuildRESTFunction$1<typeof copySeatingPlan$1> & typeof copySeatingPlan$1;
|
|
1054
|
+
declare const querySeatingPlan: BuildRESTFunction$1<typeof querySeatingPlan$1> & typeof querySeatingPlan$1;
|
|
1055
|
+
declare const getSeatingPlan: BuildRESTFunction$1<typeof getSeatingPlan$1> & typeof getSeatingPlan$1;
|
|
1056
|
+
declare const findSeatingPlan: BuildRESTFunction$1<typeof findSeatingPlan$1> & typeof findSeatingPlan$1;
|
|
1057
|
+
declare const deleteSeatingPlan: BuildRESTFunction$1<typeof deleteSeatingPlan$1> & typeof deleteSeatingPlan$1;
|
|
1058
|
+
declare const updateSeatingPlanThumbnail: BuildRESTFunction$1<typeof updateSeatingPlanThumbnail$1> & typeof updateSeatingPlanThumbnail$1;
|
|
1059
|
+
declare const getSeatingPlanThumbnail: BuildRESTFunction$1<typeof getSeatingPlanThumbnail$1> & typeof getSeatingPlanThumbnail$1;
|
|
1060
1060
|
|
|
1061
1061
|
type _publicOnSeatingPlanCreatedType = typeof onSeatingPlanCreated$1;
|
|
1062
1062
|
/** */
|
|
@@ -1137,6 +1137,50 @@ declare namespace index_d$1 {
|
|
|
1137
1137
|
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CapacityExceededViolation as CapacityExceededViolation, type Category$1 as Category, type index_d$1_CopySeatingPlanOptions as CopySeatingPlanOptions, type index_d$1_CopySeatingPlanRequest as CopySeatingPlanRequest, type index_d$1_CopySeatingPlanResponse as CopySeatingPlanResponse, type index_d$1_CopySeatingPlanResponseNonNullableFields as CopySeatingPlanResponseNonNullableFields, type index_d$1_CreateSeatingPlanRequest as CreateSeatingPlanRequest, type index_d$1_CreateSeatingPlanResponse as CreateSeatingPlanResponse, type index_d$1_CreateSeatingPlanResponseNonNullableFields as CreateSeatingPlanResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type index_d$1_DeleteSeatingPlanRequest as DeleteSeatingPlanRequest, type index_d$1_DeleteSeatingPlanResponse as DeleteSeatingPlanResponse, type index_d$1_DeleteSeatingPlanResponseNonNullableFields as DeleteSeatingPlanResponseNonNullableFields, type index_d$1_DiscardSeatingPlanVersionsRequest as DiscardSeatingPlanVersionsRequest, type index_d$1_DiscardSeatingPlanVersionsResponse as DiscardSeatingPlanVersionsResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Element$1 as Element, type ElementGroup$1 as ElementGroup, type ElementGroupUiProperties$1 as ElementGroupUiProperties, type ElementUiProperties$1 as ElementUiProperties, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type ExtendedFields$1 as ExtendedFields, index_d$1_Fieldset as Fieldset, type index_d$1_FindSeatingPlanOptions as FindSeatingPlanOptions, type index_d$1_FindSeatingPlanRequest as FindSeatingPlanRequest, type index_d$1_FindSeatingPlanResponse as FindSeatingPlanResponse, type index_d$1_FindSeatingPlanResponseNonNullableFields as FindSeatingPlanResponseNonNullableFields, type index_d$1_GetSeatingPlanOptions as GetSeatingPlanOptions, type index_d$1_GetSeatingPlanRequest as GetSeatingPlanRequest, type index_d$1_GetSeatingPlanResponse as GetSeatingPlanResponse, type index_d$1_GetSeatingPlanResponseNonNullableFields as GetSeatingPlanResponseNonNullableFields, type index_d$1_GetSeatingPlanThumbnailRequest as GetSeatingPlanThumbnailRequest, type index_d$1_GetSeatingPlanThumbnailResponse as GetSeatingPlanThumbnailResponse, Icon$1 as Icon, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Image$1 as Image, type MessageEnvelope$1 as MessageEnvelope, type MultiRowProperties$1 as MultiRowProperties, Numbering$1 as Numbering, type Paging$1 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, type Place$1 as Place, PlaceTypeEnumType$1 as PlaceTypeEnumType, type index_d$1_PlansQueryBuilder as PlansQueryBuilder, type index_d$1_PlansQueryResult as PlansQueryResult, Position$1 as Position, type index_d$1_QuerySeatingPlanOptions as QuerySeatingPlanOptions, type index_d$1_QuerySeatingPlanRequest as QuerySeatingPlanRequest, type index_d$1_QuerySeatingPlanResponse as QuerySeatingPlanResponse, type index_d$1_QuerySeatingPlanResponseNonNullableFields as QuerySeatingPlanResponseNonNullableFields, type index_d$1_QuerySeatingPlanVersionsRequest as QuerySeatingPlanVersionsRequest, type index_d$1_QuerySeatingPlanVersionsResponse as QuerySeatingPlanVersionsResponse, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type ReservationOptions$1 as ReservationOptions, type RestoreInfo$1 as RestoreInfo, type index_d$1_RestoreSeatingPlanRequest as RestoreSeatingPlanRequest, type index_d$1_RestoreSeatingPlanResponse as RestoreSeatingPlanResponse, type RowElement$1 as RowElement, type RowElementUiProperties$1 as RowElementUiProperties, type index_d$1_SaveSeatingPlanVersionRequest as SaveSeatingPlanVersionRequest, type index_d$1_SaveSeatingPlanVersionResponse as SaveSeatingPlanVersionResponse, type SeatingPlan$1 as SeatingPlan, type index_d$1_SeatingPlanCreatedEnvelope as SeatingPlanCreatedEnvelope, type index_d$1_SeatingPlanDeletedEnvelope as SeatingPlanDeletedEnvelope, type index_d$1_SeatingPlanMask as SeatingPlanMask, type SeatingPlanNonNullableFields$1 as SeatingPlanNonNullableFields, type index_d$1_SeatingPlanThumbnail as SeatingPlanThumbnail, type SeatingPlanUiProperties$1 as SeatingPlanUiProperties, type index_d$1_SeatingPlanUpdatedEnvelope as SeatingPlanUpdatedEnvelope, type Section$1 as Section, type Sequencing$1 as Sequencing, ShapeTypeEnumType$1 as ShapeTypeEnumType, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Type$1 as Type, type index_d$1_UpdateSeatingPlanOptions as UpdateSeatingPlanOptions, type index_d$1_UpdateSeatingPlanRequest as UpdateSeatingPlanRequest, type index_d$1_UpdateSeatingPlanResponse as UpdateSeatingPlanResponse, type index_d$1_UpdateSeatingPlanResponseNonNullableFields as UpdateSeatingPlanResponseNonNullableFields, type index_d$1_UpdateSeatingPlanThumbnailRequest as UpdateSeatingPlanThumbnailRequest, type index_d$1_UpdateSeatingPlanThumbnailResponse as UpdateSeatingPlanThumbnailResponse, type VerticalSequencing$1 as VerticalSequencing, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicOnSeatingPlanCreatedType as _publicOnSeatingPlanCreatedType, type index_d$1__publicOnSeatingPlanDeletedType as _publicOnSeatingPlanDeletedType, type index_d$1__publicOnSeatingPlanUpdatedType as _publicOnSeatingPlanUpdatedType, index_d$1_copySeatingPlan as copySeatingPlan, index_d$1_createSeatingPlan as createSeatingPlan, index_d$1_deleteSeatingPlan as deleteSeatingPlan, index_d$1_findSeatingPlan as findSeatingPlan, index_d$1_getSeatingPlan as getSeatingPlan, index_d$1_getSeatingPlanThumbnail as getSeatingPlanThumbnail, index_d$1_onSeatingPlanCreated as onSeatingPlanCreated, index_d$1_onSeatingPlanDeleted as onSeatingPlanDeleted, index_d$1_onSeatingPlanUpdated as onSeatingPlanUpdated, onSeatingPlanCreated$1 as publicOnSeatingPlanCreated, onSeatingPlanDeleted$1 as publicOnSeatingPlanDeleted, onSeatingPlanUpdated$1 as publicOnSeatingPlanUpdated, index_d$1_querySeatingPlan as querySeatingPlan, index_d$1_updateSeatingPlan as updateSeatingPlan, index_d$1_updateSeatingPlanThumbnail as updateSeatingPlanThumbnail };
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
1141
|
+
interface HttpClient {
|
|
1142
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1143
|
+
fetchWithAuth: typeof fetch;
|
|
1144
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1145
|
+
}
|
|
1146
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1147
|
+
type HttpResponse<T = any> = {
|
|
1148
|
+
data: T;
|
|
1149
|
+
status: number;
|
|
1150
|
+
statusText: string;
|
|
1151
|
+
headers: any;
|
|
1152
|
+
request?: any;
|
|
1153
|
+
};
|
|
1154
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1155
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1156
|
+
url: string;
|
|
1157
|
+
data?: Data;
|
|
1158
|
+
params?: URLSearchParams;
|
|
1159
|
+
} & APIMetadata;
|
|
1160
|
+
type APIMetadata = {
|
|
1161
|
+
methodFqn?: string;
|
|
1162
|
+
entityFqdn?: string;
|
|
1163
|
+
packageName?: string;
|
|
1164
|
+
};
|
|
1165
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
1166
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1167
|
+
__type: 'event-definition';
|
|
1168
|
+
type: Type;
|
|
1169
|
+
isDomainEvent?: boolean;
|
|
1170
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1171
|
+
__payload: Payload;
|
|
1172
|
+
};
|
|
1173
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1174
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
1175
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
1176
|
+
|
|
1177
|
+
declare global {
|
|
1178
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1179
|
+
interface SymbolConstructor {
|
|
1180
|
+
readonly observable: symbol;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1140
1184
|
interface SeatingReservation {
|
|
1141
1185
|
/**
|
|
1142
1186
|
* The id of the reservation
|
package/build/cjs/context.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAkE;AAClE,gGAAgF"}
|
package/build/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wEAA0D;AAGjD,kCAAW;AAFpB,sFAAwE;AAElD,gDAAkB"}
|
package/build/cjs/meta.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+EAA+D;AAC/D,6FAA6E"}
|