@wix/auto_sdk_bookings_resources 1.0.70 → 1.0.72
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/{bookings-resources-v2-resource-resources.universal-BPsvgHee.d.ts → bookings-resources-v2-resource-resources.universal-t-njWnKq.d.ts} +6 -10
- package/build/cjs/index.d.ts +3 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-resources-v2-resource-resources.universal-BPsvgHee.d.mts → bookings-resources-v2-resource-resources.universal-t-njWnKq.d.mts} +6 -10
- package/build/es/index.d.mts +3 -8
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +4 -8
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-resources-v2-resource-resources.universal-BPsvgHee.d.ts → bookings-resources-v2-resource-resources.universal-t-njWnKq.d.ts} +6 -10
- package/build/internal/cjs/index.d.ts +3 -8
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -7
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +4 -8
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-resources-v2-resource-resources.universal-BPsvgHee.d.mts → bookings-resources-v2-resource-resources.universal-t-njWnKq.d.mts} +6 -10
- package/build/internal/es/index.d.mts +3 -8
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +4 -8
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -434,11 +434,7 @@ interface BulkDeleteResourcesResponse {
|
|
|
434
434
|
bulkActionMetadata?: BulkActionMetadata;
|
|
435
435
|
}
|
|
436
436
|
interface SearchResourcesRequest {
|
|
437
|
-
/**
|
|
438
|
-
* Search criteria including filter, sort, aggregations, and paging options.
|
|
439
|
-
*
|
|
440
|
-
* Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/filtering-and-sorting) for complete filter and sorting options.
|
|
441
|
-
*/
|
|
437
|
+
/** Search criteria including filter, sort, aggregations, and paging options. */
|
|
442
438
|
search?: CursorSearch;
|
|
443
439
|
}
|
|
444
440
|
interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
@@ -999,7 +995,7 @@ interface AggregationResultsResultOneOf {
|
|
|
999
995
|
nested?: NestedResults;
|
|
1000
996
|
}
|
|
1001
997
|
interface QueryResourcesRequest {
|
|
1002
|
-
/** Query
|
|
998
|
+
/** Query object. */
|
|
1003
999
|
query?: CursorQuery;
|
|
1004
1000
|
}
|
|
1005
1001
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -1033,7 +1029,7 @@ interface QueryResourcesResponse {
|
|
|
1033
1029
|
pagingMetadata?: CursorPagingMetadata;
|
|
1034
1030
|
}
|
|
1035
1031
|
interface CountResourcesRequest {
|
|
1036
|
-
/** Filter to base the count on.
|
|
1032
|
+
/** Filter to base the count on. See [Query Resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/query-resources) for a list of supported filters. */
|
|
1037
1033
|
filter?: Record<string, any> | null;
|
|
1038
1034
|
/**
|
|
1039
1035
|
* Free text to match in searchable fields. Field is deprecated due to decision to use query instead of search for performing the count.
|
|
@@ -1924,7 +1920,7 @@ type ResourceQuery = {
|
|
|
1924
1920
|
/**
|
|
1925
1921
|
* Counts resources according to given criteria.
|
|
1926
1922
|
*
|
|
1927
|
-
*
|
|
1923
|
+
* See [Query Resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/query-resources) for a list of supported filters.
|
|
1928
1924
|
* @public
|
|
1929
1925
|
* @param options - Filter to base the count on. See *the supported filters article* ([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)) for a complete list of filtering options.
|
|
1930
1926
|
* @permissionId BOOKINGS.RESOURCE_READ
|
|
@@ -1933,7 +1929,7 @@ type ResourceQuery = {
|
|
|
1933
1929
|
*/
|
|
1934
1930
|
declare function countResources(options?: CountResourcesOptions): Promise<NonNullablePaths<CountResourcesResponse, `count`, 2>>;
|
|
1935
1931
|
interface CountResourcesOptions {
|
|
1936
|
-
/** Filter to base the count on.
|
|
1932
|
+
/** Filter to base the count on. See [Query Resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/query-resources) for a list of supported filters. */
|
|
1937
1933
|
filter?: Record<string, any> | null;
|
|
1938
1934
|
/**
|
|
1939
1935
|
* Free text to match in searchable fields. Field is deprecated due to decision to use query instead of search for performing the count.
|
|
@@ -1943,4 +1939,4 @@ interface CountResourcesOptions {
|
|
|
1943
1939
|
search?: SearchDetails;
|
|
1944
1940
|
}
|
|
1945
1941
|
|
|
1946
|
-
export { type GetDeletedResourceRequest as $, AggregationType as A, type BulkCreateResourcesOptions as B, type CreateResourceValidationErrors as C, type Schedule as D, type SpecificLocation as E, type BusinessLocation as F, type WorkingHoursSchedules as G, type EventsSchedule as H, Interval as I, type ExtendedFields as J, type CreateResourceRequest as K, type LocationOptions as L, type MaskedResource as M, NestedAggregationType as N, type CreateResourceResponse as O, type BulkCreateResourcesRequest as P, type BulkResourceResult as Q, type Resource as R, type SearchResourcesResponse as S, type ItemMetadata as T, type UpdateResource as U, type V2WorkingHoursSchedules as V, WebhookIdentityType as W, type ApplicationError as X, type BulkActionMetadata as Y, type GetResourceRequest as Z, type GetResourceResponse as _, type BulkCreateResourcesResponse as a, type ReindexTenantRequest as a$, type GetDeletedResourceResponse as a0, type ListDeletedResourcesRequest as a1, type CursorPaging as a2, type ListDeletedResourcesResponse as a3, type CursorPagingMetadata as a4, type Cursors as a5, type RemoveResourceFromTrashBinRequest as a6, type RemoveResourceFromTrashBinResponse as a7, type RestoreResourceFromTrashBinRequest as a8, type RestoreResourceFromTrashBinResponse as a9, type ValueAggregationResult as aA, type RangeAggregationResult as aB, type NestedAggregationResults as aC, type NestedAggregationResultsResultOneOf as aD, type ValueResults as aE, type RangeResults as aF, type AggregationResultsScalarResult as aG, type NestedValueAggregationResult as aH, type ValueResult as aI, type RangeResult as aJ, type ScalarResult as aK, type NestedResultValue as aL, type NestedResultValueResultOneOf as aM, type Results as aN, type DateHistogramResult as aO, type GroupByValueResults as aP, type DateHistogramResults as aQ, type NestedResults as aR, type AggregationResults as aS, type AggregationResultsResultOneOf as aT, type QueryResourcesRequest as aU, type CursorQuery as aV, type CursorQueryPagingMethodOneOf as aW, type QueryResourcesResponse as aX, type CountResourcesRequest as aY, type FixResourceSchedulesRequest as aZ, type FixResourceSchedulesResponse as a_, type UpdateResourceRequest as aa, type UpdateResourceResponse as ab, type BulkUpdateResourcesRequest as ac, type DeleteResourceRequest as ad, type DeleteResourceResponse as ae, type BulkDeleteResourcesRequest as af, type SearchResourcesRequest as ag, type CursorSearch as ah, type CursorSearchPagingMethodOneOf as ai, type Sorting as aj, type Aggregation as ak, type AggregationKindOneOf as al, type RangeBucket as am, type IncludeMissingValuesOptions as an, type ValueAggregation as ao, type ValueAggregationOptionsOneOf as ap, type RangeAggregation as aq, type ScalarAggregation as ar, type DateHistogramAggregation as as, type NestedAggregationItem as at, type NestedAggregationItemKindOneOf as au, type NestedAggregation as av, type GroupByAggregation as aw, type GroupByAggregationKindOneOf as ax, type SearchDetails as ay, type AggregationData as az, type BulkCreateResourcesValidationErrors as b, type ReindexTenantResponse as b0, type DomainEvent as b1, type DomainEventBodyOneOf as b2, type EntityCreatedEvent as b3, type RestoreInfo as b4, type EntityUpdatedEvent as b5, type EntityDeletedEvent as b6, type ActionEvent as b7, type Empty as b8, type MessageEnvelope as b9,
|
|
1942
|
+
export { type GetDeletedResourceRequest as $, AggregationType as A, type BulkCreateResourcesOptions as B, type CreateResourceValidationErrors as C, type Schedule as D, type SpecificLocation as E, type BusinessLocation as F, type WorkingHoursSchedules as G, type EventsSchedule as H, Interval as I, type ExtendedFields as J, type CreateResourceRequest as K, type LocationOptions as L, type MaskedResource as M, NestedAggregationType as N, type CreateResourceResponse as O, type BulkCreateResourcesRequest as P, type BulkResourceResult as Q, type Resource as R, type SearchResourcesResponse as S, type ItemMetadata as T, type UpdateResource as U, type V2WorkingHoursSchedules as V, WebhookIdentityType as W, type ApplicationError as X, type BulkActionMetadata as Y, type GetResourceRequest as Z, type GetResourceResponse as _, type BulkCreateResourcesResponse as a, type ReindexTenantRequest as a$, type GetDeletedResourceResponse as a0, type ListDeletedResourcesRequest as a1, type CursorPaging as a2, type ListDeletedResourcesResponse as a3, type CursorPagingMetadata as a4, type Cursors as a5, type RemoveResourceFromTrashBinRequest as a6, type RemoveResourceFromTrashBinResponse as a7, type RestoreResourceFromTrashBinRequest as a8, type RestoreResourceFromTrashBinResponse as a9, type ValueAggregationResult as aA, type RangeAggregationResult as aB, type NestedAggregationResults as aC, type NestedAggregationResultsResultOneOf as aD, type ValueResults as aE, type RangeResults as aF, type AggregationResultsScalarResult as aG, type NestedValueAggregationResult as aH, type ValueResult as aI, type RangeResult as aJ, type ScalarResult as aK, type NestedResultValue as aL, type NestedResultValueResultOneOf as aM, type Results as aN, type DateHistogramResult as aO, type GroupByValueResults as aP, type DateHistogramResults as aQ, type NestedResults as aR, type AggregationResults as aS, type AggregationResultsResultOneOf as aT, type QueryResourcesRequest as aU, type CursorQuery as aV, type CursorQueryPagingMethodOneOf as aW, type QueryResourcesResponse as aX, type CountResourcesRequest as aY, type FixResourceSchedulesRequest as aZ, type FixResourceSchedulesResponse as a_, type UpdateResourceRequest as aa, type UpdateResourceResponse as ab, type BulkUpdateResourcesRequest as ac, type DeleteResourceRequest as ad, type DeleteResourceResponse as ae, type BulkDeleteResourcesRequest as af, type SearchResourcesRequest as ag, type CursorSearch as ah, type CursorSearchPagingMethodOneOf as ai, type Sorting as aj, type Aggregation as ak, type AggregationKindOneOf as al, type RangeBucket as am, type IncludeMissingValuesOptions as an, type ValueAggregation as ao, type ValueAggregationOptionsOneOf as ap, type RangeAggregation as aq, type ScalarAggregation as ar, type DateHistogramAggregation as as, type NestedAggregationItem as at, type NestedAggregationItemKindOneOf as au, type NestedAggregation as av, type GroupByAggregation as aw, type GroupByAggregationKindOneOf as ax, type SearchDetails as ay, type AggregationData as az, type BulkCreateResourcesValidationErrors as b, type ReindexTenantResponse as b0, type DomainEvent as b1, type DomainEventBodyOneOf as b2, type EntityCreatedEvent as b3, type RestoreInfo as b4, type EntityUpdatedEvent as b5, type EntityDeletedEvent as b6, type ActionEvent as b7, type Empty as b8, type MessageEnvelope as b9, bulkCreateResources as bA, getResource as bB, updateResource as bC, bulkUpdateResources as bD, deleteResource as bE, bulkDeleteResources as bF, queryResources as bG, countResources as bH, type IdentificationData as ba, type IdentificationDataIdOneOf as bb, type AccountInfo as bc, type BaseEventMetadata as bd, type EventMetadata as be, type AccountInfoMetadata as bf, type ResourceSearchSpec as bg, type ResourcesQueryResult as bh, type ResourceQuerySpec as bi, type ManagementTypeWithLiterals as bj, type SortOrderWithLiterals as bk, type SortTypeWithLiterals as bl, type SortDirectionWithLiterals as bm, type MissingValuesWithLiterals as bn, type ScalarTypeWithLiterals as bo, type NestedAggregationTypeWithLiterals as bp, type IntervalWithLiterals as bq, type AggregationTypeWithLiterals as br, type ModeWithLiterals as bs, type WebhookIdentityTypeWithLiterals as bt, type CommonSearchWithEntityContext as bu, type CommonQueryWithEntityContext as bv, onResourceCreated as bw, onResourceDeleted as bx, onResourceUpdated as by, createResource as bz, type UpdateResourceValidationErrors as c, type BulkUpdateResourcesOptions as d, type BulkUpdateResourcesResponse as e, type BulkUpdateResourcesValidationErrors as f, type BulkDeleteResourcesResponse as g, type ResourceSearch as h, type CountResourcesOptions as i, type CountResourcesResponse as j, type ResourceCreatedEnvelope as k, type ResourceDeletedEnvelope as l, type ResourceUpdatedEnvelope as m, type ResourcesQueryBuilder as n, type ResourceQuery as o, ManagementType as p, SortOrder as q, SortType as r, SortDirection as s, typedQueryResources as t, MissingValues as u, ScalarType as v, Mode as w, type ResourceCompositionDetailsOneOf as x, type WorkingHoursSchedule as y, type SingleResource as z };
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { R as Resource, C as CreateResourceValidationErrors, B as BulkCreateResourcesOptions, a as BulkCreateResourcesResponse, b as BulkCreateResourcesValidationErrors, U as UpdateResource, c as UpdateResourceValidationErrors, M as MaskedResource, d as BulkUpdateResourcesOptions, e as BulkUpdateResourcesResponse, f as BulkUpdateResourcesValidationErrors, g as BulkDeleteResourcesResponse, h as ResourceSearch, S as SearchResourcesResponse, i as CountResourcesOptions, j as CountResourcesResponse, k as ResourceCreatedEnvelope, l as ResourceDeletedEnvelope, m as ResourceUpdatedEnvelope, n as ResourcesQueryBuilder, o as ResourceQuery, t as typedQueryResources } from './bookings-resources-v2-resource-resources.universal-
|
|
3
|
-
export { bc as AccountInfo, b7 as ActionEvent, ak as Aggregation, az as AggregationData, al as AggregationKindOneOf, aS as AggregationResults, aT as AggregationResultsResultOneOf, aG as AggregationResultsScalarResult, A as AggregationType,
|
|
2
|
+
import { R as Resource, C as CreateResourceValidationErrors, B as BulkCreateResourcesOptions, a as BulkCreateResourcesResponse, b as BulkCreateResourcesValidationErrors, U as UpdateResource, c as UpdateResourceValidationErrors, M as MaskedResource, d as BulkUpdateResourcesOptions, e as BulkUpdateResourcesResponse, f as BulkUpdateResourcesValidationErrors, g as BulkDeleteResourcesResponse, h as ResourceSearch, S as SearchResourcesResponse, i as CountResourcesOptions, j as CountResourcesResponse, k as ResourceCreatedEnvelope, l as ResourceDeletedEnvelope, m as ResourceUpdatedEnvelope, n as ResourcesQueryBuilder, o as ResourceQuery, t as typedQueryResources } from './bookings-resources-v2-resource-resources.universal-t-njWnKq.js';
|
|
3
|
+
export { bc as AccountInfo, bf as AccountInfoMetadata, b7 as ActionEvent, ak as Aggregation, az as AggregationData, al as AggregationKindOneOf, aS as AggregationResults, aT as AggregationResultsResultOneOf, aG as AggregationResultsScalarResult, A as AggregationType, br as AggregationTypeWithLiterals, X as ApplicationError, bd as BaseEventMetadata, Y as BulkActionMetadata, P as BulkCreateResourcesRequest, af as BulkDeleteResourcesRequest, Q as BulkResourceResult, ac as BulkUpdateResourcesRequest, F as BusinessLocation, bv as CommonQueryWithEntityContext, bu as CommonSearchWithEntityContext, aY as CountResourcesRequest, K as CreateResourceRequest, O as CreateResourceResponse, a2 as CursorPaging, a4 as CursorPagingMetadata, aV as CursorQuery, aW as CursorQueryPagingMethodOneOf, ah as CursorSearch, ai as CursorSearchPagingMethodOneOf, a5 as Cursors, as as DateHistogramAggregation, aO as DateHistogramResult, aQ as DateHistogramResults, ad as DeleteResourceRequest, ae as DeleteResourceResponse, b1 as DomainEvent, b2 as DomainEventBodyOneOf, b8 as Empty, b3 as EntityCreatedEvent, b6 as EntityDeletedEvent, b5 as EntityUpdatedEvent, be as EventMetadata, H as EventsSchedule, J as ExtendedFields, aZ as FixResourceSchedulesRequest, a_ as FixResourceSchedulesResponse, $ as GetDeletedResourceRequest, a0 as GetDeletedResourceResponse, Z as GetResourceRequest, _ as GetResourceResponse, aw as GroupByAggregation, ax as GroupByAggregationKindOneOf, aP as GroupByValueResults, ba as IdentificationData, bb as IdentificationDataIdOneOf, an as IncludeMissingValuesOptions, I as Interval, bq as IntervalWithLiterals, T as ItemMetadata, a1 as ListDeletedResourcesRequest, a3 as ListDeletedResourcesResponse, L as LocationOptions, p as ManagementType, bj as ManagementTypeWithLiterals, b9 as MessageEnvelope, u as MissingValues, bn as MissingValuesWithLiterals, w as Mode, bs as ModeWithLiterals, av as NestedAggregation, at as NestedAggregationItem, au as NestedAggregationItemKindOneOf, aC as NestedAggregationResults, aD as NestedAggregationResultsResultOneOf, N as NestedAggregationType, bp as NestedAggregationTypeWithLiterals, aL as NestedResultValue, aM as NestedResultValueResultOneOf, aR as NestedResults, aH as NestedValueAggregationResult, aU as QueryResourcesRequest, aX as QueryResourcesResponse, aq as RangeAggregation, aB as RangeAggregationResult, am as RangeBucket, aJ as RangeResult, aF as RangeResults, a$ as ReindexTenantRequest, b0 as ReindexTenantResponse, a6 as RemoveResourceFromTrashBinRequest, a7 as RemoveResourceFromTrashBinResponse, x as ResourceCompositionDetailsOneOf, bi as ResourceQuerySpec, bg as ResourceSearchSpec, bh as ResourcesQueryResult, b4 as RestoreInfo, a8 as RestoreResourceFromTrashBinRequest, a9 as RestoreResourceFromTrashBinResponse, aN as Results, ar as ScalarAggregation, aK as ScalarResult, v as ScalarType, bo as ScalarTypeWithLiterals, D as Schedule, ay as SearchDetails, ag as SearchResourcesRequest, z as SingleResource, s as SortDirection, bm as SortDirectionWithLiterals, q as SortOrder, bk as SortOrderWithLiterals, r as SortType, bl as SortTypeWithLiterals, aj as Sorting, E as SpecificLocation, aa as UpdateResourceRequest, ab as UpdateResourceResponse, V as V2WorkingHoursSchedules, ao as ValueAggregation, ap as ValueAggregationOptionsOneOf, aA as ValueAggregationResult, aI as ValueResult, aE as ValueResults, W as WebhookIdentityType, bt as WebhookIdentityTypeWithLiterals, y as WorkingHoursSchedule, G as WorkingHoursSchedules } from './bookings-resources-v2-resource-resources.universal-t-njWnKq.js';
|
|
4
4
|
|
|
5
5
|
declare function createResource$1(httpClient: HttpClient): CreateResourceSignature;
|
|
6
6
|
interface CreateResourceSignature {
|
|
@@ -109,12 +109,7 @@ declare function searchResources$1(httpClient: HttpClient): SearchResourcesSigna
|
|
|
109
109
|
interface SearchResourcesSignature {
|
|
110
110
|
/**
|
|
111
111
|
* Retrieves a list of resources matching the provided search criteria.
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/filtering-and-sorting) for complete filter and sorting options.
|
|
115
112
|
* @param - Search criteria including filter, sort, aggregations, and paging options.
|
|
116
|
-
*
|
|
117
|
-
* Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/filtering-and-sorting) for complete filter and sorting options.
|
|
118
113
|
*/
|
|
119
114
|
(search: ResourceSearch): Promise<NonNullablePaths<SearchResourcesResponse, `resources` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`, 6>>;
|
|
120
115
|
}
|
|
@@ -123,7 +118,7 @@ interface CountResourcesSignature {
|
|
|
123
118
|
/**
|
|
124
119
|
* Counts resources according to given criteria.
|
|
125
120
|
*
|
|
126
|
-
*
|
|
121
|
+
* See [Query Resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/query-resources) for a list of supported filters.
|
|
127
122
|
* @param - Filter to base the count on. See *the supported filters article* ([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)) for a complete list of filtering options.
|
|
128
123
|
*/
|
|
129
124
|
(options?: CountResourcesOptions): Promise<NonNullablePaths<CountResourcesResponse, `count`, 2>>;
|