@wix/auto_sdk_restaurants_operations 1.0.90 → 1.0.91
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 +0 -135
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -40
- package/build/cjs/index.typings.js +0 -103
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -11
- package/build/cjs/meta.js +0 -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 +0 -133
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -40
- package/build/es/index.typings.mjs +0 -102
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -11
- package/build/es/meta.mjs +0 -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 +0 -135
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1 -40
- package/build/internal/cjs/index.typings.js +0 -103
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +2 -11
- package/build/internal/cjs/meta.js +0 -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 +0 -133
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +1 -40
- package/build/internal/es/index.typings.mjs +0 -102
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +2 -11
- package/build/internal/es/meta.mjs +0 -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
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,
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, 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, CommonQueryWithEntityContext, ConsentPolicy,
|
|
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, OperationDeletedEnvelope, OperationUpdatedEnvelope, OperationsQueryBuilder, OperationQuery, typedQueryOperation } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, 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, CommonQueryWithEntityContext, ConsentPolicy, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DayAndTime, DayOfWeek, DayOfWeekAvailability, DayOfWeekWithLiterals, DeleteContext, DeleteOperationRequest, DeleteOperationResponse, DeleteStatus, DeleteStatusWithLiterals, DeliveryDetails, DeliveryProfileConfiguredForOperation, DineInDetails, DomainEvent, DomainEventBodyOneOf, DurationRange, EditorlessAssigned, EditorlessUnassigned, 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, OperationQuerySpec, OperationTimeSlot, OperationsDataCloningCompleted, OperationsQueryResult, OrderScheduling, OrderSchedulingOrderSchedulingOptionsOneOf, OrderSchedulingType, OrderSchedulingTypeWithLiterals, PacingOrder, Page, Pages, 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, URIs, UpdateDeliveryRegionsRequest, UpdateDeliveryRegionsResponse, UpdateImmutableFieldsRequest, UpdateImmutableFieldsResponse, UpdateOperationRequest, UpdateOperationResponse, UserDomainMediaDisabled, UserDomainMediaEnabled, V1Address, V1AddressLocation, V1StreetAddress, V4SiteCreated, ValidateOperationAddressRequest, ViolationType, ViolationTypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeeklyActiveDays, WeeklyActivePeriods, WeeklySchedule, WixelAssigned, WixelUnassigned, _Date, utils } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function listBlockedPeriods$1(httpClient: HttpClient): ListBlockedPeriodsSignature;
|
|
6
6
|
interface ListBlockedPeriodsSignature {
|
|
@@ -10,16 +10,6 @@ interface ListBlockedPeriodsSignature {
|
|
|
10
10
|
*/
|
|
11
11
|
(operationId: string, options?: NonNullablePaths<ListBlockedPeriodsOptions, `until`, 2>): Promise<NonNullablePaths<ListBlockedPeriodsResponse, `blockPeriods`, 2>>;
|
|
12
12
|
}
|
|
13
|
-
declare function createOperation$1(httpClient: HttpClient): CreateOperationSignature;
|
|
14
|
-
interface CreateOperationSignature {
|
|
15
|
-
/**
|
|
16
|
-
* Creates a new operation.
|
|
17
|
-
* @param - Operation to create.
|
|
18
|
-
* @returns Created operation.
|
|
19
|
-
* @deprecated
|
|
20
|
-
*/
|
|
21
|
-
(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>>;
|
|
22
|
-
}
|
|
23
13
|
declare function getOperation$1(httpClient: HttpClient): GetOperationSignature;
|
|
24
14
|
interface GetOperationSignature {
|
|
25
15
|
/**
|
|
@@ -242,7 +232,6 @@ interface BulkUpdateOperationTagsByFilterSignature {
|
|
|
242
232
|
__applicationErrorsType?: BulkUpdateOperationTagsByFilterApplicationErrors;
|
|
243
233
|
}>;
|
|
244
234
|
}
|
|
245
|
-
declare const onOperationCreated$1: EventDefinition<OperationCreatedEnvelope, "wix.restaurants.operations.v1.operation_created">;
|
|
246
235
|
declare const onOperationDeleted$1: EventDefinition<OperationDeletedEnvelope, "wix.restaurants.operations.v1.operation_deleted">;
|
|
247
236
|
declare const onOperationUpdated$1: EventDefinition<OperationUpdatedEnvelope, "wix.restaurants.operations.v1.operation_updated">;
|
|
248
237
|
|
|
@@ -251,7 +240,6 @@ declare function customQueryOperation(httpClient: HttpClient): {
|
|
|
251
240
|
(query: OperationQuery): ReturnType<typeof typedQueryOperation>;
|
|
252
241
|
};
|
|
253
242
|
declare const listBlockedPeriods: MaybeContext<BuildRESTFunction<typeof listBlockedPeriods$1> & typeof listBlockedPeriods$1>;
|
|
254
|
-
declare const createOperation: MaybeContext<BuildRESTFunction<typeof createOperation$1> & typeof createOperation$1>;
|
|
255
243
|
declare const getOperation: MaybeContext<BuildRESTFunction<typeof getOperation$1> & typeof getOperation$1>;
|
|
256
244
|
declare const updateOperation: MaybeContext<BuildRESTFunction<typeof updateOperation$1> & typeof updateOperation$1>;
|
|
257
245
|
declare const deleteOperation: MaybeContext<BuildRESTFunction<typeof deleteOperation$1> & typeof deleteOperation$1>;
|
|
@@ -272,10 +260,6 @@ declare const validateOperationAddress: MaybeContext<BuildRESTFunction<typeof va
|
|
|
272
260
|
declare const bulkUpdateOperationTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateOperationTags$1> & typeof bulkUpdateOperationTags$1>;
|
|
273
261
|
declare const bulkUpdateOperationTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateOperationTagsByFilter$1> & typeof bulkUpdateOperationTagsByFilter$1>;
|
|
274
262
|
declare const queryOperation: MaybeContext<BuildRESTFunction<typeof customQueryOperation> & typeof customQueryOperation>;
|
|
275
|
-
/**
|
|
276
|
-
* Triggered when an operation is created.
|
|
277
|
-
*/
|
|
278
|
-
declare const onOperationCreated: BuildEventDefinition<typeof onOperationCreated$1> & typeof onOperationCreated$1;
|
|
279
263
|
/**
|
|
280
264
|
* Triggered when an operation is deleted.
|
|
281
265
|
*/
|
|
@@ -285,4 +269,4 @@ declare const onOperationDeleted: BuildEventDefinition<typeof onOperationDeleted
|
|
|
285
269
|
*/
|
|
286
270
|
declare const onOperationUpdated: BuildEventDefinition<typeof onOperationUpdated$1> & typeof onOperationUpdated$1;
|
|
287
271
|
|
|
288
|
-
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, ListBlockedPeriodsOptions, ListBlockedPeriodsResponse, ListFirstAvailableTimeSlotForFulfillmentTypesOptions, ListFirstAvailableTimeSlotForFulfillmentTypesResponse, ListFirstAvailableTimeSlotsForMenusOptions, ListFirstAvailableTimeSlotsForMenusResponse, ListFirstAvailableTimeSlotsForOperationsOptions, ListFirstAvailableTimeSlotsForOperationsResponse, ListOperationsResponse, Operation,
|
|
272
|
+
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, ListBlockedPeriodsOptions, ListBlockedPeriodsResponse, ListFirstAvailableTimeSlotForFulfillmentTypesOptions, ListFirstAvailableTimeSlotForFulfillmentTypesResponse, ListFirstAvailableTimeSlotsForMenusOptions, ListFirstAvailableTimeSlotsForMenusResponse, ListFirstAvailableTimeSlotsForOperationsOptions, ListFirstAvailableTimeSlotsForOperationsResponse, ListOperationsResponse, Operation, OperationDeletedEnvelope, OperationQuery, OperationUpdatedEnvelope, OperationsQueryBuilder, UpdateOperation, ValidateOperationAddressResponse, bulkUpdateOperationTags, bulkUpdateOperationTagsByFilter, calculateAvailableDatesInRange, calculateAvailableTimeSlotsForDate, calculateFirstAvailableTimeSlotPerFulfillmentType, calculateFirstAvailableTimeSlotsForItem, calculateFirstAvailableTimeSlotsPerMenu, calculateFirstAvailableTimeSlotsPerOperation, deleteOperation, getOperation, listAvailableDatesInRange, listAvailableFulfillmentOptions, listAvailableTimeSlotsForDate, listBlockedPeriods, listFirstAvailableTimeSlotForFulfillmentTypes, listFirstAvailableTimeSlotsForMenus, listFirstAvailableTimeSlotsForOperations, listOperations, onOperationDeleted, onOperationUpdated, queryOperation, updateOperation, validateOperationAddress };
|
|
@@ -193,69 +193,6 @@ function listBlockedPeriods(payload) {
|
|
|
193
193
|
}
|
|
194
194
|
return __listBlockedPeriods;
|
|
195
195
|
}
|
|
196
|
-
function createOperation(payload) {
|
|
197
|
-
function __createOperation({ host }) {
|
|
198
|
-
const serializedData = transformPaths(payload, [
|
|
199
|
-
{
|
|
200
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
201
|
-
paths: [
|
|
202
|
-
{ path: "operation.createdDate" },
|
|
203
|
-
{ path: "operation.updatedDate" },
|
|
204
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
205
|
-
]
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
209
|
-
paths: [
|
|
210
|
-
{
|
|
211
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
215
|
-
}
|
|
216
|
-
]
|
|
217
|
-
}
|
|
218
|
-
]);
|
|
219
|
-
const metadata = {
|
|
220
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
221
|
-
method: "POST",
|
|
222
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.CreateOperation",
|
|
223
|
-
packageName: PACKAGE_NAME,
|
|
224
|
-
migrationOptions: {
|
|
225
|
-
optInTransformResponse: true
|
|
226
|
-
},
|
|
227
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
228
|
-
protoPath: "/v1/operations",
|
|
229
|
-
data: serializedData,
|
|
230
|
-
host
|
|
231
|
-
}),
|
|
232
|
-
data: serializedData,
|
|
233
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
234
|
-
{
|
|
235
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
236
|
-
paths: [
|
|
237
|
-
{ path: "operation.createdDate" },
|
|
238
|
-
{ path: "operation.updatedDate" },
|
|
239
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
240
|
-
]
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
244
|
-
paths: [
|
|
245
|
-
{
|
|
246
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
250
|
-
}
|
|
251
|
-
]
|
|
252
|
-
}
|
|
253
|
-
])
|
|
254
|
-
};
|
|
255
|
-
return metadata;
|
|
256
|
-
}
|
|
257
|
-
return __createOperation;
|
|
258
|
-
}
|
|
259
196
|
function getOperation(payload) {
|
|
260
197
|
function __getOperation({ host }) {
|
|
261
198
|
const metadata = {
|
|
@@ -1362,44 +1299,6 @@ async function listBlockedPeriods2(operationId, options) {
|
|
|
1362
1299
|
throw transformedError;
|
|
1363
1300
|
}
|
|
1364
1301
|
}
|
|
1365
|
-
async function createOperation2(operation) {
|
|
1366
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1367
|
-
const payload = transformPaths2(
|
|
1368
|
-
renameKeysFromSDKRequestToRESTRequest({ operation }),
|
|
1369
|
-
[
|
|
1370
|
-
{
|
|
1371
|
-
transformFn: transformSDKAddressToRESTAddress,
|
|
1372
|
-
paths: [{ path: "operation.businessLocationDetails.address" }]
|
|
1373
|
-
}
|
|
1374
|
-
]
|
|
1375
|
-
);
|
|
1376
|
-
const reqOpts = createOperation(payload);
|
|
1377
|
-
sideEffects?.onSiteCall?.();
|
|
1378
|
-
try {
|
|
1379
|
-
const result = await httpClient.request(reqOpts);
|
|
1380
|
-
sideEffects?.onSuccess?.(result);
|
|
1381
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
1382
|
-
transformPaths2(result.data, [
|
|
1383
|
-
{
|
|
1384
|
-
transformFn: transformRESTAddressToSDKAddress,
|
|
1385
|
-
paths: [{ path: "operation.businessLocationDetails.address" }]
|
|
1386
|
-
}
|
|
1387
|
-
])
|
|
1388
|
-
)?.operation;
|
|
1389
|
-
} catch (err) {
|
|
1390
|
-
const transformedError = sdkTransformError(
|
|
1391
|
-
err,
|
|
1392
|
-
{
|
|
1393
|
-
spreadPathsToArguments: {},
|
|
1394
|
-
explicitPathsToArguments: { operation: "$[0]" },
|
|
1395
|
-
singleArgumentUnchanged: false
|
|
1396
|
-
},
|
|
1397
|
-
["operation"]
|
|
1398
|
-
);
|
|
1399
|
-
sideEffects?.onError?.(err);
|
|
1400
|
-
throw transformedError;
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
1302
|
async function getOperation2(operationId) {
|
|
1404
1303
|
const { httpClient, sideEffects } = arguments[1];
|
|
1405
1304
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -2295,13 +2194,6 @@ function listBlockedPeriods3(httpClient) {
|
|
|
2295
2194
|
{ httpClient }
|
|
2296
2195
|
);
|
|
2297
2196
|
}
|
|
2298
|
-
function createOperation3(httpClient) {
|
|
2299
|
-
return (operation) => createOperation2(
|
|
2300
|
-
operation,
|
|
2301
|
-
// @ts-ignore
|
|
2302
|
-
{ httpClient }
|
|
2303
|
-
);
|
|
2304
|
-
}
|
|
2305
2197
|
function getOperation3(httpClient) {
|
|
2306
2198
|
return (operationId) => getOperation2(
|
|
2307
2199
|
operationId,
|
|
@@ -2463,27 +2355,6 @@ function bulkUpdateOperationTagsByFilter3(httpClient) {
|
|
|
2463
2355
|
{ httpClient }
|
|
2464
2356
|
);
|
|
2465
2357
|
}
|
|
2466
|
-
var onOperationCreated = EventDefinition(
|
|
2467
|
-
"wix.restaurants.operations.v1.operation_created",
|
|
2468
|
-
true,
|
|
2469
|
-
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
2470
|
-
transformPaths3(event, [
|
|
2471
|
-
{
|
|
2472
|
-
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
2473
|
-
paths: [
|
|
2474
|
-
{ path: "entity.createdDate" },
|
|
2475
|
-
{ path: "entity.updatedDate" },
|
|
2476
|
-
{ path: "entity.pausedUntilOptions.time" },
|
|
2477
|
-
{ path: "metadata.eventTime" }
|
|
2478
|
-
]
|
|
2479
|
-
},
|
|
2480
|
-
{
|
|
2481
|
-
transformFn: transformRESTAddressToSDKAddress2,
|
|
2482
|
-
paths: [{ path: "entity.businessLocationDetails.address" }]
|
|
2483
|
-
}
|
|
2484
|
-
])
|
|
2485
|
-
)
|
|
2486
|
-
)();
|
|
2487
2358
|
var onOperationDeleted = EventDefinition(
|
|
2488
2359
|
"wix.restaurants.operations.v1.operation_deleted",
|
|
2489
2360
|
true,
|
|
@@ -2549,7 +2420,6 @@ function customQueryOperation(httpClient) {
|
|
|
2549
2420
|
return overloadedQuery;
|
|
2550
2421
|
}
|
|
2551
2422
|
var listBlockedPeriods4 = /* @__PURE__ */ createRESTModule(listBlockedPeriods3);
|
|
2552
|
-
var createOperation4 = /* @__PURE__ */ createRESTModule(createOperation3);
|
|
2553
2423
|
var getOperation4 = /* @__PURE__ */ createRESTModule(getOperation3);
|
|
2554
2424
|
var updateOperation4 = /* @__PURE__ */ createRESTModule(updateOperation3);
|
|
2555
2425
|
var deleteOperation4 = /* @__PURE__ */ createRESTModule(deleteOperation3);
|
|
@@ -2582,7 +2452,6 @@ var validateOperationAddress4 = /* @__PURE__ */ createRESTModule(validateOperati
|
|
|
2582
2452
|
var bulkUpdateOperationTags4 = /* @__PURE__ */ createRESTModule(bulkUpdateOperationTags3);
|
|
2583
2453
|
var bulkUpdateOperationTagsByFilter4 = /* @__PURE__ */ createRESTModule(bulkUpdateOperationTagsByFilter3);
|
|
2584
2454
|
var queryOperation4 = /* @__PURE__ */ createRESTModule(customQueryOperation);
|
|
2585
|
-
var onOperationCreated2 = createEventModule(onOperationCreated);
|
|
2586
2455
|
var onOperationDeleted2 = createEventModule(onOperationDeleted);
|
|
2587
2456
|
var onOperationUpdated2 = createEventModule(onOperationUpdated);
|
|
2588
2457
|
export {
|
|
@@ -2624,7 +2493,6 @@ export {
|
|
|
2624
2493
|
calculateFirstAvailableTimeSlotsForItem4 as calculateFirstAvailableTimeSlotsForItem,
|
|
2625
2494
|
calculateFirstAvailableTimeSlotsPerMenu4 as calculateFirstAvailableTimeSlotsPerMenu,
|
|
2626
2495
|
calculateFirstAvailableTimeSlotsPerOperation4 as calculateFirstAvailableTimeSlotsPerOperation,
|
|
2627
|
-
createOperation4 as createOperation,
|
|
2628
2496
|
deleteOperation4 as deleteOperation,
|
|
2629
2497
|
getOperation4 as getOperation,
|
|
2630
2498
|
listAvailableDatesInRange4 as listAvailableDatesInRange,
|
|
@@ -2635,7 +2503,6 @@ export {
|
|
|
2635
2503
|
listFirstAvailableTimeSlotsForMenus4 as listFirstAvailableTimeSlotsForMenus,
|
|
2636
2504
|
listFirstAvailableTimeSlotsForOperations4 as listFirstAvailableTimeSlotsForOperations,
|
|
2637
2505
|
listOperations4 as listOperations,
|
|
2638
|
-
onOperationCreated2 as onOperationCreated,
|
|
2639
2506
|
onOperationDeleted2 as onOperationDeleted,
|
|
2640
2507
|
onOperationUpdated2 as onOperationUpdated,
|
|
2641
2508
|
queryOperation4 as queryOperation,
|