@wix/auto_sdk_table-reservations_reservations 1.0.66 → 1.0.68
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 +2 -2
- package/build/cjs/index.js +72 -71
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +65 -64
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +47 -41
- package/build/cjs/meta.js +39 -38
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +107 -105
- package/build/cjs/schemas.js +152 -150
- package/build/cjs/schemas.js.map +1 -1
- package/build/cjs/{table-reservations-v1-reservation-reservations.universal-DmKw2bDG.d.ts → table-reservations-v1-reservation-reservations.universal-CzWbgu6r.d.ts} +216 -211
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +72 -71
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +65 -64
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +47 -41
- package/build/es/meta.mjs +39 -38
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +107 -105
- package/build/es/schemas.mjs +152 -150
- package/build/es/schemas.mjs.map +1 -1
- package/build/es/{table-reservations-v1-reservation-reservations.universal-DmKw2bDG.d.mts → table-reservations-v1-reservation-reservations.universal-CzWbgu6r.d.mts} +216 -211
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +72 -71
- 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 +65 -64
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +47 -41
- package/build/internal/cjs/meta.js +39 -38
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +107 -105
- package/build/internal/cjs/schemas.js +152 -150
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/cjs/{table-reservations-v1-reservation-reservations.universal-DmKw2bDG.d.ts → table-reservations-v1-reservation-reservations.universal-CzWbgu6r.d.ts} +216 -211
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +72 -71
- 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 +65 -64
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +47 -41
- package/build/internal/es/meta.mjs +39 -38
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +107 -105
- package/build/internal/es/schemas.mjs +152 -150
- package/build/internal/es/schemas.mjs.map +1 -1
- package/build/internal/es/{table-reservations-v1-reservation-reservations.universal-DmKw2bDG.d.mts → table-reservations-v1-reservation-reservations.universal-CzWbgu6r.d.mts} +216 -211
- 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 ReservationSearch, S as SearchReservationsResponse, B as BulkArchiveReservationsResponse, p as BulkUnarchiveReservationsResponse, q as ReservationCreatedEnvelope, r as ReservationDeletedEnvelope, s as ReservationUpdatedEnvelope, t as ReservationsQueryBuilder, u as ReservationQuery, v as typedQueryReservations } from './table-reservations-v1-reservation-reservations.universal-
|
|
3
|
-
export { bJ as AccountInfo, bM as AccountInfoMetadata, bx as ActionEvent,
|
|
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 ReservationSearch, S as SearchReservationsResponse, B as BulkArchiveReservationsResponse, p as BulkUnarchiveReservationsResponse, q as ReservationCreatedEnvelope, r as ReservationDeletedEnvelope, s as ReservationUpdatedEnvelope, t as ReservationsQueryBuilder, u as ReservationQuery, v as typedQueryReservations } from './table-reservations-v1-reservation-reservations.universal-CzWbgu6r.js';
|
|
3
|
+
export { bJ as AccountInfo, bM as AccountInfoMetadata, bx as ActionEvent, aI as Aggregation, aV as AggregationData, aJ as AggregationKindOneOf, be as AggregationResults, bf as AggregationResultsResultOneOf, bd as AggregationResultsScalarDateResult, b0 as AggregationResultsScalarResult, W as AggregationType, c7 as AggregationTypeWithLiterals, bn as ApplicationError, bK as BaseEventMetadata, bo as BulkActionMetadata, bk as BulkArchiveReservationsRequest, bl as BulkArchiveReservationsResult, bp as BulkUnarchiveReservationsRequest, bq as BulkUnarchiveReservationsResult, aw as CancelReservationRequest, cb as CommonQueryWithEntityContext, ca as CommonSearchWithEntityContext, am as Conflicts, al as ConflictsExperienceOptions, an as ConflictsOptionsOneOf, ak as ConflictsStandardOptions, ao as CreateGoogleReservationRequest, ap as CreateGoogleReservationResponse, au as CreateHeldReservationRequest, a8 as CreateReservationRequest, ad as CreateReservationResponse, aB as CursorPaging, aD as CursorPagingMetadata, bh as CursorQuery, bi as CursorQueryPagingMethodOneOf, aG as CursorSearch, aH as CursorSearchPagingMethodOneOf, aE as Cursors, aQ as DateHistogramAggregation, b9 as DateHistogramResult, bb as DateHistogramResults, ay as DeleteReservationRequest, az as DeleteReservationResponse, _ as Details, br as DomainEvent, bs as DomainEventBodyOneOf, by as Empty, bt as EntityCreatedEvent, bw as EntityDeletedEvent, bv as EntityUpdatedEvent, bL as EventMetadata, ah as ExperienceBlockingConflict, A as ExperienceBlockingConflictType, bY as ExperienceBlockingConflictTypeWithLiterals, aj as ExperienceConflict, z as ExperienceConflictType, bX as ExperienceConflictTypeWithLiterals, ac as ExperienceOptions, ai as ExperienceTableCombinationConflict, E as ExperienceTableCombinationConflictType, bW as ExperienceTableCombinationConflictTypeWithLiterals, a2 as ExtendedFields, aq as GetReservationRequest, ar as GetReservationResponse, ba as GroupByValueResults, bE as HeadersEntry, bH as IdentificationData, bI as IdentificationDataIdOneOf, a9 as IgnoreConflicts, aa as IgnoreConflictsIgnoreConflictsOptionsOneOf, I as IgnoreConflictsType, bZ as IgnoreConflictsTypeWithLiterals, aL as IncludeMissingValuesOptions, V as Interval, c6 as IntervalWithLiterals, bm as ItemMetadata, aA as ListReservationsRequest, bG as MessageEnvelope, a0 as MigrationNote, N as MissingValues, c3 as MissingValuesWithLiterals, X as Mode, c8 as ModeWithLiterals, aT as NestedAggregation, aR as NestedAggregationItem, aS as NestedAggregationItemKindOneOf, aY as NestedAggregationResults, aZ as NestedAggregationResultsResultOneOf, Q as NestedAggregationType, c5 as NestedAggregationTypeWithLiterals, b6 as NestedResultValue, b7 as NestedResultValueResultOneOf, bc as NestedResults, b1 as NestedValueAggregationResult, bC as PathParametersEntry, P as PaymentStatus, bT as PaymentStatusWithLiterals, bD as QueryParametersEntry, bg as QueryReservationsRequest, bj as QueryReservationsResponse, aO as RangeAggregation, aX as RangeAggregationResult, aK as RangeBucket, b3 as RangeResult, a$ as RangeResults, bB as RawHttpRequest, bF as RawHttpResponse, bz as RemoveReservationMigrationNotesRequest, bA as RemoveReservationMigrationNotesResponse, ax as ReservationCanceled, a5 as ReservationCreated, a3 as ReservationDelayedDomainEvent, a4 as ReservationDelayedDomainEventBodyTypeOneOf, a7 as ReservationDelayedDomainEventReservationCanceled, ae as ReservationDetailsConflicts, ag as ReservationLocationConflict, y as ReservationLocationConflictType, bV as ReservationLocationConflictTypeWithLiterals, bP as ReservationQuerySpec, bN as ReservationSearchSpec, a6 as ReservationUpdated, bO as ReservationsQueryResult, av as ReserveReservationRequest, $ as ReservedBy, bu as RestoreInfo, b8 as Results, aP as ScalarAggregation, b5 as ScalarDateResult, b4 as ScalarResult, O as ScalarType, c4 as ScalarTypeWithLiterals, aU as SearchDetails, aF as SearchReservationsRequest, F as Set, b$ as SetWithLiterals, M as SortDirection, c2 as SortDirectionWithLiterals, J as SortOrder, c0 as SortOrderWithLiterals, K as SortType, c1 as SortTypeWithLiterals, aC as Sorting, x as Source, bS as SourceWithLiterals, ab as StandardOptions, w as Status, bR as StatusWithLiterals, af as TableCombinationConflict, T as TableCombinationConflictType, bU as TableCombinationConflictTypeWithLiterals, a1 as TableWithReservationConflicts, Z as Tables, D as Type, b_ as TypeWithLiterals, as as UpdateReservationRequest, at as UpdateReservationResponse, aM as ValueAggregation, aN as ValueAggregationOptionsOneOf, aW as ValueAggregationResult, b2 as ValueResult, a_ as ValueResults, Y as WebhookIdentityType, c9 as WebhookIdentityTypeWithLiterals, bQ as utils } from './table-reservations-v1-reservation-reservations.universal-CzWbgu6r.js';
|
|
4
4
|
|
|
5
5
|
declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
|
|
6
6
|
interface CreateReservationSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -459,38 +459,6 @@ function listReservations(payload) {
|
|
|
459
459
|
}
|
|
460
460
|
return __listReservations;
|
|
461
461
|
}
|
|
462
|
-
function queryReservations(payload) {
|
|
463
|
-
function __queryReservations({ host }) {
|
|
464
|
-
const metadata = {
|
|
465
|
-
entityFqdn: "wix.table_reservations.v1.reservation",
|
|
466
|
-
method: "POST",
|
|
467
|
-
methodFqn: "wix.table_reservations.reservation.v1.ReservationsService.QueryReservations",
|
|
468
|
-
packageName: PACKAGE_NAME,
|
|
469
|
-
migrationOptions: {
|
|
470
|
-
optInTransformResponse: true
|
|
471
|
-
},
|
|
472
|
-
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
473
|
-
protoPath: "/v1/reservations/query",
|
|
474
|
-
data: payload,
|
|
475
|
-
host
|
|
476
|
-
}),
|
|
477
|
-
data: payload,
|
|
478
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
479
|
-
{
|
|
480
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
481
|
-
paths: [
|
|
482
|
-
{ path: "reservations.createdDate" },
|
|
483
|
-
{ path: "reservations.updatedDate" },
|
|
484
|
-
{ path: "reservations.details.startDate" },
|
|
485
|
-
{ path: "reservations.details.endDate" }
|
|
486
|
-
]
|
|
487
|
-
}
|
|
488
|
-
])
|
|
489
|
-
};
|
|
490
|
-
return metadata;
|
|
491
|
-
}
|
|
492
|
-
return __queryReservations;
|
|
493
|
-
}
|
|
494
462
|
function searchReservations(payload) {
|
|
495
463
|
function __searchReservations({ host }) {
|
|
496
464
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -564,6 +532,38 @@ function searchReservations(payload) {
|
|
|
564
532
|
}
|
|
565
533
|
return __searchReservations;
|
|
566
534
|
}
|
|
535
|
+
function queryReservations(payload) {
|
|
536
|
+
function __queryReservations({ host }) {
|
|
537
|
+
const metadata = {
|
|
538
|
+
entityFqdn: "wix.table_reservations.v1.reservation",
|
|
539
|
+
method: "POST",
|
|
540
|
+
methodFqn: "wix.table_reservations.reservation.v1.ReservationsService.QueryReservations",
|
|
541
|
+
packageName: PACKAGE_NAME,
|
|
542
|
+
migrationOptions: {
|
|
543
|
+
optInTransformResponse: true
|
|
544
|
+
},
|
|
545
|
+
url: resolveWixTableReservationsReservationV1ReservationsServiceUrl({
|
|
546
|
+
protoPath: "/v1/reservations/query",
|
|
547
|
+
data: payload,
|
|
548
|
+
host
|
|
549
|
+
}),
|
|
550
|
+
data: payload,
|
|
551
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
552
|
+
{
|
|
553
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
554
|
+
paths: [
|
|
555
|
+
{ path: "reservations.createdDate" },
|
|
556
|
+
{ path: "reservations.updatedDate" },
|
|
557
|
+
{ path: "reservations.details.startDate" },
|
|
558
|
+
{ path: "reservations.details.endDate" }
|
|
559
|
+
]
|
|
560
|
+
}
|
|
561
|
+
])
|
|
562
|
+
};
|
|
563
|
+
return metadata;
|
|
564
|
+
}
|
|
565
|
+
return __queryReservations;
|
|
566
|
+
}
|
|
567
567
|
function bulkArchiveReservations(payload) {
|
|
568
568
|
function __bulkArchiveReservations({ host }) {
|
|
569
569
|
const metadata = {
|
|
@@ -609,8 +609,8 @@ function bulkUnarchiveReservations(payload) {
|
|
|
609
609
|
|
|
610
610
|
// src/table-reservations-v1-reservation-reservations.universal.ts
|
|
611
611
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
612
|
-
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
613
612
|
var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
|
|
613
|
+
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
614
614
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
615
615
|
Status2["HELD"] = "HELD";
|
|
616
616
|
Status2["RESERVED"] = "RESERVED";
|
|
@@ -660,6 +660,7 @@ var ExperienceTableCombinationConflictType = /* @__PURE__ */ ((ExperienceTableCo
|
|
|
660
660
|
ExperienceTableCombinationConflictType2["TOO_BIG"] = "TOO_BIG";
|
|
661
661
|
ExperienceTableCombinationConflictType2["TOO_SMALL"] = "TOO_SMALL";
|
|
662
662
|
ExperienceTableCombinationConflictType2["OUTSIDE_EXPERIENCE_TABLE_LIST"] = "OUTSIDE_EXPERIENCE_TABLE_LIST";
|
|
663
|
+
ExperienceTableCombinationConflictType2["TABLE_NOT_IN_AREA"] = "TABLE_NOT_IN_AREA";
|
|
663
664
|
return ExperienceTableCombinationConflictType2;
|
|
664
665
|
})(ExperienceTableCombinationConflictType || {});
|
|
665
666
|
var ExperienceConflictType = /* @__PURE__ */ ((ExperienceConflictType2) => {
|
|
@@ -1001,6 +1002,37 @@ async function listReservations2(options) {
|
|
|
1001
1002
|
throw transformedError;
|
|
1002
1003
|
}
|
|
1003
1004
|
}
|
|
1005
|
+
async function searchReservations2(search) {
|
|
1006
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1007
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search });
|
|
1008
|
+
const reqOpts = searchReservations(payload);
|
|
1009
|
+
sideEffects?.onSiteCall?.();
|
|
1010
|
+
try {
|
|
1011
|
+
const result = await httpClient.request(reqOpts);
|
|
1012
|
+
sideEffects?.onSuccess?.(result);
|
|
1013
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1014
|
+
} catch (err) {
|
|
1015
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1016
|
+
err,
|
|
1017
|
+
{
|
|
1018
|
+
spreadPathsToArguments: {},
|
|
1019
|
+
explicitPathsToArguments: { search: "$[0]" },
|
|
1020
|
+
singleArgumentUnchanged: false
|
|
1021
|
+
},
|
|
1022
|
+
["search"]
|
|
1023
|
+
);
|
|
1024
|
+
sideEffects?.onError?.(err);
|
|
1025
|
+
throw transformedError;
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
var utils = {
|
|
1029
|
+
search: {
|
|
1030
|
+
...(0, import_search_builder_utils.createSearchUtils)()
|
|
1031
|
+
},
|
|
1032
|
+
query: {
|
|
1033
|
+
...(0, import_query_builder_utils.createQueryUtils)()
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1004
1036
|
function queryReservations2() {
|
|
1005
1037
|
const { httpClient, sideEffects } = arguments[0];
|
|
1006
1038
|
return (0, import_query_builder.queryBuilder)({
|
|
@@ -1069,37 +1101,6 @@ async function typedQueryReservations(query) {
|
|
|
1069
1101
|
throw transformedError;
|
|
1070
1102
|
}
|
|
1071
1103
|
}
|
|
1072
|
-
var utils = {
|
|
1073
|
-
query: {
|
|
1074
|
-
...(0, import_query_builder_utils.createQueryUtils)()
|
|
1075
|
-
},
|
|
1076
|
-
search: {
|
|
1077
|
-
...(0, import_search_builder_utils.createSearchUtils)()
|
|
1078
|
-
}
|
|
1079
|
-
};
|
|
1080
|
-
async function searchReservations2(search) {
|
|
1081
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1082
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search });
|
|
1083
|
-
const reqOpts = searchReservations(payload);
|
|
1084
|
-
sideEffects?.onSiteCall?.();
|
|
1085
|
-
try {
|
|
1086
|
-
const result = await httpClient.request(reqOpts);
|
|
1087
|
-
sideEffects?.onSuccess?.(result);
|
|
1088
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1089
|
-
} catch (err) {
|
|
1090
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1091
|
-
err,
|
|
1092
|
-
{
|
|
1093
|
-
spreadPathsToArguments: {},
|
|
1094
|
-
explicitPathsToArguments: { search: "$[0]" },
|
|
1095
|
-
singleArgumentUnchanged: false
|
|
1096
|
-
},
|
|
1097
|
-
["search"]
|
|
1098
|
-
);
|
|
1099
|
-
sideEffects?.onError?.(err);
|
|
1100
|
-
throw transformedError;
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
1104
|
async function bulkArchiveReservations2(reservationIds) {
|
|
1104
1105
|
const { httpClient, sideEffects } = arguments[1];
|
|
1105
1106
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1220,6 +1221,13 @@ function listReservations3(httpClient) {
|
|
|
1220
1221
|
{ httpClient }
|
|
1221
1222
|
);
|
|
1222
1223
|
}
|
|
1224
|
+
function searchReservations3(httpClient) {
|
|
1225
|
+
return (search) => searchReservations2(
|
|
1226
|
+
search,
|
|
1227
|
+
// @ts-ignore
|
|
1228
|
+
{ httpClient }
|
|
1229
|
+
);
|
|
1230
|
+
}
|
|
1223
1231
|
function queryReservations3(httpClient) {
|
|
1224
1232
|
return () => queryReservations2(
|
|
1225
1233
|
// @ts-ignore
|
|
@@ -1233,13 +1241,6 @@ function typedQueryReservations2(httpClient) {
|
|
|
1233
1241
|
{ httpClient }
|
|
1234
1242
|
);
|
|
1235
1243
|
}
|
|
1236
|
-
function searchReservations3(httpClient) {
|
|
1237
|
-
return (search) => searchReservations2(
|
|
1238
|
-
search,
|
|
1239
|
-
// @ts-ignore
|
|
1240
|
-
{ httpClient }
|
|
1241
|
-
);
|
|
1242
|
-
}
|
|
1243
1244
|
function bulkArchiveReservations3(httpClient) {
|
|
1244
1245
|
return (reservationIds) => bulkArchiveReservations2(
|
|
1245
1246
|
reservationIds,
|