@wix/bookings 1.0.475 → 1.0.477
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/bookings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.477",
|
|
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.43",
|
|
36
|
-
"@wix/bookings_resource-types": "1.0.
|
|
37
|
-
"@wix/bookings_resources": "1.0.
|
|
36
|
+
"@wix/bookings_resource-types": "1.0.12",
|
|
37
|
+
"@wix/bookings_resources": "1.0.53",
|
|
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.14"
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"fqdn": ""
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
"falconPackageHash": "
|
|
65
|
+
"falconPackageHash": "16248e8387b02bd078c98520498822377a7c1d951e577decd973089d"
|
|
66
66
|
}
|
|
@@ -9348,16 +9348,6 @@ interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
|
9348
9348
|
* @readonly
|
|
9349
9349
|
*/
|
|
9350
9350
|
eventsSchedule?: EventsSchedule;
|
|
9351
|
-
/**
|
|
9352
|
-
* The ID of the app of which this resource belongs to.
|
|
9353
|
-
* Default: Bookings App ID.
|
|
9354
|
-
*/
|
|
9355
|
-
appId?: string | null;
|
|
9356
|
-
/**
|
|
9357
|
-
* Specifies whether this resource is managed by a user (site owner, contributor, etc) or by an app.
|
|
9358
|
-
* Default: `WIX_USER`.
|
|
9359
|
-
*/
|
|
9360
|
-
managementType?: ManagementType;
|
|
9361
9351
|
/** Extensions enabling users to save custom data related to the resource. */
|
|
9362
9352
|
extendedFields?: ExtendedFields$6;
|
|
9363
9353
|
}
|
|
@@ -10679,16 +10669,6 @@ interface UpdateResource {
|
|
|
10679
10669
|
* @readonly
|
|
10680
10670
|
*/
|
|
10681
10671
|
eventsSchedule?: EventsSchedule;
|
|
10682
|
-
/**
|
|
10683
|
-
* The ID of the app of which this resource belongs to.
|
|
10684
|
-
* Default: Bookings App ID.
|
|
10685
|
-
*/
|
|
10686
|
-
appId?: string | null;
|
|
10687
|
-
/**
|
|
10688
|
-
* Specifies whether this resource is managed by a user (site owner, contributor, etc) or by an app.
|
|
10689
|
-
* Default: `WIX_USER`.
|
|
10690
|
-
*/
|
|
10691
|
-
managementType?: ManagementType;
|
|
10692
10672
|
/** Extensions enabling users to save custom data related to the resource. */
|
|
10693
10673
|
extendedFields?: ExtendedFields$6;
|
|
10694
10674
|
}
|
|
@@ -10710,12 +10690,12 @@ interface ResourcesQueryBuilder {
|
|
|
10710
10690
|
* @param value - Value to compare against.
|
|
10711
10691
|
* @documentationMaturity preview
|
|
10712
10692
|
*/
|
|
10713
|
-
eq: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type'
|
|
10693
|
+
eq: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type', value: any) => ResourcesQueryBuilder;
|
|
10714
10694
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
10715
10695
|
* @param value - Value to compare against.
|
|
10716
10696
|
* @documentationMaturity preview
|
|
10717
10697
|
*/
|
|
10718
|
-
ne: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type'
|
|
10698
|
+
ne: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type', value: any) => ResourcesQueryBuilder;
|
|
10719
10699
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
10720
10700
|
* @param value - Value to compare against.
|
|
10721
10701
|
* @documentationMaturity preview
|
|
@@ -10740,16 +10720,16 @@ interface ResourcesQueryBuilder {
|
|
|
10740
10720
|
* @param string - String to compare against. Case-insensitive.
|
|
10741
10721
|
* @documentationMaturity preview
|
|
10742
10722
|
*/
|
|
10743
|
-
startsWith: (propertyName: 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | 'name' | 'type'
|
|
10723
|
+
startsWith: (propertyName: 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | 'name' | 'type', value: string) => ResourcesQueryBuilder;
|
|
10744
10724
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
10745
10725
|
* @param values - List of values to compare against.
|
|
10746
10726
|
* @documentationMaturity preview
|
|
10747
10727
|
*/
|
|
10748
|
-
hasSome: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type'
|
|
10728
|
+
hasSome: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type', value: any[]) => ResourcesQueryBuilder;
|
|
10749
10729
|
/** @documentationMaturity preview */
|
|
10750
|
-
in: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type'
|
|
10730
|
+
in: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type', value: any) => ResourcesQueryBuilder;
|
|
10751
10731
|
/** @documentationMaturity preview */
|
|
10752
|
-
exists: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type'
|
|
10732
|
+
exists: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type', value: boolean) => ResourcesQueryBuilder;
|
|
10753
10733
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
10754
10734
|
* @documentationMaturity preview
|
|
10755
10735
|
*/
|
|
@@ -10961,8 +10941,6 @@ interface ResourceType$1 {
|
|
|
10961
10941
|
_updatedDate?: Date | null;
|
|
10962
10942
|
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
10963
10943
|
name?: string | null;
|
|
10964
|
-
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
10965
|
-
appId?: string | null;
|
|
10966
10944
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
10967
10945
|
extendedFields?: ExtendedFields$5;
|
|
10968
10946
|
}
|
|
@@ -11296,6 +11274,9 @@ interface UpdateResourceTypeResponseNonNullableFields {
|
|
|
11296
11274
|
interface QueryResourceTypesResponseNonNullableFields {
|
|
11297
11275
|
resourceTypes: ResourceTypeNonNullableFields[];
|
|
11298
11276
|
}
|
|
11277
|
+
interface CountResourceTypesResponseNonNullableFields {
|
|
11278
|
+
count: number;
|
|
11279
|
+
}
|
|
11299
11280
|
interface BaseEventMetadata$5 {
|
|
11300
11281
|
/** App instance ID. */
|
|
11301
11282
|
instanceId?: string | null;
|
|
@@ -11378,8 +11359,6 @@ interface UpdateResourceType {
|
|
|
11378
11359
|
_updatedDate?: Date | null;
|
|
11379
11360
|
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
11380
11361
|
name?: string | null;
|
|
11381
|
-
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
11382
|
-
appId?: string | null;
|
|
11383
11362
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
11384
11363
|
extendedFields?: ExtendedFields$5;
|
|
11385
11364
|
}
|
|
@@ -11434,6 +11413,10 @@ interface ResourceTypesQueryBuilder {
|
|
|
11434
11413
|
/** @documentationMaturity preview */
|
|
11435
11414
|
find: () => Promise<ResourceTypesQueryResult>;
|
|
11436
11415
|
}
|
|
11416
|
+
interface CountResourceTypesOptions {
|
|
11417
|
+
/** Filter to apply on resource types to count. */
|
|
11418
|
+
filter?: Record<string, any> | null;
|
|
11419
|
+
}
|
|
11437
11420
|
|
|
11438
11421
|
declare function createResourceType$1(httpClient: HttpClient): CreateResourceTypeSignature;
|
|
11439
11422
|
interface CreateResourceTypeSignature {
|
|
@@ -11491,6 +11474,15 @@ interface QueryResourceTypesSignature {
|
|
|
11491
11474
|
*/
|
|
11492
11475
|
(options?: QueryResourceTypesOptions | undefined): ResourceTypesQueryBuilder;
|
|
11493
11476
|
}
|
|
11477
|
+
declare function countResourceTypes$1(httpClient: HttpClient): CountResourceTypesSignature;
|
|
11478
|
+
interface CountResourceTypesSignature {
|
|
11479
|
+
/**
|
|
11480
|
+
* Counts resource types according to given criteria.
|
|
11481
|
+
*
|
|
11482
|
+
* Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria.
|
|
11483
|
+
*/
|
|
11484
|
+
(options?: CountResourceTypesOptions | undefined): Promise<CountResourceTypesResponse & CountResourceTypesResponseNonNullableFields>;
|
|
11485
|
+
}
|
|
11494
11486
|
declare const onResourceTypeCreated$1: EventDefinition<ResourceTypeCreatedEnvelope, "wix.bookings.resources.v2.resource_type_created">;
|
|
11495
11487
|
declare const onResourceTypeUpdated$1: EventDefinition<ResourceTypeUpdatedEnvelope, "wix.bookings.resources.v2.resource_type_updated">;
|
|
11496
11488
|
declare const onResourceTypeDeleted$1: EventDefinition<ResourceTypeDeletedEnvelope, "wix.bookings.resources.v2.resource_type_deleted">;
|
|
@@ -11502,6 +11494,7 @@ declare const getResourceType: MaybeContext<BuildRESTFunction<typeof getResource
|
|
|
11502
11494
|
declare const updateResourceType: MaybeContext<BuildRESTFunction<typeof updateResourceType$1> & typeof updateResourceType$1>;
|
|
11503
11495
|
declare const deleteResourceType: MaybeContext<BuildRESTFunction<typeof deleteResourceType$1> & typeof deleteResourceType$1>;
|
|
11504
11496
|
declare const queryResourceTypes: MaybeContext<BuildRESTFunction<typeof queryResourceTypes$1> & typeof queryResourceTypes$1>;
|
|
11497
|
+
declare const countResourceTypes: MaybeContext<BuildRESTFunction<typeof countResourceTypes$1> & typeof countResourceTypes$1>;
|
|
11505
11498
|
|
|
11506
11499
|
type _publicOnResourceTypeCreatedType = typeof onResourceTypeCreated$1;
|
|
11507
11500
|
/** */
|
|
@@ -11515,8 +11508,10 @@ type _publicOnResourceTypeDeletedType = typeof onResourceTypeDeleted$1;
|
|
|
11515
11508
|
/** */
|
|
11516
11509
|
declare const onResourceTypeDeleted: ReturnType<typeof createEventModule$5<_publicOnResourceTypeDeletedType>>;
|
|
11517
11510
|
|
|
11511
|
+
type context$7_CountResourceTypesOptions = CountResourceTypesOptions;
|
|
11518
11512
|
type context$7_CountResourceTypesRequest = CountResourceTypesRequest;
|
|
11519
11513
|
type context$7_CountResourceTypesResponse = CountResourceTypesResponse;
|
|
11514
|
+
type context$7_CountResourceTypesResponseNonNullableFields = CountResourceTypesResponseNonNullableFields;
|
|
11520
11515
|
type context$7_CreateResourceTypeErrors = CreateResourceTypeErrors;
|
|
11521
11516
|
declare const context$7_CreateResourceTypeErrors: typeof CreateResourceTypeErrors;
|
|
11522
11517
|
type context$7_CreateResourceTypeRequest = CreateResourceTypeRequest;
|
|
@@ -11548,6 +11543,7 @@ type context$7_UpdateResourceTypeResponseNonNullableFields = UpdateResourceTypeR
|
|
|
11548
11543
|
type context$7__publicOnResourceTypeCreatedType = _publicOnResourceTypeCreatedType;
|
|
11549
11544
|
type context$7__publicOnResourceTypeDeletedType = _publicOnResourceTypeDeletedType;
|
|
11550
11545
|
type context$7__publicOnResourceTypeUpdatedType = _publicOnResourceTypeUpdatedType;
|
|
11546
|
+
declare const context$7_countResourceTypes: typeof countResourceTypes;
|
|
11551
11547
|
declare const context$7_createResourceType: typeof createResourceType;
|
|
11552
11548
|
declare const context$7_deleteResourceType: typeof deleteResourceType;
|
|
11553
11549
|
declare const context$7_getResourceType: typeof getResourceType;
|
|
@@ -11557,7 +11553,7 @@ declare const context$7_onResourceTypeUpdated: typeof onResourceTypeUpdated;
|
|
|
11557
11553
|
declare const context$7_queryResourceTypes: typeof queryResourceTypes;
|
|
11558
11554
|
declare const context$7_updateResourceType: typeof updateResourceType;
|
|
11559
11555
|
declare namespace context$7 {
|
|
11560
|
-
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 };
|
|
11556
|
+
export { type ActionEvent$5 as ActionEvent, type BaseEventMetadata$5 as BaseEventMetadata, type BusinessLocation$1 as BusinessLocation, type context$7_CountResourceTypesOptions as CountResourceTypesOptions, type context$7_CountResourceTypesRequest as CountResourceTypesRequest, type context$7_CountResourceTypesResponse as CountResourceTypesResponse, type context$7_CountResourceTypesResponseNonNullableFields as CountResourceTypesResponseNonNullableFields, 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_countResourceTypes as countResourceTypes, 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 };
|
|
11561
11557
|
}
|
|
11562
11558
|
|
|
11563
11559
|
/** The `Service` object represents the business offering that a business provides to its customers. */
|
|
@@ -9348,16 +9348,6 @@ interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
|
9348
9348
|
* @readonly
|
|
9349
9349
|
*/
|
|
9350
9350
|
eventsSchedule?: EventsSchedule;
|
|
9351
|
-
/**
|
|
9352
|
-
* The ID of the app of which this resource belongs to.
|
|
9353
|
-
* Default: Bookings App ID.
|
|
9354
|
-
*/
|
|
9355
|
-
appId?: string | null;
|
|
9356
|
-
/**
|
|
9357
|
-
* Specifies whether this resource is managed by a user (site owner, contributor, etc) or by an app.
|
|
9358
|
-
* Default: `WIX_USER`.
|
|
9359
|
-
*/
|
|
9360
|
-
managementType?: ManagementType;
|
|
9361
9351
|
/** Extensions enabling users to save custom data related to the resource. */
|
|
9362
9352
|
extendedFields?: ExtendedFields$6;
|
|
9363
9353
|
}
|
|
@@ -10679,16 +10669,6 @@ interface UpdateResource {
|
|
|
10679
10669
|
* @readonly
|
|
10680
10670
|
*/
|
|
10681
10671
|
eventsSchedule?: EventsSchedule;
|
|
10682
|
-
/**
|
|
10683
|
-
* The ID of the app of which this resource belongs to.
|
|
10684
|
-
* Default: Bookings App ID.
|
|
10685
|
-
*/
|
|
10686
|
-
appId?: string | null;
|
|
10687
|
-
/**
|
|
10688
|
-
* Specifies whether this resource is managed by a user (site owner, contributor, etc) or by an app.
|
|
10689
|
-
* Default: `WIX_USER`.
|
|
10690
|
-
*/
|
|
10691
|
-
managementType?: ManagementType;
|
|
10692
10672
|
/** Extensions enabling users to save custom data related to the resource. */
|
|
10693
10673
|
extendedFields?: ExtendedFields$6;
|
|
10694
10674
|
}
|
|
@@ -10710,12 +10690,12 @@ interface ResourcesQueryBuilder {
|
|
|
10710
10690
|
* @param value - Value to compare against.
|
|
10711
10691
|
* @documentationMaturity preview
|
|
10712
10692
|
*/
|
|
10713
|
-
eq: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type'
|
|
10693
|
+
eq: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type', value: any) => ResourcesQueryBuilder;
|
|
10714
10694
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
10715
10695
|
* @param value - Value to compare against.
|
|
10716
10696
|
* @documentationMaturity preview
|
|
10717
10697
|
*/
|
|
10718
|
-
ne: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type'
|
|
10698
|
+
ne: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type', value: any) => ResourcesQueryBuilder;
|
|
10719
10699
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
10720
10700
|
* @param value - Value to compare against.
|
|
10721
10701
|
* @documentationMaturity preview
|
|
@@ -10740,16 +10720,16 @@ interface ResourcesQueryBuilder {
|
|
|
10740
10720
|
* @param string - String to compare against. Case-insensitive.
|
|
10741
10721
|
* @documentationMaturity preview
|
|
10742
10722
|
*/
|
|
10743
|
-
startsWith: (propertyName: 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | 'name' | 'type'
|
|
10723
|
+
startsWith: (propertyName: 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | 'name' | 'type', value: string) => ResourcesQueryBuilder;
|
|
10744
10724
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
10745
10725
|
* @param values - List of values to compare against.
|
|
10746
10726
|
* @documentationMaturity preview
|
|
10747
10727
|
*/
|
|
10748
|
-
hasSome: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type'
|
|
10728
|
+
hasSome: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type', value: any[]) => ResourcesQueryBuilder;
|
|
10749
10729
|
/** @documentationMaturity preview */
|
|
10750
|
-
in: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type'
|
|
10730
|
+
in: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type', value: any) => ResourcesQueryBuilder;
|
|
10751
10731
|
/** @documentationMaturity preview */
|
|
10752
|
-
exists: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type'
|
|
10732
|
+
exists: (propertyName: 'singleResource.locationOptions.availableInAllLocations' | 'singleResource.locationOptions.specificLocationOptions.availableInBusinessLocations' | 'singleResource.locationOptions.specificLocationOptions.businessLocations.locationId' | '_id' | '_createdDate' | '_updatedDate' | 'name' | 'type', value: boolean) => ResourcesQueryBuilder;
|
|
10753
10733
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
10754
10734
|
* @documentationMaturity preview
|
|
10755
10735
|
*/
|
|
@@ -10961,8 +10941,6 @@ interface ResourceType$1 {
|
|
|
10961
10941
|
_updatedDate?: Date | null;
|
|
10962
10942
|
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
10963
10943
|
name?: string | null;
|
|
10964
|
-
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
10965
|
-
appId?: string | null;
|
|
10966
10944
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
10967
10945
|
extendedFields?: ExtendedFields$5;
|
|
10968
10946
|
}
|
|
@@ -11296,6 +11274,9 @@ interface UpdateResourceTypeResponseNonNullableFields {
|
|
|
11296
11274
|
interface QueryResourceTypesResponseNonNullableFields {
|
|
11297
11275
|
resourceTypes: ResourceTypeNonNullableFields[];
|
|
11298
11276
|
}
|
|
11277
|
+
interface CountResourceTypesResponseNonNullableFields {
|
|
11278
|
+
count: number;
|
|
11279
|
+
}
|
|
11299
11280
|
interface BaseEventMetadata$5 {
|
|
11300
11281
|
/** App instance ID. */
|
|
11301
11282
|
instanceId?: string | null;
|
|
@@ -11378,8 +11359,6 @@ interface UpdateResourceType {
|
|
|
11378
11359
|
_updatedDate?: Date | null;
|
|
11379
11360
|
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
11380
11361
|
name?: string | null;
|
|
11381
|
-
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
11382
|
-
appId?: string | null;
|
|
11383
11362
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
11384
11363
|
extendedFields?: ExtendedFields$5;
|
|
11385
11364
|
}
|
|
@@ -11434,6 +11413,10 @@ interface ResourceTypesQueryBuilder {
|
|
|
11434
11413
|
/** @documentationMaturity preview */
|
|
11435
11414
|
find: () => Promise<ResourceTypesQueryResult>;
|
|
11436
11415
|
}
|
|
11416
|
+
interface CountResourceTypesOptions {
|
|
11417
|
+
/** Filter to apply on resource types to count. */
|
|
11418
|
+
filter?: Record<string, any> | null;
|
|
11419
|
+
}
|
|
11437
11420
|
|
|
11438
11421
|
declare function createResourceType$1(httpClient: HttpClient): CreateResourceTypeSignature;
|
|
11439
11422
|
interface CreateResourceTypeSignature {
|
|
@@ -11491,6 +11474,15 @@ interface QueryResourceTypesSignature {
|
|
|
11491
11474
|
*/
|
|
11492
11475
|
(options?: QueryResourceTypesOptions | undefined): ResourceTypesQueryBuilder;
|
|
11493
11476
|
}
|
|
11477
|
+
declare function countResourceTypes$1(httpClient: HttpClient): CountResourceTypesSignature;
|
|
11478
|
+
interface CountResourceTypesSignature {
|
|
11479
|
+
/**
|
|
11480
|
+
* Counts resource types according to given criteria.
|
|
11481
|
+
*
|
|
11482
|
+
* Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria.
|
|
11483
|
+
*/
|
|
11484
|
+
(options?: CountResourceTypesOptions | undefined): Promise<CountResourceTypesResponse & CountResourceTypesResponseNonNullableFields>;
|
|
11485
|
+
}
|
|
11494
11486
|
declare const onResourceTypeCreated$1: EventDefinition<ResourceTypeCreatedEnvelope, "wix.bookings.resources.v2.resource_type_created">;
|
|
11495
11487
|
declare const onResourceTypeUpdated$1: EventDefinition<ResourceTypeUpdatedEnvelope, "wix.bookings.resources.v2.resource_type_updated">;
|
|
11496
11488
|
declare const onResourceTypeDeleted$1: EventDefinition<ResourceTypeDeletedEnvelope, "wix.bookings.resources.v2.resource_type_deleted">;
|
|
@@ -11502,6 +11494,7 @@ declare const getResourceType: MaybeContext<BuildRESTFunction<typeof getResource
|
|
|
11502
11494
|
declare const updateResourceType: MaybeContext<BuildRESTFunction<typeof updateResourceType$1> & typeof updateResourceType$1>;
|
|
11503
11495
|
declare const deleteResourceType: MaybeContext<BuildRESTFunction<typeof deleteResourceType$1> & typeof deleteResourceType$1>;
|
|
11504
11496
|
declare const queryResourceTypes: MaybeContext<BuildRESTFunction<typeof queryResourceTypes$1> & typeof queryResourceTypes$1>;
|
|
11497
|
+
declare const countResourceTypes: MaybeContext<BuildRESTFunction<typeof countResourceTypes$1> & typeof countResourceTypes$1>;
|
|
11505
11498
|
|
|
11506
11499
|
type _publicOnResourceTypeCreatedType = typeof onResourceTypeCreated$1;
|
|
11507
11500
|
/** */
|
|
@@ -11515,8 +11508,10 @@ type _publicOnResourceTypeDeletedType = typeof onResourceTypeDeleted$1;
|
|
|
11515
11508
|
/** */
|
|
11516
11509
|
declare const onResourceTypeDeleted: ReturnType<typeof createEventModule$5<_publicOnResourceTypeDeletedType>>;
|
|
11517
11510
|
|
|
11511
|
+
type index_d$7_CountResourceTypesOptions = CountResourceTypesOptions;
|
|
11518
11512
|
type index_d$7_CountResourceTypesRequest = CountResourceTypesRequest;
|
|
11519
11513
|
type index_d$7_CountResourceTypesResponse = CountResourceTypesResponse;
|
|
11514
|
+
type index_d$7_CountResourceTypesResponseNonNullableFields = CountResourceTypesResponseNonNullableFields;
|
|
11520
11515
|
type index_d$7_CreateResourceTypeErrors = CreateResourceTypeErrors;
|
|
11521
11516
|
declare const index_d$7_CreateResourceTypeErrors: typeof CreateResourceTypeErrors;
|
|
11522
11517
|
type index_d$7_CreateResourceTypeRequest = CreateResourceTypeRequest;
|
|
@@ -11548,6 +11543,7 @@ type index_d$7_UpdateResourceTypeResponseNonNullableFields = UpdateResourceTypeR
|
|
|
11548
11543
|
type index_d$7__publicOnResourceTypeCreatedType = _publicOnResourceTypeCreatedType;
|
|
11549
11544
|
type index_d$7__publicOnResourceTypeDeletedType = _publicOnResourceTypeDeletedType;
|
|
11550
11545
|
type index_d$7__publicOnResourceTypeUpdatedType = _publicOnResourceTypeUpdatedType;
|
|
11546
|
+
declare const index_d$7_countResourceTypes: typeof countResourceTypes;
|
|
11551
11547
|
declare const index_d$7_createResourceType: typeof createResourceType;
|
|
11552
11548
|
declare const index_d$7_deleteResourceType: typeof deleteResourceType;
|
|
11553
11549
|
declare const index_d$7_getResourceType: typeof getResourceType;
|
|
@@ -11557,7 +11553,7 @@ declare const index_d$7_onResourceTypeUpdated: typeof onResourceTypeUpdated;
|
|
|
11557
11553
|
declare const index_d$7_queryResourceTypes: typeof queryResourceTypes;
|
|
11558
11554
|
declare const index_d$7_updateResourceType: typeof updateResourceType;
|
|
11559
11555
|
declare namespace index_d$7 {
|
|
11560
|
-
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 };
|
|
11556
|
+
export { type ActionEvent$5 as ActionEvent, type BaseEventMetadata$5 as BaseEventMetadata, type BusinessLocation$1 as BusinessLocation, type index_d$7_CountResourceTypesOptions as CountResourceTypesOptions, type index_d$7_CountResourceTypesRequest as CountResourceTypesRequest, type index_d$7_CountResourceTypesResponse as CountResourceTypesResponse, type index_d$7_CountResourceTypesResponseNonNullableFields as CountResourceTypesResponseNonNullableFields, 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_countResourceTypes as countResourceTypes, 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 };
|
|
11561
11557
|
}
|
|
11562
11558
|
|
|
11563
11559
|
/** The `Service` object represents the business offering that a business provides to its customers. */
|
|
@@ -6793,16 +6793,6 @@ interface Resource$3 extends ResourceCompositionDetailsOneOf$1 {
|
|
|
6793
6793
|
* @readonly
|
|
6794
6794
|
*/
|
|
6795
6795
|
eventsSchedule?: EventsSchedule$1;
|
|
6796
|
-
/**
|
|
6797
|
-
* The ID of the app of which this resource belongs to.
|
|
6798
|
-
* Default: Bookings App ID.
|
|
6799
|
-
*/
|
|
6800
|
-
appId?: string | null;
|
|
6801
|
-
/**
|
|
6802
|
-
* Specifies whether this resource is managed by a user (site owner, contributor, etc) or by an app.
|
|
6803
|
-
* Default: `WIX_USER`.
|
|
6804
|
-
*/
|
|
6805
|
-
managementType?: ManagementType$1;
|
|
6806
6796
|
/** Extensions enabling users to save custom data related to the resource. */
|
|
6807
6797
|
extendedFields?: ExtendedFields$d;
|
|
6808
6798
|
}
|
|
@@ -7144,16 +7134,6 @@ interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
|
7144
7134
|
* @readonly
|
|
7145
7135
|
*/
|
|
7146
7136
|
eventsSchedule?: EventsSchedule;
|
|
7147
|
-
/**
|
|
7148
|
-
* The ID of the app of which this resource belongs to.
|
|
7149
|
-
* Default: Bookings App ID.
|
|
7150
|
-
*/
|
|
7151
|
-
appId?: string | null;
|
|
7152
|
-
/**
|
|
7153
|
-
* Specifies whether this resource is managed by a user (site owner, contributor, etc) or by an app.
|
|
7154
|
-
* Default: `WIX_USER`.
|
|
7155
|
-
*/
|
|
7156
|
-
managementType?: ManagementType;
|
|
7157
7137
|
/** Extensions enabling users to save custom data related to the resource. */
|
|
7158
7138
|
extendedFields?: ExtendedFields$c;
|
|
7159
7139
|
}
|
|
@@ -7487,8 +7467,6 @@ interface ResourceType$1 {
|
|
|
7487
7467
|
updatedDate?: Date | null;
|
|
7488
7468
|
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
7489
7469
|
name?: string | null;
|
|
7490
|
-
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
7491
|
-
appId?: string | null;
|
|
7492
7470
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
7493
7471
|
extendedFields?: ExtendedFields$b;
|
|
7494
7472
|
}
|
|
@@ -7611,6 +7589,14 @@ interface Cursors$9 {
|
|
|
7611
7589
|
/** Cursor pointing to previous page in the list of results. */
|
|
7612
7590
|
prev?: string | null;
|
|
7613
7591
|
}
|
|
7592
|
+
interface CountResourceTypesRequest$1 {
|
|
7593
|
+
/** Filter to apply on resource types to count. */
|
|
7594
|
+
filter?: Record<string, any> | null;
|
|
7595
|
+
}
|
|
7596
|
+
interface CountResourceTypesResponse$1 {
|
|
7597
|
+
/** The number of resource types matching the given filter. */
|
|
7598
|
+
count?: number;
|
|
7599
|
+
}
|
|
7614
7600
|
interface DistinctLocationIdsNonNullableFields$1 {
|
|
7615
7601
|
values: string[];
|
|
7616
7602
|
}
|
|
@@ -7633,6 +7619,9 @@ interface UpdateResourceTypeResponseNonNullableFields$1 {
|
|
|
7633
7619
|
interface QueryResourceTypesResponseNonNullableFields$1 {
|
|
7634
7620
|
resourceTypes: ResourceTypeNonNullableFields$1[];
|
|
7635
7621
|
}
|
|
7622
|
+
interface CountResourceTypesResponseNonNullableFields$1 {
|
|
7623
|
+
count: number;
|
|
7624
|
+
}
|
|
7636
7625
|
|
|
7637
7626
|
/** A ResourceType is a classification of resources, e.g. room, equipment or vehicle. */
|
|
7638
7627
|
interface ResourceType {
|
|
@@ -7660,8 +7649,6 @@ interface ResourceType {
|
|
|
7660
7649
|
_updatedDate?: Date | null;
|
|
7661
7650
|
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
7662
7651
|
name?: string | null;
|
|
7663
|
-
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
7664
|
-
appId?: string | null;
|
|
7665
7652
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
7666
7653
|
extendedFields?: ExtendedFields$a;
|
|
7667
7654
|
}
|
|
@@ -7784,6 +7771,14 @@ interface Cursors$8 {
|
|
|
7784
7771
|
/** Cursor pointing to previous page in the list of results. */
|
|
7785
7772
|
prev?: string | null;
|
|
7786
7773
|
}
|
|
7774
|
+
interface CountResourceTypesRequest {
|
|
7775
|
+
/** Filter to apply on resource types to count. */
|
|
7776
|
+
filter?: Record<string, any> | null;
|
|
7777
|
+
}
|
|
7778
|
+
interface CountResourceTypesResponse {
|
|
7779
|
+
/** The number of resource types matching the given filter. */
|
|
7780
|
+
count?: number;
|
|
7781
|
+
}
|
|
7787
7782
|
interface DistinctLocationIdsNonNullableFields {
|
|
7788
7783
|
values: string[];
|
|
7789
7784
|
}
|
|
@@ -7806,6 +7801,9 @@ interface UpdateResourceTypeResponseNonNullableFields {
|
|
|
7806
7801
|
interface QueryResourceTypesResponseNonNullableFields {
|
|
7807
7802
|
resourceTypes: ResourceTypeNonNullableFields[];
|
|
7808
7803
|
}
|
|
7804
|
+
interface CountResourceTypesResponseNonNullableFields {
|
|
7805
|
+
count: number;
|
|
7806
|
+
}
|
|
7809
7807
|
|
|
7810
7808
|
type __PublicMethodMetaInfo$7<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
7811
7809
|
getUrl: (context: any) => string;
|
|
@@ -7828,14 +7826,16 @@ declare function deleteResourceType(): __PublicMethodMetaInfo$7<'DELETE', {
|
|
|
7828
7826
|
resourceTypeId: string;
|
|
7829
7827
|
}, DeleteResourceTypeRequest, DeleteResourceTypeRequest$1, DeleteResourceTypeResponse, DeleteResourceTypeResponse$1>;
|
|
7830
7828
|
declare function queryResourceTypes(): __PublicMethodMetaInfo$7<'POST', {}, QueryResourceTypesRequest, QueryResourceTypesRequest$1, QueryResourceTypesResponse & QueryResourceTypesResponseNonNullableFields, QueryResourceTypesResponse$1 & QueryResourceTypesResponseNonNullableFields$1>;
|
|
7829
|
+
declare function countResourceTypes(): __PublicMethodMetaInfo$7<'POST', {}, CountResourceTypesRequest, CountResourceTypesRequest$1, CountResourceTypesResponse & CountResourceTypesResponseNonNullableFields, CountResourceTypesResponse$1 & CountResourceTypesResponseNonNullableFields$1>;
|
|
7831
7830
|
|
|
7831
|
+
declare const meta$7_countResourceTypes: typeof countResourceTypes;
|
|
7832
7832
|
declare const meta$7_createResourceType: typeof createResourceType;
|
|
7833
7833
|
declare const meta$7_deleteResourceType: typeof deleteResourceType;
|
|
7834
7834
|
declare const meta$7_getResourceType: typeof getResourceType;
|
|
7835
7835
|
declare const meta$7_queryResourceTypes: typeof queryResourceTypes;
|
|
7836
7836
|
declare const meta$7_updateResourceType: typeof updateResourceType;
|
|
7837
7837
|
declare namespace meta$7 {
|
|
7838
|
-
export { type __PublicMethodMetaInfo$7 as __PublicMethodMetaInfo, meta$7_createResourceType as createResourceType, meta$7_deleteResourceType as deleteResourceType, meta$7_getResourceType as getResourceType, meta$7_queryResourceTypes as queryResourceTypes, meta$7_updateResourceType as updateResourceType };
|
|
7838
|
+
export { type __PublicMethodMetaInfo$7 as __PublicMethodMetaInfo, meta$7_countResourceTypes as countResourceTypes, meta$7_createResourceType as createResourceType, meta$7_deleteResourceType as deleteResourceType, meta$7_getResourceType as getResourceType, meta$7_queryResourceTypes as queryResourceTypes, meta$7_updateResourceType as updateResourceType };
|
|
7839
7839
|
}
|
|
7840
7840
|
|
|
7841
7841
|
/** The `Service` object represents the business offering that a business provides to its customers. */
|