@wix/auto_sdk_restaurants_operations 1.0.63 → 1.0.65
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 +20 -9
- package/build/cjs/index.js +125 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +216 -90
- package/build/cjs/index.typings.js +116 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +192 -85
- package/build/cjs/meta.js +103 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +20 -9
- package/build/es/index.mjs +124 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +216 -90
- package/build/es/index.typings.mjs +115 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +192 -85
- package/build/es/meta.mjs +102 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +20 -9
- package/build/internal/cjs/index.js +125 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +216 -90
- package/build/internal/cjs/index.typings.js +116 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +192 -85
- package/build/internal/cjs/meta.js +103 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +20 -9
- package/build/internal/es/index.mjs +124 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +216 -90
- package/build/internal/es/index.typings.mjs +115 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +192 -85
- package/build/internal/es/meta.mjs +102 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { Operation, UpdateOperation, ListOperationsResponse, ListAvailableFulfillmentOptions, ListAvailableFulfillmentOptionsResponse, ListFirstAvailableTimeSlotForFulfillmentTypesOptions, ListFirstAvailableTimeSlotForFulfillmentTypesResponse, CalculateFirstAvailableTimeSlotPerFulfillmentTypeOptions, CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse, ListFirstAvailableTimeSlotsForOperationsOptions, ListFirstAvailableTimeSlotsForOperationsResponse, CalculateFirstAvailableTimeSlotsPerOperationOptions, CalculateFirstAvailableTimeSlotsPerOperationResponse, ListFirstAvailableTimeSlotsForMenusOptions, ListFirstAvailableTimeSlotsForMenusResponse, CalculateFirstAvailableTimeSlotsPerMenuOptions, CalculateFirstAvailableTimeSlotsPerMenuResponse, CalculateFirstAvailableTimeSlotsForItemOptions, CalculateFirstAvailableTimeSlotsForItemResponse, ListAvailableTimeSlotsForDateOptions, ListAvailableTimeSlotsForDateResponse, CalculateAvailableTimeSlotsForDateOptions, CalculateAvailableTimeSlotsForDateResponse, ListAvailableDatesInRangeOptions, ListAvailableDatesInRangeResponse, CalculateAvailableDatesInRangeOptions, CalculateAvailableDatesInRangeResponse, ValidateOperationAddressResponse, BulkUpdateOperationTagsOptions, BulkUpdateOperationTagsResponse, BulkUpdateOperationTagsApplicationErrors, BulkUpdateOperationTagsByFilterOptions, BulkUpdateOperationTagsByFilterResponse, BulkUpdateOperationTagsByFilterApplicationErrors, OperationCreatedEnvelope, OperationDeletedEnvelope, OperationUpdatedEnvelope, OperationsQueryBuilder, CursorQuery, typedQueryOperation } from './index.typings.js';
|
|
3
|
-
export { ActionEvent, ActivationType, ActivationTypeWithLiterals, ActivePeriod, Address, AddressHint, AddressLocation, AddressViolation, App, ApplicationError, AsapFutureHandlingType, AsapFutureHandlingTypeWithLiterals, AsapOrderPacing, AsapOrderPacingPacingAvailabilityOneOf, AsapOrderScheduling, AsapOrderSchedulingAsapFutureHandlingOptionsOneOf, AsapPacingWindowType, AsapPacingWindowTypeWithLiterals, AsapPreorderType, AsapPreorderTypeWithLiterals, AsapScheduling, AsapSchedulingAsapPreorderOneOf, AsapSchedulingPreparationTimeOneOf, Asset, AvailabilityException, BaseEventMetadata, BulkActionMetadata, BulkUpdateOperationTagsByFilterRequest, BulkUpdateOperationTagsRequest, BulkUpdateOperationTagsResult, BusinessDaysAheadHandling, BusinessDaysPreorder, BusinessLocationDetails, BusinessSchedule, CalculateAvailableDatesInRangeRequest, CalculateAvailableTimeSlotsForDateRequest, CalculateFirstAvailableTimeSlotPerFulfillmentTypeRequest, CalculateFirstAvailableTimeSlotsForItemRequest, CalculateFirstAvailableTimeSlotsPerMenuRequest, CalculateFirstAvailableTimeSlotsPerOperationRequest, Categories, ChangeContext, ChangeContextPayloadOneOf, CommonAddress, CommonAddressStreetOneOf, ConsentPolicy, CreateOperationRequest, CreateOperationResponse, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DayAndTime, DayOfWeek, DayOfWeekAvailability, DayOfWeekWithLiterals, DeleteContext, DeleteOperationRequest, DeleteOperationResponse, DeleteStatus, DeleteStatusWithLiterals, DeliveryDetails, DeliveryProfileConfiguredForOperation, DomainEvent, DomainEventBodyOneOf, DurationRange, Empty, EntitiesDayOfWeek, EntitiesDayOfWeekWithLiterals, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, File, FirstFulfillmentTimeSlotsPerMenu, FulfillmentAddress, FulfillmentDetails, FulfillmentDetailsFulfillmentTimeOptionsOneOf, FulfillmentInfo, FulfillmentInfoFulfillmentTimeOneOf, FulfillmentOption, FulfillmentOptionAvailability, FulfillmentOptionFulfillmentTimeOptionsOneOf, FulfillmentOptionFulfillmentTimesDisplayOptionsOneOf, FulfillmentOptionFulfillmentTypeOptionsOneOf, FulfillmentTimeSlot, FulfillmentTimeSlotsPerMenu, FulfillmentTimeType, FulfillmentTimeTypeWithLiterals, FulfillmentTimesDisplayConfig, FulfillmentTimesDisplayConfigFulfillmentTimesDisplayOptionsOneOf, FulfillmentTimesDisplayType, FulfillmentTimesDisplayTypeWithLiterals, FulfillmentTimesType, FulfillmentTimesTypeWithLiterals, FulfillmentType, FulfillmentTypeAvailableDates, FulfillmentTypeWithLiterals, GeoCoordinates, GetExpectedFulfillmentSelectionRequest, GetExpectedFulfillmentSelectionResponse, GetOperationRequest, GetOperationResponse, IdentificationData, IdentificationDataIdOneOf, ImmutableFields, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ListAvailableDatesInRangeRequest, ListAvailableFulfillmentOptionsRequest, ListAvailableTimeSlotsForDateRequest, ListFirstAvailableTimeSlotForFulfillmentTypesRequest, ListFirstAvailableTimeSlotsForMenusRequest, ListFirstAvailableTimeSlotsForOperationsRequest, ListOperationIdsRequest, ListOperationIdsResponse, ListOperationsInternalRequest, ListOperationsInternalResponse, ListOperationsRequest, Locale, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MethodType, MethodTypeWithLiterals, Multilingual, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, OnlineOrderingPausedUntilOptions, OnlineOrderingStatusType, OnlineOrderingStatusTypeWithLiterals, OperationOnlineOrderingStatusOptionsOneOf, OperationTimeSlot, OperationsDataCloningCompleted, OperationsQueryResult, OrderScheduling, OrderSchedulingOrderSchedulingOptionsOneOf, OrderSchedulingType, OrderSchedulingTypeWithLiterals, Page, PagingMetadata, PicassoAssigned, PicassoUnassigned, PickupDetails, PlacementType, PlacementTypeWithLiterals, PreOrderPacing, PreOrderPacingPacingAvailabilityOneOf, PreorderMethod, PreorderMethodMethodOptionsOneOf, PreorderPacingWindowType, PreorderPacingWindowTypeWithLiterals, PreorderScheduling, PreparationTime, PreparationTimePreparationTimeType, PreparationTimePreparationTimeTypeWithLiterals, PreparationTimeTimeSpecificationOneOf, PreparationTimeType, PreparationTimeTypeWithLiterals, Properties, PropertiesChange, QueryOperationRequest, QueryOperationResponse, ResolutionMethod, ResolutionMethodWithLiterals, RestoreInfo, Scheduling, SchedulingSchedulingOptionsOneOf, SchedulingType, SchedulingTypeWithLiterals, ServiceProvisioned, ServiceRemoved, SiteCloned, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePropertiesEvent, SitePropertiesNotification, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SpecialHourPeriod, State, StateWithLiterals, StreetAddress, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, Subdivision, SubdivisionType, SubdivisionTypeWithLiterals, SupportedLanguage, TagList, Tags, TimeBounded, TimeDuration, TimeDurationRange, TimeOfDay, TimeOfDayRange, TimePeriod, TimeSlot, TimeSlotForFulfillment, TimeSlotForFulfillmentTimeSlotStatus, TimeSlotForFulfillmentTimeSlotStatusWithLiterals, TimeSlotForOperation, TimeSlotStatus, TimeSlotStatusWithLiterals, TimeUnit, TimeUnitWithLiterals, TimeWindowDisplayConfig, Translation, URI, UpdateDeliveryRegionsRequest, UpdateDeliveryRegionsResponse, UpdateImmutableFieldsRequest, UpdateImmutableFieldsResponse, UpdateOperationRequest, UpdateOperationResponse, V1Address, V1AddressLocation, V1StreetAddress, V4SiteCreated, ValidateOperationAddressRequest, ViolationType, ViolationTypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeeklyActiveDays, WeeklyActivePeriods, WeeklySchedule, WixelAssigned, WixelUnassigned, _Date } from './index.typings.js';
|
|
2
|
+
import { ListBlockedPeriodsOptions, ListBlockedPeriodsResponse, Operation, UpdateOperation, ListOperationsResponse, ListAvailableFulfillmentOptions, ListAvailableFulfillmentOptionsResponse, ListFirstAvailableTimeSlotForFulfillmentTypesOptions, ListFirstAvailableTimeSlotForFulfillmentTypesResponse, CalculateFirstAvailableTimeSlotPerFulfillmentTypeOptions, CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse, ListFirstAvailableTimeSlotsForOperationsOptions, ListFirstAvailableTimeSlotsForOperationsResponse, CalculateFirstAvailableTimeSlotsPerOperationOptions, CalculateFirstAvailableTimeSlotsPerOperationResponse, ListFirstAvailableTimeSlotsForMenusOptions, ListFirstAvailableTimeSlotsForMenusResponse, CalculateFirstAvailableTimeSlotsPerMenuOptions, CalculateFirstAvailableTimeSlotsPerMenuResponse, CalculateFirstAvailableTimeSlotsForItemOptions, CalculateFirstAvailableTimeSlotsForItemResponse, ListAvailableTimeSlotsForDateOptions, ListAvailableTimeSlotsForDateResponse, CalculateAvailableTimeSlotsForDateOptions, CalculateAvailableTimeSlotsForDateResponse, ListAvailableDatesInRangeOptions, ListAvailableDatesInRangeResponse, CalculateAvailableDatesInRangeOptions, CalculateAvailableDatesInRangeResponse, ValidateOperationAddressResponse, BulkUpdateOperationTagsOptions, BulkUpdateOperationTagsResponse, BulkUpdateOperationTagsApplicationErrors, BulkUpdateOperationTagsByFilterOptions, BulkUpdateOperationTagsByFilterResponse, BulkUpdateOperationTagsByFilterApplicationErrors, OperationCreatedEnvelope, OperationDeletedEnvelope, OperationUpdatedEnvelope, OperationsQueryBuilder, CursorQuery, typedQueryOperation } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, ActivationType, ActivationTypeWithLiterals, ActivePeriod, Address, AddressHint, AddressLocation, AddressViolation, App, ApplicationError, AsapFutureHandlingType, AsapFutureHandlingTypeWithLiterals, AsapOrderPacing, AsapOrderPacingPacingAvailabilityOneOf, AsapOrderScheduling, AsapOrderSchedulingAsapFutureHandlingOptionsOneOf, AsapPacingWindowType, AsapPacingWindowTypeWithLiterals, AsapPreorderType, AsapPreorderTypeWithLiterals, AsapScheduling, AsapSchedulingAsapPreorderOneOf, AsapSchedulingPreparationTimeOneOf, Asset, AvailabilityException, BaseEventMetadata, BlockedPeriod, BulkActionMetadata, BulkUpdateOperationTagsByFilterRequest, BulkUpdateOperationTagsRequest, BulkUpdateOperationTagsResult, BusinessDaysAheadHandling, BusinessDaysPreorder, BusinessLocationDetails, BusinessSchedule, CalculateAvailableDatesInRangeRequest, CalculateAvailableTimeSlotsForDateRequest, CalculateFirstAvailableTimeSlotPerFulfillmentTypeRequest, CalculateFirstAvailableTimeSlotsForItemRequest, CalculateFirstAvailableTimeSlotsPerMenuRequest, CalculateFirstAvailableTimeSlotsPerOperationRequest, Categories, ChangeContext, ChangeContextPayloadOneOf, CommonAddress, CommonAddressStreetOneOf, CommonCursorPaging, CommonCursorPagingMetadata, CommonCursors, ConsentPolicy, CreateOperationRequest, CreateOperationResponse, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DayAndTime, DayOfWeek, DayOfWeekAvailability, DayOfWeekWithLiterals, DeleteContext, DeleteOperationRequest, DeleteOperationResponse, DeleteStatus, DeleteStatusWithLiterals, DeliveryDetails, DeliveryProfileConfiguredForOperation, DomainEvent, DomainEventBodyOneOf, DurationRange, Empty, EntitiesDayOfWeek, EntitiesDayOfWeekWithLiterals, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, File, FirstFulfillmentTimeSlotsPerMenu, FulfillmentAddress, FulfillmentDetails, FulfillmentDetailsFulfillmentTimeOptionsOneOf, FulfillmentInfo, FulfillmentInfoFulfillmentTimeOneOf, FulfillmentOption, FulfillmentOptionAvailability, FulfillmentOptionFulfillmentTimeOptionsOneOf, FulfillmentOptionFulfillmentTimesDisplayOptionsOneOf, FulfillmentOptionFulfillmentTypeOptionsOneOf, FulfillmentTimeSlot, FulfillmentTimeSlotsPerMenu, FulfillmentTimeType, FulfillmentTimeTypeWithLiterals, FulfillmentTimesDisplayConfig, FulfillmentTimesDisplayConfigFulfillmentTimesDisplayOptionsOneOf, FulfillmentTimesDisplayType, FulfillmentTimesDisplayTypeWithLiterals, FulfillmentTimesType, FulfillmentTimesTypeWithLiterals, FulfillmentType, FulfillmentTypeAvailableDates, FulfillmentTypeWithLiterals, GeoCoordinates, GetExpectedFulfillmentSelectionRequest, GetExpectedFulfillmentSelectionResponse, GetOperationRequest, GetOperationResponse, IdentificationData, IdentificationDataIdOneOf, ImmutableFields, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ListAvailableDatesInRangeRequest, ListAvailableFulfillmentOptionsRequest, ListAvailableTimeSlotsForDateRequest, ListBlockedPeriodsRequest, ListFirstAvailableTimeSlotForFulfillmentTypesRequest, ListFirstAvailableTimeSlotsForMenusRequest, ListFirstAvailableTimeSlotsForOperationsRequest, ListOperationIdsRequest, ListOperationIdsResponse, ListOperationsInternalRequest, ListOperationsInternalResponse, ListOperationsRequest, ListOrdersForOperationRequest, ListOrdersForOperationResponse, Locale, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MethodType, MethodTypeWithLiterals, Multilingual, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, OnlineOrderingPausedUntilOptions, OnlineOrderingStatusType, OnlineOrderingStatusTypeWithLiterals, OperationOnlineOrderingStatusOptionsOneOf, OperationTimeSlot, OperationsDataCloningCompleted, OperationsQueryResult, OrderScheduling, OrderSchedulingOrderSchedulingOptionsOneOf, OrderSchedulingType, OrderSchedulingTypeWithLiterals, PacingOrder, Page, PagingMetadata, PicassoAssigned, PicassoUnassigned, PickupDetails, PlacementType, PlacementTypeWithLiterals, PreOrderPacing, PreOrderPacingPacingAvailabilityOneOf, PreorderMethod, PreorderMethodMethodOptionsOneOf, PreorderPacingWindowType, PreorderPacingWindowTypeWithLiterals, PreorderScheduling, PreparationTime, PreparationTimePreparationTimeType, PreparationTimePreparationTimeTypeWithLiterals, PreparationTimeTimeSpecificationOneOf, PreparationTimeType, PreparationTimeTypeWithLiterals, Properties, PropertiesChange, QueryOperationRequest, QueryOperationResponse, ResolutionMethod, ResolutionMethodWithLiterals, RestoreInfo, Scheduling, SchedulingSchedulingOptionsOneOf, SchedulingType, SchedulingTypeWithLiterals, ServiceProvisioned, ServiceRemoved, SiteCloned, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePropertiesEvent, SitePropertiesNotification, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SpecialHourPeriod, State, StateWithLiterals, StreetAddress, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, Subdivision, SubdivisionType, SubdivisionTypeWithLiterals, SupportedLanguage, TagList, Tags, TimeBounded, TimeDuration, TimeDurationRange, TimeOfDay, TimeOfDayRange, TimePeriod, TimeSlot, TimeSlotForFulfillment, TimeSlotForFulfillmentTimeSlotStatus, TimeSlotForFulfillmentTimeSlotStatusWithLiterals, TimeSlotForOperation, TimeSlotStatus, TimeSlotStatusWithLiterals, TimeUnit, TimeUnitWithLiterals, TimeWindowDisplayConfig, Translation, URI, UpdateDeliveryRegionsRequest, UpdateDeliveryRegionsResponse, UpdateImmutableFieldsRequest, UpdateImmutableFieldsResponse, UpdateOperationRequest, UpdateOperationResponse, V1Address, V1AddressLocation, V1StreetAddress, V4SiteCreated, ValidateOperationAddressRequest, ViolationType, ViolationTypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeeklyActiveDays, WeeklyActivePeriods, WeeklySchedule, WixelAssigned, WixelUnassigned, _Date } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
declare function listBlockedPeriods$1(httpClient: HttpClient): ListBlockedPeriodsSignature;
|
|
6
|
+
interface ListBlockedPeriodsSignature {
|
|
7
|
+
/**
|
|
8
|
+
* List Blocked Periods.
|
|
9
|
+
* @param - ID of the restaurant operation this blocked period is associated with. (See the Restaurants Operations API for more information.)
|
|
10
|
+
*/
|
|
11
|
+
(operationId: string, options?: NonNullablePaths<ListBlockedPeriodsOptions, `until`, 2>): Promise<NonNullablePaths<ListBlockedPeriodsResponse, `blockPeriods`, 2>>;
|
|
12
|
+
}
|
|
5
13
|
declare function createOperation$1(httpClient: HttpClient): CreateOperationSignature;
|
|
6
14
|
interface CreateOperationSignature {
|
|
7
15
|
/**
|
|
@@ -195,16 +203,18 @@ interface CalculateAvailableDatesInRangeSignature {
|
|
|
195
203
|
declare function validateOperationAddress$1(httpClient: HttpClient): ValidateOperationAddressSignature;
|
|
196
204
|
interface ValidateOperationAddressSignature {
|
|
197
205
|
/**
|
|
198
|
-
* Validates an operation's address
|
|
206
|
+
* Validates an operation's address.
|
|
207
|
+
*
|
|
208
|
+
* The method checks if the operation's address stored in `businessLocationDetails.address` is valid.
|
|
199
209
|
*
|
|
200
|
-
* Checks if the address linked to the operation (stored in business_location_details) is valid.
|
|
201
210
|
* An address is considered valid if it has:
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
211
|
+
*
|
|
212
|
+
* 1. A non-empty, formatted address.
|
|
213
|
+
* 2. Valid geocode coordinates (not 0,0).
|
|
214
|
+
* 3. A non-empty country field.
|
|
205
215
|
*
|
|
206
216
|
* If the address is invalid, the response includes specific violations.
|
|
207
|
-
* @param - The ID of the operation
|
|
217
|
+
* @param - The ID of the operation whose address should be validated.
|
|
208
218
|
* @returns Response message for address validation
|
|
209
219
|
*/
|
|
210
220
|
(operationId: string): Promise<NonNullablePaths<ValidateOperationAddressResponse, `valid` | `violations` | `violations.${number}.type`, 4>>;
|
|
@@ -240,6 +250,7 @@ declare function customQueryOperation(httpClient: HttpClient): {
|
|
|
240
250
|
(): OperationsQueryBuilder;
|
|
241
251
|
(query: CursorQuery): ReturnType<typeof typedQueryOperation>;
|
|
242
252
|
};
|
|
253
|
+
declare const listBlockedPeriods: MaybeContext<BuildRESTFunction<typeof listBlockedPeriods$1> & typeof listBlockedPeriods$1>;
|
|
243
254
|
declare const createOperation: MaybeContext<BuildRESTFunction<typeof createOperation$1> & typeof createOperation$1>;
|
|
244
255
|
declare const getOperation: MaybeContext<BuildRESTFunction<typeof getOperation$1> & typeof getOperation$1>;
|
|
245
256
|
declare const updateOperation: MaybeContext<BuildRESTFunction<typeof updateOperation$1> & typeof updateOperation$1>;
|
|
@@ -274,4 +285,4 @@ declare const onOperationDeleted: BuildEventDefinition<typeof onOperationDeleted
|
|
|
274
285
|
*/
|
|
275
286
|
declare const onOperationUpdated: BuildEventDefinition<typeof onOperationUpdated$1> & typeof onOperationUpdated$1;
|
|
276
287
|
|
|
277
|
-
export { BulkUpdateOperationTagsApplicationErrors, BulkUpdateOperationTagsByFilterApplicationErrors, BulkUpdateOperationTagsByFilterOptions, BulkUpdateOperationTagsByFilterResponse, BulkUpdateOperationTagsOptions, BulkUpdateOperationTagsResponse, CalculateAvailableDatesInRangeOptions, CalculateAvailableDatesInRangeResponse, CalculateAvailableTimeSlotsForDateOptions, CalculateAvailableTimeSlotsForDateResponse, CalculateFirstAvailableTimeSlotPerFulfillmentTypeOptions, CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse, CalculateFirstAvailableTimeSlotsForItemOptions, CalculateFirstAvailableTimeSlotsForItemResponse, CalculateFirstAvailableTimeSlotsPerMenuOptions, CalculateFirstAvailableTimeSlotsPerMenuResponse, CalculateFirstAvailableTimeSlotsPerOperationOptions, CalculateFirstAvailableTimeSlotsPerOperationResponse, CursorQuery, ListAvailableDatesInRangeOptions, ListAvailableDatesInRangeResponse, ListAvailableFulfillmentOptions, ListAvailableFulfillmentOptionsResponse, ListAvailableTimeSlotsForDateOptions, ListAvailableTimeSlotsForDateResponse, ListFirstAvailableTimeSlotForFulfillmentTypesOptions, ListFirstAvailableTimeSlotForFulfillmentTypesResponse, ListFirstAvailableTimeSlotsForMenusOptions, ListFirstAvailableTimeSlotsForMenusResponse, ListFirstAvailableTimeSlotsForOperationsOptions, ListFirstAvailableTimeSlotsForOperationsResponse, ListOperationsResponse, Operation, OperationCreatedEnvelope, OperationDeletedEnvelope, OperationUpdatedEnvelope, OperationsQueryBuilder, UpdateOperation, ValidateOperationAddressResponse, bulkUpdateOperationTags, bulkUpdateOperationTagsByFilter, calculateAvailableDatesInRange, calculateAvailableTimeSlotsForDate, calculateFirstAvailableTimeSlotPerFulfillmentType, calculateFirstAvailableTimeSlotsForItem, calculateFirstAvailableTimeSlotsPerMenu, calculateFirstAvailableTimeSlotsPerOperation, createOperation, deleteOperation, getOperation, listAvailableDatesInRange, listAvailableFulfillmentOptions, listAvailableTimeSlotsForDate, listFirstAvailableTimeSlotForFulfillmentTypes, listFirstAvailableTimeSlotsForMenus, listFirstAvailableTimeSlotsForOperations, listOperations, onOperationCreated, onOperationDeleted, onOperationUpdated, queryOperation, updateOperation, validateOperationAddress };
|
|
288
|
+
export { BulkUpdateOperationTagsApplicationErrors, BulkUpdateOperationTagsByFilterApplicationErrors, BulkUpdateOperationTagsByFilterOptions, BulkUpdateOperationTagsByFilterResponse, BulkUpdateOperationTagsOptions, BulkUpdateOperationTagsResponse, CalculateAvailableDatesInRangeOptions, CalculateAvailableDatesInRangeResponse, CalculateAvailableTimeSlotsForDateOptions, CalculateAvailableTimeSlotsForDateResponse, CalculateFirstAvailableTimeSlotPerFulfillmentTypeOptions, CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse, CalculateFirstAvailableTimeSlotsForItemOptions, CalculateFirstAvailableTimeSlotsForItemResponse, CalculateFirstAvailableTimeSlotsPerMenuOptions, CalculateFirstAvailableTimeSlotsPerMenuResponse, CalculateFirstAvailableTimeSlotsPerOperationOptions, CalculateFirstAvailableTimeSlotsPerOperationResponse, CursorQuery, ListAvailableDatesInRangeOptions, ListAvailableDatesInRangeResponse, ListAvailableFulfillmentOptions, ListAvailableFulfillmentOptionsResponse, ListAvailableTimeSlotsForDateOptions, ListAvailableTimeSlotsForDateResponse, ListBlockedPeriodsOptions, ListBlockedPeriodsResponse, ListFirstAvailableTimeSlotForFulfillmentTypesOptions, ListFirstAvailableTimeSlotForFulfillmentTypesResponse, ListFirstAvailableTimeSlotsForMenusOptions, ListFirstAvailableTimeSlotsForMenusResponse, ListFirstAvailableTimeSlotsForOperationsOptions, ListFirstAvailableTimeSlotsForOperationsResponse, ListOperationsResponse, Operation, OperationCreatedEnvelope, OperationDeletedEnvelope, OperationUpdatedEnvelope, OperationsQueryBuilder, UpdateOperation, ValidateOperationAddressResponse, bulkUpdateOperationTags, bulkUpdateOperationTagsByFilter, calculateAvailableDatesInRange, calculateAvailableTimeSlotsForDate, calculateFirstAvailableTimeSlotPerFulfillmentType, calculateFirstAvailableTimeSlotsForItem, calculateFirstAvailableTimeSlotsPerMenu, calculateFirstAvailableTimeSlotsPerOperation, createOperation, deleteOperation, getOperation, listAvailableDatesInRange, listAvailableFulfillmentOptions, listAvailableTimeSlotsForDate, listBlockedPeriods, listFirstAvailableTimeSlotForFulfillmentTypes, listFirstAvailableTimeSlotsForMenus, listFirstAvailableTimeSlotsForOperations, listOperations, onOperationCreated, onOperationDeleted, onOperationUpdated, queryOperation, updateOperation, validateOperationAddress };
|
package/build/cjs/index.js
CHANGED
|
@@ -64,6 +64,7 @@ __export(index_exports, {
|
|
|
64
64
|
listAvailableDatesInRange: () => listAvailableDatesInRange4,
|
|
65
65
|
listAvailableFulfillmentOptions: () => listAvailableFulfillmentOptions4,
|
|
66
66
|
listAvailableTimeSlotsForDate: () => listAvailableTimeSlotsForDate4,
|
|
67
|
+
listBlockedPeriods: () => listBlockedPeriods4,
|
|
67
68
|
listFirstAvailableTimeSlotForFulfillmentTypes: () => listFirstAvailableTimeSlotForFulfillmentTypes4,
|
|
68
69
|
listFirstAvailableTimeSlotsForMenus: () => listFirstAvailableTimeSlotsForMenus4,
|
|
69
70
|
listFirstAvailableTimeSlotsForOperations: () => listFirstAvailableTimeSlotsForOperations4,
|
|
@@ -185,7 +186,90 @@ function resolveWixRestaurantsOperationsV1OperationsServiceUrl(opts) {
|
|
|
185
186
|
};
|
|
186
187
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
187
188
|
}
|
|
189
|
+
function resolveWixRestaurantsOperationPacingV1OperationPacingServiceUrl(opts) {
|
|
190
|
+
const domainToMappings = {
|
|
191
|
+
_: [
|
|
192
|
+
{
|
|
193
|
+
srcPath: "/_api/rest-operation-pacing",
|
|
194
|
+
destPath: ""
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"manage._base_domain_": [
|
|
198
|
+
{
|
|
199
|
+
srcPath: "/_api/rest-operation-pacing",
|
|
200
|
+
destPath: ""
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"editor._base_domain_": [
|
|
204
|
+
{
|
|
205
|
+
srcPath: "/_api/rest-operation-pacing",
|
|
206
|
+
destPath: ""
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"blocks._base_domain_": [
|
|
210
|
+
{
|
|
211
|
+
srcPath: "/_api/rest-operation-pacing",
|
|
212
|
+
destPath: ""
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"create.editorx": [
|
|
216
|
+
{
|
|
217
|
+
srcPath: "/_api/rest-operation-pacing",
|
|
218
|
+
destPath: ""
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"www.wixapis.com": [
|
|
222
|
+
{
|
|
223
|
+
srcPath: "/_api/rest-operation-pacing",
|
|
224
|
+
destPath: ""
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"*.dev.wix-code.com": [
|
|
228
|
+
{
|
|
229
|
+
srcPath: "/_api/rest-operation-pacing",
|
|
230
|
+
destPath: ""
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
};
|
|
234
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
235
|
+
}
|
|
188
236
|
var PACKAGE_NAME = "@wix/auto_sdk_restaurants_operations";
|
|
237
|
+
function listBlockedPeriods(payload) {
|
|
238
|
+
function __listBlockedPeriods({ host }) {
|
|
239
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
240
|
+
{
|
|
241
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
242
|
+
paths: [{ path: "from" }, { path: "until" }]
|
|
243
|
+
}
|
|
244
|
+
]);
|
|
245
|
+
const metadata = {
|
|
246
|
+
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
247
|
+
method: "GET",
|
|
248
|
+
methodFqn: "wix.restaurants.operation.pacing.v1.OperationPacingService.ListBlockedPeriods",
|
|
249
|
+
packageName: PACKAGE_NAME,
|
|
250
|
+
migrationOptions: {
|
|
251
|
+
optInTransformResponse: true
|
|
252
|
+
},
|
|
253
|
+
url: resolveWixRestaurantsOperationPacingV1OperationPacingServiceUrl({
|
|
254
|
+
protoPath: "/v1/operation-pacing/blocked-periods",
|
|
255
|
+
data: serializedData,
|
|
256
|
+
host
|
|
257
|
+
}),
|
|
258
|
+
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
259
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
260
|
+
{
|
|
261
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
262
|
+
paths: [
|
|
263
|
+
{ path: "blockPeriods.from" },
|
|
264
|
+
{ path: "blockPeriods.until" }
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
])
|
|
268
|
+
};
|
|
269
|
+
return metadata;
|
|
270
|
+
}
|
|
271
|
+
return __listBlockedPeriods;
|
|
272
|
+
}
|
|
189
273
|
function createOperation(payload) {
|
|
190
274
|
function __createOperation({ host }) {
|
|
191
275
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1326,6 +1410,37 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1326
1410
|
WebhookIdentityType2["APP"] = "APP";
|
|
1327
1411
|
return WebhookIdentityType2;
|
|
1328
1412
|
})(WebhookIdentityType || {});
|
|
1413
|
+
async function listBlockedPeriods2(operationId, options) {
|
|
1414
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1415
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1416
|
+
operationId,
|
|
1417
|
+
from: options?.from,
|
|
1418
|
+
until: options?.until
|
|
1419
|
+
});
|
|
1420
|
+
const reqOpts = listBlockedPeriods(payload);
|
|
1421
|
+
sideEffects?.onSiteCall?.();
|
|
1422
|
+
try {
|
|
1423
|
+
const result = await httpClient.request(reqOpts);
|
|
1424
|
+
sideEffects?.onSuccess?.(result);
|
|
1425
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1426
|
+
} catch (err) {
|
|
1427
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1428
|
+
err,
|
|
1429
|
+
{
|
|
1430
|
+
spreadPathsToArguments: {},
|
|
1431
|
+
explicitPathsToArguments: {
|
|
1432
|
+
operationId: "$[0]",
|
|
1433
|
+
from: "$[1].from",
|
|
1434
|
+
until: "$[1].until"
|
|
1435
|
+
},
|
|
1436
|
+
singleArgumentUnchanged: false
|
|
1437
|
+
},
|
|
1438
|
+
["operationId", "options"]
|
|
1439
|
+
);
|
|
1440
|
+
sideEffects?.onError?.(err);
|
|
1441
|
+
throw transformedError;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1329
1444
|
async function createOperation2(operation) {
|
|
1330
1445
|
const { httpClient, sideEffects } = arguments[1];
|
|
1331
1446
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -2243,6 +2358,14 @@ async function bulkUpdateOperationTagsByFilter2(filter, options) {
|
|
|
2243
2358
|
}
|
|
2244
2359
|
|
|
2245
2360
|
// src/restaurants-operations-v1-operation-operations.public.ts
|
|
2361
|
+
function listBlockedPeriods3(httpClient) {
|
|
2362
|
+
return (operationId, options) => listBlockedPeriods2(
|
|
2363
|
+
operationId,
|
|
2364
|
+
options,
|
|
2365
|
+
// @ts-ignore
|
|
2366
|
+
{ httpClient }
|
|
2367
|
+
);
|
|
2368
|
+
}
|
|
2246
2369
|
function createOperation3(httpClient) {
|
|
2247
2370
|
return (operation) => createOperation2(
|
|
2248
2371
|
operation,
|
|
@@ -2490,6 +2613,7 @@ function customQueryOperation(httpClient) {
|
|
|
2490
2613
|
}
|
|
2491
2614
|
return overloadedQuery;
|
|
2492
2615
|
}
|
|
2616
|
+
var listBlockedPeriods4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listBlockedPeriods3);
|
|
2493
2617
|
var createOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOperation3);
|
|
2494
2618
|
var getOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOperation3);
|
|
2495
2619
|
var updateOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateOperation3);
|
|
@@ -2572,6 +2696,7 @@ var onOperationUpdated2 = (0, import_event_definition_modules.createEventModule)
|
|
|
2572
2696
|
listAvailableDatesInRange,
|
|
2573
2697
|
listAvailableFulfillmentOptions,
|
|
2574
2698
|
listAvailableTimeSlotsForDate,
|
|
2699
|
+
listBlockedPeriods,
|
|
2575
2700
|
listFirstAvailableTimeSlotForFulfillmentTypes,
|
|
2576
2701
|
listFirstAvailableTimeSlotsForMenus,
|
|
2577
2702
|
listFirstAvailableTimeSlotsForOperations,
|