@wix/auto_sdk_seatings_seating-reservation 1.0.4 → 1.0.6

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.
Files changed (119) hide show
  1. package/build/cjs/index.d.ts +61 -1
  2. package/build/cjs/index.js +613 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/meta.d.ts +841 -1
  5. package/build/cjs/meta.js +369 -15
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/{internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → cjs/seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.d.ts} +102 -199
  8. package/build/es/index.d.mts +61 -0
  9. package/build/es/index.mjs +577 -0
  10. package/build/es/index.mjs.map +1 -0
  11. package/build/{cjs/src/seating-v1-seating-reservation-seating-reservation.types.d.ts → es/meta.d.mts} +85 -421
  12. package/build/es/meta.mjs +340 -0
  13. package/build/es/meta.mjs.map +1 -0
  14. package/build/{cjs/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → es/seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.d.mts} +102 -199
  15. package/build/internal/cjs/index.d.ts +61 -1
  16. package/build/internal/cjs/index.js +613 -15
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/meta.d.ts +841 -1
  19. package/build/internal/cjs/meta.js +369 -15
  20. package/build/internal/cjs/meta.js.map +1 -1
  21. package/build/internal/{es/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → cjs/seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.d.ts} +102 -199
  22. package/build/internal/es/index.d.mts +61 -0
  23. package/build/internal/es/index.mjs +577 -0
  24. package/build/internal/es/index.mjs.map +1 -0
  25. package/build/internal/{cjs/src/seating-v1-seating-reservation-seating-reservation.types.d.ts → es/meta.d.mts} +85 -421
  26. package/build/internal/es/meta.mjs +340 -0
  27. package/build/internal/es/meta.mjs.map +1 -0
  28. package/build/{es/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → internal/es/seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.d.mts} +102 -199
  29. package/package.json +9 -8
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
  34. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -28
  35. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
  36. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
  37. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -232
  38. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
  39. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
  40. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -142
  41. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
  42. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
  43. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -67
  44. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
  45. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -77
  46. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
  47. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -336
  48. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
  49. package/build/es/index.d.ts +0 -1
  50. package/build/es/index.js +0 -2
  51. package/build/es/index.js.map +0 -1
  52. package/build/es/index.typings.d.ts +0 -1
  53. package/build/es/index.typings.js +0 -2
  54. package/build/es/index.typings.js.map +0 -1
  55. package/build/es/meta.d.ts +0 -1
  56. package/build/es/meta.js +0 -2
  57. package/build/es/meta.js.map +0 -1
  58. package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
  59. package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -17
  60. package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
  61. package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
  62. package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -223
  63. package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
  64. package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
  65. package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -110
  66. package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
  67. package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
  68. package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -50
  69. package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
  70. package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +0 -1177
  71. package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -74
  72. package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
  73. package/build/es/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -304
  74. package/build/es/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
  75. package/build/internal/cjs/index.typings.d.ts +0 -1
  76. package/build/internal/cjs/index.typings.js +0 -18
  77. package/build/internal/cjs/index.typings.js.map +0 -1
  78. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
  79. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -28
  80. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
  81. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
  82. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -232
  83. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
  84. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
  85. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -142
  86. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
  87. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
  88. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -67
  89. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
  90. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -77
  91. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
  92. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -336
  93. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
  104. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -17
  105. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
  106. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
  107. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -223
  108. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
  109. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
  110. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -110
  111. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
  112. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
  113. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -50
  114. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
  115. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +0 -1177
  116. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -74
  117. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
  118. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -304
  119. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
