@wix/bookings 1.0.472 → 1.0.474
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.474",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@wix/bookings_attendance": "1.0.56",
|
|
25
25
|
"@wix/bookings_availability-calendar": "1.0.44",
|
|
26
26
|
"@wix/bookings_availability-time-slots": "1.0.37",
|
|
27
|
-
"@wix/bookings_booking-fees": "1.0.
|
|
27
|
+
"@wix/bookings_booking-fees": "1.0.10",
|
|
28
28
|
"@wix/bookings_booking-policies": "1.0.9",
|
|
29
29
|
"@wix/bookings_booking-policy-snapshots": "1.0.7",
|
|
30
30
|
"@wix/bookings_bookings": "1.0.64",
|
|
@@ -33,7 +33,7 @@
|
|
|
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.
|
|
36
|
+
"@wix/bookings_resource-types": "1.0.11",
|
|
37
37
|
"@wix/bookings_resources": "1.0.52",
|
|
38
38
|
"@wix/bookings_service-options-and-variants": "1.0.53",
|
|
39
39
|
"@wix/bookings_services": "1.0.77",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"fqdn": ""
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
"falconPackageHash": "
|
|
65
|
+
"falconPackageHash": "d99e79937674e6819de2fa557338802e7bad25cdad2a80bec8a5e9ce"
|
|
66
66
|
}
|
|
@@ -7560,10 +7560,7 @@ interface ApplyBookingFeesToOrderRequest {
|
|
|
7560
7560
|
priceOverride?: Money$3;
|
|
7561
7561
|
/**
|
|
7562
7562
|
* Information about the message to the business and whether to send it if the
|
|
7563
|
-
* booking fee application to the eCommerce order fails.
|
|
7564
|
-
* couldn't be applied to the same eCommerce order, multiple Failed To Apply Booking
|
|
7565
|
-
* Fee To Order events are triggered. But only one of these events includes the
|
|
7566
|
-
* `businessNotification`.
|
|
7563
|
+
* booking fee application to the eCommerce order fails.
|
|
7567
7564
|
*/
|
|
7568
7565
|
businessNotification?: BusinessNotification;
|
|
7569
7566
|
}
|
|
@@ -7756,10 +7753,7 @@ interface ApplyBookingFeesToOrderOptions {
|
|
|
7756
7753
|
priceOverride?: Money$3;
|
|
7757
7754
|
/**
|
|
7758
7755
|
* Information about the message to the business and whether to send it if the
|
|
7759
|
-
* booking fee application to the eCommerce order fails.
|
|
7760
|
-
* couldn't be applied to the same eCommerce order, multiple Failed To Apply Booking
|
|
7761
|
-
* Fee To Order events are triggered. But only one of these events includes the
|
|
7762
|
-
* `businessNotification`.
|
|
7756
|
+
* booking fee application to the eCommerce order fails.
|
|
7763
7757
|
*/
|
|
7764
7758
|
businessNotification?: BusinessNotification;
|
|
7765
7759
|
}
|
|
@@ -7830,9 +7824,7 @@ interface ApplyBookingFeesToOrderSignature {
|
|
|
7830
7824
|
*
|
|
7831
7825
|
* If you apply multiple booking fees to an eCommerce order, they either all fail or
|
|
7832
7826
|
* all succeed together. For example, the call fails if the booking fees are associated
|
|
7833
|
-
* with different eCommmerce orders.
|
|
7834
|
-
* [onFailedToApplyBookingFeeToOrder()](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-fees/on-failed-to-apply-booking-fee-to-order)
|
|
7835
|
-
* is triggered multiple times, once for each individual fee.
|
|
7827
|
+
* with different eCommmerce orders.
|
|
7836
7828
|
* @param - IDs of the bookings for which to apply booking fees to an eCommerce order.
|
|
7837
7829
|
* @param - Options to use when applying booking fees to an eCommerce order.
|
|
7838
7830
|
*/
|
|
@@ -7854,9 +7846,7 @@ interface CollectAppliedBookingFeesSignature {
|
|
|
7854
7846
|
* </blockquote>
|
|
7855
7847
|
*
|
|
7856
7848
|
* An HTTP status of `200` means that all booking fees were successfully collected.
|
|
7857
|
-
* Any other HTPP status means that collection failed.
|
|
7858
|
-
* [onFailedToCollectAppliedBookingFees()](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-fees/on-failed-to-collect-applied-booking-fees)
|
|
7859
|
-
* is also triggered.
|
|
7849
|
+
* Any other HTPP status means that collection failed.
|
|
7860
7850
|
*
|
|
7861
7851
|
* Collects the order's `additionalFees.price.amount` that's related to the
|
|
7862
7852
|
* booking fees. If there are multiple additional fees on the eCommerce order,
|
|
@@ -10945,10 +10935,10 @@ declare namespace context$8 {
|
|
|
10945
10935
|
export { type ActionEvent$6 as ActionEvent, type Aggregation$1 as Aggregation, type AggregationData$2 as AggregationData, type AggregationKindOneOf$1 as AggregationKindOneOf, type AggregationResults$2 as AggregationResults, type AggregationResultsResultOneOf$2 as AggregationResultsResultOneOf, type AggregationResultsScalarResult$1 as AggregationResultsScalarResult, AggregationType$2 as AggregationType, type ApplicationError$3 as ApplicationError, type Asset$1 as Asset, type BaseEventMetadata$6 as BaseEventMetadata, type BulkActionMetadata$3 as BulkActionMetadata, type context$8_BulkCreateResourcesOptions as BulkCreateResourcesOptions, type context$8_BulkCreateResourcesRequest as BulkCreateResourcesRequest, type context$8_BulkCreateResourcesResponse as BulkCreateResourcesResponse, type context$8_BulkCreateResourcesResponseNonNullableFields as BulkCreateResourcesResponseNonNullableFields, type context$8_BulkDeleteResourcesRequest as BulkDeleteResourcesRequest, type context$8_BulkDeleteResourcesResponse as BulkDeleteResourcesResponse, type context$8_BulkDeleteResourcesResponseNonNullableFields as BulkDeleteResourcesResponseNonNullableFields, type context$8_BulkResourceResult as BulkResourceResult, type BusinessLocation$2 as BusinessLocation, type context$8_CountResourcesRequest as CountResourcesRequest, type context$8_CountResourcesResponse as CountResourcesResponse, type context$8_CreateResourceRequest as CreateResourceRequest, type context$8_CreateResourceResponse as CreateResourceResponse, type context$8_CreateResourceResponseNonNullableFields as CreateResourceResponseNonNullableFields, type CursorPaging$6 as CursorPaging, type CursorPagingMetadata$5 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type CursorSearch$2 as CursorSearch, type CursorSearchPagingMethodOneOf$2 as CursorSearchPagingMethodOneOf, type Cursors$6 as Cursors, type DateHistogramAggregation$1 as DateHistogramAggregation, type DateHistogramResult$1 as DateHistogramResult, type DateHistogramResults$1 as DateHistogramResults, type DeleteContext$1 as DeleteContext, type context$8_DeleteResourceRequest as DeleteResourceRequest, type context$8_DeleteResourceResponse as DeleteResourceResponse, DeleteStatus$1 as DeleteStatus, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type context$8_EventsSchedule as EventsSchedule, type ExtendedFields$6 as ExtendedFields, type context$8_FixResourceSchedulesRequest as FixResourceSchedulesRequest, type context$8_FixResourceSchedulesResponse as FixResourceSchedulesResponse, type context$8_GetDeletedResourceRequest as GetDeletedResourceRequest, type context$8_GetDeletedResourceResponse as GetDeletedResourceResponse, type context$8_GetResourceRequest as GetResourceRequest, type context$8_GetResourceResponse as GetResourceResponse, type context$8_GetResourceResponseNonNullableFields as GetResourceResponseNonNullableFields, type GroupByAggregation$1 as GroupByAggregation, type GroupByAggregationKindOneOf$1 as GroupByAggregationKindOneOf, type GroupByValueResults$2 as GroupByValueResults, type IdentificationData$8 as IdentificationData, type IdentificationDataIdOneOf$8 as IdentificationDataIdOneOf, type context$8_ImportResourceRequest as ImportResourceRequest, type context$8_ImportResourceResponse as ImportResourceResponse, type IncludeMissingValuesOptions$1 as IncludeMissingValuesOptions, Interval$2 as Interval, type ItemMetadata$3 as ItemMetadata, type context$8_ListDeletedResourcesRequest as ListDeletedResourcesRequest, type context$8_ListDeletedResourcesResponse as ListDeletedResourcesResponse, type LocationOptions$1 as LocationOptions, context$8_ManagementType as ManagementType, type MessageEnvelope$7 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, MissingValues$1 as MissingValues, Mode$2 as Mode, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type NestedAggregation$1 as NestedAggregation, type NestedAggregationItem$1 as NestedAggregationItem, type NestedAggregationItemKindOneOf$1 as NestedAggregationItemKindOneOf, type NestedAggregationResults$2 as NestedAggregationResults, type NestedAggregationResultsResultOneOf$2 as NestedAggregationResultsResultOneOf, NestedAggregationType$1 as NestedAggregationType, type NestedResultValue$1 as NestedResultValue, type NestedResultValueResultOneOf$1 as NestedResultValueResultOneOf, type NestedResults$1 as NestedResults, type NestedValueAggregationResult$2 as NestedValueAggregationResult, type context$8_QueryResourcesRequest as QueryResourcesRequest, type context$8_QueryResourcesResponse as QueryResourcesResponse, type context$8_QueryResourcesResponseNonNullableFields as QueryResourcesResponseNonNullableFields, type RangeAggregation$1 as RangeAggregation, type RangeAggregationResult$2 as RangeAggregationResult, type RangeBucket$1 as RangeBucket, type RangeResult$1 as RangeResult, type RangeResults$2 as RangeResults, type context$8_ReindexTenantRequest as ReindexTenantRequest, type context$8_ReindexTenantResponse as ReindexTenantResponse, type context$8_RemoveResourceFromTrashBinRequest as RemoveResourceFromTrashBinRequest, type context$8_RemoveResourceFromTrashBinResponse as RemoveResourceFromTrashBinResponse, type Resource$2 as Resource, type context$8_ResourceCompositionDetailsOneOf as ResourceCompositionDetailsOneOf, type context$8_ResourceCreatedEnvelope as ResourceCreatedEnvelope, type context$8_ResourceDeletedEnvelope as ResourceDeletedEnvelope, type ResourceNonNullableFields$1 as ResourceNonNullableFields, type context$8_ResourceUpdatedEnvelope as ResourceUpdatedEnvelope, type context$8_ResourcesQueryBuilder as ResourcesQueryBuilder, type context$8_ResourcesQueryResult as ResourcesQueryResult, type RestoreInfo$6 as RestoreInfo, type context$8_RestoreResourceFromTrashBinRequest as RestoreResourceFromTrashBinRequest, type context$8_RestoreResourceFromTrashBinResponse as RestoreResourceFromTrashBinResponse, type Results$1 as Results, type ScalarAggregation$1 as ScalarAggregation, type ScalarResult$2 as ScalarResult, ScalarType$2 as ScalarType, type Schedule$2 as Schedule, type SearchDetails$2 as SearchDetails, type context$8_SearchResourcesRequest as SearchResourcesRequest, type context$8_SearchResourcesResponse as SearchResourcesResponse, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type context$8_SingleResource as SingleResource, type SiteCreated$3 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortDirection$1 as SortDirection, SortOrder$6 as SortOrder, SortType$1 as SortType, type Sorting$6 as Sorting, type SpecificLocation$1 as SpecificLocation, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type context$8_UpdateResource as UpdateResource, type context$8_UpdateResourceRequest as UpdateResourceRequest, type context$8_UpdateResourceResponse as UpdateResourceResponse, type context$8_UpdateResourceResponseNonNullableFields as UpdateResourceResponseNonNullableFields, type context$8_V2WorkingHoursSchedules as V2WorkingHoursSchedules, type ValueAggregation$1 as ValueAggregation, type ValueAggregationOptionsOneOf$1 as ValueAggregationOptionsOneOf, type ValueAggregationResult$2 as ValueAggregationResult, type ValueResult$1 as ValueResult, type ValueResults$2 as ValueResults, WebhookIdentityType$7 as WebhookIdentityType, type WorkingHoursSchedule$1 as WorkingHoursSchedule, type context$8_WorkingHoursSchedules as WorkingHoursSchedules, type context$8__publicOnResourceCreatedType as _publicOnResourceCreatedType, type context$8__publicOnResourceDeletedType as _publicOnResourceDeletedType, type context$8__publicOnResourceUpdatedType as _publicOnResourceUpdatedType, context$8_bulkCreateResources as bulkCreateResources, context$8_bulkDeleteResources as bulkDeleteResources, context$8_createResource as createResource, context$8_deleteResource as deleteResource, context$8_getResource as getResource, context$8_onResourceCreated as onResourceCreated, context$8_onResourceDeleted as onResourceDeleted, context$8_onResourceUpdated as onResourceUpdated, onResourceCreated$1 as publicOnResourceCreated, onResourceDeleted$1 as publicOnResourceDeleted, onResourceUpdated$1 as publicOnResourceUpdated, context$8_queryResources as queryResources, context$8_updateResource as updateResource };
|
|
10946
10936
|
}
|
|
10947
10937
|
|
|
10948
|
-
/** A ResourceType is a classification of resources, e.g.
|
|
10938
|
+
/** A ResourceType is a classification of resources, e.g. room, equipment or vehicle. */
|
|
10949
10939
|
interface ResourceType$1 {
|
|
10950
10940
|
/**
|
|
10951
|
-
*
|
|
10941
|
+
* ResourceType ID.
|
|
10952
10942
|
* @readonly
|
|
10953
10943
|
*/
|
|
10954
10944
|
_id?: string | null;
|
|
@@ -10969,7 +10959,7 @@ interface ResourceType$1 {
|
|
|
10969
10959
|
* @readonly
|
|
10970
10960
|
*/
|
|
10971
10961
|
_updatedDate?: Date | null;
|
|
10972
|
-
/** The name of this resource type
|
|
10962
|
+
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
10973
10963
|
name?: string | null;
|
|
10974
10964
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
10975
10965
|
appId?: string | null;
|
|
@@ -11024,7 +11014,7 @@ interface ExtendedFields$5 {
|
|
|
11024
11014
|
namespaces?: Record<string, Record<string, any>>;
|
|
11025
11015
|
}
|
|
11026
11016
|
interface CreateResourceTypeRequest {
|
|
11027
|
-
/**
|
|
11017
|
+
/** Resource type to be created. */
|
|
11028
11018
|
resourceType: ResourceType$1;
|
|
11029
11019
|
}
|
|
11030
11020
|
interface LocationOptions {
|
|
@@ -11063,7 +11053,7 @@ declare enum RequestedFields$2 {
|
|
|
11063
11053
|
DISTINCT_RESOURCE_LOCATIONS = "DISTINCT_RESOURCE_LOCATIONS"
|
|
11064
11054
|
}
|
|
11065
11055
|
interface CreateResourceTypeResponse {
|
|
11066
|
-
/** The created
|
|
11056
|
+
/** The created resource type. */
|
|
11067
11057
|
resourceType?: ResourceType$1;
|
|
11068
11058
|
}
|
|
11069
11059
|
declare enum CreateResourceTypeErrors {
|
|
@@ -11072,23 +11062,23 @@ declare enum CreateResourceTypeErrors {
|
|
|
11072
11062
|
FAILED_TO_CREATE_RESOURCES = "FAILED_TO_CREATE_RESOURCES"
|
|
11073
11063
|
}
|
|
11074
11064
|
interface GetResourceTypeRequest {
|
|
11075
|
-
/**
|
|
11065
|
+
/** ID of the resource type to retrieve. */
|
|
11076
11066
|
resourceTypeId: string;
|
|
11077
11067
|
}
|
|
11078
11068
|
interface GetResourceTypeResponse {
|
|
11079
|
-
/** The requested
|
|
11069
|
+
/** The requested resource type. */
|
|
11080
11070
|
resourceType?: ResourceType$1;
|
|
11081
11071
|
}
|
|
11082
11072
|
interface UpdateResourceTypeRequest {
|
|
11083
|
-
/**
|
|
11073
|
+
/** Resource type to update. [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported. */
|
|
11084
11074
|
resourceType: ResourceType$1;
|
|
11085
11075
|
}
|
|
11086
11076
|
interface UpdateResourceTypeResponse {
|
|
11087
|
-
/** Updated
|
|
11077
|
+
/** Updated resource type. */
|
|
11088
11078
|
resourceType?: ResourceType$1;
|
|
11089
11079
|
}
|
|
11090
11080
|
interface DeleteResourceTypeRequest {
|
|
11091
|
-
/**
|
|
11081
|
+
/** ID of the resource type to delete. */
|
|
11092
11082
|
resourceTypeId: string;
|
|
11093
11083
|
}
|
|
11094
11084
|
interface DeleteResourceTypeResponse {
|
|
@@ -11143,9 +11133,9 @@ interface CursorPaging$5 {
|
|
|
11143
11133
|
cursor?: string | null;
|
|
11144
11134
|
}
|
|
11145
11135
|
interface QueryResourceTypesResponse {
|
|
11146
|
-
/**
|
|
11136
|
+
/** The retrieved resource types. */
|
|
11147
11137
|
resourceTypes?: ResourceType$1[];
|
|
11148
|
-
/** Paging metadata */
|
|
11138
|
+
/** Paging metadata, including offset and count. */
|
|
11149
11139
|
pagingMetadata?: CursorPagingMetadata$4;
|
|
11150
11140
|
}
|
|
11151
11141
|
interface CursorPagingMetadata$4 {
|
|
@@ -11167,7 +11157,7 @@ interface Cursors$5 {
|
|
|
11167
11157
|
prev?: string | null;
|
|
11168
11158
|
}
|
|
11169
11159
|
interface CountResourceTypesRequest {
|
|
11170
|
-
/**
|
|
11160
|
+
/** Filter to apply on resource types to count. */
|
|
11171
11161
|
filter?: Record<string, any> | null;
|
|
11172
11162
|
}
|
|
11173
11163
|
interface CountResourceTypesResponse {
|
|
@@ -11365,7 +11355,7 @@ interface ResourceTypeDeletedEnvelope {
|
|
|
11365
11355
|
}
|
|
11366
11356
|
interface UpdateResourceType {
|
|
11367
11357
|
/**
|
|
11368
|
-
*
|
|
11358
|
+
* ResourceType ID.
|
|
11369
11359
|
* @readonly
|
|
11370
11360
|
*/
|
|
11371
11361
|
_id?: string | null;
|
|
@@ -11386,7 +11376,7 @@ interface UpdateResourceType {
|
|
|
11386
11376
|
* @readonly
|
|
11387
11377
|
*/
|
|
11388
11378
|
_updatedDate?: Date | null;
|
|
11389
|
-
/** The name of this resource type
|
|
11379
|
+
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
11390
11380
|
name?: string | null;
|
|
11391
11381
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
11392
11382
|
appId?: string | null;
|
|
@@ -11448,25 +11438,20 @@ interface ResourceTypesQueryBuilder {
|
|
|
11448
11438
|
declare function createResourceType$1(httpClient: HttpClient): CreateResourceTypeSignature;
|
|
11449
11439
|
interface CreateResourceTypeSignature {
|
|
11450
11440
|
/**
|
|
11451
|
-
* Creates a new ResourceType
|
|
11452
|
-
* Each resource will be constructed as follows:
|
|
11453
|
-
* - The name is the name of the resource type followed by a sequence number.
|
|
11454
|
-
* - The location will be provided by the client
|
|
11455
|
-
* - A schedule will be created to manage the EVENT sessions in which the resource will be used.
|
|
11456
|
-
* - No tag will be assigned to the resource.
|
|
11441
|
+
* Creates a new ResourceType.
|
|
11457
11442
|
*
|
|
11458
|
-
*
|
|
11459
|
-
* @param -
|
|
11460
|
-
* @returns The created
|
|
11443
|
+
* By using the create API, you can create a resource type and set its name and the ID of the app it belongs to.
|
|
11444
|
+
* @param - Resource type to be created.
|
|
11445
|
+
* @returns The created resource type.
|
|
11461
11446
|
*/
|
|
11462
11447
|
(resourceType: ResourceType$1): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11463
11448
|
}
|
|
11464
11449
|
declare function getResourceType$1(httpClient: HttpClient): GetResourceTypeSignature;
|
|
11465
11450
|
interface GetResourceTypeSignature {
|
|
11466
11451
|
/**
|
|
11467
|
-
* Retrieves a ResourceType.
|
|
11468
|
-
* @param -
|
|
11469
|
-
* @returns The requested
|
|
11452
|
+
* Retrieves a ResourceType by ID.
|
|
11453
|
+
* @param - ID of the resource type to retrieve.
|
|
11454
|
+
* @returns The requested resource type.
|
|
11470
11455
|
*/
|
|
11471
11456
|
(resourceTypeId: string): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11472
11457
|
}
|
|
@@ -11475,32 +11460,29 @@ interface UpdateResourceTypeSignature {
|
|
|
11475
11460
|
/**
|
|
11476
11461
|
* Updates a ResourceType.
|
|
11477
11462
|
*
|
|
11463
|
+
* [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported.
|
|
11478
11464
|
*
|
|
11479
|
-
* Each time the
|
|
11480
|
-
*
|
|
11481
|
-
*
|
|
11482
|
-
*
|
|
11483
|
-
* and prevents unintended overwrites.
|
|
11484
|
-
* @param - The unique ID of this resource type
|
|
11485
|
-
* @returns Updated ResourceType.
|
|
11465
|
+
* Each time the resource type is updated, `revision` increments by 1. You must include current revision of the resource type when updating it.
|
|
11466
|
+
* This ensures you're working with the latest service information and prevents unintended overwrites.
|
|
11467
|
+
* @param - ResourceType ID.
|
|
11468
|
+
* @returns Updated resource type.
|
|
11486
11469
|
*/
|
|
11487
11470
|
(_id: string | null, resourceType: UpdateResourceType): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11488
11471
|
}
|
|
11489
11472
|
declare function deleteResourceType$1(httpClient: HttpClient): DeleteResourceTypeSignature;
|
|
11490
11473
|
interface DeleteResourceTypeSignature {
|
|
11491
11474
|
/**
|
|
11492
|
-
*
|
|
11493
|
-
*
|
|
11494
|
-
* @param - Id of the ResourceType to delete.
|
|
11475
|
+
* Deletes a ResourceType.
|
|
11476
|
+
* @param - ID of the resource type to delete.
|
|
11495
11477
|
*/
|
|
11496
11478
|
(resourceTypeId: string): Promise<void>;
|
|
11497
11479
|
}
|
|
11498
11480
|
declare function queryResourceTypes$1(httpClient: HttpClient): QueryResourceTypesSignature;
|
|
11499
11481
|
interface QueryResourceTypesSignature {
|
|
11500
11482
|
/**
|
|
11501
|
-
*
|
|
11483
|
+
* Queries resource types, given the provided [paging, filtering, and sorting][1].
|
|
11502
11484
|
*
|
|
11503
|
-
* Up to 100
|
|
11485
|
+
* Up to 100 resource types can be returned per request.
|
|
11504
11486
|
*
|
|
11505
11487
|
* To learn how to query ResourceTypes, see [API Query Language][2].
|
|
11506
11488
|
*
|
|
@@ -7560,10 +7560,7 @@ interface ApplyBookingFeesToOrderRequest {
|
|
|
7560
7560
|
priceOverride?: Money$3;
|
|
7561
7561
|
/**
|
|
7562
7562
|
* Information about the message to the business and whether to send it if the
|
|
7563
|
-
* booking fee application to the eCommerce order fails.
|
|
7564
|
-
* couldn't be applied to the same eCommerce order, multiple Failed To Apply Booking
|
|
7565
|
-
* Fee To Order events are triggered. But only one of these events includes the
|
|
7566
|
-
* `businessNotification`.
|
|
7563
|
+
* booking fee application to the eCommerce order fails.
|
|
7567
7564
|
*/
|
|
7568
7565
|
businessNotification?: BusinessNotification;
|
|
7569
7566
|
}
|
|
@@ -7756,10 +7753,7 @@ interface ApplyBookingFeesToOrderOptions {
|
|
|
7756
7753
|
priceOverride?: Money$3;
|
|
7757
7754
|
/**
|
|
7758
7755
|
* Information about the message to the business and whether to send it if the
|
|
7759
|
-
* booking fee application to the eCommerce order fails.
|
|
7760
|
-
* couldn't be applied to the same eCommerce order, multiple Failed To Apply Booking
|
|
7761
|
-
* Fee To Order events are triggered. But only one of these events includes the
|
|
7762
|
-
* `businessNotification`.
|
|
7756
|
+
* booking fee application to the eCommerce order fails.
|
|
7763
7757
|
*/
|
|
7764
7758
|
businessNotification?: BusinessNotification;
|
|
7765
7759
|
}
|
|
@@ -7830,9 +7824,7 @@ interface ApplyBookingFeesToOrderSignature {
|
|
|
7830
7824
|
*
|
|
7831
7825
|
* If you apply multiple booking fees to an eCommerce order, they either all fail or
|
|
7832
7826
|
* all succeed together. For example, the call fails if the booking fees are associated
|
|
7833
|
-
* with different eCommmerce orders.
|
|
7834
|
-
* [onFailedToApplyBookingFeeToOrder()](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-fees/on-failed-to-apply-booking-fee-to-order)
|
|
7835
|
-
* is triggered multiple times, once for each individual fee.
|
|
7827
|
+
* with different eCommmerce orders.
|
|
7836
7828
|
* @param - IDs of the bookings for which to apply booking fees to an eCommerce order.
|
|
7837
7829
|
* @param - Options to use when applying booking fees to an eCommerce order.
|
|
7838
7830
|
*/
|
|
@@ -7854,9 +7846,7 @@ interface CollectAppliedBookingFeesSignature {
|
|
|
7854
7846
|
* </blockquote>
|
|
7855
7847
|
*
|
|
7856
7848
|
* An HTTP status of `200` means that all booking fees were successfully collected.
|
|
7857
|
-
* Any other HTPP status means that collection failed.
|
|
7858
|
-
* [onFailedToCollectAppliedBookingFees()](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-fees/on-failed-to-collect-applied-booking-fees)
|
|
7859
|
-
* is also triggered.
|
|
7849
|
+
* Any other HTPP status means that collection failed.
|
|
7860
7850
|
*
|
|
7861
7851
|
* Collects the order's `additionalFees.price.amount` that's related to the
|
|
7862
7852
|
* booking fees. If there are multiple additional fees on the eCommerce order,
|
|
@@ -10945,10 +10935,10 @@ declare namespace index_d$8 {
|
|
|
10945
10935
|
export { type ActionEvent$6 as ActionEvent, type Aggregation$1 as Aggregation, type AggregationData$2 as AggregationData, type AggregationKindOneOf$1 as AggregationKindOneOf, type AggregationResults$2 as AggregationResults, type AggregationResultsResultOneOf$2 as AggregationResultsResultOneOf, type AggregationResultsScalarResult$1 as AggregationResultsScalarResult, AggregationType$2 as AggregationType, type ApplicationError$3 as ApplicationError, type Asset$1 as Asset, type BaseEventMetadata$6 as BaseEventMetadata, type BulkActionMetadata$3 as BulkActionMetadata, type index_d$8_BulkCreateResourcesOptions as BulkCreateResourcesOptions, type index_d$8_BulkCreateResourcesRequest as BulkCreateResourcesRequest, type index_d$8_BulkCreateResourcesResponse as BulkCreateResourcesResponse, type index_d$8_BulkCreateResourcesResponseNonNullableFields as BulkCreateResourcesResponseNonNullableFields, type index_d$8_BulkDeleteResourcesRequest as BulkDeleteResourcesRequest, type index_d$8_BulkDeleteResourcesResponse as BulkDeleteResourcesResponse, type index_d$8_BulkDeleteResourcesResponseNonNullableFields as BulkDeleteResourcesResponseNonNullableFields, type index_d$8_BulkResourceResult as BulkResourceResult, type BusinessLocation$2 as BusinessLocation, type index_d$8_CountResourcesRequest as CountResourcesRequest, type index_d$8_CountResourcesResponse as CountResourcesResponse, type index_d$8_CreateResourceRequest as CreateResourceRequest, type index_d$8_CreateResourceResponse as CreateResourceResponse, type index_d$8_CreateResourceResponseNonNullableFields as CreateResourceResponseNonNullableFields, type CursorPaging$6 as CursorPaging, type CursorPagingMetadata$5 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type CursorSearch$2 as CursorSearch, type CursorSearchPagingMethodOneOf$2 as CursorSearchPagingMethodOneOf, type Cursors$6 as Cursors, type DateHistogramAggregation$1 as DateHistogramAggregation, type DateHistogramResult$1 as DateHistogramResult, type DateHistogramResults$1 as DateHistogramResults, type DeleteContext$1 as DeleteContext, type index_d$8_DeleteResourceRequest as DeleteResourceRequest, type index_d$8_DeleteResourceResponse as DeleteResourceResponse, DeleteStatus$1 as DeleteStatus, type DomainEvent$6 as DomainEvent, type DomainEventBodyOneOf$6 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$6 as EntityCreatedEvent, type EntityDeletedEvent$6 as EntityDeletedEvent, type EntityUpdatedEvent$6 as EntityUpdatedEvent, type EventMetadata$5 as EventMetadata, type index_d$8_EventsSchedule as EventsSchedule, type ExtendedFields$6 as ExtendedFields, type index_d$8_FixResourceSchedulesRequest as FixResourceSchedulesRequest, type index_d$8_FixResourceSchedulesResponse as FixResourceSchedulesResponse, type index_d$8_GetDeletedResourceRequest as GetDeletedResourceRequest, type index_d$8_GetDeletedResourceResponse as GetDeletedResourceResponse, type index_d$8_GetResourceRequest as GetResourceRequest, type index_d$8_GetResourceResponse as GetResourceResponse, type index_d$8_GetResourceResponseNonNullableFields as GetResourceResponseNonNullableFields, type GroupByAggregation$1 as GroupByAggregation, type GroupByAggregationKindOneOf$1 as GroupByAggregationKindOneOf, type GroupByValueResults$2 as GroupByValueResults, type IdentificationData$8 as IdentificationData, type IdentificationDataIdOneOf$8 as IdentificationDataIdOneOf, type index_d$8_ImportResourceRequest as ImportResourceRequest, type index_d$8_ImportResourceResponse as ImportResourceResponse, type IncludeMissingValuesOptions$1 as IncludeMissingValuesOptions, Interval$2 as Interval, type ItemMetadata$3 as ItemMetadata, type index_d$8_ListDeletedResourcesRequest as ListDeletedResourcesRequest, type index_d$8_ListDeletedResourcesResponse as ListDeletedResourcesResponse, type LocationOptions$1 as LocationOptions, index_d$8_ManagementType as ManagementType, type MessageEnvelope$7 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, MissingValues$1 as MissingValues, Mode$2 as Mode, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type NestedAggregation$1 as NestedAggregation, type NestedAggregationItem$1 as NestedAggregationItem, type NestedAggregationItemKindOneOf$1 as NestedAggregationItemKindOneOf, type NestedAggregationResults$2 as NestedAggregationResults, type NestedAggregationResultsResultOneOf$2 as NestedAggregationResultsResultOneOf, NestedAggregationType$1 as NestedAggregationType, type NestedResultValue$1 as NestedResultValue, type NestedResultValueResultOneOf$1 as NestedResultValueResultOneOf, type NestedResults$1 as NestedResults, type NestedValueAggregationResult$2 as NestedValueAggregationResult, type index_d$8_QueryResourcesRequest as QueryResourcesRequest, type index_d$8_QueryResourcesResponse as QueryResourcesResponse, type index_d$8_QueryResourcesResponseNonNullableFields as QueryResourcesResponseNonNullableFields, type RangeAggregation$1 as RangeAggregation, type RangeAggregationResult$2 as RangeAggregationResult, type RangeBucket$1 as RangeBucket, type RangeResult$1 as RangeResult, type RangeResults$2 as RangeResults, type index_d$8_ReindexTenantRequest as ReindexTenantRequest, type index_d$8_ReindexTenantResponse as ReindexTenantResponse, type index_d$8_RemoveResourceFromTrashBinRequest as RemoveResourceFromTrashBinRequest, type index_d$8_RemoveResourceFromTrashBinResponse as RemoveResourceFromTrashBinResponse, type Resource$2 as Resource, type index_d$8_ResourceCompositionDetailsOneOf as ResourceCompositionDetailsOneOf, type index_d$8_ResourceCreatedEnvelope as ResourceCreatedEnvelope, type index_d$8_ResourceDeletedEnvelope as ResourceDeletedEnvelope, type ResourceNonNullableFields$1 as ResourceNonNullableFields, type index_d$8_ResourceUpdatedEnvelope as ResourceUpdatedEnvelope, type index_d$8_ResourcesQueryBuilder as ResourcesQueryBuilder, type index_d$8_ResourcesQueryResult as ResourcesQueryResult, type RestoreInfo$6 as RestoreInfo, type index_d$8_RestoreResourceFromTrashBinRequest as RestoreResourceFromTrashBinRequest, type index_d$8_RestoreResourceFromTrashBinResponse as RestoreResourceFromTrashBinResponse, type Results$1 as Results, type ScalarAggregation$1 as ScalarAggregation, type ScalarResult$2 as ScalarResult, ScalarType$2 as ScalarType, type Schedule$2 as Schedule, type SearchDetails$2 as SearchDetails, type index_d$8_SearchResourcesRequest as SearchResourcesRequest, type index_d$8_SearchResourcesResponse as SearchResourcesResponse, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type index_d$8_SingleResource as SingleResource, type SiteCreated$3 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortDirection$1 as SortDirection, SortOrder$6 as SortOrder, SortType$1 as SortType, type Sorting$6 as Sorting, type SpecificLocation$1 as SpecificLocation, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type index_d$8_UpdateResource as UpdateResource, type index_d$8_UpdateResourceRequest as UpdateResourceRequest, type index_d$8_UpdateResourceResponse as UpdateResourceResponse, type index_d$8_UpdateResourceResponseNonNullableFields as UpdateResourceResponseNonNullableFields, type index_d$8_V2WorkingHoursSchedules as V2WorkingHoursSchedules, type ValueAggregation$1 as ValueAggregation, type ValueAggregationOptionsOneOf$1 as ValueAggregationOptionsOneOf, type ValueAggregationResult$2 as ValueAggregationResult, type ValueResult$1 as ValueResult, type ValueResults$2 as ValueResults, WebhookIdentityType$7 as WebhookIdentityType, type WorkingHoursSchedule$1 as WorkingHoursSchedule, type index_d$8_WorkingHoursSchedules as WorkingHoursSchedules, type index_d$8__publicOnResourceCreatedType as _publicOnResourceCreatedType, type index_d$8__publicOnResourceDeletedType as _publicOnResourceDeletedType, type index_d$8__publicOnResourceUpdatedType as _publicOnResourceUpdatedType, index_d$8_bulkCreateResources as bulkCreateResources, index_d$8_bulkDeleteResources as bulkDeleteResources, index_d$8_createResource as createResource, index_d$8_deleteResource as deleteResource, index_d$8_getResource as getResource, index_d$8_onResourceCreated as onResourceCreated, index_d$8_onResourceDeleted as onResourceDeleted, index_d$8_onResourceUpdated as onResourceUpdated, onResourceCreated$1 as publicOnResourceCreated, onResourceDeleted$1 as publicOnResourceDeleted, onResourceUpdated$1 as publicOnResourceUpdated, index_d$8_queryResources as queryResources, index_d$8_updateResource as updateResource };
|
|
10946
10936
|
}
|
|
10947
10937
|
|
|
10948
|
-
/** A ResourceType is a classification of resources, e.g.
|
|
10938
|
+
/** A ResourceType is a classification of resources, e.g. room, equipment or vehicle. */
|
|
10949
10939
|
interface ResourceType$1 {
|
|
10950
10940
|
/**
|
|
10951
|
-
*
|
|
10941
|
+
* ResourceType ID.
|
|
10952
10942
|
* @readonly
|
|
10953
10943
|
*/
|
|
10954
10944
|
_id?: string | null;
|
|
@@ -10969,7 +10959,7 @@ interface ResourceType$1 {
|
|
|
10969
10959
|
* @readonly
|
|
10970
10960
|
*/
|
|
10971
10961
|
_updatedDate?: Date | null;
|
|
10972
|
-
/** The name of this resource type
|
|
10962
|
+
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
10973
10963
|
name?: string | null;
|
|
10974
10964
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
10975
10965
|
appId?: string | null;
|
|
@@ -11024,7 +11014,7 @@ interface ExtendedFields$5 {
|
|
|
11024
11014
|
namespaces?: Record<string, Record<string, any>>;
|
|
11025
11015
|
}
|
|
11026
11016
|
interface CreateResourceTypeRequest {
|
|
11027
|
-
/**
|
|
11017
|
+
/** Resource type to be created. */
|
|
11028
11018
|
resourceType: ResourceType$1;
|
|
11029
11019
|
}
|
|
11030
11020
|
interface LocationOptions {
|
|
@@ -11063,7 +11053,7 @@ declare enum RequestedFields$2 {
|
|
|
11063
11053
|
DISTINCT_RESOURCE_LOCATIONS = "DISTINCT_RESOURCE_LOCATIONS"
|
|
11064
11054
|
}
|
|
11065
11055
|
interface CreateResourceTypeResponse {
|
|
11066
|
-
/** The created
|
|
11056
|
+
/** The created resource type. */
|
|
11067
11057
|
resourceType?: ResourceType$1;
|
|
11068
11058
|
}
|
|
11069
11059
|
declare enum CreateResourceTypeErrors {
|
|
@@ -11072,23 +11062,23 @@ declare enum CreateResourceTypeErrors {
|
|
|
11072
11062
|
FAILED_TO_CREATE_RESOURCES = "FAILED_TO_CREATE_RESOURCES"
|
|
11073
11063
|
}
|
|
11074
11064
|
interface GetResourceTypeRequest {
|
|
11075
|
-
/**
|
|
11065
|
+
/** ID of the resource type to retrieve. */
|
|
11076
11066
|
resourceTypeId: string;
|
|
11077
11067
|
}
|
|
11078
11068
|
interface GetResourceTypeResponse {
|
|
11079
|
-
/** The requested
|
|
11069
|
+
/** The requested resource type. */
|
|
11080
11070
|
resourceType?: ResourceType$1;
|
|
11081
11071
|
}
|
|
11082
11072
|
interface UpdateResourceTypeRequest {
|
|
11083
|
-
/**
|
|
11073
|
+
/** Resource type to update. [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported. */
|
|
11084
11074
|
resourceType: ResourceType$1;
|
|
11085
11075
|
}
|
|
11086
11076
|
interface UpdateResourceTypeResponse {
|
|
11087
|
-
/** Updated
|
|
11077
|
+
/** Updated resource type. */
|
|
11088
11078
|
resourceType?: ResourceType$1;
|
|
11089
11079
|
}
|
|
11090
11080
|
interface DeleteResourceTypeRequest {
|
|
11091
|
-
/**
|
|
11081
|
+
/** ID of the resource type to delete. */
|
|
11092
11082
|
resourceTypeId: string;
|
|
11093
11083
|
}
|
|
11094
11084
|
interface DeleteResourceTypeResponse {
|
|
@@ -11143,9 +11133,9 @@ interface CursorPaging$5 {
|
|
|
11143
11133
|
cursor?: string | null;
|
|
11144
11134
|
}
|
|
11145
11135
|
interface QueryResourceTypesResponse {
|
|
11146
|
-
/**
|
|
11136
|
+
/** The retrieved resource types. */
|
|
11147
11137
|
resourceTypes?: ResourceType$1[];
|
|
11148
|
-
/** Paging metadata */
|
|
11138
|
+
/** Paging metadata, including offset and count. */
|
|
11149
11139
|
pagingMetadata?: CursorPagingMetadata$4;
|
|
11150
11140
|
}
|
|
11151
11141
|
interface CursorPagingMetadata$4 {
|
|
@@ -11167,7 +11157,7 @@ interface Cursors$5 {
|
|
|
11167
11157
|
prev?: string | null;
|
|
11168
11158
|
}
|
|
11169
11159
|
interface CountResourceTypesRequest {
|
|
11170
|
-
/**
|
|
11160
|
+
/** Filter to apply on resource types to count. */
|
|
11171
11161
|
filter?: Record<string, any> | null;
|
|
11172
11162
|
}
|
|
11173
11163
|
interface CountResourceTypesResponse {
|
|
@@ -11365,7 +11355,7 @@ interface ResourceTypeDeletedEnvelope {
|
|
|
11365
11355
|
}
|
|
11366
11356
|
interface UpdateResourceType {
|
|
11367
11357
|
/**
|
|
11368
|
-
*
|
|
11358
|
+
* ResourceType ID.
|
|
11369
11359
|
* @readonly
|
|
11370
11360
|
*/
|
|
11371
11361
|
_id?: string | null;
|
|
@@ -11386,7 +11376,7 @@ interface UpdateResourceType {
|
|
|
11386
11376
|
* @readonly
|
|
11387
11377
|
*/
|
|
11388
11378
|
_updatedDate?: Date | null;
|
|
11389
|
-
/** The name of this resource type
|
|
11379
|
+
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
11390
11380
|
name?: string | null;
|
|
11391
11381
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
11392
11382
|
appId?: string | null;
|
|
@@ -11448,25 +11438,20 @@ interface ResourceTypesQueryBuilder {
|
|
|
11448
11438
|
declare function createResourceType$1(httpClient: HttpClient): CreateResourceTypeSignature;
|
|
11449
11439
|
interface CreateResourceTypeSignature {
|
|
11450
11440
|
/**
|
|
11451
|
-
* Creates a new ResourceType
|
|
11452
|
-
* Each resource will be constructed as follows:
|
|
11453
|
-
* - The name is the name of the resource type followed by a sequence number.
|
|
11454
|
-
* - The location will be provided by the client
|
|
11455
|
-
* - A schedule will be created to manage the EVENT sessions in which the resource will be used.
|
|
11456
|
-
* - No tag will be assigned to the resource.
|
|
11441
|
+
* Creates a new ResourceType.
|
|
11457
11442
|
*
|
|
11458
|
-
*
|
|
11459
|
-
* @param -
|
|
11460
|
-
* @returns The created
|
|
11443
|
+
* By using the create API, you can create a resource type and set its name and the ID of the app it belongs to.
|
|
11444
|
+
* @param - Resource type to be created.
|
|
11445
|
+
* @returns The created resource type.
|
|
11461
11446
|
*/
|
|
11462
11447
|
(resourceType: ResourceType$1): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11463
11448
|
}
|
|
11464
11449
|
declare function getResourceType$1(httpClient: HttpClient): GetResourceTypeSignature;
|
|
11465
11450
|
interface GetResourceTypeSignature {
|
|
11466
11451
|
/**
|
|
11467
|
-
* Retrieves a ResourceType.
|
|
11468
|
-
* @param -
|
|
11469
|
-
* @returns The requested
|
|
11452
|
+
* Retrieves a ResourceType by ID.
|
|
11453
|
+
* @param - ID of the resource type to retrieve.
|
|
11454
|
+
* @returns The requested resource type.
|
|
11470
11455
|
*/
|
|
11471
11456
|
(resourceTypeId: string): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11472
11457
|
}
|
|
@@ -11475,32 +11460,29 @@ interface UpdateResourceTypeSignature {
|
|
|
11475
11460
|
/**
|
|
11476
11461
|
* Updates a ResourceType.
|
|
11477
11462
|
*
|
|
11463
|
+
* [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported.
|
|
11478
11464
|
*
|
|
11479
|
-
* Each time the
|
|
11480
|
-
*
|
|
11481
|
-
*
|
|
11482
|
-
*
|
|
11483
|
-
* and prevents unintended overwrites.
|
|
11484
|
-
* @param - The unique ID of this resource type
|
|
11485
|
-
* @returns Updated ResourceType.
|
|
11465
|
+
* Each time the resource type is updated, `revision` increments by 1. You must include current revision of the resource type when updating it.
|
|
11466
|
+
* This ensures you're working with the latest service information and prevents unintended overwrites.
|
|
11467
|
+
* @param - ResourceType ID.
|
|
11468
|
+
* @returns Updated resource type.
|
|
11486
11469
|
*/
|
|
11487
11470
|
(_id: string | null, resourceType: UpdateResourceType): Promise<ResourceType$1 & ResourceTypeNonNullableFields>;
|
|
11488
11471
|
}
|
|
11489
11472
|
declare function deleteResourceType$1(httpClient: HttpClient): DeleteResourceTypeSignature;
|
|
11490
11473
|
interface DeleteResourceTypeSignature {
|
|
11491
11474
|
/**
|
|
11492
|
-
*
|
|
11493
|
-
*
|
|
11494
|
-
* @param - Id of the ResourceType to delete.
|
|
11475
|
+
* Deletes a ResourceType.
|
|
11476
|
+
* @param - ID of the resource type to delete.
|
|
11495
11477
|
*/
|
|
11496
11478
|
(resourceTypeId: string): Promise<void>;
|
|
11497
11479
|
}
|
|
11498
11480
|
declare function queryResourceTypes$1(httpClient: HttpClient): QueryResourceTypesSignature;
|
|
11499
11481
|
interface QueryResourceTypesSignature {
|
|
11500
11482
|
/**
|
|
11501
|
-
*
|
|
11483
|
+
* Queries resource types, given the provided [paging, filtering, and sorting][1].
|
|
11502
11484
|
*
|
|
11503
|
-
* Up to 100
|
|
11485
|
+
* Up to 100 resource types can be returned per request.
|
|
11504
11486
|
*
|
|
11505
11487
|
* To learn how to query ResourceTypes, see [API Query Language][2].
|
|
11506
11488
|
*
|
|
@@ -4218,10 +4218,7 @@ interface ApplyBookingFeesToOrderRequest$1 {
|
|
|
4218
4218
|
priceOverride?: Money$7;
|
|
4219
4219
|
/**
|
|
4220
4220
|
* Information about the message to the business and whether to send it if the
|
|
4221
|
-
* booking fee application to the eCommerce order fails.
|
|
4222
|
-
* couldn't be applied to the same eCommerce order, multiple Failed To Apply Booking
|
|
4223
|
-
* Fee To Order events are triggered. But only one of these events includes the
|
|
4224
|
-
* `businessNotification`.
|
|
4221
|
+
* booking fee application to the eCommerce order fails.
|
|
4225
4222
|
*/
|
|
4226
4223
|
businessNotification?: BusinessNotification$1;
|
|
4227
4224
|
}
|
|
@@ -4424,10 +4421,7 @@ interface ApplyBookingFeesToOrderRequest {
|
|
|
4424
4421
|
priceOverride?: Money$6;
|
|
4425
4422
|
/**
|
|
4426
4423
|
* Information about the message to the business and whether to send it if the
|
|
4427
|
-
* booking fee application to the eCommerce order fails.
|
|
4428
|
-
* couldn't be applied to the same eCommerce order, multiple Failed To Apply Booking
|
|
4429
|
-
* Fee To Order events are triggered. But only one of these events includes the
|
|
4430
|
-
* `businessNotification`.
|
|
4424
|
+
* booking fee application to the eCommerce order fails.
|
|
4431
4425
|
*/
|
|
4432
4426
|
businessNotification?: BusinessNotification;
|
|
4433
4427
|
}
|
|
@@ -7467,10 +7461,10 @@ declare namespace meta$8 {
|
|
|
7467
7461
|
export { type __PublicMethodMetaInfo$8 as __PublicMethodMetaInfo, meta$8_bulkCreateResources as bulkCreateResources, meta$8_bulkDeleteResources as bulkDeleteResources, 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 };
|
|
7468
7462
|
}
|
|
7469
7463
|
|
|
7470
|
-
/** A ResourceType is a classification of resources, e.g.
|
|
7464
|
+
/** A ResourceType is a classification of resources, e.g. room, equipment or vehicle. */
|
|
7471
7465
|
interface ResourceType$1 {
|
|
7472
7466
|
/**
|
|
7473
|
-
*
|
|
7467
|
+
* ResourceType ID.
|
|
7474
7468
|
* @readonly
|
|
7475
7469
|
*/
|
|
7476
7470
|
id?: string | null;
|
|
@@ -7491,7 +7485,7 @@ interface ResourceType$1 {
|
|
|
7491
7485
|
* @readonly
|
|
7492
7486
|
*/
|
|
7493
7487
|
updatedDate?: Date | null;
|
|
7494
|
-
/** The name of this resource type
|
|
7488
|
+
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
7495
7489
|
name?: string | null;
|
|
7496
7490
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
7497
7491
|
appId?: string | null;
|
|
@@ -7510,11 +7504,11 @@ interface ExtendedFields$b {
|
|
|
7510
7504
|
namespaces?: Record<string, Record<string, any>>;
|
|
7511
7505
|
}
|
|
7512
7506
|
interface CreateResourceTypeRequest$1 {
|
|
7513
|
-
/**
|
|
7507
|
+
/** Resource type to be created. */
|
|
7514
7508
|
resourceType: ResourceType$1;
|
|
7515
7509
|
}
|
|
7516
7510
|
interface CreateResourceTypeResponse$1 {
|
|
7517
|
-
/** The created
|
|
7511
|
+
/** The created resource type. */
|
|
7518
7512
|
resourceType?: ResourceType$1;
|
|
7519
7513
|
}
|
|
7520
7514
|
declare enum CreateResourceTypeErrors$1 {
|
|
@@ -7523,23 +7517,23 @@ declare enum CreateResourceTypeErrors$1 {
|
|
|
7523
7517
|
FAILED_TO_CREATE_RESOURCES = "FAILED_TO_CREATE_RESOURCES"
|
|
7524
7518
|
}
|
|
7525
7519
|
interface GetResourceTypeRequest$1 {
|
|
7526
|
-
/**
|
|
7520
|
+
/** ID of the resource type to retrieve. */
|
|
7527
7521
|
resourceTypeId: string;
|
|
7528
7522
|
}
|
|
7529
7523
|
interface GetResourceTypeResponse$1 {
|
|
7530
|
-
/** The requested
|
|
7524
|
+
/** The requested resource type. */
|
|
7531
7525
|
resourceType?: ResourceType$1;
|
|
7532
7526
|
}
|
|
7533
7527
|
interface UpdateResourceTypeRequest$1 {
|
|
7534
|
-
/**
|
|
7528
|
+
/** Resource type to update. [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported. */
|
|
7535
7529
|
resourceType: ResourceType$1;
|
|
7536
7530
|
}
|
|
7537
7531
|
interface UpdateResourceTypeResponse$1 {
|
|
7538
|
-
/** Updated
|
|
7532
|
+
/** Updated resource type. */
|
|
7539
7533
|
resourceType?: ResourceType$1;
|
|
7540
7534
|
}
|
|
7541
7535
|
interface DeleteResourceTypeRequest$1 {
|
|
7542
|
-
/**
|
|
7536
|
+
/** ID of the resource type to delete. */
|
|
7543
7537
|
resourceTypeId: string;
|
|
7544
7538
|
}
|
|
7545
7539
|
interface DeleteResourceTypeResponse$1 {
|
|
@@ -7594,9 +7588,9 @@ interface CursorPaging$9 {
|
|
|
7594
7588
|
cursor?: string | null;
|
|
7595
7589
|
}
|
|
7596
7590
|
interface QueryResourceTypesResponse$1 {
|
|
7597
|
-
/**
|
|
7591
|
+
/** The retrieved resource types. */
|
|
7598
7592
|
resourceTypes?: ResourceType$1[];
|
|
7599
|
-
/** Paging metadata */
|
|
7593
|
+
/** Paging metadata, including offset and count. */
|
|
7600
7594
|
pagingMetadata?: CursorPagingMetadata$9;
|
|
7601
7595
|
}
|
|
7602
7596
|
interface CursorPagingMetadata$9 {
|
|
@@ -7640,10 +7634,10 @@ interface QueryResourceTypesResponseNonNullableFields$1 {
|
|
|
7640
7634
|
resourceTypes: ResourceTypeNonNullableFields$1[];
|
|
7641
7635
|
}
|
|
7642
7636
|
|
|
7643
|
-
/** A ResourceType is a classification of resources, e.g.
|
|
7637
|
+
/** A ResourceType is a classification of resources, e.g. room, equipment or vehicle. */
|
|
7644
7638
|
interface ResourceType {
|
|
7645
7639
|
/**
|
|
7646
|
-
*
|
|
7640
|
+
* ResourceType ID.
|
|
7647
7641
|
* @readonly
|
|
7648
7642
|
*/
|
|
7649
7643
|
_id?: string | null;
|
|
@@ -7664,7 +7658,7 @@ interface ResourceType {
|
|
|
7664
7658
|
* @readonly
|
|
7665
7659
|
*/
|
|
7666
7660
|
_updatedDate?: Date | null;
|
|
7667
|
-
/** The name of this resource type
|
|
7661
|
+
/** The name of this resource type, for example `meeting room`. The name must be unique per site. */
|
|
7668
7662
|
name?: string | null;
|
|
7669
7663
|
/** The ID of the app of which the resources of this type belong to. Default: Bookings App ID. */
|
|
7670
7664
|
appId?: string | null;
|
|
@@ -7683,11 +7677,11 @@ interface ExtendedFields$a {
|
|
|
7683
7677
|
namespaces?: Record<string, Record<string, any>>;
|
|
7684
7678
|
}
|
|
7685
7679
|
interface CreateResourceTypeRequest {
|
|
7686
|
-
/**
|
|
7680
|
+
/** Resource type to be created. */
|
|
7687
7681
|
resourceType: ResourceType;
|
|
7688
7682
|
}
|
|
7689
7683
|
interface CreateResourceTypeResponse {
|
|
7690
|
-
/** The created
|
|
7684
|
+
/** The created resource type. */
|
|
7691
7685
|
resourceType?: ResourceType;
|
|
7692
7686
|
}
|
|
7693
7687
|
declare enum CreateResourceTypeErrors {
|
|
@@ -7696,23 +7690,23 @@ declare enum CreateResourceTypeErrors {
|
|
|
7696
7690
|
FAILED_TO_CREATE_RESOURCES = "FAILED_TO_CREATE_RESOURCES"
|
|
7697
7691
|
}
|
|
7698
7692
|
interface GetResourceTypeRequest {
|
|
7699
|
-
/**
|
|
7693
|
+
/** ID of the resource type to retrieve. */
|
|
7700
7694
|
resourceTypeId: string;
|
|
7701
7695
|
}
|
|
7702
7696
|
interface GetResourceTypeResponse {
|
|
7703
|
-
/** The requested
|
|
7697
|
+
/** The requested resource type. */
|
|
7704
7698
|
resourceType?: ResourceType;
|
|
7705
7699
|
}
|
|
7706
7700
|
interface UpdateResourceTypeRequest {
|
|
7707
|
-
/**
|
|
7701
|
+
/** Resource type to update. [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported. */
|
|
7708
7702
|
resourceType: ResourceType;
|
|
7709
7703
|
}
|
|
7710
7704
|
interface UpdateResourceTypeResponse {
|
|
7711
|
-
/** Updated
|
|
7705
|
+
/** Updated resource type. */
|
|
7712
7706
|
resourceType?: ResourceType;
|
|
7713
7707
|
}
|
|
7714
7708
|
interface DeleteResourceTypeRequest {
|
|
7715
|
-
/**
|
|
7709
|
+
/** ID of the resource type to delete. */
|
|
7716
7710
|
resourceTypeId: string;
|
|
7717
7711
|
}
|
|
7718
7712
|
interface DeleteResourceTypeResponse {
|
|
@@ -7767,9 +7761,9 @@ interface CursorPaging$8 {
|
|
|
7767
7761
|
cursor?: string | null;
|
|
7768
7762
|
}
|
|
7769
7763
|
interface QueryResourceTypesResponse {
|
|
7770
|
-
/**
|
|
7764
|
+
/** The retrieved resource types. */
|
|
7771
7765
|
resourceTypes?: ResourceType[];
|
|
7772
|
-
/** Paging metadata */
|
|
7766
|
+
/** Paging metadata, including offset and count. */
|
|
7773
7767
|
pagingMetadata?: CursorPagingMetadata$8;
|
|
7774
7768
|
}
|
|
7775
7769
|
interface CursorPagingMetadata$8 {
|