@wix/auto_sdk_table-reservations_reservations 1.0.66 → 1.0.67
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 +71 -71
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +64 -64
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +38 -38
- package/build/cjs/meta.js +38 -38
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +105 -105
- package/build/cjs/schemas.js +146 -146
- 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-C9PfFBym.d.ts} +207 -208
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +71 -71
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +64 -64
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +38 -38
- package/build/es/meta.mjs +38 -38
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +105 -105
- package/build/es/schemas.mjs +146 -146
- 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-C9PfFBym.d.mts} +207 -208
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +71 -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 +64 -64
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +38 -38
- package/build/internal/cjs/meta.js +38 -38
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +105 -105
- package/build/internal/cjs/schemas.js +146 -146
- 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-C9PfFBym.d.ts} +207 -208
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +71 -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 +64 -64
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +38 -38
- package/build/internal/es/meta.mjs +38 -38
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +105 -105
- package/build/internal/es/schemas.mjs +146 -146
- 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-C9PfFBym.d.mts} +207 -208
- 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-C9PfFBym.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-C9PfFBym.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";
|
|
@@ -1001,6 +1001,37 @@ async function listReservations2(options) {
|
|
|
1001
1001
|
throw transformedError;
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
|
+
async function searchReservations2(search) {
|
|
1005
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1006
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search });
|
|
1007
|
+
const reqOpts = searchReservations(payload);
|
|
1008
|
+
sideEffects?.onSiteCall?.();
|
|
1009
|
+
try {
|
|
1010
|
+
const result = await httpClient.request(reqOpts);
|
|
1011
|
+
sideEffects?.onSuccess?.(result);
|
|
1012
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1013
|
+
} catch (err) {
|
|
1014
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1015
|
+
err,
|
|
1016
|
+
{
|
|
1017
|
+
spreadPathsToArguments: {},
|
|
1018
|
+
explicitPathsToArguments: { search: "$[0]" },
|
|
1019
|
+
singleArgumentUnchanged: false
|
|
1020
|
+
},
|
|
1021
|
+
["search"]
|
|
1022
|
+
);
|
|
1023
|
+
sideEffects?.onError?.(err);
|
|
1024
|
+
throw transformedError;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
var utils = {
|
|
1028
|
+
search: {
|
|
1029
|
+
...(0, import_search_builder_utils.createSearchUtils)()
|
|
1030
|
+
},
|
|
1031
|
+
query: {
|
|
1032
|
+
...(0, import_query_builder_utils.createQueryUtils)()
|
|
1033
|
+
}
|
|
1034
|
+
};
|
|
1004
1035
|
function queryReservations2() {
|
|
1005
1036
|
const { httpClient, sideEffects } = arguments[0];
|
|
1006
1037
|
return (0, import_query_builder.queryBuilder)({
|
|
@@ -1069,37 +1100,6 @@ async function typedQueryReservations(query) {
|
|
|
1069
1100
|
throw transformedError;
|
|
1070
1101
|
}
|
|
1071
1102
|
}
|
|
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
1103
|
async function bulkArchiveReservations2(reservationIds) {
|
|
1104
1104
|
const { httpClient, sideEffects } = arguments[1];
|
|
1105
1105
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1220,6 +1220,13 @@ function listReservations3(httpClient) {
|
|
|
1220
1220
|
{ httpClient }
|
|
1221
1221
|
);
|
|
1222
1222
|
}
|
|
1223
|
+
function searchReservations3(httpClient) {
|
|
1224
|
+
return (search) => searchReservations2(
|
|
1225
|
+
search,
|
|
1226
|
+
// @ts-ignore
|
|
1227
|
+
{ httpClient }
|
|
1228
|
+
);
|
|
1229
|
+
}
|
|
1223
1230
|
function queryReservations3(httpClient) {
|
|
1224
1231
|
return () => queryReservations2(
|
|
1225
1232
|
// @ts-ignore
|
|
@@ -1233,13 +1240,6 @@ function typedQueryReservations2(httpClient) {
|
|
|
1233
1240
|
{ httpClient }
|
|
1234
1241
|
);
|
|
1235
1242
|
}
|
|
1236
|
-
function searchReservations3(httpClient) {
|
|
1237
|
-
return (search) => searchReservations2(
|
|
1238
|
-
search,
|
|
1239
|
-
// @ts-ignore
|
|
1240
|
-
{ httpClient }
|
|
1241
|
-
);
|
|
1242
|
-
}
|
|
1243
1243
|
function bulkArchiveReservations3(httpClient) {
|
|
1244
1244
|
return (reservationIds) => bulkArchiveReservations2(
|
|
1245
1245
|
reservationIds,
|