@wix/auto_sdk_restaurants_operations 1.0.51 → 1.0.52

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +15 -3
  2. package/build/cjs/index.js +115 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +71 -1
  5. package/build/cjs/index.typings.js +103 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +40 -2
  8. package/build/cjs/meta.js +69 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +15 -3
  11. package/build/es/index.mjs +114 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +71 -1
  14. package/build/es/index.typings.mjs +102 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +40 -2
  17. package/build/es/meta.mjs +68 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +15 -3
  20. package/build/internal/cjs/index.js +115 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +71 -1
  23. package/build/internal/cjs/index.typings.js +103 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +40 -2
  26. package/build/internal/cjs/meta.js +69 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +15 -3
  29. package/build/internal/es/index.mjs +114 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +71 -1
  32. package/build/internal/es/index.typings.mjs +102 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +40 -2
  35. package/build/internal/es/meta.mjs +68 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { Operation, UpdateOperation, OperationsQueryBuilder, ListOperationsResponse, ListAvailableFulfillmentOptions, ListAvailableFulfillmentOptionsResponse, ListFirstAvailableTimeSlotForFulfillmentTypesOptions, ListFirstAvailableTimeSlotForFulfillmentTypesResponse, CalculateFirstAvailableTimeSlotPerFulfillmentTypeOptions, CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse, ListFirstAvailableTimeSlotsForOperationsOptions, ListFirstAvailableTimeSlotsForOperationsResponse, CalculateFirstAvailableTimeSlotsPerOperationOptions, CalculateFirstAvailableTimeSlotsPerOperationResponse, ListFirstAvailableTimeSlotsForMenusOptions, ListFirstAvailableTimeSlotsForMenusResponse, CalculateFirstAvailableTimeSlotsPerMenuOptions, CalculateFirstAvailableTimeSlotsPerMenuResponse, ListAvailableTimeSlotsForDateOptions, ListAvailableTimeSlotsForDateResponse, CalculateAvailableTimeSlotsForDateOptions, CalculateAvailableTimeSlotsForDateResponse, ListAvailableDatesInRangeOptions, ListAvailableDatesInRangeResponse, CalculateAvailableDatesInRangeOptions, CalculateAvailableDatesInRangeResponse, ValidateOperationAddressResponse, BulkUpdateOperationTagsOptions, BulkUpdateOperationTagsResponse, BulkUpdateOperationTagsApplicationErrors, BulkUpdateOperationTagsByFilterOptions, BulkUpdateOperationTagsByFilterResponse, BulkUpdateOperationTagsByFilterApplicationErrors, OperationCreatedEnvelope, OperationDeletedEnvelope, OperationUpdatedEnvelope } 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, CalculateFirstAvailableTimeSlotsPerMenuRequest, CalculateFirstAvailableTimeSlotsPerOperationRequest, Categories, ChangeContext, ChangeContextPayloadOneOf, CommonAddress, CommonAddressStreetOneOf, ConsentPolicy, CreateOperationRequest, CreateOperationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, 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, 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, _Date } from './index.typings.js';
2
+ import { Operation, UpdateOperation, OperationsQueryBuilder, 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 } 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, CursorQuery, 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, 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, _Date } from './index.typings.js';
4
4
 
5
5
  declare function createOperation$1(httpClient: HttpClient): CreateOperationSignature;
