@wix/auto_sdk_restaurants_operations 1.0.90 → 1.0.92
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 +3 -19
- package/build/cjs/index.js +1 -135
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +10 -44
- package/build/cjs/index.typings.js +1 -103
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +10 -14
- package/build/cjs/meta.js +1 -83
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +1 -321
- package/build/cjs/schemas.js +0 -478
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +3 -19
- package/build/es/index.mjs +1 -133
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +10 -44
- package/build/es/index.typings.mjs +1 -102
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +10 -14
- package/build/es/meta.mjs +1 -82
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +1 -321
- package/build/es/schemas.mjs +0 -476
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -19
- package/build/internal/cjs/index.js +1 -135
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +10 -44
- package/build/internal/cjs/index.typings.js +1 -103
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +10 -14
- package/build/internal/cjs/meta.js +1 -83
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +1 -321
- package/build/internal/cjs/schemas.js +0 -478
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +3 -19
- package/build/internal/es/index.mjs +1 -133
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +10 -44
- package/build/internal/es/index.typings.mjs +1 -102
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +10 -14
- package/build/internal/es/meta.mjs +1 -82
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +1 -321
- package/build/internal/es/schemas.mjs +0 -476
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -686,7 +686,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
686
686
|
/** If present, indicates the action that triggered the event. */
|
|
687
687
|
originatedFrom?: string | null;
|
|
688
688
|
/**
|
|
689
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01
|
|
689
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
690
690
|
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
691
691
|
*/
|
|
692
692
|
entityEventSequence?: string | null;
|
|
@@ -984,14 +984,6 @@ interface DeliveryProfileConfiguredForOperation {
|
|
|
984
984
|
}
|
|
985
985
|
interface OperationsDataCloningCompleted {
|
|
986
986
|
}
|
|
987
|
-
interface CreateOperationRequest {
|
|
988
|
-
/** Operation to create. */
|
|
989
|
-
operation: Operation;
|
|
990
|
-
}
|
|
991
|
-
interface CreateOperationResponse {
|
|
992
|
-
/** Created operation. */
|
|
993
|
-
operation?: Operation;
|
|
994
|
-
}
|
|
995
987
|
interface GetOperationRequest {
|
|
996
988
|
/**
|
|
997
989
|
* ID of the operation to retrieve.
|
|
@@ -2696,10 +2688,15 @@ declare enum Namespace {
|
|
|
2696
2688
|
/** Wix Channels Sites */
|
|
2697
2689
|
CHANNELS = "CHANNELS",
|
|
2698
2690
|
/** Nautilus platform. */
|
|
2699
|
-
NAUTILUS = "NAUTILUS"
|
|
2691
|
+
NAUTILUS = "NAUTILUS",
|
|
2692
|
+
/**
|
|
2693
|
+
* Symphony — a siteless site representing a project within Symphony (the evolution of Orion).
|
|
2694
|
+
* Holds project data, conversations, assets, and manages collaborators / shared team members for the project.
|
|
2695
|
+
*/
|
|
2696
|
+
SYMPHONY = "SYMPHONY"
|
|
2700
2697
|
}
|
|
2701
2698
|
/** @enumType */
|
|
2702
|
-
type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS' | 'NANO' | 'BASE44' | 'CHANNELS' | 'NAUTILUS';
|
|
2699
|
+
type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS' | 'NANO' | 'BASE44' | 'CHANNELS' | 'NAUTILUS' | 'SYMPHONY';
|
|
2703
2700
|
/** Site transferred to another user. */
|
|
2704
2701
|
interface SiteTransferred {
|
|
2705
2702
|
/**
|
|
@@ -3057,7 +3054,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
3057
3054
|
/** If present, indicates the action that triggered the event. */
|
|
3058
3055
|
originatedFrom?: string | null;
|
|
3059
3056
|
/**
|
|
3060
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01
|
|
3057
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
3061
3058
|
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
3062
3059
|
*/
|
|
3063
3060
|
entityEventSequence?: string | null;
|
|
@@ -3071,22 +3068,6 @@ interface AccountInfoMetadata {
|
|
|
3071
3068
|
/** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */
|
|
3072
3069
|
parentAccountId?: string;
|
|
3073
3070
|
}
|
|
3074
|
-
interface OperationCreatedEnvelope {
|
|
3075
|
-
entity: Operation;
|
|
3076
|
-
metadata: EventMetadata;
|
|
3077
|
-
}
|
|
3078
|
-
/**
|
|
3079
|
-
* Triggered when an operation is created.
|
|
3080
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
3081
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
3082
|
-
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3083
|
-
* @webhook
|
|
3084
|
-
* @eventType wix.restaurants.operations.v1.operation_created
|
|
3085
|
-
* @serviceIdentifier wix.restaurants.operations.v1.OperationsService
|
|
3086
|
-
* @slug created
|
|
3087
|
-
* @documentationMaturity preview
|
|
3088
|
-
*/
|
|
3089
|
-
declare function onOperationCreated(handler: (event: OperationCreatedEnvelope) => void | Promise<void>): void;
|
|
3090
3071
|
interface OperationDeletedEnvelope {
|
|
3091
3072
|
entity: Operation;
|
|
3092
3073
|
metadata: EventMetadata;
|
|
@@ -3139,21 +3120,6 @@ interface ListBlockedPeriodsOptions {
|
|
|
3139
3120
|
/** End time of the desired window. */
|
|
3140
3121
|
until: Date | null;
|
|
3141
3122
|
}
|
|
3142
|
-
/**
|
|
3143
|
-
* Creates a new operation.
|
|
3144
|
-
* @param operation - Operation to create.
|
|
3145
|
-
* @public
|
|
3146
|
-
* @documentationMaturity preview
|
|
3147
|
-
* @requiredField operation
|
|
3148
|
-
* @permissionId RESTAURANTS.OPERATION_CREATE
|
|
3149
|
-
* @applicableIdentity APP
|
|
3150
|
-
* @returns Created operation.
|
|
3151
|
-
* @fqn wix.restaurants.operations.v1.OperationsService.CreateOperation
|
|
3152
|
-
* @deprecated
|
|
3153
|
-
* @replacedBy wix.restaurants.v1.OperationGroupService.CreateOperationGroup
|
|
3154
|
-
* @targetRemovalDate 2025-08-31
|
|
3155
|
-
*/
|
|
3156
|
-
declare function createOperation(operation: Operation): Promise<NonNullablePaths<Operation, `fulfillmentIds` | `onlineOrderingStatus` | `defaultFulfillmentType` | `orderScheduling.asapOptions.preparationTime.maxTimeOptions.timeUnit` | `orderScheduling.asapOptions.preparationTime.timeRangeOptions.timeUnit` | `orderScheduling.asapOptions.preparationTime.type` | `orderScheduling.asapOptions.asapFutureHandlingType` | `orderScheduling.preorderOptions.method.weeklyScheduleOptions.cutOffTime.dayOfWeek` | `orderScheduling.preorderOptions.method.weeklyScheduleOptions.cutOffTime.timeOfDay.hours` | `orderScheduling.preorderOptions.method.weeklyScheduleOptions.cutOffTime.timeOfDay.minutes` | `orderScheduling.preorderOptions.method.type` | `orderScheduling.preorderOptions.fulfillmentTimesDisplay.type` | `orderScheduling.type` | `tags.privateTags.tagIds`, 8>>;
|
|
3157
3123
|
/**
|
|
3158
3124
|
* Retrieves an operation.
|
|
3159
3125
|
* @param operationId - ID of the operation to retrieve.
|
|
@@ -3851,4 +3817,4 @@ interface BulkUpdateOperationTagsByFilterOptions {
|
|
|
3851
3817
|
unassignTags?: Tags;
|
|
3852
3818
|
}
|
|
3853
3819
|
|
|
3854
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActivationType, type ActivationTypeWithLiterals, type ActivePeriod, type Address, type AddressHint, type AddressLocation, type AddressViolation, type App, type ApplicationError, AsapFutureHandlingType, type AsapFutureHandlingTypeWithLiterals, type AsapOrderPacing, type AsapOrderPacingPacingAvailabilityOneOf, type AsapOrderScheduling, type AsapOrderSchedulingAsapFutureHandlingOptionsOneOf, AsapPacingWindowType, type AsapPacingWindowTypeWithLiterals, AsapPreorderType, type AsapPreorderTypeWithLiterals, type AsapScheduling, type AsapSchedulingAsapPreorderOneOf, type AsapSchedulingPreparationTimeOneOf, type Asset, type AvailabilityException, type BaseEventMetadata, type BlockedPeriod, type BulkActionMetadata, type BulkUpdateOperationTagsApplicationErrors, type BulkUpdateOperationTagsByFilterApplicationErrors, type BulkUpdateOperationTagsByFilterOptions, type BulkUpdateOperationTagsByFilterRequest, type BulkUpdateOperationTagsByFilterResponse, type BulkUpdateOperationTagsOptions, type BulkUpdateOperationTagsRequest, type BulkUpdateOperationTagsResponse, type BulkUpdateOperationTagsResult, type BusinessDaysAheadHandling, type BusinessDaysPreorder, type BusinessLocationDetails, type BusinessSchedule, type CalculateAvailableDatesInRangeOptions, type CalculateAvailableDatesInRangeRequest, type CalculateAvailableDatesInRangeResponse, type CalculateAvailableTimeSlotsForDateOptions, type CalculateAvailableTimeSlotsForDateRequest, type CalculateAvailableTimeSlotsForDateResponse, type CalculateFirstAvailableTimeSlotPerFulfillmentTypeOptions, type CalculateFirstAvailableTimeSlotPerFulfillmentTypeRequest, type CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse, type CalculateFirstAvailableTimeSlotsForItemOptions, type CalculateFirstAvailableTimeSlotsForItemRequest, type CalculateFirstAvailableTimeSlotsForItemResponse, type CalculateFirstAvailableTimeSlotsPerMenuOptions, type CalculateFirstAvailableTimeSlotsPerMenuRequest, type CalculateFirstAvailableTimeSlotsPerMenuResponse, type CalculateFirstAvailableTimeSlotsPerOperationOptions, type CalculateFirstAvailableTimeSlotsPerOperationRequest, type CalculateFirstAvailableTimeSlotsPerOperationResponse, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type CommonAddress, type CommonAddressStreetOneOf, type CommonCursorPaging, type CommonCursorPagingMetadata, type CommonCursors, type CommonQueryWithEntityContext, type ConsentPolicy, type CreateOperationRequest, type CreateOperationResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomTag, type DayAndTime, DayOfWeek, type DayOfWeekAvailability, type DayOfWeekWithLiterals, type DeleteContext, type DeleteOperationRequest, type DeleteOperationResponse, DeleteStatus, type DeleteStatusWithLiterals, type DeliveryDetails, type DeliveryProfileConfiguredForOperation, type DineInDetails, type DomainEvent, type DomainEventBodyOneOf, type DurationRange, type EditorlessAssigned, type EditorlessUnassigned, type Empty, EntitiesDayOfWeek, type EntitiesDayOfWeekWithLiterals, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type File, type FirstFulfillmentTimeSlotsPerMenu, type FulfillmentAddress, type FulfillmentDetails, type FulfillmentDetailsFulfillmentTimeOptionsOneOf, type FulfillmentInfo, type FulfillmentInfoFulfillmentTimeOneOf, type FulfillmentOption, type FulfillmentOptionAvailability, type FulfillmentOptionFulfillmentTimeOptionsOneOf, type FulfillmentOptionFulfillmentTimesDisplayOptionsOneOf, type FulfillmentOptionFulfillmentTypeOptionsOneOf, type FulfillmentTimeSlot, type FulfillmentTimeSlotsPerMenu, FulfillmentTimeType, type FulfillmentTimeTypeWithLiterals, type FulfillmentTimesDisplayConfig, type FulfillmentTimesDisplayConfigFulfillmentTimesDisplayOptionsOneOf, FulfillmentTimesDisplayType, type FulfillmentTimesDisplayTypeWithLiterals, FulfillmentTimesType, type FulfillmentTimesTypeWithLiterals, FulfillmentType, type FulfillmentTypeAvailableDates, type FulfillmentTypeWithLiterals, type GeoCoordinates, type GetExpectedFulfillmentSelectionRequest, type GetExpectedFulfillmentSelectionResponse, type GetOperationRequest, type GetOperationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ImmutableFields, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type ListAvailableDatesInRangeOptions, type ListAvailableDatesInRangeRequest, type ListAvailableDatesInRangeResponse, type ListAvailableFulfillmentOptions, type ListAvailableFulfillmentOptionsRequest, type ListAvailableFulfillmentOptionsResponse, type ListAvailableTimeSlotsForDateOptions, type ListAvailableTimeSlotsForDateRequest, type ListAvailableTimeSlotsForDateResponse, type ListBlockedPeriodsOptions, type ListBlockedPeriodsRequest, type ListBlockedPeriodsResponse, type ListFirstAvailableTimeSlotForFulfillmentTypesOptions, type ListFirstAvailableTimeSlotForFulfillmentTypesRequest, type ListFirstAvailableTimeSlotForFulfillmentTypesResponse, type ListFirstAvailableTimeSlotsForMenusOptions, type ListFirstAvailableTimeSlotsForMenusRequest, type ListFirstAvailableTimeSlotsForMenusResponse, type ListFirstAvailableTimeSlotsForOperationsOptions, type ListFirstAvailableTimeSlotsForOperationsRequest, type ListFirstAvailableTimeSlotsForOperationsResponse, type ListOperationIdsRequest, type ListOperationIdsResponse, type ListOperationsInternalRequest, type ListOperationsInternalResponse, type ListOperationsRequest, type ListOperationsResponse, type ListOrdersForOperationRequest, type ListOrdersForOperationResponse, type Locale, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, MethodType, type MethodTypeWithLiterals, type Multilingual, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type OnlineOrderingPausedUntilOptions, OnlineOrderingStatusType, type OnlineOrderingStatusTypeWithLiterals, type Operation, type OperationCreatedEnvelope, type OperationDeletedEnvelope, type OperationOnlineOrderingStatusOptionsOneOf, type OperationQuery, type OperationQuerySpec, type OperationTimeSlot, type OperationUpdatedEnvelope, type OperationsDataCloningCompleted, type OperationsQueryBuilder, type OperationsQueryResult, type OrderScheduling, type OrderSchedulingOrderSchedulingOptionsOneOf, OrderSchedulingType, type OrderSchedulingTypeWithLiterals, type PacingOrder, type Page, type Pages, type PagingMetadata, type PicassoAssigned, type PicassoUnassigned, type PickupDetails, PlacementType, type PlacementTypeWithLiterals, type PreOrderPacing, type PreOrderPacingPacingAvailabilityOneOf, type PreorderMethod, type PreorderMethodMethodOptionsOneOf, PreorderPacingWindowType, type PreorderPacingWindowTypeWithLiterals, type PreorderScheduling, type PreparationTime, PreparationTimePreparationTimeType, type PreparationTimePreparationTimeTypeWithLiterals, type PreparationTimeTimeSpecificationOneOf, PreparationTimeType, type PreparationTimeTypeWithLiterals, type Properties, type PropertiesChange, type QueryOperationRequest, type QueryOperationResponse, ResolutionMethod, type ResolutionMethodWithLiterals, type RestoreInfo, type Scheduling, type SchedulingSchedulingOptionsOneOf, SchedulingType, type SchedulingTypeWithLiterals, type ServiceProvisioned, type ServiceRemoved, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SpecialHourPeriod, State, type StateWithLiterals, type StreetAddress, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type Subdivision, SubdivisionType, type SubdivisionTypeWithLiterals, type SupportedLanguage, type TagList, type Tags, type TimeBounded, type TimeDuration, type TimeDurationRange, type TimeOfDay, type TimeOfDayRange, type TimePeriod, type TimeSlot, type TimeSlotForFulfillment, TimeSlotForFulfillmentTimeSlotStatus, type TimeSlotForFulfillmentTimeSlotStatusWithLiterals, type TimeSlotForOperation, TimeSlotStatus, type TimeSlotStatusWithLiterals, TimeUnit, type TimeUnitWithLiterals, type TimeWindowDisplayConfig, type Translation, type URI, type URIs, type UpdateDeliveryRegionsRequest, type UpdateDeliveryRegionsResponse, type UpdateImmutableFieldsRequest, type UpdateImmutableFieldsResponse, type UpdateOperation, type UpdateOperationRequest, type UpdateOperationResponse, type UserDomainMediaDisabled, type UserDomainMediaEnabled, type V1Address, type V1AddressLocation, type V1StreetAddress, type V4SiteCreated, type ValidateOperationAddressRequest, type ValidateOperationAddressResponse, ViolationType, type ViolationTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WeeklyActiveDays, type WeeklyActivePeriods, type WeeklySchedule, type WixelAssigned, type WixelUnassigned, type _Date, bulkUpdateOperationTags, bulkUpdateOperationTagsByFilter, calculateAvailableDatesInRange, calculateAvailableTimeSlotsForDate, calculateFirstAvailableTimeSlotPerFulfillmentType, calculateFirstAvailableTimeSlotsForItem, calculateFirstAvailableTimeSlotsPerMenu, calculateFirstAvailableTimeSlotsPerOperation, createOperation, deleteOperation, getOperation, listAvailableDatesInRange, listAvailableFulfillmentOptions, listAvailableTimeSlotsForDate, listBlockedPeriods, listFirstAvailableTimeSlotForFulfillmentTypes, listFirstAvailableTimeSlotsForMenus, listFirstAvailableTimeSlotsForOperations, listOperations, onOperationCreated, onOperationDeleted, onOperationUpdated, queryOperation, typedQueryOperation, updateOperation, utils, validateOperationAddress };
|
|
3820
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActivationType, type ActivationTypeWithLiterals, type ActivePeriod, type Address, type AddressHint, type AddressLocation, type AddressViolation, type App, type ApplicationError, AsapFutureHandlingType, type AsapFutureHandlingTypeWithLiterals, type AsapOrderPacing, type AsapOrderPacingPacingAvailabilityOneOf, type AsapOrderScheduling, type AsapOrderSchedulingAsapFutureHandlingOptionsOneOf, AsapPacingWindowType, type AsapPacingWindowTypeWithLiterals, AsapPreorderType, type AsapPreorderTypeWithLiterals, type AsapScheduling, type AsapSchedulingAsapPreorderOneOf, type AsapSchedulingPreparationTimeOneOf, type Asset, type AvailabilityException, type BaseEventMetadata, type BlockedPeriod, type BulkActionMetadata, type BulkUpdateOperationTagsApplicationErrors, type BulkUpdateOperationTagsByFilterApplicationErrors, type BulkUpdateOperationTagsByFilterOptions, type BulkUpdateOperationTagsByFilterRequest, type BulkUpdateOperationTagsByFilterResponse, type BulkUpdateOperationTagsOptions, type BulkUpdateOperationTagsRequest, type BulkUpdateOperationTagsResponse, type BulkUpdateOperationTagsResult, type BusinessDaysAheadHandling, type BusinessDaysPreorder, type BusinessLocationDetails, type BusinessSchedule, type CalculateAvailableDatesInRangeOptions, type CalculateAvailableDatesInRangeRequest, type CalculateAvailableDatesInRangeResponse, type CalculateAvailableTimeSlotsForDateOptions, type CalculateAvailableTimeSlotsForDateRequest, type CalculateAvailableTimeSlotsForDateResponse, type CalculateFirstAvailableTimeSlotPerFulfillmentTypeOptions, type CalculateFirstAvailableTimeSlotPerFulfillmentTypeRequest, type CalculateFirstAvailableTimeSlotPerFulfillmentTypeResponse, type CalculateFirstAvailableTimeSlotsForItemOptions, type CalculateFirstAvailableTimeSlotsForItemRequest, type CalculateFirstAvailableTimeSlotsForItemResponse, type CalculateFirstAvailableTimeSlotsPerMenuOptions, type CalculateFirstAvailableTimeSlotsPerMenuRequest, type CalculateFirstAvailableTimeSlotsPerMenuResponse, type CalculateFirstAvailableTimeSlotsPerOperationOptions, type CalculateFirstAvailableTimeSlotsPerOperationRequest, type CalculateFirstAvailableTimeSlotsPerOperationResponse, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type CommonAddress, type CommonAddressStreetOneOf, type CommonCursorPaging, type CommonCursorPagingMetadata, type CommonCursors, type CommonQueryWithEntityContext, type ConsentPolicy, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomTag, type DayAndTime, DayOfWeek, type DayOfWeekAvailability, type DayOfWeekWithLiterals, type DeleteContext, type DeleteOperationRequest, type DeleteOperationResponse, DeleteStatus, type DeleteStatusWithLiterals, type DeliveryDetails, type DeliveryProfileConfiguredForOperation, type DineInDetails, type DomainEvent, type DomainEventBodyOneOf, type DurationRange, type EditorlessAssigned, type EditorlessUnassigned, type Empty, EntitiesDayOfWeek, type EntitiesDayOfWeekWithLiterals, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type File, type FirstFulfillmentTimeSlotsPerMenu, type FulfillmentAddress, type FulfillmentDetails, type FulfillmentDetailsFulfillmentTimeOptionsOneOf, type FulfillmentInfo, type FulfillmentInfoFulfillmentTimeOneOf, type FulfillmentOption, type FulfillmentOptionAvailability, type FulfillmentOptionFulfillmentTimeOptionsOneOf, type FulfillmentOptionFulfillmentTimesDisplayOptionsOneOf, type FulfillmentOptionFulfillmentTypeOptionsOneOf, type FulfillmentTimeSlot, type FulfillmentTimeSlotsPerMenu, FulfillmentTimeType, type FulfillmentTimeTypeWithLiterals, type FulfillmentTimesDisplayConfig, type FulfillmentTimesDisplayConfigFulfillmentTimesDisplayOptionsOneOf, FulfillmentTimesDisplayType, type FulfillmentTimesDisplayTypeWithLiterals, FulfillmentTimesType, type FulfillmentTimesTypeWithLiterals, FulfillmentType, type FulfillmentTypeAvailableDates, type FulfillmentTypeWithLiterals, type GeoCoordinates, type GetExpectedFulfillmentSelectionRequest, type GetExpectedFulfillmentSelectionResponse, type GetOperationRequest, type GetOperationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ImmutableFields, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type ListAvailableDatesInRangeOptions, type ListAvailableDatesInRangeRequest, type ListAvailableDatesInRangeResponse, type ListAvailableFulfillmentOptions, type ListAvailableFulfillmentOptionsRequest, type ListAvailableFulfillmentOptionsResponse, type ListAvailableTimeSlotsForDateOptions, type ListAvailableTimeSlotsForDateRequest, type ListAvailableTimeSlotsForDateResponse, type ListBlockedPeriodsOptions, type ListBlockedPeriodsRequest, type ListBlockedPeriodsResponse, type ListFirstAvailableTimeSlotForFulfillmentTypesOptions, type ListFirstAvailableTimeSlotForFulfillmentTypesRequest, type ListFirstAvailableTimeSlotForFulfillmentTypesResponse, type ListFirstAvailableTimeSlotsForMenusOptions, type ListFirstAvailableTimeSlotsForMenusRequest, type ListFirstAvailableTimeSlotsForMenusResponse, type ListFirstAvailableTimeSlotsForOperationsOptions, type ListFirstAvailableTimeSlotsForOperationsRequest, type ListFirstAvailableTimeSlotsForOperationsResponse, type ListOperationIdsRequest, type ListOperationIdsResponse, type ListOperationsInternalRequest, type ListOperationsInternalResponse, type ListOperationsRequest, type ListOperationsResponse, type ListOrdersForOperationRequest, type ListOrdersForOperationResponse, type Locale, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, MethodType, type MethodTypeWithLiterals, type Multilingual, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type OnlineOrderingPausedUntilOptions, OnlineOrderingStatusType, type OnlineOrderingStatusTypeWithLiterals, type Operation, type OperationDeletedEnvelope, type OperationOnlineOrderingStatusOptionsOneOf, type OperationQuery, type OperationQuerySpec, type OperationTimeSlot, type OperationUpdatedEnvelope, type OperationsDataCloningCompleted, type OperationsQueryBuilder, type OperationsQueryResult, type OrderScheduling, type OrderSchedulingOrderSchedulingOptionsOneOf, OrderSchedulingType, type OrderSchedulingTypeWithLiterals, type PacingOrder, type Page, type Pages, type PagingMetadata, type PicassoAssigned, type PicassoUnassigned, type PickupDetails, PlacementType, type PlacementTypeWithLiterals, type PreOrderPacing, type PreOrderPacingPacingAvailabilityOneOf, type PreorderMethod, type PreorderMethodMethodOptionsOneOf, PreorderPacingWindowType, type PreorderPacingWindowTypeWithLiterals, type PreorderScheduling, type PreparationTime, PreparationTimePreparationTimeType, type PreparationTimePreparationTimeTypeWithLiterals, type PreparationTimeTimeSpecificationOneOf, PreparationTimeType, type PreparationTimeTypeWithLiterals, type Properties, type PropertiesChange, type QueryOperationRequest, type QueryOperationResponse, ResolutionMethod, type ResolutionMethodWithLiterals, type RestoreInfo, type Scheduling, type SchedulingSchedulingOptionsOneOf, SchedulingType, type SchedulingTypeWithLiterals, type ServiceProvisioned, type ServiceRemoved, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SpecialHourPeriod, State, type StateWithLiterals, type StreetAddress, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type Subdivision, SubdivisionType, type SubdivisionTypeWithLiterals, type SupportedLanguage, type TagList, type Tags, type TimeBounded, type TimeDuration, type TimeDurationRange, type TimeOfDay, type TimeOfDayRange, type TimePeriod, type TimeSlot, type TimeSlotForFulfillment, TimeSlotForFulfillmentTimeSlotStatus, type TimeSlotForFulfillmentTimeSlotStatusWithLiterals, type TimeSlotForOperation, TimeSlotStatus, type TimeSlotStatusWithLiterals, TimeUnit, type TimeUnitWithLiterals, type TimeWindowDisplayConfig, type Translation, type URI, type URIs, type UpdateDeliveryRegionsRequest, type UpdateDeliveryRegionsResponse, type UpdateImmutableFieldsRequest, type UpdateImmutableFieldsResponse, type UpdateOperation, type UpdateOperationRequest, type UpdateOperationResponse, type UserDomainMediaDisabled, type UserDomainMediaEnabled, type V1Address, type V1AddressLocation, type V1StreetAddress, type V4SiteCreated, type ValidateOperationAddressRequest, type ValidateOperationAddressResponse, ViolationType, type ViolationTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WeeklyActiveDays, type WeeklyActivePeriods, type WeeklySchedule, type WixelAssigned, type WixelUnassigned, type _Date, bulkUpdateOperationTags, bulkUpdateOperationTagsByFilter, calculateAvailableDatesInRange, calculateAvailableTimeSlotsForDate, calculateFirstAvailableTimeSlotPerFulfillmentType, calculateFirstAvailableTimeSlotsForItem, calculateFirstAvailableTimeSlotsPerMenu, calculateFirstAvailableTimeSlotsPerOperation, deleteOperation, getOperation, listAvailableDatesInRange, listAvailableFulfillmentOptions, listAvailableTimeSlotsForDate, listBlockedPeriods, listFirstAvailableTimeSlotForFulfillmentTypes, listFirstAvailableTimeSlotsForMenus, listFirstAvailableTimeSlotsForOperations, listOperations, onOperationDeleted, onOperationUpdated, queryOperation, typedQueryOperation, updateOperation, utils, validateOperationAddress };
|
|
@@ -186,69 +186,6 @@ function listBlockedPeriods(payload) {
|
|
|
186
186
|
}
|
|
187
187
|
return __listBlockedPeriods;
|
|
188
188
|
}
|
|
189
|
-
function createOperation(payload) {
|
|
190
|
-
function __createOperation({ host }) {
|
|
191
|
-
const serializedData = transformPaths(payload, [
|
|
192
|
-
{
|
|
193
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
194
|
-
paths: [
|
|
195
|
-
{ path: "operation.createdDate" },
|
|
196
|
-
{ path: "operation.updatedDate" },
|
|
197
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
198
|
-
]
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
202
|
-
paths: [
|
|
203
|
-
{
|
|
204
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
208
|
-
}
|
|
209
|
-
]
|
|
210
|
-
}
|
|
211
|
-
]);
|
|
212
|
-
const metadata = {
|
|
213
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
214
|
-
method: "POST",
|
|
215
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.CreateOperation",
|
|
216
|
-
packageName: PACKAGE_NAME,
|
|
217
|
-
migrationOptions: {
|
|
218
|
-
optInTransformResponse: true
|
|
219
|
-
},
|
|
220
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
221
|
-
protoPath: "/v1/operations",
|
|
222
|
-
data: serializedData,
|
|
223
|
-
host
|
|
224
|
-
}),
|
|
225
|
-
data: serializedData,
|
|
226
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
227
|
-
{
|
|
228
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
229
|
-
paths: [
|
|
230
|
-
{ path: "operation.createdDate" },
|
|
231
|
-
{ path: "operation.updatedDate" },
|
|
232
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
233
|
-
]
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
237
|
-
paths: [
|
|
238
|
-
{
|
|
239
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
243
|
-
}
|
|
244
|
-
]
|
|
245
|
-
}
|
|
246
|
-
])
|
|
247
|
-
};
|
|
248
|
-
return metadata;
|
|
249
|
-
}
|
|
250
|
-
return __createOperation;
|
|
251
|
-
}
|
|
252
189
|
function getOperation(payload) {
|
|
253
190
|
function __getOperation({ host }) {
|
|
254
191
|
const metadata = {
|
|
@@ -1306,6 +1243,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
|
1306
1243
|
Namespace2["BASE44"] = "BASE44";
|
|
1307
1244
|
Namespace2["CHANNELS"] = "CHANNELS";
|
|
1308
1245
|
Namespace2["NAUTILUS"] = "NAUTILUS";
|
|
1246
|
+
Namespace2["SYMPHONY"] = "SYMPHONY";
|
|
1309
1247
|
return Namespace2;
|
|
1310
1248
|
})(Namespace || {});
|
|
1311
1249
|
var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
@@ -1355,44 +1293,6 @@ async function listBlockedPeriods2(operationId, options) {
|
|
|
1355
1293
|
throw transformedError;
|
|
1356
1294
|
}
|
|
1357
1295
|
}
|
|
1358
|
-
async function createOperation2(operation) {
|
|
1359
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1360
|
-
const payload = transformPaths2(
|
|
1361
|
-
renameKeysFromSDKRequestToRESTRequest({ operation }),
|
|
1362
|
-
[
|
|
1363
|
-
{
|
|
1364
|
-
transformFn: transformSDKAddressToRESTAddress,
|
|
1365
|
-
paths: [{ path: "operation.businessLocationDetails.address" }]
|
|
1366
|
-
}
|
|
1367
|
-
]
|
|
1368
|
-
);
|
|
1369
|
-
const reqOpts = createOperation(payload);
|
|
1370
|
-
sideEffects?.onSiteCall?.();
|
|
1371
|
-
try {
|
|
1372
|
-
const result = await httpClient.request(reqOpts);
|
|
1373
|
-
sideEffects?.onSuccess?.(result);
|
|
1374
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
1375
|
-
transformPaths2(result.data, [
|
|
1376
|
-
{
|
|
1377
|
-
transformFn: transformRESTAddressToSDKAddress,
|
|
1378
|
-
paths: [{ path: "operation.businessLocationDetails.address" }]
|
|
1379
|
-
}
|
|
1380
|
-
])
|
|
1381
|
-
)?.operation;
|
|
1382
|
-
} catch (err) {
|
|
1383
|
-
const transformedError = sdkTransformError(
|
|
1384
|
-
err,
|
|
1385
|
-
{
|
|
1386
|
-
spreadPathsToArguments: {},
|
|
1387
|
-
explicitPathsToArguments: { operation: "$[0]" },
|
|
1388
|
-
singleArgumentUnchanged: false
|
|
1389
|
-
},
|
|
1390
|
-
["operation"]
|
|
1391
|
-
);
|
|
1392
|
-
sideEffects?.onError?.(err);
|
|
1393
|
-
throw transformedError;
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
1296
|
async function getOperation2(operationId) {
|
|
1397
1297
|
const { httpClient, sideEffects } = arguments[1];
|
|
1398
1298
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -2317,7 +2217,6 @@ export {
|
|
|
2317
2217
|
calculateFirstAvailableTimeSlotsForItem2 as calculateFirstAvailableTimeSlotsForItem,
|
|
2318
2218
|
calculateFirstAvailableTimeSlotsPerMenu2 as calculateFirstAvailableTimeSlotsPerMenu,
|
|
2319
2219
|
calculateFirstAvailableTimeSlotsPerOperation2 as calculateFirstAvailableTimeSlotsPerOperation,
|
|
2320
|
-
createOperation2 as createOperation,
|
|
2321
2220
|
deleteOperation2 as deleteOperation,
|
|
2322
2221
|
getOperation2 as getOperation,
|
|
2323
2222
|
listAvailableDatesInRange2 as listAvailableDatesInRange,
|