@wix/auto_sdk_table-reservations_reservations 1.0.44 → 1.0.46
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 +4 -4
- package/build/cjs/index.js +12 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +7 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +28 -2
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{table-reservations-v1-reservation-reservations.universal-DSZ1uOIi.d.ts → table-reservations-v1-reservation-reservations.universal-Dp63cwTD.d.ts} +119 -6
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +12 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +7 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +28 -2
- package/build/es/meta.mjs +1 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{table-reservations-v1-reservation-reservations.universal-DSZ1uOIi.d.mts → table-reservations-v1-reservation-reservations.universal-Dp63cwTD.d.mts} +119 -6
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +12 -1
- 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 +7 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +28 -2
- package/build/internal/cjs/meta.js +1 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/{table-reservations-v1-reservation-reservations.universal-DSZ1uOIi.d.ts → table-reservations-v1-reservation-reservations.universal-Dp63cwTD.d.ts} +119 -6
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +12 -1
- 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 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +28 -2
- package/build/internal/es/meta.mjs +1 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/{table-reservations-v1-reservation-reservations.universal-DSZ1uOIi.d.mts → table-reservations-v1-reservation-reservations.universal-Dp63cwTD.d.mts} +119 -6
- package/package.json +3 -3
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
|
|
3
|
-
export {
|
|
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-Dp63cwTD.js';
|
|
3
|
+
export { bt as ActionEvent, aI as Aggregation, aV as AggregationData, aJ as AggregationKindOneOf, be as AggregationResults, bf as AggregationResultsResultOneOf, bd as AggregationResultsScalarDateResult, b0 as AggregationResultsScalarResult, V as AggregationType, b$ as AggregationTypeWithLiterals, bj as ApplicationError, bF as BaseEventMetadata, bk as BulkActionMetadata, bg as BulkArchiveReservationsRequest, bh as BulkArchiveReservationsResult, bl as BulkUnarchiveReservationsRequest, bm as BulkUnarchiveReservationsResult, as as CancelReservationRequest, c2 as CommonQueryWithEntityContext, c3 as CommonSearchWithEntityContext, ak as Conflicts, aj as ConflictsExperienceOptions, al as ConflictsOptionsOneOf, ai as ConflictsStandardOptions, aq as CreateHeldReservationRequest, a7 as CreateReservationRequest, ac as CreateReservationResponse, ax as CursorPaging, az as CursorPagingMetadata, aC as CursorQuery, aD as CursorQueryPagingMethodOneOf, aG as CursorSearch, aH as CursorSearchPagingMethodOneOf, aA as Cursors, aQ as DateHistogramAggregation, b9 as DateHistogramResult, bb as DateHistogramResults, au as DeleteReservationRequest, av as DeleteReservationResponse, Z as Details, bn as DomainEvent, bo as DomainEventBodyOneOf, bu as Empty, bp as EntityCreatedEvent, bs as EntityDeletedEvent, br as EntityUpdatedEvent, bG as EventMetadata, ah as ExperienceConflict, z as ExperienceConflictType, bQ as ExperienceConflictTypeWithLiterals, ab as ExperienceOptions, ag as ExperienceTableCombinationConflict, E as ExperienceTableCombinationConflictType, bP as ExperienceTableCombinationConflictTypeWithLiterals, a1 as ExtendedFields, am as GetReservationRequest, an as GetReservationResponse, ba as GroupByValueResults, bA as HeadersEntry, bD as IdentificationData, bE as IdentificationDataIdOneOf, a8 as IgnoreConflicts, a9 as IgnoreConflictsIgnoreConflictsOptionsOneOf, I as IgnoreConflictsType, bR as IgnoreConflictsTypeWithLiterals, aL as IncludeMissingValuesOptions, Q as Interval, b_ as IntervalWithLiterals, bi as ItemMetadata, aw as ListReservationsRequest, bC as MessageEnvelope, $ as MigrationNote, M as MissingValues, bX as MissingValuesWithLiterals, W as Mode, c0 as ModeWithLiterals, aT as NestedAggregation, aR as NestedAggregationItem, aS as NestedAggregationItemKindOneOf, aY as NestedAggregationResults, aZ as NestedAggregationResultsResultOneOf, O as NestedAggregationType, bZ as NestedAggregationTypeWithLiterals, b6 as NestedResultValue, b7 as NestedResultValueResultOneOf, bc as NestedResults, b1 as NestedValueAggregationResult, by as PathParametersEntry, P as PaymentStatus, bM as PaymentStatusWithLiterals, bz as QueryParametersEntry, aB as QueryReservationsRequest, aE as QueryReservationsResponse, aO as RangeAggregation, aX as RangeAggregationResult, aK as RangeBucket, b3 as RangeResult, a$ as RangeResults, bx as RawHttpRequest, bB as RawHttpResponse, bv as RemoveReservationMigrationNotesRequest, bw as RemoveReservationMigrationNotesResponse, at as ReservationCanceled, a4 as ReservationCreated, a2 as ReservationDelayedDomainEvent, a3 as ReservationDelayedDomainEventBodyTypeOneOf, a6 as ReservationDelayedDomainEventReservationCanceled, ad as ReservationDetailsConflicts, af as ReservationLocationConflict, y as ReservationLocationConflictType, bO as ReservationLocationConflictTypeWithLiterals, bI as ReservationQuerySpec, bJ as ReservationSearchSpec, a5 as ReservationUpdated, bH as ReservationsQueryResult, ar as ReserveReservationRequest, _ as ReservedBy, bq as RestoreInfo, b8 as Results, aP as ScalarAggregation, b5 as ScalarDateResult, b4 as ScalarResult, N as ScalarType, bY as ScalarTypeWithLiterals, aU as SearchDetails, aF as SearchReservationsRequest, D as Set, bT as SetWithLiterals, K as SortDirection, bW as SortDirectionWithLiterals, F as SortOrder, bU as SortOrderWithLiterals, J as SortType, bV as SortTypeWithLiterals, ay as Sorting, x as Source, bL as SourceWithLiterals, aa as StandardOptions, w as Status, bK as StatusWithLiterals, ae as TableCombinationConflict, T as TableCombinationConflictType, bN as TableCombinationConflictTypeWithLiterals, a0 as TableWithReservationConflicts, Y as Tables, A as Type, bS as TypeWithLiterals, ao as UpdateReservationRequest, ap as UpdateReservationResponse, aM as ValueAggregation, aN as ValueAggregationOptionsOneOf, aW as ValueAggregationResult, b2 as ValueResult, a_ as ValueResults, X as WebhookIdentityType, c1 as WebhookIdentityTypeWithLiterals } from './table-reservations-v1-reservation-reservations.universal-Dp63cwTD.js';
|
|
4
4
|
|
|
5
5
|
declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
|
|
6
6
|
interface CreateReservationSignature {
|
|
@@ -171,7 +171,7 @@ declare const onReservationUpdated$1: EventDefinition<ReservationUpdatedEnvelope
|
|
|
171
171
|
|
|
172
172
|
declare function customQueryReservations(httpClient: HttpClient): {
|
|
173
173
|
(): ReservationsQueryBuilder;
|
|
174
|
-
(query:
|
|
174
|
+
(query: ReservationQuery): ReturnType<typeof typedQueryReservations>;
|
|
175
175
|
};
|
|
176
176
|
declare const createReservation: MaybeContext<BuildRESTFunction<typeof createReservation$1> & typeof createReservation$1>;
|
|
177
177
|
declare const getReservation: MaybeContext<BuildRESTFunction<typeof getReservation$1> & typeof getReservation$1>;
|
|
@@ -198,4 +198,4 @@ declare const onReservationDeleted: BuildEventDefinition<typeof onReservationDel
|
|
|
198
198
|
*/
|
|
199
199
|
declare const onReservationUpdated: BuildEventDefinition<typeof onReservationUpdated$1> & typeof onReservationUpdated$1;
|
|
200
200
|
|
|
201
|
-
export { BulkArchiveReservationsResponse, BulkUnarchiveReservationsResponse, CancelReservationApplicationErrors, CancelReservationOptions, CancelReservationResponse, CreateHeldReservationApplicationErrors, CreateHeldReservationResponse, CreateReservationApplicationErrors, CreateReservationOptions, CreateReservationValidationErrors,
|
|
201
|
+
export { BulkArchiveReservationsResponse, BulkUnarchiveReservationsResponse, CancelReservationApplicationErrors, CancelReservationOptions, CancelReservationResponse, CreateHeldReservationApplicationErrors, CreateHeldReservationResponse, CreateReservationApplicationErrors, CreateReservationOptions, CreateReservationValidationErrors, GetReservationOptions, HeldReservationDetails, ListReservationsOptions, ListReservationsResponse, Reservation, ReservationCreatedEnvelope, ReservationDeletedEnvelope, ReservationQuery, ReservationSearch, ReservationUpdatedEnvelope, ReservationsQueryBuilder, ReserveReservationApplicationErrors, ReserveReservationResponse, Reservee, SearchReservationsResponse, UpdateReservation, UpdateReservationApplicationErrors, UpdateReservationOptions, UpdateReservationValidationErrors, bulkArchiveReservations, bulkUnarchiveReservations, cancelReservation, createHeldReservation, createReservation, deleteReservation, getReservation, listReservations, onReservationCreated, onReservationDeleted, onReservationUpdated, queryReservations, reserveReservation, searchReservations, updateReservation };
|
package/build/cjs/index.js
CHANGED
|
@@ -617,6 +617,7 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
617
617
|
Status2["SEATED"] = "SEATED";
|
|
618
618
|
Status2["REQUESTED"] = "REQUESTED";
|
|
619
619
|
Status2["DECLINED"] = "DECLINED";
|
|
620
|
+
Status2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
620
621
|
Status2["PAYMENT_INFORMATION_PENDING"] = "PAYMENT_INFORMATION_PENDING";
|
|
621
622
|
return Status2;
|
|
622
623
|
})(Status || {});
|
|
@@ -752,6 +753,7 @@ async function createReservation2(reservation, options) {
|
|
|
752
753
|
const { httpClient, sideEffects } = arguments[2];
|
|
753
754
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
754
755
|
reservation,
|
|
756
|
+
force: options?.force,
|
|
755
757
|
ignoreTableCombinationConflicts: options?.ignoreTableCombinationConflicts,
|
|
756
758
|
ignoreReservationLocationConflicts: options?.ignoreReservationLocationConflicts,
|
|
757
759
|
ignoreConflicts: options?.ignoreConflicts
|
|
@@ -769,6 +771,7 @@ async function createReservation2(reservation, options) {
|
|
|
769
771
|
spreadPathsToArguments: {},
|
|
770
772
|
explicitPathsToArguments: {
|
|
771
773
|
reservation: "$[0]",
|
|
774
|
+
force: "$[1].force",
|
|
772
775
|
ignoreTableCombinationConflicts: "$[1].ignoreTableCombinationConflicts",
|
|
773
776
|
ignoreReservationLocationConflicts: "$[1].ignoreReservationLocationConflicts",
|
|
774
777
|
ignoreConflicts: "$[1].ignoreConflicts"
|
|
@@ -785,6 +788,7 @@ async function getReservation2(reservationId, options) {
|
|
|
785
788
|
const { httpClient, sideEffects } = arguments[2];
|
|
786
789
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
787
790
|
reservationId,
|
|
791
|
+
fieldSet: options?.fieldSet,
|
|
788
792
|
fieldsets: options?.fieldsets
|
|
789
793
|
});
|
|
790
794
|
const reqOpts = getReservation(payload);
|
|
@@ -800,6 +804,7 @@ async function getReservation2(reservationId, options) {
|
|
|
800
804
|
spreadPathsToArguments: {},
|
|
801
805
|
explicitPathsToArguments: {
|
|
802
806
|
reservationId: "$[0]",
|
|
807
|
+
fieldSet: "$[1].fieldSet",
|
|
803
808
|
fieldsets: "$[1].fieldsets"
|
|
804
809
|
},
|
|
805
810
|
singleArgumentUnchanged: false
|
|
@@ -814,6 +819,7 @@ async function updateReservation2(_id, reservation, options) {
|
|
|
814
819
|
const { httpClient, sideEffects } = arguments[3];
|
|
815
820
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
816
821
|
reservation: { ...reservation, id: _id },
|
|
822
|
+
force: options?.force,
|
|
817
823
|
ignoreTableCombinationConflicts: options?.ignoreTableCombinationConflicts,
|
|
818
824
|
ignoreReservationLocationConflicts: options?.ignoreReservationLocationConflicts,
|
|
819
825
|
ignoreConflicts: options?.ignoreConflicts
|
|
@@ -831,6 +837,7 @@ async function updateReservation2(_id, reservation, options) {
|
|
|
831
837
|
spreadPathsToArguments: { reservation: "$[1]" },
|
|
832
838
|
explicitPathsToArguments: {
|
|
833
839
|
"reservation.id": "$[0]",
|
|
840
|
+
force: "$[2].force",
|
|
834
841
|
ignoreTableCombinationConflicts: "$[2].ignoreTableCombinationConflicts",
|
|
835
842
|
ignoreReservationLocationConflicts: "$[2].ignoreReservationLocationConflicts",
|
|
836
843
|
ignoreConflicts: "$[2].ignoreConflicts"
|
|
@@ -1282,7 +1289,11 @@ var onReservationUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1282
1289
|
{ path: "entity.updatedDate" },
|
|
1283
1290
|
{ path: "entity.details.startDate" },
|
|
1284
1291
|
{ path: "entity.details.endDate" },
|
|
1285
|
-
{ path: "metadata.eventTime" }
|
|
1292
|
+
{ path: "metadata.eventTime" },
|
|
1293
|
+
{ path: "modifiedFields.createdDate" },
|
|
1294
|
+
{ path: "modifiedFields.updatedDate" },
|
|
1295
|
+
{ path: "modifiedFields.details.startDate" },
|
|
1296
|
+
{ path: "modifiedFields.details.endDate" }
|
|
1286
1297
|
]
|
|
1287
1298
|
}
|
|
1288
1299
|
])
|