@wix/auto_sdk_bookings_resources 1.0.19 → 1.0.21
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.typings.d.ts +8 -2
- package/build/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.public.d.ts +6 -3
- package/build/cjs/src/bookings-resources-v2-resource-resources.public.js +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.public.js.map +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.types.d.ts +35 -21
- package/build/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.universal.d.ts +210 -35
- package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js +8 -6
- package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
- package/build/es/index.typings.d.ts +8 -2
- package/build/es/src/bookings-resources-v2-resource-resources.context.d.ts +1 -1
- package/build/es/src/bookings-resources-v2-resource-resources.public.d.ts +6 -3
- package/build/es/src/bookings-resources-v2-resource-resources.public.js +1 -1
- package/build/es/src/bookings-resources-v2-resource-resources.public.js.map +1 -1
- package/build/es/src/bookings-resources-v2-resource-resources.types.d.ts +35 -21
- package/build/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
- package/build/es/src/bookings-resources-v2-resource-resources.universal.d.ts +210 -35
- package/build/es/src/bookings-resources-v2-resource-resources.universal.js +8 -6
- package/build/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -2
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.d.ts +6 -3
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js.map +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.d.ts +35 -21
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.d.ts +210 -35
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js +8 -6
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
- package/build/internal/es/index.typings.d.ts +8 -2
- package/build/internal/es/src/bookings-resources-v2-resource-resources.context.d.ts +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.public.d.ts +6 -3
- package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js.map +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.types.d.ts +35 -21
- package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.d.ts +210 -35
- package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js +8 -6
- package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { SearchResourcesResponse,
|
|
1
|
+
import { SearchResourcesResponse, CursorSearch } from './src/bookings-resources-v2-resource-resources.universal';
|
|
2
2
|
export * from './src/bookings-resources-v2-resource-resources.universal.js';
|
|
3
|
+
/** @hidden */
|
|
4
|
+
export type ResourceSearch = {};
|
|
3
5
|
/**
|
|
4
6
|
* Retrieves a list of resources matching the provided search criteria.
|
|
5
7
|
*
|
|
@@ -7,8 +9,12 @@ export * from './src/bookings-resources-v2-resource-resources.universal.js';
|
|
|
7
9
|
* Refer to the *supported filters article*
|
|
8
10
|
* ([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))
|
|
9
11
|
* for a complete list of supported filters and sorting options.
|
|
12
|
+
* @param search - Search condition. Refer to the *supported filters article*
|
|
13
|
+
* ([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))
|
|
14
|
+
* for a complete list of supported filters and sorting options.
|
|
10
15
|
* @public
|
|
11
16
|
* @documentationMaturity preview
|
|
17
|
+
* @requiredField search
|
|
12
18
|
* @permissionId BOOKINGS.RESOURCE_READ
|
|
13
19
|
* @permissionScope Read Bookings - Public Data
|
|
14
20
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
@@ -24,4 +30,4 @@ export * from './src/bookings-resources-v2-resource-resources.universal.js';
|
|
|
24
30
|
* @applicableIdentity VISITOR
|
|
25
31
|
* @fqn wix.bookings.resources.v2.ResourcesService.SearchResources
|
|
26
32
|
*/
|
|
27
|
-
export declare function searchResources(
|
|
33
|
+
export declare function searchResources(search: CursorSearch): Promise<SearchResourcesResponse>;
|
|
@@ -26,4 +26,4 @@ export declare const onResourceDeleted: ReturnType<typeof createEventModule<type
|
|
|
26
26
|
*/
|
|
27
27
|
export declare const onResourceUpdated: ReturnType<typeof createEventModule<typeof publicOnResourceUpdated>>;
|
|
28
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,
|
|
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, FixResourceSchedulesRequest, FixResourceSchedulesResponse, ReindexTenantRequest, ReindexTenantResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceUpdatedEnvelope, BulkCreateResourcesOptions, UpdateResource, ResourceSearchSpec, ResourcesQueryResult, ResourcesQueryBuilder, CountResourcesOptions, } from './bookings-resources-v2-resource-resources.universal.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { BulkCreateResourcesOptions, BulkCreateResourcesResponse, BulkDeleteResourcesResponse, CountResourcesOptions, CountResourcesResponse, Resource, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceUpdatedEnvelope, ResourcesQueryBuilder,
|
|
2
|
+
import { BulkCreateResourcesOptions, BulkCreateResourcesResponse, BulkDeleteResourcesResponse, CountResourcesOptions, CountResourcesResponse, Resource, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceSearch, ResourceUpdatedEnvelope, ResourcesQueryBuilder, SearchResourcesResponse, UpdateResource } from './bookings-resources-v2-resource-resources.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -99,8 +99,11 @@ interface SearchResourcesSignature {
|
|
|
99
99
|
* Refer to the *supported filters article*
|
|
100
100
|
* ([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))
|
|
101
101
|
* for a complete list of supported filters and sorting options.
|
|
102
|
+
* @param - Search condition. Refer to the *supported filters article*
|
|
103
|
+
* ([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))
|
|
104
|
+
* for a complete list of supported filters and sorting options.
|
|
102
105
|
*/
|
|
103
|
-
(
|
|
106
|
+
(search: ResourceSearch): Promise<SearchResourcesResponse>;
|
|
104
107
|
}
|
|
105
108
|
export declare function queryResources(httpClient: HttpClient): QueryResourcesSignature;
|
|
106
109
|
interface QueryResourcesSignature {
|
|
@@ -140,4 +143,4 @@ interface CountResourcesSignature {
|
|
|
140
143
|
export declare const onResourceCreated: EventDefinition<ResourceCreatedEnvelope, "wix.bookings.resources.v2.resource_created">;
|
|
141
144
|
export declare const onResourceDeleted: EventDefinition<ResourceDeletedEnvelope, "wix.bookings.resources.v2.resource_deleted">;
|
|
142
145
|
export declare const onResourceUpdated: EventDefinition<ResourceUpdatedEnvelope, "wix.bookings.resources.v2.resource_updated">;
|
|
143
|
-
export { ActionEvent, Aggregation, AggregationData, AggregationKindOneOf, AggregationResults, AggregationResultsResultOneOf, AggregationResultsScalarResult, AggregationType, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateResourcesOptions, BulkCreateResourcesRequest, BulkCreateResourcesResponse, BulkDeleteResourcesRequest, BulkDeleteResourcesResponse, BulkResourceResult, BusinessLocation, CountResourcesOptions, CountResourcesRequest, CountResourcesResponse, CreateResourceRequest, CreateResourceResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, CursorSearch, CursorSearchPagingMethodOneOf, Cursors, DateHistogramAggregation, DateHistogramResult, DateHistogramResults, DeleteResourceRequest, DeleteResourceResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, EventsSchedule, ExtendedFields, FixResourceSchedulesRequest, FixResourceSchedulesResponse, GetDeletedResourceRequest, GetDeletedResourceResponse, GetResourceRequest, GetResourceResponse, GroupByAggregation, GroupByAggregationKindOneOf, GroupByValueResults, IdentificationData, IdentificationDataIdOneOf,
|
|
146
|
+
export { ActionEvent, Aggregation, AggregationData, AggregationKindOneOf, AggregationResults, AggregationResultsResultOneOf, AggregationResultsScalarResult, AggregationType, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateResourcesOptions, BulkCreateResourcesRequest, BulkCreateResourcesResponse, BulkDeleteResourcesRequest, BulkDeleteResourcesResponse, BulkResourceResult, BusinessLocation, CountResourcesOptions, CountResourcesRequest, CountResourcesResponse, CreateResourceRequest, CreateResourceResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, CursorSearch, CursorSearchPagingMethodOneOf, Cursors, DateHistogramAggregation, DateHistogramResult, DateHistogramResults, DeleteResourceRequest, DeleteResourceResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, EventsSchedule, ExtendedFields, FixResourceSchedulesRequest, FixResourceSchedulesResponse, GetDeletedResourceRequest, GetDeletedResourceResponse, GetResourceRequest, GetResourceResponse, GroupByAggregation, GroupByAggregationKindOneOf, GroupByValueResults, IdentificationData, IdentificationDataIdOneOf, IncludeMissingValuesOptions, Interval, ItemMetadata, ListDeletedResourcesRequest, ListDeletedResourcesResponse, LocationOptions, ManagementType, MessageEnvelope, MissingValues, Mode, NestedAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregationResults, NestedAggregationResultsResultOneOf, NestedAggregationType, NestedResultValue, NestedResultValueResultOneOf, NestedResults, NestedValueAggregationResult, QueryResourcesRequest, QueryResourcesResponse, RangeAggregation, RangeAggregationResult, RangeBucket, RangeResult, RangeResults, ReindexTenantRequest, ReindexTenantResponse, RemoveResourceFromTrashBinRequest, RemoveResourceFromTrashBinResponse, Resource, ResourceCompositionDetailsOneOf, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceSearchSpec, ResourceUpdatedEnvelope, ResourcesQueryBuilder, ResourcesQueryResult, RestoreInfo, RestoreResourceFromTrashBinRequest, RestoreResourceFromTrashBinResponse, Results, ScalarAggregation, ScalarResult, ScalarType, Schedule, SearchDetails, SearchResourcesRequest, SearchResourcesResponse, SingleResource, SortDirection, SortOrder, SortType, Sorting, SpecificLocation, UpdateResource, UpdateResourceRequest, UpdateResourceResponse, V2WorkingHoursSchedules, ValueAggregation, ValueAggregationOptionsOneOf, ValueAggregationResult, ValueResult, ValueResults, WebhookIdentityType, WorkingHoursSchedule, WorkingHoursSchedules, } from './bookings-resources-v2-resource-resources.universal.js';
|
|
@@ -44,7 +44,7 @@ function bulkDeleteResources(httpClient) {
|
|
|
44
44
|
}
|
|
45
45
|
exports.bulkDeleteResources = bulkDeleteResources;
|
|
46
46
|
function searchResources(httpClient) {
|
|
47
|
-
return (
|
|
47
|
+
return (search) => (0, bookings_resources_v2_resource_resources_universal_js_1.searchResources)(search,
|
|
48
48
|
// @ts-ignore
|
|
49
49
|
{ httpClient });
|
|
50
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-resources-v2-resource-resources.public.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA+E;AAC/E,mIAuBiE;AAEpD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,QAA4C,EAAE,EAAE,CACtD,IAAA,sEAAuB,EACrB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,wCASC;AA2BD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CACL,SAA+C,EAC/C,OAAoC,EACpC,EAAE,CACF,IAAA,2EAA4B,EAC1B,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,kDAaC;AAkBD,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,UAAkB,EAAE,EAAE,CAC5B,IAAA,mEAAoB,EAClB,UAAU;IACV,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,kCAOC;AAWD,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CACL,GAAW,EACX,QAAsD,EACtD,EAAE,CACF,IAAA,sEAAuB,EACrB,GAAG,EACH,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,wCAaC;AAeD,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,UAAkB,EAAE,EAAE,CAC5B,IAAA,sEAAuB,EACrB,UAAU;IACV,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,wCASC;AAgBD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,GAAa,EAAE,EAAE,CACvB,IAAA,2EAA4B,EAC1B,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,kDASC;AAeD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"bookings-resources-v2-resource-resources.public.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA+E;AAC/E,mIAuBiE;AAEpD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,QAA4C,EAAE,EAAE,CACtD,IAAA,sEAAuB,EACrB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,wCASC;AA2BD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CACL,SAA+C,EAC/C,OAAoC,EACpC,EAAE,CACF,IAAA,2EAA4B,EAC1B,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,kDAaC;AAkBD,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,UAAkB,EAAE,EAAE,CAC5B,IAAA,mEAAoB,EAClB,UAAU;IACV,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,kCAOC;AAWD,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CACL,GAAW,EACX,QAAsD,EACtD,EAAE,CACF,IAAA,sEAAuB,EACrB,GAAG,EACH,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,wCAaC;AAeD,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,UAAkB,EAAE,EAAE,CAC5B,IAAA,sEAAuB,EACrB,UAAU;I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,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,uBAAuB,EAAE;YACjC,EAAE,IAAI,EAAE,uBAAuB,EAAE;YACjC,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAA2B,CAAC;AAChB,QAAA,iBAAiB,GAAG,IAAA,2BAAe,EAC9C,4CAA4C,EAC5C,IAAI,EACJ,CAAC,KAA8B,EAAE,EAAE,CACjC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAA2B,CAAC;AAE7B,iIA4HiE;AApH/D,wJAAA,eAAe,OAAA;AAiDf,iJAAA,QAAQ,OAAA;AAKR,uJAAA,cAAc,OAAA;AAEd,sJAAA,aAAa,OAAA;AACb,6IAAA,IAAI,OAAA;AAMJ,8JAAA,qBAAqB,OAAA;AA8BrB,mJAAA,UAAU,OAAA;AAMV,sJAAA,aAAa,OAAA;AACb,kJAAA,SAAS,OAAA;AACT,iJAAA,QAAQ,OAAA;AAYR,4JAAA,mBAAmB,OAAA"}
|
|
@@ -194,6 +194,8 @@ export declare enum ManagementType {
|
|
|
194
194
|
/** The resource is managed by a Wix user. */
|
|
195
195
|
WIX_USER = "WIX_USER"
|
|
196
196
|
}
|
|
197
|
+
/** @enumType */
|
|
198
|
+
export type ManagementTypeWithLiterals = ManagementType | 'WIX_USER';
|
|
197
199
|
export interface ExtendedFields {
|
|
198
200
|
/**
|
|
199
201
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -451,12 +453,14 @@ export interface Sorting {
|
|
|
451
453
|
*/
|
|
452
454
|
fieldName?: string;
|
|
453
455
|
/** Sort order. */
|
|
454
|
-
order?:
|
|
456
|
+
order?: SortOrderWithLiterals;
|
|
455
457
|
}
|
|
456
458
|
export declare enum SortOrder {
|
|
457
459
|
ASC = "ASC",
|
|
458
460
|
DESC = "DESC"
|
|
459
461
|
}
|
|
462
|
+
/** @enumType */
|
|
463
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
460
464
|
export interface Aggregation extends AggregationKindOneOf {
|
|
461
465
|
/** Value aggregation */
|
|
462
466
|
value?: ValueAggregation;
|
|
@@ -474,7 +478,7 @@ export interface Aggregation extends AggregationKindOneOf {
|
|
|
474
478
|
*/
|
|
475
479
|
name?: string | null;
|
|
476
480
|
/** Type of aggregation, client must provide matching aggregation field below */
|
|
477
|
-
type?:
|
|
481
|
+
type?: AggregationTypeWithLiterals;
|
|
478
482
|
/**
|
|
479
483
|
* Field to aggregate by, use dot notation to specify json path
|
|
480
484
|
* @maxLength 200
|
|
@@ -513,18 +517,24 @@ export declare enum SortType {
|
|
|
513
517
|
/** Should sort by value of the field alphabetically */
|
|
514
518
|
VALUE = "VALUE"
|
|
515
519
|
}
|
|
520
|
+
/** @enumType */
|
|
521
|
+
export type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';
|
|
516
522
|
export declare enum SortDirection {
|
|
517
523
|
/** Should sort in descending order */
|
|
518
524
|
DESC = "DESC",
|
|
519
525
|
/** Should sort in ascending order */
|
|
520
526
|
ASC = "ASC"
|
|
521
527
|
}
|
|
528
|
+
/** @enumType */
|
|
529
|
+
export type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';
|
|
522
530
|
export declare enum MissingValues {
|
|
523
531
|
/** Should missing values be excluded from the aggregation results */
|
|
524
532
|
EXCLUDE = "EXCLUDE",
|
|
525
533
|
/** Should missing values be included in the aggregation results */
|
|
526
534
|
INCLUDE = "INCLUDE"
|
|
527
535
|
}
|
|
536
|
+
/** @enumType */
|
|
537
|
+
export type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';
|
|
528
538
|
export interface IncludeMissingValuesOptions {
|
|
529
539
|
/**
|
|
530
540
|
* Can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
|
|
@@ -541,17 +551,19 @@ export declare enum ScalarType {
|
|
|
541
551
|
/** Maximum value */
|
|
542
552
|
MAX = "MAX"
|
|
543
553
|
}
|
|
554
|
+
/** @enumType */
|
|
555
|
+
export type ScalarTypeWithLiterals = ScalarType | 'UNKNOWN_SCALAR_TYPE' | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
|
|
544
556
|
export interface ValueAggregation extends ValueAggregationOptionsOneOf {
|
|
545
557
|
/** Options for including missing values */
|
|
546
558
|
includeOptions?: IncludeMissingValuesOptions;
|
|
547
559
|
/** Should sort by number of matches or value of the field */
|
|
548
|
-
sortType?:
|
|
560
|
+
sortType?: SortTypeWithLiterals;
|
|
549
561
|
/** Should sort in ascending or descending order */
|
|
550
|
-
sortDirection?:
|
|
562
|
+
sortDirection?: SortDirectionWithLiterals;
|
|
551
563
|
/** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
|
|
552
564
|
limit?: number | null;
|
|
553
565
|
/** Should missing values be included or excluded from the aggregation results. Default is EXCLUDE */
|
|
554
|
-
missingValues?:
|
|
566
|
+
missingValues?: MissingValuesWithLiterals;
|
|
555
567
|
}
|
|
556
568
|
/** @oneof */
|
|
557
569
|
export interface ValueAggregationOptionsOneOf {
|
|
@@ -569,6 +581,8 @@ export declare enum NestedAggregationType {
|
|
|
569
581
|
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
570
582
|
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
571
583
|
}
|
|
584
|
+
/** @enumType */
|
|
585
|
+
export type NestedAggregationTypeWithLiterals = NestedAggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM';
|
|
572
586
|
export interface RangeAggregation {
|
|
573
587
|
/**
|
|
574
588
|
* List of range buckets, where during aggregation each entity will be placed in the first bucket where its value falls into based on provided range bounds
|
|
@@ -578,11 +592,11 @@ export interface RangeAggregation {
|
|
|
578
592
|
}
|
|
579
593
|
export interface ScalarAggregation {
|
|
580
594
|
/** Define the operator for the scalar aggregation */
|
|
581
|
-
type?:
|
|
595
|
+
type?: ScalarTypeWithLiterals;
|
|
582
596
|
}
|
|
583
597
|
export interface DateHistogramAggregation {
|
|
584
598
|
/** Interval for date histogram aggregation */
|
|
585
|
-
interval?:
|
|
599
|
+
interval?: IntervalWithLiterals;
|
|
586
600
|
}
|
|
587
601
|
export declare enum Interval {
|
|
588
602
|
UNKNOWN_INTERVAL = "UNKNOWN_INTERVAL",
|
|
@@ -601,6 +615,8 @@ export declare enum Interval {
|
|
|
601
615
|
/** Second interval */
|
|
602
616
|
SECOND = "SECOND"
|
|
603
617
|
}
|
|
618
|
+
/** @enumType */
|
|
619
|
+
export type IntervalWithLiterals = Interval | 'UNKNOWN_INTERVAL' | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
|
|
604
620
|
export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
605
621
|
/** Value aggregation */
|
|
606
622
|
value?: ValueAggregation;
|
|
@@ -616,7 +632,7 @@ export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
|
616
632
|
*/
|
|
617
633
|
name?: string | null;
|
|
618
634
|
/** Type of aggregation, client must provide matching aggregation field below */
|
|
619
|
-
type?:
|
|
635
|
+
type?: NestedAggregationTypeWithLiterals;
|
|
620
636
|
/**
|
|
621
637
|
* Field to aggregate by, use dont notation to specify json path
|
|
622
638
|
* @maxLength 200
|
|
@@ -647,6 +663,8 @@ export declare enum AggregationType {
|
|
|
647
663
|
/** Multi-level aggregation, where each next aggregation is nested within previous one */
|
|
648
664
|
NESTED = "NESTED"
|
|
649
665
|
}
|
|
666
|
+
/** @enumType */
|
|
667
|
+
export type AggregationTypeWithLiterals = AggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
|
|
650
668
|
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
|
|
651
669
|
export interface NestedAggregation {
|
|
652
670
|
/**
|
|
@@ -677,7 +695,7 @@ export interface GroupByAggregationKindOneOf {
|
|
|
677
695
|
}
|
|
678
696
|
export interface SearchDetails {
|
|
679
697
|
/** Defines how separate search terms in `expression` are combined */
|
|
680
|
-
mode?:
|
|
698
|
+
mode?: ModeWithLiterals;
|
|
681
699
|
/**
|
|
682
700
|
* Search term or expression
|
|
683
701
|
* @maxLength 100
|
|
@@ -698,6 +716,8 @@ export declare enum Mode {
|
|
|
698
716
|
/** All search terms must be present */
|
|
699
717
|
AND = "AND"
|
|
700
718
|
}
|
|
719
|
+
/** @enumType */
|
|
720
|
+
export type ModeWithLiterals = Mode | 'OR' | 'AND';
|
|
701
721
|
export interface SearchResourcesResponse {
|
|
702
722
|
/** Retrieved resources. */
|
|
703
723
|
resources?: Resource[];
|
|
@@ -743,7 +763,7 @@ export interface NestedAggregationResults extends NestedAggregationResultsResult
|
|
|
743
763
|
*/
|
|
744
764
|
name?: string;
|
|
745
765
|
/** Type of aggregation that matches result */
|
|
746
|
-
type?:
|
|
766
|
+
type?: AggregationTypeWithLiterals;
|
|
747
767
|
/**
|
|
748
768
|
* Field to aggregate by, matches the one provided in request
|
|
749
769
|
* @maxLength 200
|
|
@@ -775,7 +795,7 @@ export interface RangeResults {
|
|
|
775
795
|
}
|
|
776
796
|
export interface AggregationResultsScalarResult {
|
|
777
797
|
/** Type of scalar aggregation */
|
|
778
|
-
type?:
|
|
798
|
+
type?: ScalarTypeWithLiterals;
|
|
779
799
|
/** Value of the scalar aggregation */
|
|
780
800
|
value?: number;
|
|
781
801
|
}
|
|
@@ -887,7 +907,7 @@ export interface AggregationResults extends AggregationResultsResultOneOf {
|
|
|
887
907
|
*/
|
|
888
908
|
name?: string;
|
|
889
909
|
/** Type of aggregation that must match provided kind as derived from search request */
|
|
890
|
-
type?:
|
|
910
|
+
type?: AggregationTypeWithLiterals;
|
|
891
911
|
/**
|
|
892
912
|
* Field to aggregate by as derived from search request
|
|
893
913
|
* @maxLength 200
|
|
@@ -965,14 +985,6 @@ export interface CountResourcesResponse {
|
|
|
965
985
|
/** Total number of resources matching the filter. */
|
|
966
986
|
count?: number;
|
|
967
987
|
}
|
|
968
|
-
export interface ImportResourceRequest {
|
|
969
|
-
/** Resource to import. */
|
|
970
|
-
resource?: Resource;
|
|
971
|
-
}
|
|
972
|
-
export interface ImportResourceResponse {
|
|
973
|
-
/** Imported resource. */
|
|
974
|
-
resource?: Resource;
|
|
975
|
-
}
|
|
976
988
|
export interface FixResourceSchedulesRequest {
|
|
977
989
|
/**
|
|
978
990
|
* ID of the resource to fix schedules for.
|
|
@@ -1094,7 +1106,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
1094
1106
|
*/
|
|
1095
1107
|
appId?: string;
|
|
1096
1108
|
/** @readonly */
|
|
1097
|
-
identityType?:
|
|
1109
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1098
1110
|
}
|
|
1099
1111
|
/** @oneof */
|
|
1100
1112
|
export interface IdentificationDataIdOneOf {
|
|
@@ -1126,3 +1138,5 @@ export declare enum WebhookIdentityType {
|
|
|
1126
1138
|
WIX_USER = "WIX_USER",
|
|
1127
1139
|
APP = "APP"
|
|
1128
1140
|
}
|
|
1141
|
+
/** @enumType */
|
|
1142
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-resources-v2-resource-resources.types.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.types.ts"],"names":[],"mappings":";;;AA0MA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6CAA6C;IAC7C,uCAAqB,CAAA;AACvB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;
|
|
1
|
+
{"version":3,"file":"bookings-resources-v2-resource-resources.types.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.types.ts"],"names":[],"mappings":";;;AA0MA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6CAA6C;IAC7C,uCAAqB,CAAA;AACvB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAsSD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA0DD,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,uCAAuC;IACvC,2BAAe,CAAA;IACf,uDAAuD;IACvD,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAKD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,sCAAsC;IACtC,8BAAa,CAAA;IACb,qCAAqC;IACrC,4BAAW,CAAA;AACb,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAKD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,qEAAqE;IACrE,oCAAmB,CAAA;IACnB,mEAAmE;IACnE,oCAAmB,CAAA;AACrB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAaD,IAAY,UAQX;AARD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,+BAA+B;IAC/B,+CAAiC,CAAA;IACjC,oBAAoB;IACpB,yBAAW,CAAA;IACX,oBAAoB;IACpB,yBAAW,CAAA;AACb,CAAC,EARW,UAAU,0BAAV,UAAU,QAQrB;AA6BD,IAAY,qBAUX;AAVD,WAAY,qBAAqB;IAC/B,8EAAqD,CAAA;IACrD,uF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