@wix/auto_sdk_bookings_services 1.0.29 → 1.0.31
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/src/bookings-services-v2-service-services.context.d.ts +1 -1
- package/build/cjs/src/bookings-services-v2-service-services.meta.d.ts +20 -20
- package/build/cjs/src/bookings-services-v2-service-services.meta.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service-services.public.d.ts +21 -21
- package/build/cjs/src/bookings-services-v2-service-services.public.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service-services.types.d.ts +2 -374
- package/build/cjs/src/bookings-services-v2-service-services.types.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service-services.universal.d.ts +41 -383
- package/build/cjs/src/bookings-services-v2-service-services.universal.js.map +1 -1
- package/build/es/src/bookings-services-v2-service-services.context.d.ts +1 -1
- package/build/es/src/bookings-services-v2-service-services.meta.d.ts +20 -20
- package/build/es/src/bookings-services-v2-service-services.meta.js.map +1 -1
- package/build/es/src/bookings-services-v2-service-services.public.d.ts +21 -21
- package/build/es/src/bookings-services-v2-service-services.public.js.map +1 -1
- package/build/es/src/bookings-services-v2-service-services.types.d.ts +2 -374
- package/build/es/src/bookings-services-v2-service-services.types.js.map +1 -1
- package/build/es/src/bookings-services-v2-service-services.universal.d.ts +41 -383
- package/build/es/src/bookings-services-v2-service-services.universal.js.map +1 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.context.d.ts +1 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.meta.d.ts +20 -20
- package/build/internal/cjs/src/bookings-services-v2-service-services.meta.js.map +1 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.public.d.ts +21 -21
- package/build/internal/cjs/src/bookings-services-v2-service-services.public.js.map +1 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.types.d.ts +2 -376
- package/build/internal/cjs/src/bookings-services-v2-service-services.types.js.map +1 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.universal.d.ts +41 -385
- package/build/internal/cjs/src/bookings-services-v2-service-services.universal.js.map +1 -1
- package/build/internal/es/src/bookings-services-v2-service-services.context.d.ts +1 -1
- package/build/internal/es/src/bookings-services-v2-service-services.meta.d.ts +20 -20
- package/build/internal/es/src/bookings-services-v2-service-services.meta.js.map +1 -1
- package/build/internal/es/src/bookings-services-v2-service-services.public.d.ts +21 -21
- package/build/internal/es/src/bookings-services-v2-service-services.public.js.map +1 -1
- package/build/internal/es/src/bookings-services-v2-service-services.types.d.ts +2 -376
- package/build/internal/es/src/bookings-services-v2-service-services.types.js.map +1 -1
- package/build/internal/es/src/bookings-services-v2-service-services.universal.d.ts +41 -385
- package/build/internal/es/src/bookings-services-v2-service-services.universal.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
2
3
|
export interface Service {
|
|
3
4
|
/**
|
|
@@ -1404,11 +1405,8 @@ export interface AddOn extends AddOnAddOnInfoOneOf {
|
|
|
1404
1405
|
* @maxLength 100
|
|
1405
1406
|
*/
|
|
1406
1407
|
name?: string | null;
|
|
1407
|
-
/**
|
|
1408
|
-
|
|
1409
|
-
* @maxLength 100
|
|
1410
|
-
*/
|
|
1411
|
-
formattedAmount?: string | null;
|
|
1408
|
+
/** The AddOn price. */
|
|
1409
|
+
price?: Money;
|
|
1412
1410
|
}
|
|
1413
1411
|
/** @oneof */
|
|
1414
1412
|
export interface AddOnAddOnInfoOneOf {
|
|
@@ -3975,365 +3973,6 @@ export interface SiteCloned {
|
|
|
3975
3973
|
/** Origin site id. */
|
|
3976
3974
|
originMetaSiteId?: string;
|
|
3977
3975
|
}
|
|
3978
|
-
interface MediaItemNonNullableFields {
|
|
3979
|
-
image: string;
|
|
3980
|
-
}
|
|
3981
|
-
interface MediaNonNullableFields {
|
|
3982
|
-
items: MediaItemNonNullableFields[];
|
|
3983
|
-
mainMedia?: MediaItemNonNullableFields;
|
|
3984
|
-
coverMedia?: MediaItemNonNullableFields;
|
|
3985
|
-
}
|
|
3986
|
-
interface V2CategoryNonNullableFields {
|
|
3987
|
-
_id: string;
|
|
3988
|
-
}
|
|
3989
|
-
interface FormNonNullableFields {
|
|
3990
|
-
_id: string;
|
|
3991
|
-
}
|
|
3992
|
-
interface MoneyNonNullableFields {
|
|
3993
|
-
value: string;
|
|
3994
|
-
currency: string;
|
|
3995
|
-
}
|
|
3996
|
-
interface FixedPaymentNonNullableFields {
|
|
3997
|
-
price?: MoneyNonNullableFields;
|
|
3998
|
-
deposit?: MoneyNonNullableFields;
|
|
3999
|
-
}
|
|
4000
|
-
interface VariedPaymentNonNullableFields {
|
|
4001
|
-
defaultPrice?: MoneyNonNullableFields;
|
|
4002
|
-
deposit?: MoneyNonNullableFields;
|
|
4003
|
-
minPrice?: MoneyNonNullableFields;
|
|
4004
|
-
maxPrice?: MoneyNonNullableFields;
|
|
4005
|
-
}
|
|
4006
|
-
interface PaymentNonNullableFields {
|
|
4007
|
-
fixed?: FixedPaymentNonNullableFields;
|
|
4008
|
-
varied?: VariedPaymentNonNullableFields;
|
|
4009
|
-
rateType: RateType;
|
|
4010
|
-
pricingPlanIds: string[];
|
|
4011
|
-
}
|
|
4012
|
-
interface CommonStreetAddressNonNullableFields {
|
|
4013
|
-
number: string;
|
|
4014
|
-
name: string;
|
|
4015
|
-
apt: string;
|
|
4016
|
-
}
|
|
4017
|
-
interface CommonAddressNonNullableFields {
|
|
4018
|
-
streetAddress?: CommonStreetAddressNonNullableFields;
|
|
4019
|
-
}
|
|
4020
|
-
interface BusinessLocationOptionsNonNullableFields {
|
|
4021
|
-
_id: string;
|
|
4022
|
-
name: string;
|
|
4023
|
-
address?: CommonAddressNonNullableFields;
|
|
4024
|
-
}
|
|
4025
|
-
interface CustomLocationOptionsNonNullableFields {
|
|
4026
|
-
_id: string;
|
|
4027
|
-
address?: CommonAddressNonNullableFields;
|
|
4028
|
-
}
|
|
4029
|
-
interface V2LocationNonNullableFields {
|
|
4030
|
-
business?: BusinessLocationOptionsNonNullableFields;
|
|
4031
|
-
custom?: CustomLocationOptionsNonNullableFields;
|
|
4032
|
-
_id: string;
|
|
4033
|
-
type: LocationTypeEnumLocationType;
|
|
4034
|
-
calculatedAddress?: CommonAddressNonNullableFields;
|
|
4035
|
-
}
|
|
4036
|
-
interface PolicyDescriptionNonNullableFields {
|
|
4037
|
-
enabled: boolean;
|
|
4038
|
-
description: string;
|
|
4039
|
-
}
|
|
4040
|
-
interface LimitEarlyBookingPolicyNonNullableFields {
|
|
4041
|
-
enabled: boolean;
|
|
4042
|
-
earliestBookingInMinutes: number;
|
|
4043
|
-
}
|
|
4044
|
-
interface LimitLateBookingPolicyNonNullableFields {
|
|
4045
|
-
enabled: boolean;
|
|
4046
|
-
latestBookingInMinutes: number;
|
|
4047
|
-
}
|
|
4048
|
-
interface BookAfterStartPolicyNonNullableFields {
|
|
4049
|
-
enabled: boolean;
|
|
4050
|
-
}
|
|
4051
|
-
interface CancellationPolicyNonNullableFields {
|
|
4052
|
-
enabled: boolean;
|
|
4053
|
-
limitLatestCancellation: boolean;
|
|
4054
|
-
latestCancellationInMinutes: number;
|
|
4055
|
-
}
|
|
4056
|
-
interface ReschedulePolicyNonNullableFields {
|
|
4057
|
-
enabled: boolean;
|
|
4058
|
-
limitLatestReschedule: boolean;
|
|
4059
|
-
latestRescheduleInMinutes: number;
|
|
4060
|
-
}
|
|
4061
|
-
interface WaitlistPolicyNonNullableFields {
|
|
4062
|
-
enabled: boolean;
|
|
4063
|
-
capacity: number;
|
|
4064
|
-
reservationTimeInMinutes: number;
|
|
4065
|
-
}
|
|
4066
|
-
interface ParticipantsPolicyNonNullableFields {
|
|
4067
|
-
enabled: boolean;
|
|
4068
|
-
maxParticipantsPerBooking: number;
|
|
4069
|
-
}
|
|
4070
|
-
interface ResourcesPolicyNonNullableFields {
|
|
4071
|
-
enabled: boolean;
|
|
4072
|
-
autoAssignAllowed: boolean;
|
|
4073
|
-
}
|
|
4074
|
-
interface CancellationWindowNonNullableFields {
|
|
4075
|
-
amount?: MoneyNonNullableFields;
|
|
4076
|
-
percentage: string;
|
|
4077
|
-
}
|
|
4078
|
-
interface CancellationFeePolicyNonNullableFields {
|
|
4079
|
-
enabled: boolean;
|
|
4080
|
-
cancellationWindows: CancellationWindowNonNullableFields[];
|
|
4081
|
-
}
|
|
4082
|
-
interface SaveCreditCardPolicyNonNullableFields {
|
|
4083
|
-
enabled: boolean;
|
|
4084
|
-
}
|
|
4085
|
-
interface BookingPolicyNonNullableFields {
|
|
4086
|
-
_id: string;
|
|
4087
|
-
customPolicyDescription?: PolicyDescriptionNonNullableFields;
|
|
4088
|
-
limitEarlyBookingPolicy?: LimitEarlyBookingPolicyNonNullableFields;
|
|
4089
|
-
limitLateBookingPolicy?: LimitLateBookingPolicyNonNullableFields;
|
|
4090
|
-
bookAfterStartPolicy?: BookAfterStartPolicyNonNullableFields;
|
|
4091
|
-
cancellationPolicy?: CancellationPolicyNonNullableFields;
|
|
4092
|
-
reschedulePolicy?: ReschedulePolicyNonNullableFields;
|
|
4093
|
-
waitlistPolicy?: WaitlistPolicyNonNullableFields;
|
|
4094
|
-
participantsPolicy?: ParticipantsPolicyNonNullableFields;
|
|
4095
|
-
resourcesPolicy?: ResourcesPolicyNonNullableFields;
|
|
4096
|
-
cancellationFeePolicy?: CancellationFeePolicyNonNullableFields;
|
|
4097
|
-
saveCreditCardPolicy?: SaveCreditCardPolicyNonNullableFields;
|
|
4098
|
-
}
|
|
4099
|
-
interface DurationNonNullableFields {
|
|
4100
|
-
minutes: number;
|
|
4101
|
-
}
|
|
4102
|
-
interface V2AvailabilityConstraintsNonNullableFields {
|
|
4103
|
-
durations: DurationNonNullableFields[];
|
|
4104
|
-
sessionDurations: number[];
|
|
4105
|
-
timeBetweenSessions: number;
|
|
4106
|
-
}
|
|
4107
|
-
interface V2ScheduleNonNullableFields {
|
|
4108
|
-
availabilityConstraints?: V2AvailabilityConstraintsNonNullableFields;
|
|
4109
|
-
}
|
|
4110
|
-
interface StaffMediaItemNonNullableFields {
|
|
4111
|
-
image: string;
|
|
4112
|
-
}
|
|
4113
|
-
interface StaffMemberNonNullableFields {
|
|
4114
|
-
staffMemberId: string;
|
|
4115
|
-
workingHoursScheduleIds: string[];
|
|
4116
|
-
mainMedia?: StaffMediaItemNonNullableFields;
|
|
4117
|
-
}
|
|
4118
|
-
interface StaffMemberDetailsNonNullableFields {
|
|
4119
|
-
staffMembers: StaffMemberNonNullableFields[];
|
|
4120
|
-
}
|
|
4121
|
-
interface ResourceIdsNonNullableFields {
|
|
4122
|
-
values: string[];
|
|
4123
|
-
}
|
|
4124
|
-
interface ResourceGroupNonNullableFields {
|
|
4125
|
-
resourceIds?: ResourceIdsNonNullableFields;
|
|
4126
|
-
}
|
|
4127
|
-
interface ServiceResourceNonNullableFields {
|
|
4128
|
-
}
|
|
4129
|
-
interface SlugNonNullableFields {
|
|
4130
|
-
name: string;
|
|
4131
|
-
}
|
|
4132
|
-
interface URLsNonNullableFields {
|
|
4133
|
-
servicePage: string;
|
|
4134
|
-
bookingPage: string;
|
|
4135
|
-
calendarPage: string;
|
|
4136
|
-
}
|
|
4137
|
-
interface TagNonNullableFields {
|
|
4138
|
-
type: string;
|
|
4139
|
-
children: string;
|
|
4140
|
-
custom: boolean;
|
|
4141
|
-
disabled: boolean;
|
|
4142
|
-
}
|
|
4143
|
-
interface KeywordNonNullableFields {
|
|
4144
|
-
term: string;
|
|
4145
|
-
isMain: boolean;
|
|
4146
|
-
}
|
|
4147
|
-
interface SettingsNonNullableFields {
|
|
4148
|
-
preventAutoRedirect: boolean;
|
|
4149
|
-
keywords: KeywordNonNullableFields[];
|
|
4150
|
-
}
|
|
4151
|
-
interface SeoSchemaNonNullableFields {
|
|
4152
|
-
tags: TagNonNullableFields[];
|
|
4153
|
-
settings?: SettingsNonNullableFields;
|
|
4154
|
-
}
|
|
4155
|
-
export interface ServiceNonNullableFields {
|
|
4156
|
-
type: ServiceType;
|
|
4157
|
-
media?: MediaNonNullableFields;
|
|
4158
|
-
category?: V2CategoryNonNullableFields;
|
|
4159
|
-
form?: FormNonNullableFields;
|
|
4160
|
-
payment?: PaymentNonNullableFields;
|
|
4161
|
-
locations: V2LocationNonNullableFields[];
|
|
4162
|
-
bookingPolicy?: BookingPolicyNonNullableFields;
|
|
4163
|
-
schedule?: V2ScheduleNonNullableFields;
|
|
4164
|
-
staffMemberIds: string[];
|
|
4165
|
-
staffMembers: StaffMemberNonNullableFields[];
|
|
4166
|
-
staffMemberDetails?: StaffMemberDetailsNonNullableFields;
|
|
4167
|
-
resourceGroups: ResourceGroupNonNullableFields[];
|
|
4168
|
-
serviceResources: ServiceResourceNonNullableFields[];
|
|
4169
|
-
supportedSlugs: SlugNonNullableFields[];
|
|
4170
|
-
mainSlug?: SlugNonNullableFields;
|
|
4171
|
-
urls?: URLsNonNullableFields;
|
|
4172
|
-
seoData?: SeoSchemaNonNullableFields;
|
|
4173
|
-
}
|
|
4174
|
-
export interface CreateServiceResponseNonNullableFields {
|
|
4175
|
-
service?: ServiceNonNullableFields;
|
|
4176
|
-
}
|
|
4177
|
-
export interface GetServiceResponseNonNullableFields {
|
|
4178
|
-
service?: ServiceNonNullableFields;
|
|
4179
|
-
}
|
|
4180
|
-
export interface UpdateServiceResponseNonNullableFields {
|
|
4181
|
-
service?: ServiceNonNullableFields;
|
|
4182
|
-
}
|
|
4183
|
-
interface ApplicationErrorNonNullableFields {
|
|
4184
|
-
code: string;
|
|
4185
|
-
description: string;
|
|
4186
|
-
}
|
|
4187
|
-
interface ItemMetadataNonNullableFields {
|
|
4188
|
-
originalIndex: number;
|
|
4189
|
-
success: boolean;
|
|
4190
|
-
error?: ApplicationErrorNonNullableFields;
|
|
4191
|
-
}
|
|
4192
|
-
interface BulkServiceResultNonNullableFields {
|
|
4193
|
-
itemMetadata?: ItemMetadataNonNullableFields;
|
|
4194
|
-
item?: ServiceNonNullableFields;
|
|
4195
|
-
}
|
|
4196
|
-
interface BulkActionMetadataNonNullableFields {
|
|
4197
|
-
totalSuccesses: number;
|
|
4198
|
-
totalFailures: number;
|
|
4199
|
-
undetailedFailures: number;
|
|
4200
|
-
}
|
|
4201
|
-
export interface BulkUpdateServicesResponseNonNullableFields {
|
|
4202
|
-
results: BulkServiceResultNonNullableFields[];
|
|
4203
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
4204
|
-
}
|
|
4205
|
-
export interface BulkUpdateServicesByFilterResponseNonNullableFields {
|
|
4206
|
-
jobId: string;
|
|
4207
|
-
}
|
|
4208
|
-
export interface BulkDeleteServicesResponseNonNullableFields {
|
|
4209
|
-
results: BulkServiceResultNonNullableFields[];
|
|
4210
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
4211
|
-
}
|
|
4212
|
-
export interface BulkDeleteServicesByFilterResponseNonNullableFields {
|
|
4213
|
-
jobId: string;
|
|
4214
|
-
}
|
|
4215
|
-
export interface QueryServicesResponseNonNullableFields {
|
|
4216
|
-
services: ServiceNonNullableFields[];
|
|
4217
|
-
}
|
|
4218
|
-
interface ValueAggregationResultNonNullableFields {
|
|
4219
|
-
value: string;
|
|
4220
|
-
count: number;
|
|
4221
|
-
}
|
|
4222
|
-
interface ValueResultsNonNullableFields {
|
|
4223
|
-
results: ValueAggregationResultNonNullableFields[];
|
|
4224
|
-
}
|
|
4225
|
-
interface RangeAggregationResultNonNullableFields {
|
|
4226
|
-
count: number;
|
|
4227
|
-
}
|
|
4228
|
-
interface RangeResultsNonNullableFields {
|
|
4229
|
-
results: RangeAggregationResultNonNullableFields[];
|
|
4230
|
-
}
|
|
4231
|
-
interface AggregationResultsScalarResultNonNullableFields {
|
|
4232
|
-
type: ScalarType;
|
|
4233
|
-
value: number;
|
|
4234
|
-
}
|
|
4235
|
-
interface NestedAggregationResultsNonNullableFields {
|
|
4236
|
-
values?: ValueResultsNonNullableFields;
|
|
4237
|
-
ranges?: RangeResultsNonNullableFields;
|
|
4238
|
-
scalar?: AggregationResultsScalarResultNonNullableFields;
|
|
4239
|
-
name: string;
|
|
4240
|
-
type: AggregationType;
|
|
4241
|
-
fieldPath: string;
|
|
4242
|
-
}
|
|
4243
|
-
interface NestedValueAggregationResultNonNullableFields {
|
|
4244
|
-
value: string;
|
|
4245
|
-
nestedResults?: NestedAggregationResultsNonNullableFields;
|
|
4246
|
-
}
|
|
4247
|
-
interface GroupByValueResultsNonNullableFields {
|
|
4248
|
-
results: NestedValueAggregationResultNonNullableFields[];
|
|
4249
|
-
}
|
|
4250
|
-
interface DateHistogramResultNonNullableFields {
|
|
4251
|
-
value: string;
|
|
4252
|
-
count: number;
|
|
4253
|
-
}
|
|
4254
|
-
interface DateHistogramResultsNonNullableFields {
|
|
4255
|
-
results: DateHistogramResultNonNullableFields[];
|
|
4256
|
-
}
|
|
4257
|
-
interface AggregationResultsNonNullableFields {
|
|
4258
|
-
values?: ValueResultsNonNullableFields;
|
|
4259
|
-
ranges?: RangeResultsNonNullableFields;
|
|
4260
|
-
scalar?: AggregationResultsScalarResultNonNullableFields;
|
|
4261
|
-
groupedByValue?: GroupByValueResultsNonNullableFields;
|
|
4262
|
-
dateHistogram?: DateHistogramResultsNonNullableFields;
|
|
4263
|
-
name: string;
|
|
4264
|
-
type: AggregationType;
|
|
4265
|
-
fieldPath: string;
|
|
4266
|
-
}
|
|
4267
|
-
interface AggregationDataNonNullableFields {
|
|
4268
|
-
results: AggregationResultsNonNullableFields[];
|
|
4269
|
-
}
|
|
4270
|
-
export interface SearchServicesResponseNonNullableFields {
|
|
4271
|
-
services: ServiceNonNullableFields[];
|
|
4272
|
-
aggregationData?: AggregationDataNonNullableFields;
|
|
4273
|
-
}
|
|
4274
|
-
interface BookingPolicyWithServicesNonNullableFields {
|
|
4275
|
-
bookingPolicy?: BookingPolicyNonNullableFields;
|
|
4276
|
-
services: ServiceNonNullableFields[];
|
|
4277
|
-
countOfServices: number;
|
|
4278
|
-
connectedServices: ServiceNonNullableFields[];
|
|
4279
|
-
totalServiceCount: number;
|
|
4280
|
-
}
|
|
4281
|
-
export interface QueryPoliciesResponseNonNullableFields {
|
|
4282
|
-
bookingPolicies: BookingPolicyWithServicesNonNullableFields[];
|
|
4283
|
-
}
|
|
4284
|
-
interface FormDetailsNonNullableFields {
|
|
4285
|
-
formId: string;
|
|
4286
|
-
}
|
|
4287
|
-
interface BookingFormNonNullableFields {
|
|
4288
|
-
formDetails?: FormDetailsNonNullableFields;
|
|
4289
|
-
totalServiceCount: number;
|
|
4290
|
-
}
|
|
4291
|
-
export interface QueryBookingFormsResponseNonNullableFields {
|
|
4292
|
-
bookingForms: BookingFormNonNullableFields[];
|
|
4293
|
-
defaultBookingForm?: BookingFormNonNullableFields;
|
|
4294
|
-
}
|
|
4295
|
-
export interface CountServicesResponseNonNullableFields {
|
|
4296
|
-
count: number;
|
|
4297
|
-
}
|
|
4298
|
-
interface BusinessLocationsNonNullableFields {
|
|
4299
|
-
exists: boolean;
|
|
4300
|
-
locations: V2LocationNonNullableFields[];
|
|
4301
|
-
}
|
|
4302
|
-
interface CustomLocationsNonNullableFields {
|
|
4303
|
-
exists: boolean;
|
|
4304
|
-
}
|
|
4305
|
-
interface CustomerLocationsNonNullableFields {
|
|
4306
|
-
exists: boolean;
|
|
4307
|
-
}
|
|
4308
|
-
export interface QueryLocationsResponseNonNullableFields {
|
|
4309
|
-
businessLocations?: BusinessLocationsNonNullableFields;
|
|
4310
|
-
customLocations?: CustomLocationsNonNullableFields;
|
|
4311
|
-
customerLocations?: CustomerLocationsNonNullableFields;
|
|
4312
|
-
}
|
|
4313
|
-
export interface QueryCategoriesResponseNonNullableFields {
|
|
4314
|
-
categories: V2CategoryNonNullableFields[];
|
|
4315
|
-
}
|
|
4316
|
-
export interface SetServiceLocationsResponseNonNullableFields {
|
|
4317
|
-
service?: ServiceNonNullableFields;
|
|
4318
|
-
}
|
|
4319
|
-
export interface EnablePricingPlansForServiceResponseNonNullableFields {
|
|
4320
|
-
service?: ServiceNonNullableFields;
|
|
4321
|
-
}
|
|
4322
|
-
export interface DisablePricingPlansForServiceResponseNonNullableFields {
|
|
4323
|
-
service?: ServiceNonNullableFields;
|
|
4324
|
-
}
|
|
4325
|
-
export interface SetCustomSlugResponseNonNullableFields {
|
|
4326
|
-
slug?: SlugNonNullableFields;
|
|
4327
|
-
service?: ServiceNonNullableFields;
|
|
4328
|
-
}
|
|
4329
|
-
export interface ValidateSlugResponseNonNullableFields {
|
|
4330
|
-
valid: boolean;
|
|
4331
|
-
errors: InvalidSlugError[];
|
|
4332
|
-
}
|
|
4333
|
-
export interface CloneServiceResponseNonNullableFields {
|
|
4334
|
-
service?: ServiceNonNullableFields;
|
|
4335
|
-
errors: CloneErrors[];
|
|
4336
|
-
}
|
|
4337
3976
|
export interface BaseEventMetadata {
|
|
4338
3977
|
/**
|
|
4339
3978
|
* App instance ID.
|
|
@@ -4464,6 +4103,7 @@ export interface ServiceUpdatedEnvelope {
|
|
|
4464
4103
|
* @slug updated
|
|
4465
4104
|
*/
|
|
4466
4105
|
export declare function onServiceUpdated(handler: (event: ServiceUpdatedEnvelope) => void | Promise<void>): void;
|
|
4106
|
+
type ServiceNonNullablePaths = `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `locations.${number}.business.address.streetAddress.number` | `locations.${number}.business.address.streetAddress.name` | `locations.${number}.business.address.streetAddress.apt` | `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}.amount.value` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.name` | `mainSlug.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`;
|
|
4467
4107
|
/**
|
|
4468
4108
|
* Creates a service.
|
|
4469
4109
|
*
|
|
@@ -4521,7 +4161,7 @@ export declare function onServiceUpdated(handler: (event: ServiceUpdatedEnvelope
|
|
|
4521
4161
|
* @returns Created service.
|
|
4522
4162
|
* @fqn wix.bookings.services.v2.ServicesService.CreateService
|
|
4523
4163
|
*/
|
|
4524
|
-
export declare function createService(service: Service): Promise<Service
|
|
4164
|
+
export declare function createService(service: Service): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
4525
4165
|
/**
|
|
4526
4166
|
* Retrieves a service.
|
|
4527
4167
|
* @param serviceId - ID of the service to retrieve.
|
|
@@ -4547,7 +4187,7 @@ export declare function createService(service: Service): Promise<Service & Servi
|
|
|
4547
4187
|
* @returns Retrieved service.
|
|
4548
4188
|
* @fqn wix.bookings.services.v2.ServicesService.GetService
|
|
4549
4189
|
*/
|
|
4550
|
-
export declare function getService(serviceId: string): Promise<Service
|
|
4190
|
+
export declare function getService(serviceId: string): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
4551
4191
|
/**
|
|
4552
4192
|
* Updates a service.
|
|
4553
4193
|
*
|
|
@@ -4581,7 +4221,7 @@ export declare function getService(serviceId: string): Promise<Service & Service
|
|
|
4581
4221
|
* @returns Updated service.
|
|
4582
4222
|
* @fqn wix.bookings.services.v2.ServicesService.UpdateService
|
|
4583
4223
|
*/
|
|
4584
|
-
export declare function updateService(_id: string
|
|
4224
|
+
export declare function updateService(_id: string, service: NonNullablePaths<UpdateService, `revision`>): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
4585
4225
|
export interface UpdateService {
|
|
4586
4226
|
/**
|
|
4587
4227
|
* Service ID.
|
|
@@ -4743,7 +4383,9 @@ export interface UpdateService {
|
|
|
4743
4383
|
* @applicableIdentity APP
|
|
4744
4384
|
* @fqn wix.bookings.services.v2.ServicesService.BulkUpdateServices
|
|
4745
4385
|
*/
|
|
4746
|
-
export declare function bulkUpdateServices(options?: BulkUpdateServicesOptions): Promise<BulkUpdateServicesResponse
|
|
4386
|
+
export declare function bulkUpdateServices(options?: NonNullablePaths<BulkUpdateServicesOptions, `services.${number}.service` | `services.${number}.service._id` | `services.${number}.service.revision`>): Promise<NonNullablePaths<BulkUpdateServicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
4387
|
+
[P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
|
|
4388
|
+
}[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
4747
4389
|
export interface BulkUpdateServicesOptions {
|
|
4748
4390
|
/**
|
|
4749
4391
|
* Services to update.
|
|
@@ -4782,7 +4424,7 @@ export interface BulkUpdateServicesOptions {
|
|
|
4782
4424
|
* @applicableIdentity APP
|
|
4783
4425
|
* @fqn wix.bookings.services.v2.ServicesService.BulkUpdateServicesByFilter
|
|
4784
4426
|
*/
|
|
4785
|
-
export declare function bulkUpdateServicesByFilter(filter: Record<string, any
|
|
4427
|
+
export declare function bulkUpdateServicesByFilter(filter: Record<string, any>, options: NonNullablePaths<BulkUpdateServicesByFilterOptions, `service`>): Promise<NonNullablePaths<BulkUpdateServicesByFilterResponse, `jobId`>>;
|
|
4786
4428
|
export interface BulkUpdateServicesByFilterOptions {
|
|
4787
4429
|
/** Service to update. */
|
|
4788
4430
|
service: Service;
|
|
@@ -4844,7 +4486,9 @@ export interface DeleteServiceOptions {
|
|
|
4844
4486
|
* @applicableIdentity APP
|
|
4845
4487
|
* @fqn wix.bookings.services.v2.ServicesService.BulkDeleteServices
|
|
4846
4488
|
*/
|
|
4847
|
-
export declare function bulkDeleteServices(ids: string[], options?: BulkDeleteServicesOptions): Promise<BulkDeleteServicesResponse
|
|
4489
|
+
export declare function bulkDeleteServices(ids: string[], options?: BulkDeleteServicesOptions): Promise<NonNullablePaths<BulkDeleteServicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
4490
|
+
[P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
|
|
4491
|
+
}[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
4848
4492
|
export interface BulkDeleteServicesOptions {
|
|
4849
4493
|
/**
|
|
4850
4494
|
* Whether to preserve future sessions with participants.
|
|
@@ -4888,7 +4532,7 @@ export interface BulkDeleteServicesOptions {
|
|
|
4888
4532
|
* @applicableIdentity APP
|
|
4889
4533
|
* @fqn wix.bookings.services.v2.ServicesService.BulkDeleteServicesByFilter
|
|
4890
4534
|
*/
|
|
4891
|
-
export declare function bulkDeleteServicesByFilter(filter: Record<string, any
|
|
4535
|
+
export declare function bulkDeleteServicesByFilter(filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions): Promise<NonNullablePaths<BulkDeleteServicesByFilterResponse, `jobId`>>;
|
|
4892
4536
|
export interface BulkDeleteServicesByFilterOptions {
|
|
4893
4537
|
/**
|
|
4894
4538
|
* Whether to preserve future sessions with participants.
|
|
@@ -5050,7 +4694,9 @@ export interface ServicesQueryBuilder {
|
|
|
5050
4694
|
* @applicableIdentity VISITOR
|
|
5051
4695
|
* @fqn wix.bookings.services.v2.ServicesService.SearchServices
|
|
5052
4696
|
*/
|
|
5053
|
-
export declare function searchServices(search: CursorSearch): Promise<SearchServicesResponse
|
|
4697
|
+
export declare function searchServices(search: CursorSearch): Promise<NonNullablePaths<SearchServicesResponse, {
|
|
4698
|
+
[P in ServiceNonNullablePaths]: `services.${number}.${P}`;
|
|
4699
|
+
}[ServiceNonNullablePaths] | `aggregationData.results` | `aggregationData.results.${number}.values.results` | `aggregationData.results.${number}.values.results.${number}.value` | `aggregationData.results.${number}.values.results.${number}.count` | `aggregationData.results.${number}.ranges.results` | `aggregationData.results.${number}.ranges.results.${number}.count` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.groupedByValue.results` | `aggregationData.results.${number}.groupedByValue.results.${number}.value` | `aggregationData.results.${number}.groupedByValue.results.${number}.nestedResults.name` | `aggregationData.results.${number}.groupedByValue.results.${number}.nestedResults.type` | `aggregationData.results.${number}.groupedByValue.results.${number}.nestedResults.fieldPath` | `aggregationData.results.${number}.dateHistogram.results` | `aggregationData.results.${number}.dateHistogram.results.${number}.value` | `aggregationData.results.${number}.dateHistogram.results.${number}.count` | `aggregationData.results.${number}.nested.results` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`>>;
|
|
5054
4700
|
/**
|
|
5055
4701
|
* Retrieves a list of up to 100 *booking policies*
|
|
5056
4702
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)),
|
|
@@ -5127,7 +4773,9 @@ export declare function searchServices(search: CursorSearch): Promise<SearchServ
|
|
|
5127
4773
|
* @applicableIdentity VISITOR
|
|
5128
4774
|
* @fqn wix.bookings.services.v2.ServicesService.QueryPolicies
|
|
5129
4775
|
*/
|
|
5130
|
-
export declare function queryPolicies(query: CursorQuery): Promise<QueryPoliciesResponse
|
|
4776
|
+
export declare function queryPolicies(query: CursorQuery): Promise<NonNullablePaths<QueryPoliciesResponse, `bookingPolicies` | `bookingPolicies.${number}.bookingPolicy._id` | `bookingPolicies.${number}.bookingPolicy.customPolicyDescription.enabled` | `bookingPolicies.${number}.bookingPolicy.customPolicyDescription.description` | `bookingPolicies.${number}.bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicies.${number}.bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicies.${number}.bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.capacity` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicies.${number}.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicies.${number}.bookingPolicy.resourcesPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicies.${number}.bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `bookingPolicies.${number}.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.value` | `bookingPolicies.${number}.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `bookingPolicies.${number}.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicies.${number}.bookingPolicy.saveCreditCardPolicy.enabled` | {
|
|
4777
|
+
[P in ServiceNonNullablePaths]: `bookingPolicies.${number}.connectedServices.${number}.${P}`;
|
|
4778
|
+
}[ServiceNonNullablePaths] | `bookingPolicies.${number}.totalServiceCount`>>;
|
|
5131
4779
|
/**
|
|
5132
4780
|
* Retrieves a list of up to 100 *booking forms*
|
|
5133
4781
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/forms/forms/introduction) | [REST](https://dev.wix.com/docs/rest/crm/forms/forms/introduction)),
|
|
@@ -5201,7 +4849,7 @@ export declare function queryPolicies(query: CursorQuery): Promise<QueryPolicies
|
|
|
5201
4849
|
* @applicableIdentity VISITOR
|
|
5202
4850
|
* @fqn wix.bookings.services.v2.ServicesService.QueryBookingForms
|
|
5203
4851
|
*/
|
|
5204
|
-
export declare function queryBookingForms(query: CursorQuery, options?: QueryBookingFormsOptions): Promise<QueryBookingFormsResponse
|
|
4852
|
+
export declare function queryBookingForms(query: CursorQuery, options?: QueryBookingFormsOptions): Promise<NonNullablePaths<QueryBookingFormsResponse, `bookingForms` | `bookingForms.${number}.formDetails.formId` | `bookingForms.${number}.connectedServices` | `bookingForms.${number}.totalServiceCount` | `defaultBookingForm.formDetails.formId` | `defaultBookingForm.connectedServices` | `defaultBookingForm.totalServiceCount`>>;
|
|
5205
4853
|
export interface QueryBookingFormsOptions {
|
|
5206
4854
|
/**
|
|
5207
4855
|
* Conditional fields to return.
|
|
@@ -5239,7 +4887,7 @@ export interface QueryBookingFormsOptions {
|
|
|
5239
4887
|
* @applicableIdentity VISITOR
|
|
5240
4888
|
* @fqn wix.bookings.services.v2.ServicesService.CountServices
|
|
5241
4889
|
*/
|
|
5242
|
-
export declare function countServices(options?: CountServicesOptions): Promise<CountServicesResponse
|
|
4890
|
+
export declare function countServices(options?: CountServicesOptions): Promise<NonNullablePaths<CountServicesResponse, `count`>>;
|
|
5243
4891
|
export interface CountServicesOptions {
|
|
5244
4892
|
/**
|
|
5245
4893
|
* Query filter to base the count on. See supported filters
|
|
@@ -5294,7 +4942,7 @@ export interface CountServicesOptions {
|
|
|
5294
4942
|
* @applicableIdentity VISITOR
|
|
5295
4943
|
* @fqn wix.bookings.services.v2.ServicesService.QueryLocations
|
|
5296
4944
|
*/
|
|
5297
|
-
export declare function queryLocations(options?: QueryLocationsOptions): Promise<QueryLocationsResponse
|
|
4945
|
+
export declare function queryLocations(options?: QueryLocationsOptions): Promise<NonNullablePaths<QueryLocationsResponse, `businessLocations.exists` | `businessLocations.locations` | `businessLocations.locations.${number}.business._id` | `businessLocations.locations.${number}.business.name` | `businessLocations.locations.${number}.business.address.streetAddress.number` | `businessLocations.locations.${number}.business.address.streetAddress.name` | `businessLocations.locations.${number}.business.address.streetAddress.apt` | `businessLocations.locations.${number}.custom._id` | `businessLocations.locations.${number}._id` | `businessLocations.locations.${number}.type` | `customLocations.exists` | `customerLocations.exists`>>;
|
|
5298
4946
|
export interface QueryLocationsOptions {
|
|
5299
4947
|
/** Filter. */
|
|
5300
4948
|
filter?: QueryLocationsFilter;
|
|
@@ -5344,7 +4992,7 @@ export interface QueryLocationsOptions {
|
|
|
5344
4992
|
* @applicableIdentity VISITOR
|
|
5345
4993
|
* @fqn wix.bookings.services.v2.ServicesService.QueryCategories
|
|
5346
4994
|
*/
|
|
5347
|
-
export declare function queryCategories(options?: QueryCategoriesOptions): Promise<QueryCategoriesResponse
|
|
4995
|
+
export declare function queryCategories(options?: QueryCategoriesOptions): Promise<NonNullablePaths<QueryCategoriesResponse, `categories` | `categories.${number}._id`>>;
|
|
5348
4996
|
export interface QueryCategoriesOptions {
|
|
5349
4997
|
/** Filter. */
|
|
5350
4998
|
filter?: QueryCategoriesFilter;
|
|
@@ -5414,7 +5062,9 @@ export interface QueryCategoriesOptions {
|
|
|
5414
5062
|
* @applicableIdentity APP
|
|
5415
5063
|
* @fqn wix.bookings.services.v2.ServicesService.SetServiceLocations
|
|
5416
5064
|
*/
|
|
5417
|
-
export declare function setServiceLocations(serviceId: string, locations: V2Location[], options?: SetServiceLocationsOptions): Promise<SetServiceLocationsResponse
|
|
5065
|
+
export declare function setServiceLocations(serviceId: string, locations: V2Location[], options?: SetServiceLocationsOptions): Promise<NonNullablePaths<SetServiceLocationsResponse, {
|
|
5066
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
5067
|
+
}[ServiceNonNullablePaths]>>;
|
|
5418
5068
|
export interface SetServiceLocationsOptions {
|
|
5419
5069
|
/**
|
|
5420
5070
|
* The action to perform on sessions currently set to a removed location. For
|
|
@@ -5456,7 +5106,9 @@ export interface SetServiceLocationsOptions {
|
|
|
5456
5106
|
* @applicableIdentity APP
|
|
5457
5107
|
* @fqn wix.bookings.services.v2.ServicesService.EnablePricingPlansForService
|
|
5458
5108
|
*/
|
|
5459
|
-
export declare function enablePricingPlansForService(serviceId: string, pricingPlanIds: string[]): Promise<EnablePricingPlansForServiceResponse
|
|
5109
|
+
export declare function enablePricingPlansForService(serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, {
|
|
5110
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
5111
|
+
}[ServiceNonNullablePaths]>>;
|
|
5460
5112
|
/**
|
|
5461
5113
|
* Removes a list of *pricing plan IDs*
|
|
5462
5114
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
|
|
@@ -5479,7 +5131,9 @@ export declare function enablePricingPlansForService(serviceId: string, pricingP
|
|
|
5479
5131
|
* @applicableIdentity APP
|
|
5480
5132
|
* @fqn wix.bookings.services.v2.ServicesService.DisablePricingPlansForService
|
|
5481
5133
|
*/
|
|
5482
|
-
export declare function disablePricingPlansForService(serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<DisablePricingPlansForServiceResponse
|
|
5134
|
+
export declare function disablePricingPlansForService(serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<NonNullablePaths<DisablePricingPlansForServiceResponse, {
|
|
5135
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
5136
|
+
}[ServiceNonNullablePaths]>>;
|
|
5483
5137
|
export interface DisablePricingPlansForServiceOptions {
|
|
5484
5138
|
/**
|
|
5485
5139
|
* IDs of the *pricing plans*
|
|
@@ -5511,7 +5165,9 @@ export interface DisablePricingPlansForServiceOptions {
|
|
|
5511
5165
|
* @applicableIdentity APP
|
|
5512
5166
|
* @fqn wix.bookings.services.v2.ServicesService.SetCustomSlug
|
|
5513
5167
|
*/
|
|
5514
|
-
export declare function setCustomSlug(serviceId: string, options?: SetCustomSlugOptions): Promise<SetCustomSlugResponse
|
|
5168
|
+
export declare function setCustomSlug(serviceId: string, options?: SetCustomSlugOptions): Promise<NonNullablePaths<SetCustomSlugResponse, `slug.name` | {
|
|
5169
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
5170
|
+
}[ServiceNonNullablePaths]>>;
|
|
5515
5171
|
export interface SetCustomSlugOptions {
|
|
5516
5172
|
/**
|
|
5517
5173
|
* Slug to set as the active service slug.
|
|
@@ -5542,7 +5198,7 @@ export interface SetCustomSlugOptions {
|
|
|
5542
5198
|
* @applicableIdentity APP
|
|
5543
5199
|
* @fqn wix.bookings.services.v2.ServicesService.ValidateSlug
|
|
5544
5200
|
*/
|
|
5545
|
-
export declare function validateSlug(serviceId: string, options?: ValidateSlugOptions): Promise<ValidateSlugResponse
|
|
5201
|
+
export declare function validateSlug(serviceId: string, options?: ValidateSlugOptions): Promise<NonNullablePaths<ValidateSlugResponse, `valid` | `errors`>>;
|
|
5546
5202
|
export interface ValidateSlugOptions {
|
|
5547
5203
|
/**
|
|
5548
5204
|
* Custom slug to validate.
|
|
@@ -5624,5 +5280,7 @@ export interface ValidateSlugOptions {
|
|
|
5624
5280
|
* @applicableIdentity APP
|
|
5625
5281
|
* @fqn wix.bookings.services.v2.ServicesService.CloneService
|
|
5626
5282
|
*/
|
|
5627
|
-
export declare function cloneService(sourceServiceId: string): Promise<CloneServiceResponse
|
|
5283
|
+
export declare function cloneService(sourceServiceId: string): Promise<NonNullablePaths<CloneServiceResponse, {
|
|
5284
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
5285
|
+
}[ServiceNonNullablePaths] | `errors`>>;
|
|
5628
5286
|
export {};
|