@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
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { 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.js';
|
|
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.js';
|
|
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 };
|
package/build/cjs/index.js
CHANGED
|
@@ -58,7 +58,6 @@ __export(index_exports, {
|
|
|
58
58
|
calculateFirstAvailableTimeSlotsForItem: () => calculateFirstAvailableTimeSlotsForItem4,
|
|
59
59
|
calculateFirstAvailableTimeSlotsPerMenu: () => calculateFirstAvailableTimeSlotsPerMenu4,
|
|
60
60
|
calculateFirstAvailableTimeSlotsPerOperation: () => calculateFirstAvailableTimeSlotsPerOperation4,
|
|
61
|
-
createOperation: () => createOperation4,
|
|
62
61
|
deleteOperation: () => deleteOperation4,
|
|
63
62
|
getOperation: () => getOperation4,
|
|
64
63
|
listAvailableDatesInRange: () => listAvailableDatesInRange4,
|
|
@@ -69,7 +68,6 @@ __export(index_exports, {
|
|
|
69
68
|
listFirstAvailableTimeSlotsForMenus: () => listFirstAvailableTimeSlotsForMenus4,
|
|
70
69
|
listFirstAvailableTimeSlotsForOperations: () => listFirstAvailableTimeSlotsForOperations4,
|
|
71
70
|
listOperations: () => listOperations4,
|
|
72
|
-
onOperationCreated: () => onOperationCreated2,
|
|
73
71
|
onOperationDeleted: () => onOperationDeleted2,
|
|
74
72
|
onOperationUpdated: () => onOperationUpdated2,
|
|
75
73
|
queryOperation: () => queryOperation4,
|
|
@@ -271,69 +269,6 @@ function listBlockedPeriods(payload) {
|
|
|
271
269
|
}
|
|
272
270
|
return __listBlockedPeriods;
|
|
273
271
|
}
|
|
274
|
-
function createOperation(payload) {
|
|
275
|
-
function __createOperation({ host }) {
|
|
276
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
277
|
-
{
|
|
278
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
279
|
-
paths: [
|
|
280
|
-
{ path: "operation.createdDate" },
|
|
281
|
-
{ path: "operation.updatedDate" },
|
|
282
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
283
|
-
]
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
287
|
-
paths: [
|
|
288
|
-
{
|
|
289
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
293
|
-
}
|
|
294
|
-
]
|
|
295
|
-
}
|
|
296
|
-
]);
|
|
297
|
-
const metadata = {
|
|
298
|
-
entityFqdn: "wix.restaurants.operations.v1.operation",
|
|
299
|
-
method: "POST",
|
|
300
|
-
methodFqn: "wix.restaurants.operations.v1.OperationsService.CreateOperation",
|
|
301
|
-
packageName: PACKAGE_NAME,
|
|
302
|
-
migrationOptions: {
|
|
303
|
-
optInTransformResponse: true
|
|
304
|
-
},
|
|
305
|
-
url: resolveWixRestaurantsOperationsV1OperationsServiceUrl({
|
|
306
|
-
protoPath: "/v1/operations",
|
|
307
|
-
data: serializedData,
|
|
308
|
-
host
|
|
309
|
-
}),
|
|
310
|
-
data: serializedData,
|
|
311
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
312
|
-
{
|
|
313
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
314
|
-
paths: [
|
|
315
|
-
{ path: "operation.createdDate" },
|
|
316
|
-
{ path: "operation.updatedDate" },
|
|
317
|
-
{ path: "operation.pausedUntilOptions.time" }
|
|
318
|
-
]
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
322
|
-
paths: [
|
|
323
|
-
{
|
|
324
|
-
path: "operation.businessLocationDetails.address.geocode.latitude"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
path: "operation.businessLocationDetails.address.geocode.longitude"
|
|
328
|
-
}
|
|
329
|
-
]
|
|
330
|
-
}
|
|
331
|
-
])
|
|
332
|
-
};
|
|
333
|
-
return metadata;
|
|
334
|
-
}
|
|
335
|
-
return __createOperation;
|
|
336
|
-
}
|
|
337
272
|
function getOperation(payload) {
|
|
338
273
|
function __getOperation({ host }) {
|
|
339
274
|
const metadata = {
|
|
@@ -1391,6 +1326,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
|
1391
1326
|
Namespace2["BASE44"] = "BASE44";
|
|
1392
1327
|
Namespace2["CHANNELS"] = "CHANNELS";
|
|
1393
1328
|
Namespace2["NAUTILUS"] = "NAUTILUS";
|
|
1329
|
+
Namespace2["SYMPHONY"] = "SYMPHONY";
|
|
1394
1330
|
return Namespace2;
|
|
1395
1331
|
})(Namespace || {});
|
|
1396
1332
|
var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
@@ -1440,44 +1376,6 @@ async function listBlockedPeriods2(operationId, options) {
|
|
|
1440
1376
|
throw transformedError;
|
|
1441
1377
|
}
|
|
1442
1378
|
}
|
|
1443
|
-
async function createOperation2(operation) {
|
|
1444
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1445
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1446
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ operation }),
|
|
1447
|
-
[
|
|
1448
|
-
{
|
|
1449
|
-
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1450
|
-
paths: [{ path: "operation.businessLocationDetails.address" }]
|
|
1451
|
-
}
|
|
1452
|
-
]
|
|
1453
|
-
);
|
|
1454
|
-
const reqOpts = createOperation(payload);
|
|
1455
|
-
sideEffects?.onSiteCall?.();
|
|
1456
|
-
try {
|
|
1457
|
-
const result = await httpClient.request(reqOpts);
|
|
1458
|
-
sideEffects?.onSuccess?.(result);
|
|
1459
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1460
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1461
|
-
{
|
|
1462
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1463
|
-
paths: [{ path: "operation.businessLocationDetails.address" }]
|
|
1464
|
-
}
|
|
1465
|
-
])
|
|
1466
|
-
)?.operation;
|
|
1467
|
-
} catch (err) {
|
|
1468
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1469
|
-
err,
|
|
1470
|
-
{
|
|
1471
|
-
spreadPathsToArguments: {},
|
|
1472
|
-
explicitPathsToArguments: { operation: "$[0]" },
|
|
1473
|
-
singleArgumentUnchanged: false
|
|
1474
|
-
},
|
|
1475
|
-
["operation"]
|
|
1476
|
-
);
|
|
1477
|
-
sideEffects?.onError?.(err);
|
|
1478
|
-
throw transformedError;
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
1379
|
async function getOperation2(operationId) {
|
|
1482
1380
|
const { httpClient, sideEffects } = arguments[1];
|
|
1483
1381
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2373,13 +2271,6 @@ function listBlockedPeriods3(httpClient) {
|
|
|
2373
2271
|
{ httpClient }
|
|
2374
2272
|
);
|
|
2375
2273
|
}
|
|
2376
|
-
function createOperation3(httpClient) {
|
|
2377
|
-
return (operation) => createOperation2(
|
|
2378
|
-
operation,
|
|
2379
|
-
// @ts-ignore
|
|
2380
|
-
{ httpClient }
|
|
2381
|
-
);
|
|
2382
|
-
}
|
|
2383
2274
|
function getOperation3(httpClient) {
|
|
2384
2275
|
return (operationId) => getOperation2(
|
|
2385
2276
|
operationId,
|
|
@@ -2541,27 +2432,6 @@ function bulkUpdateOperationTagsByFilter3(httpClient) {
|
|
|
2541
2432
|
{ httpClient }
|
|
2542
2433
|
);
|
|
2543
2434
|
}
|
|
2544
|
-
var onOperationCreated = (0, import_sdk_types.EventDefinition)(
|
|
2545
|
-
"wix.restaurants.operations.v1.operation_created",
|
|
2546
|
-
true,
|
|
2547
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
2548
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
|
2549
|
-
{
|
|
2550
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2551
|
-
paths: [
|
|
2552
|
-
{ path: "entity.createdDate" },
|
|
2553
|
-
{ path: "entity.updatedDate" },
|
|
2554
|
-
{ path: "entity.pausedUntilOptions.time" },
|
|
2555
|
-
{ path: "metadata.eventTime" }
|
|
2556
|
-
]
|
|
2557
|
-
},
|
|
2558
|
-
{
|
|
2559
|
-
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2560
|
-
paths: [{ path: "entity.businessLocationDetails.address" }]
|
|
2561
|
-
}
|
|
2562
|
-
])
|
|
2563
|
-
)
|
|
2564
|
-
)();
|
|
2565
2435
|
var onOperationDeleted = (0, import_sdk_types.EventDefinition)(
|
|
2566
2436
|
"wix.restaurants.operations.v1.operation_deleted",
|
|
2567
2437
|
true,
|
|
@@ -2627,7 +2497,6 @@ function customQueryOperation(httpClient) {
|
|
|
2627
2497
|
return overloadedQuery;
|
|
2628
2498
|
}
|
|
2629
2499
|
var listBlockedPeriods4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listBlockedPeriods3);
|
|
2630
|
-
var createOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOperation3);
|
|
2631
2500
|
var getOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOperation3);
|
|
2632
2501
|
var updateOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateOperation3);
|
|
2633
2502
|
var deleteOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteOperation3);
|
|
@@ -2660,7 +2529,6 @@ var validateOperationAddress4 = /* @__PURE__ */ (0, import_rest_modules3.createR
|
|
|
2660
2529
|
var bulkUpdateOperationTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateOperationTags3);
|
|
2661
2530
|
var bulkUpdateOperationTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateOperationTagsByFilter3);
|
|
2662
2531
|
var queryOperation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryOperation);
|
|
2663
|
-
var onOperationCreated2 = (0, import_event_definition_modules.createEventModule)(onOperationCreated);
|
|
2664
2532
|
var onOperationDeleted2 = (0, import_event_definition_modules.createEventModule)(onOperationDeleted);
|
|
2665
2533
|
var onOperationUpdated2 = (0, import_event_definition_modules.createEventModule)(onOperationUpdated);
|
|
2666
2534
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -2703,7 +2571,6 @@ var onOperationUpdated2 = (0, import_event_definition_modules.createEventModule)
|
|
|
2703
2571
|
calculateFirstAvailableTimeSlotsForItem,
|
|
2704
2572
|
calculateFirstAvailableTimeSlotsPerMenu,
|
|
2705
2573
|
calculateFirstAvailableTimeSlotsPerOperation,
|
|
2706
|
-
createOperation,
|
|
2707
2574
|
deleteOperation,
|
|
2708
2575
|
getOperation,
|
|
2709
2576
|
listAvailableDatesInRange,
|
|
@@ -2714,7 +2581,6 @@ var onOperationUpdated2 = (0, import_event_definition_modules.createEventModule)
|
|
|
2714
2581
|
listFirstAvailableTimeSlotsForMenus,
|
|
2715
2582
|
listFirstAvailableTimeSlotsForOperations,
|
|
2716
2583
|
listOperations,
|
|
2717
|
-
onOperationCreated,
|
|
2718
2584
|
onOperationDeleted,
|
|
2719
2585
|
onOperationUpdated,
|
|
2720
2586
|
queryOperation,
|