@@ -0,0 +1,61 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { C as CreateSeatingReservationOptions, S as SeatingReservation, R as ReservationsQueryBuilder, D as DeleteSeatingReservationResponse, G as GetSeatingCategorySummaryOptions, a as GetSeatingCategorySummaryResponse, b as GetSeatingReservationSummaryResponse, c as SeatingReservationCreatedEnvelope, d as SeatingReservationDeletedEnvelope } from './seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.mjs';
3
+ export { ar as ActionEvent, A as App, av as BaseEventMetadata, M as CancelSeatingPlaceReservationsRequest, V as CancelSeatingPlaceReservationsResponse, ad as Category, j as CategoryDetails, o as CreateSeatingReservationRequest, p as CreateSeatingReservationResponse, z as CursorPaging, H as Cursors, n as CustomTag, K as DeleteSeatingPlaceReservationRequest, J as DeleteSeatingReservationRequest, al as DomainEvent, am as DomainEventBodyOneOf, a3 as Element, ag as ElementGroup, ah as ElementGroupUiProperties, a7 as ElementUiProperties, L as Empty, an as EntityCreatedEvent, aq as EntityDeletedEvent, ap as EntityUpdatedEvent, aw as EventMetadata, ae as ExtendedFields, F as File, t as GetReservationRequest, u as GetReservationResponse, Z as GetReservedPlacesRequest, _ as GetReservedPlacesResponse, $ as GetSeatingCategorySummaryRequest, a0 as GetSeatingReservationSummaryRequest, I as Icon, at as IdentificationData, au as IdentificationDataIdOneOf, a8 as Image, k as InvalidateCache, l as InvalidateCacheGetByOneOf, as as MessageEnvelope, a9 as MultiRowProperties, N as Numbering, m as Page, y as Paging, E as PagingMetadataV2, a5 as Place, h as PlaceReservation, O as PlaceReservationDetails, P as PlaceTypeEnumType, q as Places, g as Position, Q as QuerySeatingReservationRequest, B as QuerySeatingReservationResponse, v as QueryV2, w as QueryV2PagingMethodOneOf, ai as RegenerateSummariesRequest, aj as RegenerateSummariesResponse, s as ReservationErrorDetails, a6 as ReservationOptions, ax as ReservationsQueryResult, ao as RestoreInfo, aa as RowElement, ab as RowElementUiProperties, a1 as SeatingPlan, i as SeatingPlanCategoriesSummaryUpdated, af as SeatingPlanUiProperties, ak as SeatingReservationsSummary, a2 as Section, a4 as Sequencing, f as ShapeTypeEnumType, e as SortOrder, x as Sorting, T as Type, U as URI, r as UnavailablePlaces, X as UpdateSeatingReservationRequest, Y as UpdateSeatingReservationResponse, ac as VerticalSequencing, W as WebhookIdentityType } from './seating-v1-seating-reservation-seating-reservation.universal-Cx37fyPc.mjs';
4
+
5
+ declare function createSeatingReservation$1(httpClient: HttpClient): CreateSeatingReservationSignature;
6
+ interface CreateSeatingReservationSignature {
7
+ /**
8
+ * Creates a seating reservation
9
+ * @returns Created reservation
10
+ */
11
+ (options?: CreateSeatingReservationOptions | undefined): Promise<SeatingReservation>;
12
+ }
13
+ declare function getReservation$1(httpClient: HttpClient): GetReservationSignature;
14
+ interface GetReservationSignature {
15
+ /**
16
+ * Returns seating reservation
17
+ * @param - The id of the reservation to return
18
+ * @returns Created reservation
19
+ */
20
+ (_id: string): Promise<SeatingReservation>;
21
+ }
22
+ declare function querySeatingReservation$1(httpClient: HttpClient): QuerySeatingReservationSignature;
23
+ interface QuerySeatingReservationSignature {
24
+ /**
25
+ * Lists seating reservations by query request
26
+ */
27
+ (): ReservationsQueryBuilder;
28
+ }
29
+ declare function deleteSeatingReservation$1(httpClient: HttpClient): DeleteSeatingReservationSignature;
30
+ interface DeleteSeatingReservationSignature {
31
+ /**
32
+ * Deletes the seating reservation
33
+ * @param - The id of the reservation to delete
34
+ */
35
+ (_id: string): Promise<DeleteSeatingReservationResponse>;
36
+ }
37
+ declare function getSeatingCategorySummary$1(httpClient: HttpClient): GetSeatingCategorySummarySignature;
38
+ interface GetSeatingCategorySummarySignature {
39
+ /** */
40
+ (options?: GetSeatingCategorySummaryOptions | undefined): Promise<GetSeatingCategorySummaryResponse>;
41
+ }
42
+ declare function getSeatingReservationSummary$1(httpClient: HttpClient): GetSeatingReservationSummarySignature;
43
+ interface GetSeatingReservationSummarySignature {
44
+ /** @param - Seating plan external id */
45
+ (externalId: string): Promise<GetSeatingReservationSummaryResponse>;
46
+ }
47
+ declare const onSeatingReservationCreated$1: EventDefinition<SeatingReservationCreatedEnvelope, "wix.seating.v1.seating_reservation_created">;
48
+ declare const onSeatingReservationDeleted$1: EventDefinition<SeatingReservationDeletedEnvelope, "wix.seating.v1.seating_reservation_deleted">;
49
+
50
+ declare const createSeatingReservation: MaybeContext<BuildRESTFunction<typeof createSeatingReservation$1> & typeof createSeatingReservation$1>;
51
+ declare const getReservation: MaybeContext<BuildRESTFunction<typeof getReservation$1> & typeof getReservation$1>;
52
+ declare const querySeatingReservation: MaybeContext<BuildRESTFunction<typeof querySeatingReservation$1> & typeof querySeatingReservation$1>;
53
+ declare const deleteSeatingReservation: MaybeContext<BuildRESTFunction<typeof deleteSeatingReservation$1> & typeof deleteSeatingReservation$1>;
54
+ declare const getSeatingCategorySummary: MaybeContext<BuildRESTFunction<typeof getSeatingCategorySummary$1> & typeof getSeatingCategorySummary$1>;
55
+ declare const getSeatingReservationSummary: MaybeContext<BuildRESTFunction<typeof getSeatingReservationSummary$1> & typeof getSeatingReservationSummary$1>;
56
+ /** */
57
+ declare const onSeatingReservationCreated: BuildEventDefinition<typeof onSeatingReservationCreated$1>;
58
+ /** */
59
+ declare const onSeatingReservationDeleted: BuildEventDefinition<typeof onSeatingReservationDeleted$1>;
60
+
61
+ export { CreateSeatingReservationOptions, DeleteSeatingReservationResponse, GetSeatingCategorySummaryOptions, GetSeatingCategorySummaryResponse, GetSeatingReservationSummaryResponse, ReservationsQueryBuilder, SeatingReservation, SeatingReservationCreatedEnvelope, SeatingReservationDeletedEnvelope, createSeatingReservation, deleteSeatingReservation, getReservation, getSeatingCategorySummary, getSeatingReservationSummary, onSeatingReservationCreated, onSeatingReservationDeleted, querySeatingReservation };
@@ -0,0 +1,577 @@
1
+ // src/seating-v1-seating-reservation-seating-reservation.public.ts
2
+ import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
3
+ import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
4
+ import { transformPaths as transformPaths3 } from "@wix/sdk-runtime/transformations/transform-paths";
5
+ import { EventDefinition } from "@wix/sdk-types";
6
+
7
+ // src/seating-v1-seating-reservation-seating-reservation.universal.ts
8
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
9
+ import { queryBuilder } from "@wix/sdk-runtime/query-builder";
10
+ import {
11
+ renameKeysFromSDKRequestToRESTRequest,
12
+ renameKeysFromRESTResponseToSDKResponse
13
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
14
+
15
+ // src/seating-v1-seating-reservation-seating-reservation.http.ts
16
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
17
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
18
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
19
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
20
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
21
+ function resolveComWixpressSeatingSeatingReservationServiceUrl(opts) {
22
+ const domainToMappings = {
23
+ _api_base_domain_: [
24
+ {
25
+ srcPath: "/seating-reservations",
26
+ destPath: ""
27
+ }
28
+ ],
29
+ _: [
30
+ {
31
+ srcPath: "/_api/seating-reservations",
32
+ destPath: ""
33
+ }
34
+ ],
35
+ "api._base_domain_": [
36
+ {
37
+ srcPath: "/seating-reservations",
38
+ destPath: ""
39
+ }
40
+ ],
41
+ "editor.wixapps.net": [
42
+ {
43
+ srcPath: "/_api/seating-reservations",
44
+ destPath: ""
45
+ }
46
+ ],
47
+ "manage._base_domain_": [
48
+ {
49
+ srcPath: "/_api/seating-reservations",
50
+ destPath: ""
51
+ }
52
+ ],
53
+ "editor._base_domain_": [
54
+ {
55
+ srcPath: "/_api/seating-reservations",
56
+ destPath: ""
57
+ }
58
+ ],
59
+ "blocks._base_domain_": [
60
+ {
61
+ srcPath: "/_api/seating-reservations",
62
+ destPath: ""
63
+ }
64
+ ],
65
+ "create.editorx": [
66
+ {
67
+ srcPath: "/_api/seating-reservations",
68
+ destPath: ""
69
+ }
70
+ ],
71
+ "*.dev.wix-code.com": [
72
+ {
73
+ srcPath: "/_api/seating-reservations",
74
+ destPath: ""
75
+ }
76
+ ],
77
+ "www._base_domain_": [
78
+ {
79
+ srcPath: "/_api/seating-reservations",
80
+ destPath: ""
81
+ }
82
+ ]
83
+ };
84
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
85
+ }
86
+ var PACKAGE_NAME = "@wix/auto_sdk_seatings_seating-reservation";
87
+ function createSeatingReservation(payload) {
88
+ function __createSeatingReservation({ host }) {
89
+ const metadata = {
90
+ entityFqdn: "wix.seating.v1.seating_reservation",
91
+ method: "POST",
92
+ methodFqn: "com.wixpress.seating.SeatingReservationService.CreateSeatingReservation",
93
+ packageName: PACKAGE_NAME,
94
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
95
+ protoPath: "/v1/reservations",
96
+ data: payload,
97
+ host
98
+ }),
99
+ data: payload
100
+ };
101
+ return metadata;
102
+ }
103
+ return __createSeatingReservation;
104
+ }
105
+ function getReservation(payload) {
106
+ function __getReservation({ host }) {
107
+ const metadata = {
108
+ entityFqdn: "wix.seating.v1.seating_reservation",
109
+ method: "GET",
110
+ methodFqn: "com.wixpress.seating.SeatingReservationService.GetReservation",
111
+ packageName: PACKAGE_NAME,
112
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
113
+ protoPath: "/v1/reservations/{id}",
114
+ data: payload,
115
+ host
116
+ }),
117
+ params: toURLSearchParams(payload)
118
+ };
119
+ return metadata;
120
+ }
121
+ return __getReservation;
122
+ }
123
+ function querySeatingReservation(payload) {
124
+ function __querySeatingReservation({ host }) {
125
+ const metadata = {
126
+ entityFqdn: "wix.seating.v1.seating_reservation",
127
+ method: "POST",
128
+ methodFqn: "com.wixpress.seating.SeatingReservationService.QuerySeatingReservation",
129
+ packageName: PACKAGE_NAME,
130
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
131
+ protoPath: "/v1/reservations/query",
132
+ data: payload,
133
+ host
134
+ }),
135
+ data: payload
136
+ };
137
+ return metadata;
138
+ }
139
+ return __querySeatingReservation;
140
+ }
141
+ function deleteSeatingReservation(payload) {
142
+ function __deleteSeatingReservation({ host }) {
143
+ const metadata = {
144
+ entityFqdn: "wix.seating.v1.seating_reservation",
145
+ method: "DELETE",
146
+ methodFqn: "com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation",
147
+ packageName: PACKAGE_NAME,
148
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
149
+ protoPath: "/v1/reservations/{id}",
150
+ data: payload,
151
+ host
152
+ }),
153
+ params: toURLSearchParams(payload)
154
+ };
155
+ return metadata;
156
+ }
157
+ return __deleteSeatingReservation;
158
+ }
159
+ function getSeatingCategorySummary(payload) {
160
+ function __getSeatingCategorySummary({ host }) {
161
+ const metadata = {
162
+ entityFqdn: "wix.seating.v1.seating_reservation",
163
+ method: "GET",
164
+ methodFqn: "com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary",
165
+ packageName: PACKAGE_NAME,
166
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
167
+ protoPath: "/v1/reservations/seating-category-summary",
168
+ data: payload,
169
+ host
170
+ }),
171
+ params: toURLSearchParams(payload)
172
+ };
173
+ return metadata;
174
+ }
175
+ return __getSeatingCategorySummary;
176
+ }
177
+ function getSeatingReservationSummary(payload) {
178
+ function __getSeatingReservationSummary({ host }) {
179
+ const metadata = {
180
+ entityFqdn: "wix.seating.v1.seating_reservation",
181
+ method: "GET",
182
+ methodFqn: "com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary",
183
+ packageName: PACKAGE_NAME,
184
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
185
+ protoPath: "/v1/reservations/seating-reservation-summary/{externalId}",
186
+ data: payload,
187
+ host
188
+ }),
189
+ params: toURLSearchParams(payload),
190
+ transformResponse: (payload2) => transformPaths(payload2, [
191
+ {
192
+ transformFn: transformRESTTimestampToSDKTimestamp,
193
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
194
+ },
195
+ {
196
+ transformFn: transformRESTFloatToSDKFloat,
197
+ paths: [
198
+ { path: "plan.sections.elements.uiProperties.x" },
199
+ { path: "plan.sections.elements.uiProperties.y" },
200
+ { path: "plan.sections.elements.uiProperties.width" },
201
+ { path: "plan.sections.elements.uiProperties.height" },
202
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
203
+ {
204
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
205
+ },
206
+ {
207
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
208
+ },
209
+ {
210
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
211
+ },
212
+ {
213
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
214
+ },
215
+ {
216
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
217
+ },
218
+ {
219
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
220
+ },
221
+ { path: "plan.elementGroups.uiProperties.x" },
222
+ { path: "plan.elementGroups.uiProperties.y" },
223
+ { path: "plan.elementGroups.uiProperties.width" },
224
+ { path: "plan.elementGroups.uiProperties.height" },
225
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
226
+ ]
227
+ }
228
+ ])
229
+ };
230
+ return metadata;
231
+ }
232
+ return __getSeatingReservationSummary;
233
+ }
234
+
235
+ // src/seating-v1-seating-reservation-seating-reservation.universal.ts
236
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
237
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
238
+ SortOrder2["ASC"] = "ASC";
239
+ SortOrder2["DESC"] = "DESC";
240
+ return SortOrder2;
241
+ })(SortOrder || {});
242
+ var Type = /* @__PURE__ */ ((Type2) => {
243
+ Type2["AREA"] = "AREA";
244
+ Type2["ROW"] = "ROW";
245
+ Type2["MULTI_ROW"] = "MULTI_ROW";
246
+ Type2["TABLE"] = "TABLE";
247
+ Type2["ROUND_TABLE"] = "ROUND_TABLE";
248
+ Type2["SHAPE"] = "SHAPE";
249
+ return Type2;
250
+ })(Type || {});
251
+ var PlaceTypeEnumType = /* @__PURE__ */ ((PlaceTypeEnumType2) => {
252
+ PlaceTypeEnumType2["UNKNOWN_PROPERTY"] = "UNKNOWN_PROPERTY";
253
+ PlaceTypeEnumType2["STANDARD"] = "STANDARD";
254
+ PlaceTypeEnumType2["WHEELCHAIR"] = "WHEELCHAIR";
255
+ PlaceTypeEnumType2["ACCESSIBLE"] = "ACCESSIBLE";
256
+ PlaceTypeEnumType2["COMPANION"] = "COMPANION";
257
+ PlaceTypeEnumType2["OBSTRUCTED"] = "OBSTRUCTED";
258
+ PlaceTypeEnumType2["DISCOUNT"] = "DISCOUNT";
259
+ return PlaceTypeEnumType2;
260
+ })(PlaceTypeEnumType || {});
261
+ var ShapeTypeEnumType = /* @__PURE__ */ ((ShapeTypeEnumType2) => {
262
+ ShapeTypeEnumType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
263
+ ShapeTypeEnumType2["TEXT"] = "TEXT";
264
+ ShapeTypeEnumType2["RECTANGLE"] = "RECTANGLE";
265
+ ShapeTypeEnumType2["ELLIPSE"] = "ELLIPSE";
266
+ ShapeTypeEnumType2["LINE"] = "LINE";
267
+ ShapeTypeEnumType2["ICON"] = "ICON";
268
+ ShapeTypeEnumType2["IMAGE"] = "IMAGE";
269
+ return ShapeTypeEnumType2;
270
+ })(ShapeTypeEnumType || {});
271
+ var Position = /* @__PURE__ */ ((Position2) => {
272
+ Position2["UNKNOWN_POSITION"] = "UNKNOWN_POSITION";
273
+ Position2["LEFT"] = "LEFT";
274
+ Position2["RIGHT"] = "RIGHT";
275
+ Position2["BOTH"] = "BOTH";
276
+ Position2["NONE"] = "NONE";
277
+ return Position2;
278
+ })(Position || {});
279
+ var Icon = /* @__PURE__ */ ((Icon2) => {
280
+ Icon2["UNKNOWN_ICON"] = "UNKNOWN_ICON";
281
+ Icon2["ENTER"] = "ENTER";
282
+ Icon2["EXIT"] = "EXIT";
283
+ Icon2["DRINKS"] = "DRINKS";
284
+ Icon2["WC"] = "WC";
285
+ Icon2["WC_MEN"] = "WC_MEN";
286
+ Icon2["WC_WOMEN"] = "WC_WOMEN";
287
+ Icon2["FOOD"] = "FOOD";
288
+ Icon2["STAIRS"] = "STAIRS";
289
+ Icon2["ELEVATOR"] = "ELEVATOR";
290
+ Icon2["SMOKING"] = "SMOKING";
291
+ Icon2["CHECKROOM"] = "CHECKROOM";
292
+ Icon2["STAGE"] = "STAGE";
293
+ return Icon2;
294
+ })(Icon || {});
295
+ var Numbering = /* @__PURE__ */ ((Numbering2) => {
296
+ Numbering2["UNKNOWN_NUMBERING"] = "UNKNOWN_NUMBERING";
297
+ Numbering2["NUMERIC"] = "NUMERIC";
298
+ Numbering2["ODD_EVEN"] = "ODD_EVEN";
299
+ Numbering2["ALPHABETICAL"] = "ALPHABETICAL";
300
+ return Numbering2;
301
+ })(Numbering || {});
302
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
303
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
304
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
305
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
306
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
307
+ WebhookIdentityType2["APP"] = "APP";
308
+ return WebhookIdentityType2;
309
+ })(WebhookIdentityType || {});
310
+ async function createSeatingReservation2(options) {
311
+ const { httpClient, sideEffects } = arguments[1];
312
+ const payload = renameKeysFromSDKRequestToRESTRequest({
313
+ reservation: options?.reservation
314
+ });
315
+ const reqOpts = createSeatingReservation(payload);
316
+ sideEffects?.onSiteCall?.();
317
+ try {
318
+ const result = await httpClient.request(reqOpts);
319
+ sideEffects?.onSuccess?.(result);
320
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.reservation;
321
+ } catch (err) {
322
+ const transformedError = sdkTransformError(
323
+ err,
324
+ {
325
+ spreadPathsToArguments: {},
326
+ explicitPathsToArguments: { reservation: "$[0].reservation" },
327
+ singleArgumentUnchanged: false
328
+ },
329
+ ["options"]
330
+ );
331
+ sideEffects?.onError?.(err);
332
+ throw transformedError;
333
+ }
334
+ }
335
+ async function getReservation2(_id) {
336
+ const { httpClient, sideEffects } = arguments[1];
337
+ const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
338
+ const reqOpts = getReservation(payload);
339
+ sideEffects?.onSiteCall?.();
340
+ try {
341
+ const result = await httpClient.request(reqOpts);
342
+ sideEffects?.onSuccess?.(result);
343
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.reservation;
344
+ } catch (err) {
345
+ const transformedError = sdkTransformError(
346
+ err,
347
+ {
348
+ spreadPathsToArguments: {},
349
+ explicitPathsToArguments: { id: "$[0]" },
350
+ singleArgumentUnchanged: false
351
+ },
352
+ ["_id"]
353
+ );
354
+ sideEffects?.onError?.(err);
355
+ throw transformedError;
356
+ }
357
+ }
358
+ function querySeatingReservation2() {
359
+ const { httpClient, sideEffects } = arguments[0];
360
+ return queryBuilder({
361
+ func: async (payload) => {
362
+ const reqOpts = querySeatingReservation(
363
+ payload
364
+ );
365
+ sideEffects?.onSiteCall?.();
366
+ try {
367
+ const result = await httpClient.request(reqOpts);
368
+ sideEffects?.onSuccess?.(result);
369
+ return result;
370
+ } catch (err) {
371
+ sideEffects?.onError?.(err);
372
+ throw err;
373
+ }
374
+ },
375
+ requestTransformer: (query) => {
376
+ const args = [query, {}];
377
+ return renameKeysFromSDKRequestToRESTRequest({
378
+ ...args?.[1],
379
+ query: args?.[0]
380
+ });
381
+ },
382
+ responseTransformer: ({
383
+ data
384
+ }) => {
385
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(
386
+ transformPaths2(data, [])
387
+ );
388
+ return {
389
+ items: transformedData?.reservations,
390
+ pagingMetadata: transformedData?.metadata
391
+ };
392
+ },
393
+ errorTransformer: (err) => {
394
+ const transformedError = sdkTransformError(err, {
395
+ spreadPathsToArguments: {},
396
+ explicitPathsToArguments: { query: "$[0]" },
397
+ singleArgumentUnchanged: false
398
+ });
399
+ throw transformedError;
400
+ },
401
+ pagingMethod: "CURSOR",
402
+ transformationPaths: {}
403
+ });
404
+ }
405
+ async function deleteSeatingReservation2(_id) {
406
+ const { httpClient, sideEffects } = arguments[1];
407
+ const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
408
+ const reqOpts = deleteSeatingReservation(payload);
409
+ sideEffects?.onSiteCall?.();
410
+ try {
411
+ const result = await httpClient.request(reqOpts);
412
+ sideEffects?.onSuccess?.(result);
413
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
414
+ } catch (err) {
415
+ const transformedError = sdkTransformError(
416
+ err,
417
+ {
418
+ spreadPathsToArguments: {},
419
+ explicitPathsToArguments: { id: "$[0]" },
420
+ singleArgumentUnchanged: false
421
+ },
422
+ ["_id"]
423
+ );
424
+ sideEffects?.onError?.(err);
425
+ throw transformedError;
426
+ }
427
+ }
428
+ async function getSeatingCategorySummary2(options) {
429
+ const { httpClient, sideEffects } = arguments[1];
430
+ const payload = renameKeysFromSDKRequestToRESTRequest({
431
+ externalId: options?.externalId
432
+ });
433
+ const reqOpts = getSeatingCategorySummary(payload);
434
+ sideEffects?.onSiteCall?.();
435
+ try {
436
+ const result = await httpClient.request(reqOpts);
437
+ sideEffects?.onSuccess?.(result);
438
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
439
+ } catch (err) {
440
+ const transformedError = sdkTransformError(
441
+ err,
442
+ {
443
+ spreadPathsToArguments: {},
444
+ explicitPathsToArguments: { externalId: "$[0].externalId" },
445
+ singleArgumentUnchanged: false
446
+ },
447
+ ["options"]
448
+ );
449
+ sideEffects?.onError?.(err);
450
+ throw transformedError;
451
+ }
452
+ }
453
+ async function getSeatingReservationSummary2(externalId) {
454
+ const { httpClient, sideEffects } = arguments[1];
455
+ const payload = renameKeysFromSDKRequestToRESTRequest({
456
+ externalId
457
+ });
458
+ const reqOpts = getSeatingReservationSummary(
459
+ payload
460
+ );
461
+ sideEffects?.onSiteCall?.();
462
+ try {
463
+ const result = await httpClient.request(reqOpts);
464
+ sideEffects?.onSuccess?.(result);
465
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
466
+ } catch (err) {
467
+ const transformedError = sdkTransformError(
468
+ err,
469
+ {
470
+ spreadPathsToArguments: {},
471
+ explicitPathsToArguments: { externalId: "$[0]" },
472
+ singleArgumentUnchanged: false
473
+ },
474
+ ["externalId"]
475
+ );
476
+ sideEffects?.onError?.(err);
477
+ throw transformedError;
478
+ }
479
+ }
480
+
481
+ // src/seating-v1-seating-reservation-seating-reservation.public.ts
482
+ function createSeatingReservation3(httpClient) {
483
+ return (options) => createSeatingReservation2(
484
+ options,
485
+ // @ts-ignore
486
+ { httpClient }
487
+ );
488
+ }
489
+ function getReservation3(httpClient) {
490
+ return (_id) => getReservation2(
491
+ _id,
492
+ // @ts-ignore
493
+ { httpClient }
494
+ );
495
+ }
496
+ function querySeatingReservation3(httpClient) {
497
+ return () => querySeatingReservation2(
498
+ // @ts-ignore
499
+ { httpClient }
500
+ );
501
+ }
502
+ function deleteSeatingReservation3(httpClient) {
503
+ return (_id) => deleteSeatingReservation2(
504
+ _id,
505
+ // @ts-ignore
506
+ { httpClient }
507
+ );
508
+ }
509
+ function getSeatingCategorySummary3(httpClient) {
510
+ return (options) => getSeatingCategorySummary2(
511
+ options,
512
+ // @ts-ignore
513
+ { httpClient }
514
+ );
515
+ }
516
+ function getSeatingReservationSummary3(httpClient) {
517
+ return (externalId) => getSeatingReservationSummary2(
518
+ externalId,
519
+ // @ts-ignore
520
+ { httpClient }
521
+ );
522
+ }
523
+ var onSeatingReservationCreated = EventDefinition(
524
+ "wix.seating.v1.seating_reservation_created",
525
+ true,
526
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
527
+ transformPaths3(event, [
528
+ {
529
+ transformFn: transformRESTTimestampToSDKTimestamp2,
530
+ paths: [{ path: "metadata.eventTime" }]
531
+ }
532
+ ])
533
+ )
534
+ )();
535
+ var onSeatingReservationDeleted = EventDefinition(
536
+ "wix.seating.v1.seating_reservation_deleted",
537
+ true,
538
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
539
+ transformPaths3(event, [
540
+ {
541
+ transformFn: transformRESTTimestampToSDKTimestamp2,
542
+ paths: [{ path: "metadata.eventTime" }]
543
+ }
544
+ ])
545
+ )
546
+ )();
547
+
548
+ // src/seating-v1-seating-reservation-seating-reservation.context.ts
549
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
550
+ import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
551
+ var createSeatingReservation4 = /* @__PURE__ */ createRESTModule(createSeatingReservation3);
552
+ var getReservation4 = /* @__PURE__ */ createRESTModule(getReservation3);
553
+ var querySeatingReservation4 = /* @__PURE__ */ createRESTModule(querySeatingReservation3);
554
+ var deleteSeatingReservation4 = /* @__PURE__ */ createRESTModule(deleteSeatingReservation3);
555
+ var getSeatingCategorySummary4 = /* @__PURE__ */ createRESTModule(getSeatingCategorySummary3);
556
+ var getSeatingReservationSummary4 = /* @__PURE__ */ createRESTModule(getSeatingReservationSummary3);
557
+ var onSeatingReservationCreated2 = createEventModule(onSeatingReservationCreated);
558
+ var onSeatingReservationDeleted2 = createEventModule(onSeatingReservationDeleted);
559
+ export {
560
+ Icon,
561
+ Numbering,
562
+ PlaceTypeEnumType,
563
+ Position,
564
+ ShapeTypeEnumType,
565
+ SortOrder,
566
+ Type,
567
+ WebhookIdentityType,
568
+ createSeatingReservation4 as createSeatingReservation,
569
+ deleteSeatingReservation4 as deleteSeatingReservation,
570
+ getReservation4 as getReservation,
571
+ getSeatingCategorySummary4 as getSeatingCategorySummary,
572
+ getSeatingReservationSummary4 as getSeatingReservationSummary,
573
+ onSeatingReservationCreated2 as onSeatingReservationCreated,
574
+ onSeatingReservationDeleted2 as onSeatingReservationDeleted,
575
+ querySeatingReservation4 as querySeatingReservation
576
+ };
577
+ //# sourceMappingURL=index.mjs.map