6
6
  interface CreateOperationSignature {
@@ -155,6 +155,17 @@ interface CalculateFirstAvailableTimeSlotsPerMenuSignature {
155
155
  */
156
156
  (operationId: string, options?: CalculateFirstAvailableTimeSlotsPerMenuOptions): Promise<NonNullablePaths<CalculateFirstAvailableTimeSlotsPerMenuResponse, `timeSlotsPerMenu`, 2>>;
157
157
  }
158
+ declare function calculateFirstAvailableTimeSlotsForItem$1(httpClient: HttpClient): CalculateFirstAvailableTimeSlotsForItemSignature;
159
+ interface CalculateFirstAvailableTimeSlotsForItemSignature {
160
+ /**
161
+ * Retrieves the first available time slot of each fulfillment type for a spastic Item.
162
+ *
163
+ * The response includes time slots with delivery fulfillment types only if you specify a delivery address.
164
+ * Only fulfillment methods capable of delivering to the specified address are considered when calculating time slot availability.
165
+ * @param - Menu ID to get the first available time slots for.
166
+ */
167
+ (operationId: string, menuId: string, options?: NonNullablePaths<CalculateFirstAvailableTimeSlotsForItemOptions, `itemId` | `sectionId`, 2>): Promise<NonNullablePaths<CalculateFirstAvailableTimeSlotsForItemResponse, `timeslotsPerFulfillmentType` | `timeslotsPerFulfillmentType.${number}.timeSlot.orderSchedulingType` | `timeslotsPerFulfillmentType.${number}.fulfilmentType`, 5>>;
168
+ }
158
169
  declare function listAvailableTimeSlotsForDate$1(httpClient: HttpClient): ListAvailableTimeSlotsForDateSignature;
159
170
  interface ListAvailableTimeSlotsForDateSignature {
160
171
  /**
@@ -258,6 +269,7 @@ declare const listFirstAvailableTimeSlotsForOperations: MaybeContext<BuildRESTFu
258
269
  declare const calculateFirstAvailableTimeSlotsPerOperation: MaybeContext<BuildRESTFunction<typeof calculateFirstAvailableTimeSlotsPerOperation$1> & typeof calculateFirstAvailableTimeSlotsPerOperation$1>;
259
270
  declare const listFirstAvailableTimeSlotsForMenus: MaybeContext<BuildRESTFunction<typeof listFirstAvailableTimeSlotsForMenus$1> & typeof listFirstAvailableTimeSlotsForMenus$1>;
260
271
  declare const calculateFirstAvailableTimeSlotsPerMenu: MaybeContext<BuildRESTFunction<typeof calculateFirstAvailableTimeSlotsPerMenu$1> & typeof calculateFirstAvailableTimeSlotsPerMenu$1>;
272
+ declare const calculateFirstAvailableTimeSlotsForItem: MaybeContext<BuildRESTFunction<typeof calculateFirstAvailableTimeSlotsForItem$1> & typeof calculateFirstAvailableTimeSlotsForItem$1>;
261
273
  declare const listAvailableTimeSlotsForDate: MaybeContext<BuildRESTFunction<typeof listAvailableTimeSlotsForDate$1> & typeof listAvailableTimeSlotsForDate$1>;
262
274
  declare const calculateAvailableTimeSlotsForDate: MaybeContext<BuildRESTFunction<typeof calculateAvailableTimeSlotsForDate$1> & typeof calculateAvailableTimeSlotsForDate$1>;
263
275
  declare const listAvailableDatesInRange: MaybeContext<BuildRESTFunction<typeof listAvailableDatesInRange$1> & typeof listAvailableDatesInRange$1>;
@@ -278,4 +290,4 @@ declare const onOperationDeleted: BuildEventDefinition<typeof onOperationDeleted
278
290
  */
279
291
  declare const onOperationUpdated: BuildEventDefinition<typeof onOperationUpdated$1> & typeof onOperationUpdated$1;
280
292
 
281
- export { BulkUpdateOperationTagsApplicationErrors, BulkUpdateOperationTagsByFilterApplicationErrors, BulkUpdateOperationTagsByFilterOptions, BulkUpdateOperationTagsByFilterResponse, BulkUpdateOperationTagsOptions, BulkUpdateOperationTagsResponse, CalculateAvailableDatesInRangeOptions, CalculateAvailableDatesInRangeResponse, CalculateAvailableTimeSlotsForDateOptions, CalculateAvailableTimeSlotsForDateResponse, CalculateFirstAvailableTimeSlotPerFulfillmentTypeOptions, CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse, CalculateFirstAvailableTimeSlotsPerMenuOptions, CalculateFirstAvailableTimeSlotsPerMenuResponse, CalculateFirstAvailableTimeSlotsPerOperationOptions, CalculateFirstAvailableTimeSlotsPerOperationResponse, 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, calculateFirstAvailableTimeSlotsPerMenu, calculateFirstAvailableTimeSlotsPerOperation, createOperation, deleteOperation, getOperation, listAvailableDatesInRange, listAvailableFulfillmentOptions, listAvailableTimeSlotsForDate, listFirstAvailableTimeSlotForFulfillmentTypes, listFirstAvailableTimeSlotsForMenus, listFirstAvailableTimeSlotsForOperations, listOperations, onOperationCreated, onOperationDeleted, onOperationUpdated, queryOperation, updateOperation, validateOperationAddress };
293
+ export { BulkUpdateOperationTagsApplicationErrors, BulkUpdateOperationTagsByFilterApplicationErrors, BulkUpdateOperationTagsByFilterOptions, BulkUpdateOperationTagsByFilterResponse, BulkUpdateOperationTagsOptions, BulkUpdateOperationTagsResponse, CalculateAvailableDatesInRangeOptions, CalculateAvailableDatesInRangeResponse, CalculateAvailableTimeSlotsForDateOptions, CalculateAvailableTimeSlotsForDateResponse, CalculateFirstAvailableTimeSlotPerFulfillmentTypeOptions, CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse, CalculateFirstAvailableTimeSlotsForItemOptions, CalculateFirstAvailableTimeSlotsForItemResponse, CalculateFirstAvailableTimeSlotsPerMenuOptions, CalculateFirstAvailableTimeSlotsPerMenuResponse, CalculateFirstAvailableTimeSlotsPerOperationOptions, CalculateFirstAvailableTimeSlotsPerOperationResponse, 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 };
@@ -55,6 +55,7 @@ __export(index_exports, {
55
55
  calculateAvailableDatesInRange: () => calculateAvailableDatesInRange4,
56
56
  calculateAvailableTimeSlotsForDate: () => calculateAvailableTimeSlotsForDate4,
57
57
  calculateFirstAvailableTimeSlotPerFulfillmentType: () => calculateFirstAvailableTimeSlotPerFulfillmentType4,
58
+ calculateFirstAvailableTimeSlotsForItem: () => calculateFirstAvailableTimeSlotsForItem4,
58
59
  calculateFirstAvailableTimeSlotsPerMenu: () => calculateFirstAvailableTimeSlotsPerMenu4,
59
60
  calculateFirstAvailableTimeSlotsPerOperation: () => calculateFirstAvailableTimeSlotsPerOperation4,
60
61
  createOperation: () => createOperation4,
@@ -783,6 +784,53 @@ function calculateFirstAvailableTimeSlotsPerMenu(payload) {
783
784
  }
784
785
  return __calculateFirstAvailableTimeSlotsPerMenu;
785
786
  }
787
+ function calculateFirstAvailableTimeSlotsForItem(payload) {
788
+ function __calculateFirstAvailableTimeSlotsForItem({ host }) {
789
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
790
+ {
791
+ transformFn: import_float.transformSDKFloatToRESTFloat,
792
+ paths: [
793
+ { path: "deliveryAddress.geocode.latitude" },
794
+ { path: "deliveryAddress.geocode.longitude" }
795
+ ]
796
+ }
797
+ ]);
798
+ const metadata = {
799
+ entityFqdn: "wix.restaurants.operations.v1.operation",
800
+ method: "GET",
801
+ methodFqn: "wix.restaurants.operations.v1.OperationsService.CalculateFirstAvailableTimeSlotsForItem",
802
+ packageName: PACKAGE_NAME,
803
+ url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
804
+ protoPath: "/v1/operations/{operationId}/first-available-time-slots-per-item",
805
+ data: serializedData,
806
+ host
807
+ }),
808
+ params: (0, import_rest_modules.toURLSearchParams)(serializedData),
809
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
810
+ {
811
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
812
+ paths: [
813
+ { path: "timeslotsPerFulfillmentType.timeSlot.startTime" },
814
+ { path: "timeslotsPerFulfillmentType.timeSlot.endTime" }
815
+ ]
816
+ },
817
+ {
818
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
819
+ paths: [
820
+ {
821
+ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.latitude"
822
+ },
823
+ {
824
+ path: "timeslotsPerFulfillmentType.fulfillmentInfo.address.geocode.longitude"
825
+ }
826
+ ]
827
+ }
828
+ ])
829
+ };
830
+ return metadata;
831
+ }
832
+ return __calculateFirstAvailableTimeSlotsForItem;
833
+ }
786
834
  function listAvailableTimeSlotsForDate(payload) {
787
835
  function __listAvailableTimeSlotsForDate({ host }) {
788
836
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -1769,6 +1817,60 @@ async function calculateFirstAvailableTimeSlotsPerMenu2(operationId, options) {
1769
1817
  throw transformedError;
1770
1818
  }
1771
1819
  }
1820
+ async function calculateFirstAvailableTimeSlotsForItem2(operationId, menuId, options) {
1821
+ const { httpClient, sideEffects } = arguments[3];
1822
+ const payload = (0, import_transform_paths2.transformPaths)(
1823
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1824
+ operationId,
1825
+ menuId,
1826
+ sectionId: options?.sectionId,
1827
+ itemId: options?.itemId,
1828
+ deliveryAddress: options?.deliveryAddress
1829
+ }),
1830
+ [
1831
+ {
1832
+ transformFn: import_address.transformSDKAddressToRESTAddress,
1833
+ paths: [{ path: "deliveryAddress" }]
1834
+ }
1835
+ ]
1836
+ );
1837
+ const reqOpts = calculateFirstAvailableTimeSlotsForItem(
1838
+ payload
1839
+ );
1840
+ sideEffects?.onSiteCall?.();
1841
+ try {
1842
+ const result = await httpClient.request(reqOpts);
1843
+ sideEffects?.onSuccess?.(result);
1844
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1845
+ (0, import_transform_paths2.transformPaths)(result.data, [
1846
+ {
1847
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1848
+ paths: [
1849
+ { path: "timeslotsPerFulfillmentType.fulfillmentInfo.address" }
1850
+ ]
1851
+ }
1852
+ ])
1853
+ );
1854
+ } catch (err) {
1855
+ const transformedError = (0, import_transform_error.transformError)(
1856
+ err,
1857
+ {
1858
+ spreadPathsToArguments: {},
1859
+ explicitPathsToArguments: {
1860
+ operationId: "$[0]",
1861
+ menuId: "$[1]",
1862
+ sectionId: "$[2].sectionId",
1863
+ itemId: "$[2].itemId",
1864
+ deliveryAddress: "$[2].deliveryAddress"
1865
+ },
1866
+ singleArgumentUnchanged: false
1867
+ },
1868
+ ["operationId", "menuId", "options"]
1869
+ );
1870
+ sideEffects?.onError?.(err);
1871
+ throw transformedError;
1872
+ }
1873
+ }
1772
1874
  async function listAvailableTimeSlotsForDate2(operationId, options) {
1773
1875
  const { httpClient, sideEffects } = arguments[2];
1774
1876
  const payload = (0, import_transform_paths2.transformPaths)(
@@ -2145,6 +2247,15 @@ function calculateFirstAvailableTimeSlotsPerMenu3(httpClient) {
2145
2247
  { httpClient }
2146
2248
  );
2147
2249
  }
2250
+ function calculateFirstAvailableTimeSlotsForItem3(httpClient) {
2251
+ return (operationId, menuId, options) => calculateFirstAvailableTimeSlotsForItem2(
2252
+ operationId,
2253
+ menuId,
2254
+ options,
2255
+ // @ts-ignore
2256
+ { httpClient }
2257
+ );
2258
+ }
2148
2259
  function listAvailableTimeSlotsForDate3(httpClient) {
2149
2260
  return (operationId, options) => listAvailableTimeSlotsForDate2(
2150
2261
  operationId,
@@ -2290,6 +2401,9 @@ var listFirstAvailableTimeSlotsForMenus4 = /* @__PURE__ */ (0, import_rest_modul
2290
2401
  var calculateFirstAvailableTimeSlotsPerMenu4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
2291
2402
  calculateFirstAvailableTimeSlotsPerMenu3
2292
2403
  );
2404
+ var calculateFirstAvailableTimeSlotsForItem4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
2405
+ calculateFirstAvailableTimeSlotsForItem3
2406
+ );
2293
2407
  var listAvailableTimeSlotsForDate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listAvailableTimeSlotsForDate3);
2294
2408
  var calculateAvailableTimeSlotsForDate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(calculateAvailableTimeSlotsForDate3);
2295
2409
  var listAvailableDatesInRange4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listAvailableDatesInRange3);
@@ -2337,6 +2451,7 @@ var onOperationUpdated2 = (0, import_event_definition_modules.createEventModule)
2337
2451
  calculateAvailableDatesInRange,
2338
2452
  calculateAvailableTimeSlotsForDate,
2339
2453
  calculateFirstAvailableTimeSlotPerFulfillmentType,
2454
+ calculateFirstAvailableTimeSlotsForItem,
2340
2455
  calculateFirstAvailableTimeSlotsPerMenu,
2341
2456
  calculateFirstAvailableTimeSlotsPerOperation,
2342
2457
  createOperation,