@wix/auto_sdk_bookings_resource-types 1.0.0 → 1.0.2
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/src/bookings-resources-v2-resource-type-resource-types.http.d.ts +12 -7
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.http.js +12 -7
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.http.js.map +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.public.d.ts +15 -10
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.public.js.map +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +61 -28
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.types.js.map +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts +88 -42
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js +15 -10
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +1 -1
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.http.d.ts +12 -7
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.http.js +12 -7
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.http.js.map +1 -1
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.public.d.ts +15 -10
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.public.js.map +1 -1
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +61 -28
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.types.js.map +1 -1
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts +88 -42
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.universal.js +15 -10
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.http.d.ts +12 -7
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.http.js +12 -7
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.http.js.map +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.public.d.ts +15 -10
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.public.js.map +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +61 -28
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.types.js.map +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts +88 -42
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js +15 -10
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.http.d.ts +12 -7
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.http.js +12 -7
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.http.js.map +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.public.d.ts +15 -10
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.public.js.map +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +61 -28
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.types.js.map +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts +88 -42
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.universal.js +15 -10
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
2
|
/** Creates a new resource type. */
|
|
3
3
|
export declare function createResourceType(payload: object): RequestOptionsFactory<any>;
|
|
4
|
-
/** Retrieves a resource type
|
|
4
|
+
/** Retrieves a resource type. */
|
|
5
5
|
export declare function getResourceType(payload: object): RequestOptionsFactory<any>;
|
|
6
6
|
/**
|
|
7
7
|
* Updates a resource type.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
*
|
|
10
|
+
* Each time the resource type is updated, `revision` increments by 1. You must
|
|
11
|
+
* include current revision of the resource type when updating it. This ensures
|
|
12
|
+
* you're working with the latest service information and prevents unintended overwrites.
|
|
11
13
|
*/
|
|
12
14
|
export declare function updateResourceType(payload: object): RequestOptionsFactory<any>;
|
|
13
15
|
/**
|
|
14
16
|
* Deletes a resource type.
|
|
15
17
|
*
|
|
16
|
-
*
|
|
18
|
+
*
|
|
19
|
+
* Deleting a resource type also automatically deletes all resources connected to it.
|
|
17
20
|
*/
|
|
18
21
|
export declare function deleteResourceType(payload: object): RequestOptionsFactory<any>;
|
|
19
22
|
/**
|
|
@@ -36,9 +39,11 @@ export declare function deleteResourceType(payload: object): RequestOptionsFacto
|
|
|
36
39
|
*/
|
|
37
40
|
export declare function queryResourceTypes(payload: object): RequestOptionsFactory<any>;
|
|
38
41
|
/**
|
|
39
|
-
* Counts resource types
|
|
42
|
+
* Counts resource types, given the provided filtering.
|
|
43
|
+
*
|
|
40
44
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
45
|
+
* Refer to the *supported filters article*
|
|
46
|
+
* ([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))
|
|
47
|
+
* for a complete list of supported filters.
|
|
43
48
|
*/
|
|
44
49
|
export declare function countResourceTypes(payload: object): RequestOptionsFactory<any>;
|
|
@@ -79,7 +79,7 @@ function createResourceType(payload) {
|
|
|
79
79
|
return __createResourceType;
|
|
80
80
|
}
|
|
81
81
|
exports.createResourceType = createResourceType;
|
|
82
|
-
/** Retrieves a resource type
|
|
82
|
+
/** Retrieves a resource type. */
|
|
83
83
|
function getResourceType(payload) {
|
|
84
84
|
function __getResourceType({ host }) {
|
|
85
85
|
const metadata = {
|
|
@@ -111,8 +111,10 @@ exports.getResourceType = getResourceType;
|
|
|
111
111
|
/**
|
|
112
112
|
* Updates a resource type.
|
|
113
113
|
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
114
|
+
*
|
|
115
|
+
* Each time the resource type is updated, `revision` increments by 1. You must
|
|
116
|
+
* include current revision of the resource type when updating it. This ensures
|
|
117
|
+
* you're working with the latest service information and prevents unintended overwrites.
|
|
116
118
|
*/
|
|
117
119
|
function updateResourceType(payload) {
|
|
118
120
|
function __updateResourceType({ host }) {
|
|
@@ -158,7 +160,8 @@ exports.updateResourceType = updateResourceType;
|
|
|
158
160
|
/**
|
|
159
161
|
* Deletes a resource type.
|
|
160
162
|
*
|
|
161
|
-
*
|
|
163
|
+
*
|
|
164
|
+
* Deleting a resource type also automatically deletes all resources connected to it.
|
|
162
165
|
*/
|
|
163
166
|
function deleteResourceType(payload) {
|
|
164
167
|
function __deleteResourceType({ host }) {
|
|
@@ -226,10 +229,12 @@ function queryResourceTypes(payload) {
|
|
|
226
229
|
}
|
|
227
230
|
exports.queryResourceTypes = queryResourceTypes;
|
|
228
231
|
/**
|
|
229
|
-
* Counts resource types
|
|
232
|
+
* Counts resource types, given the provided filtering.
|
|
233
|
+
*
|
|
230
234
|
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
235
|
+
* Refer to the *supported filters article*
|
|
236
|
+
* ([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))
|
|
237
|
+
* for a complete list of supported filters.
|
|
233
238
|
*/
|
|
234
239
|
function countResourceTypes(payload) {
|
|
235
240
|
function __countResourceTypes({ host }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-resources-v2-resource-type-resource-types.http.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-type-resource-types.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAk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AAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,0BAA0B,EAAE;wBACpC,EAAE,IAAI,EAAE,0BAA0B,EAAE;qBACrC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAzCD,gDAyCC;AAED,
|
|
1
|
+
{"version":3,"file":"bookings-resources-v2-resource-type-resource-types.http.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-type-resource-types.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,iEAAiE,CACxE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,8BAA8B;aACzC;YACD;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,8BAA8B;aACzC;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,8BAA8B;aACzC;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,8BAA8B;aACzC;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,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;qBACtC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAhCD,gDAgCC;AAED;;;;;;;GAOG;AACH,SAAgB,kBAAkB,CAChC,OAAe;IAEf,SAAS,oBAAoB,CAAC,EAAE,IAAI,EAAO;QACzC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,yCAAyC;YACrD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,iFAAiF;YACnF,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,iEAAiE,CAAC;gBACrE,SAAS,EAAE,oCAAoC;gBAC/C,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAtBD,gDAsBC"}
|
|
@@ -7,17 +7,17 @@ export declare function createResourceType(httpClient: HttpClient): CreateResour
|
|
|
7
7
|
interface CreateResourceTypeSignature {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new resource type.
|
|
10
|
-
* @param - Resource type to
|
|
11
|
-
* @returns
|
|
10
|
+
* @param - Resource type to create.
|
|
11
|
+
* @returns Created resource type.
|
|
12
12
|
*/
|
|
13
13
|
(resourceType: ResourceType): Promise<ResourceType & ResourceTypeNonNullableFields>;
|
|
14
14
|
}
|
|
15
15
|
export declare function getResourceType(httpClient: HttpClient): GetResourceTypeSignature;
|
|
16
16
|
interface GetResourceTypeSignature {
|
|
17
17
|
/**
|
|
18
|
-
* Retrieves a resource type
|
|
18
|
+
* Retrieves a resource type.
|
|
19
19
|
* @param - ID of the resource type to retrieve.
|
|
20
|
-
* @returns
|
|
20
|
+
* @returns Retrieved resource type.
|
|
21
21
|
*/
|
|
22
22
|
(resourceTypeId: string): Promise<ResourceType & ResourceTypeNonNullableFields>;
|
|
23
23
|
}
|
|
@@ -26,8 +26,10 @@ interface UpdateResourceTypeSignature {
|
|
|
26
26
|
/**
|
|
27
27
|
* Updates a resource type.
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
29
|
+
*
|
|
30
|
+
* Each time the resource type is updated, `revision` increments by 1. You must
|
|
31
|
+
* include current revision of the resource type when updating it. This ensures
|
|
32
|
+
* you're working with the latest service information and prevents unintended overwrites.
|
|
31
33
|
* @param - Resource type ID.
|
|
32
34
|
* @returns Updated resource type.
|
|
33
35
|
*/
|
|
@@ -38,7 +40,8 @@ interface DeleteResourceTypeSignature {
|
|
|
38
40
|
/**
|
|
39
41
|
* Deletes a resource type.
|
|
40
42
|
*
|
|
41
|
-
*
|
|
43
|
+
*
|
|
44
|
+
* Deleting a resource type also automatically deletes all resources connected to it.
|
|
42
45
|
* @param - ID of the resource type to delete.
|
|
43
46
|
*/
|
|
44
47
|
(resourceTypeId: string): Promise<void>;
|
|
@@ -68,10 +71,12 @@ interface QueryResourceTypesSignature {
|
|
|
68
71
|
export declare function countResourceTypes(httpClient: HttpClient): CountResourceTypesSignature;
|
|
69
72
|
interface CountResourceTypesSignature {
|
|
70
73
|
/**
|
|
71
|
-
* Counts resource types
|
|
74
|
+
* Counts resource types, given the provided filtering.
|
|
75
|
+
*
|
|
72
76
|
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
77
|
+
* Refer to the *supported filters article*
|
|
78
|
+
* ([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))
|
|
79
|
+
* for a complete list of supported filters.
|
|
75
80
|
* @param - Filter to base the count on. See
|
|
76
81
|
* [queryResourceTypes()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/query-resource-types)
|
|
77
82
|
* for supported filters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-resources-v2-resource-type-resource-types.public.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-type-resource-types.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,uJAkB2E;AAE9D,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,kBAAkB,CAChC,UAAsB;IAEtB,OAAO,CAAC,YAA0B,EAAE,EAAE,CACpC,IAAA,oFAA2B,EACzB,YAAY;IACZ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,gDASC;AAaD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,cAAsB,EAAE,EAAE,CAChC,IAAA,iFAAwB,EACtB,cAAc;IACd,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0CASC;AAaD,SAAgB,kBAAkB,CAChC,UAAsB;IAEtB,OAAO,CAAC,GAAkB,EAAE,YAAgC,EAAE,EAAE,CAC9D,IAAA,oFAA2B,EACzB,GAAG,EACH,YAAY;IACZ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,gDAUC;
|
|
1
|
+
{"version":3,"file":"bookings-resources-v2-resource-type-resource-types.public.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-type-resource-types.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,uJAkB2E;AAE9D,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,kBAAkB,CAChC,UAAsB;IAEtB,OAAO,CAAC,YAA0B,EAAE,EAAE,CACpC,IAAA,oFAA2B,EACzB,YAAY;IACZ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,gDASC;AAaD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,cAAsB,EAAE,EA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,EAClD,iDAAiD,EACjD,IAAI,EACJ,CAAC,KAAkC,EAAE,EAAE,CACrC,IAAA,gEAAuC,EACrC,IAAA,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,EAA+B,CAAC;AACpB,QAAA,qBAAqB,GAAG,IAAA,2BAAe,EAClD,iDAAiD,EACjD,IAAI,EACJ,CAAC,KAAkC,EAAE,EAAE,CACrC,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,EAA+B,CAAC;AAEjC,qJAwD2E;AAhDzE,2KAAA,wBAAwB,OAAA;AA8BxB,kKAAA,eAAe,OAAA;AAUf,4JAAA,SAAS,OAAA;AAOT,sKAAA,mBAAmB,OAAA"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* A resource type is a classification of resources. For example room, equipment,
|
|
3
|
+
* or vehicle. Customers can only book *services*
|
|
4
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction))
|
|
5
|
+
* if at least 1 *resource*
|
|
6
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction))
|
|
7
|
+
* for every resource type connected to the service is available during the requested time.
|
|
8
|
+
*/
|
|
2
9
|
export interface ResourceType {
|
|
3
10
|
/**
|
|
4
11
|
* Resource type ID.
|
|
@@ -13,54 +20,59 @@ export interface ResourceType {
|
|
|
13
20
|
*/
|
|
14
21
|
revision?: string | null;
|
|
15
22
|
/**
|
|
16
|
-
*
|
|
23
|
+
* Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created.
|
|
17
24
|
* @readonly
|
|
18
25
|
*/
|
|
19
26
|
createdDate?: Date | null;
|
|
20
27
|
/**
|
|
21
|
-
*
|
|
28
|
+
* Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated.
|
|
22
29
|
* @readonly
|
|
23
30
|
*/
|
|
24
31
|
updatedDate?: Date | null;
|
|
25
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Name of the resource type. For example, `meeting room`. The name must be
|
|
34
|
+
* unique per site.
|
|
35
|
+
*/
|
|
26
36
|
name?: string | null;
|
|
27
37
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
28
38
|
extendedFields?: ExtendedFields;
|
|
29
39
|
}
|
|
30
40
|
export interface ResourceCounts {
|
|
31
41
|
/**
|
|
32
|
-
*
|
|
42
|
+
* Total number of resources connected to the type.
|
|
33
43
|
* @readonly
|
|
34
44
|
*/
|
|
35
45
|
total?: number | null;
|
|
36
46
|
/**
|
|
37
|
-
* Whether
|
|
47
|
+
* Whether at least 1 resource of the type is available in all business *locations*
|
|
48
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).
|
|
38
49
|
* @readonly
|
|
39
50
|
*/
|
|
40
51
|
hasResourcesInAllLocations?: boolean | null;
|
|
41
52
|
/**
|
|
42
|
-
* Whether
|
|
53
|
+
* Whether at least 1 resource of the type is available in customer locations.
|
|
43
54
|
* @readonly
|
|
44
55
|
*/
|
|
45
56
|
hasResourcesInCustomerLocations?: boolean | null;
|
|
46
57
|
/**
|
|
47
|
-
* Whether
|
|
58
|
+
* Whether at least 1 resource of the type is available in custom business locations.
|
|
48
59
|
* @readonly
|
|
49
60
|
*/
|
|
50
61
|
hasResourcesInCustomLocations?: boolean | null;
|
|
51
62
|
/**
|
|
52
|
-
* Number of distinct business locations
|
|
63
|
+
* Number of distinct business locations with resources connected to the type.
|
|
53
64
|
* @readonly
|
|
54
65
|
*/
|
|
55
66
|
distinctBusinessLocationsCount?: number | null;
|
|
56
67
|
/**
|
|
57
|
-
*
|
|
68
|
+
* IDs of all business locations with resources connected to the type. If there
|
|
69
|
+
* are more than 50 location IDs, only the first 50 IDs are returned.
|
|
58
70
|
* @readonly
|
|
59
71
|
*/
|
|
60
72
|
distinctLocationIds?: DistinctLocationIds;
|
|
61
73
|
}
|
|
62
74
|
export interface DistinctLocationIds {
|
|
63
|
-
/**
|
|
75
|
+
/** IDs of the business locations with a resource connected to the type. */
|
|
64
76
|
values?: string[];
|
|
65
77
|
}
|
|
66
78
|
export interface ExtendedFields {
|
|
@@ -75,36 +87,47 @@ export interface ExtendedFields {
|
|
|
75
87
|
namespaces?: Record<string, Record<string, any>>;
|
|
76
88
|
}
|
|
77
89
|
export interface CreateResourceTypeRequest {
|
|
78
|
-
/** Resource type to
|
|
90
|
+
/** Resource type to create. */
|
|
79
91
|
resourceType: ResourceType;
|
|
80
92
|
}
|
|
81
93
|
export interface LocationOptions {
|
|
82
94
|
/**
|
|
83
|
-
*
|
|
95
|
+
* Whether the resource is available in all *business locations*
|
|
96
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).
|
|
97
|
+
*
|
|
98
|
+
* - `true`: The resource is available in all business locations.
|
|
99
|
+
* - `false`: The resource is available only in specific locations.
|
|
100
|
+
*
|
|
84
101
|
* Default: `false`
|
|
85
102
|
*/
|
|
86
103
|
availableInAllLocations?: boolean | null;
|
|
87
|
-
/**
|
|
88
|
-
* Details of specific locations. It must be left empty if `availableInAllLocations` is `true`.
|
|
89
|
-
* If supplied then the field `specificLocationOptions.availableInBusinessLocations` must be set to `true`.
|
|
90
|
-
*/
|
|
104
|
+
/** Details of resource availability in specific locations. */
|
|
91
105
|
specificLocationOptions?: SpecificLocation;
|
|
92
106
|
}
|
|
93
107
|
export interface SpecificLocation {
|
|
94
108
|
/**
|
|
95
|
-
*
|
|
109
|
+
* Whether the resource is available in *business locations*
|
|
110
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).
|
|
111
|
+
*
|
|
112
|
+
* - `true`: The resource is available in business locations.
|
|
113
|
+
* - `false`: The resource isn't available in business locations.
|
|
96
114
|
*
|
|
97
115
|
* Default: `false`
|
|
98
116
|
*/
|
|
99
117
|
availableInBusinessLocations?: boolean | null;
|
|
100
118
|
/**
|
|
101
|
-
* Information about business locations
|
|
102
|
-
*
|
|
119
|
+
* Information about the business locations where the resource is available.
|
|
120
|
+
* Not returned, if the resource is available in either all business locations
|
|
121
|
+
* or in no business location.
|
|
122
|
+
* You can specify up to 5 business locations.
|
|
103
123
|
*/
|
|
104
124
|
businessLocations?: BusinessLocation[];
|
|
105
125
|
}
|
|
106
126
|
export interface BusinessLocation {
|
|
107
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* ID of the business *location*
|
|
129
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)).
|
|
130
|
+
*/
|
|
108
131
|
locationId?: string | null;
|
|
109
132
|
}
|
|
110
133
|
export declare enum RequestedFields {
|
|
@@ -113,7 +136,7 @@ export declare enum RequestedFields {
|
|
|
113
136
|
DISTINCT_RESOURCE_LOCATIONS = "DISTINCT_RESOURCE_LOCATIONS"
|
|
114
137
|
}
|
|
115
138
|
export interface CreateResourceTypeResponse {
|
|
116
|
-
/**
|
|
139
|
+
/** Created resource type. */
|
|
117
140
|
resourceType?: ResourceType;
|
|
118
141
|
}
|
|
119
142
|
export declare enum CreateResourceTypeErrors {
|
|
@@ -126,7 +149,7 @@ export interface GetResourceTypeRequest {
|
|
|
126
149
|
resourceTypeId: string;
|
|
127
150
|
}
|
|
128
151
|
export interface GetResourceTypeResponse {
|
|
129
|
-
/**
|
|
152
|
+
/** Retrieved resource type. */
|
|
130
153
|
resourceType?: ResourceType;
|
|
131
154
|
}
|
|
132
155
|
export interface UpdateResourceTypeRequest {
|
|
@@ -144,7 +167,12 @@ export interface DeleteResourceTypeRequest {
|
|
|
144
167
|
export interface DeleteResourceTypeResponse {
|
|
145
168
|
}
|
|
146
169
|
export interface QueryResourceTypesRequest {
|
|
147
|
-
/**
|
|
170
|
+
/**
|
|
171
|
+
* Information about filtering and sorting.
|
|
172
|
+
* Refer to the *supported filters article*
|
|
173
|
+
* ([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))
|
|
174
|
+
* for a complete list of supported filters and sorting options.
|
|
175
|
+
*/
|
|
148
176
|
query?: CursorQuery;
|
|
149
177
|
}
|
|
150
178
|
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -193,9 +221,9 @@ export interface CursorPaging {
|
|
|
193
221
|
cursor?: string | null;
|
|
194
222
|
}
|
|
195
223
|
export interface QueryResourceTypesResponse {
|
|
196
|
-
/**
|
|
224
|
+
/** Retrieved resource types. */
|
|
197
225
|
resourceTypes?: ResourceType[];
|
|
198
|
-
/** Paging metadata
|
|
226
|
+
/** Paging metadata. */
|
|
199
227
|
pagingMetadata?: CursorPagingMetadata;
|
|
200
228
|
}
|
|
201
229
|
export interface CursorPagingMetadata {
|
|
@@ -217,11 +245,16 @@ export interface Cursors {
|
|
|
217
245
|
prev?: string | null;
|
|
218
246
|
}
|
|
219
247
|
export interface CountResourceTypesRequest {
|
|
220
|
-
/**
|
|
248
|
+
/**
|
|
249
|
+
* Filter to base the count on.
|
|
250
|
+
* Refer to the *supported filters article*
|
|
251
|
+
* ([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))
|
|
252
|
+
* for a complete list of supported filters.
|
|
253
|
+
*/
|
|
221
254
|
filter?: Record<string, any> | null;
|
|
222
255
|
}
|
|
223
256
|
export interface CountResourceTypesResponse {
|
|
224
|
-
/**
|
|
257
|
+
/** Number of resource types matching the filter. */
|
|
225
258
|
count?: number;
|
|
226
259
|
}
|
|
227
260
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-resources-v2-resource-type-resource-types.types.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-type-resource-types.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"bookings-resources-v2-resource-type-resource-types.types.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-type-resource-types.types.ts"],"names":[],"mappings":";;;AA4IA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,gEAA6C,CAAA;IAC7C,oGAAiF,CAAA;IACjF,8EAA2D,CAAA;AAC7D,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAOD,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,qGAAyE,CAAA;IACzE,+EAA+E;IAC/E,qFAAyD,CAAA;AAC3D,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AAuED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA4KD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|