@wix/auto_sdk_restaurants_operations 1.0.104 → 1.0.105
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.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -46
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -46
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +4 -46
- package/build/internal/es/index.typings.d.mts +4 -46
- package/package.json +2 -2
|
@@ -3103,7 +3103,6 @@ interface OperationDeletedEnvelope {
|
|
|
3103
3103
|
* @eventType wix.restaurants.operations.v1.operation_deleted
|
|
3104
3104
|
* @serviceIdentifier wix.restaurants.operations.v1.OperationsService
|
|
3105
3105
|
* @slug deleted
|
|
3106
|
-
* @documentationMaturity preview
|
|
3107
3106
|
*/
|
|
3108
3107
|
declare function onOperationDeleted(handler: (event: OperationDeletedEnvelope) => void | Promise<void>): void;
|
|
3109
3108
|
interface OperationUpdatedEnvelope {
|
|
@@ -3121,7 +3120,6 @@ interface OperationUpdatedEnvelope {
|
|
|
3121
3120
|
* @eventType wix.restaurants.operations.v1.operation_updated
|
|
3122
3121
|
* @serviceIdentifier wix.restaurants.operations.v1.OperationsService
|
|
3123
3122
|
* @slug updated
|
|
3124
|
-
* @documentationMaturity preview
|
|
3125
3123
|
*/
|
|
3126
3124
|
declare function onOperationUpdated(handler: (event: OperationUpdatedEnvelope) => void | Promise<void>): void;
|
|
3127
3125
|
/**
|
|
@@ -3146,7 +3144,6 @@ interface ListBlockedPeriodsOptions {
|
|
|
3146
3144
|
* Retrieves an operation.
|
|
3147
3145
|
* @param operationId - ID of the operation to retrieve.
|
|
3148
3146
|
* @public
|
|
3149
|
-
* @documentationMaturity preview
|
|
3150
3147
|
* @requiredField operationId
|
|
3151
3148
|
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3152
3149
|
* @applicableIdentity APP
|
|
@@ -3167,7 +3164,6 @@ declare function getOperation(operationId: string): Promise<NonNullablePaths<Ope
|
|
|
3167
3164
|
* and prevents unintended overwrites.
|
|
3168
3165
|
* @param _id - Operation ID.
|
|
3169
3166
|
* @public
|
|
3170
|
-
* @documentationMaturity preview
|
|
3171
3167
|
* @requiredField _id
|
|
3172
3168
|
* @requiredField operation
|
|
3173
3169
|
* @requiredField operation.revision
|
|
@@ -3244,7 +3240,6 @@ interface UpdateOperation {
|
|
|
3244
3240
|
* Deletes an operation.
|
|
3245
3241
|
* @param operationId - ID of the operation to delete.
|
|
3246
3242
|
* @public
|
|
3247
|
-
* @documentationMaturity preview
|
|
3248
3243
|
* @requiredField operationId
|
|
3249
3244
|
* @permissionId RESTAURANTS.OPERATION_DELETE
|
|
3250
3245
|
* @applicableIdentity APP
|
|
@@ -3270,7 +3265,6 @@ declare function deleteOperation(operationId: string): Promise<void>;
|
|
|
3270
3265
|
*
|
|
3271
3266
|
* The following `OperationsQueryBuilder` functions are supported for `queryOperations()`. For a full description of the operations object, see the object returned for the [`items`](/operations/operations-query-result/items) property in `OperationsQueryResult`.
|
|
3272
3267
|
* @public
|
|
3273
|
-
* @documentationMaturity preview
|
|
3274
3268
|
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3275
3269
|
* @applicableIdentity APP
|
|
3276
3270
|
* @fqn wix.restaurants.operations.v1.OperationsService.QueryOperation
|
|
@@ -3292,70 +3286,50 @@ interface OperationsQueryResult extends QueryCursorResult {
|
|
|
3292
3286
|
interface OperationsQueryBuilder {
|
|
3293
3287
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
3294
3288
|
* @param value - Value to compare against.
|
|
3295
|
-
* @documentationMaturity preview
|
|
3296
3289
|
*/
|
|
3297
3290
|
eq: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'default' | 'onlineOrderingStatus' | 'defaultFulfillmentType' | 'businessLocationId' | 'businessLocationDetails.archived', value: any) => OperationsQueryBuilder;
|
|
3298
3291
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
3299
3292
|
* @param value - Value to compare against.
|
|
3300
|
-
* @documentationMaturity preview
|
|
3301
3293
|
*/
|
|
3302
3294
|
ne: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'default' | 'onlineOrderingStatus' | 'defaultFulfillmentType' | 'businessLocationId' | 'businessLocationDetails.archived', value: any) => OperationsQueryBuilder;
|
|
3303
3295
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
3304
3296
|
* @param value - Value to compare against.
|
|
3305
|
-
* @documentationMaturity preview
|
|
3306
3297
|
*/
|
|
3307
3298
|
ge: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'businessLocationId', value: any) => OperationsQueryBuilder;
|
|
3308
3299
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
3309
3300
|
* @param value - Value to compare against.
|
|
3310
|
-
* @documentationMaturity preview
|
|
3311
3301
|
*/
|
|
3312
3302
|
gt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'businessLocationId', value: any) => OperationsQueryBuilder;
|
|
3313
3303
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
3314
3304
|
* @param value - Value to compare against.
|
|
3315
|
-
* @documentationMaturity preview
|
|
3316
3305
|
*/
|
|
3317
3306
|
le: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'businessLocationId', value: any) => OperationsQueryBuilder;
|
|
3318
3307
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
3319
3308
|
* @param value - Value to compare against.
|
|
3320
|
-
* @documentationMaturity preview
|
|
3321
3309
|
*/
|
|
3322
3310
|
lt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'businessLocationId', value: any) => OperationsQueryBuilder;
|
|
3323
3311
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
3324
3312
|
* @param string - String to compare against. Case-insensitive.
|
|
3325
|
-
* @documentationMaturity preview
|
|
3326
3313
|
*/
|
|
3327
3314
|
startsWith: (propertyName: '_id' | 'name' | 'businessLocationId', value: string) => OperationsQueryBuilder;
|
|
3328
3315
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
3329
3316
|
* @param values - List of values to compare against.
|
|
3330
|
-
* @documentationMaturity preview
|
|
3331
3317
|
*/
|
|
3332
3318
|
hasSome: (propertyName: 'fulfillmentIds', value: any[]) => OperationsQueryBuilder;
|
|
3333
3319
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
3334
3320
|
* @param values - List of values to compare against.
|
|
3335
|
-
* @documentationMaturity preview
|
|
3336
3321
|
*/
|
|
3337
3322
|
hasAll: (propertyName: 'fulfillmentIds', value: any[]) => OperationsQueryBuilder;
|
|
3338
|
-
/** @documentationMaturity preview */
|
|
3339
3323
|
in: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'default' | 'onlineOrderingStatus' | 'defaultFulfillmentType' | 'businessLocationId' | 'businessLocationDetails.archived', value: any) => OperationsQueryBuilder;
|
|
3340
|
-
/** @documentationMaturity preview */
|
|
3341
3324
|
exists: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'default' | 'fulfillmentIds' | 'onlineOrderingStatus' | 'defaultFulfillmentType' | 'businessLocationId' | 'businessLocationDetails.archived', value: boolean) => OperationsQueryBuilder;
|
|
3342
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
3343
|
-
* @documentationMaturity preview
|
|
3344
|
-
*/
|
|
3325
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
3345
3326
|
ascending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'name' | 'profileId' | 'default' | 'fulfillmentIds' | 'onlineOrderingStatus' | 'defaultFulfillmentType' | 'businessLocationId' | 'businessLocationDetails.archived'>) => OperationsQueryBuilder;
|
|
3346
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
3347
|
-
* @documentationMaturity preview
|
|
3348
|
-
*/
|
|
3327
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
3349
3328
|
descending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'name' | 'profileId' | 'default' | 'fulfillmentIds' | 'onlineOrderingStatus' | 'defaultFulfillmentType' | 'businessLocationId' | 'businessLocationDetails.archived'>) => OperationsQueryBuilder;
|
|
3350
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
3351
|
-
* @documentationMaturity preview
|
|
3352
|
-
*/
|
|
3329
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
3353
3330
|
limit: (limit: number) => OperationsQueryBuilder;
|
|
3354
|
-
/** @param cursor - A pointer to specific record
|
|
3355
|
-
* @documentationMaturity preview
|
|
3356
|
-
*/
|
|
3331
|
+
/** @param cursor - A pointer to specific record */
|
|
3357
3332
|
skipTo: (cursor: string) => OperationsQueryBuilder;
|
|
3358
|
-
/** @documentationMaturity preview */
|
|
3359
3333
|
find: () => Promise<OperationsQueryResult>;
|
|
3360
3334
|
}
|
|
3361
3335
|
/**
|
|
@@ -3444,7 +3418,6 @@ declare const utils: {
|
|
|
3444
3418
|
* Retrieves a list of operations.
|
|
3445
3419
|
* The result will be sorted by created date in ascending order.
|
|
3446
3420
|
* @public
|
|
3447
|
-
* @documentationMaturity preview
|
|
3448
3421
|
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3449
3422
|
* @applicableIdentity APP
|
|
3450
3423
|
* @fqn wix.restaurants.operations.v1.OperationsService.ListOperations
|
|
@@ -3458,7 +3431,6 @@ declare function listOperations(): Promise<NonNullablePaths<ListOperationsRespon
|
|
|
3458
3431
|
* Conversely, if a delivery address` is given, the response may includes non-delivery fulfillment options along with delivery fulfillment methods that are applicable to the given address, ensuring the address falls within the defined delivery area of these methods.
|
|
3459
3432
|
* @param operationId - Operation ID. Returned fulfillment options will belong to this operation.
|
|
3460
3433
|
* @public
|
|
3461
|
-
* @documentationMaturity preview
|
|
3462
3434
|
* @requiredField operationId
|
|
3463
3435
|
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3464
3436
|
* @applicableIdentity APP
|
|
@@ -3480,7 +3452,6 @@ interface ListAvailableFulfillmentOptions {
|
|
|
3480
3452
|
* @param operationId - Operation ID.
|
|
3481
3453
|
* Returned fulfillment options will belong to this operation.
|
|
3482
3454
|
* @public
|
|
3483
|
-
* @documentationMaturity preview
|
|
3484
3455
|
* @requiredField operationId
|
|
3485
3456
|
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3486
3457
|
* @applicableIdentity APP
|
|
@@ -3505,7 +3476,6 @@ interface ListFirstAvailableTimeSlotForFulfillmentTypesOptions {
|
|
|
3505
3476
|
* Only fulfillment methods capable of delivering to the specified address are considered when calculating time slot availability.
|
|
3506
3477
|
* @param operationId - Operation ID.
|
|
3507
3478
|
* @public
|
|
3508
|
-
* @documentationMaturity preview
|
|
3509
3479
|
* @requiredField operationId
|
|
3510
3480
|
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3511
3481
|
* @applicableIdentity APP
|
|
@@ -3527,7 +3497,6 @@ interface CalculateFirstAvailableTimeSlotPerFulfillmentTypeOptions {
|
|
|
3527
3497
|
* @param operationIds - Operation ID.
|
|
3528
3498
|
* Returned fulfillment options will belong to this operation.
|
|
3529
3499
|
* @public
|
|
3530
|
-
* @documentationMaturity preview
|
|
3531
3500
|
* @requiredField operationIds
|
|
3532
3501
|
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3533
3502
|
* @applicableIdentity APP
|
|
@@ -3552,7 +3521,6 @@ interface ListFirstAvailableTimeSlotsForOperationsOptions {
|
|
|
3552
3521
|
* Only fulfillment methods capable of delivering to the specified address are considered when calculating time slot availability.
|
|
3553
3522
|
* @param operationIds - Operation IDs.
|
|
3554
3523
|
* @public
|
|
3555
|
-
* @documentationMaturity preview
|
|
3556
3524
|
* @requiredField operationIds
|
|
3557
3525
|
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3558
3526
|
* @applicableIdentity APP
|
|
@@ -3572,7 +3540,6 @@ interface CalculateFirstAvailableTimeSlotsPerOperationOptions {
|
|
|
3572
3540
|
* @param operationId - Operation ID.
|
|
3573
3541
|
* Returned timeslots that are belong to this operation.
|
|
3574
3542
|
* @public
|
|
3575
|
-
* @documentationMaturity preview
|
|
3576
3543
|
* @requiredField operationId
|
|
3577
3544
|
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3578
3545
|
* @applicableIdentity APP
|
|
@@ -3599,7 +3566,6 @@ interface ListFirstAvailableTimeSlotsForMenusOptions {
|
|
|
3599
3566
|
* Only fulfillment methods capable of delivering to the specified address are considered when calculating time slot availability.
|
|
3600
3567
|
* @param operationId - Operation ID.
|
|
3601
3568
|
* @public
|
|
3602
|
-
* @documentationMaturity preview
|
|
3603
3569
|
* @requiredField operationId
|
|
3604
3570
|
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3605
3571
|
* @applicableIdentity APP
|
|
@@ -3625,7 +3591,6 @@ interface CalculateFirstAvailableTimeSlotsPerMenuOptions {
|
|
|
3625
3591
|
* Only fulfillment methods capable of delivering to the specified address are considered when calculating time slot availability.
|
|
3626
3592
|
* @param menuId - Menu ID to get the first available time slots for.
|
|
3627
3593
|
* @public
|
|
3628
|
-
* @documentationMaturity preview
|
|
3629
3594
|
* @requiredField menuId
|
|
3630
3595
|
* @requiredField operationId
|
|
3631
3596
|
* @requiredField options.itemId
|
|
@@ -3658,7 +3623,6 @@ interface CalculateFirstAvailableTimeSlotsForItemOptions {
|
|
|
3658
3623
|
* @param operationId - Operation ID.
|
|
3659
3624
|
* The returned fulfillment options will belong to this operation.
|
|
3660
3625
|
* @public
|
|
3661
|
-
* @documentationMaturity preview
|
|
3662
3626
|
* @requiredField operationId
|
|
3663
3627
|
* @requiredField options.date
|
|
3664
3628
|
* @requiredField options.date.day
|
|
@@ -3689,7 +3653,6 @@ interface ListAvailableTimeSlotsForDateOptions {
|
|
|
3689
3653
|
* Only fulfillment methods capable of delivering to the specified address are considered when calculating time slot availability.
|
|
3690
3654
|
* @param operationId - Operation ID.
|
|
3691
3655
|
* @public
|
|
3692
|
-
* @documentationMaturity preview
|
|
3693
3656
|
* @requiredField operationId
|
|
3694
3657
|
* @requiredField options.date
|
|
3695
3658
|
* @requiredField options.date.day
|
|
@@ -3717,7 +3680,6 @@ interface CalculateAvailableTimeSlotsForDateOptions {
|
|
|
3717
3680
|
* @param operationId - Operation ID.
|
|
3718
3681
|
* The returned fulfillment options will belong to this operation.
|
|
3719
3682
|
* @public
|
|
3720
|
-
* @documentationMaturity preview
|
|
3721
3683
|
* @requiredField operationId
|
|
3722
3684
|
* @requiredField options.from
|
|
3723
3685
|
* @requiredField options.until
|
|
@@ -3750,7 +3712,6 @@ interface ListAvailableDatesInRangeOptions {
|
|
|
3750
3712
|
* Only fulfillment methods capable of delivering to the specified address are considered when calculating time slot availability.
|
|
3751
3713
|
* @param operationId - Operation ID.
|
|
3752
3714
|
* @public
|
|
3753
|
-
* @documentationMaturity preview
|
|
3754
3715
|
* @requiredField operationId
|
|
3755
3716
|
* @requiredField options.from
|
|
3756
3717
|
* @requiredField options.until
|
|
@@ -3785,7 +3746,6 @@ interface CalculateAvailableDatesInRangeOptions {
|
|
|
3785
3746
|
* If the address is invalid, the response includes specific violations.
|
|
3786
3747
|
* @param operationId - The ID of the operation whose address should be validated.
|
|
3787
3748
|
* @public
|
|
3788
|
-
* @documentationMaturity preview
|
|
3789
3749
|
* @requiredField operationId
|
|
3790
3750
|
* @permissionId RESTAURANTS.OPERATION_READ
|
|
3791
3751
|
* @applicableIdentity APP
|
|
@@ -3798,7 +3758,6 @@ declare function validateOperationAddress(operationId: string): Promise<NonNulla
|
|
|
3798
3758
|
* If you specify a tag in both `assignTags` and `unassignTags`, it is assigned.
|
|
3799
3759
|
* @param operationIds - IDs of the operations to update tags for.
|
|
3800
3760
|
* @public
|
|
3801
|
-
* @documentationMaturity preview
|
|
3802
3761
|
* @requiredField operationIds
|
|
3803
3762
|
* @permissionId RESTAURANTS.OPERATION_UPDATE_TAGS
|
|
3804
3763
|
* @applicableIdentity APP
|
|
@@ -3819,7 +3778,6 @@ interface BulkUpdateOperationTagsOptions {
|
|
|
3819
3778
|
* If you specify a tag in both `assignTags` and `unassignTags`, it is assigned.
|
|
3820
3779
|
* @param filter - Filter that determines which operations to update tags for.
|
|
3821
3780
|
* @public
|
|
3822
|
-
* @documentationMaturity preview
|
|
3823
3781
|
* @requiredField filter
|
|
3824
3782
|
* @permissionId RESTAURANTS.OPERATION_UPDATE_TAGS
|
|
3825
3783
|
* @applicableIdentity APP
|