@wix/bookings 1.0.502 → 1.0.504
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.504",
|
|
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.41",
|
|
34
34
|
"@wix/bookings_multi-service-availability-time-slots": "1.0.36",
|
|
35
35
|
"@wix/bookings_pricing": "1.0.48",
|
|
36
|
-
"@wix/bookings_resource-types": "1.0.
|
|
37
|
-
"@wix/bookings_resources": "1.0.
|
|
36
|
+
"@wix/bookings_resource-types": "1.0.17",
|
|
37
|
+
"@wix/bookings_resources": "1.0.57",
|
|
38
38
|
"@wix/bookings_service-categories": "1.0.0",
|
|
39
39
|
"@wix/bookings_service-options-and-variants": "1.0.58",
|
|
40
40
|
"@wix/bookings_services": "1.0.81",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"fqdn": ""
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"falconPackageHash": "
|
|
66
|
+
"falconPackageHash": "1b846f7c28022964b93ddc757ebf51ebe78ec77f6c0e080a98c20636"
|
|
67
67
|
}
|
|
@@ -9810,9 +9810,9 @@ interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
|
9810
9810
|
*/
|
|
9811
9811
|
_id?: string | null;
|
|
9812
9812
|
/**
|
|
9813
|
-
* Revision number, which increments by 1 each time the
|
|
9813
|
+
* Revision number, which increments by 1 each time the resource is updated.
|
|
9814
9814
|
* To prevent conflicting changes,
|
|
9815
|
-
* the current revision must be passed when updating the
|
|
9815
|
+
* the current revision must be passed when updating the resource.
|
|
9816
9816
|
* @readonly
|
|
9817
9817
|
*/
|
|
9818
9818
|
revision?: string | null;
|
|
@@ -11117,9 +11117,9 @@ interface UpdateResource {
|
|
|
11117
11117
|
*/
|
|
11118
11118
|
_id?: string | null;
|
|
11119
11119
|
/**
|
|
11120
|
-
* Revision number, which increments by 1 each time the
|
|
11120
|
+
* Revision number, which increments by 1 each time the resource is updated.
|
|
11121
11121
|
* To prevent conflicting changes,
|
|
11122
|
-
* the current revision must be passed when updating the
|
|
11122
|
+
* the current revision must be passed when updating the resource.
|
|
11123
11123
|
* @readonly
|
|
11124
11124
|
*/
|
|
11125
11125
|
revision?: string | null;
|
|
@@ -11453,27 +11453,27 @@ declare namespace context$8 {
|
|
|
11453
11453
|
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_CountResourcesOptions as CountResourcesOptions, type context$8_CountResourcesRequest as CountResourcesRequest, type context$8_CountResourcesResponse as CountResourcesResponse, type context$8_CountResourcesResponseNonNullableFields as CountResourcesResponseNonNullableFields, 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_countResources as countResources, 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 };
|
|
11454
11454
|
}
|
|
11455
11455
|
|
|
11456
|
-
/** A
|
|
11456
|
+
/** A resource type is a classification of resources, e.g. room, equipment or vehicle. */
|
|
11457
11457
|
interface ResourceType$1 {
|
|
11458
11458
|
/**
|
|
11459
|
-
*
|
|
11459
|
+
* Resource type ID.
|
|
11460
11460
|
* @readonly
|
|
11461
11461
|
*/
|
|
11462
11462
|
_id?: string | null;
|
|
11463
11463
|
/**
|
|
11464
|
-
*
|
|
11465
|
-
*
|
|
11466
|
-
*
|
|
11464
|
+
* Revision number, which increments by 1 each time the resource type is updated.
|
|
11465
|
+
* To prevent conflicting changes,
|
|
11466
|
+
* the current revision must be passed when updating the resource type.
|
|
11467
11467
|
* @readonly
|
|
11468
11468
|
*/
|
|
11469
11469
|
revision?: string | null;
|
|
11470
11470
|
/**
|
|
11471
|
-
* Represents the time this resource type was created.
|
|
11471
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was created.
|
|
11472
11472
|
* @readonly
|
|
11473
11473
|
*/
|
|
11474
11474
|
_createdDate?: Date | null;
|
|
11475
11475
|
/**
|
|
11476
|
-
* Represents the time this resource type was last updated.
|
|
11476
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was last updated.
|
|
11477
11477
|
* @readonly
|
|
11478
11478
|
*/
|
|
11479
11479
|
_updatedDate?: Date | null;
|
|
@@ -11494,12 +11494,12 @@ interface ResourceCounts {
|
|
|
11494
11494
|
*/
|
|
11495
11495
|
hasResourcesInAllLocations?: boolean | null;
|
|
11496
11496
|
/**
|
|
11497
|
-
* Whether a resource of this type exists that is available in any customer location
|
|
11497
|
+
* Whether a resource of this type exists that is available in any customer location.
|
|
11498
11498
|
* @readonly
|
|
11499
11499
|
*/
|
|
11500
11500
|
hasResourcesInCustomerLocations?: boolean | null;
|
|
11501
11501
|
/**
|
|
11502
|
-
* Whether a resource of this type exists that is available in any custom location
|
|
11502
|
+
* Whether a resource of this type exists that is available in any custom location.
|
|
11503
11503
|
* @readonly
|
|
11504
11504
|
*/
|
|
11505
11505
|
hasResourcesInCustomLocations?: boolean | null;
|
|
@@ -11515,7 +11515,7 @@ interface ResourceCounts {
|
|
|
11515
11515
|
distinctLocationIds?: DistinctLocationIds;
|
|
11516
11516
|
}
|
|
11517
11517
|
interface DistinctLocationIds {
|
|
11518
|
-
/** Locations ids of business locations */
|
|
11518
|
+
/** Locations ids of business locations. */
|
|
11519
11519
|
values?: string[];
|
|
11520
11520
|
}
|
|
11521
11521
|
interface ExtendedFields$5 {
|
|
@@ -11587,7 +11587,7 @@ interface GetResourceTypeResponse {
|
|
|
11587
11587
|
resourceType?: ResourceType$1;
|
|
11588
11588
|
}
|
|
11589
11589
|
interface UpdateResourceTypeRequest {
|
|
11590
|
-
/** Resource type to update.
|
|
11590
|
+
/** Resource type to update. */
|
|
11591
11591
|
resourceType: ResourceType$1;
|
|
11592
11592
|
}
|
|
11593
11593
|
interface UpdateResourceTypeResponse {
|
|
@@ -11875,24 +11875,24 @@ interface ResourceTypeUpdatedEnvelope {
|
|
|
11875
11875
|
}
|
|
11876
11876
|
interface UpdateResourceType {
|
|
11877
11877
|
/**
|
|
11878
|
-
*
|
|
11878
|
+
* Resource type ID.
|
|
11879
11879
|
* @readonly
|
|
11880
11880
|
*/
|
|
11881
11881
|
_id?: string | null;
|
|
11882
11882
|
/**
|
|
11883
|
-
*
|
|
11884
|
-
*
|
|
11885
|
-
*
|
|
11883
|
+
* Revision number, which increments by 1 each time the resource type is updated.
|
|
11884
|
+
* To prevent conflicting changes,
|
|
11885
|
+
* the current revision must be passed when updating the resource type.
|
|
11886
11886
|
* @readonly
|
|
11887
11887
|
*/
|
|
11888
11888
|
revision?: string | null;
|
|
11889
11889
|
/**
|
|
11890
|
-
* Represents the time this resource type was created.
|
|
11890
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was created.
|
|
11891
11891
|
* @readonly
|
|
11892
11892
|
*/
|
|
11893
11893
|
_createdDate?: Date | null;
|
|
11894
11894
|
/**
|
|
11895
|
-
* Represents the time this resource type was last updated.
|
|
11895
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was last updated.
|
|
11896
11896
|
* @readonly
|
|
11897
11897
|
*/
|
|
11898
11898
|
_updatedDate?: Date | null;
|
|
@@ -11960,9 +11960,7 @@ interface CountResourceTypesOptions {
|
|
|
11960
11960
|
declare function createResourceType$1(httpClient: HttpClient): CreateResourceTypeSignature;
|
|
11961
11961
|
interface CreateResourceTypeSignature {
|
|
11962
11962
|
/**
|
|
11963
|
-
* Creates a new
|
|
11964
|
-
*
|
|
11965
|
-
* By using the create API, you can create a resource type and set its name and the ID of the app it belongs to.
|
|
11963
|
+
* Creates a new resource type.
|
|
11966
11964
|
* @param - Resource type to be created.
|
|
11967
11965
|
* @returns The created resource type.
|
|
11968
11966
|
*/
|
|
@@ -11971,7 +11969,7 @@ interface CreateResourceTypeSignature {
|
|
|
11971
11969
|
declare function getResourceType$1(httpClient: HttpClient): GetResourceTypeSignature;
|
|
11972
11970
|
interface GetResourceTypeSignature {
|
|
11973
11971
|
/**
|
|
11974
|
-
* Retrieves a
|
|
11972
|
+
* Retrieves a resource type by ID.
|
|
11975
11973
|
* @param - ID of the resource type to retrieve.
|
|
11976
11974
|
* @returns The requested resource type.
|
|
11977
11975
|
*/
|
|
@@ -11980,13 +11978,11 @@ interface GetResourceTypeSignature {
|
|
|
11980
11978
|
declare function updateResourceType$1(httpClient: HttpClient): UpdateResourceTypeSignature;
|
|
11981
11979
|
interface UpdateResourceTypeSignature {
|
|
11982
11980
|
/**
|
|
11983
|
-
* Updates a
|
|
11984
|
-
*
|
|
11985
|
-
* [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported.
|
|
11981
|
+
* Updates a resource type.
|
|
11986
11982
|
*
|
|
11987
11983
|
* Each time the resource type is updated, `revision` increments by 1. You must include current revision of the resource type when updating it.
|
|
11988
11984
|
* This ensures you're working with the latest service information and prevents unintended overwrites.
|
|
11989
|
-
* @param -
|
|
11985
|
+
* @param - Resource type ID.
|
|
11990
11986
|
* @returns Updated resource type.
|
|
11991
11987
|
*/
|
|
11992
11988
|
(_id: string | null, resourceType: UpdateResourceType): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
@@ -11994,10 +11990,9 @@ interface UpdateResourceTypeSignature {
|
|
|
11994
11990
|
declare function deleteResourceType$1(httpClient: HttpClient): DeleteResourceTypeSignature;
|
|
11995
11991
|
interface DeleteResourceTypeSignature {
|
|
11996
11992
|
/**
|
|
11997
|
-
* Deletes a
|
|
11998
|
-
*
|
|
11993
|
+
* Deletes a resource type.
|
|
11999
11994
|
*
|
|
12000
|
-
* Deleting a resource type will
|
|
11995
|
+
* Deleting a resource type will automatically delete all resources of this type.
|
|
12001
11996
|
* @param - ID of the resource type to delete.
|
|
12002
11997
|
*/
|
|
12003
11998
|
(resourceTypeId: string): Promise<void>;
|
|
@@ -12005,14 +12000,22 @@ interface DeleteResourceTypeSignature {
|
|
|
12005
12000
|
declare function queryResourceTypes$1(httpClient: HttpClient): QueryResourceTypesSignature;
|
|
12006
12001
|
interface QueryResourceTypesSignature {
|
|
12007
12002
|
/**
|
|
12008
|
-
*
|
|
12003
|
+
* Creates a query to retrieve a list of resource types.
|
|
12009
12004
|
*
|
|
12010
|
-
*
|
|
12005
|
+
* The `queryResourceTypes()` function builds a query to retrieve a list of resource types and returns a `ResourceTypesQueryBuilder` object.
|
|
12011
12006
|
*
|
|
12012
|
-
*
|
|
12007
|
+
* The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-builder/find) function.
|
|
12013
12008
|
*
|
|
12014
|
-
*
|
|
12015
|
-
*
|
|
12009
|
+
* You can refine the query by chaining `ResourceTypesQueryBuilder` functions onto the query. `ResourceTypesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResourceTypes()` returns.
|
|
12010
|
+
*
|
|
12011
|
+
* `queryResourceTypes()` runs with the following `ResourceTypesQueryBuilder` default that you can override:
|
|
12012
|
+
*
|
|
12013
|
+
* + `limit` is `50`.
|
|
12014
|
+
* + Sorted by `id` in ascending order.
|
|
12015
|
+
*
|
|
12016
|
+
* The functions that are chained to `queryResourceTypes()` are applied in the order they are called.
|
|
12017
|
+
*
|
|
12018
|
+
* The following `ResourceTypesQueryBuilder` functions are supported for the `queryResourceTypes()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-result/items) property in `ResourceTypesQueryResult`.
|
|
12016
12019
|
*/
|
|
12017
12020
|
(options?: QueryResourceTypesOptions | undefined): ResourceTypesQueryBuilder;
|
|
12018
12021
|
}
|
|
@@ -12021,6 +12024,7 @@ interface CountResourceTypesSignature {
|
|
|
12021
12024
|
/**
|
|
12022
12025
|
* Counts resource types according to given criteria.
|
|
12023
12026
|
*
|
|
12027
|
+
* For field support for filters, see [Resource types: Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-type-v2/filtering-and-sorting).
|
|
12024
12028
|
* Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria.
|
|
12025
12029
|
*/
|
|
12026
12030
|
(options?: CountResourceTypesOptions | undefined): Promise<CountResourceTypesResponse & CountResourceTypesResponseNonNullableFields>;
|
|
@@ -12039,15 +12043,21 @@ declare const queryResourceTypes: MaybeContext<BuildRESTFunction<typeof queryRes
|
|
|
12039
12043
|
declare const countResourceTypes: MaybeContext<BuildRESTFunction<typeof countResourceTypes$1> & typeof countResourceTypes$1>;
|
|
12040
12044
|
|
|
12041
12045
|
type _publicOnResourceTypeCreatedType = typeof onResourceTypeCreated$1;
|
|
12042
|
-
/**
|
|
12046
|
+
/**
|
|
12047
|
+
* Triggered when a resource type is created.
|
|
12048
|
+
*/
|
|
12043
12049
|
declare const onResourceTypeCreated: ReturnType<typeof createEventModule$5<_publicOnResourceTypeCreatedType>>;
|
|
12044
12050
|
|
|
12045
12051
|
type _publicOnResourceTypeDeletedType = typeof onResourceTypeDeleted$1;
|
|
12046
|
-
/**
|
|
12052
|
+
/**
|
|
12053
|
+
* Triggered when a resource type is deleted.
|
|
12054
|
+
*/
|
|
12047
12055
|
declare const onResourceTypeDeleted: ReturnType<typeof createEventModule$5<_publicOnResourceTypeDeletedType>>;
|
|
12048
12056
|
|
|
12049
12057
|
type _publicOnResourceTypeUpdatedType = typeof onResourceTypeUpdated$1;
|
|
12050
|
-
/**
|
|
12058
|
+
/**
|
|
12059
|
+
* Triggered when a resource type is updated.
|
|
12060
|
+
*/
|
|
12051
12061
|
declare const onResourceTypeUpdated: ReturnType<typeof createEventModule$5<_publicOnResourceTypeUpdatedType>>;
|
|
12052
12062
|
|
|
12053
12063
|
type context$7_CountResourceTypesOptions = CountResourceTypesOptions;
|
|
@@ -9810,9 +9810,9 @@ interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
|
9810
9810
|
*/
|
|
9811
9811
|
_id?: string | null;
|
|
9812
9812
|
/**
|
|
9813
|
-
* Revision number, which increments by 1 each time the
|
|
9813
|
+
* Revision number, which increments by 1 each time the resource is updated.
|
|
9814
9814
|
* To prevent conflicting changes,
|
|
9815
|
-
* the current revision must be passed when updating the
|
|
9815
|
+
* the current revision must be passed when updating the resource.
|
|
9816
9816
|
* @readonly
|
|
9817
9817
|
*/
|
|
9818
9818
|
revision?: string | null;
|
|
@@ -11117,9 +11117,9 @@ interface UpdateResource {
|
|
|
11117
11117
|
*/
|
|
11118
11118
|
_id?: string | null;
|
|
11119
11119
|
/**
|
|
11120
|
-
* Revision number, which increments by 1 each time the
|
|
11120
|
+
* Revision number, which increments by 1 each time the resource is updated.
|
|
11121
11121
|
* To prevent conflicting changes,
|
|
11122
|
-
* the current revision must be passed when updating the
|
|
11122
|
+
* the current revision must be passed when updating the resource.
|
|
11123
11123
|
* @readonly
|
|
11124
11124
|
*/
|
|
11125
11125
|
revision?: string | null;
|
|
@@ -11453,27 +11453,27 @@ declare namespace index_d$8 {
|
|
|
11453
11453
|
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_CountResourcesOptions as CountResourcesOptions, type index_d$8_CountResourcesRequest as CountResourcesRequest, type index_d$8_CountResourcesResponse as CountResourcesResponse, type index_d$8_CountResourcesResponseNonNullableFields as CountResourcesResponseNonNullableFields, 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_countResources as countResources, 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 };
|
|
11454
11454
|
}
|
|
11455
11455
|
|
|
11456
|
-
/** A
|
|
11456
|
+
/** A resource type is a classification of resources, e.g. room, equipment or vehicle. */
|
|
11457
11457
|
interface ResourceType$1 {
|
|
11458
11458
|
/**
|
|
11459
|
-
*
|
|
11459
|
+
* Resource type ID.
|
|
11460
11460
|
* @readonly
|
|
11461
11461
|
*/
|
|
11462
11462
|
_id?: string | null;
|
|
11463
11463
|
/**
|
|
11464
|
-
*
|
|
11465
|
-
*
|
|
11466
|
-
*
|
|
11464
|
+
* Revision number, which increments by 1 each time the resource type is updated.
|
|
11465
|
+
* To prevent conflicting changes,
|
|
11466
|
+
* the current revision must be passed when updating the resource type.
|
|
11467
11467
|
* @readonly
|
|
11468
11468
|
*/
|
|
11469
11469
|
revision?: string | null;
|
|
11470
11470
|
/**
|
|
11471
|
-
* Represents the time this resource type was created.
|
|
11471
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was created.
|
|
11472
11472
|
* @readonly
|
|
11473
11473
|
*/
|
|
11474
11474
|
_createdDate?: Date | null;
|
|
11475
11475
|
/**
|
|
11476
|
-
* Represents the time this resource type was last updated.
|
|
11476
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was last updated.
|
|
11477
11477
|
* @readonly
|
|
11478
11478
|
*/
|
|
11479
11479
|
_updatedDate?: Date | null;
|
|
@@ -11494,12 +11494,12 @@ interface ResourceCounts {
|
|
|
11494
11494
|
*/
|
|
11495
11495
|
hasResourcesInAllLocations?: boolean | null;
|
|
11496
11496
|
/**
|
|
11497
|
-
* Whether a resource of this type exists that is available in any customer location
|
|
11497
|
+
* Whether a resource of this type exists that is available in any customer location.
|
|
11498
11498
|
* @readonly
|
|
11499
11499
|
*/
|
|
11500
11500
|
hasResourcesInCustomerLocations?: boolean | null;
|
|
11501
11501
|
/**
|
|
11502
|
-
* Whether a resource of this type exists that is available in any custom location
|
|
11502
|
+
* Whether a resource of this type exists that is available in any custom location.
|
|
11503
11503
|
* @readonly
|
|
11504
11504
|
*/
|
|
11505
11505
|
hasResourcesInCustomLocations?: boolean | null;
|
|
@@ -11515,7 +11515,7 @@ interface ResourceCounts {
|
|
|
11515
11515
|
distinctLocationIds?: DistinctLocationIds;
|
|
11516
11516
|
}
|
|
11517
11517
|
interface DistinctLocationIds {
|
|
11518
|
-
/** Locations ids of business locations */
|
|
11518
|
+
/** Locations ids of business locations. */
|
|
11519
11519
|
values?: string[];
|
|
11520
11520
|
}
|
|
11521
11521
|
interface ExtendedFields$5 {
|
|
@@ -11587,7 +11587,7 @@ interface GetResourceTypeResponse {
|
|
|
11587
11587
|
resourceType?: ResourceType$1;
|
|
11588
11588
|
}
|
|
11589
11589
|
interface UpdateResourceTypeRequest {
|
|
11590
|
-
/** Resource type to update.
|
|
11590
|
+
/** Resource type to update. */
|
|
11591
11591
|
resourceType: ResourceType$1;
|
|
11592
11592
|
}
|
|
11593
11593
|
interface UpdateResourceTypeResponse {
|
|
@@ -11875,24 +11875,24 @@ interface ResourceTypeUpdatedEnvelope {
|
|
|
11875
11875
|
}
|
|
11876
11876
|
interface UpdateResourceType {
|
|
11877
11877
|
/**
|
|
11878
|
-
*
|
|
11878
|
+
* Resource type ID.
|
|
11879
11879
|
* @readonly
|
|
11880
11880
|
*/
|
|
11881
11881
|
_id?: string | null;
|
|
11882
11882
|
/**
|
|
11883
|
-
*
|
|
11884
|
-
*
|
|
11885
|
-
*
|
|
11883
|
+
* Revision number, which increments by 1 each time the resource type is updated.
|
|
11884
|
+
* To prevent conflicting changes,
|
|
11885
|
+
* the current revision must be passed when updating the resource type.
|
|
11886
11886
|
* @readonly
|
|
11887
11887
|
*/
|
|
11888
11888
|
revision?: string | null;
|
|
11889
11889
|
/**
|
|
11890
|
-
* Represents the time this resource type was created.
|
|
11890
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was created.
|
|
11891
11891
|
* @readonly
|
|
11892
11892
|
*/
|
|
11893
11893
|
_createdDate?: Date | null;
|
|
11894
11894
|
/**
|
|
11895
|
-
* Represents the time this resource type was last updated.
|
|
11895
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was last updated.
|
|
11896
11896
|
* @readonly
|
|
11897
11897
|
*/
|
|
11898
11898
|
_updatedDate?: Date | null;
|
|
@@ -11960,9 +11960,7 @@ interface CountResourceTypesOptions {
|
|
|
11960
11960
|
declare function createResourceType$1(httpClient: HttpClient): CreateResourceTypeSignature;
|
|
11961
11961
|
interface CreateResourceTypeSignature {
|
|
11962
11962
|
/**
|
|
11963
|
-
* Creates a new
|
|
11964
|
-
*
|
|
11965
|
-
* By using the create API, you can create a resource type and set its name and the ID of the app it belongs to.
|
|
11963
|
+
* Creates a new resource type.
|
|
11966
11964
|
* @param - Resource type to be created.
|
|
11967
11965
|
* @returns The created resource type.
|
|
11968
11966
|
*/
|
|
@@ -11971,7 +11969,7 @@ interface CreateResourceTypeSignature {
|
|
|
11971
11969
|
declare function getResourceType$1(httpClient: HttpClient): GetResourceTypeSignature;
|
|
11972
11970
|
interface GetResourceTypeSignature {
|
|
11973
11971
|
/**
|
|
11974
|
-
* Retrieves a
|
|
11972
|
+
* Retrieves a resource type by ID.
|
|
11975
11973
|
* @param - ID of the resource type to retrieve.
|
|
11976
11974
|
* @returns The requested resource type.
|
|
11977
11975
|
*/
|
|
@@ -11980,13 +11978,11 @@ interface GetResourceTypeSignature {
|
|
|
11980
11978
|
declare function updateResourceType$1(httpClient: HttpClient): UpdateResourceTypeSignature;
|
|
11981
11979
|
interface UpdateResourceTypeSignature {
|
|
11982
11980
|
/**
|
|
11983
|
-
* Updates a
|
|
11984
|
-
*
|
|
11985
|
-
* [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported.
|
|
11981
|
+
* Updates a resource type.
|
|
11986
11982
|
*
|
|
11987
11983
|
* Each time the resource type is updated, `revision` increments by 1. You must include current revision of the resource type when updating it.
|
|
11988
11984
|
* This ensures you're working with the latest service information and prevents unintended overwrites.
|
|
11989
|
-
* @param -
|
|
11985
|
+
* @param - Resource type ID.
|
|
11990
11986
|
* @returns Updated resource type.
|
|
11991
11987
|
*/
|
|
11992
11988
|
(_id: string | null, resourceType: UpdateResourceType): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
@@ -11994,10 +11990,9 @@ interface UpdateResourceTypeSignature {
|
|
|
11994
11990
|
declare function deleteResourceType$1(httpClient: HttpClient): DeleteResourceTypeSignature;
|
|
11995
11991
|
interface DeleteResourceTypeSignature {
|
|
11996
11992
|
/**
|
|
11997
|
-
* Deletes a
|
|
11998
|
-
*
|
|
11993
|
+
* Deletes a resource type.
|
|
11999
11994
|
*
|
|
12000
|
-
* Deleting a resource type will
|
|
11995
|
+
* Deleting a resource type will automatically delete all resources of this type.
|
|
12001
11996
|
* @param - ID of the resource type to delete.
|
|
12002
11997
|
*/
|
|
12003
11998
|
(resourceTypeId: string): Promise<void>;
|
|
@@ -12005,14 +12000,22 @@ interface DeleteResourceTypeSignature {
|
|
|
12005
12000
|
declare function queryResourceTypes$1(httpClient: HttpClient): QueryResourceTypesSignature;
|
|
12006
12001
|
interface QueryResourceTypesSignature {
|
|
12007
12002
|
/**
|
|
12008
|
-
*
|
|
12003
|
+
* Creates a query to retrieve a list of resource types.
|
|
12009
12004
|
*
|
|
12010
|
-
*
|
|
12005
|
+
* The `queryResourceTypes()` function builds a query to retrieve a list of resource types and returns a `ResourceTypesQueryBuilder` object.
|
|
12011
12006
|
*
|
|
12012
|
-
*
|
|
12007
|
+
* The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-builder/find) function.
|
|
12013
12008
|
*
|
|
12014
|
-
*
|
|
12015
|
-
*
|
|
12009
|
+
* You can refine the query by chaining `ResourceTypesQueryBuilder` functions onto the query. `ResourceTypesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResourceTypes()` returns.
|
|
12010
|
+
*
|
|
12011
|
+
* `queryResourceTypes()` runs with the following `ResourceTypesQueryBuilder` default that you can override:
|
|
12012
|
+
*
|
|
12013
|
+
* + `limit` is `50`.
|
|
12014
|
+
* + Sorted by `id` in ascending order.
|
|
12015
|
+
*
|
|
12016
|
+
* The functions that are chained to `queryResourceTypes()` are applied in the order they are called.
|
|
12017
|
+
*
|
|
12018
|
+
* The following `ResourceTypesQueryBuilder` functions are supported for the `queryResourceTypes()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-result/items) property in `ResourceTypesQueryResult`.
|
|
12016
12019
|
*/
|
|
12017
12020
|
(options?: QueryResourceTypesOptions | undefined): ResourceTypesQueryBuilder;
|
|
12018
12021
|
}
|
|
@@ -12021,6 +12024,7 @@ interface CountResourceTypesSignature {
|
|
|
12021
12024
|
/**
|
|
12022
12025
|
* Counts resource types according to given criteria.
|
|
12023
12026
|
*
|
|
12027
|
+
* For field support for filters, see [Resource types: Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-type-v2/filtering-and-sorting).
|
|
12024
12028
|
* Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria.
|
|
12025
12029
|
*/
|
|
12026
12030
|
(options?: CountResourceTypesOptions | undefined): Promise<CountResourceTypesResponse & CountResourceTypesResponseNonNullableFields>;
|
|
@@ -12039,15 +12043,21 @@ declare const queryResourceTypes: MaybeContext<BuildRESTFunction<typeof queryRes
|
|
|
12039
12043
|
declare const countResourceTypes: MaybeContext<BuildRESTFunction<typeof countResourceTypes$1> & typeof countResourceTypes$1>;
|
|
12040
12044
|
|
|
12041
12045
|
type _publicOnResourceTypeCreatedType = typeof onResourceTypeCreated$1;
|
|
12042
|
-
/**
|
|
12046
|
+
/**
|
|
12047
|
+
* Triggered when a resource type is created.
|
|
12048
|
+
*/
|
|
12043
12049
|
declare const onResourceTypeCreated: ReturnType<typeof createEventModule$5<_publicOnResourceTypeCreatedType>>;
|
|
12044
12050
|
|
|
12045
12051
|
type _publicOnResourceTypeDeletedType = typeof onResourceTypeDeleted$1;
|
|
12046
|
-
/**
|
|
12052
|
+
/**
|
|
12053
|
+
* Triggered when a resource type is deleted.
|
|
12054
|
+
*/
|
|
12047
12055
|
declare const onResourceTypeDeleted: ReturnType<typeof createEventModule$5<_publicOnResourceTypeDeletedType>>;
|
|
12048
12056
|
|
|
12049
12057
|
type _publicOnResourceTypeUpdatedType = typeof onResourceTypeUpdated$1;
|
|
12050
|
-
/**
|
|
12058
|
+
/**
|
|
12059
|
+
* Triggered when a resource type is updated.
|
|
12060
|
+
*/
|
|
12051
12061
|
declare const onResourceTypeUpdated: ReturnType<typeof createEventModule$5<_publicOnResourceTypeUpdatedType>>;
|
|
12052
12062
|
|
|
12053
12063
|
type index_d$7_CountResourceTypesOptions = CountResourceTypesOptions;
|
|
@@ -7224,9 +7224,9 @@ interface Resource$3 extends ResourceCompositionDetailsOneOf$1 {
|
|
|
7224
7224
|
*/
|
|
7225
7225
|
id?: string | null;
|
|
7226
7226
|
/**
|
|
7227
|
-
* Revision number, which increments by 1 each time the
|
|
7227
|
+
* Revision number, which increments by 1 each time the resource is updated.
|
|
7228
7228
|
* To prevent conflicting changes,
|
|
7229
|
-
* the current revision must be passed when updating the
|
|
7229
|
+
* the current revision must be passed when updating the resource.
|
|
7230
7230
|
* @readonly
|
|
7231
7231
|
*/
|
|
7232
7232
|
revision?: string | null;
|
|
@@ -7580,9 +7580,9 @@ interface Resource$2 extends ResourceCompositionDetailsOneOf {
|
|
|
7580
7580
|
*/
|
|
7581
7581
|
_id?: string | null;
|
|
7582
7582
|
/**
|
|
7583
|
-
* Revision number, which increments by 1 each time the
|
|
7583
|
+
* Revision number, which increments by 1 each time the resource is updated.
|
|
7584
7584
|
* To prevent conflicting changes,
|
|
7585
|
-
* the current revision must be passed when updating the
|
|
7585
|
+
* the current revision must be passed when updating the resource.
|
|
7586
7586
|
* @readonly
|
|
7587
7587
|
*/
|
|
7588
7588
|
revision?: string | null;
|
|
@@ -7961,27 +7961,27 @@ declare namespace meta$8 {
|
|
|
7961
7961
|
export { type __PublicMethodMetaInfo$8 as __PublicMethodMetaInfo, meta$8_bulkCreateResources as bulkCreateResources, meta$8_bulkDeleteResources as bulkDeleteResources, meta$8_countResources as countResources, meta$8_createResource as createResource, meta$8_deleteResource as deleteResource, meta$8_getResource as getResource, meta$8_queryResources as queryResources, meta$8_updateResource as updateResource };
|
|
7962
7962
|
}
|
|
7963
7963
|
|
|
7964
|
-
/** A
|
|
7964
|
+
/** A resource type is a classification of resources, e.g. room, equipment or vehicle. */
|
|
7965
7965
|
interface ResourceType$1 {
|
|
7966
7966
|
/**
|
|
7967
|
-
*
|
|
7967
|
+
* Resource type ID.
|
|
7968
7968
|
* @readonly
|
|
7969
7969
|
*/
|
|
7970
7970
|
id?: string | null;
|
|
7971
7971
|
/**
|
|
7972
|
-
*
|
|
7973
|
-
*
|
|
7974
|
-
*
|
|
7972
|
+
* Revision number, which increments by 1 each time the resource type is updated.
|
|
7973
|
+
* To prevent conflicting changes,
|
|
7974
|
+
* the current revision must be passed when updating the resource type.
|
|
7975
7975
|
* @readonly
|
|
7976
7976
|
*/
|
|
7977
7977
|
revision?: string | null;
|
|
7978
7978
|
/**
|
|
7979
|
-
* Represents the time this resource type was created.
|
|
7979
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was created.
|
|
7980
7980
|
* @readonly
|
|
7981
7981
|
*/
|
|
7982
7982
|
createdDate?: Date | null;
|
|
7983
7983
|
/**
|
|
7984
|
-
* Represents the time this resource type was last updated.
|
|
7984
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was last updated.
|
|
7985
7985
|
* @readonly
|
|
7986
7986
|
*/
|
|
7987
7987
|
updatedDate?: Date | null;
|
|
@@ -8023,7 +8023,7 @@ interface GetResourceTypeResponse$1 {
|
|
|
8023
8023
|
resourceType?: ResourceType$1;
|
|
8024
8024
|
}
|
|
8025
8025
|
interface UpdateResourceTypeRequest$1 {
|
|
8026
|
-
/** Resource type to update.
|
|
8026
|
+
/** Resource type to update. */
|
|
8027
8027
|
resourceType: ResourceType$1;
|
|
8028
8028
|
}
|
|
8029
8029
|
interface UpdateResourceTypeResponse$1 {
|
|
@@ -8143,27 +8143,27 @@ interface CountResourceTypesResponseNonNullableFields$1 {
|
|
|
8143
8143
|
count: number;
|
|
8144
8144
|
}
|
|
8145
8145
|
|
|
8146
|
-
/** A
|
|
8146
|
+
/** A resource type is a classification of resources, e.g. room, equipment or vehicle. */
|
|
8147
8147
|
interface ResourceType {
|
|
8148
8148
|
/**
|
|
8149
|
-
*
|
|
8149
|
+
* Resource type ID.
|
|
8150
8150
|
* @readonly
|
|
8151
8151
|
*/
|
|
8152
8152
|
_id?: string | null;
|
|
8153
8153
|
/**
|
|
8154
|
-
*
|
|
8155
|
-
*
|
|
8156
|
-
*
|
|
8154
|
+
* Revision number, which increments by 1 each time the resource type is updated.
|
|
8155
|
+
* To prevent conflicting changes,
|
|
8156
|
+
* the current revision must be passed when updating the resource type.
|
|
8157
8157
|
* @readonly
|
|
8158
8158
|
*/
|
|
8159
8159
|
revision?: string | null;
|
|
8160
8160
|
/**
|
|
8161
|
-
* Represents the time this resource type was created.
|
|
8161
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was created.
|
|
8162
8162
|
* @readonly
|
|
8163
8163
|
*/
|
|
8164
8164
|
_createdDate?: Date | null;
|
|
8165
8165
|
/**
|
|
8166
|
-
* Represents the time this resource type was last updated.
|
|
8166
|
+
* Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was last updated.
|
|
8167
8167
|
* @readonly
|
|
8168
8168
|
*/
|
|
8169
8169
|
_updatedDate?: Date | null;
|
|
@@ -8205,7 +8205,7 @@ interface GetResourceTypeResponse {
|
|
|
8205
8205
|
resourceType?: ResourceType;
|
|
8206
8206
|
}
|
|
8207
8207
|
interface UpdateResourceTypeRequest {
|
|
8208
|
-
/** Resource type to update.
|
|
8208
|
+
/** Resource type to update. */
|
|
8209
8209
|
resourceType: ResourceType;
|
|
8210
8210
|
}
|
|
8211
8211
|
interface UpdateResourceTypeResponse {
|