@wix/auto_sdk_bookings_services 1.0.321 → 1.0.323
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/{bookings-services-v2-service-services.universal-BOiUvdZR.d.ts → bookings-services-v2-service-services.universal-DW95Ep5o.d.ts} +72 -15
- package/build/cjs/index.d.ts +12 -12
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +55 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-BOiUvdZR.d.mts → bookings-services-v2-service-services.universal-DW95Ep5o.d.mts} +72 -15
- package/build/es/index.d.mts +12 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +55 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal--_3hbJpT.d.ts → bookings-services-v2-service-services.universal-D6rmLi0b.d.ts} +33 -34
- package/build/internal/cjs/index.d.ts +12 -12
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +16 -25
- package/build/internal/es/{bookings-services-v2-service-services.universal--_3hbJpT.d.mts → bookings-services-v2-service-services.universal-D6rmLi0b.d.mts} +33 -34
- package/build/internal/es/index.d.mts +12 -12
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +16 -25
- package/package.json +2 -2
|
@@ -311,6 +311,17 @@ interface Payment extends PaymentRateOneOf {
|
|
|
311
311
|
* @readonly
|
|
312
312
|
*/
|
|
313
313
|
discountInfo?: DiscountInfo;
|
|
314
|
+
/**
|
|
315
|
+
* Mandatory fees the customer pays in addition to the service price, for example a cleaning fee.
|
|
316
|
+
* Fees aren't part of the deposit.
|
|
317
|
+
*
|
|
318
|
+
* When you update `additionalFees`, the list you send replaces the existing fees. Fees you leave out are removed.
|
|
319
|
+
* To keep a fee, including when you rename it, send it with its existing `id`.
|
|
320
|
+
*
|
|
321
|
+
* Each fee's `amount.currency` is set to the service currency.
|
|
322
|
+
* @maxSize 5
|
|
323
|
+
*/
|
|
324
|
+
additionalFees?: AdditionalFee[];
|
|
314
325
|
}
|
|
315
326
|
/** @oneof */
|
|
316
327
|
interface PaymentRateOneOf {
|
|
@@ -631,7 +642,7 @@ interface AdditionalFee {
|
|
|
631
642
|
*/
|
|
632
643
|
name?: string;
|
|
633
644
|
/**
|
|
634
|
-
* Fee amount in the service currency. For a `PER_UNIT` fee, the amount charged for each unit.
|
|
645
|
+
* Fee amount in the service currency. Must be greater than `0`. For a `PER_UNIT` fee, the amount charged for each unit.
|
|
635
646
|
*
|
|
636
647
|
* Required for each fee you send.
|
|
637
648
|
*/
|
|
@@ -648,7 +659,7 @@ declare enum ChargeType {
|
|
|
648
659
|
PER_RESERVATION = "PER_RESERVATION",
|
|
649
660
|
/**
|
|
650
661
|
* Charged for each duration unit of the reservation, as set in `schedule.availabilityConstraints.durationRange.unitType`.
|
|
651
|
-
* For example, for each
|
|
662
|
+
* For example, for each hour or day. For an overnight service, each day counts as 1 night, from the check-in time to the check-out time on the next day.
|
|
652
663
|
* Charged once when the service has no duration range.
|
|
653
664
|
*/
|
|
654
665
|
PER_UNIT = "PER_UNIT"
|
|
@@ -1508,34 +1519,72 @@ interface HourlyConfig {
|
|
|
1508
1519
|
interface DailyConfig {
|
|
1509
1520
|
/**
|
|
1510
1521
|
* Minimum bookable duration in days. The customer can't book for less than this number of days.
|
|
1522
|
+
* For an overnight service, each day counts as 1 night, from the check-in time to the check-out time on the next day.
|
|
1511
1523
|
* @min 1
|
|
1512
1524
|
* @max 40
|
|
1513
1525
|
*/
|
|
1514
1526
|
minDurationInDays?: number;
|
|
1515
1527
|
/**
|
|
1516
1528
|
* Maximum bookable duration in days. The customer can't book for more than this number of days.
|
|
1529
|
+
* For an overnight service, each day counts as 1 night, from the check-in time to the check-out time on the next day.
|
|
1517
1530
|
*
|
|
1518
1531
|
* Must be greater than or equal to `minDurationInDays`.
|
|
1519
1532
|
* @min 1
|
|
1520
1533
|
* @max 40
|
|
1521
1534
|
*/
|
|
1522
1535
|
maxDurationInDays?: number;
|
|
1536
|
+
/**
|
|
1537
|
+
* Times of day at which each bookable day starts and ends.
|
|
1538
|
+
* For example, check-in at 15:00 and check-out at 11:00 for a vacation house.
|
|
1539
|
+
*
|
|
1540
|
+
* When not set, each bookable day runs from midnight to midnight, the same as `FULL_DAY`.
|
|
1541
|
+
*/
|
|
1542
|
+
timeBoundaries?: TimeBoundaries;
|
|
1523
1543
|
}
|
|
1524
1544
|
/** Times of day at which each bookable day of a daily service starts and ends. */
|
|
1525
1545
|
interface TimeBoundaries extends TimeBoundariesOptionsOneOf {
|
|
1546
|
+
/** Check-in and check-out times, applied to every day of the week. Required when `type` is `OVERNIGHT`. */
|
|
1547
|
+
overnightTimes?: OvernightTimes;
|
|
1548
|
+
/** How the start and end times of each bookable day are set. */
|
|
1549
|
+
type?: TimeBoundariesTypeWithLiterals;
|
|
1526
1550
|
}
|
|
1527
1551
|
/** @oneof */
|
|
1528
1552
|
interface TimeBoundariesOptionsOneOf {
|
|
1553
|
+
/** Check-in and check-out times, applied to every day of the week. Required when `type` is `OVERNIGHT`. */
|
|
1554
|
+
overnightTimes?: OvernightTimes;
|
|
1529
1555
|
}
|
|
1530
1556
|
/** How the start and end times of each bookable day are set. */
|
|
1531
1557
|
declare enum TimeBoundariesType {
|
|
1532
1558
|
/** Each bookable day runs from midnight to midnight. */
|
|
1533
|
-
FULL_DAY = "FULL_DAY"
|
|
1559
|
+
FULL_DAY = "FULL_DAY",
|
|
1560
|
+
/**
|
|
1561
|
+
* Each booking checks in at `overnightTimes.checkInTime` and checks out on a later day
|
|
1562
|
+
* at `overnightTimes.checkOutTime`. Each day counts as 1 night, from the check-in time to the check-out time on the next day.
|
|
1563
|
+
* @documentationMaturity preview
|
|
1564
|
+
*/
|
|
1565
|
+
OVERNIGHT = "OVERNIGHT"
|
|
1534
1566
|
}
|
|
1535
1567
|
/** @enumType */
|
|
1536
|
-
type TimeBoundariesTypeWithLiterals = TimeBoundariesType | 'FULL_DAY';
|
|
1537
|
-
/**
|
|
1568
|
+
type TimeBoundariesTypeWithLiterals = TimeBoundariesType | 'FULL_DAY' | 'OVERNIGHT';
|
|
1569
|
+
/**
|
|
1570
|
+
* Check-in and check-out times of a daily service whose bookings run overnight.
|
|
1571
|
+
*
|
|
1572
|
+
* Neither time can be `00:00`. `checkOutTime` must be earlier than or the same as `checkInTime`.
|
|
1573
|
+
* If they're the same, each night lasts 24 hours. If a time breaks these rules, the call fails with `INVALID_OVERNIGHT_TIMES`.
|
|
1574
|
+
*/
|
|
1538
1575
|
interface OvernightTimes {
|
|
1576
|
+
/**
|
|
1577
|
+
* Check-in time in `HH:mm` format, on the hour or half hour.
|
|
1578
|
+
* Evaluated in the business time zone. For example, `15:00`.
|
|
1579
|
+
* @format LOCAL_TIME
|
|
1580
|
+
*/
|
|
1581
|
+
checkInTime?: string;
|
|
1582
|
+
/**
|
|
1583
|
+
* Check-out time on the day after the last booked night, in `HH:mm` format, on the hour or half hour.
|
|
1584
|
+
* Evaluated in the business time zone. For example, `11:00`.
|
|
1585
|
+
* @format LOCAL_TIME
|
|
1586
|
+
*/
|
|
1587
|
+
checkOutTime?: string;
|
|
1539
1588
|
}
|
|
1540
1589
|
/**
|
|
1541
1590
|
* Controls how a service's own working hours combine with the working hours of its assigned
|
|
@@ -5658,12 +5707,14 @@ declare function onServiceUpdated(handler: (event: ServiceUpdatedEnvelope) => vo
|
|
|
5658
5707
|
* @param service - Service to create.
|
|
5659
5708
|
* @public
|
|
5660
5709
|
* @requiredField service
|
|
5710
|
+
* @requiredField service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime
|
|
5711
|
+
* @requiredField service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime
|
|
5661
5712
|
* @permissionId BOOKINGS.SERVICES_CREATE
|
|
5662
5713
|
* @applicableIdentity APP
|
|
5663
5714
|
* @returns Created service.
|
|
5664
5715
|
* @fqn wix.bookings.services.v2.ServicesService.CreateService
|
|
5665
5716
|
*/
|
|
5666
|
-
declare function createService(service: Service): Promise<NonNullablePaths<Service, `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.subscription.frequency` | `payment.subscription.firstChargeDate` | `payment.rateType` | `payment.pricingPlanIds` | `payment.addOnOption` | `payment.discountInfo.discountName` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `locations.${number}.custom._id` | `locations.${number}._id` | `locations.${number}.type` | `bookingPolicy._id` | `bookingPolicy.customPolicyDescription.enabled` | `bookingPolicy.customPolicyDescription.description` | `bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicy.cancellationPolicy.enabled` | `bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicy.reschedulePolicy.enabled` | `bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicy.waitlistPolicy.enabled` | `bookingPolicy.waitlistPolicy.capacity` | `bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicy.resourcesPolicy.enabled` | `bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicy.cancellationFeePolicy.cancellationWindows` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `bookingPolicy.intakeFormPolicy.enabled` | `bookingPolicy.intakeFormPolicy.timing` | `bookingPolicy.intakeFormPolicy.completionRequirement` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `schedule.availabilityConstraints.durationRange.unitType` | `staffMemberIds` | `staffMemberDetails.staffMembers` | `staffMemberDetails.staffMembers.${number}.staffMemberId` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.name` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `addOnGroups` | `addOnDetails` | `taxableAddress.taxableAddressType`,
|
|
5717
|
+
declare function createService(service: NonNullablePaths<Service, `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime`, 6>): Promise<NonNullablePaths<Service, `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.subscription.frequency` | `payment.subscription.firstChargeDate` | `payment.rateType` | `payment.pricingPlanIds` | `payment.addOnOption` | `payment.discountInfo.discountName` | `payment.additionalFees` | `payment.additionalFees.${number}._id` | `payment.additionalFees.${number}.name` | `payment.additionalFees.${number}.chargeType` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `locations.${number}.custom._id` | `locations.${number}._id` | `locations.${number}.type` | `bookingPolicy._id` | `bookingPolicy.customPolicyDescription.enabled` | `bookingPolicy.customPolicyDescription.description` | `bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicy.cancellationPolicy.enabled` | `bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicy.reschedulePolicy.enabled` | `bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicy.waitlistPolicy.enabled` | `bookingPolicy.waitlistPolicy.capacity` | `bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicy.resourcesPolicy.enabled` | `bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicy.cancellationFeePolicy.cancellationWindows` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `bookingPolicy.intakeFormPolicy.enabled` | `bookingPolicy.intakeFormPolicy.timing` | `bookingPolicy.intakeFormPolicy.completionRequirement` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.type` | `schedule.availabilityConstraints.durationRange.unitType` | `staffMemberIds` | `staffMemberDetails.staffMembers` | `staffMemberDetails.staffMembers.${number}.staffMemberId` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.name` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `addOnGroups` | `addOnDetails` | `taxableAddress.taxableAddressType`, 6> & {
|
|
5667
5718
|
__validationErrorsType?: CreateServiceValidationErrors;
|
|
5668
5719
|
}>;
|
|
5669
5720
|
/**
|
|
@@ -5674,11 +5725,13 @@ declare function createService(service: Service): Promise<NonNullablePaths<Servi
|
|
|
5674
5725
|
* @param services - Services to create.
|
|
5675
5726
|
* @public
|
|
5676
5727
|
* @requiredField services
|
|
5728
|
+
* @requiredField services.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime
|
|
5729
|
+
* @requiredField services.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime
|
|
5677
5730
|
* @permissionId BOOKINGS.SERVICES_CREATE
|
|
5678
5731
|
* @applicableIdentity APP
|
|
5679
5732
|
* @fqn wix.bookings.services.v2.ServicesService.BulkCreateServices
|
|
5680
5733
|
*/
|
|
5681
|
-
declare function bulkCreateServices(services: Service[], options?: BulkCreateServicesOptions): Promise<NonNullablePaths<BulkCreateServicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.type` | `results.${number}.item.category._id` | `results.${number}.item.form._id` | `results.${number}.item.payment.rateType` | `results.${number}.item.payment.addOnOption` | `results.${number}.item.bookingPolicy._id` | `results.${number}.item.taxableAddress.taxableAddressType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4> & {
|
|
5734
|
+
declare function bulkCreateServices(services: NonNullablePaths<Service, `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime`, 6>[], options?: BulkCreateServicesOptions): Promise<NonNullablePaths<BulkCreateServicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.type` | `results.${number}.item.category._id` | `results.${number}.item.form._id` | `results.${number}.item.payment.rateType` | `results.${number}.item.payment.addOnOption` | `results.${number}.item.bookingPolicy._id` | `results.${number}.item.taxableAddress.taxableAddressType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4> & {
|
|
5682
5735
|
__validationErrorsType?: BulkCreateServicesValidationErrors;
|
|
5683
5736
|
}>;
|
|
5684
5737
|
interface BulkCreateServicesOptions {
|
|
@@ -5709,7 +5762,7 @@ interface BulkCreateServicesOptions {
|
|
|
5709
5762
|
* @returns Retrieved service.
|
|
5710
5763
|
* @fqn wix.bookings.services.v2.ServicesService.GetService
|
|
5711
5764
|
*/
|
|
5712
|
-
declare function getService(serviceId: string, options?: GetServiceOptions): Promise<NonNullablePaths<Service, `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.subscription.frequency` | `payment.subscription.firstChargeDate` | `payment.rateType` | `payment.pricingPlanIds` | `payment.addOnOption` | `payment.discountInfo.discountName` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `locations.${number}.custom._id` | `locations.${number}._id` | `locations.${number}.type` | `bookingPolicy._id` | `bookingPolicy.customPolicyDescription.enabled` | `bookingPolicy.customPolicyDescription.description` | `bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicy.cancellationPolicy.enabled` | `bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicy.reschedulePolicy.enabled` | `bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicy.waitlistPolicy.enabled` | `bookingPolicy.waitlistPolicy.capacity` | `bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicy.resourcesPolicy.enabled` | `bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicy.cancellationFeePolicy.cancellationWindows` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `bookingPolicy.intakeFormPolicy.enabled` | `bookingPolicy.intakeFormPolicy.timing` | `bookingPolicy.intakeFormPolicy.completionRequirement` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `schedule.availabilityConstraints.durationRange.unitType` | `staffMemberIds` | `staffMemberDetails.staffMembers` | `staffMemberDetails.staffMembers.${number}.staffMemberId` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.name` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `addOnGroups` | `addOnDetails` | `taxableAddress.taxableAddressType`,
|
|
5765
|
+
declare function getService(serviceId: string, options?: GetServiceOptions): Promise<NonNullablePaths<Service, `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.subscription.frequency` | `payment.subscription.firstChargeDate` | `payment.rateType` | `payment.pricingPlanIds` | `payment.addOnOption` | `payment.discountInfo.discountName` | `payment.additionalFees` | `payment.additionalFees.${number}._id` | `payment.additionalFees.${number}.name` | `payment.additionalFees.${number}.chargeType` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `locations.${number}.custom._id` | `locations.${number}._id` | `locations.${number}.type` | `bookingPolicy._id` | `bookingPolicy.customPolicyDescription.enabled` | `bookingPolicy.customPolicyDescription.description` | `bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicy.cancellationPolicy.enabled` | `bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicy.reschedulePolicy.enabled` | `bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicy.waitlistPolicy.enabled` | `bookingPolicy.waitlistPolicy.capacity` | `bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicy.resourcesPolicy.enabled` | `bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicy.cancellationFeePolicy.cancellationWindows` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `bookingPolicy.intakeFormPolicy.enabled` | `bookingPolicy.intakeFormPolicy.timing` | `bookingPolicy.intakeFormPolicy.completionRequirement` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.type` | `schedule.availabilityConstraints.durationRange.unitType` | `staffMemberIds` | `staffMemberDetails.staffMembers` | `staffMemberDetails.staffMembers.${number}.staffMemberId` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.name` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `addOnGroups` | `addOnDetails` | `taxableAddress.taxableAddressType`, 6>>;
|
|
5713
5766
|
interface GetServiceOptions {
|
|
5714
5767
|
/**
|
|
5715
5768
|
* Conditional fields to return.
|
|
@@ -5747,12 +5800,14 @@ interface GetServiceOptions {
|
|
|
5747
5800
|
* @requiredField _id
|
|
5748
5801
|
* @requiredField service
|
|
5749
5802
|
* @requiredField service.revision
|
|
5803
|
+
* @requiredField service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime
|
|
5804
|
+
* @requiredField service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime
|
|
5750
5805
|
* @permissionId BOOKINGS.SERVICES_UPDATE
|
|
5751
5806
|
* @applicableIdentity APP
|
|
5752
5807
|
* @returns Updated service.
|
|
5753
5808
|
* @fqn wix.bookings.services.v2.ServicesService.UpdateService
|
|
5754
5809
|
*/
|
|
5755
|
-
declare function updateService(_id: string, service: NonNullablePaths<UpdateService, `revision`,
|
|
5810
|
+
declare function updateService(_id: string, service: NonNullablePaths<UpdateService, `revision` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime`, 6>): Promise<NonNullablePaths<Service, `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.subscription.frequency` | `payment.subscription.firstChargeDate` | `payment.rateType` | `payment.pricingPlanIds` | `payment.addOnOption` | `payment.discountInfo.discountName` | `payment.additionalFees` | `payment.additionalFees.${number}._id` | `payment.additionalFees.${number}.name` | `payment.additionalFees.${number}.chargeType` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `locations.${number}.custom._id` | `locations.${number}._id` | `locations.${number}.type` | `bookingPolicy._id` | `bookingPolicy.customPolicyDescription.enabled` | `bookingPolicy.customPolicyDescription.description` | `bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicy.cancellationPolicy.enabled` | `bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicy.reschedulePolicy.enabled` | `bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicy.waitlistPolicy.enabled` | `bookingPolicy.waitlistPolicy.capacity` | `bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicy.resourcesPolicy.enabled` | `bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicy.cancellationFeePolicy.cancellationWindows` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `bookingPolicy.intakeFormPolicy.enabled` | `bookingPolicy.intakeFormPolicy.timing` | `bookingPolicy.intakeFormPolicy.completionRequirement` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime` | `schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.type` | `schedule.availabilityConstraints.durationRange.unitType` | `staffMemberIds` | `staffMemberDetails.staffMembers` | `staffMemberDetails.staffMembers.${number}.staffMemberId` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.name` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `addOnGroups` | `addOnDetails` | `taxableAddress.taxableAddressType`, 6> & {
|
|
5756
5811
|
__validationErrorsType?: UpdateServiceValidationErrors;
|
|
5757
5812
|
}>;
|
|
5758
5813
|
interface UpdateService {
|
|
@@ -5955,11 +6010,13 @@ interface UpdateService {
|
|
|
5955
6010
|
* @requiredField options.services.service
|
|
5956
6011
|
* @requiredField options.services.service._id
|
|
5957
6012
|
* @requiredField options.services.service.revision
|
|
6013
|
+
* @requiredField options.services.service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime
|
|
6014
|
+
* @requiredField options.services.service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime
|
|
5958
6015
|
* @permissionId BOOKINGS.SERVICES_UPDATE
|
|
5959
6016
|
* @applicableIdentity APP
|
|
5960
6017
|
* @fqn wix.bookings.services.v2.ServicesService.BulkUpdateServices
|
|
5961
6018
|
*/
|
|
5962
|
-
declare function bulkUpdateServices(options?: NonNullablePaths<BulkUpdateServicesOptions, `services.${number}.service` | `services.${number}.service._id` | `services.${number}.service.revision`,
|
|
6019
|
+
declare function bulkUpdateServices(options?: NonNullablePaths<BulkUpdateServicesOptions, `services.${number}.service` | `services.${number}.service._id` | `services.${number}.service.revision` | `services.${number}.service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `services.${number}.service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime`, 9>): Promise<NonNullablePaths<BulkUpdateServicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.type` | `results.${number}.item.category._id` | `results.${number}.item.form._id` | `results.${number}.item.payment.rateType` | `results.${number}.item.payment.addOnOption` | `results.${number}.item.bookingPolicy._id` | `results.${number}.item.taxableAddress.taxableAddressType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4> & {
|
|
5963
6020
|
__validationErrorsType?: BulkUpdateServicesValidationErrors;
|
|
5964
6021
|
}>;
|
|
5965
6022
|
interface BulkUpdateServicesOptions {
|
|
@@ -6700,7 +6757,7 @@ interface QueryCategoriesOptions {
|
|
|
6700
6757
|
* @applicableIdentity APP
|
|
6701
6758
|
* @fqn wix.bookings.services.v2.ServicesService.SetServiceLocations
|
|
6702
6759
|
*/
|
|
6703
|
-
declare function setServiceLocations(serviceId: string, options?: SetServiceLocationsOptions): Promise<NonNullablePaths<SetServiceLocationsResponse, `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.subscription.frequency` | `service.payment.subscription.firstChargeDate` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.payment.discountInfo.discountName` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.timing` | `service.bookingPolicy.intakeFormPolicy.completionRequirement` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `service.schedule.availabilityConstraints.durationRange.unitType` | `service.staffMemberIds` | `service.staffMemberDetails.staffMembers` | `service.staffMemberDetails.staffMembers.${number}.staffMemberId` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType`,
|
|
6760
|
+
declare function setServiceLocations(serviceId: string, options?: SetServiceLocationsOptions): Promise<NonNullablePaths<SetServiceLocationsResponse, `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.subscription.frequency` | `service.payment.subscription.firstChargeDate` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.payment.discountInfo.discountName` | `service.payment.additionalFees` | `service.payment.additionalFees.${number}._id` | `service.payment.additionalFees.${number}.name` | `service.payment.additionalFees.${number}.chargeType` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.timing` | `service.bookingPolicy.intakeFormPolicy.completionRequirement` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.type` | `service.schedule.availabilityConstraints.durationRange.unitType` | `service.staffMemberIds` | `service.staffMemberDetails.staffMembers` | `service.staffMemberDetails.staffMembers.${number}.staffMemberId` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType`, 7>>;
|
|
6704
6761
|
interface SetServiceLocationsOptions {
|
|
6705
6762
|
/**
|
|
6706
6763
|
* List of locations replacing existing service locations. Omitting an existing location removes it from the service. Specify `removedLocationSessionsAction` to determine the handling of future sessions scheduled at that location.
|
|
@@ -6737,7 +6794,7 @@ interface SetServiceLocationsOptions {
|
|
|
6737
6794
|
* @applicableIdentity APP
|
|
6738
6795
|
* @fqn wix.bookings.services.v2.ServicesService.EnablePricingPlansForService
|
|
6739
6796
|
*/
|
|
6740
|
-
declare function enablePricingPlansForService(serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.subscription.frequency` | `service.payment.subscription.firstChargeDate` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.payment.discountInfo.discountName` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.timing` | `service.bookingPolicy.intakeFormPolicy.completionRequirement` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `service.schedule.availabilityConstraints.durationRange.unitType` | `service.staffMemberIds` | `service.staffMemberDetails.staffMembers` | `service.staffMemberDetails.staffMembers.${number}.staffMemberId` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType`,
|
|
6797
|
+
declare function enablePricingPlansForService(serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.subscription.frequency` | `service.payment.subscription.firstChargeDate` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.payment.discountInfo.discountName` | `service.payment.additionalFees` | `service.payment.additionalFees.${number}._id` | `service.payment.additionalFees.${number}.name` | `service.payment.additionalFees.${number}.chargeType` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.timing` | `service.bookingPolicy.intakeFormPolicy.completionRequirement` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.type` | `service.schedule.availabilityConstraints.durationRange.unitType` | `service.staffMemberIds` | `service.staffMemberDetails.staffMembers` | `service.staffMemberDetails.staffMembers.${number}.staffMemberId` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType`, 7> & {
|
|
6741
6798
|
__applicationErrorsType?: EnablePricingPlansForServiceApplicationErrors;
|
|
6742
6799
|
}>;
|
|
6743
6800
|
/**
|
|
@@ -6754,7 +6811,7 @@ declare function enablePricingPlansForService(serviceId: string, pricingPlanIds:
|
|
|
6754
6811
|
* @applicableIdentity APP
|
|
6755
6812
|
* @fqn wix.bookings.services.v2.ServicesService.DisablePricingPlansForService
|
|
6756
6813
|
*/
|
|
6757
|
-
declare function disablePricingPlansForService(serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<NonNullablePaths<DisablePricingPlansForServiceResponse, `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.subscription.frequency` | `service.payment.subscription.firstChargeDate` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.payment.discountInfo.discountName` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.timing` | `service.bookingPolicy.intakeFormPolicy.completionRequirement` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `service.schedule.availabilityConstraints.durationRange.unitType` | `service.staffMemberIds` | `service.staffMemberDetails.staffMembers` | `service.staffMemberDetails.staffMembers.${number}.staffMemberId` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType`,
|
|
6814
|
+
declare function disablePricingPlansForService(serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<NonNullablePaths<DisablePricingPlansForServiceResponse, `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.subscription.frequency` | `service.payment.subscription.firstChargeDate` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.payment.discountInfo.discountName` | `service.payment.additionalFees` | `service.payment.additionalFees.${number}._id` | `service.payment.additionalFees.${number}.name` | `service.payment.additionalFees.${number}.chargeType` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.timing` | `service.bookingPolicy.intakeFormPolicy.completionRequirement` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.type` | `service.schedule.availabilityConstraints.durationRange.unitType` | `service.staffMemberIds` | `service.staffMemberDetails.staffMembers` | `service.staffMemberDetails.staffMembers.${number}.staffMemberId` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType`, 7> & {
|
|
6758
6815
|
__applicationErrorsType?: DisablePricingPlansForServiceApplicationErrors;
|
|
6759
6816
|
}>;
|
|
6760
6817
|
interface DisablePricingPlansForServiceOptions {
|
|
@@ -6782,7 +6839,7 @@ interface DisablePricingPlansForServiceOptions {
|
|
|
6782
6839
|
* @applicableIdentity APP
|
|
6783
6840
|
* @fqn wix.bookings.services.v2.ServicesService.SetCustomSlug
|
|
6784
6841
|
*/
|
|
6785
|
-
declare function setCustomSlug(serviceId: string, options?: SetCustomSlugOptions): Promise<NonNullablePaths<SetCustomSlugResponse, `slug.name` | `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.subscription.frequency` | `service.payment.subscription.firstChargeDate` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.payment.discountInfo.discountName` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.timing` | `service.bookingPolicy.intakeFormPolicy.completionRequirement` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `service.schedule.availabilityConstraints.durationRange.unitType` | `service.staffMemberIds` | `service.staffMemberDetails.staffMembers` | `service.staffMemberDetails.staffMembers.${number}.staffMemberId` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType`,
|
|
6842
|
+
declare function setCustomSlug(serviceId: string, options?: SetCustomSlugOptions): Promise<NonNullablePaths<SetCustomSlugResponse, `slug.name` | `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.subscription.frequency` | `service.payment.subscription.firstChargeDate` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.payment.discountInfo.discountName` | `service.payment.additionalFees` | `service.payment.additionalFees.${number}._id` | `service.payment.additionalFees.${number}.name` | `service.payment.additionalFees.${number}.chargeType` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.timing` | `service.bookingPolicy.intakeFormPolicy.completionRequirement` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.type` | `service.schedule.availabilityConstraints.durationRange.unitType` | `service.staffMemberIds` | `service.staffMemberDetails.staffMembers` | `service.staffMemberDetails.staffMembers.${number}.staffMemberId` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType`, 7> & {
|
|
6786
6843
|
__applicationErrorsType?: SetCustomSlugApplicationErrors;
|
|
6787
6844
|
__validationErrorsType?: SetCustomSlugValidationErrors;
|
|
6788
6845
|
}>;
|
|
@@ -6876,7 +6933,7 @@ interface ValidateSlugOptions {
|
|
|
6876
6933
|
* @applicableIdentity APP
|
|
6877
6934
|
* @fqn wix.bookings.services.v2.ServicesService.CloneService
|
|
6878
6935
|
*/
|
|
6879
|
-
declare function cloneService(sourceServiceId: string): Promise<NonNullablePaths<CloneServiceResponse, `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.subscription.frequency` | `service.payment.subscription.firstChargeDate` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.payment.discountInfo.discountName` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.timing` | `service.bookingPolicy.intakeFormPolicy.completionRequirement` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `service.schedule.availabilityConstraints.durationRange.unitType` | `service.staffMemberIds` | `service.staffMemberDetails.staffMembers` | `service.staffMemberDetails.staffMembers.${number}.staffMemberId` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType` | `errors`,
|
|
6936
|
+
declare function cloneService(sourceServiceId: string): Promise<NonNullablePaths<CloneServiceResponse, `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.subscription.frequency` | `service.payment.subscription.firstChargeDate` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.payment.discountInfo.discountName` | `service.payment.additionalFees` | `service.payment.additionalFees.${number}._id` | `service.payment.additionalFees.${number}.name` | `service.payment.additionalFees.${number}.chargeType` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.enabled` | `service.bookingPolicy.intakeFormPolicy.timing` | `service.bookingPolicy.intakeFormPolicy.completionRequirement` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.schedule.availabilityConstraints.durationRange.hourOptions.minDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.hourOptions.maxDurationInMinutes` | `service.schedule.availabilityConstraints.durationRange.dayOptions.minDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.maxDurationInDays` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkInTime` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.overnightTimes.checkOutTime` | `service.schedule.availabilityConstraints.durationRange.dayOptions.timeBoundaries.type` | `service.schedule.availabilityConstraints.durationRange.unitType` | `service.staffMemberIds` | `service.staffMemberDetails.staffMembers` | `service.staffMemberDetails.staffMembers.${number}.staffMemberId` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType` | `errors`, 7>>;
|
|
6880
6937
|
/**
|
|
6881
6938
|
* Creates a new add-on group for a service and updates the service's `addOnGroups` array.
|
|
6882
6939
|
* @param addOnGroup - Add-on group to create.
|