@wix/bookings 1.0.467 → 1.0.469
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/type-bundles/context.bundle.d.ts +68 -58
- package/type-bundles/index.bundle.d.ts +68 -58
- package/type-bundles/meta.bundle.d.ts +62 -260
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/bookings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.469",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@wix/bookings_external-calendars": "1.0.40",
|
|
34
34
|
"@wix/bookings_multi-service-availability-time-slots": "1.0.36",
|
|
35
35
|
"@wix/bookings_pricing": "1.0.42",
|
|
36
|
-
"@wix/bookings_resource-types": "1.0.
|
|
37
|
-
"@wix/bookings_resources": "1.0.
|
|
36
|
+
"@wix/bookings_resource-types": "1.0.10",
|
|
37
|
+
"@wix/bookings_resources": "1.0.52",
|
|
38
38
|
"@wix/bookings_service-options-and-variants": "1.0.53",
|
|
39
39
|
"@wix/bookings_services": "1.0.77",
|
|
40
40
|
"@wix/bookings_staff-members": "1.0.13"
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"fqdn": ""
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
"falconPackageHash": "
|
|
65
|
+
"falconPackageHash": "a054c3a78062c2d28ccdeaeeab8193482337f3b5bf4ffaeb96d9f483"
|
|
66
66
|
}
|
|
@@ -9311,8 +9311,6 @@ declare namespace context$9 {
|
|
|
9311
9311
|
* Read more about resources in this [article](https://support.wix.com/en/article/wix-bookings-managing-your-resources).
|
|
9312
9312
|
*/
|
|
9313
9313
|
interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
9314
|
-
/** Details of a single resource. */
|
|
9315
|
-
singleResource?: SingleResource;
|
|
9316
9314
|
/**
|
|
9317
9315
|
* Resource ID
|
|
9318
9316
|
* @readonly
|
|
@@ -9357,6 +9355,25 @@ interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
|
9357
9355
|
*/
|
|
9358
9356
|
type?: string | null;
|
|
9359
9357
|
typeId?: string | null;
|
|
9358
|
+
/**
|
|
9359
|
+
* Schedule details that specify the working hours and locations of this resource.
|
|
9360
|
+
*
|
|
9361
|
+
* When this field is not set or `working_hours_schedules.enabled` is `false` then the resource is assumed to be
|
|
9362
|
+
* available full time (7 x 24) at the locations specified in the field `location_options`.
|
|
9363
|
+
* When both `working_hours_schedules` and `location_options` are set then `working_hours_schedules` takes precedence.
|
|
9364
|
+
*/
|
|
9365
|
+
workingHoursSchedules?: WorkingHoursSchedules;
|
|
9366
|
+
/**
|
|
9367
|
+
* Location details that specify where this resource is available.
|
|
9368
|
+
*
|
|
9369
|
+
* If this field is not supplied then `location_options.available_in_all_locations` is set to `true`.
|
|
9370
|
+
*/
|
|
9371
|
+
locationOptions?: LocationOptions$1;
|
|
9372
|
+
/**
|
|
9373
|
+
* This schedule contains the sessions in which this resource has been booked.
|
|
9374
|
+
* @readonly
|
|
9375
|
+
*/
|
|
9376
|
+
eventsSchedule?: EventsSchedule;
|
|
9360
9377
|
/**
|
|
9361
9378
|
* The ID of the app of which this resource belongs to.
|
|
9362
9379
|
* Default: Bookings App ID.
|
|
@@ -9372,8 +9389,18 @@ interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
|
9372
9389
|
}
|
|
9373
9390
|
/** @oneof */
|
|
9374
9391
|
interface ResourceCompositionDetailsOneOf {
|
|
9375
|
-
|
|
9376
|
-
|
|
9392
|
+
}
|
|
9393
|
+
interface WorkingHoursSchedule$1 {
|
|
9394
|
+
/** schedule ID */
|
|
9395
|
+
_id?: string | null;
|
|
9396
|
+
/**
|
|
9397
|
+
* Whether this schedule is used by multiple resources or unique for this resource.
|
|
9398
|
+
*
|
|
9399
|
+
* `true` if it is a shared schedule (for example from a business or location), `false` this is a custom schedule specific to the resource.
|
|
9400
|
+
* Default: `false`.
|
|
9401
|
+
* @readonly
|
|
9402
|
+
*/
|
|
9403
|
+
shared?: boolean | null;
|
|
9377
9404
|
}
|
|
9378
9405
|
interface SingleResource {
|
|
9379
9406
|
/**
|
|
@@ -9383,7 +9410,7 @@ interface SingleResource {
|
|
|
9383
9410
|
* available full time (7 x 24) at the locations specified in the field `location_options`.
|
|
9384
9411
|
* When both `working_hours_schedules` and `location_options` are set then `working_hours_schedules` takes precedence.
|
|
9385
9412
|
*/
|
|
9386
|
-
workingHoursSchedules?:
|
|
9413
|
+
workingHoursSchedules?: V2WorkingHoursSchedules;
|
|
9387
9414
|
/**
|
|
9388
9415
|
* Location details that specify where this resource is available.
|
|
9389
9416
|
*
|
|
@@ -9396,7 +9423,7 @@ interface SingleResource {
|
|
|
9396
9423
|
*/
|
|
9397
9424
|
eventsSchedule?: Schedule$2;
|
|
9398
9425
|
}
|
|
9399
|
-
interface
|
|
9426
|
+
interface V2WorkingHoursSchedules {
|
|
9400
9427
|
/**
|
|
9401
9428
|
* Whether the working hours schedules is enabled.
|
|
9402
9429
|
*
|
|
@@ -9408,6 +9435,7 @@ interface WorkingHoursSchedules {
|
|
|
9408
9435
|
/** schedules specifying all the working hours of the resource. Currently a single schedule is supported. */
|
|
9409
9436
|
values?: Schedule$2[];
|
|
9410
9437
|
}
|
|
9438
|
+
/** Deprecated and subject to removal */
|
|
9411
9439
|
interface Schedule$2 {
|
|
9412
9440
|
/** schedule ID */
|
|
9413
9441
|
scheduleId?: string | null;
|
|
@@ -9448,6 +9476,14 @@ interface BusinessLocation$2 {
|
|
|
9448
9476
|
/** The ID of the business location. Must not be empty. */
|
|
9449
9477
|
locationId?: string | null;
|
|
9450
9478
|
}
|
|
9479
|
+
interface WorkingHoursSchedules {
|
|
9480
|
+
/** schedules specifying all the working hours of the resource. Currently a single schedule is supported. */
|
|
9481
|
+
values?: WorkingHoursSchedule$1[];
|
|
9482
|
+
}
|
|
9483
|
+
interface EventsSchedule {
|
|
9484
|
+
/** schedule ID */
|
|
9485
|
+
_id?: string | null;
|
|
9486
|
+
}
|
|
9451
9487
|
declare enum ManagementType {
|
|
9452
9488
|
UNKNOWN_MANAGEMENT_TYPE = "UNKNOWN_MANAGEMENT_TYPE",
|
|
9453
9489
|
/** The resource is managed by an app. */
|
|
@@ -10606,8 +10642,6 @@ interface BulkCreateResourcesOptions {
|
|
|
10606
10642
|
returnEntity?: boolean;
|
|
10607
10643
|
}
|
|
10608
10644
|
interface UpdateResource {
|
|
10609
|
-
/** Details of a single resource. */
|
|
10610
|
-
singleResource?: SingleResource;
|
|
10611
10645
|
/**
|
|
10612
10646
|
* Resource ID
|
|
10613
10647
|
* @readonly
|
|
@@ -10652,6 +10686,25 @@ interface UpdateResource {
|
|
|
10652
10686
|
*/
|
|
10653
10687
|
type?: string | null;
|
|
10654
10688
|
typeId?: string | null;
|
|
10689
|
+
/**
|
|
10690
|
+
* Schedule details that specify the working hours and locations of this resource.
|
|
10691
|
+
*
|
|
10692
|
+
* When this field is not set or `working_hours_schedules.enabled` is `false` then the resource is assumed to be
|
|
10693
|
+
* available full time (7 x 24) at the locations specified in the field `location_options`.
|
|
10694
|
+
* When both `working_hours_schedules` and `location_options` are set then `working_hours_schedules` takes precedence.
|
|
10695
|
+
*/
|
|
10696
|
+
workingHoursSchedules?: WorkingHoursSchedules;
|
|
10697
|
+
/**
|
|
10698
|
+
* Location details that specify where this resource is available.
|
|
10699
|
+
*
|
|
10700
|
+
* If this field is not supplied then `location_options.available_in_all_locations` is set to `true`.
|
|
10701
|
+
*/
|
|
10702
|
+
locationOptions?: LocationOptions$1;
|
|
10703
|
+
/**
|
|
10704
|
+
* This schedule contains the sessions in which this resource has been booked.
|
|
10705
|
+
* @readonly
|
|
10706
|
+
*/
|
|
10707
|
+
eventsSchedule?: EventsSchedule;
|
|
10655
10708
|
/**
|
|
10656
10709
|
* The ID of the app of which this resource belongs to.
|
|
10657
10710
|
* Default: Bookings App ID.
|
|
@@ -10853,6 +10906,7 @@ type context$8_CreateResourceResponse = CreateResourceResponse;
|
|
|
10853
10906
|
type context$8_CreateResourceResponseNonNullableFields = CreateResourceResponseNonNullableFields;
|
|
10854
10907
|
type context$8_DeleteResourceRequest = DeleteResourceRequest;
|
|
10855
10908
|
type context$8_DeleteResourceResponse = DeleteResourceResponse;
|
|
10909
|
+
type context$8_EventsSchedule = EventsSchedule;
|
|
10856
10910
|
type context$8_FixResourceSchedulesRequest = FixResourceSchedulesRequest;
|
|
10857
10911
|
type context$8_FixResourceSchedulesResponse = FixResourceSchedulesResponse;
|
|
10858
10912
|
type context$8_GetDeletedResourceRequest = GetDeletedResourceRequest;
|
|
@@ -10888,6 +10942,7 @@ type context$8_UpdateResource = UpdateResource;
|
|
|
10888
10942
|
type context$8_UpdateResourceRequest = UpdateResourceRequest;
|
|
10889
10943
|
type context$8_UpdateResourceResponse = UpdateResourceResponse;
|
|
10890
10944
|
type context$8_UpdateResourceResponseNonNullableFields = UpdateResourceResponseNonNullableFields;
|
|
10945
|
+
type context$8_V2WorkingHoursSchedules = V2WorkingHoursSchedules;
|
|
10891
10946
|
type context$8_WorkingHoursSchedules = WorkingHoursSchedules;
|
|
10892
10947
|
type context$8__publicOnResourceCreatedType = _publicOnResourceCreatedType;
|
|
10893
10948
|
type context$8__publicOnResourceDeletedType = _publicOnResourceDeletedType;
|
|
@@ -10903,7 +10958,7 @@ declare const context$8_onResourceUpdated: typeof onResourceUpdated;
|
|
|
10903
10958
|
declare const context$8_queryResources: typeof queryResources;
|
|
10904
10959
|
declare const context$8_updateResource: typeof updateResource;
|
|
10905
10960
|
declare namespace context$8 {
|
|
10906
|
-
export { type ActionEvent$6 as ActionEvent, type Aggregation$1 as Aggregation, type AggregationData$2 as AggregationData, type AggregationKindOneOf$1 as AggregationKindOneOf, type AggregationResults$2 as AggregationResults, type AggregationResultsResultOneOf$2 as AggregationResultsResultOneOf, type AggregationResultsScalarResult$1 as AggregationResultsScalarResult, AggregationType$2 as AggregationType, type ApplicationError$3 as ApplicationError, type Asset$1 as Asset, type BaseEventMetadata$6 as BaseEventMetadata, type BulkActionMetadata$3 as BulkActionMetadata, type context$8_BulkCreateResourcesOptions as BulkCreateResourcesOptions, type context$8_BulkCreateResourcesRequest as BulkCreateResourcesRequest, type context$8_BulkCreateResourcesResponse as BulkCreateResourcesResponse, type context$8_BulkCreateResourcesResponseNonNullableFields as BulkCreateResourcesResponseNonNullableFields, type context$8_BulkDeleteResourcesRequest as BulkDeleteResourcesRequest, type context$8_BulkDeleteResourcesResponse as BulkDeleteResourcesResponse, type context$8_BulkDeleteResourcesResponseNonNullableFields as BulkDeleteResourcesResponseNonNullableFields, type context$8_BulkResourceResult as BulkResourceResult, type BusinessLocation$2 as BusinessLocation, type context$8_CountResourcesRequest as CountResourcesRequest, type context$8_CountResourcesResponse as CountResourcesResponse, type context$8_CreateResourceRequest as CreateResourceRequest, type context$8_CreateResourceResponse as CreateResourceResponse, type context$8_CreateResourceResponseNonNullableFields as CreateResourceResponseNonNullableFields, type CursorPaging$6 as CursorPaging, type CursorPagingMetadata$5 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type CursorSearch$2 as CursorSearch, type CursorSearchPagingMethodOneOf$2 as CursorSearchPagingMethodOneOf, type Cursors$6 as Cursors, type DateHistogramAggregation$1 as DateHistogramAggregation, type DateHistogramResult$1 as DateHistogramResult, type DateHistogramResults$1 as DateHistogramResults, type DeleteContext$1 as DeleteContext, type context$8_DeleteResourceRequest as DeleteResourceRequest, type context$8_DeleteResourceResponse as DeleteResourceResponse, DeleteStatus$1 as DeleteStatus, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type ExtendedFields$6 as ExtendedFields, type context$8_FixResourceSchedulesRequest as FixResourceSchedulesRequest, type context$8_FixResourceSchedulesResponse as FixResourceSchedulesResponse, type context$8_GetDeletedResourceRequest as GetDeletedResourceRequest, type context$8_GetDeletedResourceResponse as GetDeletedResourceResponse, type context$8_GetResourceRequest as GetResourceRequest, type context$8_GetResourceResponse as GetResourceResponse, type context$8_GetResourceResponseNonNullableFields as GetResourceResponseNonNullableFields, type GroupByAggregation$1 as GroupByAggregation, type GroupByAggregationKindOneOf$1 as GroupByAggregationKindOneOf, type GroupByValueResults$2 as GroupByValueResults, type IdentificationData$8 as IdentificationData, type IdentificationDataIdOneOf$8 as IdentificationDataIdOneOf, type context$8_ImportResourceRequest as ImportResourceRequest, type context$8_ImportResourceResponse as ImportResourceResponse, type IncludeMissingValuesOptions$1 as IncludeMissingValuesOptions, Interval$2 as Interval, type ItemMetadata$3 as ItemMetadata, type context$8_ListDeletedResourcesRequest as ListDeletedResourcesRequest, type context$8_ListDeletedResourcesResponse as ListDeletedResourcesResponse, type LocationOptions$1 as LocationOptions, context$8_ManagementType as ManagementType, type MessageEnvelope$7 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, MissingValues$1 as MissingValues, Mode$2 as Mode, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type NestedAggregation$1 as NestedAggregation, type NestedAggregationItem$1 as NestedAggregationItem, type NestedAggregationItemKindOneOf$1 as NestedAggregationItemKindOneOf, type NestedAggregationResults$2 as NestedAggregationResults, type NestedAggregationResultsResultOneOf$2 as NestedAggregationResultsResultOneOf, NestedAggregationType$1 as NestedAggregationType, type NestedResultValue$1 as NestedResultValue, type NestedResultValueResultOneOf$1 as NestedResultValueResultOneOf, type NestedResults$1 as NestedResults, type NestedValueAggregationResult$2 as NestedValueAggregationResult, type context$8_QueryResourcesRequest as QueryResourcesRequest, type context$8_QueryResourcesResponse as QueryResourcesResponse, type context$8_QueryResourcesResponseNonNullableFields as QueryResourcesResponseNonNullableFields, type RangeAggregation$1 as RangeAggregation, type RangeAggregationResult$2 as RangeAggregationResult, type RangeBucket$1 as RangeBucket, type RangeResult$1 as RangeResult, type RangeResults$2 as RangeResults, type context$8_ReindexTenantRequest as ReindexTenantRequest, type context$8_ReindexTenantResponse as ReindexTenantResponse, type context$8_RemoveResourceFromTrashBinRequest as RemoveResourceFromTrashBinRequest, type context$8_RemoveResourceFromTrashBinResponse as RemoveResourceFromTrashBinResponse, type Resource$2 as Resource, type context$8_ResourceCompositionDetailsOneOf as ResourceCompositionDetailsOneOf, type context$8_ResourceCreatedEnvelope as ResourceCreatedEnvelope, type context$8_ResourceDeletedEnvelope as ResourceDeletedEnvelope, type ResourceNonNullableFields$1 as ResourceNonNullableFields, type context$8_ResourceUpdatedEnvelope as ResourceUpdatedEnvelope, type context$8_ResourcesQueryBuilder as ResourcesQueryBuilder, type context$8_ResourcesQueryResult as ResourcesQueryResult, type RestoreInfo$6 as RestoreInfo, type context$8_RestoreResourceFromTrashBinRequest as RestoreResourceFromTrashBinRequest, type context$8_RestoreResourceFromTrashBinResponse as RestoreResourceFromTrashBinResponse, type Results$1 as Results, type ScalarAggregation$1 as ScalarAggregation, type ScalarResult$2 as ScalarResult, ScalarType$2 as ScalarType, type Schedule$2 as Schedule, type SearchDetails$2 as SearchDetails, type context$8_SearchResourcesRequest as SearchResourcesRequest, type context$8_SearchResourcesResponse as SearchResourcesResponse, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type context$8_SingleResource as SingleResource, type SiteCreated$3 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortDirection$1 as SortDirection, SortOrder$6 as SortOrder, SortType$1 as SortType, type Sorting$6 as Sorting, type SpecificLocation$1 as SpecificLocation, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type context$8_UpdateResource as UpdateResource, type context$8_UpdateResourceRequest as UpdateResourceRequest, type context$8_UpdateResourceResponse as UpdateResourceResponse, type context$8_UpdateResourceResponseNonNullableFields as UpdateResourceResponseNonNullableFields, type ValueAggregation$1 as ValueAggregation, type ValueAggregationOptionsOneOf$1 as ValueAggregationOptionsOneOf, type ValueAggregationResult$2 as ValueAggregationResult, type ValueResult$1 as ValueResult, type ValueResults$2 as ValueResults, WebhookIdentityType$7 as WebhookIdentityType, type context$8_WorkingHoursSchedules as WorkingHoursSchedules, type context$8__publicOnResourceCreatedType as _publicOnResourceCreatedType, type context$8__publicOnResourceDeletedType as _publicOnResourceDeletedType, type context$8__publicOnResourceUpdatedType as _publicOnResourceUpdatedType, context$8_bulkCreateResources as bulkCreateResources, context$8_bulkDeleteResources as bulkDeleteResources, context$8_createResource as createResource, context$8_deleteResource as deleteResource, context$8_getResource as getResource, context$8_onResourceCreated as onResourceCreated, context$8_onResourceDeleted as onResourceDeleted, context$8_onResourceUpdated as onResourceUpdated, onResourceCreated$1 as publicOnResourceCreated, onResourceDeleted$1 as publicOnResourceDeleted, onResourceUpdated$1 as publicOnResourceUpdated, context$8_queryResources as queryResources, context$8_updateResource as updateResource };
|
|
10961
|
+
export { type ActionEvent$6 as ActionEvent, type Aggregation$1 as Aggregation, type AggregationData$2 as AggregationData, type AggregationKindOneOf$1 as AggregationKindOneOf, type AggregationResults$2 as AggregationResults, type AggregationResultsResultOneOf$2 as AggregationResultsResultOneOf, type AggregationResultsScalarResult$1 as AggregationResultsScalarResult, AggregationType$2 as AggregationType, type ApplicationError$3 as ApplicationError, type Asset$1 as Asset, type BaseEventMetadata$6 as BaseEventMetadata, type BulkActionMetadata$3 as BulkActionMetadata, type context$8_BulkCreateResourcesOptions as BulkCreateResourcesOptions, type context$8_BulkCreateResourcesRequest as BulkCreateResourcesRequest, type context$8_BulkCreateResourcesResponse as BulkCreateResourcesResponse, type context$8_BulkCreateResourcesResponseNonNullableFields as BulkCreateResourcesResponseNonNullableFields, type context$8_BulkDeleteResourcesRequest as BulkDeleteResourcesRequest, type context$8_BulkDeleteResourcesResponse as BulkDeleteResourcesResponse, type context$8_BulkDeleteResourcesResponseNonNullableFields as BulkDeleteResourcesResponseNonNullableFields, type context$8_BulkResourceResult as BulkResourceResult, type BusinessLocation$2 as BusinessLocation, type context$8_CountResourcesRequest as CountResourcesRequest, type context$8_CountResourcesResponse as CountResourcesResponse, type context$8_CreateResourceRequest as CreateResourceRequest, type context$8_CreateResourceResponse as CreateResourceResponse, type context$8_CreateResourceResponseNonNullableFields as CreateResourceResponseNonNullableFields, type CursorPaging$6 as CursorPaging, type CursorPagingMetadata$5 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type CursorSearch$2 as CursorSearch, type CursorSearchPagingMethodOneOf$2 as CursorSearchPagingMethodOneOf, type Cursors$6 as Cursors, type DateHistogramAggregation$1 as DateHistogramAggregation, type DateHistogramResult$1 as DateHistogramResult, type DateHistogramResults$1 as DateHistogramResults, type DeleteContext$1 as DeleteContext, type context$8_DeleteResourceRequest as DeleteResourceRequest, type context$8_DeleteResourceResponse as DeleteResourceResponse, DeleteStatus$1 as DeleteStatus, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type context$8_EventsSchedule as EventsSchedule, type ExtendedFields$6 as ExtendedFields, type context$8_FixResourceSchedulesRequest as FixResourceSchedulesRequest, type context$8_FixResourceSchedulesResponse as FixResourceSchedulesResponse, type context$8_GetDeletedResourceRequest as GetDeletedResourceRequest, type context$8_GetDeletedResourceResponse as GetDeletedResourceResponse, type context$8_GetResourceRequest as GetResourceRequest, type context$8_GetResourceResponse as GetResourceResponse, type context$8_GetResourceResponseNonNullableFields as GetResourceResponseNonNullableFields, type GroupByAggregation$1 as GroupByAggregation, type GroupByAggregationKindOneOf$1 as GroupByAggregationKindOneOf, type GroupByValueResults$2 as GroupByValueResults, type IdentificationData$8 as IdentificationData, type IdentificationDataIdOneOf$8 as IdentificationDataIdOneOf, type context$8_ImportResourceRequest as ImportResourceRequest, type context$8_ImportResourceResponse as ImportResourceResponse, type IncludeMissingValuesOptions$1 as IncludeMissingValuesOptions, Interval$2 as Interval, type ItemMetadata$3 as ItemMetadata, type context$8_ListDeletedResourcesRequest as ListDeletedResourcesRequest, type context$8_ListDeletedResourcesResponse as ListDeletedResourcesResponse, type LocationOptions$1 as LocationOptions, context$8_ManagementType as ManagementType, type MessageEnvelope$7 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, MissingValues$1 as MissingValues, Mode$2 as Mode, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type NestedAggregation$1 as NestedAggregation, type NestedAggregationItem$1 as NestedAggregationItem, type NestedAggregationItemKindOneOf$1 as NestedAggregationItemKindOneOf, type NestedAggregationResults$2 as NestedAggregationResults, type NestedAggregationResultsResultOneOf$2 as NestedAggregationResultsResultOneOf, NestedAggregationType$1 as NestedAggregationType, type NestedResultValue$1 as NestedResultValue, type NestedResultValueResultOneOf$1 as NestedResultValueResultOneOf, type NestedResults$1 as NestedResults, type NestedValueAggregationResult$2 as NestedValueAggregationResult, type context$8_QueryResourcesRequest as QueryResourcesRequest, type context$8_QueryResourcesResponse as QueryResourcesResponse, type context$8_QueryResourcesResponseNonNullableFields as QueryResourcesResponseNonNullableFields, type RangeAggregation$1 as RangeAggregation, type RangeAggregationResult$2 as RangeAggregationResult, type RangeBucket$1 as RangeBucket, type RangeResult$1 as RangeResult, type RangeResults$2 as RangeResults, type context$8_ReindexTenantRequest as ReindexTenantRequest, type context$8_ReindexTenantResponse as ReindexTenantResponse, type context$8_RemoveResourceFromTrashBinRequest as RemoveResourceFromTrashBinRequest, type context$8_RemoveResourceFromTrashBinResponse as RemoveResourceFromTrashBinResponse, type Resource$2 as Resource, type context$8_ResourceCompositionDetailsOneOf as ResourceCompositionDetailsOneOf, type context$8_ResourceCreatedEnvelope as ResourceCreatedEnvelope, type context$8_ResourceDeletedEnvelope as ResourceDeletedEnvelope, type ResourceNonNullableFields$1 as ResourceNonNullableFields, type context$8_ResourceUpdatedEnvelope as ResourceUpdatedEnvelope, type context$8_ResourcesQueryBuilder as ResourcesQueryBuilder, type context$8_ResourcesQueryResult as ResourcesQueryResult, type RestoreInfo$6 as RestoreInfo, type context$8_RestoreResourceFromTrashBinRequest as RestoreResourceFromTrashBinRequest, type context$8_RestoreResourceFromTrashBinResponse as RestoreResourceFromTrashBinResponse, type Results$1 as Results, type ScalarAggregation$1 as ScalarAggregation, type ScalarResult$2 as ScalarResult, ScalarType$2 as ScalarType, type Schedule$2 as Schedule, type SearchDetails$2 as SearchDetails, type context$8_SearchResourcesRequest as SearchResourcesRequest, type context$8_SearchResourcesResponse as SearchResourcesResponse, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type context$8_SingleResource as SingleResource, type SiteCreated$3 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortDirection$1 as SortDirection, SortOrder$6 as SortOrder, SortType$1 as SortType, type Sorting$6 as Sorting, type SpecificLocation$1 as SpecificLocation, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type context$8_UpdateResource as UpdateResource, type context$8_UpdateResourceRequest as UpdateResourceRequest, type context$8_UpdateResourceResponse as UpdateResourceResponse, type context$8_UpdateResourceResponseNonNullableFields as UpdateResourceResponseNonNullableFields, type context$8_V2WorkingHoursSchedules as V2WorkingHoursSchedules, type ValueAggregation$1 as ValueAggregation, type ValueAggregationOptionsOneOf$1 as ValueAggregationOptionsOneOf, type ValueAggregationResult$2 as ValueAggregationResult, type ValueResult$1 as ValueResult, type ValueResults$2 as ValueResults, WebhookIdentityType$7 as WebhookIdentityType, type WorkingHoursSchedule$1 as WorkingHoursSchedule, type context$8_WorkingHoursSchedules as WorkingHoursSchedules, type context$8__publicOnResourceCreatedType as _publicOnResourceCreatedType, type context$8__publicOnResourceDeletedType as _publicOnResourceDeletedType, type context$8__publicOnResourceUpdatedType as _publicOnResourceUpdatedType, context$8_bulkCreateResources as bulkCreateResources, context$8_bulkDeleteResources as bulkDeleteResources, context$8_createResource as createResource, context$8_deleteResource as deleteResource, context$8_getResource as getResource, context$8_onResourceCreated as onResourceCreated, context$8_onResourceDeleted as onResourceDeleted, context$8_onResourceUpdated as onResourceUpdated, onResourceCreated$1 as publicOnResourceCreated, onResourceDeleted$1 as publicOnResourceDeleted, onResourceUpdated$1 as publicOnResourceUpdated, context$8_queryResources as queryResources, context$8_updateResource as updateResource };
|
|
10907
10962
|
}
|
|
10908
10963
|
|
|
10909
10964
|
/** A ResourceType is a classification of resources, e.g. StaffMember or Room. */
|
|
@@ -10934,11 +10989,6 @@ interface ResourceType$1 {
|
|
|
10934
10989
|
name?: string | null;
|
|
10935
10990
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
10936
10991
|
appId?: string | null;
|
|
10937
|
-
/**
|
|
10938
|
-
* Aggregation data about counts of resources that have this type.
|
|
10939
|
-
* @readonly
|
|
10940
|
-
*/
|
|
10941
|
-
resourceCounts?: ResourceCounts;
|
|
10942
10992
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
10943
10993
|
extendedFields?: ExtendedFields$5;
|
|
10944
10994
|
}
|
|
@@ -10992,12 +11042,6 @@ interface ExtendedFields$5 {
|
|
|
10992
11042
|
interface CreateResourceTypeRequest {
|
|
10993
11043
|
/** ResourceType to be created */
|
|
10994
11044
|
resourceType: ResourceType$1;
|
|
10995
|
-
/** The number of resources that must be created initially for this type */
|
|
10996
|
-
quantity?: number;
|
|
10997
|
-
/** Locations where created resources are available */
|
|
10998
|
-
locationOptions?: LocationOptions;
|
|
10999
|
-
/** List of additional fields to be included in the response. */
|
|
11000
|
-
fields?: RequestedFields$2[];
|
|
11001
11045
|
}
|
|
11002
11046
|
interface LocationOptions {
|
|
11003
11047
|
/**
|
|
@@ -11037,8 +11081,6 @@ declare enum RequestedFields$2 {
|
|
|
11037
11081
|
interface CreateResourceTypeResponse {
|
|
11038
11082
|
/** The created ResourceType */
|
|
11039
11083
|
resourceType?: ResourceType$1;
|
|
11040
|
-
/** Partial errors. ResourceType entity was created but requested dependant entities were not. */
|
|
11041
|
-
partialErrors?: CreateResourceTypeErrors[];
|
|
11042
11084
|
}
|
|
11043
11085
|
declare enum CreateResourceTypeErrors {
|
|
11044
11086
|
UNKNOWN_CREATE_RESOURCE_TYPE_ERROR = "UNKNOWN_CREATE_RESOURCE_TYPE_ERROR",
|
|
@@ -11048,8 +11090,6 @@ declare enum CreateResourceTypeErrors {
|
|
|
11048
11090
|
interface GetResourceTypeRequest {
|
|
11049
11091
|
/** Id of the ResourceType to retrieve. */
|
|
11050
11092
|
resourceTypeId: string;
|
|
11051
|
-
/** List of additional fields to be included in the response. */
|
|
11052
|
-
fields?: RequestedFields$2[];
|
|
11053
11093
|
}
|
|
11054
11094
|
interface GetResourceTypeResponse {
|
|
11055
11095
|
/** The requested ResourceType. */
|
|
@@ -11058,8 +11098,6 @@ interface GetResourceTypeResponse {
|
|
|
11058
11098
|
interface UpdateResourceTypeRequest {
|
|
11059
11099
|
/** ResourceType to update. [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported. */
|
|
11060
11100
|
resourceType: ResourceType$1;
|
|
11061
|
-
/** List of additional fields to be included in the response. */
|
|
11062
|
-
fields?: RequestedFields$2[];
|
|
11063
11101
|
}
|
|
11064
11102
|
interface UpdateResourceTypeResponse {
|
|
11065
11103
|
/** Updated ResourceType. */
|
|
@@ -11074,8 +11112,6 @@ interface DeleteResourceTypeResponse {
|
|
|
11074
11112
|
interface QueryResourceTypesRequest {
|
|
11075
11113
|
/** WQL expression. */
|
|
11076
11114
|
query?: CursorQuery$3;
|
|
11077
|
-
/** List of additional fields to be included in the response. */
|
|
11078
|
-
fields?: RequestedFields$2[];
|
|
11079
11115
|
}
|
|
11080
11116
|
interface CursorQuery$3 extends CursorQueryPagingMethodOneOf$3 {
|
|
11081
11117
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
@@ -11343,18 +11379,6 @@ interface ResourceTypeUpdatedEnvelope {
|
|
|
11343
11379
|
interface ResourceTypeDeletedEnvelope {
|
|
11344
11380
|
metadata: EventMetadata$4;
|
|
11345
11381
|
}
|
|
11346
|
-
interface CreateResourceTypeOptions {
|
|
11347
|
-
/** The number of resources that must be created initially for this type */
|
|
11348
|
-
quantity?: number;
|
|
11349
|
-
/** Locations where created resources are available */
|
|
11350
|
-
locationOptions?: LocationOptions;
|
|
11351
|
-
/** List of additional fields to be included in the response. */
|
|
11352
|
-
fields?: RequestedFields$2[];
|
|
11353
|
-
}
|
|
11354
|
-
interface GetResourceTypeOptions {
|
|
11355
|
-
/** List of additional fields to be included in the response. */
|
|
11356
|
-
fields?: RequestedFields$2[];
|
|
11357
|
-
}
|
|
11358
11382
|
interface UpdateResourceType {
|
|
11359
11383
|
/**
|
|
11360
11384
|
* The unique ID of this resource type
|
|
@@ -11382,21 +11406,10 @@ interface UpdateResourceType {
|
|
|
11382
11406
|
name?: string | null;
|
|
11383
11407
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
11384
11408
|
appId?: string | null;
|
|
11385
|
-
/**
|
|
11386
|
-
* Aggregation data about counts of resources that have this type.
|
|
11387
|
-
* @readonly
|
|
11388
|
-
*/
|
|
11389
|
-
resourceCounts?: ResourceCounts;
|
|
11390
11409
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
11391
11410
|
extendedFields?: ExtendedFields$5;
|
|
11392
11411
|
}
|
|
11393
|
-
interface UpdateResourceTypeOptions {
|
|
11394
|
-
/** List of additional fields to be included in the response. */
|
|
11395
|
-
fields?: RequestedFields$2[];
|
|
11396
|
-
}
|
|
11397
11412
|
interface QueryResourceTypesOptions {
|
|
11398
|
-
/** List of additional fields to be included in the response. */
|
|
11399
|
-
fields?: RequestedFields$2[] | undefined;
|
|
11400
11413
|
}
|
|
11401
11414
|
interface QueryCursorResult$3 {
|
|
11402
11415
|
cursors: Cursors$5;
|
|
@@ -11462,7 +11475,7 @@ interface CreateResourceTypeSignature {
|
|
|
11462
11475
|
* @param - ResourceType to be created
|
|
11463
11476
|
* @returns The created ResourceType
|
|
11464
11477
|
*/
|
|
11465
|
-
(resourceType: ResourceType$1
|
|
11478
|
+
(resourceType: ResourceType$1): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11466
11479
|
}
|
|
11467
11480
|
declare function getResourceType$1(httpClient: HttpClient): GetResourceTypeSignature;
|
|
11468
11481
|
interface GetResourceTypeSignature {
|
|
@@ -11471,7 +11484,7 @@ interface GetResourceTypeSignature {
|
|
|
11471
11484
|
* @param - Id of the ResourceType to retrieve.
|
|
11472
11485
|
* @returns The requested ResourceType.
|
|
11473
11486
|
*/
|
|
11474
|
-
(resourceTypeId: string
|
|
11487
|
+
(resourceTypeId: string): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11475
11488
|
}
|
|
11476
11489
|
declare function updateResourceType$1(httpClient: HttpClient): UpdateResourceTypeSignature;
|
|
11477
11490
|
interface UpdateResourceTypeSignature {
|
|
@@ -11487,7 +11500,7 @@ interface UpdateResourceTypeSignature {
|
|
|
11487
11500
|
* @param - The unique ID of this resource type
|
|
11488
11501
|
* @returns Updated ResourceType.
|
|
11489
11502
|
*/
|
|
11490
|
-
(_id: string | null, resourceType: UpdateResourceType
|
|
11503
|
+
(_id: string | null, resourceType: UpdateResourceType): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11491
11504
|
}
|
|
11492
11505
|
declare function deleteResourceType$1(httpClient: HttpClient): DeleteResourceTypeSignature;
|
|
11493
11506
|
interface DeleteResourceTypeSignature {
|
|
@@ -11540,14 +11553,12 @@ type context$7_CountResourceTypesRequest = CountResourceTypesRequest;
|
|
|
11540
11553
|
type context$7_CountResourceTypesResponse = CountResourceTypesResponse;
|
|
11541
11554
|
type context$7_CreateResourceTypeErrors = CreateResourceTypeErrors;
|
|
11542
11555
|
declare const context$7_CreateResourceTypeErrors: typeof CreateResourceTypeErrors;
|
|
11543
|
-
type context$7_CreateResourceTypeOptions = CreateResourceTypeOptions;
|
|
11544
11556
|
type context$7_CreateResourceTypeRequest = CreateResourceTypeRequest;
|
|
11545
11557
|
type context$7_CreateResourceTypeResponse = CreateResourceTypeResponse;
|
|
11546
11558
|
type context$7_CreateResourceTypeResponseNonNullableFields = CreateResourceTypeResponseNonNullableFields;
|
|
11547
11559
|
type context$7_DeleteResourceTypeRequest = DeleteResourceTypeRequest;
|
|
11548
11560
|
type context$7_DeleteResourceTypeResponse = DeleteResourceTypeResponse;
|
|
11549
11561
|
type context$7_DistinctLocationIds = DistinctLocationIds;
|
|
11550
|
-
type context$7_GetResourceTypeOptions = GetResourceTypeOptions;
|
|
11551
11562
|
type context$7_GetResourceTypeRequest = GetResourceTypeRequest;
|
|
11552
11563
|
type context$7_GetResourceTypeResponse = GetResourceTypeResponse;
|
|
11553
11564
|
type context$7_GetResourceTypeResponseNonNullableFields = GetResourceTypeResponseNonNullableFields;
|
|
@@ -11565,7 +11576,6 @@ type context$7_ResourceTypesQueryBuilder = ResourceTypesQueryBuilder;
|
|
|
11565
11576
|
type context$7_ResourceTypesQueryResult = ResourceTypesQueryResult;
|
|
11566
11577
|
type context$7_SpecificLocation = SpecificLocation;
|
|
11567
11578
|
type context$7_UpdateResourceType = UpdateResourceType;
|
|
11568
|
-
type context$7_UpdateResourceTypeOptions = UpdateResourceTypeOptions;
|
|
11569
11579
|
type context$7_UpdateResourceTypeRequest = UpdateResourceTypeRequest;
|
|
11570
11580
|
type context$7_UpdateResourceTypeResponse = UpdateResourceTypeResponse;
|
|
11571
11581
|
type context$7_UpdateResourceTypeResponseNonNullableFields = UpdateResourceTypeResponseNonNullableFields;
|
|
@@ -11581,7 +11591,7 @@ declare const context$7_onResourceTypeUpdated: typeof onResourceTypeUpdated;
|
|
|
11581
11591
|
declare const context$7_queryResourceTypes: typeof queryResourceTypes;
|
|
11582
11592
|
declare const context$7_updateResourceType: typeof updateResourceType;
|
|
11583
11593
|
declare namespace context$7 {
|
|
11584
|
-
export { type ActionEvent$5 as ActionEvent, type BaseEventMetadata$5 as BaseEventMetadata, type BusinessLocation$1 as BusinessLocation, type context$7_CountResourceTypesRequest as CountResourceTypesRequest, type context$7_CountResourceTypesResponse as CountResourceTypesResponse, context$7_CreateResourceTypeErrors as CreateResourceTypeErrors, type context$
|
|
11594
|
+
export { type ActionEvent$5 as ActionEvent, type BaseEventMetadata$5 as BaseEventMetadata, type BusinessLocation$1 as BusinessLocation, type context$7_CountResourceTypesRequest as CountResourceTypesRequest, type context$7_CountResourceTypesResponse as CountResourceTypesResponse, context$7_CreateResourceTypeErrors as CreateResourceTypeErrors, type context$7_CreateResourceTypeRequest as CreateResourceTypeRequest, type context$7_CreateResourceTypeResponse as CreateResourceTypeResponse, type context$7_CreateResourceTypeResponseNonNullableFields as CreateResourceTypeResponseNonNullableFields, type CursorPaging$5 as CursorPaging, type CursorPagingMetadata$4 as CursorPagingMetadata, type CursorQuery$3 as CursorQuery, type CursorQueryPagingMethodOneOf$3 as CursorQueryPagingMethodOneOf, type Cursors$5 as Cursors, type context$7_DeleteResourceTypeRequest as DeleteResourceTypeRequest, type context$7_DeleteResourceTypeResponse as DeleteResourceTypeResponse, type context$7_DistinctLocationIds as DistinctLocationIds, type DomainEvent$5 as DomainEvent, type DomainEventBodyOneOf$5 as DomainEventBodyOneOf, type EntityCreatedEvent$5 as EntityCreatedEvent, type EntityDeletedEvent$5 as EntityDeletedEvent, type EntityUpdatedEvent$5 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type ExtendedFields$5 as ExtendedFields, type context$7_GetResourceTypeRequest as GetResourceTypeRequest, type context$7_GetResourceTypeResponse as GetResourceTypeResponse, type context$7_GetResourceTypeResponseNonNullableFields as GetResourceTypeResponseNonNullableFields, type IdentificationData$7 as IdentificationData, type IdentificationDataIdOneOf$7 as IdentificationDataIdOneOf, type context$7_LocationOptions as LocationOptions, type MessageEnvelope$6 as MessageEnvelope, type context$7_QueryResourceTypesOptions as QueryResourceTypesOptions, type context$7_QueryResourceTypesRequest as QueryResourceTypesRequest, type context$7_QueryResourceTypesResponse as QueryResourceTypesResponse, type context$7_QueryResourceTypesResponseNonNullableFields as QueryResourceTypesResponseNonNullableFields, RequestedFields$2 as RequestedFields, type context$7_ResourceCounts as ResourceCounts, type ResourceType$1 as ResourceType, type context$7_ResourceTypeCreatedEnvelope as ResourceTypeCreatedEnvelope, type context$7_ResourceTypeDeletedEnvelope as ResourceTypeDeletedEnvelope, type context$7_ResourceTypeNonNullableFields as ResourceTypeNonNullableFields, type context$7_ResourceTypeUpdatedEnvelope as ResourceTypeUpdatedEnvelope, type context$7_ResourceTypesQueryBuilder as ResourceTypesQueryBuilder, type context$7_ResourceTypesQueryResult as ResourceTypesQueryResult, type RestoreInfo$5 as RestoreInfo, SortOrder$5 as SortOrder, type Sorting$5 as Sorting, type context$7_SpecificLocation as SpecificLocation, type context$7_UpdateResourceType as UpdateResourceType, type context$7_UpdateResourceTypeRequest as UpdateResourceTypeRequest, type context$7_UpdateResourceTypeResponse as UpdateResourceTypeResponse, type context$7_UpdateResourceTypeResponseNonNullableFields as UpdateResourceTypeResponseNonNullableFields, WebhookIdentityType$6 as WebhookIdentityType, type context$7__publicOnResourceTypeCreatedType as _publicOnResourceTypeCreatedType, type context$7__publicOnResourceTypeDeletedType as _publicOnResourceTypeDeletedType, type context$7__publicOnResourceTypeUpdatedType as _publicOnResourceTypeUpdatedType, context$7_createResourceType as createResourceType, context$7_deleteResourceType as deleteResourceType, context$7_getResourceType as getResourceType, context$7_onResourceTypeCreated as onResourceTypeCreated, context$7_onResourceTypeDeleted as onResourceTypeDeleted, context$7_onResourceTypeUpdated as onResourceTypeUpdated, onResourceTypeCreated$1 as publicOnResourceTypeCreated, onResourceTypeDeleted$1 as publicOnResourceTypeDeleted, onResourceTypeUpdated$1 as publicOnResourceTypeUpdated, context$7_queryResourceTypes as queryResourceTypes, context$7_updateResourceType as updateResourceType };
|
|
11585
11595
|
}
|
|
11586
11596
|
|
|
11587
11597
|
/** The `Service` object represents the business offering that a business provides to its customers. */
|
|
@@ -9311,8 +9311,6 @@ declare namespace index_d$9 {
|
|
|
9311
9311
|
* Read more about resources in this [article](https://support.wix.com/en/article/wix-bookings-managing-your-resources).
|
|
9312
9312
|
*/
|
|
9313
9313
|
interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
9314
|
-
/** Details of a single resource. */
|
|
9315
|
-
singleResource?: SingleResource;
|
|
9316
9314
|
/**
|
|
9317
9315
|
* Resource ID
|
|
9318
9316
|
* @readonly
|
|
@@ -9357,6 +9355,25 @@ interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
|
9357
9355
|
*/
|
|
9358
9356
|
type?: string | null;
|
|
9359
9357
|
typeId?: string | null;
|
|
9358
|
+
/**
|
|
9359
|
+
* Schedule details that specify the working hours and locations of this resource.
|
|
9360
|
+
*
|
|
9361
|
+
* When this field is not set or `working_hours_schedules.enabled` is `false` then the resource is assumed to be
|
|
9362
|
+
* available full time (7 x 24) at the locations specified in the field `location_options`.
|
|
9363
|
+
* When both `working_hours_schedules` and `location_options` are set then `working_hours_schedules` takes precedence.
|
|
9364
|
+
*/
|
|
9365
|
+
workingHoursSchedules?: WorkingHoursSchedules;
|
|
9366
|
+
/**
|
|
9367
|
+
* Location details that specify where this resource is available.
|
|
9368
|
+
*
|
|
9369
|
+
* If this field is not supplied then `location_options.available_in_all_locations` is set to `true`.
|
|
9370
|
+
*/
|
|
9371
|
+
locationOptions?: LocationOptions$1;
|
|
9372
|
+
/**
|
|
9373
|
+
* This schedule contains the sessions in which this resource has been booked.
|
|
9374
|
+
* @readonly
|
|
9375
|
+
*/
|
|
9376
|
+
eventsSchedule?: EventsSchedule;
|
|
9360
9377
|
/**
|
|
9361
9378
|
* The ID of the app of which this resource belongs to.
|
|
9362
9379
|
* Default: Bookings App ID.
|
|
@@ -9372,8 +9389,18 @@ interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
|
9372
9389
|
}
|
|
9373
9390
|
/** @oneof */
|
|
9374
9391
|
interface ResourceCompositionDetailsOneOf {
|
|
9375
|
-
|
|
9376
|
-
|
|
9392
|
+
}
|
|
9393
|
+
interface WorkingHoursSchedule$1 {
|
|
9394
|
+
/** schedule ID */
|
|
9395
|
+
_id?: string | null;
|
|
9396
|
+
/**
|
|
9397
|
+
* Whether this schedule is used by multiple resources or unique for this resource.
|
|
9398
|
+
*
|
|
9399
|
+
* `true` if it is a shared schedule (for example from a business or location), `false` this is a custom schedule specific to the resource.
|
|
9400
|
+
* Default: `false`.
|
|
9401
|
+
* @readonly
|
|
9402
|
+
*/
|
|
9403
|
+
shared?: boolean | null;
|
|
9377
9404
|
}
|
|
9378
9405
|
interface SingleResource {
|
|
9379
9406
|
/**
|
|
@@ -9383,7 +9410,7 @@ interface SingleResource {
|
|
|
9383
9410
|
* available full time (7 x 24) at the locations specified in the field `location_options`.
|
|
9384
9411
|
* When both `working_hours_schedules` and `location_options` are set then `working_hours_schedules` takes precedence.
|
|
9385
9412
|
*/
|
|
9386
|
-
workingHoursSchedules?:
|
|
9413
|
+
workingHoursSchedules?: V2WorkingHoursSchedules;
|
|
9387
9414
|
/**
|
|
9388
9415
|
* Location details that specify where this resource is available.
|
|
9389
9416
|
*
|
|
@@ -9396,7 +9423,7 @@ interface SingleResource {
|
|
|
9396
9423
|
*/
|
|
9397
9424
|
eventsSchedule?: Schedule$2;
|
|
9398
9425
|
}
|
|
9399
|
-
interface
|
|
9426
|
+
interface V2WorkingHoursSchedules {
|
|
9400
9427
|
/**
|
|
9401
9428
|
* Whether the working hours schedules is enabled.
|
|
9402
9429
|
*
|
|
@@ -9408,6 +9435,7 @@ interface WorkingHoursSchedules {
|
|
|
9408
9435
|
/** schedules specifying all the working hours of the resource. Currently a single schedule is supported. */
|
|
9409
9436
|
values?: Schedule$2[];
|
|
9410
9437
|
}
|
|
9438
|
+
/** Deprecated and subject to removal */
|
|
9411
9439
|
interface Schedule$2 {
|
|
9412
9440
|
/** schedule ID */
|
|
9413
9441
|
scheduleId?: string | null;
|
|
@@ -9448,6 +9476,14 @@ interface BusinessLocation$2 {
|
|
|
9448
9476
|
/** The ID of the business location. Must not be empty. */
|
|
9449
9477
|
locationId?: string | null;
|
|
9450
9478
|
}
|
|
9479
|
+
interface WorkingHoursSchedules {
|
|
9480
|
+
/** schedules specifying all the working hours of the resource. Currently a single schedule is supported. */
|
|
9481
|
+
values?: WorkingHoursSchedule$1[];
|
|
9482
|
+
}
|
|
9483
|
+
interface EventsSchedule {
|
|
9484
|
+
/** schedule ID */
|
|
9485
|
+
_id?: string | null;
|
|
9486
|
+
}
|
|
9451
9487
|
declare enum ManagementType {
|
|
9452
9488
|
UNKNOWN_MANAGEMENT_TYPE = "UNKNOWN_MANAGEMENT_TYPE",
|
|
9453
9489
|
/** The resource is managed by an app. */
|
|
@@ -10606,8 +10642,6 @@ interface BulkCreateResourcesOptions {
|
|
|
10606
10642
|
returnEntity?: boolean;
|
|
10607
10643
|
}
|
|
10608
10644
|
interface UpdateResource {
|
|
10609
|
-
/** Details of a single resource. */
|
|
10610
|
-
singleResource?: SingleResource;
|
|
10611
10645
|
/**
|
|
10612
10646
|
* Resource ID
|
|
10613
10647
|
* @readonly
|
|
@@ -10652,6 +10686,25 @@ interface UpdateResource {
|
|
|
10652
10686
|
*/
|
|
10653
10687
|
type?: string | null;
|
|
10654
10688
|
typeId?: string | null;
|
|
10689
|
+
/**
|
|
10690
|
+
* Schedule details that specify the working hours and locations of this resource.
|
|
10691
|
+
*
|
|
10692
|
+
* When this field is not set or `working_hours_schedules.enabled` is `false` then the resource is assumed to be
|
|
10693
|
+
* available full time (7 x 24) at the locations specified in the field `location_options`.
|
|
10694
|
+
* When both `working_hours_schedules` and `location_options` are set then `working_hours_schedules` takes precedence.
|
|
10695
|
+
*/
|
|
10696
|
+
workingHoursSchedules?: WorkingHoursSchedules;
|
|
10697
|
+
/**
|
|
10698
|
+
* Location details that specify where this resource is available.
|
|
10699
|
+
*
|
|
10700
|
+
* If this field is not supplied then `location_options.available_in_all_locations` is set to `true`.
|
|
10701
|
+
*/
|
|
10702
|
+
locationOptions?: LocationOptions$1;
|
|
10703
|
+
/**
|
|
10704
|
+
* This schedule contains the sessions in which this resource has been booked.
|
|
10705
|
+
* @readonly
|
|
10706
|
+
*/
|
|
10707
|
+
eventsSchedule?: EventsSchedule;
|
|
10655
10708
|
/**
|
|
10656
10709
|
* The ID of the app of which this resource belongs to.
|
|
10657
10710
|
* Default: Bookings App ID.
|
|
@@ -10853,6 +10906,7 @@ type index_d$8_CreateResourceResponse = CreateResourceResponse;
|
|
|
10853
10906
|
type index_d$8_CreateResourceResponseNonNullableFields = CreateResourceResponseNonNullableFields;
|
|
10854
10907
|
type index_d$8_DeleteResourceRequest = DeleteResourceRequest;
|
|
10855
10908
|
type index_d$8_DeleteResourceResponse = DeleteResourceResponse;
|
|
10909
|
+
type index_d$8_EventsSchedule = EventsSchedule;
|
|
10856
10910
|
type index_d$8_FixResourceSchedulesRequest = FixResourceSchedulesRequest;
|
|
10857
10911
|
type index_d$8_FixResourceSchedulesResponse = FixResourceSchedulesResponse;
|
|
10858
10912
|
type index_d$8_GetDeletedResourceRequest = GetDeletedResourceRequest;
|
|
@@ -10888,6 +10942,7 @@ type index_d$8_UpdateResource = UpdateResource;
|
|
|
10888
10942
|
type index_d$8_UpdateResourceRequest = UpdateResourceRequest;
|
|
10889
10943
|
type index_d$8_UpdateResourceResponse = UpdateResourceResponse;
|
|
10890
10944
|
type index_d$8_UpdateResourceResponseNonNullableFields = UpdateResourceResponseNonNullableFields;
|
|
10945
|
+
type index_d$8_V2WorkingHoursSchedules = V2WorkingHoursSchedules;
|
|
10891
10946
|
type index_d$8_WorkingHoursSchedules = WorkingHoursSchedules;
|
|
10892
10947
|
type index_d$8__publicOnResourceCreatedType = _publicOnResourceCreatedType;
|
|
10893
10948
|
type index_d$8__publicOnResourceDeletedType = _publicOnResourceDeletedType;
|
|
@@ -10903,7 +10958,7 @@ declare const index_d$8_onResourceUpdated: typeof onResourceUpdated;
|
|
|
10903
10958
|
declare const index_d$8_queryResources: typeof queryResources;
|
|
10904
10959
|
declare const index_d$8_updateResource: typeof updateResource;
|
|
10905
10960
|
declare namespace index_d$8 {
|
|
10906
|
-
export { type ActionEvent$6 as ActionEvent, type Aggregation$1 as Aggregation, type AggregationData$2 as AggregationData, type AggregationKindOneOf$1 as AggregationKindOneOf, type AggregationResults$2 as AggregationResults, type AggregationResultsResultOneOf$2 as AggregationResultsResultOneOf, type AggregationResultsScalarResult$1 as AggregationResultsScalarResult, AggregationType$2 as AggregationType, type ApplicationError$3 as ApplicationError, type Asset$1 as Asset, type BaseEventMetadata$6 as BaseEventMetadata, type BulkActionMetadata$3 as BulkActionMetadata, type index_d$8_BulkCreateResourcesOptions as BulkCreateResourcesOptions, type index_d$8_BulkCreateResourcesRequest as BulkCreateResourcesRequest, type index_d$8_BulkCreateResourcesResponse as BulkCreateResourcesResponse, type index_d$8_BulkCreateResourcesResponseNonNullableFields as BulkCreateResourcesResponseNonNullableFields, type index_d$8_BulkDeleteResourcesRequest as BulkDeleteResourcesRequest, type index_d$8_BulkDeleteResourcesResponse as BulkDeleteResourcesResponse, type index_d$8_BulkDeleteResourcesResponseNonNullableFields as BulkDeleteResourcesResponseNonNullableFields, type index_d$8_BulkResourceResult as BulkResourceResult, type BusinessLocation$2 as BusinessLocation, type index_d$8_CountResourcesRequest as CountResourcesRequest, type index_d$8_CountResourcesResponse as CountResourcesResponse, type index_d$8_CreateResourceRequest as CreateResourceRequest, type index_d$8_CreateResourceResponse as CreateResourceResponse, type index_d$8_CreateResourceResponseNonNullableFields as CreateResourceResponseNonNullableFields, type CursorPaging$6 as CursorPaging, type CursorPagingMetadata$5 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type CursorSearch$2 as CursorSearch, type CursorSearchPagingMethodOneOf$2 as CursorSearchPagingMethodOneOf, type Cursors$6 as Cursors, type DateHistogramAggregation$1 as DateHistogramAggregation, type DateHistogramResult$1 as DateHistogramResult, type DateHistogramResults$1 as DateHistogramResults, type DeleteContext$1 as DeleteContext, type index_d$8_DeleteResourceRequest as DeleteResourceRequest, type index_d$8_DeleteResourceResponse as DeleteResourceResponse, DeleteStatus$1 as DeleteStatus, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type ExtendedFields$6 as ExtendedFields, type index_d$8_FixResourceSchedulesRequest as FixResourceSchedulesRequest, type index_d$8_FixResourceSchedulesResponse as FixResourceSchedulesResponse, type index_d$8_GetDeletedResourceRequest as GetDeletedResourceRequest, type index_d$8_GetDeletedResourceResponse as GetDeletedResourceResponse, type index_d$8_GetResourceRequest as GetResourceRequest, type index_d$8_GetResourceResponse as GetResourceResponse, type index_d$8_GetResourceResponseNonNullableFields as GetResourceResponseNonNullableFields, type GroupByAggregation$1 as GroupByAggregation, type GroupByAggregationKindOneOf$1 as GroupByAggregationKindOneOf, type GroupByValueResults$2 as GroupByValueResults, type IdentificationData$8 as IdentificationData, type IdentificationDataIdOneOf$8 as IdentificationDataIdOneOf, type index_d$8_ImportResourceRequest as ImportResourceRequest, type index_d$8_ImportResourceResponse as ImportResourceResponse, type IncludeMissingValuesOptions$1 as IncludeMissingValuesOptions, Interval$2 as Interval, type ItemMetadata$3 as ItemMetadata, type index_d$8_ListDeletedResourcesRequest as ListDeletedResourcesRequest, type index_d$8_ListDeletedResourcesResponse as ListDeletedResourcesResponse, type LocationOptions$1 as LocationOptions, index_d$8_ManagementType as ManagementType, type MessageEnvelope$7 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, MissingValues$1 as MissingValues, Mode$2 as Mode, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type NestedAggregation$1 as NestedAggregation, type NestedAggregationItem$1 as NestedAggregationItem, type NestedAggregationItemKindOneOf$1 as NestedAggregationItemKindOneOf, type NestedAggregationResults$2 as NestedAggregationResults, type NestedAggregationResultsResultOneOf$2 as NestedAggregationResultsResultOneOf, NestedAggregationType$1 as NestedAggregationType, type NestedResultValue$1 as NestedResultValue, type NestedResultValueResultOneOf$1 as NestedResultValueResultOneOf, type NestedResults$1 as NestedResults, type NestedValueAggregationResult$2 as NestedValueAggregationResult, type index_d$8_QueryResourcesRequest as QueryResourcesRequest, type index_d$8_QueryResourcesResponse as QueryResourcesResponse, type index_d$8_QueryResourcesResponseNonNullableFields as QueryResourcesResponseNonNullableFields, type RangeAggregation$1 as RangeAggregation, type RangeAggregationResult$2 as RangeAggregationResult, type RangeBucket$1 as RangeBucket, type RangeResult$1 as RangeResult, type RangeResults$2 as RangeResults, type index_d$8_ReindexTenantRequest as ReindexTenantRequest, type index_d$8_ReindexTenantResponse as ReindexTenantResponse, type index_d$8_RemoveResourceFromTrashBinRequest as RemoveResourceFromTrashBinRequest, type index_d$8_RemoveResourceFromTrashBinResponse as RemoveResourceFromTrashBinResponse, type Resource$2 as Resource, type index_d$8_ResourceCompositionDetailsOneOf as ResourceCompositionDetailsOneOf, type index_d$8_ResourceCreatedEnvelope as ResourceCreatedEnvelope, type index_d$8_ResourceDeletedEnvelope as ResourceDeletedEnvelope, type ResourceNonNullableFields$1 as ResourceNonNullableFields, type index_d$8_ResourceUpdatedEnvelope as ResourceUpdatedEnvelope, type index_d$8_ResourcesQueryBuilder as ResourcesQueryBuilder, type index_d$8_ResourcesQueryResult as ResourcesQueryResult, type RestoreInfo$6 as RestoreInfo, type index_d$8_RestoreResourceFromTrashBinRequest as RestoreResourceFromTrashBinRequest, type index_d$8_RestoreResourceFromTrashBinResponse as RestoreResourceFromTrashBinResponse, type Results$1 as Results, type ScalarAggregation$1 as ScalarAggregation, type ScalarResult$2 as ScalarResult, ScalarType$2 as ScalarType, type Schedule$2 as Schedule, type SearchDetails$2 as SearchDetails, type index_d$8_SearchResourcesRequest as SearchResourcesRequest, type index_d$8_SearchResourcesResponse as SearchResourcesResponse, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type index_d$8_SingleResource as SingleResource, type SiteCreated$3 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortDirection$1 as SortDirection, SortOrder$6 as SortOrder, SortType$1 as SortType, type Sorting$6 as Sorting, type SpecificLocation$1 as SpecificLocation, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type index_d$8_UpdateResource as UpdateResource, type index_d$8_UpdateResourceRequest as UpdateResourceRequest, type index_d$8_UpdateResourceResponse as UpdateResourceResponse, type index_d$8_UpdateResourceResponseNonNullableFields as UpdateResourceResponseNonNullableFields, type ValueAggregation$1 as ValueAggregation, type ValueAggregationOptionsOneOf$1 as ValueAggregationOptionsOneOf, type ValueAggregationResult$2 as ValueAggregationResult, type ValueResult$1 as ValueResult, type ValueResults$2 as ValueResults, WebhookIdentityType$7 as WebhookIdentityType, type index_d$8_WorkingHoursSchedules as WorkingHoursSchedules, type index_d$8__publicOnResourceCreatedType as _publicOnResourceCreatedType, type index_d$8__publicOnResourceDeletedType as _publicOnResourceDeletedType, type index_d$8__publicOnResourceUpdatedType as _publicOnResourceUpdatedType, index_d$8_bulkCreateResources as bulkCreateResources, index_d$8_bulkDeleteResources as bulkDeleteResources, index_d$8_createResource as createResource, index_d$8_deleteResource as deleteResource, index_d$8_getResource as getResource, index_d$8_onResourceCreated as onResourceCreated, index_d$8_onResourceDeleted as onResourceDeleted, index_d$8_onResourceUpdated as onResourceUpdated, onResourceCreated$1 as publicOnResourceCreated, onResourceDeleted$1 as publicOnResourceDeleted, onResourceUpdated$1 as publicOnResourceUpdated, index_d$8_queryResources as queryResources, index_d$8_updateResource as updateResource };
|
|
10961
|
+
export { type ActionEvent$6 as ActionEvent, type Aggregation$1 as Aggregation, type AggregationData$2 as AggregationData, type AggregationKindOneOf$1 as AggregationKindOneOf, type AggregationResults$2 as AggregationResults, type AggregationResultsResultOneOf$2 as AggregationResultsResultOneOf, type AggregationResultsScalarResult$1 as AggregationResultsScalarResult, AggregationType$2 as AggregationType, type ApplicationError$3 as ApplicationError, type Asset$1 as Asset, type BaseEventMetadata$6 as BaseEventMetadata, type BulkActionMetadata$3 as BulkActionMetadata, type index_d$8_BulkCreateResourcesOptions as BulkCreateResourcesOptions, type index_d$8_BulkCreateResourcesRequest as BulkCreateResourcesRequest, type index_d$8_BulkCreateResourcesResponse as BulkCreateResourcesResponse, type index_d$8_BulkCreateResourcesResponseNonNullableFields as BulkCreateResourcesResponseNonNullableFields, type index_d$8_BulkDeleteResourcesRequest as BulkDeleteResourcesRequest, type index_d$8_BulkDeleteResourcesResponse as BulkDeleteResourcesResponse, type index_d$8_BulkDeleteResourcesResponseNonNullableFields as BulkDeleteResourcesResponseNonNullableFields, type index_d$8_BulkResourceResult as BulkResourceResult, type BusinessLocation$2 as BusinessLocation, type index_d$8_CountResourcesRequest as CountResourcesRequest, type index_d$8_CountResourcesResponse as CountResourcesResponse, type index_d$8_CreateResourceRequest as CreateResourceRequest, type index_d$8_CreateResourceResponse as CreateResourceResponse, type index_d$8_CreateResourceResponseNonNullableFields as CreateResourceResponseNonNullableFields, type CursorPaging$6 as CursorPaging, type CursorPagingMetadata$5 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type CursorSearch$2 as CursorSearch, type CursorSearchPagingMethodOneOf$2 as CursorSearchPagingMethodOneOf, type Cursors$6 as Cursors, type DateHistogramAggregation$1 as DateHistogramAggregation, type DateHistogramResult$1 as DateHistogramResult, type DateHistogramResults$1 as DateHistogramResults, type DeleteContext$1 as DeleteContext, type index_d$8_DeleteResourceRequest as DeleteResourceRequest, type index_d$8_DeleteResourceResponse as DeleteResourceResponse, DeleteStatus$1 as DeleteStatus, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type index_d$8_EventsSchedule as EventsSchedule, type ExtendedFields$6 as ExtendedFields, type index_d$8_FixResourceSchedulesRequest as FixResourceSchedulesRequest, type index_d$8_FixResourceSchedulesResponse as FixResourceSchedulesResponse, type index_d$8_GetDeletedResourceRequest as GetDeletedResourceRequest, type index_d$8_GetDeletedResourceResponse as GetDeletedResourceResponse, type index_d$8_GetResourceRequest as GetResourceRequest, type index_d$8_GetResourceResponse as GetResourceResponse, type index_d$8_GetResourceResponseNonNullableFields as GetResourceResponseNonNullableFields, type GroupByAggregation$1 as GroupByAggregation, type GroupByAggregationKindOneOf$1 as GroupByAggregationKindOneOf, type GroupByValueResults$2 as GroupByValueResults, type IdentificationData$8 as IdentificationData, type IdentificationDataIdOneOf$8 as IdentificationDataIdOneOf, type index_d$8_ImportResourceRequest as ImportResourceRequest, type index_d$8_ImportResourceResponse as ImportResourceResponse, type IncludeMissingValuesOptions$1 as IncludeMissingValuesOptions, Interval$2 as Interval, type ItemMetadata$3 as ItemMetadata, type index_d$8_ListDeletedResourcesRequest as ListDeletedResourcesRequest, type index_d$8_ListDeletedResourcesResponse as ListDeletedResourcesResponse, type LocationOptions$1 as LocationOptions, index_d$8_ManagementType as ManagementType, type MessageEnvelope$7 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, MissingValues$1 as MissingValues, Mode$2 as Mode, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type NestedAggregation$1 as NestedAggregation, type NestedAggregationItem$1 as NestedAggregationItem, type NestedAggregationItemKindOneOf$1 as NestedAggregationItemKindOneOf, type NestedAggregationResults$2 as NestedAggregationResults, type NestedAggregationResultsResultOneOf$2 as NestedAggregationResultsResultOneOf, NestedAggregationType$1 as NestedAggregationType, type NestedResultValue$1 as NestedResultValue, type NestedResultValueResultOneOf$1 as NestedResultValueResultOneOf, type NestedResults$1 as NestedResults, type NestedValueAggregationResult$2 as NestedValueAggregationResult, type index_d$8_QueryResourcesRequest as QueryResourcesRequest, type index_d$8_QueryResourcesResponse as QueryResourcesResponse, type index_d$8_QueryResourcesResponseNonNullableFields as QueryResourcesResponseNonNullableFields, type RangeAggregation$1 as RangeAggregation, type RangeAggregationResult$2 as RangeAggregationResult, type RangeBucket$1 as RangeBucket, type RangeResult$1 as RangeResult, type RangeResults$2 as RangeResults, type index_d$8_ReindexTenantRequest as ReindexTenantRequest, type index_d$8_ReindexTenantResponse as ReindexTenantResponse, type index_d$8_RemoveResourceFromTrashBinRequest as RemoveResourceFromTrashBinRequest, type index_d$8_RemoveResourceFromTrashBinResponse as RemoveResourceFromTrashBinResponse, type Resource$2 as Resource, type index_d$8_ResourceCompositionDetailsOneOf as ResourceCompositionDetailsOneOf, type index_d$8_ResourceCreatedEnvelope as ResourceCreatedEnvelope, type index_d$8_ResourceDeletedEnvelope as ResourceDeletedEnvelope, type ResourceNonNullableFields$1 as ResourceNonNullableFields, type index_d$8_ResourceUpdatedEnvelope as ResourceUpdatedEnvelope, type index_d$8_ResourcesQueryBuilder as ResourcesQueryBuilder, type index_d$8_ResourcesQueryResult as ResourcesQueryResult, type RestoreInfo$6 as RestoreInfo, type index_d$8_RestoreResourceFromTrashBinRequest as RestoreResourceFromTrashBinRequest, type index_d$8_RestoreResourceFromTrashBinResponse as RestoreResourceFromTrashBinResponse, type Results$1 as Results, type ScalarAggregation$1 as ScalarAggregation, type ScalarResult$2 as ScalarResult, ScalarType$2 as ScalarType, type Schedule$2 as Schedule, type SearchDetails$2 as SearchDetails, type index_d$8_SearchResourcesRequest as SearchResourcesRequest, type index_d$8_SearchResourcesResponse as SearchResourcesResponse, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type index_d$8_SingleResource as SingleResource, type SiteCreated$3 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortDirection$1 as SortDirection, SortOrder$6 as SortOrder, SortType$1 as SortType, type Sorting$6 as Sorting, type SpecificLocation$1 as SpecificLocation, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type index_d$8_UpdateResource as UpdateResource, type index_d$8_UpdateResourceRequest as UpdateResourceRequest, type index_d$8_UpdateResourceResponse as UpdateResourceResponse, type index_d$8_UpdateResourceResponseNonNullableFields as UpdateResourceResponseNonNullableFields, type index_d$8_V2WorkingHoursSchedules as V2WorkingHoursSchedules, type ValueAggregation$1 as ValueAggregation, type ValueAggregationOptionsOneOf$1 as ValueAggregationOptionsOneOf, type ValueAggregationResult$2 as ValueAggregationResult, type ValueResult$1 as ValueResult, type ValueResults$2 as ValueResults, WebhookIdentityType$7 as WebhookIdentityType, type WorkingHoursSchedule$1 as WorkingHoursSchedule, type index_d$8_WorkingHoursSchedules as WorkingHoursSchedules, type index_d$8__publicOnResourceCreatedType as _publicOnResourceCreatedType, type index_d$8__publicOnResourceDeletedType as _publicOnResourceDeletedType, type index_d$8__publicOnResourceUpdatedType as _publicOnResourceUpdatedType, index_d$8_bulkCreateResources as bulkCreateResources, index_d$8_bulkDeleteResources as bulkDeleteResources, index_d$8_createResource as createResource, index_d$8_deleteResource as deleteResource, index_d$8_getResource as getResource, index_d$8_onResourceCreated as onResourceCreated, index_d$8_onResourceDeleted as onResourceDeleted, index_d$8_onResourceUpdated as onResourceUpdated, onResourceCreated$1 as publicOnResourceCreated, onResourceDeleted$1 as publicOnResourceDeleted, onResourceUpdated$1 as publicOnResourceUpdated, index_d$8_queryResources as queryResources, index_d$8_updateResource as updateResource };
|
|
10907
10962
|
}
|
|
10908
10963
|
|
|
10909
10964
|
/** A ResourceType is a classification of resources, e.g. StaffMember or Room. */
|
|
@@ -10934,11 +10989,6 @@ interface ResourceType$1 {
|
|
|
10934
10989
|
name?: string | null;
|
|
10935
10990
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
10936
10991
|
appId?: string | null;
|
|
10937
|
-
/**
|
|
10938
|
-
* Aggregation data about counts of resources that have this type.
|
|
10939
|
-
* @readonly
|
|
10940
|
-
*/
|
|
10941
|
-
resourceCounts?: ResourceCounts;
|
|
10942
10992
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
10943
10993
|
extendedFields?: ExtendedFields$5;
|
|
10944
10994
|
}
|
|
@@ -10992,12 +11042,6 @@ interface ExtendedFields$5 {
|
|
|
10992
11042
|
interface CreateResourceTypeRequest {
|
|
10993
11043
|
/** ResourceType to be created */
|
|
10994
11044
|
resourceType: ResourceType$1;
|
|
10995
|
-
/** The number of resources that must be created initially for this type */
|
|
10996
|
-
quantity?: number;
|
|
10997
|
-
/** Locations where created resources are available */
|
|
10998
|
-
locationOptions?: LocationOptions;
|
|
10999
|
-
/** List of additional fields to be included in the response. */
|
|
11000
|
-
fields?: RequestedFields$2[];
|
|
11001
11045
|
}
|
|
11002
11046
|
interface LocationOptions {
|
|
11003
11047
|
/**
|
|
@@ -11037,8 +11081,6 @@ declare enum RequestedFields$2 {
|
|
|
11037
11081
|
interface CreateResourceTypeResponse {
|
|
11038
11082
|
/** The created ResourceType */
|
|
11039
11083
|
resourceType?: ResourceType$1;
|
|
11040
|
-
/** Partial errors. ResourceType entity was created but requested dependant entities were not. */
|
|
11041
|
-
partialErrors?: CreateResourceTypeErrors[];
|
|
11042
11084
|
}
|
|
11043
11085
|
declare enum CreateResourceTypeErrors {
|
|
11044
11086
|
UNKNOWN_CREATE_RESOURCE_TYPE_ERROR = "UNKNOWN_CREATE_RESOURCE_TYPE_ERROR",
|
|
@@ -11048,8 +11090,6 @@ declare enum CreateResourceTypeErrors {
|
|
|
11048
11090
|
interface GetResourceTypeRequest {
|
|
11049
11091
|
/** Id of the ResourceType to retrieve. */
|
|
11050
11092
|
resourceTypeId: string;
|
|
11051
|
-
/** List of additional fields to be included in the response. */
|
|
11052
|
-
fields?: RequestedFields$2[];
|
|
11053
11093
|
}
|
|
11054
11094
|
interface GetResourceTypeResponse {
|
|
11055
11095
|
/** The requested ResourceType. */
|
|
@@ -11058,8 +11098,6 @@ interface GetResourceTypeResponse {
|
|
|
11058
11098
|
interface UpdateResourceTypeRequest {
|
|
11059
11099
|
/** ResourceType to update. [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported. */
|
|
11060
11100
|
resourceType: ResourceType$1;
|
|
11061
|
-
/** List of additional fields to be included in the response. */
|
|
11062
|
-
fields?: RequestedFields$2[];
|
|
11063
11101
|
}
|
|
11064
11102
|
interface UpdateResourceTypeResponse {
|
|
11065
11103
|
/** Updated ResourceType. */
|
|
@@ -11074,8 +11112,6 @@ interface DeleteResourceTypeResponse {
|
|
|
11074
11112
|
interface QueryResourceTypesRequest {
|
|
11075
11113
|
/** WQL expression. */
|
|
11076
11114
|
query?: CursorQuery$3;
|
|
11077
|
-
/** List of additional fields to be included in the response. */
|
|
11078
|
-
fields?: RequestedFields$2[];
|
|
11079
11115
|
}
|
|
11080
11116
|
interface CursorQuery$3 extends CursorQueryPagingMethodOneOf$3 {
|
|
11081
11117
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
@@ -11343,18 +11379,6 @@ interface ResourceTypeUpdatedEnvelope {
|
|
|
11343
11379
|
interface ResourceTypeDeletedEnvelope {
|
|
11344
11380
|
metadata: EventMetadata$4;
|
|
11345
11381
|
}
|
|
11346
|
-
interface CreateResourceTypeOptions {
|
|
11347
|
-
/** The number of resources that must be created initially for this type */
|
|
11348
|
-
quantity?: number;
|
|
11349
|
-
/** Locations where created resources are available */
|
|
11350
|
-
locationOptions?: LocationOptions;
|
|
11351
|
-
/** List of additional fields to be included in the response. */
|
|
11352
|
-
fields?: RequestedFields$2[];
|
|
11353
|
-
}
|
|
11354
|
-
interface GetResourceTypeOptions {
|
|
11355
|
-
/** List of additional fields to be included in the response. */
|
|
11356
|
-
fields?: RequestedFields$2[];
|
|
11357
|
-
}
|
|
11358
11382
|
interface UpdateResourceType {
|
|
11359
11383
|
/**
|
|
11360
11384
|
* The unique ID of this resource type
|
|
@@ -11382,21 +11406,10 @@ interface UpdateResourceType {
|
|
|
11382
11406
|
name?: string | null;
|
|
11383
11407
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
11384
11408
|
appId?: string | null;
|
|
11385
|
-
/**
|
|
11386
|
-
* Aggregation data about counts of resources that have this type.
|
|
11387
|
-
* @readonly
|
|
11388
|
-
*/
|
|
11389
|
-
resourceCounts?: ResourceCounts;
|
|
11390
11409
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
11391
11410
|
extendedFields?: ExtendedFields$5;
|
|
11392
11411
|
}
|
|
11393
|
-
interface UpdateResourceTypeOptions {
|
|
11394
|
-
/** List of additional fields to be included in the response. */
|
|
11395
|
-
fields?: RequestedFields$2[];
|
|
11396
|
-
}
|
|
11397
11412
|
interface QueryResourceTypesOptions {
|
|
11398
|
-
/** List of additional fields to be included in the response. */
|
|
11399
|
-
fields?: RequestedFields$2[] | undefined;
|
|
11400
11413
|
}
|
|
11401
11414
|
interface QueryCursorResult$3 {
|
|
11402
11415
|
cursors: Cursors$5;
|
|
@@ -11462,7 +11475,7 @@ interface CreateResourceTypeSignature {
|
|
|
11462
11475
|
* @param - ResourceType to be created
|
|
11463
11476
|
* @returns The created ResourceType
|
|
11464
11477
|
*/
|
|
11465
|
-
(resourceType: ResourceType$1
|
|
11478
|
+
(resourceType: ResourceType$1): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11466
11479
|
}
|
|
11467
11480
|
declare function getResourceType$1(httpClient: HttpClient): GetResourceTypeSignature;
|
|
11468
11481
|
interface GetResourceTypeSignature {
|
|
@@ -11471,7 +11484,7 @@ interface GetResourceTypeSignature {
|
|
|
11471
11484
|
* @param - Id of the ResourceType to retrieve.
|
|
11472
11485
|
* @returns The requested ResourceType.
|
|
11473
11486
|
*/
|
|
11474
|
-
(resourceTypeId: string
|
|
11487
|
+
(resourceTypeId: string): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11475
11488
|
}
|
|
11476
11489
|
declare function updateResourceType$1(httpClient: HttpClient): UpdateResourceTypeSignature;
|
|
11477
11490
|
interface UpdateResourceTypeSignature {
|
|
@@ -11487,7 +11500,7 @@ interface UpdateResourceTypeSignature {
|
|
|
11487
11500
|
* @param - The unique ID of this resource type
|
|
11488
11501
|
* @returns Updated ResourceType.
|
|
11489
11502
|
*/
|
|
11490
|
-
(_id: string | null, resourceType: UpdateResourceType
|
|
11503
|
+
(_id: string | null, resourceType: UpdateResourceType): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11491
11504
|
}
|
|
11492
11505
|
declare function deleteResourceType$1(httpClient: HttpClient): DeleteResourceTypeSignature;
|
|
11493
11506
|
interface DeleteResourceTypeSignature {
|
|
@@ -11540,14 +11553,12 @@ type index_d$7_CountResourceTypesRequest = CountResourceTypesRequest;
|
|
|
11540
11553
|
type index_d$7_CountResourceTypesResponse = CountResourceTypesResponse;
|
|
11541
11554
|
type index_d$7_CreateResourceTypeErrors = CreateResourceTypeErrors;
|
|
11542
11555
|
declare const index_d$7_CreateResourceTypeErrors: typeof CreateResourceTypeErrors;
|
|
11543
|
-
type index_d$7_CreateResourceTypeOptions = CreateResourceTypeOptions;
|
|
11544
11556
|
type index_d$7_CreateResourceTypeRequest = CreateResourceTypeRequest;
|
|
11545
11557
|
type index_d$7_CreateResourceTypeResponse = CreateResourceTypeResponse;
|
|
11546
11558
|
type index_d$7_CreateResourceTypeResponseNonNullableFields = CreateResourceTypeResponseNonNullableFields;
|
|
11547
11559
|
type index_d$7_DeleteResourceTypeRequest = DeleteResourceTypeRequest;
|
|
11548
11560
|
type index_d$7_DeleteResourceTypeResponse = DeleteResourceTypeResponse;
|
|
11549
11561
|
type index_d$7_DistinctLocationIds = DistinctLocationIds;
|
|
11550
|
-
type index_d$7_GetResourceTypeOptions = GetResourceTypeOptions;
|
|
11551
11562
|
type index_d$7_GetResourceTypeRequest = GetResourceTypeRequest;
|
|
11552
11563
|
type index_d$7_GetResourceTypeResponse = GetResourceTypeResponse;
|
|
11553
11564
|
type index_d$7_GetResourceTypeResponseNonNullableFields = GetResourceTypeResponseNonNullableFields;
|
|
@@ -11565,7 +11576,6 @@ type index_d$7_ResourceTypesQueryBuilder = ResourceTypesQueryBuilder;
|
|
|
11565
11576
|
type index_d$7_ResourceTypesQueryResult = ResourceTypesQueryResult;
|
|
11566
11577
|
type index_d$7_SpecificLocation = SpecificLocation;
|
|
11567
11578
|
type index_d$7_UpdateResourceType = UpdateResourceType;
|
|
11568
|
-
type index_d$7_UpdateResourceTypeOptions = UpdateResourceTypeOptions;
|
|
11569
11579
|
type index_d$7_UpdateResourceTypeRequest = UpdateResourceTypeRequest;
|
|
11570
11580
|
type index_d$7_UpdateResourceTypeResponse = UpdateResourceTypeResponse;
|
|
11571
11581
|
type index_d$7_UpdateResourceTypeResponseNonNullableFields = UpdateResourceTypeResponseNonNullableFields;
|
|
@@ -11581,7 +11591,7 @@ declare const index_d$7_onResourceTypeUpdated: typeof onResourceTypeUpdated;
|
|
|
11581
11591
|
declare const index_d$7_queryResourceTypes: typeof queryResourceTypes;
|
|
11582
11592
|
declare const index_d$7_updateResourceType: typeof updateResourceType;
|
|
11583
11593
|
declare namespace index_d$7 {
|
|
11584
|
-
export { type ActionEvent$5 as ActionEvent, type BaseEventMetadata$5 as BaseEventMetadata, type BusinessLocation$1 as BusinessLocation, type index_d$7_CountResourceTypesRequest as CountResourceTypesRequest, type index_d$7_CountResourceTypesResponse as CountResourceTypesResponse, index_d$7_CreateResourceTypeErrors as CreateResourceTypeErrors, type index_d$
|
|
11594
|
+
export { type ActionEvent$5 as ActionEvent, type BaseEventMetadata$5 as BaseEventMetadata, type BusinessLocation$1 as BusinessLocation, type index_d$7_CountResourceTypesRequest as CountResourceTypesRequest, type index_d$7_CountResourceTypesResponse as CountResourceTypesResponse, index_d$7_CreateResourceTypeErrors as CreateResourceTypeErrors, type index_d$7_CreateResourceTypeRequest as CreateResourceTypeRequest, type index_d$7_CreateResourceTypeResponse as CreateResourceTypeResponse, type index_d$7_CreateResourceTypeResponseNonNullableFields as CreateResourceTypeResponseNonNullableFields, type CursorPaging$5 as CursorPaging, type CursorPagingMetadata$4 as CursorPagingMetadata, type CursorQuery$3 as CursorQuery, type CursorQueryPagingMethodOneOf$3 as CursorQueryPagingMethodOneOf, type Cursors$5 as Cursors, type index_d$7_DeleteResourceTypeRequest as DeleteResourceTypeRequest, type index_d$7_DeleteResourceTypeResponse as DeleteResourceTypeResponse, type index_d$7_DistinctLocationIds as DistinctLocationIds, type DomainEvent$5 as DomainEvent, type DomainEventBodyOneOf$5 as DomainEventBodyOneOf, type EntityCreatedEvent$5 as EntityCreatedEvent, type EntityDeletedEvent$5 as EntityDeletedEvent, type EntityUpdatedEvent$5 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type ExtendedFields$5 as ExtendedFields, type index_d$7_GetResourceTypeRequest as GetResourceTypeRequest, type index_d$7_GetResourceTypeResponse as GetResourceTypeResponse, type index_d$7_GetResourceTypeResponseNonNullableFields as GetResourceTypeResponseNonNullableFields, type IdentificationData$7 as IdentificationData, type IdentificationDataIdOneOf$7 as IdentificationDataIdOneOf, type index_d$7_LocationOptions as LocationOptions, type MessageEnvelope$6 as MessageEnvelope, type index_d$7_QueryResourceTypesOptions as QueryResourceTypesOptions, type index_d$7_QueryResourceTypesRequest as QueryResourceTypesRequest, type index_d$7_QueryResourceTypesResponse as QueryResourceTypesResponse, type index_d$7_QueryResourceTypesResponseNonNullableFields as QueryResourceTypesResponseNonNullableFields, RequestedFields$2 as RequestedFields, type index_d$7_ResourceCounts as ResourceCounts, type ResourceType$1 as ResourceType, type index_d$7_ResourceTypeCreatedEnvelope as ResourceTypeCreatedEnvelope, type index_d$7_ResourceTypeDeletedEnvelope as ResourceTypeDeletedEnvelope, type index_d$7_ResourceTypeNonNullableFields as ResourceTypeNonNullableFields, type index_d$7_ResourceTypeUpdatedEnvelope as ResourceTypeUpdatedEnvelope, type index_d$7_ResourceTypesQueryBuilder as ResourceTypesQueryBuilder, type index_d$7_ResourceTypesQueryResult as ResourceTypesQueryResult, type RestoreInfo$5 as RestoreInfo, SortOrder$5 as SortOrder, type Sorting$5 as Sorting, type index_d$7_SpecificLocation as SpecificLocation, type index_d$7_UpdateResourceType as UpdateResourceType, type index_d$7_UpdateResourceTypeRequest as UpdateResourceTypeRequest, type index_d$7_UpdateResourceTypeResponse as UpdateResourceTypeResponse, type index_d$7_UpdateResourceTypeResponseNonNullableFields as UpdateResourceTypeResponseNonNullableFields, WebhookIdentityType$6 as WebhookIdentityType, type index_d$7__publicOnResourceTypeCreatedType as _publicOnResourceTypeCreatedType, type index_d$7__publicOnResourceTypeDeletedType as _publicOnResourceTypeDeletedType, type index_d$7__publicOnResourceTypeUpdatedType as _publicOnResourceTypeUpdatedType, index_d$7_createResourceType as createResourceType, index_d$7_deleteResourceType as deleteResourceType, index_d$7_getResourceType as getResourceType, index_d$7_onResourceTypeCreated as onResourceTypeCreated, index_d$7_onResourceTypeDeleted as onResourceTypeDeleted, index_d$7_onResourceTypeUpdated as onResourceTypeUpdated, onResourceTypeCreated$1 as publicOnResourceTypeCreated, onResourceTypeDeleted$1 as publicOnResourceTypeDeleted, onResourceTypeUpdated$1 as publicOnResourceTypeUpdated, index_d$7_queryResourceTypes as queryResourceTypes, index_d$7_updateResourceType as updateResourceType };
|
|
11585
11595
|
}
|
|
11586
11596
|
|
|
11587
11597
|
/** The `Service` object represents the business offering that a business provides to its customers. */
|
|
@@ -6752,8 +6752,6 @@ declare namespace meta$9 {
|
|
|
6752
6752
|
* Read more about resources in this [article](https://support.wix.com/en/article/wix-bookings-managing-your-resources).
|
|
6753
6753
|
*/
|
|
6754
6754
|
interface Resource$3 extends ResourceCompositionDetailsOneOf$1 {
|
|
6755
|
-
/** Details of a single resource. */
|
|
6756
|
-
singleResource?: SingleResource$1;
|
|
6757
6755
|
/**
|
|
6758
6756
|
* Resource ID
|
|
6759
6757
|
* @readonly
|
|
@@ -6798,25 +6796,6 @@ interface Resource$3 extends ResourceCompositionDetailsOneOf$1 {
|
|
|
6798
6796
|
*/
|
|
6799
6797
|
type?: string | null;
|
|
6800
6798
|
typeId?: string | null;
|
|
6801
|
-
/**
|
|
6802
|
-
* The ID of the app of which this resource belongs to.
|
|
6803
|
-
* Default: Bookings App ID.
|
|
6804
|
-
*/
|
|
6805
|
-
appId?: string | null;
|
|
6806
|
-
/**
|
|
6807
|
-
* Specifies whether this resource is managed by a user (site owner, contributor, etc) or by an app.
|
|
6808
|
-
* Default: `WIX_USER`.
|
|
6809
|
-
*/
|
|
6810
|
-
managementType?: ManagementType$1;
|
|
6811
|
-
/** Extensions enabling users to save custom data related to the resource. */
|
|
6812
|
-
extendedFields?: ExtendedFields$d;
|
|
6813
|
-
}
|
|
6814
|
-
/** @oneof */
|
|
6815
|
-
interface ResourceCompositionDetailsOneOf$1 {
|
|
6816
|
-
/** Details of a single resource. */
|
|
6817
|
-
singleResource?: SingleResource$1;
|
|
6818
|
-
}
|
|
6819
|
-
interface SingleResource$1 {
|
|
6820
6799
|
/**
|
|
6821
6800
|
* Schedule details that specify the working hours and locations of this resource.
|
|
6822
6801
|
*
|
|
@@ -6830,37 +6809,41 @@ interface SingleResource$1 {
|
|
|
6830
6809
|
*
|
|
6831
6810
|
* If this field is not supplied then `location_options.available_in_all_locations` is set to `true`.
|
|
6832
6811
|
*/
|
|
6833
|
-
locationOptions?: LocationOptions$
|
|
6812
|
+
locationOptions?: LocationOptions$1;
|
|
6834
6813
|
/**
|
|
6835
6814
|
* This schedule contains the sessions in which this resource has been booked.
|
|
6836
6815
|
* @readonly
|
|
6837
6816
|
*/
|
|
6838
|
-
eventsSchedule?:
|
|
6839
|
-
}
|
|
6840
|
-
interface WorkingHoursSchedules$1 {
|
|
6817
|
+
eventsSchedule?: EventsSchedule$1;
|
|
6841
6818
|
/**
|
|
6842
|
-
*
|
|
6843
|
-
*
|
|
6844
|
-
* `true` if the working_hours_schedules should be considered for availability, `false` otherwise.
|
|
6845
|
-
* Default: `false`.
|
|
6846
|
-
* This field is currently marked as `NOT_IMPLEMENTED` until Resource Management will use this from the dashboard or through the API.
|
|
6819
|
+
* The ID of the app of which this resource belongs to.
|
|
6820
|
+
* Default: Bookings App ID.
|
|
6847
6821
|
*/
|
|
6848
|
-
|
|
6849
|
-
/**
|
|
6850
|
-
|
|
6822
|
+
appId?: string | null;
|
|
6823
|
+
/**
|
|
6824
|
+
* Specifies whether this resource is managed by a user (site owner, contributor, etc) or by an app.
|
|
6825
|
+
* Default: `WIX_USER`.
|
|
6826
|
+
*/
|
|
6827
|
+
managementType?: ManagementType$1;
|
|
6828
|
+
/** Extensions enabling users to save custom data related to the resource. */
|
|
6829
|
+
extendedFields?: ExtendedFields$d;
|
|
6851
6830
|
}
|
|
6852
|
-
|
|
6831
|
+
/** @oneof */
|
|
6832
|
+
interface ResourceCompositionDetailsOneOf$1 {
|
|
6833
|
+
}
|
|
6834
|
+
interface WorkingHoursSchedule$3 {
|
|
6853
6835
|
/** schedule ID */
|
|
6854
|
-
|
|
6836
|
+
id?: string | null;
|
|
6855
6837
|
/**
|
|
6856
6838
|
* Whether this schedule is used by multiple resources or unique for this resource.
|
|
6857
6839
|
*
|
|
6858
6840
|
* `true` if it is a shared schedule (for example from a business or location), `false` this is a custom schedule specific to the resource.
|
|
6859
6841
|
* Default: `false`.
|
|
6842
|
+
* @readonly
|
|
6860
6843
|
*/
|
|
6861
6844
|
shared?: boolean | null;
|
|
6862
6845
|
}
|
|
6863
|
-
interface LocationOptions$
|
|
6846
|
+
interface LocationOptions$1 {
|
|
6864
6847
|
/**
|
|
6865
6848
|
* `true` if the resource is available in all locations, `false` if the resource is available only in specific locations.
|
|
6866
6849
|
* Default: `false`.
|
|
@@ -6870,9 +6853,9 @@ interface LocationOptions$3 {
|
|
|
6870
6853
|
* Details of specific locations. It must be left empty if `available_in_all_locations` is `true`.
|
|
6871
6854
|
* If supplied then the field `specific_location_options.available_in_business_locations` must be set to `true`.
|
|
6872
6855
|
*/
|
|
6873
|
-
specificLocationOptions?: SpecificLocation$
|
|
6856
|
+
specificLocationOptions?: SpecificLocation$1;
|
|
6874
6857
|
}
|
|
6875
|
-
interface SpecificLocation$
|
|
6858
|
+
interface SpecificLocation$1 {
|
|
6876
6859
|
/**
|
|
6877
6860
|
* `true` if the resource is available in some business locations, `false` otherwise.
|
|
6878
6861
|
* Default: `false`.
|
|
@@ -6883,12 +6866,20 @@ interface SpecificLocation$3 {
|
|
|
6883
6866
|
* Currently a single business location can be set.
|
|
6884
6867
|
* Read more about business locations in this [article](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
6885
6868
|
*/
|
|
6886
|
-
businessLocations?: BusinessLocation$
|
|
6869
|
+
businessLocations?: BusinessLocation$1[];
|
|
6887
6870
|
}
|
|
6888
|
-
interface BusinessLocation$
|
|
6871
|
+
interface BusinessLocation$1 {
|
|
6889
6872
|
/** The ID of the business location. Must not be empty. */
|
|
6890
6873
|
locationId?: string | null;
|
|
6891
6874
|
}
|
|
6875
|
+
interface WorkingHoursSchedules$1 {
|
|
6876
|
+
/** schedules specifying all the working hours of the resource. Currently a single schedule is supported. */
|
|
6877
|
+
values?: WorkingHoursSchedule$3[];
|
|
6878
|
+
}
|
|
6879
|
+
interface EventsSchedule$1 {
|
|
6880
|
+
/** schedule ID */
|
|
6881
|
+
id?: string | null;
|
|
6882
|
+
}
|
|
6892
6883
|
declare enum ManagementType$1 {
|
|
6893
6884
|
UNKNOWN_MANAGEMENT_TYPE = "UNKNOWN_MANAGEMENT_TYPE",
|
|
6894
6885
|
/** The resource is managed by an app. */
|
|
@@ -7112,8 +7103,6 @@ interface QueryResourcesResponseNonNullableFields$1 {
|
|
|
7112
7103
|
* Read more about resources in this [article](https://support.wix.com/en/article/wix-bookings-managing-your-resources).
|
|
7113
7104
|
*/
|
|
7114
7105
|
interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
7115
|
-
/** Details of a single resource. */
|
|
7116
|
-
singleResource?: SingleResource;
|
|
7117
7106
|
/**
|
|
7118
7107
|
* Resource ID
|
|
7119
7108
|
* @readonly
|
|
@@ -7158,25 +7147,6 @@ interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
|
7158
7147
|
*/
|
|
7159
7148
|
type?: string | null;
|
|
7160
7149
|
typeId?: string | null;
|
|
7161
|
-
/**
|
|
7162
|
-
* The ID of the app of which this resource belongs to.
|
|
7163
|
-
* Default: Bookings App ID.
|
|
7164
|
-
*/
|
|
7165
|
-
appId?: string | null;
|
|
7166
|
-
/**
|
|
7167
|
-
* Specifies whether this resource is managed by a user (site owner, contributor, etc) or by an app.
|
|
7168
|
-
* Default: `WIX_USER`.
|
|
7169
|
-
*/
|
|
7170
|
-
managementType?: ManagementType;
|
|
7171
|
-
/** Extensions enabling users to save custom data related to the resource. */
|
|
7172
|
-
extendedFields?: ExtendedFields$c;
|
|
7173
|
-
}
|
|
7174
|
-
/** @oneof */
|
|
7175
|
-
interface ResourceCompositionDetailsOneOf {
|
|
7176
|
-
/** Details of a single resource. */
|
|
7177
|
-
singleResource?: SingleResource;
|
|
7178
|
-
}
|
|
7179
|
-
interface SingleResource {
|
|
7180
7150
|
/**
|
|
7181
7151
|
* Schedule details that specify the working hours and locations of this resource.
|
|
7182
7152
|
*
|
|
@@ -7190,37 +7160,41 @@ interface SingleResource {
|
|
|
7190
7160
|
*
|
|
7191
7161
|
* If this field is not supplied then `location_options.available_in_all_locations` is set to `true`.
|
|
7192
7162
|
*/
|
|
7193
|
-
locationOptions?: LocationOptions
|
|
7163
|
+
locationOptions?: LocationOptions;
|
|
7194
7164
|
/**
|
|
7195
7165
|
* This schedule contains the sessions in which this resource has been booked.
|
|
7196
7166
|
* @readonly
|
|
7197
7167
|
*/
|
|
7198
|
-
eventsSchedule?:
|
|
7199
|
-
}
|
|
7200
|
-
interface WorkingHoursSchedules {
|
|
7168
|
+
eventsSchedule?: EventsSchedule;
|
|
7201
7169
|
/**
|
|
7202
|
-
*
|
|
7203
|
-
*
|
|
7204
|
-
* `true` if the working_hours_schedules should be considered for availability, `false` otherwise.
|
|
7205
|
-
* Default: `false`.
|
|
7206
|
-
* This field is currently marked as `NOT_IMPLEMENTED` until Resource Management will use this from the dashboard or through the API.
|
|
7170
|
+
* The ID of the app of which this resource belongs to.
|
|
7171
|
+
* Default: Bookings App ID.
|
|
7207
7172
|
*/
|
|
7208
|
-
|
|
7209
|
-
/**
|
|
7210
|
-
|
|
7173
|
+
appId?: string | null;
|
|
7174
|
+
/**
|
|
7175
|
+
* Specifies whether this resource is managed by a user (site owner, contributor, etc) or by an app.
|
|
7176
|
+
* Default: `WIX_USER`.
|
|
7177
|
+
*/
|
|
7178
|
+
managementType?: ManagementType;
|
|
7179
|
+
/** Extensions enabling users to save custom data related to the resource. */
|
|
7180
|
+
extendedFields?: ExtendedFields$c;
|
|
7211
7181
|
}
|
|
7212
|
-
|
|
7182
|
+
/** @oneof */
|
|
7183
|
+
interface ResourceCompositionDetailsOneOf {
|
|
7184
|
+
}
|
|
7185
|
+
interface WorkingHoursSchedule$2 {
|
|
7213
7186
|
/** schedule ID */
|
|
7214
|
-
|
|
7187
|
+
_id?: string | null;
|
|
7215
7188
|
/**
|
|
7216
7189
|
* Whether this schedule is used by multiple resources or unique for this resource.
|
|
7217
7190
|
*
|
|
7218
7191
|
* `true` if it is a shared schedule (for example from a business or location), `false` this is a custom schedule specific to the resource.
|
|
7219
7192
|
* Default: `false`.
|
|
7193
|
+
* @readonly
|
|
7220
7194
|
*/
|
|
7221
7195
|
shared?: boolean | null;
|
|
7222
7196
|
}
|
|
7223
|
-
interface LocationOptions
|
|
7197
|
+
interface LocationOptions {
|
|
7224
7198
|
/**
|
|
7225
7199
|
* `true` if the resource is available in all locations, `false` if the resource is available only in specific locations.
|
|
7226
7200
|
* Default: `false`.
|
|
@@ -7230,9 +7204,9 @@ interface LocationOptions$2 {
|
|
|
7230
7204
|
* Details of specific locations. It must be left empty if `available_in_all_locations` is `true`.
|
|
7231
7205
|
* If supplied then the field `specific_location_options.available_in_business_locations` must be set to `true`.
|
|
7232
7206
|
*/
|
|
7233
|
-
specificLocationOptions?: SpecificLocation
|
|
7207
|
+
specificLocationOptions?: SpecificLocation;
|
|
7234
7208
|
}
|
|
7235
|
-
interface SpecificLocation
|
|
7209
|
+
interface SpecificLocation {
|
|
7236
7210
|
/**
|
|
7237
7211
|
* `true` if the resource is available in some business locations, `false` otherwise.
|
|
7238
7212
|
* Default: `false`.
|
|
@@ -7243,12 +7217,20 @@ interface SpecificLocation$2 {
|
|
|
7243
7217
|
* Currently a single business location can be set.
|
|
7244
7218
|
* Read more about business locations in this [article](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
7245
7219
|
*/
|
|
7246
|
-
businessLocations?: BusinessLocation
|
|
7220
|
+
businessLocations?: BusinessLocation[];
|
|
7247
7221
|
}
|
|
7248
|
-
interface BusinessLocation
|
|
7222
|
+
interface BusinessLocation {
|
|
7249
7223
|
/** The ID of the business location. Must not be empty. */
|
|
7250
7224
|
locationId?: string | null;
|
|
7251
7225
|
}
|
|
7226
|
+
interface WorkingHoursSchedules {
|
|
7227
|
+
/** schedules specifying all the working hours of the resource. Currently a single schedule is supported. */
|
|
7228
|
+
values?: WorkingHoursSchedule$2[];
|
|
7229
|
+
}
|
|
7230
|
+
interface EventsSchedule {
|
|
7231
|
+
/** schedule ID */
|
|
7232
|
+
_id?: string | null;
|
|
7233
|
+
}
|
|
7252
7234
|
declare enum ManagementType {
|
|
7253
7235
|
UNKNOWN_MANAGEMENT_TYPE = "UNKNOWN_MANAGEMENT_TYPE",
|
|
7254
7236
|
/** The resource is managed by an app. */
|
|
@@ -7529,50 +7511,9 @@ interface ResourceType$1 {
|
|
|
7529
7511
|
name?: string | null;
|
|
7530
7512
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
7531
7513
|
appId?: string | null;
|
|
7532
|
-
/**
|
|
7533
|
-
* Aggregation data about counts of resources that have this type.
|
|
7534
|
-
* @readonly
|
|
7535
|
-
*/
|
|
7536
|
-
resourceCounts?: ResourceCounts$1;
|
|
7537
7514
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
7538
7515
|
extendedFields?: ExtendedFields$b;
|
|
7539
7516
|
}
|
|
7540
|
-
interface ResourceCounts$1 {
|
|
7541
|
-
/**
|
|
7542
|
-
* The number of resources that have this type.
|
|
7543
|
-
* @readonly
|
|
7544
|
-
*/
|
|
7545
|
-
total?: number | null;
|
|
7546
|
-
/**
|
|
7547
|
-
* Whether a resource of this type exists that is available in all locations
|
|
7548
|
-
* @readonly
|
|
7549
|
-
*/
|
|
7550
|
-
hasResourcesInAllLocations?: boolean | null;
|
|
7551
|
-
/**
|
|
7552
|
-
* Whether a resource of this type exists that is available in any customer location
|
|
7553
|
-
* @readonly
|
|
7554
|
-
*/
|
|
7555
|
-
hasResourcesInCustomerLocations?: boolean | null;
|
|
7556
|
-
/**
|
|
7557
|
-
* Whether a resource of this type exists that is available in any custom location
|
|
7558
|
-
* @readonly
|
|
7559
|
-
*/
|
|
7560
|
-
hasResourcesInCustomLocations?: boolean | null;
|
|
7561
|
-
/**
|
|
7562
|
-
* Number of distinct business locations of resources with this type.
|
|
7563
|
-
* @readonly
|
|
7564
|
-
*/
|
|
7565
|
-
distinctBusinessLocationsCount?: number | null;
|
|
7566
|
-
/**
|
|
7567
|
-
* Distinct business location ids of resources with this type. Only first 50 are returned.
|
|
7568
|
-
* @readonly
|
|
7569
|
-
*/
|
|
7570
|
-
distinctLocationIds?: DistinctLocationIds$1;
|
|
7571
|
-
}
|
|
7572
|
-
interface DistinctLocationIds$1 {
|
|
7573
|
-
/** Locations ids of business locations */
|
|
7574
|
-
values?: string[];
|
|
7575
|
-
}
|
|
7576
7517
|
interface ExtendedFields$b {
|
|
7577
7518
|
/**
|
|
7578
7519
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -7587,53 +7528,10 @@ interface ExtendedFields$b {
|
|
|
7587
7528
|
interface CreateResourceTypeRequest$1 {
|
|
7588
7529
|
/** ResourceType to be created */
|
|
7589
7530
|
resourceType: ResourceType$1;
|
|
7590
|
-
/** The number of resources that must be created initially for this type */
|
|
7591
|
-
quantity?: number;
|
|
7592
|
-
/** Locations where created resources are available */
|
|
7593
|
-
locationOptions?: LocationOptions$1;
|
|
7594
|
-
/** List of additional fields to be included in the response. */
|
|
7595
|
-
fields?: RequestedFields$3[];
|
|
7596
|
-
}
|
|
7597
|
-
interface LocationOptions$1 {
|
|
7598
|
-
/**
|
|
7599
|
-
* `true` if the resource is available in all locations, `false` if the resource is available only in specific locations.
|
|
7600
|
-
* Default: `false`.
|
|
7601
|
-
*/
|
|
7602
|
-
availableInAllLocations?: boolean | null;
|
|
7603
|
-
/**
|
|
7604
|
-
* Details of specific locations. It must be left empty if `available_in_all_locations` is `true`.
|
|
7605
|
-
* If supplied then the field `specific_location_options.available_in_business_locations` must be set to `true`.
|
|
7606
|
-
*/
|
|
7607
|
-
specificLocationOptions?: SpecificLocation$1;
|
|
7608
|
-
}
|
|
7609
|
-
interface SpecificLocation$1 {
|
|
7610
|
-
/**
|
|
7611
|
-
* `true` if the resource is available in some business locations, `false` otherwise.
|
|
7612
|
-
* Default: `false`.
|
|
7613
|
-
*/
|
|
7614
|
-
availableInBusinessLocations?: boolean | null;
|
|
7615
|
-
/**
|
|
7616
|
-
* Information about business locations. Should be empty if `available_in_business_locations` is `false` or if no business location exists in Locations.
|
|
7617
|
-
* Currently a single business location can be set.
|
|
7618
|
-
* Read more about business locations in this [article](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
7619
|
-
*/
|
|
7620
|
-
businessLocations?: BusinessLocation$1[];
|
|
7621
|
-
}
|
|
7622
|
-
interface BusinessLocation$1 {
|
|
7623
|
-
/** The ID of the business location. Must not be empty. */
|
|
7624
|
-
locationId?: string | null;
|
|
7625
|
-
}
|
|
7626
|
-
declare enum RequestedFields$3 {
|
|
7627
|
-
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
7628
|
-
TOTAL_RESOURCE_COUNT = "TOTAL_RESOURCE_COUNT",
|
|
7629
|
-
SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS = "SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS",
|
|
7630
|
-
DISTINCT_RESOURCE_LOCATIONS = "DISTINCT_RESOURCE_LOCATIONS"
|
|
7631
7531
|
}
|
|
7632
7532
|
interface CreateResourceTypeResponse$1 {
|
|
7633
7533
|
/** The created ResourceType */
|
|
7634
7534
|
resourceType?: ResourceType$1;
|
|
7635
|
-
/** Partial errors. ResourceType entity was created but requested dependant entities were not. */
|
|
7636
|
-
partialErrors?: CreateResourceTypeErrors$1[];
|
|
7637
7535
|
}
|
|
7638
7536
|
declare enum CreateResourceTypeErrors$1 {
|
|
7639
7537
|
UNKNOWN_CREATE_RESOURCE_TYPE_ERROR = "UNKNOWN_CREATE_RESOURCE_TYPE_ERROR",
|
|
@@ -7643,8 +7541,6 @@ declare enum CreateResourceTypeErrors$1 {
|
|
|
7643
7541
|
interface GetResourceTypeRequest$1 {
|
|
7644
7542
|
/** Id of the ResourceType to retrieve. */
|
|
7645
7543
|
resourceTypeId: string;
|
|
7646
|
-
/** List of additional fields to be included in the response. */
|
|
7647
|
-
fields?: RequestedFields$3[];
|
|
7648
7544
|
}
|
|
7649
7545
|
interface GetResourceTypeResponse$1 {
|
|
7650
7546
|
/** The requested ResourceType. */
|
|
@@ -7653,8 +7549,6 @@ interface GetResourceTypeResponse$1 {
|
|
|
7653
7549
|
interface UpdateResourceTypeRequest$1 {
|
|
7654
7550
|
/** ResourceType to update. [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported. */
|
|
7655
7551
|
resourceType: ResourceType$1;
|
|
7656
|
-
/** List of additional fields to be included in the response. */
|
|
7657
|
-
fields?: RequestedFields$3[];
|
|
7658
7552
|
}
|
|
7659
7553
|
interface UpdateResourceTypeResponse$1 {
|
|
7660
7554
|
/** Updated ResourceType. */
|
|
@@ -7669,8 +7563,6 @@ interface DeleteResourceTypeResponse$1 {
|
|
|
7669
7563
|
interface QueryResourceTypesRequest$1 {
|
|
7670
7564
|
/** WQL expression. */
|
|
7671
7565
|
query?: CursorQuery$7;
|
|
7672
|
-
/** List of additional fields to be included in the response. */
|
|
7673
|
-
fields?: RequestedFields$3[];
|
|
7674
7566
|
}
|
|
7675
7567
|
interface CursorQuery$7 extends CursorQueryPagingMethodOneOf$7 {
|
|
7676
7568
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
@@ -7792,50 +7684,9 @@ interface ResourceType {
|
|
|
7792
7684
|
name?: string | null;
|
|
7793
7685
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
7794
7686
|
appId?: string | null;
|
|
7795
|
-
/**
|
|
7796
|
-
* Aggregation data about counts of resources that have this type.
|
|
7797
|
-
* @readonly
|
|
7798
|
-
*/
|
|
7799
|
-
resourceCounts?: ResourceCounts;
|
|
7800
7687
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
7801
7688
|
extendedFields?: ExtendedFields$a;
|
|
7802
7689
|
}
|
|
7803
|
-
interface ResourceCounts {
|
|
7804
|
-
/**
|
|
7805
|
-
* The number of resources that have this type.
|
|
7806
|
-
* @readonly
|
|
7807
|
-
*/
|
|
7808
|
-
total?: number | null;
|
|
7809
|
-
/**
|
|
7810
|
-
* Whether a resource of this type exists that is available in all locations
|
|
7811
|
-
* @readonly
|
|
7812
|
-
*/
|
|
7813
|
-
hasResourcesInAllLocations?: boolean | null;
|
|
7814
|
-
/**
|
|
7815
|
-
* Whether a resource of this type exists that is available in any customer location
|
|
7816
|
-
* @readonly
|
|
7817
|
-
*/
|
|
7818
|
-
hasResourcesInCustomerLocations?: boolean | null;
|
|
7819
|
-
/**
|
|
7820
|
-
* Whether a resource of this type exists that is available in any custom location
|
|
7821
|
-
* @readonly
|
|
7822
|
-
*/
|
|
7823
|
-
hasResourcesInCustomLocations?: boolean | null;
|
|
7824
|
-
/**
|
|
7825
|
-
* Number of distinct business locations of resources with this type.
|
|
7826
|
-
* @readonly
|
|
7827
|
-
*/
|
|
7828
|
-
distinctBusinessLocationsCount?: number | null;
|
|
7829
|
-
/**
|
|
7830
|
-
* Distinct business location ids of resources with this type. Only first 50 are returned.
|
|
7831
|
-
* @readonly
|
|
7832
|
-
*/
|
|
7833
|
-
distinctLocationIds?: DistinctLocationIds;
|
|
7834
|
-
}
|
|
7835
|
-
interface DistinctLocationIds {
|
|
7836
|
-
/** Locations ids of business locations */
|
|
7837
|
-
values?: string[];
|
|
7838
|
-
}
|
|
7839
7690
|
interface ExtendedFields$a {
|
|
7840
7691
|
/**
|
|
7841
7692
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -7850,53 +7701,10 @@ interface ExtendedFields$a {
|
|
|
7850
7701
|
interface CreateResourceTypeRequest {
|
|
7851
7702
|
/** ResourceType to be created */
|
|
7852
7703
|
resourceType: ResourceType;
|
|
7853
|
-
/** The number of resources that must be created initially for this type */
|
|
7854
|
-
quantity?: number;
|
|
7855
|
-
/** Locations where created resources are available */
|
|
7856
|
-
locationOptions?: LocationOptions;
|
|
7857
|
-
/** List of additional fields to be included in the response. */
|
|
7858
|
-
fields?: RequestedFields$2[];
|
|
7859
|
-
}
|
|
7860
|
-
interface LocationOptions {
|
|
7861
|
-
/**
|
|
7862
|
-
* `true` if the resource is available in all locations, `false` if the resource is available only in specific locations.
|
|
7863
|
-
* Default: `false`.
|
|
7864
|
-
*/
|
|
7865
|
-
availableInAllLocations?: boolean | null;
|
|
7866
|
-
/**
|
|
7867
|
-
* Details of specific locations. It must be left empty if `available_in_all_locations` is `true`.
|
|
7868
|
-
* If supplied then the field `specific_location_options.available_in_business_locations` must be set to `true`.
|
|
7869
|
-
*/
|
|
7870
|
-
specificLocationOptions?: SpecificLocation;
|
|
7871
|
-
}
|
|
7872
|
-
interface SpecificLocation {
|
|
7873
|
-
/**
|
|
7874
|
-
* `true` if the resource is available in some business locations, `false` otherwise.
|
|
7875
|
-
* Default: `false`.
|
|
7876
|
-
*/
|
|
7877
|
-
availableInBusinessLocations?: boolean | null;
|
|
7878
|
-
/**
|
|
7879
|
-
* Information about business locations. Should be empty if `available_in_business_locations` is `false` or if no business location exists in Locations.
|
|
7880
|
-
* Currently a single business location can be set.
|
|
7881
|
-
* Read more about business locations in this [article](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
7882
|
-
*/
|
|
7883
|
-
businessLocations?: BusinessLocation[];
|
|
7884
|
-
}
|
|
7885
|
-
interface BusinessLocation {
|
|
7886
|
-
/** The ID of the business location. Must not be empty. */
|
|
7887
|
-
locationId?: string | null;
|
|
7888
|
-
}
|
|
7889
|
-
declare enum RequestedFields$2 {
|
|
7890
|
-
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
7891
|
-
TOTAL_RESOURCE_COUNT = "TOTAL_RESOURCE_COUNT",
|
|
7892
|
-
SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS = "SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS",
|
|
7893
|
-
DISTINCT_RESOURCE_LOCATIONS = "DISTINCT_RESOURCE_LOCATIONS"
|
|
7894
7704
|
}
|
|
7895
7705
|
interface CreateResourceTypeResponse {
|
|
7896
7706
|
/** The created ResourceType */
|
|
7897
7707
|
resourceType?: ResourceType;
|
|
7898
|
-
/** Partial errors. ResourceType entity was created but requested dependant entities were not. */
|
|
7899
|
-
partialErrors?: CreateResourceTypeErrors[];
|
|
7900
7708
|
}
|
|
7901
7709
|
declare enum CreateResourceTypeErrors {
|
|
7902
7710
|
UNKNOWN_CREATE_RESOURCE_TYPE_ERROR = "UNKNOWN_CREATE_RESOURCE_TYPE_ERROR",
|
|
@@ -7906,8 +7714,6 @@ declare enum CreateResourceTypeErrors {
|
|
|
7906
7714
|
interface GetResourceTypeRequest {
|
|
7907
7715
|
/** Id of the ResourceType to retrieve. */
|
|
7908
7716
|
resourceTypeId: string;
|
|
7909
|
-
/** List of additional fields to be included in the response. */
|
|
7910
|
-
fields?: RequestedFields$2[];
|
|
7911
7717
|
}
|
|
7912
7718
|
interface GetResourceTypeResponse {
|
|
7913
7719
|
/** The requested ResourceType. */
|
|
@@ -7916,8 +7722,6 @@ interface GetResourceTypeResponse {
|
|
|
7916
7722
|
interface UpdateResourceTypeRequest {
|
|
7917
7723
|
/** ResourceType to update. [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported. */
|
|
7918
7724
|
resourceType: ResourceType;
|
|
7919
|
-
/** List of additional fields to be included in the response. */
|
|
7920
|
-
fields?: RequestedFields$2[];
|
|
7921
7725
|
}
|
|
7922
7726
|
interface UpdateResourceTypeResponse {
|
|
7923
7727
|
/** Updated ResourceType. */
|
|
@@ -7932,8 +7736,6 @@ interface DeleteResourceTypeResponse {
|
|
|
7932
7736
|
interface QueryResourceTypesRequest {
|
|
7933
7737
|
/** WQL expression. */
|
|
7934
7738
|
query?: CursorQuery$6;
|
|
7935
|
-
/** List of additional fields to be included in the response. */
|
|
7936
|
-
fields?: RequestedFields$2[];
|
|
7937
7739
|
}
|
|
7938
7740
|
interface CursorQuery$6 extends CursorQueryPagingMethodOneOf$6 {
|
|
7939
7741
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|