@wix/auto_sdk_bookings_resources 1.0.0

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.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +33 -0
  11. package/build/cjs/src/bookings-resources-v2-resource-resources.context.js +47 -0
  12. package/build/cjs/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
  13. package/build/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +66 -0
  14. package/build/cjs/src/bookings-resources-v2-resource-resources.http.js +416 -0
  15. package/build/cjs/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
  16. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
  17. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js +199 -0
  18. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
  19. package/build/cjs/src/bookings-resources-v2-resource-resources.public.d.ts +119 -0
  20. package/build/cjs/src/bookings-resources-v2-resource-resources.public.js +106 -0
  21. package/build/cjs/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
  22. package/build/cjs/src/bookings-resources-v2-resource-resources.types.d.ts +1011 -0
  23. package/build/cjs/src/bookings-resources-v2-resource-resources.types.js +104 -0
  24. package/build/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
  25. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.d.ts +1436 -0
  26. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js +563 -0
  27. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/bookings-resources-v2-resource-resources.context.d.ts +33 -0
  39. package/build/es/src/bookings-resources-v2-resource-resources.context.js +33 -0
  40. package/build/es/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
  41. package/build/es/src/bookings-resources-v2-resource-resources.http.d.ts +66 -0
  42. package/build/es/src/bookings-resources-v2-resource-resources.http.js +404 -0
  43. package/build/es/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
  44. package/build/es/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
  45. package/build/es/src/bookings-resources-v2-resource-resources.meta.js +164 -0
  46. package/build/es/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
  47. package/build/es/src/bookings-resources-v2-resource-resources.public.d.ts +119 -0
  48. package/build/es/src/bookings-resources-v2-resource-resources.public.js +83 -0
  49. package/build/es/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
  50. package/build/es/src/bookings-resources-v2-resource-resources.types.d.ts +1011 -0
  51. package/build/es/src/bookings-resources-v2-resource-resources.types.js +101 -0
  52. package/build/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
  53. package/build/es/src/bookings-resources-v2-resource-resources.universal.d.ts +1436 -0
  54. package/build/es/src/bookings-resources-v2-resource-resources.universal.js +528 -0
  55. package/build/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +33 -0
  66. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js +47 -0
  67. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
  68. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +66 -0
  69. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js +416 -0
  70. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
  71. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
  72. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js +199 -0
  73. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
  74. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.d.ts +119 -0
  75. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js +106 -0
  76. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
  77. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.d.ts +1011 -0
  78. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js +104 -0
  79. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
  80. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.d.ts +1436 -0
  81. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js +563 -0
  82. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.d.ts +33 -0
  93. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js +33 -0
  94. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js.map +1 -0
  95. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.d.ts +66 -0
  96. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js +404 -0
  97. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js.map +1 -0
  98. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.d.ts +27 -0
  99. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js +164 -0
  100. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js.map +1 -0
  101. package/build/internal/es/src/bookings-resources-v2-resource-resources.public.d.ts +119 -0
  102. package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js +83 -0
  103. package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js.map +1 -0
  104. package/build/internal/es/src/bookings-resources-v2-resource-resources.types.d.ts +1011 -0
  105. package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js +101 -0
  106. package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -0
  107. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.d.ts +1436 -0
  108. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js +528 -0
  109. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,33 @@
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 for each resource that is created.
18
+ *
19
+ * This event has the same structure as [Resource Created](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/create-resource#resource-created).
20
+ */
21
+ export declare const onResourceCreated: ReturnType<typeof createEventModule<typeof publicOnResourceCreated>>;
22
+ /**
23
+ * Triggered for each resource that is deleted.
24
+ *
25
+ * This event has the same structure as [Resource Deleted](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/bulk-delete-resources#resource-deleted).
26
+ */
27
+ export declare const onResourceDeleted: ReturnType<typeof createEventModule<typeof publicOnResourceDeleted>>;
28
+ /**
29
+ * Triggered when a resource is updated.
30
+ */
31
+ export declare const onResourceUpdated: ReturnType<typeof createEventModule<typeof publicOnResourceUpdated>>;
32
+ export { ManagementType, SortOrder, SortType, SortDirection, MissingValues, ScalarType, NestedAggregationType, Interval, AggregationType, Mode, WebhookIdentityType, } from './bookings-resources-v2-resource-resources.universal.js';
33
+ 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, ResourceNonNullableFields, CreateResourceResponseNonNullableFields, BulkCreateResourcesResponseNonNullableFields, GetResourceResponseNonNullableFields, UpdateResourceResponseNonNullableFields, BulkDeleteResourcesResponseNonNullableFields, SearchResourcesResponseNonNullableFields, QueryResourcesResponseNonNullableFields, CountResourcesResponseNonNullableFields, BaseEventMetadata, EventMetadata, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceUpdatedEnvelope, BulkCreateResourcesOptions, UpdateResource, SearchResourcesOptions, ResourcesQueryResult, ResourcesQueryBuilder, CountResourcesOptions, } from './bookings-resources-v2-resource-resources.universal.js';
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = exports.Mode = exports.AggregationType = exports.Interval = exports.NestedAggregationType = exports.ScalarType = exports.MissingValues = exports.SortDirection = exports.SortType = exports.SortOrder = exports.ManagementType = exports.onResourceUpdated = exports.onResourceDeleted = exports.onResourceCreated = exports.countResources = exports.queryResources = exports.searchResources = exports.bulkDeleteResources = exports.deleteResource = exports.updateResource = exports.getResource = exports.bulkCreateResources = exports.createResource = void 0;
4
+ const bookings_resources_v2_resource_resources_public_js_1 = require("./bookings-resources-v2-resource-resources.public.js");
5
+ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
+ const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
7
+ const bookings_resources_v2_resource_resources_public_js_2 = require("./bookings-resources-v2-resource-resources.public.js");
8
+ const bookings_resources_v2_resource_resources_public_js_3 = require("./bookings-resources-v2-resource-resources.public.js");
9
+ const bookings_resources_v2_resource_resources_public_js_4 = require("./bookings-resources-v2-resource-resources.public.js");
10
+ exports.createResource = (0, rest_modules_1.createRESTModule)(bookings_resources_v2_resource_resources_public_js_1.createResource);
11
+ exports.bulkCreateResources = (0, rest_modules_1.createRESTModule)(bookings_resources_v2_resource_resources_public_js_1.bulkCreateResources);
12
+ exports.getResource = (0, rest_modules_1.createRESTModule)(bookings_resources_v2_resource_resources_public_js_1.getResource);
13
+ exports.updateResource = (0, rest_modules_1.createRESTModule)(bookings_resources_v2_resource_resources_public_js_1.updateResource);
14
+ exports.deleteResource = (0, rest_modules_1.createRESTModule)(bookings_resources_v2_resource_resources_public_js_1.deleteResource);
15
+ exports.bulkDeleteResources = (0, rest_modules_1.createRESTModule)(bookings_resources_v2_resource_resources_public_js_1.bulkDeleteResources);
16
+ exports.searchResources = (0, rest_modules_1.createRESTModule)(bookings_resources_v2_resource_resources_public_js_1.searchResources);
17
+ exports.queryResources = (0, rest_modules_1.createRESTModule)(bookings_resources_v2_resource_resources_public_js_1.queryResources);
18
+ exports.countResources = (0, rest_modules_1.createRESTModule)(bookings_resources_v2_resource_resources_public_js_1.countResources);
19
+ /**
20
+ * Triggered for each resource that is created.
21
+ *
22
+ * This event has the same structure as [Resource Created](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/create-resource#resource-created).
23
+ */
24
+ exports.onResourceCreated = (0, event_definition_modules_1.createEventModule)(bookings_resources_v2_resource_resources_public_js_2.onResourceCreated);
25
+ /**
26
+ * Triggered for each resource that is deleted.
27
+ *
28
+ * This event has the same structure as [Resource Deleted](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/bulk-delete-resources#resource-deleted).
29
+ */
30
+ exports.onResourceDeleted = (0, event_definition_modules_1.createEventModule)(bookings_resources_v2_resource_resources_public_js_3.onResourceDeleted);
31
+ /**
32
+ * Triggered when a resource is updated.
33
+ */
34
+ exports.onResourceUpdated = (0, event_definition_modules_1.createEventModule)(bookings_resources_v2_resource_resources_public_js_4.onResourceUpdated);
35
+ var bookings_resources_v2_resource_resources_universal_js_1 = require("./bookings-resources-v2-resource-resources.universal.js");
36
+ Object.defineProperty(exports, "ManagementType", { enumerable: true, get: function () { return bookings_resources_v2_resource_resources_universal_js_1.ManagementType; } });
37
+ Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return bookings_resources_v2_resource_resources_universal_js_1.SortOrder; } });
38
+ Object.defineProperty(exports, "SortType", { enumerable: true, get: function () { return bookings_resources_v2_resource_resources_universal_js_1.SortType; } });
39
+ Object.defineProperty(exports, "SortDirection", { enumerable: true, get: function () { return bookings_resources_v2_resource_resources_universal_js_1.SortDirection; } });
40
+ Object.defineProperty(exports, "MissingValues", { enumerable: true, get: function () { return bookings_resources_v2_resource_resources_universal_js_1.MissingValues; } });
41
+ Object.defineProperty(exports, "ScalarType", { enumerable: true, get: function () { return bookings_resources_v2_resource_resources_universal_js_1.ScalarType; } });
42
+ Object.defineProperty(exports, "NestedAggregationType", { enumerable: true, get: function () { return bookings_resources_v2_resource_resources_universal_js_1.NestedAggregationType; } });
43
+ Object.defineProperty(exports, "Interval", { enumerable: true, get: function () { return bookings_resources_v2_resource_resources_universal_js_1.Interval; } });
44
+ Object.defineProperty(exports, "AggregationType", { enumerable: true, get: function () { return bookings_resources_v2_resource_resources_universal_js_1.AggregationType; } });
45
+ Object.defineProperty(exports, "Mode", { enumerable: true, get: function () { return bookings_resources_v2_resource_resources_universal_js_1.Mode; } });
46
+ Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return bookings_resources_v2_resource_resources_universal_js_1.WebhookIdentityType; } });
47
+ //# 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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,4JAAA,mBAAmB,OAAA"}
@@ -0,0 +1,66 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ /**
3
+ * Creates a new resource.
4
+ *
5
+ * A new events schedule is automatically created specific to this resource. This schedule will contain information
6
+ * on when the resource is booked in order to prevent double bookings.
7
+ * See [Schedules API](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) for more information.
8
+ *
9
+ * - If the request does not include the field `locationOptions`, then the service will create this field and set
10
+ * `availableInAllLocations` in this structure to `true`.
11
+ * - If the request includes one or more business location IDs in the `locationOptions.specificLocationOptions.businessLocations`
12
+ * field, then the field `locationOptions.specificLocationOptions.availableInBusinessLocations` must be set
13
+ * to `true`.
14
+ */
15
+ export declare function createResource(payload: object): RequestOptionsFactory<any>;
16
+ /** Creates multiple resources. */
17
+ export declare function bulkCreateResources(payload: object): RequestOptionsFactory<any>;
18
+ /** Retrieves a resource by ID. */
19
+ export declare function getResource(payload: object): RequestOptionsFactory<any>;
20
+ /**
21
+ * Updates a resource.
22
+ *
23
+ * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.
24
+ * This ensures you're working with the latest service information and prevents unintended overwrites.
25
+ */
26
+ export declare function updateResource(payload: object): RequestOptionsFactory<any>;
27
+ /**
28
+ * Deletes a resource.
29
+ *
30
+ * Also cancels the associated events schedule and any working hours schedule that isn’t shared among multiple resources.
31
+ */
32
+ export declare function deleteResource(payload: object): RequestOptionsFactory<any>;
33
+ /** Deletes multiple resources. */
34
+ export declare function bulkDeleteResources(payload: object): RequestOptionsFactory<any>;
35
+ /**
36
+ * Retrieves a list of resources matching the provided search criteria.
37
+ *
38
+ * The search endpoints allow to perform advanced search including partial text search, exact match, and more.
39
+ * The endpoint also allows to aggregate resources by type, name, app id, management type, management type and location options.
40
+ */
41
+ export declare function searchResources(payload: object): RequestOptionsFactory<any>;
42
+ /**
43
+ * Creates a query to retrieve a list of resources.
44
+ *
45
+ * The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object.
46
+ *
47
+ * 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.
48
+ *
49
+ * 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.
50
+ *
51
+ * `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override:
52
+ *
53
+ * + `limit` is `50`.
54
+ * + Sorted by `id` in ascending order.
55
+ *
56
+ * 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("id")`, the results are sorted first by the `"typeId"`, and then, if there are multiple results with the same `"typeId"`, the items are sorted by `"id"`.
57
+ *
58
+ * 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`.
59
+ */
60
+ export declare function queryResources(payload: object): RequestOptionsFactory<any>;
61
+ /**
62
+ * Counts resources according to given criteria.
63
+ *
64
+ * Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria.
65
+ */
66
+ export declare function countResources(payload: object): RequestOptionsFactory<any>;
@@ -0,0 +1,416 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.countResources = exports.queryResources = exports.searchResources = exports.bulkDeleteResources = exports.deleteResource = exports.updateResource = exports.getResource = exports.bulkCreateResources = exports.createResource = void 0;
4
+ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
5
+ const float_1 = require("@wix/sdk-runtime/transformations/float");
6
+ const float_2 = require("@wix/sdk-runtime/transformations/float");
7
+ const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
8
+ const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
9
+ const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
10
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
11
+ const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
12
+ function resolveWixBookingsResourcesV2ResourcesServiceUrl(opts) {
13
+ const domainToMappings = {
14
+ 'manage._base_domain_': [
15
+ {
16
+ srcPath: '/bookings/v2/resources',
17
+ destPath: '/v2/resources',
18
+ },
19
+ {
20
+ srcPath: '/_api/bookings/v2/resources',
21
+ destPath: '/v2/resources',
22
+ },
23
+ {
24
+ srcPath: '/v2/bulk/resources',
25
+ destPath: '/v2/bulk/resources',
26
+ },
27
+ ],
28
+ 'api._api_base_domain_': [
29
+ {
30
+ srcPath: '/resources-2',
31
+ destPath: '',
32
+ },
33
+ ],
34
+ 'www.wixapis.com': [
35
+ {
36
+ srcPath: '/bookings/v2/resources',
37
+ destPath: '/v2/resources',
38
+ },
39
+ {
40
+ srcPath: '/bookings/v2/bulk/resources',
41
+ destPath: '/v2/bulk/resources',
42
+ },
43
+ ],
44
+ '*.dev.wix-code.com': [
45
+ {
46
+ srcPath: '/_api/resources-2',
47
+ destPath: '',
48
+ },
49
+ ],
50
+ };
51
+ return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
52
+ }
53
+ const PACKAGE_NAME = '@wix/auto_sdk_bookings_resources';
54
+ /**
55
+ * Creates a new resource.
56
+ *
57
+ * A new events schedule is automatically created specific to this resource. This schedule will contain information
58
+ * on when the resource is booked in order to prevent double bookings.
59
+ * See [Schedules API](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) for more information.
60
+ *
61
+ * - If the request does not include the field `locationOptions`, then the service will create this field and set
62
+ * `availableInAllLocations` in this structure to `true`.
63
+ * - If the request includes one or more business location IDs in the `locationOptions.specificLocationOptions.businessLocations`
64
+ * field, then the field `locationOptions.specificLocationOptions.availableInBusinessLocations` must be set
65
+ * to `true`.
66
+ */
67
+ function createResource(payload) {
68
+ function __createResource({ host }) {
69
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
70
+ {
71
+ transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
72
+ paths: [
73
+ { path: 'resource.createdDate' },
74
+ { path: 'resource.updatedDate' },
75
+ ],
76
+ },
77
+ ]);
78
+ const metadata = {
79
+ entityFqdn: 'wix.bookings.resources.v2.resource',
80
+ method: 'POST',
81
+ methodFqn: 'wix.bookings.resources.v2.ResourcesService.CreateResource',
82
+ packageName: PACKAGE_NAME,
83
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
84
+ protoPath: '/v2/resources',
85
+ data: serializedData,
86
+ host,
87
+ }),
88
+ data: serializedData,
89
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
90
+ {
91
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
92
+ paths: [
93
+ { path: 'resource.createdDate' },
94
+ { path: 'resource.updatedDate' },
95
+ ],
96
+ },
97
+ ]),
98
+ };
99
+ return metadata;
100
+ }
101
+ return __createResource;
102
+ }
103
+ exports.createResource = createResource;
104
+ /** Creates multiple resources. */
105
+ function bulkCreateResources(payload) {
106
+ function __bulkCreateResources({ host }) {
107
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
108
+ {
109
+ transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
110
+ paths: [
111
+ { path: 'resources.createdDate' },
112
+ { path: 'resources.updatedDate' },
113
+ ],
114
+ },
115
+ ]);
116
+ const metadata = {
117
+ entityFqdn: 'wix.bookings.resources.v2.resource',
118
+ method: 'POST',
119
+ methodFqn: 'wix.bookings.resources.v2.ResourcesService.BulkCreateResources',
120
+ packageName: PACKAGE_NAME,
121
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
122
+ protoPath: '/v2/bulk/resources/create',
123
+ data: serializedData,
124
+ host,
125
+ }),
126
+ data: serializedData,
127
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
128
+ {
129
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
130
+ paths: [
131
+ { path: 'results.item.createdDate' },
132
+ { path: 'results.item.updatedDate' },
133
+ ],
134
+ },
135
+ ]),
136
+ };
137
+ return metadata;
138
+ }
139
+ return __bulkCreateResources;
140
+ }
141
+ exports.bulkCreateResources = bulkCreateResources;
142
+ /** Retrieves a resource by ID. */
143
+ function getResource(payload) {
144
+ function __getResource({ host }) {
145
+ const metadata = {
146
+ entityFqdn: 'wix.bookings.resources.v2.resource',
147
+ method: 'GET',
148
+ methodFqn: 'wix.bookings.resources.v2.ResourcesService.GetResource',
149
+ packageName: PACKAGE_NAME,
150
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
151
+ protoPath: '/v2/resources/{resourceId}',
152
+ data: payload,
153
+ host,
154
+ }),
155
+ params: (0, rest_modules_1.toURLSearchParams)(payload),
156
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
157
+ {
158
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
159
+ paths: [
160
+ { path: 'resource.createdDate' },
161
+ { path: 'resource.updatedDate' },
162
+ ],
163
+ },
164
+ ]),
165
+ };
166
+ return metadata;
167
+ }
168
+ return __getResource;
169
+ }
170
+ exports.getResource = getResource;
171
+ /**
172
+ * Updates a resource.
173
+ *
174
+ * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.
175
+ * This ensures you're working with the latest service information and prevents unintended overwrites.
176
+ */
177
+ function updateResource(payload) {
178
+ function __updateResource({ host }) {
179
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
180
+ {
181
+ transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
182
+ paths: [{ path: 'mask' }],
183
+ },
184
+ {
185
+ transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
186
+ paths: [
187
+ { path: 'resource.createdDate' },
188
+ { path: 'resource.updatedDate' },
189
+ ],
190
+ },
191
+ ]);
192
+ const metadata = {
193
+ entityFqdn: 'wix.bookings.resources.v2.resource',
194
+ method: 'PATCH',
195
+ methodFqn: 'wix.bookings.resources.v2.ResourcesService.UpdateResource',
196
+ packageName: PACKAGE_NAME,
197
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
198
+ protoPath: '/v2/resources/{resource.id}',
199
+ data: serializedData,
200
+ host,
201
+ }),
202
+ data: serializedData,
203
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
204
+ {
205
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
206
+ paths: [
207
+ { path: 'resource.createdDate' },
208
+ { path: 'resource.updatedDate' },
209
+ ],
210
+ },
211
+ ]),
212
+ };
213
+ return metadata;
214
+ }
215
+ return __updateResource;
216
+ }
217
+ exports.updateResource = updateResource;
218
+ /**
219
+ * Deletes a resource.
220
+ *
221
+ * Also cancels the associated events schedule and any working hours schedule that isn’t shared among multiple resources.
222
+ */
223
+ function deleteResource(payload) {
224
+ function __deleteResource({ host }) {
225
+ const metadata = {
226
+ entityFqdn: 'wix.bookings.resources.v2.resource',
227
+ method: 'DELETE',
228
+ methodFqn: 'wix.bookings.resources.v2.ResourcesService.DeleteResource',
229
+ packageName: PACKAGE_NAME,
230
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
231
+ protoPath: '/v2/resources/{resourceId}',
232
+ data: payload,
233
+ host,
234
+ }),
235
+ params: (0, rest_modules_1.toURLSearchParams)(payload),
236
+ };
237
+ return metadata;
238
+ }
239
+ return __deleteResource;
240
+ }
241
+ exports.deleteResource = deleteResource;
242
+ /** Deletes multiple resources. */
243
+ function bulkDeleteResources(payload) {
244
+ function __bulkDeleteResources({ host }) {
245
+ const metadata = {
246
+ entityFqdn: 'wix.bookings.resources.v2.resource',
247
+ method: 'POST',
248
+ methodFqn: 'wix.bookings.resources.v2.ResourcesService.BulkDeleteResources',
249
+ packageName: PACKAGE_NAME,
250
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
251
+ protoPath: '/v2/bulk/resources/delete',
252
+ data: payload,
253
+ host,
254
+ }),
255
+ data: payload,
256
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
257
+ {
258
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
259
+ paths: [
260
+ { path: 'results.item.createdDate' },
261
+ { path: 'results.item.updatedDate' },
262
+ ],
263
+ },
264
+ ]),
265
+ };
266
+ return metadata;
267
+ }
268
+ return __bulkDeleteResources;
269
+ }
270
+ exports.bulkDeleteResources = bulkDeleteResources;
271
+ /**
272
+ * Retrieves a list of resources matching the provided search criteria.
273
+ *
274
+ * The search endpoints allow to perform advanced search including partial text search, exact match, and more.
275
+ * The endpoint also allows to aggregate resources by type, name, app id, management type, management type and location options.
276
+ */
277
+ function searchResources(payload) {
278
+ function __searchResources({ host }) {
279
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
280
+ {
281
+ transformFn: float_1.transformSDKFloatToRESTFloat,
282
+ paths: [
283
+ { path: 'search.aggregations.range.buckets.from' },
284
+ { path: 'search.aggregations.range.buckets.to' },
285
+ {
286
+ path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',
287
+ },
288
+ {
289
+ path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',
290
+ },
291
+ ],
292
+ },
293
+ ]);
294
+ const metadata = {
295
+ entityFqdn: 'wix.bookings.resources.v2.resource',
296
+ method: 'POST',
297
+ methodFqn: 'wix.bookings.resources.v2.ResourcesService.SearchResources',
298
+ packageName: PACKAGE_NAME,
299
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
300
+ protoPath: '/v2/resources/search',
301
+ data: serializedData,
302
+ host,
303
+ }),
304
+ data: serializedData,
305
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
306
+ {
307
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
308
+ paths: [
309
+ { path: 'resources.createdDate' },
310
+ { path: 'resources.updatedDate' },
311
+ ],
312
+ },
313
+ {
314
+ transformFn: float_2.transformRESTFloatToSDKFloat,
315
+ paths: [
316
+ { path: 'aggregationData.results.ranges.results.from' },
317
+ { path: 'aggregationData.results.ranges.results.to' },
318
+ {
319
+ path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',
320
+ },
321
+ {
322
+ path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',
323
+ },
324
+ {
325
+ path: 'aggregationData.results.nested.results.results.range.from',
326
+ },
327
+ {
328
+ path: 'aggregationData.results.nested.results.results.range.to',
329
+ },
330
+ { path: 'aggregationData.results.scalar.value' },
331
+ {
332
+ path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',
333
+ },
334
+ {
335
+ path: 'aggregationData.results.nested.results.results.scalar.value',
336
+ },
337
+ ],
338
+ },
339
+ ]),
340
+ };
341
+ return metadata;
342
+ }
343
+ return __searchResources;
344
+ }
345
+ exports.searchResources = searchResources;
346
+ /**
347
+ * Creates a query to retrieve a list of resources.
348
+ *
349
+ * The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object.
350
+ *
351
+ * 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.
352
+ *
353
+ * 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.
354
+ *
355
+ * `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override:
356
+ *
357
+ * + `limit` is `50`.
358
+ * + Sorted by `id` in ascending order.
359
+ *
360
+ * 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("id")`, the results are sorted first by the `"typeId"`, and then, if there are multiple results with the same `"typeId"`, the items are sorted by `"id"`.
361
+ *
362
+ * 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`.
363
+ */
364
+ function queryResources(payload) {
365
+ function __queryResources({ host }) {
366
+ const metadata = {
367
+ entityFqdn: 'wix.bookings.resources.v2.resource',
368
+ method: 'POST',
369
+ methodFqn: 'wix.bookings.resources.v2.ResourcesService.QueryResources',
370
+ packageName: PACKAGE_NAME,
371
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
372
+ protoPath: '/v2/resources/query',
373
+ data: payload,
374
+ host,
375
+ }),
376
+ data: payload,
377
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
378
+ {
379
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
380
+ paths: [
381
+ { path: 'resources.createdDate' },
382
+ { path: 'resources.updatedDate' },
383
+ ],
384
+ },
385
+ ]),
386
+ };
387
+ return metadata;
388
+ }
389
+ return __queryResources;
390
+ }
391
+ exports.queryResources = queryResources;
392
+ /**
393
+ * Counts resources according to given criteria.
394
+ *
395
+ * Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria.
396
+ */
397
+ function countResources(payload) {
398
+ function __countResources({ host }) {
399
+ const metadata = {
400
+ entityFqdn: 'wix.bookings.resources.v2.resource',
401
+ method: 'POST',
402
+ methodFqn: 'wix.bookings.resources.v2.ResourcesService.CountResources',
403
+ packageName: PACKAGE_NAME,
404
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
405
+ protoPath: '/v2/resources/count',
406
+ data: payload,
407
+ host,
408
+ }),
409
+ data: payload,
410
+ };
411
+ return metadata;
412
+ }
413
+ return __countResources;
414
+ }
415
+ exports.countResources = countResources;
416
+ //# 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,gEAAkE;AAClE,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2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E,uBAAuB,EAAE;wBACjC,EAAE,IAAI,EAAE,uBAAuB,EAAE;qBAClC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA7BD,wCA6BC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAAe;IAC5C,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAO;QACrC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,oCAAoC;YAChD,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,2DAA2D;YACtE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,gDAAgD,CAAC;gBACpD,SAAS,EAAE,qBAAqB;gBAChC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAnBD,wCAmBC"}
@@ -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 & ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CreateResourceResponseNonNullableFields, ambassadorWixBookingsResourcesV2ResourceTypes.CreateResourceResponse & ambassadorWixBookingsResourcesV2ResourceTypes.CreateResourceResponseNonNullableFields>;
14
+ export declare function bulkCreateResources(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkCreateResourcesRequest, ambassadorWixBookingsResourcesV2ResourceTypes.BulkCreateResourcesRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkCreateResourcesResponse & ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkCreateResourcesResponseNonNullableFields, ambassadorWixBookingsResourcesV2ResourceTypes.BulkCreateResourcesResponse & ambassadorWixBookingsResourcesV2ResourceTypes.BulkCreateResourcesResponseNonNullableFields>;
15
+ export declare function getResource(): __PublicMethodMetaInfo<'GET', {
16
+ resourceId: string;
17
+ }, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.GetResourceRequest, ambassadorWixBookingsResourcesV2ResourceTypes.GetResourceRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.GetResourceResponse & ambassadorWixBookingsResourcesV2ResourceUniversalTypes.GetResourceResponseNonNullableFields, ambassadorWixBookingsResourcesV2ResourceTypes.GetResourceResponse & ambassadorWixBookingsResourcesV2ResourceTypes.GetResourceResponseNonNullableFields>;
18
+ export declare function updateResource(): __PublicMethodMetaInfo<'PATCH', {
19
+ resourceId: string;
20
+ }, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.UpdateResourceRequest, ambassadorWixBookingsResourcesV2ResourceTypes.UpdateResourceRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.UpdateResourceResponse & ambassadorWixBookingsResourcesV2ResourceUniversalTypes.UpdateResourceResponseNonNullableFields, ambassadorWixBookingsResourcesV2ResourceTypes.UpdateResourceResponse & ambassadorWixBookingsResourcesV2ResourceTypes.UpdateResourceResponseNonNullableFields>;
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 & ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkDeleteResourcesResponseNonNullableFields, ambassadorWixBookingsResourcesV2ResourceTypes.BulkDeleteResourcesResponse & ambassadorWixBookingsResourcesV2ResourceTypes.BulkDeleteResourcesResponseNonNullableFields>;
25
+ export declare function searchResources(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.SearchResourcesRequest, ambassadorWixBookingsResourcesV2ResourceTypes.SearchResourcesRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.SearchResourcesResponse & ambassadorWixBookingsResourcesV2ResourceUniversalTypes.SearchResourcesResponseNonNullableFields, ambassadorWixBookingsResourcesV2ResourceTypes.SearchResourcesResponse & ambassadorWixBookingsResourcesV2ResourceTypes.SearchResourcesResponseNonNullableFields>;
26
+ export declare function queryResources(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.QueryResourcesRequest, ambassadorWixBookingsResourcesV2ResourceTypes.QueryResourcesRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.QueryResourcesResponse & ambassadorWixBookingsResourcesV2ResourceUniversalTypes.QueryResourcesResponseNonNullableFields, ambassadorWixBookingsResourcesV2ResourceTypes.QueryResourcesResponse & ambassadorWixBookingsResourcesV2ResourceTypes.QueryResourcesResponseNonNullableFields>;
27
+ export declare function countResources(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CountResourcesRequest, ambassadorWixBookingsResourcesV2ResourceTypes.CountResourcesRequest, ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CountResourcesResponse & ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CountResourcesResponseNonNullableFields, ambassadorWixBookingsResourcesV2ResourceTypes.CountResourcesResponse & ambassadorWixBookingsResourcesV2ResourceTypes.CountResourcesResponseNonNullableFields>;