@wix/auto_sdk_bookings_resources 1.0.10 → 1.0.12
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/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +29 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.context.js +43 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +96 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.http.js +446 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js +199 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
- package/build/{internal/index.d.ts → cjs/src/bookings-resources-v2-resource-resources.public.d.ts} +18 -38
- package/build/cjs/src/bookings-resources-v2-resource-resources.public.js +106 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
- package/build/{internal/meta.d.mts → cjs/src/bookings-resources-v2-resource-resources.types.d.ts} +351 -114
- package/build/cjs/src/bookings-resources-v2-resource-resources.types.js +104 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
- package/build/{bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.mts → cjs/src/bookings-resources-v2-resource-resources.universal.d.ts} +387 -127
- package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js +587 -0
- package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/bookings-resources-v2-resource-resources.context.d.ts +29 -0
- package/build/es/src/bookings-resources-v2-resource-resources.context.js +29 -0
- package/build/es/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
- package/build/es/src/bookings-resources-v2-resource-resources.http.d.ts +96 -0
- package/build/es/src/bookings-resources-v2-resource-resources.http.js +434 -0
- package/build/es/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
- package/build/es/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
- package/build/es/src/bookings-resources-v2-resource-resources.meta.js +164 -0
- package/build/es/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
- package/build/{index.d.ts → es/src/bookings-resources-v2-resource-resources.public.d.ts} +18 -38
- package/build/es/src/bookings-resources-v2-resource-resources.public.js +83 -0
- package/build/es/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
- package/build/{internal/meta.d.ts → es/src/bookings-resources-v2-resource-resources.types.d.ts} +351 -114
- package/build/es/src/bookings-resources-v2-resource-resources.types.js +101 -0
- package/build/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
- package/build/{bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.ts → es/src/bookings-resources-v2-resource-resources.universal.d.ts} +387 -127
- package/build/es/src/bookings-resources-v2-resource-resources.universal.js +552 -0
- package/build/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +29 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js +43 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +96 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js +446 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js +199 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
- package/build/internal/{index.d.mts → cjs/src/bookings-resources-v2-resource-resources.public.d.ts} +18 -38
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js +106 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
- package/build/{meta.d.mts → internal/cjs/src/bookings-resources-v2-resource-resources.types.d.ts} +351 -114
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js +104 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
- package/build/internal/{bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.mts → cjs/src/bookings-resources-v2-resource-resources.universal.d.ts} +387 -127
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js +587 -0
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.context.d.ts +29 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js +29 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.http.d.ts +96 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js +434 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js +164 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
- package/build/{index.d.mts → internal/es/src/bookings-resources-v2-resource-resources.public.d.ts} +18 -38
- package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js +83 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
- package/build/{meta.d.ts → internal/es/src/bookings-resources-v2-resource-resources.types.d.ts} +351 -114
- package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js +101 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
- package/build/internal/{bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.ts → es/src/bookings-resources-v2-resource-resources.universal.d.ts} +387 -127
- package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js +552 -0
- package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.js +0 -882
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -836
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js +0 -882
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -836
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.js +0 -559
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -524
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.js +0 -559
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -524
- package/build/meta.mjs.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createResource as publicCreateResource, bulkCreateResources as publicBulkCreateResources, getResource as publicGetResource, updateResource as publicUpdateResource, deleteResource as publicDeleteResource, bulkDeleteResources as publicBulkDeleteResources, searchResources as publicSearchResources, queryResources as publicQueryResources, countResources as publicCountResources } from './bookings-resources-v2-resource-resources.public.js';
|
|
2
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
+
import { onResourceCreated as publicOnResourceCreated } from './bookings-resources-v2-resource-resources.public.js';
|
|
5
|
+
import { onResourceDeleted as publicOnResourceDeleted } from './bookings-resources-v2-resource-resources.public.js';
|
|
6
|
+
import { onResourceUpdated as publicOnResourceUpdated } from './bookings-resources-v2-resource-resources.public.js';
|
|
7
|
+
export declare const createResource: MaybeContext<BuildRESTFunction<typeof publicCreateResource> & typeof publicCreateResource>;
|
|
8
|
+
export declare const bulkCreateResources: MaybeContext<BuildRESTFunction<typeof publicBulkCreateResources> & typeof publicBulkCreateResources>;
|
|
9
|
+
export declare const getResource: MaybeContext<BuildRESTFunction<typeof publicGetResource> & typeof publicGetResource>;
|
|
10
|
+
export declare const updateResource: MaybeContext<BuildRESTFunction<typeof publicUpdateResource> & typeof publicUpdateResource>;
|
|
11
|
+
export declare const deleteResource: MaybeContext<BuildRESTFunction<typeof publicDeleteResource> & typeof publicDeleteResource>;
|
|
12
|
+
export declare const bulkDeleteResources: MaybeContext<BuildRESTFunction<typeof publicBulkDeleteResources> & typeof publicBulkDeleteResources>;
|
|
13
|
+
export declare const searchResources: MaybeContext<BuildRESTFunction<typeof publicSearchResources> & typeof publicSearchResources>;
|
|
14
|
+
export declare const queryResources: MaybeContext<BuildRESTFunction<typeof publicQueryResources> & typeof publicQueryResources>;
|
|
15
|
+
export declare const countResources: MaybeContext<BuildRESTFunction<typeof publicCountResources> & typeof publicCountResources>;
|
|
16
|
+
/**
|
|
17
|
+
* Triggered when a resource is created.
|
|
18
|
+
*/
|
|
19
|
+
export declare const onResourceCreated: ReturnType<typeof createEventModule<typeof publicOnResourceCreated>>;
|
|
20
|
+
/**
|
|
21
|
+
* Triggered when a resource is deleted.
|
|
22
|
+
*/
|
|
23
|
+
export declare const onResourceDeleted: ReturnType<typeof createEventModule<typeof publicOnResourceDeleted>>;
|
|
24
|
+
/**
|
|
25
|
+
* Triggered when a resource is updated.
|
|
26
|
+
*/
|
|
27
|
+
export declare const onResourceUpdated: ReturnType<typeof createEventModule<typeof publicOnResourceUpdated>>;
|
|
28
|
+
export { ManagementType, SortOrder, SortType, SortDirection, MissingValues, ScalarType, NestedAggregationType, Interval, AggregationType, Mode, WebhookIdentityType, } from './bookings-resources-v2-resource-resources.universal.js';
|
|
29
|
+
export { Resource, ResourceCompositionDetailsOneOf, WorkingHoursSchedule, SingleResource, V2WorkingHoursSchedules, Schedule, LocationOptions, SpecificLocation, BusinessLocation, WorkingHoursSchedules, EventsSchedule, ExtendedFields, CreateResourceRequest, CreateResourceResponse, BulkCreateResourcesRequest, BulkCreateResourcesResponse, BulkResourceResult, ItemMetadata, ApplicationError, BulkActionMetadata, GetResourceRequest, GetResourceResponse, GetDeletedResourceRequest, GetDeletedResourceResponse, ListDeletedResourcesRequest, CursorPaging, ListDeletedResourcesResponse, CursorPagingMetadata, Cursors, RemoveResourceFromTrashBinRequest, RemoveResourceFromTrashBinResponse, RestoreResourceFromTrashBinRequest, RestoreResourceFromTrashBinResponse, UpdateResourceRequest, UpdateResourceResponse, DeleteResourceRequest, DeleteResourceResponse, BulkDeleteResourcesRequest, BulkDeleteResourcesResponse, SearchResourcesRequest, CursorSearch, CursorSearchPagingMethodOneOf, Sorting, Aggregation, AggregationKindOneOf, RangeBucket, IncludeMissingValuesOptions, ValueAggregation, ValueAggregationOptionsOneOf, RangeAggregation, ScalarAggregation, DateHistogramAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregation, GroupByAggregation, GroupByAggregationKindOneOf, SearchDetails, SearchResourcesResponse, AggregationData, ValueAggregationResult, RangeAggregationResult, NestedAggregationResults, NestedAggregationResultsResultOneOf, ValueResults, RangeResults, AggregationResultsScalarResult, NestedValueAggregationResult, ValueResult, RangeResult, ScalarResult, NestedResultValue, NestedResultValueResultOneOf, Results, DateHistogramResult, GroupByValueResults, DateHistogramResults, NestedResults, AggregationResults, AggregationResultsResultOneOf, QueryResourcesRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryResourcesResponse, CountResourcesRequest, CountResourcesResponse, ImportResourceRequest, ImportResourceResponse, FixResourceSchedulesRequest, FixResourceSchedulesResponse, ReindexTenantRequest, ReindexTenantResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceUpdatedEnvelope, BulkCreateResourcesOptions, UpdateResource, SearchResourcesOptions, ResourcesQueryResult, ResourcesQueryBuilder, CountResourcesOptions, } from './bookings-resources-v2-resource-resources.universal.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createResource as publicCreateResource, bulkCreateResources as publicBulkCreateResources, getResource as publicGetResource, updateResource as publicUpdateResource, deleteResource as publicDeleteResource, bulkDeleteResources as publicBulkDeleteResources, searchResources as publicSearchResources, queryResources as publicQueryResources, countResources as publicCountResources, } from './bookings-resources-v2-resource-resources.public.js';
|
|
2
|
+
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
4
|
+
import { onResourceCreated as publicOnResourceCreated } from './bookings-resources-v2-resource-resources.public.js';
|
|
5
|
+
import { onResourceDeleted as publicOnResourceDeleted } from './bookings-resources-v2-resource-resources.public.js';
|
|
6
|
+
import { onResourceUpdated as publicOnResourceUpdated } from './bookings-resources-v2-resource-resources.public.js';
|
|
7
|
+
export const createResource = /*#__PURE__*/ createRESTModule(publicCreateResource);
|
|
8
|
+
export const bulkCreateResources = /*#__PURE__*/ createRESTModule(publicBulkCreateResources);
|
|
9
|
+
export const getResource = /*#__PURE__*/ createRESTModule(publicGetResource);
|
|
10
|
+
export const updateResource = /*#__PURE__*/ createRESTModule(publicUpdateResource);
|
|
11
|
+
export const deleteResource = /*#__PURE__*/ createRESTModule(publicDeleteResource);
|
|
12
|
+
export const bulkDeleteResources = /*#__PURE__*/ createRESTModule(publicBulkDeleteResources);
|
|
13
|
+
export const searchResources = /*#__PURE__*/ createRESTModule(publicSearchResources);
|
|
14
|
+
export const queryResources = /*#__PURE__*/ createRESTModule(publicQueryResources);
|
|
15
|
+
export const countResources = /*#__PURE__*/ createRESTModule(publicCountResources);
|
|
16
|
+
/**
|
|
17
|
+
* Triggered when a resource is created.
|
|
18
|
+
*/
|
|
19
|
+
export const onResourceCreated = createEventModule(publicOnResourceCreated);
|
|
20
|
+
/**
|
|
21
|
+
* Triggered when a resource is deleted.
|
|
22
|
+
*/
|
|
23
|
+
export const onResourceDeleted = createEventModule(publicOnResourceDeleted);
|
|
24
|
+
/**
|
|
25
|
+
* Triggered when a resource is updated.
|
|
26
|
+
*/
|
|
27
|
+
export const onResourceUpdated = createEventModule(publicOnResourceUpdated);
|
|
28
|
+
export { ManagementType, SortOrder, SortType, SortDirection, MissingValues, ScalarType, NestedAggregationType, Interval, AggregationType, Mode, WebhookIdentityType, } from './bookings-resources-v2-resource-resources.universal.js';
|
|
29
|
+
//# sourceMappingURL=bookings-resources-v2-resource-resources.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-resources-v2-resource-resources.context.js","sourceRoot":"","sources":["../../../../src/bookings-resources-v2-res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,MAAM,cAAc,GAEvB,aAAa,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,cAAc,GAEvB,aAAa,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AACzD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAE1B,iBAAiB,CAAC,uBAAuB,CAAC,CAAC;AAC/C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAE1B,iBAAiB,CAAC,uBAAuB,CAAC,CAAC;AAC/C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAE1B,iBAAiB,CAAC,uBAAuB,CAAC,CAAC;AAE/C,OAAO,EACL,cAAc,EACd,SAAS,EACT,QAAQ,EACR,aAAa,EACb,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,mBAAmB,GACpB,MAAM,yDAAyD,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new resource.
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* ## Connected schedules
|
|
7
|
+
*
|
|
8
|
+
* A new event *schedule*
|
|
9
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration))
|
|
10
|
+
* is automatically created for the resource.
|
|
11
|
+
*
|
|
12
|
+
* ## Locations
|
|
13
|
+
*
|
|
14
|
+
* If you don't specify `locationOptions`, Wix Bookings automatically sets
|
|
15
|
+
* `locationOptions.availableInAllLocations` to `true`.
|
|
16
|
+
*
|
|
17
|
+
* If you specify 1 business location ID in `locationOptions.specificLocationOptions.businessLocations`,
|
|
18
|
+
* you must specify `locationOptions.specificLocationOptions.availableInBusinessLocations`
|
|
19
|
+
* as `true`. Currently, you can specify only a single business location.
|
|
20
|
+
*/
|
|
21
|
+
export declare function createResource(payload: object): RequestOptionsFactory<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Creates up to 50 resources.
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* Refer to *Create Resource*
|
|
27
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/create-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/create-resource))
|
|
28
|
+
* for more details.
|
|
29
|
+
*/
|
|
30
|
+
export declare function bulkCreateResources(payload: object): RequestOptionsFactory<any>;
|
|
31
|
+
/** Retrieves a resource. */
|
|
32
|
+
export declare function getResource(payload: object): RequestOptionsFactory<any>;
|
|
33
|
+
/**
|
|
34
|
+
* Updates a resource.
|
|
35
|
+
*
|
|
36
|
+
*
|
|
37
|
+
* Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.
|
|
38
|
+
* This ensures you're working with the latest service information and prevents unintended overwrites.
|
|
39
|
+
*/
|
|
40
|
+
export declare function updateResource(payload: object): RequestOptionsFactory<any>;
|
|
41
|
+
/**
|
|
42
|
+
* Deletes a resource.
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* Deleting a resource cancels its event schedule and all its working hour
|
|
46
|
+
* schedules that aren't shared with another resource. Learn more about
|
|
47
|
+
* _how Bookings uses the Calendar APIs_
|
|
48
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration)).
|
|
49
|
+
*/
|
|
50
|
+
export declare function deleteResource(payload: object): RequestOptionsFactory<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Deletes multiple resources.
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
* Refer to *Delete Resource*
|
|
56
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/delete-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/delete-resource))
|
|
57
|
+
* for more details.
|
|
58
|
+
*/
|
|
59
|
+
export declare function bulkDeleteResources(payload: object): RequestOptionsFactory<any>;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves a list of resources matching the provided search criteria.
|
|
62
|
+
*
|
|
63
|
+
*
|
|
64
|
+
* Refer to the *supported filters article*
|
|
65
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))
|
|
66
|
+
* for a complete list of supported filters and sorting options.
|
|
67
|
+
*/
|
|
68
|
+
export declare function searchResources(payload: object): RequestOptionsFactory<any>;
|
|
69
|
+
/**
|
|
70
|
+
* Creates a query to retrieve a list of resources.
|
|
71
|
+
*
|
|
72
|
+
* The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object.
|
|
73
|
+
*
|
|
74
|
+
* 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/resources/resources-query-builder/find) function.
|
|
75
|
+
*
|
|
76
|
+
* You can refine the query by chaining `ResourcesQueryBuilder` functions onto the query. `ResourcesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResources()` returns.
|
|
77
|
+
*
|
|
78
|
+
* `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override:
|
|
79
|
+
*
|
|
80
|
+
* + `limit` is `50`.
|
|
81
|
+
* + Sorted by `id` in ascending order.
|
|
82
|
+
*
|
|
83
|
+
* The functions that are chained to `queryResources()` are applied in the order they are called. For example, if you apply `ascending("typeId")` and then `ascending("name")`, the results are sorted first by the `"typeId"`, and then, if there are multiple results with the same `"typeId"`, the items are sorted by `"name"`.
|
|
84
|
+
*
|
|
85
|
+
* The following `ResourcesQueryBuilder` functions are supported for the `queryResources()` 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/resources/resources-query-result/items) property in `ResourcesQueryResult`.
|
|
86
|
+
*/
|
|
87
|
+
export declare function queryResources(payload: object): RequestOptionsFactory<any>;
|
|
88
|
+
/**
|
|
89
|
+
* Counts resources according to given criteria.
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
* Refer to the *supported filters article*
|
|
93
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))
|
|
94
|
+
* for a complete list of supported filters and sorting options.
|
|
95
|
+
*/
|
|
96
|
+
export declare function countResources(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
|
|
2
|
+
import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';
|
|
3
|
+
import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
|
|
4
|
+
import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
5
|
+
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
6
|
+
import { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';
|
|
7
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
8
|
+
import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
|
|
9
|
+
function resolveWixBookingsResourcesV2ResourcesServiceUrl(opts) {
|
|
10
|
+
const domainToMappings = {
|
|
11
|
+
'manage._base_domain_': [
|
|
12
|
+
{
|
|
13
|
+
srcPath: '/bookings/v2/resources',
|
|
14
|
+
destPath: '/v2/resources',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
srcPath: '/_api/bookings/v2/resources',
|
|
18
|
+
destPath: '/v2/resources',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
srcPath: '/v2/bulk/resources',
|
|
22
|
+
destPath: '/v2/bulk/resources',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
'api._api_base_domain_': [
|
|
26
|
+
{
|
|
27
|
+
srcPath: '/resources-2',
|
|
28
|
+
destPath: '',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
'www.wixapis.com': [
|
|
32
|
+
{
|
|
33
|
+
srcPath: '/bookings/v2/resources',
|
|
34
|
+
destPath: '/v2/resources',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
srcPath: '/bookings/v2/bulk/resources',
|
|
38
|
+
destPath: '/v2/bulk/resources',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
'*.dev.wix-code.com': [
|
|
42
|
+
{
|
|
43
|
+
srcPath: '/_api/resources-2',
|
|
44
|
+
destPath: '',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
};
|
|
48
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
49
|
+
}
|
|
50
|
+
const PACKAGE_NAME = '@wix/auto_sdk_bookings_resources';
|
|
51
|
+
/**
|
|
52
|
+
* Creates a new resource.
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
* ## Connected schedules
|
|
56
|
+
*
|
|
57
|
+
* A new event *schedule*
|
|
58
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration))
|
|
59
|
+
* is automatically created for the resource.
|
|
60
|
+
*
|
|
61
|
+
* ## Locations
|
|
62
|
+
*
|
|
63
|
+
* If you don't specify `locationOptions`, Wix Bookings automatically sets
|
|
64
|
+
* `locationOptions.availableInAllLocations` to `true`.
|
|
65
|
+
*
|
|
66
|
+
* If you specify 1 business location ID in `locationOptions.specificLocationOptions.businessLocations`,
|
|
67
|
+
* you must specify `locationOptions.specificLocationOptions.availableInBusinessLocations`
|
|
68
|
+
* as `true`. Currently, you can specify only a single business location.
|
|
69
|
+
*/
|
|
70
|
+
export function createResource(payload) {
|
|
71
|
+
function __createResource({ host }) {
|
|
72
|
+
const serializedData = transformPaths(payload, [
|
|
73
|
+
{
|
|
74
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
75
|
+
paths: [
|
|
76
|
+
{ path: 'resource.createdDate' },
|
|
77
|
+
{ path: 'resource.updatedDate' },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
]);
|
|
81
|
+
const metadata = {
|
|
82
|
+
entityFqdn: 'wix.bookings.resources.v2.resource',
|
|
83
|
+
method: 'POST',
|
|
84
|
+
methodFqn: 'wix.bookings.resources.v2.ResourcesService.CreateResource',
|
|
85
|
+
packageName: PACKAGE_NAME,
|
|
86
|
+
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
87
|
+
protoPath: '/v2/resources',
|
|
88
|
+
data: serializedData,
|
|
89
|
+
host,
|
|
90
|
+
}),
|
|
91
|
+
data: serializedData,
|
|
92
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
93
|
+
{
|
|
94
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
95
|
+
paths: [
|
|
96
|
+
{ path: 'resource.createdDate' },
|
|
97
|
+
{ path: 'resource.updatedDate' },
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
]),
|
|
101
|
+
};
|
|
102
|
+
return metadata;
|
|
103
|
+
}
|
|
104
|
+
return __createResource;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Creates up to 50 resources.
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* Refer to *Create Resource*
|
|
111
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/create-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/create-resource))
|
|
112
|
+
* for more details.
|
|
113
|
+
*/
|
|
114
|
+
export function bulkCreateResources(payload) {
|
|
115
|
+
function __bulkCreateResources({ host }) {
|
|
116
|
+
const serializedData = transformPaths(payload, [
|
|
117
|
+
{
|
|
118
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
119
|
+
paths: [
|
|
120
|
+
{ path: 'resources.createdDate' },
|
|
121
|
+
{ path: 'resources.updatedDate' },
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
]);
|
|
125
|
+
const metadata = {
|
|
126
|
+
entityFqdn: 'wix.bookings.resources.v2.resource',
|
|
127
|
+
method: 'POST',
|
|
128
|
+
methodFqn: 'wix.bookings.resources.v2.ResourcesService.BulkCreateResources',
|
|
129
|
+
packageName: PACKAGE_NAME,
|
|
130
|
+
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
131
|
+
protoPath: '/v2/bulk/resources/create',
|
|
132
|
+
data: serializedData,
|
|
133
|
+
host,
|
|
134
|
+
}),
|
|
135
|
+
data: serializedData,
|
|
136
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
137
|
+
{
|
|
138
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
139
|
+
paths: [
|
|
140
|
+
{ path: 'results.item.createdDate' },
|
|
141
|
+
{ path: 'results.item.updatedDate' },
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
]),
|
|
145
|
+
};
|
|
146
|
+
return metadata;
|
|
147
|
+
}
|
|
148
|
+
return __bulkCreateResources;
|
|
149
|
+
}
|
|
150
|
+
/** Retrieves a resource. */
|
|
151
|
+
export function getResource(payload) {
|
|
152
|
+
function __getResource({ host }) {
|
|
153
|
+
const metadata = {
|
|
154
|
+
entityFqdn: 'wix.bookings.resources.v2.resource',
|
|
155
|
+
method: 'GET',
|
|
156
|
+
methodFqn: 'wix.bookings.resources.v2.ResourcesService.GetResource',
|
|
157
|
+
packageName: PACKAGE_NAME,
|
|
158
|
+
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
159
|
+
protoPath: '/v2/resources/{resourceId}',
|
|
160
|
+
data: payload,
|
|
161
|
+
host,
|
|
162
|
+
}),
|
|
163
|
+
params: toURLSearchParams(payload),
|
|
164
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
165
|
+
{
|
|
166
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
167
|
+
paths: [
|
|
168
|
+
{ path: 'resource.createdDate' },
|
|
169
|
+
{ path: 'resource.updatedDate' },
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
]),
|
|
173
|
+
};
|
|
174
|
+
return metadata;
|
|
175
|
+
}
|
|
176
|
+
return __getResource;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Updates a resource.
|
|
180
|
+
*
|
|
181
|
+
*
|
|
182
|
+
* Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.
|
|
183
|
+
* This ensures you're working with the latest service information and prevents unintended overwrites.
|
|
184
|
+
*/
|
|
185
|
+
export function updateResource(payload) {
|
|
186
|
+
function __updateResource({ host }) {
|
|
187
|
+
const serializedData = transformPaths(payload, [
|
|
188
|
+
{
|
|
189
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
190
|
+
paths: [{ path: 'mask' }],
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
194
|
+
paths: [
|
|
195
|
+
{ path: 'resource.createdDate' },
|
|
196
|
+
{ path: 'resource.updatedDate' },
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
]);
|
|
200
|
+
const metadata = {
|
|
201
|
+
entityFqdn: 'wix.bookings.resources.v2.resource',
|
|
202
|
+
method: 'PATCH',
|
|
203
|
+
methodFqn: 'wix.bookings.resources.v2.ResourcesService.UpdateResource',
|
|
204
|
+
packageName: PACKAGE_NAME,
|
|
205
|
+
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
206
|
+
protoPath: '/v2/resources/{resource.id}',
|
|
207
|
+
data: serializedData,
|
|
208
|
+
host,
|
|
209
|
+
}),
|
|
210
|
+
data: serializedData,
|
|
211
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
212
|
+
{
|
|
213
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
214
|
+
paths: [
|
|
215
|
+
{ path: 'resource.createdDate' },
|
|
216
|
+
{ path: 'resource.updatedDate' },
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
]),
|
|
220
|
+
};
|
|
221
|
+
return metadata;
|
|
222
|
+
}
|
|
223
|
+
return __updateResource;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Deletes a resource.
|
|
227
|
+
*
|
|
228
|
+
*
|
|
229
|
+
* Deleting a resource cancels its event schedule and all its working hour
|
|
230
|
+
* schedules that aren't shared with another resource. Learn more about
|
|
231
|
+
* _how Bookings uses the Calendar APIs_
|
|
232
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration)).
|
|
233
|
+
*/
|
|
234
|
+
export function deleteResource(payload) {
|
|
235
|
+
function __deleteResource({ host }) {
|
|
236
|
+
const metadata = {
|
|
237
|
+
entityFqdn: 'wix.bookings.resources.v2.resource',
|
|
238
|
+
method: 'DELETE',
|
|
239
|
+
methodFqn: 'wix.bookings.resources.v2.ResourcesService.DeleteResource',
|
|
240
|
+
packageName: PACKAGE_NAME,
|
|
241
|
+
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
242
|
+
protoPath: '/v2/resources/{resourceId}',
|
|
243
|
+
data: payload,
|
|
244
|
+
host,
|
|
245
|
+
}),
|
|
246
|
+
params: toURLSearchParams(payload),
|
|
247
|
+
};
|
|
248
|
+
return metadata;
|
|
249
|
+
}
|
|
250
|
+
return __deleteResource;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Deletes multiple resources.
|
|
254
|
+
*
|
|
255
|
+
*
|
|
256
|
+
* Refer to *Delete Resource*
|
|
257
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/delete-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/delete-resource))
|
|
258
|
+
* for more details.
|
|
259
|
+
*/
|
|
260
|
+
export function bulkDeleteResources(payload) {
|
|
261
|
+
function __bulkDeleteResources({ host }) {
|
|
262
|
+
const metadata = {
|
|
263
|
+
entityFqdn: 'wix.bookings.resources.v2.resource',
|
|
264
|
+
method: 'POST',
|
|
265
|
+
methodFqn: 'wix.bookings.resources.v2.ResourcesService.BulkDeleteResources',
|
|
266
|
+
packageName: PACKAGE_NAME,
|
|
267
|
+
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
268
|
+
protoPath: '/v2/bulk/resources/delete',
|
|
269
|
+
data: payload,
|
|
270
|
+
host,
|
|
271
|
+
}),
|
|
272
|
+
data: payload,
|
|
273
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
274
|
+
{
|
|
275
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
276
|
+
paths: [
|
|
277
|
+
{ path: 'results.item.createdDate' },
|
|
278
|
+
{ path: 'results.item.updatedDate' },
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
]),
|
|
282
|
+
};
|
|
283
|
+
return metadata;
|
|
284
|
+
}
|
|
285
|
+
return __bulkDeleteResources;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Retrieves a list of resources matching the provided search criteria.
|
|
289
|
+
*
|
|
290
|
+
*
|
|
291
|
+
* Refer to the *supported filters article*
|
|
292
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))
|
|
293
|
+
* for a complete list of supported filters and sorting options.
|
|
294
|
+
*/
|
|
295
|
+
export function searchResources(payload) {
|
|
296
|
+
function __searchResources({ host }) {
|
|
297
|
+
const serializedData = transformPaths(payload, [
|
|
298
|
+
{
|
|
299
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
300
|
+
paths: [
|
|
301
|
+
{ path: 'search.aggregations.range.buckets.from' },
|
|
302
|
+
{ path: 'search.aggregations.range.buckets.to' },
|
|
303
|
+
{
|
|
304
|
+
path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
},
|
|
311
|
+
]);
|
|
312
|
+
const metadata = {
|
|
313
|
+
entityFqdn: 'wix.bookings.resources.v2.resource',
|
|
314
|
+
method: 'POST',
|
|
315
|
+
methodFqn: 'wix.bookings.resources.v2.ResourcesService.SearchResources',
|
|
316
|
+
packageName: PACKAGE_NAME,
|
|
317
|
+
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
318
|
+
protoPath: '/v2/resources/search',
|
|
319
|
+
data: serializedData,
|
|
320
|
+
host,
|
|
321
|
+
}),
|
|
322
|
+
data: serializedData,
|
|
323
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
324
|
+
{
|
|
325
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
326
|
+
paths: [
|
|
327
|
+
{ path: 'resources.createdDate' },
|
|
328
|
+
{ path: 'resources.updatedDate' },
|
|
329
|
+
],
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
333
|
+
paths: [
|
|
334
|
+
{ path: 'aggregationData.results.ranges.results.from' },
|
|
335
|
+
{ path: 'aggregationData.results.ranges.results.to' },
|
|
336
|
+
{
|
|
337
|
+
path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
path: 'aggregationData.results.nested.results.results.*.range.from',
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
path: 'aggregationData.results.nested.results.results.*.range.to',
|
|
347
|
+
},
|
|
348
|
+
{ path: 'aggregationData.results.scalar.value' },
|
|
349
|
+
{
|
|
350
|
+
path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
path: 'aggregationData.results.nested.results.results.*.scalar.value',
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
},
|
|
357
|
+
]),
|
|
358
|
+
};
|
|
359
|
+
return metadata;
|
|
360
|
+
}
|
|
361
|
+
return __searchResources;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Creates a query to retrieve a list of resources.
|
|
365
|
+
*
|
|
366
|
+
* The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object.
|
|
367
|
+
*
|
|
368
|
+
* 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/resources/resources-query-builder/find) function.
|
|
369
|
+
*
|
|
370
|
+
* You can refine the query by chaining `ResourcesQueryBuilder` functions onto the query. `ResourcesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResources()` returns.
|
|
371
|
+
*
|
|
372
|
+
* `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override:
|
|
373
|
+
*
|
|
374
|
+
* + `limit` is `50`.
|
|
375
|
+
* + Sorted by `id` in ascending order.
|
|
376
|
+
*
|
|
377
|
+
* The functions that are chained to `queryResources()` are applied in the order they are called. For example, if you apply `ascending("typeId")` and then `ascending("name")`, the results are sorted first by the `"typeId"`, and then, if there are multiple results with the same `"typeId"`, the items are sorted by `"name"`.
|
|
378
|
+
*
|
|
379
|
+
* The following `ResourcesQueryBuilder` functions are supported for the `queryResources()` 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/resources/resources-query-result/items) property in `ResourcesQueryResult`.
|
|
380
|
+
*/
|
|
381
|
+
export function queryResources(payload) {
|
|
382
|
+
function __queryResources({ host }) {
|
|
383
|
+
const metadata = {
|
|
384
|
+
entityFqdn: 'wix.bookings.resources.v2.resource',
|
|
385
|
+
method: 'POST',
|
|
386
|
+
methodFqn: 'wix.bookings.resources.v2.ResourcesService.QueryResources',
|
|
387
|
+
packageName: PACKAGE_NAME,
|
|
388
|
+
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
389
|
+
protoPath: '/v2/resources/query',
|
|
390
|
+
data: payload,
|
|
391
|
+
host,
|
|
392
|
+
}),
|
|
393
|
+
data: payload,
|
|
394
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
395
|
+
{
|
|
396
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
397
|
+
paths: [
|
|
398
|
+
{ path: 'resources.createdDate' },
|
|
399
|
+
{ path: 'resources.updatedDate' },
|
|
400
|
+
],
|
|
401
|
+
},
|
|
402
|
+
]),
|
|
403
|
+
};
|
|
404
|
+
return metadata;
|
|
405
|
+
}
|
|
406
|
+
return __queryResources;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Counts resources according to given criteria.
|
|
410
|
+
*
|
|
411
|
+
*
|
|
412
|
+
* Refer to the *supported filters article*
|
|
413
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))
|
|
414
|
+
* for a complete list of supported filters and sorting options.
|
|
415
|
+
*/
|
|
416
|
+
export function countResources(payload) {
|
|
417
|
+
function __countResources({ host }) {
|
|
418
|
+
const metadata = {
|
|
419
|
+
entityFqdn: 'wix.bookings.resources.v2.resource',
|
|
420
|
+
method: 'POST',
|
|
421
|
+
methodFqn: 'wix.bookings.resources.v2.ResourcesService.CountResources',
|
|
422
|
+
packageName: PACKAGE_NAME,
|
|
423
|
+
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
424
|
+
protoPath: '/v2/resources/count',
|
|
425
|
+
data: payload,
|
|
426
|
+
host,
|
|
427
|
+
}),
|
|
428
|
+
data: payload,
|
|
429
|
+
};
|
|
430
|
+
return metadata;
|
|
431
|
+
}
|
|
432
|
+
return __countResources;
|
|
433
|
+
}
|
|
434
|
+
//# sourceMappingURL=bookings-resources-v2-resource-resources.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-resources-v2-resource-resources.http.js","sourceRoot":"","sources":["../../../../src/bookings-resources-v2-resource-resources.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,gDAAgD,CACvD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,eAAe;aAC1B;YACD;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,eAAe;aAC1B;YACD;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,oBAAoB;aAC/B;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,cAAc;gBACvB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,eAAe;aAC1B;YAC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C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as ambassadorWixBookingsResourcesV2ResourceTypes from './bookings-resources-v2-resource-resources.types.js';
|
|
2
|
+
import * as ambassadorWixBookingsResourcesV2ResourceUniversalTypes from './bookings-resources-v2-resource-resources.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function createResource(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CreateResourceRequest, ambassadorWixBookingsResourcesV2ResourceTypes.CreateResourceRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CreateResourceResponse, ambassadorWixBookingsResourcesV2ResourceTypes.CreateResourceResponse>;
|
|
14
|
+
export declare function bulkCreateResources(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkCreateResourcesRequest, ambassadorWixBookingsResourcesV2ResourceTypes.BulkCreateResourcesRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkCreateResourcesResponse, ambassadorWixBookingsResourcesV2ResourceTypes.BulkCreateResourcesResponse>;
|
|
15
|
+
export declare function getResource(): __PublicMethodMetaInfo<'GET', {
|
|
16
|
+
resourceId: string;
|
|
17
|
+
}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.GetResourceRequest, ambassadorWixBookingsResourcesV2ResourceTypes.GetResourceRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.GetResourceResponse, ambassadorWixBookingsResourcesV2ResourceTypes.GetResourceResponse>;
|
|
18
|
+
export declare function updateResource(): __PublicMethodMetaInfo<'PATCH', {
|
|
19
|
+
resourceId: string;
|
|
20
|
+
}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.UpdateResourceRequest, ambassadorWixBookingsResourcesV2ResourceTypes.UpdateResourceRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.UpdateResourceResponse, ambassadorWixBookingsResourcesV2ResourceTypes.UpdateResourceResponse>;
|
|
21
|
+
export declare function deleteResource(): __PublicMethodMetaInfo<'DELETE', {
|
|
22
|
+
resourceId: string;
|
|
23
|
+
}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.DeleteResourceRequest, ambassadorWixBookingsResourcesV2ResourceTypes.DeleteResourceRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.DeleteResourceResponse, ambassadorWixBookingsResourcesV2ResourceTypes.DeleteResourceResponse>;
|
|
24
|
+
export declare function bulkDeleteResources(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkDeleteResourcesRequest, ambassadorWixBookingsResourcesV2ResourceTypes.BulkDeleteResourcesRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkDeleteResourcesResponse, ambassadorWixBookingsResourcesV2ResourceTypes.BulkDeleteResourcesResponse>;
|
|
25
|
+
export declare function searchResources(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.SearchResourcesRequest, ambassadorWixBookingsResourcesV2ResourceTypes.SearchResourcesRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.SearchResourcesResponse, ambassadorWixBookingsResourcesV2ResourceTypes.SearchResourcesResponse>;
|
|
26
|
+
export declare function queryResources(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.QueryResourcesRequest, ambassadorWixBookingsResourcesV2ResourceTypes.QueryResourcesRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.QueryResourcesResponse, ambassadorWixBookingsResourcesV2ResourceTypes.QueryResourcesResponse>;
|
|
27
|
+
export declare function countResources(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CountResourcesRequest, ambassadorWixBookingsResourcesV2ResourceTypes.CountResourcesRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CountResourcesResponse, ambassadorWixBookingsResourcesV2ResourceTypes.CountResourcesResponse>;
|