@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,367 +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
|
-
/** @internal */
|
|
4129
|
-
resourceIds?: ResourceIdsNonNullableFields;
|
|
4130
|
-
}
|
|
4131
|
-
interface SlugNonNullableFields {
|
|
4132
|
-
name: string;
|
|
4133
|
-
}
|
|
4134
|
-
interface URLsNonNullableFields {
|
|
4135
|
-
servicePage: string;
|
|
4136
|
-
bookingPage: string;
|
|
4137
|
-
calendarPage: string;
|
|
4138
|
-
}
|
|
4139
|
-
interface TagNonNullableFields {
|
|
4140
|
-
type: string;
|
|
4141
|
-
children: string;
|
|
4142
|
-
custom: boolean;
|
|
4143
|
-
disabled: boolean;
|
|
4144
|
-
}
|
|
4145
|
-
interface KeywordNonNullableFields {
|
|
4146
|
-
term: string;
|
|
4147
|
-
isMain: boolean;
|
|
4148
|
-
}
|
|
4149
|
-
interface SettingsNonNullableFields {
|
|
4150
|
-
preventAutoRedirect: boolean;
|
|
4151
|
-
keywords: KeywordNonNullableFields[];
|
|
4152
|
-
}
|
|
4153
|
-
interface SeoSchemaNonNullableFields {
|
|
4154
|
-
tags: TagNonNullableFields[];
|
|
4155
|
-
settings?: SettingsNonNullableFields;
|
|
4156
|
-
}
|
|
4157
|
-
export interface ServiceNonNullableFields {
|
|
4158
|
-
type: ServiceType;
|
|
4159
|
-
media?: MediaNonNullableFields;
|
|
4160
|
-
category?: V2CategoryNonNullableFields;
|
|
4161
|
-
form?: FormNonNullableFields;
|
|
4162
|
-
payment?: PaymentNonNullableFields;
|
|
4163
|
-
locations: V2LocationNonNullableFields[];
|
|
4164
|
-
bookingPolicy?: BookingPolicyNonNullableFields;
|
|
4165
|
-
schedule?: V2ScheduleNonNullableFields;
|
|
4166
|
-
staffMemberIds: string[];
|
|
4167
|
-
staffMembers: StaffMemberNonNullableFields[];
|
|
4168
|
-
staffMemberDetails?: StaffMemberDetailsNonNullableFields;
|
|
4169
|
-
resourceGroups: ResourceGroupNonNullableFields[];
|
|
4170
|
-
serviceResources: ServiceResourceNonNullableFields[];
|
|
4171
|
-
supportedSlugs: SlugNonNullableFields[];
|
|
4172
|
-
mainSlug?: SlugNonNullableFields;
|
|
4173
|
-
urls?: URLsNonNullableFields;
|
|
4174
|
-
seoData?: SeoSchemaNonNullableFields;
|
|
4175
|
-
}
|
|
4176
|
-
export interface CreateServiceResponseNonNullableFields {
|
|
4177
|
-
service?: ServiceNonNullableFields;
|
|
4178
|
-
}
|
|
4179
|
-
export interface GetServiceResponseNonNullableFields {
|
|
4180
|
-
service?: ServiceNonNullableFields;
|
|
4181
|
-
}
|
|
4182
|
-
export interface UpdateServiceResponseNonNullableFields {
|
|
4183
|
-
service?: ServiceNonNullableFields;
|
|
4184
|
-
}
|
|
4185
|
-
interface ApplicationErrorNonNullableFields {
|
|
4186
|
-
code: string;
|
|
4187
|
-
description: string;
|
|
4188
|
-
}
|
|
4189
|
-
interface ItemMetadataNonNullableFields {
|
|
4190
|
-
originalIndex: number;
|
|
4191
|
-
success: boolean;
|
|
4192
|
-
error?: ApplicationErrorNonNullableFields;
|
|
4193
|
-
}
|
|
4194
|
-
interface BulkServiceResultNonNullableFields {
|
|
4195
|
-
itemMetadata?: ItemMetadataNonNullableFields;
|
|
4196
|
-
item?: ServiceNonNullableFields;
|
|
4197
|
-
}
|
|
4198
|
-
interface BulkActionMetadataNonNullableFields {
|
|
4199
|
-
totalSuccesses: number;
|
|
4200
|
-
totalFailures: number;
|
|
4201
|
-
undetailedFailures: number;
|
|
4202
|
-
}
|
|
4203
|
-
export interface BulkUpdateServicesResponseNonNullableFields {
|
|
4204
|
-
results: BulkServiceResultNonNullableFields[];
|
|
4205
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
4206
|
-
}
|
|
4207
|
-
export interface BulkUpdateServicesByFilterResponseNonNullableFields {
|
|
4208
|
-
jobId: string;
|
|
4209
|
-
}
|
|
4210
|
-
export interface BulkDeleteServicesResponseNonNullableFields {
|
|
4211
|
-
results: BulkServiceResultNonNullableFields[];
|
|
4212
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
4213
|
-
}
|
|
4214
|
-
export interface BulkDeleteServicesByFilterResponseNonNullableFields {
|
|
4215
|
-
jobId: string;
|
|
4216
|
-
}
|
|
4217
|
-
export interface QueryServicesResponseNonNullableFields {
|
|
4218
|
-
services: ServiceNonNullableFields[];
|
|
4219
|
-
}
|
|
4220
|
-
interface ValueAggregationResultNonNullableFields {
|
|
4221
|
-
value: string;
|
|
4222
|
-
count: number;
|
|
4223
|
-
}
|
|
4224
|
-
interface ValueResultsNonNullableFields {
|
|
4225
|
-
results: ValueAggregationResultNonNullableFields[];
|
|
4226
|
-
}
|
|
4227
|
-
interface RangeAggregationResultNonNullableFields {
|
|
4228
|
-
count: number;
|
|
4229
|
-
}
|
|
4230
|
-
interface RangeResultsNonNullableFields {
|
|
4231
|
-
results: RangeAggregationResultNonNullableFields[];
|
|
4232
|
-
}
|
|
4233
|
-
interface AggregationResultsScalarResultNonNullableFields {
|
|
4234
|
-
type: ScalarType;
|
|
4235
|
-
value: number;
|
|
4236
|
-
}
|
|
4237
|
-
interface NestedAggregationResultsNonNullableFields {
|
|
4238
|
-
values?: ValueResultsNonNullableFields;
|
|
4239
|
-
ranges?: RangeResultsNonNullableFields;
|
|
4240
|
-
scalar?: AggregationResultsScalarResultNonNullableFields;
|
|
4241
|
-
name: string;
|
|
4242
|
-
type: AggregationType;
|
|
4243
|
-
fieldPath: string;
|
|
4244
|
-
}
|
|
4245
|
-
interface NestedValueAggregationResultNonNullableFields {
|
|
4246
|
-
value: string;
|
|
4247
|
-
nestedResults?: NestedAggregationResultsNonNullableFields;
|
|
4248
|
-
}
|
|
4249
|
-
interface GroupByValueResultsNonNullableFields {
|
|
4250
|
-
results: NestedValueAggregationResultNonNullableFields[];
|
|
4251
|
-
}
|
|
4252
|
-
interface DateHistogramResultNonNullableFields {
|
|
4253
|
-
value: string;
|
|
4254
|
-
count: number;
|
|
4255
|
-
}
|
|
4256
|
-
interface DateHistogramResultsNonNullableFields {
|
|
4257
|
-
results: DateHistogramResultNonNullableFields[];
|
|
4258
|
-
}
|
|
4259
|
-
interface AggregationResultsNonNullableFields {
|
|
4260
|
-
values?: ValueResultsNonNullableFields;
|
|
4261
|
-
ranges?: RangeResultsNonNullableFields;
|
|
4262
|
-
scalar?: AggregationResultsScalarResultNonNullableFields;
|
|
4263
|
-
groupedByValue?: GroupByValueResultsNonNullableFields;
|
|
4264
|
-
dateHistogram?: DateHistogramResultsNonNullableFields;
|
|
4265
|
-
name: string;
|
|
4266
|
-
type: AggregationType;
|
|
4267
|
-
fieldPath: string;
|
|
4268
|
-
}
|
|
4269
|
-
interface AggregationDataNonNullableFields {
|
|
4270
|
-
results: AggregationResultsNonNullableFields[];
|
|
4271
|
-
}
|
|
4272
|
-
export interface SearchServicesResponseNonNullableFields {
|
|
4273
|
-
services: ServiceNonNullableFields[];
|
|
4274
|
-
aggregationData?: AggregationDataNonNullableFields;
|
|
4275
|
-
}
|
|
4276
|
-
interface BookingPolicyWithServicesNonNullableFields {
|
|
4277
|
-
bookingPolicy?: BookingPolicyNonNullableFields;
|
|
4278
|
-
services: ServiceNonNullableFields[];
|
|
4279
|
-
countOfServices: number;
|
|
4280
|
-
connectedServices: ServiceNonNullableFields[];
|
|
4281
|
-
totalServiceCount: number;
|
|
4282
|
-
}
|
|
4283
|
-
export interface QueryPoliciesResponseNonNullableFields {
|
|
4284
|
-
bookingPolicies: BookingPolicyWithServicesNonNullableFields[];
|
|
4285
|
-
}
|
|
4286
|
-
interface FormDetailsNonNullableFields {
|
|
4287
|
-
formId: string;
|
|
4288
|
-
}
|
|
4289
|
-
interface BookingFormNonNullableFields {
|
|
4290
|
-
formDetails?: FormDetailsNonNullableFields;
|
|
4291
|
-
totalServiceCount: number;
|
|
4292
|
-
}
|
|
4293
|
-
export interface QueryBookingFormsResponseNonNullableFields {
|
|
4294
|
-
bookingForms: BookingFormNonNullableFields[];
|
|
4295
|
-
defaultBookingForm?: BookingFormNonNullableFields;
|
|
4296
|
-
}
|
|
4297
|
-
export interface CountServicesResponseNonNullableFields {
|
|
4298
|
-
count: number;
|
|
4299
|
-
}
|
|
4300
|
-
interface BusinessLocationsNonNullableFields {
|
|
4301
|
-
exists: boolean;
|
|
4302
|
-
locations: V2LocationNonNullableFields[];
|
|
4303
|
-
}
|
|
4304
|
-
interface CustomLocationsNonNullableFields {
|
|
4305
|
-
exists: boolean;
|
|
4306
|
-
}
|
|
4307
|
-
interface CustomerLocationsNonNullableFields {
|
|
4308
|
-
exists: boolean;
|
|
4309
|
-
}
|
|
4310
|
-
export interface QueryLocationsResponseNonNullableFields {
|
|
4311
|
-
businessLocations?: BusinessLocationsNonNullableFields;
|
|
4312
|
-
customLocations?: CustomLocationsNonNullableFields;
|
|
4313
|
-
customerLocations?: CustomerLocationsNonNullableFields;
|
|
4314
|
-
}
|
|
4315
|
-
export interface QueryCategoriesResponseNonNullableFields {
|
|
4316
|
-
categories: V2CategoryNonNullableFields[];
|
|
4317
|
-
}
|
|
4318
|
-
export interface SetServiceLocationsResponseNonNullableFields {
|
|
4319
|
-
service?: ServiceNonNullableFields;
|
|
4320
|
-
}
|
|
4321
|
-
export interface EnablePricingPlansForServiceResponseNonNullableFields {
|
|
4322
|
-
service?: ServiceNonNullableFields;
|
|
4323
|
-
}
|
|
4324
|
-
export interface DisablePricingPlansForServiceResponseNonNullableFields {
|
|
4325
|
-
service?: ServiceNonNullableFields;
|
|
4326
|
-
}
|
|
4327
|
-
export interface SetCustomSlugResponseNonNullableFields {
|
|
4328
|
-
slug?: SlugNonNullableFields;
|
|
4329
|
-
service?: ServiceNonNullableFields;
|
|
4330
|
-
}
|
|
4331
|
-
export interface ValidateSlugResponseNonNullableFields {
|
|
4332
|
-
valid: boolean;
|
|
4333
|
-
errors: InvalidSlugError[];
|
|
4334
|
-
}
|
|
4335
|
-
export interface CloneServiceResponseNonNullableFields {
|
|
4336
|
-
service?: ServiceNonNullableFields;
|
|
4337
|
-
errors: CloneErrors[];
|
|
4338
|
-
}
|
|
4339
3976
|
export interface BaseEventMetadata {
|
|
4340
3977
|
/**
|
|
4341
3978
|
* App instance ID.
|
|
@@ -4466,6 +4103,7 @@ export interface ServiceUpdatedEnvelope {
|
|
|
4466
4103
|
* @slug updated
|
|
4467
4104
|
*/
|
|
4468
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`;
|
|
4469
4107
|
/**
|
|
4470
4108
|
* Creates a service.
|
|
4471
4109
|
*
|
|
@@ -4523,7 +4161,7 @@ export declare function onServiceUpdated(handler: (event: ServiceUpdatedEnvelope
|
|
|
4523
4161
|
* @returns Created service.
|
|
4524
4162
|
* @fqn wix.bookings.services.v2.ServicesService.CreateService
|
|
4525
4163
|
*/
|
|
4526
|
-
export declare function createService(service: Service): Promise<Service
|
|
4164
|
+
export declare function createService(service: Service): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
4527
4165
|
/**
|
|
4528
4166
|
* Retrieves a service.
|
|
4529
4167
|
* @param serviceId - ID of the service to retrieve.
|
|
@@ -4549,7 +4187,7 @@ export declare function createService(service: Service): Promise<Service & Servi
|
|
|
4549
4187
|
* @returns Retrieved service.
|
|
4550
4188
|
* @fqn wix.bookings.services.v2.ServicesService.GetService
|
|
4551
4189
|
*/
|
|
4552
|
-
export declare function getService(serviceId: string): Promise<Service
|
|
4190
|
+
export declare function getService(serviceId: string): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
4553
4191
|
/**
|
|
4554
4192
|
* Updates a service.
|
|
4555
4193
|
*
|
|
@@ -4583,7 +4221,7 @@ export declare function getService(serviceId: string): Promise<Service & Service
|
|
|
4583
4221
|
* @returns Updated service.
|
|
4584
4222
|
* @fqn wix.bookings.services.v2.ServicesService.UpdateService
|
|
4585
4223
|
*/
|
|
4586
|
-
export declare function updateService(_id: string
|
|
4224
|
+
export declare function updateService(_id: string, service: NonNullablePaths<UpdateService, `revision`>): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
4587
4225
|
export interface UpdateService {
|
|
4588
4226
|
/**
|
|
4589
4227
|
* Service ID.
|
|
@@ -4745,7 +4383,9 @@ export interface UpdateService {
|
|
|
4745
4383
|
* @applicableIdentity APP
|
|
4746
4384
|
* @fqn wix.bookings.services.v2.ServicesService.BulkUpdateServices
|
|
4747
4385
|
*/
|
|
4748
|
-
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`>>;
|
|
4749
4389
|
export interface BulkUpdateServicesOptions {
|
|
4750
4390
|
/**
|
|
4751
4391
|
* Services to update.
|
|
@@ -4784,7 +4424,7 @@ export interface BulkUpdateServicesOptions {
|
|
|
4784
4424
|
* @applicableIdentity APP
|
|
4785
4425
|
* @fqn wix.bookings.services.v2.ServicesService.BulkUpdateServicesByFilter
|
|
4786
4426
|
*/
|
|
4787
|
-
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`>>;
|
|
4788
4428
|
export interface BulkUpdateServicesByFilterOptions {
|
|
4789
4429
|
/** Service to update. */
|
|
4790
4430
|
service: Service;
|
|
@@ -4846,7 +4486,9 @@ export interface DeleteServiceOptions {
|
|
|
4846
4486
|
* @applicableIdentity APP
|
|
4847
4487
|
* @fqn wix.bookings.services.v2.ServicesService.BulkDeleteServices
|
|
4848
4488
|
*/
|
|
4849
|
-
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`>>;
|
|
4850
4492
|
export interface BulkDeleteServicesOptions {
|
|
4851
4493
|
/**
|
|
4852
4494
|
* Whether to preserve future sessions with participants.
|
|
@@ -4890,7 +4532,7 @@ export interface BulkDeleteServicesOptions {
|
|
|
4890
4532
|
* @applicableIdentity APP
|
|
4891
4533
|
* @fqn wix.bookings.services.v2.ServicesService.BulkDeleteServicesByFilter
|
|
4892
4534
|
*/
|
|
4893
|
-
export declare function bulkDeleteServicesByFilter(filter: Record<string, any
|
|
4535
|
+
export declare function bulkDeleteServicesByFilter(filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions): Promise<NonNullablePaths<BulkDeleteServicesByFilterResponse, `jobId`>>;
|
|
4894
4536
|
export interface BulkDeleteServicesByFilterOptions {
|
|
4895
4537
|
/**
|
|
4896
4538
|
* Whether to preserve future sessions with participants.
|
|
@@ -5052,7 +4694,9 @@ export interface ServicesQueryBuilder {
|
|
|
5052
4694
|
* @applicableIdentity VISITOR
|
|
5053
4695
|
* @fqn wix.bookings.services.v2.ServicesService.SearchServices
|
|
5054
4696
|
*/
|
|
5055
|
-
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`>>;
|
|
5056
4700
|
/**
|
|
5057
4701
|
* Retrieves a list of up to 100 *booking policies*
|
|
5058
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)),
|
|
@@ -5129,7 +4773,9 @@ export declare function searchServices(search: CursorSearch): Promise<SearchServ
|
|
|
5129
4773
|
* @applicableIdentity VISITOR
|
|
5130
4774
|
* @fqn wix.bookings.services.v2.ServicesService.QueryPolicies
|
|
5131
4775
|
*/
|
|
5132
|
-
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`>>;
|
|
5133
4779
|
/**
|
|
5134
4780
|
* Retrieves a list of up to 100 *booking forms*
|
|
5135
4781
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/forms/forms/introduction) | [REST](https://dev.wix.com/docs/rest/crm/forms/forms/introduction)),
|
|
@@ -5203,7 +4849,7 @@ export declare function queryPolicies(query: CursorQuery): Promise<QueryPolicies
|
|
|
5203
4849
|
* @applicableIdentity VISITOR
|
|
5204
4850
|
* @fqn wix.bookings.services.v2.ServicesService.QueryBookingForms
|
|
5205
4851
|
*/
|
|
5206
|
-
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`>>;
|
|
5207
4853
|
export interface QueryBookingFormsOptions {
|
|
5208
4854
|
/**
|
|
5209
4855
|
* Conditional fields to return.
|
|
@@ -5241,7 +4887,7 @@ export interface QueryBookingFormsOptions {
|
|
|
5241
4887
|
* @applicableIdentity VISITOR
|
|
5242
4888
|
* @fqn wix.bookings.services.v2.ServicesService.CountServices
|
|
5243
4889
|
*/
|
|
5244
|
-
export declare function countServices(options?: CountServicesOptions): Promise<CountServicesResponse
|
|
4890
|
+
export declare function countServices(options?: CountServicesOptions): Promise<NonNullablePaths<CountServicesResponse, `count`>>;
|
|
5245
4891
|
export interface CountServicesOptions {
|
|
5246
4892
|
/**
|
|
5247
4893
|
* Query filter to base the count on. See supported filters
|
|
@@ -5296,7 +4942,7 @@ export interface CountServicesOptions {
|
|
|
5296
4942
|
* @applicableIdentity VISITOR
|
|
5297
4943
|
* @fqn wix.bookings.services.v2.ServicesService.QueryLocations
|
|
5298
4944
|
*/
|
|
5299
|
-
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`>>;
|
|
5300
4946
|
export interface QueryLocationsOptions {
|
|
5301
4947
|
/** Filter. */
|
|
5302
4948
|
filter?: QueryLocationsFilter;
|
|
@@ -5346,7 +4992,7 @@ export interface QueryLocationsOptions {
|
|
|
5346
4992
|
* @applicableIdentity VISITOR
|
|
5347
4993
|
* @fqn wix.bookings.services.v2.ServicesService.QueryCategories
|
|
5348
4994
|
*/
|
|
5349
|
-
export declare function queryCategories(options?: QueryCategoriesOptions): Promise<QueryCategoriesResponse
|
|
4995
|
+
export declare function queryCategories(options?: QueryCategoriesOptions): Promise<NonNullablePaths<QueryCategoriesResponse, `categories` | `categories.${number}._id`>>;
|
|
5350
4996
|
export interface QueryCategoriesOptions {
|
|
5351
4997
|
/** Filter. */
|
|
5352
4998
|
filter?: QueryCategoriesFilter;
|
|
@@ -5416,7 +5062,9 @@ export interface QueryCategoriesOptions {
|
|
|
5416
5062
|
* @applicableIdentity APP
|
|
5417
5063
|
* @fqn wix.bookings.services.v2.ServicesService.SetServiceLocations
|
|
5418
5064
|
*/
|
|
5419
|
-
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]>>;
|
|
5420
5068
|
export interface SetServiceLocationsOptions {
|
|
5421
5069
|
/**
|
|
5422
5070
|
* The action to perform on sessions currently set to a removed location. For
|
|
@@ -5458,7 +5106,9 @@ export interface SetServiceLocationsOptions {
|
|
|
5458
5106
|
* @applicableIdentity APP
|
|
5459
5107
|
* @fqn wix.bookings.services.v2.ServicesService.EnablePricingPlansForService
|
|
5460
5108
|
*/
|
|
5461
|
-
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]>>;
|
|
5462
5112
|
/**
|
|
5463
5113
|
* Removes a list of *pricing plan IDs*
|
|
5464
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))
|
|
@@ -5481,7 +5131,9 @@ export declare function enablePricingPlansForService(serviceId: string, pricingP
|
|
|
5481
5131
|
* @applicableIdentity APP
|
|
5482
5132
|
* @fqn wix.bookings.services.v2.ServicesService.DisablePricingPlansForService
|
|
5483
5133
|
*/
|
|
5484
|
-
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]>>;
|
|
5485
5137
|
export interface DisablePricingPlansForServiceOptions {
|
|
5486
5138
|
/**
|
|
5487
5139
|
* IDs of the *pricing plans*
|
|
@@ -5513,7 +5165,9 @@ export interface DisablePricingPlansForServiceOptions {
|
|
|
5513
5165
|
* @applicableIdentity APP
|
|
5514
5166
|
* @fqn wix.bookings.services.v2.ServicesService.SetCustomSlug
|
|
5515
5167
|
*/
|
|
5516
|
-
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]>>;
|
|
5517
5171
|
export interface SetCustomSlugOptions {
|
|
5518
5172
|
/**
|
|
5519
5173
|
* Slug to set as the active service slug.
|
|
@@ -5544,7 +5198,7 @@ export interface SetCustomSlugOptions {
|
|
|
5544
5198
|
* @applicableIdentity APP
|
|
5545
5199
|
* @fqn wix.bookings.services.v2.ServicesService.ValidateSlug
|
|
5546
5200
|
*/
|
|
5547
|
-
export declare function validateSlug(serviceId: string, options?: ValidateSlugOptions): Promise<ValidateSlugResponse
|
|
5201
|
+
export declare function validateSlug(serviceId: string, options?: ValidateSlugOptions): Promise<NonNullablePaths<ValidateSlugResponse, `valid` | `errors`>>;
|
|
5548
5202
|
export interface ValidateSlugOptions {
|
|
5549
5203
|
/**
|
|
5550
5204
|
* Custom slug to validate.
|
|
@@ -5626,5 +5280,7 @@ export interface ValidateSlugOptions {
|
|
|
5626
5280
|
* @applicableIdentity APP
|
|
5627
5281
|
* @fqn wix.bookings.services.v2.ServicesService.CloneService
|
|
5628
5282
|
*/
|
|
5629
|
-
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`>>;
|
|
5630
5286
|
export {};
|