@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,367 +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
- /** @internal */
4100
- resourceIds?: ResourceIdsNonNullableFields;
4101
- }
4102
- interface SlugNonNullableFields {
4103
- name: string;
4104
- }
4105
- interface URLsNonNullableFields {
4106
- servicePage: string;
4107
- bookingPage: string;
4108
- calendarPage: string;
4109
- }
4110
- interface TagNonNullableFields {
4111
- type: string;
4112
- children: string;
4113
- custom: boolean;
4114
- disabled: boolean;
4115
- }
4116
- interface KeywordNonNullableFields {
4117
- term: string;
4118
- isMain: boolean;
4119
- }
4120
- interface SettingsNonNullableFields {
4121
- preventAutoRedirect: boolean;
4122
- keywords: KeywordNonNullableFields[];
4123
- }
4124
- interface SeoSchemaNonNullableFields {
4125
- tags: TagNonNullableFields[];
4126
- settings?: SettingsNonNullableFields;
4127
- }
4128
- export interface ServiceNonNullableFields {
4129
- type: ServiceType;
4130
- media?: MediaNonNullableFields;
4131
- category?: V2CategoryNonNullableFields;
4132
- form?: FormNonNullableFields;
4133
- payment?: PaymentNonNullableFields;
4134
- locations: V2LocationNonNullableFields[];
4135
- bookingPolicy?: BookingPolicyNonNullableFields;
4136
- schedule?: V2ScheduleNonNullableFields;
4137
- staffMemberIds: string[];
4138
- staffMembers: StaffMemberNonNullableFields[];
4139
- staffMemberDetails?: StaffMemberDetailsNonNullableFields;
4140
- resourceGroups: ResourceGroupNonNullableFields[];
4141
- serviceResources: ServiceResourceNonNullableFields[];
4142
- supportedSlugs: SlugNonNullableFields[];
4143
- mainSlug?: SlugNonNullableFields;
4144
- urls?: URLsNonNullableFields;
4145
- seoData?: SeoSchemaNonNullableFields;
4146
- }
4147
- export interface CreateServiceResponseNonNullableFields {
4148
- service?: ServiceNonNullableFields;
4149
- }
4150
- export interface GetServiceResponseNonNullableFields {
4151
- service?: ServiceNonNullableFields;
4152
- }
4153
- export interface UpdateServiceResponseNonNullableFields {
4154
- service?: ServiceNonNullableFields;
4155
- }
4156
- interface ApplicationErrorNonNullableFields {
4157
- code: string;
4158
- description: string;
4159
- }
4160
- interface ItemMetadataNonNullableFields {
4161
- originalIndex: number;
4162
- success: boolean;
4163
- error?: ApplicationErrorNonNullableFields;
4164
- }
4165
- interface BulkServiceResultNonNullableFields {
4166
- itemMetadata?: ItemMetadataNonNullableFields;
4167
- item?: ServiceNonNullableFields;
4168
- }
4169
- interface BulkActionMetadataNonNullableFields {
4170
- totalSuccesses: number;
4171
- totalFailures: number;
4172
- undetailedFailures: number;
4173
- }
4174
- export interface BulkUpdateServicesResponseNonNullableFields {
4175
- results: BulkServiceResultNonNullableFields[];
4176
- bulkActionMetadata?: BulkActionMetadataNonNullableFields;
4177
- }
4178
- export interface BulkUpdateServicesByFilterResponseNonNullableFields {
4179
- jobId: string;
4180
- }
4181
- export interface BulkDeleteServicesResponseNonNullableFields {
4182
- results: BulkServiceResultNonNullableFields[];
4183
- bulkActionMetadata?: BulkActionMetadataNonNullableFields;
4184
- }
4185
- export interface BulkDeleteServicesByFilterResponseNonNullableFields {
4186
- jobId: string;
4187
- }
4188
- export interface QueryServicesResponseNonNullableFields {
4189
- services: ServiceNonNullableFields[];
4190
- }
4191
- interface ValueAggregationResultNonNullableFields {
4192
- value: string;
4193
- count: number;
4194
- }
4195
- interface ValueResultsNonNullableFields {
4196
- results: ValueAggregationResultNonNullableFields[];
4197
- }
4198
- interface RangeAggregationResultNonNullableFields {
4199
- count: number;
4200
- }
4201
- interface RangeResultsNonNullableFields {
4202
- results: RangeAggregationResultNonNullableFields[];
4203
- }
4204
- interface AggregationResultsScalarResultNonNullableFields {
4205
- type: ScalarType;
4206
- value: number;
4207
- }
4208
- interface NestedAggregationResultsNonNullableFields {
4209
- values?: ValueResultsNonNullableFields;
4210
- ranges?: RangeResultsNonNullableFields;
4211
- scalar?: AggregationResultsScalarResultNonNullableFields;
4212
- name: string;
4213
- type: AggregationType;
4214
- fieldPath: string;
4215
- }
4216
- interface NestedValueAggregationResultNonNullableFields {
4217
- value: string;
4218
- nestedResults?: NestedAggregationResultsNonNullableFields;
4219
- }
4220
- interface GroupByValueResultsNonNullableFields {
4221
- results: NestedValueAggregationResultNonNullableFields[];
4222
- }
4223
- interface DateHistogramResultNonNullableFields {
4224
- value: string;
4225
- count: number;
4226
- }
4227
- interface DateHistogramResultsNonNullableFields {
4228
- results: DateHistogramResultNonNullableFields[];
4229
- }
4230
- interface AggregationResultsNonNullableFields {
4231
- values?: ValueResultsNonNullableFields;
4232
- ranges?: RangeResultsNonNullableFields;
4233
- scalar?: AggregationResultsScalarResultNonNullableFields;
4234
- groupedByValue?: GroupByValueResultsNonNullableFields;
4235
- dateHistogram?: DateHistogramResultsNonNullableFields;
4236
- name: string;
4237
- type: AggregationType;
4238
- fieldPath: string;
4239
- }
4240
- interface AggregationDataNonNullableFields {
4241
- results: AggregationResultsNonNullableFields[];
4242
- }
4243
- export interface SearchServicesResponseNonNullableFields {
4244
- services: ServiceNonNullableFields[];
4245
- aggregationData?: AggregationDataNonNullableFields;
4246
- }
4247
- interface BookingPolicyWithServicesNonNullableFields {
4248
- bookingPolicy?: BookingPolicyNonNullableFields;
4249
- services: ServiceNonNullableFields[];
4250
- countOfServices: number;
4251
- connectedServices: ServiceNonNullableFields[];
4252
- totalServiceCount: number;
4253
- }
4254
- export interface QueryPoliciesResponseNonNullableFields {
4255
- bookingPolicies: BookingPolicyWithServicesNonNullableFields[];
4256
- }
4257
- interface FormDetailsNonNullableFields {
4258
- formId: string;
4259
- }
4260
- interface BookingFormNonNullableFields {
4261
- formDetails?: FormDetailsNonNullableFields;
4262
- totalServiceCount: number;
4263
- }
4264
- export interface QueryBookingFormsResponseNonNullableFields {
4265
- bookingForms: BookingFormNonNullableFields[];
4266
- defaultBookingForm?: BookingFormNonNullableFields;
4267
- }
4268
- export interface CountServicesResponseNonNullableFields {
4269
- count: number;
4270
- }
4271
- interface BusinessLocationsNonNullableFields {
4272
- exists: boolean;
4273
- locations: V2LocationNonNullableFields[];
4274
- }
4275
- interface CustomLocationsNonNullableFields {
4276
- exists: boolean;
4277
- }
4278
- interface CustomerLocationsNonNullableFields {
4279
- exists: boolean;
4280
- }
4281
- export interface QueryLocationsResponseNonNullableFields {
4282
- businessLocations?: BusinessLocationsNonNullableFields;
4283
- customLocations?: CustomLocationsNonNullableFields;
4284
- customerLocations?: CustomerLocationsNonNullableFields;
4285
- }
4286
- export interface QueryCategoriesResponseNonNullableFields {
4287
- categories: V2CategoryNonNullableFields[];
4288
- }
4289
- export interface SetServiceLocationsResponseNonNullableFields {
4290
- service?: ServiceNonNullableFields;
4291
- }
4292
- export interface EnablePricingPlansForServiceResponseNonNullableFields {
4293
- service?: ServiceNonNullableFields;
4294
- }
4295
- export interface DisablePricingPlansForServiceResponseNonNullableFields {
4296
- service?: ServiceNonNullableFields;
4297
- }
4298
- export interface SetCustomSlugResponseNonNullableFields {
4299
- slug?: SlugNonNullableFields;
4300
- service?: ServiceNonNullableFields;
4301
- }
4302
- export interface ValidateSlugResponseNonNullableFields {
4303
- valid: boolean;
4304
- errors: InvalidSlugError[];
4305
- }
4306
- export interface CloneServiceResponseNonNullableFields {
4307
- service?: ServiceNonNullableFields;
4308
- errors: CloneErrors[];
4309
- }
4310
3979
  export interface BaseEventMetadata {
4311
3980
  /**
4312
3981
  * App instance ID.
@@ -4437,6 +4106,7 @@ export interface ServiceUpdatedEnvelope {
4437
4106
  * @slug updated
4438
4107
  */
4439
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`;
4440
4110
  /**
4441
4111
  * Creates a service.
4442
4112
  *
@@ -4494,7 +4164,7 @@ export declare function onServiceUpdated(handler: (event: ServiceUpdatedEnvelope
4494
4164
  * @returns Created service.
4495
4165
  * @fqn wix.bookings.services.v2.ServicesService.CreateService
4496
4166
  */
4497
- export declare function createService(service: Service): Promise<Service & ServiceNonNullableFields>;
4167
+ export declare function createService(service: Service): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
4498
4168
  /**
4499
4169
  * Retrieves a service.
4500
4170
  * @param serviceId - ID of the service to retrieve.
@@ -4520,7 +4190,7 @@ export declare function createService(service: Service): Promise<Service & Servi
4520
4190
  * @returns Retrieved service.
4521
4191
  * @fqn wix.bookings.services.v2.ServicesService.GetService
4522
4192
  */
4523
- export declare function getService(serviceId: string): Promise<Service & ServiceNonNullableFields>;
4193
+ export declare function getService(serviceId: string): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
4524
4194
  /**
4525
4195
  * Updates a service.
4526
4196
  *
@@ -4554,7 +4224,7 @@ export declare function getService(serviceId: string): Promise<Service & Service
4554
4224
  * @returns Updated service.
4555
4225
  * @fqn wix.bookings.services.v2.ServicesService.UpdateService
4556
4226
  */
4557
- 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>>;
4558
4228
  export interface UpdateService {
4559
4229
  /**
4560
4230
  * Service ID.
@@ -4716,7 +4386,9 @@ export interface UpdateService {
4716
4386
  * @applicableIdentity APP
4717
4387
  * @fqn wix.bookings.services.v2.ServicesService.BulkUpdateServices
4718
4388
  */
4719
- 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`>>;
4720
4392
  export interface BulkUpdateServicesOptions {
4721
4393
  /**
4722
4394
  * Services to update.
@@ -4755,7 +4427,7 @@ export interface BulkUpdateServicesOptions {
4755
4427
  * @applicableIdentity APP
4756
4428
  * @fqn wix.bookings.services.v2.ServicesService.BulkUpdateServicesByFilter
4757
4429
  */
4758
- 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`>>;
4759
4431
  export interface BulkUpdateServicesByFilterOptions {
4760
4432
  /** Service to update. */
4761
4433
  service: Service;
@@ -4817,7 +4489,9 @@ export interface DeleteServiceOptions {
4817
4489
  * @applicableIdentity APP
4818
4490
  * @fqn wix.bookings.services.v2.ServicesService.BulkDeleteServices
4819
4491
  */
4820
- 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`>>;
4821
4495
  export interface BulkDeleteServicesOptions {
4822
4496
  /**
4823
4497
  * Whether to preserve future sessions with participants.
@@ -4861,7 +4535,7 @@ export interface BulkDeleteServicesOptions {
4861
4535
  * @applicableIdentity APP
4862
4536
  * @fqn wix.bookings.services.v2.ServicesService.BulkDeleteServicesByFilter
4863
4537
  */
4864
- 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`>>;
4865
4539
  export interface BulkDeleteServicesByFilterOptions {
4866
4540
  /**
4867
4541
  * Whether to preserve future sessions with participants.
@@ -5023,7 +4697,9 @@ export interface ServicesQueryBuilder {
5023
4697
  * @applicableIdentity VISITOR
5024
4698
  * @fqn wix.bookings.services.v2.ServicesService.SearchServices
5025
4699
  */
5026
- 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`>>;
5027
4703
  /**
5028
4704
  * Retrieves a list of up to 100 *booking policies*
5029
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)),
@@ -5100,7 +4776,9 @@ export declare function searchServices(search: CursorSearch): Promise<SearchServ
5100
4776
  * @applicableIdentity VISITOR
5101
4777
  * @fqn wix.bookings.services.v2.ServicesService.QueryPolicies
5102
4778
  */
5103
- 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`>>;
5104
4782
  /**
5105
4783
  * Retrieves a list of up to 100 *booking forms*
5106
4784
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/forms/forms/introduction) | [REST](https://dev.wix.com/docs/rest/crm/forms/forms/introduction)),
@@ -5174,7 +4852,7 @@ export declare function queryPolicies(query: CursorQuery): Promise<QueryPolicies
5174
4852
  * @applicableIdentity VISITOR
5175
4853
  * @fqn wix.bookings.services.v2.ServicesService.QueryBookingForms
5176
4854
  */
5177
- 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`>>;
5178
4856
  export interface QueryBookingFormsOptions {
5179
4857
  /**
5180
4858
  * Conditional fields to return.
@@ -5212,7 +4890,7 @@ export interface QueryBookingFormsOptions {
5212
4890
  * @applicableIdentity VISITOR
5213
4891
  * @fqn wix.bookings.services.v2.ServicesService.CountServices
5214
4892
  */
5215
- export declare function countServices(options?: CountServicesOptions): Promise<CountServicesResponse & CountServicesResponseNonNullableFields>;
4893
+ export declare function countServices(options?: CountServicesOptions): Promise<NonNullablePaths<CountServicesResponse, `count`>>;
5216
4894
  export interface CountServicesOptions {
5217
4895
  /**
5218
4896
  * Query filter to base the count on. See supported filters
@@ -5267,7 +4945,7 @@ export interface CountServicesOptions {
5267
4945
  * @applicableIdentity VISITOR
5268
4946
  * @fqn wix.bookings.services.v2.ServicesService.QueryLocations
5269
4947
  */
5270
- 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`>>;
5271
4949
  export interface QueryLocationsOptions {
5272
4950
  /** Filter. */
5273
4951
  filter?: QueryLocationsFilter;
@@ -5317,7 +4995,7 @@ export interface QueryLocationsOptions {
5317
4995
  * @applicableIdentity VISITOR
5318
4996
  * @fqn wix.bookings.services.v2.ServicesService.QueryCategories
5319
4997
  */
5320
- export declare function queryCategories(options?: QueryCategoriesOptions): Promise<QueryCategoriesResponse & QueryCategoriesResponseNonNullableFields>;
4998
+ export declare function queryCategories(options?: QueryCategoriesOptions): Promise<NonNullablePaths<QueryCategoriesResponse, `categories` | `categories.${number}._id`>>;
5321
4999
  export interface QueryCategoriesOptions {
5322
5000
  /** Filter. */
5323
5001
  filter?: QueryCategoriesFilter;
@@ -5387,7 +5065,9 @@ export interface QueryCategoriesOptions {
5387
5065
  * @applicableIdentity APP
5388
5066
  * @fqn wix.bookings.services.v2.ServicesService.SetServiceLocations
5389
5067
  */
5390
- 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]>>;
5391
5071
  export interface SetServiceLocationsOptions {
5392
5072
  /**
5393
5073
  * The action to perform on sessions currently set to a removed location. For
@@ -5429,7 +5109,9 @@ export interface SetServiceLocationsOptions {
5429
5109
  * @applicableIdentity APP
5430
5110
  * @fqn wix.bookings.services.v2.ServicesService.EnablePricingPlansForService
5431
5111
  */
5432
- 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]>>;
5433
5115
  /**
5434
5116
  * Removes a list of *pricing plan IDs*
5435
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))
@@ -5452,7 +5134,9 @@ export declare function enablePricingPlansForService(serviceId: string, pricingP
5452
5134
  * @applicableIdentity APP
5453
5135
  * @fqn wix.bookings.services.v2.ServicesService.DisablePricingPlansForService
5454
5136
  */
5455
- 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]>>;
5456
5140
  export interface DisablePricingPlansForServiceOptions {
5457
5141
  /**
5458
5142
  * IDs of the *pricing plans*
@@ -5484,7 +5168,9 @@ export interface DisablePricingPlansForServiceOptions {
5484
5168
  * @applicableIdentity APP
5485
5169
  * @fqn wix.bookings.services.v2.ServicesService.SetCustomSlug
5486
5170
  */
5487
- 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]>>;
5488
5174
  export interface SetCustomSlugOptions {
5489
5175
  /**
5490
5176
  * Slug to set as the active service slug.
@@ -5515,7 +5201,7 @@ export interface SetCustomSlugOptions {
5515
5201
  * @applicableIdentity APP
5516
5202
  * @fqn wix.bookings.services.v2.ServicesService.ValidateSlug
5517
5203
  */
5518
- 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`>>;
5519
5205
  export interface ValidateSlugOptions {
5520
5206
  /**
5521
5207
  * Custom slug to validate.
@@ -5597,5 +5283,7 @@ export interface ValidateSlugOptions {
5597
5283
  * @applicableIdentity APP
5598
5284
  * @fqn wix.bookings.services.v2.ServicesService.CloneService
5599
5285
  */
5600
- 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`>>;
5601
5289
  export {};