@wix/auto_sdk_table-reservations_reservations 1.0.24 → 1.0.26
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/index.d.ts +13 -10
- package/build/cjs/index.js +11 -11
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +8 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +17 -14
- package/build/cjs/meta.js +8 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{table-reservations-v1-reservation-reservations.universal-BtPRFS9k.d.ts → table-reservations-v1-reservation-reservations.universal-CFbgZcWS.d.ts} +32 -17
- package/build/es/index.d.mts +13 -10
- package/build/es/index.mjs +10 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +7 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +17 -14
- package/build/es/meta.mjs +7 -7
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{table-reservations-v1-reservation-reservations.universal-BtPRFS9k.d.mts → table-reservations-v1-reservation-reservations.universal-CFbgZcWS.d.mts} +32 -17
- package/build/internal/cjs/index.d.ts +13 -10
- package/build/internal/cjs/index.js +11 -11
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +8 -8
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +17 -14
- package/build/internal/cjs/meta.js +8 -8
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/{table-reservations-v1-reservation-reservations.universal-BtPRFS9k.d.ts → table-reservations-v1-reservation-reservations.universal-CFbgZcWS.d.ts} +32 -17
- package/build/internal/es/index.d.mts +13 -10
- package/build/internal/es/index.mjs +10 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +7 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +17 -14
- package/build/internal/es/meta.mjs +7 -7
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/{table-reservations-v1-reservation-reservations.universal-BtPRFS9k.d.mts → table-reservations-v1-reservation-reservations.universal-CFbgZcWS.d.mts} +32 -17
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { R as Reservation, C as CreateReservationOptions, a as CreateReservationApplicationErrors, b as CreateReservationValidationErrors, G as GetReservationOptions, U as UpdateReservation, c as UpdateReservationOptions, d as UpdateReservationApplicationErrors, e as UpdateReservationValidationErrors, H as HeldReservationDetails, f as CreateHeldReservationResponse, g as CreateHeldReservationApplicationErrors, h as Reservee, i as ReserveReservationResponse, j as ReserveReservationApplicationErrors, k as CancelReservationOptions, l as CancelReservationResponse, m as CancelReservationApplicationErrors, L as ListReservationsOptions, n as ListReservationsResponse, o as ReservationsQueryBuilder, p as ReservationSearch, S as SearchReservationsResponse, B as BulkArchiveReservationsResponse, q as
|
|
3
|
-
export { bb as ActionEvent, as as Aggregation, aF as AggregationData, at as AggregationKindOneOf, aY as AggregationResults, aZ as AggregationResultsResultOneOf, aM as AggregationResultsScalarResult, E as AggregationType, b1 as ApplicationError, bn as BaseEventMetadata, b2 as BulkActionMetadata, a_ as BulkArchiveReservationsRequest, a$ as BulkArchiveReservationsResult, b3 as
|
|
2
|
+
import { R as Reservation, C as CreateReservationOptions, a as CreateReservationApplicationErrors, b as CreateReservationValidationErrors, G as GetReservationOptions, U as UpdateReservation, c as UpdateReservationOptions, d as UpdateReservationApplicationErrors, e as UpdateReservationValidationErrors, H as HeldReservationDetails, f as CreateHeldReservationResponse, g as CreateHeldReservationApplicationErrors, h as Reservee, i as ReserveReservationResponse, j as ReserveReservationApplicationErrors, k as CancelReservationOptions, l as CancelReservationResponse, m as CancelReservationApplicationErrors, L as ListReservationsOptions, n as ListReservationsResponse, o as ReservationsQueryBuilder, p as ReservationSearch, S as SearchReservationsResponse, B as BulkArchiveReservationsResponse, q as BulkUnarchiveReservationsResponse, r as ReservationCreatedEnvelope, s as ReservationDeletedEnvelope, t as ReservationUpdatedEnvelope } from './table-reservations-v1-reservation-reservations.universal-CFbgZcWS.js';
|
|
3
|
+
export { bb as ActionEvent, as as Aggregation, aF as AggregationData, at as AggregationKindOneOf, aY as AggregationResults, aZ as AggregationResultsResultOneOf, aM as AggregationResultsScalarResult, E as AggregationType, b1 as ApplicationError, bn as BaseEventMetadata, b2 as BulkActionMetadata, a_ as BulkArchiveReservationsRequest, a$ as BulkArchiveReservationsResult, b3 as BulkUnarchiveReservationsRequest, b4 as BulkUnarchiveReservationsResult, ac as CancelReservationRequest, aa as CreateHeldReservationRequest, a1 as CreateReservationRequest, a2 as CreateReservationResponse, ah as CursorPaging, aj as CursorPagingMetadata, am as CursorQuery, an as CursorQueryPagingMethodOneOf, aq as CursorSearch, ar as CursorSearchPagingMethodOneOf, ak as Cursors, aA as DateHistogramAggregation, aU as DateHistogramResult, aW as DateHistogramResults, ae as DeleteReservationRequest, af as DeleteReservationResponse, K as Details, b5 as DomainEvent, b6 as DomainEventBodyOneOf, bc as Empty, b7 as EntityCreatedEvent, ba as EntityDeletedEvent, b9 as EntityUpdatedEvent, bo as EventMetadata, X as ExtendedFields, a6 as GetReservationRequest, a7 as GetReservationResponse, aV as GroupByValueResults, bi as HeadersEntry, bl as IdentificationData, bm as IdentificationDataIdOneOf, av as IncludeMissingValuesOptions, I as Interval, b0 as ItemMetadata, ag as ListReservationsRequest, bk as MessageEnvelope, Q as MigrationNote, M as MissingValues, F as Mode, aD as NestedAggregation, aB as NestedAggregationItem, aC as NestedAggregationItemKindOneOf, aI as NestedAggregationResults, aJ as NestedAggregationResultsResultOneOf, N as NestedAggregationType, aR as NestedResultValue, aS as NestedResultValueResultOneOf, aX as NestedResults, aN as NestedValueAggregationResult, bg as PathParametersEntry, P as PaymentStatus, bh as QueryParametersEntry, al as QueryReservationsRequest, ao as QueryReservationsResponse, ay as RangeAggregation, aH as RangeAggregationResult, au as RangeBucket, aP as RangeResult, aL as RangeResults, bf as RawHttpRequest, bj as RawHttpResponse, bd as RemoveReservationMigrationNotesRequest, be as RemoveReservationMigrationNotesResponse, ad as ReservationCanceled, _ as ReservationCreated, Y as ReservationDelayedDomainEvent, Z as ReservationDelayedDomainEventBodyTypeOneOf, a0 as ReservationDelayedDomainEventReservationCanceled, a3 as ReservationDetailsConflicts, a5 as ReservationLocationConflict, bq as ReservationSearchSpec, $ as ReservationUpdated, bp as ReservationsQueryResult, ab as ReserveReservationRequest, O as ReservedBy, b8 as RestoreInfo, aT as Results, az as ScalarAggregation, aQ as ScalarResult, D as ScalarType, aE as SearchDetails, ap as SearchReservationsRequest, x as Set, A as SortDirection, y as SortOrder, z as SortType, ai as Sorting, v as Source, u as Status, a4 as TableCombinationConflict, T as TableCombinationConflictType, V as TableWithReservationConflicts, J as Tables, w as Type, a8 as UpdateReservationRequest, a9 as UpdateReservationResponse, aw as ValueAggregation, ax as ValueAggregationOptionsOneOf, aG as ValueAggregationResult, aO as ValueResult, aK as ValueResults, W as WebhookIdentityType } from './table-reservations-v1-reservation-reservations.universal-CFbgZcWS.js';
|
|
4
4
|
|
|
5
5
|
type ReservationNonNullablePaths = `status` | `source` | `details.tableIds` | `details.tables.ids` | `paymentStatus`;
|
|
6
6
|
declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
|
|
@@ -180,18 +180,21 @@ interface SearchReservationsSignature {
|
|
|
180
180
|
declare function bulkArchiveReservations$1(httpClient: HttpClient): BulkArchiveReservationsSignature;
|
|
181
181
|
interface BulkArchiveReservationsSignature {
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
183
|
+
* Archives multiple reservations at once.
|
|
184
|
+
*
|
|
185
|
+
* Archived reservations aren't shown in the dashboard along with other reservations. However, they can still be viewed in a separate section.
|
|
186
|
+
* Archived reservations can't be updated with Update Reservation.
|
|
187
|
+
* @param - IDs of reservations to archive.
|
|
185
188
|
*/
|
|
186
189
|
(reservationIds: string[]): Promise<NonNullablePaths<BulkArchiveReservationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
187
190
|
}
|
|
188
|
-
declare function
|
|
189
|
-
interface
|
|
191
|
+
declare function bulkUnarchiveReservations$1(httpClient: HttpClient): BulkUnarchiveReservationsSignature;
|
|
192
|
+
interface BulkUnarchiveReservationsSignature {
|
|
190
193
|
/**
|
|
191
|
-
*
|
|
194
|
+
* Unarchives multiple reservations at once.
|
|
192
195
|
* @param - Reservation IDs to unarchive.
|
|
193
196
|
*/
|
|
194
|
-
(reservationIds: string[]): Promise<NonNullablePaths<
|
|
197
|
+
(reservationIds: string[]): Promise<NonNullablePaths<BulkUnarchiveReservationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
195
198
|
}
|
|
196
199
|
declare const onReservationCreated$1: EventDefinition<ReservationCreatedEnvelope, "wix.table_reservations.v1.reservation_created">;
|
|
197
200
|
declare const onReservationDeleted$1: EventDefinition<ReservationDeletedEnvelope, "wix.table_reservations.v1.reservation_deleted">;
|
|
@@ -208,7 +211,7 @@ declare const listReservations: MaybeContext<BuildRESTFunction<typeof listReserv
|
|
|
208
211
|
declare const queryReservations: MaybeContext<BuildRESTFunction<typeof queryReservations$1> & typeof queryReservations$1>;
|
|
209
212
|
declare const searchReservations: MaybeContext<BuildRESTFunction<typeof searchReservations$1> & typeof searchReservations$1>;
|
|
210
213
|
declare const bulkArchiveReservations: MaybeContext<BuildRESTFunction<typeof bulkArchiveReservations$1> & typeof bulkArchiveReservations$1>;
|
|
211
|
-
declare const
|
|
214
|
+
declare const bulkUnarchiveReservations: MaybeContext<BuildRESTFunction<typeof bulkUnarchiveReservations$1> & typeof bulkUnarchiveReservations$1>;
|
|
212
215
|
/**
|
|
213
216
|
* Triggered when a held reservation is created.
|
|
214
217
|
*/
|
|
@@ -222,4 +225,4 @@ declare const onReservationDeleted: BuildEventDefinition<typeof onReservationDel
|
|
|
222
225
|
*/
|
|
223
226
|
declare const onReservationUpdated: BuildEventDefinition<typeof onReservationUpdated$1>;
|
|
224
227
|
|
|
225
|
-
export { BulkArchiveReservationsResponse,
|
|
228
|
+
export { BulkArchiveReservationsResponse, BulkUnarchiveReservationsResponse, CancelReservationOptions, CancelReservationResponse, CreateHeldReservationResponse, CreateReservationOptions, GetReservationOptions, HeldReservationDetails, ListReservationsOptions, ListReservationsResponse, Reservation, ReservationCreatedEnvelope, ReservationDeletedEnvelope, ReservationUpdatedEnvelope, ReservationsQueryBuilder, ReserveReservationResponse, Reservee, SearchReservationsResponse, UpdateReservation, UpdateReservationOptions, bulkArchiveReservations, bulkUnarchiveReservations, cancelReservation, createHeldReservation, createReservation, deleteReservation, getReservation, listReservations, onReservationCreated, onReservationDeleted, onReservationUpdated, queryReservations, reserveReservation, searchReservations, updateReservation };
|
package/build/cjs/index.js
CHANGED
|
@@ -37,7 +37,7 @@ __export(index_exports, {
|
|
|
37
37
|
Type: () => Type,
|
|
38
38
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
39
39
|
bulkArchiveReservations: () => bulkArchiveReservations4,
|
|
40
|
-
|
|
40
|
+
bulkUnarchiveReservations: () => bulkUnarchiveReservations4,
|
|
41
41
|
cancelReservation: () => cancelReservation4,
|
|
42
42
|
createHeldReservation: () => createHeldReservation4,
|
|
43
43
|
createReservation: () => createReservation4,
|
|
@@ -546,12 +546,12 @@ function bulkArchiveReservations(payload) {
|
|
|
546
546
|
}
|
|
547
547
|
return __bulkArchiveReservations;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
function
|
|
549
|
+
function bulkUnarchiveReservations(payload) {
|
|
550
|
+
function __bulkUnarchiveReservations({ host }) {
|
|
551
551
|
const metadata = {
|
|
552
552
|
entityFqdn: "wix.table_reservations.v1.reservation",
|
|
553
553
|
method: "POST",
|
|
554
|
-
methodFqn: "wix.table_reservations.reservation.v1.ReservationsService.
|
|
554
|
+
methodFqn: "wix.table_reservations.reservation.v1.ReservationsService.BulkUnarchiveReservations",
|
|
555
555
|
packageName: PACKAGE_NAME,
|
|
556
556
|
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
557
557
|
protoPath: "/v1/bulk/reservations/unarchive",
|
|
@@ -562,7 +562,7 @@ function bulkUnArchiveReservations(payload) {
|
|
|
562
562
|
};
|
|
563
563
|
return metadata;
|
|
564
564
|
}
|
|
565
|
-
return
|
|
565
|
+
return __bulkUnarchiveReservations;
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
// src/table-reservations-v1-reservation-reservations.universal.ts
|
|
@@ -1016,12 +1016,12 @@ async function bulkArchiveReservations2(reservationIds) {
|
|
|
1016
1016
|
throw transformedError;
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
|
-
async function
|
|
1019
|
+
async function bulkUnarchiveReservations2(reservationIds) {
|
|
1020
1020
|
const { httpClient, sideEffects } = arguments[1];
|
|
1021
1021
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1022
1022
|
reservationIds
|
|
1023
1023
|
});
|
|
1024
|
-
const reqOpts =
|
|
1024
|
+
const reqOpts = bulkUnarchiveReservations(
|
|
1025
1025
|
payload
|
|
1026
1026
|
);
|
|
1027
1027
|
sideEffects?.onSiteCall?.();
|
|
@@ -1129,8 +1129,8 @@ function bulkArchiveReservations3(httpClient) {
|
|
|
1129
1129
|
{ httpClient }
|
|
1130
1130
|
);
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1133
|
-
return (reservationIds) =>
|
|
1132
|
+
function bulkUnarchiveReservations3(httpClient) {
|
|
1133
|
+
return (reservationIds) => bulkUnarchiveReservations2(
|
|
1134
1134
|
reservationIds,
|
|
1135
1135
|
// @ts-ignore
|
|
1136
1136
|
{ httpClient }
|
|
@@ -1205,7 +1205,7 @@ var listReservations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModul
|
|
|
1205
1205
|
var queryReservations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryReservations3);
|
|
1206
1206
|
var searchReservations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchReservations3);
|
|
1207
1207
|
var bulkArchiveReservations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkArchiveReservations3);
|
|
1208
|
-
var
|
|
1208
|
+
var bulkUnarchiveReservations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUnarchiveReservations3);
|
|
1209
1209
|
var onReservationCreated2 = (0, import_event_definition_modules.createEventModule)(onReservationCreated);
|
|
1210
1210
|
var onReservationDeleted2 = (0, import_event_definition_modules.createEventModule)(onReservationDeleted);
|
|
1211
1211
|
var onReservationUpdated2 = (0, import_event_definition_modules.createEventModule)(onReservationUpdated);
|
|
@@ -1228,7 +1228,7 @@ var onReservationUpdated2 = (0, import_event_definition_modules.createEventModul
|
|
|
1228
1228
|
Type,
|
|
1229
1229
|
WebhookIdentityType,
|
|
1230
1230
|
bulkArchiveReservations,
|
|
1231
|
-
|
|
1231
|
+
bulkUnarchiveReservations,
|
|
1232
1232
|
cancelReservation,
|
|
1233
1233
|
createHeldReservation,
|
|
1234
1234
|
createReservation,
|