@wix/auto_sdk_bookings_services 1.0.28 → 1.0.30

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.
Files changed (37) hide show
  1. package/build/cjs/src/bookings-services-v2-service-services.context.d.ts +1 -1
  2. package/build/cjs/src/bookings-services-v2-service-services.meta.d.ts +20 -20
  3. package/build/cjs/src/bookings-services-v2-service-services.meta.js.map +1 -1
  4. package/build/cjs/src/bookings-services-v2-service-services.public.d.ts +21 -21
  5. package/build/cjs/src/bookings-services-v2-service-services.public.js.map +1 -1
  6. package/build/cjs/src/bookings-services-v2-service-services.types.d.ts +171 -511
  7. package/build/cjs/src/bookings-services-v2-service-services.types.js.map +1 -1
  8. package/build/cjs/src/bookings-services-v2-service-services.universal.d.ts +208 -518
  9. package/build/cjs/src/bookings-services-v2-service-services.universal.js.map +1 -1
  10. package/build/es/src/bookings-services-v2-service-services.context.d.ts +1 -1
  11. package/build/es/src/bookings-services-v2-service-services.meta.d.ts +20 -20
  12. package/build/es/src/bookings-services-v2-service-services.meta.js.map +1 -1
  13. package/build/es/src/bookings-services-v2-service-services.public.d.ts +21 -21
  14. package/build/es/src/bookings-services-v2-service-services.public.js.map +1 -1
  15. package/build/es/src/bookings-services-v2-service-services.types.d.ts +171 -511
  16. package/build/es/src/bookings-services-v2-service-services.types.js.map +1 -1
  17. package/build/es/src/bookings-services-v2-service-services.universal.d.ts +208 -518
  18. package/build/es/src/bookings-services-v2-service-services.universal.js.map +1 -1
  19. package/build/internal/cjs/src/bookings-services-v2-service-services.context.d.ts +1 -1
  20. package/build/internal/cjs/src/bookings-services-v2-service-services.meta.d.ts +20 -20
  21. package/build/internal/cjs/src/bookings-services-v2-service-services.meta.js.map +1 -1
  22. package/build/internal/cjs/src/bookings-services-v2-service-services.public.d.ts +21 -21
  23. package/build/internal/cjs/src/bookings-services-v2-service-services.public.js.map +1 -1
  24. package/build/internal/cjs/src/bookings-services-v2-service-services.types.d.ts +171 -513
  25. package/build/internal/cjs/src/bookings-services-v2-service-services.types.js.map +1 -1
  26. package/build/internal/cjs/src/bookings-services-v2-service-services.universal.d.ts +208 -520
  27. package/build/internal/cjs/src/bookings-services-v2-service-services.universal.js.map +1 -1
  28. package/build/internal/es/src/bookings-services-v2-service-services.context.d.ts +1 -1
  29. package/build/internal/es/src/bookings-services-v2-service-services.meta.d.ts +20 -20
  30. package/build/internal/es/src/bookings-services-v2-service-services.meta.js.map +1 -1
  31. package/build/internal/es/src/bookings-services-v2-service-services.public.d.ts +21 -21
  32. package/build/internal/es/src/bookings-services-v2-service-services.public.js.map +1 -1
  33. package/build/internal/es/src/bookings-services-v2-service-services.types.d.ts +171 -513
  34. package/build/internal/es/src/bookings-services-v2-service-services.types.js.map +1 -1
  35. package/build/internal/es/src/bookings-services-v2-service-services.universal.d.ts +208 -520
  36. package/build/internal/es/src/bookings-services-v2-service-services.universal.js.map +1 -1
  37. 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
  /**
@@ -1162,12 +1163,181 @@ export interface AddOnDetails {
1162
1163
  */
1163
1164
  durationInMinutes?: number | null;
1164
1165
  }
1166
+ /**
1167
+ * Message for reindexing search data to a given search schema. Support both upsert and delete flows as well as
1168
+ * performs context manipulation with adding tenant, provided in message to callscope.
1169
+ */
1170
+ export interface ReindexMessage extends ReindexMessageActionOneOf {
1171
+ upsert?: Upsert;
1172
+ delete?: Delete;
1173
+ entityFqdn?: string;
1174
+ tenantId?: string;
1175
+ eventTime?: Date | null;
1176
+ entityEventSequence?: string | null;
1177
+ schema?: Schema;
1178
+ }
1179
+ /** @oneof */
1180
+ export interface ReindexMessageActionOneOf {
1181
+ upsert?: Upsert;
1182
+ delete?: Delete;
1183
+ }
1184
+ export interface Upsert {
1185
+ entityId?: string;
1186
+ entityAsJson?: string;
1187
+ }
1188
+ export interface Delete {
1189
+ entityId?: string;
1190
+ }
1191
+ export interface Schema {
1192
+ label?: string;
1193
+ clusterName?: string;
1194
+ }
1165
1195
  export interface SetCustomSlugEvent {
1166
1196
  /** The main slug for the service after the update */
1167
1197
  mainSlug?: Slug;
1168
1198
  }
1169
1199
  export interface ServicesUrlsChanged {
1170
1200
  }
