@wix/seatings 1.0.6 → 1.0.8
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.
|
@@ -122,7 +122,7 @@ interface Place$1 {
|
|
|
122
122
|
/**
|
|
123
123
|
* Local id of the place in the sequence
|
|
124
124
|
* @deprecated
|
|
125
|
-
* @
|
|
125
|
+
* @targetRemovalDate 2024-07-01
|
|
126
126
|
*/
|
|
127
127
|
index?: number;
|
|
128
128
|
/**
|
|
@@ -559,6 +559,9 @@ interface DomainEventBodyOneOf$1 {
|
|
|
559
559
|
interface EntityCreatedEvent$1 {
|
|
560
560
|
entity?: string;
|
|
561
561
|
}
|
|
562
|
+
interface RestoreInfo$1 {
|
|
563
|
+
deletedDate?: Date;
|
|
564
|
+
}
|
|
562
565
|
interface EntityUpdatedEvent$1 {
|
|
563
566
|
/**
|
|
564
567
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -1208,37 +1211,38 @@ interface FindSeatingPlanOptions {
|
|
|
1208
1211
|
seatingPlanMask?: SeatingPlanMask;
|
|
1209
1212
|
}
|
|
1210
1213
|
|
|
1211
|
-
interface HttpClient
|
|
1212
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
1213
|
-
fetchWithAuth:
|
|
1214
|
+
interface HttpClient {
|
|
1215
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1216
|
+
fetchWithAuth: typeof fetch;
|
|
1217
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1214
1218
|
}
|
|
1215
|
-
type RequestOptionsFactory
|
|
1216
|
-
type HttpResponse
|
|
1219
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1220
|
+
type HttpResponse<T = any> = {
|
|
1217
1221
|
data: T;
|
|
1218
1222
|
status: number;
|
|
1219
1223
|
statusText: string;
|
|
1220
1224
|
headers: any;
|
|
1221
1225
|
request?: any;
|
|
1222
1226
|
};
|
|
1223
|
-
type RequestOptions
|
|
1227
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1224
1228
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1225
1229
|
url: string;
|
|
1226
1230
|
data?: Data;
|
|
1227
1231
|
params?: URLSearchParams;
|
|
1228
|
-
} & APIMetadata
|
|
1229
|
-
type APIMetadata
|
|
1232
|
+
} & APIMetadata;
|
|
1233
|
+
type APIMetadata = {
|
|
1230
1234
|
methodFqn?: string;
|
|
1231
1235
|
entityFqdn?: string;
|
|
1232
1236
|
packageName?: string;
|
|
1233
1237
|
};
|
|
1234
|
-
type EventDefinition
|
|
1238
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1235
1239
|
__type: 'event-definition';
|
|
1236
1240
|
type: Type;
|
|
1237
1241
|
isDomainEvent?: boolean;
|
|
1238
1242
|
transformations?: (envelope: unknown) => Payload;
|
|
1239
1243
|
__payload: Payload;
|
|
1240
1244
|
};
|
|
1241
|
-
declare function EventDefinition
|
|
1245
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1242
1246
|
|
|
1243
1247
|
declare global {
|
|
1244
1248
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -1250,7 +1254,7 @@ declare global {
|
|
|
1250
1254
|
declare const __metadata$1: {
|
|
1251
1255
|
PACKAGE_NAME: string;
|
|
1252
1256
|
};
|
|
1253
|
-
declare function createSeatingPlan(httpClient: HttpClient
|
|
1257
|
+
declare function createSeatingPlan(httpClient: HttpClient): (plan: SeatingPlan$1) => Promise<SeatingPlan$1 & {
|
|
1254
1258
|
sections: {
|
|
1255
1259
|
_id: number;
|
|
1256
1260
|
elements: {
|
|
@@ -1303,7 +1307,7 @@ declare function createSeatingPlan(httpClient: HttpClient$1): (plan: SeatingPlan
|
|
|
1303
1307
|
elementType: Type$1;
|
|
1304
1308
|
}[];
|
|
1305
1309
|
}>;
|
|
1306
|
-
declare function updateSeatingPlan(httpClient: HttpClient
|
|
1310
|
+
declare function updateSeatingPlan(httpClient: HttpClient): (options?: UpdateSeatingPlanOptions) => Promise<SeatingPlan$1 & {
|
|
1307
1311
|
sections: {
|
|
1308
1312
|
_id: number;
|
|
1309
1313
|
elements: {
|
|
@@ -1356,9 +1360,9 @@ declare function updateSeatingPlan(httpClient: HttpClient$1): (options?: UpdateS
|
|
|
1356
1360
|
elementType: Type$1;
|
|
1357
1361
|
}[];
|
|
1358
1362
|
}>;
|
|
1359
|
-
declare function copySeatingPlan(httpClient: HttpClient
|
|
1360
|
-
declare function querySeatingPlan(httpClient: HttpClient
|
|
1361
|
-
declare function getSeatingPlan(httpClient: HttpClient
|
|
1363
|
+
declare function copySeatingPlan(httpClient: HttpClient): (_id: string | null, options: CopySeatingPlanOptions) => Promise<CopySeatingPlanResponse & CopySeatingPlanResponseNonNullableFields>;
|
|
1364
|
+
declare function querySeatingPlan(httpClient: HttpClient): (options?: QuerySeatingPlanOptions) => PlansQueryBuilder;
|
|
1365
|
+
declare function getSeatingPlan(httpClient: HttpClient): (_id: string | null, options?: GetSeatingPlanOptions) => Promise<SeatingPlan$1 & {
|
|
1362
1366
|
sections: {
|
|
1363
1367
|
_id: number;
|
|
1364
1368
|
elements: {
|
|
@@ -1411,13 +1415,13 @@ declare function getSeatingPlan(httpClient: HttpClient$1): (_id: string | null,
|
|
|
1411
1415
|
elementType: Type$1;
|
|
1412
1416
|
}[];
|
|
1413
1417
|
}>;
|
|
1414
|
-
declare function findSeatingPlan(httpClient: HttpClient
|
|
1415
|
-
declare function deleteSeatingPlan(httpClient: HttpClient
|
|
1416
|
-
declare function updateSeatingPlanThumbnail(httpClient: HttpClient
|
|
1417
|
-
declare function getSeatingPlanThumbnail(httpClient: HttpClient
|
|
1418
|
-
declare const onSeatingPlanCreated: EventDefinition
|
|
1419
|
-
declare const onSeatingPlanUpdated: EventDefinition
|
|
1420
|
-
declare const onSeatingPlanDeleted: EventDefinition
|
|
1418
|
+
declare function findSeatingPlan(httpClient: HttpClient): (filter: Record<string, any> | null, options?: FindSeatingPlanOptions) => Promise<FindSeatingPlanResponse & FindSeatingPlanResponseNonNullableFields>;
|
|
1419
|
+
declare function deleteSeatingPlan(httpClient: HttpClient): (_id: string | null) => Promise<DeleteSeatingPlanResponse & DeleteSeatingPlanResponseNonNullableFields>;
|
|
1420
|
+
declare function updateSeatingPlanThumbnail(httpClient: HttpClient): (thumbnail: SeatingPlanThumbnail) => Promise<UpdateSeatingPlanThumbnailResponse>;
|
|
1421
|
+
declare function getSeatingPlanThumbnail(httpClient: HttpClient): (_id: string | null) => Promise<GetSeatingPlanThumbnailResponse>;
|
|
1422
|
+
declare const onSeatingPlanCreated: EventDefinition<SeatingPlanCreatedEnvelope, "wix.seating.v1.seating_plan_created">;
|
|
1423
|
+
declare const onSeatingPlanUpdated: EventDefinition<SeatingPlanUpdatedEnvelope, "wix.seating.v1.seating_plan_updated">;
|
|
1424
|
+
declare const onSeatingPlanDeleted: EventDefinition<SeatingPlanDeletedEnvelope, "wix.seating.v1.seating_plan_deleted">;
|
|
1421
1425
|
|
|
1422
1426
|
type index_d$1_CapacityExceededViolation = CapacityExceededViolation;
|
|
1423
1427
|
type index_d$1_CopySeatingPlanOptions = CopySeatingPlanOptions;
|
|
@@ -1480,7 +1484,7 @@ declare const index_d$1_querySeatingPlan: typeof querySeatingPlan;
|
|
|
1480
1484
|
declare const index_d$1_updateSeatingPlan: typeof updateSeatingPlan;
|
|
1481
1485
|
declare const index_d$1_updateSeatingPlanThumbnail: typeof updateSeatingPlanThumbnail;
|
|
1482
1486
|
declare namespace index_d$1 {
|
|
1483
|
-
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, 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 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 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, __metadata$1 as __metadata, 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, index_d$1_querySeatingPlan as querySeatingPlan, index_d$1_updateSeatingPlan as updateSeatingPlan, index_d$1_updateSeatingPlanThumbnail as updateSeatingPlanThumbnail };
|
|
1487
|
+
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, 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 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, __metadata$1 as __metadata, 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, index_d$1_querySeatingPlan as querySeatingPlan, index_d$1_updateSeatingPlan as updateSeatingPlan, index_d$1_updateSeatingPlanThumbnail as updateSeatingPlanThumbnail };
|
|
1484
1488
|
}
|
|
1485
1489
|
|
|
1486
1490
|
interface SeatingReservation {
|
|
@@ -1923,7 +1927,7 @@ interface Place {
|
|
|
1923
1927
|
/**
|
|
1924
1928
|
* Local id of the place in the sequence
|
|
1925
1929
|
* @deprecated
|
|
1926
|
-
* @
|
|
1930
|
+
* @targetRemovalDate 2024-07-01
|
|
1927
1931
|
*/
|
|
1928
1932
|
index?: number;
|
|
1929
1933
|
/**
|
|
@@ -2209,6 +2213,9 @@ interface DomainEventBodyOneOf {
|
|
|
2209
2213
|
interface EntityCreatedEvent {
|
|
2210
2214
|
entity?: string;
|
|
2211
2215
|
}
|
|
2216
|
+
interface RestoreInfo {
|
|
2217
|
+
deletedDate?: Date;
|
|
2218
|
+
}
|
|
2212
2219
|
interface EntityUpdatedEvent {
|
|
2213
2220
|
/**
|
|
2214
2221
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -2407,6 +2414,7 @@ interface SeatingReservationCreatedEnvelope {
|
|
|
2407
2414
|
metadata: EventMetadata;
|
|
2408
2415
|
}
|
|
2409
2416
|
interface SeatingReservationDeletedEnvelope {
|
|
2417
|
+
entity: SeatingReservation;
|
|
2410
2418
|
metadata: EventMetadata;
|
|
2411
2419
|
}
|
|
2412
2420
|
interface CreateSeatingReservationOptions {
|
|
@@ -2443,45 +2451,6 @@ interface GetSeatingCategoriesSummaryOptions {
|
|
|
2443
2451
|
externalId?: string[];
|
|
2444
2452
|
}
|
|
2445
2453
|
|
|
2446
|
-
interface HttpClient {
|
|
2447
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2448
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2449
|
-
}
|
|
2450
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2451
|
-
type HttpResponse<T = any> = {
|
|
2452
|
-
data: T;
|
|
2453
|
-
status: number;
|
|
2454
|
-
statusText: string;
|
|
2455
|
-
headers: any;
|
|
2456
|
-
request?: any;
|
|
2457
|
-
};
|
|
2458
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
2459
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2460
|
-
url: string;
|
|
2461
|
-
data?: Data;
|
|
2462
|
-
params?: URLSearchParams;
|
|
2463
|
-
} & APIMetadata;
|
|
2464
|
-
type APIMetadata = {
|
|
2465
|
-
methodFqn?: string;
|
|
2466
|
-
entityFqdn?: string;
|
|
2467
|
-
packageName?: string;
|
|
2468
|
-
};
|
|
2469
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
2470
|
-
__type: 'event-definition';
|
|
2471
|
-
type: Type;
|
|
2472
|
-
isDomainEvent?: boolean;
|
|
2473
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2474
|
-
__payload: Payload;
|
|
2475
|
-
};
|
|
2476
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
2477
|
-
|
|
2478
|
-
declare global {
|
|
2479
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2480
|
-
interface SymbolConstructor {
|
|
2481
|
-
readonly observable: symbol;
|
|
2482
|
-
}
|
|
2483
|
-
}
|
|
2484
|
-
|
|
2485
2454
|
declare const __metadata: {
|
|
2486
2455
|
PACKAGE_NAME: string;
|
|
2487
2456
|
};
|
|
@@ -2573,6 +2542,7 @@ type index_d_ReservationErrorDetails = ReservationErrorDetails;
|
|
|
2573
2542
|
type index_d_ReservationOptions = ReservationOptions;
|
|
2574
2543
|
type index_d_ReservationsQueryBuilder = ReservationsQueryBuilder;
|
|
2575
2544
|
type index_d_ReservationsQueryResult = ReservationsQueryResult;
|
|
2545
|
+
type index_d_RestoreInfo = RestoreInfo;
|
|
2576
2546
|
type index_d_RowElement = RowElement;
|
|
2577
2547
|
type index_d_RowElementUiProperties = RowElementUiProperties;
|
|
2578
2548
|
type index_d_SeatingPlan = SeatingPlan;
|
|
@@ -2606,7 +2576,7 @@ declare const index_d_onSeatingReservationCreated: typeof onSeatingReservationCr
|
|
|
2606
2576
|
declare const index_d_onSeatingReservationDeleted: typeof onSeatingReservationDeleted;
|
|
2607
2577
|
declare const index_d_querySeatingReservation: typeof querySeatingReservation;
|
|
2608
2578
|
declare namespace index_d {
|
|
2609
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_App as App, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_Category as Category, type index_d_CategoryDetails as CategoryDetails, type index_d_CreateSeatingReservationOptions as CreateSeatingReservationOptions, type index_d_CreateSeatingReservationRequest as CreateSeatingReservationRequest, type index_d_CreateSeatingReservationResponse as CreateSeatingReservationResponse, type index_d_CreateSeatingReservationResponseNonNullableFields as CreateSeatingReservationResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteSeatingPlaceReservationRequest as DeleteSeatingPlaceReservationRequest, type index_d_DeleteSeatingReservationRequest as DeleteSeatingReservationRequest, type index_d_DeleteSeatingReservationResponse as DeleteSeatingReservationResponse, type index_d_DeleteSeatingReservationResponseNonNullableFields as DeleteSeatingReservationResponseNonNullableFields, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Element as Element, type index_d_ElementGroup as ElementGroup, type index_d_ElementGroupUiProperties as ElementGroupUiProperties, type index_d_ElementUiProperties as ElementUiProperties, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_ExtendedFields as ExtendedFields, type index_d_File as File, type index_d_GetReservationRequest as GetReservationRequest, type index_d_GetReservationResponse as GetReservationResponse, type index_d_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type index_d_GetReservedPlacesRequest as GetReservedPlacesRequest, type index_d_GetReservedPlacesResponse as GetReservedPlacesResponse, type index_d_GetSeatingCategoriesSummaryOptions as GetSeatingCategoriesSummaryOptions, type index_d_GetSeatingCategoriesSummaryRequest as GetSeatingCategoriesSummaryRequest, type index_d_GetSeatingCategoriesSummaryResponse as GetSeatingCategoriesSummaryResponse, type index_d_GetSeatingCategoriesSummaryResponseNonNullableFields as GetSeatingCategoriesSummaryResponseNonNullableFields, type index_d_GetSeatingReservationsSummaryRequest as GetSeatingReservationsSummaryRequest, type index_d_GetSeatingReservationsSummaryResponse as GetSeatingReservationsSummaryResponse, type index_d_GetSeatingReservationsSummaryResponseNonNullableFields as GetSeatingReservationsSummaryResponseNonNullableFields, index_d_Icon as Icon, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_Image as Image, type index_d_InvalidateCache as InvalidateCache, type index_d_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MultiRowProperties as MultiRowProperties, index_d_Numbering as Numbering, type index_d_Page as Page, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_Place as Place, type index_d_PlaceReservation as PlaceReservation, type index_d_PlaceReservationDetails as PlaceReservationDetails, type index_d_Places as Places, index_d_Position as Position, type index_d_QuerySeatingReservationRequest as QuerySeatingReservationRequest, type index_d_QuerySeatingReservationResponse as QuerySeatingReservationResponse, type index_d_QuerySeatingReservationResponseNonNullableFields as QuerySeatingReservationResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_RegenerateSummariesRequest as RegenerateSummariesRequest, type index_d_RegenerateSummariesResponse as RegenerateSummariesResponse, type index_d_ReservationErrorDetails as ReservationErrorDetails, type index_d_ReservationOptions as ReservationOptions, type index_d_ReservationsQueryBuilder as ReservationsQueryBuilder, type index_d_ReservationsQueryResult as ReservationsQueryResult, type index_d_RowElement as RowElement, type index_d_RowElementUiProperties as RowElementUiProperties, type index_d_SeatingPlan as SeatingPlan, type index_d_SeatingPlanCategoriesSummaryUpdated as SeatingPlanCategoriesSummaryUpdated, type index_d_SeatingPlanUiProperties as SeatingPlanUiProperties, type index_d_SeatingReservation as SeatingReservation, type index_d_SeatingReservationCreatedEnvelope as SeatingReservationCreatedEnvelope, type index_d_SeatingReservationDeletedEnvelope as SeatingReservationDeletedEnvelope, type index_d_SeatingReservationsSummary as SeatingReservationsSummary, type index_d_Section as Section, type index_d_Sequencing as Sequencing, index_d_ShapeTypeEnumType as ShapeTypeEnumType, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_Type as Type, type index_d_URI as URI, type index_d_UnavailablePlaces as UnavailablePlaces, type index_d_VerticalSequencing as VerticalSequencing, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_createSeatingReservation as createSeatingReservation, index_d_deleteSeatingReservation as deleteSeatingReservation, index_d_getReservation as getReservation, index_d_getSeatingCategoriesSummary as getSeatingCategoriesSummary, index_d_getSeatingReservationsSummary as getSeatingReservationsSummary, index_d_onSeatingReservationCreated as onSeatingReservationCreated, index_d_onSeatingReservationDeleted as onSeatingReservationDeleted, index_d_querySeatingReservation as querySeatingReservation };
|
|
2579
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_App as App, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_Category as Category, type index_d_CategoryDetails as CategoryDetails, type index_d_CreateSeatingReservationOptions as CreateSeatingReservationOptions, type index_d_CreateSeatingReservationRequest as CreateSeatingReservationRequest, type index_d_CreateSeatingReservationResponse as CreateSeatingReservationResponse, type index_d_CreateSeatingReservationResponseNonNullableFields as CreateSeatingReservationResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteSeatingPlaceReservationRequest as DeleteSeatingPlaceReservationRequest, type index_d_DeleteSeatingReservationRequest as DeleteSeatingReservationRequest, type index_d_DeleteSeatingReservationResponse as DeleteSeatingReservationResponse, type index_d_DeleteSeatingReservationResponseNonNullableFields as DeleteSeatingReservationResponseNonNullableFields, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Element as Element, type index_d_ElementGroup as ElementGroup, type index_d_ElementGroupUiProperties as ElementGroupUiProperties, type index_d_ElementUiProperties as ElementUiProperties, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_ExtendedFields as ExtendedFields, type index_d_File as File, type index_d_GetReservationRequest as GetReservationRequest, type index_d_GetReservationResponse as GetReservationResponse, type index_d_GetReservationResponseNonNullableFields as GetReservationResponseNonNullableFields, type index_d_GetReservedPlacesRequest as GetReservedPlacesRequest, type index_d_GetReservedPlacesResponse as GetReservedPlacesResponse, type index_d_GetSeatingCategoriesSummaryOptions as GetSeatingCategoriesSummaryOptions, type index_d_GetSeatingCategoriesSummaryRequest as GetSeatingCategoriesSummaryRequest, type index_d_GetSeatingCategoriesSummaryResponse as GetSeatingCategoriesSummaryResponse, type index_d_GetSeatingCategoriesSummaryResponseNonNullableFields as GetSeatingCategoriesSummaryResponseNonNullableFields, type index_d_GetSeatingReservationsSummaryRequest as GetSeatingReservationsSummaryRequest, type index_d_GetSeatingReservationsSummaryResponse as GetSeatingReservationsSummaryResponse, type index_d_GetSeatingReservationsSummaryResponseNonNullableFields as GetSeatingReservationsSummaryResponseNonNullableFields, index_d_Icon as Icon, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_Image as Image, type index_d_InvalidateCache as InvalidateCache, type index_d_InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MultiRowProperties as MultiRowProperties, index_d_Numbering as Numbering, type index_d_Page as Page, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_Place as Place, type index_d_PlaceReservation as PlaceReservation, type index_d_PlaceReservationDetails as PlaceReservationDetails, type index_d_Places as Places, index_d_Position as Position, type index_d_QuerySeatingReservationRequest as QuerySeatingReservationRequest, type index_d_QuerySeatingReservationResponse as QuerySeatingReservationResponse, type index_d_QuerySeatingReservationResponseNonNullableFields as QuerySeatingReservationResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_RegenerateSummariesRequest as RegenerateSummariesRequest, type index_d_RegenerateSummariesResponse as RegenerateSummariesResponse, type index_d_ReservationErrorDetails as ReservationErrorDetails, type index_d_ReservationOptions as ReservationOptions, type index_d_ReservationsQueryBuilder as ReservationsQueryBuilder, type index_d_ReservationsQueryResult as ReservationsQueryResult, type index_d_RestoreInfo as RestoreInfo, type index_d_RowElement as RowElement, type index_d_RowElementUiProperties as RowElementUiProperties, type index_d_SeatingPlan as SeatingPlan, type index_d_SeatingPlanCategoriesSummaryUpdated as SeatingPlanCategoriesSummaryUpdated, type index_d_SeatingPlanUiProperties as SeatingPlanUiProperties, type index_d_SeatingReservation as SeatingReservation, type index_d_SeatingReservationCreatedEnvelope as SeatingReservationCreatedEnvelope, type index_d_SeatingReservationDeletedEnvelope as SeatingReservationDeletedEnvelope, type index_d_SeatingReservationsSummary as SeatingReservationsSummary, type index_d_Section as Section, type index_d_Sequencing as Sequencing, index_d_ShapeTypeEnumType as ShapeTypeEnumType, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_Type as Type, type index_d_URI as URI, type index_d_UnavailablePlaces as UnavailablePlaces, type index_d_VerticalSequencing as VerticalSequencing, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_createSeatingReservation as createSeatingReservation, index_d_deleteSeatingReservation as deleteSeatingReservation, index_d_getReservation as getReservation, index_d_getSeatingCategoriesSummary as getSeatingCategoriesSummary, index_d_getSeatingReservationsSummary as getSeatingReservationsSummary, index_d_onSeatingReservationCreated as onSeatingReservationCreated, index_d_onSeatingReservationDeleted as onSeatingReservationDeleted, index_d_querySeatingReservation as querySeatingReservation };
|
|
2610
2580
|
}
|
|
2611
2581
|
|
|
2612
2582
|
export { index_d$1 as seatingPlan, index_d as seatingReservation };
|
|
@@ -122,7 +122,7 @@ interface Place$3 {
|
|
|
122
122
|
/**
|
|
123
123
|
* Local id of the place in the sequence
|
|
124
124
|
* @deprecated
|
|
125
|
-
* @
|
|
125
|
+
* @targetRemovalDate 2024-07-01
|
|
126
126
|
*/
|
|
127
127
|
index?: number;
|
|
128
128
|
/**
|
|
@@ -1107,7 +1107,7 @@ interface Place$2 {
|
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Local id of the place in the sequence
|
|
1109
1109
|
* @deprecated
|
|
1110
|
-
* @
|
|
1110
|
+
* @targetRemovalDate 2024-07-01
|
|
1111
1111
|
*/
|
|
1112
1112
|
index?: number;
|
|
1113
1113
|
/**
|
|
@@ -2201,7 +2201,7 @@ interface Place$1 {
|
|
|
2201
2201
|
/**
|
|
2202
2202
|
* Local id of the place in the sequence
|
|
2203
2203
|
* @deprecated
|
|
2204
|
-
* @
|
|
2204
|
+
* @targetRemovalDate 2024-07-01
|
|
2205
2205
|
*/
|
|
2206
2206
|
index?: number;
|
|
2207
2207
|
/**
|
|
@@ -2816,7 +2816,7 @@ interface Place {
|
|
|
2816
2816
|
/**
|
|
2817
2817
|
* Local id of the place in the sequence
|
|
2818
2818
|
* @deprecated
|
|
2819
|
-
* @
|
|
2819
|
+
* @targetRemovalDate 2024-07-01
|
|
2820
2820
|
*/
|
|
2821
2821
|
index?: number;
|
|
2822
2822
|
/**
|