1201
+ export interface DomainEvent extends DomainEventBodyOneOf {
1202
+ createdEvent?: EntityCreatedEvent;
1203
+ updatedEvent?: EntityUpdatedEvent;
1204
+ deletedEvent?: EntityDeletedEvent;
1205
+ actionEvent?: ActionEvent;
1206
+ /**
1207
+ * Unique event ID.
1208
+ * Allows clients to ignore duplicate webhooks.
1209
+ */
1210
+ _id?: string;
1211
+ /**
1212
+ * Assumes actions are also always typed to an entity_type
1213
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1214
+ */
1215
+ entityFqdn?: string;
1216
+ /**
1217
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1218
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1219
+ * Example: created/updated/deleted/started/completed/email_opened
1220
+ */
1221
+ slug?: string;
1222
+ /** ID of the entity associated with the event. */
1223
+ entityId?: string;
1224
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1225
+ eventTime?: Date | null;
1226
+ /**
1227
+ * Whether the event was triggered as a result of a privacy regulation application
1228
+ * (for example, GDPR).
1229
+ */
1230
+ triggeredByAnonymizeRequest?: boolean | null;
1231
+ /** If present, indicates the action that triggered the event. */
1232
+ originatedFrom?: string | null;
1233
+ /**
1234
+ * A sequence number defining the order of updates to the underlying entity.
1235
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1236
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1237
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1238
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1239
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1240
+ */
1241
+ entityEventSequence?: string | null;
1242
+ }
1243
+ /** @oneof */
1244
+ export interface DomainEventBodyOneOf {
1245
+ createdEvent?: EntityCreatedEvent;
1246
+ updatedEvent?: EntityUpdatedEvent;
1247
+ deletedEvent?: EntityDeletedEvent;
1248
+ actionEvent?: ActionEvent;
1249
+ }
1250
+ export interface EntityCreatedEvent {
1251
+ entity?: string;
1252
+ }
1253
+ export interface RestoreInfo {
1254
+ deletedDate?: Date | null;
1255
+ }
1256
+ export interface EntityUpdatedEvent {
1257
+ /**
1258
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1259
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1260
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1261
+ */
1262
+ currentEntity?: string;
1263
+ }
1264
+ export interface EntityDeletedEvent {
1265
+ /** Entity that was deleted */
1266
+ deletedEntity?: string | null;
1267
+ }
1268
+ export interface ActionEvent {
1269
+ body?: string;
1270
+ }
1271
+ export interface MessageEnvelope {
1272
+ /**
1273
+ * App instance ID.
1274
+ * @format GUID
1275
+ */
1276
+ instanceId?: string | null;
1277
+ /**
1278
+ * Event type.
1279
+ * @maxLength 150
1280
+ */
1281
+ eventType?: string;
1282
+ /** The identification type and identity data. */
1283
+ identity?: IdentificationData;
1284
+ /** Stringify payload. */
1285
+ data?: string;
1286
+ }
1287
+ export interface IdentificationData extends IdentificationDataIdOneOf {
1288
+ /**
1289
+ * ID of a site visitor that has not logged in to the site.
1290
+ * @format GUID
1291
+ */
1292
+ anonymousVisitorId?: string;
1293
+ /**
1294
+ * ID of a site visitor that has logged in to the site.
1295
+ * @format GUID
1296
+ */
1297
+ memberId?: string;
1298
+ /**
1299
+ * ID of a Wix user (site owner, contributor, etc.).
1300
+ * @format GUID
1301
+ */
1302
+ wixUserId?: string;
1303
+ /**
1304
+ * ID of an app.
1305
+ * @format GUID
1306
+ */
1307
+ appId?: string;
1308
+ /** @readonly */
1309
+ identityType?: WebhookIdentityType;
1310
+ }
1311
+ /** @oneof */
1312
+ export interface IdentificationDataIdOneOf {
1313
+ /**
1314
+ * ID of a site visitor that has not logged in to the site.
1315
+ * @format GUID
1316
+ */
1317
+ anonymousVisitorId?: string;
1318
+ /**
1319
+ * ID of a site visitor that has logged in to the site.
1320
+ * @format GUID
1321
+ */
1322
+ memberId?: string;
1323
+ /**
1324
+ * ID of a Wix user (site owner, contributor, etc.).
1325
+ * @format GUID
1326
+ */
1327
+ wixUserId?: string;
1328
+ /**
1329
+ * ID of an app.
1330
+ * @format GUID
1331
+ */
1332
+ appId?: string;
1333
+ }
1334
+ export declare enum WebhookIdentityType {
1335
+ UNKNOWN = "UNKNOWN",
1336
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1337
+ MEMBER = "MEMBER",
1338
+ WIX_USER = "WIX_USER",
1339
+ APP = "APP"
1340
+ }
1171
1341
  export interface CreateAddOnGroupRequest {
1172
1342
  /** AddOnGroup to create. */
1173
1343
  addOnGroup?: AddOnGroup;
@@ -1329,146 +1499,6 @@ export interface ValidationResult {
1329
1499
  */
1330
1500
  message?: string | null;
1331
1501
  }
1332
- export interface DomainEvent extends DomainEventBodyOneOf {
1333
- createdEvent?: EntityCreatedEvent;
1334
- updatedEvent?: EntityUpdatedEvent;
1335
- deletedEvent?: EntityDeletedEvent;
1336
- actionEvent?: ActionEvent;
1337
- /**
1338
- * Unique event ID.
1339
- * Allows clients to ignore duplicate webhooks.
1340
- */
1341
- _id?: string;
1342
- /**
1343
- * Assumes actions are also always typed to an entity_type
1344
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1345
- */
1346
- entityFqdn?: string;
1347
- /**
1348
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1349
- * This is although the created/updated/deleted notion is duplication of the oneof types
1350
- * Example: created/updated/deleted/started/completed/email_opened
1351
- */
1352
- slug?: string;
1353
- /** ID of the entity associated with the event. */
1354
- entityId?: string;
1355
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1356
- eventTime?: Date | null;
1357
- /**
1358
- * Whether the event was triggered as a result of a privacy regulation application
1359
- * (for example, GDPR).
1360
- */
1361
- triggeredByAnonymizeRequest?: boolean | null;
1362
- /** If present, indicates the action that triggered the event. */
1363
- originatedFrom?: string | null;
1364
- /**
1365
- * A sequence number defining the order of updates to the underlying entity.
1366
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
1367
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1368
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1369
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
1370
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1371
- */
1372
- entityEventSequence?: string | null;
1373
- }
1374
- /** @oneof */
1375
- export interface DomainEventBodyOneOf {
1376
- createdEvent?: EntityCreatedEvent;
1377
- updatedEvent?: EntityUpdatedEvent;
1378
- deletedEvent?: EntityDeletedEvent;
1379
- actionEvent?: ActionEvent;
1380
- }
1381
- export interface EntityCreatedEvent {
1382
- entity?: string;
1383
- }
1384
- export interface RestoreInfo {
1385
- deletedDate?: Date | null;
1386
- }
1387
- export interface EntityUpdatedEvent {
1388
- /**
1389
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1390
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1391
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1392
- */
1393
- currentEntity?: string;
1394
- }
1395
- export interface EntityDeletedEvent {
1396
- /** Entity that was deleted */
1397
- deletedEntity?: string | null;
1398
- }
1399
- export interface ActionEvent {
1400
- body?: string;
1401
- }
1402
- export interface MessageEnvelope {
1403
- /**
1404
- * App instance ID.
1405
- * @format GUID
1406
- */
1407
- instanceId?: string | null;
1408
- /**
1409
- * Event type.
1410
- * @maxLength 150
1411
- */
1412
- eventType?: string;
1413
- /** The identification type and identity data. */
1414
- identity?: IdentificationData;
1415
- /** Stringify payload. */
1416
- data?: string;
1417
- }
1418
- export interface IdentificationData extends IdentificationDataIdOneOf {
1419
- /**
1420
- * ID of a site visitor that has not logged in to the site.
1421
- * @format GUID
1422
- */
1423
- anonymousVisitorId?: string;
1424
- /**
1425
- * ID of a site visitor that has logged in to the site.
1426
- * @format GUID
1427
- */
1428
- memberId?: string;
1429
- /**
1430
- * ID of a Wix user (site owner, contributor, etc.).
1431
- * @format GUID
1432
- */
1433
- wixUserId?: string;
1434
- /**
1435
- * ID of an app.
1436
- * @format GUID
1437
- */
1438
- appId?: string;
1439
- /** @readonly */
1440
- identityType?: WebhookIdentityType;
1441
- }
1442
- /** @oneof */
1443
- export interface IdentificationDataIdOneOf {
1444
- /**
1445
- * ID of a site visitor that has not logged in to the site.
1446
- * @format GUID
1447
- */
1448
- anonymousVisitorId?: string;
1449
- /**
1450
- * ID of a site visitor that has logged in to the site.
1451
- * @format GUID
1452
- */
1453
- memberId?: string;
1454
- /**
1455
- * ID of a Wix user (site owner, contributor, etc.).
1456
- * @format GUID
1457
- */
1458
- wixUserId?: string;
1459
- /**
1460
- * ID of an app.
1461
- * @format GUID
1462
- */
1463
- appId?: string;
1464
- }
1465
- export declare enum WebhookIdentityType {
1466
- UNKNOWN = "UNKNOWN",
1467
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1468
- MEMBER = "MEMBER",
1469
- WIX_USER = "WIX_USER",
1470
- APP = "APP"
1471
- }
1472
1502
  export interface CreateServiceRequest {
1473
1503
  /** Service to create. */
1474
1504
  service: Service;
@@ -3946,365 +3976,6 @@ export interface SiteCloned {
3946
3976
  /** Origin site id. */
3947
3977
  originMetaSiteId?: string;
3948
3978
  }
3949
- interface MediaItemNonNullableFields {
3950
- image: string;
3951
- }
3952
- interface MediaNonNullableFields {
3953
- items: MediaItemNonNullableFields[];
3954
- mainMedia?: MediaItemNonNullableFields;
3955
- coverMedia?: MediaItemNonNullableFields;
3956
- }
3957
- interface V2CategoryNonNullableFields {
3958
- _id: string;
3959
- }
3960
- interface FormNonNullableFields {
3961
- _id: string;
3962
- }
3963
- interface MoneyNonNullableFields {
3964
- value: string;
3965
- currency: string;
3966
- }
3967
- interface FixedPaymentNonNullableFields {
3968
- price?: MoneyNonNullableFields;
3969
- deposit?: MoneyNonNullableFields;
3970
- }
3971
- interface VariedPaymentNonNullableFields {
3972
- defaultPrice?: MoneyNonNullableFields;
3973
- deposit?: MoneyNonNullableFields;
3974
- minPrice?: MoneyNonNullableFields;
3975
- maxPrice?: MoneyNonNullableFields;
3976
- }
3977
- interface PaymentNonNullableFields {
3978
- fixed?: FixedPaymentNonNullableFields;
3979
- varied?: VariedPaymentNonNullableFields;
3980
- rateType: RateType;
3981
- pricingPlanIds: string[];
3982
- }
3983
- interface CommonStreetAddressNonNullableFields {
3984
- number: string;
3985
- name: string;
3986
- apt: string;
3987
- }
3988
- interface CommonAddressNonNullableFields {
3989
- streetAddress?: CommonStreetAddressNonNullableFields;
3990
- }
3991
- interface BusinessLocationOptionsNonNullableFields {
3992
- _id: string;
3993
- name: string;
3994
- address?: CommonAddressNonNullableFields;
3995
- }
3996
- interface CustomLocationOptionsNonNullableFields {
3997
- _id: string;
3998
- address?: CommonAddressNonNullableFields;
3999
- }
4000
- interface V2LocationNonNullableFields {
4001
- business?: BusinessLocationOptionsNonNullableFields;
4002
- custom?: CustomLocationOptionsNonNullableFields;
4003
- _id: string;
4004
- type: LocationTypeEnumLocationType;
4005
- calculatedAddress?: CommonAddressNonNullableFields;
4006
- }
4007
- interface PolicyDescriptionNonNullableFields {
4008
- enabled: boolean;
4009
- description: string;
4010
- }
4011
- interface LimitEarlyBookingPolicyNonNullableFields {
4012
- enabled: boolean;
4013
- earliestBookingInMinutes: number;
4014
- }
4015
- interface LimitLateBookingPolicyNonNullableFields {
4016
- enabled: boolean;
4017
- latestBookingInMinutes: number;
4018
- }
4019
- interface BookAfterStartPolicyNonNullableFields {
4020
- enabled: boolean;
4021
- }
4022
- interface CancellationPolicyNonNullableFields {
4023
- enabled: boolean;
4024
- limitLatestCancellation: boolean;
4025
- latestCancellationInMinutes: number;
4026
- }
4027
- interface ReschedulePolicyNonNullableFields {
4028
- enabled: boolean;
4029
- limitLatestReschedule: boolean;
4030
- latestRescheduleInMinutes: number;
4031
- }
4032
- interface WaitlistPolicyNonNullableFields {
4033
- enabled: boolean;
4034
- capacity: number;
4035
- reservationTimeInMinutes: number;
4036
- }
4037
- interface ParticipantsPolicyNonNullableFields {
4038
- enabled: boolean;
4039
- maxParticipantsPerBooking: number;
4040
- }
4041
- interface ResourcesPolicyNonNullableFields {
4042
- enabled: boolean;
4043
- autoAssignAllowed: boolean;
4044
- }
4045
- interface CancellationWindowNonNullableFields {
4046
- amount?: MoneyNonNullableFields;
4047
- percentage: string;
4048
- }
4049
- interface CancellationFeePolicyNonNullableFields {
4050
- enabled: boolean;
4051
- cancellationWindows: CancellationWindowNonNullableFields[];
4052
- }
4053
- interface SaveCreditCardPolicyNonNullableFields {
4054
- enabled: boolean;
4055
- }
4056
- interface BookingPolicyNonNullableFields {
4057
- _id: string;
4058
- customPolicyDescription?: PolicyDescriptionNonNullableFields;
4059
- limitEarlyBookingPolicy?: LimitEarlyBookingPolicyNonNullableFields;
4060
- limitLateBookingPolicy?: LimitLateBookingPolicyNonNullableFields;
4061
- bookAfterStartPolicy?: BookAfterStartPolicyNonNullableFields;
4062
- cancellationPolicy?: CancellationPolicyNonNullableFields;
4063
- reschedulePolicy?: ReschedulePolicyNonNullableFields;
4064
- waitlistPolicy?: WaitlistPolicyNonNullableFields;
4065
- participantsPolicy?: ParticipantsPolicyNonNullableFields;
4066
- resourcesPolicy?: ResourcesPolicyNonNullableFields;
4067
- cancellationFeePolicy?: CancellationFeePolicyNonNullableFields;
4068
- saveCreditCardPolicy?: SaveCreditCardPolicyNonNullableFields;
4069
- }
4070
- interface DurationNonNullableFields {
4071
- minutes: number;
4072
- }
4073
- interface V2AvailabilityConstraintsNonNullableFields {
4074
- durations: DurationNonNullableFields[];
4075
- sessionDurations: number[];
4076
- timeBetweenSessions: number;
4077
- }
4078
- interface V2ScheduleNonNullableFields {
4079
- availabilityConstraints?: V2AvailabilityConstraintsNonNullableFields;
4080
- }
4081
- interface StaffMediaItemNonNullableFields {
4082
- image: string;
4083
- }
4084
- interface StaffMemberNonNullableFields {
4085
- staffMemberId: string;
4086
- workingHoursScheduleIds: string[];
4087
- mainMedia?: StaffMediaItemNonNullableFields;
4088
- }
4089
- interface StaffMemberDetailsNonNullableFields {
4090
- staffMembers: StaffMemberNonNullableFields[];
4091
- }
4092
- interface ResourceIdsNonNullableFields {
4093
- values: string[];
4094
- }
4095
- interface ResourceGroupNonNullableFields {
4096
- resourceIds?: ResourceIdsNonNullableFields;
4097
- }
4098
- interface ServiceResourceNonNullableFields {
4099
- }
4100
- interface SlugNonNullableFields {
4101
- name: string;
4102
- }
4103
- interface URLsNonNullableFields {
4104
- servicePage: string;
4105
- bookingPage: string;
4106
- calendarPage: string;
4107
- }
4108
- interface TagNonNullableFields {
4109
- type: string;
4110
- children: string;
4111
- custom: boolean;
4112
- disabled: boolean;
4113
- }
4114
- interface KeywordNonNullableFields {
4115
- term: string;
4116
- isMain: boolean;
4117
- }
4118
- interface SettingsNonNullableFields {
4119
- preventAutoRedirect: boolean;
4120
- keywords: KeywordNonNullableFields[];
4121
- }
4122
- interface SeoSchemaNonNullableFields {
4123
- tags: TagNonNullableFields[];
4124
- settings?: SettingsNonNullableFields;
4125
- }
4126
- export interface ServiceNonNullableFields {
4127
- type: ServiceType;
4128
- media?: MediaNonNullableFields;
4129
- category?: V2CategoryNonNullableFields;
4130
- form?: FormNonNullableFields;
4131
- payment?: PaymentNonNullableFields;
4132
- locations: V2LocationNonNullableFields[];
4133
- bookingPolicy?: BookingPolicyNonNullableFields;
4134
- schedule?: V2ScheduleNonNullableFields;
4135
- staffMemberIds: string[];
4136
- staffMembers: StaffMemberNonNullableFields[];
4137
- staffMemberDetails?: StaffMemberDetailsNonNullableFields;
4138
- resourceGroups: ResourceGroupNonNullableFields[];
4139
- serviceResources: ServiceResourceNonNullableFields[];
4140
- supportedSlugs: SlugNonNullableFields[];
4141
- mainSlug?: SlugNonNullableFields;
4142
- urls?: URLsNonNullableFields;
4143
- seoData?: SeoSchemaNonNullableFields;
4144
- }
4145
- export interface CreateServiceResponseNonNullableFields {
4146
- service?: ServiceNonNullableFields;
4147
- }
4148
- export interface GetServiceResponseNonNullableFields {
4149
- service?: ServiceNonNullableFields;
4150
- }
4151
- export interface UpdateServiceResponseNonNullableFields {
4152
- service?: ServiceNonNullableFields;
4153
- }
4154
- interface ApplicationErrorNonNullableFields {
4155
- code: string;
4156
- description: string;
4157
- }
4158
- interface ItemMetadataNonNullableFields {
4159
- originalIndex: number;
4160
- success: boolean;
4161
- error?: ApplicationErrorNonNullableFields;
4162
- }
4163
- interface BulkServiceResultNonNullableFields {
4164
- itemMetadata?: ItemMetadataNonNullableFields;
4165
- item?: ServiceNonNullableFields;
4166
- }
4167
- interface BulkActionMetadataNonNullableFields {
4168
- totalSuccesses: number;
4169
- totalFailures: number;
4170
- undetailedFailures: number;
4171
- }
4172
- export interface BulkUpdateServicesResponseNonNullableFields {
4173
- results: BulkServiceResultNonNullableFields[];
4174
- bulkActionMetadata?: BulkActionMetadataNonNullableFields;
4175
- }
4176
- export interface BulkUpdateServicesByFilterResponseNonNullableFields {
4177
- jobId: string;
4178
- }
4179
- export interface BulkDeleteServicesResponseNonNullableFields {
4180
- results: BulkServiceResultNonNullableFields[];
4181
- bulkActionMetadata?: BulkActionMetadataNonNullableFields;
4182
- }
4183
- export interface BulkDeleteServicesByFilterResponseNonNullableFields {
4184
- jobId: string;
4185
- }
4186
- export interface QueryServicesResponseNonNullableFields {
4187
- services: ServiceNonNullableFields[];
4188
- }
4189
- interface ValueAggregationResultNonNullableFields {
4190
- value: string;
4191
- count: number;
4192
- }
4193
- interface ValueResultsNonNullableFields {
4194
- results: ValueAggregationResultNonNullableFields[];
4195
- }
4196
- interface RangeAggregationResultNonNullableFields {
4197
- count: number;
4198
- }
4199
- interface RangeResultsNonNullableFields {
4200
- results: RangeAggregationResultNonNullableFields[];
4201
- }
4202
- interface AggregationResultsScalarResultNonNullableFields {
4203
- type: ScalarType;
4204
- value: number;
4205
- }
4206
- interface NestedAggregationResultsNonNullableFields {
4207
- values?: ValueResultsNonNullableFields;
4208
- ranges?: RangeResultsNonNullableFields;
4209
- scalar?: AggregationResultsScalarResultNonNullableFields;
4210
- name: string;
4211
- type: AggregationType;
4212
- fieldPath: string;
4213
- }
4214
- interface NestedValueAggregationResultNonNullableFields {
4215
- value: string;
4216
- nestedResults?: NestedAggregationResultsNonNullableFields;
4217
- }
4218
- interface GroupByValueResultsNonNullableFields {
4219
- results: NestedValueAggregationResultNonNullableFields[];
4220
- }
4221
- interface DateHistogramResultNonNullableFields {
4222
- value: string;
4223
- count: number;
4224
- }
4225
- interface DateHistogramResultsNonNullableFields {
4226
- results: DateHistogramResultNonNullableFields[];
4227
- }
4228
- interface AggregationResultsNonNullableFields {
4229
- values?: ValueResultsNonNullableFields;
4230
- ranges?: RangeResultsNonNullableFields;
4231
- scalar?: AggregationResultsScalarResultNonNullableFields;
4232
- groupedByValue?: GroupByValueResultsNonNullableFields;
4233
- dateHistogram?: DateHistogramResultsNonNullableFields;
4234
- name: string;
4235
- type: AggregationType;
4236
- fieldPath: string;
4237
- }
4238
- interface AggregationDataNonNullableFields {
4239
- results: AggregationResultsNonNullableFields[];
4240
- }
4241
- export interface SearchServicesResponseNonNullableFields {
4242
- services: ServiceNonNullableFields[];
4243
- aggregationData?: AggregationDataNonNullableFields;
4244
- }
4245
- interface BookingPolicyWithServicesNonNullableFields {
4246
- bookingPolicy?: BookingPolicyNonNullableFields;
4247
- services: ServiceNonNullableFields[];
4248
- countOfServices: number;
4249
- connectedServices: ServiceNonNullableFields[];
4250
- totalServiceCount: number;
4251
- }
4252
- export interface QueryPoliciesResponseNonNullableFields {
4253
- bookingPolicies: BookingPolicyWithServicesNonNullableFields[];
4254
- }
4255
- interface FormDetailsNonNullableFields {
4256
- formId: string;
4257
- }
4258
- interface BookingFormNonNullableFields {
4259
- formDetails?: FormDetailsNonNullableFields;
4260
- totalServiceCount: number;
4261
- }
4262
- export interface QueryBookingFormsResponseNonNullableFields {
4263
- bookingForms: BookingFormNonNullableFields[];
4264
- defaultBookingForm?: BookingFormNonNullableFields;
4265
- }
4266
- export interface CountServicesResponseNonNullableFields {
4267
- count: number;
4268
- }
4269
- interface BusinessLocationsNonNullableFields {
4270
- exists: boolean;
4271
- locations: V2LocationNonNullableFields[];
4272
- }
4273
- interface CustomLocationsNonNullableFields {
4274
- exists: boolean;
4275
- }
4276
- interface CustomerLocationsNonNullableFields {
4277
- exists: boolean;
4278
- }
4279
- export interface QueryLocationsResponseNonNullableFields {
4280
- businessLocations?: BusinessLocationsNonNullableFields;
4281
- customLocations?: CustomLocationsNonNullableFields;
4282
- customerLocations?: CustomerLocationsNonNullableFields;
4283
- }
4284
- export interface QueryCategoriesResponseNonNullableFields {
4285
- categories: V2CategoryNonNullableFields[];
4286
- }
4287
- export interface SetServiceLocationsResponseNonNullableFields {
4288
- service?: ServiceNonNullableFields;
4289
- }
4290
- export interface EnablePricingPlansForServiceResponseNonNullableFields {
4291
- service?: ServiceNonNullableFields;
4292
- }
4293
- export interface DisablePricingPlansForServiceResponseNonNullableFields {
4294
- service?: ServiceNonNullableFields;
4295
- }
4296
- export interface SetCustomSlugResponseNonNullableFields {
4297
- slug?: SlugNonNullableFields;
4298
- service?: ServiceNonNullableFields;
4299
- }
4300
- export interface ValidateSlugResponseNonNullableFields {
4301
- valid: boolean;
4302
- errors: InvalidSlugError[];
4303
- }
4304
- export interface CloneServiceResponseNonNullableFields {
4305
- service?: ServiceNonNullableFields;
4306
- errors: CloneErrors[];
4307
- }
4308
3979
  export interface BaseEventMetadata {
4309
3980
  /**
4310
3981
  * App instance ID.
@@ -4435,6 +4106,7 @@ export interface ServiceUpdatedEnvelope {
4435
4106
  * @slug updated
4436
4107
  */
4437
4108
  export declare function onServiceUpdated(handler: (event: ServiceUpdatedEnvelope) => void | Promise<void>): void;
4109
+ 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`;
4438
4110
  /**
4439
4111
  * Creates a service.
4440
4112
  *
@@ -4492,7 +4164,7 @@ export declare function onServiceUpdated(handler: (event: ServiceUpdatedEnvelope
4492
4164
  * @returns Created service.
4493
4165
  * @fqn wix.bookings.services.v2.ServicesService.CreateService
4494
4166
  */
4495
- export declare function createService(service: Service): Promise<Service & ServiceNonNullableFields>;
4167
+ export declare function createService(service: Service): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
4496
4168
  /**
4497
4169
  * Retrieves a service.
4498
4170
  * @param serviceId - ID of the service to retrieve.
@@ -4518,7 +4190,7 @@ export declare function createService(service: Service): Promise<Service & Servi
4518
4190
  * @returns Retrieved service.
4519
4191
  * @fqn wix.bookings.services.v2.ServicesService.GetService
4520
4192
  */
4521
- export declare function getService(serviceId: string): Promise<Service & ServiceNonNullableFields>;
4193
+ export declare function getService(serviceId: string): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
4522
4194
  /**
4523
4195
  * Updates a service.
4524
4196
  *
@@ -4552,7 +4224,7 @@ export declare function getService(serviceId: string): Promise<Service & Service
4552
4224
  * @returns Updated service.
4553
4225
  * @fqn wix.bookings.services.v2.ServicesService.UpdateService
4554
4226
  */
4555
- export declare function updateService(_id: string | null, service: UpdateService): Promise<Service & ServiceNonNullableFields>;
4227
+ export declare function updateService(_id: string, service: NonNullablePaths<UpdateService, `revision`>): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
4556
4228
  export interface UpdateService {
4557
4229
  /**
4558
4230
  * Service ID.
@@ -4714,7 +4386,9 @@ export interface UpdateService {
4714
4386
  * @applicableIdentity APP
4715
4387
  * @fqn wix.bookings.services.v2.ServicesService.BulkUpdateServices
4716
4388
  */
4717
- export declare function bulkUpdateServices(options?: BulkUpdateServicesOptions): Promise<BulkUpdateServicesResponse & BulkUpdateServicesResponseNonNullableFields>;
4389
+ 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` | {
4390
+ [P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
4391
+ }[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
4718
4392
  export interface BulkUpdateServicesOptions {
4719
4393
  /**
4720
4394
  * Services to update.
@@ -4753,7 +4427,7 @@ export interface BulkUpdateServicesOptions {
4753
4427
  * @applicableIdentity APP
4754
4428
  * @fqn wix.bookings.services.v2.ServicesService.BulkUpdateServicesByFilter
4755
4429
  */
4756
- export declare function bulkUpdateServicesByFilter(filter: Record<string, any> | null, options: BulkUpdateServicesByFilterOptions): Promise<BulkUpdateServicesByFilterResponse & BulkUpdateServicesByFilterResponseNonNullableFields>;
4430
+ export declare function bulkUpdateServicesByFilter(filter: Record<string, any>, options: NonNullablePaths<BulkUpdateServicesByFilterOptions, `service`>): Promise<NonNullablePaths<BulkUpdateServicesByFilterResponse, `jobId`>>;
4757
4431
  export interface BulkUpdateServicesByFilterOptions {
4758
4432
  /** Service to update. */
4759
4433
  service: Service;
@@ -4815,7 +4489,9 @@ export interface DeleteServiceOptions {
4815
4489
  * @applicableIdentity APP
4816
4490
  * @fqn wix.bookings.services.v2.ServicesService.BulkDeleteServices
4817
4491
  */
4818
- export declare function bulkDeleteServices(ids: string[], options?: BulkDeleteServicesOptions): Promise<BulkDeleteServicesResponse & BulkDeleteServicesResponseNonNullableFields>;
4492
+ 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` | {
4493
+ [P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
4494
+ }[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
4819
4495
  export interface BulkDeleteServicesOptions {
4820
4496
  /**
4821
4497
  * Whether to preserve future sessions with participants.
@@ -4859,7 +4535,7 @@ export interface BulkDeleteServicesOptions {
4859
4535
  * @applicableIdentity APP
4860
4536
  * @fqn wix.bookings.services.v2.ServicesService.BulkDeleteServicesByFilter
4861
4537
  */
4862
- export declare function bulkDeleteServicesByFilter(filter: Record<string, any> | null, options?: BulkDeleteServicesByFilterOptions): Promise<BulkDeleteServicesByFilterResponse & BulkDeleteServicesByFilterResponseNonNullableFields>;
4538
+ export declare function bulkDeleteServicesByFilter(filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions): Promise<NonNullablePaths<BulkDeleteServicesByFilterResponse, `jobId`>>;
4863
4539
  export interface BulkDeleteServicesByFilterOptions {
4864
4540
  /**
4865
4541
  * Whether to preserve future sessions with participants.
@@ -5021,7 +4697,9 @@ export interface ServicesQueryBuilder {
5021
4697
  * @applicableIdentity VISITOR
5022
4698
  * @fqn wix.bookings.services.v2.ServicesService.SearchServices
5023
4699
  */
5024
- export declare function searchServices(search: CursorSearch): Promise<SearchServicesResponse & SearchServicesResponseNonNullableFields>;
4700
+ export declare function searchServices(search: CursorSearch): Promise<NonNullablePaths<SearchServicesResponse, {
4701
+ [P in ServiceNonNullablePaths]: `services.${number}.${P}`;
4702
+ }[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`>>;
5025
4703
  /**
5026
4704
  * Retrieves a list of up to 100 *booking policies*
5027
4705
  * ([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)),
@@ -5098,7 +4776,9 @@ export declare function searchServices(search: CursorSearch): Promise<SearchServ
5098
4776
  * @applicableIdentity VISITOR
5099
4777
  * @fqn wix.bookings.services.v2.ServicesService.QueryPolicies
5100
4778
  */
5101
- export declare function queryPolicies(query: CursorQuery): Promise<QueryPoliciesResponse & QueryPoliciesResponseNonNullableFields>;
4779
+ 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` | {
4780
+ [P in ServiceNonNullablePaths]: `bookingPolicies.${number}.connectedServices.${number}.${P}`;
4781
+ }[ServiceNonNullablePaths] | `bookingPolicies.${number}.totalServiceCount`>>;
5102
4782
  /**
5103
4783
  * Retrieves a list of up to 100 *booking forms*
5104
4784
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/forms/forms/introduction) | [REST](https://dev.wix.com/docs/rest/crm/forms/forms/introduction)),
@@ -5172,7 +4852,7 @@ export declare function queryPolicies(query: CursorQuery): Promise<QueryPolicies
5172
4852
  * @applicableIdentity VISITOR
5173
4853
  * @fqn wix.bookings.services.v2.ServicesService.QueryBookingForms
5174
4854
  */
5175
- export declare function queryBookingForms(query: CursorQuery, options?: QueryBookingFormsOptions): Promise<QueryBookingFormsResponse & QueryBookingFormsResponseNonNullableFields>;
4855
+ 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`>>;
5176
4856
  export interface QueryBookingFormsOptions {
5177
4857
  /**
5178
4858
  * Conditional fields to return.
@@ -5210,7 +4890,7 @@ export interface QueryBookingFormsOptions {
5210
4890
  * @applicableIdentity VISITOR
5211
4891
  * @fqn wix.bookings.services.v2.ServicesService.CountServices
5212
4892
  */
5213
- export declare function countServices(options?: CountServicesOptions): Promise<CountServicesResponse & CountServicesResponseNonNullableFields>;
4893
+ export declare function countServices(options?: CountServicesOptions): Promise<NonNullablePaths<CountServicesResponse, `count`>>;
5214
4894
  export interface CountServicesOptions {
5215
4895
  /**
5216
4896
  * Query filter to base the count on. See supported filters
@@ -5265,7 +4945,7 @@ export interface CountServicesOptions {
5265
4945
  * @applicableIdentity VISITOR
5266
4946
  * @fqn wix.bookings.services.v2.ServicesService.QueryLocations
5267
4947
  */
5268
- export declare function queryLocations(options?: QueryLocationsOptions): Promise<QueryLocationsResponse & QueryLocationsResponseNonNullableFields>;
4948
+ 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`>>;
5269
4949
  export interface QueryLocationsOptions {
5270
4950
  /** Filter. */
5271
4951
  filter?: QueryLocationsFilter;
@@ -5315,7 +4995,7 @@ export interface QueryLocationsOptions {
5315
4995
  * @applicableIdentity VISITOR
5316
4996
  * @fqn wix.bookings.services.v2.ServicesService.QueryCategories
5317
4997
  */
5318
- export declare function queryCategories(options?: QueryCategoriesOptions): Promise<QueryCategoriesResponse & QueryCategoriesResponseNonNullableFields>;
4998
+ export declare function queryCategories(options?: QueryCategoriesOptions): Promise<NonNullablePaths<QueryCategoriesResponse, `categories` | `categories.${number}._id`>>;
5319
4999
  export interface QueryCategoriesOptions {
5320
5000
  /** Filter. */
5321
5001
  filter?: QueryCategoriesFilter;
@@ -5385,7 +5065,9 @@ export interface QueryCategoriesOptions {
5385
5065
  * @applicableIdentity APP
5386
5066
  * @fqn wix.bookings.services.v2.ServicesService.SetServiceLocations
5387
5067
  */
5388
- export declare function setServiceLocations(serviceId: string, locations: V2Location[], options?: SetServiceLocationsOptions): Promise<SetServiceLocationsResponse & SetServiceLocationsResponseNonNullableFields>;
5068
+ export declare function setServiceLocations(serviceId: string, locations: V2Location[], options?: SetServiceLocationsOptions): Promise<NonNullablePaths<SetServiceLocationsResponse, {
5069
+ [P in ServiceNonNullablePaths]: `service.${P}`;
5070
+ }[ServiceNonNullablePaths]>>;
5389
5071
  export interface SetServiceLocationsOptions {
5390
5072
  /**
5391
5073
  * The action to perform on sessions currently set to a removed location. For
@@ -5427,7 +5109,9 @@ export interface SetServiceLocationsOptions {
5427
5109
  * @applicableIdentity APP
5428
5110
  * @fqn wix.bookings.services.v2.ServicesService.EnablePricingPlansForService
5429
5111
  */
5430
- export declare function enablePricingPlansForService(serviceId: string, pricingPlanIds: string[]): Promise<EnablePricingPlansForServiceResponse & EnablePricingPlansForServiceResponseNonNullableFields>;
5112
+ export declare function enablePricingPlansForService(serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, {
5113
+ [P in ServiceNonNullablePaths]: `service.${P}`;
5114
+ }[ServiceNonNullablePaths]>>;
5431
5115
  /**
5432
5116
  * Removes a list of *pricing plan IDs*
5433
5117
  * ([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))
@@ -5450,7 +5134,9 @@ export declare function enablePricingPlansForService(serviceId: string, pricingP
5450
5134
  * @applicableIdentity APP
5451
5135
  * @fqn wix.bookings.services.v2.ServicesService.DisablePricingPlansForService
5452
5136
  */
5453
- export declare function disablePricingPlansForService(serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<DisablePricingPlansForServiceResponse & DisablePricingPlansForServiceResponseNonNullableFields>;
5137
+ export declare function disablePricingPlansForService(serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<NonNullablePaths<DisablePricingPlansForServiceResponse, {
5138
+ [P in ServiceNonNullablePaths]: `service.${P}`;
5139
+ }[ServiceNonNullablePaths]>>;
5454
5140
  export interface DisablePricingPlansForServiceOptions {
5455
5141
  /**
5456
5142
  * IDs of the *pricing plans*
@@ -5482,7 +5168,9 @@ export interface DisablePricingPlansForServiceOptions {
5482
5168
  * @applicableIdentity APP
5483
5169
  * @fqn wix.bookings.services.v2.ServicesService.SetCustomSlug
5484
5170
  */
5485
- export declare function setCustomSlug(serviceId: string, options?: SetCustomSlugOptions): Promise<SetCustomSlugResponse & SetCustomSlugResponseNonNullableFields>;
5171
+ export declare function setCustomSlug(serviceId: string, options?: SetCustomSlugOptions): Promise<NonNullablePaths<SetCustomSlugResponse, `slug.name` | {
5172
+ [P in ServiceNonNullablePaths]: `service.${P}`;
5173
+ }[ServiceNonNullablePaths]>>;
5486
5174
  export interface SetCustomSlugOptions {
5487
5175
  /**
5488
5176
  * Slug to set as the active service slug.
@@ -5513,7 +5201,7 @@ export interface SetCustomSlugOptions {
5513
5201
  * @applicableIdentity APP
5514
5202
  * @fqn wix.bookings.services.v2.ServicesService.ValidateSlug
5515
5203
  */
5516
- export declare function validateSlug(serviceId: string, options?: ValidateSlugOptions): Promise<ValidateSlugResponse & ValidateSlugResponseNonNullableFields>;
5204
+ export declare function validateSlug(serviceId: string, options?: ValidateSlugOptions): Promise<NonNullablePaths<ValidateSlugResponse, `valid` | `errors`>>;
5517
5205
  export interface ValidateSlugOptions {
5518
5206
  /**
5519
5207
  * Custom slug to validate.
@@ -5595,5 +5283,7 @@ export interface ValidateSlugOptions {
5595
5283
  * @applicableIdentity APP
5596
5284
  * @fqn wix.bookings.services.v2.ServicesService.CloneService
5597
5285
  */
5598
- export declare function cloneService(sourceServiceId: string): Promise<CloneServiceResponse & CloneServiceResponseNonNullableFields>;
5286
+ export declare function cloneService(sourceServiceId: string): Promise<NonNullablePaths<CloneServiceResponse, {
5287
+ [P in ServiceNonNullablePaths]: `service.${P}`;
5288
+ }[ServiceNonNullablePaths] | `errors`>>;
5599
5289
  export {};